From 2556c59342ebc0df353a14d5366336fb4227b9f3 Mon Sep 17 00:00:00 2001 From: hopeyen Date: Thu, 25 Jan 2024 08:15:44 -0600 Subject: [PATCH] fix: network subgraph FDS schema update --- src/data.jl | 4 +++- test/data.jl | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/data.jl b/src/data.jl index f12d606..0e1f728 100644 --- a/src/data.jl +++ b/src/data.jl @@ -21,7 +21,9 @@ You can find TheGraphData.jl at https://github.com/semiotic-ai/TheGraphData.jl function squery(config::AbstractDict) v = "subgraphDeployments" a = Dict{String,Any}( - "where" => Dict{String,Any}("network_in" => config["syncing_networks"]) + "where" => Dict{String,Any}( + "manifest_" => Dict{String,Any}("network_in" => config["syncing_networks"]) + ), ) f = ["ipfsHash", "signalledTokens", "stakedTokens", "deniedAt"] return v, a, f diff --git a/test/data.jl b/test/data.jl index 2758f91..e2a1694 100644 --- a/test/data.jl +++ b/test/data.jl @@ -7,8 +7,8 @@ v, a, f = AllocationOpt.squery(config) @test v == "subgraphDeployments" @test f == ["ipfsHash", "signalledTokens", "stakedTokens", "deniedAt"] - @test a == Dict{String,Union{Dict{String,Vector{String}},String}}( - "where" => Dict("network_in" => ["mainnet"]) + @test a == Dict{String,Union{Dict{String,Dict{String,Vector{String}}},String}}( + "where" => Dict("manifest_" => Dict("network_in" => ["mainnet"])) ) end