Skip to content

Commit

Permalink
support filtering a counterpart token in pool swaps resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
eli-d committed Jan 16, 2025
1 parent f66fd32 commit 63aa802
Show file tree
Hide file tree
Showing 4 changed files with 167 additions and 44 deletions.
156 changes: 121 additions & 35 deletions cmd/faucet.superposition/graph/generated.go

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

39 changes: 34 additions & 5 deletions cmd/graphql.ethereum/graph/generated.go

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

12 changes: 9 additions & 3 deletions cmd/graphql.ethereum/graph/schema.resolvers.go

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

4 changes: 3 additions & 1 deletion cmd/graphql.ethereum/schema.graphqls
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,10 @@ type SeawaterPool {

"""
Swaps that were made using this pool.
If filter is set, only swaps between the pool token and the filter token will be returned.
If filter isn't set, only swaps between the pool token and fUSDC will be returned.
"""
swaps(first: Int, after: Int): SeawaterSwaps!
swaps(first: Int, after: Int, filter: String): SeawaterSwaps!

"""
Amounts currently contained in this pool.
Expand Down

0 comments on commit 63aa802

Please sign in to comment.