@zeitgeistpm/indexer
Advanced tools
Comparing version 2.12.2 to 2.12.3
@@ -438,2 +438,21 @@ import gql from 'graphql-tag'; | ||
`; | ||
const HistoricalMarketsDocument = gql ` | ||
query historicalMarkets($where: HistoricalMarketWhereInput, $order: [HistoricalMarketOrderByInput!], $limit: Int, $offset: Int) { | ||
historicalMarkets( | ||
where: $where | ||
limit: $limit | ||
offset: $offset | ||
orderBy: $order | ||
) { | ||
blockNumber | ||
event | ||
id | ||
marketId | ||
poolId | ||
resolvedOutcome | ||
status | ||
timestamp | ||
} | ||
} | ||
`; | ||
const PingQueryDocument = gql ` | ||
@@ -453,2 +472,32 @@ query pingQuery { | ||
${FullPoolFragmentDoc}`; | ||
const HistoricalPoolsDocument = gql ` | ||
query historicalPools($where: HistoricalPoolWhereInput, $order: [HistoricalPoolOrderByInput!], $offset: Int, $limit: Int) { | ||
historicalPools { | ||
blockNumber | ||
dVolume | ||
event | ||
id | ||
poolId | ||
poolStatus | ||
timestamp | ||
volume | ||
ztgQty | ||
} | ||
} | ||
`; | ||
const SquidStatusDocument = gql ` | ||
query squidStatus { | ||
squidStatus { | ||
height | ||
} | ||
} | ||
`; | ||
const StatsDocument = gql ` | ||
query stats { | ||
stats { | ||
totalLiquidity | ||
totalVolume | ||
} | ||
} | ||
`; | ||
const defaultWrapper = (action, _operationName, _operationType) => action(); | ||
@@ -475,2 +524,5 @@ function getSdk(client, withWrapper = defaultWrapper) { | ||
}, | ||
historicalMarkets(variables, requestHeaders) { | ||
return withWrapper((wrappedRequestHeaders) => client.request(HistoricalMarketsDocument, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'historicalMarkets', 'query'); | ||
}, | ||
pingQuery(variables, requestHeaders) { | ||
@@ -481,2 +533,11 @@ return withWrapper((wrappedRequestHeaders) => client.request(PingQueryDocument, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'pingQuery', 'query'); | ||
return withWrapper((wrappedRequestHeaders) => client.request(PoolsDocument, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'pools', 'query'); | ||
}, | ||
historicalPools(variables, requestHeaders) { | ||
return withWrapper((wrappedRequestHeaders) => client.request(HistoricalPoolsDocument, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'historicalPools', 'query'); | ||
}, | ||
squidStatus(variables, requestHeaders) { | ||
return withWrapper((wrappedRequestHeaders) => client.request(SquidStatusDocument, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'squidStatus', 'query'); | ||
}, | ||
stats(variables, requestHeaders) { | ||
return withWrapper((wrappedRequestHeaders) => client.request(StatsDocument, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'stats', 'query'); | ||
} | ||
@@ -486,3 +547,3 @@ }; | ||
export { AccountBalanceOrderByInput, AccountBalancesDocument, AccountOrderByInput, AssetOrderByInput, AssetsDocument, FullAccountBalanceFragmentDoc, FullAssetFragmentDoc, FullHistoricalAccountBalanceFragmentDoc, FullHistoricalAssetsFragmentDoc, FullMarketFragmentDoc, FullPoolFragmentDoc, HistoricalAccountBalanceOrderByInput, HistoricalAccountBalancesDocument, HistoricalAssetOrderByInput, HistoricalAssetsDocument, HistoricalMarketOrderByInput, HistoricalPoolOrderByInput, MarketOrderByInput, MarketStatus, MarketStatusCountDocument, MarketsDocument, PingQueryDocument, PoolOrderByInput, PoolsDocument, getSdk }; | ||
export { AccountBalanceOrderByInput, AccountBalancesDocument, AccountOrderByInput, AssetOrderByInput, AssetsDocument, FullAccountBalanceFragmentDoc, FullAssetFragmentDoc, FullHistoricalAccountBalanceFragmentDoc, FullHistoricalAssetsFragmentDoc, FullMarketFragmentDoc, FullPoolFragmentDoc, HistoricalAccountBalanceOrderByInput, HistoricalAccountBalancesDocument, HistoricalAssetOrderByInput, HistoricalAssetsDocument, HistoricalMarketOrderByInput, HistoricalMarketsDocument, HistoricalPoolOrderByInput, HistoricalPoolsDocument, MarketOrderByInput, MarketStatus, MarketStatusCountDocument, MarketsDocument, PingQueryDocument, PoolOrderByInput, PoolsDocument, SquidStatusDocument, StatsDocument, getSdk }; | ||
//# sourceMappingURL=sdk.esm.js.map |
@@ -440,2 +440,21 @@ 'use strict'; | ||
`; | ||
const HistoricalMarketsDocument = gql ` | ||
query historicalMarkets($where: HistoricalMarketWhereInput, $order: [HistoricalMarketOrderByInput!], $limit: Int, $offset: Int) { | ||
historicalMarkets( | ||
where: $where | ||
limit: $limit | ||
offset: $offset | ||
orderBy: $order | ||
) { | ||
blockNumber | ||
event | ||
id | ||
marketId | ||
poolId | ||
resolvedOutcome | ||
status | ||
timestamp | ||
} | ||
} | ||
`; | ||
const PingQueryDocument = gql ` | ||
@@ -455,2 +474,32 @@ query pingQuery { | ||
${FullPoolFragmentDoc}`; | ||
const HistoricalPoolsDocument = gql ` | ||
query historicalPools($where: HistoricalPoolWhereInput, $order: [HistoricalPoolOrderByInput!], $offset: Int, $limit: Int) { | ||
historicalPools { | ||
blockNumber | ||
dVolume | ||
event | ||
id | ||
poolId | ||
poolStatus | ||
timestamp | ||
volume | ||
ztgQty | ||
} | ||
} | ||
`; | ||
const SquidStatusDocument = gql ` | ||
query squidStatus { | ||
squidStatus { | ||
height | ||
} | ||
} | ||
`; | ||
const StatsDocument = gql ` | ||
query stats { | ||
stats { | ||
totalLiquidity | ||
totalVolume | ||
} | ||
} | ||
`; | ||
const defaultWrapper = (action, _operationName, _operationType) => action(); | ||
@@ -477,2 +526,5 @@ function getSdk(client, withWrapper = defaultWrapper) { | ||
}, | ||
historicalMarkets(variables, requestHeaders) { | ||
return withWrapper((wrappedRequestHeaders) => client.request(HistoricalMarketsDocument, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'historicalMarkets', 'query'); | ||
}, | ||
pingQuery(variables, requestHeaders) { | ||
@@ -483,2 +535,11 @@ return withWrapper((wrappedRequestHeaders) => client.request(PingQueryDocument, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'pingQuery', 'query'); | ||
return withWrapper((wrappedRequestHeaders) => client.request(PoolsDocument, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'pools', 'query'); | ||
}, | ||
historicalPools(variables, requestHeaders) { | ||
return withWrapper((wrappedRequestHeaders) => client.request(HistoricalPoolsDocument, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'historicalPools', 'query'); | ||
}, | ||
squidStatus(variables, requestHeaders) { | ||
return withWrapper((wrappedRequestHeaders) => client.request(SquidStatusDocument, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'squidStatus', 'query'); | ||
}, | ||
stats(variables, requestHeaders) { | ||
return withWrapper((wrappedRequestHeaders) => client.request(StatsDocument, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'stats', 'query'); | ||
} | ||
@@ -498,2 +559,4 @@ }; | ||
exports.HistoricalAssetsDocument = HistoricalAssetsDocument; | ||
exports.HistoricalMarketsDocument = HistoricalMarketsDocument; | ||
exports.HistoricalPoolsDocument = HistoricalPoolsDocument; | ||
exports.MarketStatusCountDocument = MarketStatusCountDocument; | ||
@@ -503,3 +566,5 @@ exports.MarketsDocument = MarketsDocument; | ||
exports.PoolsDocument = PoolsDocument; | ||
exports.SquidStatusDocument = SquidStatusDocument; | ||
exports.StatsDocument = StatsDocument; | ||
exports.getSdk = getSdk; | ||
//# sourceMappingURL=sdk.js.map |
import { GraphQLClient } from 'graphql-request'; | ||
import { augments } from './augments/index.esm.js'; | ||
import { getSdk } from './graphql/sdk.esm.js'; | ||
export { AccountBalanceOrderByInput, AccountBalancesDocument, AccountOrderByInput, AssetOrderByInput, AssetsDocument, FullAccountBalanceFragmentDoc, FullAssetFragmentDoc, FullHistoricalAccountBalanceFragmentDoc, FullHistoricalAssetsFragmentDoc, FullMarketFragmentDoc, FullPoolFragmentDoc, HistoricalAccountBalanceOrderByInput, HistoricalAccountBalancesDocument, HistoricalAssetOrderByInput, HistoricalAssetsDocument, HistoricalMarketOrderByInput, HistoricalPoolOrderByInput, MarketOrderByInput, MarketStatus, MarketStatusCountDocument, MarketsDocument, PingQueryDocument, PoolOrderByInput, PoolsDocument, getSdk } from './graphql/sdk.esm.js'; | ||
export { AccountBalanceOrderByInput, AccountBalancesDocument, AccountOrderByInput, AssetOrderByInput, AssetsDocument, FullAccountBalanceFragmentDoc, FullAssetFragmentDoc, FullHistoricalAccountBalanceFragmentDoc, FullHistoricalAssetsFragmentDoc, FullMarketFragmentDoc, FullPoolFragmentDoc, HistoricalAccountBalanceOrderByInput, HistoricalAccountBalancesDocument, HistoricalAssetOrderByInput, HistoricalAssetsDocument, HistoricalMarketOrderByInput, HistoricalMarketsDocument, HistoricalPoolOrderByInput, HistoricalPoolsDocument, MarketOrderByInput, MarketStatus, MarketStatusCountDocument, MarketsDocument, PingQueryDocument, PoolOrderByInput, PoolsDocument, SquidStatusDocument, StatsDocument, getSdk } from './graphql/sdk.esm.js'; | ||
@@ -6,0 +6,0 @@ /** |
@@ -57,2 +57,3 @@ 'use strict'; | ||
}); | ||
exports.HistoricalMarketsDocument = sdk.HistoricalMarketsDocument; | ||
Object.defineProperty(exports, 'HistoricalPoolOrderByInput', { | ||
@@ -62,2 +63,3 @@ enumerable: true, | ||
}); | ||
exports.HistoricalPoolsDocument = sdk.HistoricalPoolsDocument; | ||
Object.defineProperty(exports, 'MarketOrderByInput', { | ||
@@ -79,4 +81,6 @@ enumerable: true, | ||
exports.PoolsDocument = sdk.PoolsDocument; | ||
exports.SquidStatusDocument = sdk.SquidStatusDocument; | ||
exports.StatsDocument = sdk.StatsDocument; | ||
exports.getSdk = sdk.getSdk; | ||
exports.create = create; | ||
//# sourceMappingURL=index.js.map |
@@ -12,2 +12,3 @@ import { GraphQLClient } from 'graphql-request'; | ||
* The zeitgeist indexer client. | ||
* | ||
*/ | ||
@@ -14,0 +15,0 @@ export declare type ZeitgeistIndexer = GQLSdk & Augments & { |
{ | ||
"name": "@zeitgeistpm/indexer", | ||
"version": "2.12.2", | ||
"version": "2.12.3", | ||
"publishConfig": { | ||
@@ -5,0 +5,0 @@ "access": "public" |
@@ -14,2 +14,3 @@ import { GraphQLClient } from 'graphql-request' | ||
* The zeitgeist indexer client. | ||
* | ||
*/ | ||
@@ -16,0 +17,0 @@ export type ZeitgeistIndexer = GQLSdk & |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
881637
49
7490