refactor: omit scripts

This commit is contained in:
floor-licker
2025-10-20 19:18:36 -04:00
parent 5e5bea59b4
commit 2fe76063e7
2 changed files with 0 additions and 126 deletions
-55
View File
@@ -1,55 +0,0 @@
#!/bin/bash
# Demo runner for polyfill-rs
# This script runs the quick demo to showcase all available endpoints
set -e
echo "Running polyfill-rs Quick Demo"
echo "================================="
# Check if we're in the right directory
if [ ! -f "Cargo.toml" ]; then
echo " Error: Please run this script from the project root directory"
exit 1
fi
# Check if the demo example exists
if [ ! -f "examples/quick_demo.rs" ]; then
echo " Error: Quick demo example not found"
exit 1
fi
echo "Configuration:"
echo " Host: https://clob.polymarket.com"
echo " Chain ID: 137 (Polygon)"
echo " Authentication: None required (public endpoints only)"
echo ""
# Run the quick demo
echo "Running quick demo..."
echo "===================="
cargo run --example quick_demo
if [ $? -eq 0 ]; then
echo ""
echo " Quick demo completed successfully!"
echo ""
echo "What was tested:"
echo " API connectivity (/ok, /time)"
echo " Market data retrieval (/sampling-markets)"
echo " Order book data (/book)"
echo " Price data (/midpoint, /spread, /price)"
echo " Market metadata (/tick-size, /neg-risk)"
echo " Error handling (invalid inputs)"
echo " Performance characteristics"
echo " Data consistency validation"
echo ""
echo "The polyfill-rs client is working correctly with the Polymarket API!"
else
echo ""
echo " Quick demo failed!"
echo "Check the output above for error details."
exit 1
fi
-71
View File
@@ -1,71 +0,0 @@
#!/bin/bash
# Integration test runner for polyfill-rs
# This script runs comprehensive integration tests against the real Polymarket API
set -e
echo "Running polyfill-rs integration tests..."
echo "=========================================="
# Check if we have the required environment variables
if [ -z "$POLYMARKET_PRIVATE_KEY" ]; then
echo "Warning: POLYMARKET_PRIVATE_KEY not set"
echo " Some tests will be skipped (authentication, order management, WebSocket)"
echo " Set POLYMARKET_PRIVATE_KEY to run all tests"
fi
if [ -z "$POLYMARKET_API_KEY" ] || [ -z "$POLYMARKET_API_SECRET" ] || [ -z "$POLYMARKET_API_PASSPHRASE" ]; then
echo "Warning: API credentials not set"
echo " Set POLYMARKET_API_KEY, POLYMARKET_API_SECRET, and POLYMARKET_API_PASSPHRASE"
echo " to test order management functionality"
fi
# Set default values for optional environment variables
export POLYMARKET_HOST=${POLYMARKET_HOST:-"https://clob.polymarket.com"}
export POLYMARKET_CHAIN_ID=${POLYMARKET_CHAIN_ID:-"137"}
echo "Configuration:"
echo " Host: $POLYMARKET_HOST"
echo " Chain ID: $POLYMARKET_CHAIN_ID"
echo " Has Auth: $([ -n "$POLYMARKET_PRIVATE_KEY" ] && echo "Yes" || echo "No")"
echo " Has API Creds: $([ -n "$POLYMARKET_API_KEY" ] && echo "Yes" || echo "No")"
echo ""
# Run the tests
echo "Running integration tests..."
cargo test --test integration_tests -- --nocapture
if [ $? -eq 0 ]; then
echo ""
echo "All integration tests passed!"
echo ""
echo "Test Summary:"
echo " API connectivity"
echo " Market data endpoints"
echo " Error handling"
echo " Rate limiting"
echo " API compatibility"
echo " Performance characteristics"
if [ -n "$POLYMARKET_PRIVATE_KEY" ]; then
echo " Authentication"
echo " Advanced client features"
echo " WebSocket connectivity"
if [ -n "$POLYMARKET_API_KEY" ]; then
echo " Order management"
else
echo " Order management (skipped - no API credentials)"
fi
else
echo " Authentication (skipped - no private key)"
echo " Advanced client features (skipped - no private key)"
echo " WebSocket connectivity (skipped - no private key)"
echo " Order management (skipped - no private key)"
fi
else
echo ""
echo "Some integration tests failed!"
exit 1
fi