From cb9b245c7aec91dfea80ccbd71ca43500043bcaf Mon Sep 17 00:00:00 2001 From: abs2023 Date: Fri, 30 Jan 2026 09:42:40 -0500 Subject: [PATCH] fix: Update subgraph client URLs in tests - Changed the subgraph client URLs in `client_test.go` to point to the new Graph API endpoint for the Lumerin Futures subgraph. - Ensured that both `TestGetAllPositions` and `TestGetPositionsBySeller` use the updated URL for consistency in testing. --- internal/repositories/subgraph/client_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/repositories/subgraph/client_test.go b/internal/repositories/subgraph/client_test.go index e058cb5..56d8e82 100644 --- a/internal/repositories/subgraph/client_test.go +++ b/internal/repositories/subgraph/client_test.go @@ -11,7 +11,7 @@ import ( ) func TestGetAllPositions(t *testing.T) { - client := NewClient("https://graphidx.dev.lumerin.io/subgraphs/name/marketplace") + client := NewClient("https://api.studio.thegraph.com/query/1724245/lumerin-dev-futures/version/latest") deliveryAt := time.Unix(1763679600, 0) positions, err := client.GetAllPositions(context.Background(), deliveryAt) fmt.Printf("%+v\n", positions) @@ -20,7 +20,7 @@ func TestGetAllPositions(t *testing.T) { } func TestGetPositionsBySeller(t *testing.T) { - client := NewClient("https://graphidx.dev.lumerin.io/subgraphs/name/marketplace") + client := NewClient("https://api.studio.thegraph.com/query/1724245/lumerin-dev-futures/version/latest") participantAddress := common.HexToAddress("0xb4b12a69fdbb70b31214d4d3c063752c186ff8de") deliveryAt := time.Unix(1763679600, 0) positions, err := client.GetPositionsBySeller(context.Background(), participantAddress, deliveryAt)