@whisk/steakhouse 0.0.7 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,6 +11,7 @@ declare const tvlQuery: gql_tada.TadaDocumentNode<{
11
11
  chain: {
12
12
  id: number;
13
13
  name: string;
14
+ icon: string;
14
15
  };
15
16
  tvlUsd: number;
16
17
  }[];
@@ -8,6 +8,7 @@ const tvlQuery = graphql(`
8
8
  chain {
9
9
  id
10
10
  name
11
+ icon
11
12
  }
12
13
  tvlUsd
13
14
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/queries/getTvl.ts"],"sourcesContent":["import { graphql, type ResultOf } from \"@whisk/graphql\"\nimport type { SteakhouseClient } from \"../client.js\"\n\n/** GraphQL query for fetching Steakhouse TVL */\nexport const tvlQuery = graphql(`\n query GetSteakhouseTvl {\n steakhouseTvl {\n totalUsd\n computedAt\n byChain {\n chain {\n id\n name\n }\n tvlUsd\n }\n byProtocol {\n protocol\n tvlUsd\n }\n byAssetCategory {\n category\n tvlUsd\n }\n }\n }\n`)\n\nexport type GetTvlResult = ResultOf<typeof tvlQuery>[\"steakhouseTvl\"]\n\n/**\n * Get Steakhouse TVL breakdown by chain, protocol, and asset category.\n */\nexport async function getTvl(client: SteakhouseClient): Promise<GetTvlResult> {\n const result = await client.query(tvlQuery, {})\n return result.steakhouseTvl\n}\n"],"mappings":"AAAA,SAAS,eAA8B;AAIhC,MAAM,WAAW,QAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAsB/B;AAOD,eAAsB,OAAO,QAAiD;AAC5E,QAAM,SAAS,MAAM,OAAO,MAAM,UAAU,CAAC,CAAC;AAC9C,SAAO,OAAO;AAChB;","names":[]}
1
+ {"version":3,"sources":["../../src/queries/getTvl.ts"],"sourcesContent":["import { graphql, type ResultOf } from \"@whisk/graphql\"\nimport type { SteakhouseClient } from \"../client.js\"\n\n/** GraphQL query for fetching Steakhouse TVL */\nexport const tvlQuery = graphql(`\n query GetSteakhouseTvl {\n steakhouseTvl {\n totalUsd\n computedAt\n byChain {\n chain {\n id\n name\n icon\n }\n tvlUsd\n }\n byProtocol {\n protocol\n tvlUsd\n }\n byAssetCategory {\n category\n tvlUsd\n }\n }\n }\n`)\n\nexport type GetTvlResult = ResultOf<typeof tvlQuery>[\"steakhouseTvl\"]\n\n/**\n * Get Steakhouse TVL breakdown by chain, protocol, and asset category.\n */\nexport async function getTvl(client: SteakhouseClient): Promise<GetTvlResult> {\n const result = await client.query(tvlQuery, {})\n return result.steakhouseTvl\n}\n"],"mappings":"AAAA,SAAS,eAA8B;AAIhC,MAAM,WAAW,QAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAuB/B;AAOD,eAAsB,OAAO,QAAiD;AAC5E,QAAM,SAAS,MAAM,OAAO,MAAM,UAAU,CAAC,CAAC;AAC9C,SAAO,OAAO;AAChB;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whisk/steakhouse",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/office-supply-ventures/whisk-sdk.git",
@@ -11,6 +11,7 @@ export const tvlQuery = graphql(`
11
11
  chain {
12
12
  id
13
13
  name
14
+ icon
14
15
  }
15
16
  tvlUsd
16
17
  }