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 2b6ee7a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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
2 changes: 1 addition & 1 deletion test/data.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
@test v == "subgraphDeployments"
@test f == ["ipfsHash", "signalledTokens", "stakedTokens", "deniedAt"]
@test a == Dict{String,Union{Dict{String,Vector{String}},String}}(
"where" => Dict("network_in" => ["mainnet"])
"where" => Dict("manifest_" => Dict("network_in" => ["mainnet"]))
)
end

Expand Down

0 comments on commit 2b6ee7a

Please sign in to comment.