Files
smom-dbis-138/sdk/scripts/setup.sh
defiQUG 1fb7266469 Add Oracle Aggregator and CCIP Integration
- Introduced Aggregator.sol for Chainlink-compatible oracle functionality, including round-based updates and access control.
- Added OracleWithCCIP.sol to extend Aggregator with CCIP cross-chain messaging capabilities.
- Created .gitmodules to include OpenZeppelin contracts as a submodule.
- Developed a comprehensive deployment guide in NEXT_STEPS_COMPLETE_GUIDE.md for Phase 2 and smart contract deployment.
- Implemented Vite configuration for the orchestration portal, supporting both Vue and React frameworks.
- Added server-side logic for the Multi-Cloud Orchestration Portal, including API endpoints for environment management and monitoring.
- Created scripts for resource import and usage validation across non-US regions.
- Added tests for CCIP error handling and integration to ensure robust functionality.
- Included various new files and directories for the orchestration portal and deployment scripts.
2025-12-12 14:57:48 -08:00

55 lines
1.2 KiB
Bash
Executable File

#!/bin/bash
# Setup script for Tatum SDK integration
set -e
echo "Setting up Tatum SDK for ChainID 138..."
echo "========================================"
echo ""
# Check if Node.js is installed
if ! command -v node &> /dev/null; then
echo "Error: Node.js is not installed. Please install Node.js 18+ first."
exit 1
fi
# Check Node.js version
NODE_VERSION=$(node -v | cut -d'v' -f2 | cut -d'.' -f1)
if [ "$NODE_VERSION" -lt 18 ]; then
echo "Warning: Node.js version is less than 18. Recommended: Node.js 18+"
fi
echo "Node.js version: $(node -v)"
echo ""
# Install dependencies
echo "Installing dependencies..."
npm install
# Create .env file if it doesn't exist
if [ ! -f .env ]; then
echo "Creating .env file from env.example..."
cp env.example .env
echo "Please update .env with your RPC endpoint configuration"
else
echo ".env file already exists"
fi
echo ""
echo "Setup complete!"
echo ""
echo "Next steps:"
echo "1. Update .env with your RPC endpoint:"
echo " RPC_URL=https://rpc.defi-oracle-meta-mainnet.org"
echo ""
echo "2. Test connection:"
echo " npm run test"
echo ""
echo "3. Run examples:"
echo " npm run example:basic"
echo " npm run example:transaction"
echo " npm run example:contract"
echo ""