Skip to content

Commit

Permalink
refactor: improve network subgraph querying
Browse files Browse the repository at this point in the history
Leverage serde and serde_json more for serializing queries and
deserializing responses in particular. There are tools that go even
further with typing GraphQL query and response types (see
https://github.com/graphql-rust/graphql-client#getting-started) but my
feeling is that would be overkill here.
  • Loading branch information
Jannis committed Sep 29, 2023
1 parent 6522e96 commit b171261
Show file tree
Hide file tree
Showing 7 changed files with 293 additions and 194 deletions.
140 changes: 140 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ secp256k1 = { version = "0.27.0", features = ["recovery"] }
serde = { version = "1.0.188", features = ["derive"] }
serde_json = "1.0.107"
tokio = { version = "1.32.0", features = ["full", "macros", "rt"] }
toolshed = { git = "https://github.com/edgeandnode/toolshed", tag = "v0.2.2", features = ["graphql"] }

[dev-dependencies]
env_logger = "0.9.0"
Expand Down
Loading

0 comments on commit b171261

Please sign in to comment.