Skip to content

Commit

Permalink
Merge pull request #22 from stakewise/fix-fetch-schema
Browse files Browse the repository at this point in the history
Fix schema fetch
  • Loading branch information
tsudmi authored Oct 22, 2021
2 parents 22df1c7 + f96863f commit 833d0ae
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/merkle_distributor/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ def get_balancer_vault_pool_shares(
transport = RequestsHTTPTransport(url=subgraph_url)

# create a GraphQL client using the defined transport
client = Client(transport=transport, fetch_schema_from_transport=True)
client = Client(transport=transport, fetch_schema_from_transport=False)

# provide a GraphQL query
query = gql(
Expand Down Expand Up @@ -546,7 +546,7 @@ def get_balancer_pool_balances(
transport = RequestsHTTPTransport(url=subgraph_url)

# create a GraphQL client using the defined transport
client = Client(transport=transport, fetch_schema_from_transport=True)
client = Client(transport=transport, fetch_schema_from_transport=False)

# provide a GraphQL query
query = gql(
Expand Down Expand Up @@ -638,7 +638,7 @@ def get_uniswap_v2_balances(
transport = RequestsHTTPTransport(url=subgraph_url)

# create a GraphQL client using the defined transport
client = Client(transport=transport, fetch_schema_from_transport=True)
client = Client(transport=transport, fetch_schema_from_transport=False)

# provide a GraphQL query
query = gql(
Expand Down Expand Up @@ -731,7 +731,7 @@ def get_uniswap_v3_balances(
transport = RequestsHTTPTransport(url=subgraph_url)

# create a GraphQL client using the defined transport
client = Client(transport=transport, fetch_schema_from_transport=True)
client = Client(transport=transport, fetch_schema_from_transport=False)

# fetch pool current tick and token addresses
query = gql(
Expand Down Expand Up @@ -857,7 +857,7 @@ def get_uniswap_v3_staked_eth_balances(
transport = RequestsHTTPTransport(url=subgraph_url)

# create a GraphQL client using the defined transport
client = Client(transport=transport, fetch_schema_from_transport=True)
client = Client(transport=transport, fetch_schema_from_transport=False)

# fetch pool current tick and token addresses
query = gql(
Expand Down

0 comments on commit 833d0ae

Please sign in to comment.