Initial commit: Set up MEV bot project structure

This commit is contained in:
Krypto Kajun
2025-09-12 01:16:30 -05:00
commit ba80b273e4
22 changed files with 1035 additions and 0 deletions

18
scripts/build.sh Executable file
View File

@@ -0,0 +1,18 @@
#!/bin/bash
# build.sh - Build the MEV bot
echo "Building MEV bot..."
# Create bin directory if it doesn't exist
mkdir -p bin
# Build the application
go build -o bin/mev-bot cmd/mev-bot/main.go
if [ $? -eq 0 ]; then
echo "Build successful! Binary created at bin/mev-bot"
else
echo "Build failed!"
exit 1
fi

16
scripts/run.sh Executable file
View File

@@ -0,0 +1,16 @@
#!/bin/bash
# run.sh - Run the MEV bot
echo "Running MEV bot..."
# Build the application first
./scripts/build.sh
if [ $? -eq 0 ]; then
# Run the application
./bin/mev-bot start
else
echo "Failed to build the application!"
exit 1
fi

15
scripts/test.sh Executable file
View File

@@ -0,0 +1,15 @@
#!/bin/bash
# test.sh - Run tests for the MEV bot
echo "Running tests..."
# Run all tests
go test -v ./...
if [ $? -eq 0 ]; then
echo "All tests passed!"
else
echo "Some tests failed!"
exit 1
fi