Skip to content

Commit cd18207

Browse files
committed
final cleaning
1 parent b019d15 commit cd18207

44 files changed

Lines changed: 2816 additions & 2203 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.26.3 AS builder
1+
FROM golang:1.26.4 AS builder
22

33
ARG TARGETOS
44
ARG TARGETARCH

Makefile

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: build build-all clean cov docker docker-run docker-stop format help integrationtest lint proto run setup-test-env sqlc teardown-test-env test vet
1+
.PHONY: build build-all clean cov docker docker-run docker-stop format help init-solverd integrationtest lint proto run setup-test-env sqlc teardown-test-env test vet
22

33
VERSION ?= dev
44
LDFLAGS := -s -w -X main.Version=$(VERSION)
@@ -18,15 +18,20 @@ build:
1818
run: build
1919
@echo "Running solverd against local test stack..."
2020
@SOLVER_ARK_URL=localhost:7070 \
21-
SOLVER_EMULATOR_URL=localhost:7273 \
21+
SOLVER_EMULATOR_URL=localhost:7173 \
2222
SOLVER_WALLET_SEED=ed1f6ad1c0aa1bbdcc14a4dc26ff5d31cca6df11617f2bbb24a4e0e6f72f7a5d \
2323
SOLVER_WALLET_PASSWORD=password \
24-
SOLVER_GRPC_PORT=7270 \
25-
SOLVER_HTTP_PORT=7271 \
26-
SOLVER_BANCO_ENABLED=false \
27-
SOLVER_PREIMAGE_ENABLED=true \
2824
SOLVER_DATADIR=$${SOLVER_DATADIR:-$$(mktemp -d)} \
29-
./solverd
25+
go run ./cmd/solverd/main.go
26+
27+
## init-solverd: fund the running solverd, mint an asset, and register pairs (run after `make run`)
28+
init-solverd:
29+
@echo "Initializing solverd (fund + mint asset + register pairs)..."
30+
@ARK_URL=$${ARK_URL:-localhost:7070} \
31+
ARK_HTTP_URL=$${ARK_HTTP_URL:-http://localhost:7071} \
32+
SOLVER_GRPC=$${SOLVER_GRPC:-localhost:7170} \
33+
PRICEFEED_URL=$${PRICEFEED_URL:-http://localhost:8088} \
34+
go run ./test/init/
3035

3136
## build-all: cross-compile solverd and solver for linux/darwin × amd64/arm64 (release artifacts)
3237
build-all:

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ web UI. Configured entirely through environment variables:
121121
| `SOLVER_EMULATOR_URL` ||| emulator endpoint |
122122
| `SOLVER_WALLET_PASSWORD` | || wallet unlock password |
123123
| `SOLVER_DATADIR` | | `$HOME/.solverd` | data directory (SQLite DB lives here) |
124-
| `SOLVER_GRPC_PORT` | | `7070` | gRPC listener |
125-
| `SOLVER_HTTP_PORT` | | `7071` | HTTP REST + web UI listener |
124+
| `SOLVER_GRPC_PORT` | | `7170` | gRPC listener |
125+
| `SOLVER_HTTP_PORT` | | `7171` | HTTP REST + web UI listener |
126126
| `SOLVER_LOG_LEVEL` | | `4` (Info) | logrus level |
127127
| `SOLVER_BANCO_ENABLED` | | `true` | enable the swap plugin |
128128

0 commit comments

Comments
 (0)