Skip to content

Commit

Permalink
fix: fix function typings
Browse files Browse the repository at this point in the history
  • Loading branch information
Space-Bean committed Dec 13, 2023
1 parent 8ac8ad8 commit 35d414f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 25 deletions.
3 changes: 1 addition & 2 deletions projects/dex-ui/src/wells/useBeanstalkSiloWhitelist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { useCallback } from "react";
import { Well } from "@beanstalk/sdk/Wells";
import { BEANETH_MULTIPUMP_ADDRESS } from "src/utils/addresses";
import useSdk from "src/utils/sdk/useSdk";
import { TokenValue } from "@beanstalk/sdk";

export const useBeanstalkSiloWhitelist = () => {
const sdk = useSdk();
Expand All @@ -11,7 +10,7 @@ export const useBeanstalkSiloWhitelist = () => {
(well: Well | undefined) => {
if (!well?.lpToken) return false;
const token = sdk.tokens.findByAddress(well.lpToken.address);
return token && sdk.tokens.siloWhitelist.has(token);
return Boolean(token && sdk.tokens.siloWhitelist.has(token));
},
[sdk.tokens]
);
Expand Down
42 changes: 19 additions & 23 deletions projects/ui/src/graph/graphql.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -137392,6 +137392,18 @@
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "turbo",
"description": null,
"args": [],
"type": {
"kind": "SCALAR",
"name": "Boolean",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "twitter",
"description": null,
Expand Down Expand Up @@ -157278,9 +157290,7 @@
"name": "derivedFrom",
"description": "creates a virtual field on the entity that may be queried but cannot be set manually through the mappings API.",
"isRepeatable": false,
"locations": [
"FIELD_DEFINITION"
],
"locations": ["FIELD_DEFINITION"],
"args": [
{
"name": "field",
Expand All @@ -157304,20 +157314,14 @@
"name": "entity",
"description": "Marks the GraphQL type as indexable entity. Each type that should be an entity is required to be annotated with this directive.",
"isRepeatable": false,
"locations": [
"OBJECT"
],
"locations": ["OBJECT"],
"args": []
},
{
"name": "include",
"description": "Directs the executor to include this field or fragment only when the `if` argument is true.",
"isRepeatable": false,
"locations": [
"FIELD",
"FRAGMENT_SPREAD",
"INLINE_FRAGMENT"
],
"locations": ["FIELD", "FRAGMENT_SPREAD", "INLINE_FRAGMENT"],
"args": [
{
"name": "if",
Expand All @@ -157341,11 +157345,7 @@
"name": "skip",
"description": "Directs the executor to skip this field or fragment when the `if` argument is true.",
"isRepeatable": false,
"locations": [
"FIELD",
"FRAGMENT_SPREAD",
"INLINE_FRAGMENT"
],
"locations": ["FIELD", "FRAGMENT_SPREAD", "INLINE_FRAGMENT"],
"args": [
{
"name": "if",
Expand All @@ -157369,9 +157369,7 @@
"name": "specifiedBy",
"description": "Exposes a URL that specifies the behavior of this scalar.",
"isRepeatable": false,
"locations": [
"SCALAR"
],
"locations": ["SCALAR"],
"args": [
{
"name": "url",
Expand All @@ -157395,9 +157393,7 @@
"name": "subgraphId",
"description": "Defined a Subgraph ID for an object type",
"isRepeatable": false,
"locations": [
"OBJECT"
],
"locations": ["OBJECT"],
"args": [
{
"name": "id",
Expand All @@ -157419,4 +157415,4 @@
}
]
}
}
}

0 comments on commit 35d414f

Please sign in to comment.