From 716440aa7410f77acb53adf520a776777645f5a9 Mon Sep 17 00:00:00 2001 From: jeffyanta Date: Tue, 28 Apr 2026 13:14:32 -0400 Subject: [PATCH] Pull ocp-server v1.11.0 and update antispam guard --- antispam/integration.go | 2 +- go.mod | 4 ++-- go.sum | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/antispam/integration.go b/antispam/integration.go index b697342..09076ff 100644 --- a/antispam/integration.go +++ b/antispam/integration.go @@ -75,7 +75,7 @@ func (i *Integration) AllowDistribution(_ context.Context, _ *ocp_common.Account return true, "", nil } -func (i *Integration) AllowSwap(_ context.Context, _ swap.FundingSource, _, _, _ *ocp_common.Account, swapAmount, feeAmount uint64, initializesMint bool) (bool, string, error) { +func (i *Integration) AllowSwap(_ context.Context, _ swap.Kind, _ swap.FundingSource, _, _, _ *ocp_common.Account, swapAmount, feeAmount uint64, initializesMint bool) (bool, string, error) { if !initializesMint { return true, "", nil } diff --git a/go.mod b/go.mod index 3b27b37..bd28f61 100644 --- a/go.mod +++ b/go.mod @@ -6,8 +6,8 @@ require ( firebase.google.com/go/v4 v4.18.0 github.com/ReneKroon/ttlcache v1.7.0 github.com/code-payments/flipcash2-protobuf-api v1.3.1-0.20260420185108-1e0abce29a0a - github.com/code-payments/ocp-protobuf-api v1.9.0 - github.com/code-payments/ocp-server v1.10.1-0.20260427033937-2c1fcf69dcba + github.com/code-payments/ocp-protobuf-api v1.10.0 + github.com/code-payments/ocp-server v1.11.0 github.com/devsisters/go-applereceipt v0.0.0-20240805020915-fa22a0160fc2 github.com/georgysavva/scany/v2 v2.1.4 github.com/google/uuid v1.6.0 diff --git a/go.sum b/go.sum index c280a61..bc8f7f1 100644 --- a/go.sum +++ b/go.sum @@ -42,10 +42,10 @@ github.com/code-payments/code-vm-indexer v1.2.0 h1:rSHpBMiT9BKgmKcXg/VIoi/h0t7jN github.com/code-payments/code-vm-indexer v1.2.0/go.mod h1:vn91YN2qNqb+gGJeZe2+l+TNxVmEEiRHXXnIn2Y40h8= github.com/code-payments/flipcash2-protobuf-api v1.3.1-0.20260420185108-1e0abce29a0a h1:pS06GcrKd8RAI/eBEu40WMz8HJ/NgUPXFisgNQiSHMc= github.com/code-payments/flipcash2-protobuf-api v1.3.1-0.20260420185108-1e0abce29a0a/go.mod h1:s/1pOsb4FTRD+LcvRKGjfmm6ygRS/m1ep34EIW0fuDs= -github.com/code-payments/ocp-protobuf-api v1.9.0 h1:VpcOENVTmebpTENhpVaDbFfPPliK1zuMtjHzdhBQY2U= -github.com/code-payments/ocp-protobuf-api v1.9.0/go.mod h1:tw6BooY5a8l6CtSZnKOruyKII0W04n89pcM4BizrgG8= -github.com/code-payments/ocp-server v1.10.1-0.20260427033937-2c1fcf69dcba h1:U2mai8GSjwpgk5ywRMJQiF0HnxvZu0krj9YHsJ2EAdI= -github.com/code-payments/ocp-server v1.10.1-0.20260427033937-2c1fcf69dcba/go.mod h1:tk3LabRL/iRP3C6iImbW5B7oC3ceGRqtmVhkFlqOHZA= +github.com/code-payments/ocp-protobuf-api v1.10.0 h1:8GEDLh3NShOYz6J7a9VOCqu+xJSd7xR42pewaPfkiE4= +github.com/code-payments/ocp-protobuf-api v1.10.0/go.mod h1:tw6BooY5a8l6CtSZnKOruyKII0W04n89pcM4BizrgG8= +github.com/code-payments/ocp-server v1.11.0 h1:t3RVFv3T0W7+R/AxHBbWFhVWicA3zT4S0YE0J4C4JgE= +github.com/code-payments/ocp-server v1.11.0/go.mod h1:988X7GYc48DZihgfsv/1rKyFhp+SM00b2uR74NbuMYA= github.com/containerd/continuity v0.4.3 h1:6HVkalIp+2u1ZLH1J/pYX2oBVXlJZvh1X1A7bEZ9Su8= github.com/containerd/continuity v0.4.3/go.mod h1:F6PTNCKepoxEaXLQp3wDAjygEnImnZ/7o4JzpodfroQ= github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4=