Skip to content

Commit

Permalink
fix: network subgraph FDS schema update
Browse files Browse the repository at this point in the history
  • Loading branch information
hopeyen committed Jan 25, 2024
1 parent 63fe122 commit 2556c59
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/data.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions test/data.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 2556c59

Please sign in to comment.