这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
aa6ed6b
fix(chains): implement dynamic wrapped token lookup for wrap/unwrap e…
fengtality Oct 30, 2025
0b84826
Merge branch 'development' into fix/dynamic-wrap-token-lookup
fengtality Oct 30, 2025
d278b25
feat(meteora): upgrade SDK to v1.7.5 and fix breaking changes
fengtality Oct 30, 2025
5520d98
test(meteora): add comprehensive SDK v1.7.5 integration tests
fengtality Oct 30, 2025
ee1021b
feat(connectors): add dynamic token fetching for unlisted tokens
fengtality Oct 30, 2025
747e83f
feat(uniswap): add support for unlisted tokens in all swap routes
fengtality Oct 30, 2025
17e7620
fix(uniswap): use parseUnits to avoid BigInt scientific notation error
fengtality Oct 30, 2025
55b0651
fix(pancakeswap): use parseUnits to avoid BigInt scientific notation …
fengtality Oct 30, 2025
4cf7ea5
feat(clmm): improve allowance error messages for swap execution
fengtality Oct 30, 2025
91e5ec6
fix(meteora): use wallet address instead of pool address for balance …
fengtality Oct 30, 2025
d9ad724
feat(trading): add unified CLMM routes with consistent defaults
fengtality Oct 30, 2025
6f06551
fix(solana): include priority fee in transaction fee calculation
fengtality Oct 30, 2025
53f7768
fix(meteora): remove walletAddress requirement from position-info end…
fengtality Oct 30, 2025
287937b
refactor(clmm): remove walletAddress from all position-info endpoints
fengtality Oct 30, 2025
a110abe
refactor(clmm): change POST routes to use chainNetwork parameter
fengtality Oct 31, 2025
082005a
fix(meteora): fix balance tracking in removeLiquidity to return corre…
fengtality Oct 31, 2025
9ea35d2
fix(solana): fix critical Helius WebSocket notification handling bug
fengtality Oct 31, 2025
5f561fa
feat(app): add startup banner showing chain config and block numbers
fengtality Oct 31, 2025
d1eecaa
fix(solana): fix WebSocket subscription ID mapping for Helius
fengtality Oct 31, 2025
154896b
test(helius): fix WebSocket tests with proper mock setup
fengtality Oct 31, 2025
38eb448
test: add missing getOrFetchToken and getOrFetchTokenBySymbol mocks
fengtality Oct 31, 2025
8174150
perf(solana): use RPC pre-calculated uiAmount for balance fetching
fengtality Oct 31, 2025
001c6c6
refactor(helius): remove Sender endpoint and Jito tip functionality
fengtality Oct 31, 2025
f27f860
security(logging): redact API keys from RPC URL logs
fengtality Oct 31, 2025
2978c2f
test(mocks): add redactUrl to logger mocks
fengtality Oct 31, 2025
30e7ebe
fix(jupiter): improve error handling with simulateWithErrorHandling
fengtality Oct 31, 2025
3d3af17
(feat) add docker compose file
fengtality Oct 31, 2025
ae7ebde
docs(readme): update docker installation to use docker compose
fengtality Oct 31, 2025
ffc991c
refactor(meteora): optimize closePosition and improve bin limit messa…
fengtality Oct 31, 2025
a226b59
Merge branch 'development' into fix/dynamic-wrap-token-lookup
fengtality Nov 5, 2025
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
92 changes: 55 additions & 37 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -291,58 +291,76 @@ To start the Gateway server in HTTPS mode, run the command without the `--dev` f
pnpm start --passphrase=<PASSPHRASE>
```

## Installation with Docker
## Installation with Docker Compose

### Step 1: Get the Docker Image
### Prerequisites

**Option A: Pull from Docker Hub**
```bash
# Note: This image will be available after the v2.8 release
docker pull hummingbot/gateway:latest
```
Install [Docker Compose](https://docs.docker.com/compose/install/) if you haven't already.

### Step 1: Clone the Repository

**Option B: Build locally**
```bash
# Simple build
docker build -t hummingbot/gateway:core-2.8 .

# Build with version tag and metadata
docker build \
--build-arg BRANCH=$(git rev-parse --abbrev-ref HEAD) \
--build-arg COMMIT=$(git rev-parse HEAD) \
--build-arg BUILD_DATE=$(date -u +"%Y-%m-%d") \
-t hummingbot/gateway:core-2.8 .
# Clone Github repo
git clone https://github.com/hummingbot/gateway.git

# Navigate to the directory
cd gateway

# Switch to core-2.8 branch
git checkout core-2.8
```

### Step 2: Run the Gateway Container
### Step 2: Configure Environment Variables

**Development mode (Unencrypted HTTP endpoints, default):**
```bash
docker run -p 15888:15888 \
-e GATEWAY_PASSPHRASE=admin \
-e GATEWAY_DEV=true \
-v $(pwd)/conf:/home/gateway/conf \
-v $(pwd)/logs:/home/gateway/logs \
hummingbot/gateway:core-2.8
Edit `docker-compose.yml` to set your desired configuration:

```yaml
environment:
- GATEWAY_PASSPHRASE=a # Replace with a strong passphrase
- DEV=true # Set to false for HTTPS mode (requires certificates)
```

**Production mode (Encrypted HTTPS endpoints, requires Hummingbot certs):**
**Development mode (DEV=true)**:
- Runs HTTP endpoints without SSL encryption
- No certificate requirements
- Ideal for local development and testing

**Production mode (DEV=false)**:
- Requires SSL certificates in the `certs/` directory
- Runs HTTPS endpoints with encryption
- Required for production deployments and Hummingbot client integration

### Step 3: Launch Gateway

```bash
docker run -p 15888:15888 \
-e GATEWAY_PASSPHRASE=a \
-e GATEWAY_DEV=false \
-v $(pwd)/conf:/home/gateway/conf \
-v $(pwd)/logs:/home/gateway/logs \
-v $(pwd)/certs:/home/gateway/certs \
hummingbot/gateway:core-2.8
```
# Start Gateway in detached mode
docker compose up -d

### Access Points
# View logs to confirm Gateway is running
docker compose logs -f gateway
```

Gateway will start and be accessible at:
- Development mode: http://localhost:15888
- Production mode: https://localhost:15888
- Production mode: https://localhost:15888
- Swagger API docs: http://localhost:15888/docs (dev mode only)

### Managing the Gateway Container

```bash
# Stop Gateway
docker compose down

# Restart Gateway
docker compose restart

# View logs
docker compose logs -f gateway

# Rebuild and restart (after code changes)
docker compose up -d --build
```


## API Endpoints Overview

Expand Down
17 changes: 17 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
services:
gateway:
restart: always
container_name: gateway
image: hummingbot/gateway:PR543
# build: # Uncomment this build section and comment image to build Hummingbot locally
# context: .
# dockerfile: Dockerfile
ports:
- "15888:15888"
volumes:
- ./conf:/home/gateway/conf
- ./logs:/home/gateway/logs
- ./certs:/home/gateway/certs
environment:
- GATEWAY_PASSPHRASE=a # replace with a strong passphrase
- DEV=true # set to false to require certificates for HTTPS
Loading