Fix BigInt crash in protocol parameter parsing, add docker-compose

Protocol parameter fields (minFeeA, minFeeB, maxTxSize, maxValSize)
lacked fallback defaults, causing "Cannot convert undefined to a BigInt"
when Lucid-Evolution processed them. Added safe defaults sourced from
Vector public testnet and updated deposit values to match. Made
lovelaceToAda() defensive against undefined/null. Added diagnostic
logging to getWalletInfo and getProtocolParameters error paths.

Converted Dockerfile to multi-stage build and added docker-compose.yml
with inline Vector testnet environment config.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
david
2026-03-31 13:26:49 +02:00
parent 96a2d12005
commit 8ff02f244e
4 changed files with 64 additions and 26 deletions

12
docker-compose.yml Normal file
View File

@@ -0,0 +1,12 @@
services:
vector-mcp:
build: .
container_name: vector-mcp
restart: unless-stopped
ports:
- "127.0.0.1:3000:3000"
environment:
- VECTOR_OGMIOS_URL=https://ogmios.vector.testnet.apexfusion.org
- VECTOR_KOIOS_URL=https://v2.koios.vector.testnet.apexfusion.org/
- VECTOR_SUBMIT_URL=https://submit.vector.testnet.apexfusion.org/api/submit/tx
- VECTOR_EXPLORER_URL=https://vector.testnet.apexscan.org