From e2da6ed708df42d486a9a234132c5377578b0f87 Mon Sep 17 00:00:00 2001 From: gobicycle Date: Sun, 13 Jul 2025 12:16:46 +0300 Subject: [PATCH 1/2] update tongo --- Dockerfile | 6 +++--- go.mod | 4 ++-- go.sum | 8 ++++---- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9b660d5..3343c55 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM docker.io/library/golang:1.23-bullseye AS builder +FROM docker.io/library/golang:1.23-bookworm AS builder WORKDIR /build-dir COPY go.mod . COPY go.sum . @@ -21,7 +21,7 @@ RUN go build -ldflags "-X main.Version=$GIT_TAG" -o /tmp/testutil github.com/gob FROM docker.io/library/ubuntu:24.04 AS payment-processor RUN apt-get update && apt-get install -y openssl ca-certificates libsodium23 wget && rm -rf /var/lib/apt/lists/* RUN mkdir -p /app/lib -RUN wget -O /app/lib/libemulator.so https://github.com/ton-blockchain/ton/releases/download/v2024.09/libemulator-linux-x86_64.so +COPY --from=builder /go/pkg/mod/github.com/tonkeeper/tongo*/lib/linux /app/lib/ ENV LD_LIBRARY_PATH=/app/lib COPY --from=builder /tmp/processor /app/processor CMD ["/app/processor", "-v"] @@ -29,7 +29,7 @@ CMD ["/app/processor", "-v"] FROM docker.io/library/ubuntu:24.04 AS payment-test RUN apt-get update && apt-get install -y openssl ca-certificates libsodium23 wget && rm -rf /var/lib/apt/lists/* RUN mkdir -p /app/lib -RUN wget -O /app/lib/libemulator.so https://github.com/ton-blockchain/ton/releases/download/v2024.09/libemulator-linux-x86_64.so +COPY --from=builder /go/pkg/mod/github.com/tonkeeper/tongo*/lib/linux /app/lib/ ENV LD_LIBRARY_PATH=/app/lib COPY --from=builder /tmp/testutil /app/testutil CMD ["/app/testutil", "-v"] diff --git a/go.mod b/go.mod index 04992ca..76b327a 100644 --- a/go.mod +++ b/go.mod @@ -12,8 +12,8 @@ require ( github.com/rabbitmq/amqp091-go v1.10.0 github.com/shopspring/decimal v1.4.0 github.com/sirupsen/logrus v1.9.3 - github.com/tonkeeper/tongo v1.9.9 - github.com/xssnick/tonutils-go v1.13.0 + github.com/tonkeeper/tongo v1.16.12 + github.com/xssnick/tonutils-go v1.13.1 golang.org/x/time v0.10.0 ) diff --git a/go.sum b/go.sum index 4de720d..7d9c050 100644 --- a/go.sum +++ b/go.sum @@ -132,10 +132,10 @@ github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5 github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.8.1 h1:w7B6lhMri9wdJUVmEZPGGhZzrYTPvgJArz7wNPgYKsk= github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= -github.com/tonkeeper/tongo v1.9.9 h1:U5SeHrEts38zcTNPsD+QtpKwnne0u0SvRuwx+YRQcxQ= -github.com/tonkeeper/tongo v1.9.9/go.mod h1:MjgIgAytFarjCoVjMLjYEtpZNN1f2G/pnZhKjr28cWs= -github.com/xssnick/tonutils-go v1.13.0 h1:LV2JzB+CuuWaLQiYNolK+YI3NRQOpS0W+T+N+ctF6VQ= -github.com/xssnick/tonutils-go v1.13.0/go.mod h1:EDe/9D/HZpAenbR+WPMQHICOF0BZWAe01TU5+Vpg08k= +github.com/tonkeeper/tongo v1.16.12 h1:oAS9z0Kj7okTwVUV7QKAq3E6XjYmx+6DXfYaP8gg4S4= +github.com/tonkeeper/tongo v1.16.12/go.mod h1:MjgIgAytFarjCoVjMLjYEtpZNN1f2G/pnZhKjr28cWs= +github.com/xssnick/tonutils-go v1.13.1 h1:eWMD3KoRDX29gjAQIcLJU2Lnnzojr97xpzaMOEFjOeE= +github.com/xssnick/tonutils-go v1.13.1/go.mod h1:EDe/9D/HZpAenbR+WPMQHICOF0BZWAe01TU5+Vpg08k= github.com/zenazn/goji v0.9.0/go.mod h1:7S9M489iMyHBNxwZnk9/EHS098H4/F6TATF2mIxtB1Q= go.uber.org/atomic v1.3.2/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= From 60e8f80d89d58a6d629865c4f358be80bef72bca Mon Sep 17 00:00:00 2001 From: gobicycle Date: Sun, 13 Jul 2025 12:26:21 +0300 Subject: [PATCH 2/2] update tests --- .github/workflows/go.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index d9e3790..41c5388 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -8,7 +8,7 @@ on: jobs: build: - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 environment: TESTS services: postgres: @@ -33,7 +33,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v3 with: - go-version: 1.22.1 + go-version: 1.23.0 - name: Build run: go build -v ./... @@ -48,11 +48,11 @@ jobs: - name: Install dependencies run: | sudo apt-get update - sudo apt-get -y install openssl ca-certificates libsecp256k1-0 libsodium23 + sudo apt-get -y install openssl ca-certificates libsodium23 - name: Install libs run: | - wget -O libemulator.so https://github.com/ton-blockchain/ton/releases/download/v2024.09/libemulator-linux-x86_64.so + wget -O libemulator.so https://github.com/ton-blockchain/ton/releases/download/v2025.06/libemulator-linux-x86_64.so sudo cp libemulator.so /lib - name: Update Library Cache