diff --git a/.changeset/hip-bags-marry.md b/.changeset/hip-bags-marry.md new file mode 100644 index 000000000..c523d4877 --- /dev/null +++ b/.changeset/hip-bags-marry.md @@ -0,0 +1,5 @@ +--- +'frontend': patch +--- + +SOV-106: Graph configuration diff --git a/apps/frontend/.env.example b/apps/frontend/.env.example index 2d2e9d69c..41690131f 100644 --- a/apps/frontend/.env.example +++ b/apps/frontend/.env.example @@ -1 +1,5 @@ REACT_APP_GOOGLE_ANALYTICS=GTM-PX36D3G + +REACT_APP_GRAPH_RSK=https://subgraph.test.sovryn.app/subgraphs/name/DistributedCollective/sovryn-subgraph + +REACT_APP_GRAPH_PERPS=https://api.thegraph.com/subgraphs/name/distributedcollective/sovryn-perpetual-futures diff --git a/apps/frontend/.env.staging b/apps/frontend/.env.staging index 17893050b..e3415ec0e 100644 --- a/apps/frontend/.env.staging +++ b/apps/frontend/.env.staging @@ -1 +1,5 @@ -REACT_APP_GOOGLE_ANALYTICS=GTM-PX36D3G-STAGING \ No newline at end of file +REACT_APP_GOOGLE_ANALYTICS=GTM-PX36D3G-STAGING + +REACT_APP_GRAPH_RSK=https://subgraph.sovryn.app/subgraphs/name/DistributedCollective/sovryn-subgraph + +REACT_APP_GRAPH_PERPS=https://api.thegraph.com/subgraphs/name/distributedcollective/sovryn-perpetual-futures \ No newline at end of file diff --git a/apps/frontend/codegen.fetch.yml b/apps/frontend/codegen.fetch.yml new file mode 100644 index 000000000..9cc2fd8de --- /dev/null +++ b/apps/frontend/codegen.fetch.yml @@ -0,0 +1,11 @@ +generates: + { + './src/utils/graphql/rsk/schema.graphql': + { schema: '${REACT_APP_GRAPH_RSK}', plugins: ['schema-ast'] }, + './src/utils/graphql/perps/schema.graphql': + { schema: '${REACT_APP_GRAPH_PERPS}', plugins: ['schema-ast'] }, + } + +hooks: + afterAllFileWrite: + - prettier ./src/utils/graphql/**/schema.graphql --write diff --git a/apps/frontend/codegen.yml b/apps/frontend/codegen.yml new file mode 100644 index 000000000..8eb432a65 --- /dev/null +++ b/apps/frontend/codegen.yml @@ -0,0 +1,31 @@ +generates: + { + './src/utils/graphql/rsk/generated.tsx': + { + schema: './src/utils/graphql/rsk/schema.graphql', + documents: './src/utils/graphql/rsk/operations/*.graphql', + plugins: + ['typescript', 'typescript-operations', 'typescript-react-apollo'], + config: + { + withHooks: true, + scalars: [Bytes: string, BigInt: string, BigDecimal: string], + }, + }, + './src/utils/graphql/perps/generated.tsx': + { + schema: './src/utils/graphql/perps/schema.graphql', + documents: './src/utils/graphql/perps/operations/*.graphql', + plugins: + ['typescript', 'typescript-operations', 'typescript-react-apollo'], + config: + { + withHooks: true, + scalars: [Bytes: string, BigInt: string, BigDecimal: string], + }, + }, + } + +hooks: + afterAllFileWrite: + - prettier ./src/utils/graphql --write diff --git a/apps/frontend/package.json b/apps/frontend/package.json index 8f0edc7a1..1b2e2708e 100644 --- a/apps/frontend/package.json +++ b/apps/frontend/package.json @@ -26,7 +26,11 @@ "react-i18next": "12.0.0", "react-router-dom": "6.4.2", "react-scripts": "5.0.1", - "reactjs-localstorage": "1.0.1" + "reactjs-localstorage": "1.0.1", + "@apollo/client": "3.7.1", + "@apollo/react-hooks": "4.0.0", + "graphql": "16.6.0", + "env-cmd": "10.1.0" }, "devDependencies": { "@babel/core": "7.18.2", @@ -45,14 +49,25 @@ "stream-browserify": "^3.0.0", "ts-loader": "^9.3.1", "typescript": "^4.7.4", - "webpack": "^5.74.0" + "webpack": "^5.74.0", + "@graphql-codegen/add": "3.2.1", + "@graphql-codegen/cli": "2.13.12", + "@graphql-codegen/schema-ast": "2.5.1", + "@graphql-codegen/typescript": "2.8.2", + "@graphql-codegen/typescript-operations": "2.5.7", + "@graphql-codegen/typescript-react-apollo": "3.3.6" }, "scripts": { + "predev": "yarn generate:graphql", "dev": "craco start", + "prebuild": "yarn generate:graphql", "build": "craco build", "test": "craco test --watchAll=false --passWithNoTests", "test:staged": "craco test --watchAll=false --passWithNoTests --bail --onlyChanged", - "lint": "eslint -c .eslintrc.js ./" + "lint": "eslint -c .eslintrc.js ./", + "generate:graphql": "graphql-codegen", + "generate:graphql:fetch:testnet": "env-cmd -f .env.development.local graphql-codegen -c codegen.fetch.yml", + "generate:graphql:fetch:mainnet": "env-cmd -f .env.staging graphql-codegen -c codegen.fetch.yml" }, "browserslist": { "production": [ diff --git a/apps/frontend/src/app/2_molecules/DebugContent.tsx b/apps/frontend/src/app/2_molecules/DebugContent.tsx index ecded9902..7c21e45a4 100644 --- a/apps/frontend/src/app/2_molecules/DebugContent.tsx +++ b/apps/frontend/src/app/2_molecules/DebugContent.tsx @@ -1,4 +1,4 @@ -import React, { useReducer } from 'react'; +import React, { useMemo, useReducer } from 'react'; import { useTranslation } from 'react-i18next'; @@ -8,9 +8,11 @@ import { TransactionStep } from '../3_organisms'; import { useTheme, useWalletConnect } from '../../hooks'; import { translations } from '../../locales/i18n'; import { AppTheme } from '../../types/tailwind'; +import { useGetTokenRatesQuery } from '../../utils/graphql/rsk/generated'; import { CollateralRatio } from './CollateralRatio/CollateralRatio'; import { ConnectWalletButton } from './ConnectWalletButton/ConnectWalletButton'; import { ExampleProviderCall } from './ExampleProviderCall'; +import { ExampleTokenDetails } from './ExampleTokenDetails'; // usage example, to be removed export const DebugContent = () => { @@ -20,10 +22,37 @@ export const DebugContent = () => { const { connectWallet, disconnectWallet, wallets, pending } = useWalletConnect(); + // const perpsClient = new ApolloClient({ + // uri: graphPerpsUrl, + // cache: new InMemoryCache({ + // resultCaching: false, + // }), + // }); + + const { data: tokensData } = useGetTokenRatesQuery({ + pollInterval: 0, + }); + + // const { data: tradesData } = useGetTradesQuery({ + // client: perpsClient, + // }); + + const sovToken = useMemo( + () => + tokensData + ? tokensData?.tokens.find(token => token.symbol === 'SOV') + : undefined, + [tokensData], + ); + return ( +
USD price of SOV from the RSK graph: {sovToken?.lastPriceUsd}
+ + +
diff --git a/apps/frontend/src/index.tsx b/apps/frontend/src/index.tsx index 9b8747b20..3bbd38f5e 100644 --- a/apps/frontend/src/index.tsx +++ b/apps/frontend/src/index.tsx @@ -1,3 +1,5 @@ +import { ApolloProvider, ApolloClient, InMemoryCache } from '@apollo/client'; + import React from 'react'; import ReactDOM from 'react-dom/client'; @@ -10,17 +12,27 @@ import App from './app/5_pages/App/App'; import { chains } from './config/chains'; import './locales/i18n'; import './styles/tailwindcss/index.css'; +import { graphRskUrl } from './utils/constants'; setupChains(chains); +const rskClient = new ApolloClient({ + uri: graphRskUrl, + cache: new InMemoryCache({ + resultCaching: false, + }), +}); + const root = ReactDOM.createRoot( document.getElementById('root') as HTMLElement, ); root.render( - - + + + + , ); diff --git a/apps/frontend/src/utils/constants.ts b/apps/frontend/src/utils/constants.ts index 9abc751ea..637e0b1d9 100644 --- a/apps/frontend/src/utils/constants.ts +++ b/apps/frontend/src/utils/constants.ts @@ -11,3 +11,6 @@ export const sovrynLinks = { }; export const requiredChain = ChainIds.RSK_TESTNET; + +export const graphRskUrl = process.env.REACT_APP_GRAPH_RSK; +export const graphPerpsUrl = process.env.REACT_APP_GRAPH_PERPS; diff --git a/apps/frontend/src/utils/graphql/perps/generated.tsx b/apps/frontend/src/utils/graphql/perps/generated.tsx new file mode 100644 index 000000000..90199dcff --- /dev/null +++ b/apps/frontend/src/utils/graphql/perps/generated.tsx @@ -0,0 +1,9351 @@ +import { gql } from '@apollo/client'; +import * as Apollo from '@apollo/client'; + +export type Maybe = T | null; +export type InputMaybe = Maybe; +export type Exact = { + [K in keyof T]: T[K]; +}; +export type MakeOptional = Omit & { + [SubKey in K]?: Maybe; +}; +export type MakeMaybe = Omit & { + [SubKey in K]: Maybe; +}; +const defaultOptions = {} as const; +/** All built-in and custom scalars, mapped to their actual values */ +export type Scalars = { + ID: string; + String: string; + Boolean: boolean; + Int: number; + Float: number; + BigDecimal: any; + BigInt: any; + Bytes: any; +}; + +export type AddAmmGovernanceAddress = { + __typename?: 'AddAmmGovernanceAddress'; + gAddress: Scalars['Bytes']; + id: Scalars['ID']; +}; + +export type AddAmmGovernanceAddress_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + gAddress?: InputMaybe; + gAddress_contains?: InputMaybe; + gAddress_in?: InputMaybe>; + gAddress_not?: InputMaybe; + gAddress_not_contains?: InputMaybe; + gAddress_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; +}; + +export enum AddAmmGovernanceAddress_OrderBy { + GAddress = 'gAddress', + Id = 'id', +} + +export type AnswerUpdated = { + __typename?: 'AnswerUpdated'; + current: Scalars['BigInt']; + id: Scalars['ID']; + roundId: Scalars['BigInt']; + updatedAt: Scalars['BigInt']; +}; + +export type AnswerUpdated_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + current?: InputMaybe; + current_gt?: InputMaybe; + current_gte?: InputMaybe; + current_in?: InputMaybe>; + current_lt?: InputMaybe; + current_lte?: InputMaybe; + current_not?: InputMaybe; + current_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + roundId?: InputMaybe; + roundId_gt?: InputMaybe; + roundId_gte?: InputMaybe; + roundId_in?: InputMaybe>; + roundId_lt?: InputMaybe; + roundId_lte?: InputMaybe; + roundId_not?: InputMaybe; + roundId_not_in?: InputMaybe>; + updatedAt?: InputMaybe; + updatedAt_gt?: InputMaybe; + updatedAt_gte?: InputMaybe; + updatedAt_in?: InputMaybe>; + updatedAt_lt?: InputMaybe; + updatedAt_lte?: InputMaybe; + updatedAt_not?: InputMaybe; + updatedAt_not_in?: InputMaybe>; +}; + +export enum AnswerUpdated_OrderBy { + Current = 'current', + Id = 'id', + RoundId = 'roundId', + UpdatedAt = 'updatedAt', +} + +export type AtomicYield = { + __typename?: 'AtomicYield'; + calculatedYield: Scalars['BigInt']; + createdAtTx: Transaction; + endTimestamp: Scalars['BigInt']; + id: Scalars['ID']; + liquidityPool: LiquidityPool; + startTimestamp: Scalars['BigInt']; +}; + +export type AtomicYield_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + calculatedYield?: InputMaybe; + calculatedYield_gt?: InputMaybe; + calculatedYield_gte?: InputMaybe; + calculatedYield_in?: InputMaybe>; + calculatedYield_lt?: InputMaybe; + calculatedYield_lte?: InputMaybe; + calculatedYield_not?: InputMaybe; + calculatedYield_not_in?: InputMaybe>; + createdAtTx?: InputMaybe; + createdAtTx_?: InputMaybe; + createdAtTx_contains?: InputMaybe; + createdAtTx_contains_nocase?: InputMaybe; + createdAtTx_ends_with?: InputMaybe; + createdAtTx_ends_with_nocase?: InputMaybe; + createdAtTx_gt?: InputMaybe; + createdAtTx_gte?: InputMaybe; + createdAtTx_in?: InputMaybe>; + createdAtTx_lt?: InputMaybe; + createdAtTx_lte?: InputMaybe; + createdAtTx_not?: InputMaybe; + createdAtTx_not_contains?: InputMaybe; + createdAtTx_not_contains_nocase?: InputMaybe; + createdAtTx_not_ends_with?: InputMaybe; + createdAtTx_not_ends_with_nocase?: InputMaybe; + createdAtTx_not_in?: InputMaybe>; + createdAtTx_not_starts_with?: InputMaybe; + createdAtTx_not_starts_with_nocase?: InputMaybe; + createdAtTx_starts_with?: InputMaybe; + createdAtTx_starts_with_nocase?: InputMaybe; + endTimestamp?: InputMaybe; + endTimestamp_gt?: InputMaybe; + endTimestamp_gte?: InputMaybe; + endTimestamp_in?: InputMaybe>; + endTimestamp_lt?: InputMaybe; + endTimestamp_lte?: InputMaybe; + endTimestamp_not?: InputMaybe; + endTimestamp_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + liquidityPool?: InputMaybe; + liquidityPool_?: InputMaybe; + liquidityPool_contains?: InputMaybe; + liquidityPool_contains_nocase?: InputMaybe; + liquidityPool_ends_with?: InputMaybe; + liquidityPool_ends_with_nocase?: InputMaybe; + liquidityPool_gt?: InputMaybe; + liquidityPool_gte?: InputMaybe; + liquidityPool_in?: InputMaybe>; + liquidityPool_lt?: InputMaybe; + liquidityPool_lte?: InputMaybe; + liquidityPool_not?: InputMaybe; + liquidityPool_not_contains?: InputMaybe; + liquidityPool_not_contains_nocase?: InputMaybe; + liquidityPool_not_ends_with?: InputMaybe; + liquidityPool_not_ends_with_nocase?: InputMaybe; + liquidityPool_not_in?: InputMaybe>; + liquidityPool_not_starts_with?: InputMaybe; + liquidityPool_not_starts_with_nocase?: InputMaybe; + liquidityPool_starts_with?: InputMaybe; + liquidityPool_starts_with_nocase?: InputMaybe; + startTimestamp?: InputMaybe; + startTimestamp_gt?: InputMaybe; + startTimestamp_gte?: InputMaybe; + startTimestamp_in?: InputMaybe>; + startTimestamp_lt?: InputMaybe; + startTimestamp_lte?: InputMaybe; + startTimestamp_not?: InputMaybe; + startTimestamp_not_in?: InputMaybe>; +}; + +export enum AtomicYield_OrderBy { + CalculatedYield = 'calculatedYield', + CreatedAtTx = 'createdAtTx', + EndTimestamp = 'endTimestamp', + Id = 'id', + LiquidityPool = 'liquidityPool', + StartTimestamp = 'startTimestamp', +} + +export type BlockChangedFilter = { + number_gte: Scalars['Int']; +}; + +export type Block_Height = { + hash?: InputMaybe; + number?: InputMaybe; + number_gte?: InputMaybe; +}; + +export type CandleSticksDay = { + __typename?: 'CandleSticksDay'; + close: Scalars['BigDecimal']; + high: Scalars['BigDecimal']; + id: Scalars['ID']; + longVolume: Scalars['BigDecimal']; + low: Scalars['BigDecimal']; + open?: Maybe; + oraclePriceClose: Scalars['BigDecimal']; + oraclePriceHigh: Scalars['BigDecimal']; + oraclePriceLow: Scalars['BigDecimal']; + oraclePriceOpen: Scalars['BigDecimal']; + periodStartUnix: Scalars['Int']; + perpetual: Perpetual; + shortVolume: Scalars['BigDecimal']; + totalVolume: Scalars['BigDecimal']; + txCount: Scalars['Int']; +}; + +export type CandleSticksDay_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + close?: InputMaybe; + close_gt?: InputMaybe; + close_gte?: InputMaybe; + close_in?: InputMaybe>; + close_lt?: InputMaybe; + close_lte?: InputMaybe; + close_not?: InputMaybe; + close_not_in?: InputMaybe>; + high?: InputMaybe; + high_gt?: InputMaybe; + high_gte?: InputMaybe; + high_in?: InputMaybe>; + high_lt?: InputMaybe; + high_lte?: InputMaybe; + high_not?: InputMaybe; + high_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + longVolume?: InputMaybe; + longVolume_gt?: InputMaybe; + longVolume_gte?: InputMaybe; + longVolume_in?: InputMaybe>; + longVolume_lt?: InputMaybe; + longVolume_lte?: InputMaybe; + longVolume_not?: InputMaybe; + longVolume_not_in?: InputMaybe>; + low?: InputMaybe; + low_gt?: InputMaybe; + low_gte?: InputMaybe; + low_in?: InputMaybe>; + low_lt?: InputMaybe; + low_lte?: InputMaybe; + low_not?: InputMaybe; + low_not_in?: InputMaybe>; + open?: InputMaybe; + open_gt?: InputMaybe; + open_gte?: InputMaybe; + open_in?: InputMaybe>; + open_lt?: InputMaybe; + open_lte?: InputMaybe; + open_not?: InputMaybe; + open_not_in?: InputMaybe>; + oraclePriceClose?: InputMaybe; + oraclePriceClose_gt?: InputMaybe; + oraclePriceClose_gte?: InputMaybe; + oraclePriceClose_in?: InputMaybe>; + oraclePriceClose_lt?: InputMaybe; + oraclePriceClose_lte?: InputMaybe; + oraclePriceClose_not?: InputMaybe; + oraclePriceClose_not_in?: InputMaybe>; + oraclePriceHigh?: InputMaybe; + oraclePriceHigh_gt?: InputMaybe; + oraclePriceHigh_gte?: InputMaybe; + oraclePriceHigh_in?: InputMaybe>; + oraclePriceHigh_lt?: InputMaybe; + oraclePriceHigh_lte?: InputMaybe; + oraclePriceHigh_not?: InputMaybe; + oraclePriceHigh_not_in?: InputMaybe>; + oraclePriceLow?: InputMaybe; + oraclePriceLow_gt?: InputMaybe; + oraclePriceLow_gte?: InputMaybe; + oraclePriceLow_in?: InputMaybe>; + oraclePriceLow_lt?: InputMaybe; + oraclePriceLow_lte?: InputMaybe; + oraclePriceLow_not?: InputMaybe; + oraclePriceLow_not_in?: InputMaybe>; + oraclePriceOpen?: InputMaybe; + oraclePriceOpen_gt?: InputMaybe; + oraclePriceOpen_gte?: InputMaybe; + oraclePriceOpen_in?: InputMaybe>; + oraclePriceOpen_lt?: InputMaybe; + oraclePriceOpen_lte?: InputMaybe; + oraclePriceOpen_not?: InputMaybe; + oraclePriceOpen_not_in?: InputMaybe>; + periodStartUnix?: InputMaybe; + periodStartUnix_gt?: InputMaybe; + periodStartUnix_gte?: InputMaybe; + periodStartUnix_in?: InputMaybe>; + periodStartUnix_lt?: InputMaybe; + periodStartUnix_lte?: InputMaybe; + periodStartUnix_not?: InputMaybe; + periodStartUnix_not_in?: InputMaybe>; + perpetual?: InputMaybe; + perpetual_?: InputMaybe; + perpetual_contains?: InputMaybe; + perpetual_contains_nocase?: InputMaybe; + perpetual_ends_with?: InputMaybe; + perpetual_ends_with_nocase?: InputMaybe; + perpetual_gt?: InputMaybe; + perpetual_gte?: InputMaybe; + perpetual_in?: InputMaybe>; + perpetual_lt?: InputMaybe; + perpetual_lte?: InputMaybe; + perpetual_not?: InputMaybe; + perpetual_not_contains?: InputMaybe; + perpetual_not_contains_nocase?: InputMaybe; + perpetual_not_ends_with?: InputMaybe; + perpetual_not_ends_with_nocase?: InputMaybe; + perpetual_not_in?: InputMaybe>; + perpetual_not_starts_with?: InputMaybe; + perpetual_not_starts_with_nocase?: InputMaybe; + perpetual_starts_with?: InputMaybe; + perpetual_starts_with_nocase?: InputMaybe; + shortVolume?: InputMaybe; + shortVolume_gt?: InputMaybe; + shortVolume_gte?: InputMaybe; + shortVolume_in?: InputMaybe>; + shortVolume_lt?: InputMaybe; + shortVolume_lte?: InputMaybe; + shortVolume_not?: InputMaybe; + shortVolume_not_in?: InputMaybe>; + totalVolume?: InputMaybe; + totalVolume_gt?: InputMaybe; + totalVolume_gte?: InputMaybe; + totalVolume_in?: InputMaybe>; + totalVolume_lt?: InputMaybe; + totalVolume_lte?: InputMaybe; + totalVolume_not?: InputMaybe; + totalVolume_not_in?: InputMaybe>; + txCount?: InputMaybe; + txCount_gt?: InputMaybe; + txCount_gte?: InputMaybe; + txCount_in?: InputMaybe>; + txCount_lt?: InputMaybe; + txCount_lte?: InputMaybe; + txCount_not?: InputMaybe; + txCount_not_in?: InputMaybe>; +}; + +export enum CandleSticksDay_OrderBy { + Close = 'close', + High = 'high', + Id = 'id', + LongVolume = 'longVolume', + Low = 'low', + Open = 'open', + OraclePriceClose = 'oraclePriceClose', + OraclePriceHigh = 'oraclePriceHigh', + OraclePriceLow = 'oraclePriceLow', + OraclePriceOpen = 'oraclePriceOpen', + PeriodStartUnix = 'periodStartUnix', + Perpetual = 'perpetual', + ShortVolume = 'shortVolume', + TotalVolume = 'totalVolume', + TxCount = 'txCount', +} + +export type CandleSticksFifteenMinute = { + __typename?: 'CandleSticksFifteenMinute'; + close: Scalars['BigDecimal']; + high: Scalars['BigDecimal']; + id: Scalars['ID']; + longVolume: Scalars['BigDecimal']; + low: Scalars['BigDecimal']; + open?: Maybe; + oraclePriceClose: Scalars['BigDecimal']; + oraclePriceHigh: Scalars['BigDecimal']; + oraclePriceLow: Scalars['BigDecimal']; + oraclePriceOpen: Scalars['BigDecimal']; + periodStartUnix: Scalars['Int']; + perpetual: Perpetual; + shortVolume: Scalars['BigDecimal']; + totalVolume: Scalars['BigDecimal']; + txCount: Scalars['Int']; +}; + +export type CandleSticksFifteenMinute_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + close?: InputMaybe; + close_gt?: InputMaybe; + close_gte?: InputMaybe; + close_in?: InputMaybe>; + close_lt?: InputMaybe; + close_lte?: InputMaybe; + close_not?: InputMaybe; + close_not_in?: InputMaybe>; + high?: InputMaybe; + high_gt?: InputMaybe; + high_gte?: InputMaybe; + high_in?: InputMaybe>; + high_lt?: InputMaybe; + high_lte?: InputMaybe; + high_not?: InputMaybe; + high_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + longVolume?: InputMaybe; + longVolume_gt?: InputMaybe; + longVolume_gte?: InputMaybe; + longVolume_in?: InputMaybe>; + longVolume_lt?: InputMaybe; + longVolume_lte?: InputMaybe; + longVolume_not?: InputMaybe; + longVolume_not_in?: InputMaybe>; + low?: InputMaybe; + low_gt?: InputMaybe; + low_gte?: InputMaybe; + low_in?: InputMaybe>; + low_lt?: InputMaybe; + low_lte?: InputMaybe; + low_not?: InputMaybe; + low_not_in?: InputMaybe>; + open?: InputMaybe; + open_gt?: InputMaybe; + open_gte?: InputMaybe; + open_in?: InputMaybe>; + open_lt?: InputMaybe; + open_lte?: InputMaybe; + open_not?: InputMaybe; + open_not_in?: InputMaybe>; + oraclePriceClose?: InputMaybe; + oraclePriceClose_gt?: InputMaybe; + oraclePriceClose_gte?: InputMaybe; + oraclePriceClose_in?: InputMaybe>; + oraclePriceClose_lt?: InputMaybe; + oraclePriceClose_lte?: InputMaybe; + oraclePriceClose_not?: InputMaybe; + oraclePriceClose_not_in?: InputMaybe>; + oraclePriceHigh?: InputMaybe; + oraclePriceHigh_gt?: InputMaybe; + oraclePriceHigh_gte?: InputMaybe; + oraclePriceHigh_in?: InputMaybe>; + oraclePriceHigh_lt?: InputMaybe; + oraclePriceHigh_lte?: InputMaybe; + oraclePriceHigh_not?: InputMaybe; + oraclePriceHigh_not_in?: InputMaybe>; + oraclePriceLow?: InputMaybe; + oraclePriceLow_gt?: InputMaybe; + oraclePriceLow_gte?: InputMaybe; + oraclePriceLow_in?: InputMaybe>; + oraclePriceLow_lt?: InputMaybe; + oraclePriceLow_lte?: InputMaybe; + oraclePriceLow_not?: InputMaybe; + oraclePriceLow_not_in?: InputMaybe>; + oraclePriceOpen?: InputMaybe; + oraclePriceOpen_gt?: InputMaybe; + oraclePriceOpen_gte?: InputMaybe; + oraclePriceOpen_in?: InputMaybe>; + oraclePriceOpen_lt?: InputMaybe; + oraclePriceOpen_lte?: InputMaybe; + oraclePriceOpen_not?: InputMaybe; + oraclePriceOpen_not_in?: InputMaybe>; + periodStartUnix?: InputMaybe; + periodStartUnix_gt?: InputMaybe; + periodStartUnix_gte?: InputMaybe; + periodStartUnix_in?: InputMaybe>; + periodStartUnix_lt?: InputMaybe; + periodStartUnix_lte?: InputMaybe; + periodStartUnix_not?: InputMaybe; + periodStartUnix_not_in?: InputMaybe>; + perpetual?: InputMaybe; + perpetual_?: InputMaybe; + perpetual_contains?: InputMaybe; + perpetual_contains_nocase?: InputMaybe; + perpetual_ends_with?: InputMaybe; + perpetual_ends_with_nocase?: InputMaybe; + perpetual_gt?: InputMaybe; + perpetual_gte?: InputMaybe; + perpetual_in?: InputMaybe>; + perpetual_lt?: InputMaybe; + perpetual_lte?: InputMaybe; + perpetual_not?: InputMaybe; + perpetual_not_contains?: InputMaybe; + perpetual_not_contains_nocase?: InputMaybe; + perpetual_not_ends_with?: InputMaybe; + perpetual_not_ends_with_nocase?: InputMaybe; + perpetual_not_in?: InputMaybe>; + perpetual_not_starts_with?: InputMaybe; + perpetual_not_starts_with_nocase?: InputMaybe; + perpetual_starts_with?: InputMaybe; + perpetual_starts_with_nocase?: InputMaybe; + shortVolume?: InputMaybe; + shortVolume_gt?: InputMaybe; + shortVolume_gte?: InputMaybe; + shortVolume_in?: InputMaybe>; + shortVolume_lt?: InputMaybe; + shortVolume_lte?: InputMaybe; + shortVolume_not?: InputMaybe; + shortVolume_not_in?: InputMaybe>; + totalVolume?: InputMaybe; + totalVolume_gt?: InputMaybe; + totalVolume_gte?: InputMaybe; + totalVolume_in?: InputMaybe>; + totalVolume_lt?: InputMaybe; + totalVolume_lte?: InputMaybe; + totalVolume_not?: InputMaybe; + totalVolume_not_in?: InputMaybe>; + txCount?: InputMaybe; + txCount_gt?: InputMaybe; + txCount_gte?: InputMaybe; + txCount_in?: InputMaybe>; + txCount_lt?: InputMaybe; + txCount_lte?: InputMaybe; + txCount_not?: InputMaybe; + txCount_not_in?: InputMaybe>; +}; + +export enum CandleSticksFifteenMinute_OrderBy { + Close = 'close', + High = 'high', + Id = 'id', + LongVolume = 'longVolume', + Low = 'low', + Open = 'open', + OraclePriceClose = 'oraclePriceClose', + OraclePriceHigh = 'oraclePriceHigh', + OraclePriceLow = 'oraclePriceLow', + OraclePriceOpen = 'oraclePriceOpen', + PeriodStartUnix = 'periodStartUnix', + Perpetual = 'perpetual', + ShortVolume = 'shortVolume', + TotalVolume = 'totalVolume', + TxCount = 'txCount', +} + +export type CandleSticksFourHour = { + __typename?: 'CandleSticksFourHour'; + close: Scalars['BigDecimal']; + high: Scalars['BigDecimal']; + id: Scalars['ID']; + longVolume: Scalars['BigDecimal']; + low: Scalars['BigDecimal']; + open?: Maybe; + oraclePriceClose: Scalars['BigDecimal']; + oraclePriceHigh: Scalars['BigDecimal']; + oraclePriceLow: Scalars['BigDecimal']; + oraclePriceOpen: Scalars['BigDecimal']; + periodStartUnix: Scalars['Int']; + perpetual: Perpetual; + shortVolume: Scalars['BigDecimal']; + totalVolume: Scalars['BigDecimal']; + txCount: Scalars['Int']; +}; + +export type CandleSticksFourHour_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + close?: InputMaybe; + close_gt?: InputMaybe; + close_gte?: InputMaybe; + close_in?: InputMaybe>; + close_lt?: InputMaybe; + close_lte?: InputMaybe; + close_not?: InputMaybe; + close_not_in?: InputMaybe>; + high?: InputMaybe; + high_gt?: InputMaybe; + high_gte?: InputMaybe; + high_in?: InputMaybe>; + high_lt?: InputMaybe; + high_lte?: InputMaybe; + high_not?: InputMaybe; + high_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + longVolume?: InputMaybe; + longVolume_gt?: InputMaybe; + longVolume_gte?: InputMaybe; + longVolume_in?: InputMaybe>; + longVolume_lt?: InputMaybe; + longVolume_lte?: InputMaybe; + longVolume_not?: InputMaybe; + longVolume_not_in?: InputMaybe>; + low?: InputMaybe; + low_gt?: InputMaybe; + low_gte?: InputMaybe; + low_in?: InputMaybe>; + low_lt?: InputMaybe; + low_lte?: InputMaybe; + low_not?: InputMaybe; + low_not_in?: InputMaybe>; + open?: InputMaybe; + open_gt?: InputMaybe; + open_gte?: InputMaybe; + open_in?: InputMaybe>; + open_lt?: InputMaybe; + open_lte?: InputMaybe; + open_not?: InputMaybe; + open_not_in?: InputMaybe>; + oraclePriceClose?: InputMaybe; + oraclePriceClose_gt?: InputMaybe; + oraclePriceClose_gte?: InputMaybe; + oraclePriceClose_in?: InputMaybe>; + oraclePriceClose_lt?: InputMaybe; + oraclePriceClose_lte?: InputMaybe; + oraclePriceClose_not?: InputMaybe; + oraclePriceClose_not_in?: InputMaybe>; + oraclePriceHigh?: InputMaybe; + oraclePriceHigh_gt?: InputMaybe; + oraclePriceHigh_gte?: InputMaybe; + oraclePriceHigh_in?: InputMaybe>; + oraclePriceHigh_lt?: InputMaybe; + oraclePriceHigh_lte?: InputMaybe; + oraclePriceHigh_not?: InputMaybe; + oraclePriceHigh_not_in?: InputMaybe>; + oraclePriceLow?: InputMaybe; + oraclePriceLow_gt?: InputMaybe; + oraclePriceLow_gte?: InputMaybe; + oraclePriceLow_in?: InputMaybe>; + oraclePriceLow_lt?: InputMaybe; + oraclePriceLow_lte?: InputMaybe; + oraclePriceLow_not?: InputMaybe; + oraclePriceLow_not_in?: InputMaybe>; + oraclePriceOpen?: InputMaybe; + oraclePriceOpen_gt?: InputMaybe; + oraclePriceOpen_gte?: InputMaybe; + oraclePriceOpen_in?: InputMaybe>; + oraclePriceOpen_lt?: InputMaybe; + oraclePriceOpen_lte?: InputMaybe; + oraclePriceOpen_not?: InputMaybe; + oraclePriceOpen_not_in?: InputMaybe>; + periodStartUnix?: InputMaybe; + periodStartUnix_gt?: InputMaybe; + periodStartUnix_gte?: InputMaybe; + periodStartUnix_in?: InputMaybe>; + periodStartUnix_lt?: InputMaybe; + periodStartUnix_lte?: InputMaybe; + periodStartUnix_not?: InputMaybe; + periodStartUnix_not_in?: InputMaybe>; + perpetual?: InputMaybe; + perpetual_?: InputMaybe; + perpetual_contains?: InputMaybe; + perpetual_contains_nocase?: InputMaybe; + perpetual_ends_with?: InputMaybe; + perpetual_ends_with_nocase?: InputMaybe; + perpetual_gt?: InputMaybe; + perpetual_gte?: InputMaybe; + perpetual_in?: InputMaybe>; + perpetual_lt?: InputMaybe; + perpetual_lte?: InputMaybe; + perpetual_not?: InputMaybe; + perpetual_not_contains?: InputMaybe; + perpetual_not_contains_nocase?: InputMaybe; + perpetual_not_ends_with?: InputMaybe; + perpetual_not_ends_with_nocase?: InputMaybe; + perpetual_not_in?: InputMaybe>; + perpetual_not_starts_with?: InputMaybe; + perpetual_not_starts_with_nocase?: InputMaybe; + perpetual_starts_with?: InputMaybe; + perpetual_starts_with_nocase?: InputMaybe; + shortVolume?: InputMaybe; + shortVolume_gt?: InputMaybe; + shortVolume_gte?: InputMaybe; + shortVolume_in?: InputMaybe>; + shortVolume_lt?: InputMaybe; + shortVolume_lte?: InputMaybe; + shortVolume_not?: InputMaybe; + shortVolume_not_in?: InputMaybe>; + totalVolume?: InputMaybe; + totalVolume_gt?: InputMaybe; + totalVolume_gte?: InputMaybe; + totalVolume_in?: InputMaybe>; + totalVolume_lt?: InputMaybe; + totalVolume_lte?: InputMaybe; + totalVolume_not?: InputMaybe; + totalVolume_not_in?: InputMaybe>; + txCount?: InputMaybe; + txCount_gt?: InputMaybe; + txCount_gte?: InputMaybe; + txCount_in?: InputMaybe>; + txCount_lt?: InputMaybe; + txCount_lte?: InputMaybe; + txCount_not?: InputMaybe; + txCount_not_in?: InputMaybe>; +}; + +export enum CandleSticksFourHour_OrderBy { + Close = 'close', + High = 'high', + Id = 'id', + LongVolume = 'longVolume', + Low = 'low', + Open = 'open', + OraclePriceClose = 'oraclePriceClose', + OraclePriceHigh = 'oraclePriceHigh', + OraclePriceLow = 'oraclePriceLow', + OraclePriceOpen = 'oraclePriceOpen', + PeriodStartUnix = 'periodStartUnix', + Perpetual = 'perpetual', + ShortVolume = 'shortVolume', + TotalVolume = 'totalVolume', + TxCount = 'txCount', +} + +export type CandleSticksHour = { + __typename?: 'CandleSticksHour'; + close: Scalars['BigDecimal']; + high: Scalars['BigDecimal']; + id: Scalars['ID']; + longVolume: Scalars['BigDecimal']; + low: Scalars['BigDecimal']; + open?: Maybe; + oraclePriceClose: Scalars['BigDecimal']; + oraclePriceHigh: Scalars['BigDecimal']; + oraclePriceLow: Scalars['BigDecimal']; + oraclePriceOpen: Scalars['BigDecimal']; + periodStartUnix: Scalars['Int']; + perpetual: Perpetual; + shortVolume: Scalars['BigDecimal']; + totalVolume: Scalars['BigDecimal']; + txCount: Scalars['Int']; +}; + +export type CandleSticksHour_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + close?: InputMaybe; + close_gt?: InputMaybe; + close_gte?: InputMaybe; + close_in?: InputMaybe>; + close_lt?: InputMaybe; + close_lte?: InputMaybe; + close_not?: InputMaybe; + close_not_in?: InputMaybe>; + high?: InputMaybe; + high_gt?: InputMaybe; + high_gte?: InputMaybe; + high_in?: InputMaybe>; + high_lt?: InputMaybe; + high_lte?: InputMaybe; + high_not?: InputMaybe; + high_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + longVolume?: InputMaybe; + longVolume_gt?: InputMaybe; + longVolume_gte?: InputMaybe; + longVolume_in?: InputMaybe>; + longVolume_lt?: InputMaybe; + longVolume_lte?: InputMaybe; + longVolume_not?: InputMaybe; + longVolume_not_in?: InputMaybe>; + low?: InputMaybe; + low_gt?: InputMaybe; + low_gte?: InputMaybe; + low_in?: InputMaybe>; + low_lt?: InputMaybe; + low_lte?: InputMaybe; + low_not?: InputMaybe; + low_not_in?: InputMaybe>; + open?: InputMaybe; + open_gt?: InputMaybe; + open_gte?: InputMaybe; + open_in?: InputMaybe>; + open_lt?: InputMaybe; + open_lte?: InputMaybe; + open_not?: InputMaybe; + open_not_in?: InputMaybe>; + oraclePriceClose?: InputMaybe; + oraclePriceClose_gt?: InputMaybe; + oraclePriceClose_gte?: InputMaybe; + oraclePriceClose_in?: InputMaybe>; + oraclePriceClose_lt?: InputMaybe; + oraclePriceClose_lte?: InputMaybe; + oraclePriceClose_not?: InputMaybe; + oraclePriceClose_not_in?: InputMaybe>; + oraclePriceHigh?: InputMaybe; + oraclePriceHigh_gt?: InputMaybe; + oraclePriceHigh_gte?: InputMaybe; + oraclePriceHigh_in?: InputMaybe>; + oraclePriceHigh_lt?: InputMaybe; + oraclePriceHigh_lte?: InputMaybe; + oraclePriceHigh_not?: InputMaybe; + oraclePriceHigh_not_in?: InputMaybe>; + oraclePriceLow?: InputMaybe; + oraclePriceLow_gt?: InputMaybe; + oraclePriceLow_gte?: InputMaybe; + oraclePriceLow_in?: InputMaybe>; + oraclePriceLow_lt?: InputMaybe; + oraclePriceLow_lte?: InputMaybe; + oraclePriceLow_not?: InputMaybe; + oraclePriceLow_not_in?: InputMaybe>; + oraclePriceOpen?: InputMaybe; + oraclePriceOpen_gt?: InputMaybe; + oraclePriceOpen_gte?: InputMaybe; + oraclePriceOpen_in?: InputMaybe>; + oraclePriceOpen_lt?: InputMaybe; + oraclePriceOpen_lte?: InputMaybe; + oraclePriceOpen_not?: InputMaybe; + oraclePriceOpen_not_in?: InputMaybe>; + periodStartUnix?: InputMaybe; + periodStartUnix_gt?: InputMaybe; + periodStartUnix_gte?: InputMaybe; + periodStartUnix_in?: InputMaybe>; + periodStartUnix_lt?: InputMaybe; + periodStartUnix_lte?: InputMaybe; + periodStartUnix_not?: InputMaybe; + periodStartUnix_not_in?: InputMaybe>; + perpetual?: InputMaybe; + perpetual_?: InputMaybe; + perpetual_contains?: InputMaybe; + perpetual_contains_nocase?: InputMaybe; + perpetual_ends_with?: InputMaybe; + perpetual_ends_with_nocase?: InputMaybe; + perpetual_gt?: InputMaybe; + perpetual_gte?: InputMaybe; + perpetual_in?: InputMaybe>; + perpetual_lt?: InputMaybe; + perpetual_lte?: InputMaybe; + perpetual_not?: InputMaybe; + perpetual_not_contains?: InputMaybe; + perpetual_not_contains_nocase?: InputMaybe; + perpetual_not_ends_with?: InputMaybe; + perpetual_not_ends_with_nocase?: InputMaybe; + perpetual_not_in?: InputMaybe>; + perpetual_not_starts_with?: InputMaybe; + perpetual_not_starts_with_nocase?: InputMaybe; + perpetual_starts_with?: InputMaybe; + perpetual_starts_with_nocase?: InputMaybe; + shortVolume?: InputMaybe; + shortVolume_gt?: InputMaybe; + shortVolume_gte?: InputMaybe; + shortVolume_in?: InputMaybe>; + shortVolume_lt?: InputMaybe; + shortVolume_lte?: InputMaybe; + shortVolume_not?: InputMaybe; + shortVolume_not_in?: InputMaybe>; + totalVolume?: InputMaybe; + totalVolume_gt?: InputMaybe; + totalVolume_gte?: InputMaybe; + totalVolume_in?: InputMaybe>; + totalVolume_lt?: InputMaybe; + totalVolume_lte?: InputMaybe; + totalVolume_not?: InputMaybe; + totalVolume_not_in?: InputMaybe>; + txCount?: InputMaybe; + txCount_gt?: InputMaybe; + txCount_gte?: InputMaybe; + txCount_in?: InputMaybe>; + txCount_lt?: InputMaybe; + txCount_lte?: InputMaybe; + txCount_not?: InputMaybe; + txCount_not_in?: InputMaybe>; +}; + +export enum CandleSticksHour_OrderBy { + Close = 'close', + High = 'high', + Id = 'id', + LongVolume = 'longVolume', + Low = 'low', + Open = 'open', + OraclePriceClose = 'oraclePriceClose', + OraclePriceHigh = 'oraclePriceHigh', + OraclePriceLow = 'oraclePriceLow', + OraclePriceOpen = 'oraclePriceOpen', + PeriodStartUnix = 'periodStartUnix', + Perpetual = 'perpetual', + ShortVolume = 'shortVolume', + TotalVolume = 'totalVolume', + TxCount = 'txCount', +} + +export type CandleSticksMinute = { + __typename?: 'CandleSticksMinute'; + close: Scalars['BigDecimal']; + high: Scalars['BigDecimal']; + id: Scalars['ID']; + longVolume: Scalars['BigDecimal']; + low: Scalars['BigDecimal']; + open?: Maybe; + oraclePriceClose: Scalars['BigDecimal']; + oraclePriceHigh: Scalars['BigDecimal']; + oraclePriceLow: Scalars['BigDecimal']; + oraclePriceOpen: Scalars['BigDecimal']; + periodStartUnix: Scalars['Int']; + perpetual: Perpetual; + shortVolume: Scalars['BigDecimal']; + totalVolume: Scalars['BigDecimal']; + txCount: Scalars['Int']; +}; + +export type CandleSticksMinute_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + close?: InputMaybe; + close_gt?: InputMaybe; + close_gte?: InputMaybe; + close_in?: InputMaybe>; + close_lt?: InputMaybe; + close_lte?: InputMaybe; + close_not?: InputMaybe; + close_not_in?: InputMaybe>; + high?: InputMaybe; + high_gt?: InputMaybe; + high_gte?: InputMaybe; + high_in?: InputMaybe>; + high_lt?: InputMaybe; + high_lte?: InputMaybe; + high_not?: InputMaybe; + high_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + longVolume?: InputMaybe; + longVolume_gt?: InputMaybe; + longVolume_gte?: InputMaybe; + longVolume_in?: InputMaybe>; + longVolume_lt?: InputMaybe; + longVolume_lte?: InputMaybe; + longVolume_not?: InputMaybe; + longVolume_not_in?: InputMaybe>; + low?: InputMaybe; + low_gt?: InputMaybe; + low_gte?: InputMaybe; + low_in?: InputMaybe>; + low_lt?: InputMaybe; + low_lte?: InputMaybe; + low_not?: InputMaybe; + low_not_in?: InputMaybe>; + open?: InputMaybe; + open_gt?: InputMaybe; + open_gte?: InputMaybe; + open_in?: InputMaybe>; + open_lt?: InputMaybe; + open_lte?: InputMaybe; + open_not?: InputMaybe; + open_not_in?: InputMaybe>; + oraclePriceClose?: InputMaybe; + oraclePriceClose_gt?: InputMaybe; + oraclePriceClose_gte?: InputMaybe; + oraclePriceClose_in?: InputMaybe>; + oraclePriceClose_lt?: InputMaybe; + oraclePriceClose_lte?: InputMaybe; + oraclePriceClose_not?: InputMaybe; + oraclePriceClose_not_in?: InputMaybe>; + oraclePriceHigh?: InputMaybe; + oraclePriceHigh_gt?: InputMaybe; + oraclePriceHigh_gte?: InputMaybe; + oraclePriceHigh_in?: InputMaybe>; + oraclePriceHigh_lt?: InputMaybe; + oraclePriceHigh_lte?: InputMaybe; + oraclePriceHigh_not?: InputMaybe; + oraclePriceHigh_not_in?: InputMaybe>; + oraclePriceLow?: InputMaybe; + oraclePriceLow_gt?: InputMaybe; + oraclePriceLow_gte?: InputMaybe; + oraclePriceLow_in?: InputMaybe>; + oraclePriceLow_lt?: InputMaybe; + oraclePriceLow_lte?: InputMaybe; + oraclePriceLow_not?: InputMaybe; + oraclePriceLow_not_in?: InputMaybe>; + oraclePriceOpen?: InputMaybe; + oraclePriceOpen_gt?: InputMaybe; + oraclePriceOpen_gte?: InputMaybe; + oraclePriceOpen_in?: InputMaybe>; + oraclePriceOpen_lt?: InputMaybe; + oraclePriceOpen_lte?: InputMaybe; + oraclePriceOpen_not?: InputMaybe; + oraclePriceOpen_not_in?: InputMaybe>; + periodStartUnix?: InputMaybe; + periodStartUnix_gt?: InputMaybe; + periodStartUnix_gte?: InputMaybe; + periodStartUnix_in?: InputMaybe>; + periodStartUnix_lt?: InputMaybe; + periodStartUnix_lte?: InputMaybe; + periodStartUnix_not?: InputMaybe; + periodStartUnix_not_in?: InputMaybe>; + perpetual?: InputMaybe; + perpetual_?: InputMaybe; + perpetual_contains?: InputMaybe; + perpetual_contains_nocase?: InputMaybe; + perpetual_ends_with?: InputMaybe; + perpetual_ends_with_nocase?: InputMaybe; + perpetual_gt?: InputMaybe; + perpetual_gte?: InputMaybe; + perpetual_in?: InputMaybe>; + perpetual_lt?: InputMaybe; + perpetual_lte?: InputMaybe; + perpetual_not?: InputMaybe; + perpetual_not_contains?: InputMaybe; + perpetual_not_contains_nocase?: InputMaybe; + perpetual_not_ends_with?: InputMaybe; + perpetual_not_ends_with_nocase?: InputMaybe; + perpetual_not_in?: InputMaybe>; + perpetual_not_starts_with?: InputMaybe; + perpetual_not_starts_with_nocase?: InputMaybe; + perpetual_starts_with?: InputMaybe; + perpetual_starts_with_nocase?: InputMaybe; + shortVolume?: InputMaybe; + shortVolume_gt?: InputMaybe; + shortVolume_gte?: InputMaybe; + shortVolume_in?: InputMaybe>; + shortVolume_lt?: InputMaybe; + shortVolume_lte?: InputMaybe; + shortVolume_not?: InputMaybe; + shortVolume_not_in?: InputMaybe>; + totalVolume?: InputMaybe; + totalVolume_gt?: InputMaybe; + totalVolume_gte?: InputMaybe; + totalVolume_in?: InputMaybe>; + totalVolume_lt?: InputMaybe; + totalVolume_lte?: InputMaybe; + totalVolume_not?: InputMaybe; + totalVolume_not_in?: InputMaybe>; + txCount?: InputMaybe; + txCount_gt?: InputMaybe; + txCount_gte?: InputMaybe; + txCount_in?: InputMaybe>; + txCount_lt?: InputMaybe; + txCount_lte?: InputMaybe; + txCount_not?: InputMaybe; + txCount_not_in?: InputMaybe>; +}; + +export enum CandleSticksMinute_OrderBy { + Close = 'close', + High = 'high', + Id = 'id', + LongVolume = 'longVolume', + Low = 'low', + Open = 'open', + OraclePriceClose = 'oraclePriceClose', + OraclePriceHigh = 'oraclePriceHigh', + OraclePriceLow = 'oraclePriceLow', + OraclePriceOpen = 'oraclePriceOpen', + PeriodStartUnix = 'periodStartUnix', + Perpetual = 'perpetual', + ShortVolume = 'shortVolume', + TotalVolume = 'totalVolume', + TxCount = 'txCount', +} + +export type Clear = { + __typename?: 'Clear'; + id: Scalars['ID']; + perpetualId: Scalars['Bytes']; + trader: Scalars['Bytes']; +}; + +export type Clear_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + perpetualId?: InputMaybe; + perpetualId_contains?: InputMaybe; + perpetualId_in?: InputMaybe>; + perpetualId_not?: InputMaybe; + perpetualId_not_contains?: InputMaybe; + perpetualId_not_in?: InputMaybe>; + trader?: InputMaybe; + trader_contains?: InputMaybe; + trader_in?: InputMaybe>; + trader_not?: InputMaybe; + trader_not_contains?: InputMaybe; + trader_not_in?: InputMaybe>; +}; + +export enum Clear_OrderBy { + Id = 'id', + PerpetualId = 'perpetualId', + Trader = 'trader', +} + +export type DistributeFee = { + __typename?: 'DistributeFee'; + blockTimestamp: Scalars['BigInt']; + id: Scalars['ID']; + liquidityPool: LiquidityPool; + participationFundFeeCC: Scalars['BigInt']; + perpetual: Perpetual; + protocolFeeCC: Scalars['BigInt']; + trader: Trader; +}; + +export type DistributeFee_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + blockTimestamp?: InputMaybe; + blockTimestamp_gt?: InputMaybe; + blockTimestamp_gte?: InputMaybe; + blockTimestamp_in?: InputMaybe>; + blockTimestamp_lt?: InputMaybe; + blockTimestamp_lte?: InputMaybe; + blockTimestamp_not?: InputMaybe; + blockTimestamp_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + liquidityPool?: InputMaybe; + liquidityPool_?: InputMaybe; + liquidityPool_contains?: InputMaybe; + liquidityPool_contains_nocase?: InputMaybe; + liquidityPool_ends_with?: InputMaybe; + liquidityPool_ends_with_nocase?: InputMaybe; + liquidityPool_gt?: InputMaybe; + liquidityPool_gte?: InputMaybe; + liquidityPool_in?: InputMaybe>; + liquidityPool_lt?: InputMaybe; + liquidityPool_lte?: InputMaybe; + liquidityPool_not?: InputMaybe; + liquidityPool_not_contains?: InputMaybe; + liquidityPool_not_contains_nocase?: InputMaybe; + liquidityPool_not_ends_with?: InputMaybe; + liquidityPool_not_ends_with_nocase?: InputMaybe; + liquidityPool_not_in?: InputMaybe>; + liquidityPool_not_starts_with?: InputMaybe; + liquidityPool_not_starts_with_nocase?: InputMaybe; + liquidityPool_starts_with?: InputMaybe; + liquidityPool_starts_with_nocase?: InputMaybe; + participationFundFeeCC?: InputMaybe; + participationFundFeeCC_gt?: InputMaybe; + participationFundFeeCC_gte?: InputMaybe; + participationFundFeeCC_in?: InputMaybe>; + participationFundFeeCC_lt?: InputMaybe; + participationFundFeeCC_lte?: InputMaybe; + participationFundFeeCC_not?: InputMaybe; + participationFundFeeCC_not_in?: InputMaybe>; + perpetual?: InputMaybe; + perpetual_?: InputMaybe; + perpetual_contains?: InputMaybe; + perpetual_contains_nocase?: InputMaybe; + perpetual_ends_with?: InputMaybe; + perpetual_ends_with_nocase?: InputMaybe; + perpetual_gt?: InputMaybe; + perpetual_gte?: InputMaybe; + perpetual_in?: InputMaybe>; + perpetual_lt?: InputMaybe; + perpetual_lte?: InputMaybe; + perpetual_not?: InputMaybe; + perpetual_not_contains?: InputMaybe; + perpetual_not_contains_nocase?: InputMaybe; + perpetual_not_ends_with?: InputMaybe; + perpetual_not_ends_with_nocase?: InputMaybe; + perpetual_not_in?: InputMaybe>; + perpetual_not_starts_with?: InputMaybe; + perpetual_not_starts_with_nocase?: InputMaybe; + perpetual_starts_with?: InputMaybe; + perpetual_starts_with_nocase?: InputMaybe; + protocolFeeCC?: InputMaybe; + protocolFeeCC_gt?: InputMaybe; + protocolFeeCC_gte?: InputMaybe; + protocolFeeCC_in?: InputMaybe>; + protocolFeeCC_lt?: InputMaybe; + protocolFeeCC_lte?: InputMaybe; + protocolFeeCC_not?: InputMaybe; + protocolFeeCC_not_in?: InputMaybe>; + trader?: InputMaybe; + trader_?: InputMaybe; + trader_contains?: InputMaybe; + trader_contains_nocase?: InputMaybe; + trader_ends_with?: InputMaybe; + trader_ends_with_nocase?: InputMaybe; + trader_gt?: InputMaybe; + trader_gte?: InputMaybe; + trader_in?: InputMaybe>; + trader_lt?: InputMaybe; + trader_lte?: InputMaybe; + trader_not?: InputMaybe; + trader_not_contains?: InputMaybe; + trader_not_contains_nocase?: InputMaybe; + trader_not_ends_with?: InputMaybe; + trader_not_ends_with_nocase?: InputMaybe; + trader_not_in?: InputMaybe>; + trader_not_starts_with?: InputMaybe; + trader_not_starts_with_nocase?: InputMaybe; + trader_starts_with?: InputMaybe; + trader_starts_with_nocase?: InputMaybe; +}; + +export enum DistributeFee_OrderBy { + BlockTimestamp = 'blockTimestamp', + Id = 'id', + LiquidityPool = 'liquidityPool', + ParticipationFundFeeCc = 'participationFundFeeCC', + Perpetual = 'perpetual', + ProtocolFeeCc = 'protocolFeeCC', + Trader = 'trader', +} + +export type Fund = { + __typename?: 'Fund'; + cash: Scalars['BigInt']; + createdAtBlockNumber: Scalars['BigInt']; + createdAtTimestamp: Scalars['BigInt']; + id: Scalars['ID']; + liquidityPool?: Maybe; + targetSize: Scalars['BigInt']; + type: FundType; + updatedAtBlockNumber: Scalars['BigInt']; + updatedAtTimestamp: Scalars['BigInt']; +}; + +export enum FundType { + AmmFund = 'AMMFund', + DefaultFund = 'DefaultFund', + ParticipationFund = 'ParticipationFund', +} + +export type Fund_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + cash?: InputMaybe; + cash_gt?: InputMaybe; + cash_gte?: InputMaybe; + cash_in?: InputMaybe>; + cash_lt?: InputMaybe; + cash_lte?: InputMaybe; + cash_not?: InputMaybe; + cash_not_in?: InputMaybe>; + createdAtBlockNumber?: InputMaybe; + createdAtBlockNumber_gt?: InputMaybe; + createdAtBlockNumber_gte?: InputMaybe; + createdAtBlockNumber_in?: InputMaybe>; + createdAtBlockNumber_lt?: InputMaybe; + createdAtBlockNumber_lte?: InputMaybe; + createdAtBlockNumber_not?: InputMaybe; + createdAtBlockNumber_not_in?: InputMaybe>; + createdAtTimestamp?: InputMaybe; + createdAtTimestamp_gt?: InputMaybe; + createdAtTimestamp_gte?: InputMaybe; + createdAtTimestamp_in?: InputMaybe>; + createdAtTimestamp_lt?: InputMaybe; + createdAtTimestamp_lte?: InputMaybe; + createdAtTimestamp_not?: InputMaybe; + createdAtTimestamp_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + liquidityPool?: InputMaybe; + liquidityPool_?: InputMaybe; + liquidityPool_contains?: InputMaybe; + liquidityPool_contains_nocase?: InputMaybe; + liquidityPool_ends_with?: InputMaybe; + liquidityPool_ends_with_nocase?: InputMaybe; + liquidityPool_gt?: InputMaybe; + liquidityPool_gte?: InputMaybe; + liquidityPool_in?: InputMaybe>; + liquidityPool_lt?: InputMaybe; + liquidityPool_lte?: InputMaybe; + liquidityPool_not?: InputMaybe; + liquidityPool_not_contains?: InputMaybe; + liquidityPool_not_contains_nocase?: InputMaybe; + liquidityPool_not_ends_with?: InputMaybe; + liquidityPool_not_ends_with_nocase?: InputMaybe; + liquidityPool_not_in?: InputMaybe>; + liquidityPool_not_starts_with?: InputMaybe; + liquidityPool_not_starts_with_nocase?: InputMaybe; + liquidityPool_starts_with?: InputMaybe; + liquidityPool_starts_with_nocase?: InputMaybe; + targetSize?: InputMaybe; + targetSize_gt?: InputMaybe; + targetSize_gte?: InputMaybe; + targetSize_in?: InputMaybe>; + targetSize_lt?: InputMaybe; + targetSize_lte?: InputMaybe; + targetSize_not?: InputMaybe; + targetSize_not_in?: InputMaybe>; + type?: InputMaybe; + type_in?: InputMaybe>; + type_not?: InputMaybe; + type_not_in?: InputMaybe>; + updatedAtBlockNumber?: InputMaybe; + updatedAtBlockNumber_gt?: InputMaybe; + updatedAtBlockNumber_gte?: InputMaybe; + updatedAtBlockNumber_in?: InputMaybe>; + updatedAtBlockNumber_lt?: InputMaybe; + updatedAtBlockNumber_lte?: InputMaybe; + updatedAtBlockNumber_not?: InputMaybe; + updatedAtBlockNumber_not_in?: InputMaybe>; + updatedAtTimestamp?: InputMaybe; + updatedAtTimestamp_gt?: InputMaybe; + updatedAtTimestamp_gte?: InputMaybe; + updatedAtTimestamp_in?: InputMaybe>; + updatedAtTimestamp_lt?: InputMaybe; + updatedAtTimestamp_lte?: InputMaybe; + updatedAtTimestamp_not?: InputMaybe; + updatedAtTimestamp_not_in?: InputMaybe>; +}; + +export enum Fund_OrderBy { + Cash = 'cash', + CreatedAtBlockNumber = 'createdAtBlockNumber', + CreatedAtTimestamp = 'createdAtTimestamp', + Id = 'id', + LiquidityPool = 'liquidityPool', + TargetSize = 'targetSize', + Type = 'type', + UpdatedAtBlockNumber = 'updatedAtBlockNumber', + UpdatedAtTimestamp = 'updatedAtTimestamp', +} + +export type FundingPayment = { + __typename?: 'FundingPayment'; + fundingRates?: Maybe>; + id: Scalars['ID']; + lastBlockTimestamp: Scalars['BigInt']; + position: Position; + trader: Trader; +}; + +export type FundingPaymentFundingRatesArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +export type FundingPayment_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + fundingRates_?: InputMaybe; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + lastBlockTimestamp?: InputMaybe; + lastBlockTimestamp_gt?: InputMaybe; + lastBlockTimestamp_gte?: InputMaybe; + lastBlockTimestamp_in?: InputMaybe>; + lastBlockTimestamp_lt?: InputMaybe; + lastBlockTimestamp_lte?: InputMaybe; + lastBlockTimestamp_not?: InputMaybe; + lastBlockTimestamp_not_in?: InputMaybe>; + position?: InputMaybe; + position_?: InputMaybe; + position_contains?: InputMaybe; + position_contains_nocase?: InputMaybe; + position_ends_with?: InputMaybe; + position_ends_with_nocase?: InputMaybe; + position_gt?: InputMaybe; + position_gte?: InputMaybe; + position_in?: InputMaybe>; + position_lt?: InputMaybe; + position_lte?: InputMaybe; + position_not?: InputMaybe; + position_not_contains?: InputMaybe; + position_not_contains_nocase?: InputMaybe; + position_not_ends_with?: InputMaybe; + position_not_ends_with_nocase?: InputMaybe; + position_not_in?: InputMaybe>; + position_not_starts_with?: InputMaybe; + position_not_starts_with_nocase?: InputMaybe; + position_starts_with?: InputMaybe; + position_starts_with_nocase?: InputMaybe; + trader?: InputMaybe; + trader_?: InputMaybe; + trader_contains?: InputMaybe; + trader_contains_nocase?: InputMaybe; + trader_ends_with?: InputMaybe; + trader_ends_with_nocase?: InputMaybe; + trader_gt?: InputMaybe; + trader_gte?: InputMaybe; + trader_in?: InputMaybe>; + trader_lt?: InputMaybe; + trader_lte?: InputMaybe; + trader_not?: InputMaybe; + trader_not_contains?: InputMaybe; + trader_not_contains_nocase?: InputMaybe; + trader_not_ends_with?: InputMaybe; + trader_not_ends_with_nocase?: InputMaybe; + trader_not_in?: InputMaybe>; + trader_not_starts_with?: InputMaybe; + trader_not_starts_with_nocase?: InputMaybe; + trader_starts_with?: InputMaybe; + trader_starts_with_nocase?: InputMaybe; +}; + +export enum FundingPayment_OrderBy { + FundingRates = 'fundingRates', + Id = 'id', + LastBlockTimestamp = 'lastBlockTimestamp', + Position = 'position', + Trader = 'trader', +} + +export type FundingRate = { + __typename?: 'FundingRate'; + blockTimestamp: Scalars['BigInt']; + deltaTime: Scalars['BigInt']; + fFundingPaymentCC: Scalars['BigInt']; + fPositionBC: Scalars['BigInt']; + fundingPayment: FundingPayment; + fundingRate: Scalars['BigInt']; + fundingTime: Scalars['BigInt']; + id: Scalars['ID']; + rate8h: Scalars['BigInt']; + trader: Trader; +}; + +export type FundingRate_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + blockTimestamp?: InputMaybe; + blockTimestamp_gt?: InputMaybe; + blockTimestamp_gte?: InputMaybe; + blockTimestamp_in?: InputMaybe>; + blockTimestamp_lt?: InputMaybe; + blockTimestamp_lte?: InputMaybe; + blockTimestamp_not?: InputMaybe; + blockTimestamp_not_in?: InputMaybe>; + deltaTime?: InputMaybe; + deltaTime_gt?: InputMaybe; + deltaTime_gte?: InputMaybe; + deltaTime_in?: InputMaybe>; + deltaTime_lt?: InputMaybe; + deltaTime_lte?: InputMaybe; + deltaTime_not?: InputMaybe; + deltaTime_not_in?: InputMaybe>; + fFundingPaymentCC?: InputMaybe; + fFundingPaymentCC_gt?: InputMaybe; + fFundingPaymentCC_gte?: InputMaybe; + fFundingPaymentCC_in?: InputMaybe>; + fFundingPaymentCC_lt?: InputMaybe; + fFundingPaymentCC_lte?: InputMaybe; + fFundingPaymentCC_not?: InputMaybe; + fFundingPaymentCC_not_in?: InputMaybe>; + fPositionBC?: InputMaybe; + fPositionBC_gt?: InputMaybe; + fPositionBC_gte?: InputMaybe; + fPositionBC_in?: InputMaybe>; + fPositionBC_lt?: InputMaybe; + fPositionBC_lte?: InputMaybe; + fPositionBC_not?: InputMaybe; + fPositionBC_not_in?: InputMaybe>; + fundingPayment?: InputMaybe; + fundingPayment_?: InputMaybe; + fundingPayment_contains?: InputMaybe; + fundingPayment_contains_nocase?: InputMaybe; + fundingPayment_ends_with?: InputMaybe; + fundingPayment_ends_with_nocase?: InputMaybe; + fundingPayment_gt?: InputMaybe; + fundingPayment_gte?: InputMaybe; + fundingPayment_in?: InputMaybe>; + fundingPayment_lt?: InputMaybe; + fundingPayment_lte?: InputMaybe; + fundingPayment_not?: InputMaybe; + fundingPayment_not_contains?: InputMaybe; + fundingPayment_not_contains_nocase?: InputMaybe; + fundingPayment_not_ends_with?: InputMaybe; + fundingPayment_not_ends_with_nocase?: InputMaybe; + fundingPayment_not_in?: InputMaybe>; + fundingPayment_not_starts_with?: InputMaybe; + fundingPayment_not_starts_with_nocase?: InputMaybe; + fundingPayment_starts_with?: InputMaybe; + fundingPayment_starts_with_nocase?: InputMaybe; + fundingRate?: InputMaybe; + fundingRate_gt?: InputMaybe; + fundingRate_gte?: InputMaybe; + fundingRate_in?: InputMaybe>; + fundingRate_lt?: InputMaybe; + fundingRate_lte?: InputMaybe; + fundingRate_not?: InputMaybe; + fundingRate_not_in?: InputMaybe>; + fundingTime?: InputMaybe; + fundingTime_gt?: InputMaybe; + fundingTime_gte?: InputMaybe; + fundingTime_in?: InputMaybe>; + fundingTime_lt?: InputMaybe; + fundingTime_lte?: InputMaybe; + fundingTime_not?: InputMaybe; + fundingTime_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + rate8h?: InputMaybe; + rate8h_gt?: InputMaybe; + rate8h_gte?: InputMaybe; + rate8h_in?: InputMaybe>; + rate8h_lt?: InputMaybe; + rate8h_lte?: InputMaybe; + rate8h_not?: InputMaybe; + rate8h_not_in?: InputMaybe>; + trader?: InputMaybe; + trader_?: InputMaybe; + trader_contains?: InputMaybe; + trader_contains_nocase?: InputMaybe; + trader_ends_with?: InputMaybe; + trader_ends_with_nocase?: InputMaybe; + trader_gt?: InputMaybe; + trader_gte?: InputMaybe; + trader_in?: InputMaybe>; + trader_lt?: InputMaybe; + trader_lte?: InputMaybe; + trader_not?: InputMaybe; + trader_not_contains?: InputMaybe; + trader_not_contains_nocase?: InputMaybe; + trader_not_ends_with?: InputMaybe; + trader_not_ends_with_nocase?: InputMaybe; + trader_not_in?: InputMaybe>; + trader_not_starts_with?: InputMaybe; + trader_not_starts_with_nocase?: InputMaybe; + trader_starts_with?: InputMaybe; + trader_starts_with_nocase?: InputMaybe; +}; + +export enum FundingRate_OrderBy { + BlockTimestamp = 'blockTimestamp', + DeltaTime = 'deltaTime', + FFundingPaymentCc = 'fFundingPaymentCC', + FPositionBc = 'fPositionBC', + FundingPayment = 'fundingPayment', + FundingRate = 'fundingRate', + FundingTime = 'fundingTime', + Id = 'id', + Rate8h = 'rate8h', + Trader = 'trader', +} + +export type ImplementationChanged = { + __typename?: 'ImplementationChanged'; + _newImplementation: Scalars['Bytes']; + _oldImplementation: Scalars['Bytes']; + _sig: Scalars['Bytes']; + id: Scalars['ID']; +}; + +export type ImplementationChanged_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + _newImplementation?: InputMaybe; + _newImplementation_contains?: InputMaybe; + _newImplementation_in?: InputMaybe>; + _newImplementation_not?: InputMaybe; + _newImplementation_not_contains?: InputMaybe; + _newImplementation_not_in?: InputMaybe>; + _oldImplementation?: InputMaybe; + _oldImplementation_contains?: InputMaybe; + _oldImplementation_in?: InputMaybe>; + _oldImplementation_not?: InputMaybe; + _oldImplementation_not_contains?: InputMaybe; + _oldImplementation_not_in?: InputMaybe>; + _sig?: InputMaybe; + _sig_contains?: InputMaybe; + _sig_in?: InputMaybe>; + _sig_not?: InputMaybe; + _sig_not_contains?: InputMaybe; + _sig_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; +}; + +export enum ImplementationChanged_OrderBy { + NewImplementation = '_newImplementation', + OldImplementation = '_oldImplementation', + Sig = '_sig', + Id = 'id', +} + +export type LimitOrder = { + __typename?: 'LimitOrder'; + createdTimestamp: Scalars['BigInt']; + createdTransactionHash: Scalars['Bytes']; + deadline: Scalars['BigInt']; + digest: Scalars['Bytes']; + flags: Scalars['BigInt']; + id: Scalars['ID']; + leverage: Scalars['BigInt']; + limitPrice: Scalars['BigInt']; + perpetual: Perpetual; + referrerAddr?: Maybe; + state: LimitOrderState; + tradeAmount: Scalars['BigInt']; + trader: Trader; + triggerPrice: Scalars['BigInt']; +}; + +export enum LimitOrderState { + Active = 'Active', + Cancelled = 'Cancelled', + Filled = 'Filled', +} + +export type LimitOrder_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + createdTimestamp?: InputMaybe; + createdTimestamp_gt?: InputMaybe; + createdTimestamp_gte?: InputMaybe; + createdTimestamp_in?: InputMaybe>; + createdTimestamp_lt?: InputMaybe; + createdTimestamp_lte?: InputMaybe; + createdTimestamp_not?: InputMaybe; + createdTimestamp_not_in?: InputMaybe>; + createdTransactionHash?: InputMaybe; + createdTransactionHash_contains?: InputMaybe; + createdTransactionHash_in?: InputMaybe>; + createdTransactionHash_not?: InputMaybe; + createdTransactionHash_not_contains?: InputMaybe; + createdTransactionHash_not_in?: InputMaybe>; + deadline?: InputMaybe; + deadline_gt?: InputMaybe; + deadline_gte?: InputMaybe; + deadline_in?: InputMaybe>; + deadline_lt?: InputMaybe; + deadline_lte?: InputMaybe; + deadline_not?: InputMaybe; + deadline_not_in?: InputMaybe>; + digest?: InputMaybe; + digest_contains?: InputMaybe; + digest_in?: InputMaybe>; + digest_not?: InputMaybe; + digest_not_contains?: InputMaybe; + digest_not_in?: InputMaybe>; + flags?: InputMaybe; + flags_gt?: InputMaybe; + flags_gte?: InputMaybe; + flags_in?: InputMaybe>; + flags_lt?: InputMaybe; + flags_lte?: InputMaybe; + flags_not?: InputMaybe; + flags_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + leverage?: InputMaybe; + leverage_gt?: InputMaybe; + leverage_gte?: InputMaybe; + leverage_in?: InputMaybe>; + leverage_lt?: InputMaybe; + leverage_lte?: InputMaybe; + leverage_not?: InputMaybe; + leverage_not_in?: InputMaybe>; + limitPrice?: InputMaybe; + limitPrice_gt?: InputMaybe; + limitPrice_gte?: InputMaybe; + limitPrice_in?: InputMaybe>; + limitPrice_lt?: InputMaybe; + limitPrice_lte?: InputMaybe; + limitPrice_not?: InputMaybe; + limitPrice_not_in?: InputMaybe>; + perpetual?: InputMaybe; + perpetual_?: InputMaybe; + perpetual_contains?: InputMaybe; + perpetual_contains_nocase?: InputMaybe; + perpetual_ends_with?: InputMaybe; + perpetual_ends_with_nocase?: InputMaybe; + perpetual_gt?: InputMaybe; + perpetual_gte?: InputMaybe; + perpetual_in?: InputMaybe>; + perpetual_lt?: InputMaybe; + perpetual_lte?: InputMaybe; + perpetual_not?: InputMaybe; + perpetual_not_contains?: InputMaybe; + perpetual_not_contains_nocase?: InputMaybe; + perpetual_not_ends_with?: InputMaybe; + perpetual_not_ends_with_nocase?: InputMaybe; + perpetual_not_in?: InputMaybe>; + perpetual_not_starts_with?: InputMaybe; + perpetual_not_starts_with_nocase?: InputMaybe; + perpetual_starts_with?: InputMaybe; + perpetual_starts_with_nocase?: InputMaybe; + referrerAddr?: InputMaybe; + referrerAddr_?: InputMaybe; + referrerAddr_contains?: InputMaybe; + referrerAddr_contains_nocase?: InputMaybe; + referrerAddr_ends_with?: InputMaybe; + referrerAddr_ends_with_nocase?: InputMaybe; + referrerAddr_gt?: InputMaybe; + referrerAddr_gte?: InputMaybe; + referrerAddr_in?: InputMaybe>; + referrerAddr_lt?: InputMaybe; + referrerAddr_lte?: InputMaybe; + referrerAddr_not?: InputMaybe; + referrerAddr_not_contains?: InputMaybe; + referrerAddr_not_contains_nocase?: InputMaybe; + referrerAddr_not_ends_with?: InputMaybe; + referrerAddr_not_ends_with_nocase?: InputMaybe; + referrerAddr_not_in?: InputMaybe>; + referrerAddr_not_starts_with?: InputMaybe; + referrerAddr_not_starts_with_nocase?: InputMaybe; + referrerAddr_starts_with?: InputMaybe; + referrerAddr_starts_with_nocase?: InputMaybe; + state?: InputMaybe; + state_in?: InputMaybe>; + state_not?: InputMaybe; + state_not_in?: InputMaybe>; + tradeAmount?: InputMaybe; + tradeAmount_gt?: InputMaybe; + tradeAmount_gte?: InputMaybe; + tradeAmount_in?: InputMaybe>; + tradeAmount_lt?: InputMaybe; + tradeAmount_lte?: InputMaybe; + tradeAmount_not?: InputMaybe; + tradeAmount_not_in?: InputMaybe>; + trader?: InputMaybe; + trader_?: InputMaybe; + trader_contains?: InputMaybe; + trader_contains_nocase?: InputMaybe; + trader_ends_with?: InputMaybe; + trader_ends_with_nocase?: InputMaybe; + trader_gt?: InputMaybe; + trader_gte?: InputMaybe; + trader_in?: InputMaybe>; + trader_lt?: InputMaybe; + trader_lte?: InputMaybe; + trader_not?: InputMaybe; + trader_not_contains?: InputMaybe; + trader_not_contains_nocase?: InputMaybe; + trader_not_ends_with?: InputMaybe; + trader_not_ends_with_nocase?: InputMaybe; + trader_not_in?: InputMaybe>; + trader_not_starts_with?: InputMaybe; + trader_not_starts_with_nocase?: InputMaybe; + trader_starts_with?: InputMaybe; + trader_starts_with_nocase?: InputMaybe; + triggerPrice?: InputMaybe; + triggerPrice_gt?: InputMaybe; + triggerPrice_gte?: InputMaybe; + triggerPrice_in?: InputMaybe>; + triggerPrice_lt?: InputMaybe; + triggerPrice_lte?: InputMaybe; + triggerPrice_not?: InputMaybe; + triggerPrice_not_in?: InputMaybe>; +}; + +export enum LimitOrder_OrderBy { + CreatedTimestamp = 'createdTimestamp', + CreatedTransactionHash = 'createdTransactionHash', + Deadline = 'deadline', + Digest = 'digest', + Flags = 'flags', + Id = 'id', + Leverage = 'leverage', + LimitPrice = 'limitPrice', + Perpetual = 'perpetual', + ReferrerAddr = 'referrerAddr', + State = 'state', + TradeAmount = 'tradeAmount', + Trader = 'trader', + TriggerPrice = 'triggerPrice', +} + +export type Liquidate = { + __typename?: 'Liquidate'; + amountLiquidatedBC: Scalars['BigInt']; + blockTimestamp: Scalars['BigInt']; + id: Scalars['ID']; + liquidationPrice: Scalars['BigInt']; + liquidator: Trader; + newPositionSizeBC: Scalars['BigInt']; + perpetual: Perpetual; + position: Position; + trader: Trader; + transaction: Transaction; +}; + +export type Liquidate_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + amountLiquidatedBC?: InputMaybe; + amountLiquidatedBC_gt?: InputMaybe; + amountLiquidatedBC_gte?: InputMaybe; + amountLiquidatedBC_in?: InputMaybe>; + amountLiquidatedBC_lt?: InputMaybe; + amountLiquidatedBC_lte?: InputMaybe; + amountLiquidatedBC_not?: InputMaybe; + amountLiquidatedBC_not_in?: InputMaybe>; + blockTimestamp?: InputMaybe; + blockTimestamp_gt?: InputMaybe; + blockTimestamp_gte?: InputMaybe; + blockTimestamp_in?: InputMaybe>; + blockTimestamp_lt?: InputMaybe; + blockTimestamp_lte?: InputMaybe; + blockTimestamp_not?: InputMaybe; + blockTimestamp_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + liquidationPrice?: InputMaybe; + liquidationPrice_gt?: InputMaybe; + liquidationPrice_gte?: InputMaybe; + liquidationPrice_in?: InputMaybe>; + liquidationPrice_lt?: InputMaybe; + liquidationPrice_lte?: InputMaybe; + liquidationPrice_not?: InputMaybe; + liquidationPrice_not_in?: InputMaybe>; + liquidator?: InputMaybe; + liquidator_?: InputMaybe; + liquidator_contains?: InputMaybe; + liquidator_contains_nocase?: InputMaybe; + liquidator_ends_with?: InputMaybe; + liquidator_ends_with_nocase?: InputMaybe; + liquidator_gt?: InputMaybe; + liquidator_gte?: InputMaybe; + liquidator_in?: InputMaybe>; + liquidator_lt?: InputMaybe; + liquidator_lte?: InputMaybe; + liquidator_not?: InputMaybe; + liquidator_not_contains?: InputMaybe; + liquidator_not_contains_nocase?: InputMaybe; + liquidator_not_ends_with?: InputMaybe; + liquidator_not_ends_with_nocase?: InputMaybe; + liquidator_not_in?: InputMaybe>; + liquidator_not_starts_with?: InputMaybe; + liquidator_not_starts_with_nocase?: InputMaybe; + liquidator_starts_with?: InputMaybe; + liquidator_starts_with_nocase?: InputMaybe; + newPositionSizeBC?: InputMaybe; + newPositionSizeBC_gt?: InputMaybe; + newPositionSizeBC_gte?: InputMaybe; + newPositionSizeBC_in?: InputMaybe>; + newPositionSizeBC_lt?: InputMaybe; + newPositionSizeBC_lte?: InputMaybe; + newPositionSizeBC_not?: InputMaybe; + newPositionSizeBC_not_in?: InputMaybe>; + perpetual?: InputMaybe; + perpetual_?: InputMaybe; + perpetual_contains?: InputMaybe; + perpetual_contains_nocase?: InputMaybe; + perpetual_ends_with?: InputMaybe; + perpetual_ends_with_nocase?: InputMaybe; + perpetual_gt?: InputMaybe; + perpetual_gte?: InputMaybe; + perpetual_in?: InputMaybe>; + perpetual_lt?: InputMaybe; + perpetual_lte?: InputMaybe; + perpetual_not?: InputMaybe; + perpetual_not_contains?: InputMaybe; + perpetual_not_contains_nocase?: InputMaybe; + perpetual_not_ends_with?: InputMaybe; + perpetual_not_ends_with_nocase?: InputMaybe; + perpetual_not_in?: InputMaybe>; + perpetual_not_starts_with?: InputMaybe; + perpetual_not_starts_with_nocase?: InputMaybe; + perpetual_starts_with?: InputMaybe; + perpetual_starts_with_nocase?: InputMaybe; + position?: InputMaybe; + position_?: InputMaybe; + position_contains?: InputMaybe; + position_contains_nocase?: InputMaybe; + position_ends_with?: InputMaybe; + position_ends_with_nocase?: InputMaybe; + position_gt?: InputMaybe; + position_gte?: InputMaybe; + position_in?: InputMaybe>; + position_lt?: InputMaybe; + position_lte?: InputMaybe; + position_not?: InputMaybe; + position_not_contains?: InputMaybe; + position_not_contains_nocase?: InputMaybe; + position_not_ends_with?: InputMaybe; + position_not_ends_with_nocase?: InputMaybe; + position_not_in?: InputMaybe>; + position_not_starts_with?: InputMaybe; + position_not_starts_with_nocase?: InputMaybe; + position_starts_with?: InputMaybe; + position_starts_with_nocase?: InputMaybe; + trader?: InputMaybe; + trader_?: InputMaybe; + trader_contains?: InputMaybe; + trader_contains_nocase?: InputMaybe; + trader_ends_with?: InputMaybe; + trader_ends_with_nocase?: InputMaybe; + trader_gt?: InputMaybe; + trader_gte?: InputMaybe; + trader_in?: InputMaybe>; + trader_lt?: InputMaybe; + trader_lte?: InputMaybe; + trader_not?: InputMaybe; + trader_not_contains?: InputMaybe; + trader_not_contains_nocase?: InputMaybe; + trader_not_ends_with?: InputMaybe; + trader_not_ends_with_nocase?: InputMaybe; + trader_not_in?: InputMaybe>; + trader_not_starts_with?: InputMaybe; + trader_not_starts_with_nocase?: InputMaybe; + trader_starts_with?: InputMaybe; + trader_starts_with_nocase?: InputMaybe; + transaction?: InputMaybe; + transaction_?: InputMaybe; + transaction_contains?: InputMaybe; + transaction_contains_nocase?: InputMaybe; + transaction_ends_with?: InputMaybe; + transaction_ends_with_nocase?: InputMaybe; + transaction_gt?: InputMaybe; + transaction_gte?: InputMaybe; + transaction_in?: InputMaybe>; + transaction_lt?: InputMaybe; + transaction_lte?: InputMaybe; + transaction_not?: InputMaybe; + transaction_not_contains?: InputMaybe; + transaction_not_contains_nocase?: InputMaybe; + transaction_not_ends_with?: InputMaybe; + transaction_not_ends_with_nocase?: InputMaybe; + transaction_not_in?: InputMaybe>; + transaction_not_starts_with?: InputMaybe; + transaction_not_starts_with_nocase?: InputMaybe; + transaction_starts_with?: InputMaybe; + transaction_starts_with_nocase?: InputMaybe; +}; + +export enum Liquidate_OrderBy { + AmountLiquidatedBc = 'amountLiquidatedBC', + BlockTimestamp = 'blockTimestamp', + Id = 'id', + LiquidationPrice = 'liquidationPrice', + Liquidator = 'liquidator', + NewPositionSizeBc = 'newPositionSizeBC', + Perpetual = 'perpetual', + Position = 'position', + Trader = 'trader', + Transaction = 'transaction', +} + +export type LiquidityAdded = { + __typename?: 'LiquidityAdded'; + id: Scalars['ID']; + poolId: Scalars['BigInt']; + shareAmount: Scalars['BigInt']; + tokenAmount: Scalars['BigInt']; + user: Trader; +}; + +export type LiquidityAdded_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + poolId?: InputMaybe; + poolId_gt?: InputMaybe; + poolId_gte?: InputMaybe; + poolId_in?: InputMaybe>; + poolId_lt?: InputMaybe; + poolId_lte?: InputMaybe; + poolId_not?: InputMaybe; + poolId_not_in?: InputMaybe>; + shareAmount?: InputMaybe; + shareAmount_gt?: InputMaybe; + shareAmount_gte?: InputMaybe; + shareAmount_in?: InputMaybe>; + shareAmount_lt?: InputMaybe; + shareAmount_lte?: InputMaybe; + shareAmount_not?: InputMaybe; + shareAmount_not_in?: InputMaybe>; + tokenAmount?: InputMaybe; + tokenAmount_gt?: InputMaybe; + tokenAmount_gte?: InputMaybe; + tokenAmount_in?: InputMaybe>; + tokenAmount_lt?: InputMaybe; + tokenAmount_lte?: InputMaybe; + tokenAmount_not?: InputMaybe; + tokenAmount_not_in?: InputMaybe>; + user?: InputMaybe; + user_?: InputMaybe; + user_contains?: InputMaybe; + user_contains_nocase?: InputMaybe; + user_ends_with?: InputMaybe; + user_ends_with_nocase?: InputMaybe; + user_gt?: InputMaybe; + user_gte?: InputMaybe; + user_in?: InputMaybe>; + user_lt?: InputMaybe; + user_lte?: InputMaybe; + user_not?: InputMaybe; + user_not_contains?: InputMaybe; + user_not_contains_nocase?: InputMaybe; + user_not_ends_with?: InputMaybe; + user_not_ends_with_nocase?: InputMaybe; + user_not_in?: InputMaybe>; + user_not_starts_with?: InputMaybe; + user_not_starts_with_nocase?: InputMaybe; + user_starts_with?: InputMaybe; + user_starts_with_nocase?: InputMaybe; +}; + +export enum LiquidityAdded_OrderBy { + Id = 'id', + PoolId = 'poolId', + ShareAmount = 'shareAmount', + TokenAmount = 'tokenAmount', + User = 'user', +} + +export type LiquidityPool = { + __typename?: 'LiquidityPool'; + atomicYields?: Maybe>; + createdAtTx: Transaction; + distributeFees?: Maybe>; + fMaxTotalTraderFunds: Scalars['BigInt']; + fPnLparticipantWithdrawalMinAmountLimit: Scalars['BigInt']; + fPnLparticipantWithdrawalPercentageLimit: Scalars['BigInt']; + fPnLparticipantsCashCC: Scalars['BigInt']; + fRedemptionRate: Scalars['BigInt']; + funds?: Maybe>; + iActivePerpetualCount: Scalars['Int']; + iPerpetualCount: Scalars['Int']; + iPnLparticipantWithdrawalPeriod: Scalars['BigInt']; + iPriceUpdateTimeSec: Scalars['BigInt']; + iTargetPoolSizeUpdateTime: Scalars['BigInt']; + id: Scalars['ID']; + isRunning: Scalars['Boolean']; + marginToken: Token; + participationFundLastUpdated: Scalars['BigInt']; + perpetuals?: Maybe>; + shareToken: Token; + totalAmountDeposited: Scalars['BigInt']; + traderPools?: Maybe>; + treasuryAddress: Scalars['Bytes']; + updatedAtTx: Transaction; +}; + +export type LiquidityPoolAtomicYieldsArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +export type LiquidityPoolDistributeFeesArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +export type LiquidityPoolFundsArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +export type LiquidityPoolPerpetualsArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +export type LiquidityPoolTraderPoolsArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +export type LiquidityPoolCreated = { + __typename?: 'LiquidityPoolCreated'; + fPnLparticipantWithdrawalMinAmountLimit: Scalars['BigInt']; + fPnLparticipantWithdrawalPercentageLimit: Scalars['BigInt']; + iPnLparticipantWithdrawalPeriod: Scalars['BigInt']; + iTargetPoolSizeUpdateTime: Scalars['BigInt']; + id: Scalars['ID']; + marginToken: Token; + poolId: Scalars['Int']; + shareToken: Token; + treasuryAddress: Scalars['Bytes']; +}; + +export type LiquidityPoolCreated_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + fPnLparticipantWithdrawalMinAmountLimit?: InputMaybe; + fPnLparticipantWithdrawalMinAmountLimit_gt?: InputMaybe; + fPnLparticipantWithdrawalMinAmountLimit_gte?: InputMaybe; + fPnLparticipantWithdrawalMinAmountLimit_in?: InputMaybe< + Array + >; + fPnLparticipantWithdrawalMinAmountLimit_lt?: InputMaybe; + fPnLparticipantWithdrawalMinAmountLimit_lte?: InputMaybe; + fPnLparticipantWithdrawalMinAmountLimit_not?: InputMaybe; + fPnLparticipantWithdrawalMinAmountLimit_not_in?: InputMaybe< + Array + >; + fPnLparticipantWithdrawalPercentageLimit?: InputMaybe; + fPnLparticipantWithdrawalPercentageLimit_gt?: InputMaybe; + fPnLparticipantWithdrawalPercentageLimit_gte?: InputMaybe; + fPnLparticipantWithdrawalPercentageLimit_in?: InputMaybe< + Array + >; + fPnLparticipantWithdrawalPercentageLimit_lt?: InputMaybe; + fPnLparticipantWithdrawalPercentageLimit_lte?: InputMaybe; + fPnLparticipantWithdrawalPercentageLimit_not?: InputMaybe; + fPnLparticipantWithdrawalPercentageLimit_not_in?: InputMaybe< + Array + >; + iPnLparticipantWithdrawalPeriod?: InputMaybe; + iPnLparticipantWithdrawalPeriod_gt?: InputMaybe; + iPnLparticipantWithdrawalPeriod_gte?: InputMaybe; + iPnLparticipantWithdrawalPeriod_in?: InputMaybe>; + iPnLparticipantWithdrawalPeriod_lt?: InputMaybe; + iPnLparticipantWithdrawalPeriod_lte?: InputMaybe; + iPnLparticipantWithdrawalPeriod_not?: InputMaybe; + iPnLparticipantWithdrawalPeriod_not_in?: InputMaybe>; + iTargetPoolSizeUpdateTime?: InputMaybe; + iTargetPoolSizeUpdateTime_gt?: InputMaybe; + iTargetPoolSizeUpdateTime_gte?: InputMaybe; + iTargetPoolSizeUpdateTime_in?: InputMaybe>; + iTargetPoolSizeUpdateTime_lt?: InputMaybe; + iTargetPoolSizeUpdateTime_lte?: InputMaybe; + iTargetPoolSizeUpdateTime_not?: InputMaybe; + iTargetPoolSizeUpdateTime_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + marginToken?: InputMaybe; + marginToken_?: InputMaybe; + marginToken_contains?: InputMaybe; + marginToken_contains_nocase?: InputMaybe; + marginToken_ends_with?: InputMaybe; + marginToken_ends_with_nocase?: InputMaybe; + marginToken_gt?: InputMaybe; + marginToken_gte?: InputMaybe; + marginToken_in?: InputMaybe>; + marginToken_lt?: InputMaybe; + marginToken_lte?: InputMaybe; + marginToken_not?: InputMaybe; + marginToken_not_contains?: InputMaybe; + marginToken_not_contains_nocase?: InputMaybe; + marginToken_not_ends_with?: InputMaybe; + marginToken_not_ends_with_nocase?: InputMaybe; + marginToken_not_in?: InputMaybe>; + marginToken_not_starts_with?: InputMaybe; + marginToken_not_starts_with_nocase?: InputMaybe; + marginToken_starts_with?: InputMaybe; + marginToken_starts_with_nocase?: InputMaybe; + poolId?: InputMaybe; + poolId_gt?: InputMaybe; + poolId_gte?: InputMaybe; + poolId_in?: InputMaybe>; + poolId_lt?: InputMaybe; + poolId_lte?: InputMaybe; + poolId_not?: InputMaybe; + poolId_not_in?: InputMaybe>; + shareToken?: InputMaybe; + shareToken_?: InputMaybe; + shareToken_contains?: InputMaybe; + shareToken_contains_nocase?: InputMaybe; + shareToken_ends_with?: InputMaybe; + shareToken_ends_with_nocase?: InputMaybe; + shareToken_gt?: InputMaybe; + shareToken_gte?: InputMaybe; + shareToken_in?: InputMaybe>; + shareToken_lt?: InputMaybe; + shareToken_lte?: InputMaybe; + shareToken_not?: InputMaybe; + shareToken_not_contains?: InputMaybe; + shareToken_not_contains_nocase?: InputMaybe; + shareToken_not_ends_with?: InputMaybe; + shareToken_not_ends_with_nocase?: InputMaybe; + shareToken_not_in?: InputMaybe>; + shareToken_not_starts_with?: InputMaybe; + shareToken_not_starts_with_nocase?: InputMaybe; + shareToken_starts_with?: InputMaybe; + shareToken_starts_with_nocase?: InputMaybe; + treasuryAddress?: InputMaybe; + treasuryAddress_contains?: InputMaybe; + treasuryAddress_in?: InputMaybe>; + treasuryAddress_not?: InputMaybe; + treasuryAddress_not_contains?: InputMaybe; + treasuryAddress_not_in?: InputMaybe>; +}; + +export enum LiquidityPoolCreated_OrderBy { + FPnLparticipantWithdrawalMinAmountLimit = 'fPnLparticipantWithdrawalMinAmountLimit', + FPnLparticipantWithdrawalPercentageLimit = 'fPnLparticipantWithdrawalPercentageLimit', + IPnLparticipantWithdrawalPeriod = 'iPnLparticipantWithdrawalPeriod', + ITargetPoolSizeUpdateTime = 'iTargetPoolSizeUpdateTime', + Id = 'id', + MarginToken = 'marginToken', + PoolId = 'poolId', + ShareToken = 'shareToken', + TreasuryAddress = 'treasuryAddress', +} + +export type LiquidityPool_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + atomicYields_?: InputMaybe; + createdAtTx?: InputMaybe; + createdAtTx_?: InputMaybe; + createdAtTx_contains?: InputMaybe; + createdAtTx_contains_nocase?: InputMaybe; + createdAtTx_ends_with?: InputMaybe; + createdAtTx_ends_with_nocase?: InputMaybe; + createdAtTx_gt?: InputMaybe; + createdAtTx_gte?: InputMaybe; + createdAtTx_in?: InputMaybe>; + createdAtTx_lt?: InputMaybe; + createdAtTx_lte?: InputMaybe; + createdAtTx_not?: InputMaybe; + createdAtTx_not_contains?: InputMaybe; + createdAtTx_not_contains_nocase?: InputMaybe; + createdAtTx_not_ends_with?: InputMaybe; + createdAtTx_not_ends_with_nocase?: InputMaybe; + createdAtTx_not_in?: InputMaybe>; + createdAtTx_not_starts_with?: InputMaybe; + createdAtTx_not_starts_with_nocase?: InputMaybe; + createdAtTx_starts_with?: InputMaybe; + createdAtTx_starts_with_nocase?: InputMaybe; + distributeFees_?: InputMaybe; + fMaxTotalTraderFunds?: InputMaybe; + fMaxTotalTraderFunds_gt?: InputMaybe; + fMaxTotalTraderFunds_gte?: InputMaybe; + fMaxTotalTraderFunds_in?: InputMaybe>; + fMaxTotalTraderFunds_lt?: InputMaybe; + fMaxTotalTraderFunds_lte?: InputMaybe; + fMaxTotalTraderFunds_not?: InputMaybe; + fMaxTotalTraderFunds_not_in?: InputMaybe>; + fPnLparticipantWithdrawalMinAmountLimit?: InputMaybe; + fPnLparticipantWithdrawalMinAmountLimit_gt?: InputMaybe; + fPnLparticipantWithdrawalMinAmountLimit_gte?: InputMaybe; + fPnLparticipantWithdrawalMinAmountLimit_in?: InputMaybe< + Array + >; + fPnLparticipantWithdrawalMinAmountLimit_lt?: InputMaybe; + fPnLparticipantWithdrawalMinAmountLimit_lte?: InputMaybe; + fPnLparticipantWithdrawalMinAmountLimit_not?: InputMaybe; + fPnLparticipantWithdrawalMinAmountLimit_not_in?: InputMaybe< + Array + >; + fPnLparticipantWithdrawalPercentageLimit?: InputMaybe; + fPnLparticipantWithdrawalPercentageLimit_gt?: InputMaybe; + fPnLparticipantWithdrawalPercentageLimit_gte?: InputMaybe; + fPnLparticipantWithdrawalPercentageLimit_in?: InputMaybe< + Array + >; + fPnLparticipantWithdrawalPercentageLimit_lt?: InputMaybe; + fPnLparticipantWithdrawalPercentageLimit_lte?: InputMaybe; + fPnLparticipantWithdrawalPercentageLimit_not?: InputMaybe; + fPnLparticipantWithdrawalPercentageLimit_not_in?: InputMaybe< + Array + >; + fPnLparticipantsCashCC?: InputMaybe; + fPnLparticipantsCashCC_gt?: InputMaybe; + fPnLparticipantsCashCC_gte?: InputMaybe; + fPnLparticipantsCashCC_in?: InputMaybe>; + fPnLparticipantsCashCC_lt?: InputMaybe; + fPnLparticipantsCashCC_lte?: InputMaybe; + fPnLparticipantsCashCC_not?: InputMaybe; + fPnLparticipantsCashCC_not_in?: InputMaybe>; + fRedemptionRate?: InputMaybe; + fRedemptionRate_gt?: InputMaybe; + fRedemptionRate_gte?: InputMaybe; + fRedemptionRate_in?: InputMaybe>; + fRedemptionRate_lt?: InputMaybe; + fRedemptionRate_lte?: InputMaybe; + fRedemptionRate_not?: InputMaybe; + fRedemptionRate_not_in?: InputMaybe>; + funds_?: InputMaybe; + iActivePerpetualCount?: InputMaybe; + iActivePerpetualCount_gt?: InputMaybe; + iActivePerpetualCount_gte?: InputMaybe; + iActivePerpetualCount_in?: InputMaybe>; + iActivePerpetualCount_lt?: InputMaybe; + iActivePerpetualCount_lte?: InputMaybe; + iActivePerpetualCount_not?: InputMaybe; + iActivePerpetualCount_not_in?: InputMaybe>; + iPerpetualCount?: InputMaybe; + iPerpetualCount_gt?: InputMaybe; + iPerpetualCount_gte?: InputMaybe; + iPerpetualCount_in?: InputMaybe>; + iPerpetualCount_lt?: InputMaybe; + iPerpetualCount_lte?: InputMaybe; + iPerpetualCount_not?: InputMaybe; + iPerpetualCount_not_in?: InputMaybe>; + iPnLparticipantWithdrawalPeriod?: InputMaybe; + iPnLparticipantWithdrawalPeriod_gt?: InputMaybe; + iPnLparticipantWithdrawalPeriod_gte?: InputMaybe; + iPnLparticipantWithdrawalPeriod_in?: InputMaybe>; + iPnLparticipantWithdrawalPeriod_lt?: InputMaybe; + iPnLparticipantWithdrawalPeriod_lte?: InputMaybe; + iPnLparticipantWithdrawalPeriod_not?: InputMaybe; + iPnLparticipantWithdrawalPeriod_not_in?: InputMaybe>; + iPriceUpdateTimeSec?: InputMaybe; + iPriceUpdateTimeSec_gt?: InputMaybe; + iPriceUpdateTimeSec_gte?: InputMaybe; + iPriceUpdateTimeSec_in?: InputMaybe>; + iPriceUpdateTimeSec_lt?: InputMaybe; + iPriceUpdateTimeSec_lte?: InputMaybe; + iPriceUpdateTimeSec_not?: InputMaybe; + iPriceUpdateTimeSec_not_in?: InputMaybe>; + iTargetPoolSizeUpdateTime?: InputMaybe; + iTargetPoolSizeUpdateTime_gt?: InputMaybe; + iTargetPoolSizeUpdateTime_gte?: InputMaybe; + iTargetPoolSizeUpdateTime_in?: InputMaybe>; + iTargetPoolSizeUpdateTime_lt?: InputMaybe; + iTargetPoolSizeUpdateTime_lte?: InputMaybe; + iTargetPoolSizeUpdateTime_not?: InputMaybe; + iTargetPoolSizeUpdateTime_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + isRunning?: InputMaybe; + isRunning_in?: InputMaybe>; + isRunning_not?: InputMaybe; + isRunning_not_in?: InputMaybe>; + marginToken?: InputMaybe; + marginToken_?: InputMaybe; + marginToken_contains?: InputMaybe; + marginToken_contains_nocase?: InputMaybe; + marginToken_ends_with?: InputMaybe; + marginToken_ends_with_nocase?: InputMaybe; + marginToken_gt?: InputMaybe; + marginToken_gte?: InputMaybe; + marginToken_in?: InputMaybe>; + marginToken_lt?: InputMaybe; + marginToken_lte?: InputMaybe; + marginToken_not?: InputMaybe; + marginToken_not_contains?: InputMaybe; + marginToken_not_contains_nocase?: InputMaybe; + marginToken_not_ends_with?: InputMaybe; + marginToken_not_ends_with_nocase?: InputMaybe; + marginToken_not_in?: InputMaybe>; + marginToken_not_starts_with?: InputMaybe; + marginToken_not_starts_with_nocase?: InputMaybe; + marginToken_starts_with?: InputMaybe; + marginToken_starts_with_nocase?: InputMaybe; + participationFundLastUpdated?: InputMaybe; + participationFundLastUpdated_gt?: InputMaybe; + participationFundLastUpdated_gte?: InputMaybe; + participationFundLastUpdated_in?: InputMaybe>; + participationFundLastUpdated_lt?: InputMaybe; + participationFundLastUpdated_lte?: InputMaybe; + participationFundLastUpdated_not?: InputMaybe; + participationFundLastUpdated_not_in?: InputMaybe>; + perpetuals_?: InputMaybe; + shareToken?: InputMaybe; + shareToken_?: InputMaybe; + shareToken_contains?: InputMaybe; + shareToken_contains_nocase?: InputMaybe; + shareToken_ends_with?: InputMaybe; + shareToken_ends_with_nocase?: InputMaybe; + shareToken_gt?: InputMaybe; + shareToken_gte?: InputMaybe; + shareToken_in?: InputMaybe>; + shareToken_lt?: InputMaybe; + shareToken_lte?: InputMaybe; + shareToken_not?: InputMaybe; + shareToken_not_contains?: InputMaybe; + shareToken_not_contains_nocase?: InputMaybe; + shareToken_not_ends_with?: InputMaybe; + shareToken_not_ends_with_nocase?: InputMaybe; + shareToken_not_in?: InputMaybe>; + shareToken_not_starts_with?: InputMaybe; + shareToken_not_starts_with_nocase?: InputMaybe; + shareToken_starts_with?: InputMaybe; + shareToken_starts_with_nocase?: InputMaybe; + totalAmountDeposited?: InputMaybe; + totalAmountDeposited_gt?: InputMaybe; + totalAmountDeposited_gte?: InputMaybe; + totalAmountDeposited_in?: InputMaybe>; + totalAmountDeposited_lt?: InputMaybe; + totalAmountDeposited_lte?: InputMaybe; + totalAmountDeposited_not?: InputMaybe; + totalAmountDeposited_not_in?: InputMaybe>; + traderPools_?: InputMaybe; + treasuryAddress?: InputMaybe; + treasuryAddress_contains?: InputMaybe; + treasuryAddress_in?: InputMaybe>; + treasuryAddress_not?: InputMaybe; + treasuryAddress_not_contains?: InputMaybe; + treasuryAddress_not_in?: InputMaybe>; + updatedAtTx?: InputMaybe; + updatedAtTx_?: InputMaybe; + updatedAtTx_contains?: InputMaybe; + updatedAtTx_contains_nocase?: InputMaybe; + updatedAtTx_ends_with?: InputMaybe; + updatedAtTx_ends_with_nocase?: InputMaybe; + updatedAtTx_gt?: InputMaybe; + updatedAtTx_gte?: InputMaybe; + updatedAtTx_in?: InputMaybe>; + updatedAtTx_lt?: InputMaybe; + updatedAtTx_lte?: InputMaybe; + updatedAtTx_not?: InputMaybe; + updatedAtTx_not_contains?: InputMaybe; + updatedAtTx_not_contains_nocase?: InputMaybe; + updatedAtTx_not_ends_with?: InputMaybe; + updatedAtTx_not_ends_with_nocase?: InputMaybe; + updatedAtTx_not_in?: InputMaybe>; + updatedAtTx_not_starts_with?: InputMaybe; + updatedAtTx_not_starts_with_nocase?: InputMaybe; + updatedAtTx_starts_with?: InputMaybe; + updatedAtTx_starts_with_nocase?: InputMaybe; +}; + +export enum LiquidityPool_OrderBy { + AtomicYields = 'atomicYields', + CreatedAtTx = 'createdAtTx', + DistributeFees = 'distributeFees', + FMaxTotalTraderFunds = 'fMaxTotalTraderFunds', + FPnLparticipantWithdrawalMinAmountLimit = 'fPnLparticipantWithdrawalMinAmountLimit', + FPnLparticipantWithdrawalPercentageLimit = 'fPnLparticipantWithdrawalPercentageLimit', + FPnLparticipantsCashCc = 'fPnLparticipantsCashCC', + FRedemptionRate = 'fRedemptionRate', + Funds = 'funds', + IActivePerpetualCount = 'iActivePerpetualCount', + IPerpetualCount = 'iPerpetualCount', + IPnLparticipantWithdrawalPeriod = 'iPnLparticipantWithdrawalPeriod', + IPriceUpdateTimeSec = 'iPriceUpdateTimeSec', + ITargetPoolSizeUpdateTime = 'iTargetPoolSizeUpdateTime', + Id = 'id', + IsRunning = 'isRunning', + MarginToken = 'marginToken', + ParticipationFundLastUpdated = 'participationFundLastUpdated', + Perpetuals = 'perpetuals', + ShareToken = 'shareToken', + TotalAmountDeposited = 'totalAmountDeposited', + TraderPools = 'traderPools', + TreasuryAddress = 'treasuryAddress', + UpdatedAtTx = 'updatedAtTx', +} + +export type LiquidityRemoved = { + __typename?: 'LiquidityRemoved'; + id: Scalars['ID']; + poolId: Scalars['BigInt']; + shareAmount: Scalars['BigInt']; + tokenAmount: Scalars['BigInt']; + user: Trader; +}; + +export type LiquidityRemoved_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + poolId?: InputMaybe; + poolId_gt?: InputMaybe; + poolId_gte?: InputMaybe; + poolId_in?: InputMaybe>; + poolId_lt?: InputMaybe; + poolId_lte?: InputMaybe; + poolId_not?: InputMaybe; + poolId_not_in?: InputMaybe>; + shareAmount?: InputMaybe; + shareAmount_gt?: InputMaybe; + shareAmount_gte?: InputMaybe; + shareAmount_in?: InputMaybe>; + shareAmount_lt?: InputMaybe; + shareAmount_lte?: InputMaybe; + shareAmount_not?: InputMaybe; + shareAmount_not_in?: InputMaybe>; + tokenAmount?: InputMaybe; + tokenAmount_gt?: InputMaybe; + tokenAmount_gte?: InputMaybe; + tokenAmount_in?: InputMaybe>; + tokenAmount_lt?: InputMaybe; + tokenAmount_lte?: InputMaybe; + tokenAmount_not?: InputMaybe; + tokenAmount_not_in?: InputMaybe>; + user?: InputMaybe; + user_?: InputMaybe; + user_contains?: InputMaybe; + user_contains_nocase?: InputMaybe; + user_ends_with?: InputMaybe; + user_ends_with_nocase?: InputMaybe; + user_gt?: InputMaybe; + user_gte?: InputMaybe; + user_in?: InputMaybe>; + user_lt?: InputMaybe; + user_lte?: InputMaybe; + user_not?: InputMaybe; + user_not_contains?: InputMaybe; + user_not_contains_nocase?: InputMaybe; + user_not_ends_with?: InputMaybe; + user_not_ends_with_nocase?: InputMaybe; + user_not_in?: InputMaybe>; + user_not_starts_with?: InputMaybe; + user_not_starts_with_nocase?: InputMaybe; + user_starts_with?: InputMaybe; + user_starts_with_nocase?: InputMaybe; +}; + +export enum LiquidityRemoved_OrderBy { + Id = 'id', + PoolId = 'poolId', + ShareAmount = 'shareAmount', + TokenAmount = 'tokenAmount', + User = 'user', +} + +/** Defines the order direction, either ascending or descending */ +export enum OrderDirection { + Asc = 'asc', + Desc = 'desc', +} + +export type OwnershipTransferred = { + __typename?: 'OwnershipTransferred'; + id: Scalars['ID']; + newOwner: Scalars['Bytes']; + previousOwner: Scalars['Bytes']; +}; + +export type OwnershipTransferred_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + newOwner?: InputMaybe; + newOwner_contains?: InputMaybe; + newOwner_in?: InputMaybe>; + newOwner_not?: InputMaybe; + newOwner_not_contains?: InputMaybe; + newOwner_not_in?: InputMaybe>; + previousOwner?: InputMaybe; + previousOwner_contains?: InputMaybe; + previousOwner_in?: InputMaybe>; + previousOwner_not?: InputMaybe; + previousOwner_not_contains?: InputMaybe; + previousOwner_not_in?: InputMaybe>; +}; + +export enum OwnershipTransferred_OrderBy { + Id = 'id', + NewOwner = 'newOwner', + PreviousOwner = 'previousOwner', +} + +export type Perpetual = { + __typename?: 'Perpetual'; + ammFund?: Maybe; + createdAtTx: Transaction; + /** + * avarage long positions sizes for the amm over time + * + */ + currentAMMExposureEMALong: Scalars['BigInt']; + /** + * avarage short positions sizes for the amm over time + * + */ + currentAMMExposureEMAShort: Scalars['BigInt']; + /** + * avarage positions sizes over time + * + */ + currentTraderExposureEMA: Scalars['BigInt']; + distributeFees?: Maybe>; + eCollateralCurrency: Scalars['Int']; + fAMMFundCashCC?: Maybe; + fAMMMinSizeCC: Scalars['BigInt']; + fAMMTargetDDBaseline: Scalars['BigInt']; + fAMMTargetDDStress: Scalars['BigInt']; + fDFCoverNRate: Scalars['BigInt']; + /** + * Risk parameters for default fund / AMM pool + * + */ + fFundingRate?: Maybe; + /** + * Base parameters + * + */ + fFundingRateClamp: Scalars['BigInt']; + fInitialMarginRateAlpha: Scalars['BigInt']; + fInitialMarginRateCap: Scalars['BigInt']; + fLiquidationPenaltyRate: Scalars['BigInt']; + fLotSizeBC: Scalars['BigInt']; + fMaintenanceMarginRateAlpha: Scalars['BigInt']; + fMarginRateBeta: Scalars['BigInt']; + fMarkPriceEMALambda: Scalars['BigInt']; + fMaximalTradeSizeBumpUp: Scalars['BigInt']; + fMinimalAMMExposureEMA: Scalars['BigInt']; + fMinimalSpread: Scalars['BigInt']; + fMinimalSpreadInStress: Scalars['BigInt']; + fMinimalTraderExposureEMA: Scalars['BigInt']; + fPnLPartRate: Scalars['BigInt']; + fReferralRebateCC: Scalars['BigInt']; + fRho23: Scalars['BigInt']; + fSigma2: Scalars['BigInt']; + fSigma3: Scalars['BigInt']; + fSpotIndexPrice?: Maybe; + /** + * Risk parameters for underlying instruments + * + */ + fStressReturnS2Negative: Scalars['BigInt']; + fStressReturnS2Positive: Scalars['BigInt']; + fStressReturnS3Negative: Scalars['BigInt']; + fStressReturnS3Positive: Scalars['BigInt']; + fTreasuryFeeRate: Scalars['BigInt']; + id: Scalars['ID']; + lastTradedPrice: Scalars['BigInt']; + liquidates?: Maybe>; + markIndexPricePremium: Scalars['BigInt']; + openInterestBC: Scalars['BigInt']; + oracleS2: SpotOracle; + oracleS3?: Maybe; + pool: LiquidityPool; + positions?: Maybe>; + positionsTotalCount: Scalars['Int']; + state: PerpetualState; + totalAmountDeposited: Scalars['BigInt']; + totalAmountLiquidatedBC: Scalars['BigInt']; + totalAmountSettled: Scalars['BigInt']; + totalTradingPnLCC: Scalars['BigInt']; + traderStates?: Maybe>; + trades?: Maybe>; + tradesTotalCount: Scalars['Int']; + /** + * accumulated funding rate per unit of index since the begining of time + * + */ + unitAccumulativeFunding: Scalars['BigInt']; + updatedAtTx: Transaction; +}; + +export type PerpetualDistributeFeesArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +export type PerpetualLiquidatesArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +export type PerpetualPositionsArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +export type PerpetualTraderStatesArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +export type PerpetualTradesArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +export type PerpetualCreated = { + __typename?: 'PerpetualCreated'; + eCollateralCurrency: Scalars['BigInt']; + id: Scalars['ID']; + perpetualId: Scalars['Bytes']; + poolId: Scalars['Int']; +}; + +export type PerpetualCreated_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + eCollateralCurrency?: InputMaybe; + eCollateralCurrency_gt?: InputMaybe; + eCollateralCurrency_gte?: InputMaybe; + eCollateralCurrency_in?: InputMaybe>; + eCollateralCurrency_lt?: InputMaybe; + eCollateralCurrency_lte?: InputMaybe; + eCollateralCurrency_not?: InputMaybe; + eCollateralCurrency_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + perpetualId?: InputMaybe; + perpetualId_contains?: InputMaybe; + perpetualId_in?: InputMaybe>; + perpetualId_not?: InputMaybe; + perpetualId_not_contains?: InputMaybe; + perpetualId_not_in?: InputMaybe>; + poolId?: InputMaybe; + poolId_gt?: InputMaybe; + poolId_gte?: InputMaybe; + poolId_in?: InputMaybe>; + poolId_lt?: InputMaybe; + poolId_lte?: InputMaybe; + poolId_not?: InputMaybe; + poolId_not_in?: InputMaybe>; +}; + +export enum PerpetualCreated_OrderBy { + ECollateralCurrency = 'eCollateralCurrency', + Id = 'id', + PerpetualId = 'perpetualId', + PoolId = 'poolId', +} + +export type PerpetualLimitOrderBookDeployed = { + __typename?: 'PerpetualLimitOrderBookDeployed'; + id: Scalars['ID']; + limitOrderBookAddress: Scalars['Bytes']; + perpManagerAddress: Scalars['Bytes']; + perpetualId: Scalars['Bytes']; +}; + +export type PerpetualLimitOrderBookDeployed_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + limitOrderBookAddress?: InputMaybe; + limitOrderBookAddress_contains?: InputMaybe; + limitOrderBookAddress_in?: InputMaybe>; + limitOrderBookAddress_not?: InputMaybe; + limitOrderBookAddress_not_contains?: InputMaybe; + limitOrderBookAddress_not_in?: InputMaybe>; + perpManagerAddress?: InputMaybe; + perpManagerAddress_contains?: InputMaybe; + perpManagerAddress_in?: InputMaybe>; + perpManagerAddress_not?: InputMaybe; + perpManagerAddress_not_contains?: InputMaybe; + perpManagerAddress_not_in?: InputMaybe>; + perpetualId?: InputMaybe; + perpetualId_contains?: InputMaybe; + perpetualId_in?: InputMaybe>; + perpetualId_not?: InputMaybe; + perpetualId_not_contains?: InputMaybe; + perpetualId_not_in?: InputMaybe>; +}; + +export enum PerpetualLimitOrderBookDeployed_OrderBy { + Id = 'id', + LimitOrderBookAddress = 'limitOrderBookAddress', + PerpManagerAddress = 'perpManagerAddress', + PerpetualId = 'perpetualId', +} + +export type PerpetualLimitOrderCancelled = { + __typename?: 'PerpetualLimitOrderCancelled'; + id: Scalars['ID']; + orderHash: Scalars['Bytes']; +}; + +export type PerpetualLimitOrderCancelled_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + orderHash?: InputMaybe; + orderHash_contains?: InputMaybe; + orderHash_in?: InputMaybe>; + orderHash_not?: InputMaybe; + orderHash_not_contains?: InputMaybe; + orderHash_not_in?: InputMaybe>; +}; + +export enum PerpetualLimitOrderCancelled_OrderBy { + Id = 'id', + OrderHash = 'orderHash', +} + +export type PerpetualLimitOrderCreated = { + __typename?: 'PerpetualLimitOrderCreated'; + createdTimestamp: Scalars['BigInt']; + deadline: Scalars['BigInt']; + digest: Scalars['Bytes']; + flags: Scalars['BigInt']; + id: Scalars['ID']; + leverage: Scalars['BigInt']; + limitPrice: Scalars['BigInt']; + perpetualId: Scalars['Bytes']; + referrerAddr: Scalars['Bytes']; + tradeAmount: Scalars['BigInt']; + trader: Scalars['Bytes']; + triggerPrice: Scalars['BigInt']; +}; + +export type PerpetualLimitOrderCreated_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + createdTimestamp?: InputMaybe; + createdTimestamp_gt?: InputMaybe; + createdTimestamp_gte?: InputMaybe; + createdTimestamp_in?: InputMaybe>; + createdTimestamp_lt?: InputMaybe; + createdTimestamp_lte?: InputMaybe; + createdTimestamp_not?: InputMaybe; + createdTimestamp_not_in?: InputMaybe>; + deadline?: InputMaybe; + deadline_gt?: InputMaybe; + deadline_gte?: InputMaybe; + deadline_in?: InputMaybe>; + deadline_lt?: InputMaybe; + deadline_lte?: InputMaybe; + deadline_not?: InputMaybe; + deadline_not_in?: InputMaybe>; + digest?: InputMaybe; + digest_contains?: InputMaybe; + digest_in?: InputMaybe>; + digest_not?: InputMaybe; + digest_not_contains?: InputMaybe; + digest_not_in?: InputMaybe>; + flags?: InputMaybe; + flags_gt?: InputMaybe; + flags_gte?: InputMaybe; + flags_in?: InputMaybe>; + flags_lt?: InputMaybe; + flags_lte?: InputMaybe; + flags_not?: InputMaybe; + flags_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + leverage?: InputMaybe; + leverage_gt?: InputMaybe; + leverage_gte?: InputMaybe; + leverage_in?: InputMaybe>; + leverage_lt?: InputMaybe; + leverage_lte?: InputMaybe; + leverage_not?: InputMaybe; + leverage_not_in?: InputMaybe>; + limitPrice?: InputMaybe; + limitPrice_gt?: InputMaybe; + limitPrice_gte?: InputMaybe; + limitPrice_in?: InputMaybe>; + limitPrice_lt?: InputMaybe; + limitPrice_lte?: InputMaybe; + limitPrice_not?: InputMaybe; + limitPrice_not_in?: InputMaybe>; + perpetualId?: InputMaybe; + perpetualId_contains?: InputMaybe; + perpetualId_in?: InputMaybe>; + perpetualId_not?: InputMaybe; + perpetualId_not_contains?: InputMaybe; + perpetualId_not_in?: InputMaybe>; + referrerAddr?: InputMaybe; + referrerAddr_contains?: InputMaybe; + referrerAddr_in?: InputMaybe>; + referrerAddr_not?: InputMaybe; + referrerAddr_not_contains?: InputMaybe; + referrerAddr_not_in?: InputMaybe>; + tradeAmount?: InputMaybe; + tradeAmount_gt?: InputMaybe; + tradeAmount_gte?: InputMaybe; + tradeAmount_in?: InputMaybe>; + tradeAmount_lt?: InputMaybe; + tradeAmount_lte?: InputMaybe; + tradeAmount_not?: InputMaybe; + tradeAmount_not_in?: InputMaybe>; + trader?: InputMaybe; + trader_contains?: InputMaybe; + trader_in?: InputMaybe>; + trader_not?: InputMaybe; + trader_not_contains?: InputMaybe; + trader_not_in?: InputMaybe>; + triggerPrice?: InputMaybe; + triggerPrice_gt?: InputMaybe; + triggerPrice_gte?: InputMaybe; + triggerPrice_in?: InputMaybe>; + triggerPrice_lt?: InputMaybe; + triggerPrice_lte?: InputMaybe; + triggerPrice_not?: InputMaybe; + triggerPrice_not_in?: InputMaybe>; +}; + +export enum PerpetualLimitOrderCreated_OrderBy { + CreatedTimestamp = 'createdTimestamp', + Deadline = 'deadline', + Digest = 'digest', + Flags = 'flags', + Id = 'id', + Leverage = 'leverage', + LimitPrice = 'limitPrice', + PerpetualId = 'perpetualId', + ReferrerAddr = 'referrerAddr', + TradeAmount = 'tradeAmount', + Trader = 'trader', + TriggerPrice = 'triggerPrice', +} + +export enum PerpetualState { + Cleared = 'Cleared', + Clearing = 'Clearing', + Emergency = 'Emergency', + Normal = 'Normal', +} + +export type Perpetual_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + ammFund?: InputMaybe; + ammFund_?: InputMaybe; + ammFund_contains?: InputMaybe; + ammFund_contains_nocase?: InputMaybe; + ammFund_ends_with?: InputMaybe; + ammFund_ends_with_nocase?: InputMaybe; + ammFund_gt?: InputMaybe; + ammFund_gte?: InputMaybe; + ammFund_in?: InputMaybe>; + ammFund_lt?: InputMaybe; + ammFund_lte?: InputMaybe; + ammFund_not?: InputMaybe; + ammFund_not_contains?: InputMaybe; + ammFund_not_contains_nocase?: InputMaybe; + ammFund_not_ends_with?: InputMaybe; + ammFund_not_ends_with_nocase?: InputMaybe; + ammFund_not_in?: InputMaybe>; + ammFund_not_starts_with?: InputMaybe; + ammFund_not_starts_with_nocase?: InputMaybe; + ammFund_starts_with?: InputMaybe; + ammFund_starts_with_nocase?: InputMaybe; + createdAtTx?: InputMaybe; + createdAtTx_?: InputMaybe; + createdAtTx_contains?: InputMaybe; + createdAtTx_contains_nocase?: InputMaybe; + createdAtTx_ends_with?: InputMaybe; + createdAtTx_ends_with_nocase?: InputMaybe; + createdAtTx_gt?: InputMaybe; + createdAtTx_gte?: InputMaybe; + createdAtTx_in?: InputMaybe>; + createdAtTx_lt?: InputMaybe; + createdAtTx_lte?: InputMaybe; + createdAtTx_not?: InputMaybe; + createdAtTx_not_contains?: InputMaybe; + createdAtTx_not_contains_nocase?: InputMaybe; + createdAtTx_not_ends_with?: InputMaybe; + createdAtTx_not_ends_with_nocase?: InputMaybe; + createdAtTx_not_in?: InputMaybe>; + createdAtTx_not_starts_with?: InputMaybe; + createdAtTx_not_starts_with_nocase?: InputMaybe; + createdAtTx_starts_with?: InputMaybe; + createdAtTx_starts_with_nocase?: InputMaybe; + currentAMMExposureEMALong?: InputMaybe; + currentAMMExposureEMALong_gt?: InputMaybe; + currentAMMExposureEMALong_gte?: InputMaybe; + currentAMMExposureEMALong_in?: InputMaybe>; + currentAMMExposureEMALong_lt?: InputMaybe; + currentAMMExposureEMALong_lte?: InputMaybe; + currentAMMExposureEMALong_not?: InputMaybe; + currentAMMExposureEMALong_not_in?: InputMaybe>; + currentAMMExposureEMAShort?: InputMaybe; + currentAMMExposureEMAShort_gt?: InputMaybe; + currentAMMExposureEMAShort_gte?: InputMaybe; + currentAMMExposureEMAShort_in?: InputMaybe>; + currentAMMExposureEMAShort_lt?: InputMaybe; + currentAMMExposureEMAShort_lte?: InputMaybe; + currentAMMExposureEMAShort_not?: InputMaybe; + currentAMMExposureEMAShort_not_in?: InputMaybe>; + currentTraderExposureEMA?: InputMaybe; + currentTraderExposureEMA_gt?: InputMaybe; + currentTraderExposureEMA_gte?: InputMaybe; + currentTraderExposureEMA_in?: InputMaybe>; + currentTraderExposureEMA_lt?: InputMaybe; + currentTraderExposureEMA_lte?: InputMaybe; + currentTraderExposureEMA_not?: InputMaybe; + currentTraderExposureEMA_not_in?: InputMaybe>; + distributeFees_?: InputMaybe; + eCollateralCurrency?: InputMaybe; + eCollateralCurrency_gt?: InputMaybe; + eCollateralCurrency_gte?: InputMaybe; + eCollateralCurrency_in?: InputMaybe>; + eCollateralCurrency_lt?: InputMaybe; + eCollateralCurrency_lte?: InputMaybe; + eCollateralCurrency_not?: InputMaybe; + eCollateralCurrency_not_in?: InputMaybe>; + fAMMFundCashCC?: InputMaybe; + fAMMFundCashCC_gt?: InputMaybe; + fAMMFundCashCC_gte?: InputMaybe; + fAMMFundCashCC_in?: InputMaybe>; + fAMMFundCashCC_lt?: InputMaybe; + fAMMFundCashCC_lte?: InputMaybe; + fAMMFundCashCC_not?: InputMaybe; + fAMMFundCashCC_not_in?: InputMaybe>; + fAMMMinSizeCC?: InputMaybe; + fAMMMinSizeCC_gt?: InputMaybe; + fAMMMinSizeCC_gte?: InputMaybe; + fAMMMinSizeCC_in?: InputMaybe>; + fAMMMinSizeCC_lt?: InputMaybe; + fAMMMinSizeCC_lte?: InputMaybe; + fAMMMinSizeCC_not?: InputMaybe; + fAMMMinSizeCC_not_in?: InputMaybe>; + fAMMTargetDDBaseline?: InputMaybe; + fAMMTargetDDBaseline_gt?: InputMaybe; + fAMMTargetDDBaseline_gte?: InputMaybe; + fAMMTargetDDBaseline_in?: InputMaybe>; + fAMMTargetDDBaseline_lt?: InputMaybe; + fAMMTargetDDBaseline_lte?: InputMaybe; + fAMMTargetDDBaseline_not?: InputMaybe; + fAMMTargetDDBaseline_not_in?: InputMaybe>; + fAMMTargetDDStress?: InputMaybe; + fAMMTargetDDStress_gt?: InputMaybe; + fAMMTargetDDStress_gte?: InputMaybe; + fAMMTargetDDStress_in?: InputMaybe>; + fAMMTargetDDStress_lt?: InputMaybe; + fAMMTargetDDStress_lte?: InputMaybe; + fAMMTargetDDStress_not?: InputMaybe; + fAMMTargetDDStress_not_in?: InputMaybe>; + fDFCoverNRate?: InputMaybe; + fDFCoverNRate_gt?: InputMaybe; + fDFCoverNRate_gte?: InputMaybe; + fDFCoverNRate_in?: InputMaybe>; + fDFCoverNRate_lt?: InputMaybe; + fDFCoverNRate_lte?: InputMaybe; + fDFCoverNRate_not?: InputMaybe; + fDFCoverNRate_not_in?: InputMaybe>; + fFundingRate?: InputMaybe; + fFundingRateClamp?: InputMaybe; + fFundingRateClamp_gt?: InputMaybe; + fFundingRateClamp_gte?: InputMaybe; + fFundingRateClamp_in?: InputMaybe>; + fFundingRateClamp_lt?: InputMaybe; + fFundingRateClamp_lte?: InputMaybe; + fFundingRateClamp_not?: InputMaybe; + fFundingRateClamp_not_in?: InputMaybe>; + fFundingRate_gt?: InputMaybe; + fFundingRate_gte?: InputMaybe; + fFundingRate_in?: InputMaybe>; + fFundingRate_lt?: InputMaybe; + fFundingRate_lte?: InputMaybe; + fFundingRate_not?: InputMaybe; + fFundingRate_not_in?: InputMaybe>; + fInitialMarginRateAlpha?: InputMaybe; + fInitialMarginRateAlpha_gt?: InputMaybe; + fInitialMarginRateAlpha_gte?: InputMaybe; + fInitialMarginRateAlpha_in?: InputMaybe>; + fInitialMarginRateAlpha_lt?: InputMaybe; + fInitialMarginRateAlpha_lte?: InputMaybe; + fInitialMarginRateAlpha_not?: InputMaybe; + fInitialMarginRateAlpha_not_in?: InputMaybe>; + fInitialMarginRateCap?: InputMaybe; + fInitialMarginRateCap_gt?: InputMaybe; + fInitialMarginRateCap_gte?: InputMaybe; + fInitialMarginRateCap_in?: InputMaybe>; + fInitialMarginRateCap_lt?: InputMaybe; + fInitialMarginRateCap_lte?: InputMaybe; + fInitialMarginRateCap_not?: InputMaybe; + fInitialMarginRateCap_not_in?: InputMaybe>; + fLiquidationPenaltyRate?: InputMaybe; + fLiquidationPenaltyRate_gt?: InputMaybe; + fLiquidationPenaltyRate_gte?: InputMaybe; + fLiquidationPenaltyRate_in?: InputMaybe>; + fLiquidationPenaltyRate_lt?: InputMaybe; + fLiquidationPenaltyRate_lte?: InputMaybe; + fLiquidationPenaltyRate_not?: InputMaybe; + fLiquidationPenaltyRate_not_in?: InputMaybe>; + fLotSizeBC?: InputMaybe; + fLotSizeBC_gt?: InputMaybe; + fLotSizeBC_gte?: InputMaybe; + fLotSizeBC_in?: InputMaybe>; + fLotSizeBC_lt?: InputMaybe; + fLotSizeBC_lte?: InputMaybe; + fLotSizeBC_not?: InputMaybe; + fLotSizeBC_not_in?: InputMaybe>; + fMaintenanceMarginRateAlpha?: InputMaybe; + fMaintenanceMarginRateAlpha_gt?: InputMaybe; + fMaintenanceMarginRateAlpha_gte?: InputMaybe; + fMaintenanceMarginRateAlpha_in?: InputMaybe>; + fMaintenanceMarginRateAlpha_lt?: InputMaybe; + fMaintenanceMarginRateAlpha_lte?: InputMaybe; + fMaintenanceMarginRateAlpha_not?: InputMaybe; + fMaintenanceMarginRateAlpha_not_in?: InputMaybe>; + fMarginRateBeta?: InputMaybe; + fMarginRateBeta_gt?: InputMaybe; + fMarginRateBeta_gte?: InputMaybe; + fMarginRateBeta_in?: InputMaybe>; + fMarginRateBeta_lt?: InputMaybe; + fMarginRateBeta_lte?: InputMaybe; + fMarginRateBeta_not?: InputMaybe; + fMarginRateBeta_not_in?: InputMaybe>; + fMarkPriceEMALambda?: InputMaybe; + fMarkPriceEMALambda_gt?: InputMaybe; + fMarkPriceEMALambda_gte?: InputMaybe; + fMarkPriceEMALambda_in?: InputMaybe>; + fMarkPriceEMALambda_lt?: InputMaybe; + fMarkPriceEMALambda_lte?: InputMaybe; + fMarkPriceEMALambda_not?: InputMaybe; + fMarkPriceEMALambda_not_in?: InputMaybe>; + fMaximalTradeSizeBumpUp?: InputMaybe; + fMaximalTradeSizeBumpUp_gt?: InputMaybe; + fMaximalTradeSizeBumpUp_gte?: InputMaybe; + fMaximalTradeSizeBumpUp_in?: InputMaybe>; + fMaximalTradeSizeBumpUp_lt?: InputMaybe; + fMaximalTradeSizeBumpUp_lte?: InputMaybe; + fMaximalTradeSizeBumpUp_not?: InputMaybe; + fMaximalTradeSizeBumpUp_not_in?: InputMaybe>; + fMinimalAMMExposureEMA?: InputMaybe; + fMinimalAMMExposureEMA_gt?: InputMaybe; + fMinimalAMMExposureEMA_gte?: InputMaybe; + fMinimalAMMExposureEMA_in?: InputMaybe>; + fMinimalAMMExposureEMA_lt?: InputMaybe; + fMinimalAMMExposureEMA_lte?: InputMaybe; + fMinimalAMMExposureEMA_not?: InputMaybe; + fMinimalAMMExposureEMA_not_in?: InputMaybe>; + fMinimalSpread?: InputMaybe; + fMinimalSpreadInStress?: InputMaybe; + fMinimalSpreadInStress_gt?: InputMaybe; + fMinimalSpreadInStress_gte?: InputMaybe; + fMinimalSpreadInStress_in?: InputMaybe>; + fMinimalSpreadInStress_lt?: InputMaybe; + fMinimalSpreadInStress_lte?: InputMaybe; + fMinimalSpreadInStress_not?: InputMaybe; + fMinimalSpreadInStress_not_in?: InputMaybe>; + fMinimalSpread_gt?: InputMaybe; + fMinimalSpread_gte?: InputMaybe; + fMinimalSpread_in?: InputMaybe>; + fMinimalSpread_lt?: InputMaybe; + fMinimalSpread_lte?: InputMaybe; + fMinimalSpread_not?: InputMaybe; + fMinimalSpread_not_in?: InputMaybe>; + fMinimalTraderExposureEMA?: InputMaybe; + fMinimalTraderExposureEMA_gt?: InputMaybe; + fMinimalTraderExposureEMA_gte?: InputMaybe; + fMinimalTraderExposureEMA_in?: InputMaybe>; + fMinimalTraderExposureEMA_lt?: InputMaybe; + fMinimalTraderExposureEMA_lte?: InputMaybe; + fMinimalTraderExposureEMA_not?: InputMaybe; + fMinimalTraderExposureEMA_not_in?: InputMaybe>; + fPnLPartRate?: InputMaybe; + fPnLPartRate_gt?: InputMaybe; + fPnLPartRate_gte?: InputMaybe; + fPnLPartRate_in?: InputMaybe>; + fPnLPartRate_lt?: InputMaybe; + fPnLPartRate_lte?: InputMaybe; + fPnLPartRate_not?: InputMaybe; + fPnLPartRate_not_in?: InputMaybe>; + fReferralRebateCC?: InputMaybe; + fReferralRebateCC_gt?: InputMaybe; + fReferralRebateCC_gte?: InputMaybe; + fReferralRebateCC_in?: InputMaybe>; + fReferralRebateCC_lt?: InputMaybe; + fReferralRebateCC_lte?: InputMaybe; + fReferralRebateCC_not?: InputMaybe; + fReferralRebateCC_not_in?: InputMaybe>; + fRho23?: InputMaybe; + fRho23_gt?: InputMaybe; + fRho23_gte?: InputMaybe; + fRho23_in?: InputMaybe>; + fRho23_lt?: InputMaybe; + fRho23_lte?: InputMaybe; + fRho23_not?: InputMaybe; + fRho23_not_in?: InputMaybe>; + fSigma2?: InputMaybe; + fSigma2_gt?: InputMaybe; + fSigma2_gte?: InputMaybe; + fSigma2_in?: InputMaybe>; + fSigma2_lt?: InputMaybe; + fSigma2_lte?: InputMaybe; + fSigma2_not?: InputMaybe; + fSigma2_not_in?: InputMaybe>; + fSigma3?: InputMaybe; + fSigma3_gt?: InputMaybe; + fSigma3_gte?: InputMaybe; + fSigma3_in?: InputMaybe>; + fSigma3_lt?: InputMaybe; + fSigma3_lte?: InputMaybe; + fSigma3_not?: InputMaybe; + fSigma3_not_in?: InputMaybe>; + fSpotIndexPrice?: InputMaybe; + fSpotIndexPrice_gt?: InputMaybe; + fSpotIndexPrice_gte?: InputMaybe; + fSpotIndexPrice_in?: InputMaybe>; + fSpotIndexPrice_lt?: InputMaybe; + fSpotIndexPrice_lte?: InputMaybe; + fSpotIndexPrice_not?: InputMaybe; + fSpotIndexPrice_not_in?: InputMaybe>; + fStressReturnS2Negative?: InputMaybe; + fStressReturnS2Negative_gt?: InputMaybe; + fStressReturnS2Negative_gte?: InputMaybe; + fStressReturnS2Negative_in?: InputMaybe>; + fStressReturnS2Negative_lt?: InputMaybe; + fStressReturnS2Negative_lte?: InputMaybe; + fStressReturnS2Negative_not?: InputMaybe; + fStressReturnS2Negative_not_in?: InputMaybe>; + fStressReturnS2Positive?: InputMaybe; + fStressReturnS2Positive_gt?: InputMaybe; + fStressReturnS2Positive_gte?: InputMaybe; + fStressReturnS2Positive_in?: InputMaybe>; + fStressReturnS2Positive_lt?: InputMaybe; + fStressReturnS2Positive_lte?: InputMaybe; + fStressReturnS2Positive_not?: InputMaybe; + fStressReturnS2Positive_not_in?: InputMaybe>; + fStressReturnS3Negative?: InputMaybe; + fStressReturnS3Negative_gt?: InputMaybe; + fStressReturnS3Negative_gte?: InputMaybe; + fStressReturnS3Negative_in?: InputMaybe>; + fStressReturnS3Negative_lt?: InputMaybe; + fStressReturnS3Negative_lte?: InputMaybe; + fStressReturnS3Negative_not?: InputMaybe; + fStressReturnS3Negative_not_in?: InputMaybe>; + fStressReturnS3Positive?: InputMaybe; + fStressReturnS3Positive_gt?: InputMaybe; + fStressReturnS3Positive_gte?: InputMaybe; + fStressReturnS3Positive_in?: InputMaybe>; + fStressReturnS3Positive_lt?: InputMaybe; + fStressReturnS3Positive_lte?: InputMaybe; + fStressReturnS3Positive_not?: InputMaybe; + fStressReturnS3Positive_not_in?: InputMaybe>; + fTreasuryFeeRate?: InputMaybe; + fTreasuryFeeRate_gt?: InputMaybe; + fTreasuryFeeRate_gte?: InputMaybe; + fTreasuryFeeRate_in?: InputMaybe>; + fTreasuryFeeRate_lt?: InputMaybe; + fTreasuryFeeRate_lte?: InputMaybe; + fTreasuryFeeRate_not?: InputMaybe; + fTreasuryFeeRate_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + lastTradedPrice?: InputMaybe; + lastTradedPrice_gt?: InputMaybe; + lastTradedPrice_gte?: InputMaybe; + lastTradedPrice_in?: InputMaybe>; + lastTradedPrice_lt?: InputMaybe; + lastTradedPrice_lte?: InputMaybe; + lastTradedPrice_not?: InputMaybe; + lastTradedPrice_not_in?: InputMaybe>; + liquidates_?: InputMaybe; + markIndexPricePremium?: InputMaybe; + markIndexPricePremium_gt?: InputMaybe; + markIndexPricePremium_gte?: InputMaybe; + markIndexPricePremium_in?: InputMaybe>; + markIndexPricePremium_lt?: InputMaybe; + markIndexPricePremium_lte?: InputMaybe; + markIndexPricePremium_not?: InputMaybe; + markIndexPricePremium_not_in?: InputMaybe>; + openInterestBC?: InputMaybe; + openInterestBC_gt?: InputMaybe; + openInterestBC_gte?: InputMaybe; + openInterestBC_in?: InputMaybe>; + openInterestBC_lt?: InputMaybe; + openInterestBC_lte?: InputMaybe; + openInterestBC_not?: InputMaybe; + openInterestBC_not_in?: InputMaybe>; + oracleS2?: InputMaybe; + oracleS2_?: InputMaybe; + oracleS2_contains?: InputMaybe; + oracleS2_contains_nocase?: InputMaybe; + oracleS2_ends_with?: InputMaybe; + oracleS2_ends_with_nocase?: InputMaybe; + oracleS2_gt?: InputMaybe; + oracleS2_gte?: InputMaybe; + oracleS2_in?: InputMaybe>; + oracleS2_lt?: InputMaybe; + oracleS2_lte?: InputMaybe; + oracleS2_not?: InputMaybe; + oracleS2_not_contains?: InputMaybe; + oracleS2_not_contains_nocase?: InputMaybe; + oracleS2_not_ends_with?: InputMaybe; + oracleS2_not_ends_with_nocase?: InputMaybe; + oracleS2_not_in?: InputMaybe>; + oracleS2_not_starts_with?: InputMaybe; + oracleS2_not_starts_with_nocase?: InputMaybe; + oracleS2_starts_with?: InputMaybe; + oracleS2_starts_with_nocase?: InputMaybe; + oracleS3?: InputMaybe; + oracleS3_?: InputMaybe; + oracleS3_contains?: InputMaybe; + oracleS3_contains_nocase?: InputMaybe; + oracleS3_ends_with?: InputMaybe; + oracleS3_ends_with_nocase?: InputMaybe; + oracleS3_gt?: InputMaybe; + oracleS3_gte?: InputMaybe; + oracleS3_in?: InputMaybe>; + oracleS3_lt?: InputMaybe; + oracleS3_lte?: InputMaybe; + oracleS3_not?: InputMaybe; + oracleS3_not_contains?: InputMaybe; + oracleS3_not_contains_nocase?: InputMaybe; + oracleS3_not_ends_with?: InputMaybe; + oracleS3_not_ends_with_nocase?: InputMaybe; + oracleS3_not_in?: InputMaybe>; + oracleS3_not_starts_with?: InputMaybe; + oracleS3_not_starts_with_nocase?: InputMaybe; + oracleS3_starts_with?: InputMaybe; + oracleS3_starts_with_nocase?: InputMaybe; + pool?: InputMaybe; + pool_?: InputMaybe; + pool_contains?: InputMaybe; + pool_contains_nocase?: InputMaybe; + pool_ends_with?: InputMaybe; + pool_ends_with_nocase?: InputMaybe; + pool_gt?: InputMaybe; + pool_gte?: InputMaybe; + pool_in?: InputMaybe>; + pool_lt?: InputMaybe; + pool_lte?: InputMaybe; + pool_not?: InputMaybe; + pool_not_contains?: InputMaybe; + pool_not_contains_nocase?: InputMaybe; + pool_not_ends_with?: InputMaybe; + pool_not_ends_with_nocase?: InputMaybe; + pool_not_in?: InputMaybe>; + pool_not_starts_with?: InputMaybe; + pool_not_starts_with_nocase?: InputMaybe; + pool_starts_with?: InputMaybe; + pool_starts_with_nocase?: InputMaybe; + positionsTotalCount?: InputMaybe; + positionsTotalCount_gt?: InputMaybe; + positionsTotalCount_gte?: InputMaybe; + positionsTotalCount_in?: InputMaybe>; + positionsTotalCount_lt?: InputMaybe; + positionsTotalCount_lte?: InputMaybe; + positionsTotalCount_not?: InputMaybe; + positionsTotalCount_not_in?: InputMaybe>; + positions_?: InputMaybe; + state?: InputMaybe; + state_in?: InputMaybe>; + state_not?: InputMaybe; + state_not_in?: InputMaybe>; + totalAmountDeposited?: InputMaybe; + totalAmountDeposited_gt?: InputMaybe; + totalAmountDeposited_gte?: InputMaybe; + totalAmountDeposited_in?: InputMaybe>; + totalAmountDeposited_lt?: InputMaybe; + totalAmountDeposited_lte?: InputMaybe; + totalAmountDeposited_not?: InputMaybe; + totalAmountDeposited_not_in?: InputMaybe>; + totalAmountLiquidatedBC?: InputMaybe; + totalAmountLiquidatedBC_gt?: InputMaybe; + totalAmountLiquidatedBC_gte?: InputMaybe; + totalAmountLiquidatedBC_in?: InputMaybe>; + totalAmountLiquidatedBC_lt?: InputMaybe; + totalAmountLiquidatedBC_lte?: InputMaybe; + totalAmountLiquidatedBC_not?: InputMaybe; + totalAmountLiquidatedBC_not_in?: InputMaybe>; + totalAmountSettled?: InputMaybe; + totalAmountSettled_gt?: InputMaybe; + totalAmountSettled_gte?: InputMaybe; + totalAmountSettled_in?: InputMaybe>; + totalAmountSettled_lt?: InputMaybe; + totalAmountSettled_lte?: InputMaybe; + totalAmountSettled_not?: InputMaybe; + totalAmountSettled_not_in?: InputMaybe>; + totalTradingPnLCC?: InputMaybe; + totalTradingPnLCC_gt?: InputMaybe; + totalTradingPnLCC_gte?: InputMaybe; + totalTradingPnLCC_in?: InputMaybe>; + totalTradingPnLCC_lt?: InputMaybe; + totalTradingPnLCC_lte?: InputMaybe; + totalTradingPnLCC_not?: InputMaybe; + totalTradingPnLCC_not_in?: InputMaybe>; + traderStates_?: InputMaybe; + tradesTotalCount?: InputMaybe; + tradesTotalCount_gt?: InputMaybe; + tradesTotalCount_gte?: InputMaybe; + tradesTotalCount_in?: InputMaybe>; + tradesTotalCount_lt?: InputMaybe; + tradesTotalCount_lte?: InputMaybe; + tradesTotalCount_not?: InputMaybe; + tradesTotalCount_not_in?: InputMaybe>; + trades_?: InputMaybe; + unitAccumulativeFunding?: InputMaybe; + unitAccumulativeFunding_gt?: InputMaybe; + unitAccumulativeFunding_gte?: InputMaybe; + unitAccumulativeFunding_in?: InputMaybe>; + unitAccumulativeFunding_lt?: InputMaybe; + unitAccumulativeFunding_lte?: InputMaybe; + unitAccumulativeFunding_not?: InputMaybe; + unitAccumulativeFunding_not_in?: InputMaybe>; + updatedAtTx?: InputMaybe; + updatedAtTx_?: InputMaybe; + updatedAtTx_contains?: InputMaybe; + updatedAtTx_contains_nocase?: InputMaybe; + updatedAtTx_ends_with?: InputMaybe; + updatedAtTx_ends_with_nocase?: InputMaybe; + updatedAtTx_gt?: InputMaybe; + updatedAtTx_gte?: InputMaybe; + updatedAtTx_in?: InputMaybe>; + updatedAtTx_lt?: InputMaybe; + updatedAtTx_lte?: InputMaybe; + updatedAtTx_not?: InputMaybe; + updatedAtTx_not_contains?: InputMaybe; + updatedAtTx_not_contains_nocase?: InputMaybe; + updatedAtTx_not_ends_with?: InputMaybe; + updatedAtTx_not_ends_with_nocase?: InputMaybe; + updatedAtTx_not_in?: InputMaybe>; + updatedAtTx_not_starts_with?: InputMaybe; + updatedAtTx_not_starts_with_nocase?: InputMaybe; + updatedAtTx_starts_with?: InputMaybe; + updatedAtTx_starts_with_nocase?: InputMaybe; +}; + +export enum Perpetual_OrderBy { + AmmFund = 'ammFund', + CreatedAtTx = 'createdAtTx', + CurrentAmmExposureEmaLong = 'currentAMMExposureEMALong', + CurrentAmmExposureEmaShort = 'currentAMMExposureEMAShort', + CurrentTraderExposureEma = 'currentTraderExposureEMA', + DistributeFees = 'distributeFees', + ECollateralCurrency = 'eCollateralCurrency', + FAmmFundCashCc = 'fAMMFundCashCC', + FAmmMinSizeCc = 'fAMMMinSizeCC', + FAmmTargetDdBaseline = 'fAMMTargetDDBaseline', + FAmmTargetDdStress = 'fAMMTargetDDStress', + FDfCoverNRate = 'fDFCoverNRate', + FFundingRate = 'fFundingRate', + FFundingRateClamp = 'fFundingRateClamp', + FInitialMarginRateAlpha = 'fInitialMarginRateAlpha', + FInitialMarginRateCap = 'fInitialMarginRateCap', + FLiquidationPenaltyRate = 'fLiquidationPenaltyRate', + FLotSizeBc = 'fLotSizeBC', + FMaintenanceMarginRateAlpha = 'fMaintenanceMarginRateAlpha', + FMarginRateBeta = 'fMarginRateBeta', + FMarkPriceEmaLambda = 'fMarkPriceEMALambda', + FMaximalTradeSizeBumpUp = 'fMaximalTradeSizeBumpUp', + FMinimalAmmExposureEma = 'fMinimalAMMExposureEMA', + FMinimalSpread = 'fMinimalSpread', + FMinimalSpreadInStress = 'fMinimalSpreadInStress', + FMinimalTraderExposureEma = 'fMinimalTraderExposureEMA', + FPnLPartRate = 'fPnLPartRate', + FReferralRebateCc = 'fReferralRebateCC', + FRho23 = 'fRho23', + FSigma2 = 'fSigma2', + FSigma3 = 'fSigma3', + FSpotIndexPrice = 'fSpotIndexPrice', + FStressReturnS2Negative = 'fStressReturnS2Negative', + FStressReturnS2Positive = 'fStressReturnS2Positive', + FStressReturnS3Negative = 'fStressReturnS3Negative', + FStressReturnS3Positive = 'fStressReturnS3Positive', + FTreasuryFeeRate = 'fTreasuryFeeRate', + Id = 'id', + LastTradedPrice = 'lastTradedPrice', + Liquidates = 'liquidates', + MarkIndexPricePremium = 'markIndexPricePremium', + OpenInterestBc = 'openInterestBC', + OracleS2 = 'oracleS2', + OracleS3 = 'oracleS3', + Pool = 'pool', + Positions = 'positions', + PositionsTotalCount = 'positionsTotalCount', + State = 'state', + TotalAmountDeposited = 'totalAmountDeposited', + TotalAmountLiquidatedBc = 'totalAmountLiquidatedBC', + TotalAmountSettled = 'totalAmountSettled', + TotalTradingPnLcc = 'totalTradingPnLCC', + TraderStates = 'traderStates', + Trades = 'trades', + TradesTotalCount = 'tradesTotalCount', + UnitAccumulativeFunding = 'unitAccumulativeFunding', + UpdatedAtTx = 'updatedAtTx', +} + +export type Position = { + __typename?: 'Position'; + currentPositionSizeBC: Scalars['BigInt']; + endDate?: Maybe; + highestSizeBC: Scalars['BigInt']; + id: Scalars['ID']; + isClosed: Scalars['Boolean']; + lastChanged: Scalars['BigInt']; + liquidations?: Maybe>; + lockedInValueQC: Scalars['BigInt']; + lowestSizeBC: Scalars['BigInt']; + perpetual: Perpetual; + realizedPnLs?: Maybe>; + startDate: Scalars['BigInt']; + startPositionSizeBC: Scalars['BigInt']; + totalAmountLiquidatedBC: Scalars['BigInt']; + totalPnLCC: Scalars['BigInt']; + trader: Trader; + traderState: TraderState; + trades?: Maybe>; + tradesTotalCount: Scalars['Int']; +}; + +export type PositionLiquidationsArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +export type PositionRealizedPnLsArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +export type PositionTradesArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +export type Position_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + currentPositionSizeBC?: InputMaybe; + currentPositionSizeBC_gt?: InputMaybe; + currentPositionSizeBC_gte?: InputMaybe; + currentPositionSizeBC_in?: InputMaybe>; + currentPositionSizeBC_lt?: InputMaybe; + currentPositionSizeBC_lte?: InputMaybe; + currentPositionSizeBC_not?: InputMaybe; + currentPositionSizeBC_not_in?: InputMaybe>; + endDate?: InputMaybe; + endDate_gt?: InputMaybe; + endDate_gte?: InputMaybe; + endDate_in?: InputMaybe>; + endDate_lt?: InputMaybe; + endDate_lte?: InputMaybe; + endDate_not?: InputMaybe; + endDate_not_in?: InputMaybe>; + highestSizeBC?: InputMaybe; + highestSizeBC_gt?: InputMaybe; + highestSizeBC_gte?: InputMaybe; + highestSizeBC_in?: InputMaybe>; + highestSizeBC_lt?: InputMaybe; + highestSizeBC_lte?: InputMaybe; + highestSizeBC_not?: InputMaybe; + highestSizeBC_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + isClosed?: InputMaybe; + isClosed_in?: InputMaybe>; + isClosed_not?: InputMaybe; + isClosed_not_in?: InputMaybe>; + lastChanged?: InputMaybe; + lastChanged_gt?: InputMaybe; + lastChanged_gte?: InputMaybe; + lastChanged_in?: InputMaybe>; + lastChanged_lt?: InputMaybe; + lastChanged_lte?: InputMaybe; + lastChanged_not?: InputMaybe; + lastChanged_not_in?: InputMaybe>; + liquidations_?: InputMaybe; + lockedInValueQC?: InputMaybe; + lockedInValueQC_gt?: InputMaybe; + lockedInValueQC_gte?: InputMaybe; + lockedInValueQC_in?: InputMaybe>; + lockedInValueQC_lt?: InputMaybe; + lockedInValueQC_lte?: InputMaybe; + lockedInValueQC_not?: InputMaybe; + lockedInValueQC_not_in?: InputMaybe>; + lowestSizeBC?: InputMaybe; + lowestSizeBC_gt?: InputMaybe; + lowestSizeBC_gte?: InputMaybe; + lowestSizeBC_in?: InputMaybe>; + lowestSizeBC_lt?: InputMaybe; + lowestSizeBC_lte?: InputMaybe; + lowestSizeBC_not?: InputMaybe; + lowestSizeBC_not_in?: InputMaybe>; + perpetual?: InputMaybe; + perpetual_?: InputMaybe; + perpetual_contains?: InputMaybe; + perpetual_contains_nocase?: InputMaybe; + perpetual_ends_with?: InputMaybe; + perpetual_ends_with_nocase?: InputMaybe; + perpetual_gt?: InputMaybe; + perpetual_gte?: InputMaybe; + perpetual_in?: InputMaybe>; + perpetual_lt?: InputMaybe; + perpetual_lte?: InputMaybe; + perpetual_not?: InputMaybe; + perpetual_not_contains?: InputMaybe; + perpetual_not_contains_nocase?: InputMaybe; + perpetual_not_ends_with?: InputMaybe; + perpetual_not_ends_with_nocase?: InputMaybe; + perpetual_not_in?: InputMaybe>; + perpetual_not_starts_with?: InputMaybe; + perpetual_not_starts_with_nocase?: InputMaybe; + perpetual_starts_with?: InputMaybe; + perpetual_starts_with_nocase?: InputMaybe; + realizedPnLs_?: InputMaybe; + startDate?: InputMaybe; + startDate_gt?: InputMaybe; + startDate_gte?: InputMaybe; + startDate_in?: InputMaybe>; + startDate_lt?: InputMaybe; + startDate_lte?: InputMaybe; + startDate_not?: InputMaybe; + startDate_not_in?: InputMaybe>; + startPositionSizeBC?: InputMaybe; + startPositionSizeBC_gt?: InputMaybe; + startPositionSizeBC_gte?: InputMaybe; + startPositionSizeBC_in?: InputMaybe>; + startPositionSizeBC_lt?: InputMaybe; + startPositionSizeBC_lte?: InputMaybe; + startPositionSizeBC_not?: InputMaybe; + startPositionSizeBC_not_in?: InputMaybe>; + totalAmountLiquidatedBC?: InputMaybe; + totalAmountLiquidatedBC_gt?: InputMaybe; + totalAmountLiquidatedBC_gte?: InputMaybe; + totalAmountLiquidatedBC_in?: InputMaybe>; + totalAmountLiquidatedBC_lt?: InputMaybe; + totalAmountLiquidatedBC_lte?: InputMaybe; + totalAmountLiquidatedBC_not?: InputMaybe; + totalAmountLiquidatedBC_not_in?: InputMaybe>; + totalPnLCC?: InputMaybe; + totalPnLCC_gt?: InputMaybe; + totalPnLCC_gte?: InputMaybe; + totalPnLCC_in?: InputMaybe>; + totalPnLCC_lt?: InputMaybe; + totalPnLCC_lte?: InputMaybe; + totalPnLCC_not?: InputMaybe; + totalPnLCC_not_in?: InputMaybe>; + trader?: InputMaybe; + traderState?: InputMaybe; + traderState_?: InputMaybe; + traderState_contains?: InputMaybe; + traderState_contains_nocase?: InputMaybe; + traderState_ends_with?: InputMaybe; + traderState_ends_with_nocase?: InputMaybe; + traderState_gt?: InputMaybe; + traderState_gte?: InputMaybe; + traderState_in?: InputMaybe>; + traderState_lt?: InputMaybe; + traderState_lte?: InputMaybe; + traderState_not?: InputMaybe; + traderState_not_contains?: InputMaybe; + traderState_not_contains_nocase?: InputMaybe; + traderState_not_ends_with?: InputMaybe; + traderState_not_ends_with_nocase?: InputMaybe; + traderState_not_in?: InputMaybe>; + traderState_not_starts_with?: InputMaybe; + traderState_not_starts_with_nocase?: InputMaybe; + traderState_starts_with?: InputMaybe; + traderState_starts_with_nocase?: InputMaybe; + trader_?: InputMaybe; + trader_contains?: InputMaybe; + trader_contains_nocase?: InputMaybe; + trader_ends_with?: InputMaybe; + trader_ends_with_nocase?: InputMaybe; + trader_gt?: InputMaybe; + trader_gte?: InputMaybe; + trader_in?: InputMaybe>; + trader_lt?: InputMaybe; + trader_lte?: InputMaybe; + trader_not?: InputMaybe; + trader_not_contains?: InputMaybe; + trader_not_contains_nocase?: InputMaybe; + trader_not_ends_with?: InputMaybe; + trader_not_ends_with_nocase?: InputMaybe; + trader_not_in?: InputMaybe>; + trader_not_starts_with?: InputMaybe; + trader_not_starts_with_nocase?: InputMaybe; + trader_starts_with?: InputMaybe; + trader_starts_with_nocase?: InputMaybe; + tradesTotalCount?: InputMaybe; + tradesTotalCount_gt?: InputMaybe; + tradesTotalCount_gte?: InputMaybe; + tradesTotalCount_in?: InputMaybe>; + tradesTotalCount_lt?: InputMaybe; + tradesTotalCount_lte?: InputMaybe; + tradesTotalCount_not?: InputMaybe; + tradesTotalCount_not_in?: InputMaybe>; + trades_?: InputMaybe; +}; + +export enum Position_OrderBy { + CurrentPositionSizeBc = 'currentPositionSizeBC', + EndDate = 'endDate', + HighestSizeBc = 'highestSizeBC', + Id = 'id', + IsClosed = 'isClosed', + LastChanged = 'lastChanged', + Liquidations = 'liquidations', + LockedInValueQc = 'lockedInValueQC', + LowestSizeBc = 'lowestSizeBC', + Perpetual = 'perpetual', + RealizedPnLs = 'realizedPnLs', + StartDate = 'startDate', + StartPositionSizeBc = 'startPositionSizeBC', + TotalAmountLiquidatedBc = 'totalAmountLiquidatedBC', + TotalPnLcc = 'totalPnLCC', + Trader = 'trader', + TraderState = 'traderState', + Trades = 'trades', + TradesTotalCount = 'tradesTotalCount', +} + +export type ProxyOwnershipTransferred = { + __typename?: 'ProxyOwnershipTransferred'; + _newOwner: Scalars['Bytes']; + _oldOwner: Scalars['Bytes']; + id: Scalars['ID']; +}; + +export type ProxyOwnershipTransferred_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + _newOwner?: InputMaybe; + _newOwner_contains?: InputMaybe; + _newOwner_in?: InputMaybe>; + _newOwner_not?: InputMaybe; + _newOwner_not_contains?: InputMaybe; + _newOwner_not_in?: InputMaybe>; + _oldOwner?: InputMaybe; + _oldOwner_contains?: InputMaybe; + _oldOwner_in?: InputMaybe>; + _oldOwner_not?: InputMaybe; + _oldOwner_not_contains?: InputMaybe; + _oldOwner_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; +}; + +export enum ProxyOwnershipTransferred_OrderBy { + NewOwner = '_newOwner', + OldOwner = '_oldOwner', + Id = 'id', +} + +export type Query = { + __typename?: 'Query'; + /** Access to subgraph metadata */ + _meta?: Maybe<_Meta_>; + addAmmGovernanceAddress?: Maybe; + addAmmGovernanceAddresses: Array; + answerUpdated?: Maybe; + answerUpdateds: Array; + atomicYield?: Maybe; + atomicYields: Array; + candleSticksDay?: Maybe; + candleSticksDays: Array; + candleSticksFifteenMinute?: Maybe; + candleSticksFifteenMinutes: Array; + candleSticksFourHour?: Maybe; + candleSticksFourHours: Array; + candleSticksHour?: Maybe; + candleSticksHours: Array; + candleSticksMinute?: Maybe; + candleSticksMinutes: Array; + clear?: Maybe; + clears: Array; + distributeFee?: Maybe; + distributeFees: Array; + fund?: Maybe; + fundingPayment?: Maybe; + fundingPayments: Array; + fundingRate?: Maybe; + fundingRates: Array; + funds: Array; + implementationChanged?: Maybe; + implementationChangeds: Array; + limitOrder?: Maybe; + limitOrders: Array; + liquidate?: Maybe; + liquidates: Array; + liquidityAdded?: Maybe; + liquidityAddeds: Array; + liquidityPool?: Maybe; + liquidityPoolCreated?: Maybe; + liquidityPoolCreateds: Array; + liquidityPools: Array; + liquidityRemoved?: Maybe; + liquidityRemoveds: Array; + ownershipTransferred?: Maybe; + ownershipTransferreds: Array; + perpetual?: Maybe; + perpetualCreated?: Maybe; + perpetualCreateds: Array; + perpetualLimitOrderBookDeployed?: Maybe; + perpetualLimitOrderBookDeployeds: Array; + perpetualLimitOrderCancelled?: Maybe; + perpetualLimitOrderCancelleds: Array; + perpetualLimitOrderCreated?: Maybe; + perpetualLimitOrderCreateds: Array; + perpetuals: Array; + position?: Maybe; + positions: Array; + proxyOwnershipTransferred?: Maybe; + proxyOwnershipTransferreds: Array; + realizedPnL?: Maybe; + realizedPnLs: Array; + removeAmmGovernanceAddress?: Maybe; + removeAmmGovernanceAddresses: Array; + runLiquidityPool?: Maybe; + runLiquidityPools: Array; + setClearedState?: Maybe; + setClearedStates: Array; + setEmergencyState?: Maybe; + setEmergencyStates: Array; + setNormalState?: Maybe; + setNormalStates: Array; + setOracles: Array; + setParameter?: Maybe; + setParameterPair?: Maybe; + setParameterPairs: Array; + setParameters: Array; + setPerpetualBaseParameters: Array; + setPerpetualRiskParameters: Array; + setTargetPoolSizeUpdateTime?: Maybe; + setTargetPoolSizeUpdateTimes: Array; + setWithdrawalLimit?: Maybe; + setWithdrawalLimits: Array; + settle?: Maybe; + settles: Array; + spotOracle?: Maybe; + spotOracles: Array; + token?: Maybe; + tokens: Array; + tokensDeposited?: Maybe; + tokensDepositeds: Array; + tokensWithdrawn?: Maybe; + tokensWithdrawns: Array; + trade?: Maybe; + trader?: Maybe; + traderPool?: Maybe; + traderPools: Array; + traderState?: Maybe; + traderStates: Array; + traders: Array; + trades: Array; + transaction?: Maybe; + transactions: Array; + transferEarningsToTreasuries: Array; + transferEarningsToTreasury?: Maybe; + transferFeeToReferrer?: Maybe; + transferFeeToReferrers: Array; + transferTreasuryTo?: Maybe; + transferTreasuryTos: Array; + updateAMMFundCash?: Maybe; + updateAMMFundCashes: Array; + updateAMMFundTargetSize?: Maybe; + updateAMMFundTargetSizes: Array; + updateDefaultFundCash?: Maybe; + updateDefaultFundCashes: Array; + updateDefaultFundTargetSize?: Maybe; + updateDefaultFundTargetSizes: Array; + updateFundingRate?: Maybe; + updateFundingRates: Array; + updateMarginAccount?: Maybe; + updateMarginAccounts: Array; + updateMarkPrice?: Maybe; + updateMarkPrices: Array; + updateParticipationFundCash?: Maybe; + updateParticipationFundCashes: Array; + updatePrice?: Maybe; + updatePrices: Array; + updateReprTradeSizes: Array; + updateUnitAccumulatedFunding?: Maybe; + updateUnitAccumulatedFundings: Array; +}; + +export type Query_MetaArgs = { + block?: InputMaybe; +}; + +export type QueryAddAmmGovernanceAddressArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryAddAmmGovernanceAddressesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryAnswerUpdatedArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryAnswerUpdatedsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryAtomicYieldArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryAtomicYieldsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryCandleSticksDayArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryCandleSticksDaysArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryCandleSticksFifteenMinuteArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryCandleSticksFifteenMinutesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryCandleSticksFourHourArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryCandleSticksFourHoursArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryCandleSticksHourArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryCandleSticksHoursArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryCandleSticksMinuteArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryCandleSticksMinutesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryClearArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryClearsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryDistributeFeeArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryDistributeFeesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryFundArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryFundingPaymentArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryFundingPaymentsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryFundingRateArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryFundingRatesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryFundsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryImplementationChangedArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryImplementationChangedsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryLimitOrderArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryLimitOrdersArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryLiquidateArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryLiquidatesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryLiquidityAddedArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryLiquidityAddedsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryLiquidityPoolArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryLiquidityPoolCreatedArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryLiquidityPoolCreatedsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryLiquidityPoolsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryLiquidityRemovedArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryLiquidityRemovedsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryOwnershipTransferredArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryOwnershipTransferredsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryPerpetualArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryPerpetualCreatedArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryPerpetualCreatedsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryPerpetualLimitOrderBookDeployedArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryPerpetualLimitOrderBookDeployedsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryPerpetualLimitOrderCancelledArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryPerpetualLimitOrderCancelledsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryPerpetualLimitOrderCreatedArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryPerpetualLimitOrderCreatedsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryPerpetualsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryPositionArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryPositionsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryProxyOwnershipTransferredArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryProxyOwnershipTransferredsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryRealizedPnLArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryRealizedPnLsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryRemoveAmmGovernanceAddressArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryRemoveAmmGovernanceAddressesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryRunLiquidityPoolArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryRunLiquidityPoolsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QuerySetClearedStateArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QuerySetClearedStatesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QuerySetEmergencyStateArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QuerySetEmergencyStatesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QuerySetNormalStateArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QuerySetNormalStatesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QuerySetOraclesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QuerySetParameterArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QuerySetParameterPairArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QuerySetParameterPairsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QuerySetParametersArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QuerySetPerpetualBaseParametersArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QuerySetPerpetualRiskParametersArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QuerySetTargetPoolSizeUpdateTimeArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QuerySetTargetPoolSizeUpdateTimesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QuerySetWithdrawalLimitArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QuerySetWithdrawalLimitsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QuerySettleArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QuerySettlesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QuerySpotOracleArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QuerySpotOraclesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryTokenArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryTokensArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryTokensDepositedArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryTokensDepositedsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryTokensWithdrawnArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryTokensWithdrawnsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryTradeArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryTraderArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryTraderPoolArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryTraderPoolsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryTraderStateArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryTraderStatesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryTradersArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryTradesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryTransactionArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryTransactionsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryTransferEarningsToTreasuriesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryTransferEarningsToTreasuryArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryTransferFeeToReferrerArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryTransferFeeToReferrersArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryTransferTreasuryToArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryTransferTreasuryTosArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryUpdateAmmFundCashArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryUpdateAmmFundCashesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryUpdateAmmFundTargetSizeArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryUpdateAmmFundTargetSizesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryUpdateDefaultFundCashArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryUpdateDefaultFundCashesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryUpdateDefaultFundTargetSizeArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryUpdateDefaultFundTargetSizesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryUpdateFundingRateArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryUpdateFundingRatesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryUpdateMarginAccountArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryUpdateMarginAccountsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryUpdateMarkPriceArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryUpdateMarkPricesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryUpdateParticipationFundCashArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryUpdateParticipationFundCashesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryUpdatePriceArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryUpdatePricesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryUpdateReprTradeSizesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryUpdateUnitAccumulatedFundingArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryUpdateUnitAccumulatedFundingsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type RealizedPnL = { + __typename?: 'RealizedPnL'; + blockTimestamp: Scalars['BigInt']; + id: Scalars['ID']; + perpetual: Perpetual; + pnlCC: Scalars['BigInt']; + position: Position; + trader: Trader; +}; + +export type RealizedPnL_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + blockTimestamp?: InputMaybe; + blockTimestamp_gt?: InputMaybe; + blockTimestamp_gte?: InputMaybe; + blockTimestamp_in?: InputMaybe>; + blockTimestamp_lt?: InputMaybe; + blockTimestamp_lte?: InputMaybe; + blockTimestamp_not?: InputMaybe; + blockTimestamp_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + perpetual?: InputMaybe; + perpetual_?: InputMaybe; + perpetual_contains?: InputMaybe; + perpetual_contains_nocase?: InputMaybe; + perpetual_ends_with?: InputMaybe; + perpetual_ends_with_nocase?: InputMaybe; + perpetual_gt?: InputMaybe; + perpetual_gte?: InputMaybe; + perpetual_in?: InputMaybe>; + perpetual_lt?: InputMaybe; + perpetual_lte?: InputMaybe; + perpetual_not?: InputMaybe; + perpetual_not_contains?: InputMaybe; + perpetual_not_contains_nocase?: InputMaybe; + perpetual_not_ends_with?: InputMaybe; + perpetual_not_ends_with_nocase?: InputMaybe; + perpetual_not_in?: InputMaybe>; + perpetual_not_starts_with?: InputMaybe; + perpetual_not_starts_with_nocase?: InputMaybe; + perpetual_starts_with?: InputMaybe; + perpetual_starts_with_nocase?: InputMaybe; + pnlCC?: InputMaybe; + pnlCC_gt?: InputMaybe; + pnlCC_gte?: InputMaybe; + pnlCC_in?: InputMaybe>; + pnlCC_lt?: InputMaybe; + pnlCC_lte?: InputMaybe; + pnlCC_not?: InputMaybe; + pnlCC_not_in?: InputMaybe>; + position?: InputMaybe; + position_?: InputMaybe; + position_contains?: InputMaybe; + position_contains_nocase?: InputMaybe; + position_ends_with?: InputMaybe; + position_ends_with_nocase?: InputMaybe; + position_gt?: InputMaybe; + position_gte?: InputMaybe; + position_in?: InputMaybe>; + position_lt?: InputMaybe; + position_lte?: InputMaybe; + position_not?: InputMaybe; + position_not_contains?: InputMaybe; + position_not_contains_nocase?: InputMaybe; + position_not_ends_with?: InputMaybe; + position_not_ends_with_nocase?: InputMaybe; + position_not_in?: InputMaybe>; + position_not_starts_with?: InputMaybe; + position_not_starts_with_nocase?: InputMaybe; + position_starts_with?: InputMaybe; + position_starts_with_nocase?: InputMaybe; + trader?: InputMaybe; + trader_?: InputMaybe; + trader_contains?: InputMaybe; + trader_contains_nocase?: InputMaybe; + trader_ends_with?: InputMaybe; + trader_ends_with_nocase?: InputMaybe; + trader_gt?: InputMaybe; + trader_gte?: InputMaybe; + trader_in?: InputMaybe>; + trader_lt?: InputMaybe; + trader_lte?: InputMaybe; + trader_not?: InputMaybe; + trader_not_contains?: InputMaybe; + trader_not_contains_nocase?: InputMaybe; + trader_not_ends_with?: InputMaybe; + trader_not_ends_with_nocase?: InputMaybe; + trader_not_in?: InputMaybe>; + trader_not_starts_with?: InputMaybe; + trader_not_starts_with_nocase?: InputMaybe; + trader_starts_with?: InputMaybe; + trader_starts_with_nocase?: InputMaybe; +}; + +export enum RealizedPnL_OrderBy { + BlockTimestamp = 'blockTimestamp', + Id = 'id', + Perpetual = 'perpetual', + PnlCc = 'pnlCC', + Position = 'position', + Trader = 'trader', +} + +export type RemoveAmmGovernanceAddress = { + __typename?: 'RemoveAmmGovernanceAddress'; + gAddress: Scalars['Bytes']; + id: Scalars['ID']; +}; + +export type RemoveAmmGovernanceAddress_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + gAddress?: InputMaybe; + gAddress_contains?: InputMaybe; + gAddress_in?: InputMaybe>; + gAddress_not?: InputMaybe; + gAddress_not_contains?: InputMaybe; + gAddress_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; +}; + +export enum RemoveAmmGovernanceAddress_OrderBy { + GAddress = 'gAddress', + Id = 'id', +} + +export type RunLiquidityPool = { + __typename?: 'RunLiquidityPool'; + _liqPoolID: Scalars['Int']; + id: Scalars['ID']; +}; + +export type RunLiquidityPool_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + _liqPoolID?: InputMaybe; + _liqPoolID_gt?: InputMaybe; + _liqPoolID_gte?: InputMaybe; + _liqPoolID_in?: InputMaybe>; + _liqPoolID_lt?: InputMaybe; + _liqPoolID_lte?: InputMaybe; + _liqPoolID_not?: InputMaybe; + _liqPoolID_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; +}; + +export enum RunLiquidityPool_OrderBy { + LiqPoolId = '_liqPoolID', + Id = 'id', +} + +export type SetClearedState = { + __typename?: 'SetClearedState'; + id: Scalars['ID']; + perpetualId: Scalars['Bytes']; +}; + +export type SetClearedState_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + perpetualId?: InputMaybe; + perpetualId_contains?: InputMaybe; + perpetualId_in?: InputMaybe>; + perpetualId_not?: InputMaybe; + perpetualId_not_contains?: InputMaybe; + perpetualId_not_in?: InputMaybe>; +}; + +export enum SetClearedState_OrderBy { + Id = 'id', + PerpetualId = 'perpetualId', +} + +export type SetEmergencyState = { + __typename?: 'SetEmergencyState'; + fSettlementMarkPremiumRate: Scalars['BigInt']; + fSettlementS2Price: Scalars['BigInt']; + fSettlementS3Price: Scalars['BigInt']; + id: Scalars['ID']; + perpetualId: Scalars['Bytes']; +}; + +export type SetEmergencyState_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + fSettlementMarkPremiumRate?: InputMaybe; + fSettlementMarkPremiumRate_gt?: InputMaybe; + fSettlementMarkPremiumRate_gte?: InputMaybe; + fSettlementMarkPremiumRate_in?: InputMaybe>; + fSettlementMarkPremiumRate_lt?: InputMaybe; + fSettlementMarkPremiumRate_lte?: InputMaybe; + fSettlementMarkPremiumRate_not?: InputMaybe; + fSettlementMarkPremiumRate_not_in?: InputMaybe>; + fSettlementS2Price?: InputMaybe; + fSettlementS2Price_gt?: InputMaybe; + fSettlementS2Price_gte?: InputMaybe; + fSettlementS2Price_in?: InputMaybe>; + fSettlementS2Price_lt?: InputMaybe; + fSettlementS2Price_lte?: InputMaybe; + fSettlementS2Price_not?: InputMaybe; + fSettlementS2Price_not_in?: InputMaybe>; + fSettlementS3Price?: InputMaybe; + fSettlementS3Price_gt?: InputMaybe; + fSettlementS3Price_gte?: InputMaybe; + fSettlementS3Price_in?: InputMaybe>; + fSettlementS3Price_lt?: InputMaybe; + fSettlementS3Price_lte?: InputMaybe; + fSettlementS3Price_not?: InputMaybe; + fSettlementS3Price_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + perpetualId?: InputMaybe; + perpetualId_contains?: InputMaybe; + perpetualId_in?: InputMaybe>; + perpetualId_not?: InputMaybe; + perpetualId_not_contains?: InputMaybe; + perpetualId_not_in?: InputMaybe>; +}; + +export enum SetEmergencyState_OrderBy { + FSettlementMarkPremiumRate = 'fSettlementMarkPremiumRate', + FSettlementS2Price = 'fSettlementS2Price', + FSettlementS3Price = 'fSettlementS3Price', + Id = 'id', + PerpetualId = 'perpetualId', +} + +export type SetNormalState = { + __typename?: 'SetNormalState'; + id: Scalars['ID']; + perpetualId: Scalars['Bytes']; +}; + +export type SetNormalState_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + perpetualId?: InputMaybe; + perpetualId_contains?: InputMaybe; + perpetualId_in?: InputMaybe>; + perpetualId_not?: InputMaybe; + perpetualId_not_contains?: InputMaybe; + perpetualId_not_in?: InputMaybe>; +}; + +export enum SetNormalState_OrderBy { + Id = 'id', + PerpetualId = 'perpetualId', +} + +export type SetOracles = { + __typename?: 'SetOracles'; + id: Scalars['ID']; + perpetualId: Scalars['Bytes']; +}; + +export type SetOracles_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + perpetualId?: InputMaybe; + perpetualId_contains?: InputMaybe; + perpetualId_in?: InputMaybe>; + perpetualId_not?: InputMaybe; + perpetualId_not_contains?: InputMaybe; + perpetualId_not_in?: InputMaybe>; +}; + +export enum SetOracles_OrderBy { + Id = 'id', + PerpetualId = 'perpetualId', +} + +export type SetParameter = { + __typename?: 'SetParameter'; + id: Scalars['ID']; + name: Scalars['String']; + perpetual: Perpetual; + value: Scalars['BigInt']; +}; + +export type SetParameterPair = { + __typename?: 'SetParameterPair'; + id: Scalars['ID']; + name: Scalars['String']; + perpetualId: Scalars['Bytes']; + value1: Scalars['BigInt']; + value2: Scalars['BigInt']; +}; + +export type SetParameterPair_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + name?: InputMaybe; + name_contains?: InputMaybe; + name_contains_nocase?: InputMaybe; + name_ends_with?: InputMaybe; + name_ends_with_nocase?: InputMaybe; + name_gt?: InputMaybe; + name_gte?: InputMaybe; + name_in?: InputMaybe>; + name_lt?: InputMaybe; + name_lte?: InputMaybe; + name_not?: InputMaybe; + name_not_contains?: InputMaybe; + name_not_contains_nocase?: InputMaybe; + name_not_ends_with?: InputMaybe; + name_not_ends_with_nocase?: InputMaybe; + name_not_in?: InputMaybe>; + name_not_starts_with?: InputMaybe; + name_not_starts_with_nocase?: InputMaybe; + name_starts_with?: InputMaybe; + name_starts_with_nocase?: InputMaybe; + perpetualId?: InputMaybe; + perpetualId_contains?: InputMaybe; + perpetualId_in?: InputMaybe>; + perpetualId_not?: InputMaybe; + perpetualId_not_contains?: InputMaybe; + perpetualId_not_in?: InputMaybe>; + value1?: InputMaybe; + value1_gt?: InputMaybe; + value1_gte?: InputMaybe; + value1_in?: InputMaybe>; + value1_lt?: InputMaybe; + value1_lte?: InputMaybe; + value1_not?: InputMaybe; + value1_not_in?: InputMaybe>; + value2?: InputMaybe; + value2_gt?: InputMaybe; + value2_gte?: InputMaybe; + value2_in?: InputMaybe>; + value2_lt?: InputMaybe; + value2_lte?: InputMaybe; + value2_not?: InputMaybe; + value2_not_in?: InputMaybe>; +}; + +export enum SetParameterPair_OrderBy { + Id = 'id', + Name = 'name', + PerpetualId = 'perpetualId', + Value1 = 'value1', + Value2 = 'value2', +} + +export type SetParameter_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + name?: InputMaybe; + name_contains?: InputMaybe; + name_contains_nocase?: InputMaybe; + name_ends_with?: InputMaybe; + name_ends_with_nocase?: InputMaybe; + name_gt?: InputMaybe; + name_gte?: InputMaybe; + name_in?: InputMaybe>; + name_lt?: InputMaybe; + name_lte?: InputMaybe; + name_not?: InputMaybe; + name_not_contains?: InputMaybe; + name_not_contains_nocase?: InputMaybe; + name_not_ends_with?: InputMaybe; + name_not_ends_with_nocase?: InputMaybe; + name_not_in?: InputMaybe>; + name_not_starts_with?: InputMaybe; + name_not_starts_with_nocase?: InputMaybe; + name_starts_with?: InputMaybe; + name_starts_with_nocase?: InputMaybe; + perpetual?: InputMaybe; + perpetual_?: InputMaybe; + perpetual_contains?: InputMaybe; + perpetual_contains_nocase?: InputMaybe; + perpetual_ends_with?: InputMaybe; + perpetual_ends_with_nocase?: InputMaybe; + perpetual_gt?: InputMaybe; + perpetual_gte?: InputMaybe; + perpetual_in?: InputMaybe>; + perpetual_lt?: InputMaybe; + perpetual_lte?: InputMaybe; + perpetual_not?: InputMaybe; + perpetual_not_contains?: InputMaybe; + perpetual_not_contains_nocase?: InputMaybe; + perpetual_not_ends_with?: InputMaybe; + perpetual_not_ends_with_nocase?: InputMaybe; + perpetual_not_in?: InputMaybe>; + perpetual_not_starts_with?: InputMaybe; + perpetual_not_starts_with_nocase?: InputMaybe; + perpetual_starts_with?: InputMaybe; + perpetual_starts_with_nocase?: InputMaybe; + value?: InputMaybe; + value_gt?: InputMaybe; + value_gte?: InputMaybe; + value_in?: InputMaybe>; + value_lt?: InputMaybe; + value_lte?: InputMaybe; + value_not?: InputMaybe; + value_not_in?: InputMaybe>; +}; + +export enum SetParameter_OrderBy { + Id = 'id', + Name = 'name', + Perpetual = 'perpetual', + Value = 'value', +} + +export type SetPerpetualBaseParameters = { + __typename?: 'SetPerpetualBaseParameters'; + id: Scalars['ID']; + perpetualId: Scalars['Bytes']; +}; + +export type SetPerpetualBaseParameters_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + perpetualId?: InputMaybe; + perpetualId_contains?: InputMaybe; + perpetualId_in?: InputMaybe>; + perpetualId_not?: InputMaybe; + perpetualId_not_contains?: InputMaybe; + perpetualId_not_in?: InputMaybe>; +}; + +export enum SetPerpetualBaseParameters_OrderBy { + Id = 'id', + PerpetualId = 'perpetualId', +} + +export type SetPerpetualRiskParameters = { + __typename?: 'SetPerpetualRiskParameters'; + id: Scalars['ID']; + perpetualId: Scalars['Bytes']; +}; + +export type SetPerpetualRiskParameters_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + perpetualId?: InputMaybe; + perpetualId_contains?: InputMaybe; + perpetualId_in?: InputMaybe>; + perpetualId_not?: InputMaybe; + perpetualId_not_contains?: InputMaybe; + perpetualId_not_in?: InputMaybe>; +}; + +export enum SetPerpetualRiskParameters_OrderBy { + Id = 'id', + PerpetualId = 'perpetualId', +} + +export type SetTargetPoolSizeUpdateTime = { + __typename?: 'SetTargetPoolSizeUpdateTime'; + id: Scalars['ID']; + poolId: Scalars['Int']; + targetPoolSizeUpdateTime: Scalars['BigInt']; +}; + +export type SetTargetPoolSizeUpdateTime_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + poolId?: InputMaybe; + poolId_gt?: InputMaybe; + poolId_gte?: InputMaybe; + poolId_in?: InputMaybe>; + poolId_lt?: InputMaybe; + poolId_lte?: InputMaybe; + poolId_not?: InputMaybe; + poolId_not_in?: InputMaybe>; + targetPoolSizeUpdateTime?: InputMaybe; + targetPoolSizeUpdateTime_gt?: InputMaybe; + targetPoolSizeUpdateTime_gte?: InputMaybe; + targetPoolSizeUpdateTime_in?: InputMaybe>; + targetPoolSizeUpdateTime_lt?: InputMaybe; + targetPoolSizeUpdateTime_lte?: InputMaybe; + targetPoolSizeUpdateTime_not?: InputMaybe; + targetPoolSizeUpdateTime_not_in?: InputMaybe>; +}; + +export enum SetTargetPoolSizeUpdateTime_OrderBy { + Id = 'id', + PoolId = 'poolId', + TargetPoolSizeUpdateTime = 'targetPoolSizeUpdateTime', +} + +export type SetWithdrawalLimit = { + __typename?: 'SetWithdrawalLimit'; + PnLparticipantWithdrawalMinAmountLimit: Scalars['BigInt']; + PnLparticipantWithdrawalPercentageLimit: Scalars['BigInt']; + PnLparticipantWithdrawalPeriod: Scalars['BigInt']; + id: Scalars['ID']; + poolId: Scalars['Int']; +}; + +export type SetWithdrawalLimit_Filter = { + PnLparticipantWithdrawalMinAmountLimit?: InputMaybe; + PnLparticipantWithdrawalMinAmountLimit_gt?: InputMaybe; + PnLparticipantWithdrawalMinAmountLimit_gte?: InputMaybe; + PnLparticipantWithdrawalMinAmountLimit_in?: InputMaybe< + Array + >; + PnLparticipantWithdrawalMinAmountLimit_lt?: InputMaybe; + PnLparticipantWithdrawalMinAmountLimit_lte?: InputMaybe; + PnLparticipantWithdrawalMinAmountLimit_not?: InputMaybe; + PnLparticipantWithdrawalMinAmountLimit_not_in?: InputMaybe< + Array + >; + PnLparticipantWithdrawalPercentageLimit?: InputMaybe; + PnLparticipantWithdrawalPercentageLimit_gt?: InputMaybe; + PnLparticipantWithdrawalPercentageLimit_gte?: InputMaybe; + PnLparticipantWithdrawalPercentageLimit_in?: InputMaybe< + Array + >; + PnLparticipantWithdrawalPercentageLimit_lt?: InputMaybe; + PnLparticipantWithdrawalPercentageLimit_lte?: InputMaybe; + PnLparticipantWithdrawalPercentageLimit_not?: InputMaybe; + PnLparticipantWithdrawalPercentageLimit_not_in?: InputMaybe< + Array + >; + PnLparticipantWithdrawalPeriod?: InputMaybe; + PnLparticipantWithdrawalPeriod_gt?: InputMaybe; + PnLparticipantWithdrawalPeriod_gte?: InputMaybe; + PnLparticipantWithdrawalPeriod_in?: InputMaybe>; + PnLparticipantWithdrawalPeriod_lt?: InputMaybe; + PnLparticipantWithdrawalPeriod_lte?: InputMaybe; + PnLparticipantWithdrawalPeriod_not?: InputMaybe; + PnLparticipantWithdrawalPeriod_not_in?: InputMaybe>; + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + poolId?: InputMaybe; + poolId_gt?: InputMaybe; + poolId_gte?: InputMaybe; + poolId_in?: InputMaybe>; + poolId_lt?: InputMaybe; + poolId_lte?: InputMaybe; + poolId_not?: InputMaybe; + poolId_not_in?: InputMaybe>; +}; + +export enum SetWithdrawalLimit_OrderBy { + PnLparticipantWithdrawalMinAmountLimit = 'PnLparticipantWithdrawalMinAmountLimit', + PnLparticipantWithdrawalPercentageLimit = 'PnLparticipantWithdrawalPercentageLimit', + PnLparticipantWithdrawalPeriod = 'PnLparticipantWithdrawalPeriod', + Id = 'id', + PoolId = 'poolId', +} + +export type Settle = { + __typename?: 'Settle'; + amount: Scalars['BigInt']; + id: Scalars['ID']; + perpetualId: Scalars['Bytes']; + trader: Trader; +}; + +export type Settle_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + amount?: InputMaybe; + amount_gt?: InputMaybe; + amount_gte?: InputMaybe; + amount_in?: InputMaybe>; + amount_lt?: InputMaybe; + amount_lte?: InputMaybe; + amount_not?: InputMaybe; + amount_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + perpetualId?: InputMaybe; + perpetualId_contains?: InputMaybe; + perpetualId_in?: InputMaybe>; + perpetualId_not?: InputMaybe; + perpetualId_not_contains?: InputMaybe; + perpetualId_not_in?: InputMaybe>; + trader?: InputMaybe; + trader_?: InputMaybe; + trader_contains?: InputMaybe; + trader_contains_nocase?: InputMaybe; + trader_ends_with?: InputMaybe; + trader_ends_with_nocase?: InputMaybe; + trader_gt?: InputMaybe; + trader_gte?: InputMaybe; + trader_in?: InputMaybe>; + trader_lt?: InputMaybe; + trader_lte?: InputMaybe; + trader_not?: InputMaybe; + trader_not_contains?: InputMaybe; + trader_not_contains_nocase?: InputMaybe; + trader_not_ends_with?: InputMaybe; + trader_not_ends_with_nocase?: InputMaybe; + trader_not_in?: InputMaybe>; + trader_not_starts_with?: InputMaybe; + trader_not_starts_with_nocase?: InputMaybe; + trader_starts_with?: InputMaybe; + trader_starts_with_nocase?: InputMaybe; +}; + +export enum Settle_OrderBy { + Amount = 'amount', + Id = 'id', + PerpetualId = 'perpetualId', + Trader = 'trader', +} + +export type SpotOracle = { + __typename?: 'SpotOracle'; + answerUpdated: Scalars['BigInt']; + answerUpdatedDecimals: Scalars['Int']; + answerUpdatedTime: Scalars['Int']; + baseCurrency: Scalars['String']; + createdAtTimestamp: Scalars['Int']; + /** + * SpotOracle ID is the oracle address + * + */ + id: Scalars['ID']; + perpetuals: Array; + priceFeed: Scalars['Bytes']; + quoteCurrency: Scalars['String']; + spotPrice: Scalars['BigInt']; + timePrice: Scalars['Int']; + updatedAtTimestamp: Scalars['Int']; +}; + +export type SpotOraclePerpetualsArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +export type SpotOracle_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + answerUpdated?: InputMaybe; + answerUpdatedDecimals?: InputMaybe; + answerUpdatedDecimals_gt?: InputMaybe; + answerUpdatedDecimals_gte?: InputMaybe; + answerUpdatedDecimals_in?: InputMaybe>; + answerUpdatedDecimals_lt?: InputMaybe; + answerUpdatedDecimals_lte?: InputMaybe; + answerUpdatedDecimals_not?: InputMaybe; + answerUpdatedDecimals_not_in?: InputMaybe>; + answerUpdatedTime?: InputMaybe; + answerUpdatedTime_gt?: InputMaybe; + answerUpdatedTime_gte?: InputMaybe; + answerUpdatedTime_in?: InputMaybe>; + answerUpdatedTime_lt?: InputMaybe; + answerUpdatedTime_lte?: InputMaybe; + answerUpdatedTime_not?: InputMaybe; + answerUpdatedTime_not_in?: InputMaybe>; + answerUpdated_gt?: InputMaybe; + answerUpdated_gte?: InputMaybe; + answerUpdated_in?: InputMaybe>; + answerUpdated_lt?: InputMaybe; + answerUpdated_lte?: InputMaybe; + answerUpdated_not?: InputMaybe; + answerUpdated_not_in?: InputMaybe>; + baseCurrency?: InputMaybe; + baseCurrency_contains?: InputMaybe; + baseCurrency_contains_nocase?: InputMaybe; + baseCurrency_ends_with?: InputMaybe; + baseCurrency_ends_with_nocase?: InputMaybe; + baseCurrency_gt?: InputMaybe; + baseCurrency_gte?: InputMaybe; + baseCurrency_in?: InputMaybe>; + baseCurrency_lt?: InputMaybe; + baseCurrency_lte?: InputMaybe; + baseCurrency_not?: InputMaybe; + baseCurrency_not_contains?: InputMaybe; + baseCurrency_not_contains_nocase?: InputMaybe; + baseCurrency_not_ends_with?: InputMaybe; + baseCurrency_not_ends_with_nocase?: InputMaybe; + baseCurrency_not_in?: InputMaybe>; + baseCurrency_not_starts_with?: InputMaybe; + baseCurrency_not_starts_with_nocase?: InputMaybe; + baseCurrency_starts_with?: InputMaybe; + baseCurrency_starts_with_nocase?: InputMaybe; + createdAtTimestamp?: InputMaybe; + createdAtTimestamp_gt?: InputMaybe; + createdAtTimestamp_gte?: InputMaybe; + createdAtTimestamp_in?: InputMaybe>; + createdAtTimestamp_lt?: InputMaybe; + createdAtTimestamp_lte?: InputMaybe; + createdAtTimestamp_not?: InputMaybe; + createdAtTimestamp_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + perpetuals?: InputMaybe>; + perpetuals_?: InputMaybe; + perpetuals_contains?: InputMaybe>; + perpetuals_contains_nocase?: InputMaybe>; + perpetuals_not?: InputMaybe>; + perpetuals_not_contains?: InputMaybe>; + perpetuals_not_contains_nocase?: InputMaybe>; + priceFeed?: InputMaybe; + priceFeed_contains?: InputMaybe; + priceFeed_in?: InputMaybe>; + priceFeed_not?: InputMaybe; + priceFeed_not_contains?: InputMaybe; + priceFeed_not_in?: InputMaybe>; + quoteCurrency?: InputMaybe; + quoteCurrency_contains?: InputMaybe; + quoteCurrency_contains_nocase?: InputMaybe; + quoteCurrency_ends_with?: InputMaybe; + quoteCurrency_ends_with_nocase?: InputMaybe; + quoteCurrency_gt?: InputMaybe; + quoteCurrency_gte?: InputMaybe; + quoteCurrency_in?: InputMaybe>; + quoteCurrency_lt?: InputMaybe; + quoteCurrency_lte?: InputMaybe; + quoteCurrency_not?: InputMaybe; + quoteCurrency_not_contains?: InputMaybe; + quoteCurrency_not_contains_nocase?: InputMaybe; + quoteCurrency_not_ends_with?: InputMaybe; + quoteCurrency_not_ends_with_nocase?: InputMaybe; + quoteCurrency_not_in?: InputMaybe>; + quoteCurrency_not_starts_with?: InputMaybe; + quoteCurrency_not_starts_with_nocase?: InputMaybe; + quoteCurrency_starts_with?: InputMaybe; + quoteCurrency_starts_with_nocase?: InputMaybe; + spotPrice?: InputMaybe; + spotPrice_gt?: InputMaybe; + spotPrice_gte?: InputMaybe; + spotPrice_in?: InputMaybe>; + spotPrice_lt?: InputMaybe; + spotPrice_lte?: InputMaybe; + spotPrice_not?: InputMaybe; + spotPrice_not_in?: InputMaybe>; + timePrice?: InputMaybe; + timePrice_gt?: InputMaybe; + timePrice_gte?: InputMaybe; + timePrice_in?: InputMaybe>; + timePrice_lt?: InputMaybe; + timePrice_lte?: InputMaybe; + timePrice_not?: InputMaybe; + timePrice_not_in?: InputMaybe>; + updatedAtTimestamp?: InputMaybe; + updatedAtTimestamp_gt?: InputMaybe; + updatedAtTimestamp_gte?: InputMaybe; + updatedAtTimestamp_in?: InputMaybe>; + updatedAtTimestamp_lt?: InputMaybe; + updatedAtTimestamp_lte?: InputMaybe; + updatedAtTimestamp_not?: InputMaybe; + updatedAtTimestamp_not_in?: InputMaybe>; +}; + +export enum SpotOracle_OrderBy { + AnswerUpdated = 'answerUpdated', + AnswerUpdatedDecimals = 'answerUpdatedDecimals', + AnswerUpdatedTime = 'answerUpdatedTime', + BaseCurrency = 'baseCurrency', + CreatedAtTimestamp = 'createdAtTimestamp', + Id = 'id', + Perpetuals = 'perpetuals', + PriceFeed = 'priceFeed', + QuoteCurrency = 'quoteCurrency', + SpotPrice = 'spotPrice', + TimePrice = 'timePrice', + UpdatedAtTimestamp = 'updatedAtTimestamp', +} + +export type Subscription = { + __typename?: 'Subscription'; + /** Access to subgraph metadata */ + _meta?: Maybe<_Meta_>; + addAmmGovernanceAddress?: Maybe; + addAmmGovernanceAddresses: Array; + answerUpdated?: Maybe; + answerUpdateds: Array; + atomicYield?: Maybe; + atomicYields: Array; + candleSticksDay?: Maybe; + candleSticksDays: Array; + candleSticksFifteenMinute?: Maybe; + candleSticksFifteenMinutes: Array; + candleSticksFourHour?: Maybe; + candleSticksFourHours: Array; + candleSticksHour?: Maybe; + candleSticksHours: Array; + candleSticksMinute?: Maybe; + candleSticksMinutes: Array; + clear?: Maybe; + clears: Array; + distributeFee?: Maybe; + distributeFees: Array; + fund?: Maybe; + fundingPayment?: Maybe; + fundingPayments: Array; + fundingRate?: Maybe; + fundingRates: Array; + funds: Array; + implementationChanged?: Maybe; + implementationChangeds: Array; + limitOrder?: Maybe; + limitOrders: Array; + liquidate?: Maybe; + liquidates: Array; + liquidityAdded?: Maybe; + liquidityAddeds: Array; + liquidityPool?: Maybe; + liquidityPoolCreated?: Maybe; + liquidityPoolCreateds: Array; + liquidityPools: Array; + liquidityRemoved?: Maybe; + liquidityRemoveds: Array; + ownershipTransferred?: Maybe; + ownershipTransferreds: Array; + perpetual?: Maybe; + perpetualCreated?: Maybe; + perpetualCreateds: Array; + perpetualLimitOrderBookDeployed?: Maybe; + perpetualLimitOrderBookDeployeds: Array; + perpetualLimitOrderCancelled?: Maybe; + perpetualLimitOrderCancelleds: Array; + perpetualLimitOrderCreated?: Maybe; + perpetualLimitOrderCreateds: Array; + perpetuals: Array; + position?: Maybe; + positions: Array; + proxyOwnershipTransferred?: Maybe; + proxyOwnershipTransferreds: Array; + realizedPnL?: Maybe; + realizedPnLs: Array; + removeAmmGovernanceAddress?: Maybe; + removeAmmGovernanceAddresses: Array; + runLiquidityPool?: Maybe; + runLiquidityPools: Array; + setClearedState?: Maybe; + setClearedStates: Array; + setEmergencyState?: Maybe; + setEmergencyStates: Array; + setNormalState?: Maybe; + setNormalStates: Array; + setOracles: Array; + setParameter?: Maybe; + setParameterPair?: Maybe; + setParameterPairs: Array; + setParameters: Array; + setPerpetualBaseParameters: Array; + setPerpetualRiskParameters: Array; + setTargetPoolSizeUpdateTime?: Maybe; + setTargetPoolSizeUpdateTimes: Array; + setWithdrawalLimit?: Maybe; + setWithdrawalLimits: Array; + settle?: Maybe; + settles: Array; + spotOracle?: Maybe; + spotOracles: Array; + token?: Maybe; + tokens: Array; + tokensDeposited?: Maybe; + tokensDepositeds: Array; + tokensWithdrawn?: Maybe; + tokensWithdrawns: Array; + trade?: Maybe; + trader?: Maybe; + traderPool?: Maybe; + traderPools: Array; + traderState?: Maybe; + traderStates: Array; + traders: Array; + trades: Array; + transaction?: Maybe; + transactions: Array; + transferEarningsToTreasuries: Array; + transferEarningsToTreasury?: Maybe; + transferFeeToReferrer?: Maybe; + transferFeeToReferrers: Array; + transferTreasuryTo?: Maybe; + transferTreasuryTos: Array; + updateAMMFundCash?: Maybe; + updateAMMFundCashes: Array; + updateAMMFundTargetSize?: Maybe; + updateAMMFundTargetSizes: Array; + updateDefaultFundCash?: Maybe; + updateDefaultFundCashes: Array; + updateDefaultFundTargetSize?: Maybe; + updateDefaultFundTargetSizes: Array; + updateFundingRate?: Maybe; + updateFundingRates: Array; + updateMarginAccount?: Maybe; + updateMarginAccounts: Array; + updateMarkPrice?: Maybe; + updateMarkPrices: Array; + updateParticipationFundCash?: Maybe; + updateParticipationFundCashes: Array; + updatePrice?: Maybe; + updatePrices: Array; + updateReprTradeSizes: Array; + updateUnitAccumulatedFunding?: Maybe; + updateUnitAccumulatedFundings: Array; +}; + +export type Subscription_MetaArgs = { + block?: InputMaybe; +}; + +export type SubscriptionAddAmmGovernanceAddressArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionAddAmmGovernanceAddressesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionAnswerUpdatedArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionAnswerUpdatedsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionAtomicYieldArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionAtomicYieldsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionCandleSticksDayArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionCandleSticksDaysArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionCandleSticksFifteenMinuteArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionCandleSticksFifteenMinutesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionCandleSticksFourHourArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionCandleSticksFourHoursArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionCandleSticksHourArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionCandleSticksHoursArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionCandleSticksMinuteArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionCandleSticksMinutesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionClearArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionClearsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionDistributeFeeArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionDistributeFeesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionFundArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionFundingPaymentArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionFundingPaymentsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionFundingRateArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionFundingRatesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionFundsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionImplementationChangedArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionImplementationChangedsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionLimitOrderArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionLimitOrdersArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionLiquidateArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionLiquidatesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionLiquidityAddedArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionLiquidityAddedsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionLiquidityPoolArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionLiquidityPoolCreatedArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionLiquidityPoolCreatedsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionLiquidityPoolsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionLiquidityRemovedArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionLiquidityRemovedsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionOwnershipTransferredArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionOwnershipTransferredsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionPerpetualArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionPerpetualCreatedArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionPerpetualCreatedsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionPerpetualLimitOrderBookDeployedArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionPerpetualLimitOrderBookDeployedsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionPerpetualLimitOrderCancelledArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionPerpetualLimitOrderCancelledsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionPerpetualLimitOrderCreatedArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionPerpetualLimitOrderCreatedsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionPerpetualsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionPositionArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionPositionsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionProxyOwnershipTransferredArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionProxyOwnershipTransferredsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionRealizedPnLArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionRealizedPnLsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionRemoveAmmGovernanceAddressArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionRemoveAmmGovernanceAddressesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionRunLiquidityPoolArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionRunLiquidityPoolsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionSetClearedStateArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionSetClearedStatesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionSetEmergencyStateArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionSetEmergencyStatesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionSetNormalStateArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionSetNormalStatesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionSetOraclesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionSetParameterArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionSetParameterPairArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionSetParameterPairsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionSetParametersArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionSetPerpetualBaseParametersArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionSetPerpetualRiskParametersArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionSetTargetPoolSizeUpdateTimeArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionSetTargetPoolSizeUpdateTimesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionSetWithdrawalLimitArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionSetWithdrawalLimitsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionSettleArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionSettlesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionSpotOracleArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionSpotOraclesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionTokenArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionTokensArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionTokensDepositedArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionTokensDepositedsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionTokensWithdrawnArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionTokensWithdrawnsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionTradeArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionTraderArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionTraderPoolArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionTraderPoolsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionTraderStateArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionTraderStatesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionTradersArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionTradesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionTransactionArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionTransactionsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionTransferEarningsToTreasuriesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionTransferEarningsToTreasuryArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionTransferFeeToReferrerArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionTransferFeeToReferrersArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionTransferTreasuryToArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionTransferTreasuryTosArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionUpdateAmmFundCashArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionUpdateAmmFundCashesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionUpdateAmmFundTargetSizeArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionUpdateAmmFundTargetSizesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionUpdateDefaultFundCashArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionUpdateDefaultFundCashesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionUpdateDefaultFundTargetSizeArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionUpdateDefaultFundTargetSizesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionUpdateFundingRateArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionUpdateFundingRatesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionUpdateMarginAccountArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionUpdateMarginAccountsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionUpdateMarkPriceArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionUpdateMarkPricesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionUpdateParticipationFundCashArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionUpdateParticipationFundCashesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionUpdatePriceArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionUpdatePricesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionUpdateReprTradeSizesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionUpdateUnitAccumulatedFundingArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionUpdateUnitAccumulatedFundingsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type Token = { + __typename?: 'Token'; + decimals: Scalars['Int']; + id: Scalars['ID']; + name: Scalars['String']; + symbol: Scalars['String']; + totalSupply: Scalars['BigInt']; +}; + +export type Token_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + decimals?: InputMaybe; + decimals_gt?: InputMaybe; + decimals_gte?: InputMaybe; + decimals_in?: InputMaybe>; + decimals_lt?: InputMaybe; + decimals_lte?: InputMaybe; + decimals_not?: InputMaybe; + decimals_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + name?: InputMaybe; + name_contains?: InputMaybe; + name_contains_nocase?: InputMaybe; + name_ends_with?: InputMaybe; + name_ends_with_nocase?: InputMaybe; + name_gt?: InputMaybe; + name_gte?: InputMaybe; + name_in?: InputMaybe>; + name_lt?: InputMaybe; + name_lte?: InputMaybe; + name_not?: InputMaybe; + name_not_contains?: InputMaybe; + name_not_contains_nocase?: InputMaybe; + name_not_ends_with?: InputMaybe; + name_not_ends_with_nocase?: InputMaybe; + name_not_in?: InputMaybe>; + name_not_starts_with?: InputMaybe; + name_not_starts_with_nocase?: InputMaybe; + name_starts_with?: InputMaybe; + name_starts_with_nocase?: InputMaybe; + symbol?: InputMaybe; + symbol_contains?: InputMaybe; + symbol_contains_nocase?: InputMaybe; + symbol_ends_with?: InputMaybe; + symbol_ends_with_nocase?: InputMaybe; + symbol_gt?: InputMaybe; + symbol_gte?: InputMaybe; + symbol_in?: InputMaybe>; + symbol_lt?: InputMaybe; + symbol_lte?: InputMaybe; + symbol_not?: InputMaybe; + symbol_not_contains?: InputMaybe; + symbol_not_contains_nocase?: InputMaybe; + symbol_not_ends_with?: InputMaybe; + symbol_not_ends_with_nocase?: InputMaybe; + symbol_not_in?: InputMaybe>; + symbol_not_starts_with?: InputMaybe; + symbol_not_starts_with_nocase?: InputMaybe; + symbol_starts_with?: InputMaybe; + symbol_starts_with_nocase?: InputMaybe; + totalSupply?: InputMaybe; + totalSupply_gt?: InputMaybe; + totalSupply_gte?: InputMaybe; + totalSupply_in?: InputMaybe>; + totalSupply_lt?: InputMaybe; + totalSupply_lte?: InputMaybe; + totalSupply_not?: InputMaybe; + totalSupply_not_in?: InputMaybe>; +}; + +export enum Token_OrderBy { + Decimals = 'decimals', + Id = 'id', + Name = 'name', + Symbol = 'symbol', + TotalSupply = 'totalSupply', +} + +export type TokensDeposited = { + __typename?: 'TokensDeposited'; + amount: Scalars['BigInt']; + blockTimestamp: Scalars['BigInt']; + id: Scalars['ID']; + perpetualId: Scalars['Bytes']; + trader: Trader; + transaction: Transaction; +}; + +export type TokensDeposited_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + amount?: InputMaybe; + amount_gt?: InputMaybe; + amount_gte?: InputMaybe; + amount_in?: InputMaybe>; + amount_lt?: InputMaybe; + amount_lte?: InputMaybe; + amount_not?: InputMaybe; + amount_not_in?: InputMaybe>; + blockTimestamp?: InputMaybe; + blockTimestamp_gt?: InputMaybe; + blockTimestamp_gte?: InputMaybe; + blockTimestamp_in?: InputMaybe>; + blockTimestamp_lt?: InputMaybe; + blockTimestamp_lte?: InputMaybe; + blockTimestamp_not?: InputMaybe; + blockTimestamp_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + perpetualId?: InputMaybe; + perpetualId_contains?: InputMaybe; + perpetualId_in?: InputMaybe>; + perpetualId_not?: InputMaybe; + perpetualId_not_contains?: InputMaybe; + perpetualId_not_in?: InputMaybe>; + trader?: InputMaybe; + trader_?: InputMaybe; + trader_contains?: InputMaybe; + trader_contains_nocase?: InputMaybe; + trader_ends_with?: InputMaybe; + trader_ends_with_nocase?: InputMaybe; + trader_gt?: InputMaybe; + trader_gte?: InputMaybe; + trader_in?: InputMaybe>; + trader_lt?: InputMaybe; + trader_lte?: InputMaybe; + trader_not?: InputMaybe; + trader_not_contains?: InputMaybe; + trader_not_contains_nocase?: InputMaybe; + trader_not_ends_with?: InputMaybe; + trader_not_ends_with_nocase?: InputMaybe; + trader_not_in?: InputMaybe>; + trader_not_starts_with?: InputMaybe; + trader_not_starts_with_nocase?: InputMaybe; + trader_starts_with?: InputMaybe; + trader_starts_with_nocase?: InputMaybe; + transaction?: InputMaybe; + transaction_?: InputMaybe; + transaction_contains?: InputMaybe; + transaction_contains_nocase?: InputMaybe; + transaction_ends_with?: InputMaybe; + transaction_ends_with_nocase?: InputMaybe; + transaction_gt?: InputMaybe; + transaction_gte?: InputMaybe; + transaction_in?: InputMaybe>; + transaction_lt?: InputMaybe; + transaction_lte?: InputMaybe; + transaction_not?: InputMaybe; + transaction_not_contains?: InputMaybe; + transaction_not_contains_nocase?: InputMaybe; + transaction_not_ends_with?: InputMaybe; + transaction_not_ends_with_nocase?: InputMaybe; + transaction_not_in?: InputMaybe>; + transaction_not_starts_with?: InputMaybe; + transaction_not_starts_with_nocase?: InputMaybe; + transaction_starts_with?: InputMaybe; + transaction_starts_with_nocase?: InputMaybe; +}; + +export enum TokensDeposited_OrderBy { + Amount = 'amount', + BlockTimestamp = 'blockTimestamp', + Id = 'id', + PerpetualId = 'perpetualId', + Trader = 'trader', + Transaction = 'transaction', +} + +export type TokensWithdrawn = { + __typename?: 'TokensWithdrawn'; + amount: Scalars['BigInt']; + blockTimestamp: Scalars['BigInt']; + id: Scalars['ID']; + perpetualId: Scalars['Bytes']; + trader: Trader; + transaction: Transaction; +}; + +export type TokensWithdrawn_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + amount?: InputMaybe; + amount_gt?: InputMaybe; + amount_gte?: InputMaybe; + amount_in?: InputMaybe>; + amount_lt?: InputMaybe; + amount_lte?: InputMaybe; + amount_not?: InputMaybe; + amount_not_in?: InputMaybe>; + blockTimestamp?: InputMaybe; + blockTimestamp_gt?: InputMaybe; + blockTimestamp_gte?: InputMaybe; + blockTimestamp_in?: InputMaybe>; + blockTimestamp_lt?: InputMaybe; + blockTimestamp_lte?: InputMaybe; + blockTimestamp_not?: InputMaybe; + blockTimestamp_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + perpetualId?: InputMaybe; + perpetualId_contains?: InputMaybe; + perpetualId_in?: InputMaybe>; + perpetualId_not?: InputMaybe; + perpetualId_not_contains?: InputMaybe; + perpetualId_not_in?: InputMaybe>; + trader?: InputMaybe; + trader_?: InputMaybe; + trader_contains?: InputMaybe; + trader_contains_nocase?: InputMaybe; + trader_ends_with?: InputMaybe; + trader_ends_with_nocase?: InputMaybe; + trader_gt?: InputMaybe; + trader_gte?: InputMaybe; + trader_in?: InputMaybe>; + trader_lt?: InputMaybe; + trader_lte?: InputMaybe; + trader_not?: InputMaybe; + trader_not_contains?: InputMaybe; + trader_not_contains_nocase?: InputMaybe; + trader_not_ends_with?: InputMaybe; + trader_not_ends_with_nocase?: InputMaybe; + trader_not_in?: InputMaybe>; + trader_not_starts_with?: InputMaybe; + trader_not_starts_with_nocase?: InputMaybe; + trader_starts_with?: InputMaybe; + trader_starts_with_nocase?: InputMaybe; + transaction?: InputMaybe; + transaction_?: InputMaybe; + transaction_contains?: InputMaybe; + transaction_contains_nocase?: InputMaybe; + transaction_ends_with?: InputMaybe; + transaction_ends_with_nocase?: InputMaybe; + transaction_gt?: InputMaybe; + transaction_gte?: InputMaybe; + transaction_in?: InputMaybe>; + transaction_lt?: InputMaybe; + transaction_lte?: InputMaybe; + transaction_not?: InputMaybe; + transaction_not_contains?: InputMaybe; + transaction_not_contains_nocase?: InputMaybe; + transaction_not_ends_with?: InputMaybe; + transaction_not_ends_with_nocase?: InputMaybe; + transaction_not_in?: InputMaybe>; + transaction_not_starts_with?: InputMaybe; + transaction_not_starts_with_nocase?: InputMaybe; + transaction_starts_with?: InputMaybe; + transaction_starts_with_nocase?: InputMaybe; +}; + +export enum TokensWithdrawn_OrderBy { + Amount = 'amount', + BlockTimestamp = 'blockTimestamp', + Id = 'id', + PerpetualId = 'perpetualId', + Trader = 'trader', + Transaction = 'transaction', +} + +export type Trade = { + __typename?: 'Trade'; + blockTimestamp: Scalars['BigInt']; + id: Scalars['ID']; + isClose: Scalars['Boolean']; + limitPrice: Scalars['BigInt']; + newPositionSizeBC: Scalars['BigInt']; + orderDigest: Scalars['Bytes']; + orderFlags: Scalars['BigInt']; + perpetual: Perpetual; + position: Position; + price: Scalars['BigInt']; + tradeAmountBC: Scalars['BigInt']; + trader: Trader; + traderState: TraderState; + transaction: Transaction; +}; + +export type Trade_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + blockTimestamp?: InputMaybe; + blockTimestamp_gt?: InputMaybe; + blockTimestamp_gte?: InputMaybe; + blockTimestamp_in?: InputMaybe>; + blockTimestamp_lt?: InputMaybe; + blockTimestamp_lte?: InputMaybe; + blockTimestamp_not?: InputMaybe; + blockTimestamp_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + isClose?: InputMaybe; + isClose_in?: InputMaybe>; + isClose_not?: InputMaybe; + isClose_not_in?: InputMaybe>; + limitPrice?: InputMaybe; + limitPrice_gt?: InputMaybe; + limitPrice_gte?: InputMaybe; + limitPrice_in?: InputMaybe>; + limitPrice_lt?: InputMaybe; + limitPrice_lte?: InputMaybe; + limitPrice_not?: InputMaybe; + limitPrice_not_in?: InputMaybe>; + newPositionSizeBC?: InputMaybe; + newPositionSizeBC_gt?: InputMaybe; + newPositionSizeBC_gte?: InputMaybe; + newPositionSizeBC_in?: InputMaybe>; + newPositionSizeBC_lt?: InputMaybe; + newPositionSizeBC_lte?: InputMaybe; + newPositionSizeBC_not?: InputMaybe; + newPositionSizeBC_not_in?: InputMaybe>; + orderDigest?: InputMaybe; + orderDigest_contains?: InputMaybe; + orderDigest_in?: InputMaybe>; + orderDigest_not?: InputMaybe; + orderDigest_not_contains?: InputMaybe; + orderDigest_not_in?: InputMaybe>; + orderFlags?: InputMaybe; + orderFlags_gt?: InputMaybe; + orderFlags_gte?: InputMaybe; + orderFlags_in?: InputMaybe>; + orderFlags_lt?: InputMaybe; + orderFlags_lte?: InputMaybe; + orderFlags_not?: InputMaybe; + orderFlags_not_in?: InputMaybe>; + perpetual?: InputMaybe; + perpetual_?: InputMaybe; + perpetual_contains?: InputMaybe; + perpetual_contains_nocase?: InputMaybe; + perpetual_ends_with?: InputMaybe; + perpetual_ends_with_nocase?: InputMaybe; + perpetual_gt?: InputMaybe; + perpetual_gte?: InputMaybe; + perpetual_in?: InputMaybe>; + perpetual_lt?: InputMaybe; + perpetual_lte?: InputMaybe; + perpetual_not?: InputMaybe; + perpetual_not_contains?: InputMaybe; + perpetual_not_contains_nocase?: InputMaybe; + perpetual_not_ends_with?: InputMaybe; + perpetual_not_ends_with_nocase?: InputMaybe; + perpetual_not_in?: InputMaybe>; + perpetual_not_starts_with?: InputMaybe; + perpetual_not_starts_with_nocase?: InputMaybe; + perpetual_starts_with?: InputMaybe; + perpetual_starts_with_nocase?: InputMaybe; + position?: InputMaybe; + position_?: InputMaybe; + position_contains?: InputMaybe; + position_contains_nocase?: InputMaybe; + position_ends_with?: InputMaybe; + position_ends_with_nocase?: InputMaybe; + position_gt?: InputMaybe; + position_gte?: InputMaybe; + position_in?: InputMaybe>; + position_lt?: InputMaybe; + position_lte?: InputMaybe; + position_not?: InputMaybe; + position_not_contains?: InputMaybe; + position_not_contains_nocase?: InputMaybe; + position_not_ends_with?: InputMaybe; + position_not_ends_with_nocase?: InputMaybe; + position_not_in?: InputMaybe>; + position_not_starts_with?: InputMaybe; + position_not_starts_with_nocase?: InputMaybe; + position_starts_with?: InputMaybe; + position_starts_with_nocase?: InputMaybe; + price?: InputMaybe; + price_gt?: InputMaybe; + price_gte?: InputMaybe; + price_in?: InputMaybe>; + price_lt?: InputMaybe; + price_lte?: InputMaybe; + price_not?: InputMaybe; + price_not_in?: InputMaybe>; + tradeAmountBC?: InputMaybe; + tradeAmountBC_gt?: InputMaybe; + tradeAmountBC_gte?: InputMaybe; + tradeAmountBC_in?: InputMaybe>; + tradeAmountBC_lt?: InputMaybe; + tradeAmountBC_lte?: InputMaybe; + tradeAmountBC_not?: InputMaybe; + tradeAmountBC_not_in?: InputMaybe>; + trader?: InputMaybe; + traderState?: InputMaybe; + traderState_?: InputMaybe; + traderState_contains?: InputMaybe; + traderState_contains_nocase?: InputMaybe; + traderState_ends_with?: InputMaybe; + traderState_ends_with_nocase?: InputMaybe; + traderState_gt?: InputMaybe; + traderState_gte?: InputMaybe; + traderState_in?: InputMaybe>; + traderState_lt?: InputMaybe; + traderState_lte?: InputMaybe; + traderState_not?: InputMaybe; + traderState_not_contains?: InputMaybe; + traderState_not_contains_nocase?: InputMaybe; + traderState_not_ends_with?: InputMaybe; + traderState_not_ends_with_nocase?: InputMaybe; + traderState_not_in?: InputMaybe>; + traderState_not_starts_with?: InputMaybe; + traderState_not_starts_with_nocase?: InputMaybe; + traderState_starts_with?: InputMaybe; + traderState_starts_with_nocase?: InputMaybe; + trader_?: InputMaybe; + trader_contains?: InputMaybe; + trader_contains_nocase?: InputMaybe; + trader_ends_with?: InputMaybe; + trader_ends_with_nocase?: InputMaybe; + trader_gt?: InputMaybe; + trader_gte?: InputMaybe; + trader_in?: InputMaybe>; + trader_lt?: InputMaybe; + trader_lte?: InputMaybe; + trader_not?: InputMaybe; + trader_not_contains?: InputMaybe; + trader_not_contains_nocase?: InputMaybe; + trader_not_ends_with?: InputMaybe; + trader_not_ends_with_nocase?: InputMaybe; + trader_not_in?: InputMaybe>; + trader_not_starts_with?: InputMaybe; + trader_not_starts_with_nocase?: InputMaybe; + trader_starts_with?: InputMaybe; + trader_starts_with_nocase?: InputMaybe; + transaction?: InputMaybe; + transaction_?: InputMaybe; + transaction_contains?: InputMaybe; + transaction_contains_nocase?: InputMaybe; + transaction_ends_with?: InputMaybe; + transaction_ends_with_nocase?: InputMaybe; + transaction_gt?: InputMaybe; + transaction_gte?: InputMaybe; + transaction_in?: InputMaybe>; + transaction_lt?: InputMaybe; + transaction_lte?: InputMaybe; + transaction_not?: InputMaybe; + transaction_not_contains?: InputMaybe; + transaction_not_contains_nocase?: InputMaybe; + transaction_not_ends_with?: InputMaybe; + transaction_not_ends_with_nocase?: InputMaybe; + transaction_not_in?: InputMaybe>; + transaction_not_starts_with?: InputMaybe; + transaction_not_starts_with_nocase?: InputMaybe; + transaction_starts_with?: InputMaybe; + transaction_starts_with_nocase?: InputMaybe; +}; + +export enum Trade_OrderBy { + BlockTimestamp = 'blockTimestamp', + Id = 'id', + IsClose = 'isClose', + LimitPrice = 'limitPrice', + NewPositionSizeBc = 'newPositionSizeBC', + OrderDigest = 'orderDigest', + OrderFlags = 'orderFlags', + Perpetual = 'perpetual', + Position = 'position', + Price = 'price', + TradeAmountBc = 'tradeAmountBC', + Trader = 'trader', + TraderState = 'traderState', + Transaction = 'transaction', +} + +export type Trader = { + __typename?: 'Trader'; + distributeFees?: Maybe>; + fundingPayments?: Maybe>; + fundingRates?: Maybe>; + fundingRatesTotalCount?: Maybe; + id: Scalars['ID']; + limitOrders?: Maybe>; + liquidates?: Maybe>; + liquidator?: Maybe>; + liquidityAdded?: Maybe>; + liquidityRemoved?: Maybe>; + positions?: Maybe>; + positionsTotalCount?: Maybe; + realizedPnLs?: Maybe>; + settles?: Maybe>; + tokensDeposits?: Maybe>; + tokensWithdraws?: Maybe>; + totalFundingPaymentCC: Scalars['BigInt']; + traderPool?: Maybe>; + traderStates?: Maybe>; + trades?: Maybe>; + tradesTotalCount?: Maybe; + updateMarginAccount?: Maybe>; +}; + +export type TraderDistributeFeesArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +export type TraderFundingPaymentsArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +export type TraderFundingRatesArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +export type TraderLimitOrdersArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +export type TraderLiquidatesArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +export type TraderLiquidatorArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +export type TraderLiquidityAddedArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +export type TraderLiquidityRemovedArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +export type TraderPositionsArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +export type TraderRealizedPnLsArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +export type TraderSettlesArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +export type TraderTokensDepositsArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +export type TraderTokensWithdrawsArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +export type TraderTraderPoolArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +export type TraderTraderStatesArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +export type TraderTradesArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +export type TraderUpdateMarginAccountArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +export type TraderPool = { + __typename?: 'TraderPool'; + id: Scalars['ID']; + liquidityPool: LiquidityPool; + totalLiquidityAddedAmountCC: Scalars['BigInt']; + totalShareAddedAmountCC: Scalars['BigInt']; + trader: Trader; +}; + +export type TraderPool_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + liquidityPool?: InputMaybe; + liquidityPool_?: InputMaybe; + liquidityPool_contains?: InputMaybe; + liquidityPool_contains_nocase?: InputMaybe; + liquidityPool_ends_with?: InputMaybe; + liquidityPool_ends_with_nocase?: InputMaybe; + liquidityPool_gt?: InputMaybe; + liquidityPool_gte?: InputMaybe; + liquidityPool_in?: InputMaybe>; + liquidityPool_lt?: InputMaybe; + liquidityPool_lte?: InputMaybe; + liquidityPool_not?: InputMaybe; + liquidityPool_not_contains?: InputMaybe; + liquidityPool_not_contains_nocase?: InputMaybe; + liquidityPool_not_ends_with?: InputMaybe; + liquidityPool_not_ends_with_nocase?: InputMaybe; + liquidityPool_not_in?: InputMaybe>; + liquidityPool_not_starts_with?: InputMaybe; + liquidityPool_not_starts_with_nocase?: InputMaybe; + liquidityPool_starts_with?: InputMaybe; + liquidityPool_starts_with_nocase?: InputMaybe; + totalLiquidityAddedAmountCC?: InputMaybe; + totalLiquidityAddedAmountCC_gt?: InputMaybe; + totalLiquidityAddedAmountCC_gte?: InputMaybe; + totalLiquidityAddedAmountCC_in?: InputMaybe>; + totalLiquidityAddedAmountCC_lt?: InputMaybe; + totalLiquidityAddedAmountCC_lte?: InputMaybe; + totalLiquidityAddedAmountCC_not?: InputMaybe; + totalLiquidityAddedAmountCC_not_in?: InputMaybe>; + totalShareAddedAmountCC?: InputMaybe; + totalShareAddedAmountCC_gt?: InputMaybe; + totalShareAddedAmountCC_gte?: InputMaybe; + totalShareAddedAmountCC_in?: InputMaybe>; + totalShareAddedAmountCC_lt?: InputMaybe; + totalShareAddedAmountCC_lte?: InputMaybe; + totalShareAddedAmountCC_not?: InputMaybe; + totalShareAddedAmountCC_not_in?: InputMaybe>; + trader?: InputMaybe; + trader_?: InputMaybe; + trader_contains?: InputMaybe; + trader_contains_nocase?: InputMaybe; + trader_ends_with?: InputMaybe; + trader_ends_with_nocase?: InputMaybe; + trader_gt?: InputMaybe; + trader_gte?: InputMaybe; + trader_in?: InputMaybe>; + trader_lt?: InputMaybe; + trader_lte?: InputMaybe; + trader_not?: InputMaybe; + trader_not_contains?: InputMaybe; + trader_not_contains_nocase?: InputMaybe; + trader_not_ends_with?: InputMaybe; + trader_not_ends_with_nocase?: InputMaybe; + trader_not_in?: InputMaybe>; + trader_not_starts_with?: InputMaybe; + trader_not_starts_with_nocase?: InputMaybe; + trader_starts_with?: InputMaybe; + trader_starts_with_nocase?: InputMaybe; +}; + +export enum TraderPool_OrderBy { + Id = 'id', + LiquidityPool = 'liquidityPool', + TotalLiquidityAddedAmountCc = 'totalLiquidityAddedAmountCC', + TotalShareAddedAmountCc = 'totalShareAddedAmountCC', + Trader = 'trader', +} + +export type TraderState = { + __typename?: 'TraderState'; + amountSettled: Scalars['BigInt']; + availableCashCC: Scalars['BigInt']; + availableMarginCC: Scalars['BigInt']; + balance: Scalars['BigInt']; + blockTimestamp: Scalars['BigInt']; + capitalUsed: Scalars['BigInt']; + fUnitAccumulatedFundingStart: Scalars['BigInt']; + fundingRatesTotalCount: Scalars['Int']; + id: Scalars['ID']; + liquidatorTotalAmount: Scalars['BigInt']; + marginAccountCashCC: Scalars['BigInt']; + marginAccountLockedInValueQC: Scalars['BigInt']; + marginAccountPositionBC: Scalars['BigInt']; + marginBalanceCC: Scalars['BigInt']; + perpetual: Perpetual; + positions: Array; + positionsTotalCount: Scalars['Int']; + state: Scalars['String']; + totalAmountLiquidated: Scalars['BigInt']; + totalAmountTraded: Scalars['BigInt']; + totalFees: Scalars['BigInt']; + totalPnLCC: Scalars['BigInt']; + trader: Trader; + trades?: Maybe>; + tradesTotalCount: Scalars['Int']; +}; + +export type TraderStatePositionsArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +export type TraderStateTradesArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +export type TraderState_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + amountSettled?: InputMaybe; + amountSettled_gt?: InputMaybe; + amountSettled_gte?: InputMaybe; + amountSettled_in?: InputMaybe>; + amountSettled_lt?: InputMaybe; + amountSettled_lte?: InputMaybe; + amountSettled_not?: InputMaybe; + amountSettled_not_in?: InputMaybe>; + availableCashCC?: InputMaybe; + availableCashCC_gt?: InputMaybe; + availableCashCC_gte?: InputMaybe; + availableCashCC_in?: InputMaybe>; + availableCashCC_lt?: InputMaybe; + availableCashCC_lte?: InputMaybe; + availableCashCC_not?: InputMaybe; + availableCashCC_not_in?: InputMaybe>; + availableMarginCC?: InputMaybe; + availableMarginCC_gt?: InputMaybe; + availableMarginCC_gte?: InputMaybe; + availableMarginCC_in?: InputMaybe>; + availableMarginCC_lt?: InputMaybe; + availableMarginCC_lte?: InputMaybe; + availableMarginCC_not?: InputMaybe; + availableMarginCC_not_in?: InputMaybe>; + balance?: InputMaybe; + balance_gt?: InputMaybe; + balance_gte?: InputMaybe; + balance_in?: InputMaybe>; + balance_lt?: InputMaybe; + balance_lte?: InputMaybe; + balance_not?: InputMaybe; + balance_not_in?: InputMaybe>; + blockTimestamp?: InputMaybe; + blockTimestamp_gt?: InputMaybe; + blockTimestamp_gte?: InputMaybe; + blockTimestamp_in?: InputMaybe>; + blockTimestamp_lt?: InputMaybe; + blockTimestamp_lte?: InputMaybe; + blockTimestamp_not?: InputMaybe; + blockTimestamp_not_in?: InputMaybe>; + capitalUsed?: InputMaybe; + capitalUsed_gt?: InputMaybe; + capitalUsed_gte?: InputMaybe; + capitalUsed_in?: InputMaybe>; + capitalUsed_lt?: InputMaybe; + capitalUsed_lte?: InputMaybe; + capitalUsed_not?: InputMaybe; + capitalUsed_not_in?: InputMaybe>; + fUnitAccumulatedFundingStart?: InputMaybe; + fUnitAccumulatedFundingStart_gt?: InputMaybe; + fUnitAccumulatedFundingStart_gte?: InputMaybe; + fUnitAccumulatedFundingStart_in?: InputMaybe>; + fUnitAccumulatedFundingStart_lt?: InputMaybe; + fUnitAccumulatedFundingStart_lte?: InputMaybe; + fUnitAccumulatedFundingStart_not?: InputMaybe; + fUnitAccumulatedFundingStart_not_in?: InputMaybe>; + fundingRatesTotalCount?: InputMaybe; + fundingRatesTotalCount_gt?: InputMaybe; + fundingRatesTotalCount_gte?: InputMaybe; + fundingRatesTotalCount_in?: InputMaybe>; + fundingRatesTotalCount_lt?: InputMaybe; + fundingRatesTotalCount_lte?: InputMaybe; + fundingRatesTotalCount_not?: InputMaybe; + fundingRatesTotalCount_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + liquidatorTotalAmount?: InputMaybe; + liquidatorTotalAmount_gt?: InputMaybe; + liquidatorTotalAmount_gte?: InputMaybe; + liquidatorTotalAmount_in?: InputMaybe>; + liquidatorTotalAmount_lt?: InputMaybe; + liquidatorTotalAmount_lte?: InputMaybe; + liquidatorTotalAmount_not?: InputMaybe; + liquidatorTotalAmount_not_in?: InputMaybe>; + marginAccountCashCC?: InputMaybe; + marginAccountCashCC_gt?: InputMaybe; + marginAccountCashCC_gte?: InputMaybe; + marginAccountCashCC_in?: InputMaybe>; + marginAccountCashCC_lt?: InputMaybe; + marginAccountCashCC_lte?: InputMaybe; + marginAccountCashCC_not?: InputMaybe; + marginAccountCashCC_not_in?: InputMaybe>; + marginAccountLockedInValueQC?: InputMaybe; + marginAccountLockedInValueQC_gt?: InputMaybe; + marginAccountLockedInValueQC_gte?: InputMaybe; + marginAccountLockedInValueQC_in?: InputMaybe>; + marginAccountLockedInValueQC_lt?: InputMaybe; + marginAccountLockedInValueQC_lte?: InputMaybe; + marginAccountLockedInValueQC_not?: InputMaybe; + marginAccountLockedInValueQC_not_in?: InputMaybe>; + marginAccountPositionBC?: InputMaybe; + marginAccountPositionBC_gt?: InputMaybe; + marginAccountPositionBC_gte?: InputMaybe; + marginAccountPositionBC_in?: InputMaybe>; + marginAccountPositionBC_lt?: InputMaybe; + marginAccountPositionBC_lte?: InputMaybe; + marginAccountPositionBC_not?: InputMaybe; + marginAccountPositionBC_not_in?: InputMaybe>; + marginBalanceCC?: InputMaybe; + marginBalanceCC_gt?: InputMaybe; + marginBalanceCC_gte?: InputMaybe; + marginBalanceCC_in?: InputMaybe>; + marginBalanceCC_lt?: InputMaybe; + marginBalanceCC_lte?: InputMaybe; + marginBalanceCC_not?: InputMaybe; + marginBalanceCC_not_in?: InputMaybe>; + perpetual?: InputMaybe; + perpetual_?: InputMaybe; + perpetual_contains?: InputMaybe; + perpetual_contains_nocase?: InputMaybe; + perpetual_ends_with?: InputMaybe; + perpetual_ends_with_nocase?: InputMaybe; + perpetual_gt?: InputMaybe; + perpetual_gte?: InputMaybe; + perpetual_in?: InputMaybe>; + perpetual_lt?: InputMaybe; + perpetual_lte?: InputMaybe; + perpetual_not?: InputMaybe; + perpetual_not_contains?: InputMaybe; + perpetual_not_contains_nocase?: InputMaybe; + perpetual_not_ends_with?: InputMaybe; + perpetual_not_ends_with_nocase?: InputMaybe; + perpetual_not_in?: InputMaybe>; + perpetual_not_starts_with?: InputMaybe; + perpetual_not_starts_with_nocase?: InputMaybe; + perpetual_starts_with?: InputMaybe; + perpetual_starts_with_nocase?: InputMaybe; + positionsTotalCount?: InputMaybe; + positionsTotalCount_gt?: InputMaybe; + positionsTotalCount_gte?: InputMaybe; + positionsTotalCount_in?: InputMaybe>; + positionsTotalCount_lt?: InputMaybe; + positionsTotalCount_lte?: InputMaybe; + positionsTotalCount_not?: InputMaybe; + positionsTotalCount_not_in?: InputMaybe>; + positions_?: InputMaybe; + state?: InputMaybe; + state_contains?: InputMaybe; + state_contains_nocase?: InputMaybe; + state_ends_with?: InputMaybe; + state_ends_with_nocase?: InputMaybe; + state_gt?: InputMaybe; + state_gte?: InputMaybe; + state_in?: InputMaybe>; + state_lt?: InputMaybe; + state_lte?: InputMaybe; + state_not?: InputMaybe; + state_not_contains?: InputMaybe; + state_not_contains_nocase?: InputMaybe; + state_not_ends_with?: InputMaybe; + state_not_ends_with_nocase?: InputMaybe; + state_not_in?: InputMaybe>; + state_not_starts_with?: InputMaybe; + state_not_starts_with_nocase?: InputMaybe; + state_starts_with?: InputMaybe; + state_starts_with_nocase?: InputMaybe; + totalAmountLiquidated?: InputMaybe; + totalAmountLiquidated_gt?: InputMaybe; + totalAmountLiquidated_gte?: InputMaybe; + totalAmountLiquidated_in?: InputMaybe>; + totalAmountLiquidated_lt?: InputMaybe; + totalAmountLiquidated_lte?: InputMaybe; + totalAmountLiquidated_not?: InputMaybe; + totalAmountLiquidated_not_in?: InputMaybe>; + totalAmountTraded?: InputMaybe; + totalAmountTraded_gt?: InputMaybe; + totalAmountTraded_gte?: InputMaybe; + totalAmountTraded_in?: InputMaybe>; + totalAmountTraded_lt?: InputMaybe; + totalAmountTraded_lte?: InputMaybe; + totalAmountTraded_not?: InputMaybe; + totalAmountTraded_not_in?: InputMaybe>; + totalFees?: InputMaybe; + totalFees_gt?: InputMaybe; + totalFees_gte?: InputMaybe; + totalFees_in?: InputMaybe>; + totalFees_lt?: InputMaybe; + totalFees_lte?: InputMaybe; + totalFees_not?: InputMaybe; + totalFees_not_in?: InputMaybe>; + totalPnLCC?: InputMaybe; + totalPnLCC_gt?: InputMaybe; + totalPnLCC_gte?: InputMaybe; + totalPnLCC_in?: InputMaybe>; + totalPnLCC_lt?: InputMaybe; + totalPnLCC_lte?: InputMaybe; + totalPnLCC_not?: InputMaybe; + totalPnLCC_not_in?: InputMaybe>; + trader?: InputMaybe; + trader_?: InputMaybe; + trader_contains?: InputMaybe; + trader_contains_nocase?: InputMaybe; + trader_ends_with?: InputMaybe; + trader_ends_with_nocase?: InputMaybe; + trader_gt?: InputMaybe; + trader_gte?: InputMaybe; + trader_in?: InputMaybe>; + trader_lt?: InputMaybe; + trader_lte?: InputMaybe; + trader_not?: InputMaybe; + trader_not_contains?: InputMaybe; + trader_not_contains_nocase?: InputMaybe; + trader_not_ends_with?: InputMaybe; + trader_not_ends_with_nocase?: InputMaybe; + trader_not_in?: InputMaybe>; + trader_not_starts_with?: InputMaybe; + trader_not_starts_with_nocase?: InputMaybe; + trader_starts_with?: InputMaybe; + trader_starts_with_nocase?: InputMaybe; + tradesTotalCount?: InputMaybe; + tradesTotalCount_gt?: InputMaybe; + tradesTotalCount_gte?: InputMaybe; + tradesTotalCount_in?: InputMaybe>; + tradesTotalCount_lt?: InputMaybe; + tradesTotalCount_lte?: InputMaybe; + tradesTotalCount_not?: InputMaybe; + tradesTotalCount_not_in?: InputMaybe>; + trades_?: InputMaybe; +}; + +export enum TraderState_OrderBy { + AmountSettled = 'amountSettled', + AvailableCashCc = 'availableCashCC', + AvailableMarginCc = 'availableMarginCC', + Balance = 'balance', + BlockTimestamp = 'blockTimestamp', + CapitalUsed = 'capitalUsed', + FUnitAccumulatedFundingStart = 'fUnitAccumulatedFundingStart', + FundingRatesTotalCount = 'fundingRatesTotalCount', + Id = 'id', + LiquidatorTotalAmount = 'liquidatorTotalAmount', + MarginAccountCashCc = 'marginAccountCashCC', + MarginAccountLockedInValueQc = 'marginAccountLockedInValueQC', + MarginAccountPositionBc = 'marginAccountPositionBC', + MarginBalanceCc = 'marginBalanceCC', + Perpetual = 'perpetual', + Positions = 'positions', + PositionsTotalCount = 'positionsTotalCount', + State = 'state', + TotalAmountLiquidated = 'totalAmountLiquidated', + TotalAmountTraded = 'totalAmountTraded', + TotalFees = 'totalFees', + TotalPnLcc = 'totalPnLCC', + Trader = 'trader', + Trades = 'trades', + TradesTotalCount = 'tradesTotalCount', +} + +export type Trader_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + distributeFees_?: InputMaybe; + fundingPayments_?: InputMaybe; + fundingRatesTotalCount?: InputMaybe; + fundingRatesTotalCount_gt?: InputMaybe; + fundingRatesTotalCount_gte?: InputMaybe; + fundingRatesTotalCount_in?: InputMaybe>; + fundingRatesTotalCount_lt?: InputMaybe; + fundingRatesTotalCount_lte?: InputMaybe; + fundingRatesTotalCount_not?: InputMaybe; + fundingRatesTotalCount_not_in?: InputMaybe>; + fundingRates_?: InputMaybe; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + limitOrders_?: InputMaybe; + liquidates_?: InputMaybe; + liquidator_?: InputMaybe; + liquidityAdded_?: InputMaybe; + liquidityRemoved_?: InputMaybe; + positionsTotalCount?: InputMaybe; + positionsTotalCount_gt?: InputMaybe; + positionsTotalCount_gte?: InputMaybe; + positionsTotalCount_in?: InputMaybe>; + positionsTotalCount_lt?: InputMaybe; + positionsTotalCount_lte?: InputMaybe; + positionsTotalCount_not?: InputMaybe; + positionsTotalCount_not_in?: InputMaybe>; + positions_?: InputMaybe; + realizedPnLs_?: InputMaybe; + settles_?: InputMaybe; + tokensDeposits_?: InputMaybe; + tokensWithdraws_?: InputMaybe; + totalFundingPaymentCC?: InputMaybe; + totalFundingPaymentCC_gt?: InputMaybe; + totalFundingPaymentCC_gte?: InputMaybe; + totalFundingPaymentCC_in?: InputMaybe>; + totalFundingPaymentCC_lt?: InputMaybe; + totalFundingPaymentCC_lte?: InputMaybe; + totalFundingPaymentCC_not?: InputMaybe; + totalFundingPaymentCC_not_in?: InputMaybe>; + traderPool_?: InputMaybe; + traderStates_?: InputMaybe; + tradesTotalCount?: InputMaybe; + tradesTotalCount_gt?: InputMaybe; + tradesTotalCount_gte?: InputMaybe; + tradesTotalCount_in?: InputMaybe>; + tradesTotalCount_lt?: InputMaybe; + tradesTotalCount_lte?: InputMaybe; + tradesTotalCount_not?: InputMaybe; + tradesTotalCount_not_in?: InputMaybe>; + trades_?: InputMaybe; + updateMarginAccount_?: InputMaybe; +}; + +export enum Trader_OrderBy { + DistributeFees = 'distributeFees', + FundingPayments = 'fundingPayments', + FundingRates = 'fundingRates', + FundingRatesTotalCount = 'fundingRatesTotalCount', + Id = 'id', + LimitOrders = 'limitOrders', + Liquidates = 'liquidates', + Liquidator = 'liquidator', + LiquidityAdded = 'liquidityAdded', + LiquidityRemoved = 'liquidityRemoved', + Positions = 'positions', + PositionsTotalCount = 'positionsTotalCount', + RealizedPnLs = 'realizedPnLs', + Settles = 'settles', + TokensDeposits = 'tokensDeposits', + TokensWithdraws = 'tokensWithdraws', + TotalFundingPaymentCc = 'totalFundingPaymentCC', + TraderPool = 'traderPool', + TraderStates = 'traderStates', + Trades = 'trades', + TradesTotalCount = 'tradesTotalCount', + UpdateMarginAccount = 'updateMarginAccount', +} + +export type Transaction = { + __typename?: 'Transaction'; + atomicYields?: Maybe>; + blockNumber: Scalars['BigInt']; + from: Scalars['Bytes']; + gasLimit: Scalars['BigInt']; + gasPrice: Scalars['BigInt']; + id: Scalars['ID']; + index: Scalars['BigInt']; + liquidates?: Maybe>; + timestamp: Scalars['BigInt']; + to?: Maybe; + tokensDeposits?: Maybe>; + tokensWithdraws?: Maybe>; + trades?: Maybe>; + value: Scalars['BigInt']; +}; + +export type TransactionAtomicYieldsArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +export type TransactionLiquidatesArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +export type TransactionTokensDepositsArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +export type TransactionTokensWithdrawsArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +export type TransactionTradesArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +export type Transaction_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + atomicYields_?: InputMaybe; + blockNumber?: InputMaybe; + blockNumber_gt?: InputMaybe; + blockNumber_gte?: InputMaybe; + blockNumber_in?: InputMaybe>; + blockNumber_lt?: InputMaybe; + blockNumber_lte?: InputMaybe; + blockNumber_not?: InputMaybe; + blockNumber_not_in?: InputMaybe>; + from?: InputMaybe; + from_contains?: InputMaybe; + from_in?: InputMaybe>; + from_not?: InputMaybe; + from_not_contains?: InputMaybe; + from_not_in?: InputMaybe>; + gasLimit?: InputMaybe; + gasLimit_gt?: InputMaybe; + gasLimit_gte?: InputMaybe; + gasLimit_in?: InputMaybe>; + gasLimit_lt?: InputMaybe; + gasLimit_lte?: InputMaybe; + gasLimit_not?: InputMaybe; + gasLimit_not_in?: InputMaybe>; + gasPrice?: InputMaybe; + gasPrice_gt?: InputMaybe; + gasPrice_gte?: InputMaybe; + gasPrice_in?: InputMaybe>; + gasPrice_lt?: InputMaybe; + gasPrice_lte?: InputMaybe; + gasPrice_not?: InputMaybe; + gasPrice_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + index?: InputMaybe; + index_gt?: InputMaybe; + index_gte?: InputMaybe; + index_in?: InputMaybe>; + index_lt?: InputMaybe; + index_lte?: InputMaybe; + index_not?: InputMaybe; + index_not_in?: InputMaybe>; + liquidates_?: InputMaybe; + timestamp?: InputMaybe; + timestamp_gt?: InputMaybe; + timestamp_gte?: InputMaybe; + timestamp_in?: InputMaybe>; + timestamp_lt?: InputMaybe; + timestamp_lte?: InputMaybe; + timestamp_not?: InputMaybe; + timestamp_not_in?: InputMaybe>; + to?: InputMaybe; + to_contains?: InputMaybe; + to_in?: InputMaybe>; + to_not?: InputMaybe; + to_not_contains?: InputMaybe; + to_not_in?: InputMaybe>; + tokensDeposits_?: InputMaybe; + tokensWithdraws_?: InputMaybe; + trades_?: InputMaybe; + value?: InputMaybe; + value_gt?: InputMaybe; + value_gte?: InputMaybe; + value_in?: InputMaybe>; + value_lt?: InputMaybe; + value_lte?: InputMaybe; + value_not?: InputMaybe; + value_not_in?: InputMaybe>; +}; + +export enum Transaction_OrderBy { + AtomicYields = 'atomicYields', + BlockNumber = 'blockNumber', + From = 'from', + GasLimit = 'gasLimit', + GasPrice = 'gasPrice', + Id = 'id', + Index = 'index', + Liquidates = 'liquidates', + Timestamp = 'timestamp', + To = 'to', + TokensDeposits = 'tokensDeposits', + TokensWithdraws = 'tokensWithdraws', + Trades = 'trades', + Value = 'value', +} + +export type TransferEarningsToTreasury = { + __typename?: 'TransferEarningsToTreasury'; + _poolId: Scalars['Int']; + blockTimestamp: Scalars['BigInt']; + fEarnings: Scalars['BigInt']; + id: Scalars['ID']; + newDefaultFundSize: Scalars['BigInt']; +}; + +export type TransferEarningsToTreasury_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + _poolId?: InputMaybe; + _poolId_gt?: InputMaybe; + _poolId_gte?: InputMaybe; + _poolId_in?: InputMaybe>; + _poolId_lt?: InputMaybe; + _poolId_lte?: InputMaybe; + _poolId_not?: InputMaybe; + _poolId_not_in?: InputMaybe>; + blockTimestamp?: InputMaybe; + blockTimestamp_gt?: InputMaybe; + blockTimestamp_gte?: InputMaybe; + blockTimestamp_in?: InputMaybe>; + blockTimestamp_lt?: InputMaybe; + blockTimestamp_lte?: InputMaybe; + blockTimestamp_not?: InputMaybe; + blockTimestamp_not_in?: InputMaybe>; + fEarnings?: InputMaybe; + fEarnings_gt?: InputMaybe; + fEarnings_gte?: InputMaybe; + fEarnings_in?: InputMaybe>; + fEarnings_lt?: InputMaybe; + fEarnings_lte?: InputMaybe; + fEarnings_not?: InputMaybe; + fEarnings_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + newDefaultFundSize?: InputMaybe; + newDefaultFundSize_gt?: InputMaybe; + newDefaultFundSize_gte?: InputMaybe; + newDefaultFundSize_in?: InputMaybe>; + newDefaultFundSize_lt?: InputMaybe; + newDefaultFundSize_lte?: InputMaybe; + newDefaultFundSize_not?: InputMaybe; + newDefaultFundSize_not_in?: InputMaybe>; +}; + +export enum TransferEarningsToTreasury_OrderBy { + PoolId = '_poolId', + BlockTimestamp = 'blockTimestamp', + FEarnings = 'fEarnings', + Id = 'id', + NewDefaultFundSize = 'newDefaultFundSize', +} + +export type TransferFeeToReferrer = { + __typename?: 'TransferFeeToReferrer'; + id: Scalars['ID']; + perpetualId: Scalars['Bytes']; + referralRebate: Scalars['BigInt']; + referrer: Scalars['Bytes']; + trader: Scalars['Bytes']; +}; + +export type TransferFeeToReferrer_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + perpetualId?: InputMaybe; + perpetualId_contains?: InputMaybe; + perpetualId_in?: InputMaybe>; + perpetualId_not?: InputMaybe; + perpetualId_not_contains?: InputMaybe; + perpetualId_not_in?: InputMaybe>; + referralRebate?: InputMaybe; + referralRebate_gt?: InputMaybe; + referralRebate_gte?: InputMaybe; + referralRebate_in?: InputMaybe>; + referralRebate_lt?: InputMaybe; + referralRebate_lte?: InputMaybe; + referralRebate_not?: InputMaybe; + referralRebate_not_in?: InputMaybe>; + referrer?: InputMaybe; + referrer_contains?: InputMaybe; + referrer_in?: InputMaybe>; + referrer_not?: InputMaybe; + referrer_not_contains?: InputMaybe; + referrer_not_in?: InputMaybe>; + trader?: InputMaybe; + trader_contains?: InputMaybe; + trader_in?: InputMaybe>; + trader_not?: InputMaybe; + trader_not_contains?: InputMaybe; + trader_not_in?: InputMaybe>; +}; + +export enum TransferFeeToReferrer_OrderBy { + Id = 'id', + PerpetualId = 'perpetualId', + ReferralRebate = 'referralRebate', + Referrer = 'referrer', + Trader = 'trader', +} + +export type TransferTreasuryTo = { + __typename?: 'TransferTreasuryTo'; + id: Scalars['ID']; + newTreasury: Scalars['Bytes']; + oldTreasury: Scalars['Bytes']; + poolId: Scalars['BigInt']; +}; + +export type TransferTreasuryTo_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + newTreasury?: InputMaybe; + newTreasury_contains?: InputMaybe; + newTreasury_in?: InputMaybe>; + newTreasury_not?: InputMaybe; + newTreasury_not_contains?: InputMaybe; + newTreasury_not_in?: InputMaybe>; + oldTreasury?: InputMaybe; + oldTreasury_contains?: InputMaybe; + oldTreasury_in?: InputMaybe>; + oldTreasury_not?: InputMaybe; + oldTreasury_not_contains?: InputMaybe; + oldTreasury_not_in?: InputMaybe>; + poolId?: InputMaybe; + poolId_gt?: InputMaybe; + poolId_gte?: InputMaybe; + poolId_in?: InputMaybe>; + poolId_lt?: InputMaybe; + poolId_lte?: InputMaybe; + poolId_not?: InputMaybe; + poolId_not_in?: InputMaybe>; +}; + +export enum TransferTreasuryTo_OrderBy { + Id = 'id', + NewTreasury = 'newTreasury', + OldTreasury = 'oldTreasury', + PoolId = 'poolId', +} + +export type UpdateAmmFundCash = { + __typename?: 'UpdateAMMFundCash'; + blockTimestamp: Scalars['BigInt']; + fNewAMMFundCash: Scalars['BigInt']; + fNewLiqPoolTotalAMMFundsCash: Scalars['BigInt']; + id: Scalars['ID']; + perpetualId: Scalars['Bytes']; +}; + +export type UpdateAmmFundCash_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + blockTimestamp?: InputMaybe; + blockTimestamp_gt?: InputMaybe; + blockTimestamp_gte?: InputMaybe; + blockTimestamp_in?: InputMaybe>; + blockTimestamp_lt?: InputMaybe; + blockTimestamp_lte?: InputMaybe; + blockTimestamp_not?: InputMaybe; + blockTimestamp_not_in?: InputMaybe>; + fNewAMMFundCash?: InputMaybe; + fNewAMMFundCash_gt?: InputMaybe; + fNewAMMFundCash_gte?: InputMaybe; + fNewAMMFundCash_in?: InputMaybe>; + fNewAMMFundCash_lt?: InputMaybe; + fNewAMMFundCash_lte?: InputMaybe; + fNewAMMFundCash_not?: InputMaybe; + fNewAMMFundCash_not_in?: InputMaybe>; + fNewLiqPoolTotalAMMFundsCash?: InputMaybe; + fNewLiqPoolTotalAMMFundsCash_gt?: InputMaybe; + fNewLiqPoolTotalAMMFundsCash_gte?: InputMaybe; + fNewLiqPoolTotalAMMFundsCash_in?: InputMaybe>; + fNewLiqPoolTotalAMMFundsCash_lt?: InputMaybe; + fNewLiqPoolTotalAMMFundsCash_lte?: InputMaybe; + fNewLiqPoolTotalAMMFundsCash_not?: InputMaybe; + fNewLiqPoolTotalAMMFundsCash_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + perpetualId?: InputMaybe; + perpetualId_contains?: InputMaybe; + perpetualId_in?: InputMaybe>; + perpetualId_not?: InputMaybe; + perpetualId_not_contains?: InputMaybe; + perpetualId_not_in?: InputMaybe>; +}; + +export enum UpdateAmmFundCash_OrderBy { + BlockTimestamp = 'blockTimestamp', + FNewAmmFundCash = 'fNewAMMFundCash', + FNewLiqPoolTotalAmmFundsCash = 'fNewLiqPoolTotalAMMFundsCash', + Id = 'id', + PerpetualId = 'perpetualId', +} + +export type UpdateAmmFundTargetSize = { + __typename?: 'UpdateAMMFundTargetSize'; + blockTimestamp: Scalars['BigInt']; + fAMMFundCashCCInPerpetual: Scalars['BigInt']; + fAMMFundCashCCInPool: Scalars['BigInt']; + fTargetAMMFundSizeInPerpetual: Scalars['BigInt']; + fTargetAMMFundSizeInPool: Scalars['BigInt']; + id: Scalars['ID']; + liquidityPoolId: Scalars['Int']; + perpetualId: Scalars['Bytes']; +}; + +export type UpdateAmmFundTargetSize_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + blockTimestamp?: InputMaybe; + blockTimestamp_gt?: InputMaybe; + blockTimestamp_gte?: InputMaybe; + blockTimestamp_in?: InputMaybe>; + blockTimestamp_lt?: InputMaybe; + blockTimestamp_lte?: InputMaybe; + blockTimestamp_not?: InputMaybe; + blockTimestamp_not_in?: InputMaybe>; + fAMMFundCashCCInPerpetual?: InputMaybe; + fAMMFundCashCCInPerpetual_gt?: InputMaybe; + fAMMFundCashCCInPerpetual_gte?: InputMaybe; + fAMMFundCashCCInPerpetual_in?: InputMaybe>; + fAMMFundCashCCInPerpetual_lt?: InputMaybe; + fAMMFundCashCCInPerpetual_lte?: InputMaybe; + fAMMFundCashCCInPerpetual_not?: InputMaybe; + fAMMFundCashCCInPerpetual_not_in?: InputMaybe>; + fAMMFundCashCCInPool?: InputMaybe; + fAMMFundCashCCInPool_gt?: InputMaybe; + fAMMFundCashCCInPool_gte?: InputMaybe; + fAMMFundCashCCInPool_in?: InputMaybe>; + fAMMFundCashCCInPool_lt?: InputMaybe; + fAMMFundCashCCInPool_lte?: InputMaybe; + fAMMFundCashCCInPool_not?: InputMaybe; + fAMMFundCashCCInPool_not_in?: InputMaybe>; + fTargetAMMFundSizeInPerpetual?: InputMaybe; + fTargetAMMFundSizeInPerpetual_gt?: InputMaybe; + fTargetAMMFundSizeInPerpetual_gte?: InputMaybe; + fTargetAMMFundSizeInPerpetual_in?: InputMaybe>; + fTargetAMMFundSizeInPerpetual_lt?: InputMaybe; + fTargetAMMFundSizeInPerpetual_lte?: InputMaybe; + fTargetAMMFundSizeInPerpetual_not?: InputMaybe; + fTargetAMMFundSizeInPerpetual_not_in?: InputMaybe>; + fTargetAMMFundSizeInPool?: InputMaybe; + fTargetAMMFundSizeInPool_gt?: InputMaybe; + fTargetAMMFundSizeInPool_gte?: InputMaybe; + fTargetAMMFundSizeInPool_in?: InputMaybe>; + fTargetAMMFundSizeInPool_lt?: InputMaybe; + fTargetAMMFundSizeInPool_lte?: InputMaybe; + fTargetAMMFundSizeInPool_not?: InputMaybe; + fTargetAMMFundSizeInPool_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + liquidityPoolId?: InputMaybe; + liquidityPoolId_gt?: InputMaybe; + liquidityPoolId_gte?: InputMaybe; + liquidityPoolId_in?: InputMaybe>; + liquidityPoolId_lt?: InputMaybe; + liquidityPoolId_lte?: InputMaybe; + liquidityPoolId_not?: InputMaybe; + liquidityPoolId_not_in?: InputMaybe>; + perpetualId?: InputMaybe; + perpetualId_contains?: InputMaybe; + perpetualId_in?: InputMaybe>; + perpetualId_not?: InputMaybe; + perpetualId_not_contains?: InputMaybe; + perpetualId_not_in?: InputMaybe>; +}; + +export enum UpdateAmmFundTargetSize_OrderBy { + BlockTimestamp = 'blockTimestamp', + FAmmFundCashCcInPerpetual = 'fAMMFundCashCCInPerpetual', + FAmmFundCashCcInPool = 'fAMMFundCashCCInPool', + FTargetAmmFundSizeInPerpetual = 'fTargetAMMFundSizeInPerpetual', + FTargetAmmFundSizeInPool = 'fTargetAMMFundSizeInPool', + Id = 'id', + LiquidityPoolId = 'liquidityPoolId', + PerpetualId = 'perpetualId', +} + +export type UpdateDefaultFundCash = { + __typename?: 'UpdateDefaultFundCash'; + fDeltaAmountCC: Scalars['BigInt']; + fNewFundCash: Scalars['BigInt']; + id: Scalars['ID']; + poolId: Scalars['Int']; +}; + +export type UpdateDefaultFundCash_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + fDeltaAmountCC?: InputMaybe; + fDeltaAmountCC_gt?: InputMaybe; + fDeltaAmountCC_gte?: InputMaybe; + fDeltaAmountCC_in?: InputMaybe>; + fDeltaAmountCC_lt?: InputMaybe; + fDeltaAmountCC_lte?: InputMaybe; + fDeltaAmountCC_not?: InputMaybe; + fDeltaAmountCC_not_in?: InputMaybe>; + fNewFundCash?: InputMaybe; + fNewFundCash_gt?: InputMaybe; + fNewFundCash_gte?: InputMaybe; + fNewFundCash_in?: InputMaybe>; + fNewFundCash_lt?: InputMaybe; + fNewFundCash_lte?: InputMaybe; + fNewFundCash_not?: InputMaybe; + fNewFundCash_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + poolId?: InputMaybe; + poolId_gt?: InputMaybe; + poolId_gte?: InputMaybe; + poolId_in?: InputMaybe>; + poolId_lt?: InputMaybe; + poolId_lte?: InputMaybe; + poolId_not?: InputMaybe; + poolId_not_in?: InputMaybe>; +}; + +export enum UpdateDefaultFundCash_OrderBy { + FDeltaAmountCc = 'fDeltaAmountCC', + FNewFundCash = 'fNewFundCash', + Id = 'id', + PoolId = 'poolId', +} + +export type UpdateDefaultFundTargetSize = { + __typename?: 'UpdateDefaultFundTargetSize'; + blockTimestamp: Scalars['BigInt']; + fDefaultFundCashCC: Scalars['BigInt']; + fTargetDFSize: Scalars['BigInt']; + id: Scalars['ID']; + liquidityPoolId: Scalars['Int']; +}; + +export type UpdateDefaultFundTargetSize_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + blockTimestamp?: InputMaybe; + blockTimestamp_gt?: InputMaybe; + blockTimestamp_gte?: InputMaybe; + blockTimestamp_in?: InputMaybe>; + blockTimestamp_lt?: InputMaybe; + blockTimestamp_lte?: InputMaybe; + blockTimestamp_not?: InputMaybe; + blockTimestamp_not_in?: InputMaybe>; + fDefaultFundCashCC?: InputMaybe; + fDefaultFundCashCC_gt?: InputMaybe; + fDefaultFundCashCC_gte?: InputMaybe; + fDefaultFundCashCC_in?: InputMaybe>; + fDefaultFundCashCC_lt?: InputMaybe; + fDefaultFundCashCC_lte?: InputMaybe; + fDefaultFundCashCC_not?: InputMaybe; + fDefaultFundCashCC_not_in?: InputMaybe>; + fTargetDFSize?: InputMaybe; + fTargetDFSize_gt?: InputMaybe; + fTargetDFSize_gte?: InputMaybe; + fTargetDFSize_in?: InputMaybe>; + fTargetDFSize_lt?: InputMaybe; + fTargetDFSize_lte?: InputMaybe; + fTargetDFSize_not?: InputMaybe; + fTargetDFSize_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + liquidityPoolId?: InputMaybe; + liquidityPoolId_gt?: InputMaybe; + liquidityPoolId_gte?: InputMaybe; + liquidityPoolId_in?: InputMaybe>; + liquidityPoolId_lt?: InputMaybe; + liquidityPoolId_lte?: InputMaybe; + liquidityPoolId_not?: InputMaybe; + liquidityPoolId_not_in?: InputMaybe>; +}; + +export enum UpdateDefaultFundTargetSize_OrderBy { + BlockTimestamp = 'blockTimestamp', + FDefaultFundCashCc = 'fDefaultFundCashCC', + FTargetDfSize = 'fTargetDFSize', + Id = 'id', + LiquidityPoolId = 'liquidityPoolId', +} + +export type UpdateFundingRate = { + __typename?: 'UpdateFundingRate'; + blockTimestamp: Scalars['BigInt']; + fFundingRate: Scalars['BigInt']; + id: Scalars['ID']; + perpetualId: Scalars['Bytes']; +}; + +export type UpdateFundingRate_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + blockTimestamp?: InputMaybe; + blockTimestamp_gt?: InputMaybe; + blockTimestamp_gte?: InputMaybe; + blockTimestamp_in?: InputMaybe>; + blockTimestamp_lt?: InputMaybe; + blockTimestamp_lte?: InputMaybe; + blockTimestamp_not?: InputMaybe; + blockTimestamp_not_in?: InputMaybe>; + fFundingRate?: InputMaybe; + fFundingRate_gt?: InputMaybe; + fFundingRate_gte?: InputMaybe; + fFundingRate_in?: InputMaybe>; + fFundingRate_lt?: InputMaybe; + fFundingRate_lte?: InputMaybe; + fFundingRate_not?: InputMaybe; + fFundingRate_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + perpetualId?: InputMaybe; + perpetualId_contains?: InputMaybe; + perpetualId_in?: InputMaybe>; + perpetualId_not?: InputMaybe; + perpetualId_not_contains?: InputMaybe; + perpetualId_not_in?: InputMaybe>; +}; + +export enum UpdateFundingRate_OrderBy { + BlockTimestamp = 'blockTimestamp', + FFundingRate = 'fFundingRate', + Id = 'id', + PerpetualId = 'perpetualId', +} + +export type UpdateMarginAccount = { + __typename?: 'UpdateMarginAccount'; + blockTimestamp: Scalars['BigInt']; + fCashCC: Scalars['BigInt']; + fFundingPaymentCC: Scalars['BigInt']; + fLockedInValueQC: Scalars['BigInt']; + fOpenInterestBC: Scalars['BigInt']; + fPositionBC: Scalars['BigInt']; + id: Scalars['ID']; + perpetualId: Scalars['Bytes']; + positionId: Scalars['Bytes']; + trader?: Maybe; +}; + +export type UpdateMarginAccount_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + blockTimestamp?: InputMaybe; + blockTimestamp_gt?: InputMaybe; + blockTimestamp_gte?: InputMaybe; + blockTimestamp_in?: InputMaybe>; + blockTimestamp_lt?: InputMaybe; + blockTimestamp_lte?: InputMaybe; + blockTimestamp_not?: InputMaybe; + blockTimestamp_not_in?: InputMaybe>; + fCashCC?: InputMaybe; + fCashCC_gt?: InputMaybe; + fCashCC_gte?: InputMaybe; + fCashCC_in?: InputMaybe>; + fCashCC_lt?: InputMaybe; + fCashCC_lte?: InputMaybe; + fCashCC_not?: InputMaybe; + fCashCC_not_in?: InputMaybe>; + fFundingPaymentCC?: InputMaybe; + fFundingPaymentCC_gt?: InputMaybe; + fFundingPaymentCC_gte?: InputMaybe; + fFundingPaymentCC_in?: InputMaybe>; + fFundingPaymentCC_lt?: InputMaybe; + fFundingPaymentCC_lte?: InputMaybe; + fFundingPaymentCC_not?: InputMaybe; + fFundingPaymentCC_not_in?: InputMaybe>; + fLockedInValueQC?: InputMaybe; + fLockedInValueQC_gt?: InputMaybe; + fLockedInValueQC_gte?: InputMaybe; + fLockedInValueQC_in?: InputMaybe>; + fLockedInValueQC_lt?: InputMaybe; + fLockedInValueQC_lte?: InputMaybe; + fLockedInValueQC_not?: InputMaybe; + fLockedInValueQC_not_in?: InputMaybe>; + fOpenInterestBC?: InputMaybe; + fOpenInterestBC_gt?: InputMaybe; + fOpenInterestBC_gte?: InputMaybe; + fOpenInterestBC_in?: InputMaybe>; + fOpenInterestBC_lt?: InputMaybe; + fOpenInterestBC_lte?: InputMaybe; + fOpenInterestBC_not?: InputMaybe; + fOpenInterestBC_not_in?: InputMaybe>; + fPositionBC?: InputMaybe; + fPositionBC_gt?: InputMaybe; + fPositionBC_gte?: InputMaybe; + fPositionBC_in?: InputMaybe>; + fPositionBC_lt?: InputMaybe; + fPositionBC_lte?: InputMaybe; + fPositionBC_not?: InputMaybe; + fPositionBC_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + perpetualId?: InputMaybe; + perpetualId_contains?: InputMaybe; + perpetualId_in?: InputMaybe>; + perpetualId_not?: InputMaybe; + perpetualId_not_contains?: InputMaybe; + perpetualId_not_in?: InputMaybe>; + positionId?: InputMaybe; + positionId_contains?: InputMaybe; + positionId_in?: InputMaybe>; + positionId_not?: InputMaybe; + positionId_not_contains?: InputMaybe; + positionId_not_in?: InputMaybe>; + trader?: InputMaybe; + trader_?: InputMaybe; + trader_contains?: InputMaybe; + trader_contains_nocase?: InputMaybe; + trader_ends_with?: InputMaybe; + trader_ends_with_nocase?: InputMaybe; + trader_gt?: InputMaybe; + trader_gte?: InputMaybe; + trader_in?: InputMaybe>; + trader_lt?: InputMaybe; + trader_lte?: InputMaybe; + trader_not?: InputMaybe; + trader_not_contains?: InputMaybe; + trader_not_contains_nocase?: InputMaybe; + trader_not_ends_with?: InputMaybe; + trader_not_ends_with_nocase?: InputMaybe; + trader_not_in?: InputMaybe>; + trader_not_starts_with?: InputMaybe; + trader_not_starts_with_nocase?: InputMaybe; + trader_starts_with?: InputMaybe; + trader_starts_with_nocase?: InputMaybe; +}; + +export enum UpdateMarginAccount_OrderBy { + BlockTimestamp = 'blockTimestamp', + FCashCc = 'fCashCC', + FFundingPaymentCc = 'fFundingPaymentCC', + FLockedInValueQc = 'fLockedInValueQC', + FOpenInterestBc = 'fOpenInterestBC', + FPositionBc = 'fPositionBC', + Id = 'id', + PerpetualId = 'perpetualId', + PositionId = 'positionId', + Trader = 'trader', +} + +export type UpdateMarkPrice = { + __typename?: 'UpdateMarkPrice'; + blockTimestamp: Scalars['BigInt']; + fMarkPricePremium: Scalars['BigInt']; + fSpotIndexPrice: Scalars['BigInt']; + id: Scalars['ID']; + perpetualId: Scalars['Bytes']; +}; + +export type UpdateMarkPrice_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + blockTimestamp?: InputMaybe; + blockTimestamp_gt?: InputMaybe; + blockTimestamp_gte?: InputMaybe; + blockTimestamp_in?: InputMaybe>; + blockTimestamp_lt?: InputMaybe; + blockTimestamp_lte?: InputMaybe; + blockTimestamp_not?: InputMaybe; + blockTimestamp_not_in?: InputMaybe>; + fMarkPricePremium?: InputMaybe; + fMarkPricePremium_gt?: InputMaybe; + fMarkPricePremium_gte?: InputMaybe; + fMarkPricePremium_in?: InputMaybe>; + fMarkPricePremium_lt?: InputMaybe; + fMarkPricePremium_lte?: InputMaybe; + fMarkPricePremium_not?: InputMaybe; + fMarkPricePremium_not_in?: InputMaybe>; + fSpotIndexPrice?: InputMaybe; + fSpotIndexPrice_gt?: InputMaybe; + fSpotIndexPrice_gte?: InputMaybe; + fSpotIndexPrice_in?: InputMaybe>; + fSpotIndexPrice_lt?: InputMaybe; + fSpotIndexPrice_lte?: InputMaybe; + fSpotIndexPrice_not?: InputMaybe; + fSpotIndexPrice_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + perpetualId?: InputMaybe; + perpetualId_contains?: InputMaybe; + perpetualId_in?: InputMaybe>; + perpetualId_not?: InputMaybe; + perpetualId_not_contains?: InputMaybe; + perpetualId_not_in?: InputMaybe>; +}; + +export enum UpdateMarkPrice_OrderBy { + BlockTimestamp = 'blockTimestamp', + FMarkPricePremium = 'fMarkPricePremium', + FSpotIndexPrice = 'fSpotIndexPrice', + Id = 'id', + PerpetualId = 'perpetualId', +} + +export type UpdateParticipationFundCash = { + __typename?: 'UpdateParticipationFundCash'; + blockTimestamp: Scalars['BigInt']; + fDeltaAmountCC: Scalars['BigInt']; + fNewFundCash: Scalars['BigInt']; + id: Scalars['ID']; + poolId: Scalars['Int']; +}; + +export type UpdateParticipationFundCash_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + blockTimestamp?: InputMaybe; + blockTimestamp_gt?: InputMaybe; + blockTimestamp_gte?: InputMaybe; + blockTimestamp_in?: InputMaybe>; + blockTimestamp_lt?: InputMaybe; + blockTimestamp_lte?: InputMaybe; + blockTimestamp_not?: InputMaybe; + blockTimestamp_not_in?: InputMaybe>; + fDeltaAmountCC?: InputMaybe; + fDeltaAmountCC_gt?: InputMaybe; + fDeltaAmountCC_gte?: InputMaybe; + fDeltaAmountCC_in?: InputMaybe>; + fDeltaAmountCC_lt?: InputMaybe; + fDeltaAmountCC_lte?: InputMaybe; + fDeltaAmountCC_not?: InputMaybe; + fDeltaAmountCC_not_in?: InputMaybe>; + fNewFundCash?: InputMaybe; + fNewFundCash_gt?: InputMaybe; + fNewFundCash_gte?: InputMaybe; + fNewFundCash_in?: InputMaybe>; + fNewFundCash_lt?: InputMaybe; + fNewFundCash_lte?: InputMaybe; + fNewFundCash_not?: InputMaybe; + fNewFundCash_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + poolId?: InputMaybe; + poolId_gt?: InputMaybe; + poolId_gte?: InputMaybe; + poolId_in?: InputMaybe>; + poolId_lt?: InputMaybe; + poolId_lte?: InputMaybe; + poolId_not?: InputMaybe; + poolId_not_in?: InputMaybe>; +}; + +export enum UpdateParticipationFundCash_OrderBy { + BlockTimestamp = 'blockTimestamp', + FDeltaAmountCc = 'fDeltaAmountCC', + FNewFundCash = 'fNewFundCash', + Id = 'id', + PoolId = 'poolId', +} + +export type UpdatePrice = { + __typename?: 'UpdatePrice'; + id: Scalars['ID']; + oracleS2Addr: Scalars['Bytes']; + oracleS3Addr: Scalars['Bytes']; + perpetualId: Scalars['Bytes']; + spotPriceS2: Scalars['BigInt']; + spotPriceS3: Scalars['BigInt']; + timePriceS2: Scalars['BigInt']; + timePriceS3: Scalars['BigInt']; +}; + +export type UpdatePrice_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + oracleS2Addr?: InputMaybe; + oracleS2Addr_contains?: InputMaybe; + oracleS2Addr_in?: InputMaybe>; + oracleS2Addr_not?: InputMaybe; + oracleS2Addr_not_contains?: InputMaybe; + oracleS2Addr_not_in?: InputMaybe>; + oracleS3Addr?: InputMaybe; + oracleS3Addr_contains?: InputMaybe; + oracleS3Addr_in?: InputMaybe>; + oracleS3Addr_not?: InputMaybe; + oracleS3Addr_not_contains?: InputMaybe; + oracleS3Addr_not_in?: InputMaybe>; + perpetualId?: InputMaybe; + perpetualId_contains?: InputMaybe; + perpetualId_in?: InputMaybe>; + perpetualId_not?: InputMaybe; + perpetualId_not_contains?: InputMaybe; + perpetualId_not_in?: InputMaybe>; + spotPriceS2?: InputMaybe; + spotPriceS2_gt?: InputMaybe; + spotPriceS2_gte?: InputMaybe; + spotPriceS2_in?: InputMaybe>; + spotPriceS2_lt?: InputMaybe; + spotPriceS2_lte?: InputMaybe; + spotPriceS2_not?: InputMaybe; + spotPriceS2_not_in?: InputMaybe>; + spotPriceS3?: InputMaybe; + spotPriceS3_gt?: InputMaybe; + spotPriceS3_gte?: InputMaybe; + spotPriceS3_in?: InputMaybe>; + spotPriceS3_lt?: InputMaybe; + spotPriceS3_lte?: InputMaybe; + spotPriceS3_not?: InputMaybe; + spotPriceS3_not_in?: InputMaybe>; + timePriceS2?: InputMaybe; + timePriceS2_gt?: InputMaybe; + timePriceS2_gte?: InputMaybe; + timePriceS2_in?: InputMaybe>; + timePriceS2_lt?: InputMaybe; + timePriceS2_lte?: InputMaybe; + timePriceS2_not?: InputMaybe; + timePriceS2_not_in?: InputMaybe>; + timePriceS3?: InputMaybe; + timePriceS3_gt?: InputMaybe; + timePriceS3_gte?: InputMaybe; + timePriceS3_in?: InputMaybe>; + timePriceS3_lt?: InputMaybe; + timePriceS3_lte?: InputMaybe; + timePriceS3_not?: InputMaybe; + timePriceS3_not_in?: InputMaybe>; +}; + +export enum UpdatePrice_OrderBy { + Id = 'id', + OracleS2Addr = 'oracleS2Addr', + OracleS3Addr = 'oracleS3Addr', + PerpetualId = 'perpetualId', + SpotPriceS2 = 'spotPriceS2', + SpotPriceS3 = 'spotPriceS3', + TimePriceS2 = 'timePriceS2', + TimePriceS3 = 'timePriceS3', +} + +export type UpdateReprTradeSizes = { + __typename?: 'UpdateReprTradeSizes'; + blockTimestamp: Scalars['BigInt']; + fCurrentAMMExposureEMALong: Scalars['BigInt']; + fCurrentAMMExposureEMAShort: Scalars['BigInt']; + fCurrentTraderExposureEMA: Scalars['BigInt']; + id: Scalars['ID']; + perpetualId: Scalars['Bytes']; +}; + +export type UpdateReprTradeSizes_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + blockTimestamp?: InputMaybe; + blockTimestamp_gt?: InputMaybe; + blockTimestamp_gte?: InputMaybe; + blockTimestamp_in?: InputMaybe>; + blockTimestamp_lt?: InputMaybe; + blockTimestamp_lte?: InputMaybe; + blockTimestamp_not?: InputMaybe; + blockTimestamp_not_in?: InputMaybe>; + fCurrentAMMExposureEMALong?: InputMaybe; + fCurrentAMMExposureEMALong_gt?: InputMaybe; + fCurrentAMMExposureEMALong_gte?: InputMaybe; + fCurrentAMMExposureEMALong_in?: InputMaybe>; + fCurrentAMMExposureEMALong_lt?: InputMaybe; + fCurrentAMMExposureEMALong_lte?: InputMaybe; + fCurrentAMMExposureEMALong_not?: InputMaybe; + fCurrentAMMExposureEMALong_not_in?: InputMaybe>; + fCurrentAMMExposureEMAShort?: InputMaybe; + fCurrentAMMExposureEMAShort_gt?: InputMaybe; + fCurrentAMMExposureEMAShort_gte?: InputMaybe; + fCurrentAMMExposureEMAShort_in?: InputMaybe>; + fCurrentAMMExposureEMAShort_lt?: InputMaybe; + fCurrentAMMExposureEMAShort_lte?: InputMaybe; + fCurrentAMMExposureEMAShort_not?: InputMaybe; + fCurrentAMMExposureEMAShort_not_in?: InputMaybe>; + fCurrentTraderExposureEMA?: InputMaybe; + fCurrentTraderExposureEMA_gt?: InputMaybe; + fCurrentTraderExposureEMA_gte?: InputMaybe; + fCurrentTraderExposureEMA_in?: InputMaybe>; + fCurrentTraderExposureEMA_lt?: InputMaybe; + fCurrentTraderExposureEMA_lte?: InputMaybe; + fCurrentTraderExposureEMA_not?: InputMaybe; + fCurrentTraderExposureEMA_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + perpetualId?: InputMaybe; + perpetualId_contains?: InputMaybe; + perpetualId_in?: InputMaybe>; + perpetualId_not?: InputMaybe; + perpetualId_not_contains?: InputMaybe; + perpetualId_not_in?: InputMaybe>; +}; + +export enum UpdateReprTradeSizes_OrderBy { + BlockTimestamp = 'blockTimestamp', + FCurrentAmmExposureEmaLong = 'fCurrentAMMExposureEMALong', + FCurrentAmmExposureEmaShort = 'fCurrentAMMExposureEMAShort', + FCurrentTraderExposureEma = 'fCurrentTraderExposureEMA', + Id = 'id', + PerpetualId = 'perpetualId', +} + +export type UpdateUnitAccumulatedFunding = { + __typename?: 'UpdateUnitAccumulatedFunding'; + id: Scalars['ID']; + perpetualId: Scalars['Bytes']; + unitAccumulativeFunding: Scalars['BigInt']; +}; + +export type UpdateUnitAccumulatedFunding_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + perpetualId?: InputMaybe; + perpetualId_contains?: InputMaybe; + perpetualId_in?: InputMaybe>; + perpetualId_not?: InputMaybe; + perpetualId_not_contains?: InputMaybe; + perpetualId_not_in?: InputMaybe>; + unitAccumulativeFunding?: InputMaybe; + unitAccumulativeFunding_gt?: InputMaybe; + unitAccumulativeFunding_gte?: InputMaybe; + unitAccumulativeFunding_in?: InputMaybe>; + unitAccumulativeFunding_lt?: InputMaybe; + unitAccumulativeFunding_lte?: InputMaybe; + unitAccumulativeFunding_not?: InputMaybe; + unitAccumulativeFunding_not_in?: InputMaybe>; +}; + +export enum UpdateUnitAccumulatedFunding_OrderBy { + Id = 'id', + PerpetualId = 'perpetualId', + UnitAccumulativeFunding = 'unitAccumulativeFunding', +} + +export type _Block_ = { + __typename?: '_Block_'; + /** The hash of the block */ + hash?: Maybe; + /** The block number */ + number: Scalars['Int']; + /** Integer representation of the timestamp stored in blocks for the chain */ + timestamp?: Maybe; +}; + +/** The type for the top-level _meta field */ +export type _Meta_ = { + __typename?: '_Meta_'; + /** + * Information about a specific subgraph block. The hash of the block + * will be null if the _meta field has a block constraint that asks for + * a block number. It will be filled if the _meta field has no block constraint + * and therefore asks for the latest block + * + */ + block: _Block_; + /** The deployment ID */ + deployment: Scalars['String']; + /** If `true`, the subgraph encountered indexing errors at some past block */ + hasIndexingErrors: Scalars['Boolean']; +}; + +export enum _SubgraphErrorPolicy_ { + /** Data will be returned even if the subgraph has indexing errors */ + Allow = 'allow', + /** If the subgraph has indexing errors, data will be omitted. The default. */ + Deny = 'deny', +} + +export type GetTradesQueryVariables = Exact<{ [key: string]: never }>; + +export type GetTradesQuery = { + __typename?: 'Query'; + trades: Array<{ + __typename?: 'Trade'; + id: string; + price: any; + trader: { __typename?: 'Trader'; id: string }; + }>; +}; + +export const GetTradesDocument = gql` + query getTrades { + trades { + id + trader { + id + } + price + } + } +`; + +/** + * __useGetTradesQuery__ + * + * To run a query within a React component, call `useGetTradesQuery` and pass it any options that fit your needs. + * When your component renders, `useGetTradesQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useGetTradesQuery({ + * variables: { + * }, + * }); + */ +export function useGetTradesQuery( + baseOptions?: Apollo.QueryHookOptions< + GetTradesQuery, + GetTradesQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery( + GetTradesDocument, + options, + ); +} +export function useGetTradesLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + GetTradesQuery, + GetTradesQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery( + GetTradesDocument, + options, + ); +} +export type GetTradesQueryHookResult = ReturnType; +export type GetTradesLazyQueryHookResult = ReturnType< + typeof useGetTradesLazyQuery +>; +export type GetTradesQueryResult = Apollo.QueryResult< + GetTradesQuery, + GetTradesQueryVariables +>; diff --git a/apps/frontend/src/utils/graphql/perps/operations/getTrades.graphql b/apps/frontend/src/utils/graphql/perps/operations/getTrades.graphql new file mode 100644 index 000000000..8f9576e5d --- /dev/null +++ b/apps/frontend/src/utils/graphql/perps/operations/getTrades.graphql @@ -0,0 +1,9 @@ +query getTrades { + trades { + id + trader { + id + } + price + } +} diff --git a/apps/frontend/src/utils/graphql/perps/schema.graphql b/apps/frontend/src/utils/graphql/perps/schema.graphql new file mode 100644 index 000000000..d1903d2bb --- /dev/null +++ b/apps/frontend/src/utils/graphql/perps/schema.graphql @@ -0,0 +1,10490 @@ +""" +creates a virtual field on the entity that may be queried but cannot be set manually through the mappings API. +""" +directive @derivedFrom(field: String!) on FIELD_DEFINITION + +""" +Marks the GraphQL type as indexable entity. Each type that should be an entity is required to be annotated with this directive. +""" +directive @entity on OBJECT + +""" +Defined a Subgraph ID for an object type +""" +directive @subgraphId(id: String!) on OBJECT + +type AddAmmGovernanceAddress { + gAddress: Bytes! + id: ID! +} + +input AddAmmGovernanceAddress_filter { + """ + Filter for the block changed event. + """ + _change_block: BlockChangedFilter + gAddress: Bytes + gAddress_contains: Bytes + gAddress_in: [Bytes!] + gAddress_not: Bytes + gAddress_not_contains: Bytes + gAddress_not_in: [Bytes!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] +} + +enum AddAmmGovernanceAddress_orderBy { + gAddress + id +} + +type AnswerUpdated { + current: BigInt! + id: ID! + roundId: BigInt! + updatedAt: BigInt! +} + +input AnswerUpdated_filter { + """ + Filter for the block changed event. + """ + _change_block: BlockChangedFilter + current: BigInt + current_gt: BigInt + current_gte: BigInt + current_in: [BigInt!] + current_lt: BigInt + current_lte: BigInt + current_not: BigInt + current_not_in: [BigInt!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + roundId: BigInt + roundId_gt: BigInt + roundId_gte: BigInt + roundId_in: [BigInt!] + roundId_lt: BigInt + roundId_lte: BigInt + roundId_not: BigInt + roundId_not_in: [BigInt!] + updatedAt: BigInt + updatedAt_gt: BigInt + updatedAt_gte: BigInt + updatedAt_in: [BigInt!] + updatedAt_lt: BigInt + updatedAt_lte: BigInt + updatedAt_not: BigInt + updatedAt_not_in: [BigInt!] +} + +enum AnswerUpdated_orderBy { + current + id + roundId + updatedAt +} + +type AtomicYield { + calculatedYield: BigInt! + createdAtTx: Transaction! + endTimestamp: BigInt! + id: ID! + liquidityPool: LiquidityPool! + startTimestamp: BigInt! +} + +input AtomicYield_filter { + """ + Filter for the block changed event. + """ + _change_block: BlockChangedFilter + calculatedYield: BigInt + calculatedYield_gt: BigInt + calculatedYield_gte: BigInt + calculatedYield_in: [BigInt!] + calculatedYield_lt: BigInt + calculatedYield_lte: BigInt + calculatedYield_not: BigInt + calculatedYield_not_in: [BigInt!] + createdAtTx: String + createdAtTx_: Transaction_filter + createdAtTx_contains: String + createdAtTx_contains_nocase: String + createdAtTx_ends_with: String + createdAtTx_ends_with_nocase: String + createdAtTx_gt: String + createdAtTx_gte: String + createdAtTx_in: [String!] + createdAtTx_lt: String + createdAtTx_lte: String + createdAtTx_not: String + createdAtTx_not_contains: String + createdAtTx_not_contains_nocase: String + createdAtTx_not_ends_with: String + createdAtTx_not_ends_with_nocase: String + createdAtTx_not_in: [String!] + createdAtTx_not_starts_with: String + createdAtTx_not_starts_with_nocase: String + createdAtTx_starts_with: String + createdAtTx_starts_with_nocase: String + endTimestamp: BigInt + endTimestamp_gt: BigInt + endTimestamp_gte: BigInt + endTimestamp_in: [BigInt!] + endTimestamp_lt: BigInt + endTimestamp_lte: BigInt + endTimestamp_not: BigInt + endTimestamp_not_in: [BigInt!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + liquidityPool: String + liquidityPool_: LiquidityPool_filter + liquidityPool_contains: String + liquidityPool_contains_nocase: String + liquidityPool_ends_with: String + liquidityPool_ends_with_nocase: String + liquidityPool_gt: String + liquidityPool_gte: String + liquidityPool_in: [String!] + liquidityPool_lt: String + liquidityPool_lte: String + liquidityPool_not: String + liquidityPool_not_contains: String + liquidityPool_not_contains_nocase: String + liquidityPool_not_ends_with: String + liquidityPool_not_ends_with_nocase: String + liquidityPool_not_in: [String!] + liquidityPool_not_starts_with: String + liquidityPool_not_starts_with_nocase: String + liquidityPool_starts_with: String + liquidityPool_starts_with_nocase: String + startTimestamp: BigInt + startTimestamp_gt: BigInt + startTimestamp_gte: BigInt + startTimestamp_in: [BigInt!] + startTimestamp_lt: BigInt + startTimestamp_lte: BigInt + startTimestamp_not: BigInt + startTimestamp_not_in: [BigInt!] +} + +enum AtomicYield_orderBy { + calculatedYield + createdAtTx + endTimestamp + id + liquidityPool + startTimestamp +} + +scalar BigDecimal + +scalar BigInt + +input BlockChangedFilter { + number_gte: Int! +} + +input Block_height { + hash: Bytes + number: Int + number_gte: Int +} + +scalar Bytes + +type CandleSticksDay { + close: BigDecimal! + high: BigDecimal! + id: ID! + longVolume: BigDecimal! + low: BigDecimal! + open: BigDecimal + oraclePriceClose: BigDecimal! + oraclePriceHigh: BigDecimal! + oraclePriceLow: BigDecimal! + oraclePriceOpen: BigDecimal! + periodStartUnix: Int! + perpetual: Perpetual! + shortVolume: BigDecimal! + totalVolume: BigDecimal! + txCount: Int! +} + +input CandleSticksDay_filter { + """ + Filter for the block changed event. + """ + _change_block: BlockChangedFilter + close: BigDecimal + close_gt: BigDecimal + close_gte: BigDecimal + close_in: [BigDecimal!] + close_lt: BigDecimal + close_lte: BigDecimal + close_not: BigDecimal + close_not_in: [BigDecimal!] + high: BigDecimal + high_gt: BigDecimal + high_gte: BigDecimal + high_in: [BigDecimal!] + high_lt: BigDecimal + high_lte: BigDecimal + high_not: BigDecimal + high_not_in: [BigDecimal!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + longVolume: BigDecimal + longVolume_gt: BigDecimal + longVolume_gte: BigDecimal + longVolume_in: [BigDecimal!] + longVolume_lt: BigDecimal + longVolume_lte: BigDecimal + longVolume_not: BigDecimal + longVolume_not_in: [BigDecimal!] + low: BigDecimal + low_gt: BigDecimal + low_gte: BigDecimal + low_in: [BigDecimal!] + low_lt: BigDecimal + low_lte: BigDecimal + low_not: BigDecimal + low_not_in: [BigDecimal!] + open: BigDecimal + open_gt: BigDecimal + open_gte: BigDecimal + open_in: [BigDecimal!] + open_lt: BigDecimal + open_lte: BigDecimal + open_not: BigDecimal + open_not_in: [BigDecimal!] + oraclePriceClose: BigDecimal + oraclePriceClose_gt: BigDecimal + oraclePriceClose_gte: BigDecimal + oraclePriceClose_in: [BigDecimal!] + oraclePriceClose_lt: BigDecimal + oraclePriceClose_lte: BigDecimal + oraclePriceClose_not: BigDecimal + oraclePriceClose_not_in: [BigDecimal!] + oraclePriceHigh: BigDecimal + oraclePriceHigh_gt: BigDecimal + oraclePriceHigh_gte: BigDecimal + oraclePriceHigh_in: [BigDecimal!] + oraclePriceHigh_lt: BigDecimal + oraclePriceHigh_lte: BigDecimal + oraclePriceHigh_not: BigDecimal + oraclePriceHigh_not_in: [BigDecimal!] + oraclePriceLow: BigDecimal + oraclePriceLow_gt: BigDecimal + oraclePriceLow_gte: BigDecimal + oraclePriceLow_in: [BigDecimal!] + oraclePriceLow_lt: BigDecimal + oraclePriceLow_lte: BigDecimal + oraclePriceLow_not: BigDecimal + oraclePriceLow_not_in: [BigDecimal!] + oraclePriceOpen: BigDecimal + oraclePriceOpen_gt: BigDecimal + oraclePriceOpen_gte: BigDecimal + oraclePriceOpen_in: [BigDecimal!] + oraclePriceOpen_lt: BigDecimal + oraclePriceOpen_lte: BigDecimal + oraclePriceOpen_not: BigDecimal + oraclePriceOpen_not_in: [BigDecimal!] + periodStartUnix: Int + periodStartUnix_gt: Int + periodStartUnix_gte: Int + periodStartUnix_in: [Int!] + periodStartUnix_lt: Int + periodStartUnix_lte: Int + periodStartUnix_not: Int + periodStartUnix_not_in: [Int!] + perpetual: String + perpetual_: Perpetual_filter + perpetual_contains: String + perpetual_contains_nocase: String + perpetual_ends_with: String + perpetual_ends_with_nocase: String + perpetual_gt: String + perpetual_gte: String + perpetual_in: [String!] + perpetual_lt: String + perpetual_lte: String + perpetual_not: String + perpetual_not_contains: String + perpetual_not_contains_nocase: String + perpetual_not_ends_with: String + perpetual_not_ends_with_nocase: String + perpetual_not_in: [String!] + perpetual_not_starts_with: String + perpetual_not_starts_with_nocase: String + perpetual_starts_with: String + perpetual_starts_with_nocase: String + shortVolume: BigDecimal + shortVolume_gt: BigDecimal + shortVolume_gte: BigDecimal + shortVolume_in: [BigDecimal!] + shortVolume_lt: BigDecimal + shortVolume_lte: BigDecimal + shortVolume_not: BigDecimal + shortVolume_not_in: [BigDecimal!] + totalVolume: BigDecimal + totalVolume_gt: BigDecimal + totalVolume_gte: BigDecimal + totalVolume_in: [BigDecimal!] + totalVolume_lt: BigDecimal + totalVolume_lte: BigDecimal + totalVolume_not: BigDecimal + totalVolume_not_in: [BigDecimal!] + txCount: Int + txCount_gt: Int + txCount_gte: Int + txCount_in: [Int!] + txCount_lt: Int + txCount_lte: Int + txCount_not: Int + txCount_not_in: [Int!] +} + +enum CandleSticksDay_orderBy { + close + high + id + longVolume + low + open + oraclePriceClose + oraclePriceHigh + oraclePriceLow + oraclePriceOpen + periodStartUnix + perpetual + shortVolume + totalVolume + txCount +} + +type CandleSticksFifteenMinute { + close: BigDecimal! + high: BigDecimal! + id: ID! + longVolume: BigDecimal! + low: BigDecimal! + open: BigDecimal + oraclePriceClose: BigDecimal! + oraclePriceHigh: BigDecimal! + oraclePriceLow: BigDecimal! + oraclePriceOpen: BigDecimal! + periodStartUnix: Int! + perpetual: Perpetual! + shortVolume: BigDecimal! + totalVolume: BigDecimal! + txCount: Int! +} + +input CandleSticksFifteenMinute_filter { + """ + Filter for the block changed event. + """ + _change_block: BlockChangedFilter + close: BigDecimal + close_gt: BigDecimal + close_gte: BigDecimal + close_in: [BigDecimal!] + close_lt: BigDecimal + close_lte: BigDecimal + close_not: BigDecimal + close_not_in: [BigDecimal!] + high: BigDecimal + high_gt: BigDecimal + high_gte: BigDecimal + high_in: [BigDecimal!] + high_lt: BigDecimal + high_lte: BigDecimal + high_not: BigDecimal + high_not_in: [BigDecimal!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + longVolume: BigDecimal + longVolume_gt: BigDecimal + longVolume_gte: BigDecimal + longVolume_in: [BigDecimal!] + longVolume_lt: BigDecimal + longVolume_lte: BigDecimal + longVolume_not: BigDecimal + longVolume_not_in: [BigDecimal!] + low: BigDecimal + low_gt: BigDecimal + low_gte: BigDecimal + low_in: [BigDecimal!] + low_lt: BigDecimal + low_lte: BigDecimal + low_not: BigDecimal + low_not_in: [BigDecimal!] + open: BigDecimal + open_gt: BigDecimal + open_gte: BigDecimal + open_in: [BigDecimal!] + open_lt: BigDecimal + open_lte: BigDecimal + open_not: BigDecimal + open_not_in: [BigDecimal!] + oraclePriceClose: BigDecimal + oraclePriceClose_gt: BigDecimal + oraclePriceClose_gte: BigDecimal + oraclePriceClose_in: [BigDecimal!] + oraclePriceClose_lt: BigDecimal + oraclePriceClose_lte: BigDecimal + oraclePriceClose_not: BigDecimal + oraclePriceClose_not_in: [BigDecimal!] + oraclePriceHigh: BigDecimal + oraclePriceHigh_gt: BigDecimal + oraclePriceHigh_gte: BigDecimal + oraclePriceHigh_in: [BigDecimal!] + oraclePriceHigh_lt: BigDecimal + oraclePriceHigh_lte: BigDecimal + oraclePriceHigh_not: BigDecimal + oraclePriceHigh_not_in: [BigDecimal!] + oraclePriceLow: BigDecimal + oraclePriceLow_gt: BigDecimal + oraclePriceLow_gte: BigDecimal + oraclePriceLow_in: [BigDecimal!] + oraclePriceLow_lt: BigDecimal + oraclePriceLow_lte: BigDecimal + oraclePriceLow_not: BigDecimal + oraclePriceLow_not_in: [BigDecimal!] + oraclePriceOpen: BigDecimal + oraclePriceOpen_gt: BigDecimal + oraclePriceOpen_gte: BigDecimal + oraclePriceOpen_in: [BigDecimal!] + oraclePriceOpen_lt: BigDecimal + oraclePriceOpen_lte: BigDecimal + oraclePriceOpen_not: BigDecimal + oraclePriceOpen_not_in: [BigDecimal!] + periodStartUnix: Int + periodStartUnix_gt: Int + periodStartUnix_gte: Int + periodStartUnix_in: [Int!] + periodStartUnix_lt: Int + periodStartUnix_lte: Int + periodStartUnix_not: Int + periodStartUnix_not_in: [Int!] + perpetual: String + perpetual_: Perpetual_filter + perpetual_contains: String + perpetual_contains_nocase: String + perpetual_ends_with: String + perpetual_ends_with_nocase: String + perpetual_gt: String + perpetual_gte: String + perpetual_in: [String!] + perpetual_lt: String + perpetual_lte: String + perpetual_not: String + perpetual_not_contains: String + perpetual_not_contains_nocase: String + perpetual_not_ends_with: String + perpetual_not_ends_with_nocase: String + perpetual_not_in: [String!] + perpetual_not_starts_with: String + perpetual_not_starts_with_nocase: String + perpetual_starts_with: String + perpetual_starts_with_nocase: String + shortVolume: BigDecimal + shortVolume_gt: BigDecimal + shortVolume_gte: BigDecimal + shortVolume_in: [BigDecimal!] + shortVolume_lt: BigDecimal + shortVolume_lte: BigDecimal + shortVolume_not: BigDecimal + shortVolume_not_in: [BigDecimal!] + totalVolume: BigDecimal + totalVolume_gt: BigDecimal + totalVolume_gte: BigDecimal + totalVolume_in: [BigDecimal!] + totalVolume_lt: BigDecimal + totalVolume_lte: BigDecimal + totalVolume_not: BigDecimal + totalVolume_not_in: [BigDecimal!] + txCount: Int + txCount_gt: Int + txCount_gte: Int + txCount_in: [Int!] + txCount_lt: Int + txCount_lte: Int + txCount_not: Int + txCount_not_in: [Int!] +} + +enum CandleSticksFifteenMinute_orderBy { + close + high + id + longVolume + low + open + oraclePriceClose + oraclePriceHigh + oraclePriceLow + oraclePriceOpen + periodStartUnix + perpetual + shortVolume + totalVolume + txCount +} + +type CandleSticksFourHour { + close: BigDecimal! + high: BigDecimal! + id: ID! + longVolume: BigDecimal! + low: BigDecimal! + open: BigDecimal + oraclePriceClose: BigDecimal! + oraclePriceHigh: BigDecimal! + oraclePriceLow: BigDecimal! + oraclePriceOpen: BigDecimal! + periodStartUnix: Int! + perpetual: Perpetual! + shortVolume: BigDecimal! + totalVolume: BigDecimal! + txCount: Int! +} + +input CandleSticksFourHour_filter { + """ + Filter for the block changed event. + """ + _change_block: BlockChangedFilter + close: BigDecimal + close_gt: BigDecimal + close_gte: BigDecimal + close_in: [BigDecimal!] + close_lt: BigDecimal + close_lte: BigDecimal + close_not: BigDecimal + close_not_in: [BigDecimal!] + high: BigDecimal + high_gt: BigDecimal + high_gte: BigDecimal + high_in: [BigDecimal!] + high_lt: BigDecimal + high_lte: BigDecimal + high_not: BigDecimal + high_not_in: [BigDecimal!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + longVolume: BigDecimal + longVolume_gt: BigDecimal + longVolume_gte: BigDecimal + longVolume_in: [BigDecimal!] + longVolume_lt: BigDecimal + longVolume_lte: BigDecimal + longVolume_not: BigDecimal + longVolume_not_in: [BigDecimal!] + low: BigDecimal + low_gt: BigDecimal + low_gte: BigDecimal + low_in: [BigDecimal!] + low_lt: BigDecimal + low_lte: BigDecimal + low_not: BigDecimal + low_not_in: [BigDecimal!] + open: BigDecimal + open_gt: BigDecimal + open_gte: BigDecimal + open_in: [BigDecimal!] + open_lt: BigDecimal + open_lte: BigDecimal + open_not: BigDecimal + open_not_in: [BigDecimal!] + oraclePriceClose: BigDecimal + oraclePriceClose_gt: BigDecimal + oraclePriceClose_gte: BigDecimal + oraclePriceClose_in: [BigDecimal!] + oraclePriceClose_lt: BigDecimal + oraclePriceClose_lte: BigDecimal + oraclePriceClose_not: BigDecimal + oraclePriceClose_not_in: [BigDecimal!] + oraclePriceHigh: BigDecimal + oraclePriceHigh_gt: BigDecimal + oraclePriceHigh_gte: BigDecimal + oraclePriceHigh_in: [BigDecimal!] + oraclePriceHigh_lt: BigDecimal + oraclePriceHigh_lte: BigDecimal + oraclePriceHigh_not: BigDecimal + oraclePriceHigh_not_in: [BigDecimal!] + oraclePriceLow: BigDecimal + oraclePriceLow_gt: BigDecimal + oraclePriceLow_gte: BigDecimal + oraclePriceLow_in: [BigDecimal!] + oraclePriceLow_lt: BigDecimal + oraclePriceLow_lte: BigDecimal + oraclePriceLow_not: BigDecimal + oraclePriceLow_not_in: [BigDecimal!] + oraclePriceOpen: BigDecimal + oraclePriceOpen_gt: BigDecimal + oraclePriceOpen_gte: BigDecimal + oraclePriceOpen_in: [BigDecimal!] + oraclePriceOpen_lt: BigDecimal + oraclePriceOpen_lte: BigDecimal + oraclePriceOpen_not: BigDecimal + oraclePriceOpen_not_in: [BigDecimal!] + periodStartUnix: Int + periodStartUnix_gt: Int + periodStartUnix_gte: Int + periodStartUnix_in: [Int!] + periodStartUnix_lt: Int + periodStartUnix_lte: Int + periodStartUnix_not: Int + periodStartUnix_not_in: [Int!] + perpetual: String + perpetual_: Perpetual_filter + perpetual_contains: String + perpetual_contains_nocase: String + perpetual_ends_with: String + perpetual_ends_with_nocase: String + perpetual_gt: String + perpetual_gte: String + perpetual_in: [String!] + perpetual_lt: String + perpetual_lte: String + perpetual_not: String + perpetual_not_contains: String + perpetual_not_contains_nocase: String + perpetual_not_ends_with: String + perpetual_not_ends_with_nocase: String + perpetual_not_in: [String!] + perpetual_not_starts_with: String + perpetual_not_starts_with_nocase: String + perpetual_starts_with: String + perpetual_starts_with_nocase: String + shortVolume: BigDecimal + shortVolume_gt: BigDecimal + shortVolume_gte: BigDecimal + shortVolume_in: [BigDecimal!] + shortVolume_lt: BigDecimal + shortVolume_lte: BigDecimal + shortVolume_not: BigDecimal + shortVolume_not_in: [BigDecimal!] + totalVolume: BigDecimal + totalVolume_gt: BigDecimal + totalVolume_gte: BigDecimal + totalVolume_in: [BigDecimal!] + totalVolume_lt: BigDecimal + totalVolume_lte: BigDecimal + totalVolume_not: BigDecimal + totalVolume_not_in: [BigDecimal!] + txCount: Int + txCount_gt: Int + txCount_gte: Int + txCount_in: [Int!] + txCount_lt: Int + txCount_lte: Int + txCount_not: Int + txCount_not_in: [Int!] +} + +enum CandleSticksFourHour_orderBy { + close + high + id + longVolume + low + open + oraclePriceClose + oraclePriceHigh + oraclePriceLow + oraclePriceOpen + periodStartUnix + perpetual + shortVolume + totalVolume + txCount +} + +type CandleSticksHour { + close: BigDecimal! + high: BigDecimal! + id: ID! + longVolume: BigDecimal! + low: BigDecimal! + open: BigDecimal + oraclePriceClose: BigDecimal! + oraclePriceHigh: BigDecimal! + oraclePriceLow: BigDecimal! + oraclePriceOpen: BigDecimal! + periodStartUnix: Int! + perpetual: Perpetual! + shortVolume: BigDecimal! + totalVolume: BigDecimal! + txCount: Int! +} + +input CandleSticksHour_filter { + """ + Filter for the block changed event. + """ + _change_block: BlockChangedFilter + close: BigDecimal + close_gt: BigDecimal + close_gte: BigDecimal + close_in: [BigDecimal!] + close_lt: BigDecimal + close_lte: BigDecimal + close_not: BigDecimal + close_not_in: [BigDecimal!] + high: BigDecimal + high_gt: BigDecimal + high_gte: BigDecimal + high_in: [BigDecimal!] + high_lt: BigDecimal + high_lte: BigDecimal + high_not: BigDecimal + high_not_in: [BigDecimal!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + longVolume: BigDecimal + longVolume_gt: BigDecimal + longVolume_gte: BigDecimal + longVolume_in: [BigDecimal!] + longVolume_lt: BigDecimal + longVolume_lte: BigDecimal + longVolume_not: BigDecimal + longVolume_not_in: [BigDecimal!] + low: BigDecimal + low_gt: BigDecimal + low_gte: BigDecimal + low_in: [BigDecimal!] + low_lt: BigDecimal + low_lte: BigDecimal + low_not: BigDecimal + low_not_in: [BigDecimal!] + open: BigDecimal + open_gt: BigDecimal + open_gte: BigDecimal + open_in: [BigDecimal!] + open_lt: BigDecimal + open_lte: BigDecimal + open_not: BigDecimal + open_not_in: [BigDecimal!] + oraclePriceClose: BigDecimal + oraclePriceClose_gt: BigDecimal + oraclePriceClose_gte: BigDecimal + oraclePriceClose_in: [BigDecimal!] + oraclePriceClose_lt: BigDecimal + oraclePriceClose_lte: BigDecimal + oraclePriceClose_not: BigDecimal + oraclePriceClose_not_in: [BigDecimal!] + oraclePriceHigh: BigDecimal + oraclePriceHigh_gt: BigDecimal + oraclePriceHigh_gte: BigDecimal + oraclePriceHigh_in: [BigDecimal!] + oraclePriceHigh_lt: BigDecimal + oraclePriceHigh_lte: BigDecimal + oraclePriceHigh_not: BigDecimal + oraclePriceHigh_not_in: [BigDecimal!] + oraclePriceLow: BigDecimal + oraclePriceLow_gt: BigDecimal + oraclePriceLow_gte: BigDecimal + oraclePriceLow_in: [BigDecimal!] + oraclePriceLow_lt: BigDecimal + oraclePriceLow_lte: BigDecimal + oraclePriceLow_not: BigDecimal + oraclePriceLow_not_in: [BigDecimal!] + oraclePriceOpen: BigDecimal + oraclePriceOpen_gt: BigDecimal + oraclePriceOpen_gte: BigDecimal + oraclePriceOpen_in: [BigDecimal!] + oraclePriceOpen_lt: BigDecimal + oraclePriceOpen_lte: BigDecimal + oraclePriceOpen_not: BigDecimal + oraclePriceOpen_not_in: [BigDecimal!] + periodStartUnix: Int + periodStartUnix_gt: Int + periodStartUnix_gte: Int + periodStartUnix_in: [Int!] + periodStartUnix_lt: Int + periodStartUnix_lte: Int + periodStartUnix_not: Int + periodStartUnix_not_in: [Int!] + perpetual: String + perpetual_: Perpetual_filter + perpetual_contains: String + perpetual_contains_nocase: String + perpetual_ends_with: String + perpetual_ends_with_nocase: String + perpetual_gt: String + perpetual_gte: String + perpetual_in: [String!] + perpetual_lt: String + perpetual_lte: String + perpetual_not: String + perpetual_not_contains: String + perpetual_not_contains_nocase: String + perpetual_not_ends_with: String + perpetual_not_ends_with_nocase: String + perpetual_not_in: [String!] + perpetual_not_starts_with: String + perpetual_not_starts_with_nocase: String + perpetual_starts_with: String + perpetual_starts_with_nocase: String + shortVolume: BigDecimal + shortVolume_gt: BigDecimal + shortVolume_gte: BigDecimal + shortVolume_in: [BigDecimal!] + shortVolume_lt: BigDecimal + shortVolume_lte: BigDecimal + shortVolume_not: BigDecimal + shortVolume_not_in: [BigDecimal!] + totalVolume: BigDecimal + totalVolume_gt: BigDecimal + totalVolume_gte: BigDecimal + totalVolume_in: [BigDecimal!] + totalVolume_lt: BigDecimal + totalVolume_lte: BigDecimal + totalVolume_not: BigDecimal + totalVolume_not_in: [BigDecimal!] + txCount: Int + txCount_gt: Int + txCount_gte: Int + txCount_in: [Int!] + txCount_lt: Int + txCount_lte: Int + txCount_not: Int + txCount_not_in: [Int!] +} + +enum CandleSticksHour_orderBy { + close + high + id + longVolume + low + open + oraclePriceClose + oraclePriceHigh + oraclePriceLow + oraclePriceOpen + periodStartUnix + perpetual + shortVolume + totalVolume + txCount +} + +type CandleSticksMinute { + close: BigDecimal! + high: BigDecimal! + id: ID! + longVolume: BigDecimal! + low: BigDecimal! + open: BigDecimal + oraclePriceClose: BigDecimal! + oraclePriceHigh: BigDecimal! + oraclePriceLow: BigDecimal! + oraclePriceOpen: BigDecimal! + periodStartUnix: Int! + perpetual: Perpetual! + shortVolume: BigDecimal! + totalVolume: BigDecimal! + txCount: Int! +} + +input CandleSticksMinute_filter { + """ + Filter for the block changed event. + """ + _change_block: BlockChangedFilter + close: BigDecimal + close_gt: BigDecimal + close_gte: BigDecimal + close_in: [BigDecimal!] + close_lt: BigDecimal + close_lte: BigDecimal + close_not: BigDecimal + close_not_in: [BigDecimal!] + high: BigDecimal + high_gt: BigDecimal + high_gte: BigDecimal + high_in: [BigDecimal!] + high_lt: BigDecimal + high_lte: BigDecimal + high_not: BigDecimal + high_not_in: [BigDecimal!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + longVolume: BigDecimal + longVolume_gt: BigDecimal + longVolume_gte: BigDecimal + longVolume_in: [BigDecimal!] + longVolume_lt: BigDecimal + longVolume_lte: BigDecimal + longVolume_not: BigDecimal + longVolume_not_in: [BigDecimal!] + low: BigDecimal + low_gt: BigDecimal + low_gte: BigDecimal + low_in: [BigDecimal!] + low_lt: BigDecimal + low_lte: BigDecimal + low_not: BigDecimal + low_not_in: [BigDecimal!] + open: BigDecimal + open_gt: BigDecimal + open_gte: BigDecimal + open_in: [BigDecimal!] + open_lt: BigDecimal + open_lte: BigDecimal + open_not: BigDecimal + open_not_in: [BigDecimal!] + oraclePriceClose: BigDecimal + oraclePriceClose_gt: BigDecimal + oraclePriceClose_gte: BigDecimal + oraclePriceClose_in: [BigDecimal!] + oraclePriceClose_lt: BigDecimal + oraclePriceClose_lte: BigDecimal + oraclePriceClose_not: BigDecimal + oraclePriceClose_not_in: [BigDecimal!] + oraclePriceHigh: BigDecimal + oraclePriceHigh_gt: BigDecimal + oraclePriceHigh_gte: BigDecimal + oraclePriceHigh_in: [BigDecimal!] + oraclePriceHigh_lt: BigDecimal + oraclePriceHigh_lte: BigDecimal + oraclePriceHigh_not: BigDecimal + oraclePriceHigh_not_in: [BigDecimal!] + oraclePriceLow: BigDecimal + oraclePriceLow_gt: BigDecimal + oraclePriceLow_gte: BigDecimal + oraclePriceLow_in: [BigDecimal!] + oraclePriceLow_lt: BigDecimal + oraclePriceLow_lte: BigDecimal + oraclePriceLow_not: BigDecimal + oraclePriceLow_not_in: [BigDecimal!] + oraclePriceOpen: BigDecimal + oraclePriceOpen_gt: BigDecimal + oraclePriceOpen_gte: BigDecimal + oraclePriceOpen_in: [BigDecimal!] + oraclePriceOpen_lt: BigDecimal + oraclePriceOpen_lte: BigDecimal + oraclePriceOpen_not: BigDecimal + oraclePriceOpen_not_in: [BigDecimal!] + periodStartUnix: Int + periodStartUnix_gt: Int + periodStartUnix_gte: Int + periodStartUnix_in: [Int!] + periodStartUnix_lt: Int + periodStartUnix_lte: Int + periodStartUnix_not: Int + periodStartUnix_not_in: [Int!] + perpetual: String + perpetual_: Perpetual_filter + perpetual_contains: String + perpetual_contains_nocase: String + perpetual_ends_with: String + perpetual_ends_with_nocase: String + perpetual_gt: String + perpetual_gte: String + perpetual_in: [String!] + perpetual_lt: String + perpetual_lte: String + perpetual_not: String + perpetual_not_contains: String + perpetual_not_contains_nocase: String + perpetual_not_ends_with: String + perpetual_not_ends_with_nocase: String + perpetual_not_in: [String!] + perpetual_not_starts_with: String + perpetual_not_starts_with_nocase: String + perpetual_starts_with: String + perpetual_starts_with_nocase: String + shortVolume: BigDecimal + shortVolume_gt: BigDecimal + shortVolume_gte: BigDecimal + shortVolume_in: [BigDecimal!] + shortVolume_lt: BigDecimal + shortVolume_lte: BigDecimal + shortVolume_not: BigDecimal + shortVolume_not_in: [BigDecimal!] + totalVolume: BigDecimal + totalVolume_gt: BigDecimal + totalVolume_gte: BigDecimal + totalVolume_in: [BigDecimal!] + totalVolume_lt: BigDecimal + totalVolume_lte: BigDecimal + totalVolume_not: BigDecimal + totalVolume_not_in: [BigDecimal!] + txCount: Int + txCount_gt: Int + txCount_gte: Int + txCount_in: [Int!] + txCount_lt: Int + txCount_lte: Int + txCount_not: Int + txCount_not_in: [Int!] +} + +enum CandleSticksMinute_orderBy { + close + high + id + longVolume + low + open + oraclePriceClose + oraclePriceHigh + oraclePriceLow + oraclePriceOpen + periodStartUnix + perpetual + shortVolume + totalVolume + txCount +} + +type Clear { + id: ID! + perpetualId: Bytes! + trader: Bytes! +} + +input Clear_filter { + """ + Filter for the block changed event. + """ + _change_block: BlockChangedFilter + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + perpetualId: Bytes + perpetualId_contains: Bytes + perpetualId_in: [Bytes!] + perpetualId_not: Bytes + perpetualId_not_contains: Bytes + perpetualId_not_in: [Bytes!] + trader: Bytes + trader_contains: Bytes + trader_in: [Bytes!] + trader_not: Bytes + trader_not_contains: Bytes + trader_not_in: [Bytes!] +} + +enum Clear_orderBy { + id + perpetualId + trader +} + +type DistributeFee { + blockTimestamp: BigInt! + id: ID! + liquidityPool: LiquidityPool! + participationFundFeeCC: BigInt! + perpetual: Perpetual! + protocolFeeCC: BigInt! + trader: Trader! +} + +input DistributeFee_filter { + """ + Filter for the block changed event. + """ + _change_block: BlockChangedFilter + blockTimestamp: BigInt + blockTimestamp_gt: BigInt + blockTimestamp_gte: BigInt + blockTimestamp_in: [BigInt!] + blockTimestamp_lt: BigInt + blockTimestamp_lte: BigInt + blockTimestamp_not: BigInt + blockTimestamp_not_in: [BigInt!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + liquidityPool: String + liquidityPool_: LiquidityPool_filter + liquidityPool_contains: String + liquidityPool_contains_nocase: String + liquidityPool_ends_with: String + liquidityPool_ends_with_nocase: String + liquidityPool_gt: String + liquidityPool_gte: String + liquidityPool_in: [String!] + liquidityPool_lt: String + liquidityPool_lte: String + liquidityPool_not: String + liquidityPool_not_contains: String + liquidityPool_not_contains_nocase: String + liquidityPool_not_ends_with: String + liquidityPool_not_ends_with_nocase: String + liquidityPool_not_in: [String!] + liquidityPool_not_starts_with: String + liquidityPool_not_starts_with_nocase: String + liquidityPool_starts_with: String + liquidityPool_starts_with_nocase: String + participationFundFeeCC: BigInt + participationFundFeeCC_gt: BigInt + participationFundFeeCC_gte: BigInt + participationFundFeeCC_in: [BigInt!] + participationFundFeeCC_lt: BigInt + participationFundFeeCC_lte: BigInt + participationFundFeeCC_not: BigInt + participationFundFeeCC_not_in: [BigInt!] + perpetual: String + perpetual_: Perpetual_filter + perpetual_contains: String + perpetual_contains_nocase: String + perpetual_ends_with: String + perpetual_ends_with_nocase: String + perpetual_gt: String + perpetual_gte: String + perpetual_in: [String!] + perpetual_lt: String + perpetual_lte: String + perpetual_not: String + perpetual_not_contains: String + perpetual_not_contains_nocase: String + perpetual_not_ends_with: String + perpetual_not_ends_with_nocase: String + perpetual_not_in: [String!] + perpetual_not_starts_with: String + perpetual_not_starts_with_nocase: String + perpetual_starts_with: String + perpetual_starts_with_nocase: String + protocolFeeCC: BigInt + protocolFeeCC_gt: BigInt + protocolFeeCC_gte: BigInt + protocolFeeCC_in: [BigInt!] + protocolFeeCC_lt: BigInt + protocolFeeCC_lte: BigInt + protocolFeeCC_not: BigInt + protocolFeeCC_not_in: [BigInt!] + trader: String + trader_: Trader_filter + trader_contains: String + trader_contains_nocase: String + trader_ends_with: String + trader_ends_with_nocase: String + trader_gt: String + trader_gte: String + trader_in: [String!] + trader_lt: String + trader_lte: String + trader_not: String + trader_not_contains: String + trader_not_contains_nocase: String + trader_not_ends_with: String + trader_not_ends_with_nocase: String + trader_not_in: [String!] + trader_not_starts_with: String + trader_not_starts_with_nocase: String + trader_starts_with: String + trader_starts_with_nocase: String +} + +enum DistributeFee_orderBy { + blockTimestamp + id + liquidityPool + participationFundFeeCC + perpetual + protocolFeeCC + trader +} + +type Fund { + cash: BigInt! + createdAtBlockNumber: BigInt! + createdAtTimestamp: BigInt! + id: ID! + liquidityPool: LiquidityPool + targetSize: BigInt! + type: FundType! + updatedAtBlockNumber: BigInt! + updatedAtTimestamp: BigInt! +} + +enum FundType { + AMMFund + DefaultFund + ParticipationFund +} + +input Fund_filter { + """ + Filter for the block changed event. + """ + _change_block: BlockChangedFilter + cash: BigInt + cash_gt: BigInt + cash_gte: BigInt + cash_in: [BigInt!] + cash_lt: BigInt + cash_lte: BigInt + cash_not: BigInt + cash_not_in: [BigInt!] + createdAtBlockNumber: BigInt + createdAtBlockNumber_gt: BigInt + createdAtBlockNumber_gte: BigInt + createdAtBlockNumber_in: [BigInt!] + createdAtBlockNumber_lt: BigInt + createdAtBlockNumber_lte: BigInt + createdAtBlockNumber_not: BigInt + createdAtBlockNumber_not_in: [BigInt!] + createdAtTimestamp: BigInt + createdAtTimestamp_gt: BigInt + createdAtTimestamp_gte: BigInt + createdAtTimestamp_in: [BigInt!] + createdAtTimestamp_lt: BigInt + createdAtTimestamp_lte: BigInt + createdAtTimestamp_not: BigInt + createdAtTimestamp_not_in: [BigInt!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + liquidityPool: String + liquidityPool_: LiquidityPool_filter + liquidityPool_contains: String + liquidityPool_contains_nocase: String + liquidityPool_ends_with: String + liquidityPool_ends_with_nocase: String + liquidityPool_gt: String + liquidityPool_gte: String + liquidityPool_in: [String!] + liquidityPool_lt: String + liquidityPool_lte: String + liquidityPool_not: String + liquidityPool_not_contains: String + liquidityPool_not_contains_nocase: String + liquidityPool_not_ends_with: String + liquidityPool_not_ends_with_nocase: String + liquidityPool_not_in: [String!] + liquidityPool_not_starts_with: String + liquidityPool_not_starts_with_nocase: String + liquidityPool_starts_with: String + liquidityPool_starts_with_nocase: String + targetSize: BigInt + targetSize_gt: BigInt + targetSize_gte: BigInt + targetSize_in: [BigInt!] + targetSize_lt: BigInt + targetSize_lte: BigInt + targetSize_not: BigInt + targetSize_not_in: [BigInt!] + type: FundType + type_in: [FundType!] + type_not: FundType + type_not_in: [FundType!] + updatedAtBlockNumber: BigInt + updatedAtBlockNumber_gt: BigInt + updatedAtBlockNumber_gte: BigInt + updatedAtBlockNumber_in: [BigInt!] + updatedAtBlockNumber_lt: BigInt + updatedAtBlockNumber_lte: BigInt + updatedAtBlockNumber_not: BigInt + updatedAtBlockNumber_not_in: [BigInt!] + updatedAtTimestamp: BigInt + updatedAtTimestamp_gt: BigInt + updatedAtTimestamp_gte: BigInt + updatedAtTimestamp_in: [BigInt!] + updatedAtTimestamp_lt: BigInt + updatedAtTimestamp_lte: BigInt + updatedAtTimestamp_not: BigInt + updatedAtTimestamp_not_in: [BigInt!] +} + +enum Fund_orderBy { + cash + createdAtBlockNumber + createdAtTimestamp + id + liquidityPool + targetSize + type + updatedAtBlockNumber + updatedAtTimestamp +} + +type FundingPayment { + fundingRates( + first: Int = 100 + orderBy: FundingRate_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: FundingRate_filter + ): [FundingRate!] + id: ID! + lastBlockTimestamp: BigInt! + position: Position! + trader: Trader! +} + +input FundingPayment_filter { + """ + Filter for the block changed event. + """ + _change_block: BlockChangedFilter + fundingRates_: FundingRate_filter + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + lastBlockTimestamp: BigInt + lastBlockTimestamp_gt: BigInt + lastBlockTimestamp_gte: BigInt + lastBlockTimestamp_in: [BigInt!] + lastBlockTimestamp_lt: BigInt + lastBlockTimestamp_lte: BigInt + lastBlockTimestamp_not: BigInt + lastBlockTimestamp_not_in: [BigInt!] + position: String + position_: Position_filter + position_contains: String + position_contains_nocase: String + position_ends_with: String + position_ends_with_nocase: String + position_gt: String + position_gte: String + position_in: [String!] + position_lt: String + position_lte: String + position_not: String + position_not_contains: String + position_not_contains_nocase: String + position_not_ends_with: String + position_not_ends_with_nocase: String + position_not_in: [String!] + position_not_starts_with: String + position_not_starts_with_nocase: String + position_starts_with: String + position_starts_with_nocase: String + trader: String + trader_: Trader_filter + trader_contains: String + trader_contains_nocase: String + trader_ends_with: String + trader_ends_with_nocase: String + trader_gt: String + trader_gte: String + trader_in: [String!] + trader_lt: String + trader_lte: String + trader_not: String + trader_not_contains: String + trader_not_contains_nocase: String + trader_not_ends_with: String + trader_not_ends_with_nocase: String + trader_not_in: [String!] + trader_not_starts_with: String + trader_not_starts_with_nocase: String + trader_starts_with: String + trader_starts_with_nocase: String +} + +enum FundingPayment_orderBy { + fundingRates + id + lastBlockTimestamp + position + trader +} + +type FundingRate { + blockTimestamp: BigInt! + deltaTime: BigInt! + fFundingPaymentCC: BigInt! + fPositionBC: BigInt! + fundingPayment: FundingPayment! + fundingRate: BigInt! + fundingTime: BigInt! + id: ID! + rate8h: BigInt! + trader: Trader! +} + +input FundingRate_filter { + """ + Filter for the block changed event. + """ + _change_block: BlockChangedFilter + blockTimestamp: BigInt + blockTimestamp_gt: BigInt + blockTimestamp_gte: BigInt + blockTimestamp_in: [BigInt!] + blockTimestamp_lt: BigInt + blockTimestamp_lte: BigInt + blockTimestamp_not: BigInt + blockTimestamp_not_in: [BigInt!] + deltaTime: BigInt + deltaTime_gt: BigInt + deltaTime_gte: BigInt + deltaTime_in: [BigInt!] + deltaTime_lt: BigInt + deltaTime_lte: BigInt + deltaTime_not: BigInt + deltaTime_not_in: [BigInt!] + fFundingPaymentCC: BigInt + fFundingPaymentCC_gt: BigInt + fFundingPaymentCC_gte: BigInt + fFundingPaymentCC_in: [BigInt!] + fFundingPaymentCC_lt: BigInt + fFundingPaymentCC_lte: BigInt + fFundingPaymentCC_not: BigInt + fFundingPaymentCC_not_in: [BigInt!] + fPositionBC: BigInt + fPositionBC_gt: BigInt + fPositionBC_gte: BigInt + fPositionBC_in: [BigInt!] + fPositionBC_lt: BigInt + fPositionBC_lte: BigInt + fPositionBC_not: BigInt + fPositionBC_not_in: [BigInt!] + fundingPayment: String + fundingPayment_: FundingPayment_filter + fundingPayment_contains: String + fundingPayment_contains_nocase: String + fundingPayment_ends_with: String + fundingPayment_ends_with_nocase: String + fundingPayment_gt: String + fundingPayment_gte: String + fundingPayment_in: [String!] + fundingPayment_lt: String + fundingPayment_lte: String + fundingPayment_not: String + fundingPayment_not_contains: String + fundingPayment_not_contains_nocase: String + fundingPayment_not_ends_with: String + fundingPayment_not_ends_with_nocase: String + fundingPayment_not_in: [String!] + fundingPayment_not_starts_with: String + fundingPayment_not_starts_with_nocase: String + fundingPayment_starts_with: String + fundingPayment_starts_with_nocase: String + fundingRate: BigInt + fundingRate_gt: BigInt + fundingRate_gte: BigInt + fundingRate_in: [BigInt!] + fundingRate_lt: BigInt + fundingRate_lte: BigInt + fundingRate_not: BigInt + fundingRate_not_in: [BigInt!] + fundingTime: BigInt + fundingTime_gt: BigInt + fundingTime_gte: BigInt + fundingTime_in: [BigInt!] + fundingTime_lt: BigInt + fundingTime_lte: BigInt + fundingTime_not: BigInt + fundingTime_not_in: [BigInt!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + rate8h: BigInt + rate8h_gt: BigInt + rate8h_gte: BigInt + rate8h_in: [BigInt!] + rate8h_lt: BigInt + rate8h_lte: BigInt + rate8h_not: BigInt + rate8h_not_in: [BigInt!] + trader: String + trader_: Trader_filter + trader_contains: String + trader_contains_nocase: String + trader_ends_with: String + trader_ends_with_nocase: String + trader_gt: String + trader_gte: String + trader_in: [String!] + trader_lt: String + trader_lte: String + trader_not: String + trader_not_contains: String + trader_not_contains_nocase: String + trader_not_ends_with: String + trader_not_ends_with_nocase: String + trader_not_in: [String!] + trader_not_starts_with: String + trader_not_starts_with_nocase: String + trader_starts_with: String + trader_starts_with_nocase: String +} + +enum FundingRate_orderBy { + blockTimestamp + deltaTime + fFundingPaymentCC + fPositionBC + fundingPayment + fundingRate + fundingTime + id + rate8h + trader +} + +type ImplementationChanged { + _newImplementation: Bytes! + _oldImplementation: Bytes! + _sig: Bytes! + id: ID! +} + +input ImplementationChanged_filter { + """ + Filter for the block changed event. + """ + _change_block: BlockChangedFilter + _newImplementation: Bytes + _newImplementation_contains: Bytes + _newImplementation_in: [Bytes!] + _newImplementation_not: Bytes + _newImplementation_not_contains: Bytes + _newImplementation_not_in: [Bytes!] + _oldImplementation: Bytes + _oldImplementation_contains: Bytes + _oldImplementation_in: [Bytes!] + _oldImplementation_not: Bytes + _oldImplementation_not_contains: Bytes + _oldImplementation_not_in: [Bytes!] + _sig: Bytes + _sig_contains: Bytes + _sig_in: [Bytes!] + _sig_not: Bytes + _sig_not_contains: Bytes + _sig_not_in: [Bytes!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] +} + +enum ImplementationChanged_orderBy { + _newImplementation + _oldImplementation + _sig + id +} + +type LimitOrder { + createdTimestamp: BigInt! + createdTransactionHash: Bytes! + deadline: BigInt! + digest: Bytes! + flags: BigInt! + id: ID! + leverage: BigInt! + limitPrice: BigInt! + perpetual: Perpetual! + referrerAddr: Trader + state: LimitOrderState! + tradeAmount: BigInt! + trader: Trader! + triggerPrice: BigInt! +} + +enum LimitOrderState { + Active + Cancelled + Filled +} + +input LimitOrder_filter { + """ + Filter for the block changed event. + """ + _change_block: BlockChangedFilter + createdTimestamp: BigInt + createdTimestamp_gt: BigInt + createdTimestamp_gte: BigInt + createdTimestamp_in: [BigInt!] + createdTimestamp_lt: BigInt + createdTimestamp_lte: BigInt + createdTimestamp_not: BigInt + createdTimestamp_not_in: [BigInt!] + createdTransactionHash: Bytes + createdTransactionHash_contains: Bytes + createdTransactionHash_in: [Bytes!] + createdTransactionHash_not: Bytes + createdTransactionHash_not_contains: Bytes + createdTransactionHash_not_in: [Bytes!] + deadline: BigInt + deadline_gt: BigInt + deadline_gte: BigInt + deadline_in: [BigInt!] + deadline_lt: BigInt + deadline_lte: BigInt + deadline_not: BigInt + deadline_not_in: [BigInt!] + digest: Bytes + digest_contains: Bytes + digest_in: [Bytes!] + digest_not: Bytes + digest_not_contains: Bytes + digest_not_in: [Bytes!] + flags: BigInt + flags_gt: BigInt + flags_gte: BigInt + flags_in: [BigInt!] + flags_lt: BigInt + flags_lte: BigInt + flags_not: BigInt + flags_not_in: [BigInt!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + leverage: BigInt + leverage_gt: BigInt + leverage_gte: BigInt + leverage_in: [BigInt!] + leverage_lt: BigInt + leverage_lte: BigInt + leverage_not: BigInt + leverage_not_in: [BigInt!] + limitPrice: BigInt + limitPrice_gt: BigInt + limitPrice_gte: BigInt + limitPrice_in: [BigInt!] + limitPrice_lt: BigInt + limitPrice_lte: BigInt + limitPrice_not: BigInt + limitPrice_not_in: [BigInt!] + perpetual: String + perpetual_: Perpetual_filter + perpetual_contains: String + perpetual_contains_nocase: String + perpetual_ends_with: String + perpetual_ends_with_nocase: String + perpetual_gt: String + perpetual_gte: String + perpetual_in: [String!] + perpetual_lt: String + perpetual_lte: String + perpetual_not: String + perpetual_not_contains: String + perpetual_not_contains_nocase: String + perpetual_not_ends_with: String + perpetual_not_ends_with_nocase: String + perpetual_not_in: [String!] + perpetual_not_starts_with: String + perpetual_not_starts_with_nocase: String + perpetual_starts_with: String + perpetual_starts_with_nocase: String + referrerAddr: String + referrerAddr_: Trader_filter + referrerAddr_contains: String + referrerAddr_contains_nocase: String + referrerAddr_ends_with: String + referrerAddr_ends_with_nocase: String + referrerAddr_gt: String + referrerAddr_gte: String + referrerAddr_in: [String!] + referrerAddr_lt: String + referrerAddr_lte: String + referrerAddr_not: String + referrerAddr_not_contains: String + referrerAddr_not_contains_nocase: String + referrerAddr_not_ends_with: String + referrerAddr_not_ends_with_nocase: String + referrerAddr_not_in: [String!] + referrerAddr_not_starts_with: String + referrerAddr_not_starts_with_nocase: String + referrerAddr_starts_with: String + referrerAddr_starts_with_nocase: String + state: LimitOrderState + state_in: [LimitOrderState!] + state_not: LimitOrderState + state_not_in: [LimitOrderState!] + tradeAmount: BigInt + tradeAmount_gt: BigInt + tradeAmount_gte: BigInt + tradeAmount_in: [BigInt!] + tradeAmount_lt: BigInt + tradeAmount_lte: BigInt + tradeAmount_not: BigInt + tradeAmount_not_in: [BigInt!] + trader: String + trader_: Trader_filter + trader_contains: String + trader_contains_nocase: String + trader_ends_with: String + trader_ends_with_nocase: String + trader_gt: String + trader_gte: String + trader_in: [String!] + trader_lt: String + trader_lte: String + trader_not: String + trader_not_contains: String + trader_not_contains_nocase: String + trader_not_ends_with: String + trader_not_ends_with_nocase: String + trader_not_in: [String!] + trader_not_starts_with: String + trader_not_starts_with_nocase: String + trader_starts_with: String + trader_starts_with_nocase: String + triggerPrice: BigInt + triggerPrice_gt: BigInt + triggerPrice_gte: BigInt + triggerPrice_in: [BigInt!] + triggerPrice_lt: BigInt + triggerPrice_lte: BigInt + triggerPrice_not: BigInt + triggerPrice_not_in: [BigInt!] +} + +enum LimitOrder_orderBy { + createdTimestamp + createdTransactionHash + deadline + digest + flags + id + leverage + limitPrice + perpetual + referrerAddr + state + tradeAmount + trader + triggerPrice +} + +type Liquidate { + amountLiquidatedBC: BigInt! + blockTimestamp: BigInt! + id: ID! + liquidationPrice: BigInt! + liquidator: Trader! + newPositionSizeBC: BigInt! + perpetual: Perpetual! + position: Position! + trader: Trader! + transaction: Transaction! +} + +input Liquidate_filter { + """ + Filter for the block changed event. + """ + _change_block: BlockChangedFilter + amountLiquidatedBC: BigInt + amountLiquidatedBC_gt: BigInt + amountLiquidatedBC_gte: BigInt + amountLiquidatedBC_in: [BigInt!] + amountLiquidatedBC_lt: BigInt + amountLiquidatedBC_lte: BigInt + amountLiquidatedBC_not: BigInt + amountLiquidatedBC_not_in: [BigInt!] + blockTimestamp: BigInt + blockTimestamp_gt: BigInt + blockTimestamp_gte: BigInt + blockTimestamp_in: [BigInt!] + blockTimestamp_lt: BigInt + blockTimestamp_lte: BigInt + blockTimestamp_not: BigInt + blockTimestamp_not_in: [BigInt!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + liquidationPrice: BigInt + liquidationPrice_gt: BigInt + liquidationPrice_gte: BigInt + liquidationPrice_in: [BigInt!] + liquidationPrice_lt: BigInt + liquidationPrice_lte: BigInt + liquidationPrice_not: BigInt + liquidationPrice_not_in: [BigInt!] + liquidator: String + liquidator_: Trader_filter + liquidator_contains: String + liquidator_contains_nocase: String + liquidator_ends_with: String + liquidator_ends_with_nocase: String + liquidator_gt: String + liquidator_gte: String + liquidator_in: [String!] + liquidator_lt: String + liquidator_lte: String + liquidator_not: String + liquidator_not_contains: String + liquidator_not_contains_nocase: String + liquidator_not_ends_with: String + liquidator_not_ends_with_nocase: String + liquidator_not_in: [String!] + liquidator_not_starts_with: String + liquidator_not_starts_with_nocase: String + liquidator_starts_with: String + liquidator_starts_with_nocase: String + newPositionSizeBC: BigInt + newPositionSizeBC_gt: BigInt + newPositionSizeBC_gte: BigInt + newPositionSizeBC_in: [BigInt!] + newPositionSizeBC_lt: BigInt + newPositionSizeBC_lte: BigInt + newPositionSizeBC_not: BigInt + newPositionSizeBC_not_in: [BigInt!] + perpetual: String + perpetual_: Perpetual_filter + perpetual_contains: String + perpetual_contains_nocase: String + perpetual_ends_with: String + perpetual_ends_with_nocase: String + perpetual_gt: String + perpetual_gte: String + perpetual_in: [String!] + perpetual_lt: String + perpetual_lte: String + perpetual_not: String + perpetual_not_contains: String + perpetual_not_contains_nocase: String + perpetual_not_ends_with: String + perpetual_not_ends_with_nocase: String + perpetual_not_in: [String!] + perpetual_not_starts_with: String + perpetual_not_starts_with_nocase: String + perpetual_starts_with: String + perpetual_starts_with_nocase: String + position: String + position_: Position_filter + position_contains: String + position_contains_nocase: String + position_ends_with: String + position_ends_with_nocase: String + position_gt: String + position_gte: String + position_in: [String!] + position_lt: String + position_lte: String + position_not: String + position_not_contains: String + position_not_contains_nocase: String + position_not_ends_with: String + position_not_ends_with_nocase: String + position_not_in: [String!] + position_not_starts_with: String + position_not_starts_with_nocase: String + position_starts_with: String + position_starts_with_nocase: String + trader: String + trader_: Trader_filter + trader_contains: String + trader_contains_nocase: String + trader_ends_with: String + trader_ends_with_nocase: String + trader_gt: String + trader_gte: String + trader_in: [String!] + trader_lt: String + trader_lte: String + trader_not: String + trader_not_contains: String + trader_not_contains_nocase: String + trader_not_ends_with: String + trader_not_ends_with_nocase: String + trader_not_in: [String!] + trader_not_starts_with: String + trader_not_starts_with_nocase: String + trader_starts_with: String + trader_starts_with_nocase: String + transaction: String + transaction_: Transaction_filter + transaction_contains: String + transaction_contains_nocase: String + transaction_ends_with: String + transaction_ends_with_nocase: String + transaction_gt: String + transaction_gte: String + transaction_in: [String!] + transaction_lt: String + transaction_lte: String + transaction_not: String + transaction_not_contains: String + transaction_not_contains_nocase: String + transaction_not_ends_with: String + transaction_not_ends_with_nocase: String + transaction_not_in: [String!] + transaction_not_starts_with: String + transaction_not_starts_with_nocase: String + transaction_starts_with: String + transaction_starts_with_nocase: String +} + +enum Liquidate_orderBy { + amountLiquidatedBC + blockTimestamp + id + liquidationPrice + liquidator + newPositionSizeBC + perpetual + position + trader + transaction +} + +type LiquidityAdded { + id: ID! + poolId: BigInt! + shareAmount: BigInt! + tokenAmount: BigInt! + user: Trader! +} + +input LiquidityAdded_filter { + """ + Filter for the block changed event. + """ + _change_block: BlockChangedFilter + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + poolId: BigInt + poolId_gt: BigInt + poolId_gte: BigInt + poolId_in: [BigInt!] + poolId_lt: BigInt + poolId_lte: BigInt + poolId_not: BigInt + poolId_not_in: [BigInt!] + shareAmount: BigInt + shareAmount_gt: BigInt + shareAmount_gte: BigInt + shareAmount_in: [BigInt!] + shareAmount_lt: BigInt + shareAmount_lte: BigInt + shareAmount_not: BigInt + shareAmount_not_in: [BigInt!] + tokenAmount: BigInt + tokenAmount_gt: BigInt + tokenAmount_gte: BigInt + tokenAmount_in: [BigInt!] + tokenAmount_lt: BigInt + tokenAmount_lte: BigInt + tokenAmount_not: BigInt + tokenAmount_not_in: [BigInt!] + user: String + user_: Trader_filter + user_contains: String + user_contains_nocase: String + user_ends_with: String + user_ends_with_nocase: String + user_gt: String + user_gte: String + user_in: [String!] + user_lt: String + user_lte: String + user_not: String + user_not_contains: String + user_not_contains_nocase: String + user_not_ends_with: String + user_not_ends_with_nocase: String + user_not_in: [String!] + user_not_starts_with: String + user_not_starts_with_nocase: String + user_starts_with: String + user_starts_with_nocase: String +} + +enum LiquidityAdded_orderBy { + id + poolId + shareAmount + tokenAmount + user +} + +type LiquidityPool { + atomicYields( + first: Int = 100 + orderBy: AtomicYield_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: AtomicYield_filter + ): [AtomicYield!] + createdAtTx: Transaction! + distributeFees( + first: Int = 100 + orderBy: DistributeFee_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: DistributeFee_filter + ): [DistributeFee!] + fMaxTotalTraderFunds: BigInt! + fPnLparticipantWithdrawalMinAmountLimit: BigInt! + fPnLparticipantWithdrawalPercentageLimit: BigInt! + fPnLparticipantsCashCC: BigInt! + fRedemptionRate: BigInt! + funds( + first: Int = 100 + orderBy: Fund_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: Fund_filter + ): [Fund!] + iActivePerpetualCount: Int! + iPerpetualCount: Int! + iPnLparticipantWithdrawalPeriod: BigInt! + iPriceUpdateTimeSec: BigInt! + iTargetPoolSizeUpdateTime: BigInt! + id: ID! + isRunning: Boolean! + marginToken: Token! + participationFundLastUpdated: BigInt! + perpetuals( + first: Int = 100 + orderBy: Perpetual_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: Perpetual_filter + ): [Perpetual!] + shareToken: Token! + totalAmountDeposited: BigInt! + traderPools( + first: Int = 100 + orderBy: TraderPool_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: TraderPool_filter + ): [TraderPool!] + treasuryAddress: Bytes! + updatedAtTx: Transaction! +} + +type LiquidityPoolCreated { + fPnLparticipantWithdrawalMinAmountLimit: BigInt! + fPnLparticipantWithdrawalPercentageLimit: BigInt! + iPnLparticipantWithdrawalPeriod: BigInt! + iTargetPoolSizeUpdateTime: BigInt! + id: ID! + marginToken: Token! + poolId: Int! + shareToken: Token! + treasuryAddress: Bytes! +} + +input LiquidityPoolCreated_filter { + """ + Filter for the block changed event. + """ + _change_block: BlockChangedFilter + fPnLparticipantWithdrawalMinAmountLimit: BigInt + fPnLparticipantWithdrawalMinAmountLimit_gt: BigInt + fPnLparticipantWithdrawalMinAmountLimit_gte: BigInt + fPnLparticipantWithdrawalMinAmountLimit_in: [BigInt!] + fPnLparticipantWithdrawalMinAmountLimit_lt: BigInt + fPnLparticipantWithdrawalMinAmountLimit_lte: BigInt + fPnLparticipantWithdrawalMinAmountLimit_not: BigInt + fPnLparticipantWithdrawalMinAmountLimit_not_in: [BigInt!] + fPnLparticipantWithdrawalPercentageLimit: BigInt + fPnLparticipantWithdrawalPercentageLimit_gt: BigInt + fPnLparticipantWithdrawalPercentageLimit_gte: BigInt + fPnLparticipantWithdrawalPercentageLimit_in: [BigInt!] + fPnLparticipantWithdrawalPercentageLimit_lt: BigInt + fPnLparticipantWithdrawalPercentageLimit_lte: BigInt + fPnLparticipantWithdrawalPercentageLimit_not: BigInt + fPnLparticipantWithdrawalPercentageLimit_not_in: [BigInt!] + iPnLparticipantWithdrawalPeriod: BigInt + iPnLparticipantWithdrawalPeriod_gt: BigInt + iPnLparticipantWithdrawalPeriod_gte: BigInt + iPnLparticipantWithdrawalPeriod_in: [BigInt!] + iPnLparticipantWithdrawalPeriod_lt: BigInt + iPnLparticipantWithdrawalPeriod_lte: BigInt + iPnLparticipantWithdrawalPeriod_not: BigInt + iPnLparticipantWithdrawalPeriod_not_in: [BigInt!] + iTargetPoolSizeUpdateTime: BigInt + iTargetPoolSizeUpdateTime_gt: BigInt + iTargetPoolSizeUpdateTime_gte: BigInt + iTargetPoolSizeUpdateTime_in: [BigInt!] + iTargetPoolSizeUpdateTime_lt: BigInt + iTargetPoolSizeUpdateTime_lte: BigInt + iTargetPoolSizeUpdateTime_not: BigInt + iTargetPoolSizeUpdateTime_not_in: [BigInt!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + marginToken: String + marginToken_: Token_filter + marginToken_contains: String + marginToken_contains_nocase: String + marginToken_ends_with: String + marginToken_ends_with_nocase: String + marginToken_gt: String + marginToken_gte: String + marginToken_in: [String!] + marginToken_lt: String + marginToken_lte: String + marginToken_not: String + marginToken_not_contains: String + marginToken_not_contains_nocase: String + marginToken_not_ends_with: String + marginToken_not_ends_with_nocase: String + marginToken_not_in: [String!] + marginToken_not_starts_with: String + marginToken_not_starts_with_nocase: String + marginToken_starts_with: String + marginToken_starts_with_nocase: String + poolId: Int + poolId_gt: Int + poolId_gte: Int + poolId_in: [Int!] + poolId_lt: Int + poolId_lte: Int + poolId_not: Int + poolId_not_in: [Int!] + shareToken: String + shareToken_: Token_filter + shareToken_contains: String + shareToken_contains_nocase: String + shareToken_ends_with: String + shareToken_ends_with_nocase: String + shareToken_gt: String + shareToken_gte: String + shareToken_in: [String!] + shareToken_lt: String + shareToken_lte: String + shareToken_not: String + shareToken_not_contains: String + shareToken_not_contains_nocase: String + shareToken_not_ends_with: String + shareToken_not_ends_with_nocase: String + shareToken_not_in: [String!] + shareToken_not_starts_with: String + shareToken_not_starts_with_nocase: String + shareToken_starts_with: String + shareToken_starts_with_nocase: String + treasuryAddress: Bytes + treasuryAddress_contains: Bytes + treasuryAddress_in: [Bytes!] + treasuryAddress_not: Bytes + treasuryAddress_not_contains: Bytes + treasuryAddress_not_in: [Bytes!] +} + +enum LiquidityPoolCreated_orderBy { + fPnLparticipantWithdrawalMinAmountLimit + fPnLparticipantWithdrawalPercentageLimit + iPnLparticipantWithdrawalPeriod + iTargetPoolSizeUpdateTime + id + marginToken + poolId + shareToken + treasuryAddress +} + +input LiquidityPool_filter { + """ + Filter for the block changed event. + """ + _change_block: BlockChangedFilter + atomicYields_: AtomicYield_filter + createdAtTx: String + createdAtTx_: Transaction_filter + createdAtTx_contains: String + createdAtTx_contains_nocase: String + createdAtTx_ends_with: String + createdAtTx_ends_with_nocase: String + createdAtTx_gt: String + createdAtTx_gte: String + createdAtTx_in: [String!] + createdAtTx_lt: String + createdAtTx_lte: String + createdAtTx_not: String + createdAtTx_not_contains: String + createdAtTx_not_contains_nocase: String + createdAtTx_not_ends_with: String + createdAtTx_not_ends_with_nocase: String + createdAtTx_not_in: [String!] + createdAtTx_not_starts_with: String + createdAtTx_not_starts_with_nocase: String + createdAtTx_starts_with: String + createdAtTx_starts_with_nocase: String + distributeFees_: DistributeFee_filter + fMaxTotalTraderFunds: BigInt + fMaxTotalTraderFunds_gt: BigInt + fMaxTotalTraderFunds_gte: BigInt + fMaxTotalTraderFunds_in: [BigInt!] + fMaxTotalTraderFunds_lt: BigInt + fMaxTotalTraderFunds_lte: BigInt + fMaxTotalTraderFunds_not: BigInt + fMaxTotalTraderFunds_not_in: [BigInt!] + fPnLparticipantWithdrawalMinAmountLimit: BigInt + fPnLparticipantWithdrawalMinAmountLimit_gt: BigInt + fPnLparticipantWithdrawalMinAmountLimit_gte: BigInt + fPnLparticipantWithdrawalMinAmountLimit_in: [BigInt!] + fPnLparticipantWithdrawalMinAmountLimit_lt: BigInt + fPnLparticipantWithdrawalMinAmountLimit_lte: BigInt + fPnLparticipantWithdrawalMinAmountLimit_not: BigInt + fPnLparticipantWithdrawalMinAmountLimit_not_in: [BigInt!] + fPnLparticipantWithdrawalPercentageLimit: BigInt + fPnLparticipantWithdrawalPercentageLimit_gt: BigInt + fPnLparticipantWithdrawalPercentageLimit_gte: BigInt + fPnLparticipantWithdrawalPercentageLimit_in: [BigInt!] + fPnLparticipantWithdrawalPercentageLimit_lt: BigInt + fPnLparticipantWithdrawalPercentageLimit_lte: BigInt + fPnLparticipantWithdrawalPercentageLimit_not: BigInt + fPnLparticipantWithdrawalPercentageLimit_not_in: [BigInt!] + fPnLparticipantsCashCC: BigInt + fPnLparticipantsCashCC_gt: BigInt + fPnLparticipantsCashCC_gte: BigInt + fPnLparticipantsCashCC_in: [BigInt!] + fPnLparticipantsCashCC_lt: BigInt + fPnLparticipantsCashCC_lte: BigInt + fPnLparticipantsCashCC_not: BigInt + fPnLparticipantsCashCC_not_in: [BigInt!] + fRedemptionRate: BigInt + fRedemptionRate_gt: BigInt + fRedemptionRate_gte: BigInt + fRedemptionRate_in: [BigInt!] + fRedemptionRate_lt: BigInt + fRedemptionRate_lte: BigInt + fRedemptionRate_not: BigInt + fRedemptionRate_not_in: [BigInt!] + funds_: Fund_filter + iActivePerpetualCount: Int + iActivePerpetualCount_gt: Int + iActivePerpetualCount_gte: Int + iActivePerpetualCount_in: [Int!] + iActivePerpetualCount_lt: Int + iActivePerpetualCount_lte: Int + iActivePerpetualCount_not: Int + iActivePerpetualCount_not_in: [Int!] + iPerpetualCount: Int + iPerpetualCount_gt: Int + iPerpetualCount_gte: Int + iPerpetualCount_in: [Int!] + iPerpetualCount_lt: Int + iPerpetualCount_lte: Int + iPerpetualCount_not: Int + iPerpetualCount_not_in: [Int!] + iPnLparticipantWithdrawalPeriod: BigInt + iPnLparticipantWithdrawalPeriod_gt: BigInt + iPnLparticipantWithdrawalPeriod_gte: BigInt + iPnLparticipantWithdrawalPeriod_in: [BigInt!] + iPnLparticipantWithdrawalPeriod_lt: BigInt + iPnLparticipantWithdrawalPeriod_lte: BigInt + iPnLparticipantWithdrawalPeriod_not: BigInt + iPnLparticipantWithdrawalPeriod_not_in: [BigInt!] + iPriceUpdateTimeSec: BigInt + iPriceUpdateTimeSec_gt: BigInt + iPriceUpdateTimeSec_gte: BigInt + iPriceUpdateTimeSec_in: [BigInt!] + iPriceUpdateTimeSec_lt: BigInt + iPriceUpdateTimeSec_lte: BigInt + iPriceUpdateTimeSec_not: BigInt + iPriceUpdateTimeSec_not_in: [BigInt!] + iTargetPoolSizeUpdateTime: BigInt + iTargetPoolSizeUpdateTime_gt: BigInt + iTargetPoolSizeUpdateTime_gte: BigInt + iTargetPoolSizeUpdateTime_in: [BigInt!] + iTargetPoolSizeUpdateTime_lt: BigInt + iTargetPoolSizeUpdateTime_lte: BigInt + iTargetPoolSizeUpdateTime_not: BigInt + iTargetPoolSizeUpdateTime_not_in: [BigInt!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + isRunning: Boolean + isRunning_in: [Boolean!] + isRunning_not: Boolean + isRunning_not_in: [Boolean!] + marginToken: String + marginToken_: Token_filter + marginToken_contains: String + marginToken_contains_nocase: String + marginToken_ends_with: String + marginToken_ends_with_nocase: String + marginToken_gt: String + marginToken_gte: String + marginToken_in: [String!] + marginToken_lt: String + marginToken_lte: String + marginToken_not: String + marginToken_not_contains: String + marginToken_not_contains_nocase: String + marginToken_not_ends_with: String + marginToken_not_ends_with_nocase: String + marginToken_not_in: [String!] + marginToken_not_starts_with: String + marginToken_not_starts_with_nocase: String + marginToken_starts_with: String + marginToken_starts_with_nocase: String + participationFundLastUpdated: BigInt + participationFundLastUpdated_gt: BigInt + participationFundLastUpdated_gte: BigInt + participationFundLastUpdated_in: [BigInt!] + participationFundLastUpdated_lt: BigInt + participationFundLastUpdated_lte: BigInt + participationFundLastUpdated_not: BigInt + participationFundLastUpdated_not_in: [BigInt!] + perpetuals_: Perpetual_filter + shareToken: String + shareToken_: Token_filter + shareToken_contains: String + shareToken_contains_nocase: String + shareToken_ends_with: String + shareToken_ends_with_nocase: String + shareToken_gt: String + shareToken_gte: String + shareToken_in: [String!] + shareToken_lt: String + shareToken_lte: String + shareToken_not: String + shareToken_not_contains: String + shareToken_not_contains_nocase: String + shareToken_not_ends_with: String + shareToken_not_ends_with_nocase: String + shareToken_not_in: [String!] + shareToken_not_starts_with: String + shareToken_not_starts_with_nocase: String + shareToken_starts_with: String + shareToken_starts_with_nocase: String + totalAmountDeposited: BigInt + totalAmountDeposited_gt: BigInt + totalAmountDeposited_gte: BigInt + totalAmountDeposited_in: [BigInt!] + totalAmountDeposited_lt: BigInt + totalAmountDeposited_lte: BigInt + totalAmountDeposited_not: BigInt + totalAmountDeposited_not_in: [BigInt!] + traderPools_: TraderPool_filter + treasuryAddress: Bytes + treasuryAddress_contains: Bytes + treasuryAddress_in: [Bytes!] + treasuryAddress_not: Bytes + treasuryAddress_not_contains: Bytes + treasuryAddress_not_in: [Bytes!] + updatedAtTx: String + updatedAtTx_: Transaction_filter + updatedAtTx_contains: String + updatedAtTx_contains_nocase: String + updatedAtTx_ends_with: String + updatedAtTx_ends_with_nocase: String + updatedAtTx_gt: String + updatedAtTx_gte: String + updatedAtTx_in: [String!] + updatedAtTx_lt: String + updatedAtTx_lte: String + updatedAtTx_not: String + updatedAtTx_not_contains: String + updatedAtTx_not_contains_nocase: String + updatedAtTx_not_ends_with: String + updatedAtTx_not_ends_with_nocase: String + updatedAtTx_not_in: [String!] + updatedAtTx_not_starts_with: String + updatedAtTx_not_starts_with_nocase: String + updatedAtTx_starts_with: String + updatedAtTx_starts_with_nocase: String +} + +enum LiquidityPool_orderBy { + atomicYields + createdAtTx + distributeFees + fMaxTotalTraderFunds + fPnLparticipantWithdrawalMinAmountLimit + fPnLparticipantWithdrawalPercentageLimit + fPnLparticipantsCashCC + fRedemptionRate + funds + iActivePerpetualCount + iPerpetualCount + iPnLparticipantWithdrawalPeriod + iPriceUpdateTimeSec + iTargetPoolSizeUpdateTime + id + isRunning + marginToken + participationFundLastUpdated + perpetuals + shareToken + totalAmountDeposited + traderPools + treasuryAddress + updatedAtTx +} + +type LiquidityRemoved { + id: ID! + poolId: BigInt! + shareAmount: BigInt! + tokenAmount: BigInt! + user: Trader! +} + +input LiquidityRemoved_filter { + """ + Filter for the block changed event. + """ + _change_block: BlockChangedFilter + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + poolId: BigInt + poolId_gt: BigInt + poolId_gte: BigInt + poolId_in: [BigInt!] + poolId_lt: BigInt + poolId_lte: BigInt + poolId_not: BigInt + poolId_not_in: [BigInt!] + shareAmount: BigInt + shareAmount_gt: BigInt + shareAmount_gte: BigInt + shareAmount_in: [BigInt!] + shareAmount_lt: BigInt + shareAmount_lte: BigInt + shareAmount_not: BigInt + shareAmount_not_in: [BigInt!] + tokenAmount: BigInt + tokenAmount_gt: BigInt + tokenAmount_gte: BigInt + tokenAmount_in: [BigInt!] + tokenAmount_lt: BigInt + tokenAmount_lte: BigInt + tokenAmount_not: BigInt + tokenAmount_not_in: [BigInt!] + user: String + user_: Trader_filter + user_contains: String + user_contains_nocase: String + user_ends_with: String + user_ends_with_nocase: String + user_gt: String + user_gte: String + user_in: [String!] + user_lt: String + user_lte: String + user_not: String + user_not_contains: String + user_not_contains_nocase: String + user_not_ends_with: String + user_not_ends_with_nocase: String + user_not_in: [String!] + user_not_starts_with: String + user_not_starts_with_nocase: String + user_starts_with: String + user_starts_with_nocase: String +} + +enum LiquidityRemoved_orderBy { + id + poolId + shareAmount + tokenAmount + user +} + +""" +Defines the order direction, either ascending or descending +""" +enum OrderDirection { + asc + desc +} + +type OwnershipTransferred { + id: ID! + newOwner: Bytes! + previousOwner: Bytes! +} + +input OwnershipTransferred_filter { + """ + Filter for the block changed event. + """ + _change_block: BlockChangedFilter + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + newOwner: Bytes + newOwner_contains: Bytes + newOwner_in: [Bytes!] + newOwner_not: Bytes + newOwner_not_contains: Bytes + newOwner_not_in: [Bytes!] + previousOwner: Bytes + previousOwner_contains: Bytes + previousOwner_in: [Bytes!] + previousOwner_not: Bytes + previousOwner_not_contains: Bytes + previousOwner_not_in: [Bytes!] +} + +enum OwnershipTransferred_orderBy { + id + newOwner + previousOwner +} + +type Perpetual { + ammFund: Fund + createdAtTx: Transaction! + + "avarage long positions sizes for the amm over time\n" + currentAMMExposureEMALong: BigInt! + + "avarage short positions sizes for the amm over time\n" + currentAMMExposureEMAShort: BigInt! + + "avarage positions sizes over time\n" + currentTraderExposureEMA: BigInt! + distributeFees( + first: Int = 100 + orderBy: DistributeFee_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: DistributeFee_filter + ): [DistributeFee!] + eCollateralCurrency: Int! + fAMMFundCashCC: BigInt + fAMMMinSizeCC: BigInt! + fAMMTargetDDBaseline: BigInt! + fAMMTargetDDStress: BigInt! + fDFCoverNRate: BigInt! + + "Risk parameters for default fund / AMM pool\n" + fFundingRate: BigInt + + "Base parameters\n" + fFundingRateClamp: BigInt! + fInitialMarginRateAlpha: BigInt! + fInitialMarginRateCap: BigInt! + fLiquidationPenaltyRate: BigInt! + fLotSizeBC: BigInt! + fMaintenanceMarginRateAlpha: BigInt! + fMarginRateBeta: BigInt! + fMarkPriceEMALambda: BigInt! + fMaximalTradeSizeBumpUp: BigInt! + fMinimalAMMExposureEMA: BigInt! + fMinimalSpread: BigInt! + fMinimalSpreadInStress: BigInt! + fMinimalTraderExposureEMA: BigInt! + fPnLPartRate: BigInt! + fReferralRebateCC: BigInt! + fRho23: BigInt! + fSigma2: BigInt! + fSigma3: BigInt! + fSpotIndexPrice: BigInt + + "Risk parameters for underlying instruments\n" + fStressReturnS2Negative: BigInt! + fStressReturnS2Positive: BigInt! + fStressReturnS3Negative: BigInt! + fStressReturnS3Positive: BigInt! + fTreasuryFeeRate: BigInt! + id: ID! + lastTradedPrice: BigInt! + liquidates( + first: Int = 100 + orderBy: Liquidate_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: Liquidate_filter + ): [Liquidate!] + markIndexPricePremium: BigInt! + openInterestBC: BigInt! + oracleS2: SpotOracle! + oracleS3: SpotOracle + pool: LiquidityPool! + positions( + first: Int = 100 + orderBy: Position_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: Position_filter + ): [Position!] + positionsTotalCount: Int! + state: PerpetualState! + totalAmountDeposited: BigInt! + totalAmountLiquidatedBC: BigInt! + totalAmountSettled: BigInt! + totalTradingPnLCC: BigInt! + traderStates( + first: Int = 100 + orderBy: TraderState_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: TraderState_filter + ): [TraderState!] + trades( + first: Int = 100 + orderBy: Trade_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: Trade_filter + ): [Trade!] + tradesTotalCount: Int! + + "accumulated funding rate per unit of index since the begining of time\n" + unitAccumulativeFunding: BigInt! + updatedAtTx: Transaction! +} + +type PerpetualCreated { + eCollateralCurrency: BigInt! + id: ID! + perpetualId: Bytes! + poolId: Int! +} + +input PerpetualCreated_filter { + """ + Filter for the block changed event. + """ + _change_block: BlockChangedFilter + eCollateralCurrency: BigInt + eCollateralCurrency_gt: BigInt + eCollateralCurrency_gte: BigInt + eCollateralCurrency_in: [BigInt!] + eCollateralCurrency_lt: BigInt + eCollateralCurrency_lte: BigInt + eCollateralCurrency_not: BigInt + eCollateralCurrency_not_in: [BigInt!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + perpetualId: Bytes + perpetualId_contains: Bytes + perpetualId_in: [Bytes!] + perpetualId_not: Bytes + perpetualId_not_contains: Bytes + perpetualId_not_in: [Bytes!] + poolId: Int + poolId_gt: Int + poolId_gte: Int + poolId_in: [Int!] + poolId_lt: Int + poolId_lte: Int + poolId_not: Int + poolId_not_in: [Int!] +} + +enum PerpetualCreated_orderBy { + eCollateralCurrency + id + perpetualId + poolId +} + +type PerpetualLimitOrderBookDeployed { + id: ID! + limitOrderBookAddress: Bytes! + perpManagerAddress: Bytes! + perpetualId: Bytes! +} + +input PerpetualLimitOrderBookDeployed_filter { + """ + Filter for the block changed event. + """ + _change_block: BlockChangedFilter + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + limitOrderBookAddress: Bytes + limitOrderBookAddress_contains: Bytes + limitOrderBookAddress_in: [Bytes!] + limitOrderBookAddress_not: Bytes + limitOrderBookAddress_not_contains: Bytes + limitOrderBookAddress_not_in: [Bytes!] + perpManagerAddress: Bytes + perpManagerAddress_contains: Bytes + perpManagerAddress_in: [Bytes!] + perpManagerAddress_not: Bytes + perpManagerAddress_not_contains: Bytes + perpManagerAddress_not_in: [Bytes!] + perpetualId: Bytes + perpetualId_contains: Bytes + perpetualId_in: [Bytes!] + perpetualId_not: Bytes + perpetualId_not_contains: Bytes + perpetualId_not_in: [Bytes!] +} + +enum PerpetualLimitOrderBookDeployed_orderBy { + id + limitOrderBookAddress + perpManagerAddress + perpetualId +} + +type PerpetualLimitOrderCancelled { + id: ID! + orderHash: Bytes! +} + +input PerpetualLimitOrderCancelled_filter { + """ + Filter for the block changed event. + """ + _change_block: BlockChangedFilter + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + orderHash: Bytes + orderHash_contains: Bytes + orderHash_in: [Bytes!] + orderHash_not: Bytes + orderHash_not_contains: Bytes + orderHash_not_in: [Bytes!] +} + +enum PerpetualLimitOrderCancelled_orderBy { + id + orderHash +} + +type PerpetualLimitOrderCreated { + createdTimestamp: BigInt! + deadline: BigInt! + digest: Bytes! + flags: BigInt! + id: ID! + leverage: BigInt! + limitPrice: BigInt! + perpetualId: Bytes! + referrerAddr: Bytes! + tradeAmount: BigInt! + trader: Bytes! + triggerPrice: BigInt! +} + +input PerpetualLimitOrderCreated_filter { + """ + Filter for the block changed event. + """ + _change_block: BlockChangedFilter + createdTimestamp: BigInt + createdTimestamp_gt: BigInt + createdTimestamp_gte: BigInt + createdTimestamp_in: [BigInt!] + createdTimestamp_lt: BigInt + createdTimestamp_lte: BigInt + createdTimestamp_not: BigInt + createdTimestamp_not_in: [BigInt!] + deadline: BigInt + deadline_gt: BigInt + deadline_gte: BigInt + deadline_in: [BigInt!] + deadline_lt: BigInt + deadline_lte: BigInt + deadline_not: BigInt + deadline_not_in: [BigInt!] + digest: Bytes + digest_contains: Bytes + digest_in: [Bytes!] + digest_not: Bytes + digest_not_contains: Bytes + digest_not_in: [Bytes!] + flags: BigInt + flags_gt: BigInt + flags_gte: BigInt + flags_in: [BigInt!] + flags_lt: BigInt + flags_lte: BigInt + flags_not: BigInt + flags_not_in: [BigInt!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + leverage: BigInt + leverage_gt: BigInt + leverage_gte: BigInt + leverage_in: [BigInt!] + leverage_lt: BigInt + leverage_lte: BigInt + leverage_not: BigInt + leverage_not_in: [BigInt!] + limitPrice: BigInt + limitPrice_gt: BigInt + limitPrice_gte: BigInt + limitPrice_in: [BigInt!] + limitPrice_lt: BigInt + limitPrice_lte: BigInt + limitPrice_not: BigInt + limitPrice_not_in: [BigInt!] + perpetualId: Bytes + perpetualId_contains: Bytes + perpetualId_in: [Bytes!] + perpetualId_not: Bytes + perpetualId_not_contains: Bytes + perpetualId_not_in: [Bytes!] + referrerAddr: Bytes + referrerAddr_contains: Bytes + referrerAddr_in: [Bytes!] + referrerAddr_not: Bytes + referrerAddr_not_contains: Bytes + referrerAddr_not_in: [Bytes!] + tradeAmount: BigInt + tradeAmount_gt: BigInt + tradeAmount_gte: BigInt + tradeAmount_in: [BigInt!] + tradeAmount_lt: BigInt + tradeAmount_lte: BigInt + tradeAmount_not: BigInt + tradeAmount_not_in: [BigInt!] + trader: Bytes + trader_contains: Bytes + trader_in: [Bytes!] + trader_not: Bytes + trader_not_contains: Bytes + trader_not_in: [Bytes!] + triggerPrice: BigInt + triggerPrice_gt: BigInt + triggerPrice_gte: BigInt + triggerPrice_in: [BigInt!] + triggerPrice_lt: BigInt + triggerPrice_lte: BigInt + triggerPrice_not: BigInt + triggerPrice_not_in: [BigInt!] +} + +enum PerpetualLimitOrderCreated_orderBy { + createdTimestamp + deadline + digest + flags + id + leverage + limitPrice + perpetualId + referrerAddr + tradeAmount + trader + triggerPrice +} + +enum PerpetualState { + Cleared + Clearing + Emergency + Normal +} + +input Perpetual_filter { + """ + Filter for the block changed event. + """ + _change_block: BlockChangedFilter + ammFund: String + ammFund_: Fund_filter + ammFund_contains: String + ammFund_contains_nocase: String + ammFund_ends_with: String + ammFund_ends_with_nocase: String + ammFund_gt: String + ammFund_gte: String + ammFund_in: [String!] + ammFund_lt: String + ammFund_lte: String + ammFund_not: String + ammFund_not_contains: String + ammFund_not_contains_nocase: String + ammFund_not_ends_with: String + ammFund_not_ends_with_nocase: String + ammFund_not_in: [String!] + ammFund_not_starts_with: String + ammFund_not_starts_with_nocase: String + ammFund_starts_with: String + ammFund_starts_with_nocase: String + createdAtTx: String + createdAtTx_: Transaction_filter + createdAtTx_contains: String + createdAtTx_contains_nocase: String + createdAtTx_ends_with: String + createdAtTx_ends_with_nocase: String + createdAtTx_gt: String + createdAtTx_gte: String + createdAtTx_in: [String!] + createdAtTx_lt: String + createdAtTx_lte: String + createdAtTx_not: String + createdAtTx_not_contains: String + createdAtTx_not_contains_nocase: String + createdAtTx_not_ends_with: String + createdAtTx_not_ends_with_nocase: String + createdAtTx_not_in: [String!] + createdAtTx_not_starts_with: String + createdAtTx_not_starts_with_nocase: String + createdAtTx_starts_with: String + createdAtTx_starts_with_nocase: String + currentAMMExposureEMALong: BigInt + currentAMMExposureEMALong_gt: BigInt + currentAMMExposureEMALong_gte: BigInt + currentAMMExposureEMALong_in: [BigInt!] + currentAMMExposureEMALong_lt: BigInt + currentAMMExposureEMALong_lte: BigInt + currentAMMExposureEMALong_not: BigInt + currentAMMExposureEMALong_not_in: [BigInt!] + currentAMMExposureEMAShort: BigInt + currentAMMExposureEMAShort_gt: BigInt + currentAMMExposureEMAShort_gte: BigInt + currentAMMExposureEMAShort_in: [BigInt!] + currentAMMExposureEMAShort_lt: BigInt + currentAMMExposureEMAShort_lte: BigInt + currentAMMExposureEMAShort_not: BigInt + currentAMMExposureEMAShort_not_in: [BigInt!] + currentTraderExposureEMA: BigInt + currentTraderExposureEMA_gt: BigInt + currentTraderExposureEMA_gte: BigInt + currentTraderExposureEMA_in: [BigInt!] + currentTraderExposureEMA_lt: BigInt + currentTraderExposureEMA_lte: BigInt + currentTraderExposureEMA_not: BigInt + currentTraderExposureEMA_not_in: [BigInt!] + distributeFees_: DistributeFee_filter + eCollateralCurrency: Int + eCollateralCurrency_gt: Int + eCollateralCurrency_gte: Int + eCollateralCurrency_in: [Int!] + eCollateralCurrency_lt: Int + eCollateralCurrency_lte: Int + eCollateralCurrency_not: Int + eCollateralCurrency_not_in: [Int!] + fAMMFundCashCC: BigInt + fAMMFundCashCC_gt: BigInt + fAMMFundCashCC_gte: BigInt + fAMMFundCashCC_in: [BigInt!] + fAMMFundCashCC_lt: BigInt + fAMMFundCashCC_lte: BigInt + fAMMFundCashCC_not: BigInt + fAMMFundCashCC_not_in: [BigInt!] + fAMMMinSizeCC: BigInt + fAMMMinSizeCC_gt: BigInt + fAMMMinSizeCC_gte: BigInt + fAMMMinSizeCC_in: [BigInt!] + fAMMMinSizeCC_lt: BigInt + fAMMMinSizeCC_lte: BigInt + fAMMMinSizeCC_not: BigInt + fAMMMinSizeCC_not_in: [BigInt!] + fAMMTargetDDBaseline: BigInt + fAMMTargetDDBaseline_gt: BigInt + fAMMTargetDDBaseline_gte: BigInt + fAMMTargetDDBaseline_in: [BigInt!] + fAMMTargetDDBaseline_lt: BigInt + fAMMTargetDDBaseline_lte: BigInt + fAMMTargetDDBaseline_not: BigInt + fAMMTargetDDBaseline_not_in: [BigInt!] + fAMMTargetDDStress: BigInt + fAMMTargetDDStress_gt: BigInt + fAMMTargetDDStress_gte: BigInt + fAMMTargetDDStress_in: [BigInt!] + fAMMTargetDDStress_lt: BigInt + fAMMTargetDDStress_lte: BigInt + fAMMTargetDDStress_not: BigInt + fAMMTargetDDStress_not_in: [BigInt!] + fDFCoverNRate: BigInt + fDFCoverNRate_gt: BigInt + fDFCoverNRate_gte: BigInt + fDFCoverNRate_in: [BigInt!] + fDFCoverNRate_lt: BigInt + fDFCoverNRate_lte: BigInt + fDFCoverNRate_not: BigInt + fDFCoverNRate_not_in: [BigInt!] + fFundingRate: BigInt + fFundingRateClamp: BigInt + fFundingRateClamp_gt: BigInt + fFundingRateClamp_gte: BigInt + fFundingRateClamp_in: [BigInt!] + fFundingRateClamp_lt: BigInt + fFundingRateClamp_lte: BigInt + fFundingRateClamp_not: BigInt + fFundingRateClamp_not_in: [BigInt!] + fFundingRate_gt: BigInt + fFundingRate_gte: BigInt + fFundingRate_in: [BigInt!] + fFundingRate_lt: BigInt + fFundingRate_lte: BigInt + fFundingRate_not: BigInt + fFundingRate_not_in: [BigInt!] + fInitialMarginRateAlpha: BigInt + fInitialMarginRateAlpha_gt: BigInt + fInitialMarginRateAlpha_gte: BigInt + fInitialMarginRateAlpha_in: [BigInt!] + fInitialMarginRateAlpha_lt: BigInt + fInitialMarginRateAlpha_lte: BigInt + fInitialMarginRateAlpha_not: BigInt + fInitialMarginRateAlpha_not_in: [BigInt!] + fInitialMarginRateCap: BigInt + fInitialMarginRateCap_gt: BigInt + fInitialMarginRateCap_gte: BigInt + fInitialMarginRateCap_in: [BigInt!] + fInitialMarginRateCap_lt: BigInt + fInitialMarginRateCap_lte: BigInt + fInitialMarginRateCap_not: BigInt + fInitialMarginRateCap_not_in: [BigInt!] + fLiquidationPenaltyRate: BigInt + fLiquidationPenaltyRate_gt: BigInt + fLiquidationPenaltyRate_gte: BigInt + fLiquidationPenaltyRate_in: [BigInt!] + fLiquidationPenaltyRate_lt: BigInt + fLiquidationPenaltyRate_lte: BigInt + fLiquidationPenaltyRate_not: BigInt + fLiquidationPenaltyRate_not_in: [BigInt!] + fLotSizeBC: BigInt + fLotSizeBC_gt: BigInt + fLotSizeBC_gte: BigInt + fLotSizeBC_in: [BigInt!] + fLotSizeBC_lt: BigInt + fLotSizeBC_lte: BigInt + fLotSizeBC_not: BigInt + fLotSizeBC_not_in: [BigInt!] + fMaintenanceMarginRateAlpha: BigInt + fMaintenanceMarginRateAlpha_gt: BigInt + fMaintenanceMarginRateAlpha_gte: BigInt + fMaintenanceMarginRateAlpha_in: [BigInt!] + fMaintenanceMarginRateAlpha_lt: BigInt + fMaintenanceMarginRateAlpha_lte: BigInt + fMaintenanceMarginRateAlpha_not: BigInt + fMaintenanceMarginRateAlpha_not_in: [BigInt!] + fMarginRateBeta: BigInt + fMarginRateBeta_gt: BigInt + fMarginRateBeta_gte: BigInt + fMarginRateBeta_in: [BigInt!] + fMarginRateBeta_lt: BigInt + fMarginRateBeta_lte: BigInt + fMarginRateBeta_not: BigInt + fMarginRateBeta_not_in: [BigInt!] + fMarkPriceEMALambda: BigInt + fMarkPriceEMALambda_gt: BigInt + fMarkPriceEMALambda_gte: BigInt + fMarkPriceEMALambda_in: [BigInt!] + fMarkPriceEMALambda_lt: BigInt + fMarkPriceEMALambda_lte: BigInt + fMarkPriceEMALambda_not: BigInt + fMarkPriceEMALambda_not_in: [BigInt!] + fMaximalTradeSizeBumpUp: BigInt + fMaximalTradeSizeBumpUp_gt: BigInt + fMaximalTradeSizeBumpUp_gte: BigInt + fMaximalTradeSizeBumpUp_in: [BigInt!] + fMaximalTradeSizeBumpUp_lt: BigInt + fMaximalTradeSizeBumpUp_lte: BigInt + fMaximalTradeSizeBumpUp_not: BigInt + fMaximalTradeSizeBumpUp_not_in: [BigInt!] + fMinimalAMMExposureEMA: BigInt + fMinimalAMMExposureEMA_gt: BigInt + fMinimalAMMExposureEMA_gte: BigInt + fMinimalAMMExposureEMA_in: [BigInt!] + fMinimalAMMExposureEMA_lt: BigInt + fMinimalAMMExposureEMA_lte: BigInt + fMinimalAMMExposureEMA_not: BigInt + fMinimalAMMExposureEMA_not_in: [BigInt!] + fMinimalSpread: BigInt + fMinimalSpreadInStress: BigInt + fMinimalSpreadInStress_gt: BigInt + fMinimalSpreadInStress_gte: BigInt + fMinimalSpreadInStress_in: [BigInt!] + fMinimalSpreadInStress_lt: BigInt + fMinimalSpreadInStress_lte: BigInt + fMinimalSpreadInStress_not: BigInt + fMinimalSpreadInStress_not_in: [BigInt!] + fMinimalSpread_gt: BigInt + fMinimalSpread_gte: BigInt + fMinimalSpread_in: [BigInt!] + fMinimalSpread_lt: BigInt + fMinimalSpread_lte: BigInt + fMinimalSpread_not: BigInt + fMinimalSpread_not_in: [BigInt!] + fMinimalTraderExposureEMA: BigInt + fMinimalTraderExposureEMA_gt: BigInt + fMinimalTraderExposureEMA_gte: BigInt + fMinimalTraderExposureEMA_in: [BigInt!] + fMinimalTraderExposureEMA_lt: BigInt + fMinimalTraderExposureEMA_lte: BigInt + fMinimalTraderExposureEMA_not: BigInt + fMinimalTraderExposureEMA_not_in: [BigInt!] + fPnLPartRate: BigInt + fPnLPartRate_gt: BigInt + fPnLPartRate_gte: BigInt + fPnLPartRate_in: [BigInt!] + fPnLPartRate_lt: BigInt + fPnLPartRate_lte: BigInt + fPnLPartRate_not: BigInt + fPnLPartRate_not_in: [BigInt!] + fReferralRebateCC: BigInt + fReferralRebateCC_gt: BigInt + fReferralRebateCC_gte: BigInt + fReferralRebateCC_in: [BigInt!] + fReferralRebateCC_lt: BigInt + fReferralRebateCC_lte: BigInt + fReferralRebateCC_not: BigInt + fReferralRebateCC_not_in: [BigInt!] + fRho23: BigInt + fRho23_gt: BigInt + fRho23_gte: BigInt + fRho23_in: [BigInt!] + fRho23_lt: BigInt + fRho23_lte: BigInt + fRho23_not: BigInt + fRho23_not_in: [BigInt!] + fSigma2: BigInt + fSigma2_gt: BigInt + fSigma2_gte: BigInt + fSigma2_in: [BigInt!] + fSigma2_lt: BigInt + fSigma2_lte: BigInt + fSigma2_not: BigInt + fSigma2_not_in: [BigInt!] + fSigma3: BigInt + fSigma3_gt: BigInt + fSigma3_gte: BigInt + fSigma3_in: [BigInt!] + fSigma3_lt: BigInt + fSigma3_lte: BigInt + fSigma3_not: BigInt + fSigma3_not_in: [BigInt!] + fSpotIndexPrice: BigInt + fSpotIndexPrice_gt: BigInt + fSpotIndexPrice_gte: BigInt + fSpotIndexPrice_in: [BigInt!] + fSpotIndexPrice_lt: BigInt + fSpotIndexPrice_lte: BigInt + fSpotIndexPrice_not: BigInt + fSpotIndexPrice_not_in: [BigInt!] + fStressReturnS2Negative: BigInt + fStressReturnS2Negative_gt: BigInt + fStressReturnS2Negative_gte: BigInt + fStressReturnS2Negative_in: [BigInt!] + fStressReturnS2Negative_lt: BigInt + fStressReturnS2Negative_lte: BigInt + fStressReturnS2Negative_not: BigInt + fStressReturnS2Negative_not_in: [BigInt!] + fStressReturnS2Positive: BigInt + fStressReturnS2Positive_gt: BigInt + fStressReturnS2Positive_gte: BigInt + fStressReturnS2Positive_in: [BigInt!] + fStressReturnS2Positive_lt: BigInt + fStressReturnS2Positive_lte: BigInt + fStressReturnS2Positive_not: BigInt + fStressReturnS2Positive_not_in: [BigInt!] + fStressReturnS3Negative: BigInt + fStressReturnS3Negative_gt: BigInt + fStressReturnS3Negative_gte: BigInt + fStressReturnS3Negative_in: [BigInt!] + fStressReturnS3Negative_lt: BigInt + fStressReturnS3Negative_lte: BigInt + fStressReturnS3Negative_not: BigInt + fStressReturnS3Negative_not_in: [BigInt!] + fStressReturnS3Positive: BigInt + fStressReturnS3Positive_gt: BigInt + fStressReturnS3Positive_gte: BigInt + fStressReturnS3Positive_in: [BigInt!] + fStressReturnS3Positive_lt: BigInt + fStressReturnS3Positive_lte: BigInt + fStressReturnS3Positive_not: BigInt + fStressReturnS3Positive_not_in: [BigInt!] + fTreasuryFeeRate: BigInt + fTreasuryFeeRate_gt: BigInt + fTreasuryFeeRate_gte: BigInt + fTreasuryFeeRate_in: [BigInt!] + fTreasuryFeeRate_lt: BigInt + fTreasuryFeeRate_lte: BigInt + fTreasuryFeeRate_not: BigInt + fTreasuryFeeRate_not_in: [BigInt!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + lastTradedPrice: BigInt + lastTradedPrice_gt: BigInt + lastTradedPrice_gte: BigInt + lastTradedPrice_in: [BigInt!] + lastTradedPrice_lt: BigInt + lastTradedPrice_lte: BigInt + lastTradedPrice_not: BigInt + lastTradedPrice_not_in: [BigInt!] + liquidates_: Liquidate_filter + markIndexPricePremium: BigInt + markIndexPricePremium_gt: BigInt + markIndexPricePremium_gte: BigInt + markIndexPricePremium_in: [BigInt!] + markIndexPricePremium_lt: BigInt + markIndexPricePremium_lte: BigInt + markIndexPricePremium_not: BigInt + markIndexPricePremium_not_in: [BigInt!] + openInterestBC: BigInt + openInterestBC_gt: BigInt + openInterestBC_gte: BigInt + openInterestBC_in: [BigInt!] + openInterestBC_lt: BigInt + openInterestBC_lte: BigInt + openInterestBC_not: BigInt + openInterestBC_not_in: [BigInt!] + oracleS2: String + oracleS2_: SpotOracle_filter + oracleS2_contains: String + oracleS2_contains_nocase: String + oracleS2_ends_with: String + oracleS2_ends_with_nocase: String + oracleS2_gt: String + oracleS2_gte: String + oracleS2_in: [String!] + oracleS2_lt: String + oracleS2_lte: String + oracleS2_not: String + oracleS2_not_contains: String + oracleS2_not_contains_nocase: String + oracleS2_not_ends_with: String + oracleS2_not_ends_with_nocase: String + oracleS2_not_in: [String!] + oracleS2_not_starts_with: String + oracleS2_not_starts_with_nocase: String + oracleS2_starts_with: String + oracleS2_starts_with_nocase: String + oracleS3: String + oracleS3_: SpotOracle_filter + oracleS3_contains: String + oracleS3_contains_nocase: String + oracleS3_ends_with: String + oracleS3_ends_with_nocase: String + oracleS3_gt: String + oracleS3_gte: String + oracleS3_in: [String!] + oracleS3_lt: String + oracleS3_lte: String + oracleS3_not: String + oracleS3_not_contains: String + oracleS3_not_contains_nocase: String + oracleS3_not_ends_with: String + oracleS3_not_ends_with_nocase: String + oracleS3_not_in: [String!] + oracleS3_not_starts_with: String + oracleS3_not_starts_with_nocase: String + oracleS3_starts_with: String + oracleS3_starts_with_nocase: String + pool: String + pool_: LiquidityPool_filter + pool_contains: String + pool_contains_nocase: String + pool_ends_with: String + pool_ends_with_nocase: String + pool_gt: String + pool_gte: String + pool_in: [String!] + pool_lt: String + pool_lte: String + pool_not: String + pool_not_contains: String + pool_not_contains_nocase: String + pool_not_ends_with: String + pool_not_ends_with_nocase: String + pool_not_in: [String!] + pool_not_starts_with: String + pool_not_starts_with_nocase: String + pool_starts_with: String + pool_starts_with_nocase: String + positionsTotalCount: Int + positionsTotalCount_gt: Int + positionsTotalCount_gte: Int + positionsTotalCount_in: [Int!] + positionsTotalCount_lt: Int + positionsTotalCount_lte: Int + positionsTotalCount_not: Int + positionsTotalCount_not_in: [Int!] + positions_: Position_filter + state: PerpetualState + state_in: [PerpetualState!] + state_not: PerpetualState + state_not_in: [PerpetualState!] + totalAmountDeposited: BigInt + totalAmountDeposited_gt: BigInt + totalAmountDeposited_gte: BigInt + totalAmountDeposited_in: [BigInt!] + totalAmountDeposited_lt: BigInt + totalAmountDeposited_lte: BigInt + totalAmountDeposited_not: BigInt + totalAmountDeposited_not_in: [BigInt!] + totalAmountLiquidatedBC: BigInt + totalAmountLiquidatedBC_gt: BigInt + totalAmountLiquidatedBC_gte: BigInt + totalAmountLiquidatedBC_in: [BigInt!] + totalAmountLiquidatedBC_lt: BigInt + totalAmountLiquidatedBC_lte: BigInt + totalAmountLiquidatedBC_not: BigInt + totalAmountLiquidatedBC_not_in: [BigInt!] + totalAmountSettled: BigInt + totalAmountSettled_gt: BigInt + totalAmountSettled_gte: BigInt + totalAmountSettled_in: [BigInt!] + totalAmountSettled_lt: BigInt + totalAmountSettled_lte: BigInt + totalAmountSettled_not: BigInt + totalAmountSettled_not_in: [BigInt!] + totalTradingPnLCC: BigInt + totalTradingPnLCC_gt: BigInt + totalTradingPnLCC_gte: BigInt + totalTradingPnLCC_in: [BigInt!] + totalTradingPnLCC_lt: BigInt + totalTradingPnLCC_lte: BigInt + totalTradingPnLCC_not: BigInt + totalTradingPnLCC_not_in: [BigInt!] + traderStates_: TraderState_filter + tradesTotalCount: Int + tradesTotalCount_gt: Int + tradesTotalCount_gte: Int + tradesTotalCount_in: [Int!] + tradesTotalCount_lt: Int + tradesTotalCount_lte: Int + tradesTotalCount_not: Int + tradesTotalCount_not_in: [Int!] + trades_: Trade_filter + unitAccumulativeFunding: BigInt + unitAccumulativeFunding_gt: BigInt + unitAccumulativeFunding_gte: BigInt + unitAccumulativeFunding_in: [BigInt!] + unitAccumulativeFunding_lt: BigInt + unitAccumulativeFunding_lte: BigInt + unitAccumulativeFunding_not: BigInt + unitAccumulativeFunding_not_in: [BigInt!] + updatedAtTx: String + updatedAtTx_: Transaction_filter + updatedAtTx_contains: String + updatedAtTx_contains_nocase: String + updatedAtTx_ends_with: String + updatedAtTx_ends_with_nocase: String + updatedAtTx_gt: String + updatedAtTx_gte: String + updatedAtTx_in: [String!] + updatedAtTx_lt: String + updatedAtTx_lte: String + updatedAtTx_not: String + updatedAtTx_not_contains: String + updatedAtTx_not_contains_nocase: String + updatedAtTx_not_ends_with: String + updatedAtTx_not_ends_with_nocase: String + updatedAtTx_not_in: [String!] + updatedAtTx_not_starts_with: String + updatedAtTx_not_starts_with_nocase: String + updatedAtTx_starts_with: String + updatedAtTx_starts_with_nocase: String +} + +enum Perpetual_orderBy { + ammFund + createdAtTx + currentAMMExposureEMALong + currentAMMExposureEMAShort + currentTraderExposureEMA + distributeFees + eCollateralCurrency + fAMMFundCashCC + fAMMMinSizeCC + fAMMTargetDDBaseline + fAMMTargetDDStress + fDFCoverNRate + fFundingRate + fFundingRateClamp + fInitialMarginRateAlpha + fInitialMarginRateCap + fLiquidationPenaltyRate + fLotSizeBC + fMaintenanceMarginRateAlpha + fMarginRateBeta + fMarkPriceEMALambda + fMaximalTradeSizeBumpUp + fMinimalAMMExposureEMA + fMinimalSpread + fMinimalSpreadInStress + fMinimalTraderExposureEMA + fPnLPartRate + fReferralRebateCC + fRho23 + fSigma2 + fSigma3 + fSpotIndexPrice + fStressReturnS2Negative + fStressReturnS2Positive + fStressReturnS3Negative + fStressReturnS3Positive + fTreasuryFeeRate + id + lastTradedPrice + liquidates + markIndexPricePremium + openInterestBC + oracleS2 + oracleS3 + pool + positions + positionsTotalCount + state + totalAmountDeposited + totalAmountLiquidatedBC + totalAmountSettled + totalTradingPnLCC + traderStates + trades + tradesTotalCount + unitAccumulativeFunding + updatedAtTx +} + +type Position { + currentPositionSizeBC: BigInt! + endDate: BigInt + highestSizeBC: BigInt! + id: ID! + isClosed: Boolean! + lastChanged: BigInt! + liquidations( + first: Int = 100 + orderBy: Liquidate_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: Liquidate_filter + ): [Liquidate!] + lockedInValueQC: BigInt! + lowestSizeBC: BigInt! + perpetual: Perpetual! + realizedPnLs( + first: Int = 100 + orderBy: RealizedPnL_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: RealizedPnL_filter + ): [RealizedPnL!] + startDate: BigInt! + startPositionSizeBC: BigInt! + totalAmountLiquidatedBC: BigInt! + totalPnLCC: BigInt! + trader: Trader! + traderState: TraderState! + trades( + first: Int = 100 + orderBy: Trade_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: Trade_filter + ): [Trade!] + tradesTotalCount: Int! +} + +input Position_filter { + """ + Filter for the block changed event. + """ + _change_block: BlockChangedFilter + currentPositionSizeBC: BigInt + currentPositionSizeBC_gt: BigInt + currentPositionSizeBC_gte: BigInt + currentPositionSizeBC_in: [BigInt!] + currentPositionSizeBC_lt: BigInt + currentPositionSizeBC_lte: BigInt + currentPositionSizeBC_not: BigInt + currentPositionSizeBC_not_in: [BigInt!] + endDate: BigInt + endDate_gt: BigInt + endDate_gte: BigInt + endDate_in: [BigInt!] + endDate_lt: BigInt + endDate_lte: BigInt + endDate_not: BigInt + endDate_not_in: [BigInt!] + highestSizeBC: BigInt + highestSizeBC_gt: BigInt + highestSizeBC_gte: BigInt + highestSizeBC_in: [BigInt!] + highestSizeBC_lt: BigInt + highestSizeBC_lte: BigInt + highestSizeBC_not: BigInt + highestSizeBC_not_in: [BigInt!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + isClosed: Boolean + isClosed_in: [Boolean!] + isClosed_not: Boolean + isClosed_not_in: [Boolean!] + lastChanged: BigInt + lastChanged_gt: BigInt + lastChanged_gte: BigInt + lastChanged_in: [BigInt!] + lastChanged_lt: BigInt + lastChanged_lte: BigInt + lastChanged_not: BigInt + lastChanged_not_in: [BigInt!] + liquidations_: Liquidate_filter + lockedInValueQC: BigInt + lockedInValueQC_gt: BigInt + lockedInValueQC_gte: BigInt + lockedInValueQC_in: [BigInt!] + lockedInValueQC_lt: BigInt + lockedInValueQC_lte: BigInt + lockedInValueQC_not: BigInt + lockedInValueQC_not_in: [BigInt!] + lowestSizeBC: BigInt + lowestSizeBC_gt: BigInt + lowestSizeBC_gte: BigInt + lowestSizeBC_in: [BigInt!] + lowestSizeBC_lt: BigInt + lowestSizeBC_lte: BigInt + lowestSizeBC_not: BigInt + lowestSizeBC_not_in: [BigInt!] + perpetual: String + perpetual_: Perpetual_filter + perpetual_contains: String + perpetual_contains_nocase: String + perpetual_ends_with: String + perpetual_ends_with_nocase: String + perpetual_gt: String + perpetual_gte: String + perpetual_in: [String!] + perpetual_lt: String + perpetual_lte: String + perpetual_not: String + perpetual_not_contains: String + perpetual_not_contains_nocase: String + perpetual_not_ends_with: String + perpetual_not_ends_with_nocase: String + perpetual_not_in: [String!] + perpetual_not_starts_with: String + perpetual_not_starts_with_nocase: String + perpetual_starts_with: String + perpetual_starts_with_nocase: String + realizedPnLs_: RealizedPnL_filter + startDate: BigInt + startDate_gt: BigInt + startDate_gte: BigInt + startDate_in: [BigInt!] + startDate_lt: BigInt + startDate_lte: BigInt + startDate_not: BigInt + startDate_not_in: [BigInt!] + startPositionSizeBC: BigInt + startPositionSizeBC_gt: BigInt + startPositionSizeBC_gte: BigInt + startPositionSizeBC_in: [BigInt!] + startPositionSizeBC_lt: BigInt + startPositionSizeBC_lte: BigInt + startPositionSizeBC_not: BigInt + startPositionSizeBC_not_in: [BigInt!] + totalAmountLiquidatedBC: BigInt + totalAmountLiquidatedBC_gt: BigInt + totalAmountLiquidatedBC_gte: BigInt + totalAmountLiquidatedBC_in: [BigInt!] + totalAmountLiquidatedBC_lt: BigInt + totalAmountLiquidatedBC_lte: BigInt + totalAmountLiquidatedBC_not: BigInt + totalAmountLiquidatedBC_not_in: [BigInt!] + totalPnLCC: BigInt + totalPnLCC_gt: BigInt + totalPnLCC_gte: BigInt + totalPnLCC_in: [BigInt!] + totalPnLCC_lt: BigInt + totalPnLCC_lte: BigInt + totalPnLCC_not: BigInt + totalPnLCC_not_in: [BigInt!] + trader: String + traderState: String + traderState_: TraderState_filter + traderState_contains: String + traderState_contains_nocase: String + traderState_ends_with: String + traderState_ends_with_nocase: String + traderState_gt: String + traderState_gte: String + traderState_in: [String!] + traderState_lt: String + traderState_lte: String + traderState_not: String + traderState_not_contains: String + traderState_not_contains_nocase: String + traderState_not_ends_with: String + traderState_not_ends_with_nocase: String + traderState_not_in: [String!] + traderState_not_starts_with: String + traderState_not_starts_with_nocase: String + traderState_starts_with: String + traderState_starts_with_nocase: String + trader_: Trader_filter + trader_contains: String + trader_contains_nocase: String + trader_ends_with: String + trader_ends_with_nocase: String + trader_gt: String + trader_gte: String + trader_in: [String!] + trader_lt: String + trader_lte: String + trader_not: String + trader_not_contains: String + trader_not_contains_nocase: String + trader_not_ends_with: String + trader_not_ends_with_nocase: String + trader_not_in: [String!] + trader_not_starts_with: String + trader_not_starts_with_nocase: String + trader_starts_with: String + trader_starts_with_nocase: String + tradesTotalCount: Int + tradesTotalCount_gt: Int + tradesTotalCount_gte: Int + tradesTotalCount_in: [Int!] + tradesTotalCount_lt: Int + tradesTotalCount_lte: Int + tradesTotalCount_not: Int + tradesTotalCount_not_in: [Int!] + trades_: Trade_filter +} + +enum Position_orderBy { + currentPositionSizeBC + endDate + highestSizeBC + id + isClosed + lastChanged + liquidations + lockedInValueQC + lowestSizeBC + perpetual + realizedPnLs + startDate + startPositionSizeBC + totalAmountLiquidatedBC + totalPnLCC + trader + traderState + trades + tradesTotalCount +} + +type ProxyOwnershipTransferred { + _newOwner: Bytes! + _oldOwner: Bytes! + id: ID! +} + +input ProxyOwnershipTransferred_filter { + """ + Filter for the block changed event. + """ + _change_block: BlockChangedFilter + _newOwner: Bytes + _newOwner_contains: Bytes + _newOwner_in: [Bytes!] + _newOwner_not: Bytes + _newOwner_not_contains: Bytes + _newOwner_not_in: [Bytes!] + _oldOwner: Bytes + _oldOwner_contains: Bytes + _oldOwner_in: [Bytes!] + _oldOwner_not: Bytes + _oldOwner_not_contains: Bytes + _oldOwner_not_in: [Bytes!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] +} + +enum ProxyOwnershipTransferred_orderBy { + _newOwner + _oldOwner + id +} + +type Query { + """ + Access to subgraph metadata + """ + _meta(block: Block_height): _Meta_ + addAmmGovernanceAddress( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): AddAmmGovernanceAddress + addAmmGovernanceAddresses( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: AddAmmGovernanceAddress_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: AddAmmGovernanceAddress_filter + ): [AddAmmGovernanceAddress!]! + answerUpdated( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): AnswerUpdated + answerUpdateds( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: AnswerUpdated_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: AnswerUpdated_filter + ): [AnswerUpdated!]! + atomicYield( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): AtomicYield + atomicYields( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: AtomicYield_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: AtomicYield_filter + ): [AtomicYield!]! + candleSticksDay( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): CandleSticksDay + candleSticksDays( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: CandleSticksDay_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: CandleSticksDay_filter + ): [CandleSticksDay!]! + candleSticksFifteenMinute( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): CandleSticksFifteenMinute + candleSticksFifteenMinutes( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: CandleSticksFifteenMinute_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: CandleSticksFifteenMinute_filter + ): [CandleSticksFifteenMinute!]! + candleSticksFourHour( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): CandleSticksFourHour + candleSticksFourHours( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: CandleSticksFourHour_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: CandleSticksFourHour_filter + ): [CandleSticksFourHour!]! + candleSticksHour( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): CandleSticksHour + candleSticksHours( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: CandleSticksHour_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: CandleSticksHour_filter + ): [CandleSticksHour!]! + candleSticksMinute( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): CandleSticksMinute + candleSticksMinutes( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: CandleSticksMinute_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: CandleSticksMinute_filter + ): [CandleSticksMinute!]! + clear( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): Clear + clears( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: Clear_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: Clear_filter + ): [Clear!]! + distributeFee( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): DistributeFee + distributeFees( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: DistributeFee_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: DistributeFee_filter + ): [DistributeFee!]! + fund( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): Fund + fundingPayment( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): FundingPayment + fundingPayments( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: FundingPayment_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: FundingPayment_filter + ): [FundingPayment!]! + fundingRate( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): FundingRate + fundingRates( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: FundingRate_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: FundingRate_filter + ): [FundingRate!]! + funds( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: Fund_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: Fund_filter + ): [Fund!]! + implementationChanged( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): ImplementationChanged + implementationChangeds( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: ImplementationChanged_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: ImplementationChanged_filter + ): [ImplementationChanged!]! + limitOrder( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): LimitOrder + limitOrders( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: LimitOrder_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: LimitOrder_filter + ): [LimitOrder!]! + liquidate( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): Liquidate + liquidates( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: Liquidate_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: Liquidate_filter + ): [Liquidate!]! + liquidityAdded( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): LiquidityAdded + liquidityAddeds( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: LiquidityAdded_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: LiquidityAdded_filter + ): [LiquidityAdded!]! + liquidityPool( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): LiquidityPool + liquidityPoolCreated( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): LiquidityPoolCreated + liquidityPoolCreateds( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: LiquidityPoolCreated_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: LiquidityPoolCreated_filter + ): [LiquidityPoolCreated!]! + liquidityPools( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: LiquidityPool_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: LiquidityPool_filter + ): [LiquidityPool!]! + liquidityRemoved( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): LiquidityRemoved + liquidityRemoveds( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: LiquidityRemoved_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: LiquidityRemoved_filter + ): [LiquidityRemoved!]! + ownershipTransferred( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): OwnershipTransferred + ownershipTransferreds( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: OwnershipTransferred_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: OwnershipTransferred_filter + ): [OwnershipTransferred!]! + perpetual( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): Perpetual + perpetualCreated( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): PerpetualCreated + perpetualCreateds( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: PerpetualCreated_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: PerpetualCreated_filter + ): [PerpetualCreated!]! + perpetualLimitOrderBookDeployed( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): PerpetualLimitOrderBookDeployed + perpetualLimitOrderBookDeployeds( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: PerpetualLimitOrderBookDeployed_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: PerpetualLimitOrderBookDeployed_filter + ): [PerpetualLimitOrderBookDeployed!]! + perpetualLimitOrderCancelled( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): PerpetualLimitOrderCancelled + perpetualLimitOrderCancelleds( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: PerpetualLimitOrderCancelled_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: PerpetualLimitOrderCancelled_filter + ): [PerpetualLimitOrderCancelled!]! + perpetualLimitOrderCreated( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): PerpetualLimitOrderCreated + perpetualLimitOrderCreateds( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: PerpetualLimitOrderCreated_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: PerpetualLimitOrderCreated_filter + ): [PerpetualLimitOrderCreated!]! + perpetuals( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: Perpetual_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: Perpetual_filter + ): [Perpetual!]! + position( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): Position + positions( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: Position_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: Position_filter + ): [Position!]! + proxyOwnershipTransferred( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): ProxyOwnershipTransferred + proxyOwnershipTransferreds( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: ProxyOwnershipTransferred_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: ProxyOwnershipTransferred_filter + ): [ProxyOwnershipTransferred!]! + realizedPnL( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): RealizedPnL + realizedPnLs( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: RealizedPnL_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: RealizedPnL_filter + ): [RealizedPnL!]! + removeAmmGovernanceAddress( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): RemoveAmmGovernanceAddress + removeAmmGovernanceAddresses( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: RemoveAmmGovernanceAddress_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: RemoveAmmGovernanceAddress_filter + ): [RemoveAmmGovernanceAddress!]! + runLiquidityPool( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): RunLiquidityPool + runLiquidityPools( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: RunLiquidityPool_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: RunLiquidityPool_filter + ): [RunLiquidityPool!]! + setClearedState( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): SetClearedState + setClearedStates( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: SetClearedState_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: SetClearedState_filter + ): [SetClearedState!]! + setEmergencyState( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): SetEmergencyState + setEmergencyStates( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: SetEmergencyState_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: SetEmergencyState_filter + ): [SetEmergencyState!]! + setNormalState( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): SetNormalState + setNormalStates( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: SetNormalState_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: SetNormalState_filter + ): [SetNormalState!]! + setOracles( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: SetOracles_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: SetOracles_filter + ): [SetOracles!]! + setParameter( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): SetParameter + setParameterPair( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): SetParameterPair + setParameterPairs( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: SetParameterPair_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: SetParameterPair_filter + ): [SetParameterPair!]! + setParameters( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: SetParameter_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: SetParameter_filter + ): [SetParameter!]! + setPerpetualBaseParameters( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: SetPerpetualBaseParameters_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: SetPerpetualBaseParameters_filter + ): [SetPerpetualBaseParameters!]! + setPerpetualRiskParameters( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: SetPerpetualRiskParameters_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: SetPerpetualRiskParameters_filter + ): [SetPerpetualRiskParameters!]! + setTargetPoolSizeUpdateTime( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): SetTargetPoolSizeUpdateTime + setTargetPoolSizeUpdateTimes( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: SetTargetPoolSizeUpdateTime_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: SetTargetPoolSizeUpdateTime_filter + ): [SetTargetPoolSizeUpdateTime!]! + setWithdrawalLimit( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): SetWithdrawalLimit + setWithdrawalLimits( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: SetWithdrawalLimit_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: SetWithdrawalLimit_filter + ): [SetWithdrawalLimit!]! + settle( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): Settle + settles( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: Settle_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: Settle_filter + ): [Settle!]! + spotOracle( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): SpotOracle + spotOracles( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: SpotOracle_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: SpotOracle_filter + ): [SpotOracle!]! + token( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): Token + tokens( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: Token_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: Token_filter + ): [Token!]! + tokensDeposited( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): TokensDeposited + tokensDepositeds( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: TokensDeposited_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: TokensDeposited_filter + ): [TokensDeposited!]! + tokensWithdrawn( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): TokensWithdrawn + tokensWithdrawns( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: TokensWithdrawn_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: TokensWithdrawn_filter + ): [TokensWithdrawn!]! + trade( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): Trade + trader( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): Trader + traderPool( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): TraderPool + traderPools( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: TraderPool_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: TraderPool_filter + ): [TraderPool!]! + traderState( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): TraderState + traderStates( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: TraderState_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: TraderState_filter + ): [TraderState!]! + traders( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: Trader_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: Trader_filter + ): [Trader!]! + trades( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: Trade_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: Trade_filter + ): [Trade!]! + transaction( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): Transaction + transactions( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: Transaction_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: Transaction_filter + ): [Transaction!]! + transferEarningsToTreasuries( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: TransferEarningsToTreasury_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: TransferEarningsToTreasury_filter + ): [TransferEarningsToTreasury!]! + transferEarningsToTreasury( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): TransferEarningsToTreasury + transferFeeToReferrer( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): TransferFeeToReferrer + transferFeeToReferrers( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: TransferFeeToReferrer_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: TransferFeeToReferrer_filter + ): [TransferFeeToReferrer!]! + transferTreasuryTo( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): TransferTreasuryTo + transferTreasuryTos( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: TransferTreasuryTo_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: TransferTreasuryTo_filter + ): [TransferTreasuryTo!]! + updateAMMFundCash( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): UpdateAMMFundCash + updateAMMFundCashes( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: UpdateAMMFundCash_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: UpdateAMMFundCash_filter + ): [UpdateAMMFundCash!]! + updateAMMFundTargetSize( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): UpdateAMMFundTargetSize + updateAMMFundTargetSizes( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: UpdateAMMFundTargetSize_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: UpdateAMMFundTargetSize_filter + ): [UpdateAMMFundTargetSize!]! + updateDefaultFundCash( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): UpdateDefaultFundCash + updateDefaultFundCashes( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: UpdateDefaultFundCash_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: UpdateDefaultFundCash_filter + ): [UpdateDefaultFundCash!]! + updateDefaultFundTargetSize( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): UpdateDefaultFundTargetSize + updateDefaultFundTargetSizes( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: UpdateDefaultFundTargetSize_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: UpdateDefaultFundTargetSize_filter + ): [UpdateDefaultFundTargetSize!]! + updateFundingRate( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): UpdateFundingRate + updateFundingRates( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: UpdateFundingRate_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: UpdateFundingRate_filter + ): [UpdateFundingRate!]! + updateMarginAccount( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): UpdateMarginAccount + updateMarginAccounts( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: UpdateMarginAccount_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: UpdateMarginAccount_filter + ): [UpdateMarginAccount!]! + updateMarkPrice( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): UpdateMarkPrice + updateMarkPrices( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: UpdateMarkPrice_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: UpdateMarkPrice_filter + ): [UpdateMarkPrice!]! + updateParticipationFundCash( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): UpdateParticipationFundCash + updateParticipationFundCashes( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: UpdateParticipationFundCash_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: UpdateParticipationFundCash_filter + ): [UpdateParticipationFundCash!]! + updatePrice( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): UpdatePrice + updatePrices( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: UpdatePrice_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: UpdatePrice_filter + ): [UpdatePrice!]! + updateReprTradeSizes( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: UpdateReprTradeSizes_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: UpdateReprTradeSizes_filter + ): [UpdateReprTradeSizes!]! + updateUnitAccumulatedFunding( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): UpdateUnitAccumulatedFunding + updateUnitAccumulatedFundings( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: UpdateUnitAccumulatedFunding_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: UpdateUnitAccumulatedFunding_filter + ): [UpdateUnitAccumulatedFunding!]! +} + +type RealizedPnL { + blockTimestamp: BigInt! + id: ID! + perpetual: Perpetual! + pnlCC: BigInt! + position: Position! + trader: Trader! +} + +input RealizedPnL_filter { + """ + Filter for the block changed event. + """ + _change_block: BlockChangedFilter + blockTimestamp: BigInt + blockTimestamp_gt: BigInt + blockTimestamp_gte: BigInt + blockTimestamp_in: [BigInt!] + blockTimestamp_lt: BigInt + blockTimestamp_lte: BigInt + blockTimestamp_not: BigInt + blockTimestamp_not_in: [BigInt!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + perpetual: String + perpetual_: Perpetual_filter + perpetual_contains: String + perpetual_contains_nocase: String + perpetual_ends_with: String + perpetual_ends_with_nocase: String + perpetual_gt: String + perpetual_gte: String + perpetual_in: [String!] + perpetual_lt: String + perpetual_lte: String + perpetual_not: String + perpetual_not_contains: String + perpetual_not_contains_nocase: String + perpetual_not_ends_with: String + perpetual_not_ends_with_nocase: String + perpetual_not_in: [String!] + perpetual_not_starts_with: String + perpetual_not_starts_with_nocase: String + perpetual_starts_with: String + perpetual_starts_with_nocase: String + pnlCC: BigInt + pnlCC_gt: BigInt + pnlCC_gte: BigInt + pnlCC_in: [BigInt!] + pnlCC_lt: BigInt + pnlCC_lte: BigInt + pnlCC_not: BigInt + pnlCC_not_in: [BigInt!] + position: String + position_: Position_filter + position_contains: String + position_contains_nocase: String + position_ends_with: String + position_ends_with_nocase: String + position_gt: String + position_gte: String + position_in: [String!] + position_lt: String + position_lte: String + position_not: String + position_not_contains: String + position_not_contains_nocase: String + position_not_ends_with: String + position_not_ends_with_nocase: String + position_not_in: [String!] + position_not_starts_with: String + position_not_starts_with_nocase: String + position_starts_with: String + position_starts_with_nocase: String + trader: String + trader_: Trader_filter + trader_contains: String + trader_contains_nocase: String + trader_ends_with: String + trader_ends_with_nocase: String + trader_gt: String + trader_gte: String + trader_in: [String!] + trader_lt: String + trader_lte: String + trader_not: String + trader_not_contains: String + trader_not_contains_nocase: String + trader_not_ends_with: String + trader_not_ends_with_nocase: String + trader_not_in: [String!] + trader_not_starts_with: String + trader_not_starts_with_nocase: String + trader_starts_with: String + trader_starts_with_nocase: String +} + +enum RealizedPnL_orderBy { + blockTimestamp + id + perpetual + pnlCC + position + trader +} + +type RemoveAmmGovernanceAddress { + gAddress: Bytes! + id: ID! +} + +input RemoveAmmGovernanceAddress_filter { + """ + Filter for the block changed event. + """ + _change_block: BlockChangedFilter + gAddress: Bytes + gAddress_contains: Bytes + gAddress_in: [Bytes!] + gAddress_not: Bytes + gAddress_not_contains: Bytes + gAddress_not_in: [Bytes!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] +} + +enum RemoveAmmGovernanceAddress_orderBy { + gAddress + id +} + +type RunLiquidityPool { + _liqPoolID: Int! + id: ID! +} + +input RunLiquidityPool_filter { + """ + Filter for the block changed event. + """ + _change_block: BlockChangedFilter + _liqPoolID: Int + _liqPoolID_gt: Int + _liqPoolID_gte: Int + _liqPoolID_in: [Int!] + _liqPoolID_lt: Int + _liqPoolID_lte: Int + _liqPoolID_not: Int + _liqPoolID_not_in: [Int!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] +} + +enum RunLiquidityPool_orderBy { + _liqPoolID + id +} + +type SetClearedState { + id: ID! + perpetualId: Bytes! +} + +input SetClearedState_filter { + """ + Filter for the block changed event. + """ + _change_block: BlockChangedFilter + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + perpetualId: Bytes + perpetualId_contains: Bytes + perpetualId_in: [Bytes!] + perpetualId_not: Bytes + perpetualId_not_contains: Bytes + perpetualId_not_in: [Bytes!] +} + +enum SetClearedState_orderBy { + id + perpetualId +} + +type SetEmergencyState { + fSettlementMarkPremiumRate: BigInt! + fSettlementS2Price: BigInt! + fSettlementS3Price: BigInt! + id: ID! + perpetualId: Bytes! +} + +input SetEmergencyState_filter { + """ + Filter for the block changed event. + """ + _change_block: BlockChangedFilter + fSettlementMarkPremiumRate: BigInt + fSettlementMarkPremiumRate_gt: BigInt + fSettlementMarkPremiumRate_gte: BigInt + fSettlementMarkPremiumRate_in: [BigInt!] + fSettlementMarkPremiumRate_lt: BigInt + fSettlementMarkPremiumRate_lte: BigInt + fSettlementMarkPremiumRate_not: BigInt + fSettlementMarkPremiumRate_not_in: [BigInt!] + fSettlementS2Price: BigInt + fSettlementS2Price_gt: BigInt + fSettlementS2Price_gte: BigInt + fSettlementS2Price_in: [BigInt!] + fSettlementS2Price_lt: BigInt + fSettlementS2Price_lte: BigInt + fSettlementS2Price_not: BigInt + fSettlementS2Price_not_in: [BigInt!] + fSettlementS3Price: BigInt + fSettlementS3Price_gt: BigInt + fSettlementS3Price_gte: BigInt + fSettlementS3Price_in: [BigInt!] + fSettlementS3Price_lt: BigInt + fSettlementS3Price_lte: BigInt + fSettlementS3Price_not: BigInt + fSettlementS3Price_not_in: [BigInt!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + perpetualId: Bytes + perpetualId_contains: Bytes + perpetualId_in: [Bytes!] + perpetualId_not: Bytes + perpetualId_not_contains: Bytes + perpetualId_not_in: [Bytes!] +} + +enum SetEmergencyState_orderBy { + fSettlementMarkPremiumRate + fSettlementS2Price + fSettlementS3Price + id + perpetualId +} + +type SetNormalState { + id: ID! + perpetualId: Bytes! +} + +input SetNormalState_filter { + """ + Filter for the block changed event. + """ + _change_block: BlockChangedFilter + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + perpetualId: Bytes + perpetualId_contains: Bytes + perpetualId_in: [Bytes!] + perpetualId_not: Bytes + perpetualId_not_contains: Bytes + perpetualId_not_in: [Bytes!] +} + +enum SetNormalState_orderBy { + id + perpetualId +} + +type SetOracles { + id: ID! + perpetualId: Bytes! +} + +input SetOracles_filter { + """ + Filter for the block changed event. + """ + _change_block: BlockChangedFilter + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + perpetualId: Bytes + perpetualId_contains: Bytes + perpetualId_in: [Bytes!] + perpetualId_not: Bytes + perpetualId_not_contains: Bytes + perpetualId_not_in: [Bytes!] +} + +enum SetOracles_orderBy { + id + perpetualId +} + +type SetParameter { + id: ID! + name: String! + perpetual: Perpetual! + value: BigInt! +} + +type SetParameterPair { + id: ID! + name: String! + perpetualId: Bytes! + value1: BigInt! + value2: BigInt! +} + +input SetParameterPair_filter { + """ + Filter for the block changed event. + """ + _change_block: BlockChangedFilter + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + name: String + name_contains: String + name_contains_nocase: String + name_ends_with: String + name_ends_with_nocase: String + name_gt: String + name_gte: String + name_in: [String!] + name_lt: String + name_lte: String + name_not: String + name_not_contains: String + name_not_contains_nocase: String + name_not_ends_with: String + name_not_ends_with_nocase: String + name_not_in: [String!] + name_not_starts_with: String + name_not_starts_with_nocase: String + name_starts_with: String + name_starts_with_nocase: String + perpetualId: Bytes + perpetualId_contains: Bytes + perpetualId_in: [Bytes!] + perpetualId_not: Bytes + perpetualId_not_contains: Bytes + perpetualId_not_in: [Bytes!] + value1: BigInt + value1_gt: BigInt + value1_gte: BigInt + value1_in: [BigInt!] + value1_lt: BigInt + value1_lte: BigInt + value1_not: BigInt + value1_not_in: [BigInt!] + value2: BigInt + value2_gt: BigInt + value2_gte: BigInt + value2_in: [BigInt!] + value2_lt: BigInt + value2_lte: BigInt + value2_not: BigInt + value2_not_in: [BigInt!] +} + +enum SetParameterPair_orderBy { + id + name + perpetualId + value1 + value2 +} + +input SetParameter_filter { + """ + Filter for the block changed event. + """ + _change_block: BlockChangedFilter + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + name: String + name_contains: String + name_contains_nocase: String + name_ends_with: String + name_ends_with_nocase: String + name_gt: String + name_gte: String + name_in: [String!] + name_lt: String + name_lte: String + name_not: String + name_not_contains: String + name_not_contains_nocase: String + name_not_ends_with: String + name_not_ends_with_nocase: String + name_not_in: [String!] + name_not_starts_with: String + name_not_starts_with_nocase: String + name_starts_with: String + name_starts_with_nocase: String + perpetual: String + perpetual_: Perpetual_filter + perpetual_contains: String + perpetual_contains_nocase: String + perpetual_ends_with: String + perpetual_ends_with_nocase: String + perpetual_gt: String + perpetual_gte: String + perpetual_in: [String!] + perpetual_lt: String + perpetual_lte: String + perpetual_not: String + perpetual_not_contains: String + perpetual_not_contains_nocase: String + perpetual_not_ends_with: String + perpetual_not_ends_with_nocase: String + perpetual_not_in: [String!] + perpetual_not_starts_with: String + perpetual_not_starts_with_nocase: String + perpetual_starts_with: String + perpetual_starts_with_nocase: String + value: BigInt + value_gt: BigInt + value_gte: BigInt + value_in: [BigInt!] + value_lt: BigInt + value_lte: BigInt + value_not: BigInt + value_not_in: [BigInt!] +} + +enum SetParameter_orderBy { + id + name + perpetual + value +} + +type SetPerpetualBaseParameters { + id: ID! + perpetualId: Bytes! +} + +input SetPerpetualBaseParameters_filter { + """ + Filter for the block changed event. + """ + _change_block: BlockChangedFilter + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + perpetualId: Bytes + perpetualId_contains: Bytes + perpetualId_in: [Bytes!] + perpetualId_not: Bytes + perpetualId_not_contains: Bytes + perpetualId_not_in: [Bytes!] +} + +enum SetPerpetualBaseParameters_orderBy { + id + perpetualId +} + +type SetPerpetualRiskParameters { + id: ID! + perpetualId: Bytes! +} + +input SetPerpetualRiskParameters_filter { + """ + Filter for the block changed event. + """ + _change_block: BlockChangedFilter + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + perpetualId: Bytes + perpetualId_contains: Bytes + perpetualId_in: [Bytes!] + perpetualId_not: Bytes + perpetualId_not_contains: Bytes + perpetualId_not_in: [Bytes!] +} + +enum SetPerpetualRiskParameters_orderBy { + id + perpetualId +} + +type SetTargetPoolSizeUpdateTime { + id: ID! + poolId: Int! + targetPoolSizeUpdateTime: BigInt! +} + +input SetTargetPoolSizeUpdateTime_filter { + """ + Filter for the block changed event. + """ + _change_block: BlockChangedFilter + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + poolId: Int + poolId_gt: Int + poolId_gte: Int + poolId_in: [Int!] + poolId_lt: Int + poolId_lte: Int + poolId_not: Int + poolId_not_in: [Int!] + targetPoolSizeUpdateTime: BigInt + targetPoolSizeUpdateTime_gt: BigInt + targetPoolSizeUpdateTime_gte: BigInt + targetPoolSizeUpdateTime_in: [BigInt!] + targetPoolSizeUpdateTime_lt: BigInt + targetPoolSizeUpdateTime_lte: BigInt + targetPoolSizeUpdateTime_not: BigInt + targetPoolSizeUpdateTime_not_in: [BigInt!] +} + +enum SetTargetPoolSizeUpdateTime_orderBy { + id + poolId + targetPoolSizeUpdateTime +} + +type SetWithdrawalLimit { + PnLparticipantWithdrawalMinAmountLimit: BigInt! + PnLparticipantWithdrawalPercentageLimit: BigInt! + PnLparticipantWithdrawalPeriod: BigInt! + id: ID! + poolId: Int! +} + +input SetWithdrawalLimit_filter { + PnLparticipantWithdrawalMinAmountLimit: BigInt + PnLparticipantWithdrawalMinAmountLimit_gt: BigInt + PnLparticipantWithdrawalMinAmountLimit_gte: BigInt + PnLparticipantWithdrawalMinAmountLimit_in: [BigInt!] + PnLparticipantWithdrawalMinAmountLimit_lt: BigInt + PnLparticipantWithdrawalMinAmountLimit_lte: BigInt + PnLparticipantWithdrawalMinAmountLimit_not: BigInt + PnLparticipantWithdrawalMinAmountLimit_not_in: [BigInt!] + PnLparticipantWithdrawalPercentageLimit: BigInt + PnLparticipantWithdrawalPercentageLimit_gt: BigInt + PnLparticipantWithdrawalPercentageLimit_gte: BigInt + PnLparticipantWithdrawalPercentageLimit_in: [BigInt!] + PnLparticipantWithdrawalPercentageLimit_lt: BigInt + PnLparticipantWithdrawalPercentageLimit_lte: BigInt + PnLparticipantWithdrawalPercentageLimit_not: BigInt + PnLparticipantWithdrawalPercentageLimit_not_in: [BigInt!] + PnLparticipantWithdrawalPeriod: BigInt + PnLparticipantWithdrawalPeriod_gt: BigInt + PnLparticipantWithdrawalPeriod_gte: BigInt + PnLparticipantWithdrawalPeriod_in: [BigInt!] + PnLparticipantWithdrawalPeriod_lt: BigInt + PnLparticipantWithdrawalPeriod_lte: BigInt + PnLparticipantWithdrawalPeriod_not: BigInt + PnLparticipantWithdrawalPeriod_not_in: [BigInt!] + + """ + Filter for the block changed event. + """ + _change_block: BlockChangedFilter + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + poolId: Int + poolId_gt: Int + poolId_gte: Int + poolId_in: [Int!] + poolId_lt: Int + poolId_lte: Int + poolId_not: Int + poolId_not_in: [Int!] +} + +enum SetWithdrawalLimit_orderBy { + PnLparticipantWithdrawalMinAmountLimit + PnLparticipantWithdrawalPercentageLimit + PnLparticipantWithdrawalPeriod + id + poolId +} + +type Settle { + amount: BigInt! + id: ID! + perpetualId: Bytes! + trader: Trader! +} + +input Settle_filter { + """ + Filter for the block changed event. + """ + _change_block: BlockChangedFilter + amount: BigInt + amount_gt: BigInt + amount_gte: BigInt + amount_in: [BigInt!] + amount_lt: BigInt + amount_lte: BigInt + amount_not: BigInt + amount_not_in: [BigInt!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + perpetualId: Bytes + perpetualId_contains: Bytes + perpetualId_in: [Bytes!] + perpetualId_not: Bytes + perpetualId_not_contains: Bytes + perpetualId_not_in: [Bytes!] + trader: String + trader_: Trader_filter + trader_contains: String + trader_contains_nocase: String + trader_ends_with: String + trader_ends_with_nocase: String + trader_gt: String + trader_gte: String + trader_in: [String!] + trader_lt: String + trader_lte: String + trader_not: String + trader_not_contains: String + trader_not_contains_nocase: String + trader_not_ends_with: String + trader_not_ends_with_nocase: String + trader_not_in: [String!] + trader_not_starts_with: String + trader_not_starts_with_nocase: String + trader_starts_with: String + trader_starts_with_nocase: String +} + +enum Settle_orderBy { + amount + id + perpetualId + trader +} + +type SpotOracle { + answerUpdated: BigInt! + answerUpdatedDecimals: Int! + answerUpdatedTime: Int! + baseCurrency: String! + createdAtTimestamp: Int! + + "SpotOracle ID is the oracle address\n" + id: ID! + perpetuals( + first: Int = 100 + orderBy: Perpetual_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: Perpetual_filter + ): [Perpetual!]! + priceFeed: Bytes! + quoteCurrency: String! + spotPrice: BigInt! + timePrice: Int! + updatedAtTimestamp: Int! +} + +input SpotOracle_filter { + """ + Filter for the block changed event. + """ + _change_block: BlockChangedFilter + answerUpdated: BigInt + answerUpdatedDecimals: Int + answerUpdatedDecimals_gt: Int + answerUpdatedDecimals_gte: Int + answerUpdatedDecimals_in: [Int!] + answerUpdatedDecimals_lt: Int + answerUpdatedDecimals_lte: Int + answerUpdatedDecimals_not: Int + answerUpdatedDecimals_not_in: [Int!] + answerUpdatedTime: Int + answerUpdatedTime_gt: Int + answerUpdatedTime_gte: Int + answerUpdatedTime_in: [Int!] + answerUpdatedTime_lt: Int + answerUpdatedTime_lte: Int + answerUpdatedTime_not: Int + answerUpdatedTime_not_in: [Int!] + answerUpdated_gt: BigInt + answerUpdated_gte: BigInt + answerUpdated_in: [BigInt!] + answerUpdated_lt: BigInt + answerUpdated_lte: BigInt + answerUpdated_not: BigInt + answerUpdated_not_in: [BigInt!] + baseCurrency: String + baseCurrency_contains: String + baseCurrency_contains_nocase: String + baseCurrency_ends_with: String + baseCurrency_ends_with_nocase: String + baseCurrency_gt: String + baseCurrency_gte: String + baseCurrency_in: [String!] + baseCurrency_lt: String + baseCurrency_lte: String + baseCurrency_not: String + baseCurrency_not_contains: String + baseCurrency_not_contains_nocase: String + baseCurrency_not_ends_with: String + baseCurrency_not_ends_with_nocase: String + baseCurrency_not_in: [String!] + baseCurrency_not_starts_with: String + baseCurrency_not_starts_with_nocase: String + baseCurrency_starts_with: String + baseCurrency_starts_with_nocase: String + createdAtTimestamp: Int + createdAtTimestamp_gt: Int + createdAtTimestamp_gte: Int + createdAtTimestamp_in: [Int!] + createdAtTimestamp_lt: Int + createdAtTimestamp_lte: Int + createdAtTimestamp_not: Int + createdAtTimestamp_not_in: [Int!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + perpetuals: [String!] + perpetuals_: Perpetual_filter + perpetuals_contains: [String!] + perpetuals_contains_nocase: [String!] + perpetuals_not: [String!] + perpetuals_not_contains: [String!] + perpetuals_not_contains_nocase: [String!] + priceFeed: Bytes + priceFeed_contains: Bytes + priceFeed_in: [Bytes!] + priceFeed_not: Bytes + priceFeed_not_contains: Bytes + priceFeed_not_in: [Bytes!] + quoteCurrency: String + quoteCurrency_contains: String + quoteCurrency_contains_nocase: String + quoteCurrency_ends_with: String + quoteCurrency_ends_with_nocase: String + quoteCurrency_gt: String + quoteCurrency_gte: String + quoteCurrency_in: [String!] + quoteCurrency_lt: String + quoteCurrency_lte: String + quoteCurrency_not: String + quoteCurrency_not_contains: String + quoteCurrency_not_contains_nocase: String + quoteCurrency_not_ends_with: String + quoteCurrency_not_ends_with_nocase: String + quoteCurrency_not_in: [String!] + quoteCurrency_not_starts_with: String + quoteCurrency_not_starts_with_nocase: String + quoteCurrency_starts_with: String + quoteCurrency_starts_with_nocase: String + spotPrice: BigInt + spotPrice_gt: BigInt + spotPrice_gte: BigInt + spotPrice_in: [BigInt!] + spotPrice_lt: BigInt + spotPrice_lte: BigInt + spotPrice_not: BigInt + spotPrice_not_in: [BigInt!] + timePrice: Int + timePrice_gt: Int + timePrice_gte: Int + timePrice_in: [Int!] + timePrice_lt: Int + timePrice_lte: Int + timePrice_not: Int + timePrice_not_in: [Int!] + updatedAtTimestamp: Int + updatedAtTimestamp_gt: Int + updatedAtTimestamp_gte: Int + updatedAtTimestamp_in: [Int!] + updatedAtTimestamp_lt: Int + updatedAtTimestamp_lte: Int + updatedAtTimestamp_not: Int + updatedAtTimestamp_not_in: [Int!] +} + +enum SpotOracle_orderBy { + answerUpdated + answerUpdatedDecimals + answerUpdatedTime + baseCurrency + createdAtTimestamp + id + perpetuals + priceFeed + quoteCurrency + spotPrice + timePrice + updatedAtTimestamp +} + +type Subscription { + """ + Access to subgraph metadata + """ + _meta(block: Block_height): _Meta_ + addAmmGovernanceAddress( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): AddAmmGovernanceAddress + addAmmGovernanceAddresses( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: AddAmmGovernanceAddress_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: AddAmmGovernanceAddress_filter + ): [AddAmmGovernanceAddress!]! + answerUpdated( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): AnswerUpdated + answerUpdateds( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: AnswerUpdated_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: AnswerUpdated_filter + ): [AnswerUpdated!]! + atomicYield( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): AtomicYield + atomicYields( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: AtomicYield_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: AtomicYield_filter + ): [AtomicYield!]! + candleSticksDay( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): CandleSticksDay + candleSticksDays( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: CandleSticksDay_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: CandleSticksDay_filter + ): [CandleSticksDay!]! + candleSticksFifteenMinute( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): CandleSticksFifteenMinute + candleSticksFifteenMinutes( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: CandleSticksFifteenMinute_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: CandleSticksFifteenMinute_filter + ): [CandleSticksFifteenMinute!]! + candleSticksFourHour( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): CandleSticksFourHour + candleSticksFourHours( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: CandleSticksFourHour_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: CandleSticksFourHour_filter + ): [CandleSticksFourHour!]! + candleSticksHour( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): CandleSticksHour + candleSticksHours( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: CandleSticksHour_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: CandleSticksHour_filter + ): [CandleSticksHour!]! + candleSticksMinute( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): CandleSticksMinute + candleSticksMinutes( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: CandleSticksMinute_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: CandleSticksMinute_filter + ): [CandleSticksMinute!]! + clear( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): Clear + clears( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: Clear_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: Clear_filter + ): [Clear!]! + distributeFee( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): DistributeFee + distributeFees( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: DistributeFee_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: DistributeFee_filter + ): [DistributeFee!]! + fund( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): Fund + fundingPayment( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): FundingPayment + fundingPayments( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: FundingPayment_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: FundingPayment_filter + ): [FundingPayment!]! + fundingRate( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): FundingRate + fundingRates( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: FundingRate_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: FundingRate_filter + ): [FundingRate!]! + funds( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: Fund_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: Fund_filter + ): [Fund!]! + implementationChanged( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): ImplementationChanged + implementationChangeds( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: ImplementationChanged_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: ImplementationChanged_filter + ): [ImplementationChanged!]! + limitOrder( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): LimitOrder + limitOrders( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: LimitOrder_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: LimitOrder_filter + ): [LimitOrder!]! + liquidate( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): Liquidate + liquidates( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: Liquidate_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: Liquidate_filter + ): [Liquidate!]! + liquidityAdded( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): LiquidityAdded + liquidityAddeds( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: LiquidityAdded_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: LiquidityAdded_filter + ): [LiquidityAdded!]! + liquidityPool( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): LiquidityPool + liquidityPoolCreated( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): LiquidityPoolCreated + liquidityPoolCreateds( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: LiquidityPoolCreated_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: LiquidityPoolCreated_filter + ): [LiquidityPoolCreated!]! + liquidityPools( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: LiquidityPool_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: LiquidityPool_filter + ): [LiquidityPool!]! + liquidityRemoved( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): LiquidityRemoved + liquidityRemoveds( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: LiquidityRemoved_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: LiquidityRemoved_filter + ): [LiquidityRemoved!]! + ownershipTransferred( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): OwnershipTransferred + ownershipTransferreds( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: OwnershipTransferred_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: OwnershipTransferred_filter + ): [OwnershipTransferred!]! + perpetual( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): Perpetual + perpetualCreated( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): PerpetualCreated + perpetualCreateds( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: PerpetualCreated_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: PerpetualCreated_filter + ): [PerpetualCreated!]! + perpetualLimitOrderBookDeployed( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): PerpetualLimitOrderBookDeployed + perpetualLimitOrderBookDeployeds( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: PerpetualLimitOrderBookDeployed_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: PerpetualLimitOrderBookDeployed_filter + ): [PerpetualLimitOrderBookDeployed!]! + perpetualLimitOrderCancelled( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): PerpetualLimitOrderCancelled + perpetualLimitOrderCancelleds( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: PerpetualLimitOrderCancelled_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: PerpetualLimitOrderCancelled_filter + ): [PerpetualLimitOrderCancelled!]! + perpetualLimitOrderCreated( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): PerpetualLimitOrderCreated + perpetualLimitOrderCreateds( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: PerpetualLimitOrderCreated_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: PerpetualLimitOrderCreated_filter + ): [PerpetualLimitOrderCreated!]! + perpetuals( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: Perpetual_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: Perpetual_filter + ): [Perpetual!]! + position( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): Position + positions( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: Position_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: Position_filter + ): [Position!]! + proxyOwnershipTransferred( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): ProxyOwnershipTransferred + proxyOwnershipTransferreds( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: ProxyOwnershipTransferred_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: ProxyOwnershipTransferred_filter + ): [ProxyOwnershipTransferred!]! + realizedPnL( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): RealizedPnL + realizedPnLs( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: RealizedPnL_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: RealizedPnL_filter + ): [RealizedPnL!]! + removeAmmGovernanceAddress( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): RemoveAmmGovernanceAddress + removeAmmGovernanceAddresses( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: RemoveAmmGovernanceAddress_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: RemoveAmmGovernanceAddress_filter + ): [RemoveAmmGovernanceAddress!]! + runLiquidityPool( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): RunLiquidityPool + runLiquidityPools( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: RunLiquidityPool_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: RunLiquidityPool_filter + ): [RunLiquidityPool!]! + setClearedState( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): SetClearedState + setClearedStates( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: SetClearedState_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: SetClearedState_filter + ): [SetClearedState!]! + setEmergencyState( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): SetEmergencyState + setEmergencyStates( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: SetEmergencyState_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: SetEmergencyState_filter + ): [SetEmergencyState!]! + setNormalState( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): SetNormalState + setNormalStates( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: SetNormalState_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: SetNormalState_filter + ): [SetNormalState!]! + setOracles( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: SetOracles_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: SetOracles_filter + ): [SetOracles!]! + setParameter( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): SetParameter + setParameterPair( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): SetParameterPair + setParameterPairs( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: SetParameterPair_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: SetParameterPair_filter + ): [SetParameterPair!]! + setParameters( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: SetParameter_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: SetParameter_filter + ): [SetParameter!]! + setPerpetualBaseParameters( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: SetPerpetualBaseParameters_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: SetPerpetualBaseParameters_filter + ): [SetPerpetualBaseParameters!]! + setPerpetualRiskParameters( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: SetPerpetualRiskParameters_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: SetPerpetualRiskParameters_filter + ): [SetPerpetualRiskParameters!]! + setTargetPoolSizeUpdateTime( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): SetTargetPoolSizeUpdateTime + setTargetPoolSizeUpdateTimes( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: SetTargetPoolSizeUpdateTime_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: SetTargetPoolSizeUpdateTime_filter + ): [SetTargetPoolSizeUpdateTime!]! + setWithdrawalLimit( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): SetWithdrawalLimit + setWithdrawalLimits( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: SetWithdrawalLimit_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: SetWithdrawalLimit_filter + ): [SetWithdrawalLimit!]! + settle( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): Settle + settles( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: Settle_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: Settle_filter + ): [Settle!]! + spotOracle( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): SpotOracle + spotOracles( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: SpotOracle_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: SpotOracle_filter + ): [SpotOracle!]! + token( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): Token + tokens( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: Token_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: Token_filter + ): [Token!]! + tokensDeposited( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): TokensDeposited + tokensDepositeds( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: TokensDeposited_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: TokensDeposited_filter + ): [TokensDeposited!]! + tokensWithdrawn( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): TokensWithdrawn + tokensWithdrawns( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: TokensWithdrawn_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: TokensWithdrawn_filter + ): [TokensWithdrawn!]! + trade( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): Trade + trader( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): Trader + traderPool( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): TraderPool + traderPools( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: TraderPool_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: TraderPool_filter + ): [TraderPool!]! + traderState( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): TraderState + traderStates( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: TraderState_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: TraderState_filter + ): [TraderState!]! + traders( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: Trader_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: Trader_filter + ): [Trader!]! + trades( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: Trade_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: Trade_filter + ): [Trade!]! + transaction( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): Transaction + transactions( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: Transaction_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: Transaction_filter + ): [Transaction!]! + transferEarningsToTreasuries( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: TransferEarningsToTreasury_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: TransferEarningsToTreasury_filter + ): [TransferEarningsToTreasury!]! + transferEarningsToTreasury( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): TransferEarningsToTreasury + transferFeeToReferrer( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): TransferFeeToReferrer + transferFeeToReferrers( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: TransferFeeToReferrer_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: TransferFeeToReferrer_filter + ): [TransferFeeToReferrer!]! + transferTreasuryTo( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): TransferTreasuryTo + transferTreasuryTos( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: TransferTreasuryTo_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: TransferTreasuryTo_filter + ): [TransferTreasuryTo!]! + updateAMMFundCash( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): UpdateAMMFundCash + updateAMMFundCashes( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: UpdateAMMFundCash_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: UpdateAMMFundCash_filter + ): [UpdateAMMFundCash!]! + updateAMMFundTargetSize( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): UpdateAMMFundTargetSize + updateAMMFundTargetSizes( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: UpdateAMMFundTargetSize_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: UpdateAMMFundTargetSize_filter + ): [UpdateAMMFundTargetSize!]! + updateDefaultFundCash( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): UpdateDefaultFundCash + updateDefaultFundCashes( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: UpdateDefaultFundCash_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: UpdateDefaultFundCash_filter + ): [UpdateDefaultFundCash!]! + updateDefaultFundTargetSize( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): UpdateDefaultFundTargetSize + updateDefaultFundTargetSizes( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: UpdateDefaultFundTargetSize_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: UpdateDefaultFundTargetSize_filter + ): [UpdateDefaultFundTargetSize!]! + updateFundingRate( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): UpdateFundingRate + updateFundingRates( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: UpdateFundingRate_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: UpdateFundingRate_filter + ): [UpdateFundingRate!]! + updateMarginAccount( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): UpdateMarginAccount + updateMarginAccounts( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: UpdateMarginAccount_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: UpdateMarginAccount_filter + ): [UpdateMarginAccount!]! + updateMarkPrice( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): UpdateMarkPrice + updateMarkPrices( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: UpdateMarkPrice_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: UpdateMarkPrice_filter + ): [UpdateMarkPrice!]! + updateParticipationFundCash( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): UpdateParticipationFundCash + updateParticipationFundCashes( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: UpdateParticipationFundCash_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: UpdateParticipationFundCash_filter + ): [UpdateParticipationFundCash!]! + updatePrice( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): UpdatePrice + updatePrices( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: UpdatePrice_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: UpdatePrice_filter + ): [UpdatePrice!]! + updateReprTradeSizes( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: UpdateReprTradeSizes_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: UpdateReprTradeSizes_filter + ): [UpdateReprTradeSizes!]! + updateUnitAccumulatedFunding( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): UpdateUnitAccumulatedFunding + updateUnitAccumulatedFundings( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: UpdateUnitAccumulatedFunding_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: UpdateUnitAccumulatedFunding_filter + ): [UpdateUnitAccumulatedFunding!]! +} + +type Token { + decimals: Int! + id: ID! + name: String! + symbol: String! + totalSupply: BigInt! +} + +input Token_filter { + """ + Filter for the block changed event. + """ + _change_block: BlockChangedFilter + decimals: Int + decimals_gt: Int + decimals_gte: Int + decimals_in: [Int!] + decimals_lt: Int + decimals_lte: Int + decimals_not: Int + decimals_not_in: [Int!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + name: String + name_contains: String + name_contains_nocase: String + name_ends_with: String + name_ends_with_nocase: String + name_gt: String + name_gte: String + name_in: [String!] + name_lt: String + name_lte: String + name_not: String + name_not_contains: String + name_not_contains_nocase: String + name_not_ends_with: String + name_not_ends_with_nocase: String + name_not_in: [String!] + name_not_starts_with: String + name_not_starts_with_nocase: String + name_starts_with: String + name_starts_with_nocase: String + symbol: String + symbol_contains: String + symbol_contains_nocase: String + symbol_ends_with: String + symbol_ends_with_nocase: String + symbol_gt: String + symbol_gte: String + symbol_in: [String!] + symbol_lt: String + symbol_lte: String + symbol_not: String + symbol_not_contains: String + symbol_not_contains_nocase: String + symbol_not_ends_with: String + symbol_not_ends_with_nocase: String + symbol_not_in: [String!] + symbol_not_starts_with: String + symbol_not_starts_with_nocase: String + symbol_starts_with: String + symbol_starts_with_nocase: String + totalSupply: BigInt + totalSupply_gt: BigInt + totalSupply_gte: BigInt + totalSupply_in: [BigInt!] + totalSupply_lt: BigInt + totalSupply_lte: BigInt + totalSupply_not: BigInt + totalSupply_not_in: [BigInt!] +} + +enum Token_orderBy { + decimals + id + name + symbol + totalSupply +} + +type TokensDeposited { + amount: BigInt! + blockTimestamp: BigInt! + id: ID! + perpetualId: Bytes! + trader: Trader! + transaction: Transaction! +} + +input TokensDeposited_filter { + """ + Filter for the block changed event. + """ + _change_block: BlockChangedFilter + amount: BigInt + amount_gt: BigInt + amount_gte: BigInt + amount_in: [BigInt!] + amount_lt: BigInt + amount_lte: BigInt + amount_not: BigInt + amount_not_in: [BigInt!] + blockTimestamp: BigInt + blockTimestamp_gt: BigInt + blockTimestamp_gte: BigInt + blockTimestamp_in: [BigInt!] + blockTimestamp_lt: BigInt + blockTimestamp_lte: BigInt + blockTimestamp_not: BigInt + blockTimestamp_not_in: [BigInt!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + perpetualId: Bytes + perpetualId_contains: Bytes + perpetualId_in: [Bytes!] + perpetualId_not: Bytes + perpetualId_not_contains: Bytes + perpetualId_not_in: [Bytes!] + trader: String + trader_: Trader_filter + trader_contains: String + trader_contains_nocase: String + trader_ends_with: String + trader_ends_with_nocase: String + trader_gt: String + trader_gte: String + trader_in: [String!] + trader_lt: String + trader_lte: String + trader_not: String + trader_not_contains: String + trader_not_contains_nocase: String + trader_not_ends_with: String + trader_not_ends_with_nocase: String + trader_not_in: [String!] + trader_not_starts_with: String + trader_not_starts_with_nocase: String + trader_starts_with: String + trader_starts_with_nocase: String + transaction: String + transaction_: Transaction_filter + transaction_contains: String + transaction_contains_nocase: String + transaction_ends_with: String + transaction_ends_with_nocase: String + transaction_gt: String + transaction_gte: String + transaction_in: [String!] + transaction_lt: String + transaction_lte: String + transaction_not: String + transaction_not_contains: String + transaction_not_contains_nocase: String + transaction_not_ends_with: String + transaction_not_ends_with_nocase: String + transaction_not_in: [String!] + transaction_not_starts_with: String + transaction_not_starts_with_nocase: String + transaction_starts_with: String + transaction_starts_with_nocase: String +} + +enum TokensDeposited_orderBy { + amount + blockTimestamp + id + perpetualId + trader + transaction +} + +type TokensWithdrawn { + amount: BigInt! + blockTimestamp: BigInt! + id: ID! + perpetualId: Bytes! + trader: Trader! + transaction: Transaction! +} + +input TokensWithdrawn_filter { + """ + Filter for the block changed event. + """ + _change_block: BlockChangedFilter + amount: BigInt + amount_gt: BigInt + amount_gte: BigInt + amount_in: [BigInt!] + amount_lt: BigInt + amount_lte: BigInt + amount_not: BigInt + amount_not_in: [BigInt!] + blockTimestamp: BigInt + blockTimestamp_gt: BigInt + blockTimestamp_gte: BigInt + blockTimestamp_in: [BigInt!] + blockTimestamp_lt: BigInt + blockTimestamp_lte: BigInt + blockTimestamp_not: BigInt + blockTimestamp_not_in: [BigInt!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + perpetualId: Bytes + perpetualId_contains: Bytes + perpetualId_in: [Bytes!] + perpetualId_not: Bytes + perpetualId_not_contains: Bytes + perpetualId_not_in: [Bytes!] + trader: String + trader_: Trader_filter + trader_contains: String + trader_contains_nocase: String + trader_ends_with: String + trader_ends_with_nocase: String + trader_gt: String + trader_gte: String + trader_in: [String!] + trader_lt: String + trader_lte: String + trader_not: String + trader_not_contains: String + trader_not_contains_nocase: String + trader_not_ends_with: String + trader_not_ends_with_nocase: String + trader_not_in: [String!] + trader_not_starts_with: String + trader_not_starts_with_nocase: String + trader_starts_with: String + trader_starts_with_nocase: String + transaction: String + transaction_: Transaction_filter + transaction_contains: String + transaction_contains_nocase: String + transaction_ends_with: String + transaction_ends_with_nocase: String + transaction_gt: String + transaction_gte: String + transaction_in: [String!] + transaction_lt: String + transaction_lte: String + transaction_not: String + transaction_not_contains: String + transaction_not_contains_nocase: String + transaction_not_ends_with: String + transaction_not_ends_with_nocase: String + transaction_not_in: [String!] + transaction_not_starts_with: String + transaction_not_starts_with_nocase: String + transaction_starts_with: String + transaction_starts_with_nocase: String +} + +enum TokensWithdrawn_orderBy { + amount + blockTimestamp + id + perpetualId + trader + transaction +} + +type Trade { + blockTimestamp: BigInt! + id: ID! + isClose: Boolean! + limitPrice: BigInt! + newPositionSizeBC: BigInt! + orderDigest: Bytes! + orderFlags: BigInt! + perpetual: Perpetual! + position: Position! + price: BigInt! + tradeAmountBC: BigInt! + trader: Trader! + traderState: TraderState! + transaction: Transaction! +} + +input Trade_filter { + """ + Filter for the block changed event. + """ + _change_block: BlockChangedFilter + blockTimestamp: BigInt + blockTimestamp_gt: BigInt + blockTimestamp_gte: BigInt + blockTimestamp_in: [BigInt!] + blockTimestamp_lt: BigInt + blockTimestamp_lte: BigInt + blockTimestamp_not: BigInt + blockTimestamp_not_in: [BigInt!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + isClose: Boolean + isClose_in: [Boolean!] + isClose_not: Boolean + isClose_not_in: [Boolean!] + limitPrice: BigInt + limitPrice_gt: BigInt + limitPrice_gte: BigInt + limitPrice_in: [BigInt!] + limitPrice_lt: BigInt + limitPrice_lte: BigInt + limitPrice_not: BigInt + limitPrice_not_in: [BigInt!] + newPositionSizeBC: BigInt + newPositionSizeBC_gt: BigInt + newPositionSizeBC_gte: BigInt + newPositionSizeBC_in: [BigInt!] + newPositionSizeBC_lt: BigInt + newPositionSizeBC_lte: BigInt + newPositionSizeBC_not: BigInt + newPositionSizeBC_not_in: [BigInt!] + orderDigest: Bytes + orderDigest_contains: Bytes + orderDigest_in: [Bytes!] + orderDigest_not: Bytes + orderDigest_not_contains: Bytes + orderDigest_not_in: [Bytes!] + orderFlags: BigInt + orderFlags_gt: BigInt + orderFlags_gte: BigInt + orderFlags_in: [BigInt!] + orderFlags_lt: BigInt + orderFlags_lte: BigInt + orderFlags_not: BigInt + orderFlags_not_in: [BigInt!] + perpetual: String + perpetual_: Perpetual_filter + perpetual_contains: String + perpetual_contains_nocase: String + perpetual_ends_with: String + perpetual_ends_with_nocase: String + perpetual_gt: String + perpetual_gte: String + perpetual_in: [String!] + perpetual_lt: String + perpetual_lte: String + perpetual_not: String + perpetual_not_contains: String + perpetual_not_contains_nocase: String + perpetual_not_ends_with: String + perpetual_not_ends_with_nocase: String + perpetual_not_in: [String!] + perpetual_not_starts_with: String + perpetual_not_starts_with_nocase: String + perpetual_starts_with: String + perpetual_starts_with_nocase: String + position: String + position_: Position_filter + position_contains: String + position_contains_nocase: String + position_ends_with: String + position_ends_with_nocase: String + position_gt: String + position_gte: String + position_in: [String!] + position_lt: String + position_lte: String + position_not: String + position_not_contains: String + position_not_contains_nocase: String + position_not_ends_with: String + position_not_ends_with_nocase: String + position_not_in: [String!] + position_not_starts_with: String + position_not_starts_with_nocase: String + position_starts_with: String + position_starts_with_nocase: String + price: BigInt + price_gt: BigInt + price_gte: BigInt + price_in: [BigInt!] + price_lt: BigInt + price_lte: BigInt + price_not: BigInt + price_not_in: [BigInt!] + tradeAmountBC: BigInt + tradeAmountBC_gt: BigInt + tradeAmountBC_gte: BigInt + tradeAmountBC_in: [BigInt!] + tradeAmountBC_lt: BigInt + tradeAmountBC_lte: BigInt + tradeAmountBC_not: BigInt + tradeAmountBC_not_in: [BigInt!] + trader: String + traderState: String + traderState_: TraderState_filter + traderState_contains: String + traderState_contains_nocase: String + traderState_ends_with: String + traderState_ends_with_nocase: String + traderState_gt: String + traderState_gte: String + traderState_in: [String!] + traderState_lt: String + traderState_lte: String + traderState_not: String + traderState_not_contains: String + traderState_not_contains_nocase: String + traderState_not_ends_with: String + traderState_not_ends_with_nocase: String + traderState_not_in: [String!] + traderState_not_starts_with: String + traderState_not_starts_with_nocase: String + traderState_starts_with: String + traderState_starts_with_nocase: String + trader_: Trader_filter + trader_contains: String + trader_contains_nocase: String + trader_ends_with: String + trader_ends_with_nocase: String + trader_gt: String + trader_gte: String + trader_in: [String!] + trader_lt: String + trader_lte: String + trader_not: String + trader_not_contains: String + trader_not_contains_nocase: String + trader_not_ends_with: String + trader_not_ends_with_nocase: String + trader_not_in: [String!] + trader_not_starts_with: String + trader_not_starts_with_nocase: String + trader_starts_with: String + trader_starts_with_nocase: String + transaction: String + transaction_: Transaction_filter + transaction_contains: String + transaction_contains_nocase: String + transaction_ends_with: String + transaction_ends_with_nocase: String + transaction_gt: String + transaction_gte: String + transaction_in: [String!] + transaction_lt: String + transaction_lte: String + transaction_not: String + transaction_not_contains: String + transaction_not_contains_nocase: String + transaction_not_ends_with: String + transaction_not_ends_with_nocase: String + transaction_not_in: [String!] + transaction_not_starts_with: String + transaction_not_starts_with_nocase: String + transaction_starts_with: String + transaction_starts_with_nocase: String +} + +enum Trade_orderBy { + blockTimestamp + id + isClose + limitPrice + newPositionSizeBC + orderDigest + orderFlags + perpetual + position + price + tradeAmountBC + trader + traderState + transaction +} + +type Trader { + distributeFees( + first: Int = 100 + orderBy: DistributeFee_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: DistributeFee_filter + ): [DistributeFee!] + fundingPayments( + first: Int = 100 + orderBy: FundingPayment_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: FundingPayment_filter + ): [FundingPayment!] + fundingRates( + first: Int = 100 + orderBy: FundingRate_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: FundingRate_filter + ): [FundingRate!] + fundingRatesTotalCount: Int + id: ID! + limitOrders( + first: Int = 100 + orderBy: LimitOrder_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: LimitOrder_filter + ): [LimitOrder!] + liquidates( + first: Int = 100 + orderBy: Liquidate_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: Liquidate_filter + ): [Liquidate!] + liquidator( + first: Int = 100 + orderBy: Liquidate_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: Liquidate_filter + ): [Liquidate!] + liquidityAdded( + first: Int = 100 + orderBy: LiquidityAdded_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: LiquidityAdded_filter + ): [LiquidityAdded!] + liquidityRemoved( + first: Int = 100 + orderBy: LiquidityRemoved_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: LiquidityRemoved_filter + ): [LiquidityRemoved!] + positions( + first: Int = 100 + orderBy: Position_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: Position_filter + ): [Position!] + positionsTotalCount: Int + realizedPnLs( + first: Int = 100 + orderBy: RealizedPnL_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: RealizedPnL_filter + ): [RealizedPnL!] + settles( + first: Int = 100 + orderBy: Settle_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: Settle_filter + ): [Settle!] + tokensDeposits( + first: Int = 100 + orderBy: TokensDeposited_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: TokensDeposited_filter + ): [TokensDeposited!] + tokensWithdraws( + first: Int = 100 + orderBy: TokensWithdrawn_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: TokensWithdrawn_filter + ): [TokensWithdrawn!] + totalFundingPaymentCC: BigInt! + traderPool( + first: Int = 100 + orderBy: TraderPool_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: TraderPool_filter + ): [TraderPool!] + traderStates( + first: Int = 100 + orderBy: TraderState_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: TraderState_filter + ): [TraderState!] + trades( + first: Int = 100 + orderBy: Trade_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: Trade_filter + ): [Trade!] + tradesTotalCount: Int + updateMarginAccount( + first: Int = 100 + orderBy: UpdateMarginAccount_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: UpdateMarginAccount_filter + ): [UpdateMarginAccount!] +} + +type TraderPool { + id: ID! + liquidityPool: LiquidityPool! + totalLiquidityAddedAmountCC: BigInt! + totalShareAddedAmountCC: BigInt! + trader: Trader! +} + +input TraderPool_filter { + """ + Filter for the block changed event. + """ + _change_block: BlockChangedFilter + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + liquidityPool: String + liquidityPool_: LiquidityPool_filter + liquidityPool_contains: String + liquidityPool_contains_nocase: String + liquidityPool_ends_with: String + liquidityPool_ends_with_nocase: String + liquidityPool_gt: String + liquidityPool_gte: String + liquidityPool_in: [String!] + liquidityPool_lt: String + liquidityPool_lte: String + liquidityPool_not: String + liquidityPool_not_contains: String + liquidityPool_not_contains_nocase: String + liquidityPool_not_ends_with: String + liquidityPool_not_ends_with_nocase: String + liquidityPool_not_in: [String!] + liquidityPool_not_starts_with: String + liquidityPool_not_starts_with_nocase: String + liquidityPool_starts_with: String + liquidityPool_starts_with_nocase: String + totalLiquidityAddedAmountCC: BigInt + totalLiquidityAddedAmountCC_gt: BigInt + totalLiquidityAddedAmountCC_gte: BigInt + totalLiquidityAddedAmountCC_in: [BigInt!] + totalLiquidityAddedAmountCC_lt: BigInt + totalLiquidityAddedAmountCC_lte: BigInt + totalLiquidityAddedAmountCC_not: BigInt + totalLiquidityAddedAmountCC_not_in: [BigInt!] + totalShareAddedAmountCC: BigInt + totalShareAddedAmountCC_gt: BigInt + totalShareAddedAmountCC_gte: BigInt + totalShareAddedAmountCC_in: [BigInt!] + totalShareAddedAmountCC_lt: BigInt + totalShareAddedAmountCC_lte: BigInt + totalShareAddedAmountCC_not: BigInt + totalShareAddedAmountCC_not_in: [BigInt!] + trader: String + trader_: Trader_filter + trader_contains: String + trader_contains_nocase: String + trader_ends_with: String + trader_ends_with_nocase: String + trader_gt: String + trader_gte: String + trader_in: [String!] + trader_lt: String + trader_lte: String + trader_not: String + trader_not_contains: String + trader_not_contains_nocase: String + trader_not_ends_with: String + trader_not_ends_with_nocase: String + trader_not_in: [String!] + trader_not_starts_with: String + trader_not_starts_with_nocase: String + trader_starts_with: String + trader_starts_with_nocase: String +} + +enum TraderPool_orderBy { + id + liquidityPool + totalLiquidityAddedAmountCC + totalShareAddedAmountCC + trader +} + +type TraderState { + amountSettled: BigInt! + availableCashCC: BigInt! + availableMarginCC: BigInt! + balance: BigInt! + blockTimestamp: BigInt! + capitalUsed: BigInt! + fUnitAccumulatedFundingStart: BigInt! + fundingRatesTotalCount: Int! + id: ID! + liquidatorTotalAmount: BigInt! + marginAccountCashCC: BigInt! + marginAccountLockedInValueQC: BigInt! + marginAccountPositionBC: BigInt! + marginBalanceCC: BigInt! + perpetual: Perpetual! + positions( + first: Int = 100 + orderBy: Position_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: Position_filter + ): [Position!]! + positionsTotalCount: Int! + state: String! + totalAmountLiquidated: BigInt! + totalAmountTraded: BigInt! + totalFees: BigInt! + totalPnLCC: BigInt! + trader: Trader! + trades( + first: Int = 100 + orderBy: Trade_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: Trade_filter + ): [Trade!] + tradesTotalCount: Int! +} + +input TraderState_filter { + """ + Filter for the block changed event. + """ + _change_block: BlockChangedFilter + amountSettled: BigInt + amountSettled_gt: BigInt + amountSettled_gte: BigInt + amountSettled_in: [BigInt!] + amountSettled_lt: BigInt + amountSettled_lte: BigInt + amountSettled_not: BigInt + amountSettled_not_in: [BigInt!] + availableCashCC: BigInt + availableCashCC_gt: BigInt + availableCashCC_gte: BigInt + availableCashCC_in: [BigInt!] + availableCashCC_lt: BigInt + availableCashCC_lte: BigInt + availableCashCC_not: BigInt + availableCashCC_not_in: [BigInt!] + availableMarginCC: BigInt + availableMarginCC_gt: BigInt + availableMarginCC_gte: BigInt + availableMarginCC_in: [BigInt!] + availableMarginCC_lt: BigInt + availableMarginCC_lte: BigInt + availableMarginCC_not: BigInt + availableMarginCC_not_in: [BigInt!] + balance: BigInt + balance_gt: BigInt + balance_gte: BigInt + balance_in: [BigInt!] + balance_lt: BigInt + balance_lte: BigInt + balance_not: BigInt + balance_not_in: [BigInt!] + blockTimestamp: BigInt + blockTimestamp_gt: BigInt + blockTimestamp_gte: BigInt + blockTimestamp_in: [BigInt!] + blockTimestamp_lt: BigInt + blockTimestamp_lte: BigInt + blockTimestamp_not: BigInt + blockTimestamp_not_in: [BigInt!] + capitalUsed: BigInt + capitalUsed_gt: BigInt + capitalUsed_gte: BigInt + capitalUsed_in: [BigInt!] + capitalUsed_lt: BigInt + capitalUsed_lte: BigInt + capitalUsed_not: BigInt + capitalUsed_not_in: [BigInt!] + fUnitAccumulatedFundingStart: BigInt + fUnitAccumulatedFundingStart_gt: BigInt + fUnitAccumulatedFundingStart_gte: BigInt + fUnitAccumulatedFundingStart_in: [BigInt!] + fUnitAccumulatedFundingStart_lt: BigInt + fUnitAccumulatedFundingStart_lte: BigInt + fUnitAccumulatedFundingStart_not: BigInt + fUnitAccumulatedFundingStart_not_in: [BigInt!] + fundingRatesTotalCount: Int + fundingRatesTotalCount_gt: Int + fundingRatesTotalCount_gte: Int + fundingRatesTotalCount_in: [Int!] + fundingRatesTotalCount_lt: Int + fundingRatesTotalCount_lte: Int + fundingRatesTotalCount_not: Int + fundingRatesTotalCount_not_in: [Int!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + liquidatorTotalAmount: BigInt + liquidatorTotalAmount_gt: BigInt + liquidatorTotalAmount_gte: BigInt + liquidatorTotalAmount_in: [BigInt!] + liquidatorTotalAmount_lt: BigInt + liquidatorTotalAmount_lte: BigInt + liquidatorTotalAmount_not: BigInt + liquidatorTotalAmount_not_in: [BigInt!] + marginAccountCashCC: BigInt + marginAccountCashCC_gt: BigInt + marginAccountCashCC_gte: BigInt + marginAccountCashCC_in: [BigInt!] + marginAccountCashCC_lt: BigInt + marginAccountCashCC_lte: BigInt + marginAccountCashCC_not: BigInt + marginAccountCashCC_not_in: [BigInt!] + marginAccountLockedInValueQC: BigInt + marginAccountLockedInValueQC_gt: BigInt + marginAccountLockedInValueQC_gte: BigInt + marginAccountLockedInValueQC_in: [BigInt!] + marginAccountLockedInValueQC_lt: BigInt + marginAccountLockedInValueQC_lte: BigInt + marginAccountLockedInValueQC_not: BigInt + marginAccountLockedInValueQC_not_in: [BigInt!] + marginAccountPositionBC: BigInt + marginAccountPositionBC_gt: BigInt + marginAccountPositionBC_gte: BigInt + marginAccountPositionBC_in: [BigInt!] + marginAccountPositionBC_lt: BigInt + marginAccountPositionBC_lte: BigInt + marginAccountPositionBC_not: BigInt + marginAccountPositionBC_not_in: [BigInt!] + marginBalanceCC: BigInt + marginBalanceCC_gt: BigInt + marginBalanceCC_gte: BigInt + marginBalanceCC_in: [BigInt!] + marginBalanceCC_lt: BigInt + marginBalanceCC_lte: BigInt + marginBalanceCC_not: BigInt + marginBalanceCC_not_in: [BigInt!] + perpetual: String + perpetual_: Perpetual_filter + perpetual_contains: String + perpetual_contains_nocase: String + perpetual_ends_with: String + perpetual_ends_with_nocase: String + perpetual_gt: String + perpetual_gte: String + perpetual_in: [String!] + perpetual_lt: String + perpetual_lte: String + perpetual_not: String + perpetual_not_contains: String + perpetual_not_contains_nocase: String + perpetual_not_ends_with: String + perpetual_not_ends_with_nocase: String + perpetual_not_in: [String!] + perpetual_not_starts_with: String + perpetual_not_starts_with_nocase: String + perpetual_starts_with: String + perpetual_starts_with_nocase: String + positionsTotalCount: Int + positionsTotalCount_gt: Int + positionsTotalCount_gte: Int + positionsTotalCount_in: [Int!] + positionsTotalCount_lt: Int + positionsTotalCount_lte: Int + positionsTotalCount_not: Int + positionsTotalCount_not_in: [Int!] + positions_: Position_filter + state: String + state_contains: String + state_contains_nocase: String + state_ends_with: String + state_ends_with_nocase: String + state_gt: String + state_gte: String + state_in: [String!] + state_lt: String + state_lte: String + state_not: String + state_not_contains: String + state_not_contains_nocase: String + state_not_ends_with: String + state_not_ends_with_nocase: String + state_not_in: [String!] + state_not_starts_with: String + state_not_starts_with_nocase: String + state_starts_with: String + state_starts_with_nocase: String + totalAmountLiquidated: BigInt + totalAmountLiquidated_gt: BigInt + totalAmountLiquidated_gte: BigInt + totalAmountLiquidated_in: [BigInt!] + totalAmountLiquidated_lt: BigInt + totalAmountLiquidated_lte: BigInt + totalAmountLiquidated_not: BigInt + totalAmountLiquidated_not_in: [BigInt!] + totalAmountTraded: BigInt + totalAmountTraded_gt: BigInt + totalAmountTraded_gte: BigInt + totalAmountTraded_in: [BigInt!] + totalAmountTraded_lt: BigInt + totalAmountTraded_lte: BigInt + totalAmountTraded_not: BigInt + totalAmountTraded_not_in: [BigInt!] + totalFees: BigInt + totalFees_gt: BigInt + totalFees_gte: BigInt + totalFees_in: [BigInt!] + totalFees_lt: BigInt + totalFees_lte: BigInt + totalFees_not: BigInt + totalFees_not_in: [BigInt!] + totalPnLCC: BigInt + totalPnLCC_gt: BigInt + totalPnLCC_gte: BigInt + totalPnLCC_in: [BigInt!] + totalPnLCC_lt: BigInt + totalPnLCC_lte: BigInt + totalPnLCC_not: BigInt + totalPnLCC_not_in: [BigInt!] + trader: String + trader_: Trader_filter + trader_contains: String + trader_contains_nocase: String + trader_ends_with: String + trader_ends_with_nocase: String + trader_gt: String + trader_gte: String + trader_in: [String!] + trader_lt: String + trader_lte: String + trader_not: String + trader_not_contains: String + trader_not_contains_nocase: String + trader_not_ends_with: String + trader_not_ends_with_nocase: String + trader_not_in: [String!] + trader_not_starts_with: String + trader_not_starts_with_nocase: String + trader_starts_with: String + trader_starts_with_nocase: String + tradesTotalCount: Int + tradesTotalCount_gt: Int + tradesTotalCount_gte: Int + tradesTotalCount_in: [Int!] + tradesTotalCount_lt: Int + tradesTotalCount_lte: Int + tradesTotalCount_not: Int + tradesTotalCount_not_in: [Int!] + trades_: Trade_filter +} + +enum TraderState_orderBy { + amountSettled + availableCashCC + availableMarginCC + balance + blockTimestamp + capitalUsed + fUnitAccumulatedFundingStart + fundingRatesTotalCount + id + liquidatorTotalAmount + marginAccountCashCC + marginAccountLockedInValueQC + marginAccountPositionBC + marginBalanceCC + perpetual + positions + positionsTotalCount + state + totalAmountLiquidated + totalAmountTraded + totalFees + totalPnLCC + trader + trades + tradesTotalCount +} + +input Trader_filter { + """ + Filter for the block changed event. + """ + _change_block: BlockChangedFilter + distributeFees_: DistributeFee_filter + fundingPayments_: FundingPayment_filter + fundingRatesTotalCount: Int + fundingRatesTotalCount_gt: Int + fundingRatesTotalCount_gte: Int + fundingRatesTotalCount_in: [Int!] + fundingRatesTotalCount_lt: Int + fundingRatesTotalCount_lte: Int + fundingRatesTotalCount_not: Int + fundingRatesTotalCount_not_in: [Int!] + fundingRates_: FundingRate_filter + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + limitOrders_: LimitOrder_filter + liquidates_: Liquidate_filter + liquidator_: Liquidate_filter + liquidityAdded_: LiquidityAdded_filter + liquidityRemoved_: LiquidityRemoved_filter + positionsTotalCount: Int + positionsTotalCount_gt: Int + positionsTotalCount_gte: Int + positionsTotalCount_in: [Int!] + positionsTotalCount_lt: Int + positionsTotalCount_lte: Int + positionsTotalCount_not: Int + positionsTotalCount_not_in: [Int!] + positions_: Position_filter + realizedPnLs_: RealizedPnL_filter + settles_: Settle_filter + tokensDeposits_: TokensDeposited_filter + tokensWithdraws_: TokensWithdrawn_filter + totalFundingPaymentCC: BigInt + totalFundingPaymentCC_gt: BigInt + totalFundingPaymentCC_gte: BigInt + totalFundingPaymentCC_in: [BigInt!] + totalFundingPaymentCC_lt: BigInt + totalFundingPaymentCC_lte: BigInt + totalFundingPaymentCC_not: BigInt + totalFundingPaymentCC_not_in: [BigInt!] + traderPool_: TraderPool_filter + traderStates_: TraderState_filter + tradesTotalCount: Int + tradesTotalCount_gt: Int + tradesTotalCount_gte: Int + tradesTotalCount_in: [Int!] + tradesTotalCount_lt: Int + tradesTotalCount_lte: Int + tradesTotalCount_not: Int + tradesTotalCount_not_in: [Int!] + trades_: Trade_filter + updateMarginAccount_: UpdateMarginAccount_filter +} + +enum Trader_orderBy { + distributeFees + fundingPayments + fundingRates + fundingRatesTotalCount + id + limitOrders + liquidates + liquidator + liquidityAdded + liquidityRemoved + positions + positionsTotalCount + realizedPnLs + settles + tokensDeposits + tokensWithdraws + totalFundingPaymentCC + traderPool + traderStates + trades + tradesTotalCount + updateMarginAccount +} + +type Transaction { + atomicYields( + first: Int = 100 + orderBy: AtomicYield_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: AtomicYield_filter + ): [AtomicYield!] + blockNumber: BigInt! + from: Bytes! + gasLimit: BigInt! + gasPrice: BigInt! + id: ID! + index: BigInt! + liquidates( + first: Int = 100 + orderBy: Liquidate_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: Liquidate_filter + ): [Liquidate!] + timestamp: BigInt! + to: Bytes + tokensDeposits( + first: Int = 100 + orderBy: TokensDeposited_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: TokensDeposited_filter + ): [TokensDeposited!] + tokensWithdraws( + first: Int = 100 + orderBy: TokensWithdrawn_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: TokensWithdrawn_filter + ): [TokensWithdrawn!] + trades( + first: Int = 100 + orderBy: Trade_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: Trade_filter + ): [Trade!] + value: BigInt! +} + +input Transaction_filter { + """ + Filter for the block changed event. + """ + _change_block: BlockChangedFilter + atomicYields_: AtomicYield_filter + blockNumber: BigInt + blockNumber_gt: BigInt + blockNumber_gte: BigInt + blockNumber_in: [BigInt!] + blockNumber_lt: BigInt + blockNumber_lte: BigInt + blockNumber_not: BigInt + blockNumber_not_in: [BigInt!] + from: Bytes + from_contains: Bytes + from_in: [Bytes!] + from_not: Bytes + from_not_contains: Bytes + from_not_in: [Bytes!] + gasLimit: BigInt + gasLimit_gt: BigInt + gasLimit_gte: BigInt + gasLimit_in: [BigInt!] + gasLimit_lt: BigInt + gasLimit_lte: BigInt + gasLimit_not: BigInt + gasLimit_not_in: [BigInt!] + gasPrice: BigInt + gasPrice_gt: BigInt + gasPrice_gte: BigInt + gasPrice_in: [BigInt!] + gasPrice_lt: BigInt + gasPrice_lte: BigInt + gasPrice_not: BigInt + gasPrice_not_in: [BigInt!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + index: BigInt + index_gt: BigInt + index_gte: BigInt + index_in: [BigInt!] + index_lt: BigInt + index_lte: BigInt + index_not: BigInt + index_not_in: [BigInt!] + liquidates_: Liquidate_filter + timestamp: BigInt + timestamp_gt: BigInt + timestamp_gte: BigInt + timestamp_in: [BigInt!] + timestamp_lt: BigInt + timestamp_lte: BigInt + timestamp_not: BigInt + timestamp_not_in: [BigInt!] + to: Bytes + to_contains: Bytes + to_in: [Bytes!] + to_not: Bytes + to_not_contains: Bytes + to_not_in: [Bytes!] + tokensDeposits_: TokensDeposited_filter + tokensWithdraws_: TokensWithdrawn_filter + trades_: Trade_filter + value: BigInt + value_gt: BigInt + value_gte: BigInt + value_in: [BigInt!] + value_lt: BigInt + value_lte: BigInt + value_not: BigInt + value_not_in: [BigInt!] +} + +enum Transaction_orderBy { + atomicYields + blockNumber + from + gasLimit + gasPrice + id + index + liquidates + timestamp + to + tokensDeposits + tokensWithdraws + trades + value +} + +type TransferEarningsToTreasury { + _poolId: Int! + blockTimestamp: BigInt! + fEarnings: BigInt! + id: ID! + newDefaultFundSize: BigInt! +} + +input TransferEarningsToTreasury_filter { + """ + Filter for the block changed event. + """ + _change_block: BlockChangedFilter + _poolId: Int + _poolId_gt: Int + _poolId_gte: Int + _poolId_in: [Int!] + _poolId_lt: Int + _poolId_lte: Int + _poolId_not: Int + _poolId_not_in: [Int!] + blockTimestamp: BigInt + blockTimestamp_gt: BigInt + blockTimestamp_gte: BigInt + blockTimestamp_in: [BigInt!] + blockTimestamp_lt: BigInt + blockTimestamp_lte: BigInt + blockTimestamp_not: BigInt + blockTimestamp_not_in: [BigInt!] + fEarnings: BigInt + fEarnings_gt: BigInt + fEarnings_gte: BigInt + fEarnings_in: [BigInt!] + fEarnings_lt: BigInt + fEarnings_lte: BigInt + fEarnings_not: BigInt + fEarnings_not_in: [BigInt!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + newDefaultFundSize: BigInt + newDefaultFundSize_gt: BigInt + newDefaultFundSize_gte: BigInt + newDefaultFundSize_in: [BigInt!] + newDefaultFundSize_lt: BigInt + newDefaultFundSize_lte: BigInt + newDefaultFundSize_not: BigInt + newDefaultFundSize_not_in: [BigInt!] +} + +enum TransferEarningsToTreasury_orderBy { + _poolId + blockTimestamp + fEarnings + id + newDefaultFundSize +} + +type TransferFeeToReferrer { + id: ID! + perpetualId: Bytes! + referralRebate: BigInt! + referrer: Bytes! + trader: Bytes! +} + +input TransferFeeToReferrer_filter { + """ + Filter for the block changed event. + """ + _change_block: BlockChangedFilter + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + perpetualId: Bytes + perpetualId_contains: Bytes + perpetualId_in: [Bytes!] + perpetualId_not: Bytes + perpetualId_not_contains: Bytes + perpetualId_not_in: [Bytes!] + referralRebate: BigInt + referralRebate_gt: BigInt + referralRebate_gte: BigInt + referralRebate_in: [BigInt!] + referralRebate_lt: BigInt + referralRebate_lte: BigInt + referralRebate_not: BigInt + referralRebate_not_in: [BigInt!] + referrer: Bytes + referrer_contains: Bytes + referrer_in: [Bytes!] + referrer_not: Bytes + referrer_not_contains: Bytes + referrer_not_in: [Bytes!] + trader: Bytes + trader_contains: Bytes + trader_in: [Bytes!] + trader_not: Bytes + trader_not_contains: Bytes + trader_not_in: [Bytes!] +} + +enum TransferFeeToReferrer_orderBy { + id + perpetualId + referralRebate + referrer + trader +} + +type TransferTreasuryTo { + id: ID! + newTreasury: Bytes! + oldTreasury: Bytes! + poolId: BigInt! +} + +input TransferTreasuryTo_filter { + """ + Filter for the block changed event. + """ + _change_block: BlockChangedFilter + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + newTreasury: Bytes + newTreasury_contains: Bytes + newTreasury_in: [Bytes!] + newTreasury_not: Bytes + newTreasury_not_contains: Bytes + newTreasury_not_in: [Bytes!] + oldTreasury: Bytes + oldTreasury_contains: Bytes + oldTreasury_in: [Bytes!] + oldTreasury_not: Bytes + oldTreasury_not_contains: Bytes + oldTreasury_not_in: [Bytes!] + poolId: BigInt + poolId_gt: BigInt + poolId_gte: BigInt + poolId_in: [BigInt!] + poolId_lt: BigInt + poolId_lte: BigInt + poolId_not: BigInt + poolId_not_in: [BigInt!] +} + +enum TransferTreasuryTo_orderBy { + id + newTreasury + oldTreasury + poolId +} + +type UpdateAMMFundCash { + blockTimestamp: BigInt! + fNewAMMFundCash: BigInt! + fNewLiqPoolTotalAMMFundsCash: BigInt! + id: ID! + perpetualId: Bytes! +} + +input UpdateAMMFundCash_filter { + """ + Filter for the block changed event. + """ + _change_block: BlockChangedFilter + blockTimestamp: BigInt + blockTimestamp_gt: BigInt + blockTimestamp_gte: BigInt + blockTimestamp_in: [BigInt!] + blockTimestamp_lt: BigInt + blockTimestamp_lte: BigInt + blockTimestamp_not: BigInt + blockTimestamp_not_in: [BigInt!] + fNewAMMFundCash: BigInt + fNewAMMFundCash_gt: BigInt + fNewAMMFundCash_gte: BigInt + fNewAMMFundCash_in: [BigInt!] + fNewAMMFundCash_lt: BigInt + fNewAMMFundCash_lte: BigInt + fNewAMMFundCash_not: BigInt + fNewAMMFundCash_not_in: [BigInt!] + fNewLiqPoolTotalAMMFundsCash: BigInt + fNewLiqPoolTotalAMMFundsCash_gt: BigInt + fNewLiqPoolTotalAMMFundsCash_gte: BigInt + fNewLiqPoolTotalAMMFundsCash_in: [BigInt!] + fNewLiqPoolTotalAMMFundsCash_lt: BigInt + fNewLiqPoolTotalAMMFundsCash_lte: BigInt + fNewLiqPoolTotalAMMFundsCash_not: BigInt + fNewLiqPoolTotalAMMFundsCash_not_in: [BigInt!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + perpetualId: Bytes + perpetualId_contains: Bytes + perpetualId_in: [Bytes!] + perpetualId_not: Bytes + perpetualId_not_contains: Bytes + perpetualId_not_in: [Bytes!] +} + +enum UpdateAMMFundCash_orderBy { + blockTimestamp + fNewAMMFundCash + fNewLiqPoolTotalAMMFundsCash + id + perpetualId +} + +type UpdateAMMFundTargetSize { + blockTimestamp: BigInt! + fAMMFundCashCCInPerpetual: BigInt! + fAMMFundCashCCInPool: BigInt! + fTargetAMMFundSizeInPerpetual: BigInt! + fTargetAMMFundSizeInPool: BigInt! + id: ID! + liquidityPoolId: Int! + perpetualId: Bytes! +} + +input UpdateAMMFundTargetSize_filter { + """ + Filter for the block changed event. + """ + _change_block: BlockChangedFilter + blockTimestamp: BigInt + blockTimestamp_gt: BigInt + blockTimestamp_gte: BigInt + blockTimestamp_in: [BigInt!] + blockTimestamp_lt: BigInt + blockTimestamp_lte: BigInt + blockTimestamp_not: BigInt + blockTimestamp_not_in: [BigInt!] + fAMMFundCashCCInPerpetual: BigInt + fAMMFundCashCCInPerpetual_gt: BigInt + fAMMFundCashCCInPerpetual_gte: BigInt + fAMMFundCashCCInPerpetual_in: [BigInt!] + fAMMFundCashCCInPerpetual_lt: BigInt + fAMMFundCashCCInPerpetual_lte: BigInt + fAMMFundCashCCInPerpetual_not: BigInt + fAMMFundCashCCInPerpetual_not_in: [BigInt!] + fAMMFundCashCCInPool: BigInt + fAMMFundCashCCInPool_gt: BigInt + fAMMFundCashCCInPool_gte: BigInt + fAMMFundCashCCInPool_in: [BigInt!] + fAMMFundCashCCInPool_lt: BigInt + fAMMFundCashCCInPool_lte: BigInt + fAMMFundCashCCInPool_not: BigInt + fAMMFundCashCCInPool_not_in: [BigInt!] + fTargetAMMFundSizeInPerpetual: BigInt + fTargetAMMFundSizeInPerpetual_gt: BigInt + fTargetAMMFundSizeInPerpetual_gte: BigInt + fTargetAMMFundSizeInPerpetual_in: [BigInt!] + fTargetAMMFundSizeInPerpetual_lt: BigInt + fTargetAMMFundSizeInPerpetual_lte: BigInt + fTargetAMMFundSizeInPerpetual_not: BigInt + fTargetAMMFundSizeInPerpetual_not_in: [BigInt!] + fTargetAMMFundSizeInPool: BigInt + fTargetAMMFundSizeInPool_gt: BigInt + fTargetAMMFundSizeInPool_gte: BigInt + fTargetAMMFundSizeInPool_in: [BigInt!] + fTargetAMMFundSizeInPool_lt: BigInt + fTargetAMMFundSizeInPool_lte: BigInt + fTargetAMMFundSizeInPool_not: BigInt + fTargetAMMFundSizeInPool_not_in: [BigInt!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + liquidityPoolId: Int + liquidityPoolId_gt: Int + liquidityPoolId_gte: Int + liquidityPoolId_in: [Int!] + liquidityPoolId_lt: Int + liquidityPoolId_lte: Int + liquidityPoolId_not: Int + liquidityPoolId_not_in: [Int!] + perpetualId: Bytes + perpetualId_contains: Bytes + perpetualId_in: [Bytes!] + perpetualId_not: Bytes + perpetualId_not_contains: Bytes + perpetualId_not_in: [Bytes!] +} + +enum UpdateAMMFundTargetSize_orderBy { + blockTimestamp + fAMMFundCashCCInPerpetual + fAMMFundCashCCInPool + fTargetAMMFundSizeInPerpetual + fTargetAMMFundSizeInPool + id + liquidityPoolId + perpetualId +} + +type UpdateDefaultFundCash { + fDeltaAmountCC: BigInt! + fNewFundCash: BigInt! + id: ID! + poolId: Int! +} + +input UpdateDefaultFundCash_filter { + """ + Filter for the block changed event. + """ + _change_block: BlockChangedFilter + fDeltaAmountCC: BigInt + fDeltaAmountCC_gt: BigInt + fDeltaAmountCC_gte: BigInt + fDeltaAmountCC_in: [BigInt!] + fDeltaAmountCC_lt: BigInt + fDeltaAmountCC_lte: BigInt + fDeltaAmountCC_not: BigInt + fDeltaAmountCC_not_in: [BigInt!] + fNewFundCash: BigInt + fNewFundCash_gt: BigInt + fNewFundCash_gte: BigInt + fNewFundCash_in: [BigInt!] + fNewFundCash_lt: BigInt + fNewFundCash_lte: BigInt + fNewFundCash_not: BigInt + fNewFundCash_not_in: [BigInt!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + poolId: Int + poolId_gt: Int + poolId_gte: Int + poolId_in: [Int!] + poolId_lt: Int + poolId_lte: Int + poolId_not: Int + poolId_not_in: [Int!] +} + +enum UpdateDefaultFundCash_orderBy { + fDeltaAmountCC + fNewFundCash + id + poolId +} + +type UpdateDefaultFundTargetSize { + blockTimestamp: BigInt! + fDefaultFundCashCC: BigInt! + fTargetDFSize: BigInt! + id: ID! + liquidityPoolId: Int! +} + +input UpdateDefaultFundTargetSize_filter { + """ + Filter for the block changed event. + """ + _change_block: BlockChangedFilter + blockTimestamp: BigInt + blockTimestamp_gt: BigInt + blockTimestamp_gte: BigInt + blockTimestamp_in: [BigInt!] + blockTimestamp_lt: BigInt + blockTimestamp_lte: BigInt + blockTimestamp_not: BigInt + blockTimestamp_not_in: [BigInt!] + fDefaultFundCashCC: BigInt + fDefaultFundCashCC_gt: BigInt + fDefaultFundCashCC_gte: BigInt + fDefaultFundCashCC_in: [BigInt!] + fDefaultFundCashCC_lt: BigInt + fDefaultFundCashCC_lte: BigInt + fDefaultFundCashCC_not: BigInt + fDefaultFundCashCC_not_in: [BigInt!] + fTargetDFSize: BigInt + fTargetDFSize_gt: BigInt + fTargetDFSize_gte: BigInt + fTargetDFSize_in: [BigInt!] + fTargetDFSize_lt: BigInt + fTargetDFSize_lte: BigInt + fTargetDFSize_not: BigInt + fTargetDFSize_not_in: [BigInt!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + liquidityPoolId: Int + liquidityPoolId_gt: Int + liquidityPoolId_gte: Int + liquidityPoolId_in: [Int!] + liquidityPoolId_lt: Int + liquidityPoolId_lte: Int + liquidityPoolId_not: Int + liquidityPoolId_not_in: [Int!] +} + +enum UpdateDefaultFundTargetSize_orderBy { + blockTimestamp + fDefaultFundCashCC + fTargetDFSize + id + liquidityPoolId +} + +type UpdateFundingRate { + blockTimestamp: BigInt! + fFundingRate: BigInt! + id: ID! + perpetualId: Bytes! +} + +input UpdateFundingRate_filter { + """ + Filter for the block changed event. + """ + _change_block: BlockChangedFilter + blockTimestamp: BigInt + blockTimestamp_gt: BigInt + blockTimestamp_gte: BigInt + blockTimestamp_in: [BigInt!] + blockTimestamp_lt: BigInt + blockTimestamp_lte: BigInt + blockTimestamp_not: BigInt + blockTimestamp_not_in: [BigInt!] + fFundingRate: BigInt + fFundingRate_gt: BigInt + fFundingRate_gte: BigInt + fFundingRate_in: [BigInt!] + fFundingRate_lt: BigInt + fFundingRate_lte: BigInt + fFundingRate_not: BigInt + fFundingRate_not_in: [BigInt!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + perpetualId: Bytes + perpetualId_contains: Bytes + perpetualId_in: [Bytes!] + perpetualId_not: Bytes + perpetualId_not_contains: Bytes + perpetualId_not_in: [Bytes!] +} + +enum UpdateFundingRate_orderBy { + blockTimestamp + fFundingRate + id + perpetualId +} + +type UpdateMarginAccount { + blockTimestamp: BigInt! + fCashCC: BigInt! + fFundingPaymentCC: BigInt! + fLockedInValueQC: BigInt! + fOpenInterestBC: BigInt! + fPositionBC: BigInt! + id: ID! + perpetualId: Bytes! + positionId: Bytes! + trader: Trader +} + +input UpdateMarginAccount_filter { + """ + Filter for the block changed event. + """ + _change_block: BlockChangedFilter + blockTimestamp: BigInt + blockTimestamp_gt: BigInt + blockTimestamp_gte: BigInt + blockTimestamp_in: [BigInt!] + blockTimestamp_lt: BigInt + blockTimestamp_lte: BigInt + blockTimestamp_not: BigInt + blockTimestamp_not_in: [BigInt!] + fCashCC: BigInt + fCashCC_gt: BigInt + fCashCC_gte: BigInt + fCashCC_in: [BigInt!] + fCashCC_lt: BigInt + fCashCC_lte: BigInt + fCashCC_not: BigInt + fCashCC_not_in: [BigInt!] + fFundingPaymentCC: BigInt + fFundingPaymentCC_gt: BigInt + fFundingPaymentCC_gte: BigInt + fFundingPaymentCC_in: [BigInt!] + fFundingPaymentCC_lt: BigInt + fFundingPaymentCC_lte: BigInt + fFundingPaymentCC_not: BigInt + fFundingPaymentCC_not_in: [BigInt!] + fLockedInValueQC: BigInt + fLockedInValueQC_gt: BigInt + fLockedInValueQC_gte: BigInt + fLockedInValueQC_in: [BigInt!] + fLockedInValueQC_lt: BigInt + fLockedInValueQC_lte: BigInt + fLockedInValueQC_not: BigInt + fLockedInValueQC_not_in: [BigInt!] + fOpenInterestBC: BigInt + fOpenInterestBC_gt: BigInt + fOpenInterestBC_gte: BigInt + fOpenInterestBC_in: [BigInt!] + fOpenInterestBC_lt: BigInt + fOpenInterestBC_lte: BigInt + fOpenInterestBC_not: BigInt + fOpenInterestBC_not_in: [BigInt!] + fPositionBC: BigInt + fPositionBC_gt: BigInt + fPositionBC_gte: BigInt + fPositionBC_in: [BigInt!] + fPositionBC_lt: BigInt + fPositionBC_lte: BigInt + fPositionBC_not: BigInt + fPositionBC_not_in: [BigInt!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + perpetualId: Bytes + perpetualId_contains: Bytes + perpetualId_in: [Bytes!] + perpetualId_not: Bytes + perpetualId_not_contains: Bytes + perpetualId_not_in: [Bytes!] + positionId: Bytes + positionId_contains: Bytes + positionId_in: [Bytes!] + positionId_not: Bytes + positionId_not_contains: Bytes + positionId_not_in: [Bytes!] + trader: String + trader_: Trader_filter + trader_contains: String + trader_contains_nocase: String + trader_ends_with: String + trader_ends_with_nocase: String + trader_gt: String + trader_gte: String + trader_in: [String!] + trader_lt: String + trader_lte: String + trader_not: String + trader_not_contains: String + trader_not_contains_nocase: String + trader_not_ends_with: String + trader_not_ends_with_nocase: String + trader_not_in: [String!] + trader_not_starts_with: String + trader_not_starts_with_nocase: String + trader_starts_with: String + trader_starts_with_nocase: String +} + +enum UpdateMarginAccount_orderBy { + blockTimestamp + fCashCC + fFundingPaymentCC + fLockedInValueQC + fOpenInterestBC + fPositionBC + id + perpetualId + positionId + trader +} + +type UpdateMarkPrice { + blockTimestamp: BigInt! + fMarkPricePremium: BigInt! + fSpotIndexPrice: BigInt! + id: ID! + perpetualId: Bytes! +} + +input UpdateMarkPrice_filter { + """ + Filter for the block changed event. + """ + _change_block: BlockChangedFilter + blockTimestamp: BigInt + blockTimestamp_gt: BigInt + blockTimestamp_gte: BigInt + blockTimestamp_in: [BigInt!] + blockTimestamp_lt: BigInt + blockTimestamp_lte: BigInt + blockTimestamp_not: BigInt + blockTimestamp_not_in: [BigInt!] + fMarkPricePremium: BigInt + fMarkPricePremium_gt: BigInt + fMarkPricePremium_gte: BigInt + fMarkPricePremium_in: [BigInt!] + fMarkPricePremium_lt: BigInt + fMarkPricePremium_lte: BigInt + fMarkPricePremium_not: BigInt + fMarkPricePremium_not_in: [BigInt!] + fSpotIndexPrice: BigInt + fSpotIndexPrice_gt: BigInt + fSpotIndexPrice_gte: BigInt + fSpotIndexPrice_in: [BigInt!] + fSpotIndexPrice_lt: BigInt + fSpotIndexPrice_lte: BigInt + fSpotIndexPrice_not: BigInt + fSpotIndexPrice_not_in: [BigInt!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + perpetualId: Bytes + perpetualId_contains: Bytes + perpetualId_in: [Bytes!] + perpetualId_not: Bytes + perpetualId_not_contains: Bytes + perpetualId_not_in: [Bytes!] +} + +enum UpdateMarkPrice_orderBy { + blockTimestamp + fMarkPricePremium + fSpotIndexPrice + id + perpetualId +} + +type UpdateParticipationFundCash { + blockTimestamp: BigInt! + fDeltaAmountCC: BigInt! + fNewFundCash: BigInt! + id: ID! + poolId: Int! +} + +input UpdateParticipationFundCash_filter { + """ + Filter for the block changed event. + """ + _change_block: BlockChangedFilter + blockTimestamp: BigInt + blockTimestamp_gt: BigInt + blockTimestamp_gte: BigInt + blockTimestamp_in: [BigInt!] + blockTimestamp_lt: BigInt + blockTimestamp_lte: BigInt + blockTimestamp_not: BigInt + blockTimestamp_not_in: [BigInt!] + fDeltaAmountCC: BigInt + fDeltaAmountCC_gt: BigInt + fDeltaAmountCC_gte: BigInt + fDeltaAmountCC_in: [BigInt!] + fDeltaAmountCC_lt: BigInt + fDeltaAmountCC_lte: BigInt + fDeltaAmountCC_not: BigInt + fDeltaAmountCC_not_in: [BigInt!] + fNewFundCash: BigInt + fNewFundCash_gt: BigInt + fNewFundCash_gte: BigInt + fNewFundCash_in: [BigInt!] + fNewFundCash_lt: BigInt + fNewFundCash_lte: BigInt + fNewFundCash_not: BigInt + fNewFundCash_not_in: [BigInt!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + poolId: Int + poolId_gt: Int + poolId_gte: Int + poolId_in: [Int!] + poolId_lt: Int + poolId_lte: Int + poolId_not: Int + poolId_not_in: [Int!] +} + +enum UpdateParticipationFundCash_orderBy { + blockTimestamp + fDeltaAmountCC + fNewFundCash + id + poolId +} + +type UpdatePrice { + id: ID! + oracleS2Addr: Bytes! + oracleS3Addr: Bytes! + perpetualId: Bytes! + spotPriceS2: BigInt! + spotPriceS3: BigInt! + timePriceS2: BigInt! + timePriceS3: BigInt! +} + +input UpdatePrice_filter { + """ + Filter for the block changed event. + """ + _change_block: BlockChangedFilter + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + oracleS2Addr: Bytes + oracleS2Addr_contains: Bytes + oracleS2Addr_in: [Bytes!] + oracleS2Addr_not: Bytes + oracleS2Addr_not_contains: Bytes + oracleS2Addr_not_in: [Bytes!] + oracleS3Addr: Bytes + oracleS3Addr_contains: Bytes + oracleS3Addr_in: [Bytes!] + oracleS3Addr_not: Bytes + oracleS3Addr_not_contains: Bytes + oracleS3Addr_not_in: [Bytes!] + perpetualId: Bytes + perpetualId_contains: Bytes + perpetualId_in: [Bytes!] + perpetualId_not: Bytes + perpetualId_not_contains: Bytes + perpetualId_not_in: [Bytes!] + spotPriceS2: BigInt + spotPriceS2_gt: BigInt + spotPriceS2_gte: BigInt + spotPriceS2_in: [BigInt!] + spotPriceS2_lt: BigInt + spotPriceS2_lte: BigInt + spotPriceS2_not: BigInt + spotPriceS2_not_in: [BigInt!] + spotPriceS3: BigInt + spotPriceS3_gt: BigInt + spotPriceS3_gte: BigInt + spotPriceS3_in: [BigInt!] + spotPriceS3_lt: BigInt + spotPriceS3_lte: BigInt + spotPriceS3_not: BigInt + spotPriceS3_not_in: [BigInt!] + timePriceS2: BigInt + timePriceS2_gt: BigInt + timePriceS2_gte: BigInt + timePriceS2_in: [BigInt!] + timePriceS2_lt: BigInt + timePriceS2_lte: BigInt + timePriceS2_not: BigInt + timePriceS2_not_in: [BigInt!] + timePriceS3: BigInt + timePriceS3_gt: BigInt + timePriceS3_gte: BigInt + timePriceS3_in: [BigInt!] + timePriceS3_lt: BigInt + timePriceS3_lte: BigInt + timePriceS3_not: BigInt + timePriceS3_not_in: [BigInt!] +} + +enum UpdatePrice_orderBy { + id + oracleS2Addr + oracleS3Addr + perpetualId + spotPriceS2 + spotPriceS3 + timePriceS2 + timePriceS3 +} + +type UpdateReprTradeSizes { + blockTimestamp: BigInt! + fCurrentAMMExposureEMALong: BigInt! + fCurrentAMMExposureEMAShort: BigInt! + fCurrentTraderExposureEMA: BigInt! + id: ID! + perpetualId: Bytes! +} + +input UpdateReprTradeSizes_filter { + """ + Filter for the block changed event. + """ + _change_block: BlockChangedFilter + blockTimestamp: BigInt + blockTimestamp_gt: BigInt + blockTimestamp_gte: BigInt + blockTimestamp_in: [BigInt!] + blockTimestamp_lt: BigInt + blockTimestamp_lte: BigInt + blockTimestamp_not: BigInt + blockTimestamp_not_in: [BigInt!] + fCurrentAMMExposureEMALong: BigInt + fCurrentAMMExposureEMALong_gt: BigInt + fCurrentAMMExposureEMALong_gte: BigInt + fCurrentAMMExposureEMALong_in: [BigInt!] + fCurrentAMMExposureEMALong_lt: BigInt + fCurrentAMMExposureEMALong_lte: BigInt + fCurrentAMMExposureEMALong_not: BigInt + fCurrentAMMExposureEMALong_not_in: [BigInt!] + fCurrentAMMExposureEMAShort: BigInt + fCurrentAMMExposureEMAShort_gt: BigInt + fCurrentAMMExposureEMAShort_gte: BigInt + fCurrentAMMExposureEMAShort_in: [BigInt!] + fCurrentAMMExposureEMAShort_lt: BigInt + fCurrentAMMExposureEMAShort_lte: BigInt + fCurrentAMMExposureEMAShort_not: BigInt + fCurrentAMMExposureEMAShort_not_in: [BigInt!] + fCurrentTraderExposureEMA: BigInt + fCurrentTraderExposureEMA_gt: BigInt + fCurrentTraderExposureEMA_gte: BigInt + fCurrentTraderExposureEMA_in: [BigInt!] + fCurrentTraderExposureEMA_lt: BigInt + fCurrentTraderExposureEMA_lte: BigInt + fCurrentTraderExposureEMA_not: BigInt + fCurrentTraderExposureEMA_not_in: [BigInt!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + perpetualId: Bytes + perpetualId_contains: Bytes + perpetualId_in: [Bytes!] + perpetualId_not: Bytes + perpetualId_not_contains: Bytes + perpetualId_not_in: [Bytes!] +} + +enum UpdateReprTradeSizes_orderBy { + blockTimestamp + fCurrentAMMExposureEMALong + fCurrentAMMExposureEMAShort + fCurrentTraderExposureEMA + id + perpetualId +} + +type UpdateUnitAccumulatedFunding { + id: ID! + perpetualId: Bytes! + unitAccumulativeFunding: BigInt! +} + +input UpdateUnitAccumulatedFunding_filter { + """ + Filter for the block changed event. + """ + _change_block: BlockChangedFilter + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + perpetualId: Bytes + perpetualId_contains: Bytes + perpetualId_in: [Bytes!] + perpetualId_not: Bytes + perpetualId_not_contains: Bytes + perpetualId_not_in: [Bytes!] + unitAccumulativeFunding: BigInt + unitAccumulativeFunding_gt: BigInt + unitAccumulativeFunding_gte: BigInt + unitAccumulativeFunding_in: [BigInt!] + unitAccumulativeFunding_lt: BigInt + unitAccumulativeFunding_lte: BigInt + unitAccumulativeFunding_not: BigInt + unitAccumulativeFunding_not_in: [BigInt!] +} + +enum UpdateUnitAccumulatedFunding_orderBy { + id + perpetualId + unitAccumulativeFunding +} + +type _Block_ { + """ + The hash of the block + """ + hash: Bytes + + """ + The block number + """ + number: Int! + + """ + Integer representation of the timestamp stored in blocks for the chain + """ + timestamp: Int +} + +""" +The type for the top-level _meta field +""" +type _Meta_ { + "Information about a specific subgraph block. The hash of the block\nwill be null if the _meta field has a block constraint that asks for\na block number. It will be filled if the _meta field has no block constraint\nand therefore asks for the latest block\n" + block: _Block_! + + """ + The deployment ID + """ + deployment: String! + + """ + If `true`, the subgraph encountered indexing errors at some past block + """ + hasIndexingErrors: Boolean! +} + +enum _SubgraphErrorPolicy_ { + """ + Data will be returned even if the subgraph has indexing errors + """ + allow + + """ + If the subgraph has indexing errors, data will be omitted. The default. + """ + deny +} diff --git a/apps/frontend/src/utils/graphql/rsk/generated.tsx b/apps/frontend/src/utils/graphql/rsk/generated.tsx new file mode 100644 index 000000000..31a89a21c --- /dev/null +++ b/apps/frontend/src/utils/graphql/rsk/generated.tsx @@ -0,0 +1,12300 @@ +import { gql } from '@apollo/client'; +import * as Apollo from '@apollo/client'; + +export type Maybe = T | null; +export type InputMaybe = Maybe; +export type Exact = { + [K in keyof T]: T[K]; +}; +export type MakeOptional = Omit & { + [SubKey in K]?: Maybe; +}; +export type MakeMaybe = Omit & { + [SubKey in K]: Maybe; +}; +const defaultOptions = {} as const; +/** All built-in and custom scalars, mapped to their actual values */ +export type Scalars = { + ID: string; + String: string; + Boolean: boolean; + Int: number; + Float: number; + BigDecimal: any; + BigInt: any; + Bytes: any; +}; + +export type BitcoinTransfer = { + __typename?: 'BitcoinTransfer'; + amountBTC: Scalars['BigDecimal']; + bitcoinTxHash: Scalars['Bytes']; + btcAddress: Scalars['String']; + createdAtBlockNumber: Scalars['Int']; + createdAtTimestamp: Scalars['Int']; + createdAtTx: Transaction; + feeBTC: Scalars['BigDecimal']; + id: Scalars['ID']; + nonce: Scalars['Int']; + status: BitcoinTransferStatus; + totalAmountBTC: Scalars['BigDecimal']; + updatedAtBlockNumber: Scalars['Int']; + updatedAtTimestamp: Scalars['Int']; + updatedAtTx: Transaction; + user: User; +}; + +export type BitcoinTransferBatchSending = { + __typename?: 'BitcoinTransferBatchSending'; + bitcoinTxHash: Scalars['Bytes']; + emittedBy: Scalars['Bytes']; + id: Scalars['ID']; + timestamp: Scalars['Int']; + transaction: Transaction; + transferBatchSize: Scalars['Int']; +}; + +export type BitcoinTransferBatchSending_Filter = { + bitcoinTxHash?: InputMaybe; + bitcoinTxHash_contains?: InputMaybe; + bitcoinTxHash_in?: InputMaybe>; + bitcoinTxHash_not?: InputMaybe; + bitcoinTxHash_not_contains?: InputMaybe; + bitcoinTxHash_not_in?: InputMaybe>; + emittedBy?: InputMaybe; + emittedBy_contains?: InputMaybe; + emittedBy_in?: InputMaybe>; + emittedBy_not?: InputMaybe; + emittedBy_not_contains?: InputMaybe; + emittedBy_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + timestamp?: InputMaybe; + timestamp_gt?: InputMaybe; + timestamp_gte?: InputMaybe; + timestamp_in?: InputMaybe>; + timestamp_lt?: InputMaybe; + timestamp_lte?: InputMaybe; + timestamp_not?: InputMaybe; + timestamp_not_in?: InputMaybe>; + transaction?: InputMaybe; + transaction_contains?: InputMaybe; + transaction_ends_with?: InputMaybe; + transaction_gt?: InputMaybe; + transaction_gte?: InputMaybe; + transaction_in?: InputMaybe>; + transaction_lt?: InputMaybe; + transaction_lte?: InputMaybe; + transaction_not?: InputMaybe; + transaction_not_contains?: InputMaybe; + transaction_not_ends_with?: InputMaybe; + transaction_not_in?: InputMaybe>; + transaction_not_starts_with?: InputMaybe; + transaction_starts_with?: InputMaybe; + transferBatchSize?: InputMaybe; + transferBatchSize_gt?: InputMaybe; + transferBatchSize_gte?: InputMaybe; + transferBatchSize_in?: InputMaybe>; + transferBatchSize_lt?: InputMaybe; + transferBatchSize_lte?: InputMaybe; + transferBatchSize_not?: InputMaybe; + transferBatchSize_not_in?: InputMaybe>; +}; + +export enum BitcoinTransferBatchSending_OrderBy { + BitcoinTxHash = 'bitcoinTxHash', + EmittedBy = 'emittedBy', + Id = 'id', + Timestamp = 'timestamp', + Transaction = 'transaction', + TransferBatchSize = 'transferBatchSize', +} + +export enum BitcoinTransferStatus { + /** + * the transfer was confirmedly mined in Bitcoin blockchain + * + */ + Mined = 'MINED', + /** + * the transfer was initiated + * + */ + New = 'NEW', + /** + * the transfer slot has not been initialized + * + */ + NotApplicable = 'NOT_APPLICABLE', + /** + * the transfer was reclaimed by the user + * + */ + Reclaimed = 'RECLAIMED', + /** + * the transfer was refunded + * + */ + Refunded = 'REFUNDED', + /** + * the federators have approved this transfer as part of a transfer batch + * + */ + Sending = 'SENDING', +} + +export type BitcoinTransfer_Filter = { + amountBTC?: InputMaybe; + amountBTC_gt?: InputMaybe; + amountBTC_gte?: InputMaybe; + amountBTC_in?: InputMaybe>; + amountBTC_lt?: InputMaybe; + amountBTC_lte?: InputMaybe; + amountBTC_not?: InputMaybe; + amountBTC_not_in?: InputMaybe>; + bitcoinTxHash?: InputMaybe; + bitcoinTxHash_contains?: InputMaybe; + bitcoinTxHash_in?: InputMaybe>; + bitcoinTxHash_not?: InputMaybe; + bitcoinTxHash_not_contains?: InputMaybe; + bitcoinTxHash_not_in?: InputMaybe>; + btcAddress?: InputMaybe; + btcAddress_contains?: InputMaybe; + btcAddress_ends_with?: InputMaybe; + btcAddress_gt?: InputMaybe; + btcAddress_gte?: InputMaybe; + btcAddress_in?: InputMaybe>; + btcAddress_lt?: InputMaybe; + btcAddress_lte?: InputMaybe; + btcAddress_not?: InputMaybe; + btcAddress_not_contains?: InputMaybe; + btcAddress_not_ends_with?: InputMaybe; + btcAddress_not_in?: InputMaybe>; + btcAddress_not_starts_with?: InputMaybe; + btcAddress_starts_with?: InputMaybe; + createdAtBlockNumber?: InputMaybe; + createdAtBlockNumber_gt?: InputMaybe; + createdAtBlockNumber_gte?: InputMaybe; + createdAtBlockNumber_in?: InputMaybe>; + createdAtBlockNumber_lt?: InputMaybe; + createdAtBlockNumber_lte?: InputMaybe; + createdAtBlockNumber_not?: InputMaybe; + createdAtBlockNumber_not_in?: InputMaybe>; + createdAtTimestamp?: InputMaybe; + createdAtTimestamp_gt?: InputMaybe; + createdAtTimestamp_gte?: InputMaybe; + createdAtTimestamp_in?: InputMaybe>; + createdAtTimestamp_lt?: InputMaybe; + createdAtTimestamp_lte?: InputMaybe; + createdAtTimestamp_not?: InputMaybe; + createdAtTimestamp_not_in?: InputMaybe>; + createdAtTx?: InputMaybe; + createdAtTx_contains?: InputMaybe; + createdAtTx_ends_with?: InputMaybe; + createdAtTx_gt?: InputMaybe; + createdAtTx_gte?: InputMaybe; + createdAtTx_in?: InputMaybe>; + createdAtTx_lt?: InputMaybe; + createdAtTx_lte?: InputMaybe; + createdAtTx_not?: InputMaybe; + createdAtTx_not_contains?: InputMaybe; + createdAtTx_not_ends_with?: InputMaybe; + createdAtTx_not_in?: InputMaybe>; + createdAtTx_not_starts_with?: InputMaybe; + createdAtTx_starts_with?: InputMaybe; + feeBTC?: InputMaybe; + feeBTC_gt?: InputMaybe; + feeBTC_gte?: InputMaybe; + feeBTC_in?: InputMaybe>; + feeBTC_lt?: InputMaybe; + feeBTC_lte?: InputMaybe; + feeBTC_not?: InputMaybe; + feeBTC_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + nonce?: InputMaybe; + nonce_gt?: InputMaybe; + nonce_gte?: InputMaybe; + nonce_in?: InputMaybe>; + nonce_lt?: InputMaybe; + nonce_lte?: InputMaybe; + nonce_not?: InputMaybe; + nonce_not_in?: InputMaybe>; + status?: InputMaybe; + status_in?: InputMaybe>; + status_not?: InputMaybe; + status_not_in?: InputMaybe>; + totalAmountBTC?: InputMaybe; + totalAmountBTC_gt?: InputMaybe; + totalAmountBTC_gte?: InputMaybe; + totalAmountBTC_in?: InputMaybe>; + totalAmountBTC_lt?: InputMaybe; + totalAmountBTC_lte?: InputMaybe; + totalAmountBTC_not?: InputMaybe; + totalAmountBTC_not_in?: InputMaybe>; + updatedAtBlockNumber?: InputMaybe; + updatedAtBlockNumber_gt?: InputMaybe; + updatedAtBlockNumber_gte?: InputMaybe; + updatedAtBlockNumber_in?: InputMaybe>; + updatedAtBlockNumber_lt?: InputMaybe; + updatedAtBlockNumber_lte?: InputMaybe; + updatedAtBlockNumber_not?: InputMaybe; + updatedAtBlockNumber_not_in?: InputMaybe>; + updatedAtTimestamp?: InputMaybe; + updatedAtTimestamp_gt?: InputMaybe; + updatedAtTimestamp_gte?: InputMaybe; + updatedAtTimestamp_in?: InputMaybe>; + updatedAtTimestamp_lt?: InputMaybe; + updatedAtTimestamp_lte?: InputMaybe; + updatedAtTimestamp_not?: InputMaybe; + updatedAtTimestamp_not_in?: InputMaybe>; + updatedAtTx?: InputMaybe; + updatedAtTx_contains?: InputMaybe; + updatedAtTx_ends_with?: InputMaybe; + updatedAtTx_gt?: InputMaybe; + updatedAtTx_gte?: InputMaybe; + updatedAtTx_in?: InputMaybe>; + updatedAtTx_lt?: InputMaybe; + updatedAtTx_lte?: InputMaybe; + updatedAtTx_not?: InputMaybe; + updatedAtTx_not_contains?: InputMaybe; + updatedAtTx_not_ends_with?: InputMaybe; + updatedAtTx_not_in?: InputMaybe>; + updatedAtTx_not_starts_with?: InputMaybe; + updatedAtTx_starts_with?: InputMaybe; + user?: InputMaybe; + user_contains?: InputMaybe; + user_ends_with?: InputMaybe; + user_gt?: InputMaybe; + user_gte?: InputMaybe; + user_in?: InputMaybe>; + user_lt?: InputMaybe; + user_lte?: InputMaybe; + user_not?: InputMaybe; + user_not_contains?: InputMaybe; + user_not_ends_with?: InputMaybe; + user_not_in?: InputMaybe>; + user_not_starts_with?: InputMaybe; + user_starts_with?: InputMaybe; +}; + +export enum BitcoinTransfer_OrderBy { + AmountBtc = 'amountBTC', + BitcoinTxHash = 'bitcoinTxHash', + BtcAddress = 'btcAddress', + CreatedAtBlockNumber = 'createdAtBlockNumber', + CreatedAtTimestamp = 'createdAtTimestamp', + CreatedAtTx = 'createdAtTx', + FeeBtc = 'feeBTC', + Id = 'id', + Nonce = 'nonce', + Status = 'status', + TotalAmountBtc = 'totalAmountBTC', + UpdatedAtBlockNumber = 'updatedAtBlockNumber', + UpdatedAtTimestamp = 'updatedAtTimestamp', + UpdatedAtTx = 'updatedAtTx', + User = 'user', +} + +export type Block_Height = { + hash?: InputMaybe; + number?: InputMaybe; + number_gte?: InputMaybe; +}; + +/** + * Granular event data for the Loan entity. Emitted when a user Borrows (takes out a loan) + * + */ +export type Borrow = { + __typename?: 'Borrow'; + collateralToLoanRate: Scalars['BigDecimal']; + collateralToken: Scalars['Bytes']; + currentMargin: Scalars['BigDecimal']; + emittedBy: Scalars['Bytes']; + id: Scalars['ID']; + interestDuration: Scalars['BigDecimal']; + interestRate: Scalars['BigDecimal']; + lender: Scalars['Bytes']; + loanId: Loan; + loanToken: Scalars['Bytes']; + newCollateral: Scalars['BigDecimal']; + newPrincipal: Scalars['BigDecimal']; + timestamp: Scalars['Int']; + transaction: Transaction; + user: User; +}; + +export type Borrow_Filter = { + collateralToLoanRate?: InputMaybe; + collateralToLoanRate_gt?: InputMaybe; + collateralToLoanRate_gte?: InputMaybe; + collateralToLoanRate_in?: InputMaybe>; + collateralToLoanRate_lt?: InputMaybe; + collateralToLoanRate_lte?: InputMaybe; + collateralToLoanRate_not?: InputMaybe; + collateralToLoanRate_not_in?: InputMaybe>; + collateralToken?: InputMaybe; + collateralToken_contains?: InputMaybe; + collateralToken_in?: InputMaybe>; + collateralToken_not?: InputMaybe; + collateralToken_not_contains?: InputMaybe; + collateralToken_not_in?: InputMaybe>; + currentMargin?: InputMaybe; + currentMargin_gt?: InputMaybe; + currentMargin_gte?: InputMaybe; + currentMargin_in?: InputMaybe>; + currentMargin_lt?: InputMaybe; + currentMargin_lte?: InputMaybe; + currentMargin_not?: InputMaybe; + currentMargin_not_in?: InputMaybe>; + emittedBy?: InputMaybe; + emittedBy_contains?: InputMaybe; + emittedBy_in?: InputMaybe>; + emittedBy_not?: InputMaybe; + emittedBy_not_contains?: InputMaybe; + emittedBy_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + interestDuration?: InputMaybe; + interestDuration_gt?: InputMaybe; + interestDuration_gte?: InputMaybe; + interestDuration_in?: InputMaybe>; + interestDuration_lt?: InputMaybe; + interestDuration_lte?: InputMaybe; + interestDuration_not?: InputMaybe; + interestDuration_not_in?: InputMaybe>; + interestRate?: InputMaybe; + interestRate_gt?: InputMaybe; + interestRate_gte?: InputMaybe; + interestRate_in?: InputMaybe>; + interestRate_lt?: InputMaybe; + interestRate_lte?: InputMaybe; + interestRate_not?: InputMaybe; + interestRate_not_in?: InputMaybe>; + lender?: InputMaybe; + lender_contains?: InputMaybe; + lender_in?: InputMaybe>; + lender_not?: InputMaybe; + lender_not_contains?: InputMaybe; + lender_not_in?: InputMaybe>; + loanId?: InputMaybe; + loanId_contains?: InputMaybe; + loanId_ends_with?: InputMaybe; + loanId_gt?: InputMaybe; + loanId_gte?: InputMaybe; + loanId_in?: InputMaybe>; + loanId_lt?: InputMaybe; + loanId_lte?: InputMaybe; + loanId_not?: InputMaybe; + loanId_not_contains?: InputMaybe; + loanId_not_ends_with?: InputMaybe; + loanId_not_in?: InputMaybe>; + loanId_not_starts_with?: InputMaybe; + loanId_starts_with?: InputMaybe; + loanToken?: InputMaybe; + loanToken_contains?: InputMaybe; + loanToken_in?: InputMaybe>; + loanToken_not?: InputMaybe; + loanToken_not_contains?: InputMaybe; + loanToken_not_in?: InputMaybe>; + newCollateral?: InputMaybe; + newCollateral_gt?: InputMaybe; + newCollateral_gte?: InputMaybe; + newCollateral_in?: InputMaybe>; + newCollateral_lt?: InputMaybe; + newCollateral_lte?: InputMaybe; + newCollateral_not?: InputMaybe; + newCollateral_not_in?: InputMaybe>; + newPrincipal?: InputMaybe; + newPrincipal_gt?: InputMaybe; + newPrincipal_gte?: InputMaybe; + newPrincipal_in?: InputMaybe>; + newPrincipal_lt?: InputMaybe; + newPrincipal_lte?: InputMaybe; + newPrincipal_not?: InputMaybe; + newPrincipal_not_in?: InputMaybe>; + timestamp?: InputMaybe; + timestamp_gt?: InputMaybe; + timestamp_gte?: InputMaybe; + timestamp_in?: InputMaybe>; + timestamp_lt?: InputMaybe; + timestamp_lte?: InputMaybe; + timestamp_not?: InputMaybe; + timestamp_not_in?: InputMaybe>; + transaction?: InputMaybe; + transaction_contains?: InputMaybe; + transaction_ends_with?: InputMaybe; + transaction_gt?: InputMaybe; + transaction_gte?: InputMaybe; + transaction_in?: InputMaybe>; + transaction_lt?: InputMaybe; + transaction_lte?: InputMaybe; + transaction_not?: InputMaybe; + transaction_not_contains?: InputMaybe; + transaction_not_ends_with?: InputMaybe; + transaction_not_in?: InputMaybe>; + transaction_not_starts_with?: InputMaybe; + transaction_starts_with?: InputMaybe; + user?: InputMaybe; + user_contains?: InputMaybe; + user_ends_with?: InputMaybe; + user_gt?: InputMaybe; + user_gte?: InputMaybe; + user_in?: InputMaybe>; + user_lt?: InputMaybe; + user_lte?: InputMaybe; + user_not?: InputMaybe; + user_not_contains?: InputMaybe; + user_not_ends_with?: InputMaybe; + user_not_in?: InputMaybe>; + user_not_starts_with?: InputMaybe; + user_starts_with?: InputMaybe; +}; + +export enum Borrow_OrderBy { + CollateralToLoanRate = 'collateralToLoanRate', + CollateralToken = 'collateralToken', + CurrentMargin = 'currentMargin', + EmittedBy = 'emittedBy', + Id = 'id', + InterestDuration = 'interestDuration', + InterestRate = 'interestRate', + Lender = 'lender', + LoanId = 'loanId', + LoanToken = 'loanToken', + NewCollateral = 'newCollateral', + NewPrincipal = 'newPrincipal', + Timestamp = 'timestamp', + Transaction = 'transaction', + User = 'user', +} + +/** + * Cross Chain Bridge + * + */ +export type Bridge = { + __typename?: 'Bridge'; + /** + * CreatedAtTx - The bridge creation transaction + * + */ + createdAtTx: Transaction; + /** + * Federation - the Federation entity associated with this bridge + * + */ + federation: Federation; + /** + * Bridge ID - Bridge Contract Address + * + */ + id: Scalars['ID']; + /** + * isPaused - Indicates if the bridge is currently paused + * + */ + isPaused: Scalars['Boolean']; + /** + * isSuffix - is suffix or prefix + * + */ + isSuffix?: Maybe; + /** + * isUpgrading - Indicates if the bridge is currently upgrading + * + */ + isUpgrading: Scalars['Boolean']; + /** + * Pausers - an array of addresses authorized to pause the bridge + * + */ + pausers: Array; + /** + * Prefix - prefix added to sideTokens symbol when created + * + */ + prefix?: Maybe; + /** + * BridgeType - there are currently only two bridges - RSK_BSC and RSK_ETH + * + */ + type: BridgeType; + /** + * UpdatedAtTx - The bridge last updated at this transaction + * + */ + updatedAtTx: Transaction; +}; + +export enum BridgeChain { + Bsc = 'BSC', + Eth = 'ETH', + Rsk = 'RSK', +} + +/** + * BridgeType - only 2 bridges at the moment - RSK <-> BSC and RSK <-> ETH + * + */ +export enum BridgeType { + RskBsc = 'RSK_BSC', + RskEth = 'RSK_ETH', +} + +export type Bridge_Filter = { + createdAtTx?: InputMaybe; + createdAtTx_contains?: InputMaybe; + createdAtTx_ends_with?: InputMaybe; + createdAtTx_gt?: InputMaybe; + createdAtTx_gte?: InputMaybe; + createdAtTx_in?: InputMaybe>; + createdAtTx_lt?: InputMaybe; + createdAtTx_lte?: InputMaybe; + createdAtTx_not?: InputMaybe; + createdAtTx_not_contains?: InputMaybe; + createdAtTx_not_ends_with?: InputMaybe; + createdAtTx_not_in?: InputMaybe>; + createdAtTx_not_starts_with?: InputMaybe; + createdAtTx_starts_with?: InputMaybe; + federation?: InputMaybe; + federation_contains?: InputMaybe; + federation_ends_with?: InputMaybe; + federation_gt?: InputMaybe; + federation_gte?: InputMaybe; + federation_in?: InputMaybe>; + federation_lt?: InputMaybe; + federation_lte?: InputMaybe; + federation_not?: InputMaybe; + federation_not_contains?: InputMaybe; + federation_not_ends_with?: InputMaybe; + federation_not_in?: InputMaybe>; + federation_not_starts_with?: InputMaybe; + federation_starts_with?: InputMaybe; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + isPaused?: InputMaybe; + isPaused_in?: InputMaybe>; + isPaused_not?: InputMaybe; + isPaused_not_in?: InputMaybe>; + isSuffix?: InputMaybe; + isSuffix_in?: InputMaybe>; + isSuffix_not?: InputMaybe; + isSuffix_not_in?: InputMaybe>; + isUpgrading?: InputMaybe; + isUpgrading_in?: InputMaybe>; + isUpgrading_not?: InputMaybe; + isUpgrading_not_in?: InputMaybe>; + pausers?: InputMaybe>; + pausers_contains?: InputMaybe>; + pausers_not?: InputMaybe>; + pausers_not_contains?: InputMaybe>; + prefix?: InputMaybe; + prefix_contains?: InputMaybe; + prefix_ends_with?: InputMaybe; + prefix_gt?: InputMaybe; + prefix_gte?: InputMaybe; + prefix_in?: InputMaybe>; + prefix_lt?: InputMaybe; + prefix_lte?: InputMaybe; + prefix_not?: InputMaybe; + prefix_not_contains?: InputMaybe; + prefix_not_ends_with?: InputMaybe; + prefix_not_in?: InputMaybe>; + prefix_not_starts_with?: InputMaybe; + prefix_starts_with?: InputMaybe; + type?: InputMaybe; + type_in?: InputMaybe>; + type_not?: InputMaybe; + type_not_in?: InputMaybe>; + updatedAtTx?: InputMaybe; + updatedAtTx_contains?: InputMaybe; + updatedAtTx_ends_with?: InputMaybe; + updatedAtTx_gt?: InputMaybe; + updatedAtTx_gte?: InputMaybe; + updatedAtTx_in?: InputMaybe>; + updatedAtTx_lt?: InputMaybe; + updatedAtTx_lte?: InputMaybe; + updatedAtTx_not?: InputMaybe; + updatedAtTx_not_contains?: InputMaybe; + updatedAtTx_not_ends_with?: InputMaybe; + updatedAtTx_not_in?: InputMaybe>; + updatedAtTx_not_starts_with?: InputMaybe; + updatedAtTx_starts_with?: InputMaybe; +}; + +export enum Bridge_OrderBy { + CreatedAtTx = 'createdAtTx', + Federation = 'federation', + Id = 'id', + IsPaused = 'isPaused', + IsSuffix = 'isSuffix', + IsUpgrading = 'isUpgrading', + Pausers = 'pausers', + Prefix = 'prefix', + Type = 'type', + UpdatedAtTx = 'updatedAtTx', +} + +export type CandleStickDay = ICandleStick & { + __typename?: 'CandleStickDay'; + baseToken?: Maybe; + close: Scalars['BigDecimal']; + high: Scalars['BigDecimal']; + id: Scalars['ID']; + low: Scalars['BigDecimal']; + open?: Maybe; + periodStartUnix: Scalars['Int']; + quoteToken?: Maybe; + totalVolume: Scalars['BigDecimal']; + txCount: Scalars['Int']; +}; + +export type CandleStickDay_Filter = { + baseToken?: InputMaybe; + baseToken_contains?: InputMaybe; + baseToken_ends_with?: InputMaybe; + baseToken_gt?: InputMaybe; + baseToken_gte?: InputMaybe; + baseToken_in?: InputMaybe>; + baseToken_lt?: InputMaybe; + baseToken_lte?: InputMaybe; + baseToken_not?: InputMaybe; + baseToken_not_contains?: InputMaybe; + baseToken_not_ends_with?: InputMaybe; + baseToken_not_in?: InputMaybe>; + baseToken_not_starts_with?: InputMaybe; + baseToken_starts_with?: InputMaybe; + close?: InputMaybe; + close_gt?: InputMaybe; + close_gte?: InputMaybe; + close_in?: InputMaybe>; + close_lt?: InputMaybe; + close_lte?: InputMaybe; + close_not?: InputMaybe; + close_not_in?: InputMaybe>; + high?: InputMaybe; + high_gt?: InputMaybe; + high_gte?: InputMaybe; + high_in?: InputMaybe>; + high_lt?: InputMaybe; + high_lte?: InputMaybe; + high_not?: InputMaybe; + high_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + low?: InputMaybe; + low_gt?: InputMaybe; + low_gte?: InputMaybe; + low_in?: InputMaybe>; + low_lt?: InputMaybe; + low_lte?: InputMaybe; + low_not?: InputMaybe; + low_not_in?: InputMaybe>; + open?: InputMaybe; + open_gt?: InputMaybe; + open_gte?: InputMaybe; + open_in?: InputMaybe>; + open_lt?: InputMaybe; + open_lte?: InputMaybe; + open_not?: InputMaybe; + open_not_in?: InputMaybe>; + periodStartUnix?: InputMaybe; + periodStartUnix_gt?: InputMaybe; + periodStartUnix_gte?: InputMaybe; + periodStartUnix_in?: InputMaybe>; + periodStartUnix_lt?: InputMaybe; + periodStartUnix_lte?: InputMaybe; + periodStartUnix_not?: InputMaybe; + periodStartUnix_not_in?: InputMaybe>; + quoteToken?: InputMaybe; + quoteToken_contains?: InputMaybe; + quoteToken_ends_with?: InputMaybe; + quoteToken_gt?: InputMaybe; + quoteToken_gte?: InputMaybe; + quoteToken_in?: InputMaybe>; + quoteToken_lt?: InputMaybe; + quoteToken_lte?: InputMaybe; + quoteToken_not?: InputMaybe; + quoteToken_not_contains?: InputMaybe; + quoteToken_not_ends_with?: InputMaybe; + quoteToken_not_in?: InputMaybe>; + quoteToken_not_starts_with?: InputMaybe; + quoteToken_starts_with?: InputMaybe; + totalVolume?: InputMaybe; + totalVolume_gt?: InputMaybe; + totalVolume_gte?: InputMaybe; + totalVolume_in?: InputMaybe>; + totalVolume_lt?: InputMaybe; + totalVolume_lte?: InputMaybe; + totalVolume_not?: InputMaybe; + totalVolume_not_in?: InputMaybe>; + txCount?: InputMaybe; + txCount_gt?: InputMaybe; + txCount_gte?: InputMaybe; + txCount_in?: InputMaybe>; + txCount_lt?: InputMaybe; + txCount_lte?: InputMaybe; + txCount_not?: InputMaybe; + txCount_not_in?: InputMaybe>; +}; + +export enum CandleStickDay_OrderBy { + BaseToken = 'baseToken', + Close = 'close', + High = 'high', + Id = 'id', + Low = 'low', + Open = 'open', + PeriodStartUnix = 'periodStartUnix', + QuoteToken = 'quoteToken', + TotalVolume = 'totalVolume', + TxCount = 'txCount', +} + +export type CandleStickFifteenMinute = ICandleStick & { + __typename?: 'CandleStickFifteenMinute'; + baseToken?: Maybe; + close: Scalars['BigDecimal']; + high: Scalars['BigDecimal']; + id: Scalars['ID']; + low: Scalars['BigDecimal']; + open?: Maybe; + periodStartUnix: Scalars['Int']; + quoteToken?: Maybe; + totalVolume: Scalars['BigDecimal']; + txCount: Scalars['Int']; +}; + +export type CandleStickFifteenMinute_Filter = { + baseToken?: InputMaybe; + baseToken_contains?: InputMaybe; + baseToken_ends_with?: InputMaybe; + baseToken_gt?: InputMaybe; + baseToken_gte?: InputMaybe; + baseToken_in?: InputMaybe>; + baseToken_lt?: InputMaybe; + baseToken_lte?: InputMaybe; + baseToken_not?: InputMaybe; + baseToken_not_contains?: InputMaybe; + baseToken_not_ends_with?: InputMaybe; + baseToken_not_in?: InputMaybe>; + baseToken_not_starts_with?: InputMaybe; + baseToken_starts_with?: InputMaybe; + close?: InputMaybe; + close_gt?: InputMaybe; + close_gte?: InputMaybe; + close_in?: InputMaybe>; + close_lt?: InputMaybe; + close_lte?: InputMaybe; + close_not?: InputMaybe; + close_not_in?: InputMaybe>; + high?: InputMaybe; + high_gt?: InputMaybe; + high_gte?: InputMaybe; + high_in?: InputMaybe>; + high_lt?: InputMaybe; + high_lte?: InputMaybe; + high_not?: InputMaybe; + high_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + low?: InputMaybe; + low_gt?: InputMaybe; + low_gte?: InputMaybe; + low_in?: InputMaybe>; + low_lt?: InputMaybe; + low_lte?: InputMaybe; + low_not?: InputMaybe; + low_not_in?: InputMaybe>; + open?: InputMaybe; + open_gt?: InputMaybe; + open_gte?: InputMaybe; + open_in?: InputMaybe>; + open_lt?: InputMaybe; + open_lte?: InputMaybe; + open_not?: InputMaybe; + open_not_in?: InputMaybe>; + periodStartUnix?: InputMaybe; + periodStartUnix_gt?: InputMaybe; + periodStartUnix_gte?: InputMaybe; + periodStartUnix_in?: InputMaybe>; + periodStartUnix_lt?: InputMaybe; + periodStartUnix_lte?: InputMaybe; + periodStartUnix_not?: InputMaybe; + periodStartUnix_not_in?: InputMaybe>; + quoteToken?: InputMaybe; + quoteToken_contains?: InputMaybe; + quoteToken_ends_with?: InputMaybe; + quoteToken_gt?: InputMaybe; + quoteToken_gte?: InputMaybe; + quoteToken_in?: InputMaybe>; + quoteToken_lt?: InputMaybe; + quoteToken_lte?: InputMaybe; + quoteToken_not?: InputMaybe; + quoteToken_not_contains?: InputMaybe; + quoteToken_not_ends_with?: InputMaybe; + quoteToken_not_in?: InputMaybe>; + quoteToken_not_starts_with?: InputMaybe; + quoteToken_starts_with?: InputMaybe; + totalVolume?: InputMaybe; + totalVolume_gt?: InputMaybe; + totalVolume_gte?: InputMaybe; + totalVolume_in?: InputMaybe>; + totalVolume_lt?: InputMaybe; + totalVolume_lte?: InputMaybe; + totalVolume_not?: InputMaybe; + totalVolume_not_in?: InputMaybe>; + txCount?: InputMaybe; + txCount_gt?: InputMaybe; + txCount_gte?: InputMaybe; + txCount_in?: InputMaybe>; + txCount_lt?: InputMaybe; + txCount_lte?: InputMaybe; + txCount_not?: InputMaybe; + txCount_not_in?: InputMaybe>; +}; + +export enum CandleStickFifteenMinute_OrderBy { + BaseToken = 'baseToken', + Close = 'close', + High = 'high', + Id = 'id', + Low = 'low', + Open = 'open', + PeriodStartUnix = 'periodStartUnix', + QuoteToken = 'quoteToken', + TotalVolume = 'totalVolume', + TxCount = 'txCount', +} + +export type CandleStickFourHour = ICandleStick & { + __typename?: 'CandleStickFourHour'; + baseToken?: Maybe; + close: Scalars['BigDecimal']; + high: Scalars['BigDecimal']; + id: Scalars['ID']; + low: Scalars['BigDecimal']; + open?: Maybe; + periodStartUnix: Scalars['Int']; + quoteToken?: Maybe; + totalVolume: Scalars['BigDecimal']; + txCount: Scalars['Int']; +}; + +export type CandleStickFourHour_Filter = { + baseToken?: InputMaybe; + baseToken_contains?: InputMaybe; + baseToken_ends_with?: InputMaybe; + baseToken_gt?: InputMaybe; + baseToken_gte?: InputMaybe; + baseToken_in?: InputMaybe>; + baseToken_lt?: InputMaybe; + baseToken_lte?: InputMaybe; + baseToken_not?: InputMaybe; + baseToken_not_contains?: InputMaybe; + baseToken_not_ends_with?: InputMaybe; + baseToken_not_in?: InputMaybe>; + baseToken_not_starts_with?: InputMaybe; + baseToken_starts_with?: InputMaybe; + close?: InputMaybe; + close_gt?: InputMaybe; + close_gte?: InputMaybe; + close_in?: InputMaybe>; + close_lt?: InputMaybe; + close_lte?: InputMaybe; + close_not?: InputMaybe; + close_not_in?: InputMaybe>; + high?: InputMaybe; + high_gt?: InputMaybe; + high_gte?: InputMaybe; + high_in?: InputMaybe>; + high_lt?: InputMaybe; + high_lte?: InputMaybe; + high_not?: InputMaybe; + high_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + low?: InputMaybe; + low_gt?: InputMaybe; + low_gte?: InputMaybe; + low_in?: InputMaybe>; + low_lt?: InputMaybe; + low_lte?: InputMaybe; + low_not?: InputMaybe; + low_not_in?: InputMaybe>; + open?: InputMaybe; + open_gt?: InputMaybe; + open_gte?: InputMaybe; + open_in?: InputMaybe>; + open_lt?: InputMaybe; + open_lte?: InputMaybe; + open_not?: InputMaybe; + open_not_in?: InputMaybe>; + periodStartUnix?: InputMaybe; + periodStartUnix_gt?: InputMaybe; + periodStartUnix_gte?: InputMaybe; + periodStartUnix_in?: InputMaybe>; + periodStartUnix_lt?: InputMaybe; + periodStartUnix_lte?: InputMaybe; + periodStartUnix_not?: InputMaybe; + periodStartUnix_not_in?: InputMaybe>; + quoteToken?: InputMaybe; + quoteToken_contains?: InputMaybe; + quoteToken_ends_with?: InputMaybe; + quoteToken_gt?: InputMaybe; + quoteToken_gte?: InputMaybe; + quoteToken_in?: InputMaybe>; + quoteToken_lt?: InputMaybe; + quoteToken_lte?: InputMaybe; + quoteToken_not?: InputMaybe; + quoteToken_not_contains?: InputMaybe; + quoteToken_not_ends_with?: InputMaybe; + quoteToken_not_in?: InputMaybe>; + quoteToken_not_starts_with?: InputMaybe; + quoteToken_starts_with?: InputMaybe; + totalVolume?: InputMaybe; + totalVolume_gt?: InputMaybe; + totalVolume_gte?: InputMaybe; + totalVolume_in?: InputMaybe>; + totalVolume_lt?: InputMaybe; + totalVolume_lte?: InputMaybe; + totalVolume_not?: InputMaybe; + totalVolume_not_in?: InputMaybe>; + txCount?: InputMaybe; + txCount_gt?: InputMaybe; + txCount_gte?: InputMaybe; + txCount_in?: InputMaybe>; + txCount_lt?: InputMaybe; + txCount_lte?: InputMaybe; + txCount_not?: InputMaybe; + txCount_not_in?: InputMaybe>; +}; + +export enum CandleStickFourHour_OrderBy { + BaseToken = 'baseToken', + Close = 'close', + High = 'high', + Id = 'id', + Low = 'low', + Open = 'open', + PeriodStartUnix = 'periodStartUnix', + QuoteToken = 'quoteToken', + TotalVolume = 'totalVolume', + TxCount = 'txCount', +} + +export type CandleStickHour = ICandleStick & { + __typename?: 'CandleStickHour'; + baseToken?: Maybe; + close: Scalars['BigDecimal']; + high: Scalars['BigDecimal']; + id: Scalars['ID']; + low: Scalars['BigDecimal']; + open?: Maybe; + periodStartUnix: Scalars['Int']; + quoteToken?: Maybe; + totalVolume: Scalars['BigDecimal']; + txCount: Scalars['Int']; +}; + +export type CandleStickHour_Filter = { + baseToken?: InputMaybe; + baseToken_contains?: InputMaybe; + baseToken_ends_with?: InputMaybe; + baseToken_gt?: InputMaybe; + baseToken_gte?: InputMaybe; + baseToken_in?: InputMaybe>; + baseToken_lt?: InputMaybe; + baseToken_lte?: InputMaybe; + baseToken_not?: InputMaybe; + baseToken_not_contains?: InputMaybe; + baseToken_not_ends_with?: InputMaybe; + baseToken_not_in?: InputMaybe>; + baseToken_not_starts_with?: InputMaybe; + baseToken_starts_with?: InputMaybe; + close?: InputMaybe; + close_gt?: InputMaybe; + close_gte?: InputMaybe; + close_in?: InputMaybe>; + close_lt?: InputMaybe; + close_lte?: InputMaybe; + close_not?: InputMaybe; + close_not_in?: InputMaybe>; + high?: InputMaybe; + high_gt?: InputMaybe; + high_gte?: InputMaybe; + high_in?: InputMaybe>; + high_lt?: InputMaybe; + high_lte?: InputMaybe; + high_not?: InputMaybe; + high_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + low?: InputMaybe; + low_gt?: InputMaybe; + low_gte?: InputMaybe; + low_in?: InputMaybe>; + low_lt?: InputMaybe; + low_lte?: InputMaybe; + low_not?: InputMaybe; + low_not_in?: InputMaybe>; + open?: InputMaybe; + open_gt?: InputMaybe; + open_gte?: InputMaybe; + open_in?: InputMaybe>; + open_lt?: InputMaybe; + open_lte?: InputMaybe; + open_not?: InputMaybe; + open_not_in?: InputMaybe>; + periodStartUnix?: InputMaybe; + periodStartUnix_gt?: InputMaybe; + periodStartUnix_gte?: InputMaybe; + periodStartUnix_in?: InputMaybe>; + periodStartUnix_lt?: InputMaybe; + periodStartUnix_lte?: InputMaybe; + periodStartUnix_not?: InputMaybe; + periodStartUnix_not_in?: InputMaybe>; + quoteToken?: InputMaybe; + quoteToken_contains?: InputMaybe; + quoteToken_ends_with?: InputMaybe; + quoteToken_gt?: InputMaybe; + quoteToken_gte?: InputMaybe; + quoteToken_in?: InputMaybe>; + quoteToken_lt?: InputMaybe; + quoteToken_lte?: InputMaybe; + quoteToken_not?: InputMaybe; + quoteToken_not_contains?: InputMaybe; + quoteToken_not_ends_with?: InputMaybe; + quoteToken_not_in?: InputMaybe>; + quoteToken_not_starts_with?: InputMaybe; + quoteToken_starts_with?: InputMaybe; + totalVolume?: InputMaybe; + totalVolume_gt?: InputMaybe; + totalVolume_gte?: InputMaybe; + totalVolume_in?: InputMaybe>; + totalVolume_lt?: InputMaybe; + totalVolume_lte?: InputMaybe; + totalVolume_not?: InputMaybe; + totalVolume_not_in?: InputMaybe>; + txCount?: InputMaybe; + txCount_gt?: InputMaybe; + txCount_gte?: InputMaybe; + txCount_in?: InputMaybe>; + txCount_lt?: InputMaybe; + txCount_lte?: InputMaybe; + txCount_not?: InputMaybe; + txCount_not_in?: InputMaybe>; +}; + +export enum CandleStickHour_OrderBy { + BaseToken = 'baseToken', + Close = 'close', + High = 'high', + Id = 'id', + Low = 'low', + Open = 'open', + PeriodStartUnix = 'periodStartUnix', + QuoteToken = 'quoteToken', + TotalVolume = 'totalVolume', + TxCount = 'txCount', +} + +export type CandleStickMinute = ICandleStick & { + __typename?: 'CandleStickMinute'; + baseToken?: Maybe; + close: Scalars['BigDecimal']; + high: Scalars['BigDecimal']; + id: Scalars['ID']; + low: Scalars['BigDecimal']; + open?: Maybe; + periodStartUnix: Scalars['Int']; + quoteToken?: Maybe; + totalVolume: Scalars['BigDecimal']; + txCount: Scalars['Int']; +}; + +export type CandleStickMinute_Filter = { + baseToken?: InputMaybe; + baseToken_contains?: InputMaybe; + baseToken_ends_with?: InputMaybe; + baseToken_gt?: InputMaybe; + baseToken_gte?: InputMaybe; + baseToken_in?: InputMaybe>; + baseToken_lt?: InputMaybe; + baseToken_lte?: InputMaybe; + baseToken_not?: InputMaybe; + baseToken_not_contains?: InputMaybe; + baseToken_not_ends_with?: InputMaybe; + baseToken_not_in?: InputMaybe>; + baseToken_not_starts_with?: InputMaybe; + baseToken_starts_with?: InputMaybe; + close?: InputMaybe; + close_gt?: InputMaybe; + close_gte?: InputMaybe; + close_in?: InputMaybe>; + close_lt?: InputMaybe; + close_lte?: InputMaybe; + close_not?: InputMaybe; + close_not_in?: InputMaybe>; + high?: InputMaybe; + high_gt?: InputMaybe; + high_gte?: InputMaybe; + high_in?: InputMaybe>; + high_lt?: InputMaybe; + high_lte?: InputMaybe; + high_not?: InputMaybe; + high_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + low?: InputMaybe; + low_gt?: InputMaybe; + low_gte?: InputMaybe; + low_in?: InputMaybe>; + low_lt?: InputMaybe; + low_lte?: InputMaybe; + low_not?: InputMaybe; + low_not_in?: InputMaybe>; + open?: InputMaybe; + open_gt?: InputMaybe; + open_gte?: InputMaybe; + open_in?: InputMaybe>; + open_lt?: InputMaybe; + open_lte?: InputMaybe; + open_not?: InputMaybe; + open_not_in?: InputMaybe>; + periodStartUnix?: InputMaybe; + periodStartUnix_gt?: InputMaybe; + periodStartUnix_gte?: InputMaybe; + periodStartUnix_in?: InputMaybe>; + periodStartUnix_lt?: InputMaybe; + periodStartUnix_lte?: InputMaybe; + periodStartUnix_not?: InputMaybe; + periodStartUnix_not_in?: InputMaybe>; + quoteToken?: InputMaybe; + quoteToken_contains?: InputMaybe; + quoteToken_ends_with?: InputMaybe; + quoteToken_gt?: InputMaybe; + quoteToken_gte?: InputMaybe; + quoteToken_in?: InputMaybe>; + quoteToken_lt?: InputMaybe; + quoteToken_lte?: InputMaybe; + quoteToken_not?: InputMaybe; + quoteToken_not_contains?: InputMaybe; + quoteToken_not_ends_with?: InputMaybe; + quoteToken_not_in?: InputMaybe>; + quoteToken_not_starts_with?: InputMaybe; + quoteToken_starts_with?: InputMaybe; + totalVolume?: InputMaybe; + totalVolume_gt?: InputMaybe; + totalVolume_gte?: InputMaybe; + totalVolume_in?: InputMaybe>; + totalVolume_lt?: InputMaybe; + totalVolume_lte?: InputMaybe; + totalVolume_not?: InputMaybe; + totalVolume_not_in?: InputMaybe>; + txCount?: InputMaybe; + txCount_gt?: InputMaybe; + txCount_gte?: InputMaybe; + txCount_in?: InputMaybe>; + txCount_lt?: InputMaybe; + txCount_lte?: InputMaybe; + txCount_not?: InputMaybe; + txCount_not_in?: InputMaybe>; +}; + +export enum CandleStickMinute_OrderBy { + BaseToken = 'baseToken', + Close = 'close', + High = 'high', + Id = 'id', + Low = 'low', + Open = 'open', + PeriodStartUnix = 'periodStartUnix', + QuoteToken = 'quoteToken', + TotalVolume = 'totalVolume', + TxCount = 'txCount', +} + +export enum CandleSticksInterval { + DayInterval = 'DayInterval', + FifteenMinutesInterval = 'FifteenMinutesInterval', + FourHourInterval = 'FourHourInterval', + HourInterval = 'HourInterval', + MinuteInterval = 'MinuteInterval', +} + +/** + * Granular event data for the Loan entity. Emitted when a user closes a loan initiated by a Borrow event + * + */ +export type CloseWithDeposit = { + __typename?: 'CloseWithDeposit'; + closer: Scalars['Bytes']; + collateralToLoanRate: Scalars['BigDecimal']; + collateralToken: Scalars['Bytes']; + collateralWithdrawAmount: Scalars['BigDecimal']; + currentMargin: Scalars['BigDecimal']; + emittedBy: Scalars['Bytes']; + id: Scalars['ID']; + lender: Scalars['Bytes']; + loanId: Loan; + loanToken: Scalars['Bytes']; + repayAmount: Scalars['BigDecimal']; + timestamp: Scalars['Int']; + transaction: Transaction; + user: Scalars['Bytes']; +}; + +export type CloseWithDeposit_Filter = { + closer?: InputMaybe; + closer_contains?: InputMaybe; + closer_in?: InputMaybe>; + closer_not?: InputMaybe; + closer_not_contains?: InputMaybe; + closer_not_in?: InputMaybe>; + collateralToLoanRate?: InputMaybe; + collateralToLoanRate_gt?: InputMaybe; + collateralToLoanRate_gte?: InputMaybe; + collateralToLoanRate_in?: InputMaybe>; + collateralToLoanRate_lt?: InputMaybe; + collateralToLoanRate_lte?: InputMaybe; + collateralToLoanRate_not?: InputMaybe; + collateralToLoanRate_not_in?: InputMaybe>; + collateralToken?: InputMaybe; + collateralToken_contains?: InputMaybe; + collateralToken_in?: InputMaybe>; + collateralToken_not?: InputMaybe; + collateralToken_not_contains?: InputMaybe; + collateralToken_not_in?: InputMaybe>; + collateralWithdrawAmount?: InputMaybe; + collateralWithdrawAmount_gt?: InputMaybe; + collateralWithdrawAmount_gte?: InputMaybe; + collateralWithdrawAmount_in?: InputMaybe>; + collateralWithdrawAmount_lt?: InputMaybe; + collateralWithdrawAmount_lte?: InputMaybe; + collateralWithdrawAmount_not?: InputMaybe; + collateralWithdrawAmount_not_in?: InputMaybe>; + currentMargin?: InputMaybe; + currentMargin_gt?: InputMaybe; + currentMargin_gte?: InputMaybe; + currentMargin_in?: InputMaybe>; + currentMargin_lt?: InputMaybe; + currentMargin_lte?: InputMaybe; + currentMargin_not?: InputMaybe; + currentMargin_not_in?: InputMaybe>; + emittedBy?: InputMaybe; + emittedBy_contains?: InputMaybe; + emittedBy_in?: InputMaybe>; + emittedBy_not?: InputMaybe; + emittedBy_not_contains?: InputMaybe; + emittedBy_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + lender?: InputMaybe; + lender_contains?: InputMaybe; + lender_in?: InputMaybe>; + lender_not?: InputMaybe; + lender_not_contains?: InputMaybe; + lender_not_in?: InputMaybe>; + loanId?: InputMaybe; + loanId_contains?: InputMaybe; + loanId_ends_with?: InputMaybe; + loanId_gt?: InputMaybe; + loanId_gte?: InputMaybe; + loanId_in?: InputMaybe>; + loanId_lt?: InputMaybe; + loanId_lte?: InputMaybe; + loanId_not?: InputMaybe; + loanId_not_contains?: InputMaybe; + loanId_not_ends_with?: InputMaybe; + loanId_not_in?: InputMaybe>; + loanId_not_starts_with?: InputMaybe; + loanId_starts_with?: InputMaybe; + loanToken?: InputMaybe; + loanToken_contains?: InputMaybe; + loanToken_in?: InputMaybe>; + loanToken_not?: InputMaybe; + loanToken_not_contains?: InputMaybe; + loanToken_not_in?: InputMaybe>; + repayAmount?: InputMaybe; + repayAmount_gt?: InputMaybe; + repayAmount_gte?: InputMaybe; + repayAmount_in?: InputMaybe>; + repayAmount_lt?: InputMaybe; + repayAmount_lte?: InputMaybe; + repayAmount_not?: InputMaybe; + repayAmount_not_in?: InputMaybe>; + timestamp?: InputMaybe; + timestamp_gt?: InputMaybe; + timestamp_gte?: InputMaybe; + timestamp_in?: InputMaybe>; + timestamp_lt?: InputMaybe; + timestamp_lte?: InputMaybe; + timestamp_not?: InputMaybe; + timestamp_not_in?: InputMaybe>; + transaction?: InputMaybe; + transaction_contains?: InputMaybe; + transaction_ends_with?: InputMaybe; + transaction_gt?: InputMaybe; + transaction_gte?: InputMaybe; + transaction_in?: InputMaybe>; + transaction_lt?: InputMaybe; + transaction_lte?: InputMaybe; + transaction_not?: InputMaybe; + transaction_not_contains?: InputMaybe; + transaction_not_ends_with?: InputMaybe; + transaction_not_in?: InputMaybe>; + transaction_not_starts_with?: InputMaybe; + transaction_starts_with?: InputMaybe; + user?: InputMaybe; + user_contains?: InputMaybe; + user_in?: InputMaybe>; + user_not?: InputMaybe; + user_not_contains?: InputMaybe; + user_not_in?: InputMaybe>; +}; + +export enum CloseWithDeposit_OrderBy { + Closer = 'closer', + CollateralToLoanRate = 'collateralToLoanRate', + CollateralToken = 'collateralToken', + CollateralWithdrawAmount = 'collateralWithdrawAmount', + CurrentMargin = 'currentMargin', + EmittedBy = 'emittedBy', + Id = 'id', + Lender = 'lender', + LoanId = 'loanId', + LoanToken = 'loanToken', + RepayAmount = 'repayAmount', + Timestamp = 'timestamp', + Transaction = 'transaction', + User = 'user', +} + +/** + * Granular event data for the Loan entity. Emitted when a user closes a loan initiated by a Margin Trade + * + */ +export type CloseWithSwap = { + __typename?: 'CloseWithSwap'; + closer: Scalars['Bytes']; + collateralToken: Scalars['Bytes']; + /** + * Leverage on the smart contract does not count user-provided collateral. + * So, what would on the dapp be a 2x leverage trade would be a 1 here + * + */ + currentLeverage: Scalars['BigDecimal']; + emittedBy: Scalars['Bytes']; + exitPrice: Scalars['BigDecimal']; + id: Scalars['ID']; + lender: Scalars['Bytes']; + loanCloseAmount: Scalars['BigDecimal']; + loanId: Loan; + loanToken: Scalars['Bytes']; + positionCloseSize: Scalars['BigDecimal']; + timestamp: Scalars['Int']; + transaction: Transaction; + user: Scalars['Bytes']; +}; + +export type CloseWithSwap_Filter = { + closer?: InputMaybe; + closer_contains?: InputMaybe; + closer_in?: InputMaybe>; + closer_not?: InputMaybe; + closer_not_contains?: InputMaybe; + closer_not_in?: InputMaybe>; + collateralToken?: InputMaybe; + collateralToken_contains?: InputMaybe; + collateralToken_in?: InputMaybe>; + collateralToken_not?: InputMaybe; + collateralToken_not_contains?: InputMaybe; + collateralToken_not_in?: InputMaybe>; + currentLeverage?: InputMaybe; + currentLeverage_gt?: InputMaybe; + currentLeverage_gte?: InputMaybe; + currentLeverage_in?: InputMaybe>; + currentLeverage_lt?: InputMaybe; + currentLeverage_lte?: InputMaybe; + currentLeverage_not?: InputMaybe; + currentLeverage_not_in?: InputMaybe>; + emittedBy?: InputMaybe; + emittedBy_contains?: InputMaybe; + emittedBy_in?: InputMaybe>; + emittedBy_not?: InputMaybe; + emittedBy_not_contains?: InputMaybe; + emittedBy_not_in?: InputMaybe>; + exitPrice?: InputMaybe; + exitPrice_gt?: InputMaybe; + exitPrice_gte?: InputMaybe; + exitPrice_in?: InputMaybe>; + exitPrice_lt?: InputMaybe; + exitPrice_lte?: InputMaybe; + exitPrice_not?: InputMaybe; + exitPrice_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + lender?: InputMaybe; + lender_contains?: InputMaybe; + lender_in?: InputMaybe>; + lender_not?: InputMaybe; + lender_not_contains?: InputMaybe; + lender_not_in?: InputMaybe>; + loanCloseAmount?: InputMaybe; + loanCloseAmount_gt?: InputMaybe; + loanCloseAmount_gte?: InputMaybe; + loanCloseAmount_in?: InputMaybe>; + loanCloseAmount_lt?: InputMaybe; + loanCloseAmount_lte?: InputMaybe; + loanCloseAmount_not?: InputMaybe; + loanCloseAmount_not_in?: InputMaybe>; + loanId?: InputMaybe; + loanId_contains?: InputMaybe; + loanId_ends_with?: InputMaybe; + loanId_gt?: InputMaybe; + loanId_gte?: InputMaybe; + loanId_in?: InputMaybe>; + loanId_lt?: InputMaybe; + loanId_lte?: InputMaybe; + loanId_not?: InputMaybe; + loanId_not_contains?: InputMaybe; + loanId_not_ends_with?: InputMaybe; + loanId_not_in?: InputMaybe>; + loanId_not_starts_with?: InputMaybe; + loanId_starts_with?: InputMaybe; + loanToken?: InputMaybe; + loanToken_contains?: InputMaybe; + loanToken_in?: InputMaybe>; + loanToken_not?: InputMaybe; + loanToken_not_contains?: InputMaybe; + loanToken_not_in?: InputMaybe>; + positionCloseSize?: InputMaybe; + positionCloseSize_gt?: InputMaybe; + positionCloseSize_gte?: InputMaybe; + positionCloseSize_in?: InputMaybe>; + positionCloseSize_lt?: InputMaybe; + positionCloseSize_lte?: InputMaybe; + positionCloseSize_not?: InputMaybe; + positionCloseSize_not_in?: InputMaybe>; + timestamp?: InputMaybe; + timestamp_gt?: InputMaybe; + timestamp_gte?: InputMaybe; + timestamp_in?: InputMaybe>; + timestamp_lt?: InputMaybe; + timestamp_lte?: InputMaybe; + timestamp_not?: InputMaybe; + timestamp_not_in?: InputMaybe>; + transaction?: InputMaybe; + transaction_contains?: InputMaybe; + transaction_ends_with?: InputMaybe; + transaction_gt?: InputMaybe; + transaction_gte?: InputMaybe; + transaction_in?: InputMaybe>; + transaction_lt?: InputMaybe; + transaction_lte?: InputMaybe; + transaction_not?: InputMaybe; + transaction_not_contains?: InputMaybe; + transaction_not_ends_with?: InputMaybe; + transaction_not_in?: InputMaybe>; + transaction_not_starts_with?: InputMaybe; + transaction_starts_with?: InputMaybe; + user?: InputMaybe; + user_contains?: InputMaybe; + user_in?: InputMaybe>; + user_not?: InputMaybe; + user_not_contains?: InputMaybe; + user_not_in?: InputMaybe>; +}; + +export enum CloseWithSwap_OrderBy { + Closer = 'closer', + CollateralToken = 'collateralToken', + CurrentLeverage = 'currentLeverage', + EmittedBy = 'emittedBy', + ExitPrice = 'exitPrice', + Id = 'id', + Lender = 'lender', + LoanCloseAmount = 'loanCloseAmount', + LoanId = 'loanId', + LoanToken = 'loanToken', + PositionCloseSize = 'positionCloseSize', + Timestamp = 'timestamp', + Transaction = 'transaction', + User = 'user', +} + +/** + * Granular Conversion events, exactly as they appear on the contracts. + * These events are the raw data that the Swap entity and candlestick entities are built from. + * + */ +export type Conversion = { + __typename?: 'Conversion'; + _amount: Scalars['BigDecimal']; + _conversionFee: Scalars['BigDecimal']; + _fromToken: Token; + _protocolFee: Scalars['BigDecimal']; + _return: Scalars['BigDecimal']; + _toToken: Token; + _trader: Scalars['Bytes']; + blockNumber: Scalars['Int']; + emittedBy: LiquidityPool; + id: Scalars['ID']; + timestamp: Scalars['Int']; + transaction: Transaction; +}; + +export type Conversion_Filter = { + _amount?: InputMaybe; + _amount_gt?: InputMaybe; + _amount_gte?: InputMaybe; + _amount_in?: InputMaybe>; + _amount_lt?: InputMaybe; + _amount_lte?: InputMaybe; + _amount_not?: InputMaybe; + _amount_not_in?: InputMaybe>; + _conversionFee?: InputMaybe; + _conversionFee_gt?: InputMaybe; + _conversionFee_gte?: InputMaybe; + _conversionFee_in?: InputMaybe>; + _conversionFee_lt?: InputMaybe; + _conversionFee_lte?: InputMaybe; + _conversionFee_not?: InputMaybe; + _conversionFee_not_in?: InputMaybe>; + _fromToken?: InputMaybe; + _fromToken_contains?: InputMaybe; + _fromToken_ends_with?: InputMaybe; + _fromToken_gt?: InputMaybe; + _fromToken_gte?: InputMaybe; + _fromToken_in?: InputMaybe>; + _fromToken_lt?: InputMaybe; + _fromToken_lte?: InputMaybe; + _fromToken_not?: InputMaybe; + _fromToken_not_contains?: InputMaybe; + _fromToken_not_ends_with?: InputMaybe; + _fromToken_not_in?: InputMaybe>; + _fromToken_not_starts_with?: InputMaybe; + _fromToken_starts_with?: InputMaybe; + _protocolFee?: InputMaybe; + _protocolFee_gt?: InputMaybe; + _protocolFee_gte?: InputMaybe; + _protocolFee_in?: InputMaybe>; + _protocolFee_lt?: InputMaybe; + _protocolFee_lte?: InputMaybe; + _protocolFee_not?: InputMaybe; + _protocolFee_not_in?: InputMaybe>; + _return?: InputMaybe; + _return_gt?: InputMaybe; + _return_gte?: InputMaybe; + _return_in?: InputMaybe>; + _return_lt?: InputMaybe; + _return_lte?: InputMaybe; + _return_not?: InputMaybe; + _return_not_in?: InputMaybe>; + _toToken?: InputMaybe; + _toToken_contains?: InputMaybe; + _toToken_ends_with?: InputMaybe; + _toToken_gt?: InputMaybe; + _toToken_gte?: InputMaybe; + _toToken_in?: InputMaybe>; + _toToken_lt?: InputMaybe; + _toToken_lte?: InputMaybe; + _toToken_not?: InputMaybe; + _toToken_not_contains?: InputMaybe; + _toToken_not_ends_with?: InputMaybe; + _toToken_not_in?: InputMaybe>; + _toToken_not_starts_with?: InputMaybe; + _toToken_starts_with?: InputMaybe; + _trader?: InputMaybe; + _trader_contains?: InputMaybe; + _trader_in?: InputMaybe>; + _trader_not?: InputMaybe; + _trader_not_contains?: InputMaybe; + _trader_not_in?: InputMaybe>; + blockNumber?: InputMaybe; + blockNumber_gt?: InputMaybe; + blockNumber_gte?: InputMaybe; + blockNumber_in?: InputMaybe>; + blockNumber_lt?: InputMaybe; + blockNumber_lte?: InputMaybe; + blockNumber_not?: InputMaybe; + blockNumber_not_in?: InputMaybe>; + emittedBy?: InputMaybe; + emittedBy_contains?: InputMaybe; + emittedBy_ends_with?: InputMaybe; + emittedBy_gt?: InputMaybe; + emittedBy_gte?: InputMaybe; + emittedBy_in?: InputMaybe>; + emittedBy_lt?: InputMaybe; + emittedBy_lte?: InputMaybe; + emittedBy_not?: InputMaybe; + emittedBy_not_contains?: InputMaybe; + emittedBy_not_ends_with?: InputMaybe; + emittedBy_not_in?: InputMaybe>; + emittedBy_not_starts_with?: InputMaybe; + emittedBy_starts_with?: InputMaybe; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + timestamp?: InputMaybe; + timestamp_gt?: InputMaybe; + timestamp_gte?: InputMaybe; + timestamp_in?: InputMaybe>; + timestamp_lt?: InputMaybe; + timestamp_lte?: InputMaybe; + timestamp_not?: InputMaybe; + timestamp_not_in?: InputMaybe>; + transaction?: InputMaybe; + transaction_contains?: InputMaybe; + transaction_ends_with?: InputMaybe; + transaction_gt?: InputMaybe; + transaction_gte?: InputMaybe; + transaction_in?: InputMaybe>; + transaction_lt?: InputMaybe; + transaction_lte?: InputMaybe; + transaction_not?: InputMaybe; + transaction_not_contains?: InputMaybe; + transaction_not_ends_with?: InputMaybe; + transaction_not_in?: InputMaybe>; + transaction_not_starts_with?: InputMaybe; + transaction_starts_with?: InputMaybe; +}; + +export enum Conversion_OrderBy { + Amount = '_amount', + ConversionFee = '_conversionFee', + FromToken = '_fromToken', + ProtocolFee = '_protocolFee', + Return = '_return', + ToToken = '_toToken', + Trader = '_trader', + BlockNumber = 'blockNumber', + EmittedBy = 'emittedBy', + Id = 'id', + Timestamp = 'timestamp', + Transaction = 'transaction', +} + +/** + * The ConverterRegistry registers each new AMM pool added to the Sovryn Protocol + * + */ +export type ConverterRegistry = { + __typename?: 'ConverterRegistry'; + /** + * All ERC20 tokens in this registry + * + */ + connectorTokens?: Maybe>; + /** + * All the converters (AMM pools) associated with this registry + * + */ + converters?: Maybe>; + /** + * ID is the address of the converter registry contract + * + */ + id: Scalars['ID']; + /** + * The number of active converters (AMM pools) in this registry + * + */ + numConverters: Scalars['Int']; + /** + * All smart tokens in this registry + * + */ + smartTokens?: Maybe>; +}; + +/** + * The ConverterRegistry registers each new AMM pool added to the Sovryn Protocol + * + */ +export type ConverterRegistryConnectorTokensArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +/** + * The ConverterRegistry registers each new AMM pool added to the Sovryn Protocol + * + */ +export type ConverterRegistryConvertersArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +/** + * The ConverterRegistry registers each new AMM pool added to the Sovryn Protocol + * + */ +export type ConverterRegistrySmartTokensArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +export type ConverterRegistry_Filter = { + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + numConverters?: InputMaybe; + numConverters_gt?: InputMaybe; + numConverters_gte?: InputMaybe; + numConverters_in?: InputMaybe>; + numConverters_lt?: InputMaybe; + numConverters_lte?: InputMaybe; + numConverters_not?: InputMaybe; + numConverters_not_in?: InputMaybe>; +}; + +export enum ConverterRegistry_OrderBy { + ConnectorTokens = 'connectorTokens', + Converters = 'converters', + Id = 'id', + NumConverters = 'numConverters', + SmartTokens = 'smartTokens', +} + +export enum CrossDirection { + Incoming = 'Incoming', + Outgoing = 'Outgoing', +} + +export enum CrossStatus { + Executed = 'Executed', + Revoked = 'Revoked', + Voting = 'Voting', +} + +export type CrossTransfer = { + __typename?: 'CrossTransfer'; + /** + * Amount - the amount of originalToken transferred across the bridge + * + */ + amount: Scalars['BigDecimal']; + /** + * CreatedAtTimestamp - the timestamp at which this transfer was created + * + */ + createdAtTimestamp: Scalars['Int']; + /** + * CreatedAtTx - the transaction at which this transfer was created + * + */ + createdAtTx: Transaction; + /** + * DestinationChain - the destination chain - for outgoing it is BSC/ETH and for incoming it is RSK + * + */ + destinationChain: BridgeChain; + /** + * Direction - the direction of the cross transfer (Incoming or Outgoing) + * + */ + direction: CrossDirection; + /** + * Address of the user on the external chain (eg Ethereum, BSC etc.) + * + */ + externalUser?: Maybe; + /** + * Id - the cross transfer Id - for outgoing it is generated from the cross event params for incoming it is coming from the federation events + * + */ + id: Scalars['ID']; + /** + * originalTokenAddress - the original token address for the transfer (for outgoing it is just the RSK token address) + * + */ + originalTokenAddress: Scalars['Bytes']; + /** + * sideToken - the SideToken entity if exist of original token address + * + */ + sideToken?: Maybe; + /** + * sourceChain - the source chain - for outgoing it is RSK and for incoming it is BSC/ETH + * + */ + sourceChain: BridgeChain; + /** + * SourceChainBlockHash - the source chain block hash of the transfer, for outgoing transfers this is just the RSK block hash + * + */ + sourceChainBlockHash?: Maybe; + /** + * SourceChainTransactionHash - the source chain transaction hash of the transfer, for outgoing transfers this is just the RSK transaction hash + * + */ + sourceChainTransactionHash?: Maybe; + /** + * Status - transfer status - Voting, Executed, Revoked + * + */ + status: CrossStatus; + /** + * Symbol - the token symbol + * + */ + symbol?: Maybe; + /** + * Token - the token entity if exist of original token address + * + */ + token?: Maybe; + /** + * TokenAddress - the token address for the transfer (only relevant for incoming transfers) + * + */ + tokenAddress?: Maybe; + /** + * updatedAtTimestamp - the timestamp at which this transfer was last updated + * + */ + updatedAtTimestamp: Scalars['Int']; + /** + * updatedAtTx - the transaction at which this transfer was last updated + * + */ + updatedAtTx: Transaction; + /** + * Address of the user on RSK chain + * + */ + user: User; + /** + * Votes - Number of votes cast for this transfer + * + */ + votes?: Maybe; +}; + +export type CrossTransfer_Filter = { + amount?: InputMaybe; + amount_gt?: InputMaybe; + amount_gte?: InputMaybe; + amount_in?: InputMaybe>; + amount_lt?: InputMaybe; + amount_lte?: InputMaybe; + amount_not?: InputMaybe; + amount_not_in?: InputMaybe>; + createdAtTimestamp?: InputMaybe; + createdAtTimestamp_gt?: InputMaybe; + createdAtTimestamp_gte?: InputMaybe; + createdAtTimestamp_in?: InputMaybe>; + createdAtTimestamp_lt?: InputMaybe; + createdAtTimestamp_lte?: InputMaybe; + createdAtTimestamp_not?: InputMaybe; + createdAtTimestamp_not_in?: InputMaybe>; + createdAtTx?: InputMaybe; + createdAtTx_contains?: InputMaybe; + createdAtTx_ends_with?: InputMaybe; + createdAtTx_gt?: InputMaybe; + createdAtTx_gte?: InputMaybe; + createdAtTx_in?: InputMaybe>; + createdAtTx_lt?: InputMaybe; + createdAtTx_lte?: InputMaybe; + createdAtTx_not?: InputMaybe; + createdAtTx_not_contains?: InputMaybe; + createdAtTx_not_ends_with?: InputMaybe; + createdAtTx_not_in?: InputMaybe>; + createdAtTx_not_starts_with?: InputMaybe; + createdAtTx_starts_with?: InputMaybe; + destinationChain?: InputMaybe; + destinationChain_in?: InputMaybe>; + destinationChain_not?: InputMaybe; + destinationChain_not_in?: InputMaybe>; + direction?: InputMaybe; + direction_in?: InputMaybe>; + direction_not?: InputMaybe; + direction_not_in?: InputMaybe>; + externalUser?: InputMaybe; + externalUser_contains?: InputMaybe; + externalUser_in?: InputMaybe>; + externalUser_not?: InputMaybe; + externalUser_not_contains?: InputMaybe; + externalUser_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + originalTokenAddress?: InputMaybe; + originalTokenAddress_contains?: InputMaybe; + originalTokenAddress_in?: InputMaybe>; + originalTokenAddress_not?: InputMaybe; + originalTokenAddress_not_contains?: InputMaybe; + originalTokenAddress_not_in?: InputMaybe>; + sideToken?: InputMaybe; + sideToken_contains?: InputMaybe; + sideToken_ends_with?: InputMaybe; + sideToken_gt?: InputMaybe; + sideToken_gte?: InputMaybe; + sideToken_in?: InputMaybe>; + sideToken_lt?: InputMaybe; + sideToken_lte?: InputMaybe; + sideToken_not?: InputMaybe; + sideToken_not_contains?: InputMaybe; + sideToken_not_ends_with?: InputMaybe; + sideToken_not_in?: InputMaybe>; + sideToken_not_starts_with?: InputMaybe; + sideToken_starts_with?: InputMaybe; + sourceChain?: InputMaybe; + sourceChainBlockHash?: InputMaybe; + sourceChainBlockHash_contains?: InputMaybe; + sourceChainBlockHash_in?: InputMaybe>; + sourceChainBlockHash_not?: InputMaybe; + sourceChainBlockHash_not_contains?: InputMaybe; + sourceChainBlockHash_not_in?: InputMaybe>; + sourceChainTransactionHash?: InputMaybe; + sourceChainTransactionHash_contains?: InputMaybe; + sourceChainTransactionHash_in?: InputMaybe>; + sourceChainTransactionHash_not?: InputMaybe; + sourceChainTransactionHash_not_contains?: InputMaybe; + sourceChainTransactionHash_not_in?: InputMaybe>; + sourceChain_in?: InputMaybe>; + sourceChain_not?: InputMaybe; + sourceChain_not_in?: InputMaybe>; + status?: InputMaybe; + status_in?: InputMaybe>; + status_not?: InputMaybe; + status_not_in?: InputMaybe>; + symbol?: InputMaybe; + symbol_contains?: InputMaybe; + symbol_ends_with?: InputMaybe; + symbol_gt?: InputMaybe; + symbol_gte?: InputMaybe; + symbol_in?: InputMaybe>; + symbol_lt?: InputMaybe; + symbol_lte?: InputMaybe; + symbol_not?: InputMaybe; + symbol_not_contains?: InputMaybe; + symbol_not_ends_with?: InputMaybe; + symbol_not_in?: InputMaybe>; + symbol_not_starts_with?: InputMaybe; + symbol_starts_with?: InputMaybe; + token?: InputMaybe; + tokenAddress?: InputMaybe; + tokenAddress_contains?: InputMaybe; + tokenAddress_in?: InputMaybe>; + tokenAddress_not?: InputMaybe; + tokenAddress_not_contains?: InputMaybe; + tokenAddress_not_in?: InputMaybe>; + token_contains?: InputMaybe; + token_ends_with?: InputMaybe; + token_gt?: InputMaybe; + token_gte?: InputMaybe; + token_in?: InputMaybe>; + token_lt?: InputMaybe; + token_lte?: InputMaybe; + token_not?: InputMaybe; + token_not_contains?: InputMaybe; + token_not_ends_with?: InputMaybe; + token_not_in?: InputMaybe>; + token_not_starts_with?: InputMaybe; + token_starts_with?: InputMaybe; + updatedAtTimestamp?: InputMaybe; + updatedAtTimestamp_gt?: InputMaybe; + updatedAtTimestamp_gte?: InputMaybe; + updatedAtTimestamp_in?: InputMaybe>; + updatedAtTimestamp_lt?: InputMaybe; + updatedAtTimestamp_lte?: InputMaybe; + updatedAtTimestamp_not?: InputMaybe; + updatedAtTimestamp_not_in?: InputMaybe>; + updatedAtTx?: InputMaybe; + updatedAtTx_contains?: InputMaybe; + updatedAtTx_ends_with?: InputMaybe; + updatedAtTx_gt?: InputMaybe; + updatedAtTx_gte?: InputMaybe; + updatedAtTx_in?: InputMaybe>; + updatedAtTx_lt?: InputMaybe; + updatedAtTx_lte?: InputMaybe; + updatedAtTx_not?: InputMaybe; + updatedAtTx_not_contains?: InputMaybe; + updatedAtTx_not_ends_with?: InputMaybe; + updatedAtTx_not_in?: InputMaybe>; + updatedAtTx_not_starts_with?: InputMaybe; + updatedAtTx_starts_with?: InputMaybe; + user?: InputMaybe; + user_contains?: InputMaybe; + user_ends_with?: InputMaybe; + user_gt?: InputMaybe; + user_gte?: InputMaybe; + user_in?: InputMaybe>; + user_lt?: InputMaybe; + user_lte?: InputMaybe; + user_not?: InputMaybe; + user_not_contains?: InputMaybe; + user_not_ends_with?: InputMaybe; + user_not_in?: InputMaybe>; + user_not_starts_with?: InputMaybe; + user_starts_with?: InputMaybe; + votes?: InputMaybe; + votes_gt?: InputMaybe; + votes_gte?: InputMaybe; + votes_in?: InputMaybe>; + votes_lt?: InputMaybe; + votes_lte?: InputMaybe; + votes_not?: InputMaybe; + votes_not_in?: InputMaybe>; +}; + +export enum CrossTransfer_OrderBy { + Amount = 'amount', + CreatedAtTimestamp = 'createdAtTimestamp', + CreatedAtTx = 'createdAtTx', + DestinationChain = 'destinationChain', + Direction = 'direction', + ExternalUser = 'externalUser', + Id = 'id', + OriginalTokenAddress = 'originalTokenAddress', + SideToken = 'sideToken', + SourceChain = 'sourceChain', + SourceChainBlockHash = 'sourceChainBlockHash', + SourceChainTransactionHash = 'sourceChainTransactionHash', + Status = 'status', + Symbol = 'symbol', + Token = 'token', + TokenAddress = 'tokenAddress', + UpdatedAtTimestamp = 'updatedAtTimestamp', + UpdatedAtTx = 'updatedAtTx', + User = 'user', + Votes = 'votes', +} + +export type Deposit = { + __typename?: 'Deposit'; + amount: Scalars['BigDecimal']; + emittedBy: Scalars['Bytes']; + id: Scalars['ID']; + timestamp: Scalars['Int']; + to: Scalars['Bytes']; + transaction: Transaction; +}; + +/** + * Granular event data for the Loan entity. Emitted when a user closes adds collateral to a Margin Trade or Borrow + * + */ +export type DepositCollateral = { + __typename?: 'DepositCollateral'; + depositAmount: Scalars['BigDecimal']; + emittedBy: Scalars['Bytes']; + id: Scalars['ID']; + loanId: Loan; + /** + * Rate is sometimes null because this property was not included in older versions of the contract + * + */ + rate?: Maybe; + timestamp: Scalars['Int']; + transaction: Transaction; +}; + +export type DepositCollateral_Filter = { + depositAmount?: InputMaybe; + depositAmount_gt?: InputMaybe; + depositAmount_gte?: InputMaybe; + depositAmount_in?: InputMaybe>; + depositAmount_lt?: InputMaybe; + depositAmount_lte?: InputMaybe; + depositAmount_not?: InputMaybe; + depositAmount_not_in?: InputMaybe>; + emittedBy?: InputMaybe; + emittedBy_contains?: InputMaybe; + emittedBy_in?: InputMaybe>; + emittedBy_not?: InputMaybe; + emittedBy_not_contains?: InputMaybe; + emittedBy_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + loanId?: InputMaybe; + loanId_contains?: InputMaybe; + loanId_ends_with?: InputMaybe; + loanId_gt?: InputMaybe; + loanId_gte?: InputMaybe; + loanId_in?: InputMaybe>; + loanId_lt?: InputMaybe; + loanId_lte?: InputMaybe; + loanId_not?: InputMaybe; + loanId_not_contains?: InputMaybe; + loanId_not_ends_with?: InputMaybe; + loanId_not_in?: InputMaybe>; + loanId_not_starts_with?: InputMaybe; + loanId_starts_with?: InputMaybe; + rate?: InputMaybe; + rate_gt?: InputMaybe; + rate_gte?: InputMaybe; + rate_in?: InputMaybe>; + rate_lt?: InputMaybe; + rate_lte?: InputMaybe; + rate_not?: InputMaybe; + rate_not_in?: InputMaybe>; + timestamp?: InputMaybe; + timestamp_gt?: InputMaybe; + timestamp_gte?: InputMaybe; + timestamp_in?: InputMaybe>; + timestamp_lt?: InputMaybe; + timestamp_lte?: InputMaybe; + timestamp_not?: InputMaybe; + timestamp_not_in?: InputMaybe>; + transaction?: InputMaybe; + transaction_contains?: InputMaybe; + transaction_ends_with?: InputMaybe; + transaction_gt?: InputMaybe; + transaction_gte?: InputMaybe; + transaction_in?: InputMaybe>; + transaction_lt?: InputMaybe; + transaction_lte?: InputMaybe; + transaction_not?: InputMaybe; + transaction_not_contains?: InputMaybe; + transaction_not_ends_with?: InputMaybe; + transaction_not_in?: InputMaybe>; + transaction_not_starts_with?: InputMaybe; + transaction_starts_with?: InputMaybe; +}; + +export enum DepositCollateral_OrderBy { + DepositAmount = 'depositAmount', + EmittedBy = 'emittedBy', + Id = 'id', + LoanId = 'loanId', + Rate = 'rate', + Timestamp = 'timestamp', + Transaction = 'transaction', +} + +export type Deposit_Filter = { + amount?: InputMaybe; + amount_gt?: InputMaybe; + amount_gte?: InputMaybe; + amount_in?: InputMaybe>; + amount_lt?: InputMaybe; + amount_lte?: InputMaybe; + amount_not?: InputMaybe; + amount_not_in?: InputMaybe>; + emittedBy?: InputMaybe; + emittedBy_contains?: InputMaybe; + emittedBy_in?: InputMaybe>; + emittedBy_not?: InputMaybe; + emittedBy_not_contains?: InputMaybe; + emittedBy_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + timestamp?: InputMaybe; + timestamp_gt?: InputMaybe; + timestamp_gte?: InputMaybe; + timestamp_in?: InputMaybe>; + timestamp_lt?: InputMaybe; + timestamp_lte?: InputMaybe; + timestamp_not?: InputMaybe; + timestamp_not_in?: InputMaybe>; + to?: InputMaybe; + to_contains?: InputMaybe; + to_in?: InputMaybe>; + to_not?: InputMaybe; + to_not_contains?: InputMaybe; + to_not_in?: InputMaybe>; + transaction?: InputMaybe; + transaction_contains?: InputMaybe; + transaction_ends_with?: InputMaybe; + transaction_gt?: InputMaybe; + transaction_gte?: InputMaybe; + transaction_in?: InputMaybe>; + transaction_lt?: InputMaybe; + transaction_lte?: InputMaybe; + transaction_not?: InputMaybe; + transaction_not_contains?: InputMaybe; + transaction_not_ends_with?: InputMaybe; + transaction_not_in?: InputMaybe>; + transaction_not_starts_with?: InputMaybe; + transaction_starts_with?: InputMaybe; +}; + +export enum Deposit_OrderBy { + Amount = 'amount', + EmittedBy = 'emittedBy', + Id = 'id', + Timestamp = 'timestamp', + To = 'to', + Transaction = 'transaction', +} + +export type FastBtcBridgeStat = { + __typename?: 'FastBTCBridgeStat'; + createdAtTx: Transaction; + id: Scalars['ID']; + totalAmountBTCInitialized: Scalars['BigDecimal']; + totalAmountBTCMined: Scalars['BigDecimal']; + totalAmountBTCRefunded: Scalars['BigDecimal']; + totalAmountBTCSending: Scalars['BigDecimal']; + totalFeesBTC: Scalars['BigDecimal']; + updatedAtTx: Transaction; + user?: Maybe; +}; + +export type FastBtcBridgeStat_Filter = { + createdAtTx?: InputMaybe; + createdAtTx_contains?: InputMaybe; + createdAtTx_ends_with?: InputMaybe; + createdAtTx_gt?: InputMaybe; + createdAtTx_gte?: InputMaybe; + createdAtTx_in?: InputMaybe>; + createdAtTx_lt?: InputMaybe; + createdAtTx_lte?: InputMaybe; + createdAtTx_not?: InputMaybe; + createdAtTx_not_contains?: InputMaybe; + createdAtTx_not_ends_with?: InputMaybe; + createdAtTx_not_in?: InputMaybe>; + createdAtTx_not_starts_with?: InputMaybe; + createdAtTx_starts_with?: InputMaybe; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + totalAmountBTCInitialized?: InputMaybe; + totalAmountBTCInitialized_gt?: InputMaybe; + totalAmountBTCInitialized_gte?: InputMaybe; + totalAmountBTCInitialized_in?: InputMaybe>; + totalAmountBTCInitialized_lt?: InputMaybe; + totalAmountBTCInitialized_lte?: InputMaybe; + totalAmountBTCInitialized_not?: InputMaybe; + totalAmountBTCInitialized_not_in?: InputMaybe>; + totalAmountBTCMined?: InputMaybe; + totalAmountBTCMined_gt?: InputMaybe; + totalAmountBTCMined_gte?: InputMaybe; + totalAmountBTCMined_in?: InputMaybe>; + totalAmountBTCMined_lt?: InputMaybe; + totalAmountBTCMined_lte?: InputMaybe; + totalAmountBTCMined_not?: InputMaybe; + totalAmountBTCMined_not_in?: InputMaybe>; + totalAmountBTCRefunded?: InputMaybe; + totalAmountBTCRefunded_gt?: InputMaybe; + totalAmountBTCRefunded_gte?: InputMaybe; + totalAmountBTCRefunded_in?: InputMaybe>; + totalAmountBTCRefunded_lt?: InputMaybe; + totalAmountBTCRefunded_lte?: InputMaybe; + totalAmountBTCRefunded_not?: InputMaybe; + totalAmountBTCRefunded_not_in?: InputMaybe>; + totalAmountBTCSending?: InputMaybe; + totalAmountBTCSending_gt?: InputMaybe; + totalAmountBTCSending_gte?: InputMaybe; + totalAmountBTCSending_in?: InputMaybe>; + totalAmountBTCSending_lt?: InputMaybe; + totalAmountBTCSending_lte?: InputMaybe; + totalAmountBTCSending_not?: InputMaybe; + totalAmountBTCSending_not_in?: InputMaybe>; + totalFeesBTC?: InputMaybe; + totalFeesBTC_gt?: InputMaybe; + totalFeesBTC_gte?: InputMaybe; + totalFeesBTC_in?: InputMaybe>; + totalFeesBTC_lt?: InputMaybe; + totalFeesBTC_lte?: InputMaybe; + totalFeesBTC_not?: InputMaybe; + totalFeesBTC_not_in?: InputMaybe>; + updatedAtTx?: InputMaybe; + updatedAtTx_contains?: InputMaybe; + updatedAtTx_ends_with?: InputMaybe; + updatedAtTx_gt?: InputMaybe; + updatedAtTx_gte?: InputMaybe; + updatedAtTx_in?: InputMaybe>; + updatedAtTx_lt?: InputMaybe; + updatedAtTx_lte?: InputMaybe; + updatedAtTx_not?: InputMaybe; + updatedAtTx_not_contains?: InputMaybe; + updatedAtTx_not_ends_with?: InputMaybe; + updatedAtTx_not_in?: InputMaybe>; + updatedAtTx_not_starts_with?: InputMaybe; + updatedAtTx_starts_with?: InputMaybe; + user?: InputMaybe; + user_contains?: InputMaybe; + user_ends_with?: InputMaybe; + user_gt?: InputMaybe; + user_gte?: InputMaybe; + user_in?: InputMaybe>; + user_lt?: InputMaybe; + user_lte?: InputMaybe; + user_not?: InputMaybe; + user_not_contains?: InputMaybe; + user_not_ends_with?: InputMaybe; + user_not_in?: InputMaybe>; + user_not_starts_with?: InputMaybe; + user_starts_with?: InputMaybe; +}; + +export enum FastBtcBridgeStat_OrderBy { + CreatedAtTx = 'createdAtTx', + Id = 'id', + TotalAmountBtcInitialized = 'totalAmountBTCInitialized', + TotalAmountBtcMined = 'totalAmountBTCMined', + TotalAmountBtcRefunded = 'totalAmountBTCRefunded', + TotalAmountBtcSending = 'totalAmountBTCSending', + TotalFeesBtc = 'totalFeesBTC', + UpdatedAtTx = 'updatedAtTx', + User = 'user', +} + +/** + * Federation - the federation entity + * + */ +export type Federation = { + __typename?: 'Federation'; + /** + * Bridge - the bridge that is associated with this federation contract + * + */ + bridge: Bridge; + /** + * CreatedAtTx - the creation transaction of this federation + * + */ + createdAtTx: Transaction; + /** + * Id - the id of the federation entity is the federation contract address + * + */ + id: Scalars['ID']; + /** + * IsActive - is this federation contract active + * + */ + isActive: Scalars['Boolean']; + /** + * Members - federators that are members of this federation + * + */ + members: Array; + /** + * TotalExecuted - total transfers executed by this federation + * + */ + totalExecuted: Scalars['Int']; + /** + * TotalVotes - total votes cast on this federation + * + */ + totalVotes: Scalars['Int']; + /** + * UpdatedAtTx - the transaction at which this entity was last updated + * + */ + updatedAtTx: Transaction; +}; + +export type Federation_Filter = { + bridge?: InputMaybe; + bridge_contains?: InputMaybe; + bridge_ends_with?: InputMaybe; + bridge_gt?: InputMaybe; + bridge_gte?: InputMaybe; + bridge_in?: InputMaybe>; + bridge_lt?: InputMaybe; + bridge_lte?: InputMaybe; + bridge_not?: InputMaybe; + bridge_not_contains?: InputMaybe; + bridge_not_ends_with?: InputMaybe; + bridge_not_in?: InputMaybe>; + bridge_not_starts_with?: InputMaybe; + bridge_starts_with?: InputMaybe; + createdAtTx?: InputMaybe; + createdAtTx_contains?: InputMaybe; + createdAtTx_ends_with?: InputMaybe; + createdAtTx_gt?: InputMaybe; + createdAtTx_gte?: InputMaybe; + createdAtTx_in?: InputMaybe>; + createdAtTx_lt?: InputMaybe; + createdAtTx_lte?: InputMaybe; + createdAtTx_not?: InputMaybe; + createdAtTx_not_contains?: InputMaybe; + createdAtTx_not_ends_with?: InputMaybe; + createdAtTx_not_in?: InputMaybe>; + createdAtTx_not_starts_with?: InputMaybe; + createdAtTx_starts_with?: InputMaybe; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + isActive?: InputMaybe; + isActive_in?: InputMaybe>; + isActive_not?: InputMaybe; + isActive_not_in?: InputMaybe>; + members?: InputMaybe>; + members_contains?: InputMaybe>; + members_not?: InputMaybe>; + members_not_contains?: InputMaybe>; + totalExecuted?: InputMaybe; + totalExecuted_gt?: InputMaybe; + totalExecuted_gte?: InputMaybe; + totalExecuted_in?: InputMaybe>; + totalExecuted_lt?: InputMaybe; + totalExecuted_lte?: InputMaybe; + totalExecuted_not?: InputMaybe; + totalExecuted_not_in?: InputMaybe>; + totalVotes?: InputMaybe; + totalVotes_gt?: InputMaybe; + totalVotes_gte?: InputMaybe; + totalVotes_in?: InputMaybe>; + totalVotes_lt?: InputMaybe; + totalVotes_lte?: InputMaybe; + totalVotes_not?: InputMaybe; + totalVotes_not_in?: InputMaybe>; + updatedAtTx?: InputMaybe; + updatedAtTx_contains?: InputMaybe; + updatedAtTx_ends_with?: InputMaybe; + updatedAtTx_gt?: InputMaybe; + updatedAtTx_gte?: InputMaybe; + updatedAtTx_in?: InputMaybe>; + updatedAtTx_lt?: InputMaybe; + updatedAtTx_lte?: InputMaybe; + updatedAtTx_not?: InputMaybe; + updatedAtTx_not_contains?: InputMaybe; + updatedAtTx_not_ends_with?: InputMaybe; + updatedAtTx_not_in?: InputMaybe>; + updatedAtTx_not_starts_with?: InputMaybe; + updatedAtTx_starts_with?: InputMaybe; +}; + +export enum Federation_OrderBy { + Bridge = 'bridge', + CreatedAtTx = 'createdAtTx', + Id = 'id', + IsActive = 'isActive', + Members = 'members', + TotalExecuted = 'totalExecuted', + TotalVotes = 'totalVotes', + UpdatedAtTx = 'updatedAtTx', +} + +export type FeeSharingTokensTransferred = { + __typename?: 'FeeSharingTokensTransferred'; + amount: Scalars['BigDecimal']; + id: Scalars['ID']; + sender: Scalars['Bytes']; + token: Scalars['Bytes']; +}; + +export type FeeSharingTokensTransferred_Filter = { + amount?: InputMaybe; + amount_gt?: InputMaybe; + amount_gte?: InputMaybe; + amount_in?: InputMaybe>; + amount_lt?: InputMaybe; + amount_lte?: InputMaybe; + amount_not?: InputMaybe; + amount_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + sender?: InputMaybe; + sender_contains?: InputMaybe; + sender_in?: InputMaybe>; + sender_not?: InputMaybe; + sender_not_contains?: InputMaybe; + sender_not_in?: InputMaybe>; + token?: InputMaybe; + token_contains?: InputMaybe; + token_in?: InputMaybe>; + token_not?: InputMaybe; + token_not_contains?: InputMaybe; + token_not_in?: InputMaybe>; +}; + +export enum FeeSharingTokensTransferred_OrderBy { + Amount = 'amount', + Id = 'id', + Sender = 'sender', + Token = 'token', +} + +export enum FeeType { + Amm = 'AMM', + Borrowing = 'Borrowing', + Lending = 'Lending', + Trading = 'Trading', +} + +/** + * Candlesticks are for presentational purposes on the dapp. This entity supports the candlestick trading data on the trading view charts. + * Trading data is available for the following pairs: + * 1. All tokens to RBTC + * 2. All tokens to current usdStablecoin (see ProtocolStats entity for more information) + * There is not candlestick data for other trading pairs as this would cause the amount of data stored to increase exponentially + * + */ +export type ICandleStick = { + /** + * Eg in the pair SOV-XUSD, the base token is SOV and the quote token is XUSD + * Prices shown are the price of the base token in the quote token (eg price of SOV in XUSD) + * + */ + baseToken?: Maybe; + close: Scalars['BigDecimal']; + high: Scalars['BigDecimal']; + /** + * The ID is fromToken + toToken + timestamp + * toToken will be either RBTC or XUSD + * + */ + id: Scalars['ID']; + low: Scalars['BigDecimal']; + open?: Maybe; + /** + * Unix timestamp for the candlestick start time + * + */ + periodStartUnix: Scalars['Int']; + quoteToken?: Maybe; + /** + * The volume of the base token that has been bought and sold in this time period + * + */ + totalVolume: Scalars['BigDecimal']; + txCount: Scalars['Int']; +}; + +export type ICandleStick_Filter = { + baseToken?: InputMaybe; + baseToken_contains?: InputMaybe; + baseToken_ends_with?: InputMaybe; + baseToken_gt?: InputMaybe; + baseToken_gte?: InputMaybe; + baseToken_in?: InputMaybe>; + baseToken_lt?: InputMaybe; + baseToken_lte?: InputMaybe; + baseToken_not?: InputMaybe; + baseToken_not_contains?: InputMaybe; + baseToken_not_ends_with?: InputMaybe; + baseToken_not_in?: InputMaybe>; + baseToken_not_starts_with?: InputMaybe; + baseToken_starts_with?: InputMaybe; + close?: InputMaybe; + close_gt?: InputMaybe; + close_gte?: InputMaybe; + close_in?: InputMaybe>; + close_lt?: InputMaybe; + close_lte?: InputMaybe; + close_not?: InputMaybe; + close_not_in?: InputMaybe>; + high?: InputMaybe; + high_gt?: InputMaybe; + high_gte?: InputMaybe; + high_in?: InputMaybe>; + high_lt?: InputMaybe; + high_lte?: InputMaybe; + high_not?: InputMaybe; + high_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + low?: InputMaybe; + low_gt?: InputMaybe; + low_gte?: InputMaybe; + low_in?: InputMaybe>; + low_lt?: InputMaybe; + low_lte?: InputMaybe; + low_not?: InputMaybe; + low_not_in?: InputMaybe>; + open?: InputMaybe; + open_gt?: InputMaybe; + open_gte?: InputMaybe; + open_in?: InputMaybe>; + open_lt?: InputMaybe; + open_lte?: InputMaybe; + open_not?: InputMaybe; + open_not_in?: InputMaybe>; + periodStartUnix?: InputMaybe; + periodStartUnix_gt?: InputMaybe; + periodStartUnix_gte?: InputMaybe; + periodStartUnix_in?: InputMaybe>; + periodStartUnix_lt?: InputMaybe; + periodStartUnix_lte?: InputMaybe; + periodStartUnix_not?: InputMaybe; + periodStartUnix_not_in?: InputMaybe>; + quoteToken?: InputMaybe; + quoteToken_contains?: InputMaybe; + quoteToken_ends_with?: InputMaybe; + quoteToken_gt?: InputMaybe; + quoteToken_gte?: InputMaybe; + quoteToken_in?: InputMaybe>; + quoteToken_lt?: InputMaybe; + quoteToken_lte?: InputMaybe; + quoteToken_not?: InputMaybe; + quoteToken_not_contains?: InputMaybe; + quoteToken_not_ends_with?: InputMaybe; + quoteToken_not_in?: InputMaybe>; + quoteToken_not_starts_with?: InputMaybe; + quoteToken_starts_with?: InputMaybe; + totalVolume?: InputMaybe; + totalVolume_gt?: InputMaybe; + totalVolume_gte?: InputMaybe; + totalVolume_in?: InputMaybe>; + totalVolume_lt?: InputMaybe; + totalVolume_lte?: InputMaybe; + totalVolume_not?: InputMaybe; + totalVolume_not_in?: InputMaybe>; + txCount?: InputMaybe; + txCount_gt?: InputMaybe; + txCount_gte?: InputMaybe; + txCount_in?: InputMaybe>; + txCount_lt?: InputMaybe; + txCount_lte?: InputMaybe; + txCount_not?: InputMaybe; + txCount_not_in?: InputMaybe>; +}; + +export enum ICandleStick_OrderBy { + BaseToken = 'baseToken', + Close = 'close', + High = 'high', + Id = 'id', + Low = 'low', + Open = 'open', + PeriodStartUnix = 'periodStartUnix', + QuoteToken = 'quoteToken', + TotalVolume = 'totalVolume', + TxCount = 'txCount', +} + +/** + * LendingHistoryItem is one user's history of Lend/UnLend events across all the lending pools + * + */ +export type LendingHistoryItem = { + __typename?: 'LendingHistoryItem'; + /** + * The amount of ERC20 token that was lent/unlent + * + */ + amount: Scalars['BigDecimal']; + /** + * The underlying asset for this pool (eg USDT for the iUSDT pool) + * + */ + asset?: Maybe; + emittedBy: Scalars['String']; + id: Scalars['ID']; + lender: User; + /** + * The lending pool the user interacted with + * + */ + lendingPool: LendingPool; + /** + * The amount of pool token that was minted or burned + * + */ + loanTokenAmount: Scalars['BigDecimal']; + timestamp: Scalars['Int']; + transaction: Transaction; + /** + * Type is Lend/UnLend + * + */ + type: LendingHistoryType; + /** + * Foreign key to the UserLendingHistory entity (see the docs on this entity for more information) + * + */ + userLendingHistory: UserLendingHistory; +}; + +export type LendingHistoryItem_Filter = { + amount?: InputMaybe; + amount_gt?: InputMaybe; + amount_gte?: InputMaybe; + amount_in?: InputMaybe>; + amount_lt?: InputMaybe; + amount_lte?: InputMaybe; + amount_not?: InputMaybe; + amount_not_in?: InputMaybe>; + asset?: InputMaybe; + asset_contains?: InputMaybe; + asset_ends_with?: InputMaybe; + asset_gt?: InputMaybe; + asset_gte?: InputMaybe; + asset_in?: InputMaybe>; + asset_lt?: InputMaybe; + asset_lte?: InputMaybe; + asset_not?: InputMaybe; + asset_not_contains?: InputMaybe; + asset_not_ends_with?: InputMaybe; + asset_not_in?: InputMaybe>; + asset_not_starts_with?: InputMaybe; + asset_starts_with?: InputMaybe; + emittedBy?: InputMaybe; + emittedBy_contains?: InputMaybe; + emittedBy_ends_with?: InputMaybe; + emittedBy_gt?: InputMaybe; + emittedBy_gte?: InputMaybe; + emittedBy_in?: InputMaybe>; + emittedBy_lt?: InputMaybe; + emittedBy_lte?: InputMaybe; + emittedBy_not?: InputMaybe; + emittedBy_not_contains?: InputMaybe; + emittedBy_not_ends_with?: InputMaybe; + emittedBy_not_in?: InputMaybe>; + emittedBy_not_starts_with?: InputMaybe; + emittedBy_starts_with?: InputMaybe; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + lender?: InputMaybe; + lender_contains?: InputMaybe; + lender_ends_with?: InputMaybe; + lender_gt?: InputMaybe; + lender_gte?: InputMaybe; + lender_in?: InputMaybe>; + lender_lt?: InputMaybe; + lender_lte?: InputMaybe; + lender_not?: InputMaybe; + lender_not_contains?: InputMaybe; + lender_not_ends_with?: InputMaybe; + lender_not_in?: InputMaybe>; + lender_not_starts_with?: InputMaybe; + lender_starts_with?: InputMaybe; + lendingPool?: InputMaybe; + lendingPool_contains?: InputMaybe; + lendingPool_ends_with?: InputMaybe; + lendingPool_gt?: InputMaybe; + lendingPool_gte?: InputMaybe; + lendingPool_in?: InputMaybe>; + lendingPool_lt?: InputMaybe; + lendingPool_lte?: InputMaybe; + lendingPool_not?: InputMaybe; + lendingPool_not_contains?: InputMaybe; + lendingPool_not_ends_with?: InputMaybe; + lendingPool_not_in?: InputMaybe>; + lendingPool_not_starts_with?: InputMaybe; + lendingPool_starts_with?: InputMaybe; + loanTokenAmount?: InputMaybe; + loanTokenAmount_gt?: InputMaybe; + loanTokenAmount_gte?: InputMaybe; + loanTokenAmount_in?: InputMaybe>; + loanTokenAmount_lt?: InputMaybe; + loanTokenAmount_lte?: InputMaybe; + loanTokenAmount_not?: InputMaybe; + loanTokenAmount_not_in?: InputMaybe>; + timestamp?: InputMaybe; + timestamp_gt?: InputMaybe; + timestamp_gte?: InputMaybe; + timestamp_in?: InputMaybe>; + timestamp_lt?: InputMaybe; + timestamp_lte?: InputMaybe; + timestamp_not?: InputMaybe; + timestamp_not_in?: InputMaybe>; + transaction?: InputMaybe; + transaction_contains?: InputMaybe; + transaction_ends_with?: InputMaybe; + transaction_gt?: InputMaybe; + transaction_gte?: InputMaybe; + transaction_in?: InputMaybe>; + transaction_lt?: InputMaybe; + transaction_lte?: InputMaybe; + transaction_not?: InputMaybe; + transaction_not_contains?: InputMaybe; + transaction_not_ends_with?: InputMaybe; + transaction_not_in?: InputMaybe>; + transaction_not_starts_with?: InputMaybe; + transaction_starts_with?: InputMaybe; + type?: InputMaybe; + type_in?: InputMaybe>; + type_not?: InputMaybe; + type_not_in?: InputMaybe>; + userLendingHistory?: InputMaybe; + userLendingHistory_contains?: InputMaybe; + userLendingHistory_ends_with?: InputMaybe; + userLendingHistory_gt?: InputMaybe; + userLendingHistory_gte?: InputMaybe; + userLendingHistory_in?: InputMaybe>; + userLendingHistory_lt?: InputMaybe; + userLendingHistory_lte?: InputMaybe; + userLendingHistory_not?: InputMaybe; + userLendingHistory_not_contains?: InputMaybe; + userLendingHistory_not_ends_with?: InputMaybe; + userLendingHistory_not_in?: InputMaybe>; + userLendingHistory_not_starts_with?: InputMaybe; + userLendingHistory_starts_with?: InputMaybe; +}; + +export enum LendingHistoryItem_OrderBy { + Amount = 'amount', + Asset = 'asset', + EmittedBy = 'emittedBy', + Id = 'id', + Lender = 'lender', + LendingPool = 'lendingPool', + LoanTokenAmount = 'loanTokenAmount', + Timestamp = 'timestamp', + Transaction = 'transaction', + Type = 'type', + UserLendingHistory = 'userLendingHistory', +} + +export enum LendingHistoryType { + /** + * Lend is equivalent to a Mint event + * + */ + Lend = 'Lend', + /** + * UnLend is equivalent to a Burn event + * + */ + UnLend = 'UnLend', +} + +/** + * A Lending Pool (iToken), where Users can lend assets to earn interest, and Users can borrow assets to Margin Trade or just as a regular loan. + * + */ +export type LendingPool = { + __typename?: 'LendingPool'; + /** + * Balance of the underlying asset (ERC20 token) represented by the total supply of pool tokens + * It is incremented on Mint events and decremented on Burn events. + * WORK-IN-PROGRESS: This is a work-in-progress as it does not properly account for interest payments currently + * + */ + assetBalance: Scalars['BigDecimal']; + /** + * ID is the contract address of the iToken + * + */ + id: Scalars['ID']; + /** + * The total supply of this pool token (not the underlying asset). + * It is incremented on Mint events and decremented on Burn events + * + */ + poolTokenBalance: Scalars['BigDecimal']; + /** + * Total asset volume lent over all time + * + */ + totalAssetLent: Scalars['BigDecimal']; + /** + * The actual asset being lent and borrowed in this pool + * + */ + underlyingAsset: Token; +}; + +export type LendingPool_Filter = { + assetBalance?: InputMaybe; + assetBalance_gt?: InputMaybe; + assetBalance_gte?: InputMaybe; + assetBalance_in?: InputMaybe>; + assetBalance_lt?: InputMaybe; + assetBalance_lte?: InputMaybe; + assetBalance_not?: InputMaybe; + assetBalance_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + poolTokenBalance?: InputMaybe; + poolTokenBalance_gt?: InputMaybe; + poolTokenBalance_gte?: InputMaybe; + poolTokenBalance_in?: InputMaybe>; + poolTokenBalance_lt?: InputMaybe; + poolTokenBalance_lte?: InputMaybe; + poolTokenBalance_not?: InputMaybe; + poolTokenBalance_not_in?: InputMaybe>; + totalAssetLent?: InputMaybe; + totalAssetLent_gt?: InputMaybe; + totalAssetLent_gte?: InputMaybe; + totalAssetLent_in?: InputMaybe>; + totalAssetLent_lt?: InputMaybe; + totalAssetLent_lte?: InputMaybe; + totalAssetLent_not?: InputMaybe; + totalAssetLent_not_in?: InputMaybe>; + underlyingAsset?: InputMaybe; + underlyingAsset_contains?: InputMaybe; + underlyingAsset_ends_with?: InputMaybe; + underlyingAsset_gt?: InputMaybe; + underlyingAsset_gte?: InputMaybe; + underlyingAsset_in?: InputMaybe>; + underlyingAsset_lt?: InputMaybe; + underlyingAsset_lte?: InputMaybe; + underlyingAsset_not?: InputMaybe; + underlyingAsset_not_contains?: InputMaybe; + underlyingAsset_not_ends_with?: InputMaybe; + underlyingAsset_not_in?: InputMaybe>; + underlyingAsset_not_starts_with?: InputMaybe; + underlyingAsset_starts_with?: InputMaybe; +}; + +export enum LendingPool_OrderBy { + AssetBalance = 'assetBalance', + Id = 'id', + PoolTokenBalance = 'poolTokenBalance', + TotalAssetLent = 'totalAssetLent', + UnderlyingAsset = 'underlyingAsset', +} + +/** + * Granular event data for the Loan entity. Emitted when a loan is fully or partially liquidated + * + */ +export type Liquidate = { + __typename?: 'Liquidate'; + collateralToLoanRate: Scalars['BigDecimal']; + collateralToken: Scalars['Bytes']; + collateralWithdrawAmount: Scalars['BigDecimal']; + currentMargin: Scalars['BigDecimal']; + emittedBy: Scalars['Bytes']; + id: Scalars['ID']; + lender: Scalars['Bytes']; + liquidator: Scalars['Bytes']; + loanId: Loan; + loanToken: Scalars['Bytes']; + repayAmount: Scalars['BigDecimal']; + timestamp: Scalars['Int']; + transaction: Transaction; + user: User; +}; + +export type Liquidate_Filter = { + collateralToLoanRate?: InputMaybe; + collateralToLoanRate_gt?: InputMaybe; + collateralToLoanRate_gte?: InputMaybe; + collateralToLoanRate_in?: InputMaybe>; + collateralToLoanRate_lt?: InputMaybe; + collateralToLoanRate_lte?: InputMaybe; + collateralToLoanRate_not?: InputMaybe; + collateralToLoanRate_not_in?: InputMaybe>; + collateralToken?: InputMaybe; + collateralToken_contains?: InputMaybe; + collateralToken_in?: InputMaybe>; + collateralToken_not?: InputMaybe; + collateralToken_not_contains?: InputMaybe; + collateralToken_not_in?: InputMaybe>; + collateralWithdrawAmount?: InputMaybe; + collateralWithdrawAmount_gt?: InputMaybe; + collateralWithdrawAmount_gte?: InputMaybe; + collateralWithdrawAmount_in?: InputMaybe>; + collateralWithdrawAmount_lt?: InputMaybe; + collateralWithdrawAmount_lte?: InputMaybe; + collateralWithdrawAmount_not?: InputMaybe; + collateralWithdrawAmount_not_in?: InputMaybe>; + currentMargin?: InputMaybe; + currentMargin_gt?: InputMaybe; + currentMargin_gte?: InputMaybe; + currentMargin_in?: InputMaybe>; + currentMargin_lt?: InputMaybe; + currentMargin_lte?: InputMaybe; + currentMargin_not?: InputMaybe; + currentMargin_not_in?: InputMaybe>; + emittedBy?: InputMaybe; + emittedBy_contains?: InputMaybe; + emittedBy_in?: InputMaybe>; + emittedBy_not?: InputMaybe; + emittedBy_not_contains?: InputMaybe; + emittedBy_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + lender?: InputMaybe; + lender_contains?: InputMaybe; + lender_in?: InputMaybe>; + lender_not?: InputMaybe; + lender_not_contains?: InputMaybe; + lender_not_in?: InputMaybe>; + liquidator?: InputMaybe; + liquidator_contains?: InputMaybe; + liquidator_in?: InputMaybe>; + liquidator_not?: InputMaybe; + liquidator_not_contains?: InputMaybe; + liquidator_not_in?: InputMaybe>; + loanId?: InputMaybe; + loanId_contains?: InputMaybe; + loanId_ends_with?: InputMaybe; + loanId_gt?: InputMaybe; + loanId_gte?: InputMaybe; + loanId_in?: InputMaybe>; + loanId_lt?: InputMaybe; + loanId_lte?: InputMaybe; + loanId_not?: InputMaybe; + loanId_not_contains?: InputMaybe; + loanId_not_ends_with?: InputMaybe; + loanId_not_in?: InputMaybe>; + loanId_not_starts_with?: InputMaybe; + loanId_starts_with?: InputMaybe; + loanToken?: InputMaybe; + loanToken_contains?: InputMaybe; + loanToken_in?: InputMaybe>; + loanToken_not?: InputMaybe; + loanToken_not_contains?: InputMaybe; + loanToken_not_in?: InputMaybe>; + repayAmount?: InputMaybe; + repayAmount_gt?: InputMaybe; + repayAmount_gte?: InputMaybe; + repayAmount_in?: InputMaybe>; + repayAmount_lt?: InputMaybe; + repayAmount_lte?: InputMaybe; + repayAmount_not?: InputMaybe; + repayAmount_not_in?: InputMaybe>; + timestamp?: InputMaybe; + timestamp_gt?: InputMaybe; + timestamp_gte?: InputMaybe; + timestamp_in?: InputMaybe>; + timestamp_lt?: InputMaybe; + timestamp_lte?: InputMaybe; + timestamp_not?: InputMaybe; + timestamp_not_in?: InputMaybe>; + transaction?: InputMaybe; + transaction_contains?: InputMaybe; + transaction_ends_with?: InputMaybe; + transaction_gt?: InputMaybe; + transaction_gte?: InputMaybe; + transaction_in?: InputMaybe>; + transaction_lt?: InputMaybe; + transaction_lte?: InputMaybe; + transaction_not?: InputMaybe; + transaction_not_contains?: InputMaybe; + transaction_not_ends_with?: InputMaybe; + transaction_not_in?: InputMaybe>; + transaction_not_starts_with?: InputMaybe; + transaction_starts_with?: InputMaybe; + user?: InputMaybe; + user_contains?: InputMaybe; + user_ends_with?: InputMaybe; + user_gt?: InputMaybe; + user_gte?: InputMaybe; + user_in?: InputMaybe>; + user_lt?: InputMaybe; + user_lte?: InputMaybe; + user_not?: InputMaybe; + user_not_contains?: InputMaybe; + user_not_ends_with?: InputMaybe; + user_not_in?: InputMaybe>; + user_not_starts_with?: InputMaybe; + user_starts_with?: InputMaybe; +}; + +export enum Liquidate_OrderBy { + CollateralToLoanRate = 'collateralToLoanRate', + CollateralToken = 'collateralToken', + CollateralWithdrawAmount = 'collateralWithdrawAmount', + CurrentMargin = 'currentMargin', + EmittedBy = 'emittedBy', + Id = 'id', + Lender = 'lender', + Liquidator = 'liquidator', + LoanId = 'loanId', + LoanToken = 'loanToken', + RepayAmount = 'repayAmount', + Timestamp = 'timestamp', + Transaction = 'transaction', + User = 'user', +} + +export type LiquidityHistoryItem = { + __typename?: 'LiquidityHistoryItem'; + /** + * The amount that was added/removed + * + */ + amount: Scalars['BigDecimal']; + /** + * The contract that emitted this event (primarily used for debugging) + * + */ + emittedBy: Scalars['String']; + /** + * ID is transaction hash + log index + * + */ + id: Scalars['ID']; + /** + * AMM pool that liquidity was provided to + * + */ + liquidityPool: LiquidityPool; + /** + * New balance of the reserveToken (ERC20 token) on the AMM pool + * + */ + newBalance: Scalars['BigDecimal']; + /** + * New total supply of pool tokens + * + */ + newSupply: Scalars['BigDecimal']; + /** + * Provider is either the user, or a contract if the user interacted with a proxy contract + * + */ + provider: Scalars['String']; + /** + * The underlying asset (ERC20 token) that was added/removed + * + */ + reserveToken: Token; + timestamp: Scalars['Int']; + transaction: Transaction; + /** + * Type is either Added or Removed (if a user added or removed liquidity from the pool) + * + */ + type: LiquidityHistoryType; + user: User; + /** + * Foreign key to join this transaction to the parent UserLiquidityHistory entity + * + */ + userLiquidityHistory: UserLiquidityHistory; +}; + +export type LiquidityHistoryItem_Filter = { + amount?: InputMaybe; + amount_gt?: InputMaybe; + amount_gte?: InputMaybe; + amount_in?: InputMaybe>; + amount_lt?: InputMaybe; + amount_lte?: InputMaybe; + amount_not?: InputMaybe; + amount_not_in?: InputMaybe>; + emittedBy?: InputMaybe; + emittedBy_contains?: InputMaybe; + emittedBy_ends_with?: InputMaybe; + emittedBy_gt?: InputMaybe; + emittedBy_gte?: InputMaybe; + emittedBy_in?: InputMaybe>; + emittedBy_lt?: InputMaybe; + emittedBy_lte?: InputMaybe; + emittedBy_not?: InputMaybe; + emittedBy_not_contains?: InputMaybe; + emittedBy_not_ends_with?: InputMaybe; + emittedBy_not_in?: InputMaybe>; + emittedBy_not_starts_with?: InputMaybe; + emittedBy_starts_with?: InputMaybe; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + liquidityPool?: InputMaybe; + liquidityPool_contains?: InputMaybe; + liquidityPool_ends_with?: InputMaybe; + liquidityPool_gt?: InputMaybe; + liquidityPool_gte?: InputMaybe; + liquidityPool_in?: InputMaybe>; + liquidityPool_lt?: InputMaybe; + liquidityPool_lte?: InputMaybe; + liquidityPool_not?: InputMaybe; + liquidityPool_not_contains?: InputMaybe; + liquidityPool_not_ends_with?: InputMaybe; + liquidityPool_not_in?: InputMaybe>; + liquidityPool_not_starts_with?: InputMaybe; + liquidityPool_starts_with?: InputMaybe; + newBalance?: InputMaybe; + newBalance_gt?: InputMaybe; + newBalance_gte?: InputMaybe; + newBalance_in?: InputMaybe>; + newBalance_lt?: InputMaybe; + newBalance_lte?: InputMaybe; + newBalance_not?: InputMaybe; + newBalance_not_in?: InputMaybe>; + newSupply?: InputMaybe; + newSupply_gt?: InputMaybe; + newSupply_gte?: InputMaybe; + newSupply_in?: InputMaybe>; + newSupply_lt?: InputMaybe; + newSupply_lte?: InputMaybe; + newSupply_not?: InputMaybe; + newSupply_not_in?: InputMaybe>; + provider?: InputMaybe; + provider_contains?: InputMaybe; + provider_ends_with?: InputMaybe; + provider_gt?: InputMaybe; + provider_gte?: InputMaybe; + provider_in?: InputMaybe>; + provider_lt?: InputMaybe; + provider_lte?: InputMaybe; + provider_not?: InputMaybe; + provider_not_contains?: InputMaybe; + provider_not_ends_with?: InputMaybe; + provider_not_in?: InputMaybe>; + provider_not_starts_with?: InputMaybe; + provider_starts_with?: InputMaybe; + reserveToken?: InputMaybe; + reserveToken_contains?: InputMaybe; + reserveToken_ends_with?: InputMaybe; + reserveToken_gt?: InputMaybe; + reserveToken_gte?: InputMaybe; + reserveToken_in?: InputMaybe>; + reserveToken_lt?: InputMaybe; + reserveToken_lte?: InputMaybe; + reserveToken_not?: InputMaybe; + reserveToken_not_contains?: InputMaybe; + reserveToken_not_ends_with?: InputMaybe; + reserveToken_not_in?: InputMaybe>; + reserveToken_not_starts_with?: InputMaybe; + reserveToken_starts_with?: InputMaybe; + timestamp?: InputMaybe; + timestamp_gt?: InputMaybe; + timestamp_gte?: InputMaybe; + timestamp_in?: InputMaybe>; + timestamp_lt?: InputMaybe; + timestamp_lte?: InputMaybe; + timestamp_not?: InputMaybe; + timestamp_not_in?: InputMaybe>; + transaction?: InputMaybe; + transaction_contains?: InputMaybe; + transaction_ends_with?: InputMaybe; + transaction_gt?: InputMaybe; + transaction_gte?: InputMaybe; + transaction_in?: InputMaybe>; + transaction_lt?: InputMaybe; + transaction_lte?: InputMaybe; + transaction_not?: InputMaybe; + transaction_not_contains?: InputMaybe; + transaction_not_ends_with?: InputMaybe; + transaction_not_in?: InputMaybe>; + transaction_not_starts_with?: InputMaybe; + transaction_starts_with?: InputMaybe; + type?: InputMaybe; + type_in?: InputMaybe>; + type_not?: InputMaybe; + type_not_in?: InputMaybe>; + user?: InputMaybe; + userLiquidityHistory?: InputMaybe; + userLiquidityHistory_contains?: InputMaybe; + userLiquidityHistory_ends_with?: InputMaybe; + userLiquidityHistory_gt?: InputMaybe; + userLiquidityHistory_gte?: InputMaybe; + userLiquidityHistory_in?: InputMaybe>; + userLiquidityHistory_lt?: InputMaybe; + userLiquidityHistory_lte?: InputMaybe; + userLiquidityHistory_not?: InputMaybe; + userLiquidityHistory_not_contains?: InputMaybe; + userLiquidityHistory_not_ends_with?: InputMaybe; + userLiquidityHistory_not_in?: InputMaybe>; + userLiquidityHistory_not_starts_with?: InputMaybe; + userLiquidityHistory_starts_with?: InputMaybe; + user_contains?: InputMaybe; + user_ends_with?: InputMaybe; + user_gt?: InputMaybe; + user_gte?: InputMaybe; + user_in?: InputMaybe>; + user_lt?: InputMaybe; + user_lte?: InputMaybe; + user_not?: InputMaybe; + user_not_contains?: InputMaybe; + user_not_ends_with?: InputMaybe; + user_not_in?: InputMaybe>; + user_not_starts_with?: InputMaybe; + user_starts_with?: InputMaybe; +}; + +export enum LiquidityHistoryItem_OrderBy { + Amount = 'amount', + EmittedBy = 'emittedBy', + Id = 'id', + LiquidityPool = 'liquidityPool', + NewBalance = 'newBalance', + NewSupply = 'newSupply', + Provider = 'provider', + ReserveToken = 'reserveToken', + Timestamp = 'timestamp', + Transaction = 'transaction', + Type = 'type', + User = 'user', + UserLiquidityHistory = 'userLiquidityHistory', +} + +export enum LiquidityHistoryType { + Added = 'Added', + Removed = 'Removed', +} + +export type LiquidityMiningAllocationPoint = { + __typename?: 'LiquidityMiningAllocationPoint'; + allocationPoint: Scalars['BigInt']; + /** + * If this pool token is for an AMM liquidity pool, this is a foreign key to the SmartToken. + * If not, this property is null + * + */ + ammPoolToken?: Maybe; + id: Scalars['ID']; + /** + * If this pool token is for a lending pool, this is a foreign key to the LendingPool. + * If not, this property is null + * + */ + lendingPoolToken?: Maybe; + poolTokenAddedBlock: Scalars['Int']; + /** + * Unix timestamp for when this pool token was added to the liquidity mining program + * + */ + poolTokenAddedTimestamp: Scalars['Int']; + poolTokenUpdatedBlock: Scalars['Int']; + /** + * Unix timestamp for when the allocation point for this pool token last changed + * + */ + poolTokenUpdatedTimestamp: Scalars['Int']; + /** + * The amount of SOV earned per block by all LPs in one pool + * Calculated as (totalRewardPerBlock * allocationPoint) / totalAllocationPoint + * + */ + rewardPerBlock: Scalars['BigDecimal']; +}; + +export type LiquidityMiningAllocationPoint_Filter = { + allocationPoint?: InputMaybe; + allocationPoint_gt?: InputMaybe; + allocationPoint_gte?: InputMaybe; + allocationPoint_in?: InputMaybe>; + allocationPoint_lt?: InputMaybe; + allocationPoint_lte?: InputMaybe; + allocationPoint_not?: InputMaybe; + allocationPoint_not_in?: InputMaybe>; + ammPoolToken?: InputMaybe; + ammPoolToken_contains?: InputMaybe; + ammPoolToken_ends_with?: InputMaybe; + ammPoolToken_gt?: InputMaybe; + ammPoolToken_gte?: InputMaybe; + ammPoolToken_in?: InputMaybe>; + ammPoolToken_lt?: InputMaybe; + ammPoolToken_lte?: InputMaybe; + ammPoolToken_not?: InputMaybe; + ammPoolToken_not_contains?: InputMaybe; + ammPoolToken_not_ends_with?: InputMaybe; + ammPoolToken_not_in?: InputMaybe>; + ammPoolToken_not_starts_with?: InputMaybe; + ammPoolToken_starts_with?: InputMaybe; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + lendingPoolToken?: InputMaybe; + lendingPoolToken_contains?: InputMaybe; + lendingPoolToken_ends_with?: InputMaybe; + lendingPoolToken_gt?: InputMaybe; + lendingPoolToken_gte?: InputMaybe; + lendingPoolToken_in?: InputMaybe>; + lendingPoolToken_lt?: InputMaybe; + lendingPoolToken_lte?: InputMaybe; + lendingPoolToken_not?: InputMaybe; + lendingPoolToken_not_contains?: InputMaybe; + lendingPoolToken_not_ends_with?: InputMaybe; + lendingPoolToken_not_in?: InputMaybe>; + lendingPoolToken_not_starts_with?: InputMaybe; + lendingPoolToken_starts_with?: InputMaybe; + poolTokenAddedBlock?: InputMaybe; + poolTokenAddedBlock_gt?: InputMaybe; + poolTokenAddedBlock_gte?: InputMaybe; + poolTokenAddedBlock_in?: InputMaybe>; + poolTokenAddedBlock_lt?: InputMaybe; + poolTokenAddedBlock_lte?: InputMaybe; + poolTokenAddedBlock_not?: InputMaybe; + poolTokenAddedBlock_not_in?: InputMaybe>; + poolTokenAddedTimestamp?: InputMaybe; + poolTokenAddedTimestamp_gt?: InputMaybe; + poolTokenAddedTimestamp_gte?: InputMaybe; + poolTokenAddedTimestamp_in?: InputMaybe>; + poolTokenAddedTimestamp_lt?: InputMaybe; + poolTokenAddedTimestamp_lte?: InputMaybe; + poolTokenAddedTimestamp_not?: InputMaybe; + poolTokenAddedTimestamp_not_in?: InputMaybe>; + poolTokenUpdatedBlock?: InputMaybe; + poolTokenUpdatedBlock_gt?: InputMaybe; + poolTokenUpdatedBlock_gte?: InputMaybe; + poolTokenUpdatedBlock_in?: InputMaybe>; + poolTokenUpdatedBlock_lt?: InputMaybe; + poolTokenUpdatedBlock_lte?: InputMaybe; + poolTokenUpdatedBlock_not?: InputMaybe; + poolTokenUpdatedBlock_not_in?: InputMaybe>; + poolTokenUpdatedTimestamp?: InputMaybe; + poolTokenUpdatedTimestamp_gt?: InputMaybe; + poolTokenUpdatedTimestamp_gte?: InputMaybe; + poolTokenUpdatedTimestamp_in?: InputMaybe>; + poolTokenUpdatedTimestamp_lt?: InputMaybe; + poolTokenUpdatedTimestamp_lte?: InputMaybe; + poolTokenUpdatedTimestamp_not?: InputMaybe; + poolTokenUpdatedTimestamp_not_in?: InputMaybe>; + rewardPerBlock?: InputMaybe; + rewardPerBlock_gt?: InputMaybe; + rewardPerBlock_gte?: InputMaybe; + rewardPerBlock_in?: InputMaybe>; + rewardPerBlock_lt?: InputMaybe; + rewardPerBlock_lte?: InputMaybe; + rewardPerBlock_not?: InputMaybe; + rewardPerBlock_not_in?: InputMaybe>; +}; + +export enum LiquidityMiningAllocationPoint_OrderBy { + AllocationPoint = 'allocationPoint', + AmmPoolToken = 'ammPoolToken', + Id = 'id', + LendingPoolToken = 'lendingPoolToken', + PoolTokenAddedBlock = 'poolTokenAddedBlock', + PoolTokenAddedTimestamp = 'poolTokenAddedTimestamp', + PoolTokenUpdatedBlock = 'poolTokenUpdatedBlock', + PoolTokenUpdatedTimestamp = 'poolTokenUpdatedTimestamp', + RewardPerBlock = 'rewardPerBlock', +} + +/** + * This entity has only one instance (id: 0), and holds global variables required for liquidity mining rewards calculations + * + */ +export type LiquidityMiningGlobal = { + __typename?: 'LiquidityMiningGlobal'; + id: Scalars['ID']; + /** + * Total available allocation points. This is used to calculated the reward per block for each pool token. + * See the LiquidityMiningAllocationPoint entity for more details. + * + */ + totalAllocationPoint: Scalars['BigInt']; + /** + * Total possible SOV per block in the liquidity mining program. Not all of this has to be allocation (eg if totalRewardPerBlock = 1000, that does not mean 1000 SOV are being given to LPs per block) + * This is used to calculated the reward per block for each pool token. + * See the LiquidityMiningAllocationPoint entity for more details. + * + */ + totalRewardPerBlock: Scalars['BigInt']; +}; + +export type LiquidityMiningGlobal_Filter = { + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + totalAllocationPoint?: InputMaybe; + totalAllocationPoint_gt?: InputMaybe; + totalAllocationPoint_gte?: InputMaybe; + totalAllocationPoint_in?: InputMaybe>; + totalAllocationPoint_lt?: InputMaybe; + totalAllocationPoint_lte?: InputMaybe; + totalAllocationPoint_not?: InputMaybe; + totalAllocationPoint_not_in?: InputMaybe>; + totalRewardPerBlock?: InputMaybe; + totalRewardPerBlock_gt?: InputMaybe; + totalRewardPerBlock_gte?: InputMaybe; + totalRewardPerBlock_in?: InputMaybe>; + totalRewardPerBlock_lt?: InputMaybe; + totalRewardPerBlock_lte?: InputMaybe; + totalRewardPerBlock_not?: InputMaybe; + totalRewardPerBlock_not_in?: InputMaybe>; +}; + +export enum LiquidityMiningGlobal_OrderBy { + Id = 'id', + TotalAllocationPoint = 'totalAllocationPoint', + TotalRewardPerBlock = 'totalRewardPerBlock', +} + +/** + * AMM Pool (sometimes referred to as a Converter) + * + */ +export type LiquidityPool = { + __typename?: 'LiquidityPool'; + /** + * Activated with be true when this pool is activated, and will change to false is the pool is deactivated + * + */ + activated?: Maybe; + connectorTokens: Array; + /** + * Divide by maxConversionFee to get percentage + * + */ + conversionFee?: Maybe; + createdAtBlockNumber?: Maybe; + createdAtTimestamp?: Maybe; + createdAtTransaction: Transaction; + currentConverterRegistry?: Maybe; + /** + * ID is the contract address of the Converter + * + */ + id: Scalars['ID']; + maxConversionFee?: Maybe; + owner?: Maybe; + poolTokens?: Maybe>; + smartToken?: Maybe; + /** + * The reserve assets of this AMM Pool. The are stored here like this so that they can be accessed inside mappings when the LiquidityPool is loaded. + * + */ + token0?: Maybe; + /** + * The balance for each token on this liquidity pool + * NB: For the V2 pools (USDT, DOC, BPRO), this balance is the staked balance, not the contract balance + * + */ + token0Balance: Scalars['BigDecimal']; + token1?: Maybe; + token1Balance: Scalars['BigDecimal']; + /** + * Sovryn uses Bancor V1 and Bancor V2 pools + * + */ + type?: Maybe; + version?: Maybe; +}; + +/** + * AMM Pool (sometimes referred to as a Converter) + * + */ +export type LiquidityPoolConnectorTokensArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +/** + * AMM Pool (sometimes referred to as a Converter) + * + */ +export type LiquidityPoolPoolTokensArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +/** + * This entity stores the relationship between liquidity pools and underlying tokens + * It also currently stores the total volumes bought and sold, but this should be moved to the LiquidityPool + * + */ +export type LiquidityPoolToken = { + __typename?: 'LiquidityPoolToken'; + /** + * ID is liquidityPool address + tokenAddress + * + */ + id: Scalars['ID']; + liquidityPool: LiquidityPool; + /** + * The pool token that represents this token-liquidityPool relationship + * + */ + poolToken: PoolToken; + token: Token; + /** + * Total volume of this token that has been bought or sold through this liquidity pool + * + */ + totalVolume: Scalars['BigDecimal']; + /** + * Total volume of this token bought through this liquidity pool + * + */ + volumeBought: Scalars['BigDecimal']; + /** + * Total volume of this token sold through this liquidity pool + * + */ + volumeSold: Scalars['BigDecimal']; +}; + +export type LiquidityPoolToken_Filter = { + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + liquidityPool?: InputMaybe; + liquidityPool_contains?: InputMaybe; + liquidityPool_ends_with?: InputMaybe; + liquidityPool_gt?: InputMaybe; + liquidityPool_gte?: InputMaybe; + liquidityPool_in?: InputMaybe>; + liquidityPool_lt?: InputMaybe; + liquidityPool_lte?: InputMaybe; + liquidityPool_not?: InputMaybe; + liquidityPool_not_contains?: InputMaybe; + liquidityPool_not_ends_with?: InputMaybe; + liquidityPool_not_in?: InputMaybe>; + liquidityPool_not_starts_with?: InputMaybe; + liquidityPool_starts_with?: InputMaybe; + poolToken?: InputMaybe; + poolToken_contains?: InputMaybe; + poolToken_ends_with?: InputMaybe; + poolToken_gt?: InputMaybe; + poolToken_gte?: InputMaybe; + poolToken_in?: InputMaybe>; + poolToken_lt?: InputMaybe; + poolToken_lte?: InputMaybe; + poolToken_not?: InputMaybe; + poolToken_not_contains?: InputMaybe; + poolToken_not_ends_with?: InputMaybe; + poolToken_not_in?: InputMaybe>; + poolToken_not_starts_with?: InputMaybe; + poolToken_starts_with?: InputMaybe; + token?: InputMaybe; + token_contains?: InputMaybe; + token_ends_with?: InputMaybe; + token_gt?: InputMaybe; + token_gte?: InputMaybe; + token_in?: InputMaybe>; + token_lt?: InputMaybe; + token_lte?: InputMaybe; + token_not?: InputMaybe; + token_not_contains?: InputMaybe; + token_not_ends_with?: InputMaybe; + token_not_in?: InputMaybe>; + token_not_starts_with?: InputMaybe; + token_starts_with?: InputMaybe; + totalVolume?: InputMaybe; + totalVolume_gt?: InputMaybe; + totalVolume_gte?: InputMaybe; + totalVolume_in?: InputMaybe>; + totalVolume_lt?: InputMaybe; + totalVolume_lte?: InputMaybe; + totalVolume_not?: InputMaybe; + totalVolume_not_in?: InputMaybe>; + volumeBought?: InputMaybe; + volumeBought_gt?: InputMaybe; + volumeBought_gte?: InputMaybe; + volumeBought_in?: InputMaybe>; + volumeBought_lt?: InputMaybe; + volumeBought_lte?: InputMaybe; + volumeBought_not?: InputMaybe; + volumeBought_not_in?: InputMaybe>; + volumeSold?: InputMaybe; + volumeSold_gt?: InputMaybe; + volumeSold_gte?: InputMaybe; + volumeSold_in?: InputMaybe>; + volumeSold_lt?: InputMaybe; + volumeSold_lte?: InputMaybe; + volumeSold_not?: InputMaybe; + volumeSold_not_in?: InputMaybe>; +}; + +export enum LiquidityPoolToken_OrderBy { + Id = 'id', + LiquidityPool = 'liquidityPool', + PoolToken = 'poolToken', + Token = 'token', + TotalVolume = 'totalVolume', + VolumeBought = 'volumeBought', + VolumeSold = 'volumeSold', +} + +export type LiquidityPool_Filter = { + activated?: InputMaybe; + activated_in?: InputMaybe>; + activated_not?: InputMaybe; + activated_not_in?: InputMaybe>; + conversionFee?: InputMaybe; + conversionFee_gt?: InputMaybe; + conversionFee_gte?: InputMaybe; + conversionFee_in?: InputMaybe>; + conversionFee_lt?: InputMaybe; + conversionFee_lte?: InputMaybe; + conversionFee_not?: InputMaybe; + conversionFee_not_in?: InputMaybe>; + createdAtBlockNumber?: InputMaybe; + createdAtBlockNumber_gt?: InputMaybe; + createdAtBlockNumber_gte?: InputMaybe; + createdAtBlockNumber_in?: InputMaybe>; + createdAtBlockNumber_lt?: InputMaybe; + createdAtBlockNumber_lte?: InputMaybe; + createdAtBlockNumber_not?: InputMaybe; + createdAtBlockNumber_not_in?: InputMaybe>; + createdAtTimestamp?: InputMaybe; + createdAtTimestamp_gt?: InputMaybe; + createdAtTimestamp_gte?: InputMaybe; + createdAtTimestamp_in?: InputMaybe>; + createdAtTimestamp_lt?: InputMaybe; + createdAtTimestamp_lte?: InputMaybe; + createdAtTimestamp_not?: InputMaybe; + createdAtTimestamp_not_in?: InputMaybe>; + createdAtTransaction?: InputMaybe; + createdAtTransaction_contains?: InputMaybe; + createdAtTransaction_ends_with?: InputMaybe; + createdAtTransaction_gt?: InputMaybe; + createdAtTransaction_gte?: InputMaybe; + createdAtTransaction_in?: InputMaybe>; + createdAtTransaction_lt?: InputMaybe; + createdAtTransaction_lte?: InputMaybe; + createdAtTransaction_not?: InputMaybe; + createdAtTransaction_not_contains?: InputMaybe; + createdAtTransaction_not_ends_with?: InputMaybe; + createdAtTransaction_not_in?: InputMaybe>; + createdAtTransaction_not_starts_with?: InputMaybe; + createdAtTransaction_starts_with?: InputMaybe; + currentConverterRegistry?: InputMaybe; + currentConverterRegistry_contains?: InputMaybe; + currentConverterRegistry_ends_with?: InputMaybe; + currentConverterRegistry_gt?: InputMaybe; + currentConverterRegistry_gte?: InputMaybe; + currentConverterRegistry_in?: InputMaybe>; + currentConverterRegistry_lt?: InputMaybe; + currentConverterRegistry_lte?: InputMaybe; + currentConverterRegistry_not?: InputMaybe; + currentConverterRegistry_not_contains?: InputMaybe; + currentConverterRegistry_not_ends_with?: InputMaybe; + currentConverterRegistry_not_in?: InputMaybe>; + currentConverterRegistry_not_starts_with?: InputMaybe; + currentConverterRegistry_starts_with?: InputMaybe; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + maxConversionFee?: InputMaybe; + maxConversionFee_gt?: InputMaybe; + maxConversionFee_gte?: InputMaybe; + maxConversionFee_in?: InputMaybe>; + maxConversionFee_lt?: InputMaybe; + maxConversionFee_lte?: InputMaybe; + maxConversionFee_not?: InputMaybe; + maxConversionFee_not_in?: InputMaybe>; + owner?: InputMaybe; + owner_contains?: InputMaybe; + owner_ends_with?: InputMaybe; + owner_gt?: InputMaybe; + owner_gte?: InputMaybe; + owner_in?: InputMaybe>; + owner_lt?: InputMaybe; + owner_lte?: InputMaybe; + owner_not?: InputMaybe; + owner_not_contains?: InputMaybe; + owner_not_ends_with?: InputMaybe; + owner_not_in?: InputMaybe>; + owner_not_starts_with?: InputMaybe; + owner_starts_with?: InputMaybe; + smartToken?: InputMaybe; + smartToken_contains?: InputMaybe; + smartToken_ends_with?: InputMaybe; + smartToken_gt?: InputMaybe; + smartToken_gte?: InputMaybe; + smartToken_in?: InputMaybe>; + smartToken_lt?: InputMaybe; + smartToken_lte?: InputMaybe; + smartToken_not?: InputMaybe; + smartToken_not_contains?: InputMaybe; + smartToken_not_ends_with?: InputMaybe; + smartToken_not_in?: InputMaybe>; + smartToken_not_starts_with?: InputMaybe; + smartToken_starts_with?: InputMaybe; + token0?: InputMaybe; + token0Balance?: InputMaybe; + token0Balance_gt?: InputMaybe; + token0Balance_gte?: InputMaybe; + token0Balance_in?: InputMaybe>; + token0Balance_lt?: InputMaybe; + token0Balance_lte?: InputMaybe; + token0Balance_not?: InputMaybe; + token0Balance_not_in?: InputMaybe>; + token0_contains?: InputMaybe; + token0_ends_with?: InputMaybe; + token0_gt?: InputMaybe; + token0_gte?: InputMaybe; + token0_in?: InputMaybe>; + token0_lt?: InputMaybe; + token0_lte?: InputMaybe; + token0_not?: InputMaybe; + token0_not_contains?: InputMaybe; + token0_not_ends_with?: InputMaybe; + token0_not_in?: InputMaybe>; + token0_not_starts_with?: InputMaybe; + token0_starts_with?: InputMaybe; + token1?: InputMaybe; + token1Balance?: InputMaybe; + token1Balance_gt?: InputMaybe; + token1Balance_gte?: InputMaybe; + token1Balance_in?: InputMaybe>; + token1Balance_lt?: InputMaybe; + token1Balance_lte?: InputMaybe; + token1Balance_not?: InputMaybe; + token1Balance_not_in?: InputMaybe>; + token1_contains?: InputMaybe; + token1_ends_with?: InputMaybe; + token1_gt?: InputMaybe; + token1_gte?: InputMaybe; + token1_in?: InputMaybe>; + token1_lt?: InputMaybe; + token1_lte?: InputMaybe; + token1_not?: InputMaybe; + token1_not_contains?: InputMaybe; + token1_not_ends_with?: InputMaybe; + token1_not_in?: InputMaybe>; + token1_not_starts_with?: InputMaybe; + token1_starts_with?: InputMaybe; + type?: InputMaybe; + type_gt?: InputMaybe; + type_gte?: InputMaybe; + type_in?: InputMaybe>; + type_lt?: InputMaybe; + type_lte?: InputMaybe; + type_not?: InputMaybe; + type_not_in?: InputMaybe>; + version?: InputMaybe; + version_gt?: InputMaybe; + version_gte?: InputMaybe; + version_in?: InputMaybe>; + version_lt?: InputMaybe; + version_lte?: InputMaybe; + version_not?: InputMaybe; + version_not_in?: InputMaybe>; +}; + +export enum LiquidityPool_OrderBy { + Activated = 'activated', + ConnectorTokens = 'connectorTokens', + ConversionFee = 'conversionFee', + CreatedAtBlockNumber = 'createdAtBlockNumber', + CreatedAtTimestamp = 'createdAtTimestamp', + CreatedAtTransaction = 'createdAtTransaction', + CurrentConverterRegistry = 'currentConverterRegistry', + Id = 'id', + MaxConversionFee = 'maxConversionFee', + Owner = 'owner', + PoolTokens = 'poolTokens', + SmartToken = 'smartToken', + Token0 = 'token0', + Token0Balance = 'token0Balance', + Token1 = 'token1', + Token1Balance = 'token1Balance', + Type = 'type', + Version = 'version', +} + +/** + * A Loan can be initialized by either a Margin Trade event or a Borrow event + * + */ +export type Loan = { + __typename?: 'Loan'; + /** + * Average price per token from all loan open events + * Updated on Trade and Borrow events + * This is mainly used as internal storage to calculate PnL + * + */ + averageBuyPrice: Scalars['BigDecimal']; + /** + * Average price per token from all loan close events + * Updated on CloseWithSwap, CloseWithDeposit and Liquidate events + * This is mainly used as internal storage to calculate PnL + * + */ + averageSellPrice: Scalars['BigDecimal']; + /** + * Borrow transactions associated with this loan + * + */ + borrow?: Maybe>; + /** + * The amount borrowed in loan tokens + * + */ + borrowedAmount: Scalars['BigDecimal']; + /** + * CloseWithDeposit events associated with this loan. Emitted when a user partially or fully closes a borrow loan. + * + */ + closeWithDeposits?: Maybe>; + /** + * CloseWithSwap events associated with this loan. Emitted when a user partially or fully closes a margin trade. + * + */ + closeWithSwaps?: Maybe>; + /** + * The token provided as collateral + * + */ + collateralToken: Token; + /** + * DepositCollateral events associated with this loan, where a user has topped up collateral + * + */ + depositCollateral?: Maybe>; + /** + * Unix timestamp at end of loan (null if loan is still open) + * + */ + endTimestamp?: Maybe; + id: Scalars['ID']; + /** + * If a Liquidate, CloseWithSwap, Rollover or CloseWithDeposit event occurs with 0 margin or 0 leverage, this property changes to false + * + */ + isOpen: Scalars['Boolean']; + /** + * Any liquidations that have happened on this loan + * + */ + liquidates?: Maybe>; + /** + * The token the loan was taken out in + * + */ + loanToken: Token; + /** + * The largest amount borrowed in the lifetime of this loan + * + */ + maxBorrowedAmount: Scalars['BigDecimal']; + /** + * The maximum this position size was - mainly for debugging purposes + * + */ + maximumPositionSize: Scalars['BigDecimal']; + /** + * Next date that the loan will be rolled over, interest and trading fee paid, and rollover reward paid + * It is possible for the next rollover to be in the past if the loan has not yet been rolled over by the Sovryn node + * + */ + nextRollover?: Maybe; + /** + * Total of collateral (user collateral in a Borrow, and user collateral + borrowed amount in a Trade) in collateral tokens + * + */ + positionSize: Scalars['BigDecimal']; + /** + * Realized profit and loss. This is updated on every loan closing event - partially or fully closing a loan, or a liquidation. + * Currently, this does not take into account fees paid + * The realized PnL is quoted in the collateral currency + * + */ + realizedPnL: Scalars['BigDecimal']; + /** + * Percentage profit or loss relative to collateral + * + */ + realizedPnLPercent: Scalars['BigDecimal']; + /** + * Rollover events associated with this loan. + * Rollovers are loan maintenance transactions where the next interest payment and fee is paid + * + */ + rollovers?: Maybe>; + /** + * The amount borrowed when the loan was opened + * + */ + startBorrowedAmount: Scalars['BigDecimal']; + /** + * Initial size of the position + * + */ + startPositionSize: Scalars['BigDecimal']; + /** + * The start rate of the loan in loan tokens (eg if it is a long USD/BTC margin trade, this is the BTC price in USD) + * + */ + startRate: Scalars['BigDecimal']; + /** + * Unix timestamp at start of loan + * + */ + startTimestamp: Scalars['Int']; + /** + * Sum of position volume from Trade, Borrow and DepositCollateral events in this loan, in collateral token + * + */ + totalBought: Scalars['BigDecimal']; + /** + * Sum of position change volume from CloseWithSwap, CloseWithDeposit and Liquidate events in this loan, in collateral token + * + */ + totalSold: Scalars['BigDecimal']; + /** + * Trade (margin trade) transactions associated with this loan + * + */ + trade?: Maybe>; + /** + * LoanType is either Trade (for Margin Trades) or Borrow (for Borrows) + * + */ + type: LoanType; + /** + * The user who took out the loan + * + */ + user: User; +}; + +/** + * A Loan can be initialized by either a Margin Trade event or a Borrow event + * + */ +export type LoanBorrowArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +/** + * A Loan can be initialized by either a Margin Trade event or a Borrow event + * + */ +export type LoanCloseWithDepositsArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +/** + * A Loan can be initialized by either a Margin Trade event or a Borrow event + * + */ +export type LoanCloseWithSwapsArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +/** + * A Loan can be initialized by either a Margin Trade event or a Borrow event + * + */ +export type LoanDepositCollateralArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +/** + * A Loan can be initialized by either a Margin Trade event or a Borrow event + * + */ +export type LoanLiquidatesArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +/** + * A Loan can be initialized by either a Margin Trade event or a Borrow event + * + */ +export type LoanRolloversArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +/** + * A Loan can be initialized by either a Margin Trade event or a Borrow event + * + */ +export type LoanTradeArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +export enum LoanType { + /** + * Borrow is a loan originating from a user simply borrowing funds + * + */ + Borrow = 'Borrow', + /** + * Trade is a loan originating from a margin trade + * + */ + Trade = 'Trade', +} + +export type Loan_Filter = { + averageBuyPrice?: InputMaybe; + averageBuyPrice_gt?: InputMaybe; + averageBuyPrice_gte?: InputMaybe; + averageBuyPrice_in?: InputMaybe>; + averageBuyPrice_lt?: InputMaybe; + averageBuyPrice_lte?: InputMaybe; + averageBuyPrice_not?: InputMaybe; + averageBuyPrice_not_in?: InputMaybe>; + averageSellPrice?: InputMaybe; + averageSellPrice_gt?: InputMaybe; + averageSellPrice_gte?: InputMaybe; + averageSellPrice_in?: InputMaybe>; + averageSellPrice_lt?: InputMaybe; + averageSellPrice_lte?: InputMaybe; + averageSellPrice_not?: InputMaybe; + averageSellPrice_not_in?: InputMaybe>; + borrowedAmount?: InputMaybe; + borrowedAmount_gt?: InputMaybe; + borrowedAmount_gte?: InputMaybe; + borrowedAmount_in?: InputMaybe>; + borrowedAmount_lt?: InputMaybe; + borrowedAmount_lte?: InputMaybe; + borrowedAmount_not?: InputMaybe; + borrowedAmount_not_in?: InputMaybe>; + collateralToken?: InputMaybe; + collateralToken_contains?: InputMaybe; + collateralToken_ends_with?: InputMaybe; + collateralToken_gt?: InputMaybe; + collateralToken_gte?: InputMaybe; + collateralToken_in?: InputMaybe>; + collateralToken_lt?: InputMaybe; + collateralToken_lte?: InputMaybe; + collateralToken_not?: InputMaybe; + collateralToken_not_contains?: InputMaybe; + collateralToken_not_ends_with?: InputMaybe; + collateralToken_not_in?: InputMaybe>; + collateralToken_not_starts_with?: InputMaybe; + collateralToken_starts_with?: InputMaybe; + endTimestamp?: InputMaybe; + endTimestamp_gt?: InputMaybe; + endTimestamp_gte?: InputMaybe; + endTimestamp_in?: InputMaybe>; + endTimestamp_lt?: InputMaybe; + endTimestamp_lte?: InputMaybe; + endTimestamp_not?: InputMaybe; + endTimestamp_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + isOpen?: InputMaybe; + isOpen_in?: InputMaybe>; + isOpen_not?: InputMaybe; + isOpen_not_in?: InputMaybe>; + loanToken?: InputMaybe; + loanToken_contains?: InputMaybe; + loanToken_ends_with?: InputMaybe; + loanToken_gt?: InputMaybe; + loanToken_gte?: InputMaybe; + loanToken_in?: InputMaybe>; + loanToken_lt?: InputMaybe; + loanToken_lte?: InputMaybe; + loanToken_not?: InputMaybe; + loanToken_not_contains?: InputMaybe; + loanToken_not_ends_with?: InputMaybe; + loanToken_not_in?: InputMaybe>; + loanToken_not_starts_with?: InputMaybe; + loanToken_starts_with?: InputMaybe; + maxBorrowedAmount?: InputMaybe; + maxBorrowedAmount_gt?: InputMaybe; + maxBorrowedAmount_gte?: InputMaybe; + maxBorrowedAmount_in?: InputMaybe>; + maxBorrowedAmount_lt?: InputMaybe; + maxBorrowedAmount_lte?: InputMaybe; + maxBorrowedAmount_not?: InputMaybe; + maxBorrowedAmount_not_in?: InputMaybe>; + maximumPositionSize?: InputMaybe; + maximumPositionSize_gt?: InputMaybe; + maximumPositionSize_gte?: InputMaybe; + maximumPositionSize_in?: InputMaybe>; + maximumPositionSize_lt?: InputMaybe; + maximumPositionSize_lte?: InputMaybe; + maximumPositionSize_not?: InputMaybe; + maximumPositionSize_not_in?: InputMaybe>; + nextRollover?: InputMaybe; + nextRollover_gt?: InputMaybe; + nextRollover_gte?: InputMaybe; + nextRollover_in?: InputMaybe>; + nextRollover_lt?: InputMaybe; + nextRollover_lte?: InputMaybe; + nextRollover_not?: InputMaybe; + nextRollover_not_in?: InputMaybe>; + positionSize?: InputMaybe; + positionSize_gt?: InputMaybe; + positionSize_gte?: InputMaybe; + positionSize_in?: InputMaybe>; + positionSize_lt?: InputMaybe; + positionSize_lte?: InputMaybe; + positionSize_not?: InputMaybe; + positionSize_not_in?: InputMaybe>; + realizedPnL?: InputMaybe; + realizedPnLPercent?: InputMaybe; + realizedPnLPercent_gt?: InputMaybe; + realizedPnLPercent_gte?: InputMaybe; + realizedPnLPercent_in?: InputMaybe>; + realizedPnLPercent_lt?: InputMaybe; + realizedPnLPercent_lte?: InputMaybe; + realizedPnLPercent_not?: InputMaybe; + realizedPnLPercent_not_in?: InputMaybe>; + realizedPnL_gt?: InputMaybe; + realizedPnL_gte?: InputMaybe; + realizedPnL_in?: InputMaybe>; + realizedPnL_lt?: InputMaybe; + realizedPnL_lte?: InputMaybe; + realizedPnL_not?: InputMaybe; + realizedPnL_not_in?: InputMaybe>; + startBorrowedAmount?: InputMaybe; + startBorrowedAmount_gt?: InputMaybe; + startBorrowedAmount_gte?: InputMaybe; + startBorrowedAmount_in?: InputMaybe>; + startBorrowedAmount_lt?: InputMaybe; + startBorrowedAmount_lte?: InputMaybe; + startBorrowedAmount_not?: InputMaybe; + startBorrowedAmount_not_in?: InputMaybe>; + startPositionSize?: InputMaybe; + startPositionSize_gt?: InputMaybe; + startPositionSize_gte?: InputMaybe; + startPositionSize_in?: InputMaybe>; + startPositionSize_lt?: InputMaybe; + startPositionSize_lte?: InputMaybe; + startPositionSize_not?: InputMaybe; + startPositionSize_not_in?: InputMaybe>; + startRate?: InputMaybe; + startRate_gt?: InputMaybe; + startRate_gte?: InputMaybe; + startRate_in?: InputMaybe>; + startRate_lt?: InputMaybe; + startRate_lte?: InputMaybe; + startRate_not?: InputMaybe; + startRate_not_in?: InputMaybe>; + startTimestamp?: InputMaybe; + startTimestamp_gt?: InputMaybe; + startTimestamp_gte?: InputMaybe; + startTimestamp_in?: InputMaybe>; + startTimestamp_lt?: InputMaybe; + startTimestamp_lte?: InputMaybe; + startTimestamp_not?: InputMaybe; + startTimestamp_not_in?: InputMaybe>; + totalBought?: InputMaybe; + totalBought_gt?: InputMaybe; + totalBought_gte?: InputMaybe; + totalBought_in?: InputMaybe>; + totalBought_lt?: InputMaybe; + totalBought_lte?: InputMaybe; + totalBought_not?: InputMaybe; + totalBought_not_in?: InputMaybe>; + totalSold?: InputMaybe; + totalSold_gt?: InputMaybe; + totalSold_gte?: InputMaybe; + totalSold_in?: InputMaybe>; + totalSold_lt?: InputMaybe; + totalSold_lte?: InputMaybe; + totalSold_not?: InputMaybe; + totalSold_not_in?: InputMaybe>; + type?: InputMaybe; + type_in?: InputMaybe>; + type_not?: InputMaybe; + type_not_in?: InputMaybe>; + user?: InputMaybe; + user_contains?: InputMaybe; + user_ends_with?: InputMaybe; + user_gt?: InputMaybe; + user_gte?: InputMaybe; + user_in?: InputMaybe>; + user_lt?: InputMaybe; + user_lte?: InputMaybe; + user_not?: InputMaybe; + user_not_contains?: InputMaybe; + user_not_ends_with?: InputMaybe; + user_not_in?: InputMaybe>; + user_not_starts_with?: InputMaybe; + user_starts_with?: InputMaybe; +}; + +export enum Loan_OrderBy { + AverageBuyPrice = 'averageBuyPrice', + AverageSellPrice = 'averageSellPrice', + Borrow = 'borrow', + BorrowedAmount = 'borrowedAmount', + CloseWithDeposits = 'closeWithDeposits', + CloseWithSwaps = 'closeWithSwaps', + CollateralToken = 'collateralToken', + DepositCollateral = 'depositCollateral', + EndTimestamp = 'endTimestamp', + Id = 'id', + IsOpen = 'isOpen', + Liquidates = 'liquidates', + LoanToken = 'loanToken', + MaxBorrowedAmount = 'maxBorrowedAmount', + MaximumPositionSize = 'maximumPositionSize', + NextRollover = 'nextRollover', + PositionSize = 'positionSize', + RealizedPnL = 'realizedPnL', + RealizedPnLPercent = 'realizedPnLPercent', + Rollovers = 'rollovers', + StartBorrowedAmount = 'startBorrowedAmount', + StartPositionSize = 'startPositionSize', + StartRate = 'startRate', + StartTimestamp = 'startTimestamp', + TotalBought = 'totalBought', + TotalSold = 'totalSold', + Trade = 'trade', + Type = 'type', + User = 'user', +} + +export type MarginOrderCanceled = { + __typename?: 'MarginOrderCanceled'; + emittedBy: Scalars['Bytes']; + hash: Scalars['Bytes']; + id: Scalars['ID']; + timestamp: Scalars['Int']; + trader: Scalars['Bytes']; + transaction: Transaction; +}; + +export type MarginOrderCanceled_Filter = { + emittedBy?: InputMaybe; + emittedBy_contains?: InputMaybe; + emittedBy_in?: InputMaybe>; + emittedBy_not?: InputMaybe; + emittedBy_not_contains?: InputMaybe; + emittedBy_not_in?: InputMaybe>; + hash?: InputMaybe; + hash_contains?: InputMaybe; + hash_in?: InputMaybe>; + hash_not?: InputMaybe; + hash_not_contains?: InputMaybe; + hash_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + timestamp?: InputMaybe; + timestamp_gt?: InputMaybe; + timestamp_gte?: InputMaybe; + timestamp_in?: InputMaybe>; + timestamp_lt?: InputMaybe; + timestamp_lte?: InputMaybe; + timestamp_not?: InputMaybe; + timestamp_not_in?: InputMaybe>; + trader?: InputMaybe; + trader_contains?: InputMaybe; + trader_in?: InputMaybe>; + trader_not?: InputMaybe; + trader_not_contains?: InputMaybe; + trader_not_in?: InputMaybe>; + transaction?: InputMaybe; + transaction_contains?: InputMaybe; + transaction_ends_with?: InputMaybe; + transaction_gt?: InputMaybe; + transaction_gte?: InputMaybe; + transaction_in?: InputMaybe>; + transaction_lt?: InputMaybe; + transaction_lte?: InputMaybe; + transaction_not?: InputMaybe; + transaction_not_contains?: InputMaybe; + transaction_not_ends_with?: InputMaybe; + transaction_not_in?: InputMaybe>; + transaction_not_starts_with?: InputMaybe; + transaction_starts_with?: InputMaybe; +}; + +export enum MarginOrderCanceled_OrderBy { + EmittedBy = 'emittedBy', + Hash = 'hash', + Id = 'id', + Timestamp = 'timestamp', + Trader = 'trader', + Transaction = 'transaction', +} + +export type MarginOrderFilled = { + __typename?: 'MarginOrderFilled'; + collateral: Scalars['BigDecimal']; + collateralTokenAddress: Scalars['Bytes']; + collateralTokenSent: Scalars['BigDecimal']; + emittedBy: Scalars['Bytes']; + filledPrice: Scalars['BigDecimal']; + hash: Scalars['Bytes']; + id: Scalars['ID']; + leverageAmount: Scalars['BigDecimal']; + loanTokenAddress: Scalars['Bytes']; + loanTokenSent: Scalars['BigDecimal']; + principal: Scalars['BigDecimal']; + timestamp: Scalars['Int']; + trader: User; + transaction: Transaction; +}; + +export type MarginOrderFilled_Filter = { + collateral?: InputMaybe; + collateralTokenAddress?: InputMaybe; + collateralTokenAddress_contains?: InputMaybe; + collateralTokenAddress_in?: InputMaybe>; + collateralTokenAddress_not?: InputMaybe; + collateralTokenAddress_not_contains?: InputMaybe; + collateralTokenAddress_not_in?: InputMaybe>; + collateralTokenSent?: InputMaybe; + collateralTokenSent_gt?: InputMaybe; + collateralTokenSent_gte?: InputMaybe; + collateralTokenSent_in?: InputMaybe>; + collateralTokenSent_lt?: InputMaybe; + collateralTokenSent_lte?: InputMaybe; + collateralTokenSent_not?: InputMaybe; + collateralTokenSent_not_in?: InputMaybe>; + collateral_gt?: InputMaybe; + collateral_gte?: InputMaybe; + collateral_in?: InputMaybe>; + collateral_lt?: InputMaybe; + collateral_lte?: InputMaybe; + collateral_not?: InputMaybe; + collateral_not_in?: InputMaybe>; + emittedBy?: InputMaybe; + emittedBy_contains?: InputMaybe; + emittedBy_in?: InputMaybe>; + emittedBy_not?: InputMaybe; + emittedBy_not_contains?: InputMaybe; + emittedBy_not_in?: InputMaybe>; + filledPrice?: InputMaybe; + filledPrice_gt?: InputMaybe; + filledPrice_gte?: InputMaybe; + filledPrice_in?: InputMaybe>; + filledPrice_lt?: InputMaybe; + filledPrice_lte?: InputMaybe; + filledPrice_not?: InputMaybe; + filledPrice_not_in?: InputMaybe>; + hash?: InputMaybe; + hash_contains?: InputMaybe; + hash_in?: InputMaybe>; + hash_not?: InputMaybe; + hash_not_contains?: InputMaybe; + hash_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + leverageAmount?: InputMaybe; + leverageAmount_gt?: InputMaybe; + leverageAmount_gte?: InputMaybe; + leverageAmount_in?: InputMaybe>; + leverageAmount_lt?: InputMaybe; + leverageAmount_lte?: InputMaybe; + leverageAmount_not?: InputMaybe; + leverageAmount_not_in?: InputMaybe>; + loanTokenAddress?: InputMaybe; + loanTokenAddress_contains?: InputMaybe; + loanTokenAddress_in?: InputMaybe>; + loanTokenAddress_not?: InputMaybe; + loanTokenAddress_not_contains?: InputMaybe; + loanTokenAddress_not_in?: InputMaybe>; + loanTokenSent?: InputMaybe; + loanTokenSent_gt?: InputMaybe; + loanTokenSent_gte?: InputMaybe; + loanTokenSent_in?: InputMaybe>; + loanTokenSent_lt?: InputMaybe; + loanTokenSent_lte?: InputMaybe; + loanTokenSent_not?: InputMaybe; + loanTokenSent_not_in?: InputMaybe>; + principal?: InputMaybe; + principal_gt?: InputMaybe; + principal_gte?: InputMaybe; + principal_in?: InputMaybe>; + principal_lt?: InputMaybe; + principal_lte?: InputMaybe; + principal_not?: InputMaybe; + principal_not_in?: InputMaybe>; + timestamp?: InputMaybe; + timestamp_gt?: InputMaybe; + timestamp_gte?: InputMaybe; + timestamp_in?: InputMaybe>; + timestamp_lt?: InputMaybe; + timestamp_lte?: InputMaybe; + timestamp_not?: InputMaybe; + timestamp_not_in?: InputMaybe>; + trader?: InputMaybe; + trader_contains?: InputMaybe; + trader_ends_with?: InputMaybe; + trader_gt?: InputMaybe; + trader_gte?: InputMaybe; + trader_in?: InputMaybe>; + trader_lt?: InputMaybe; + trader_lte?: InputMaybe; + trader_not?: InputMaybe; + trader_not_contains?: InputMaybe; + trader_not_ends_with?: InputMaybe; + trader_not_in?: InputMaybe>; + trader_not_starts_with?: InputMaybe; + trader_starts_with?: InputMaybe; + transaction?: InputMaybe; + transaction_contains?: InputMaybe; + transaction_ends_with?: InputMaybe; + transaction_gt?: InputMaybe; + transaction_gte?: InputMaybe; + transaction_in?: InputMaybe>; + transaction_lt?: InputMaybe; + transaction_lte?: InputMaybe; + transaction_not?: InputMaybe; + transaction_not_contains?: InputMaybe; + transaction_not_ends_with?: InputMaybe; + transaction_not_in?: InputMaybe>; + transaction_not_starts_with?: InputMaybe; + transaction_starts_with?: InputMaybe; +}; + +export enum MarginOrderFilled_OrderBy { + Collateral = 'collateral', + CollateralTokenAddress = 'collateralTokenAddress', + CollateralTokenSent = 'collateralTokenSent', + EmittedBy = 'emittedBy', + FilledPrice = 'filledPrice', + Hash = 'hash', + Id = 'id', + LeverageAmount = 'leverageAmount', + LoanTokenAddress = 'loanTokenAddress', + LoanTokenSent = 'loanTokenSent', + Principal = 'principal', + Timestamp = 'timestamp', + Trader = 'trader', + Transaction = 'transaction', +} + +export enum Network { + Mainnet = 'Mainnet', + Testnet = 'Testnet', +} + +export type OrderCanceled = { + __typename?: 'OrderCanceled'; + emittedBy: Scalars['Bytes']; + hash: Scalars['Bytes']; + id: Scalars['ID']; + maker: Scalars['Bytes']; + timestamp: Scalars['Int']; + transaction: Transaction; +}; + +export type OrderCanceled_Filter = { + emittedBy?: InputMaybe; + emittedBy_contains?: InputMaybe; + emittedBy_in?: InputMaybe>; + emittedBy_not?: InputMaybe; + emittedBy_not_contains?: InputMaybe; + emittedBy_not_in?: InputMaybe>; + hash?: InputMaybe; + hash_contains?: InputMaybe; + hash_in?: InputMaybe>; + hash_not?: InputMaybe; + hash_not_contains?: InputMaybe; + hash_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + maker?: InputMaybe; + maker_contains?: InputMaybe; + maker_in?: InputMaybe>; + maker_not?: InputMaybe; + maker_not_contains?: InputMaybe; + maker_not_in?: InputMaybe>; + timestamp?: InputMaybe; + timestamp_gt?: InputMaybe; + timestamp_gte?: InputMaybe; + timestamp_in?: InputMaybe>; + timestamp_lt?: InputMaybe; + timestamp_lte?: InputMaybe; + timestamp_not?: InputMaybe; + timestamp_not_in?: InputMaybe>; + transaction?: InputMaybe; + transaction_contains?: InputMaybe; + transaction_ends_with?: InputMaybe; + transaction_gt?: InputMaybe; + transaction_gte?: InputMaybe; + transaction_in?: InputMaybe>; + transaction_lt?: InputMaybe; + transaction_lte?: InputMaybe; + transaction_not?: InputMaybe; + transaction_not_contains?: InputMaybe; + transaction_not_ends_with?: InputMaybe; + transaction_not_in?: InputMaybe>; + transaction_not_starts_with?: InputMaybe; + transaction_starts_with?: InputMaybe; +}; + +export enum OrderCanceled_OrderBy { + EmittedBy = 'emittedBy', + Hash = 'hash', + Id = 'id', + Maker = 'maker', + Timestamp = 'timestamp', + Transaction = 'transaction', +} + +export type OrderCreated = { + __typename?: 'OrderCreated'; + emittedBy: Scalars['Bytes']; + hash: Scalars['Bytes']; + id: Scalars['ID']; + /** + * The price at which the order should be executed. + * This is a BigInt (usually 1e18), not a human-readable decimal. (See above for explanation) + * + */ + limitPrice: Scalars['BigInt']; + network: Network; + /** + * The amountIn is a BigInt (usually 1e18), not a human-readable decimal. + * This is because both orderbooks are on testnet, and so this subgraph cannot access the correct number of token decimals for mainnet tokens + * + */ + order_amountIn: Scalars['BigInt']; + /** + * The amountIn is a BigInt (usually 1e18), not a human-readable decimal. (See above for explanation) + * + */ + order_amountOutMin: Scalars['BigInt']; + /** + * Timestamp when the order was created + * + */ + order_created: Scalars['BigInt']; + /** + * Timestamp when the order must be filled by + * + */ + order_deadline: Scalars['BigInt']; + order_fromToken: Scalars['Bytes']; + /** + * This is the User address. This is not a User entity because of the testnet/mainnet issue (see above comment) + * + */ + order_maker: Scalars['Bytes']; + order_recipient: Scalars['Bytes']; + order_toToken: Scalars['Bytes']; + timestamp: Scalars['Int']; + transaction: Transaction; +}; + +export type OrderCreated_Filter = { + emittedBy?: InputMaybe; + emittedBy_contains?: InputMaybe; + emittedBy_in?: InputMaybe>; + emittedBy_not?: InputMaybe; + emittedBy_not_contains?: InputMaybe; + emittedBy_not_in?: InputMaybe>; + hash?: InputMaybe; + hash_contains?: InputMaybe; + hash_in?: InputMaybe>; + hash_not?: InputMaybe; + hash_not_contains?: InputMaybe; + hash_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + limitPrice?: InputMaybe; + limitPrice_gt?: InputMaybe; + limitPrice_gte?: InputMaybe; + limitPrice_in?: InputMaybe>; + limitPrice_lt?: InputMaybe; + limitPrice_lte?: InputMaybe; + limitPrice_not?: InputMaybe; + limitPrice_not_in?: InputMaybe>; + network?: InputMaybe; + network_in?: InputMaybe>; + network_not?: InputMaybe; + network_not_in?: InputMaybe>; + order_amountIn?: InputMaybe; + order_amountIn_gt?: InputMaybe; + order_amountIn_gte?: InputMaybe; + order_amountIn_in?: InputMaybe>; + order_amountIn_lt?: InputMaybe; + order_amountIn_lte?: InputMaybe; + order_amountIn_not?: InputMaybe; + order_amountIn_not_in?: InputMaybe>; + order_amountOutMin?: InputMaybe; + order_amountOutMin_gt?: InputMaybe; + order_amountOutMin_gte?: InputMaybe; + order_amountOutMin_in?: InputMaybe>; + order_amountOutMin_lt?: InputMaybe; + order_amountOutMin_lte?: InputMaybe; + order_amountOutMin_not?: InputMaybe; + order_amountOutMin_not_in?: InputMaybe>; + order_created?: InputMaybe; + order_created_gt?: InputMaybe; + order_created_gte?: InputMaybe; + order_created_in?: InputMaybe>; + order_created_lt?: InputMaybe; + order_created_lte?: InputMaybe; + order_created_not?: InputMaybe; + order_created_not_in?: InputMaybe>; + order_deadline?: InputMaybe; + order_deadline_gt?: InputMaybe; + order_deadline_gte?: InputMaybe; + order_deadline_in?: InputMaybe>; + order_deadline_lt?: InputMaybe; + order_deadline_lte?: InputMaybe; + order_deadline_not?: InputMaybe; + order_deadline_not_in?: InputMaybe>; + order_fromToken?: InputMaybe; + order_fromToken_contains?: InputMaybe; + order_fromToken_in?: InputMaybe>; + order_fromToken_not?: InputMaybe; + order_fromToken_not_contains?: InputMaybe; + order_fromToken_not_in?: InputMaybe>; + order_maker?: InputMaybe; + order_maker_contains?: InputMaybe; + order_maker_in?: InputMaybe>; + order_maker_not?: InputMaybe; + order_maker_not_contains?: InputMaybe; + order_maker_not_in?: InputMaybe>; + order_recipient?: InputMaybe; + order_recipient_contains?: InputMaybe; + order_recipient_in?: InputMaybe>; + order_recipient_not?: InputMaybe; + order_recipient_not_contains?: InputMaybe; + order_recipient_not_in?: InputMaybe>; + order_toToken?: InputMaybe; + order_toToken_contains?: InputMaybe; + order_toToken_in?: InputMaybe>; + order_toToken_not?: InputMaybe; + order_toToken_not_contains?: InputMaybe; + order_toToken_not_in?: InputMaybe>; + timestamp?: InputMaybe; + timestamp_gt?: InputMaybe; + timestamp_gte?: InputMaybe; + timestamp_in?: InputMaybe>; + timestamp_lt?: InputMaybe; + timestamp_lte?: InputMaybe; + timestamp_not?: InputMaybe; + timestamp_not_in?: InputMaybe>; + transaction?: InputMaybe; + transaction_contains?: InputMaybe; + transaction_ends_with?: InputMaybe; + transaction_gt?: InputMaybe; + transaction_gte?: InputMaybe; + transaction_in?: InputMaybe>; + transaction_lt?: InputMaybe; + transaction_lte?: InputMaybe; + transaction_not?: InputMaybe; + transaction_not_contains?: InputMaybe; + transaction_not_ends_with?: InputMaybe; + transaction_not_in?: InputMaybe>; + transaction_not_starts_with?: InputMaybe; + transaction_starts_with?: InputMaybe; +}; + +export enum OrderCreated_OrderBy { + EmittedBy = 'emittedBy', + Hash = 'hash', + Id = 'id', + LimitPrice = 'limitPrice', + Network = 'network', + OrderAmountIn = 'order_amountIn', + OrderAmountOutMin = 'order_amountOutMin', + OrderCreated = 'order_created', + OrderDeadline = 'order_deadline', + OrderFromToken = 'order_fromToken', + OrderMaker = 'order_maker', + OrderRecipient = 'order_recipient', + OrderToToken = 'order_toToken', + Timestamp = 'timestamp', + Transaction = 'transaction', +} + +export enum OrderDirection { + Asc = 'asc', + Desc = 'desc', +} + +export type OrderFilled = { + __typename?: 'OrderFilled'; + amountIn: Scalars['BigDecimal']; + amountOut: Scalars['BigDecimal']; + emittedBy: Scalars['Bytes']; + filledPrice: Scalars['BigDecimal']; + hash: Scalars['Bytes']; + id: Scalars['ID']; + maker: User; + path: Array; + timestamp: Scalars['Int']; + transaction: Transaction; +}; + +export type OrderFilled_Filter = { + amountIn?: InputMaybe; + amountIn_gt?: InputMaybe; + amountIn_gte?: InputMaybe; + amountIn_in?: InputMaybe>; + amountIn_lt?: InputMaybe; + amountIn_lte?: InputMaybe; + amountIn_not?: InputMaybe; + amountIn_not_in?: InputMaybe>; + amountOut?: InputMaybe; + amountOut_gt?: InputMaybe; + amountOut_gte?: InputMaybe; + amountOut_in?: InputMaybe>; + amountOut_lt?: InputMaybe; + amountOut_lte?: InputMaybe; + amountOut_not?: InputMaybe; + amountOut_not_in?: InputMaybe>; + emittedBy?: InputMaybe; + emittedBy_contains?: InputMaybe; + emittedBy_in?: InputMaybe>; + emittedBy_not?: InputMaybe; + emittedBy_not_contains?: InputMaybe; + emittedBy_not_in?: InputMaybe>; + filledPrice?: InputMaybe; + filledPrice_gt?: InputMaybe; + filledPrice_gte?: InputMaybe; + filledPrice_in?: InputMaybe>; + filledPrice_lt?: InputMaybe; + filledPrice_lte?: InputMaybe; + filledPrice_not?: InputMaybe; + filledPrice_not_in?: InputMaybe>; + hash?: InputMaybe; + hash_contains?: InputMaybe; + hash_in?: InputMaybe>; + hash_not?: InputMaybe; + hash_not_contains?: InputMaybe; + hash_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + maker?: InputMaybe; + maker_contains?: InputMaybe; + maker_ends_with?: InputMaybe; + maker_gt?: InputMaybe; + maker_gte?: InputMaybe; + maker_in?: InputMaybe>; + maker_lt?: InputMaybe; + maker_lte?: InputMaybe; + maker_not?: InputMaybe; + maker_not_contains?: InputMaybe; + maker_not_ends_with?: InputMaybe; + maker_not_in?: InputMaybe>; + maker_not_starts_with?: InputMaybe; + maker_starts_with?: InputMaybe; + path?: InputMaybe>; + path_contains?: InputMaybe>; + path_not?: InputMaybe>; + path_not_contains?: InputMaybe>; + timestamp?: InputMaybe; + timestamp_gt?: InputMaybe; + timestamp_gte?: InputMaybe; + timestamp_in?: InputMaybe>; + timestamp_lt?: InputMaybe; + timestamp_lte?: InputMaybe; + timestamp_not?: InputMaybe; + timestamp_not_in?: InputMaybe>; + transaction?: InputMaybe; + transaction_contains?: InputMaybe; + transaction_ends_with?: InputMaybe; + transaction_gt?: InputMaybe; + transaction_gte?: InputMaybe; + transaction_in?: InputMaybe>; + transaction_lt?: InputMaybe; + transaction_lte?: InputMaybe; + transaction_not?: InputMaybe; + transaction_not_contains?: InputMaybe; + transaction_not_ends_with?: InputMaybe; + transaction_not_in?: InputMaybe>; + transaction_not_starts_with?: InputMaybe; + transaction_starts_with?: InputMaybe; +}; + +export enum OrderFilled_OrderBy { + AmountIn = 'amountIn', + AmountOut = 'amountOut', + EmittedBy = 'emittedBy', + FilledPrice = 'filledPrice', + Hash = 'hash', + Id = 'id', + Maker = 'maker', + Path = 'path', + Timestamp = 'timestamp', + Transaction = 'transaction', +} + +export type OwnerUpdate = { + __typename?: 'OwnerUpdate'; + emittedBy: Scalars['String']; + id: Scalars['ID']; + newOwner: Scalars['String']; + prevOwner: Scalars['String']; + timestamp: Scalars['BigInt']; +}; + +export type OwnerUpdate_Filter = { + emittedBy?: InputMaybe; + emittedBy_contains?: InputMaybe; + emittedBy_ends_with?: InputMaybe; + emittedBy_gt?: InputMaybe; + emittedBy_gte?: InputMaybe; + emittedBy_in?: InputMaybe>; + emittedBy_lt?: InputMaybe; + emittedBy_lte?: InputMaybe; + emittedBy_not?: InputMaybe; + emittedBy_not_contains?: InputMaybe; + emittedBy_not_ends_with?: InputMaybe; + emittedBy_not_in?: InputMaybe>; + emittedBy_not_starts_with?: InputMaybe; + emittedBy_starts_with?: InputMaybe; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + newOwner?: InputMaybe; + newOwner_contains?: InputMaybe; + newOwner_ends_with?: InputMaybe; + newOwner_gt?: InputMaybe; + newOwner_gte?: InputMaybe; + newOwner_in?: InputMaybe>; + newOwner_lt?: InputMaybe; + newOwner_lte?: InputMaybe; + newOwner_not?: InputMaybe; + newOwner_not_contains?: InputMaybe; + newOwner_not_ends_with?: InputMaybe; + newOwner_not_in?: InputMaybe>; + newOwner_not_starts_with?: InputMaybe; + newOwner_starts_with?: InputMaybe; + prevOwner?: InputMaybe; + prevOwner_contains?: InputMaybe; + prevOwner_ends_with?: InputMaybe; + prevOwner_gt?: InputMaybe; + prevOwner_gte?: InputMaybe; + prevOwner_in?: InputMaybe>; + prevOwner_lt?: InputMaybe; + prevOwner_lte?: InputMaybe; + prevOwner_not?: InputMaybe; + prevOwner_not_contains?: InputMaybe; + prevOwner_not_ends_with?: InputMaybe; + prevOwner_not_in?: InputMaybe>; + prevOwner_not_starts_with?: InputMaybe; + prevOwner_starts_with?: InputMaybe; + timestamp?: InputMaybe; + timestamp_gt?: InputMaybe; + timestamp_gte?: InputMaybe; + timestamp_in?: InputMaybe>; + timestamp_lt?: InputMaybe; + timestamp_lte?: InputMaybe; + timestamp_not?: InputMaybe; + timestamp_not_in?: InputMaybe>; +}; + +export enum OwnerUpdate_OrderBy { + EmittedBy = 'emittedBy', + Id = 'id', + NewOwner = 'newOwner', + PrevOwner = 'prevOwner', + Timestamp = 'timestamp', +} + +/** + * Granular event data for the Loan entity. Emitted when a user Borrows and when a loan is rolled over + * + */ +export type PayBorrowingFee = { + __typename?: 'PayBorrowingFee'; + amount: Scalars['BigDecimal']; + emittedBy: Scalars['Bytes']; + id: Scalars['ID']; + loanId: Loan; + payer: Scalars['Bytes']; + timestamp: Scalars['Int']; + token: Scalars['Bytes']; + transaction: Transaction; +}; + +export type PayBorrowingFee_Filter = { + amount?: InputMaybe; + amount_gt?: InputMaybe; + amount_gte?: InputMaybe; + amount_in?: InputMaybe>; + amount_lt?: InputMaybe; + amount_lte?: InputMaybe; + amount_not?: InputMaybe; + amount_not_in?: InputMaybe>; + emittedBy?: InputMaybe; + emittedBy_contains?: InputMaybe; + emittedBy_in?: InputMaybe>; + emittedBy_not?: InputMaybe; + emittedBy_not_contains?: InputMaybe; + emittedBy_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + loanId?: InputMaybe; + loanId_contains?: InputMaybe; + loanId_ends_with?: InputMaybe; + loanId_gt?: InputMaybe; + loanId_gte?: InputMaybe; + loanId_in?: InputMaybe>; + loanId_lt?: InputMaybe; + loanId_lte?: InputMaybe; + loanId_not?: InputMaybe; + loanId_not_contains?: InputMaybe; + loanId_not_ends_with?: InputMaybe; + loanId_not_in?: InputMaybe>; + loanId_not_starts_with?: InputMaybe; + loanId_starts_with?: InputMaybe; + payer?: InputMaybe; + payer_contains?: InputMaybe; + payer_in?: InputMaybe>; + payer_not?: InputMaybe; + payer_not_contains?: InputMaybe; + payer_not_in?: InputMaybe>; + timestamp?: InputMaybe; + timestamp_gt?: InputMaybe; + timestamp_gte?: InputMaybe; + timestamp_in?: InputMaybe>; + timestamp_lt?: InputMaybe; + timestamp_lte?: InputMaybe; + timestamp_not?: InputMaybe; + timestamp_not_in?: InputMaybe>; + token?: InputMaybe; + token_contains?: InputMaybe; + token_in?: InputMaybe>; + token_not?: InputMaybe; + token_not_contains?: InputMaybe; + token_not_in?: InputMaybe>; + transaction?: InputMaybe; + transaction_contains?: InputMaybe; + transaction_ends_with?: InputMaybe; + transaction_gt?: InputMaybe; + transaction_gte?: InputMaybe; + transaction_in?: InputMaybe>; + transaction_lt?: InputMaybe; + transaction_lte?: InputMaybe; + transaction_not?: InputMaybe; + transaction_not_contains?: InputMaybe; + transaction_not_ends_with?: InputMaybe; + transaction_not_in?: InputMaybe>; + transaction_not_starts_with?: InputMaybe; + transaction_starts_with?: InputMaybe; +}; + +export enum PayBorrowingFee_OrderBy { + Amount = 'amount', + EmittedBy = 'emittedBy', + Id = 'id', + LoanId = 'loanId', + Payer = 'payer', + Timestamp = 'timestamp', + Token = 'token', + Transaction = 'transaction', +} + +export type PayInterestTransfer = { + __typename?: 'PayInterestTransfer'; + effectiveInterest: Scalars['BigDecimal']; + emittedBy: Scalars['String']; + id: Scalars['ID']; + interestToken: Token; + lender: LendingPool; + timestamp: Scalars['Int']; + transaction: Transaction; +}; + +export type PayInterestTransfer_Filter = { + effectiveInterest?: InputMaybe; + effectiveInterest_gt?: InputMaybe; + effectiveInterest_gte?: InputMaybe; + effectiveInterest_in?: InputMaybe>; + effectiveInterest_lt?: InputMaybe; + effectiveInterest_lte?: InputMaybe; + effectiveInterest_not?: InputMaybe; + effectiveInterest_not_in?: InputMaybe>; + emittedBy?: InputMaybe; + emittedBy_contains?: InputMaybe; + emittedBy_ends_with?: InputMaybe; + emittedBy_gt?: InputMaybe; + emittedBy_gte?: InputMaybe; + emittedBy_in?: InputMaybe>; + emittedBy_lt?: InputMaybe; + emittedBy_lte?: InputMaybe; + emittedBy_not?: InputMaybe; + emittedBy_not_contains?: InputMaybe; + emittedBy_not_ends_with?: InputMaybe; + emittedBy_not_in?: InputMaybe>; + emittedBy_not_starts_with?: InputMaybe; + emittedBy_starts_with?: InputMaybe; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + interestToken?: InputMaybe; + interestToken_contains?: InputMaybe; + interestToken_ends_with?: InputMaybe; + interestToken_gt?: InputMaybe; + interestToken_gte?: InputMaybe; + interestToken_in?: InputMaybe>; + interestToken_lt?: InputMaybe; + interestToken_lte?: InputMaybe; + interestToken_not?: InputMaybe; + interestToken_not_contains?: InputMaybe; + interestToken_not_ends_with?: InputMaybe; + interestToken_not_in?: InputMaybe>; + interestToken_not_starts_with?: InputMaybe; + interestToken_starts_with?: InputMaybe; + lender?: InputMaybe; + lender_contains?: InputMaybe; + lender_ends_with?: InputMaybe; + lender_gt?: InputMaybe; + lender_gte?: InputMaybe; + lender_in?: InputMaybe>; + lender_lt?: InputMaybe; + lender_lte?: InputMaybe; + lender_not?: InputMaybe; + lender_not_contains?: InputMaybe; + lender_not_ends_with?: InputMaybe; + lender_not_in?: InputMaybe>; + lender_not_starts_with?: InputMaybe; + lender_starts_with?: InputMaybe; + timestamp?: InputMaybe; + timestamp_gt?: InputMaybe; + timestamp_gte?: InputMaybe; + timestamp_in?: InputMaybe>; + timestamp_lt?: InputMaybe; + timestamp_lte?: InputMaybe; + timestamp_not?: InputMaybe; + timestamp_not_in?: InputMaybe>; + transaction?: InputMaybe; + transaction_contains?: InputMaybe; + transaction_ends_with?: InputMaybe; + transaction_gt?: InputMaybe; + transaction_gte?: InputMaybe; + transaction_in?: InputMaybe>; + transaction_lt?: InputMaybe; + transaction_lte?: InputMaybe; + transaction_not?: InputMaybe; + transaction_not_contains?: InputMaybe; + transaction_not_ends_with?: InputMaybe; + transaction_not_in?: InputMaybe>; + transaction_not_starts_with?: InputMaybe; + transaction_starts_with?: InputMaybe; +}; + +export enum PayInterestTransfer_OrderBy { + EffectiveInterest = 'effectiveInterest', + EmittedBy = 'emittedBy', + Id = 'id', + InterestToken = 'interestToken', + Lender = 'lender', + Timestamp = 'timestamp', + Transaction = 'transaction', +} + +/** + * Granular event data for the Loan entity. Emitted when a user Lends or Unlends and when a loan is rolled over + * + */ +export type PayLendingFee = { + __typename?: 'PayLendingFee'; + amount: Scalars['BigDecimal']; + emittedBy: Scalars['Bytes']; + id: Scalars['ID']; + payer: Scalars['Bytes']; + timestamp: Scalars['Int']; + token: Scalars['Bytes']; + transaction: Transaction; +}; + +export type PayLendingFee_Filter = { + amount?: InputMaybe; + amount_gt?: InputMaybe; + amount_gte?: InputMaybe; + amount_in?: InputMaybe>; + amount_lt?: InputMaybe; + amount_lte?: InputMaybe; + amount_not?: InputMaybe; + amount_not_in?: InputMaybe>; + emittedBy?: InputMaybe; + emittedBy_contains?: InputMaybe; + emittedBy_in?: InputMaybe>; + emittedBy_not?: InputMaybe; + emittedBy_not_contains?: InputMaybe; + emittedBy_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + payer?: InputMaybe; + payer_contains?: InputMaybe; + payer_in?: InputMaybe>; + payer_not?: InputMaybe; + payer_not_contains?: InputMaybe; + payer_not_in?: InputMaybe>; + timestamp?: InputMaybe; + timestamp_gt?: InputMaybe; + timestamp_gte?: InputMaybe; + timestamp_in?: InputMaybe>; + timestamp_lt?: InputMaybe; + timestamp_lte?: InputMaybe; + timestamp_not?: InputMaybe; + timestamp_not_in?: InputMaybe>; + token?: InputMaybe; + token_contains?: InputMaybe; + token_in?: InputMaybe>; + token_not?: InputMaybe; + token_not_contains?: InputMaybe; + token_not_in?: InputMaybe>; + transaction?: InputMaybe; + transaction_contains?: InputMaybe; + transaction_ends_with?: InputMaybe; + transaction_gt?: InputMaybe; + transaction_gte?: InputMaybe; + transaction_in?: InputMaybe>; + transaction_lt?: InputMaybe; + transaction_lte?: InputMaybe; + transaction_not?: InputMaybe; + transaction_not_contains?: InputMaybe; + transaction_not_ends_with?: InputMaybe; + transaction_not_in?: InputMaybe>; + transaction_not_starts_with?: InputMaybe; + transaction_starts_with?: InputMaybe; +}; + +export enum PayLendingFee_OrderBy { + Amount = 'amount', + EmittedBy = 'emittedBy', + Id = 'id', + Payer = 'payer', + Timestamp = 'timestamp', + Token = 'token', + Transaction = 'transaction', +} + +/** + * Granular event data for the Loan entity. Emitted when a user Margin Trades and when a loan is rolled over + * + */ +export type PayTradingFee = { + __typename?: 'PayTradingFee'; + amount: Scalars['BigDecimal']; + emittedBy: Scalars['Bytes']; + id: Scalars['ID']; + loanId: Loan; + payer: Scalars['Bytes']; + timestamp: Scalars['Int']; + token: Scalars['Bytes']; + transaction: Transaction; +}; + +export type PayTradingFee_Filter = { + amount?: InputMaybe; + amount_gt?: InputMaybe; + amount_gte?: InputMaybe; + amount_in?: InputMaybe>; + amount_lt?: InputMaybe; + amount_lte?: InputMaybe; + amount_not?: InputMaybe; + amount_not_in?: InputMaybe>; + emittedBy?: InputMaybe; + emittedBy_contains?: InputMaybe; + emittedBy_in?: InputMaybe>; + emittedBy_not?: InputMaybe; + emittedBy_not_contains?: InputMaybe; + emittedBy_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + loanId?: InputMaybe; + loanId_contains?: InputMaybe; + loanId_ends_with?: InputMaybe; + loanId_gt?: InputMaybe; + loanId_gte?: InputMaybe; + loanId_in?: InputMaybe>; + loanId_lt?: InputMaybe; + loanId_lte?: InputMaybe; + loanId_not?: InputMaybe; + loanId_not_contains?: InputMaybe; + loanId_not_ends_with?: InputMaybe; + loanId_not_in?: InputMaybe>; + loanId_not_starts_with?: InputMaybe; + loanId_starts_with?: InputMaybe; + payer?: InputMaybe; + payer_contains?: InputMaybe; + payer_in?: InputMaybe>; + payer_not?: InputMaybe; + payer_not_contains?: InputMaybe; + payer_not_in?: InputMaybe>; + timestamp?: InputMaybe; + timestamp_gt?: InputMaybe; + timestamp_gte?: InputMaybe; + timestamp_in?: InputMaybe>; + timestamp_lt?: InputMaybe; + timestamp_lte?: InputMaybe; + timestamp_not?: InputMaybe; + timestamp_not_in?: InputMaybe>; + token?: InputMaybe; + token_contains?: InputMaybe; + token_in?: InputMaybe>; + token_not?: InputMaybe; + token_not_contains?: InputMaybe; + token_not_in?: InputMaybe>; + transaction?: InputMaybe; + transaction_contains?: InputMaybe; + transaction_ends_with?: InputMaybe; + transaction_gt?: InputMaybe; + transaction_gte?: InputMaybe; + transaction_in?: InputMaybe>; + transaction_lt?: InputMaybe; + transaction_lte?: InputMaybe; + transaction_not?: InputMaybe; + transaction_not_contains?: InputMaybe; + transaction_not_ends_with?: InputMaybe; + transaction_not_in?: InputMaybe>; + transaction_not_starts_with?: InputMaybe; + transaction_starts_with?: InputMaybe; +}; + +export enum PayTradingFee_OrderBy { + Amount = 'amount', + EmittedBy = 'emittedBy', + Id = 'id', + LoanId = 'loanId', + Payer = 'payer', + Timestamp = 'timestamp', + Token = 'token', + Transaction = 'transaction', +} + +/** + * For the V1 pools, the pool token and smart token are the same. However, for V2 pools, there is one pool token per asset and only one smart token for the pool. + * + */ +export type PoolToken = { + __typename?: 'PoolToken'; + decimals?: Maybe; + id: Scalars['ID']; + liquidityPool: LiquidityPool; + name?: Maybe; + symbol?: Maybe; + /** + * For V1 pools, there will be 2 underlying assets, however for V2 pools there will be just one + * + */ + underlyingAssets: Array; +}; + +/** + * For the V1 pools, the pool token and smart token are the same. However, for V2 pools, there is one pool token per asset and only one smart token for the pool. + * + */ +export type PoolTokenUnderlyingAssetsArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +export type PoolToken_Filter = { + decimals?: InputMaybe; + decimals_gt?: InputMaybe; + decimals_gte?: InputMaybe; + decimals_in?: InputMaybe>; + decimals_lt?: InputMaybe; + decimals_lte?: InputMaybe; + decimals_not?: InputMaybe; + decimals_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + liquidityPool?: InputMaybe; + liquidityPool_contains?: InputMaybe; + liquidityPool_ends_with?: InputMaybe; + liquidityPool_gt?: InputMaybe; + liquidityPool_gte?: InputMaybe; + liquidityPool_in?: InputMaybe>; + liquidityPool_lt?: InputMaybe; + liquidityPool_lte?: InputMaybe; + liquidityPool_not?: InputMaybe; + liquidityPool_not_contains?: InputMaybe; + liquidityPool_not_ends_with?: InputMaybe; + liquidityPool_not_in?: InputMaybe>; + liquidityPool_not_starts_with?: InputMaybe; + liquidityPool_starts_with?: InputMaybe; + name?: InputMaybe; + name_contains?: InputMaybe; + name_ends_with?: InputMaybe; + name_gt?: InputMaybe; + name_gte?: InputMaybe; + name_in?: InputMaybe>; + name_lt?: InputMaybe; + name_lte?: InputMaybe; + name_not?: InputMaybe; + name_not_contains?: InputMaybe; + name_not_ends_with?: InputMaybe; + name_not_in?: InputMaybe>; + name_not_starts_with?: InputMaybe; + name_starts_with?: InputMaybe; + symbol?: InputMaybe; + symbol_contains?: InputMaybe; + symbol_ends_with?: InputMaybe; + symbol_gt?: InputMaybe; + symbol_gte?: InputMaybe; + symbol_in?: InputMaybe>; + symbol_lt?: InputMaybe; + symbol_lte?: InputMaybe; + symbol_not?: InputMaybe; + symbol_not_contains?: InputMaybe; + symbol_not_ends_with?: InputMaybe; + symbol_not_in?: InputMaybe>; + symbol_not_starts_with?: InputMaybe; + symbol_starts_with?: InputMaybe; + underlyingAssets?: InputMaybe>; + underlyingAssets_contains?: InputMaybe>; + underlyingAssets_not?: InputMaybe>; + underlyingAssets_not_contains?: InputMaybe>; +}; + +export enum PoolToken_OrderBy { + Decimals = 'decimals', + Id = 'id', + LiquidityPool = 'liquidityPool', + Name = 'name', + Symbol = 'symbol', + UnderlyingAssets = 'underlyingAssets', +} + +/** + * A Proposal is created each time a SIP (Sovryn Improvement Proposal) is proposed + * The Proposal is created, voted on, and then executed if it passes + * To see if a Proposal has been executed, see if the executed property is null or if it has a transaction + * + */ +export type Proposal = { + __typename?: 'Proposal'; + /** + * If the proposal was canceled, the transaction that canceled it (otherwise null) + * + */ + canceled?: Maybe; + /** + * Number of unique wallets that voted against this proposal + * + */ + countVotersAgainst: Scalars['Int']; + /** + * Number of unique wallets that voted for this proposal + * + */ + countVotersFor: Scalars['Int']; + /** + * Transaction that created the proposal + * + */ + created: Transaction; + /** + * Brief description of what this SIP is for, sometimes with a link to the github repo and README for this proposal + * + */ + description: Scalars['String']; + /** + * The contract that emitted this event + * + */ + emittedBy: Scalars['Bytes']; + /** + * Block when voting ends + * + */ + endBlock: Scalars['Int']; + /** + * If the proposal was executed, the transaction that executed it (otherwise null) + * + */ + executed?: Maybe; + /** + * ID is the address of the governor contract that was used to create the proposal, + the id of the proposal + * + */ + id: Scalars['ID']; + proposalId: Scalars['Int']; + /** + * Address of the user who created this proposal + * + */ + proposer: Scalars['Bytes']; + /** + * If the proposal was queued, the transaction that queued it (otherwise null) + * + */ + queued?: Maybe; + /** + * Function signatures in the targeted contract that would be affected by this proposal passing + * + */ + signatures: Array; + /** + * Block when voting starts + * + */ + startBlock: Scalars['Int']; + /** + * Contract or contracts that this proposal targets + * + */ + targets: Array; + /** + * Timestamp when this proposal was created. This is also available in the created transaction, but is included here so it is possible to order by timestamp + * + */ + timestamp: Scalars['Int']; + values: Array; + /** + * Individual vote transactions + * + */ + votes?: Maybe>; + /** + * Number of votes against the proposal (weighted vote, not number of voters) + * + */ + votesAgainst: Scalars['BigInt']; + /** + * Number of votes for the proposal (weighted vote, not number of voters) + * + */ + votesFor: Scalars['BigInt']; +}; + +/** + * A Proposal is created each time a SIP (Sovryn Improvement Proposal) is proposed + * The Proposal is created, voted on, and then executed if it passes + * To see if a Proposal has been executed, see if the executed property is null or if it has a transaction + * + */ +export type ProposalVotesArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +export type Proposal_Filter = { + canceled?: InputMaybe; + canceled_contains?: InputMaybe; + canceled_ends_with?: InputMaybe; + canceled_gt?: InputMaybe; + canceled_gte?: InputMaybe; + canceled_in?: InputMaybe>; + canceled_lt?: InputMaybe; + canceled_lte?: InputMaybe; + canceled_not?: InputMaybe; + canceled_not_contains?: InputMaybe; + canceled_not_ends_with?: InputMaybe; + canceled_not_in?: InputMaybe>; + canceled_not_starts_with?: InputMaybe; + canceled_starts_with?: InputMaybe; + countVotersAgainst?: InputMaybe; + countVotersAgainst_gt?: InputMaybe; + countVotersAgainst_gte?: InputMaybe; + countVotersAgainst_in?: InputMaybe>; + countVotersAgainst_lt?: InputMaybe; + countVotersAgainst_lte?: InputMaybe; + countVotersAgainst_not?: InputMaybe; + countVotersAgainst_not_in?: InputMaybe>; + countVotersFor?: InputMaybe; + countVotersFor_gt?: InputMaybe; + countVotersFor_gte?: InputMaybe; + countVotersFor_in?: InputMaybe>; + countVotersFor_lt?: InputMaybe; + countVotersFor_lte?: InputMaybe; + countVotersFor_not?: InputMaybe; + countVotersFor_not_in?: InputMaybe>; + created?: InputMaybe; + created_contains?: InputMaybe; + created_ends_with?: InputMaybe; + created_gt?: InputMaybe; + created_gte?: InputMaybe; + created_in?: InputMaybe>; + created_lt?: InputMaybe; + created_lte?: InputMaybe; + created_not?: InputMaybe; + created_not_contains?: InputMaybe; + created_not_ends_with?: InputMaybe; + created_not_in?: InputMaybe>; + created_not_starts_with?: InputMaybe; + created_starts_with?: InputMaybe; + description?: InputMaybe; + description_contains?: InputMaybe; + description_ends_with?: InputMaybe; + description_gt?: InputMaybe; + description_gte?: InputMaybe; + description_in?: InputMaybe>; + description_lt?: InputMaybe; + description_lte?: InputMaybe; + description_not?: InputMaybe; + description_not_contains?: InputMaybe; + description_not_ends_with?: InputMaybe; + description_not_in?: InputMaybe>; + description_not_starts_with?: InputMaybe; + description_starts_with?: InputMaybe; + emittedBy?: InputMaybe; + emittedBy_contains?: InputMaybe; + emittedBy_in?: InputMaybe>; + emittedBy_not?: InputMaybe; + emittedBy_not_contains?: InputMaybe; + emittedBy_not_in?: InputMaybe>; + endBlock?: InputMaybe; + endBlock_gt?: InputMaybe; + endBlock_gte?: InputMaybe; + endBlock_in?: InputMaybe>; + endBlock_lt?: InputMaybe; + endBlock_lte?: InputMaybe; + endBlock_not?: InputMaybe; + endBlock_not_in?: InputMaybe>; + executed?: InputMaybe; + executed_contains?: InputMaybe; + executed_ends_with?: InputMaybe; + executed_gt?: InputMaybe; + executed_gte?: InputMaybe; + executed_in?: InputMaybe>; + executed_lt?: InputMaybe; + executed_lte?: InputMaybe; + executed_not?: InputMaybe; + executed_not_contains?: InputMaybe; + executed_not_ends_with?: InputMaybe; + executed_not_in?: InputMaybe>; + executed_not_starts_with?: InputMaybe; + executed_starts_with?: InputMaybe; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + proposalId?: InputMaybe; + proposalId_gt?: InputMaybe; + proposalId_gte?: InputMaybe; + proposalId_in?: InputMaybe>; + proposalId_lt?: InputMaybe; + proposalId_lte?: InputMaybe; + proposalId_not?: InputMaybe; + proposalId_not_in?: InputMaybe>; + proposer?: InputMaybe; + proposer_contains?: InputMaybe; + proposer_in?: InputMaybe>; + proposer_not?: InputMaybe; + proposer_not_contains?: InputMaybe; + proposer_not_in?: InputMaybe>; + queued?: InputMaybe; + queued_contains?: InputMaybe; + queued_ends_with?: InputMaybe; + queued_gt?: InputMaybe; + queued_gte?: InputMaybe; + queued_in?: InputMaybe>; + queued_lt?: InputMaybe; + queued_lte?: InputMaybe; + queued_not?: InputMaybe; + queued_not_contains?: InputMaybe; + queued_not_ends_with?: InputMaybe; + queued_not_in?: InputMaybe>; + queued_not_starts_with?: InputMaybe; + queued_starts_with?: InputMaybe; + signatures?: InputMaybe>; + signatures_contains?: InputMaybe>; + signatures_not?: InputMaybe>; + signatures_not_contains?: InputMaybe>; + startBlock?: InputMaybe; + startBlock_gt?: InputMaybe; + startBlock_gte?: InputMaybe; + startBlock_in?: InputMaybe>; + startBlock_lt?: InputMaybe; + startBlock_lte?: InputMaybe; + startBlock_not?: InputMaybe; + startBlock_not_in?: InputMaybe>; + targets?: InputMaybe>; + targets_contains?: InputMaybe>; + targets_not?: InputMaybe>; + targets_not_contains?: InputMaybe>; + timestamp?: InputMaybe; + timestamp_gt?: InputMaybe; + timestamp_gte?: InputMaybe; + timestamp_in?: InputMaybe>; + timestamp_lt?: InputMaybe; + timestamp_lte?: InputMaybe; + timestamp_not?: InputMaybe; + timestamp_not_in?: InputMaybe>; + values?: InputMaybe>; + values_contains?: InputMaybe>; + values_not?: InputMaybe>; + values_not_contains?: InputMaybe>; + votesAgainst?: InputMaybe; + votesAgainst_gt?: InputMaybe; + votesAgainst_gte?: InputMaybe; + votesAgainst_in?: InputMaybe>; + votesAgainst_lt?: InputMaybe; + votesAgainst_lte?: InputMaybe; + votesAgainst_not?: InputMaybe; + votesAgainst_not_in?: InputMaybe>; + votesFor?: InputMaybe; + votesFor_gt?: InputMaybe; + votesFor_gte?: InputMaybe; + votesFor_in?: InputMaybe>; + votesFor_lt?: InputMaybe; + votesFor_lte?: InputMaybe; + votesFor_not?: InputMaybe; + votesFor_not_in?: InputMaybe>; +}; + +export enum Proposal_OrderBy { + Canceled = 'canceled', + CountVotersAgainst = 'countVotersAgainst', + CountVotersFor = 'countVotersFor', + Created = 'created', + Description = 'description', + EmittedBy = 'emittedBy', + EndBlock = 'endBlock', + Executed = 'executed', + Id = 'id', + ProposalId = 'proposalId', + Proposer = 'proposer', + Queued = 'queued', + Signatures = 'signatures', + StartBlock = 'startBlock', + Targets = 'targets', + Timestamp = 'timestamp', + Values = 'values', + Votes = 'votes', + VotesAgainst = 'votesAgainst', + VotesFor = 'votesFor', +} + +/** + * This entity will have only one instance and will be used to store protocol-wide data like list of tokens and number or users. + * The ID of this one entity is "0" + * + */ +export type ProtocolStats = { + __typename?: 'ProtocolStats'; + /** + * Current price of BTC in usdStablecoin + * + */ + btcUsdPrice: Scalars['BigDecimal']; + /** + * This is SOV staked by vesting contracts. It in incremented when the contracts stake the tokens, and decremented when users claim their unlocked tokens + * + */ + currentStakedByVestingSov: Scalars['BigDecimal']; + /** + * This is SOV staked by users (not vesting contracts). It is incremented when users stake tokens, and decremented when users withdraw tokens from the staking contract + * + */ + currentVoluntarilyStakedSov: Scalars['BigDecimal']; + /** + * Only one entity should be created, with ID "0" + * + */ + id: Scalars['ID']; + /** + * An array of all tokens in the protocol + * + */ + tokens: Array; + /** + * Total volume of fees earned by liquidity providers to AMM pools (in usd) + * + */ + totalAmmLpFeesUsd: Scalars['BigDecimal']; + /** + * Total volume of fees earned by SOV stakers from AMM conversion events (in usd). These fees began after the fee-sharing SIP was executed. + * + */ + totalAmmStakerFeesUsd: Scalars['BigDecimal']; + /** + * Total volume that has passed through every AMM pool of the Sovryn protocol (in usd) + * + */ + totalAmmVolumeUsd: Scalars['BigDecimal']; + /** + * Total of collateral property in Trade event (in usd). This may be changed to borrowed amount volume, but collateral keeps it consistent with margin trading + * + */ + totalBorrowVolumeUsd: Scalars['BigDecimal']; + /** + * Total fees from Borrowing earned by SOV stakers (in usd) + * + */ + totalBorrowingFeesUsd: Scalars['BigDecimal']; + /** + * Total volume of Borrows closed (in usd) + * + */ + totalCloseWithDepositVolumeUsd: Scalars['BigDecimal']; + /** + * Total position volume closed for Margin Trades (in usd) + * + */ + totalCloseWithSwapVolumeUsd: Scalars['BigDecimal']; + /** + * Total additional collateral deposited for Margin Trades and Borrows (in usd) + * + */ + totalDepositCollateralVolumeUsd: Scalars['BigDecimal']; + /** + * Total volume supplied to Lending Pools over all time (in usd) + * + */ + totalLendVolumeUsd: Scalars['BigDecimal']; + /** + * Total fees from Lending and Unlending earned by SOV stakers (in usd) + * + */ + totalLendingFeesUsd: Scalars['BigDecimal']; + /** + * Total Margin Trade and Borrow position size that has been liquidated (in usd) + * + */ + totalLiquidateVolumeUsd: Scalars['BigDecimal']; + /** + * Total of positionSize property in Trade event (in usd). This includes user collateral and borrowed amount + * + */ + totalMarginTradeVolumeUsd: Scalars['BigDecimal']; + /** + * Total fees from Margin Trading earned by SOV stakers (in usd) + * + */ + totalTradingFeesUsd: Scalars['BigDecimal']; + /** + * Total volume withdrawn from Lending Pool over all time (in usd) + * + */ + totalUnlendVolumeUsd: Scalars['BigDecimal']; + /** + * Total number of users of the protocol. This number is incremented each time a user initiates a transaction with the Protocol. + * Incremented when a user interacts with any contracts tracked by this subgraph. + * Does not include the Zero, Mynt and Perperpetual Swaps users (unless they have also used the core protocol) + * + */ + totalUsers: Scalars['Int']; + /** + * The token currently used as a proxy for USD/BTC prices + * + */ + usdStablecoin: Token; +}; + +/** + * This entity will have only one instance and will be used to store protocol-wide data like list of tokens and number or users. + * The ID of this one entity is "0" + * + */ +export type ProtocolStatsTokensArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +export type ProtocolStats_Filter = { + btcUsdPrice?: InputMaybe; + btcUsdPrice_gt?: InputMaybe; + btcUsdPrice_gte?: InputMaybe; + btcUsdPrice_in?: InputMaybe>; + btcUsdPrice_lt?: InputMaybe; + btcUsdPrice_lte?: InputMaybe; + btcUsdPrice_not?: InputMaybe; + btcUsdPrice_not_in?: InputMaybe>; + currentStakedByVestingSov?: InputMaybe; + currentStakedByVestingSov_gt?: InputMaybe; + currentStakedByVestingSov_gte?: InputMaybe; + currentStakedByVestingSov_in?: InputMaybe>; + currentStakedByVestingSov_lt?: InputMaybe; + currentStakedByVestingSov_lte?: InputMaybe; + currentStakedByVestingSov_not?: InputMaybe; + currentStakedByVestingSov_not_in?: InputMaybe>; + currentVoluntarilyStakedSov?: InputMaybe; + currentVoluntarilyStakedSov_gt?: InputMaybe; + currentVoluntarilyStakedSov_gte?: InputMaybe; + currentVoluntarilyStakedSov_in?: InputMaybe>; + currentVoluntarilyStakedSov_lt?: InputMaybe; + currentVoluntarilyStakedSov_lte?: InputMaybe; + currentVoluntarilyStakedSov_not?: InputMaybe; + currentVoluntarilyStakedSov_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + tokens?: InputMaybe>; + tokens_contains?: InputMaybe>; + tokens_not?: InputMaybe>; + tokens_not_contains?: InputMaybe>; + totalAmmLpFeesUsd?: InputMaybe; + totalAmmLpFeesUsd_gt?: InputMaybe; + totalAmmLpFeesUsd_gte?: InputMaybe; + totalAmmLpFeesUsd_in?: InputMaybe>; + totalAmmLpFeesUsd_lt?: InputMaybe; + totalAmmLpFeesUsd_lte?: InputMaybe; + totalAmmLpFeesUsd_not?: InputMaybe; + totalAmmLpFeesUsd_not_in?: InputMaybe>; + totalAmmStakerFeesUsd?: InputMaybe; + totalAmmStakerFeesUsd_gt?: InputMaybe; + totalAmmStakerFeesUsd_gte?: InputMaybe; + totalAmmStakerFeesUsd_in?: InputMaybe>; + totalAmmStakerFeesUsd_lt?: InputMaybe; + totalAmmStakerFeesUsd_lte?: InputMaybe; + totalAmmStakerFeesUsd_not?: InputMaybe; + totalAmmStakerFeesUsd_not_in?: InputMaybe>; + totalAmmVolumeUsd?: InputMaybe; + totalAmmVolumeUsd_gt?: InputMaybe; + totalAmmVolumeUsd_gte?: InputMaybe; + totalAmmVolumeUsd_in?: InputMaybe>; + totalAmmVolumeUsd_lt?: InputMaybe; + totalAmmVolumeUsd_lte?: InputMaybe; + totalAmmVolumeUsd_not?: InputMaybe; + totalAmmVolumeUsd_not_in?: InputMaybe>; + totalBorrowVolumeUsd?: InputMaybe; + totalBorrowVolumeUsd_gt?: InputMaybe; + totalBorrowVolumeUsd_gte?: InputMaybe; + totalBorrowVolumeUsd_in?: InputMaybe>; + totalBorrowVolumeUsd_lt?: InputMaybe; + totalBorrowVolumeUsd_lte?: InputMaybe; + totalBorrowVolumeUsd_not?: InputMaybe; + totalBorrowVolumeUsd_not_in?: InputMaybe>; + totalBorrowingFeesUsd?: InputMaybe; + totalBorrowingFeesUsd_gt?: InputMaybe; + totalBorrowingFeesUsd_gte?: InputMaybe; + totalBorrowingFeesUsd_in?: InputMaybe>; + totalBorrowingFeesUsd_lt?: InputMaybe; + totalBorrowingFeesUsd_lte?: InputMaybe; + totalBorrowingFeesUsd_not?: InputMaybe; + totalBorrowingFeesUsd_not_in?: InputMaybe>; + totalCloseWithDepositVolumeUsd?: InputMaybe; + totalCloseWithDepositVolumeUsd_gt?: InputMaybe; + totalCloseWithDepositVolumeUsd_gte?: InputMaybe; + totalCloseWithDepositVolumeUsd_in?: InputMaybe>; + totalCloseWithDepositVolumeUsd_lt?: InputMaybe; + totalCloseWithDepositVolumeUsd_lte?: InputMaybe; + totalCloseWithDepositVolumeUsd_not?: InputMaybe; + totalCloseWithDepositVolumeUsd_not_in?: InputMaybe< + Array + >; + totalCloseWithSwapVolumeUsd?: InputMaybe; + totalCloseWithSwapVolumeUsd_gt?: InputMaybe; + totalCloseWithSwapVolumeUsd_gte?: InputMaybe; + totalCloseWithSwapVolumeUsd_in?: InputMaybe>; + totalCloseWithSwapVolumeUsd_lt?: InputMaybe; + totalCloseWithSwapVolumeUsd_lte?: InputMaybe; + totalCloseWithSwapVolumeUsd_not?: InputMaybe; + totalCloseWithSwapVolumeUsd_not_in?: InputMaybe>; + totalDepositCollateralVolumeUsd?: InputMaybe; + totalDepositCollateralVolumeUsd_gt?: InputMaybe; + totalDepositCollateralVolumeUsd_gte?: InputMaybe; + totalDepositCollateralVolumeUsd_in?: InputMaybe>; + totalDepositCollateralVolumeUsd_lt?: InputMaybe; + totalDepositCollateralVolumeUsd_lte?: InputMaybe; + totalDepositCollateralVolumeUsd_not?: InputMaybe; + totalDepositCollateralVolumeUsd_not_in?: InputMaybe< + Array + >; + totalLendVolumeUsd?: InputMaybe; + totalLendVolumeUsd_gt?: InputMaybe; + totalLendVolumeUsd_gte?: InputMaybe; + totalLendVolumeUsd_in?: InputMaybe>; + totalLendVolumeUsd_lt?: InputMaybe; + totalLendVolumeUsd_lte?: InputMaybe; + totalLendVolumeUsd_not?: InputMaybe; + totalLendVolumeUsd_not_in?: InputMaybe>; + totalLendingFeesUsd?: InputMaybe; + totalLendingFeesUsd_gt?: InputMaybe; + totalLendingFeesUsd_gte?: InputMaybe; + totalLendingFeesUsd_in?: InputMaybe>; + totalLendingFeesUsd_lt?: InputMaybe; + totalLendingFeesUsd_lte?: InputMaybe; + totalLendingFeesUsd_not?: InputMaybe; + totalLendingFeesUsd_not_in?: InputMaybe>; + totalLiquidateVolumeUsd?: InputMaybe; + totalLiquidateVolumeUsd_gt?: InputMaybe; + totalLiquidateVolumeUsd_gte?: InputMaybe; + totalLiquidateVolumeUsd_in?: InputMaybe>; + totalLiquidateVolumeUsd_lt?: InputMaybe; + totalLiquidateVolumeUsd_lte?: InputMaybe; + totalLiquidateVolumeUsd_not?: InputMaybe; + totalLiquidateVolumeUsd_not_in?: InputMaybe>; + totalMarginTradeVolumeUsd?: InputMaybe; + totalMarginTradeVolumeUsd_gt?: InputMaybe; + totalMarginTradeVolumeUsd_gte?: InputMaybe; + totalMarginTradeVolumeUsd_in?: InputMaybe>; + totalMarginTradeVolumeUsd_lt?: InputMaybe; + totalMarginTradeVolumeUsd_lte?: InputMaybe; + totalMarginTradeVolumeUsd_not?: InputMaybe; + totalMarginTradeVolumeUsd_not_in?: InputMaybe>; + totalTradingFeesUsd?: InputMaybe; + totalTradingFeesUsd_gt?: InputMaybe; + totalTradingFeesUsd_gte?: InputMaybe; + totalTradingFeesUsd_in?: InputMaybe>; + totalTradingFeesUsd_lt?: InputMaybe; + totalTradingFeesUsd_lte?: InputMaybe; + totalTradingFeesUsd_not?: InputMaybe; + totalTradingFeesUsd_not_in?: InputMaybe>; + totalUnlendVolumeUsd?: InputMaybe; + totalUnlendVolumeUsd_gt?: InputMaybe; + totalUnlendVolumeUsd_gte?: InputMaybe; + totalUnlendVolumeUsd_in?: InputMaybe>; + totalUnlendVolumeUsd_lt?: InputMaybe; + totalUnlendVolumeUsd_lte?: InputMaybe; + totalUnlendVolumeUsd_not?: InputMaybe; + totalUnlendVolumeUsd_not_in?: InputMaybe>; + totalUsers?: InputMaybe; + totalUsers_gt?: InputMaybe; + totalUsers_gte?: InputMaybe; + totalUsers_in?: InputMaybe>; + totalUsers_lt?: InputMaybe; + totalUsers_lte?: InputMaybe; + totalUsers_not?: InputMaybe; + totalUsers_not_in?: InputMaybe>; + usdStablecoin?: InputMaybe; + usdStablecoin_contains?: InputMaybe; + usdStablecoin_ends_with?: InputMaybe; + usdStablecoin_gt?: InputMaybe; + usdStablecoin_gte?: InputMaybe; + usdStablecoin_in?: InputMaybe>; + usdStablecoin_lt?: InputMaybe; + usdStablecoin_lte?: InputMaybe; + usdStablecoin_not?: InputMaybe; + usdStablecoin_not_contains?: InputMaybe; + usdStablecoin_not_ends_with?: InputMaybe; + usdStablecoin_not_in?: InputMaybe>; + usdStablecoin_not_starts_with?: InputMaybe; + usdStablecoin_starts_with?: InputMaybe; +}; + +export enum ProtocolStats_OrderBy { + BtcUsdPrice = 'btcUsdPrice', + CurrentStakedByVestingSov = 'currentStakedByVestingSov', + CurrentVoluntarilyStakedSov = 'currentVoluntarilyStakedSov', + Id = 'id', + Tokens = 'tokens', + TotalAmmLpFeesUsd = 'totalAmmLpFeesUsd', + TotalAmmStakerFeesUsd = 'totalAmmStakerFeesUsd', + TotalAmmVolumeUsd = 'totalAmmVolumeUsd', + TotalBorrowVolumeUsd = 'totalBorrowVolumeUsd', + TotalBorrowingFeesUsd = 'totalBorrowingFeesUsd', + TotalCloseWithDepositVolumeUsd = 'totalCloseWithDepositVolumeUsd', + TotalCloseWithSwapVolumeUsd = 'totalCloseWithSwapVolumeUsd', + TotalDepositCollateralVolumeUsd = 'totalDepositCollateralVolumeUsd', + TotalLendVolumeUsd = 'totalLendVolumeUsd', + TotalLendingFeesUsd = 'totalLendingFeesUsd', + TotalLiquidateVolumeUsd = 'totalLiquidateVolumeUsd', + TotalMarginTradeVolumeUsd = 'totalMarginTradeVolumeUsd', + TotalTradingFeesUsd = 'totalTradingFeesUsd', + TotalUnlendVolumeUsd = 'totalUnlendVolumeUsd', + TotalUsers = 'totalUsers', + UsdStablecoin = 'usdStablecoin', +} + +export type ProtocolWithdrawFee = { + __typename?: 'ProtocolWithdrawFee'; + amount: Scalars['BigDecimal']; + amountUsd: Scalars['BigDecimal']; + emittedBy: Scalars['String']; + feeType: FeeType; + /** + * ID is txHash-logIndex-tokenSymbol + * + */ + id: Scalars['ID']; + timestamp: Scalars['Int']; + token: Token; + transaction: Transaction; +}; + +export type ProtocolWithdrawFee_Filter = { + amount?: InputMaybe; + amountUsd?: InputMaybe; + amountUsd_gt?: InputMaybe; + amountUsd_gte?: InputMaybe; + amountUsd_in?: InputMaybe>; + amountUsd_lt?: InputMaybe; + amountUsd_lte?: InputMaybe; + amountUsd_not?: InputMaybe; + amountUsd_not_in?: InputMaybe>; + amount_gt?: InputMaybe; + amount_gte?: InputMaybe; + amount_in?: InputMaybe>; + amount_lt?: InputMaybe; + amount_lte?: InputMaybe; + amount_not?: InputMaybe; + amount_not_in?: InputMaybe>; + emittedBy?: InputMaybe; + emittedBy_contains?: InputMaybe; + emittedBy_ends_with?: InputMaybe; + emittedBy_gt?: InputMaybe; + emittedBy_gte?: InputMaybe; + emittedBy_in?: InputMaybe>; + emittedBy_lt?: InputMaybe; + emittedBy_lte?: InputMaybe; + emittedBy_not?: InputMaybe; + emittedBy_not_contains?: InputMaybe; + emittedBy_not_ends_with?: InputMaybe; + emittedBy_not_in?: InputMaybe>; + emittedBy_not_starts_with?: InputMaybe; + emittedBy_starts_with?: InputMaybe; + feeType?: InputMaybe; + feeType_in?: InputMaybe>; + feeType_not?: InputMaybe; + feeType_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + timestamp?: InputMaybe; + timestamp_gt?: InputMaybe; + timestamp_gte?: InputMaybe; + timestamp_in?: InputMaybe>; + timestamp_lt?: InputMaybe; + timestamp_lte?: InputMaybe; + timestamp_not?: InputMaybe; + timestamp_not_in?: InputMaybe>; + token?: InputMaybe; + token_contains?: InputMaybe; + token_ends_with?: InputMaybe; + token_gt?: InputMaybe; + token_gte?: InputMaybe; + token_in?: InputMaybe>; + token_lt?: InputMaybe; + token_lte?: InputMaybe; + token_not?: InputMaybe; + token_not_contains?: InputMaybe; + token_not_ends_with?: InputMaybe; + token_not_in?: InputMaybe>; + token_not_starts_with?: InputMaybe; + token_starts_with?: InputMaybe; + transaction?: InputMaybe; + transaction_contains?: InputMaybe; + transaction_ends_with?: InputMaybe; + transaction_gt?: InputMaybe; + transaction_gte?: InputMaybe; + transaction_in?: InputMaybe>; + transaction_lt?: InputMaybe; + transaction_lte?: InputMaybe; + transaction_not?: InputMaybe; + transaction_not_contains?: InputMaybe; + transaction_not_ends_with?: InputMaybe; + transaction_not_in?: InputMaybe>; + transaction_not_starts_with?: InputMaybe; + transaction_starts_with?: InputMaybe; +}; + +export enum ProtocolWithdrawFee_OrderBy { + Amount = 'amount', + AmountUsd = 'amountUsd', + EmittedBy = 'emittedBy', + FeeType = 'feeType', + Id = 'id', + Timestamp = 'timestamp', + Token = 'token', + Transaction = 'transaction', +} + +export type Query = { + __typename?: 'Query'; + /** Access to subgraph metadata */ + _meta?: Maybe<_Meta_>; + bitcoinTransfer?: Maybe; + bitcoinTransferBatchSending?: Maybe; + bitcoinTransferBatchSendings: Array; + bitcoinTransfers: Array; + borrow?: Maybe; + borrows: Array; + bridge?: Maybe; + bridges: Array; + candleStickDay?: Maybe; + candleStickDays: Array; + candleStickFifteenMinute?: Maybe; + candleStickFifteenMinutes: Array; + candleStickFourHour?: Maybe; + candleStickFourHours: Array; + candleStickHour?: Maybe; + candleStickHours: Array; + candleStickMinute?: Maybe; + candleStickMinutes: Array; + closeWithDeposit?: Maybe; + closeWithDeposits: Array; + closeWithSwap?: Maybe; + closeWithSwaps: Array; + conversion?: Maybe; + conversions: Array; + converterRegistries: Array; + converterRegistry?: Maybe; + crossTransfer?: Maybe; + crossTransfers: Array; + deposit?: Maybe; + depositCollateral?: Maybe; + depositCollaterals: Array; + deposits: Array; + fastBTCBridgeStat?: Maybe; + fastBTCBridgeStats: Array; + federation?: Maybe; + federations: Array; + feeSharingTokensTransferred?: Maybe; + feeSharingTokensTransferreds: Array; + icandleStick?: Maybe; + icandleSticks: Array; + lendingHistoryItem?: Maybe; + lendingHistoryItems: Array; + lendingPool?: Maybe; + lendingPools: Array; + liquidate?: Maybe; + liquidates: Array; + liquidityHistoryItem?: Maybe; + liquidityHistoryItems: Array; + liquidityMiningAllocationPoint?: Maybe; + liquidityMiningAllocationPoints: Array; + liquidityMiningGlobal?: Maybe; + liquidityMiningGlobals: Array; + liquidityPool?: Maybe; + liquidityPoolToken?: Maybe; + liquidityPoolTokens: Array; + liquidityPools: Array; + loan?: Maybe; + loans: Array; + marginOrderCanceled?: Maybe; + marginOrderCanceleds: Array; + marginOrderFilled?: Maybe; + marginOrderFilleds: Array; + orderCanceled?: Maybe; + orderCanceleds: Array; + orderCreated?: Maybe; + orderCreateds: Array; + orderFilled?: Maybe; + orderFilleds: Array; + ownerUpdate?: Maybe; + ownerUpdates: Array; + payBorrowingFee?: Maybe; + payBorrowingFees: Array; + payInterestTransfer?: Maybe; + payInterestTransfers: Array; + payLendingFee?: Maybe; + payLendingFees: Array; + payTradingFee?: Maybe; + payTradingFees: Array; + poolToken?: Maybe; + poolTokens: Array; + proposal?: Maybe; + proposals: Array; + protocolStats: Array; + protocolWithdrawFee?: Maybe; + protocolWithdrawFees: Array; + rewardsEarnedHistoryItem?: Maybe; + rewardsEarnedHistoryItems: Array; + rollover?: Maybe; + rollovers: Array; + sideToken?: Maybe; + sideTokens: Array; + smartToken?: Maybe; + smartTokens: Array; + stake?: Maybe; + stakeHistoryItem?: Maybe; + stakeHistoryItems: Array; + stakes: Array; + swap?: Maybe; + swaps: Array; + token?: Maybe; + tokenSmartToken?: Maybe; + tokenSmartTokens: Array; + tokens: Array; + tokensStaked?: Maybe; + tokensStakeds: Array; + trade?: Maybe; + trades: Array; + transaction?: Maybe; + transactions: Array; + user?: Maybe; + userLendingHistories: Array; + userLendingHistory?: Maybe; + userLiquidityHistories: Array; + userLiquidityHistory?: Maybe; + userRewardsEarnedHistories: Array; + userRewardsEarnedHistory?: Maybe; + userStakeHistories: Array; + userStakeHistory?: Maybe; + userTotal?: Maybe; + userTotals: Array; + users: Array; + vestingContract?: Maybe; + vestingContracts: Array; + vestingHistoryItem?: Maybe; + vestingHistoryItems: Array; + voteCast?: Maybe; + voteCasts: Array; + withdrawal?: Maybe; + withdrawals: Array; +}; + +export type Query_MetaArgs = { + block?: InputMaybe; +}; + +export type QueryBitcoinTransferArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryBitcoinTransferBatchSendingArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryBitcoinTransferBatchSendingsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryBitcoinTransfersArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryBorrowArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryBorrowsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryBridgeArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryBridgesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryCandleStickDayArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryCandleStickDaysArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryCandleStickFifteenMinuteArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryCandleStickFifteenMinutesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryCandleStickFourHourArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryCandleStickFourHoursArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryCandleStickHourArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryCandleStickHoursArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryCandleStickMinuteArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryCandleStickMinutesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryCloseWithDepositArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryCloseWithDepositsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryCloseWithSwapArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryCloseWithSwapsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryConversionArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryConversionsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryConverterRegistriesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryConverterRegistryArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryCrossTransferArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryCrossTransfersArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryDepositArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryDepositCollateralArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryDepositCollateralsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryDepositsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryFastBtcBridgeStatArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryFastBtcBridgeStatsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryFederationArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryFederationsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryFeeSharingTokensTransferredArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryFeeSharingTokensTransferredsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryIcandleStickArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryIcandleSticksArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryLendingHistoryItemArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryLendingHistoryItemsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryLendingPoolArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryLendingPoolsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryLiquidateArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryLiquidatesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryLiquidityHistoryItemArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryLiquidityHistoryItemsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryLiquidityMiningAllocationPointArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryLiquidityMiningAllocationPointsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryLiquidityMiningGlobalArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryLiquidityMiningGlobalsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryLiquidityPoolArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryLiquidityPoolTokenArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryLiquidityPoolTokensArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryLiquidityPoolsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryLoanArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryLoansArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryMarginOrderCanceledArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryMarginOrderCanceledsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryMarginOrderFilledArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryMarginOrderFilledsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryOrderCanceledArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryOrderCanceledsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryOrderCreatedArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryOrderCreatedsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryOrderFilledArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryOrderFilledsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryOwnerUpdateArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryOwnerUpdatesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryPayBorrowingFeeArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryPayBorrowingFeesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryPayInterestTransferArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryPayInterestTransfersArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryPayLendingFeeArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryPayLendingFeesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryPayTradingFeeArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryPayTradingFeesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryPoolTokenArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryPoolTokensArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryProposalArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryProposalsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryProtocolStatsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryProtocolWithdrawFeeArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryProtocolWithdrawFeesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryRewardsEarnedHistoryItemArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryRewardsEarnedHistoryItemsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryRolloverArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryRolloversArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QuerySideTokenArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QuerySideTokensArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QuerySmartTokenArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QuerySmartTokensArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryStakeArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryStakeHistoryItemArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryStakeHistoryItemsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryStakesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QuerySwapArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QuerySwapsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryTokenArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryTokenSmartTokenArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryTokenSmartTokensArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryTokensArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryTokensStakedArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryTokensStakedsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryTradeArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryTradesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryTransactionArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryTransactionsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryUserArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryUserLendingHistoriesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryUserLendingHistoryArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryUserLiquidityHistoriesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryUserLiquidityHistoryArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryUserRewardsEarnedHistoriesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryUserRewardsEarnedHistoryArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryUserStakeHistoriesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryUserStakeHistoryArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryUserTotalArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryUserTotalsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryUsersArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryVestingContractArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryVestingContractsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryVestingHistoryItemArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryVestingHistoryItemsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryVoteCastArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryVoteCastsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryWithdrawalArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryWithdrawalsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export enum RewardsEarnedAction { + /** + * SOV reward earned when a user margin trades or one of their trades is rolled over. + * The reward is a percentage of the trading fee, paid in SOV. + * + */ + EarnReward = 'EarnReward', + /** + * When a user claims a liquidity mining reward + * + */ + RewardClaimed = 'RewardClaimed', + /** + * When SOV is staked by a Rewards vesting contract (eg after it has been claimed by the user) + * + */ + RewardSovStaked = 'RewardSovStaked', + /** + * When a SOV Staker withdraws their liquid SOV reward for staking + * + */ + StakingRewardWithdrawn = 'StakingRewardWithdrawn', + /** + * When an SOV Staker withdraws their share of the fees earned by the Protocol + * + */ + UserFeeWithdrawn = 'UserFeeWithdrawn', +} + +export type RewardsEarnedHistoryItem = { + __typename?: 'RewardsEarnedHistoryItem'; + action: RewardsEarnedAction; + amount: Scalars['BigDecimal']; + id: Scalars['ID']; + timestamp: Scalars['Int']; + token?: Maybe; + transaction: Transaction; + user: UserRewardsEarnedHistory; +}; + +export type RewardsEarnedHistoryItem_Filter = { + action?: InputMaybe; + action_in?: InputMaybe>; + action_not?: InputMaybe; + action_not_in?: InputMaybe>; + amount?: InputMaybe; + amount_gt?: InputMaybe; + amount_gte?: InputMaybe; + amount_in?: InputMaybe>; + amount_lt?: InputMaybe; + amount_lte?: InputMaybe; + amount_not?: InputMaybe; + amount_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + timestamp?: InputMaybe; + timestamp_gt?: InputMaybe; + timestamp_gte?: InputMaybe; + timestamp_in?: InputMaybe>; + timestamp_lt?: InputMaybe; + timestamp_lte?: InputMaybe; + timestamp_not?: InputMaybe; + timestamp_not_in?: InputMaybe>; + token?: InputMaybe; + token_contains?: InputMaybe; + token_ends_with?: InputMaybe; + token_gt?: InputMaybe; + token_gte?: InputMaybe; + token_in?: InputMaybe>; + token_lt?: InputMaybe; + token_lte?: InputMaybe; + token_not?: InputMaybe; + token_not_contains?: InputMaybe; + token_not_ends_with?: InputMaybe; + token_not_in?: InputMaybe>; + token_not_starts_with?: InputMaybe; + token_starts_with?: InputMaybe; + transaction?: InputMaybe; + transaction_contains?: InputMaybe; + transaction_ends_with?: InputMaybe; + transaction_gt?: InputMaybe; + transaction_gte?: InputMaybe; + transaction_in?: InputMaybe>; + transaction_lt?: InputMaybe; + transaction_lte?: InputMaybe; + transaction_not?: InputMaybe; + transaction_not_contains?: InputMaybe; + transaction_not_ends_with?: InputMaybe; + transaction_not_in?: InputMaybe>; + transaction_not_starts_with?: InputMaybe; + transaction_starts_with?: InputMaybe; + user?: InputMaybe; + user_contains?: InputMaybe; + user_ends_with?: InputMaybe; + user_gt?: InputMaybe; + user_gte?: InputMaybe; + user_in?: InputMaybe>; + user_lt?: InputMaybe; + user_lte?: InputMaybe; + user_not?: InputMaybe; + user_not_contains?: InputMaybe; + user_not_ends_with?: InputMaybe; + user_not_in?: InputMaybe>; + user_not_starts_with?: InputMaybe; + user_starts_with?: InputMaybe; +}; + +export enum RewardsEarnedHistoryItem_OrderBy { + Action = 'action', + Amount = 'amount', + Id = 'id', + Timestamp = 'timestamp', + Token = 'token', + Transaction = 'transaction', + User = 'user', +} + +/** + * Granular event data for the Loan entity. Emitted when a Loan is rolled over. + * This is when the next installment of interest is paid from the collateral, and the trading fee is paid + * This transaction is initiated by the Sovryn node, which earns a reward for doing this + * + */ +export type Rollover = { + __typename?: 'Rollover'; + collateral: Scalars['BigDecimal']; + emittedBy: Scalars['Bytes']; + endTimestamp: Scalars['Int']; + id: Scalars['ID']; + lender: Scalars['Bytes']; + loanId: Loan; + principal: Scalars['BigDecimal']; + /** + * The reward received by the User for performing this function + * + */ + reward: Scalars['BigDecimal']; + /** + * The User running the Sovryn node that made this transaction + * + */ + rewardReceiver: User; + timestamp: Scalars['Int']; + transaction: Transaction; + user: User; +}; + +export type Rollover_Filter = { + collateral?: InputMaybe; + collateral_gt?: InputMaybe; + collateral_gte?: InputMaybe; + collateral_in?: InputMaybe>; + collateral_lt?: InputMaybe; + collateral_lte?: InputMaybe; + collateral_not?: InputMaybe; + collateral_not_in?: InputMaybe>; + emittedBy?: InputMaybe; + emittedBy_contains?: InputMaybe; + emittedBy_in?: InputMaybe>; + emittedBy_not?: InputMaybe; + emittedBy_not_contains?: InputMaybe; + emittedBy_not_in?: InputMaybe>; + endTimestamp?: InputMaybe; + endTimestamp_gt?: InputMaybe; + endTimestamp_gte?: InputMaybe; + endTimestamp_in?: InputMaybe>; + endTimestamp_lt?: InputMaybe; + endTimestamp_lte?: InputMaybe; + endTimestamp_not?: InputMaybe; + endTimestamp_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + lender?: InputMaybe; + lender_contains?: InputMaybe; + lender_in?: InputMaybe>; + lender_not?: InputMaybe; + lender_not_contains?: InputMaybe; + lender_not_in?: InputMaybe>; + loanId?: InputMaybe; + loanId_contains?: InputMaybe; + loanId_ends_with?: InputMaybe; + loanId_gt?: InputMaybe; + loanId_gte?: InputMaybe; + loanId_in?: InputMaybe>; + loanId_lt?: InputMaybe; + loanId_lte?: InputMaybe; + loanId_not?: InputMaybe; + loanId_not_contains?: InputMaybe; + loanId_not_ends_with?: InputMaybe; + loanId_not_in?: InputMaybe>; + loanId_not_starts_with?: InputMaybe; + loanId_starts_with?: InputMaybe; + principal?: InputMaybe; + principal_gt?: InputMaybe; + principal_gte?: InputMaybe; + principal_in?: InputMaybe>; + principal_lt?: InputMaybe; + principal_lte?: InputMaybe; + principal_not?: InputMaybe; + principal_not_in?: InputMaybe>; + reward?: InputMaybe; + rewardReceiver?: InputMaybe; + rewardReceiver_contains?: InputMaybe; + rewardReceiver_ends_with?: InputMaybe; + rewardReceiver_gt?: InputMaybe; + rewardReceiver_gte?: InputMaybe; + rewardReceiver_in?: InputMaybe>; + rewardReceiver_lt?: InputMaybe; + rewardReceiver_lte?: InputMaybe; + rewardReceiver_not?: InputMaybe; + rewardReceiver_not_contains?: InputMaybe; + rewardReceiver_not_ends_with?: InputMaybe; + rewardReceiver_not_in?: InputMaybe>; + rewardReceiver_not_starts_with?: InputMaybe; + rewardReceiver_starts_with?: InputMaybe; + reward_gt?: InputMaybe; + reward_gte?: InputMaybe; + reward_in?: InputMaybe>; + reward_lt?: InputMaybe; + reward_lte?: InputMaybe; + reward_not?: InputMaybe; + reward_not_in?: InputMaybe>; + timestamp?: InputMaybe; + timestamp_gt?: InputMaybe; + timestamp_gte?: InputMaybe; + timestamp_in?: InputMaybe>; + timestamp_lt?: InputMaybe; + timestamp_lte?: InputMaybe; + timestamp_not?: InputMaybe; + timestamp_not_in?: InputMaybe>; + transaction?: InputMaybe; + transaction_contains?: InputMaybe; + transaction_ends_with?: InputMaybe; + transaction_gt?: InputMaybe; + transaction_gte?: InputMaybe; + transaction_in?: InputMaybe>; + transaction_lt?: InputMaybe; + transaction_lte?: InputMaybe; + transaction_not?: InputMaybe; + transaction_not_contains?: InputMaybe; + transaction_not_ends_with?: InputMaybe; + transaction_not_in?: InputMaybe>; + transaction_not_starts_with?: InputMaybe; + transaction_starts_with?: InputMaybe; + user?: InputMaybe; + user_contains?: InputMaybe; + user_ends_with?: InputMaybe; + user_gt?: InputMaybe; + user_gte?: InputMaybe; + user_in?: InputMaybe>; + user_lt?: InputMaybe; + user_lte?: InputMaybe; + user_not?: InputMaybe; + user_not_contains?: InputMaybe; + user_not_ends_with?: InputMaybe; + user_not_in?: InputMaybe>; + user_not_starts_with?: InputMaybe; + user_starts_with?: InputMaybe; +}; + +export enum Rollover_OrderBy { + Collateral = 'collateral', + EmittedBy = 'emittedBy', + EndTimestamp = 'endTimestamp', + Id = 'id', + Lender = 'lender', + LoanId = 'loanId', + Principal = 'principal', + Reward = 'reward', + RewardReceiver = 'rewardReceiver', + Timestamp = 'timestamp', + Transaction = 'transaction', + User = 'user', +} + +/** + * SideToken entity - for every token that is passed across the bridge and does not exist on sovryn a side token is created + * + */ +export type SideToken = { + __typename?: 'SideToken'; + /** + * CreatedAtTx - the creation transaction of the side token + * + */ + createdAtTx: Transaction; + /** + * Granularity - this is the ERC777 granularity value for the side token + * + */ + granularity: Scalars['BigInt']; + /** + * Id - the side token is stored twice, once with the original token address as id and another with the side token address + * + */ + id: Scalars['ID']; + /** + * newSymbol - the new symbol given to the side token + * + */ + newSymbol: Scalars['String']; + /** + * OriginalTokenAddress - the original token address of the side token + * + */ + originalTokenAddress: Scalars['Bytes']; + /** + * SideTokenAddress - the token address on RSK of the side token + * + */ + sideTokenAddress: Scalars['Bytes']; + /** + * UpdatedAtTx - The side token was last updated at this transaction + * + */ + updatedAtTx: Transaction; +}; + +export type SideToken_Filter = { + createdAtTx?: InputMaybe; + createdAtTx_contains?: InputMaybe; + createdAtTx_ends_with?: InputMaybe; + createdAtTx_gt?: InputMaybe; + createdAtTx_gte?: InputMaybe; + createdAtTx_in?: InputMaybe>; + createdAtTx_lt?: InputMaybe; + createdAtTx_lte?: InputMaybe; + createdAtTx_not?: InputMaybe; + createdAtTx_not_contains?: InputMaybe; + createdAtTx_not_ends_with?: InputMaybe; + createdAtTx_not_in?: InputMaybe>; + createdAtTx_not_starts_with?: InputMaybe; + createdAtTx_starts_with?: InputMaybe; + granularity?: InputMaybe; + granularity_gt?: InputMaybe; + granularity_gte?: InputMaybe; + granularity_in?: InputMaybe>; + granularity_lt?: InputMaybe; + granularity_lte?: InputMaybe; + granularity_not?: InputMaybe; + granularity_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + newSymbol?: InputMaybe; + newSymbol_contains?: InputMaybe; + newSymbol_ends_with?: InputMaybe; + newSymbol_gt?: InputMaybe; + newSymbol_gte?: InputMaybe; + newSymbol_in?: InputMaybe>; + newSymbol_lt?: InputMaybe; + newSymbol_lte?: InputMaybe; + newSymbol_not?: InputMaybe; + newSymbol_not_contains?: InputMaybe; + newSymbol_not_ends_with?: InputMaybe; + newSymbol_not_in?: InputMaybe>; + newSymbol_not_starts_with?: InputMaybe; + newSymbol_starts_with?: InputMaybe; + originalTokenAddress?: InputMaybe; + originalTokenAddress_contains?: InputMaybe; + originalTokenAddress_in?: InputMaybe>; + originalTokenAddress_not?: InputMaybe; + originalTokenAddress_not_contains?: InputMaybe; + originalTokenAddress_not_in?: InputMaybe>; + sideTokenAddress?: InputMaybe; + sideTokenAddress_contains?: InputMaybe; + sideTokenAddress_in?: InputMaybe>; + sideTokenAddress_not?: InputMaybe; + sideTokenAddress_not_contains?: InputMaybe; + sideTokenAddress_not_in?: InputMaybe>; + updatedAtTx?: InputMaybe; + updatedAtTx_contains?: InputMaybe; + updatedAtTx_ends_with?: InputMaybe; + updatedAtTx_gt?: InputMaybe; + updatedAtTx_gte?: InputMaybe; + updatedAtTx_in?: InputMaybe>; + updatedAtTx_lt?: InputMaybe; + updatedAtTx_lte?: InputMaybe; + updatedAtTx_not?: InputMaybe; + updatedAtTx_not_contains?: InputMaybe; + updatedAtTx_not_ends_with?: InputMaybe; + updatedAtTx_not_in?: InputMaybe>; + updatedAtTx_not_starts_with?: InputMaybe; + updatedAtTx_starts_with?: InputMaybe; +}; + +export enum SideToken_OrderBy { + CreatedAtTx = 'createdAtTx', + Granularity = 'granularity', + Id = 'id', + NewSymbol = 'newSymbol', + OriginalTokenAddress = 'originalTokenAddress', + SideTokenAddress = 'sideTokenAddress', + UpdatedAtTx = 'updatedAtTx', +} + +/** + * The smart token represents a single reserve asset on a single pool. + * For V1 pools, there is 1 smart token representing both reserve assets. For V2 pools, there are 2 smart tokens, one for each reserve asset. + * + */ +export type SmartToken = { + __typename?: 'SmartToken'; + addedToRegistryBlockNumber?: Maybe; + addedToRegistryTransactionHash?: Maybe; + /** + * connectorTokens are the entity that holds the many-to-many relationship between the underlying token asset and the smart token + * + */ + connectorTokens?: Maybe>; + /** + * The converter registry this smart token belongs to. Can be null if token is removed from th registry + * + */ + currentConverterRegistry?: Maybe; + /** + * Number of decimal places for this token + * + */ + decimals?: Maybe; + /** + * ID is smart token contract address + * + */ + id: Scalars['ID']; + /** + * The AMM pool this smart token "belongs" to + * + */ + liquidityPool: LiquidityPool; + /** + * Name of the smart token (set on the contract) + * + */ + name?: Maybe; + /** + * The contract/account that owns the SmartToken contract. This will typically be the converter registry + * + */ + owner: Scalars['String']; + /** + * smartTokenType can be Relay or Liquid + * + */ + smartTokenType?: Maybe; + /** + * Symbol for the smart token asset (set on the contract) + * + */ + symbol?: Maybe; +}; + +/** + * The smart token represents a single reserve asset on a single pool. + * For V1 pools, there is 1 smart token representing both reserve assets. For V2 pools, there are 2 smart tokens, one for each reserve asset. + * + */ +export type SmartTokenConnectorTokensArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +export type SmartToken_Filter = { + addedToRegistryBlockNumber?: InputMaybe; + addedToRegistryBlockNumber_gt?: InputMaybe; + addedToRegistryBlockNumber_gte?: InputMaybe; + addedToRegistryBlockNumber_in?: InputMaybe>; + addedToRegistryBlockNumber_lt?: InputMaybe; + addedToRegistryBlockNumber_lte?: InputMaybe; + addedToRegistryBlockNumber_not?: InputMaybe; + addedToRegistryBlockNumber_not_in?: InputMaybe>; + addedToRegistryTransactionHash?: InputMaybe; + addedToRegistryTransactionHash_contains?: InputMaybe; + addedToRegistryTransactionHash_in?: InputMaybe>; + addedToRegistryTransactionHash_not?: InputMaybe; + addedToRegistryTransactionHash_not_contains?: InputMaybe; + addedToRegistryTransactionHash_not_in?: InputMaybe>; + currentConverterRegistry?: InputMaybe; + currentConverterRegistry_contains?: InputMaybe; + currentConverterRegistry_ends_with?: InputMaybe; + currentConverterRegistry_gt?: InputMaybe; + currentConverterRegistry_gte?: InputMaybe; + currentConverterRegistry_in?: InputMaybe>; + currentConverterRegistry_lt?: InputMaybe; + currentConverterRegistry_lte?: InputMaybe; + currentConverterRegistry_not?: InputMaybe; + currentConverterRegistry_not_contains?: InputMaybe; + currentConverterRegistry_not_ends_with?: InputMaybe; + currentConverterRegistry_not_in?: InputMaybe>; + currentConverterRegistry_not_starts_with?: InputMaybe; + currentConverterRegistry_starts_with?: InputMaybe; + decimals?: InputMaybe; + decimals_gt?: InputMaybe; + decimals_gte?: InputMaybe; + decimals_in?: InputMaybe>; + decimals_lt?: InputMaybe; + decimals_lte?: InputMaybe; + decimals_not?: InputMaybe; + decimals_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + name?: InputMaybe; + name_contains?: InputMaybe; + name_ends_with?: InputMaybe; + name_gt?: InputMaybe; + name_gte?: InputMaybe; + name_in?: InputMaybe>; + name_lt?: InputMaybe; + name_lte?: InputMaybe; + name_not?: InputMaybe; + name_not_contains?: InputMaybe; + name_not_ends_with?: InputMaybe; + name_not_in?: InputMaybe>; + name_not_starts_with?: InputMaybe; + name_starts_with?: InputMaybe; + owner?: InputMaybe; + owner_contains?: InputMaybe; + owner_ends_with?: InputMaybe; + owner_gt?: InputMaybe; + owner_gte?: InputMaybe; + owner_in?: InputMaybe>; + owner_lt?: InputMaybe; + owner_lte?: InputMaybe; + owner_not?: InputMaybe; + owner_not_contains?: InputMaybe; + owner_not_ends_with?: InputMaybe; + owner_not_in?: InputMaybe>; + owner_not_starts_with?: InputMaybe; + owner_starts_with?: InputMaybe; + smartTokenType?: InputMaybe; + smartTokenType_contains?: InputMaybe; + smartTokenType_ends_with?: InputMaybe; + smartTokenType_gt?: InputMaybe; + smartTokenType_gte?: InputMaybe; + smartTokenType_in?: InputMaybe>; + smartTokenType_lt?: InputMaybe; + smartTokenType_lte?: InputMaybe; + smartTokenType_not?: InputMaybe; + smartTokenType_not_contains?: InputMaybe; + smartTokenType_not_ends_with?: InputMaybe; + smartTokenType_not_in?: InputMaybe>; + smartTokenType_not_starts_with?: InputMaybe; + smartTokenType_starts_with?: InputMaybe; + symbol?: InputMaybe; + symbol_contains?: InputMaybe; + symbol_ends_with?: InputMaybe; + symbol_gt?: InputMaybe; + symbol_gte?: InputMaybe; + symbol_in?: InputMaybe>; + symbol_lt?: InputMaybe; + symbol_lte?: InputMaybe; + symbol_not?: InputMaybe; + symbol_not_contains?: InputMaybe; + symbol_not_ends_with?: InputMaybe; + symbol_not_in?: InputMaybe>; + symbol_not_starts_with?: InputMaybe; + symbol_starts_with?: InputMaybe; +}; + +export enum SmartToken_OrderBy { + AddedToRegistryBlockNumber = 'addedToRegistryBlockNumber', + AddedToRegistryTransactionHash = 'addedToRegistryTransactionHash', + ConnectorTokens = 'connectorTokens', + CurrentConverterRegistry = 'currentConverterRegistry', + Decimals = 'decimals', + Id = 'id', + LiquidityPool = 'liquidityPool', + Name = 'name', + Owner = 'owner', + SmartTokenType = 'smartTokenType', + Symbol = 'symbol', +} + +export type Stake = { + __typename?: 'Stake'; + amount?: Maybe; + delegatedAmount: Scalars['BigDecimal']; + id: Scalars['ID']; + lockedUntil?: Maybe; + user?: Maybe; + vestingAmount: Scalars['BigDecimal']; +}; + +export enum StakeHistoryAction { + /** + * When a user delegates voting power to another user. This can also be for voting power that the user has through a vesting contract. + * + */ + Delegate = 'Delegate', + /** + * Extending an existing stake. The amount of the stake remains the same, but the lockedUntil date increases. + * + */ + ExtendStake = 'ExtendStake', + /** + * When a user withdraws their share of the Protocol fees that is shared amongst stakers + * + */ + FeeWithdrawn = 'FeeWithdrawn', + /** + * Increasing the amount of an existing stake. The lockedUntil date of this stake remains the same, but amount increases. + * + */ + IncreaseStake = 'IncreaseStake', + /** + * Voluntarily staking SOV (ie not staked through a vesting contract) + * + */ + Stake = 'Stake', + /** + * Unstake is early unstaking, when a user withdraws staked SOV before the lockedUntil date and incurs a slashing penalty. + * + */ + Unstake = 'Unstake', + /** + * WithdrawStaked is when a user withdraws SOV from the staking contract after the unlock date, when the funds are no longer staked or locked + * + */ + WithdrawStaked = 'WithdrawStaked', +} + +/** + * This entity is the granular history of user actions related to voluntary staking + * + */ +export type StakeHistoryItem = { + __typename?: 'StakeHistoryItem'; + action: StakeHistoryAction; + amount?: Maybe; + id: Scalars['ID']; + lockedUntil?: Maybe; + timestamp: Scalars['Int']; + token?: Maybe; + transaction: Transaction; + user: UserStakeHistory; +}; + +export type StakeHistoryItem_Filter = { + action?: InputMaybe; + action_in?: InputMaybe>; + action_not?: InputMaybe; + action_not_in?: InputMaybe>; + amount?: InputMaybe; + amount_gt?: InputMaybe; + amount_gte?: InputMaybe; + amount_in?: InputMaybe>; + amount_lt?: InputMaybe; + amount_lte?: InputMaybe; + amount_not?: InputMaybe; + amount_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + lockedUntil?: InputMaybe; + lockedUntil_gt?: InputMaybe; + lockedUntil_gte?: InputMaybe; + lockedUntil_in?: InputMaybe>; + lockedUntil_lt?: InputMaybe; + lockedUntil_lte?: InputMaybe; + lockedUntil_not?: InputMaybe; + lockedUntil_not_in?: InputMaybe>; + timestamp?: InputMaybe; + timestamp_gt?: InputMaybe; + timestamp_gte?: InputMaybe; + timestamp_in?: InputMaybe>; + timestamp_lt?: InputMaybe; + timestamp_lte?: InputMaybe; + timestamp_not?: InputMaybe; + timestamp_not_in?: InputMaybe>; + token?: InputMaybe; + token_contains?: InputMaybe; + token_ends_with?: InputMaybe; + token_gt?: InputMaybe; + token_gte?: InputMaybe; + token_in?: InputMaybe>; + token_lt?: InputMaybe; + token_lte?: InputMaybe; + token_not?: InputMaybe; + token_not_contains?: InputMaybe; + token_not_ends_with?: InputMaybe; + token_not_in?: InputMaybe>; + token_not_starts_with?: InputMaybe; + token_starts_with?: InputMaybe; + transaction?: InputMaybe; + transaction_contains?: InputMaybe; + transaction_ends_with?: InputMaybe; + transaction_gt?: InputMaybe; + transaction_gte?: InputMaybe; + transaction_in?: InputMaybe>; + transaction_lt?: InputMaybe; + transaction_lte?: InputMaybe; + transaction_not?: InputMaybe; + transaction_not_contains?: InputMaybe; + transaction_not_ends_with?: InputMaybe; + transaction_not_in?: InputMaybe>; + transaction_not_starts_with?: InputMaybe; + transaction_starts_with?: InputMaybe; + user?: InputMaybe; + user_contains?: InputMaybe; + user_ends_with?: InputMaybe; + user_gt?: InputMaybe; + user_gte?: InputMaybe; + user_in?: InputMaybe>; + user_lt?: InputMaybe; + user_lte?: InputMaybe; + user_not?: InputMaybe; + user_not_contains?: InputMaybe; + user_not_ends_with?: InputMaybe; + user_not_in?: InputMaybe>; + user_not_starts_with?: InputMaybe; + user_starts_with?: InputMaybe; +}; + +export enum StakeHistoryItem_OrderBy { + Action = 'action', + Amount = 'amount', + Id = 'id', + LockedUntil = 'lockedUntil', + Timestamp = 'timestamp', + Token = 'token', + Transaction = 'transaction', + User = 'user', +} + +export type Stake_Filter = { + amount?: InputMaybe; + amount_gt?: InputMaybe; + amount_gte?: InputMaybe; + amount_in?: InputMaybe>; + amount_lt?: InputMaybe; + amount_lte?: InputMaybe; + amount_not?: InputMaybe; + amount_not_in?: InputMaybe>; + delegatedAmount?: InputMaybe; + delegatedAmount_gt?: InputMaybe; + delegatedAmount_gte?: InputMaybe; + delegatedAmount_in?: InputMaybe>; + delegatedAmount_lt?: InputMaybe; + delegatedAmount_lte?: InputMaybe; + delegatedAmount_not?: InputMaybe; + delegatedAmount_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + lockedUntil?: InputMaybe; + lockedUntil_gt?: InputMaybe; + lockedUntil_gte?: InputMaybe; + lockedUntil_in?: InputMaybe>; + lockedUntil_lt?: InputMaybe; + lockedUntil_lte?: InputMaybe; + lockedUntil_not?: InputMaybe; + lockedUntil_not_in?: InputMaybe>; + user?: InputMaybe; + user_contains?: InputMaybe; + user_ends_with?: InputMaybe; + user_gt?: InputMaybe; + user_gte?: InputMaybe; + user_in?: InputMaybe>; + user_lt?: InputMaybe; + user_lte?: InputMaybe; + user_not?: InputMaybe; + user_not_contains?: InputMaybe; + user_not_ends_with?: InputMaybe; + user_not_in?: InputMaybe>; + user_not_starts_with?: InputMaybe; + user_starts_with?: InputMaybe; + vestingAmount?: InputMaybe; + vestingAmount_gt?: InputMaybe; + vestingAmount_gte?: InputMaybe; + vestingAmount_in?: InputMaybe>; + vestingAmount_lt?: InputMaybe; + vestingAmount_lte?: InputMaybe; + vestingAmount_not?: InputMaybe; + vestingAmount_not_in?: InputMaybe>; +}; + +export enum Stake_OrderBy { + Amount = 'amount', + DelegatedAmount = 'delegatedAmount', + Id = 'id', + LockedUntil = 'lockedUntil', + User = 'user', + VestingAmount = 'vestingAmount', +} + +export type Subscription = { + __typename?: 'Subscription'; + /** Access to subgraph metadata */ + _meta?: Maybe<_Meta_>; + bitcoinTransfer?: Maybe; + bitcoinTransferBatchSending?: Maybe; + bitcoinTransferBatchSendings: Array; + bitcoinTransfers: Array; + borrow?: Maybe; + borrows: Array; + bridge?: Maybe; + bridges: Array; + candleStickDay?: Maybe; + candleStickDays: Array; + candleStickFifteenMinute?: Maybe; + candleStickFifteenMinutes: Array; + candleStickFourHour?: Maybe; + candleStickFourHours: Array; + candleStickHour?: Maybe; + candleStickHours: Array; + candleStickMinute?: Maybe; + candleStickMinutes: Array; + closeWithDeposit?: Maybe; + closeWithDeposits: Array; + closeWithSwap?: Maybe; + closeWithSwaps: Array; + conversion?: Maybe; + conversions: Array; + converterRegistries: Array; + converterRegistry?: Maybe; + crossTransfer?: Maybe; + crossTransfers: Array; + deposit?: Maybe; + depositCollateral?: Maybe; + depositCollaterals: Array; + deposits: Array; + fastBTCBridgeStat?: Maybe; + fastBTCBridgeStats: Array; + federation?: Maybe; + federations: Array; + feeSharingTokensTransferred?: Maybe; + feeSharingTokensTransferreds: Array; + icandleStick?: Maybe; + icandleSticks: Array; + lendingHistoryItem?: Maybe; + lendingHistoryItems: Array; + lendingPool?: Maybe; + lendingPools: Array; + liquidate?: Maybe; + liquidates: Array; + liquidityHistoryItem?: Maybe; + liquidityHistoryItems: Array; + liquidityMiningAllocationPoint?: Maybe; + liquidityMiningAllocationPoints: Array; + liquidityMiningGlobal?: Maybe; + liquidityMiningGlobals: Array; + liquidityPool?: Maybe; + liquidityPoolToken?: Maybe; + liquidityPoolTokens: Array; + liquidityPools: Array; + loan?: Maybe; + loans: Array; + marginOrderCanceled?: Maybe; + marginOrderCanceleds: Array; + marginOrderFilled?: Maybe; + marginOrderFilleds: Array; + orderCanceled?: Maybe; + orderCanceleds: Array; + orderCreated?: Maybe; + orderCreateds: Array; + orderFilled?: Maybe; + orderFilleds: Array; + ownerUpdate?: Maybe; + ownerUpdates: Array; + payBorrowingFee?: Maybe; + payBorrowingFees: Array; + payInterestTransfer?: Maybe; + payInterestTransfers: Array; + payLendingFee?: Maybe; + payLendingFees: Array; + payTradingFee?: Maybe; + payTradingFees: Array; + poolToken?: Maybe; + poolTokens: Array; + proposal?: Maybe; + proposals: Array; + protocolStats: Array; + protocolWithdrawFee?: Maybe; + protocolWithdrawFees: Array; + rewardsEarnedHistoryItem?: Maybe; + rewardsEarnedHistoryItems: Array; + rollover?: Maybe; + rollovers: Array; + sideToken?: Maybe; + sideTokens: Array; + smartToken?: Maybe; + smartTokens: Array; + stake?: Maybe; + stakeHistoryItem?: Maybe; + stakeHistoryItems: Array; + stakes: Array; + swap?: Maybe; + swaps: Array; + token?: Maybe; + tokenSmartToken?: Maybe; + tokenSmartTokens: Array; + tokens: Array; + tokensStaked?: Maybe; + tokensStakeds: Array; + trade?: Maybe; + trades: Array; + transaction?: Maybe; + transactions: Array; + user?: Maybe; + userLendingHistories: Array; + userLendingHistory?: Maybe; + userLiquidityHistories: Array; + userLiquidityHistory?: Maybe; + userRewardsEarnedHistories: Array; + userRewardsEarnedHistory?: Maybe; + userStakeHistories: Array; + userStakeHistory?: Maybe; + userTotal?: Maybe; + userTotals: Array; + users: Array; + vestingContract?: Maybe; + vestingContracts: Array; + vestingHistoryItem?: Maybe; + vestingHistoryItems: Array; + voteCast?: Maybe; + voteCasts: Array; + withdrawal?: Maybe; + withdrawals: Array; +}; + +export type Subscription_MetaArgs = { + block?: InputMaybe; +}; + +export type SubscriptionBitcoinTransferArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionBitcoinTransferBatchSendingArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionBitcoinTransferBatchSendingsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionBitcoinTransfersArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionBorrowArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionBorrowsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionBridgeArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionBridgesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionCandleStickDayArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionCandleStickDaysArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionCandleStickFifteenMinuteArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionCandleStickFifteenMinutesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionCandleStickFourHourArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionCandleStickFourHoursArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionCandleStickHourArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionCandleStickHoursArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionCandleStickMinuteArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionCandleStickMinutesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionCloseWithDepositArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionCloseWithDepositsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionCloseWithSwapArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionCloseWithSwapsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionConversionArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionConversionsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionConverterRegistriesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionConverterRegistryArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionCrossTransferArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionCrossTransfersArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionDepositArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionDepositCollateralArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionDepositCollateralsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionDepositsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionFastBtcBridgeStatArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionFastBtcBridgeStatsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionFederationArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionFederationsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionFeeSharingTokensTransferredArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionFeeSharingTokensTransferredsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionIcandleStickArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionIcandleSticksArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionLendingHistoryItemArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionLendingHistoryItemsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionLendingPoolArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionLendingPoolsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionLiquidateArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionLiquidatesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionLiquidityHistoryItemArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionLiquidityHistoryItemsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionLiquidityMiningAllocationPointArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionLiquidityMiningAllocationPointsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionLiquidityMiningGlobalArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionLiquidityMiningGlobalsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionLiquidityPoolArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionLiquidityPoolTokenArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionLiquidityPoolTokensArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionLiquidityPoolsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionLoanArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionLoansArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionMarginOrderCanceledArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionMarginOrderCanceledsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionMarginOrderFilledArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionMarginOrderFilledsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionOrderCanceledArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionOrderCanceledsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionOrderCreatedArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionOrderCreatedsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionOrderFilledArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionOrderFilledsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionOwnerUpdateArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionOwnerUpdatesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionPayBorrowingFeeArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionPayBorrowingFeesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionPayInterestTransferArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionPayInterestTransfersArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionPayLendingFeeArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionPayLendingFeesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionPayTradingFeeArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionPayTradingFeesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionPoolTokenArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionPoolTokensArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionProposalArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionProposalsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionProtocolStatsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionProtocolWithdrawFeeArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionProtocolWithdrawFeesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionRewardsEarnedHistoryItemArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionRewardsEarnedHistoryItemsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionRolloverArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionRolloversArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionSideTokenArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionSideTokensArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionSmartTokenArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionSmartTokensArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionStakeArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionStakeHistoryItemArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionStakeHistoryItemsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionStakesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionSwapArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionSwapsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionTokenArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionTokenSmartTokenArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionTokenSmartTokensArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionTokensArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionTokensStakedArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionTokensStakedsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionTradeArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionTradesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionTransactionArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionTransactionsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionUserArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionUserLendingHistoriesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionUserLendingHistoryArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionUserLiquidityHistoriesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionUserLiquidityHistoryArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionUserRewardsEarnedHistoriesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionUserRewardsEarnedHistoryArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionUserStakeHistoriesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionUserStakeHistoryArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionUserTotalArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionUserTotalsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionUsersArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionVestingContractArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionVestingContractsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionVestingHistoryItemArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionVestingHistoryItemsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionVoteCastArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionVoteCastsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionWithdrawalArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionWithdrawalsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +/** + * The Swap entity is an aggregated entity of the individual Conversion events in a transaction. + * For example, if a User swaps XUSD to SOV, there will be 2 Conversion events through 2 AMMs (XUSD-BTC and BTC-SOV) in one transaction. These two Conversions are aggregated here. + * + */ +export type Swap = { + __typename?: 'Swap'; + fromAmount: Scalars['BigDecimal']; + /** + * Token the user converted + * + */ + fromToken: Token; + /** + * Transaction hash of this swap + * + */ + id: Scalars['ID']; + /** + * Not in use - this property is always false. It is kept for backwards compatibility and will be deprecated + * + */ + isLimit: Scalars['Boolean']; + /** + * The number of AMM Conversions involved in this swap (this is primarily for debugging purposes) + * + */ + numConversions: Scalars['Int']; + /** + * Rate is calculated as toAmount / fromAmount + * + */ + rate: Scalars['BigDecimal']; + swapType?: Maybe; + timestamp: Scalars['Int']; + toAmount: Scalars['BigDecimal']; + /** + * Token the user received + * + */ + toToken: Token; + transaction: Transaction; + /** + * If this swap was initiated by a contract (for example as part of a Margin Trade), User will be null. + * Otherwise, this is the user that initiated the transaction. + * + */ + user?: Maybe; +}; + +export enum SwapType { + Limit = 'Limit', + Market = 'Market', + Other = 'Other', +} + +export type Swap_Filter = { + fromAmount?: InputMaybe; + fromAmount_gt?: InputMaybe; + fromAmount_gte?: InputMaybe; + fromAmount_in?: InputMaybe>; + fromAmount_lt?: InputMaybe; + fromAmount_lte?: InputMaybe; + fromAmount_not?: InputMaybe; + fromAmount_not_in?: InputMaybe>; + fromToken?: InputMaybe; + fromToken_contains?: InputMaybe; + fromToken_ends_with?: InputMaybe; + fromToken_gt?: InputMaybe; + fromToken_gte?: InputMaybe; + fromToken_in?: InputMaybe>; + fromToken_lt?: InputMaybe; + fromToken_lte?: InputMaybe; + fromToken_not?: InputMaybe; + fromToken_not_contains?: InputMaybe; + fromToken_not_ends_with?: InputMaybe; + fromToken_not_in?: InputMaybe>; + fromToken_not_starts_with?: InputMaybe; + fromToken_starts_with?: InputMaybe; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + isLimit?: InputMaybe; + isLimit_in?: InputMaybe>; + isLimit_not?: InputMaybe; + isLimit_not_in?: InputMaybe>; + numConversions?: InputMaybe; + numConversions_gt?: InputMaybe; + numConversions_gte?: InputMaybe; + numConversions_in?: InputMaybe>; + numConversions_lt?: InputMaybe; + numConversions_lte?: InputMaybe; + numConversions_not?: InputMaybe; + numConversions_not_in?: InputMaybe>; + rate?: InputMaybe; + rate_gt?: InputMaybe; + rate_gte?: InputMaybe; + rate_in?: InputMaybe>; + rate_lt?: InputMaybe; + rate_lte?: InputMaybe; + rate_not?: InputMaybe; + rate_not_in?: InputMaybe>; + swapType?: InputMaybe; + swapType_in?: InputMaybe>; + swapType_not?: InputMaybe; + swapType_not_in?: InputMaybe>; + timestamp?: InputMaybe; + timestamp_gt?: InputMaybe; + timestamp_gte?: InputMaybe; + timestamp_in?: InputMaybe>; + timestamp_lt?: InputMaybe; + timestamp_lte?: InputMaybe; + timestamp_not?: InputMaybe; + timestamp_not_in?: InputMaybe>; + toAmount?: InputMaybe; + toAmount_gt?: InputMaybe; + toAmount_gte?: InputMaybe; + toAmount_in?: InputMaybe>; + toAmount_lt?: InputMaybe; + toAmount_lte?: InputMaybe; + toAmount_not?: InputMaybe; + toAmount_not_in?: InputMaybe>; + toToken?: InputMaybe; + toToken_contains?: InputMaybe; + toToken_ends_with?: InputMaybe; + toToken_gt?: InputMaybe; + toToken_gte?: InputMaybe; + toToken_in?: InputMaybe>; + toToken_lt?: InputMaybe; + toToken_lte?: InputMaybe; + toToken_not?: InputMaybe; + toToken_not_contains?: InputMaybe; + toToken_not_ends_with?: InputMaybe; + toToken_not_in?: InputMaybe>; + toToken_not_starts_with?: InputMaybe; + toToken_starts_with?: InputMaybe; + transaction?: InputMaybe; + transaction_contains?: InputMaybe; + transaction_ends_with?: InputMaybe; + transaction_gt?: InputMaybe; + transaction_gte?: InputMaybe; + transaction_in?: InputMaybe>; + transaction_lt?: InputMaybe; + transaction_lte?: InputMaybe; + transaction_not?: InputMaybe; + transaction_not_contains?: InputMaybe; + transaction_not_ends_with?: InputMaybe; + transaction_not_in?: InputMaybe>; + transaction_not_starts_with?: InputMaybe; + transaction_starts_with?: InputMaybe; + user?: InputMaybe; + user_contains?: InputMaybe; + user_ends_with?: InputMaybe; + user_gt?: InputMaybe; + user_gte?: InputMaybe; + user_in?: InputMaybe>; + user_lt?: InputMaybe; + user_lte?: InputMaybe; + user_not?: InputMaybe; + user_not_contains?: InputMaybe; + user_not_ends_with?: InputMaybe; + user_not_in?: InputMaybe>; + user_not_starts_with?: InputMaybe; + user_starts_with?: InputMaybe; +}; + +export enum Swap_OrderBy { + FromAmount = 'fromAmount', + FromToken = 'fromToken', + Id = 'id', + IsLimit = 'isLimit', + NumConversions = 'numConversions', + Rate = 'rate', + SwapType = 'swapType', + Timestamp = 'timestamp', + ToAmount = 'toAmount', + ToToken = 'toToken', + Transaction = 'transaction', + User = 'user', +} + +/** + * This entity represents an ERC20 token traded on the Sovryn Protocol + * + */ +export type Token = { + __typename?: 'Token'; + /** + * The total volume of this token that has been traded through the protocol quoted in BTC + * + */ + btcVolume: Scalars['BigDecimal']; + /** + * CrossTransfers: cross transfers list (currently only relevant to SOV) + * + */ + crossTransfers?: Maybe>; + currentConverterRegistry?: Maybe; + /** + * Number of decimal places used in the smart contract for this token + * + */ + decimals?: Maybe; + /** + * Does this token have an AMM pool with rBTC as the other reserve asset? + * + */ + hasBtcPool?: Maybe; + /** + * Does this token have an AMM pool with the protocol stablecoin as the other reserve asset? + * + */ + hasStablecoinPool?: Maybe; + /** + * The ID is the contract address of the token on RSK + * + */ + id: Scalars['ID']; + /** + * lastPriceBtc is the last traded price of this token in BTC + * + */ + lastPriceBtc: Scalars['BigDecimal']; + /** + * lastPriceUsd is the last traded price of this token in USD + * + */ + lastPriceUsd: Scalars['BigDecimal']; + /** + * The addresses of the LiquidityPools where this token is a reserve asset + * + */ + liquidityPools?: Maybe>; + name?: Maybe; + /** + * Internal use only - previous BTC price used for candleSticks + * + */ + prevPriceBtc: Scalars['BigDecimal']; + /** + * Internal use only - previous BTC price used for candleSticks + * + */ + prevPriceUsd: Scalars['BigDecimal']; + /** + * The smart tokens that have this token as an underlying asset + * + */ + smartTokens?: Maybe>; + symbol?: Maybe; + /** + * The total volume of this token that has been traded through the protocol + * + */ + tokenVolume: Scalars['BigDecimal']; + /** + * The total volume of this token that has been traded through the protocol quoted in USD + * + */ + usdVolume: Scalars['BigDecimal']; + version?: Maybe; +}; + +/** + * This entity represents an ERC20 token traded on the Sovryn Protocol + * + */ +export type TokenCrossTransfersArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +/** + * This entity represents an ERC20 token traded on the Sovryn Protocol + * + */ +export type TokenLiquidityPoolsArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +/** + * This entity represents an ERC20 token traded on the Sovryn Protocol + * + */ +export type TokenSmartTokensArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +/** + * This entity is to store a many-to-many relationship between tokens and smart tokens + * + */ +export type TokenSmartToken = { + __typename?: 'TokenSmartToken'; + /** + * ID is token address + smart token address + * + */ + id: Scalars['ID']; + smartToken: SmartToken; + /** + * token is the underlying asset represented by the smartToken + * + */ + token: Token; +}; + +export type TokenSmartToken_Filter = { + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + smartToken?: InputMaybe; + smartToken_contains?: InputMaybe; + smartToken_ends_with?: InputMaybe; + smartToken_gt?: InputMaybe; + smartToken_gte?: InputMaybe; + smartToken_in?: InputMaybe>; + smartToken_lt?: InputMaybe; + smartToken_lte?: InputMaybe; + smartToken_not?: InputMaybe; + smartToken_not_contains?: InputMaybe; + smartToken_not_ends_with?: InputMaybe; + smartToken_not_in?: InputMaybe>; + smartToken_not_starts_with?: InputMaybe; + smartToken_starts_with?: InputMaybe; + token?: InputMaybe; + token_contains?: InputMaybe; + token_ends_with?: InputMaybe; + token_gt?: InputMaybe; + token_gte?: InputMaybe; + token_in?: InputMaybe>; + token_lt?: InputMaybe; + token_lte?: InputMaybe; + token_not?: InputMaybe; + token_not_contains?: InputMaybe; + token_not_ends_with?: InputMaybe; + token_not_in?: InputMaybe>; + token_not_starts_with?: InputMaybe; + token_starts_with?: InputMaybe; +}; + +export enum TokenSmartToken_OrderBy { + Id = 'id', + SmartToken = 'smartToken', + Token = 'token', +} + +export type Token_Filter = { + btcVolume?: InputMaybe; + btcVolume_gt?: InputMaybe; + btcVolume_gte?: InputMaybe; + btcVolume_in?: InputMaybe>; + btcVolume_lt?: InputMaybe; + btcVolume_lte?: InputMaybe; + btcVolume_not?: InputMaybe; + btcVolume_not_in?: InputMaybe>; + currentConverterRegistry?: InputMaybe; + currentConverterRegistry_contains?: InputMaybe; + currentConverterRegistry_ends_with?: InputMaybe; + currentConverterRegistry_gt?: InputMaybe; + currentConverterRegistry_gte?: InputMaybe; + currentConverterRegistry_in?: InputMaybe>; + currentConverterRegistry_lt?: InputMaybe; + currentConverterRegistry_lte?: InputMaybe; + currentConverterRegistry_not?: InputMaybe; + currentConverterRegistry_not_contains?: InputMaybe; + currentConverterRegistry_not_ends_with?: InputMaybe; + currentConverterRegistry_not_in?: InputMaybe>; + currentConverterRegistry_not_starts_with?: InputMaybe; + currentConverterRegistry_starts_with?: InputMaybe; + decimals?: InputMaybe; + decimals_gt?: InputMaybe; + decimals_gte?: InputMaybe; + decimals_in?: InputMaybe>; + decimals_lt?: InputMaybe; + decimals_lte?: InputMaybe; + decimals_not?: InputMaybe; + decimals_not_in?: InputMaybe>; + hasBtcPool?: InputMaybe; + hasBtcPool_in?: InputMaybe>; + hasBtcPool_not?: InputMaybe; + hasBtcPool_not_in?: InputMaybe>; + hasStablecoinPool?: InputMaybe; + hasStablecoinPool_in?: InputMaybe>; + hasStablecoinPool_not?: InputMaybe; + hasStablecoinPool_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + lastPriceBtc?: InputMaybe; + lastPriceBtc_gt?: InputMaybe; + lastPriceBtc_gte?: InputMaybe; + lastPriceBtc_in?: InputMaybe>; + lastPriceBtc_lt?: InputMaybe; + lastPriceBtc_lte?: InputMaybe; + lastPriceBtc_not?: InputMaybe; + lastPriceBtc_not_in?: InputMaybe>; + lastPriceUsd?: InputMaybe; + lastPriceUsd_gt?: InputMaybe; + lastPriceUsd_gte?: InputMaybe; + lastPriceUsd_in?: InputMaybe>; + lastPriceUsd_lt?: InputMaybe; + lastPriceUsd_lte?: InputMaybe; + lastPriceUsd_not?: InputMaybe; + lastPriceUsd_not_in?: InputMaybe>; + name?: InputMaybe; + name_contains?: InputMaybe; + name_ends_with?: InputMaybe; + name_gt?: InputMaybe; + name_gte?: InputMaybe; + name_in?: InputMaybe>; + name_lt?: InputMaybe; + name_lte?: InputMaybe; + name_not?: InputMaybe; + name_not_contains?: InputMaybe; + name_not_ends_with?: InputMaybe; + name_not_in?: InputMaybe>; + name_not_starts_with?: InputMaybe; + name_starts_with?: InputMaybe; + prevPriceBtc?: InputMaybe; + prevPriceBtc_gt?: InputMaybe; + prevPriceBtc_gte?: InputMaybe; + prevPriceBtc_in?: InputMaybe>; + prevPriceBtc_lt?: InputMaybe; + prevPriceBtc_lte?: InputMaybe; + prevPriceBtc_not?: InputMaybe; + prevPriceBtc_not_in?: InputMaybe>; + prevPriceUsd?: InputMaybe; + prevPriceUsd_gt?: InputMaybe; + prevPriceUsd_gte?: InputMaybe; + prevPriceUsd_in?: InputMaybe>; + prevPriceUsd_lt?: InputMaybe; + prevPriceUsd_lte?: InputMaybe; + prevPriceUsd_not?: InputMaybe; + prevPriceUsd_not_in?: InputMaybe>; + symbol?: InputMaybe; + symbol_contains?: InputMaybe; + symbol_ends_with?: InputMaybe; + symbol_gt?: InputMaybe; + symbol_gte?: InputMaybe; + symbol_in?: InputMaybe>; + symbol_lt?: InputMaybe; + symbol_lte?: InputMaybe; + symbol_not?: InputMaybe; + symbol_not_contains?: InputMaybe; + symbol_not_ends_with?: InputMaybe; + symbol_not_in?: InputMaybe>; + symbol_not_starts_with?: InputMaybe; + symbol_starts_with?: InputMaybe; + tokenVolume?: InputMaybe; + tokenVolume_gt?: InputMaybe; + tokenVolume_gte?: InputMaybe; + tokenVolume_in?: InputMaybe>; + tokenVolume_lt?: InputMaybe; + tokenVolume_lte?: InputMaybe; + tokenVolume_not?: InputMaybe; + tokenVolume_not_in?: InputMaybe>; + usdVolume?: InputMaybe; + usdVolume_gt?: InputMaybe; + usdVolume_gte?: InputMaybe; + usdVolume_in?: InputMaybe>; + usdVolume_lt?: InputMaybe; + usdVolume_lte?: InputMaybe; + usdVolume_not?: InputMaybe; + usdVolume_not_in?: InputMaybe>; + version?: InputMaybe; + version_gt?: InputMaybe; + version_gte?: InputMaybe; + version_in?: InputMaybe>; + version_lt?: InputMaybe; + version_lte?: InputMaybe; + version_not?: InputMaybe; + version_not_in?: InputMaybe>; +}; + +export enum Token_OrderBy { + BtcVolume = 'btcVolume', + CrossTransfers = 'crossTransfers', + CurrentConverterRegistry = 'currentConverterRegistry', + Decimals = 'decimals', + HasBtcPool = 'hasBtcPool', + HasStablecoinPool = 'hasStablecoinPool', + Id = 'id', + LastPriceBtc = 'lastPriceBtc', + LastPriceUsd = 'lastPriceUsd', + LiquidityPools = 'liquidityPools', + Name = 'name', + PrevPriceBtc = 'prevPriceBtc', + PrevPriceUsd = 'prevPriceUsd', + SmartTokens = 'smartTokens', + Symbol = 'symbol', + TokenVolume = 'tokenVolume', + UsdVolume = 'usdVolume', + Version = 'version', +} + +/** + * This is an event emitted from the staking contract when tokens are staked, either by a user or by a vesting contract + * If tokens are staked by a vesting contract, there may be multiple tokens staked event per transaction (eg if tokensa are vested over 10 months, there would be 10 TokensStaked events each with a different lockedUntil date) + * We have improvements planned to better represent staking on our subgraph. + * + */ +export type TokensStaked = { + __typename?: 'TokensStaked'; + /** + * The amount of SOV staked in this event (as mentioned above, there can be multiple TokensStaked events per transaction) + * + */ + amount: Scalars['BigDecimal']; + emittedBy: Scalars['Bytes']; + /** + * ID is transaction hash + log index + * + */ + id: Scalars['ID']; + /** + * If this is false, the tokens were staked by a vesting contract, and not voluntarily by a user + * + */ + isUserStaked: Scalars['Boolean']; + /** + * The date when these tokens will unlock + * A user/vesting contract can have multiple stakes with different lockedUntil dates + * + */ + lockedUntil: Scalars['Int']; + /** + * The staker is either a user address or a vesting contract address + * + */ + staker: Scalars['Bytes']; + timestamp: Scalars['Int']; + /** + * The total amount staked for this specific user until this specific lockedUntil date + * + */ + totalStaked: Scalars['BigDecimal']; + transaction: Transaction; + /** + * If tokens were staked by a vesting contract, user property will be null + * + */ + user?: Maybe; +}; + +export type TokensStaked_Filter = { + amount?: InputMaybe; + amount_gt?: InputMaybe; + amount_gte?: InputMaybe; + amount_in?: InputMaybe>; + amount_lt?: InputMaybe; + amount_lte?: InputMaybe; + amount_not?: InputMaybe; + amount_not_in?: InputMaybe>; + emittedBy?: InputMaybe; + emittedBy_contains?: InputMaybe; + emittedBy_in?: InputMaybe>; + emittedBy_not?: InputMaybe; + emittedBy_not_contains?: InputMaybe; + emittedBy_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + isUserStaked?: InputMaybe; + isUserStaked_in?: InputMaybe>; + isUserStaked_not?: InputMaybe; + isUserStaked_not_in?: InputMaybe>; + lockedUntil?: InputMaybe; + lockedUntil_gt?: InputMaybe; + lockedUntil_gte?: InputMaybe; + lockedUntil_in?: InputMaybe>; + lockedUntil_lt?: InputMaybe; + lockedUntil_lte?: InputMaybe; + lockedUntil_not?: InputMaybe; + lockedUntil_not_in?: InputMaybe>; + staker?: InputMaybe; + staker_contains?: InputMaybe; + staker_in?: InputMaybe>; + staker_not?: InputMaybe; + staker_not_contains?: InputMaybe; + staker_not_in?: InputMaybe>; + timestamp?: InputMaybe; + timestamp_gt?: InputMaybe; + timestamp_gte?: InputMaybe; + timestamp_in?: InputMaybe>; + timestamp_lt?: InputMaybe; + timestamp_lte?: InputMaybe; + timestamp_not?: InputMaybe; + timestamp_not_in?: InputMaybe>; + totalStaked?: InputMaybe; + totalStaked_gt?: InputMaybe; + totalStaked_gte?: InputMaybe; + totalStaked_in?: InputMaybe>; + totalStaked_lt?: InputMaybe; + totalStaked_lte?: InputMaybe; + totalStaked_not?: InputMaybe; + totalStaked_not_in?: InputMaybe>; + transaction?: InputMaybe; + transaction_contains?: InputMaybe; + transaction_ends_with?: InputMaybe; + transaction_gt?: InputMaybe; + transaction_gte?: InputMaybe; + transaction_in?: InputMaybe>; + transaction_lt?: InputMaybe; + transaction_lte?: InputMaybe; + transaction_not?: InputMaybe; + transaction_not_contains?: InputMaybe; + transaction_not_ends_with?: InputMaybe; + transaction_not_in?: InputMaybe>; + transaction_not_starts_with?: InputMaybe; + transaction_starts_with?: InputMaybe; + user?: InputMaybe; + user_contains?: InputMaybe; + user_ends_with?: InputMaybe; + user_gt?: InputMaybe; + user_gte?: InputMaybe; + user_in?: InputMaybe>; + user_lt?: InputMaybe; + user_lte?: InputMaybe; + user_not?: InputMaybe; + user_not_contains?: InputMaybe; + user_not_ends_with?: InputMaybe; + user_not_in?: InputMaybe>; + user_not_starts_with?: InputMaybe; + user_starts_with?: InputMaybe; +}; + +export enum TokensStaked_OrderBy { + Amount = 'amount', + EmittedBy = 'emittedBy', + Id = 'id', + IsUserStaked = 'isUserStaked', + LockedUntil = 'lockedUntil', + Staker = 'staker', + Timestamp = 'timestamp', + TotalStaked = 'totalStaked', + Transaction = 'transaction', + User = 'user', +} + +/** + * Granular event data for the Loan entity. Emitted when a user opens a Margin Trade + * + */ +export type Trade = { + __typename?: 'Trade'; + borrowedAmount: Scalars['BigDecimal']; + collateralToken: Token; + currentLeverage: Scalars['BigDecimal']; + emittedBy: Scalars['Bytes']; + entryLeverage: Scalars['BigDecimal']; + entryPrice: Scalars['BigDecimal']; + id: Scalars['ID']; + interestRate: Scalars['BigDecimal']; + lender: Scalars['Bytes']; + loanId: Loan; + loanToken: Token; + positionSize: Scalars['BigDecimal']; + settlementDate: Scalars['Int']; + timestamp: Scalars['Int']; + transaction: Transaction; + user: User; +}; + +export type Trade_Filter = { + borrowedAmount?: InputMaybe; + borrowedAmount_gt?: InputMaybe; + borrowedAmount_gte?: InputMaybe; + borrowedAmount_in?: InputMaybe>; + borrowedAmount_lt?: InputMaybe; + borrowedAmount_lte?: InputMaybe; + borrowedAmount_not?: InputMaybe; + borrowedAmount_not_in?: InputMaybe>; + collateralToken?: InputMaybe; + collateralToken_contains?: InputMaybe; + collateralToken_ends_with?: InputMaybe; + collateralToken_gt?: InputMaybe; + collateralToken_gte?: InputMaybe; + collateralToken_in?: InputMaybe>; + collateralToken_lt?: InputMaybe; + collateralToken_lte?: InputMaybe; + collateralToken_not?: InputMaybe; + collateralToken_not_contains?: InputMaybe; + collateralToken_not_ends_with?: InputMaybe; + collateralToken_not_in?: InputMaybe>; + collateralToken_not_starts_with?: InputMaybe; + collateralToken_starts_with?: InputMaybe; + currentLeverage?: InputMaybe; + currentLeverage_gt?: InputMaybe; + currentLeverage_gte?: InputMaybe; + currentLeverage_in?: InputMaybe>; + currentLeverage_lt?: InputMaybe; + currentLeverage_lte?: InputMaybe; + currentLeverage_not?: InputMaybe; + currentLeverage_not_in?: InputMaybe>; + emittedBy?: InputMaybe; + emittedBy_contains?: InputMaybe; + emittedBy_in?: InputMaybe>; + emittedBy_not?: InputMaybe; + emittedBy_not_contains?: InputMaybe; + emittedBy_not_in?: InputMaybe>; + entryLeverage?: InputMaybe; + entryLeverage_gt?: InputMaybe; + entryLeverage_gte?: InputMaybe; + entryLeverage_in?: InputMaybe>; + entryLeverage_lt?: InputMaybe; + entryLeverage_lte?: InputMaybe; + entryLeverage_not?: InputMaybe; + entryLeverage_not_in?: InputMaybe>; + entryPrice?: InputMaybe; + entryPrice_gt?: InputMaybe; + entryPrice_gte?: InputMaybe; + entryPrice_in?: InputMaybe>; + entryPrice_lt?: InputMaybe; + entryPrice_lte?: InputMaybe; + entryPrice_not?: InputMaybe; + entryPrice_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + interestRate?: InputMaybe; + interestRate_gt?: InputMaybe; + interestRate_gte?: InputMaybe; + interestRate_in?: InputMaybe>; + interestRate_lt?: InputMaybe; + interestRate_lte?: InputMaybe; + interestRate_not?: InputMaybe; + interestRate_not_in?: InputMaybe>; + lender?: InputMaybe; + lender_contains?: InputMaybe; + lender_in?: InputMaybe>; + lender_not?: InputMaybe; + lender_not_contains?: InputMaybe; + lender_not_in?: InputMaybe>; + loanId?: InputMaybe; + loanId_contains?: InputMaybe; + loanId_ends_with?: InputMaybe; + loanId_gt?: InputMaybe; + loanId_gte?: InputMaybe; + loanId_in?: InputMaybe>; + loanId_lt?: InputMaybe; + loanId_lte?: InputMaybe; + loanId_not?: InputMaybe; + loanId_not_contains?: InputMaybe; + loanId_not_ends_with?: InputMaybe; + loanId_not_in?: InputMaybe>; + loanId_not_starts_with?: InputMaybe; + loanId_starts_with?: InputMaybe; + loanToken?: InputMaybe; + loanToken_contains?: InputMaybe; + loanToken_ends_with?: InputMaybe; + loanToken_gt?: InputMaybe; + loanToken_gte?: InputMaybe; + loanToken_in?: InputMaybe>; + loanToken_lt?: InputMaybe; + loanToken_lte?: InputMaybe; + loanToken_not?: InputMaybe; + loanToken_not_contains?: InputMaybe; + loanToken_not_ends_with?: InputMaybe; + loanToken_not_in?: InputMaybe>; + loanToken_not_starts_with?: InputMaybe; + loanToken_starts_with?: InputMaybe; + positionSize?: InputMaybe; + positionSize_gt?: InputMaybe; + positionSize_gte?: InputMaybe; + positionSize_in?: InputMaybe>; + positionSize_lt?: InputMaybe; + positionSize_lte?: InputMaybe; + positionSize_not?: InputMaybe; + positionSize_not_in?: InputMaybe>; + settlementDate?: InputMaybe; + settlementDate_gt?: InputMaybe; + settlementDate_gte?: InputMaybe; + settlementDate_in?: InputMaybe>; + settlementDate_lt?: InputMaybe; + settlementDate_lte?: InputMaybe; + settlementDate_not?: InputMaybe; + settlementDate_not_in?: InputMaybe>; + timestamp?: InputMaybe; + timestamp_gt?: InputMaybe; + timestamp_gte?: InputMaybe; + timestamp_in?: InputMaybe>; + timestamp_lt?: InputMaybe; + timestamp_lte?: InputMaybe; + timestamp_not?: InputMaybe; + timestamp_not_in?: InputMaybe>; + transaction?: InputMaybe; + transaction_contains?: InputMaybe; + transaction_ends_with?: InputMaybe; + transaction_gt?: InputMaybe; + transaction_gte?: InputMaybe; + transaction_in?: InputMaybe>; + transaction_lt?: InputMaybe; + transaction_lte?: InputMaybe; + transaction_not?: InputMaybe; + transaction_not_contains?: InputMaybe; + transaction_not_ends_with?: InputMaybe; + transaction_not_in?: InputMaybe>; + transaction_not_starts_with?: InputMaybe; + transaction_starts_with?: InputMaybe; + user?: InputMaybe; + user_contains?: InputMaybe; + user_ends_with?: InputMaybe; + user_gt?: InputMaybe; + user_gte?: InputMaybe; + user_in?: InputMaybe>; + user_lt?: InputMaybe; + user_lte?: InputMaybe; + user_not?: InputMaybe; + user_not_contains?: InputMaybe; + user_not_ends_with?: InputMaybe; + user_not_in?: InputMaybe>; + user_not_starts_with?: InputMaybe; + user_starts_with?: InputMaybe; +}; + +export enum Trade_OrderBy { + BorrowedAmount = 'borrowedAmount', + CollateralToken = 'collateralToken', + CurrentLeverage = 'currentLeverage', + EmittedBy = 'emittedBy', + EntryLeverage = 'entryLeverage', + EntryPrice = 'entryPrice', + Id = 'id', + InterestRate = 'interestRate', + Lender = 'lender', + LoanId = 'loanId', + LoanToken = 'loanToken', + PositionSize = 'positionSize', + SettlementDate = 'settlementDate', + Timestamp = 'timestamp', + Transaction = 'transaction', + User = 'user', +} + +/** + * Transaction data, including hash and timestamp + * + */ +export type Transaction = { + __typename?: 'Transaction'; + blockNumber: Scalars['Int']; + /** + * The account that initiated this transaction. This must be an Account and not a Contract. + * + */ + from: User; + functionSignature: Scalars['String']; + gasLimit: Scalars['BigInt']; + gasPrice: Scalars['BigInt']; + /** + * ID is transaction hash + * + */ + id: Scalars['ID']; + /** + * The index of this transaction within the block + * + */ + index: Scalars['Int']; + /** + * The timestamp the transaction was confirmed + * + */ + timestamp: Scalars['Int']; + /** + * The contract the user interacted with + * + */ + to?: Maybe; + value: Scalars['BigInt']; +}; + +export type Transaction_Filter = { + blockNumber?: InputMaybe; + blockNumber_gt?: InputMaybe; + blockNumber_gte?: InputMaybe; + blockNumber_in?: InputMaybe>; + blockNumber_lt?: InputMaybe; + blockNumber_lte?: InputMaybe; + blockNumber_not?: InputMaybe; + blockNumber_not_in?: InputMaybe>; + from?: InputMaybe; + from_contains?: InputMaybe; + from_ends_with?: InputMaybe; + from_gt?: InputMaybe; + from_gte?: InputMaybe; + from_in?: InputMaybe>; + from_lt?: InputMaybe; + from_lte?: InputMaybe; + from_not?: InputMaybe; + from_not_contains?: InputMaybe; + from_not_ends_with?: InputMaybe; + from_not_in?: InputMaybe>; + from_not_starts_with?: InputMaybe; + from_starts_with?: InputMaybe; + functionSignature?: InputMaybe; + functionSignature_contains?: InputMaybe; + functionSignature_ends_with?: InputMaybe; + functionSignature_gt?: InputMaybe; + functionSignature_gte?: InputMaybe; + functionSignature_in?: InputMaybe>; + functionSignature_lt?: InputMaybe; + functionSignature_lte?: InputMaybe; + functionSignature_not?: InputMaybe; + functionSignature_not_contains?: InputMaybe; + functionSignature_not_ends_with?: InputMaybe; + functionSignature_not_in?: InputMaybe>; + functionSignature_not_starts_with?: InputMaybe; + functionSignature_starts_with?: InputMaybe; + gasLimit?: InputMaybe; + gasLimit_gt?: InputMaybe; + gasLimit_gte?: InputMaybe; + gasLimit_in?: InputMaybe>; + gasLimit_lt?: InputMaybe; + gasLimit_lte?: InputMaybe; + gasLimit_not?: InputMaybe; + gasLimit_not_in?: InputMaybe>; + gasPrice?: InputMaybe; + gasPrice_gt?: InputMaybe; + gasPrice_gte?: InputMaybe; + gasPrice_in?: InputMaybe>; + gasPrice_lt?: InputMaybe; + gasPrice_lte?: InputMaybe; + gasPrice_not?: InputMaybe; + gasPrice_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + index?: InputMaybe; + index_gt?: InputMaybe; + index_gte?: InputMaybe; + index_in?: InputMaybe>; + index_lt?: InputMaybe; + index_lte?: InputMaybe; + index_not?: InputMaybe; + index_not_in?: InputMaybe>; + timestamp?: InputMaybe; + timestamp_gt?: InputMaybe; + timestamp_gte?: InputMaybe; + timestamp_in?: InputMaybe>; + timestamp_lt?: InputMaybe; + timestamp_lte?: InputMaybe; + timestamp_not?: InputMaybe; + timestamp_not_in?: InputMaybe>; + to?: InputMaybe; + to_contains?: InputMaybe; + to_in?: InputMaybe>; + to_not?: InputMaybe; + to_not_contains?: InputMaybe; + to_not_in?: InputMaybe>; + value?: InputMaybe; + value_gt?: InputMaybe; + value_gte?: InputMaybe; + value_in?: InputMaybe>; + value_lt?: InputMaybe; + value_lte?: InputMaybe; + value_not?: InputMaybe; + value_not_in?: InputMaybe>; +}; + +export enum Transaction_OrderBy { + BlockNumber = 'blockNumber', + From = 'from', + FunctionSignature = 'functionSignature', + GasLimit = 'gasLimit', + GasPrice = 'gasPrice', + Id = 'id', + Index = 'index', + Timestamp = 'timestamp', + To = 'to', + Value = 'value', +} + +/** + * This entity contains all user-specific data displayed on the dapp, including all user actions + * + */ +export type User = { + __typename?: 'User'; + /** + * FastBTCBridge transfers from BTC to RSK + * + */ + bitcoinTransfers?: Maybe>; + /** + * An array of Borrow events + * + */ + borrows?: Maybe>; + /** + * Timestamp of User's first interaction with the protocol (first transaction) + * + */ + createdAtTimestamp: Scalars['Int']; + /** + * EVM Bridge transfers + * + */ + crossChainTransfer?: Maybe>; + /** + * Stakes the user owns, including stakes from Vesting Contracts + * + */ + currentStakes?: Maybe>; + fastBTCBridgeStats?: Maybe>; + /** + * ID is user wallet address + * + */ + id: Scalars['ID']; + /** + * The lending history of a User, separated into lending pools. Explore the UserLendingHistory entity for more granular events. + * + */ + lendingHistory?: Maybe>; + /** + * An array of Liquidation events linked to this user + * + */ + liquidations?: Maybe>; + /** + * An array of all LiquidityAdded and LiquidityRemoved events + * + */ + liquidityHistory?: Maybe>; + /** + * All loans taken out by this user, including for margin trading and for borrowing + * + */ + loans?: Maybe>; + /** + * The Rewards history of one user. This includes actions like EarnReward, RewardSovDeposited, and RewardSovStaked. + * Explore the UserRewardsEarnedHistory entity for more granular events + * + */ + rewardsEarnedHistory?: Maybe>; + /** + * The SOV Staking history of a user. This includes withdrawing vested tokens. Explore the UserStakeHistory entity for more granular events. + * + */ + stakeHistory?: Maybe>; + /** + * Swaps here refers to only user-triggered swaps. For example, a swap that is part of a margin trade would not be included. + * Swaps involving multiple amm pools are stored as a single swap, comprised of multiple Conversion events + * + */ + swaps?: Maybe>; + /** + * An array of margin trade Trade events + * + */ + trades?: Maybe>; + /** + * Transactions initiated by this user + * + */ + transactions?: Maybe>; + /** + * See UserTotals entity for full documentation + * + */ + userTotals?: Maybe; + /** + * Vesting contracts owned by User, labelled by type + * + */ + vestingContracts?: Maybe>; + /** + * Voting history of User + * + */ + votes?: Maybe>; +}; + +/** + * This entity contains all user-specific data displayed on the dapp, including all user actions + * + */ +export type UserBitcoinTransfersArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +/** + * This entity contains all user-specific data displayed on the dapp, including all user actions + * + */ +export type UserBorrowsArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +/** + * This entity contains all user-specific data displayed on the dapp, including all user actions + * + */ +export type UserCrossChainTransferArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +/** + * This entity contains all user-specific data displayed on the dapp, including all user actions + * + */ +export type UserCurrentStakesArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +/** + * This entity contains all user-specific data displayed on the dapp, including all user actions + * + */ +export type UserFastBtcBridgeStatsArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +/** + * This entity contains all user-specific data displayed on the dapp, including all user actions + * + */ +export type UserLendingHistoryArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +/** + * This entity contains all user-specific data displayed on the dapp, including all user actions + * + */ +export type UserLiquidationsArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +/** + * This entity contains all user-specific data displayed on the dapp, including all user actions + * + */ +export type UserLiquidityHistoryArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +/** + * This entity contains all user-specific data displayed on the dapp, including all user actions + * + */ +export type UserLoansArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +/** + * This entity contains all user-specific data displayed on the dapp, including all user actions + * + */ +export type UserRewardsEarnedHistoryArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +/** + * This entity contains all user-specific data displayed on the dapp, including all user actions + * + */ +export type UserStakeHistoryArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +/** + * This entity contains all user-specific data displayed on the dapp, including all user actions + * + */ +export type UserSwapsArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +/** + * This entity contains all user-specific data displayed on the dapp, including all user actions + * + */ +export type UserTradesArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +/** + * This entity contains all user-specific data displayed on the dapp, including all user actions + * + */ +export type UserTransactionsArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +/** + * This entity contains all user-specific data displayed on the dapp, including all user actions + * + */ +export type UserVestingContractsArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +/** + * This entity contains all user-specific data displayed on the dapp, including all user actions + * + */ +export type UserVotesArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +/** + * This entity contains the lending and unlending history of one User + * + */ +export type UserLendingHistory = { + __typename?: 'UserLendingHistory'; + /** + * ID is userAddress + lendingPoolAddress (lendingPool in this case is the lending pool token) + * + */ + id: Scalars['ID']; + /** + * Granular Lend/UnLend events. Derived from Mint/Burn events on the contracts + * + */ + lendingHistory?: Maybe>; + lendingPool: LendingPool; + /** + * Total volume this User has lent to this pool over all time (in the underlying asset currency, ie rBTC for the rBTC lending pool) + * + */ + totalLendVolume: Scalars['BigDecimal']; + /** + * Total volume this User has withdrawn from this pool over all time + * + */ + totalUnlendVolume: Scalars['BigDecimal']; + user: User; +}; + +/** + * This entity contains the lending and unlending history of one User + * + */ +export type UserLendingHistoryLendingHistoryArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +export type UserLendingHistory_Filter = { + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + lendingPool?: InputMaybe; + lendingPool_contains?: InputMaybe; + lendingPool_ends_with?: InputMaybe; + lendingPool_gt?: InputMaybe; + lendingPool_gte?: InputMaybe; + lendingPool_in?: InputMaybe>; + lendingPool_lt?: InputMaybe; + lendingPool_lte?: InputMaybe; + lendingPool_not?: InputMaybe; + lendingPool_not_contains?: InputMaybe; + lendingPool_not_ends_with?: InputMaybe; + lendingPool_not_in?: InputMaybe>; + lendingPool_not_starts_with?: InputMaybe; + lendingPool_starts_with?: InputMaybe; + totalLendVolume?: InputMaybe; + totalLendVolume_gt?: InputMaybe; + totalLendVolume_gte?: InputMaybe; + totalLendVolume_in?: InputMaybe>; + totalLendVolume_lt?: InputMaybe; + totalLendVolume_lte?: InputMaybe; + totalLendVolume_not?: InputMaybe; + totalLendVolume_not_in?: InputMaybe>; + totalUnlendVolume?: InputMaybe; + totalUnlendVolume_gt?: InputMaybe; + totalUnlendVolume_gte?: InputMaybe; + totalUnlendVolume_in?: InputMaybe>; + totalUnlendVolume_lt?: InputMaybe; + totalUnlendVolume_lte?: InputMaybe; + totalUnlendVolume_not?: InputMaybe; + totalUnlendVolume_not_in?: InputMaybe>; + user?: InputMaybe; + user_contains?: InputMaybe; + user_ends_with?: InputMaybe; + user_gt?: InputMaybe; + user_gte?: InputMaybe; + user_in?: InputMaybe>; + user_lt?: InputMaybe; + user_lte?: InputMaybe; + user_not?: InputMaybe; + user_not_contains?: InputMaybe; + user_not_ends_with?: InputMaybe; + user_not_in?: InputMaybe>; + user_not_starts_with?: InputMaybe; + user_starts_with?: InputMaybe; +}; + +export enum UserLendingHistory_OrderBy { + Id = 'id', + LendingHistory = 'lendingHistory', + LendingPool = 'lendingPool', + TotalLendVolume = 'totalLendVolume', + TotalUnlendVolume = 'totalUnlendVolume', + User = 'user', +} + +/** + * This entity stores one User's history of adding and removing liquidity from one AMM pool + * + */ +export type UserLiquidityHistory = { + __typename?: 'UserLiquidityHistory'; + /** + * The ID is userAddress + '-' + smartToken + * Liquidity Pool address is not used here because when a liquidity pool is updated the address changes, but the smart token address remains the same. + * + */ + id: Scalars['ID']; + /** + * Granular transaction history for transactions adding or removing liquidity from an AMM pool + * + */ + liquidityHistory?: Maybe>; + /** + * This is the pool token (sometimes called smart token), not the liquidity pool address + * + */ + poolToken: PoolToken; + /** + * Asset0 is defined on the LiquidityPool. + * These totals are amounts added and removed over all time. These values are used to calculate a user's PnL from liquidity provision. + * + */ + totalAsset0LiquidityAdded: Scalars['BigDecimal']; + totalAsset0LiquidityRemoved: Scalars['BigDecimal']; + /** + * Asset1 is defined on the LiquidityPool + * These totals are amounts added and removed over all time. These values are used to calculate a user's PnL from liquidity provision. + * + */ + totalAsset1LiquidityAdded: Scalars['BigDecimal']; + totalAsset1LiquidityRemoved: Scalars['BigDecimal']; + user: User; +}; + +/** + * This entity stores one User's history of adding and removing liquidity from one AMM pool + * + */ +export type UserLiquidityHistoryLiquidityHistoryArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +export type UserLiquidityHistory_Filter = { + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + poolToken?: InputMaybe; + poolToken_contains?: InputMaybe; + poolToken_ends_with?: InputMaybe; + poolToken_gt?: InputMaybe; + poolToken_gte?: InputMaybe; + poolToken_in?: InputMaybe>; + poolToken_lt?: InputMaybe; + poolToken_lte?: InputMaybe; + poolToken_not?: InputMaybe; + poolToken_not_contains?: InputMaybe; + poolToken_not_ends_with?: InputMaybe; + poolToken_not_in?: InputMaybe>; + poolToken_not_starts_with?: InputMaybe; + poolToken_starts_with?: InputMaybe; + totalAsset0LiquidityAdded?: InputMaybe; + totalAsset0LiquidityAdded_gt?: InputMaybe; + totalAsset0LiquidityAdded_gte?: InputMaybe; + totalAsset0LiquidityAdded_in?: InputMaybe>; + totalAsset0LiquidityAdded_lt?: InputMaybe; + totalAsset0LiquidityAdded_lte?: InputMaybe; + totalAsset0LiquidityAdded_not?: InputMaybe; + totalAsset0LiquidityAdded_not_in?: InputMaybe>; + totalAsset0LiquidityRemoved?: InputMaybe; + totalAsset0LiquidityRemoved_gt?: InputMaybe; + totalAsset0LiquidityRemoved_gte?: InputMaybe; + totalAsset0LiquidityRemoved_in?: InputMaybe>; + totalAsset0LiquidityRemoved_lt?: InputMaybe; + totalAsset0LiquidityRemoved_lte?: InputMaybe; + totalAsset0LiquidityRemoved_not?: InputMaybe; + totalAsset0LiquidityRemoved_not_in?: InputMaybe>; + totalAsset1LiquidityAdded?: InputMaybe; + totalAsset1LiquidityAdded_gt?: InputMaybe; + totalAsset1LiquidityAdded_gte?: InputMaybe; + totalAsset1LiquidityAdded_in?: InputMaybe>; + totalAsset1LiquidityAdded_lt?: InputMaybe; + totalAsset1LiquidityAdded_lte?: InputMaybe; + totalAsset1LiquidityAdded_not?: InputMaybe; + totalAsset1LiquidityAdded_not_in?: InputMaybe>; + totalAsset1LiquidityRemoved?: InputMaybe; + totalAsset1LiquidityRemoved_gt?: InputMaybe; + totalAsset1LiquidityRemoved_gte?: InputMaybe; + totalAsset1LiquidityRemoved_in?: InputMaybe>; + totalAsset1LiquidityRemoved_lt?: InputMaybe; + totalAsset1LiquidityRemoved_lte?: InputMaybe; + totalAsset1LiquidityRemoved_not?: InputMaybe; + totalAsset1LiquidityRemoved_not_in?: InputMaybe>; + user?: InputMaybe; + user_contains?: InputMaybe; + user_ends_with?: InputMaybe; + user_gt?: InputMaybe; + user_gte?: InputMaybe; + user_in?: InputMaybe>; + user_lt?: InputMaybe; + user_lte?: InputMaybe; + user_not?: InputMaybe; + user_not_contains?: InputMaybe; + user_not_ends_with?: InputMaybe; + user_not_in?: InputMaybe>; + user_not_starts_with?: InputMaybe; + user_starts_with?: InputMaybe; +}; + +export enum UserLiquidityHistory_OrderBy { + Id = 'id', + LiquidityHistory = 'liquidityHistory', + PoolToken = 'poolToken', + TotalAsset0LiquidityAdded = 'totalAsset0LiquidityAdded', + TotalAsset0LiquidityRemoved = 'totalAsset0LiquidityRemoved', + TotalAsset1LiquidityAdded = 'totalAsset1LiquidityAdded', + TotalAsset1LiquidityRemoved = 'totalAsset1LiquidityRemoved', + User = 'user', +} + +/** + * This entity contains the history, fees and totals regarding one users' SOV rewards + * + */ +export type UserRewardsEarnedHistory = { + __typename?: 'UserRewardsEarnedHistory'; + /** + * SOV rewards earned from margin trading, but not yet claimed and vested + * Incremented by EarnReward events, and set to 0 by TokensStaked events on the LockedSOV contract + * + */ + availableTradingRewards: Scalars['BigDecimal']; + id: Scalars['ID']; + /** + * Granular events for transaction where a reward is earned + * + */ + rewardsEarnedHistory?: Maybe>; + /** + * The total protocol fees this user has earned and withdrawn, quoted in RBTC. + * Fees can be paid out in different tokens (usually RBTC and SOV). + * This is the total amount, converted to RBTC using the rate at the time of transaction. + * Incremented by UserFeeWithdrawn + * + */ + totalFeeWithdrawn: Scalars['BigDecimal']; + /** + * This is the total of all EarnReward and RewardClaimed events + * + */ + totalFeesAndRewardsEarned: Scalars['BigDecimal']; + /** + * The total liquidity mining rewards the user has claimed, earned from the lending pools. + * Incremented by RewardClaimed, where poolToken is a lending pool token + * + */ + totalLendingRewards: Scalars['BigDecimal']; + /** + * The total liquidity mining rewards the user has claimed, earned from the amm pools. + * Incremented by RewardClaimed, where poolToken is an amm pool token + * + */ + totalLiquidityRewards: Scalars['BigDecimal']; + /** + * Total liquid SOV rewards the user has earned through staking. + * Incremented by RewardWithdrawn + * + */ + totalStakingRewards: Scalars['BigDecimal']; + /** + * Sum of all SOV rewards earned from margin trading. + * Incremented by EarnReward events + * + */ + totalTradingRewards: Scalars['BigDecimal']; + user: User; +}; + +/** + * This entity contains the history, fees and totals regarding one users' SOV rewards + * + */ +export type UserRewardsEarnedHistoryRewardsEarnedHistoryArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +export type UserRewardsEarnedHistory_Filter = { + availableTradingRewards?: InputMaybe; + availableTradingRewards_gt?: InputMaybe; + availableTradingRewards_gte?: InputMaybe; + availableTradingRewards_in?: InputMaybe>; + availableTradingRewards_lt?: InputMaybe; + availableTradingRewards_lte?: InputMaybe; + availableTradingRewards_not?: InputMaybe; + availableTradingRewards_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + totalFeeWithdrawn?: InputMaybe; + totalFeeWithdrawn_gt?: InputMaybe; + totalFeeWithdrawn_gte?: InputMaybe; + totalFeeWithdrawn_in?: InputMaybe>; + totalFeeWithdrawn_lt?: InputMaybe; + totalFeeWithdrawn_lte?: InputMaybe; + totalFeeWithdrawn_not?: InputMaybe; + totalFeeWithdrawn_not_in?: InputMaybe>; + totalFeesAndRewardsEarned?: InputMaybe; + totalFeesAndRewardsEarned_gt?: InputMaybe; + totalFeesAndRewardsEarned_gte?: InputMaybe; + totalFeesAndRewardsEarned_in?: InputMaybe>; + totalFeesAndRewardsEarned_lt?: InputMaybe; + totalFeesAndRewardsEarned_lte?: InputMaybe; + totalFeesAndRewardsEarned_not?: InputMaybe; + totalFeesAndRewardsEarned_not_in?: InputMaybe>; + totalLendingRewards?: InputMaybe; + totalLendingRewards_gt?: InputMaybe; + totalLendingRewards_gte?: InputMaybe; + totalLendingRewards_in?: InputMaybe>; + totalLendingRewards_lt?: InputMaybe; + totalLendingRewards_lte?: InputMaybe; + totalLendingRewards_not?: InputMaybe; + totalLendingRewards_not_in?: InputMaybe>; + totalLiquidityRewards?: InputMaybe; + totalLiquidityRewards_gt?: InputMaybe; + totalLiquidityRewards_gte?: InputMaybe; + totalLiquidityRewards_in?: InputMaybe>; + totalLiquidityRewards_lt?: InputMaybe; + totalLiquidityRewards_lte?: InputMaybe; + totalLiquidityRewards_not?: InputMaybe; + totalLiquidityRewards_not_in?: InputMaybe>; + totalStakingRewards?: InputMaybe; + totalStakingRewards_gt?: InputMaybe; + totalStakingRewards_gte?: InputMaybe; + totalStakingRewards_in?: InputMaybe>; + totalStakingRewards_lt?: InputMaybe; + totalStakingRewards_lte?: InputMaybe; + totalStakingRewards_not?: InputMaybe; + totalStakingRewards_not_in?: InputMaybe>; + totalTradingRewards?: InputMaybe; + totalTradingRewards_gt?: InputMaybe; + totalTradingRewards_gte?: InputMaybe; + totalTradingRewards_in?: InputMaybe>; + totalTradingRewards_lt?: InputMaybe; + totalTradingRewards_lte?: InputMaybe; + totalTradingRewards_not?: InputMaybe; + totalTradingRewards_not_in?: InputMaybe>; + user?: InputMaybe; + user_contains?: InputMaybe; + user_ends_with?: InputMaybe; + user_gt?: InputMaybe; + user_gte?: InputMaybe; + user_in?: InputMaybe>; + user_lt?: InputMaybe; + user_lte?: InputMaybe; + user_not?: InputMaybe; + user_not_contains?: InputMaybe; + user_not_ends_with?: InputMaybe; + user_not_in?: InputMaybe>; + user_not_starts_with?: InputMaybe; + user_starts_with?: InputMaybe; +}; + +export enum UserRewardsEarnedHistory_OrderBy { + AvailableTradingRewards = 'availableTradingRewards', + Id = 'id', + RewardsEarnedHistory = 'rewardsEarnedHistory', + TotalFeeWithdrawn = 'totalFeeWithdrawn', + TotalFeesAndRewardsEarned = 'totalFeesAndRewardsEarned', + TotalLendingRewards = 'totalLendingRewards', + TotalLiquidityRewards = 'totalLiquidityRewards', + TotalStakingRewards = 'totalStakingRewards', + TotalTradingRewards = 'totalTradingRewards', + User = 'user', +} + +/** + * This entity holds the voluntary staking history (ie not staking by a vesting contract) of one user + * + */ +export type UserStakeHistory = { + __typename?: 'UserStakeHistory'; + /** + * ID is the user address + * + */ + id: Scalars['ID']; + /** + * Granular history of the user's voluntary staking activity + * + */ + stakeHistory?: Maybe>; + /** + * totalRemaining is the amount the user currently has staked. + * It should be the same as the result of calling the balanceOf(USER_ADDRESS) method on the staking contract. + * + */ + totalRemaining: Scalars['BigDecimal']; + /** + * totalStaked is the total amount the user has EVER staked (over all time). + * Eg if they stake 10 SOV and then withdraw it and stake it again, totalStaked is 20 SOV + * + */ + totalStaked: Scalars['BigDecimal']; + /** + * totalWithdrawn is the total amount the user has ever withdrawn from voluntary staking (over all time) + * + */ + totalWithdrawn: Scalars['BigDecimal']; + user: User; +}; + +/** + * This entity holds the voluntary staking history (ie not staking by a vesting contract) of one user + * + */ +export type UserStakeHistoryStakeHistoryArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +export type UserStakeHistory_Filter = { + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + totalRemaining?: InputMaybe; + totalRemaining_gt?: InputMaybe; + totalRemaining_gte?: InputMaybe; + totalRemaining_in?: InputMaybe>; + totalRemaining_lt?: InputMaybe; + totalRemaining_lte?: InputMaybe; + totalRemaining_not?: InputMaybe; + totalRemaining_not_in?: InputMaybe>; + totalStaked?: InputMaybe; + totalStaked_gt?: InputMaybe; + totalStaked_gte?: InputMaybe; + totalStaked_in?: InputMaybe>; + totalStaked_lt?: InputMaybe; + totalStaked_lte?: InputMaybe; + totalStaked_not?: InputMaybe; + totalStaked_not_in?: InputMaybe>; + totalWithdrawn?: InputMaybe; + totalWithdrawn_gt?: InputMaybe; + totalWithdrawn_gte?: InputMaybe; + totalWithdrawn_in?: InputMaybe>; + totalWithdrawn_lt?: InputMaybe; + totalWithdrawn_lte?: InputMaybe; + totalWithdrawn_not?: InputMaybe; + totalWithdrawn_not_in?: InputMaybe>; + user?: InputMaybe; + user_contains?: InputMaybe; + user_ends_with?: InputMaybe; + user_gt?: InputMaybe; + user_gte?: InputMaybe; + user_in?: InputMaybe>; + user_lt?: InputMaybe; + user_lte?: InputMaybe; + user_not?: InputMaybe; + user_not_contains?: InputMaybe; + user_not_ends_with?: InputMaybe; + user_not_in?: InputMaybe>; + user_not_starts_with?: InputMaybe; + user_starts_with?: InputMaybe; +}; + +export enum UserStakeHistory_OrderBy { + Id = 'id', + StakeHistory = 'stakeHistory', + TotalRemaining = 'totalRemaining', + TotalStaked = 'totalStaked', + TotalWithdrawn = 'totalWithdrawn', + User = 'user', +} + +/** + * This is the total volumes of different actions for one user. See ProtocolStats entity for full descriptions. + * + */ +export type UserTotal = { + __typename?: 'UserTotal'; + id: Scalars['ID']; + totalAmmLpFeesUsd: Scalars['BigDecimal']; + totalAmmStakerFeesUsd: Scalars['BigDecimal']; + totalAmmVolumeUsd: Scalars['BigDecimal']; + totalBorrowVolumeUsd: Scalars['BigDecimal']; + totalBorrowingFeesUsd: Scalars['BigDecimal']; + totalCloseWithDepositVolumeUsd: Scalars['BigDecimal']; + totalCloseWithSwapVolumeUsd: Scalars['BigDecimal']; + totalDepositCollateralVolumeUsd: Scalars['BigDecimal']; + totalLendVolumeUsd: Scalars['BigDecimal']; + totalLendingFeesUsd: Scalars['BigDecimal']; + totalLiquidateVolumeUsd: Scalars['BigDecimal']; + totalMarginTradeVolumeUsd: Scalars['BigDecimal']; + totalTradingFeesUsd: Scalars['BigDecimal']; + totalUnlendVolumeUsd: Scalars['BigDecimal']; + user: User; +}; + +export type UserTotal_Filter = { + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + totalAmmLpFeesUsd?: InputMaybe; + totalAmmLpFeesUsd_gt?: InputMaybe; + totalAmmLpFeesUsd_gte?: InputMaybe; + totalAmmLpFeesUsd_in?: InputMaybe>; + totalAmmLpFeesUsd_lt?: InputMaybe; + totalAmmLpFeesUsd_lte?: InputMaybe; + totalAmmLpFeesUsd_not?: InputMaybe; + totalAmmLpFeesUsd_not_in?: InputMaybe>; + totalAmmStakerFeesUsd?: InputMaybe; + totalAmmStakerFeesUsd_gt?: InputMaybe; + totalAmmStakerFeesUsd_gte?: InputMaybe; + totalAmmStakerFeesUsd_in?: InputMaybe>; + totalAmmStakerFeesUsd_lt?: InputMaybe; + totalAmmStakerFeesUsd_lte?: InputMaybe; + totalAmmStakerFeesUsd_not?: InputMaybe; + totalAmmStakerFeesUsd_not_in?: InputMaybe>; + totalAmmVolumeUsd?: InputMaybe; + totalAmmVolumeUsd_gt?: InputMaybe; + totalAmmVolumeUsd_gte?: InputMaybe; + totalAmmVolumeUsd_in?: InputMaybe>; + totalAmmVolumeUsd_lt?: InputMaybe; + totalAmmVolumeUsd_lte?: InputMaybe; + totalAmmVolumeUsd_not?: InputMaybe; + totalAmmVolumeUsd_not_in?: InputMaybe>; + totalBorrowVolumeUsd?: InputMaybe; + totalBorrowVolumeUsd_gt?: InputMaybe; + totalBorrowVolumeUsd_gte?: InputMaybe; + totalBorrowVolumeUsd_in?: InputMaybe>; + totalBorrowVolumeUsd_lt?: InputMaybe; + totalBorrowVolumeUsd_lte?: InputMaybe; + totalBorrowVolumeUsd_not?: InputMaybe; + totalBorrowVolumeUsd_not_in?: InputMaybe>; + totalBorrowingFeesUsd?: InputMaybe; + totalBorrowingFeesUsd_gt?: InputMaybe; + totalBorrowingFeesUsd_gte?: InputMaybe; + totalBorrowingFeesUsd_in?: InputMaybe>; + totalBorrowingFeesUsd_lt?: InputMaybe; + totalBorrowingFeesUsd_lte?: InputMaybe; + totalBorrowingFeesUsd_not?: InputMaybe; + totalBorrowingFeesUsd_not_in?: InputMaybe>; + totalCloseWithDepositVolumeUsd?: InputMaybe; + totalCloseWithDepositVolumeUsd_gt?: InputMaybe; + totalCloseWithDepositVolumeUsd_gte?: InputMaybe; + totalCloseWithDepositVolumeUsd_in?: InputMaybe>; + totalCloseWithDepositVolumeUsd_lt?: InputMaybe; + totalCloseWithDepositVolumeUsd_lte?: InputMaybe; + totalCloseWithDepositVolumeUsd_not?: InputMaybe; + totalCloseWithDepositVolumeUsd_not_in?: InputMaybe< + Array + >; + totalCloseWithSwapVolumeUsd?: InputMaybe; + totalCloseWithSwapVolumeUsd_gt?: InputMaybe; + totalCloseWithSwapVolumeUsd_gte?: InputMaybe; + totalCloseWithSwapVolumeUsd_in?: InputMaybe>; + totalCloseWithSwapVolumeUsd_lt?: InputMaybe; + totalCloseWithSwapVolumeUsd_lte?: InputMaybe; + totalCloseWithSwapVolumeUsd_not?: InputMaybe; + totalCloseWithSwapVolumeUsd_not_in?: InputMaybe>; + totalDepositCollateralVolumeUsd?: InputMaybe; + totalDepositCollateralVolumeUsd_gt?: InputMaybe; + totalDepositCollateralVolumeUsd_gte?: InputMaybe; + totalDepositCollateralVolumeUsd_in?: InputMaybe>; + totalDepositCollateralVolumeUsd_lt?: InputMaybe; + totalDepositCollateralVolumeUsd_lte?: InputMaybe; + totalDepositCollateralVolumeUsd_not?: InputMaybe; + totalDepositCollateralVolumeUsd_not_in?: InputMaybe< + Array + >; + totalLendVolumeUsd?: InputMaybe; + totalLendVolumeUsd_gt?: InputMaybe; + totalLendVolumeUsd_gte?: InputMaybe; + totalLendVolumeUsd_in?: InputMaybe>; + totalLendVolumeUsd_lt?: InputMaybe; + totalLendVolumeUsd_lte?: InputMaybe; + totalLendVolumeUsd_not?: InputMaybe; + totalLendVolumeUsd_not_in?: InputMaybe>; + totalLendingFeesUsd?: InputMaybe; + totalLendingFeesUsd_gt?: InputMaybe; + totalLendingFeesUsd_gte?: InputMaybe; + totalLendingFeesUsd_in?: InputMaybe>; + totalLendingFeesUsd_lt?: InputMaybe; + totalLendingFeesUsd_lte?: InputMaybe; + totalLendingFeesUsd_not?: InputMaybe; + totalLendingFeesUsd_not_in?: InputMaybe>; + totalLiquidateVolumeUsd?: InputMaybe; + totalLiquidateVolumeUsd_gt?: InputMaybe; + totalLiquidateVolumeUsd_gte?: InputMaybe; + totalLiquidateVolumeUsd_in?: InputMaybe>; + totalLiquidateVolumeUsd_lt?: InputMaybe; + totalLiquidateVolumeUsd_lte?: InputMaybe; + totalLiquidateVolumeUsd_not?: InputMaybe; + totalLiquidateVolumeUsd_not_in?: InputMaybe>; + totalMarginTradeVolumeUsd?: InputMaybe; + totalMarginTradeVolumeUsd_gt?: InputMaybe; + totalMarginTradeVolumeUsd_gte?: InputMaybe; + totalMarginTradeVolumeUsd_in?: InputMaybe>; + totalMarginTradeVolumeUsd_lt?: InputMaybe; + totalMarginTradeVolumeUsd_lte?: InputMaybe; + totalMarginTradeVolumeUsd_not?: InputMaybe; + totalMarginTradeVolumeUsd_not_in?: InputMaybe>; + totalTradingFeesUsd?: InputMaybe; + totalTradingFeesUsd_gt?: InputMaybe; + totalTradingFeesUsd_gte?: InputMaybe; + totalTradingFeesUsd_in?: InputMaybe>; + totalTradingFeesUsd_lt?: InputMaybe; + totalTradingFeesUsd_lte?: InputMaybe; + totalTradingFeesUsd_not?: InputMaybe; + totalTradingFeesUsd_not_in?: InputMaybe>; + totalUnlendVolumeUsd?: InputMaybe; + totalUnlendVolumeUsd_gt?: InputMaybe; + totalUnlendVolumeUsd_gte?: InputMaybe; + totalUnlendVolumeUsd_in?: InputMaybe>; + totalUnlendVolumeUsd_lt?: InputMaybe; + totalUnlendVolumeUsd_lte?: InputMaybe; + totalUnlendVolumeUsd_not?: InputMaybe; + totalUnlendVolumeUsd_not_in?: InputMaybe>; + user?: InputMaybe; + user_contains?: InputMaybe; + user_ends_with?: InputMaybe; + user_gt?: InputMaybe; + user_gte?: InputMaybe; + user_in?: InputMaybe>; + user_lt?: InputMaybe; + user_lte?: InputMaybe; + user_not?: InputMaybe; + user_not_contains?: InputMaybe; + user_not_ends_with?: InputMaybe; + user_not_in?: InputMaybe>; + user_not_starts_with?: InputMaybe; + user_starts_with?: InputMaybe; +}; + +export enum UserTotal_OrderBy { + Id = 'id', + TotalAmmLpFeesUsd = 'totalAmmLpFeesUsd', + TotalAmmStakerFeesUsd = 'totalAmmStakerFeesUsd', + TotalAmmVolumeUsd = 'totalAmmVolumeUsd', + TotalBorrowVolumeUsd = 'totalBorrowVolumeUsd', + TotalBorrowingFeesUsd = 'totalBorrowingFeesUsd', + TotalCloseWithDepositVolumeUsd = 'totalCloseWithDepositVolumeUsd', + TotalCloseWithSwapVolumeUsd = 'totalCloseWithSwapVolumeUsd', + TotalDepositCollateralVolumeUsd = 'totalDepositCollateralVolumeUsd', + TotalLendVolumeUsd = 'totalLendVolumeUsd', + TotalLendingFeesUsd = 'totalLendingFeesUsd', + TotalLiquidateVolumeUsd = 'totalLiquidateVolumeUsd', + TotalMarginTradeVolumeUsd = 'totalMarginTradeVolumeUsd', + TotalTradingFeesUsd = 'totalTradingFeesUsd', + TotalUnlendVolumeUsd = 'totalUnlendVolumeUsd', + User = 'user', +} + +export type User_Filter = { + createdAtTimestamp?: InputMaybe; + createdAtTimestamp_gt?: InputMaybe; + createdAtTimestamp_gte?: InputMaybe; + createdAtTimestamp_in?: InputMaybe>; + createdAtTimestamp_lt?: InputMaybe; + createdAtTimestamp_lte?: InputMaybe; + createdAtTimestamp_not?: InputMaybe; + createdAtTimestamp_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; +}; + +export enum User_OrderBy { + BitcoinTransfers = 'bitcoinTransfers', + Borrows = 'borrows', + CreatedAtTimestamp = 'createdAtTimestamp', + CrossChainTransfer = 'crossChainTransfer', + CurrentStakes = 'currentStakes', + FastBtcBridgeStats = 'fastBTCBridgeStats', + Id = 'id', + LendingHistory = 'lendingHistory', + Liquidations = 'liquidations', + LiquidityHistory = 'liquidityHistory', + Loans = 'loans', + RewardsEarnedHistory = 'rewardsEarnedHistory', + StakeHistory = 'stakeHistory', + Swaps = 'swaps', + Trades = 'trades', + Transactions = 'transactions', + UserTotals = 'userTotals', + VestingContracts = 'vestingContracts', + Votes = 'votes', +} + +/** + * This entity represents one vesting contract + * A User can have multiple vesting contracts + * + */ +export type VestingContract = { + __typename?: 'VestingContract'; + /** + * The cliff is the period (in seconds) until the first tokens become liquid on this contract + * + */ + cliff?: Maybe; + /** + * Date that the vesting contract was created + * + */ + createdAtTimestamp: Scalars['Int']; + createdAtTransaction: Transaction; + /** + * Current balance of tokens on the contract, including locked and liquid tokens that have not been withdrawn. + * Incremented on TokensStaked actions, decremented on TokensWithdrawn actions + * + */ + currentBalance: Scalars['BigDecimal']; + /** + * The total duration of the vesting contract, including the cliff, in seconds. + * For example, a 9 month vesting contract with a 1 month cliff would have a duration of 26280000 (10 months in seconds) + * + */ + duration?: Maybe; + emittedBy: Scalars['Bytes']; + /** + * ID is the vesting contract address + * + */ + id: Scalars['ID']; + /** + * A granular history of every action involving this vesting contract + * + */ + stakeHistory?: Maybe>; + /** + * The initial balance when this contract was created. This is often 0, as tokens can be added to the contract after contract creation + * + */ + startingBalance: Scalars['BigDecimal']; + /** + * Type of contract (see VestingContractType docs for more details) + * + */ + type: VestingContractType; + /** + * The owner of the vesting contract + * + */ + user: User; +}; + +/** + * This entity represents one vesting contract + * A User can have multiple vesting contracts + * + */ +export type VestingContractStakeHistoryArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +export enum VestingContractType { + /** + * FISH (Babelfish governance token) vesting contracts + * + */ + Fish = 'Fish', + /** + * Babelfish team vesting contracts + * + */ + FishTeam = 'FishTeam', + /** + * Vesting contracts for strategic investors with a four-year lockup + * + */ + FourYearVesting = 'FourYearVesting', + /** + * Vesting contracts for investors who participated in the Sovryn Genesis sale + * + */ + Genesis = 'Genesis', + /** + * Vesting contracts for investors who participated in the Sovryn Origin sale + * + */ + Origins = 'Origins', + /** + * Vesting contracts for vested rewards + * + */ + Rewards = 'Rewards', + /** + * Vesting contracts for early strategic investors + * + */ + Strategic = 'Strategic', + /** + * Sovryn team vesting contracts + * + */ + Team = 'Team', +} + +export type VestingContract_Filter = { + cliff?: InputMaybe; + cliff_gt?: InputMaybe; + cliff_gte?: InputMaybe; + cliff_in?: InputMaybe>; + cliff_lt?: InputMaybe; + cliff_lte?: InputMaybe; + cliff_not?: InputMaybe; + cliff_not_in?: InputMaybe>; + createdAtTimestamp?: InputMaybe; + createdAtTimestamp_gt?: InputMaybe; + createdAtTimestamp_gte?: InputMaybe; + createdAtTimestamp_in?: InputMaybe>; + createdAtTimestamp_lt?: InputMaybe; + createdAtTimestamp_lte?: InputMaybe; + createdAtTimestamp_not?: InputMaybe; + createdAtTimestamp_not_in?: InputMaybe>; + createdAtTransaction?: InputMaybe; + createdAtTransaction_contains?: InputMaybe; + createdAtTransaction_ends_with?: InputMaybe; + createdAtTransaction_gt?: InputMaybe; + createdAtTransaction_gte?: InputMaybe; + createdAtTransaction_in?: InputMaybe>; + createdAtTransaction_lt?: InputMaybe; + createdAtTransaction_lte?: InputMaybe; + createdAtTransaction_not?: InputMaybe; + createdAtTransaction_not_contains?: InputMaybe; + createdAtTransaction_not_ends_with?: InputMaybe; + createdAtTransaction_not_in?: InputMaybe>; + createdAtTransaction_not_starts_with?: InputMaybe; + createdAtTransaction_starts_with?: InputMaybe; + currentBalance?: InputMaybe; + currentBalance_gt?: InputMaybe; + currentBalance_gte?: InputMaybe; + currentBalance_in?: InputMaybe>; + currentBalance_lt?: InputMaybe; + currentBalance_lte?: InputMaybe; + currentBalance_not?: InputMaybe; + currentBalance_not_in?: InputMaybe>; + duration?: InputMaybe; + duration_gt?: InputMaybe; + duration_gte?: InputMaybe; + duration_in?: InputMaybe>; + duration_lt?: InputMaybe; + duration_lte?: InputMaybe; + duration_not?: InputMaybe; + duration_not_in?: InputMaybe>; + emittedBy?: InputMaybe; + emittedBy_contains?: InputMaybe; + emittedBy_in?: InputMaybe>; + emittedBy_not?: InputMaybe; + emittedBy_not_contains?: InputMaybe; + emittedBy_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + startingBalance?: InputMaybe; + startingBalance_gt?: InputMaybe; + startingBalance_gte?: InputMaybe; + startingBalance_in?: InputMaybe>; + startingBalance_lt?: InputMaybe; + startingBalance_lte?: InputMaybe; + startingBalance_not?: InputMaybe; + startingBalance_not_in?: InputMaybe>; + type?: InputMaybe; + type_in?: InputMaybe>; + type_not?: InputMaybe; + type_not_in?: InputMaybe>; + user?: InputMaybe; + user_contains?: InputMaybe; + user_ends_with?: InputMaybe; + user_gt?: InputMaybe; + user_gte?: InputMaybe; + user_in?: InputMaybe>; + user_lt?: InputMaybe; + user_lte?: InputMaybe; + user_not?: InputMaybe; + user_not_contains?: InputMaybe; + user_not_ends_with?: InputMaybe; + user_not_in?: InputMaybe>; + user_not_starts_with?: InputMaybe; + user_starts_with?: InputMaybe; +}; + +export enum VestingContract_OrderBy { + Cliff = 'cliff', + CreatedAtTimestamp = 'createdAtTimestamp', + CreatedAtTransaction = 'createdAtTransaction', + CurrentBalance = 'currentBalance', + Duration = 'duration', + EmittedBy = 'emittedBy', + Id = 'id', + StakeHistory = 'stakeHistory', + StartingBalance = 'startingBalance', + Type = 'type', + User = 'user', +} + +/** + * Granular data for each vesting contract, and any actions involving that contract + * + */ +export type VestingHistoryItem = { + __typename?: 'VestingHistoryItem'; + action: VestingHistoryItemAction; + /** + * Amount being staked + * + */ + amount: Scalars['BigDecimal']; + emittedBy: Scalars['Bytes']; + /** + * ID is transaction hash + "-" + log index + * For TokensStaked actions, there can be multiple actions per transactions, and each will create a new entity + * + */ + id: Scalars['ID']; + /** + * The date when the tokens become unlocked + * + */ + lockedUntil: Scalars['Int']; + /** + * The staker here will always be the vesting contract + * + */ + staker: VestingContract; + timestamp: Scalars['Int']; + /** + * Total number of tokens staked until this lockedUntil date + * + */ + totalStaked: Scalars['BigDecimal']; + transaction: Transaction; +}; + +export enum VestingHistoryItemAction { + /** + * This is only relevant to Team tokens. For Team contracts, a vesting contract can be revoked by governance if a team member leaves the project. + * If this happens, all tokens still locked are returned to the exchequer. + * This is ONLY possible with Team or FishTeam vesting contracts. + * + */ + TeamTokensRevoked = 'TeamTokensRevoked', + /** + * Tokens are staked by the Vesting contract. This happens when the Vesting contract receives funds. + * + */ + TokensStaked = 'TokensStaked', + /** + * When a user withdraws unlocked tokens from the vesting contract + * + */ + TokensWithdrawn = 'TokensWithdrawn', +} + +export type VestingHistoryItem_Filter = { + action?: InputMaybe; + action_in?: InputMaybe>; + action_not?: InputMaybe; + action_not_in?: InputMaybe>; + amount?: InputMaybe; + amount_gt?: InputMaybe; + amount_gte?: InputMaybe; + amount_in?: InputMaybe>; + amount_lt?: InputMaybe; + amount_lte?: InputMaybe; + amount_not?: InputMaybe; + amount_not_in?: InputMaybe>; + emittedBy?: InputMaybe; + emittedBy_contains?: InputMaybe; + emittedBy_in?: InputMaybe>; + emittedBy_not?: InputMaybe; + emittedBy_not_contains?: InputMaybe; + emittedBy_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + lockedUntil?: InputMaybe; + lockedUntil_gt?: InputMaybe; + lockedUntil_gte?: InputMaybe; + lockedUntil_in?: InputMaybe>; + lockedUntil_lt?: InputMaybe; + lockedUntil_lte?: InputMaybe; + lockedUntil_not?: InputMaybe; + lockedUntil_not_in?: InputMaybe>; + staker?: InputMaybe; + staker_contains?: InputMaybe; + staker_ends_with?: InputMaybe; + staker_gt?: InputMaybe; + staker_gte?: InputMaybe; + staker_in?: InputMaybe>; + staker_lt?: InputMaybe; + staker_lte?: InputMaybe; + staker_not?: InputMaybe; + staker_not_contains?: InputMaybe; + staker_not_ends_with?: InputMaybe; + staker_not_in?: InputMaybe>; + staker_not_starts_with?: InputMaybe; + staker_starts_with?: InputMaybe; + timestamp?: InputMaybe; + timestamp_gt?: InputMaybe; + timestamp_gte?: InputMaybe; + timestamp_in?: InputMaybe>; + timestamp_lt?: InputMaybe; + timestamp_lte?: InputMaybe; + timestamp_not?: InputMaybe; + timestamp_not_in?: InputMaybe>; + totalStaked?: InputMaybe; + totalStaked_gt?: InputMaybe; + totalStaked_gte?: InputMaybe; + totalStaked_in?: InputMaybe>; + totalStaked_lt?: InputMaybe; + totalStaked_lte?: InputMaybe; + totalStaked_not?: InputMaybe; + totalStaked_not_in?: InputMaybe>; + transaction?: InputMaybe; + transaction_contains?: InputMaybe; + transaction_ends_with?: InputMaybe; + transaction_gt?: InputMaybe; + transaction_gte?: InputMaybe; + transaction_in?: InputMaybe>; + transaction_lt?: InputMaybe; + transaction_lte?: InputMaybe; + transaction_not?: InputMaybe; + transaction_not_contains?: InputMaybe; + transaction_not_ends_with?: InputMaybe; + transaction_not_in?: InputMaybe>; + transaction_not_starts_with?: InputMaybe; + transaction_starts_with?: InputMaybe; +}; + +export enum VestingHistoryItem_OrderBy { + Action = 'action', + Amount = 'amount', + EmittedBy = 'emittedBy', + Id = 'id', + LockedUntil = 'lockedUntil', + Staker = 'staker', + Timestamp = 'timestamp', + TotalStaked = 'totalStaked', + Transaction = 'transaction', +} + +/** + * This is the event emitted when a user votes for or against a proposed SIP + * + */ +export type VoteCast = { + __typename?: 'VoteCast'; + emittedBy: Scalars['Bytes']; + /** + * ID is transaction hash + log index + * + */ + id: Scalars['ID']; + /** + * The ID of the Proposal entity that this vote is for/against + * + */ + proposal: Proposal; + /** + * The ID of the proposal + * + */ + proposalId: Scalars['Int']; + /** + * True if the vote is for the proposal, False if it is against + * + */ + support: Scalars['Boolean']; + timestamp: Scalars['Int']; + transaction: Transaction; + voter: User; + /** + * The number of votes the user cast (the voting power of that user) + * + */ + votes: Scalars['BigInt']; +}; + +export type VoteCast_Filter = { + emittedBy?: InputMaybe; + emittedBy_contains?: InputMaybe; + emittedBy_in?: InputMaybe>; + emittedBy_not?: InputMaybe; + emittedBy_not_contains?: InputMaybe; + emittedBy_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + proposal?: InputMaybe; + proposalId?: InputMaybe; + proposalId_gt?: InputMaybe; + proposalId_gte?: InputMaybe; + proposalId_in?: InputMaybe>; + proposalId_lt?: InputMaybe; + proposalId_lte?: InputMaybe; + proposalId_not?: InputMaybe; + proposalId_not_in?: InputMaybe>; + proposal_contains?: InputMaybe; + proposal_ends_with?: InputMaybe; + proposal_gt?: InputMaybe; + proposal_gte?: InputMaybe; + proposal_in?: InputMaybe>; + proposal_lt?: InputMaybe; + proposal_lte?: InputMaybe; + proposal_not?: InputMaybe; + proposal_not_contains?: InputMaybe; + proposal_not_ends_with?: InputMaybe; + proposal_not_in?: InputMaybe>; + proposal_not_starts_with?: InputMaybe; + proposal_starts_with?: InputMaybe; + support?: InputMaybe; + support_in?: InputMaybe>; + support_not?: InputMaybe; + support_not_in?: InputMaybe>; + timestamp?: InputMaybe; + timestamp_gt?: InputMaybe; + timestamp_gte?: InputMaybe; + timestamp_in?: InputMaybe>; + timestamp_lt?: InputMaybe; + timestamp_lte?: InputMaybe; + timestamp_not?: InputMaybe; + timestamp_not_in?: InputMaybe>; + transaction?: InputMaybe; + transaction_contains?: InputMaybe; + transaction_ends_with?: InputMaybe; + transaction_gt?: InputMaybe; + transaction_gte?: InputMaybe; + transaction_in?: InputMaybe>; + transaction_lt?: InputMaybe; + transaction_lte?: InputMaybe; + transaction_not?: InputMaybe; + transaction_not_contains?: InputMaybe; + transaction_not_ends_with?: InputMaybe; + transaction_not_in?: InputMaybe>; + transaction_not_starts_with?: InputMaybe; + transaction_starts_with?: InputMaybe; + voter?: InputMaybe; + voter_contains?: InputMaybe; + voter_ends_with?: InputMaybe; + voter_gt?: InputMaybe; + voter_gte?: InputMaybe; + voter_in?: InputMaybe>; + voter_lt?: InputMaybe; + voter_lte?: InputMaybe; + voter_not?: InputMaybe; + voter_not_contains?: InputMaybe; + voter_not_ends_with?: InputMaybe; + voter_not_in?: InputMaybe>; + voter_not_starts_with?: InputMaybe; + voter_starts_with?: InputMaybe; + votes?: InputMaybe; + votes_gt?: InputMaybe; + votes_gte?: InputMaybe; + votes_in?: InputMaybe>; + votes_lt?: InputMaybe; + votes_lte?: InputMaybe; + votes_not?: InputMaybe; + votes_not_in?: InputMaybe>; +}; + +export enum VoteCast_OrderBy { + EmittedBy = 'emittedBy', + Id = 'id', + Proposal = 'proposal', + ProposalId = 'proposalId', + Support = 'support', + Timestamp = 'timestamp', + Transaction = 'transaction', + Voter = 'voter', + Votes = 'votes', +} + +export type Withdrawal = { + __typename?: 'Withdrawal'; + amount: Scalars['BigDecimal']; + emittedBy: Scalars['Bytes']; + id: Scalars['ID']; + receiver: Scalars['Bytes']; + timestamp: Scalars['Int']; + transaction: Transaction; +}; + +export type Withdrawal_Filter = { + amount?: InputMaybe; + amount_gt?: InputMaybe; + amount_gte?: InputMaybe; + amount_in?: InputMaybe>; + amount_lt?: InputMaybe; + amount_lte?: InputMaybe; + amount_not?: InputMaybe; + amount_not_in?: InputMaybe>; + emittedBy?: InputMaybe; + emittedBy_contains?: InputMaybe; + emittedBy_in?: InputMaybe>; + emittedBy_not?: InputMaybe; + emittedBy_not_contains?: InputMaybe; + emittedBy_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + receiver?: InputMaybe; + receiver_contains?: InputMaybe; + receiver_in?: InputMaybe>; + receiver_not?: InputMaybe; + receiver_not_contains?: InputMaybe; + receiver_not_in?: InputMaybe>; + timestamp?: InputMaybe; + timestamp_gt?: InputMaybe; + timestamp_gte?: InputMaybe; + timestamp_in?: InputMaybe>; + timestamp_lt?: InputMaybe; + timestamp_lte?: InputMaybe; + timestamp_not?: InputMaybe; + timestamp_not_in?: InputMaybe>; + transaction?: InputMaybe; + transaction_contains?: InputMaybe; + transaction_ends_with?: InputMaybe; + transaction_gt?: InputMaybe; + transaction_gte?: InputMaybe; + transaction_in?: InputMaybe>; + transaction_lt?: InputMaybe; + transaction_lte?: InputMaybe; + transaction_not?: InputMaybe; + transaction_not_contains?: InputMaybe; + transaction_not_ends_with?: InputMaybe; + transaction_not_in?: InputMaybe>; + transaction_not_starts_with?: InputMaybe; + transaction_starts_with?: InputMaybe; +}; + +export enum Withdrawal_OrderBy { + Amount = 'amount', + EmittedBy = 'emittedBy', + Id = 'id', + Receiver = 'receiver', + Timestamp = 'timestamp', + Transaction = 'transaction', +} + +export type _Block_ = { + __typename?: '_Block_'; + /** The hash of the block */ + hash?: Maybe; + /** The block number */ + number: Scalars['Int']; +}; + +/** The type for the top-level _meta field */ +export type _Meta_ = { + __typename?: '_Meta_'; + /** + * Information about a specific subgraph block. The hash of the block + * will be null if the _meta field has a block constraint that asks for + * a block number. It will be filled if the _meta field has no block constraint + * and therefore asks for the latest block + * + */ + block: _Block_; + /** The deployment ID */ + deployment: Scalars['String']; + /** If `true`, the subgraph encountered indexing errors at some past block */ + hasIndexingErrors: Scalars['Boolean']; +}; + +export enum _SubgraphErrorPolicy_ { + /** Data will be returned even if the subgraph has indexing errors */ + Allow = 'allow', + /** If the subgraph has indexing errors, data will be omitted. The default. */ + Deny = 'deny', +} + +export type GetTokenRatesQueryVariables = Exact<{ [key: string]: never }>; + +export type GetTokenRatesQuery = { + __typename?: 'Query'; + tokens: Array<{ + __typename?: 'Token'; + id: string; + symbol?: string | null; + lastPriceBtc: any; + lastPriceUsd: any; + }>; +}; + +export const GetTokenRatesDocument = gql` + query getTokenRates { + tokens { + id + symbol + lastPriceBtc + lastPriceUsd + } + } +`; + +/** + * __useGetTokenRatesQuery__ + * + * To run a query within a React component, call `useGetTokenRatesQuery` and pass it any options that fit your needs. + * When your component renders, `useGetTokenRatesQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useGetTokenRatesQuery({ + * variables: { + * }, + * }); + */ +export function useGetTokenRatesQuery( + baseOptions?: Apollo.QueryHookOptions< + GetTokenRatesQuery, + GetTokenRatesQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery( + GetTokenRatesDocument, + options, + ); +} +export function useGetTokenRatesLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + GetTokenRatesQuery, + GetTokenRatesQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery( + GetTokenRatesDocument, + options, + ); +} +export type GetTokenRatesQueryHookResult = ReturnType< + typeof useGetTokenRatesQuery +>; +export type GetTokenRatesLazyQueryHookResult = ReturnType< + typeof useGetTokenRatesLazyQuery +>; +export type GetTokenRatesQueryResult = Apollo.QueryResult< + GetTokenRatesQuery, + GetTokenRatesQueryVariables +>; diff --git a/apps/frontend/src/utils/graphql/rsk/operations/getTokenRates.graphql b/apps/frontend/src/utils/graphql/rsk/operations/getTokenRates.graphql new file mode 100644 index 000000000..a475a8251 --- /dev/null +++ b/apps/frontend/src/utils/graphql/rsk/operations/getTokenRates.graphql @@ -0,0 +1,8 @@ +query getTokenRates { + tokens { + id + symbol + lastPriceBtc + lastPriceUsd + } +} diff --git a/apps/frontend/src/utils/graphql/rsk/schema.graphql b/apps/frontend/src/utils/graphql/rsk/schema.graphql new file mode 100644 index 000000000..0632196bc --- /dev/null +++ b/apps/frontend/src/utils/graphql/rsk/schema.graphql @@ -0,0 +1,12352 @@ +directive @derivedFrom(field: String) on FIELD_DEFINITION + +directive @entity on OBJECT + +directive @subgraphId(id: String) on OBJECT + +scalar BigDecimal + +scalar BigInt + +type BitcoinTransfer { + amountBTC: BigDecimal! + bitcoinTxHash: Bytes! + btcAddress: String! + createdAtBlockNumber: Int! + createdAtTimestamp: Int! + createdAtTx: Transaction! + feeBTC: BigDecimal! + id: ID! + nonce: Int! + status: BitcoinTransferStatus! + totalAmountBTC: BigDecimal! + updatedAtBlockNumber: Int! + updatedAtTimestamp: Int! + updatedAtTx: Transaction! + user: User! +} + +type BitcoinTransferBatchSending { + bitcoinTxHash: Bytes! + emittedBy: Bytes! + id: ID! + timestamp: Int! + transaction: Transaction! + transferBatchSize: Int! +} + +input BitcoinTransferBatchSending_filter { + bitcoinTxHash: Bytes + bitcoinTxHash_contains: Bytes + bitcoinTxHash_in: [Bytes!] + bitcoinTxHash_not: Bytes + bitcoinTxHash_not_contains: Bytes + bitcoinTxHash_not_in: [Bytes!] + emittedBy: Bytes + emittedBy_contains: Bytes + emittedBy_in: [Bytes!] + emittedBy_not: Bytes + emittedBy_not_contains: Bytes + emittedBy_not_in: [Bytes!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + timestamp: Int + timestamp_gt: Int + timestamp_gte: Int + timestamp_in: [Int!] + timestamp_lt: Int + timestamp_lte: Int + timestamp_not: Int + timestamp_not_in: [Int!] + transaction: String + transaction_contains: String + transaction_ends_with: String + transaction_gt: String + transaction_gte: String + transaction_in: [String!] + transaction_lt: String + transaction_lte: String + transaction_not: String + transaction_not_contains: String + transaction_not_ends_with: String + transaction_not_in: [String!] + transaction_not_starts_with: String + transaction_starts_with: String + transferBatchSize: Int + transferBatchSize_gt: Int + transferBatchSize_gte: Int + transferBatchSize_in: [Int!] + transferBatchSize_lt: Int + transferBatchSize_lte: Int + transferBatchSize_not: Int + transferBatchSize_not_in: [Int!] +} + +enum BitcoinTransferBatchSending_orderBy { + bitcoinTxHash + emittedBy + id + timestamp + transaction + transferBatchSize +} + +enum BitcoinTransferStatus { + "the transfer was confirmedly mined in Bitcoin blockchain\n" + MINED + + "the transfer was initiated\n" + NEW + + "the transfer slot has not been initialized\n" + NOT_APPLICABLE + + "the transfer was reclaimed by the user\n" + RECLAIMED + + "the transfer was refunded\n" + REFUNDED + + "the federators have approved this transfer as part of a transfer batch\n" + SENDING +} + +input BitcoinTransfer_filter { + amountBTC: BigDecimal + amountBTC_gt: BigDecimal + amountBTC_gte: BigDecimal + amountBTC_in: [BigDecimal!] + amountBTC_lt: BigDecimal + amountBTC_lte: BigDecimal + amountBTC_not: BigDecimal + amountBTC_not_in: [BigDecimal!] + bitcoinTxHash: Bytes + bitcoinTxHash_contains: Bytes + bitcoinTxHash_in: [Bytes!] + bitcoinTxHash_not: Bytes + bitcoinTxHash_not_contains: Bytes + bitcoinTxHash_not_in: [Bytes!] + btcAddress: String + btcAddress_contains: String + btcAddress_ends_with: String + btcAddress_gt: String + btcAddress_gte: String + btcAddress_in: [String!] + btcAddress_lt: String + btcAddress_lte: String + btcAddress_not: String + btcAddress_not_contains: String + btcAddress_not_ends_with: String + btcAddress_not_in: [String!] + btcAddress_not_starts_with: String + btcAddress_starts_with: String + createdAtBlockNumber: Int + createdAtBlockNumber_gt: Int + createdAtBlockNumber_gte: Int + createdAtBlockNumber_in: [Int!] + createdAtBlockNumber_lt: Int + createdAtBlockNumber_lte: Int + createdAtBlockNumber_not: Int + createdAtBlockNumber_not_in: [Int!] + createdAtTimestamp: Int + createdAtTimestamp_gt: Int + createdAtTimestamp_gte: Int + createdAtTimestamp_in: [Int!] + createdAtTimestamp_lt: Int + createdAtTimestamp_lte: Int + createdAtTimestamp_not: Int + createdAtTimestamp_not_in: [Int!] + createdAtTx: String + createdAtTx_contains: String + createdAtTx_ends_with: String + createdAtTx_gt: String + createdAtTx_gte: String + createdAtTx_in: [String!] + createdAtTx_lt: String + createdAtTx_lte: String + createdAtTx_not: String + createdAtTx_not_contains: String + createdAtTx_not_ends_with: String + createdAtTx_not_in: [String!] + createdAtTx_not_starts_with: String + createdAtTx_starts_with: String + feeBTC: BigDecimal + feeBTC_gt: BigDecimal + feeBTC_gte: BigDecimal + feeBTC_in: [BigDecimal!] + feeBTC_lt: BigDecimal + feeBTC_lte: BigDecimal + feeBTC_not: BigDecimal + feeBTC_not_in: [BigDecimal!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + nonce: Int + nonce_gt: Int + nonce_gte: Int + nonce_in: [Int!] + nonce_lt: Int + nonce_lte: Int + nonce_not: Int + nonce_not_in: [Int!] + status: BitcoinTransferStatus + status_in: [BitcoinTransferStatus!] + status_not: BitcoinTransferStatus + status_not_in: [BitcoinTransferStatus!] + totalAmountBTC: BigDecimal + totalAmountBTC_gt: BigDecimal + totalAmountBTC_gte: BigDecimal + totalAmountBTC_in: [BigDecimal!] + totalAmountBTC_lt: BigDecimal + totalAmountBTC_lte: BigDecimal + totalAmountBTC_not: BigDecimal + totalAmountBTC_not_in: [BigDecimal!] + updatedAtBlockNumber: Int + updatedAtBlockNumber_gt: Int + updatedAtBlockNumber_gte: Int + updatedAtBlockNumber_in: [Int!] + updatedAtBlockNumber_lt: Int + updatedAtBlockNumber_lte: Int + updatedAtBlockNumber_not: Int + updatedAtBlockNumber_not_in: [Int!] + updatedAtTimestamp: Int + updatedAtTimestamp_gt: Int + updatedAtTimestamp_gte: Int + updatedAtTimestamp_in: [Int!] + updatedAtTimestamp_lt: Int + updatedAtTimestamp_lte: Int + updatedAtTimestamp_not: Int + updatedAtTimestamp_not_in: [Int!] + updatedAtTx: String + updatedAtTx_contains: String + updatedAtTx_ends_with: String + updatedAtTx_gt: String + updatedAtTx_gte: String + updatedAtTx_in: [String!] + updatedAtTx_lt: String + updatedAtTx_lte: String + updatedAtTx_not: String + updatedAtTx_not_contains: String + updatedAtTx_not_ends_with: String + updatedAtTx_not_in: [String!] + updatedAtTx_not_starts_with: String + updatedAtTx_starts_with: String + user: String + user_contains: String + user_ends_with: String + user_gt: String + user_gte: String + user_in: [String!] + user_lt: String + user_lte: String + user_not: String + user_not_contains: String + user_not_ends_with: String + user_not_in: [String!] + user_not_starts_with: String + user_starts_with: String +} + +enum BitcoinTransfer_orderBy { + amountBTC + bitcoinTxHash + btcAddress + createdAtBlockNumber + createdAtTimestamp + createdAtTx + feeBTC + id + nonce + status + totalAmountBTC + updatedAtBlockNumber + updatedAtTimestamp + updatedAtTx + user +} + +input Block_height { + hash: Bytes + number: Int + number_gte: Int +} + +"Granular event data for the Loan entity. Emitted when a user Borrows (takes out a loan)\n" +type Borrow { + collateralToLoanRate: BigDecimal! + collateralToken: Bytes! + currentMargin: BigDecimal! + emittedBy: Bytes! + id: ID! + interestDuration: BigDecimal! + interestRate: BigDecimal! + lender: Bytes! + loanId: Loan! + loanToken: Bytes! + newCollateral: BigDecimal! + newPrincipal: BigDecimal! + timestamp: Int! + transaction: Transaction! + user: User! +} + +input Borrow_filter { + collateralToLoanRate: BigDecimal + collateralToLoanRate_gt: BigDecimal + collateralToLoanRate_gte: BigDecimal + collateralToLoanRate_in: [BigDecimal!] + collateralToLoanRate_lt: BigDecimal + collateralToLoanRate_lte: BigDecimal + collateralToLoanRate_not: BigDecimal + collateralToLoanRate_not_in: [BigDecimal!] + collateralToken: Bytes + collateralToken_contains: Bytes + collateralToken_in: [Bytes!] + collateralToken_not: Bytes + collateralToken_not_contains: Bytes + collateralToken_not_in: [Bytes!] + currentMargin: BigDecimal + currentMargin_gt: BigDecimal + currentMargin_gte: BigDecimal + currentMargin_in: [BigDecimal!] + currentMargin_lt: BigDecimal + currentMargin_lte: BigDecimal + currentMargin_not: BigDecimal + currentMargin_not_in: [BigDecimal!] + emittedBy: Bytes + emittedBy_contains: Bytes + emittedBy_in: [Bytes!] + emittedBy_not: Bytes + emittedBy_not_contains: Bytes + emittedBy_not_in: [Bytes!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + interestDuration: BigDecimal + interestDuration_gt: BigDecimal + interestDuration_gte: BigDecimal + interestDuration_in: [BigDecimal!] + interestDuration_lt: BigDecimal + interestDuration_lte: BigDecimal + interestDuration_not: BigDecimal + interestDuration_not_in: [BigDecimal!] + interestRate: BigDecimal + interestRate_gt: BigDecimal + interestRate_gte: BigDecimal + interestRate_in: [BigDecimal!] + interestRate_lt: BigDecimal + interestRate_lte: BigDecimal + interestRate_not: BigDecimal + interestRate_not_in: [BigDecimal!] + lender: Bytes + lender_contains: Bytes + lender_in: [Bytes!] + lender_not: Bytes + lender_not_contains: Bytes + lender_not_in: [Bytes!] + loanId: String + loanId_contains: String + loanId_ends_with: String + loanId_gt: String + loanId_gte: String + loanId_in: [String!] + loanId_lt: String + loanId_lte: String + loanId_not: String + loanId_not_contains: String + loanId_not_ends_with: String + loanId_not_in: [String!] + loanId_not_starts_with: String + loanId_starts_with: String + loanToken: Bytes + loanToken_contains: Bytes + loanToken_in: [Bytes!] + loanToken_not: Bytes + loanToken_not_contains: Bytes + loanToken_not_in: [Bytes!] + newCollateral: BigDecimal + newCollateral_gt: BigDecimal + newCollateral_gte: BigDecimal + newCollateral_in: [BigDecimal!] + newCollateral_lt: BigDecimal + newCollateral_lte: BigDecimal + newCollateral_not: BigDecimal + newCollateral_not_in: [BigDecimal!] + newPrincipal: BigDecimal + newPrincipal_gt: BigDecimal + newPrincipal_gte: BigDecimal + newPrincipal_in: [BigDecimal!] + newPrincipal_lt: BigDecimal + newPrincipal_lte: BigDecimal + newPrincipal_not: BigDecimal + newPrincipal_not_in: [BigDecimal!] + timestamp: Int + timestamp_gt: Int + timestamp_gte: Int + timestamp_in: [Int!] + timestamp_lt: Int + timestamp_lte: Int + timestamp_not: Int + timestamp_not_in: [Int!] + transaction: String + transaction_contains: String + transaction_ends_with: String + transaction_gt: String + transaction_gte: String + transaction_in: [String!] + transaction_lt: String + transaction_lte: String + transaction_not: String + transaction_not_contains: String + transaction_not_ends_with: String + transaction_not_in: [String!] + transaction_not_starts_with: String + transaction_starts_with: String + user: String + user_contains: String + user_ends_with: String + user_gt: String + user_gte: String + user_in: [String!] + user_lt: String + user_lte: String + user_not: String + user_not_contains: String + user_not_ends_with: String + user_not_in: [String!] + user_not_starts_with: String + user_starts_with: String +} + +enum Borrow_orderBy { + collateralToLoanRate + collateralToken + currentMargin + emittedBy + id + interestDuration + interestRate + lender + loanId + loanToken + newCollateral + newPrincipal + timestamp + transaction + user +} + +"Cross Chain Bridge\n" +type Bridge { + "CreatedAtTx - The bridge creation transaction\n" + createdAtTx: Transaction! + + "Federation - the Federation entity associated with this bridge\n" + federation: Federation! + + "Bridge ID - Bridge Contract Address\n" + id: ID! + + "isPaused - Indicates if the bridge is currently paused\n" + isPaused: Boolean! + + "isSuffix - is suffix or prefix\n" + isSuffix: Boolean + + "isUpgrading - Indicates if the bridge is currently upgrading\n" + isUpgrading: Boolean! + + "Pausers - an array of addresses authorized to pause the bridge\n" + pausers: [Bytes!]! + + "Prefix - prefix added to sideTokens symbol when created\n" + prefix: String + + "BridgeType - there are currently only two bridges - RSK_BSC and RSK_ETH\n" + type: BridgeType! + + "UpdatedAtTx - The bridge last updated at this transaction\n" + updatedAtTx: Transaction! +} + +enum BridgeChain { + BSC + ETH + RSK +} + +"BridgeType - only 2 bridges at the moment - RSK <-> BSC and RSK <-> ETH\n" +enum BridgeType { + RSK_BSC + RSK_ETH +} + +input Bridge_filter { + createdAtTx: String + createdAtTx_contains: String + createdAtTx_ends_with: String + createdAtTx_gt: String + createdAtTx_gte: String + createdAtTx_in: [String!] + createdAtTx_lt: String + createdAtTx_lte: String + createdAtTx_not: String + createdAtTx_not_contains: String + createdAtTx_not_ends_with: String + createdAtTx_not_in: [String!] + createdAtTx_not_starts_with: String + createdAtTx_starts_with: String + federation: String + federation_contains: String + federation_ends_with: String + federation_gt: String + federation_gte: String + federation_in: [String!] + federation_lt: String + federation_lte: String + federation_not: String + federation_not_contains: String + federation_not_ends_with: String + federation_not_in: [String!] + federation_not_starts_with: String + federation_starts_with: String + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + isPaused: Boolean + isPaused_in: [Boolean!] + isPaused_not: Boolean + isPaused_not_in: [Boolean!] + isSuffix: Boolean + isSuffix_in: [Boolean!] + isSuffix_not: Boolean + isSuffix_not_in: [Boolean!] + isUpgrading: Boolean + isUpgrading_in: [Boolean!] + isUpgrading_not: Boolean + isUpgrading_not_in: [Boolean!] + pausers: [Bytes!] + pausers_contains: [Bytes!] + pausers_not: [Bytes!] + pausers_not_contains: [Bytes!] + prefix: String + prefix_contains: String + prefix_ends_with: String + prefix_gt: String + prefix_gte: String + prefix_in: [String!] + prefix_lt: String + prefix_lte: String + prefix_not: String + prefix_not_contains: String + prefix_not_ends_with: String + prefix_not_in: [String!] + prefix_not_starts_with: String + prefix_starts_with: String + type: BridgeType + type_in: [BridgeType!] + type_not: BridgeType + type_not_in: [BridgeType!] + updatedAtTx: String + updatedAtTx_contains: String + updatedAtTx_ends_with: String + updatedAtTx_gt: String + updatedAtTx_gte: String + updatedAtTx_in: [String!] + updatedAtTx_lt: String + updatedAtTx_lte: String + updatedAtTx_not: String + updatedAtTx_not_contains: String + updatedAtTx_not_ends_with: String + updatedAtTx_not_in: [String!] + updatedAtTx_not_starts_with: String + updatedAtTx_starts_with: String +} + +enum Bridge_orderBy { + createdAtTx + federation + id + isPaused + isSuffix + isUpgrading + pausers + prefix + type + updatedAtTx +} + +scalar Bytes + +type CandleStickDay implements ICandleStick { + baseToken: Token + close: BigDecimal! + high: BigDecimal! + id: ID! + low: BigDecimal! + open: BigDecimal + periodStartUnix: Int! + quoteToken: Token + totalVolume: BigDecimal! + txCount: Int! +} + +input CandleStickDay_filter { + baseToken: String + baseToken_contains: String + baseToken_ends_with: String + baseToken_gt: String + baseToken_gte: String + baseToken_in: [String!] + baseToken_lt: String + baseToken_lte: String + baseToken_not: String + baseToken_not_contains: String + baseToken_not_ends_with: String + baseToken_not_in: [String!] + baseToken_not_starts_with: String + baseToken_starts_with: String + close: BigDecimal + close_gt: BigDecimal + close_gte: BigDecimal + close_in: [BigDecimal!] + close_lt: BigDecimal + close_lte: BigDecimal + close_not: BigDecimal + close_not_in: [BigDecimal!] + high: BigDecimal + high_gt: BigDecimal + high_gte: BigDecimal + high_in: [BigDecimal!] + high_lt: BigDecimal + high_lte: BigDecimal + high_not: BigDecimal + high_not_in: [BigDecimal!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + low: BigDecimal + low_gt: BigDecimal + low_gte: BigDecimal + low_in: [BigDecimal!] + low_lt: BigDecimal + low_lte: BigDecimal + low_not: BigDecimal + low_not_in: [BigDecimal!] + open: BigDecimal + open_gt: BigDecimal + open_gte: BigDecimal + open_in: [BigDecimal!] + open_lt: BigDecimal + open_lte: BigDecimal + open_not: BigDecimal + open_not_in: [BigDecimal!] + periodStartUnix: Int + periodStartUnix_gt: Int + periodStartUnix_gte: Int + periodStartUnix_in: [Int!] + periodStartUnix_lt: Int + periodStartUnix_lte: Int + periodStartUnix_not: Int + periodStartUnix_not_in: [Int!] + quoteToken: String + quoteToken_contains: String + quoteToken_ends_with: String + quoteToken_gt: String + quoteToken_gte: String + quoteToken_in: [String!] + quoteToken_lt: String + quoteToken_lte: String + quoteToken_not: String + quoteToken_not_contains: String + quoteToken_not_ends_with: String + quoteToken_not_in: [String!] + quoteToken_not_starts_with: String + quoteToken_starts_with: String + totalVolume: BigDecimal + totalVolume_gt: BigDecimal + totalVolume_gte: BigDecimal + totalVolume_in: [BigDecimal!] + totalVolume_lt: BigDecimal + totalVolume_lte: BigDecimal + totalVolume_not: BigDecimal + totalVolume_not_in: [BigDecimal!] + txCount: Int + txCount_gt: Int + txCount_gte: Int + txCount_in: [Int!] + txCount_lt: Int + txCount_lte: Int + txCount_not: Int + txCount_not_in: [Int!] +} + +enum CandleStickDay_orderBy { + baseToken + close + high + id + low + open + periodStartUnix + quoteToken + totalVolume + txCount +} + +type CandleStickFifteenMinute implements ICandleStick { + baseToken: Token + close: BigDecimal! + high: BigDecimal! + id: ID! + low: BigDecimal! + open: BigDecimal + periodStartUnix: Int! + quoteToken: Token + totalVolume: BigDecimal! + txCount: Int! +} + +input CandleStickFifteenMinute_filter { + baseToken: String + baseToken_contains: String + baseToken_ends_with: String + baseToken_gt: String + baseToken_gte: String + baseToken_in: [String!] + baseToken_lt: String + baseToken_lte: String + baseToken_not: String + baseToken_not_contains: String + baseToken_not_ends_with: String + baseToken_not_in: [String!] + baseToken_not_starts_with: String + baseToken_starts_with: String + close: BigDecimal + close_gt: BigDecimal + close_gte: BigDecimal + close_in: [BigDecimal!] + close_lt: BigDecimal + close_lte: BigDecimal + close_not: BigDecimal + close_not_in: [BigDecimal!] + high: BigDecimal + high_gt: BigDecimal + high_gte: BigDecimal + high_in: [BigDecimal!] + high_lt: BigDecimal + high_lte: BigDecimal + high_not: BigDecimal + high_not_in: [BigDecimal!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + low: BigDecimal + low_gt: BigDecimal + low_gte: BigDecimal + low_in: [BigDecimal!] + low_lt: BigDecimal + low_lte: BigDecimal + low_not: BigDecimal + low_not_in: [BigDecimal!] + open: BigDecimal + open_gt: BigDecimal + open_gte: BigDecimal + open_in: [BigDecimal!] + open_lt: BigDecimal + open_lte: BigDecimal + open_not: BigDecimal + open_not_in: [BigDecimal!] + periodStartUnix: Int + periodStartUnix_gt: Int + periodStartUnix_gte: Int + periodStartUnix_in: [Int!] + periodStartUnix_lt: Int + periodStartUnix_lte: Int + periodStartUnix_not: Int + periodStartUnix_not_in: [Int!] + quoteToken: String + quoteToken_contains: String + quoteToken_ends_with: String + quoteToken_gt: String + quoteToken_gte: String + quoteToken_in: [String!] + quoteToken_lt: String + quoteToken_lte: String + quoteToken_not: String + quoteToken_not_contains: String + quoteToken_not_ends_with: String + quoteToken_not_in: [String!] + quoteToken_not_starts_with: String + quoteToken_starts_with: String + totalVolume: BigDecimal + totalVolume_gt: BigDecimal + totalVolume_gte: BigDecimal + totalVolume_in: [BigDecimal!] + totalVolume_lt: BigDecimal + totalVolume_lte: BigDecimal + totalVolume_not: BigDecimal + totalVolume_not_in: [BigDecimal!] + txCount: Int + txCount_gt: Int + txCount_gte: Int + txCount_in: [Int!] + txCount_lt: Int + txCount_lte: Int + txCount_not: Int + txCount_not_in: [Int!] +} + +enum CandleStickFifteenMinute_orderBy { + baseToken + close + high + id + low + open + periodStartUnix + quoteToken + totalVolume + txCount +} + +type CandleStickFourHour implements ICandleStick { + baseToken: Token + close: BigDecimal! + high: BigDecimal! + id: ID! + low: BigDecimal! + open: BigDecimal + periodStartUnix: Int! + quoteToken: Token + totalVolume: BigDecimal! + txCount: Int! +} + +input CandleStickFourHour_filter { + baseToken: String + baseToken_contains: String + baseToken_ends_with: String + baseToken_gt: String + baseToken_gte: String + baseToken_in: [String!] + baseToken_lt: String + baseToken_lte: String + baseToken_not: String + baseToken_not_contains: String + baseToken_not_ends_with: String + baseToken_not_in: [String!] + baseToken_not_starts_with: String + baseToken_starts_with: String + close: BigDecimal + close_gt: BigDecimal + close_gte: BigDecimal + close_in: [BigDecimal!] + close_lt: BigDecimal + close_lte: BigDecimal + close_not: BigDecimal + close_not_in: [BigDecimal!] + high: BigDecimal + high_gt: BigDecimal + high_gte: BigDecimal + high_in: [BigDecimal!] + high_lt: BigDecimal + high_lte: BigDecimal + high_not: BigDecimal + high_not_in: [BigDecimal!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + low: BigDecimal + low_gt: BigDecimal + low_gte: BigDecimal + low_in: [BigDecimal!] + low_lt: BigDecimal + low_lte: BigDecimal + low_not: BigDecimal + low_not_in: [BigDecimal!] + open: BigDecimal + open_gt: BigDecimal + open_gte: BigDecimal + open_in: [BigDecimal!] + open_lt: BigDecimal + open_lte: BigDecimal + open_not: BigDecimal + open_not_in: [BigDecimal!] + periodStartUnix: Int + periodStartUnix_gt: Int + periodStartUnix_gte: Int + periodStartUnix_in: [Int!] + periodStartUnix_lt: Int + periodStartUnix_lte: Int + periodStartUnix_not: Int + periodStartUnix_not_in: [Int!] + quoteToken: String + quoteToken_contains: String + quoteToken_ends_with: String + quoteToken_gt: String + quoteToken_gte: String + quoteToken_in: [String!] + quoteToken_lt: String + quoteToken_lte: String + quoteToken_not: String + quoteToken_not_contains: String + quoteToken_not_ends_with: String + quoteToken_not_in: [String!] + quoteToken_not_starts_with: String + quoteToken_starts_with: String + totalVolume: BigDecimal + totalVolume_gt: BigDecimal + totalVolume_gte: BigDecimal + totalVolume_in: [BigDecimal!] + totalVolume_lt: BigDecimal + totalVolume_lte: BigDecimal + totalVolume_not: BigDecimal + totalVolume_not_in: [BigDecimal!] + txCount: Int + txCount_gt: Int + txCount_gte: Int + txCount_in: [Int!] + txCount_lt: Int + txCount_lte: Int + txCount_not: Int + txCount_not_in: [Int!] +} + +enum CandleStickFourHour_orderBy { + baseToken + close + high + id + low + open + periodStartUnix + quoteToken + totalVolume + txCount +} + +type CandleStickHour implements ICandleStick { + baseToken: Token + close: BigDecimal! + high: BigDecimal! + id: ID! + low: BigDecimal! + open: BigDecimal + periodStartUnix: Int! + quoteToken: Token + totalVolume: BigDecimal! + txCount: Int! +} + +input CandleStickHour_filter { + baseToken: String + baseToken_contains: String + baseToken_ends_with: String + baseToken_gt: String + baseToken_gte: String + baseToken_in: [String!] + baseToken_lt: String + baseToken_lte: String + baseToken_not: String + baseToken_not_contains: String + baseToken_not_ends_with: String + baseToken_not_in: [String!] + baseToken_not_starts_with: String + baseToken_starts_with: String + close: BigDecimal + close_gt: BigDecimal + close_gte: BigDecimal + close_in: [BigDecimal!] + close_lt: BigDecimal + close_lte: BigDecimal + close_not: BigDecimal + close_not_in: [BigDecimal!] + high: BigDecimal + high_gt: BigDecimal + high_gte: BigDecimal + high_in: [BigDecimal!] + high_lt: BigDecimal + high_lte: BigDecimal + high_not: BigDecimal + high_not_in: [BigDecimal!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + low: BigDecimal + low_gt: BigDecimal + low_gte: BigDecimal + low_in: [BigDecimal!] + low_lt: BigDecimal + low_lte: BigDecimal + low_not: BigDecimal + low_not_in: [BigDecimal!] + open: BigDecimal + open_gt: BigDecimal + open_gte: BigDecimal + open_in: [BigDecimal!] + open_lt: BigDecimal + open_lte: BigDecimal + open_not: BigDecimal + open_not_in: [BigDecimal!] + periodStartUnix: Int + periodStartUnix_gt: Int + periodStartUnix_gte: Int + periodStartUnix_in: [Int!] + periodStartUnix_lt: Int + periodStartUnix_lte: Int + periodStartUnix_not: Int + periodStartUnix_not_in: [Int!] + quoteToken: String + quoteToken_contains: String + quoteToken_ends_with: String + quoteToken_gt: String + quoteToken_gte: String + quoteToken_in: [String!] + quoteToken_lt: String + quoteToken_lte: String + quoteToken_not: String + quoteToken_not_contains: String + quoteToken_not_ends_with: String + quoteToken_not_in: [String!] + quoteToken_not_starts_with: String + quoteToken_starts_with: String + totalVolume: BigDecimal + totalVolume_gt: BigDecimal + totalVolume_gte: BigDecimal + totalVolume_in: [BigDecimal!] + totalVolume_lt: BigDecimal + totalVolume_lte: BigDecimal + totalVolume_not: BigDecimal + totalVolume_not_in: [BigDecimal!] + txCount: Int + txCount_gt: Int + txCount_gte: Int + txCount_in: [Int!] + txCount_lt: Int + txCount_lte: Int + txCount_not: Int + txCount_not_in: [Int!] +} + +enum CandleStickHour_orderBy { + baseToken + close + high + id + low + open + periodStartUnix + quoteToken + totalVolume + txCount +} + +type CandleStickMinute implements ICandleStick { + baseToken: Token + close: BigDecimal! + high: BigDecimal! + id: ID! + low: BigDecimal! + open: BigDecimal + periodStartUnix: Int! + quoteToken: Token + totalVolume: BigDecimal! + txCount: Int! +} + +input CandleStickMinute_filter { + baseToken: String + baseToken_contains: String + baseToken_ends_with: String + baseToken_gt: String + baseToken_gte: String + baseToken_in: [String!] + baseToken_lt: String + baseToken_lte: String + baseToken_not: String + baseToken_not_contains: String + baseToken_not_ends_with: String + baseToken_not_in: [String!] + baseToken_not_starts_with: String + baseToken_starts_with: String + close: BigDecimal + close_gt: BigDecimal + close_gte: BigDecimal + close_in: [BigDecimal!] + close_lt: BigDecimal + close_lte: BigDecimal + close_not: BigDecimal + close_not_in: [BigDecimal!] + high: BigDecimal + high_gt: BigDecimal + high_gte: BigDecimal + high_in: [BigDecimal!] + high_lt: BigDecimal + high_lte: BigDecimal + high_not: BigDecimal + high_not_in: [BigDecimal!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + low: BigDecimal + low_gt: BigDecimal + low_gte: BigDecimal + low_in: [BigDecimal!] + low_lt: BigDecimal + low_lte: BigDecimal + low_not: BigDecimal + low_not_in: [BigDecimal!] + open: BigDecimal + open_gt: BigDecimal + open_gte: BigDecimal + open_in: [BigDecimal!] + open_lt: BigDecimal + open_lte: BigDecimal + open_not: BigDecimal + open_not_in: [BigDecimal!] + periodStartUnix: Int + periodStartUnix_gt: Int + periodStartUnix_gte: Int + periodStartUnix_in: [Int!] + periodStartUnix_lt: Int + periodStartUnix_lte: Int + periodStartUnix_not: Int + periodStartUnix_not_in: [Int!] + quoteToken: String + quoteToken_contains: String + quoteToken_ends_with: String + quoteToken_gt: String + quoteToken_gte: String + quoteToken_in: [String!] + quoteToken_lt: String + quoteToken_lte: String + quoteToken_not: String + quoteToken_not_contains: String + quoteToken_not_ends_with: String + quoteToken_not_in: [String!] + quoteToken_not_starts_with: String + quoteToken_starts_with: String + totalVolume: BigDecimal + totalVolume_gt: BigDecimal + totalVolume_gte: BigDecimal + totalVolume_in: [BigDecimal!] + totalVolume_lt: BigDecimal + totalVolume_lte: BigDecimal + totalVolume_not: BigDecimal + totalVolume_not_in: [BigDecimal!] + txCount: Int + txCount_gt: Int + txCount_gte: Int + txCount_in: [Int!] + txCount_lt: Int + txCount_lte: Int + txCount_not: Int + txCount_not_in: [Int!] +} + +enum CandleStickMinute_orderBy { + baseToken + close + high + id + low + open + periodStartUnix + quoteToken + totalVolume + txCount +} + +enum CandleSticksInterval { + DayInterval + FifteenMinutesInterval + FourHourInterval + HourInterval + MinuteInterval +} + +"Granular event data for the Loan entity. Emitted when a user closes a loan initiated by a Borrow event\n" +type CloseWithDeposit { + closer: Bytes! + collateralToLoanRate: BigDecimal! + collateralToken: Bytes! + collateralWithdrawAmount: BigDecimal! + currentMargin: BigDecimal! + emittedBy: Bytes! + id: ID! + lender: Bytes! + loanId: Loan! + loanToken: Bytes! + repayAmount: BigDecimal! + timestamp: Int! + transaction: Transaction! + user: Bytes! +} + +input CloseWithDeposit_filter { + closer: Bytes + closer_contains: Bytes + closer_in: [Bytes!] + closer_not: Bytes + closer_not_contains: Bytes + closer_not_in: [Bytes!] + collateralToLoanRate: BigDecimal + collateralToLoanRate_gt: BigDecimal + collateralToLoanRate_gte: BigDecimal + collateralToLoanRate_in: [BigDecimal!] + collateralToLoanRate_lt: BigDecimal + collateralToLoanRate_lte: BigDecimal + collateralToLoanRate_not: BigDecimal + collateralToLoanRate_not_in: [BigDecimal!] + collateralToken: Bytes + collateralToken_contains: Bytes + collateralToken_in: [Bytes!] + collateralToken_not: Bytes + collateralToken_not_contains: Bytes + collateralToken_not_in: [Bytes!] + collateralWithdrawAmount: BigDecimal + collateralWithdrawAmount_gt: BigDecimal + collateralWithdrawAmount_gte: BigDecimal + collateralWithdrawAmount_in: [BigDecimal!] + collateralWithdrawAmount_lt: BigDecimal + collateralWithdrawAmount_lte: BigDecimal + collateralWithdrawAmount_not: BigDecimal + collateralWithdrawAmount_not_in: [BigDecimal!] + currentMargin: BigDecimal + currentMargin_gt: BigDecimal + currentMargin_gte: BigDecimal + currentMargin_in: [BigDecimal!] + currentMargin_lt: BigDecimal + currentMargin_lte: BigDecimal + currentMargin_not: BigDecimal + currentMargin_not_in: [BigDecimal!] + emittedBy: Bytes + emittedBy_contains: Bytes + emittedBy_in: [Bytes!] + emittedBy_not: Bytes + emittedBy_not_contains: Bytes + emittedBy_not_in: [Bytes!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + lender: Bytes + lender_contains: Bytes + lender_in: [Bytes!] + lender_not: Bytes + lender_not_contains: Bytes + lender_not_in: [Bytes!] + loanId: String + loanId_contains: String + loanId_ends_with: String + loanId_gt: String + loanId_gte: String + loanId_in: [String!] + loanId_lt: String + loanId_lte: String + loanId_not: String + loanId_not_contains: String + loanId_not_ends_with: String + loanId_not_in: [String!] + loanId_not_starts_with: String + loanId_starts_with: String + loanToken: Bytes + loanToken_contains: Bytes + loanToken_in: [Bytes!] + loanToken_not: Bytes + loanToken_not_contains: Bytes + loanToken_not_in: [Bytes!] + repayAmount: BigDecimal + repayAmount_gt: BigDecimal + repayAmount_gte: BigDecimal + repayAmount_in: [BigDecimal!] + repayAmount_lt: BigDecimal + repayAmount_lte: BigDecimal + repayAmount_not: BigDecimal + repayAmount_not_in: [BigDecimal!] + timestamp: Int + timestamp_gt: Int + timestamp_gte: Int + timestamp_in: [Int!] + timestamp_lt: Int + timestamp_lte: Int + timestamp_not: Int + timestamp_not_in: [Int!] + transaction: String + transaction_contains: String + transaction_ends_with: String + transaction_gt: String + transaction_gte: String + transaction_in: [String!] + transaction_lt: String + transaction_lte: String + transaction_not: String + transaction_not_contains: String + transaction_not_ends_with: String + transaction_not_in: [String!] + transaction_not_starts_with: String + transaction_starts_with: String + user: Bytes + user_contains: Bytes + user_in: [Bytes!] + user_not: Bytes + user_not_contains: Bytes + user_not_in: [Bytes!] +} + +enum CloseWithDeposit_orderBy { + closer + collateralToLoanRate + collateralToken + collateralWithdrawAmount + currentMargin + emittedBy + id + lender + loanId + loanToken + repayAmount + timestamp + transaction + user +} + +"Granular event data for the Loan entity. Emitted when a user closes a loan initiated by a Margin Trade\n" +type CloseWithSwap { + closer: Bytes! + collateralToken: Bytes! + + "Leverage on the smart contract does not count user-provided collateral.\nSo, what would on the dapp be a 2x leverage trade would be a 1 here\n" + currentLeverage: BigDecimal! + emittedBy: Bytes! + exitPrice: BigDecimal! + id: ID! + lender: Bytes! + loanCloseAmount: BigDecimal! + loanId: Loan! + loanToken: Bytes! + positionCloseSize: BigDecimal! + timestamp: Int! + transaction: Transaction! + user: Bytes! +} + +input CloseWithSwap_filter { + closer: Bytes + closer_contains: Bytes + closer_in: [Bytes!] + closer_not: Bytes + closer_not_contains: Bytes + closer_not_in: [Bytes!] + collateralToken: Bytes + collateralToken_contains: Bytes + collateralToken_in: [Bytes!] + collateralToken_not: Bytes + collateralToken_not_contains: Bytes + collateralToken_not_in: [Bytes!] + currentLeverage: BigDecimal + currentLeverage_gt: BigDecimal + currentLeverage_gte: BigDecimal + currentLeverage_in: [BigDecimal!] + currentLeverage_lt: BigDecimal + currentLeverage_lte: BigDecimal + currentLeverage_not: BigDecimal + currentLeverage_not_in: [BigDecimal!] + emittedBy: Bytes + emittedBy_contains: Bytes + emittedBy_in: [Bytes!] + emittedBy_not: Bytes + emittedBy_not_contains: Bytes + emittedBy_not_in: [Bytes!] + exitPrice: BigDecimal + exitPrice_gt: BigDecimal + exitPrice_gte: BigDecimal + exitPrice_in: [BigDecimal!] + exitPrice_lt: BigDecimal + exitPrice_lte: BigDecimal + exitPrice_not: BigDecimal + exitPrice_not_in: [BigDecimal!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + lender: Bytes + lender_contains: Bytes + lender_in: [Bytes!] + lender_not: Bytes + lender_not_contains: Bytes + lender_not_in: [Bytes!] + loanCloseAmount: BigDecimal + loanCloseAmount_gt: BigDecimal + loanCloseAmount_gte: BigDecimal + loanCloseAmount_in: [BigDecimal!] + loanCloseAmount_lt: BigDecimal + loanCloseAmount_lte: BigDecimal + loanCloseAmount_not: BigDecimal + loanCloseAmount_not_in: [BigDecimal!] + loanId: String + loanId_contains: String + loanId_ends_with: String + loanId_gt: String + loanId_gte: String + loanId_in: [String!] + loanId_lt: String + loanId_lte: String + loanId_not: String + loanId_not_contains: String + loanId_not_ends_with: String + loanId_not_in: [String!] + loanId_not_starts_with: String + loanId_starts_with: String + loanToken: Bytes + loanToken_contains: Bytes + loanToken_in: [Bytes!] + loanToken_not: Bytes + loanToken_not_contains: Bytes + loanToken_not_in: [Bytes!] + positionCloseSize: BigDecimal + positionCloseSize_gt: BigDecimal + positionCloseSize_gte: BigDecimal + positionCloseSize_in: [BigDecimal!] + positionCloseSize_lt: BigDecimal + positionCloseSize_lte: BigDecimal + positionCloseSize_not: BigDecimal + positionCloseSize_not_in: [BigDecimal!] + timestamp: Int + timestamp_gt: Int + timestamp_gte: Int + timestamp_in: [Int!] + timestamp_lt: Int + timestamp_lte: Int + timestamp_not: Int + timestamp_not_in: [Int!] + transaction: String + transaction_contains: String + transaction_ends_with: String + transaction_gt: String + transaction_gte: String + transaction_in: [String!] + transaction_lt: String + transaction_lte: String + transaction_not: String + transaction_not_contains: String + transaction_not_ends_with: String + transaction_not_in: [String!] + transaction_not_starts_with: String + transaction_starts_with: String + user: Bytes + user_contains: Bytes + user_in: [Bytes!] + user_not: Bytes + user_not_contains: Bytes + user_not_in: [Bytes!] +} + +enum CloseWithSwap_orderBy { + closer + collateralToken + currentLeverage + emittedBy + exitPrice + id + lender + loanCloseAmount + loanId + loanToken + positionCloseSize + timestamp + transaction + user +} + +"Granular Conversion events, exactly as they appear on the contracts.\nThese events are the raw data that the Swap entity and candlestick entities are built from.\n" +type Conversion { + _amount: BigDecimal! + _conversionFee: BigDecimal! + _fromToken: Token! + _protocolFee: BigDecimal! + _return: BigDecimal! + _toToken: Token! + _trader: Bytes! + blockNumber: Int! + emittedBy: LiquidityPool! + id: ID! + timestamp: Int! + transaction: Transaction! +} + +input Conversion_filter { + _amount: BigDecimal + _amount_gt: BigDecimal + _amount_gte: BigDecimal + _amount_in: [BigDecimal!] + _amount_lt: BigDecimal + _amount_lte: BigDecimal + _amount_not: BigDecimal + _amount_not_in: [BigDecimal!] + _conversionFee: BigDecimal + _conversionFee_gt: BigDecimal + _conversionFee_gte: BigDecimal + _conversionFee_in: [BigDecimal!] + _conversionFee_lt: BigDecimal + _conversionFee_lte: BigDecimal + _conversionFee_not: BigDecimal + _conversionFee_not_in: [BigDecimal!] + _fromToken: String + _fromToken_contains: String + _fromToken_ends_with: String + _fromToken_gt: String + _fromToken_gte: String + _fromToken_in: [String!] + _fromToken_lt: String + _fromToken_lte: String + _fromToken_not: String + _fromToken_not_contains: String + _fromToken_not_ends_with: String + _fromToken_not_in: [String!] + _fromToken_not_starts_with: String + _fromToken_starts_with: String + _protocolFee: BigDecimal + _protocolFee_gt: BigDecimal + _protocolFee_gte: BigDecimal + _protocolFee_in: [BigDecimal!] + _protocolFee_lt: BigDecimal + _protocolFee_lte: BigDecimal + _protocolFee_not: BigDecimal + _protocolFee_not_in: [BigDecimal!] + _return: BigDecimal + _return_gt: BigDecimal + _return_gte: BigDecimal + _return_in: [BigDecimal!] + _return_lt: BigDecimal + _return_lte: BigDecimal + _return_not: BigDecimal + _return_not_in: [BigDecimal!] + _toToken: String + _toToken_contains: String + _toToken_ends_with: String + _toToken_gt: String + _toToken_gte: String + _toToken_in: [String!] + _toToken_lt: String + _toToken_lte: String + _toToken_not: String + _toToken_not_contains: String + _toToken_not_ends_with: String + _toToken_not_in: [String!] + _toToken_not_starts_with: String + _toToken_starts_with: String + _trader: Bytes + _trader_contains: Bytes + _trader_in: [Bytes!] + _trader_not: Bytes + _trader_not_contains: Bytes + _trader_not_in: [Bytes!] + blockNumber: Int + blockNumber_gt: Int + blockNumber_gte: Int + blockNumber_in: [Int!] + blockNumber_lt: Int + blockNumber_lte: Int + blockNumber_not: Int + blockNumber_not_in: [Int!] + emittedBy: String + emittedBy_contains: String + emittedBy_ends_with: String + emittedBy_gt: String + emittedBy_gte: String + emittedBy_in: [String!] + emittedBy_lt: String + emittedBy_lte: String + emittedBy_not: String + emittedBy_not_contains: String + emittedBy_not_ends_with: String + emittedBy_not_in: [String!] + emittedBy_not_starts_with: String + emittedBy_starts_with: String + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + timestamp: Int + timestamp_gt: Int + timestamp_gte: Int + timestamp_in: [Int!] + timestamp_lt: Int + timestamp_lte: Int + timestamp_not: Int + timestamp_not_in: [Int!] + transaction: String + transaction_contains: String + transaction_ends_with: String + transaction_gt: String + transaction_gte: String + transaction_in: [String!] + transaction_lt: String + transaction_lte: String + transaction_not: String + transaction_not_contains: String + transaction_not_ends_with: String + transaction_not_in: [String!] + transaction_not_starts_with: String + transaction_starts_with: String +} + +enum Conversion_orderBy { + _amount + _conversionFee + _fromToken + _protocolFee + _return + _toToken + _trader + blockNumber + emittedBy + id + timestamp + transaction +} + +"The ConverterRegistry registers each new AMM pool added to the Sovryn Protocol\n" +type ConverterRegistry { + "All ERC20 tokens in this registry\n" + connectorTokens( + first: Int = 100 + orderBy: Token_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: Token_filter + ): [Token!] + + "All the converters (AMM pools) associated with this registry\n" + converters( + first: Int = 100 + orderBy: LiquidityPool_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: LiquidityPool_filter + ): [LiquidityPool!] + + "ID is the address of the converter registry contract\n" + id: ID! + + "The number of active converters (AMM pools) in this registry\n" + numConverters: Int! + + "All smart tokens in this registry\n" + smartTokens( + first: Int = 100 + orderBy: SmartToken_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: SmartToken_filter + ): [SmartToken!] +} + +input ConverterRegistry_filter { + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + numConverters: Int + numConverters_gt: Int + numConverters_gte: Int + numConverters_in: [Int!] + numConverters_lt: Int + numConverters_lte: Int + numConverters_not: Int + numConverters_not_in: [Int!] +} + +enum ConverterRegistry_orderBy { + connectorTokens + converters + id + numConverters + smartTokens +} + +enum CrossDirection { + Incoming + Outgoing +} + +enum CrossStatus { + Executed + Revoked + Voting +} + +type CrossTransfer { + "Amount - the amount of originalToken transferred across the bridge\n" + amount: BigDecimal! + + "CreatedAtTimestamp - the timestamp at which this transfer was created\n" + createdAtTimestamp: Int! + + "CreatedAtTx - the transaction at which this transfer was created\n" + createdAtTx: Transaction! + + "DestinationChain - the destination chain - for outgoing it is BSC/ETH and for incoming it is RSK\n" + destinationChain: BridgeChain! + + "Direction - the direction of the cross transfer (Incoming or Outgoing)\n" + direction: CrossDirection! + + "Address of the user on the external chain (eg Ethereum, BSC etc.)\n" + externalUser: Bytes + + "Id - the cross transfer Id - for outgoing it is generated from the cross event params for incoming it is coming from the federation events\n" + id: ID! + + "originalTokenAddress - the original token address for the transfer (for outgoing it is just the RSK token address)\n" + originalTokenAddress: Bytes! + + "sideToken - the SideToken entity if exist of original token address\n" + sideToken: SideToken + + "sourceChain - the source chain - for outgoing it is RSK and for incoming it is BSC/ETH\n" + sourceChain: BridgeChain! + + "SourceChainBlockHash - the source chain block hash of the transfer, for outgoing transfers this is just the RSK block hash\n" + sourceChainBlockHash: Bytes + + "SourceChainTransactionHash - the source chain transaction hash of the transfer, for outgoing transfers this is just the RSK transaction hash\n" + sourceChainTransactionHash: Bytes + + "Status - transfer status - Voting, Executed, Revoked\n" + status: CrossStatus! + + "Symbol - the token symbol\n" + symbol: String + + "Token - the token entity if exist of original token address\n" + token: Token + + "TokenAddress - the token address for the transfer (only relevant for incoming transfers)\n" + tokenAddress: Bytes + + "updatedAtTimestamp - the timestamp at which this transfer was last updated\n" + updatedAtTimestamp: Int! + + "updatedAtTx - the transaction at which this transfer was last updated\n" + updatedAtTx: Transaction! + + "Address of the user on RSK chain\n" + user: User! + + "Votes - Number of votes cast for this transfer\n" + votes: Int +} + +input CrossTransfer_filter { + amount: BigDecimal + amount_gt: BigDecimal + amount_gte: BigDecimal + amount_in: [BigDecimal!] + amount_lt: BigDecimal + amount_lte: BigDecimal + amount_not: BigDecimal + amount_not_in: [BigDecimal!] + createdAtTimestamp: Int + createdAtTimestamp_gt: Int + createdAtTimestamp_gte: Int + createdAtTimestamp_in: [Int!] + createdAtTimestamp_lt: Int + createdAtTimestamp_lte: Int + createdAtTimestamp_not: Int + createdAtTimestamp_not_in: [Int!] + createdAtTx: String + createdAtTx_contains: String + createdAtTx_ends_with: String + createdAtTx_gt: String + createdAtTx_gte: String + createdAtTx_in: [String!] + createdAtTx_lt: String + createdAtTx_lte: String + createdAtTx_not: String + createdAtTx_not_contains: String + createdAtTx_not_ends_with: String + createdAtTx_not_in: [String!] + createdAtTx_not_starts_with: String + createdAtTx_starts_with: String + destinationChain: BridgeChain + destinationChain_in: [BridgeChain!] + destinationChain_not: BridgeChain + destinationChain_not_in: [BridgeChain!] + direction: CrossDirection + direction_in: [CrossDirection!] + direction_not: CrossDirection + direction_not_in: [CrossDirection!] + externalUser: Bytes + externalUser_contains: Bytes + externalUser_in: [Bytes!] + externalUser_not: Bytes + externalUser_not_contains: Bytes + externalUser_not_in: [Bytes!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + originalTokenAddress: Bytes + originalTokenAddress_contains: Bytes + originalTokenAddress_in: [Bytes!] + originalTokenAddress_not: Bytes + originalTokenAddress_not_contains: Bytes + originalTokenAddress_not_in: [Bytes!] + sideToken: String + sideToken_contains: String + sideToken_ends_with: String + sideToken_gt: String + sideToken_gte: String + sideToken_in: [String!] + sideToken_lt: String + sideToken_lte: String + sideToken_not: String + sideToken_not_contains: String + sideToken_not_ends_with: String + sideToken_not_in: [String!] + sideToken_not_starts_with: String + sideToken_starts_with: String + sourceChain: BridgeChain + sourceChainBlockHash: Bytes + sourceChainBlockHash_contains: Bytes + sourceChainBlockHash_in: [Bytes!] + sourceChainBlockHash_not: Bytes + sourceChainBlockHash_not_contains: Bytes + sourceChainBlockHash_not_in: [Bytes!] + sourceChainTransactionHash: Bytes + sourceChainTransactionHash_contains: Bytes + sourceChainTransactionHash_in: [Bytes!] + sourceChainTransactionHash_not: Bytes + sourceChainTransactionHash_not_contains: Bytes + sourceChainTransactionHash_not_in: [Bytes!] + sourceChain_in: [BridgeChain!] + sourceChain_not: BridgeChain + sourceChain_not_in: [BridgeChain!] + status: CrossStatus + status_in: [CrossStatus!] + status_not: CrossStatus + status_not_in: [CrossStatus!] + symbol: String + symbol_contains: String + symbol_ends_with: String + symbol_gt: String + symbol_gte: String + symbol_in: [String!] + symbol_lt: String + symbol_lte: String + symbol_not: String + symbol_not_contains: String + symbol_not_ends_with: String + symbol_not_in: [String!] + symbol_not_starts_with: String + symbol_starts_with: String + token: String + tokenAddress: Bytes + tokenAddress_contains: Bytes + tokenAddress_in: [Bytes!] + tokenAddress_not: Bytes + tokenAddress_not_contains: Bytes + tokenAddress_not_in: [Bytes!] + token_contains: String + token_ends_with: String + token_gt: String + token_gte: String + token_in: [String!] + token_lt: String + token_lte: String + token_not: String + token_not_contains: String + token_not_ends_with: String + token_not_in: [String!] + token_not_starts_with: String + token_starts_with: String + updatedAtTimestamp: Int + updatedAtTimestamp_gt: Int + updatedAtTimestamp_gte: Int + updatedAtTimestamp_in: [Int!] + updatedAtTimestamp_lt: Int + updatedAtTimestamp_lte: Int + updatedAtTimestamp_not: Int + updatedAtTimestamp_not_in: [Int!] + updatedAtTx: String + updatedAtTx_contains: String + updatedAtTx_ends_with: String + updatedAtTx_gt: String + updatedAtTx_gte: String + updatedAtTx_in: [String!] + updatedAtTx_lt: String + updatedAtTx_lte: String + updatedAtTx_not: String + updatedAtTx_not_contains: String + updatedAtTx_not_ends_with: String + updatedAtTx_not_in: [String!] + updatedAtTx_not_starts_with: String + updatedAtTx_starts_with: String + user: String + user_contains: String + user_ends_with: String + user_gt: String + user_gte: String + user_in: [String!] + user_lt: String + user_lte: String + user_not: String + user_not_contains: String + user_not_ends_with: String + user_not_in: [String!] + user_not_starts_with: String + user_starts_with: String + votes: Int + votes_gt: Int + votes_gte: Int + votes_in: [Int!] + votes_lt: Int + votes_lte: Int + votes_not: Int + votes_not_in: [Int!] +} + +enum CrossTransfer_orderBy { + amount + createdAtTimestamp + createdAtTx + destinationChain + direction + externalUser + id + originalTokenAddress + sideToken + sourceChain + sourceChainBlockHash + sourceChainTransactionHash + status + symbol + token + tokenAddress + updatedAtTimestamp + updatedAtTx + user + votes +} + +type Deposit { + amount: BigDecimal! + emittedBy: Bytes! + id: ID! + timestamp: Int! + to: Bytes! + transaction: Transaction! +} + +"Granular event data for the Loan entity. Emitted when a user closes adds collateral to a Margin Trade or Borrow\n" +type DepositCollateral { + depositAmount: BigDecimal! + emittedBy: Bytes! + id: ID! + loanId: Loan! + + "Rate is sometimes null because this property was not included in older versions of the contract\n" + rate: BigDecimal + timestamp: Int! + transaction: Transaction! +} + +input DepositCollateral_filter { + depositAmount: BigDecimal + depositAmount_gt: BigDecimal + depositAmount_gte: BigDecimal + depositAmount_in: [BigDecimal!] + depositAmount_lt: BigDecimal + depositAmount_lte: BigDecimal + depositAmount_not: BigDecimal + depositAmount_not_in: [BigDecimal!] + emittedBy: Bytes + emittedBy_contains: Bytes + emittedBy_in: [Bytes!] + emittedBy_not: Bytes + emittedBy_not_contains: Bytes + emittedBy_not_in: [Bytes!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + loanId: String + loanId_contains: String + loanId_ends_with: String + loanId_gt: String + loanId_gte: String + loanId_in: [String!] + loanId_lt: String + loanId_lte: String + loanId_not: String + loanId_not_contains: String + loanId_not_ends_with: String + loanId_not_in: [String!] + loanId_not_starts_with: String + loanId_starts_with: String + rate: BigDecimal + rate_gt: BigDecimal + rate_gte: BigDecimal + rate_in: [BigDecimal!] + rate_lt: BigDecimal + rate_lte: BigDecimal + rate_not: BigDecimal + rate_not_in: [BigDecimal!] + timestamp: Int + timestamp_gt: Int + timestamp_gte: Int + timestamp_in: [Int!] + timestamp_lt: Int + timestamp_lte: Int + timestamp_not: Int + timestamp_not_in: [Int!] + transaction: String + transaction_contains: String + transaction_ends_with: String + transaction_gt: String + transaction_gte: String + transaction_in: [String!] + transaction_lt: String + transaction_lte: String + transaction_not: String + transaction_not_contains: String + transaction_not_ends_with: String + transaction_not_in: [String!] + transaction_not_starts_with: String + transaction_starts_with: String +} + +enum DepositCollateral_orderBy { + depositAmount + emittedBy + id + loanId + rate + timestamp + transaction +} + +input Deposit_filter { + amount: BigDecimal + amount_gt: BigDecimal + amount_gte: BigDecimal + amount_in: [BigDecimal!] + amount_lt: BigDecimal + amount_lte: BigDecimal + amount_not: BigDecimal + amount_not_in: [BigDecimal!] + emittedBy: Bytes + emittedBy_contains: Bytes + emittedBy_in: [Bytes!] + emittedBy_not: Bytes + emittedBy_not_contains: Bytes + emittedBy_not_in: [Bytes!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + timestamp: Int + timestamp_gt: Int + timestamp_gte: Int + timestamp_in: [Int!] + timestamp_lt: Int + timestamp_lte: Int + timestamp_not: Int + timestamp_not_in: [Int!] + to: Bytes + to_contains: Bytes + to_in: [Bytes!] + to_not: Bytes + to_not_contains: Bytes + to_not_in: [Bytes!] + transaction: String + transaction_contains: String + transaction_ends_with: String + transaction_gt: String + transaction_gte: String + transaction_in: [String!] + transaction_lt: String + transaction_lte: String + transaction_not: String + transaction_not_contains: String + transaction_not_ends_with: String + transaction_not_in: [String!] + transaction_not_starts_with: String + transaction_starts_with: String +} + +enum Deposit_orderBy { + amount + emittedBy + id + timestamp + to + transaction +} + +type FastBTCBridgeStat { + createdAtTx: Transaction! + id: ID! + totalAmountBTCInitialized: BigDecimal! + totalAmountBTCMined: BigDecimal! + totalAmountBTCRefunded: BigDecimal! + totalAmountBTCSending: BigDecimal! + totalFeesBTC: BigDecimal! + updatedAtTx: Transaction! + user: User +} + +input FastBTCBridgeStat_filter { + createdAtTx: String + createdAtTx_contains: String + createdAtTx_ends_with: String + createdAtTx_gt: String + createdAtTx_gte: String + createdAtTx_in: [String!] + createdAtTx_lt: String + createdAtTx_lte: String + createdAtTx_not: String + createdAtTx_not_contains: String + createdAtTx_not_ends_with: String + createdAtTx_not_in: [String!] + createdAtTx_not_starts_with: String + createdAtTx_starts_with: String + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + totalAmountBTCInitialized: BigDecimal + totalAmountBTCInitialized_gt: BigDecimal + totalAmountBTCInitialized_gte: BigDecimal + totalAmountBTCInitialized_in: [BigDecimal!] + totalAmountBTCInitialized_lt: BigDecimal + totalAmountBTCInitialized_lte: BigDecimal + totalAmountBTCInitialized_not: BigDecimal + totalAmountBTCInitialized_not_in: [BigDecimal!] + totalAmountBTCMined: BigDecimal + totalAmountBTCMined_gt: BigDecimal + totalAmountBTCMined_gte: BigDecimal + totalAmountBTCMined_in: [BigDecimal!] + totalAmountBTCMined_lt: BigDecimal + totalAmountBTCMined_lte: BigDecimal + totalAmountBTCMined_not: BigDecimal + totalAmountBTCMined_not_in: [BigDecimal!] + totalAmountBTCRefunded: BigDecimal + totalAmountBTCRefunded_gt: BigDecimal + totalAmountBTCRefunded_gte: BigDecimal + totalAmountBTCRefunded_in: [BigDecimal!] + totalAmountBTCRefunded_lt: BigDecimal + totalAmountBTCRefunded_lte: BigDecimal + totalAmountBTCRefunded_not: BigDecimal + totalAmountBTCRefunded_not_in: [BigDecimal!] + totalAmountBTCSending: BigDecimal + totalAmountBTCSending_gt: BigDecimal + totalAmountBTCSending_gte: BigDecimal + totalAmountBTCSending_in: [BigDecimal!] + totalAmountBTCSending_lt: BigDecimal + totalAmountBTCSending_lte: BigDecimal + totalAmountBTCSending_not: BigDecimal + totalAmountBTCSending_not_in: [BigDecimal!] + totalFeesBTC: BigDecimal + totalFeesBTC_gt: BigDecimal + totalFeesBTC_gte: BigDecimal + totalFeesBTC_in: [BigDecimal!] + totalFeesBTC_lt: BigDecimal + totalFeesBTC_lte: BigDecimal + totalFeesBTC_not: BigDecimal + totalFeesBTC_not_in: [BigDecimal!] + updatedAtTx: String + updatedAtTx_contains: String + updatedAtTx_ends_with: String + updatedAtTx_gt: String + updatedAtTx_gte: String + updatedAtTx_in: [String!] + updatedAtTx_lt: String + updatedAtTx_lte: String + updatedAtTx_not: String + updatedAtTx_not_contains: String + updatedAtTx_not_ends_with: String + updatedAtTx_not_in: [String!] + updatedAtTx_not_starts_with: String + updatedAtTx_starts_with: String + user: String + user_contains: String + user_ends_with: String + user_gt: String + user_gte: String + user_in: [String!] + user_lt: String + user_lte: String + user_not: String + user_not_contains: String + user_not_ends_with: String + user_not_in: [String!] + user_not_starts_with: String + user_starts_with: String +} + +enum FastBTCBridgeStat_orderBy { + createdAtTx + id + totalAmountBTCInitialized + totalAmountBTCMined + totalAmountBTCRefunded + totalAmountBTCSending + totalFeesBTC + updatedAtTx + user +} + +"Federation - the federation entity\n" +type Federation { + "Bridge - the bridge that is associated with this federation contract\n" + bridge: Bridge! + + "CreatedAtTx - the creation transaction of this federation\n" + createdAtTx: Transaction! + + "Id - the id of the federation entity is the federation contract address\n" + id: ID! + + "IsActive - is this federation contract active\n" + isActive: Boolean! + + "Members - federators that are members of this federation\n" + members: [Bytes!]! + + "TotalExecuted - total transfers executed by this federation\n" + totalExecuted: Int! + + "TotalVotes - total votes cast on this federation\n" + totalVotes: Int! + + "UpdatedAtTx - the transaction at which this entity was last updated\n" + updatedAtTx: Transaction! +} + +input Federation_filter { + bridge: String + bridge_contains: String + bridge_ends_with: String + bridge_gt: String + bridge_gte: String + bridge_in: [String!] + bridge_lt: String + bridge_lte: String + bridge_not: String + bridge_not_contains: String + bridge_not_ends_with: String + bridge_not_in: [String!] + bridge_not_starts_with: String + bridge_starts_with: String + createdAtTx: String + createdAtTx_contains: String + createdAtTx_ends_with: String + createdAtTx_gt: String + createdAtTx_gte: String + createdAtTx_in: [String!] + createdAtTx_lt: String + createdAtTx_lte: String + createdAtTx_not: String + createdAtTx_not_contains: String + createdAtTx_not_ends_with: String + createdAtTx_not_in: [String!] + createdAtTx_not_starts_with: String + createdAtTx_starts_with: String + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + isActive: Boolean + isActive_in: [Boolean!] + isActive_not: Boolean + isActive_not_in: [Boolean!] + members: [Bytes!] + members_contains: [Bytes!] + members_not: [Bytes!] + members_not_contains: [Bytes!] + totalExecuted: Int + totalExecuted_gt: Int + totalExecuted_gte: Int + totalExecuted_in: [Int!] + totalExecuted_lt: Int + totalExecuted_lte: Int + totalExecuted_not: Int + totalExecuted_not_in: [Int!] + totalVotes: Int + totalVotes_gt: Int + totalVotes_gte: Int + totalVotes_in: [Int!] + totalVotes_lt: Int + totalVotes_lte: Int + totalVotes_not: Int + totalVotes_not_in: [Int!] + updatedAtTx: String + updatedAtTx_contains: String + updatedAtTx_ends_with: String + updatedAtTx_gt: String + updatedAtTx_gte: String + updatedAtTx_in: [String!] + updatedAtTx_lt: String + updatedAtTx_lte: String + updatedAtTx_not: String + updatedAtTx_not_contains: String + updatedAtTx_not_ends_with: String + updatedAtTx_not_in: [String!] + updatedAtTx_not_starts_with: String + updatedAtTx_starts_with: String +} + +enum Federation_orderBy { + bridge + createdAtTx + id + isActive + members + totalExecuted + totalVotes + updatedAtTx +} + +type FeeSharingTokensTransferred { + amount: BigDecimal! + id: ID! + sender: Bytes! + token: Bytes! +} + +input FeeSharingTokensTransferred_filter { + amount: BigDecimal + amount_gt: BigDecimal + amount_gte: BigDecimal + amount_in: [BigDecimal!] + amount_lt: BigDecimal + amount_lte: BigDecimal + amount_not: BigDecimal + amount_not_in: [BigDecimal!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + sender: Bytes + sender_contains: Bytes + sender_in: [Bytes!] + sender_not: Bytes + sender_not_contains: Bytes + sender_not_in: [Bytes!] + token: Bytes + token_contains: Bytes + token_in: [Bytes!] + token_not: Bytes + token_not_contains: Bytes + token_not_in: [Bytes!] +} + +enum FeeSharingTokensTransferred_orderBy { + amount + id + sender + token +} + +enum FeeType { + AMM + Borrowing + Lending + Trading +} + +"Candlesticks are for presentational purposes on the dapp. This entity supports the candlestick trading data on the trading view charts.\nTrading data is available for the following pairs:\n1. All tokens to RBTC\n2. All tokens to current usdStablecoin (see ProtocolStats entity for more information)\nThere is not candlestick data for other trading pairs as this would cause the amount of data stored to increase exponentially\n" +interface ICandleStick { + "Eg in the pair SOV-XUSD, the base token is SOV and the quote token is XUSD\nPrices shown are the price of the base token in the quote token (eg price of SOV in XUSD)\n" + baseToken: Token + close: BigDecimal! + high: BigDecimal! + + "The ID is fromToken + toToken + timestamp\ntoToken will be either RBTC or XUSD\n" + id: ID! + low: BigDecimal! + open: BigDecimal + + "Unix timestamp for the candlestick start time\n" + periodStartUnix: Int! + quoteToken: Token + + "The volume of the base token that has been bought and sold in this time period\n" + totalVolume: BigDecimal! + txCount: Int! +} + +input ICandleStick_filter { + baseToken: String + baseToken_contains: String + baseToken_ends_with: String + baseToken_gt: String + baseToken_gte: String + baseToken_in: [String!] + baseToken_lt: String + baseToken_lte: String + baseToken_not: String + baseToken_not_contains: String + baseToken_not_ends_with: String + baseToken_not_in: [String!] + baseToken_not_starts_with: String + baseToken_starts_with: String + close: BigDecimal + close_gt: BigDecimal + close_gte: BigDecimal + close_in: [BigDecimal!] + close_lt: BigDecimal + close_lte: BigDecimal + close_not: BigDecimal + close_not_in: [BigDecimal!] + high: BigDecimal + high_gt: BigDecimal + high_gte: BigDecimal + high_in: [BigDecimal!] + high_lt: BigDecimal + high_lte: BigDecimal + high_not: BigDecimal + high_not_in: [BigDecimal!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + low: BigDecimal + low_gt: BigDecimal + low_gte: BigDecimal + low_in: [BigDecimal!] + low_lt: BigDecimal + low_lte: BigDecimal + low_not: BigDecimal + low_not_in: [BigDecimal!] + open: BigDecimal + open_gt: BigDecimal + open_gte: BigDecimal + open_in: [BigDecimal!] + open_lt: BigDecimal + open_lte: BigDecimal + open_not: BigDecimal + open_not_in: [BigDecimal!] + periodStartUnix: Int + periodStartUnix_gt: Int + periodStartUnix_gte: Int + periodStartUnix_in: [Int!] + periodStartUnix_lt: Int + periodStartUnix_lte: Int + periodStartUnix_not: Int + periodStartUnix_not_in: [Int!] + quoteToken: String + quoteToken_contains: String + quoteToken_ends_with: String + quoteToken_gt: String + quoteToken_gte: String + quoteToken_in: [String!] + quoteToken_lt: String + quoteToken_lte: String + quoteToken_not: String + quoteToken_not_contains: String + quoteToken_not_ends_with: String + quoteToken_not_in: [String!] + quoteToken_not_starts_with: String + quoteToken_starts_with: String + totalVolume: BigDecimal + totalVolume_gt: BigDecimal + totalVolume_gte: BigDecimal + totalVolume_in: [BigDecimal!] + totalVolume_lt: BigDecimal + totalVolume_lte: BigDecimal + totalVolume_not: BigDecimal + totalVolume_not_in: [BigDecimal!] + txCount: Int + txCount_gt: Int + txCount_gte: Int + txCount_in: [Int!] + txCount_lt: Int + txCount_lte: Int + txCount_not: Int + txCount_not_in: [Int!] +} + +enum ICandleStick_orderBy { + baseToken + close + high + id + low + open + periodStartUnix + quoteToken + totalVolume + txCount +} + +"LendingHistoryItem is one user's history of Lend/UnLend events across all the lending pools\n" +type LendingHistoryItem { + "The amount of ERC20 token that was lent/unlent\n" + amount: BigDecimal! + + "The underlying asset for this pool (eg USDT for the iUSDT pool)\n" + asset: Token + emittedBy: String! + id: ID! + lender: User! + + "The lending pool the user interacted with\n" + lendingPool: LendingPool! + + "The amount of pool token that was minted or burned\n" + loanTokenAmount: BigDecimal! + timestamp: Int! + transaction: Transaction! + + "Type is Lend/UnLend\n" + type: LendingHistoryType! + + "Foreign key to the UserLendingHistory entity (see the docs on this entity for more information)\n" + userLendingHistory: UserLendingHistory! +} + +input LendingHistoryItem_filter { + amount: BigDecimal + amount_gt: BigDecimal + amount_gte: BigDecimal + amount_in: [BigDecimal!] + amount_lt: BigDecimal + amount_lte: BigDecimal + amount_not: BigDecimal + amount_not_in: [BigDecimal!] + asset: String + asset_contains: String + asset_ends_with: String + asset_gt: String + asset_gte: String + asset_in: [String!] + asset_lt: String + asset_lte: String + asset_not: String + asset_not_contains: String + asset_not_ends_with: String + asset_not_in: [String!] + asset_not_starts_with: String + asset_starts_with: String + emittedBy: String + emittedBy_contains: String + emittedBy_ends_with: String + emittedBy_gt: String + emittedBy_gte: String + emittedBy_in: [String!] + emittedBy_lt: String + emittedBy_lte: String + emittedBy_not: String + emittedBy_not_contains: String + emittedBy_not_ends_with: String + emittedBy_not_in: [String!] + emittedBy_not_starts_with: String + emittedBy_starts_with: String + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + lender: String + lender_contains: String + lender_ends_with: String + lender_gt: String + lender_gte: String + lender_in: [String!] + lender_lt: String + lender_lte: String + lender_not: String + lender_not_contains: String + lender_not_ends_with: String + lender_not_in: [String!] + lender_not_starts_with: String + lender_starts_with: String + lendingPool: String + lendingPool_contains: String + lendingPool_ends_with: String + lendingPool_gt: String + lendingPool_gte: String + lendingPool_in: [String!] + lendingPool_lt: String + lendingPool_lte: String + lendingPool_not: String + lendingPool_not_contains: String + lendingPool_not_ends_with: String + lendingPool_not_in: [String!] + lendingPool_not_starts_with: String + lendingPool_starts_with: String + loanTokenAmount: BigDecimal + loanTokenAmount_gt: BigDecimal + loanTokenAmount_gte: BigDecimal + loanTokenAmount_in: [BigDecimal!] + loanTokenAmount_lt: BigDecimal + loanTokenAmount_lte: BigDecimal + loanTokenAmount_not: BigDecimal + loanTokenAmount_not_in: [BigDecimal!] + timestamp: Int + timestamp_gt: Int + timestamp_gte: Int + timestamp_in: [Int!] + timestamp_lt: Int + timestamp_lte: Int + timestamp_not: Int + timestamp_not_in: [Int!] + transaction: String + transaction_contains: String + transaction_ends_with: String + transaction_gt: String + transaction_gte: String + transaction_in: [String!] + transaction_lt: String + transaction_lte: String + transaction_not: String + transaction_not_contains: String + transaction_not_ends_with: String + transaction_not_in: [String!] + transaction_not_starts_with: String + transaction_starts_with: String + type: LendingHistoryType + type_in: [LendingHistoryType!] + type_not: LendingHistoryType + type_not_in: [LendingHistoryType!] + userLendingHistory: String + userLendingHistory_contains: String + userLendingHistory_ends_with: String + userLendingHistory_gt: String + userLendingHistory_gte: String + userLendingHistory_in: [String!] + userLendingHistory_lt: String + userLendingHistory_lte: String + userLendingHistory_not: String + userLendingHistory_not_contains: String + userLendingHistory_not_ends_with: String + userLendingHistory_not_in: [String!] + userLendingHistory_not_starts_with: String + userLendingHistory_starts_with: String +} + +enum LendingHistoryItem_orderBy { + amount + asset + emittedBy + id + lender + lendingPool + loanTokenAmount + timestamp + transaction + type + userLendingHistory +} + +enum LendingHistoryType { + "Lend is equivalent to a Mint event\n" + Lend + + "UnLend is equivalent to a Burn event\n" + UnLend +} + +"A Lending Pool (iToken), where Users can lend assets to earn interest, and Users can borrow assets to Margin Trade or just as a regular loan.\n" +type LendingPool { + "Balance of the underlying asset (ERC20 token) represented by the total supply of pool tokens\nIt is incremented on Mint events and decremented on Burn events.\nWORK-IN-PROGRESS: This is a work-in-progress as it does not properly account for interest payments currently\n" + assetBalance: BigDecimal! + + "ID is the contract address of the iToken\n" + id: ID! + + "The total supply of this pool token (not the underlying asset).\nIt is incremented on Mint events and decremented on Burn events\n" + poolTokenBalance: BigDecimal! + + "Total asset volume lent over all time\n" + totalAssetLent: BigDecimal! + + "The actual asset being lent and borrowed in this pool\n" + underlyingAsset: Token! +} + +input LendingPool_filter { + assetBalance: BigDecimal + assetBalance_gt: BigDecimal + assetBalance_gte: BigDecimal + assetBalance_in: [BigDecimal!] + assetBalance_lt: BigDecimal + assetBalance_lte: BigDecimal + assetBalance_not: BigDecimal + assetBalance_not_in: [BigDecimal!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + poolTokenBalance: BigDecimal + poolTokenBalance_gt: BigDecimal + poolTokenBalance_gte: BigDecimal + poolTokenBalance_in: [BigDecimal!] + poolTokenBalance_lt: BigDecimal + poolTokenBalance_lte: BigDecimal + poolTokenBalance_not: BigDecimal + poolTokenBalance_not_in: [BigDecimal!] + totalAssetLent: BigDecimal + totalAssetLent_gt: BigDecimal + totalAssetLent_gte: BigDecimal + totalAssetLent_in: [BigDecimal!] + totalAssetLent_lt: BigDecimal + totalAssetLent_lte: BigDecimal + totalAssetLent_not: BigDecimal + totalAssetLent_not_in: [BigDecimal!] + underlyingAsset: String + underlyingAsset_contains: String + underlyingAsset_ends_with: String + underlyingAsset_gt: String + underlyingAsset_gte: String + underlyingAsset_in: [String!] + underlyingAsset_lt: String + underlyingAsset_lte: String + underlyingAsset_not: String + underlyingAsset_not_contains: String + underlyingAsset_not_ends_with: String + underlyingAsset_not_in: [String!] + underlyingAsset_not_starts_with: String + underlyingAsset_starts_with: String +} + +enum LendingPool_orderBy { + assetBalance + id + poolTokenBalance + totalAssetLent + underlyingAsset +} + +"Granular event data for the Loan entity. Emitted when a loan is fully or partially liquidated\n" +type Liquidate { + collateralToLoanRate: BigDecimal! + collateralToken: Bytes! + collateralWithdrawAmount: BigDecimal! + currentMargin: BigDecimal! + emittedBy: Bytes! + id: ID! + lender: Bytes! + liquidator: Bytes! + loanId: Loan! + loanToken: Bytes! + repayAmount: BigDecimal! + timestamp: Int! + transaction: Transaction! + user: User! +} + +input Liquidate_filter { + collateralToLoanRate: BigDecimal + collateralToLoanRate_gt: BigDecimal + collateralToLoanRate_gte: BigDecimal + collateralToLoanRate_in: [BigDecimal!] + collateralToLoanRate_lt: BigDecimal + collateralToLoanRate_lte: BigDecimal + collateralToLoanRate_not: BigDecimal + collateralToLoanRate_not_in: [BigDecimal!] + collateralToken: Bytes + collateralToken_contains: Bytes + collateralToken_in: [Bytes!] + collateralToken_not: Bytes + collateralToken_not_contains: Bytes + collateralToken_not_in: [Bytes!] + collateralWithdrawAmount: BigDecimal + collateralWithdrawAmount_gt: BigDecimal + collateralWithdrawAmount_gte: BigDecimal + collateralWithdrawAmount_in: [BigDecimal!] + collateralWithdrawAmount_lt: BigDecimal + collateralWithdrawAmount_lte: BigDecimal + collateralWithdrawAmount_not: BigDecimal + collateralWithdrawAmount_not_in: [BigDecimal!] + currentMargin: BigDecimal + currentMargin_gt: BigDecimal + currentMargin_gte: BigDecimal + currentMargin_in: [BigDecimal!] + currentMargin_lt: BigDecimal + currentMargin_lte: BigDecimal + currentMargin_not: BigDecimal + currentMargin_not_in: [BigDecimal!] + emittedBy: Bytes + emittedBy_contains: Bytes + emittedBy_in: [Bytes!] + emittedBy_not: Bytes + emittedBy_not_contains: Bytes + emittedBy_not_in: [Bytes!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + lender: Bytes + lender_contains: Bytes + lender_in: [Bytes!] + lender_not: Bytes + lender_not_contains: Bytes + lender_not_in: [Bytes!] + liquidator: Bytes + liquidator_contains: Bytes + liquidator_in: [Bytes!] + liquidator_not: Bytes + liquidator_not_contains: Bytes + liquidator_not_in: [Bytes!] + loanId: String + loanId_contains: String + loanId_ends_with: String + loanId_gt: String + loanId_gte: String + loanId_in: [String!] + loanId_lt: String + loanId_lte: String + loanId_not: String + loanId_not_contains: String + loanId_not_ends_with: String + loanId_not_in: [String!] + loanId_not_starts_with: String + loanId_starts_with: String + loanToken: Bytes + loanToken_contains: Bytes + loanToken_in: [Bytes!] + loanToken_not: Bytes + loanToken_not_contains: Bytes + loanToken_not_in: [Bytes!] + repayAmount: BigDecimal + repayAmount_gt: BigDecimal + repayAmount_gte: BigDecimal + repayAmount_in: [BigDecimal!] + repayAmount_lt: BigDecimal + repayAmount_lte: BigDecimal + repayAmount_not: BigDecimal + repayAmount_not_in: [BigDecimal!] + timestamp: Int + timestamp_gt: Int + timestamp_gte: Int + timestamp_in: [Int!] + timestamp_lt: Int + timestamp_lte: Int + timestamp_not: Int + timestamp_not_in: [Int!] + transaction: String + transaction_contains: String + transaction_ends_with: String + transaction_gt: String + transaction_gte: String + transaction_in: [String!] + transaction_lt: String + transaction_lte: String + transaction_not: String + transaction_not_contains: String + transaction_not_ends_with: String + transaction_not_in: [String!] + transaction_not_starts_with: String + transaction_starts_with: String + user: String + user_contains: String + user_ends_with: String + user_gt: String + user_gte: String + user_in: [String!] + user_lt: String + user_lte: String + user_not: String + user_not_contains: String + user_not_ends_with: String + user_not_in: [String!] + user_not_starts_with: String + user_starts_with: String +} + +enum Liquidate_orderBy { + collateralToLoanRate + collateralToken + collateralWithdrawAmount + currentMargin + emittedBy + id + lender + liquidator + loanId + loanToken + repayAmount + timestamp + transaction + user +} + +type LiquidityHistoryItem { + "The amount that was added/removed\n" + amount: BigDecimal! + + "The contract that emitted this event (primarily used for debugging)\n" + emittedBy: String! + + "ID is transaction hash + log index\n" + id: ID! + + "AMM pool that liquidity was provided to\n" + liquidityPool: LiquidityPool! + + "New balance of the reserveToken (ERC20 token) on the AMM pool\n" + newBalance: BigDecimal! + + "New total supply of pool tokens\n" + newSupply: BigDecimal! + + "Provider is either the user, or a contract if the user interacted with a proxy contract\n" + provider: String! + + "The underlying asset (ERC20 token) that was added/removed\n" + reserveToken: Token! + timestamp: Int! + transaction: Transaction! + + "Type is either Added or Removed (if a user added or removed liquidity from the pool)\n" + type: LiquidityHistoryType! + user: User! + + "Foreign key to join this transaction to the parent UserLiquidityHistory entity\n" + userLiquidityHistory: UserLiquidityHistory! +} + +input LiquidityHistoryItem_filter { + amount: BigDecimal + amount_gt: BigDecimal + amount_gte: BigDecimal + amount_in: [BigDecimal!] + amount_lt: BigDecimal + amount_lte: BigDecimal + amount_not: BigDecimal + amount_not_in: [BigDecimal!] + emittedBy: String + emittedBy_contains: String + emittedBy_ends_with: String + emittedBy_gt: String + emittedBy_gte: String + emittedBy_in: [String!] + emittedBy_lt: String + emittedBy_lte: String + emittedBy_not: String + emittedBy_not_contains: String + emittedBy_not_ends_with: String + emittedBy_not_in: [String!] + emittedBy_not_starts_with: String + emittedBy_starts_with: String + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + liquidityPool: String + liquidityPool_contains: String + liquidityPool_ends_with: String + liquidityPool_gt: String + liquidityPool_gte: String + liquidityPool_in: [String!] + liquidityPool_lt: String + liquidityPool_lte: String + liquidityPool_not: String + liquidityPool_not_contains: String + liquidityPool_not_ends_with: String + liquidityPool_not_in: [String!] + liquidityPool_not_starts_with: String + liquidityPool_starts_with: String + newBalance: BigDecimal + newBalance_gt: BigDecimal + newBalance_gte: BigDecimal + newBalance_in: [BigDecimal!] + newBalance_lt: BigDecimal + newBalance_lte: BigDecimal + newBalance_not: BigDecimal + newBalance_not_in: [BigDecimal!] + newSupply: BigDecimal + newSupply_gt: BigDecimal + newSupply_gte: BigDecimal + newSupply_in: [BigDecimal!] + newSupply_lt: BigDecimal + newSupply_lte: BigDecimal + newSupply_not: BigDecimal + newSupply_not_in: [BigDecimal!] + provider: String + provider_contains: String + provider_ends_with: String + provider_gt: String + provider_gte: String + provider_in: [String!] + provider_lt: String + provider_lte: String + provider_not: String + provider_not_contains: String + provider_not_ends_with: String + provider_not_in: [String!] + provider_not_starts_with: String + provider_starts_with: String + reserveToken: String + reserveToken_contains: String + reserveToken_ends_with: String + reserveToken_gt: String + reserveToken_gte: String + reserveToken_in: [String!] + reserveToken_lt: String + reserveToken_lte: String + reserveToken_not: String + reserveToken_not_contains: String + reserveToken_not_ends_with: String + reserveToken_not_in: [String!] + reserveToken_not_starts_with: String + reserveToken_starts_with: String + timestamp: Int + timestamp_gt: Int + timestamp_gte: Int + timestamp_in: [Int!] + timestamp_lt: Int + timestamp_lte: Int + timestamp_not: Int + timestamp_not_in: [Int!] + transaction: String + transaction_contains: String + transaction_ends_with: String + transaction_gt: String + transaction_gte: String + transaction_in: [String!] + transaction_lt: String + transaction_lte: String + transaction_not: String + transaction_not_contains: String + transaction_not_ends_with: String + transaction_not_in: [String!] + transaction_not_starts_with: String + transaction_starts_with: String + type: LiquidityHistoryType + type_in: [LiquidityHistoryType!] + type_not: LiquidityHistoryType + type_not_in: [LiquidityHistoryType!] + user: String + userLiquidityHistory: String + userLiquidityHistory_contains: String + userLiquidityHistory_ends_with: String + userLiquidityHistory_gt: String + userLiquidityHistory_gte: String + userLiquidityHistory_in: [String!] + userLiquidityHistory_lt: String + userLiquidityHistory_lte: String + userLiquidityHistory_not: String + userLiquidityHistory_not_contains: String + userLiquidityHistory_not_ends_with: String + userLiquidityHistory_not_in: [String!] + userLiquidityHistory_not_starts_with: String + userLiquidityHistory_starts_with: String + user_contains: String + user_ends_with: String + user_gt: String + user_gte: String + user_in: [String!] + user_lt: String + user_lte: String + user_not: String + user_not_contains: String + user_not_ends_with: String + user_not_in: [String!] + user_not_starts_with: String + user_starts_with: String +} + +enum LiquidityHistoryItem_orderBy { + amount + emittedBy + id + liquidityPool + newBalance + newSupply + provider + reserveToken + timestamp + transaction + type + user + userLiquidityHistory +} + +enum LiquidityHistoryType { + Added + Removed +} + +type LiquidityMiningAllocationPoint { + allocationPoint: BigInt! + + "If this pool token is for an AMM liquidity pool, this is a foreign key to the SmartToken.\nIf not, this property is null\n" + ammPoolToken: SmartToken + id: ID! + + "If this pool token is for a lending pool, this is a foreign key to the LendingPool.\nIf not, this property is null\n" + lendingPoolToken: LendingPool + poolTokenAddedBlock: Int! + + "Unix timestamp for when this pool token was added to the liquidity mining program\n" + poolTokenAddedTimestamp: Int! + poolTokenUpdatedBlock: Int! + + "Unix timestamp for when the allocation point for this pool token last changed\n" + poolTokenUpdatedTimestamp: Int! + + "The amount of SOV earned per block by all LPs in one pool\nCalculated as (totalRewardPerBlock * allocationPoint) / totalAllocationPoint\n" + rewardPerBlock: BigDecimal! +} + +input LiquidityMiningAllocationPoint_filter { + allocationPoint: BigInt + allocationPoint_gt: BigInt + allocationPoint_gte: BigInt + allocationPoint_in: [BigInt!] + allocationPoint_lt: BigInt + allocationPoint_lte: BigInt + allocationPoint_not: BigInt + allocationPoint_not_in: [BigInt!] + ammPoolToken: String + ammPoolToken_contains: String + ammPoolToken_ends_with: String + ammPoolToken_gt: String + ammPoolToken_gte: String + ammPoolToken_in: [String!] + ammPoolToken_lt: String + ammPoolToken_lte: String + ammPoolToken_not: String + ammPoolToken_not_contains: String + ammPoolToken_not_ends_with: String + ammPoolToken_not_in: [String!] + ammPoolToken_not_starts_with: String + ammPoolToken_starts_with: String + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + lendingPoolToken: String + lendingPoolToken_contains: String + lendingPoolToken_ends_with: String + lendingPoolToken_gt: String + lendingPoolToken_gte: String + lendingPoolToken_in: [String!] + lendingPoolToken_lt: String + lendingPoolToken_lte: String + lendingPoolToken_not: String + lendingPoolToken_not_contains: String + lendingPoolToken_not_ends_with: String + lendingPoolToken_not_in: [String!] + lendingPoolToken_not_starts_with: String + lendingPoolToken_starts_with: String + poolTokenAddedBlock: Int + poolTokenAddedBlock_gt: Int + poolTokenAddedBlock_gte: Int + poolTokenAddedBlock_in: [Int!] + poolTokenAddedBlock_lt: Int + poolTokenAddedBlock_lte: Int + poolTokenAddedBlock_not: Int + poolTokenAddedBlock_not_in: [Int!] + poolTokenAddedTimestamp: Int + poolTokenAddedTimestamp_gt: Int + poolTokenAddedTimestamp_gte: Int + poolTokenAddedTimestamp_in: [Int!] + poolTokenAddedTimestamp_lt: Int + poolTokenAddedTimestamp_lte: Int + poolTokenAddedTimestamp_not: Int + poolTokenAddedTimestamp_not_in: [Int!] + poolTokenUpdatedBlock: Int + poolTokenUpdatedBlock_gt: Int + poolTokenUpdatedBlock_gte: Int + poolTokenUpdatedBlock_in: [Int!] + poolTokenUpdatedBlock_lt: Int + poolTokenUpdatedBlock_lte: Int + poolTokenUpdatedBlock_not: Int + poolTokenUpdatedBlock_not_in: [Int!] + poolTokenUpdatedTimestamp: Int + poolTokenUpdatedTimestamp_gt: Int + poolTokenUpdatedTimestamp_gte: Int + poolTokenUpdatedTimestamp_in: [Int!] + poolTokenUpdatedTimestamp_lt: Int + poolTokenUpdatedTimestamp_lte: Int + poolTokenUpdatedTimestamp_not: Int + poolTokenUpdatedTimestamp_not_in: [Int!] + rewardPerBlock: BigDecimal + rewardPerBlock_gt: BigDecimal + rewardPerBlock_gte: BigDecimal + rewardPerBlock_in: [BigDecimal!] + rewardPerBlock_lt: BigDecimal + rewardPerBlock_lte: BigDecimal + rewardPerBlock_not: BigDecimal + rewardPerBlock_not_in: [BigDecimal!] +} + +enum LiquidityMiningAllocationPoint_orderBy { + allocationPoint + ammPoolToken + id + lendingPoolToken + poolTokenAddedBlock + poolTokenAddedTimestamp + poolTokenUpdatedBlock + poolTokenUpdatedTimestamp + rewardPerBlock +} + +"This entity has only one instance (id: 0), and holds global variables required for liquidity mining rewards calculations\n" +type LiquidityMiningGlobal { + id: ID! + + "Total available allocation points. This is used to calculated the reward per block for each pool token.\nSee the LiquidityMiningAllocationPoint entity for more details.\n" + totalAllocationPoint: BigInt! + + "Total possible SOV per block in the liquidity mining program. Not all of this has to be allocation (eg if totalRewardPerBlock = 1000, that does not mean 1000 SOV are being given to LPs per block)\nThis is used to calculated the reward per block for each pool token.\nSee the LiquidityMiningAllocationPoint entity for more details.\n" + totalRewardPerBlock: BigInt! +} + +input LiquidityMiningGlobal_filter { + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + totalAllocationPoint: BigInt + totalAllocationPoint_gt: BigInt + totalAllocationPoint_gte: BigInt + totalAllocationPoint_in: [BigInt!] + totalAllocationPoint_lt: BigInt + totalAllocationPoint_lte: BigInt + totalAllocationPoint_not: BigInt + totalAllocationPoint_not_in: [BigInt!] + totalRewardPerBlock: BigInt + totalRewardPerBlock_gt: BigInt + totalRewardPerBlock_gte: BigInt + totalRewardPerBlock_in: [BigInt!] + totalRewardPerBlock_lt: BigInt + totalRewardPerBlock_lte: BigInt + totalRewardPerBlock_not: BigInt + totalRewardPerBlock_not_in: [BigInt!] +} + +enum LiquidityMiningGlobal_orderBy { + id + totalAllocationPoint + totalRewardPerBlock +} + +"AMM Pool (sometimes referred to as a Converter)\n" +type LiquidityPool { + "Activated with be true when this pool is activated, and will change to false is the pool is deactivated\n" + activated: Boolean + connectorTokens( + first: Int = 100 + orderBy: LiquidityPoolToken_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: LiquidityPoolToken_filter + ): [LiquidityPoolToken!]! + + "Divide by maxConversionFee to get percentage\n" + conversionFee: BigInt + createdAtBlockNumber: Int + createdAtTimestamp: Int + createdAtTransaction: Transaction! + currentConverterRegistry: ConverterRegistry + + "ID is the contract address of the Converter\n" + id: ID! + maxConversionFee: BigInt + owner: String + poolTokens( + first: Int = 100 + orderBy: PoolToken_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: PoolToken_filter + ): [PoolToken!] + smartToken: SmartToken + + "The reserve assets of this AMM Pool. The are stored here like this so that they can be accessed inside mappings when the LiquidityPool is loaded.\n" + token0: Token + + "The balance for each token on this liquidity pool\nNB: For the V2 pools (USDT, DOC, BPRO), this balance is the staked balance, not the contract balance\n" + token0Balance: BigDecimal! + token1: Token + token1Balance: BigDecimal! + + "Sovryn uses Bancor V1 and Bancor V2 pools\n" + type: Int + version: Int +} + +"This entity stores the relationship between liquidity pools and underlying tokens\nIt also currently stores the total volumes bought and sold, but this should be moved to the LiquidityPool\n" +type LiquidityPoolToken { + "ID is liquidityPool address + tokenAddress\n" + id: ID! + liquidityPool: LiquidityPool! + + "The pool token that represents this token-liquidityPool relationship\n" + poolToken: PoolToken! + token: Token! + + "Total volume of this token that has been bought or sold through this liquidity pool\n" + totalVolume: BigDecimal! + + "Total volume of this token bought through this liquidity pool\n" + volumeBought: BigDecimal! + + "Total volume of this token sold through this liquidity pool\n" + volumeSold: BigDecimal! +} + +input LiquidityPoolToken_filter { + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + liquidityPool: String + liquidityPool_contains: String + liquidityPool_ends_with: String + liquidityPool_gt: String + liquidityPool_gte: String + liquidityPool_in: [String!] + liquidityPool_lt: String + liquidityPool_lte: String + liquidityPool_not: String + liquidityPool_not_contains: String + liquidityPool_not_ends_with: String + liquidityPool_not_in: [String!] + liquidityPool_not_starts_with: String + liquidityPool_starts_with: String + poolToken: String + poolToken_contains: String + poolToken_ends_with: String + poolToken_gt: String + poolToken_gte: String + poolToken_in: [String!] + poolToken_lt: String + poolToken_lte: String + poolToken_not: String + poolToken_not_contains: String + poolToken_not_ends_with: String + poolToken_not_in: [String!] + poolToken_not_starts_with: String + poolToken_starts_with: String + token: String + token_contains: String + token_ends_with: String + token_gt: String + token_gte: String + token_in: [String!] + token_lt: String + token_lte: String + token_not: String + token_not_contains: String + token_not_ends_with: String + token_not_in: [String!] + token_not_starts_with: String + token_starts_with: String + totalVolume: BigDecimal + totalVolume_gt: BigDecimal + totalVolume_gte: BigDecimal + totalVolume_in: [BigDecimal!] + totalVolume_lt: BigDecimal + totalVolume_lte: BigDecimal + totalVolume_not: BigDecimal + totalVolume_not_in: [BigDecimal!] + volumeBought: BigDecimal + volumeBought_gt: BigDecimal + volumeBought_gte: BigDecimal + volumeBought_in: [BigDecimal!] + volumeBought_lt: BigDecimal + volumeBought_lte: BigDecimal + volumeBought_not: BigDecimal + volumeBought_not_in: [BigDecimal!] + volumeSold: BigDecimal + volumeSold_gt: BigDecimal + volumeSold_gte: BigDecimal + volumeSold_in: [BigDecimal!] + volumeSold_lt: BigDecimal + volumeSold_lte: BigDecimal + volumeSold_not: BigDecimal + volumeSold_not_in: [BigDecimal!] +} + +enum LiquidityPoolToken_orderBy { + id + liquidityPool + poolToken + token + totalVolume + volumeBought + volumeSold +} + +input LiquidityPool_filter { + activated: Boolean + activated_in: [Boolean!] + activated_not: Boolean + activated_not_in: [Boolean!] + conversionFee: BigInt + conversionFee_gt: BigInt + conversionFee_gte: BigInt + conversionFee_in: [BigInt!] + conversionFee_lt: BigInt + conversionFee_lte: BigInt + conversionFee_not: BigInt + conversionFee_not_in: [BigInt!] + createdAtBlockNumber: Int + createdAtBlockNumber_gt: Int + createdAtBlockNumber_gte: Int + createdAtBlockNumber_in: [Int!] + createdAtBlockNumber_lt: Int + createdAtBlockNumber_lte: Int + createdAtBlockNumber_not: Int + createdAtBlockNumber_not_in: [Int!] + createdAtTimestamp: Int + createdAtTimestamp_gt: Int + createdAtTimestamp_gte: Int + createdAtTimestamp_in: [Int!] + createdAtTimestamp_lt: Int + createdAtTimestamp_lte: Int + createdAtTimestamp_not: Int + createdAtTimestamp_not_in: [Int!] + createdAtTransaction: String + createdAtTransaction_contains: String + createdAtTransaction_ends_with: String + createdAtTransaction_gt: String + createdAtTransaction_gte: String + createdAtTransaction_in: [String!] + createdAtTransaction_lt: String + createdAtTransaction_lte: String + createdAtTransaction_not: String + createdAtTransaction_not_contains: String + createdAtTransaction_not_ends_with: String + createdAtTransaction_not_in: [String!] + createdAtTransaction_not_starts_with: String + createdAtTransaction_starts_with: String + currentConverterRegistry: String + currentConverterRegistry_contains: String + currentConverterRegistry_ends_with: String + currentConverterRegistry_gt: String + currentConverterRegistry_gte: String + currentConverterRegistry_in: [String!] + currentConverterRegistry_lt: String + currentConverterRegistry_lte: String + currentConverterRegistry_not: String + currentConverterRegistry_not_contains: String + currentConverterRegistry_not_ends_with: String + currentConverterRegistry_not_in: [String!] + currentConverterRegistry_not_starts_with: String + currentConverterRegistry_starts_with: String + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + maxConversionFee: BigInt + maxConversionFee_gt: BigInt + maxConversionFee_gte: BigInt + maxConversionFee_in: [BigInt!] + maxConversionFee_lt: BigInt + maxConversionFee_lte: BigInt + maxConversionFee_not: BigInt + maxConversionFee_not_in: [BigInt!] + owner: String + owner_contains: String + owner_ends_with: String + owner_gt: String + owner_gte: String + owner_in: [String!] + owner_lt: String + owner_lte: String + owner_not: String + owner_not_contains: String + owner_not_ends_with: String + owner_not_in: [String!] + owner_not_starts_with: String + owner_starts_with: String + smartToken: String + smartToken_contains: String + smartToken_ends_with: String + smartToken_gt: String + smartToken_gte: String + smartToken_in: [String!] + smartToken_lt: String + smartToken_lte: String + smartToken_not: String + smartToken_not_contains: String + smartToken_not_ends_with: String + smartToken_not_in: [String!] + smartToken_not_starts_with: String + smartToken_starts_with: String + token0: String + token0Balance: BigDecimal + token0Balance_gt: BigDecimal + token0Balance_gte: BigDecimal + token0Balance_in: [BigDecimal!] + token0Balance_lt: BigDecimal + token0Balance_lte: BigDecimal + token0Balance_not: BigDecimal + token0Balance_not_in: [BigDecimal!] + token0_contains: String + token0_ends_with: String + token0_gt: String + token0_gte: String + token0_in: [String!] + token0_lt: String + token0_lte: String + token0_not: String + token0_not_contains: String + token0_not_ends_with: String + token0_not_in: [String!] + token0_not_starts_with: String + token0_starts_with: String + token1: String + token1Balance: BigDecimal + token1Balance_gt: BigDecimal + token1Balance_gte: BigDecimal + token1Balance_in: [BigDecimal!] + token1Balance_lt: BigDecimal + token1Balance_lte: BigDecimal + token1Balance_not: BigDecimal + token1Balance_not_in: [BigDecimal!] + token1_contains: String + token1_ends_with: String + token1_gt: String + token1_gte: String + token1_in: [String!] + token1_lt: String + token1_lte: String + token1_not: String + token1_not_contains: String + token1_not_ends_with: String + token1_not_in: [String!] + token1_not_starts_with: String + token1_starts_with: String + type: Int + type_gt: Int + type_gte: Int + type_in: [Int!] + type_lt: Int + type_lte: Int + type_not: Int + type_not_in: [Int!] + version: Int + version_gt: Int + version_gte: Int + version_in: [Int!] + version_lt: Int + version_lte: Int + version_not: Int + version_not_in: [Int!] +} + +enum LiquidityPool_orderBy { + activated + connectorTokens + conversionFee + createdAtBlockNumber + createdAtTimestamp + createdAtTransaction + currentConverterRegistry + id + maxConversionFee + owner + poolTokens + smartToken + token0 + token0Balance + token1 + token1Balance + type + version +} + +"A Loan can be initialized by either a Margin Trade event or a Borrow event\n" +type Loan { + "Average price per token from all loan open events\nUpdated on Trade and Borrow events\nThis is mainly used as internal storage to calculate PnL\n" + averageBuyPrice: BigDecimal! + + "Average price per token from all loan close events\nUpdated on CloseWithSwap, CloseWithDeposit and Liquidate events\nThis is mainly used as internal storage to calculate PnL\n" + averageSellPrice: BigDecimal! + + "Borrow transactions associated with this loan\n" + borrow( + first: Int = 100 + orderBy: Borrow_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: Borrow_filter + ): [Borrow!] + + "The amount borrowed in loan tokens\n" + borrowedAmount: BigDecimal! + + "CloseWithDeposit events associated with this loan. Emitted when a user partially or fully closes a borrow loan.\n" + closeWithDeposits( + first: Int = 100 + orderBy: CloseWithDeposit_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: CloseWithDeposit_filter + ): [CloseWithDeposit!] + + "CloseWithSwap events associated with this loan. Emitted when a user partially or fully closes a margin trade.\n" + closeWithSwaps( + first: Int = 100 + orderBy: CloseWithSwap_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: CloseWithSwap_filter + ): [CloseWithSwap!] + + "The token provided as collateral\n" + collateralToken: Token! + + "DepositCollateral events associated with this loan, where a user has topped up collateral\n" + depositCollateral( + first: Int = 100 + orderBy: DepositCollateral_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: DepositCollateral_filter + ): [DepositCollateral!] + + "Unix timestamp at end of loan (null if loan is still open)\n" + endTimestamp: Int + id: ID! + + "If a Liquidate, CloseWithSwap, Rollover or CloseWithDeposit event occurs with 0 margin or 0 leverage, this property changes to false\n" + isOpen: Boolean! + + "Any liquidations that have happened on this loan\n" + liquidates( + first: Int = 100 + orderBy: Liquidate_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: Liquidate_filter + ): [Liquidate!] + + "The token the loan was taken out in\n" + loanToken: Token! + + "The largest amount borrowed in the lifetime of this loan\n" + maxBorrowedAmount: BigDecimal! + + "The maximum this position size was - mainly for debugging purposes\n" + maximumPositionSize: BigDecimal! + + "Next date that the loan will be rolled over, interest and trading fee paid, and rollover reward paid\nIt is possible for the next rollover to be in the past if the loan has not yet been rolled over by the Sovryn node\n" + nextRollover: Int + + "Total of collateral (user collateral in a Borrow, and user collateral + borrowed amount in a Trade) in collateral tokens\n" + positionSize: BigDecimal! + + "Realized profit and loss. This is updated on every loan closing event - partially or fully closing a loan, or a liquidation.\nCurrently, this does not take into account fees paid\nThe realized PnL is quoted in the collateral currency\n" + realizedPnL: BigDecimal! + + "Percentage profit or loss relative to collateral\n" + realizedPnLPercent: BigDecimal! + + "Rollover events associated with this loan.\nRollovers are loan maintenance transactions where the next interest payment and fee is paid\n" + rollovers( + first: Int = 100 + orderBy: Rollover_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: Rollover_filter + ): [Rollover!] + + "The amount borrowed when the loan was opened\n" + startBorrowedAmount: BigDecimal! + + "Initial size of the position\n" + startPositionSize: BigDecimal! + + "The start rate of the loan in loan tokens (eg if it is a long USD/BTC margin trade, this is the BTC price in USD)\n" + startRate: BigDecimal! + + "Unix timestamp at start of loan\n" + startTimestamp: Int! + + "Sum of position volume from Trade, Borrow and DepositCollateral events in this loan, in collateral token\n" + totalBought: BigDecimal! + + "Sum of position change volume from CloseWithSwap, CloseWithDeposit and Liquidate events in this loan, in collateral token\n" + totalSold: BigDecimal! + + "Trade (margin trade) transactions associated with this loan\n" + trade( + first: Int = 100 + orderBy: Trade_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: Trade_filter + ): [Trade!] + + "LoanType is either Trade (for Margin Trades) or Borrow (for Borrows)\n" + type: LoanType! + + "The user who took out the loan\n" + user: User! +} + +enum LoanType { + "Borrow is a loan originating from a user simply borrowing funds\n" + Borrow + + "Trade is a loan originating from a margin trade\n" + Trade +} + +input Loan_filter { + averageBuyPrice: BigDecimal + averageBuyPrice_gt: BigDecimal + averageBuyPrice_gte: BigDecimal + averageBuyPrice_in: [BigDecimal!] + averageBuyPrice_lt: BigDecimal + averageBuyPrice_lte: BigDecimal + averageBuyPrice_not: BigDecimal + averageBuyPrice_not_in: [BigDecimal!] + averageSellPrice: BigDecimal + averageSellPrice_gt: BigDecimal + averageSellPrice_gte: BigDecimal + averageSellPrice_in: [BigDecimal!] + averageSellPrice_lt: BigDecimal + averageSellPrice_lte: BigDecimal + averageSellPrice_not: BigDecimal + averageSellPrice_not_in: [BigDecimal!] + borrowedAmount: BigDecimal + borrowedAmount_gt: BigDecimal + borrowedAmount_gte: BigDecimal + borrowedAmount_in: [BigDecimal!] + borrowedAmount_lt: BigDecimal + borrowedAmount_lte: BigDecimal + borrowedAmount_not: BigDecimal + borrowedAmount_not_in: [BigDecimal!] + collateralToken: String + collateralToken_contains: String + collateralToken_ends_with: String + collateralToken_gt: String + collateralToken_gte: String + collateralToken_in: [String!] + collateralToken_lt: String + collateralToken_lte: String + collateralToken_not: String + collateralToken_not_contains: String + collateralToken_not_ends_with: String + collateralToken_not_in: [String!] + collateralToken_not_starts_with: String + collateralToken_starts_with: String + endTimestamp: Int + endTimestamp_gt: Int + endTimestamp_gte: Int + endTimestamp_in: [Int!] + endTimestamp_lt: Int + endTimestamp_lte: Int + endTimestamp_not: Int + endTimestamp_not_in: [Int!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + isOpen: Boolean + isOpen_in: [Boolean!] + isOpen_not: Boolean + isOpen_not_in: [Boolean!] + loanToken: String + loanToken_contains: String + loanToken_ends_with: String + loanToken_gt: String + loanToken_gte: String + loanToken_in: [String!] + loanToken_lt: String + loanToken_lte: String + loanToken_not: String + loanToken_not_contains: String + loanToken_not_ends_with: String + loanToken_not_in: [String!] + loanToken_not_starts_with: String + loanToken_starts_with: String + maxBorrowedAmount: BigDecimal + maxBorrowedAmount_gt: BigDecimal + maxBorrowedAmount_gte: BigDecimal + maxBorrowedAmount_in: [BigDecimal!] + maxBorrowedAmount_lt: BigDecimal + maxBorrowedAmount_lte: BigDecimal + maxBorrowedAmount_not: BigDecimal + maxBorrowedAmount_not_in: [BigDecimal!] + maximumPositionSize: BigDecimal + maximumPositionSize_gt: BigDecimal + maximumPositionSize_gte: BigDecimal + maximumPositionSize_in: [BigDecimal!] + maximumPositionSize_lt: BigDecimal + maximumPositionSize_lte: BigDecimal + maximumPositionSize_not: BigDecimal + maximumPositionSize_not_in: [BigDecimal!] + nextRollover: Int + nextRollover_gt: Int + nextRollover_gte: Int + nextRollover_in: [Int!] + nextRollover_lt: Int + nextRollover_lte: Int + nextRollover_not: Int + nextRollover_not_in: [Int!] + positionSize: BigDecimal + positionSize_gt: BigDecimal + positionSize_gte: BigDecimal + positionSize_in: [BigDecimal!] + positionSize_lt: BigDecimal + positionSize_lte: BigDecimal + positionSize_not: BigDecimal + positionSize_not_in: [BigDecimal!] + realizedPnL: BigDecimal + realizedPnLPercent: BigDecimal + realizedPnLPercent_gt: BigDecimal + realizedPnLPercent_gte: BigDecimal + realizedPnLPercent_in: [BigDecimal!] + realizedPnLPercent_lt: BigDecimal + realizedPnLPercent_lte: BigDecimal + realizedPnLPercent_not: BigDecimal + realizedPnLPercent_not_in: [BigDecimal!] + realizedPnL_gt: BigDecimal + realizedPnL_gte: BigDecimal + realizedPnL_in: [BigDecimal!] + realizedPnL_lt: BigDecimal + realizedPnL_lte: BigDecimal + realizedPnL_not: BigDecimal + realizedPnL_not_in: [BigDecimal!] + startBorrowedAmount: BigDecimal + startBorrowedAmount_gt: BigDecimal + startBorrowedAmount_gte: BigDecimal + startBorrowedAmount_in: [BigDecimal!] + startBorrowedAmount_lt: BigDecimal + startBorrowedAmount_lte: BigDecimal + startBorrowedAmount_not: BigDecimal + startBorrowedAmount_not_in: [BigDecimal!] + startPositionSize: BigDecimal + startPositionSize_gt: BigDecimal + startPositionSize_gte: BigDecimal + startPositionSize_in: [BigDecimal!] + startPositionSize_lt: BigDecimal + startPositionSize_lte: BigDecimal + startPositionSize_not: BigDecimal + startPositionSize_not_in: [BigDecimal!] + startRate: BigDecimal + startRate_gt: BigDecimal + startRate_gte: BigDecimal + startRate_in: [BigDecimal!] + startRate_lt: BigDecimal + startRate_lte: BigDecimal + startRate_not: BigDecimal + startRate_not_in: [BigDecimal!] + startTimestamp: Int + startTimestamp_gt: Int + startTimestamp_gte: Int + startTimestamp_in: [Int!] + startTimestamp_lt: Int + startTimestamp_lte: Int + startTimestamp_not: Int + startTimestamp_not_in: [Int!] + totalBought: BigDecimal + totalBought_gt: BigDecimal + totalBought_gte: BigDecimal + totalBought_in: [BigDecimal!] + totalBought_lt: BigDecimal + totalBought_lte: BigDecimal + totalBought_not: BigDecimal + totalBought_not_in: [BigDecimal!] + totalSold: BigDecimal + totalSold_gt: BigDecimal + totalSold_gte: BigDecimal + totalSold_in: [BigDecimal!] + totalSold_lt: BigDecimal + totalSold_lte: BigDecimal + totalSold_not: BigDecimal + totalSold_not_in: [BigDecimal!] + type: LoanType + type_in: [LoanType!] + type_not: LoanType + type_not_in: [LoanType!] + user: String + user_contains: String + user_ends_with: String + user_gt: String + user_gte: String + user_in: [String!] + user_lt: String + user_lte: String + user_not: String + user_not_contains: String + user_not_ends_with: String + user_not_in: [String!] + user_not_starts_with: String + user_starts_with: String +} + +enum Loan_orderBy { + averageBuyPrice + averageSellPrice + borrow + borrowedAmount + closeWithDeposits + closeWithSwaps + collateralToken + depositCollateral + endTimestamp + id + isOpen + liquidates + loanToken + maxBorrowedAmount + maximumPositionSize + nextRollover + positionSize + realizedPnL + realizedPnLPercent + rollovers + startBorrowedAmount + startPositionSize + startRate + startTimestamp + totalBought + totalSold + trade + type + user +} + +type MarginOrderCanceled { + emittedBy: Bytes! + hash: Bytes! + id: ID! + timestamp: Int! + trader: Bytes! + transaction: Transaction! +} + +input MarginOrderCanceled_filter { + emittedBy: Bytes + emittedBy_contains: Bytes + emittedBy_in: [Bytes!] + emittedBy_not: Bytes + emittedBy_not_contains: Bytes + emittedBy_not_in: [Bytes!] + hash: Bytes + hash_contains: Bytes + hash_in: [Bytes!] + hash_not: Bytes + hash_not_contains: Bytes + hash_not_in: [Bytes!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + timestamp: Int + timestamp_gt: Int + timestamp_gte: Int + timestamp_in: [Int!] + timestamp_lt: Int + timestamp_lte: Int + timestamp_not: Int + timestamp_not_in: [Int!] + trader: Bytes + trader_contains: Bytes + trader_in: [Bytes!] + trader_not: Bytes + trader_not_contains: Bytes + trader_not_in: [Bytes!] + transaction: String + transaction_contains: String + transaction_ends_with: String + transaction_gt: String + transaction_gte: String + transaction_in: [String!] + transaction_lt: String + transaction_lte: String + transaction_not: String + transaction_not_contains: String + transaction_not_ends_with: String + transaction_not_in: [String!] + transaction_not_starts_with: String + transaction_starts_with: String +} + +enum MarginOrderCanceled_orderBy { + emittedBy + hash + id + timestamp + trader + transaction +} + +type MarginOrderFilled { + collateral: BigDecimal! + collateralTokenAddress: Bytes! + collateralTokenSent: BigDecimal! + emittedBy: Bytes! + filledPrice: BigDecimal! + hash: Bytes! + id: ID! + leverageAmount: BigDecimal! + loanTokenAddress: Bytes! + loanTokenSent: BigDecimal! + principal: BigDecimal! + timestamp: Int! + trader: User! + transaction: Transaction! +} + +input MarginOrderFilled_filter { + collateral: BigDecimal + collateralTokenAddress: Bytes + collateralTokenAddress_contains: Bytes + collateralTokenAddress_in: [Bytes!] + collateralTokenAddress_not: Bytes + collateralTokenAddress_not_contains: Bytes + collateralTokenAddress_not_in: [Bytes!] + collateralTokenSent: BigDecimal + collateralTokenSent_gt: BigDecimal + collateralTokenSent_gte: BigDecimal + collateralTokenSent_in: [BigDecimal!] + collateralTokenSent_lt: BigDecimal + collateralTokenSent_lte: BigDecimal + collateralTokenSent_not: BigDecimal + collateralTokenSent_not_in: [BigDecimal!] + collateral_gt: BigDecimal + collateral_gte: BigDecimal + collateral_in: [BigDecimal!] + collateral_lt: BigDecimal + collateral_lte: BigDecimal + collateral_not: BigDecimal + collateral_not_in: [BigDecimal!] + emittedBy: Bytes + emittedBy_contains: Bytes + emittedBy_in: [Bytes!] + emittedBy_not: Bytes + emittedBy_not_contains: Bytes + emittedBy_not_in: [Bytes!] + filledPrice: BigDecimal + filledPrice_gt: BigDecimal + filledPrice_gte: BigDecimal + filledPrice_in: [BigDecimal!] + filledPrice_lt: BigDecimal + filledPrice_lte: BigDecimal + filledPrice_not: BigDecimal + filledPrice_not_in: [BigDecimal!] + hash: Bytes + hash_contains: Bytes + hash_in: [Bytes!] + hash_not: Bytes + hash_not_contains: Bytes + hash_not_in: [Bytes!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + leverageAmount: BigDecimal + leverageAmount_gt: BigDecimal + leverageAmount_gte: BigDecimal + leverageAmount_in: [BigDecimal!] + leverageAmount_lt: BigDecimal + leverageAmount_lte: BigDecimal + leverageAmount_not: BigDecimal + leverageAmount_not_in: [BigDecimal!] + loanTokenAddress: Bytes + loanTokenAddress_contains: Bytes + loanTokenAddress_in: [Bytes!] + loanTokenAddress_not: Bytes + loanTokenAddress_not_contains: Bytes + loanTokenAddress_not_in: [Bytes!] + loanTokenSent: BigDecimal + loanTokenSent_gt: BigDecimal + loanTokenSent_gte: BigDecimal + loanTokenSent_in: [BigDecimal!] + loanTokenSent_lt: BigDecimal + loanTokenSent_lte: BigDecimal + loanTokenSent_not: BigDecimal + loanTokenSent_not_in: [BigDecimal!] + principal: BigDecimal + principal_gt: BigDecimal + principal_gte: BigDecimal + principal_in: [BigDecimal!] + principal_lt: BigDecimal + principal_lte: BigDecimal + principal_not: BigDecimal + principal_not_in: [BigDecimal!] + timestamp: Int + timestamp_gt: Int + timestamp_gte: Int + timestamp_in: [Int!] + timestamp_lt: Int + timestamp_lte: Int + timestamp_not: Int + timestamp_not_in: [Int!] + trader: String + trader_contains: String + trader_ends_with: String + trader_gt: String + trader_gte: String + trader_in: [String!] + trader_lt: String + trader_lte: String + trader_not: String + trader_not_contains: String + trader_not_ends_with: String + trader_not_in: [String!] + trader_not_starts_with: String + trader_starts_with: String + transaction: String + transaction_contains: String + transaction_ends_with: String + transaction_gt: String + transaction_gte: String + transaction_in: [String!] + transaction_lt: String + transaction_lte: String + transaction_not: String + transaction_not_contains: String + transaction_not_ends_with: String + transaction_not_in: [String!] + transaction_not_starts_with: String + transaction_starts_with: String +} + +enum MarginOrderFilled_orderBy { + collateral + collateralTokenAddress + collateralTokenSent + emittedBy + filledPrice + hash + id + leverageAmount + loanTokenAddress + loanTokenSent + principal + timestamp + trader + transaction +} + +enum Network { + Mainnet + Testnet +} + +type OrderCanceled { + emittedBy: Bytes! + hash: Bytes! + id: ID! + maker: Bytes! + timestamp: Int! + transaction: Transaction! +} + +input OrderCanceled_filter { + emittedBy: Bytes + emittedBy_contains: Bytes + emittedBy_in: [Bytes!] + emittedBy_not: Bytes + emittedBy_not_contains: Bytes + emittedBy_not_in: [Bytes!] + hash: Bytes + hash_contains: Bytes + hash_in: [Bytes!] + hash_not: Bytes + hash_not_contains: Bytes + hash_not_in: [Bytes!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + maker: Bytes + maker_contains: Bytes + maker_in: [Bytes!] + maker_not: Bytes + maker_not_contains: Bytes + maker_not_in: [Bytes!] + timestamp: Int + timestamp_gt: Int + timestamp_gte: Int + timestamp_in: [Int!] + timestamp_lt: Int + timestamp_lte: Int + timestamp_not: Int + timestamp_not_in: [Int!] + transaction: String + transaction_contains: String + transaction_ends_with: String + transaction_gt: String + transaction_gte: String + transaction_in: [String!] + transaction_lt: String + transaction_lte: String + transaction_not: String + transaction_not_contains: String + transaction_not_ends_with: String + transaction_not_in: [String!] + transaction_not_starts_with: String + transaction_starts_with: String +} + +enum OrderCanceled_orderBy { + emittedBy + hash + id + maker + timestamp + transaction +} + +type OrderCreated { + emittedBy: Bytes! + hash: Bytes! + id: ID! + + "The price at which the order should be executed.\nThis is a BigInt (usually 1e18), not a human-readable decimal. (See above for explanation)\n" + limitPrice: BigInt! + network: Network! + + "The amountIn is a BigInt (usually 1e18), not a human-readable decimal.\nThis is because both orderbooks are on testnet, and so this subgraph cannot access the correct number of token decimals for mainnet tokens\n" + order_amountIn: BigInt! + + "The amountIn is a BigInt (usually 1e18), not a human-readable decimal. (See above for explanation)\n" + order_amountOutMin: BigInt! + + "Timestamp when the order was created\n" + order_created: BigInt! + + "Timestamp when the order must be filled by\n" + order_deadline: BigInt! + order_fromToken: Bytes! + + "This is the User address. This is not a User entity because of the testnet/mainnet issue (see above comment)\n" + order_maker: Bytes! + order_recipient: Bytes! + order_toToken: Bytes! + timestamp: Int! + transaction: Transaction! +} + +input OrderCreated_filter { + emittedBy: Bytes + emittedBy_contains: Bytes + emittedBy_in: [Bytes!] + emittedBy_not: Bytes + emittedBy_not_contains: Bytes + emittedBy_not_in: [Bytes!] + hash: Bytes + hash_contains: Bytes + hash_in: [Bytes!] + hash_not: Bytes + hash_not_contains: Bytes + hash_not_in: [Bytes!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + limitPrice: BigInt + limitPrice_gt: BigInt + limitPrice_gte: BigInt + limitPrice_in: [BigInt!] + limitPrice_lt: BigInt + limitPrice_lte: BigInt + limitPrice_not: BigInt + limitPrice_not_in: [BigInt!] + network: Network + network_in: [Network!] + network_not: Network + network_not_in: [Network!] + order_amountIn: BigInt + order_amountIn_gt: BigInt + order_amountIn_gte: BigInt + order_amountIn_in: [BigInt!] + order_amountIn_lt: BigInt + order_amountIn_lte: BigInt + order_amountIn_not: BigInt + order_amountIn_not_in: [BigInt!] + order_amountOutMin: BigInt + order_amountOutMin_gt: BigInt + order_amountOutMin_gte: BigInt + order_amountOutMin_in: [BigInt!] + order_amountOutMin_lt: BigInt + order_amountOutMin_lte: BigInt + order_amountOutMin_not: BigInt + order_amountOutMin_not_in: [BigInt!] + order_created: BigInt + order_created_gt: BigInt + order_created_gte: BigInt + order_created_in: [BigInt!] + order_created_lt: BigInt + order_created_lte: BigInt + order_created_not: BigInt + order_created_not_in: [BigInt!] + order_deadline: BigInt + order_deadline_gt: BigInt + order_deadline_gte: BigInt + order_deadline_in: [BigInt!] + order_deadline_lt: BigInt + order_deadline_lte: BigInt + order_deadline_not: BigInt + order_deadline_not_in: [BigInt!] + order_fromToken: Bytes + order_fromToken_contains: Bytes + order_fromToken_in: [Bytes!] + order_fromToken_not: Bytes + order_fromToken_not_contains: Bytes + order_fromToken_not_in: [Bytes!] + order_maker: Bytes + order_maker_contains: Bytes + order_maker_in: [Bytes!] + order_maker_not: Bytes + order_maker_not_contains: Bytes + order_maker_not_in: [Bytes!] + order_recipient: Bytes + order_recipient_contains: Bytes + order_recipient_in: [Bytes!] + order_recipient_not: Bytes + order_recipient_not_contains: Bytes + order_recipient_not_in: [Bytes!] + order_toToken: Bytes + order_toToken_contains: Bytes + order_toToken_in: [Bytes!] + order_toToken_not: Bytes + order_toToken_not_contains: Bytes + order_toToken_not_in: [Bytes!] + timestamp: Int + timestamp_gt: Int + timestamp_gte: Int + timestamp_in: [Int!] + timestamp_lt: Int + timestamp_lte: Int + timestamp_not: Int + timestamp_not_in: [Int!] + transaction: String + transaction_contains: String + transaction_ends_with: String + transaction_gt: String + transaction_gte: String + transaction_in: [String!] + transaction_lt: String + transaction_lte: String + transaction_not: String + transaction_not_contains: String + transaction_not_ends_with: String + transaction_not_in: [String!] + transaction_not_starts_with: String + transaction_starts_with: String +} + +enum OrderCreated_orderBy { + emittedBy + hash + id + limitPrice + network + order_amountIn + order_amountOutMin + order_created + order_deadline + order_fromToken + order_maker + order_recipient + order_toToken + timestamp + transaction +} + +enum OrderDirection { + asc + desc +} + +type OrderFilled { + amountIn: BigDecimal! + amountOut: BigDecimal! + emittedBy: Bytes! + filledPrice: BigDecimal! + hash: Bytes! + id: ID! + maker: User! + path: [String!]! + timestamp: Int! + transaction: Transaction! +} + +input OrderFilled_filter { + amountIn: BigDecimal + amountIn_gt: BigDecimal + amountIn_gte: BigDecimal + amountIn_in: [BigDecimal!] + amountIn_lt: BigDecimal + amountIn_lte: BigDecimal + amountIn_not: BigDecimal + amountIn_not_in: [BigDecimal!] + amountOut: BigDecimal + amountOut_gt: BigDecimal + amountOut_gte: BigDecimal + amountOut_in: [BigDecimal!] + amountOut_lt: BigDecimal + amountOut_lte: BigDecimal + amountOut_not: BigDecimal + amountOut_not_in: [BigDecimal!] + emittedBy: Bytes + emittedBy_contains: Bytes + emittedBy_in: [Bytes!] + emittedBy_not: Bytes + emittedBy_not_contains: Bytes + emittedBy_not_in: [Bytes!] + filledPrice: BigDecimal + filledPrice_gt: BigDecimal + filledPrice_gte: BigDecimal + filledPrice_in: [BigDecimal!] + filledPrice_lt: BigDecimal + filledPrice_lte: BigDecimal + filledPrice_not: BigDecimal + filledPrice_not_in: [BigDecimal!] + hash: Bytes + hash_contains: Bytes + hash_in: [Bytes!] + hash_not: Bytes + hash_not_contains: Bytes + hash_not_in: [Bytes!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + maker: String + maker_contains: String + maker_ends_with: String + maker_gt: String + maker_gte: String + maker_in: [String!] + maker_lt: String + maker_lte: String + maker_not: String + maker_not_contains: String + maker_not_ends_with: String + maker_not_in: [String!] + maker_not_starts_with: String + maker_starts_with: String + path: [String!] + path_contains: [String!] + path_not: [String!] + path_not_contains: [String!] + timestamp: Int + timestamp_gt: Int + timestamp_gte: Int + timestamp_in: [Int!] + timestamp_lt: Int + timestamp_lte: Int + timestamp_not: Int + timestamp_not_in: [Int!] + transaction: String + transaction_contains: String + transaction_ends_with: String + transaction_gt: String + transaction_gte: String + transaction_in: [String!] + transaction_lt: String + transaction_lte: String + transaction_not: String + transaction_not_contains: String + transaction_not_ends_with: String + transaction_not_in: [String!] + transaction_not_starts_with: String + transaction_starts_with: String +} + +enum OrderFilled_orderBy { + amountIn + amountOut + emittedBy + filledPrice + hash + id + maker + path + timestamp + transaction +} + +type OwnerUpdate { + emittedBy: String! + id: ID! + newOwner: String! + prevOwner: String! + timestamp: BigInt! +} + +input OwnerUpdate_filter { + emittedBy: String + emittedBy_contains: String + emittedBy_ends_with: String + emittedBy_gt: String + emittedBy_gte: String + emittedBy_in: [String!] + emittedBy_lt: String + emittedBy_lte: String + emittedBy_not: String + emittedBy_not_contains: String + emittedBy_not_ends_with: String + emittedBy_not_in: [String!] + emittedBy_not_starts_with: String + emittedBy_starts_with: String + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + newOwner: String + newOwner_contains: String + newOwner_ends_with: String + newOwner_gt: String + newOwner_gte: String + newOwner_in: [String!] + newOwner_lt: String + newOwner_lte: String + newOwner_not: String + newOwner_not_contains: String + newOwner_not_ends_with: String + newOwner_not_in: [String!] + newOwner_not_starts_with: String + newOwner_starts_with: String + prevOwner: String + prevOwner_contains: String + prevOwner_ends_with: String + prevOwner_gt: String + prevOwner_gte: String + prevOwner_in: [String!] + prevOwner_lt: String + prevOwner_lte: String + prevOwner_not: String + prevOwner_not_contains: String + prevOwner_not_ends_with: String + prevOwner_not_in: [String!] + prevOwner_not_starts_with: String + prevOwner_starts_with: String + timestamp: BigInt + timestamp_gt: BigInt + timestamp_gte: BigInt + timestamp_in: [BigInt!] + timestamp_lt: BigInt + timestamp_lte: BigInt + timestamp_not: BigInt + timestamp_not_in: [BigInt!] +} + +enum OwnerUpdate_orderBy { + emittedBy + id + newOwner + prevOwner + timestamp +} + +"Granular event data for the Loan entity. Emitted when a user Borrows and when a loan is rolled over\n" +type PayBorrowingFee { + amount: BigDecimal! + emittedBy: Bytes! + id: ID! + loanId: Loan! + payer: Bytes! + timestamp: Int! + token: Bytes! + transaction: Transaction! +} + +input PayBorrowingFee_filter { + amount: BigDecimal + amount_gt: BigDecimal + amount_gte: BigDecimal + amount_in: [BigDecimal!] + amount_lt: BigDecimal + amount_lte: BigDecimal + amount_not: BigDecimal + amount_not_in: [BigDecimal!] + emittedBy: Bytes + emittedBy_contains: Bytes + emittedBy_in: [Bytes!] + emittedBy_not: Bytes + emittedBy_not_contains: Bytes + emittedBy_not_in: [Bytes!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + loanId: String + loanId_contains: String + loanId_ends_with: String + loanId_gt: String + loanId_gte: String + loanId_in: [String!] + loanId_lt: String + loanId_lte: String + loanId_not: String + loanId_not_contains: String + loanId_not_ends_with: String + loanId_not_in: [String!] + loanId_not_starts_with: String + loanId_starts_with: String + payer: Bytes + payer_contains: Bytes + payer_in: [Bytes!] + payer_not: Bytes + payer_not_contains: Bytes + payer_not_in: [Bytes!] + timestamp: Int + timestamp_gt: Int + timestamp_gte: Int + timestamp_in: [Int!] + timestamp_lt: Int + timestamp_lte: Int + timestamp_not: Int + timestamp_not_in: [Int!] + token: Bytes + token_contains: Bytes + token_in: [Bytes!] + token_not: Bytes + token_not_contains: Bytes + token_not_in: [Bytes!] + transaction: String + transaction_contains: String + transaction_ends_with: String + transaction_gt: String + transaction_gte: String + transaction_in: [String!] + transaction_lt: String + transaction_lte: String + transaction_not: String + transaction_not_contains: String + transaction_not_ends_with: String + transaction_not_in: [String!] + transaction_not_starts_with: String + transaction_starts_with: String +} + +enum PayBorrowingFee_orderBy { + amount + emittedBy + id + loanId + payer + timestamp + token + transaction +} + +type PayInterestTransfer { + effectiveInterest: BigDecimal! + emittedBy: String! + id: ID! + interestToken: Token! + lender: LendingPool! + timestamp: Int! + transaction: Transaction! +} + +input PayInterestTransfer_filter { + effectiveInterest: BigDecimal + effectiveInterest_gt: BigDecimal + effectiveInterest_gte: BigDecimal + effectiveInterest_in: [BigDecimal!] + effectiveInterest_lt: BigDecimal + effectiveInterest_lte: BigDecimal + effectiveInterest_not: BigDecimal + effectiveInterest_not_in: [BigDecimal!] + emittedBy: String + emittedBy_contains: String + emittedBy_ends_with: String + emittedBy_gt: String + emittedBy_gte: String + emittedBy_in: [String!] + emittedBy_lt: String + emittedBy_lte: String + emittedBy_not: String + emittedBy_not_contains: String + emittedBy_not_ends_with: String + emittedBy_not_in: [String!] + emittedBy_not_starts_with: String + emittedBy_starts_with: String + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + interestToken: String + interestToken_contains: String + interestToken_ends_with: String + interestToken_gt: String + interestToken_gte: String + interestToken_in: [String!] + interestToken_lt: String + interestToken_lte: String + interestToken_not: String + interestToken_not_contains: String + interestToken_not_ends_with: String + interestToken_not_in: [String!] + interestToken_not_starts_with: String + interestToken_starts_with: String + lender: String + lender_contains: String + lender_ends_with: String + lender_gt: String + lender_gte: String + lender_in: [String!] + lender_lt: String + lender_lte: String + lender_not: String + lender_not_contains: String + lender_not_ends_with: String + lender_not_in: [String!] + lender_not_starts_with: String + lender_starts_with: String + timestamp: Int + timestamp_gt: Int + timestamp_gte: Int + timestamp_in: [Int!] + timestamp_lt: Int + timestamp_lte: Int + timestamp_not: Int + timestamp_not_in: [Int!] + transaction: String + transaction_contains: String + transaction_ends_with: String + transaction_gt: String + transaction_gte: String + transaction_in: [String!] + transaction_lt: String + transaction_lte: String + transaction_not: String + transaction_not_contains: String + transaction_not_ends_with: String + transaction_not_in: [String!] + transaction_not_starts_with: String + transaction_starts_with: String +} + +enum PayInterestTransfer_orderBy { + effectiveInterest + emittedBy + id + interestToken + lender + timestamp + transaction +} + +"Granular event data for the Loan entity. Emitted when a user Lends or Unlends and when a loan is rolled over\n" +type PayLendingFee { + amount: BigDecimal! + emittedBy: Bytes! + id: ID! + payer: Bytes! + timestamp: Int! + token: Bytes! + transaction: Transaction! +} + +input PayLendingFee_filter { + amount: BigDecimal + amount_gt: BigDecimal + amount_gte: BigDecimal + amount_in: [BigDecimal!] + amount_lt: BigDecimal + amount_lte: BigDecimal + amount_not: BigDecimal + amount_not_in: [BigDecimal!] + emittedBy: Bytes + emittedBy_contains: Bytes + emittedBy_in: [Bytes!] + emittedBy_not: Bytes + emittedBy_not_contains: Bytes + emittedBy_not_in: [Bytes!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + payer: Bytes + payer_contains: Bytes + payer_in: [Bytes!] + payer_not: Bytes + payer_not_contains: Bytes + payer_not_in: [Bytes!] + timestamp: Int + timestamp_gt: Int + timestamp_gte: Int + timestamp_in: [Int!] + timestamp_lt: Int + timestamp_lte: Int + timestamp_not: Int + timestamp_not_in: [Int!] + token: Bytes + token_contains: Bytes + token_in: [Bytes!] + token_not: Bytes + token_not_contains: Bytes + token_not_in: [Bytes!] + transaction: String + transaction_contains: String + transaction_ends_with: String + transaction_gt: String + transaction_gte: String + transaction_in: [String!] + transaction_lt: String + transaction_lte: String + transaction_not: String + transaction_not_contains: String + transaction_not_ends_with: String + transaction_not_in: [String!] + transaction_not_starts_with: String + transaction_starts_with: String +} + +enum PayLendingFee_orderBy { + amount + emittedBy + id + payer + timestamp + token + transaction +} + +"Granular event data for the Loan entity. Emitted when a user Margin Trades and when a loan is rolled over\n" +type PayTradingFee { + amount: BigDecimal! + emittedBy: Bytes! + id: ID! + loanId: Loan! + payer: Bytes! + timestamp: Int! + token: Bytes! + transaction: Transaction! +} + +input PayTradingFee_filter { + amount: BigDecimal + amount_gt: BigDecimal + amount_gte: BigDecimal + amount_in: [BigDecimal!] + amount_lt: BigDecimal + amount_lte: BigDecimal + amount_not: BigDecimal + amount_not_in: [BigDecimal!] + emittedBy: Bytes + emittedBy_contains: Bytes + emittedBy_in: [Bytes!] + emittedBy_not: Bytes + emittedBy_not_contains: Bytes + emittedBy_not_in: [Bytes!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + loanId: String + loanId_contains: String + loanId_ends_with: String + loanId_gt: String + loanId_gte: String + loanId_in: [String!] + loanId_lt: String + loanId_lte: String + loanId_not: String + loanId_not_contains: String + loanId_not_ends_with: String + loanId_not_in: [String!] + loanId_not_starts_with: String + loanId_starts_with: String + payer: Bytes + payer_contains: Bytes + payer_in: [Bytes!] + payer_not: Bytes + payer_not_contains: Bytes + payer_not_in: [Bytes!] + timestamp: Int + timestamp_gt: Int + timestamp_gte: Int + timestamp_in: [Int!] + timestamp_lt: Int + timestamp_lte: Int + timestamp_not: Int + timestamp_not_in: [Int!] + token: Bytes + token_contains: Bytes + token_in: [Bytes!] + token_not: Bytes + token_not_contains: Bytes + token_not_in: [Bytes!] + transaction: String + transaction_contains: String + transaction_ends_with: String + transaction_gt: String + transaction_gte: String + transaction_in: [String!] + transaction_lt: String + transaction_lte: String + transaction_not: String + transaction_not_contains: String + transaction_not_ends_with: String + transaction_not_in: [String!] + transaction_not_starts_with: String + transaction_starts_with: String +} + +enum PayTradingFee_orderBy { + amount + emittedBy + id + loanId + payer + timestamp + token + transaction +} + +"For the V1 pools, the pool token and smart token are the same. However, for V2 pools, there is one pool token per asset and only one smart token for the pool.\n" +type PoolToken { + decimals: Int + id: ID! + liquidityPool: LiquidityPool! + name: String + symbol: String + + "For V1 pools, there will be 2 underlying assets, however for V2 pools there will be just one\n" + underlyingAssets( + first: Int = 100 + orderBy: Token_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: Token_filter + ): [Token!]! +} + +input PoolToken_filter { + decimals: Int + decimals_gt: Int + decimals_gte: Int + decimals_in: [Int!] + decimals_lt: Int + decimals_lte: Int + decimals_not: Int + decimals_not_in: [Int!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + liquidityPool: String + liquidityPool_contains: String + liquidityPool_ends_with: String + liquidityPool_gt: String + liquidityPool_gte: String + liquidityPool_in: [String!] + liquidityPool_lt: String + liquidityPool_lte: String + liquidityPool_not: String + liquidityPool_not_contains: String + liquidityPool_not_ends_with: String + liquidityPool_not_in: [String!] + liquidityPool_not_starts_with: String + liquidityPool_starts_with: String + name: String + name_contains: String + name_ends_with: String + name_gt: String + name_gte: String + name_in: [String!] + name_lt: String + name_lte: String + name_not: String + name_not_contains: String + name_not_ends_with: String + name_not_in: [String!] + name_not_starts_with: String + name_starts_with: String + symbol: String + symbol_contains: String + symbol_ends_with: String + symbol_gt: String + symbol_gte: String + symbol_in: [String!] + symbol_lt: String + symbol_lte: String + symbol_not: String + symbol_not_contains: String + symbol_not_ends_with: String + symbol_not_in: [String!] + symbol_not_starts_with: String + symbol_starts_with: String + underlyingAssets: [String!] + underlyingAssets_contains: [String!] + underlyingAssets_not: [String!] + underlyingAssets_not_contains: [String!] +} + +enum PoolToken_orderBy { + decimals + id + liquidityPool + name + symbol + underlyingAssets +} + +"A Proposal is created each time a SIP (Sovryn Improvement Proposal) is proposed\nThe Proposal is created, voted on, and then executed if it passes\nTo see if a Proposal has been executed, see if the executed property is null or if it has a transaction\n" +type Proposal { + "If the proposal was canceled, the transaction that canceled it (otherwise null)\n" + canceled: Transaction + + "Number of unique wallets that voted against this proposal\n" + countVotersAgainst: Int! + + "Number of unique wallets that voted for this proposal\n" + countVotersFor: Int! + + "Transaction that created the proposal\n" + created: Transaction! + + "Brief description of what this SIP is for, sometimes with a link to the github repo and README for this proposal\n" + description: String! + + "The contract that emitted this event\n" + emittedBy: Bytes! + + "Block when voting ends\n" + endBlock: Int! + + "If the proposal was executed, the transaction that executed it (otherwise null)\n" + executed: Transaction + + "ID is the address of the governor contract that was used to create the proposal, + the id of the proposal\n" + id: ID! + proposalId: Int! + + "Address of the user who created this proposal\n" + proposer: Bytes! + + "If the proposal was queued, the transaction that queued it (otherwise null)\n" + queued: Transaction + + "Function signatures in the targeted contract that would be affected by this proposal passing\n" + signatures: [String!]! + + "Block when voting starts\n" + startBlock: Int! + + "Contract or contracts that this proposal targets\n" + targets: [String!]! + + "Timestamp when this proposal was created. This is also available in the created transaction, but is included here so it is possible to order by timestamp\n" + timestamp: Int! + values: [BigInt!]! + + "Individual vote transactions\n" + votes( + first: Int = 100 + orderBy: VoteCast_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: VoteCast_filter + ): [VoteCast!] + + "Number of votes against the proposal (weighted vote, not number of voters)\n" + votesAgainst: BigInt! + + "Number of votes for the proposal (weighted vote, not number of voters)\n" + votesFor: BigInt! +} + +input Proposal_filter { + canceled: String + canceled_contains: String + canceled_ends_with: String + canceled_gt: String + canceled_gte: String + canceled_in: [String!] + canceled_lt: String + canceled_lte: String + canceled_not: String + canceled_not_contains: String + canceled_not_ends_with: String + canceled_not_in: [String!] + canceled_not_starts_with: String + canceled_starts_with: String + countVotersAgainst: Int + countVotersAgainst_gt: Int + countVotersAgainst_gte: Int + countVotersAgainst_in: [Int!] + countVotersAgainst_lt: Int + countVotersAgainst_lte: Int + countVotersAgainst_not: Int + countVotersAgainst_not_in: [Int!] + countVotersFor: Int + countVotersFor_gt: Int + countVotersFor_gte: Int + countVotersFor_in: [Int!] + countVotersFor_lt: Int + countVotersFor_lte: Int + countVotersFor_not: Int + countVotersFor_not_in: [Int!] + created: String + created_contains: String + created_ends_with: String + created_gt: String + created_gte: String + created_in: [String!] + created_lt: String + created_lte: String + created_not: String + created_not_contains: String + created_not_ends_with: String + created_not_in: [String!] + created_not_starts_with: String + created_starts_with: String + description: String + description_contains: String + description_ends_with: String + description_gt: String + description_gte: String + description_in: [String!] + description_lt: String + description_lte: String + description_not: String + description_not_contains: String + description_not_ends_with: String + description_not_in: [String!] + description_not_starts_with: String + description_starts_with: String + emittedBy: Bytes + emittedBy_contains: Bytes + emittedBy_in: [Bytes!] + emittedBy_not: Bytes + emittedBy_not_contains: Bytes + emittedBy_not_in: [Bytes!] + endBlock: Int + endBlock_gt: Int + endBlock_gte: Int + endBlock_in: [Int!] + endBlock_lt: Int + endBlock_lte: Int + endBlock_not: Int + endBlock_not_in: [Int!] + executed: String + executed_contains: String + executed_ends_with: String + executed_gt: String + executed_gte: String + executed_in: [String!] + executed_lt: String + executed_lte: String + executed_not: String + executed_not_contains: String + executed_not_ends_with: String + executed_not_in: [String!] + executed_not_starts_with: String + executed_starts_with: String + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + proposalId: Int + proposalId_gt: Int + proposalId_gte: Int + proposalId_in: [Int!] + proposalId_lt: Int + proposalId_lte: Int + proposalId_not: Int + proposalId_not_in: [Int!] + proposer: Bytes + proposer_contains: Bytes + proposer_in: [Bytes!] + proposer_not: Bytes + proposer_not_contains: Bytes + proposer_not_in: [Bytes!] + queued: String + queued_contains: String + queued_ends_with: String + queued_gt: String + queued_gte: String + queued_in: [String!] + queued_lt: String + queued_lte: String + queued_not: String + queued_not_contains: String + queued_not_ends_with: String + queued_not_in: [String!] + queued_not_starts_with: String + queued_starts_with: String + signatures: [String!] + signatures_contains: [String!] + signatures_not: [String!] + signatures_not_contains: [String!] + startBlock: Int + startBlock_gt: Int + startBlock_gte: Int + startBlock_in: [Int!] + startBlock_lt: Int + startBlock_lte: Int + startBlock_not: Int + startBlock_not_in: [Int!] + targets: [String!] + targets_contains: [String!] + targets_not: [String!] + targets_not_contains: [String!] + timestamp: Int + timestamp_gt: Int + timestamp_gte: Int + timestamp_in: [Int!] + timestamp_lt: Int + timestamp_lte: Int + timestamp_not: Int + timestamp_not_in: [Int!] + values: [BigInt!] + values_contains: [BigInt!] + values_not: [BigInt!] + values_not_contains: [BigInt!] + votesAgainst: BigInt + votesAgainst_gt: BigInt + votesAgainst_gte: BigInt + votesAgainst_in: [BigInt!] + votesAgainst_lt: BigInt + votesAgainst_lte: BigInt + votesAgainst_not: BigInt + votesAgainst_not_in: [BigInt!] + votesFor: BigInt + votesFor_gt: BigInt + votesFor_gte: BigInt + votesFor_in: [BigInt!] + votesFor_lt: BigInt + votesFor_lte: BigInt + votesFor_not: BigInt + votesFor_not_in: [BigInt!] +} + +enum Proposal_orderBy { + canceled + countVotersAgainst + countVotersFor + created + description + emittedBy + endBlock + executed + id + proposalId + proposer + queued + signatures + startBlock + targets + timestamp + values + votes + votesAgainst + votesFor +} + +"This entity will have only one instance and will be used to store protocol-wide data like list of tokens and number or users.\nThe ID of this one entity is \"0\"\n" +type ProtocolStats { + "Current price of BTC in usdStablecoin\n" + btcUsdPrice: BigDecimal! + + "This is SOV staked by vesting contracts. It in incremented when the contracts stake the tokens, and decremented when users claim their unlocked tokens\n" + currentStakedByVestingSov: BigDecimal! + + "This is SOV staked by users (not vesting contracts). It is incremented when users stake tokens, and decremented when users withdraw tokens from the staking contract\n" + currentVoluntarilyStakedSov: BigDecimal! + + "Only one entity should be created, with ID \"0\"\n" + id: ID! + + "An array of all tokens in the protocol\n" + tokens( + first: Int = 100 + orderBy: Token_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: Token_filter + ): [Token!]! + + "Total volume of fees earned by liquidity providers to AMM pools (in usd)\n" + totalAmmLpFeesUsd: BigDecimal! + + "Total volume of fees earned by SOV stakers from AMM conversion events (in usd). These fees began after the fee-sharing SIP was executed.\n" + totalAmmStakerFeesUsd: BigDecimal! + + "Total volume that has passed through every AMM pool of the Sovryn protocol (in usd)\n" + totalAmmVolumeUsd: BigDecimal! + + "Total of collateral property in Trade event (in usd). This may be changed to borrowed amount volume, but collateral keeps it consistent with margin trading\n" + totalBorrowVolumeUsd: BigDecimal! + + "Total fees from Borrowing earned by SOV stakers (in usd)\n" + totalBorrowingFeesUsd: BigDecimal! + + "Total volume of Borrows closed (in usd)\n" + totalCloseWithDepositVolumeUsd: BigDecimal! + + "Total position volume closed for Margin Trades (in usd)\n" + totalCloseWithSwapVolumeUsd: BigDecimal! + + "Total additional collateral deposited for Margin Trades and Borrows (in usd)\n" + totalDepositCollateralVolumeUsd: BigDecimal! + + "Total volume supplied to Lending Pools over all time (in usd)\n" + totalLendVolumeUsd: BigDecimal! + + "Total fees from Lending and Unlending earned by SOV stakers (in usd)\n" + totalLendingFeesUsd: BigDecimal! + + "Total Margin Trade and Borrow position size that has been liquidated (in usd)\n" + totalLiquidateVolumeUsd: BigDecimal! + + "Total of positionSize property in Trade event (in usd). This includes user collateral and borrowed amount\n" + totalMarginTradeVolumeUsd: BigDecimal! + + "Total fees from Margin Trading earned by SOV stakers (in usd)\n" + totalTradingFeesUsd: BigDecimal! + + "Total volume withdrawn from Lending Pool over all time (in usd)\n" + totalUnlendVolumeUsd: BigDecimal! + + "Total number of users of the protocol. This number is incremented each time a user initiates a transaction with the Protocol.\nIncremented when a user interacts with any contracts tracked by this subgraph.\nDoes not include the Zero, Mynt and Perperpetual Swaps users (unless they have also used the core protocol)\n" + totalUsers: Int! + + "The token currently used as a proxy for USD/BTC prices\n" + usdStablecoin: Token! +} + +input ProtocolStats_filter { + btcUsdPrice: BigDecimal + btcUsdPrice_gt: BigDecimal + btcUsdPrice_gte: BigDecimal + btcUsdPrice_in: [BigDecimal!] + btcUsdPrice_lt: BigDecimal + btcUsdPrice_lte: BigDecimal + btcUsdPrice_not: BigDecimal + btcUsdPrice_not_in: [BigDecimal!] + currentStakedByVestingSov: BigDecimal + currentStakedByVestingSov_gt: BigDecimal + currentStakedByVestingSov_gte: BigDecimal + currentStakedByVestingSov_in: [BigDecimal!] + currentStakedByVestingSov_lt: BigDecimal + currentStakedByVestingSov_lte: BigDecimal + currentStakedByVestingSov_not: BigDecimal + currentStakedByVestingSov_not_in: [BigDecimal!] + currentVoluntarilyStakedSov: BigDecimal + currentVoluntarilyStakedSov_gt: BigDecimal + currentVoluntarilyStakedSov_gte: BigDecimal + currentVoluntarilyStakedSov_in: [BigDecimal!] + currentVoluntarilyStakedSov_lt: BigDecimal + currentVoluntarilyStakedSov_lte: BigDecimal + currentVoluntarilyStakedSov_not: BigDecimal + currentVoluntarilyStakedSov_not_in: [BigDecimal!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + tokens: [String!] + tokens_contains: [String!] + tokens_not: [String!] + tokens_not_contains: [String!] + totalAmmLpFeesUsd: BigDecimal + totalAmmLpFeesUsd_gt: BigDecimal + totalAmmLpFeesUsd_gte: BigDecimal + totalAmmLpFeesUsd_in: [BigDecimal!] + totalAmmLpFeesUsd_lt: BigDecimal + totalAmmLpFeesUsd_lte: BigDecimal + totalAmmLpFeesUsd_not: BigDecimal + totalAmmLpFeesUsd_not_in: [BigDecimal!] + totalAmmStakerFeesUsd: BigDecimal + totalAmmStakerFeesUsd_gt: BigDecimal + totalAmmStakerFeesUsd_gte: BigDecimal + totalAmmStakerFeesUsd_in: [BigDecimal!] + totalAmmStakerFeesUsd_lt: BigDecimal + totalAmmStakerFeesUsd_lte: BigDecimal + totalAmmStakerFeesUsd_not: BigDecimal + totalAmmStakerFeesUsd_not_in: [BigDecimal!] + totalAmmVolumeUsd: BigDecimal + totalAmmVolumeUsd_gt: BigDecimal + totalAmmVolumeUsd_gte: BigDecimal + totalAmmVolumeUsd_in: [BigDecimal!] + totalAmmVolumeUsd_lt: BigDecimal + totalAmmVolumeUsd_lte: BigDecimal + totalAmmVolumeUsd_not: BigDecimal + totalAmmVolumeUsd_not_in: [BigDecimal!] + totalBorrowVolumeUsd: BigDecimal + totalBorrowVolumeUsd_gt: BigDecimal + totalBorrowVolumeUsd_gte: BigDecimal + totalBorrowVolumeUsd_in: [BigDecimal!] + totalBorrowVolumeUsd_lt: BigDecimal + totalBorrowVolumeUsd_lte: BigDecimal + totalBorrowVolumeUsd_not: BigDecimal + totalBorrowVolumeUsd_not_in: [BigDecimal!] + totalBorrowingFeesUsd: BigDecimal + totalBorrowingFeesUsd_gt: BigDecimal + totalBorrowingFeesUsd_gte: BigDecimal + totalBorrowingFeesUsd_in: [BigDecimal!] + totalBorrowingFeesUsd_lt: BigDecimal + totalBorrowingFeesUsd_lte: BigDecimal + totalBorrowingFeesUsd_not: BigDecimal + totalBorrowingFeesUsd_not_in: [BigDecimal!] + totalCloseWithDepositVolumeUsd: BigDecimal + totalCloseWithDepositVolumeUsd_gt: BigDecimal + totalCloseWithDepositVolumeUsd_gte: BigDecimal + totalCloseWithDepositVolumeUsd_in: [BigDecimal!] + totalCloseWithDepositVolumeUsd_lt: BigDecimal + totalCloseWithDepositVolumeUsd_lte: BigDecimal + totalCloseWithDepositVolumeUsd_not: BigDecimal + totalCloseWithDepositVolumeUsd_not_in: [BigDecimal!] + totalCloseWithSwapVolumeUsd: BigDecimal + totalCloseWithSwapVolumeUsd_gt: BigDecimal + totalCloseWithSwapVolumeUsd_gte: BigDecimal + totalCloseWithSwapVolumeUsd_in: [BigDecimal!] + totalCloseWithSwapVolumeUsd_lt: BigDecimal + totalCloseWithSwapVolumeUsd_lte: BigDecimal + totalCloseWithSwapVolumeUsd_not: BigDecimal + totalCloseWithSwapVolumeUsd_not_in: [BigDecimal!] + totalDepositCollateralVolumeUsd: BigDecimal + totalDepositCollateralVolumeUsd_gt: BigDecimal + totalDepositCollateralVolumeUsd_gte: BigDecimal + totalDepositCollateralVolumeUsd_in: [BigDecimal!] + totalDepositCollateralVolumeUsd_lt: BigDecimal + totalDepositCollateralVolumeUsd_lte: BigDecimal + totalDepositCollateralVolumeUsd_not: BigDecimal + totalDepositCollateralVolumeUsd_not_in: [BigDecimal!] + totalLendVolumeUsd: BigDecimal + totalLendVolumeUsd_gt: BigDecimal + totalLendVolumeUsd_gte: BigDecimal + totalLendVolumeUsd_in: [BigDecimal!] + totalLendVolumeUsd_lt: BigDecimal + totalLendVolumeUsd_lte: BigDecimal + totalLendVolumeUsd_not: BigDecimal + totalLendVolumeUsd_not_in: [BigDecimal!] + totalLendingFeesUsd: BigDecimal + totalLendingFeesUsd_gt: BigDecimal + totalLendingFeesUsd_gte: BigDecimal + totalLendingFeesUsd_in: [BigDecimal!] + totalLendingFeesUsd_lt: BigDecimal + totalLendingFeesUsd_lte: BigDecimal + totalLendingFeesUsd_not: BigDecimal + totalLendingFeesUsd_not_in: [BigDecimal!] + totalLiquidateVolumeUsd: BigDecimal + totalLiquidateVolumeUsd_gt: BigDecimal + totalLiquidateVolumeUsd_gte: BigDecimal + totalLiquidateVolumeUsd_in: [BigDecimal!] + totalLiquidateVolumeUsd_lt: BigDecimal + totalLiquidateVolumeUsd_lte: BigDecimal + totalLiquidateVolumeUsd_not: BigDecimal + totalLiquidateVolumeUsd_not_in: [BigDecimal!] + totalMarginTradeVolumeUsd: BigDecimal + totalMarginTradeVolumeUsd_gt: BigDecimal + totalMarginTradeVolumeUsd_gte: BigDecimal + totalMarginTradeVolumeUsd_in: [BigDecimal!] + totalMarginTradeVolumeUsd_lt: BigDecimal + totalMarginTradeVolumeUsd_lte: BigDecimal + totalMarginTradeVolumeUsd_not: BigDecimal + totalMarginTradeVolumeUsd_not_in: [BigDecimal!] + totalTradingFeesUsd: BigDecimal + totalTradingFeesUsd_gt: BigDecimal + totalTradingFeesUsd_gte: BigDecimal + totalTradingFeesUsd_in: [BigDecimal!] + totalTradingFeesUsd_lt: BigDecimal + totalTradingFeesUsd_lte: BigDecimal + totalTradingFeesUsd_not: BigDecimal + totalTradingFeesUsd_not_in: [BigDecimal!] + totalUnlendVolumeUsd: BigDecimal + totalUnlendVolumeUsd_gt: BigDecimal + totalUnlendVolumeUsd_gte: BigDecimal + totalUnlendVolumeUsd_in: [BigDecimal!] + totalUnlendVolumeUsd_lt: BigDecimal + totalUnlendVolumeUsd_lte: BigDecimal + totalUnlendVolumeUsd_not: BigDecimal + totalUnlendVolumeUsd_not_in: [BigDecimal!] + totalUsers: Int + totalUsers_gt: Int + totalUsers_gte: Int + totalUsers_in: [Int!] + totalUsers_lt: Int + totalUsers_lte: Int + totalUsers_not: Int + totalUsers_not_in: [Int!] + usdStablecoin: String + usdStablecoin_contains: String + usdStablecoin_ends_with: String + usdStablecoin_gt: String + usdStablecoin_gte: String + usdStablecoin_in: [String!] + usdStablecoin_lt: String + usdStablecoin_lte: String + usdStablecoin_not: String + usdStablecoin_not_contains: String + usdStablecoin_not_ends_with: String + usdStablecoin_not_in: [String!] + usdStablecoin_not_starts_with: String + usdStablecoin_starts_with: String +} + +enum ProtocolStats_orderBy { + btcUsdPrice + currentStakedByVestingSov + currentVoluntarilyStakedSov + id + tokens + totalAmmLpFeesUsd + totalAmmStakerFeesUsd + totalAmmVolumeUsd + totalBorrowVolumeUsd + totalBorrowingFeesUsd + totalCloseWithDepositVolumeUsd + totalCloseWithSwapVolumeUsd + totalDepositCollateralVolumeUsd + totalLendVolumeUsd + totalLendingFeesUsd + totalLiquidateVolumeUsd + totalMarginTradeVolumeUsd + totalTradingFeesUsd + totalUnlendVolumeUsd + totalUsers + usdStablecoin +} + +type ProtocolWithdrawFee { + amount: BigDecimal! + amountUsd: BigDecimal! + emittedBy: String! + feeType: FeeType! + + "ID is txHash-logIndex-tokenSymbol\n" + id: ID! + timestamp: Int! + token: Token! + transaction: Transaction! +} + +input ProtocolWithdrawFee_filter { + amount: BigDecimal + amountUsd: BigDecimal + amountUsd_gt: BigDecimal + amountUsd_gte: BigDecimal + amountUsd_in: [BigDecimal!] + amountUsd_lt: BigDecimal + amountUsd_lte: BigDecimal + amountUsd_not: BigDecimal + amountUsd_not_in: [BigDecimal!] + amount_gt: BigDecimal + amount_gte: BigDecimal + amount_in: [BigDecimal!] + amount_lt: BigDecimal + amount_lte: BigDecimal + amount_not: BigDecimal + amount_not_in: [BigDecimal!] + emittedBy: String + emittedBy_contains: String + emittedBy_ends_with: String + emittedBy_gt: String + emittedBy_gte: String + emittedBy_in: [String!] + emittedBy_lt: String + emittedBy_lte: String + emittedBy_not: String + emittedBy_not_contains: String + emittedBy_not_ends_with: String + emittedBy_not_in: [String!] + emittedBy_not_starts_with: String + emittedBy_starts_with: String + feeType: FeeType + feeType_in: [FeeType!] + feeType_not: FeeType + feeType_not_in: [FeeType!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + timestamp: Int + timestamp_gt: Int + timestamp_gte: Int + timestamp_in: [Int!] + timestamp_lt: Int + timestamp_lte: Int + timestamp_not: Int + timestamp_not_in: [Int!] + token: String + token_contains: String + token_ends_with: String + token_gt: String + token_gte: String + token_in: [String!] + token_lt: String + token_lte: String + token_not: String + token_not_contains: String + token_not_ends_with: String + token_not_in: [String!] + token_not_starts_with: String + token_starts_with: String + transaction: String + transaction_contains: String + transaction_ends_with: String + transaction_gt: String + transaction_gte: String + transaction_in: [String!] + transaction_lt: String + transaction_lte: String + transaction_not: String + transaction_not_contains: String + transaction_not_ends_with: String + transaction_not_in: [String!] + transaction_not_starts_with: String + transaction_starts_with: String +} + +enum ProtocolWithdrawFee_orderBy { + amount + amountUsd + emittedBy + feeType + id + timestamp + token + transaction +} + +type Query { + """ + Access to subgraph metadata + """ + _meta(block: Block_height): _Meta_ + bitcoinTransfer( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): BitcoinTransfer + bitcoinTransferBatchSending( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): BitcoinTransferBatchSending + bitcoinTransferBatchSendings( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: BitcoinTransferBatchSending_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: BitcoinTransferBatchSending_filter + ): [BitcoinTransferBatchSending!]! + bitcoinTransfers( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: BitcoinTransfer_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: BitcoinTransfer_filter + ): [BitcoinTransfer!]! + borrow( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): Borrow + borrows( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: Borrow_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: Borrow_filter + ): [Borrow!]! + bridge( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): Bridge + bridges( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: Bridge_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: Bridge_filter + ): [Bridge!]! + candleStickDay( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): CandleStickDay + candleStickDays( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: CandleStickDay_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: CandleStickDay_filter + ): [CandleStickDay!]! + candleStickFifteenMinute( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): CandleStickFifteenMinute + candleStickFifteenMinutes( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: CandleStickFifteenMinute_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: CandleStickFifteenMinute_filter + ): [CandleStickFifteenMinute!]! + candleStickFourHour( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): CandleStickFourHour + candleStickFourHours( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: CandleStickFourHour_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: CandleStickFourHour_filter + ): [CandleStickFourHour!]! + candleStickHour( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): CandleStickHour + candleStickHours( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: CandleStickHour_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: CandleStickHour_filter + ): [CandleStickHour!]! + candleStickMinute( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): CandleStickMinute + candleStickMinutes( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: CandleStickMinute_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: CandleStickMinute_filter + ): [CandleStickMinute!]! + closeWithDeposit( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): CloseWithDeposit + closeWithDeposits( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: CloseWithDeposit_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: CloseWithDeposit_filter + ): [CloseWithDeposit!]! + closeWithSwap( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): CloseWithSwap + closeWithSwaps( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: CloseWithSwap_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: CloseWithSwap_filter + ): [CloseWithSwap!]! + conversion( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): Conversion + conversions( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: Conversion_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: Conversion_filter + ): [Conversion!]! + converterRegistries( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: ConverterRegistry_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: ConverterRegistry_filter + ): [ConverterRegistry!]! + converterRegistry( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): ConverterRegistry + crossTransfer( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): CrossTransfer + crossTransfers( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: CrossTransfer_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: CrossTransfer_filter + ): [CrossTransfer!]! + deposit( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): Deposit + depositCollateral( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): DepositCollateral + depositCollaterals( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: DepositCollateral_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: DepositCollateral_filter + ): [DepositCollateral!]! + deposits( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: Deposit_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: Deposit_filter + ): [Deposit!]! + fastBTCBridgeStat( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): FastBTCBridgeStat + fastBTCBridgeStats( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: FastBTCBridgeStat_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: FastBTCBridgeStat_filter + ): [FastBTCBridgeStat!]! + federation( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): Federation + federations( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: Federation_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: Federation_filter + ): [Federation!]! + feeSharingTokensTransferred( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): FeeSharingTokensTransferred + feeSharingTokensTransferreds( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: FeeSharingTokensTransferred_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: FeeSharingTokensTransferred_filter + ): [FeeSharingTokensTransferred!]! + icandleStick( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): ICandleStick + icandleSticks( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: ICandleStick_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: ICandleStick_filter + ): [ICandleStick!]! + lendingHistoryItem( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): LendingHistoryItem + lendingHistoryItems( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: LendingHistoryItem_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: LendingHistoryItem_filter + ): [LendingHistoryItem!]! + lendingPool( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): LendingPool + lendingPools( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: LendingPool_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: LendingPool_filter + ): [LendingPool!]! + liquidate( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): Liquidate + liquidates( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: Liquidate_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: Liquidate_filter + ): [Liquidate!]! + liquidityHistoryItem( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): LiquidityHistoryItem + liquidityHistoryItems( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: LiquidityHistoryItem_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: LiquidityHistoryItem_filter + ): [LiquidityHistoryItem!]! + liquidityMiningAllocationPoint( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): LiquidityMiningAllocationPoint + liquidityMiningAllocationPoints( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: LiquidityMiningAllocationPoint_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: LiquidityMiningAllocationPoint_filter + ): [LiquidityMiningAllocationPoint!]! + liquidityMiningGlobal( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): LiquidityMiningGlobal + liquidityMiningGlobals( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: LiquidityMiningGlobal_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: LiquidityMiningGlobal_filter + ): [LiquidityMiningGlobal!]! + liquidityPool( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): LiquidityPool + liquidityPoolToken( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): LiquidityPoolToken + liquidityPoolTokens( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: LiquidityPoolToken_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: LiquidityPoolToken_filter + ): [LiquidityPoolToken!]! + liquidityPools( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: LiquidityPool_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: LiquidityPool_filter + ): [LiquidityPool!]! + loan( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): Loan + loans( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: Loan_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: Loan_filter + ): [Loan!]! + marginOrderCanceled( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): MarginOrderCanceled + marginOrderCanceleds( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: MarginOrderCanceled_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: MarginOrderCanceled_filter + ): [MarginOrderCanceled!]! + marginOrderFilled( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): MarginOrderFilled + marginOrderFilleds( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: MarginOrderFilled_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: MarginOrderFilled_filter + ): [MarginOrderFilled!]! + orderCanceled( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): OrderCanceled + orderCanceleds( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: OrderCanceled_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: OrderCanceled_filter + ): [OrderCanceled!]! + orderCreated( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): OrderCreated + orderCreateds( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: OrderCreated_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: OrderCreated_filter + ): [OrderCreated!]! + orderFilled( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): OrderFilled + orderFilleds( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: OrderFilled_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: OrderFilled_filter + ): [OrderFilled!]! + ownerUpdate( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): OwnerUpdate + ownerUpdates( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: OwnerUpdate_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: OwnerUpdate_filter + ): [OwnerUpdate!]! + payBorrowingFee( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): PayBorrowingFee + payBorrowingFees( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: PayBorrowingFee_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: PayBorrowingFee_filter + ): [PayBorrowingFee!]! + payInterestTransfer( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): PayInterestTransfer + payInterestTransfers( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: PayInterestTransfer_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: PayInterestTransfer_filter + ): [PayInterestTransfer!]! + payLendingFee( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): PayLendingFee + payLendingFees( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: PayLendingFee_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: PayLendingFee_filter + ): [PayLendingFee!]! + payTradingFee( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): PayTradingFee + payTradingFees( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: PayTradingFee_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: PayTradingFee_filter + ): [PayTradingFee!]! + poolToken( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): PoolToken + poolTokens( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: PoolToken_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: PoolToken_filter + ): [PoolToken!]! + proposal( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): Proposal + proposals( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: Proposal_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: Proposal_filter + ): [Proposal!]! + protocolStats( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: ProtocolStats_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: ProtocolStats_filter + ): [ProtocolStats!]! + protocolWithdrawFee( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): ProtocolWithdrawFee + protocolWithdrawFees( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: ProtocolWithdrawFee_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: ProtocolWithdrawFee_filter + ): [ProtocolWithdrawFee!]! + rewardsEarnedHistoryItem( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): RewardsEarnedHistoryItem + rewardsEarnedHistoryItems( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: RewardsEarnedHistoryItem_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: RewardsEarnedHistoryItem_filter + ): [RewardsEarnedHistoryItem!]! + rollover( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): Rollover + rollovers( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: Rollover_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: Rollover_filter + ): [Rollover!]! + sideToken( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): SideToken + sideTokens( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: SideToken_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: SideToken_filter + ): [SideToken!]! + smartToken( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): SmartToken + smartTokens( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: SmartToken_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: SmartToken_filter + ): [SmartToken!]! + stake( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): Stake + stakeHistoryItem( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): StakeHistoryItem + stakeHistoryItems( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: StakeHistoryItem_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: StakeHistoryItem_filter + ): [StakeHistoryItem!]! + stakes( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: Stake_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: Stake_filter + ): [Stake!]! + swap( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): Swap + swaps( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: Swap_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: Swap_filter + ): [Swap!]! + token( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): Token + tokenSmartToken( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): TokenSmartToken + tokenSmartTokens( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: TokenSmartToken_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: TokenSmartToken_filter + ): [TokenSmartToken!]! + tokens( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: Token_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: Token_filter + ): [Token!]! + tokensStaked( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): TokensStaked + tokensStakeds( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: TokensStaked_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: TokensStaked_filter + ): [TokensStaked!]! + trade( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): Trade + trades( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: Trade_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: Trade_filter + ): [Trade!]! + transaction( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): Transaction + transactions( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: Transaction_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: Transaction_filter + ): [Transaction!]! + user( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): User + userLendingHistories( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: UserLendingHistory_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: UserLendingHistory_filter + ): [UserLendingHistory!]! + userLendingHistory( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): UserLendingHistory + userLiquidityHistories( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: UserLiquidityHistory_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: UserLiquidityHistory_filter + ): [UserLiquidityHistory!]! + userLiquidityHistory( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): UserLiquidityHistory + userRewardsEarnedHistories( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: UserRewardsEarnedHistory_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: UserRewardsEarnedHistory_filter + ): [UserRewardsEarnedHistory!]! + userRewardsEarnedHistory( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): UserRewardsEarnedHistory + userStakeHistories( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: UserStakeHistory_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: UserStakeHistory_filter + ): [UserStakeHistory!]! + userStakeHistory( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): UserStakeHistory + userTotal( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): UserTotal + userTotals( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: UserTotal_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: UserTotal_filter + ): [UserTotal!]! + users( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: User_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: User_filter + ): [User!]! + vestingContract( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): VestingContract + vestingContracts( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: VestingContract_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: VestingContract_filter + ): [VestingContract!]! + vestingHistoryItem( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): VestingHistoryItem + vestingHistoryItems( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: VestingHistoryItem_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: VestingHistoryItem_filter + ): [VestingHistoryItem!]! + voteCast( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): VoteCast + voteCasts( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: VoteCast_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: VoteCast_filter + ): [VoteCast!]! + withdrawal( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): Withdrawal + withdrawals( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: Withdrawal_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: Withdrawal_filter + ): [Withdrawal!]! +} + +enum RewardsEarnedAction { + "SOV reward earned when a user margin trades or one of their trades is rolled over.\nThe reward is a percentage of the trading fee, paid in SOV.\n" + EarnReward + + "When a user claims a liquidity mining reward\n" + RewardClaimed + + "When SOV is staked by a Rewards vesting contract (eg after it has been claimed by the user)\n" + RewardSovStaked + + "When a SOV Staker withdraws their liquid SOV reward for staking\n" + StakingRewardWithdrawn + + "When an SOV Staker withdraws their share of the fees earned by the Protocol\n" + UserFeeWithdrawn +} + +type RewardsEarnedHistoryItem { + action: RewardsEarnedAction! + amount: BigDecimal! + id: ID! + timestamp: Int! + token: String + transaction: Transaction! + user: UserRewardsEarnedHistory! +} + +input RewardsEarnedHistoryItem_filter { + action: RewardsEarnedAction + action_in: [RewardsEarnedAction!] + action_not: RewardsEarnedAction + action_not_in: [RewardsEarnedAction!] + amount: BigDecimal + amount_gt: BigDecimal + amount_gte: BigDecimal + amount_in: [BigDecimal!] + amount_lt: BigDecimal + amount_lte: BigDecimal + amount_not: BigDecimal + amount_not_in: [BigDecimal!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + timestamp: Int + timestamp_gt: Int + timestamp_gte: Int + timestamp_in: [Int!] + timestamp_lt: Int + timestamp_lte: Int + timestamp_not: Int + timestamp_not_in: [Int!] + token: String + token_contains: String + token_ends_with: String + token_gt: String + token_gte: String + token_in: [String!] + token_lt: String + token_lte: String + token_not: String + token_not_contains: String + token_not_ends_with: String + token_not_in: [String!] + token_not_starts_with: String + token_starts_with: String + transaction: String + transaction_contains: String + transaction_ends_with: String + transaction_gt: String + transaction_gte: String + transaction_in: [String!] + transaction_lt: String + transaction_lte: String + transaction_not: String + transaction_not_contains: String + transaction_not_ends_with: String + transaction_not_in: [String!] + transaction_not_starts_with: String + transaction_starts_with: String + user: String + user_contains: String + user_ends_with: String + user_gt: String + user_gte: String + user_in: [String!] + user_lt: String + user_lte: String + user_not: String + user_not_contains: String + user_not_ends_with: String + user_not_in: [String!] + user_not_starts_with: String + user_starts_with: String +} + +enum RewardsEarnedHistoryItem_orderBy { + action + amount + id + timestamp + token + transaction + user +} + +"Granular event data for the Loan entity. Emitted when a Loan is rolled over.\nThis is when the next installment of interest is paid from the collateral, and the trading fee is paid\nThis transaction is initiated by the Sovryn node, which earns a reward for doing this\n" +type Rollover { + collateral: BigDecimal! + emittedBy: Bytes! + endTimestamp: Int! + id: ID! + lender: Bytes! + loanId: Loan! + principal: BigDecimal! + + "The reward received by the User for performing this function\n" + reward: BigDecimal! + + "The User running the Sovryn node that made this transaction\n" + rewardReceiver: User! + timestamp: Int! + transaction: Transaction! + user: User! +} + +input Rollover_filter { + collateral: BigDecimal + collateral_gt: BigDecimal + collateral_gte: BigDecimal + collateral_in: [BigDecimal!] + collateral_lt: BigDecimal + collateral_lte: BigDecimal + collateral_not: BigDecimal + collateral_not_in: [BigDecimal!] + emittedBy: Bytes + emittedBy_contains: Bytes + emittedBy_in: [Bytes!] + emittedBy_not: Bytes + emittedBy_not_contains: Bytes + emittedBy_not_in: [Bytes!] + endTimestamp: Int + endTimestamp_gt: Int + endTimestamp_gte: Int + endTimestamp_in: [Int!] + endTimestamp_lt: Int + endTimestamp_lte: Int + endTimestamp_not: Int + endTimestamp_not_in: [Int!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + lender: Bytes + lender_contains: Bytes + lender_in: [Bytes!] + lender_not: Bytes + lender_not_contains: Bytes + lender_not_in: [Bytes!] + loanId: String + loanId_contains: String + loanId_ends_with: String + loanId_gt: String + loanId_gte: String + loanId_in: [String!] + loanId_lt: String + loanId_lte: String + loanId_not: String + loanId_not_contains: String + loanId_not_ends_with: String + loanId_not_in: [String!] + loanId_not_starts_with: String + loanId_starts_with: String + principal: BigDecimal + principal_gt: BigDecimal + principal_gte: BigDecimal + principal_in: [BigDecimal!] + principal_lt: BigDecimal + principal_lte: BigDecimal + principal_not: BigDecimal + principal_not_in: [BigDecimal!] + reward: BigDecimal + rewardReceiver: String + rewardReceiver_contains: String + rewardReceiver_ends_with: String + rewardReceiver_gt: String + rewardReceiver_gte: String + rewardReceiver_in: [String!] + rewardReceiver_lt: String + rewardReceiver_lte: String + rewardReceiver_not: String + rewardReceiver_not_contains: String + rewardReceiver_not_ends_with: String + rewardReceiver_not_in: [String!] + rewardReceiver_not_starts_with: String + rewardReceiver_starts_with: String + reward_gt: BigDecimal + reward_gte: BigDecimal + reward_in: [BigDecimal!] + reward_lt: BigDecimal + reward_lte: BigDecimal + reward_not: BigDecimal + reward_not_in: [BigDecimal!] + timestamp: Int + timestamp_gt: Int + timestamp_gte: Int + timestamp_in: [Int!] + timestamp_lt: Int + timestamp_lte: Int + timestamp_not: Int + timestamp_not_in: [Int!] + transaction: String + transaction_contains: String + transaction_ends_with: String + transaction_gt: String + transaction_gte: String + transaction_in: [String!] + transaction_lt: String + transaction_lte: String + transaction_not: String + transaction_not_contains: String + transaction_not_ends_with: String + transaction_not_in: [String!] + transaction_not_starts_with: String + transaction_starts_with: String + user: String + user_contains: String + user_ends_with: String + user_gt: String + user_gte: String + user_in: [String!] + user_lt: String + user_lte: String + user_not: String + user_not_contains: String + user_not_ends_with: String + user_not_in: [String!] + user_not_starts_with: String + user_starts_with: String +} + +enum Rollover_orderBy { + collateral + emittedBy + endTimestamp + id + lender + loanId + principal + reward + rewardReceiver + timestamp + transaction + user +} + +"SideToken entity - for every token that is passed across the bridge and does not exist on sovryn a side token is created\n" +type SideToken { + "CreatedAtTx - the creation transaction of the side token\n" + createdAtTx: Transaction! + + "Granularity - this is the ERC777 granularity value for the side token\n" + granularity: BigInt! + + "Id - the side token is stored twice, once with the original token address as id and another with the side token address\n" + id: ID! + + "newSymbol - the new symbol given to the side token\n" + newSymbol: String! + + "OriginalTokenAddress - the original token address of the side token\n" + originalTokenAddress: Bytes! + + "SideTokenAddress - the token address on RSK of the side token\n" + sideTokenAddress: Bytes! + + "UpdatedAtTx - The side token was last updated at this transaction\n" + updatedAtTx: Transaction! +} + +input SideToken_filter { + createdAtTx: String + createdAtTx_contains: String + createdAtTx_ends_with: String + createdAtTx_gt: String + createdAtTx_gte: String + createdAtTx_in: [String!] + createdAtTx_lt: String + createdAtTx_lte: String + createdAtTx_not: String + createdAtTx_not_contains: String + createdAtTx_not_ends_with: String + createdAtTx_not_in: [String!] + createdAtTx_not_starts_with: String + createdAtTx_starts_with: String + granularity: BigInt + granularity_gt: BigInt + granularity_gte: BigInt + granularity_in: [BigInt!] + granularity_lt: BigInt + granularity_lte: BigInt + granularity_not: BigInt + granularity_not_in: [BigInt!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + newSymbol: String + newSymbol_contains: String + newSymbol_ends_with: String + newSymbol_gt: String + newSymbol_gte: String + newSymbol_in: [String!] + newSymbol_lt: String + newSymbol_lte: String + newSymbol_not: String + newSymbol_not_contains: String + newSymbol_not_ends_with: String + newSymbol_not_in: [String!] + newSymbol_not_starts_with: String + newSymbol_starts_with: String + originalTokenAddress: Bytes + originalTokenAddress_contains: Bytes + originalTokenAddress_in: [Bytes!] + originalTokenAddress_not: Bytes + originalTokenAddress_not_contains: Bytes + originalTokenAddress_not_in: [Bytes!] + sideTokenAddress: Bytes + sideTokenAddress_contains: Bytes + sideTokenAddress_in: [Bytes!] + sideTokenAddress_not: Bytes + sideTokenAddress_not_contains: Bytes + sideTokenAddress_not_in: [Bytes!] + updatedAtTx: String + updatedAtTx_contains: String + updatedAtTx_ends_with: String + updatedAtTx_gt: String + updatedAtTx_gte: String + updatedAtTx_in: [String!] + updatedAtTx_lt: String + updatedAtTx_lte: String + updatedAtTx_not: String + updatedAtTx_not_contains: String + updatedAtTx_not_ends_with: String + updatedAtTx_not_in: [String!] + updatedAtTx_not_starts_with: String + updatedAtTx_starts_with: String +} + +enum SideToken_orderBy { + createdAtTx + granularity + id + newSymbol + originalTokenAddress + sideTokenAddress + updatedAtTx +} + +"The smart token represents a single reserve asset on a single pool.\nFor V1 pools, there is 1 smart token representing both reserve assets. For V2 pools, there are 2 smart tokens, one for each reserve asset.\n" +type SmartToken { + addedToRegistryBlockNumber: Int + addedToRegistryTransactionHash: Bytes + + "connectorTokens are the entity that holds the many-to-many relationship between the underlying token asset and the smart token\n" + connectorTokens( + first: Int = 100 + orderBy: TokenSmartToken_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: TokenSmartToken_filter + ): [TokenSmartToken!] + + "The converter registry this smart token belongs to. Can be null if token is removed from th registry\n" + currentConverterRegistry: ConverterRegistry + + "Number of decimal places for this token\n" + decimals: Int + + "ID is smart token contract address\n" + id: ID! + + "The AMM pool this smart token \"belongs\" to\n" + liquidityPool: LiquidityPool! + + "Name of the smart token (set on the contract)\n" + name: String + + "The contract/account that owns the SmartToken contract. This will typically be the converter registry\n" + owner: String! + + "smartTokenType can be Relay or Liquid\n" + smartTokenType: String + + "Symbol for the smart token asset (set on the contract)\n" + symbol: String +} + +input SmartToken_filter { + addedToRegistryBlockNumber: Int + addedToRegistryBlockNumber_gt: Int + addedToRegistryBlockNumber_gte: Int + addedToRegistryBlockNumber_in: [Int!] + addedToRegistryBlockNumber_lt: Int + addedToRegistryBlockNumber_lte: Int + addedToRegistryBlockNumber_not: Int + addedToRegistryBlockNumber_not_in: [Int!] + addedToRegistryTransactionHash: Bytes + addedToRegistryTransactionHash_contains: Bytes + addedToRegistryTransactionHash_in: [Bytes!] + addedToRegistryTransactionHash_not: Bytes + addedToRegistryTransactionHash_not_contains: Bytes + addedToRegistryTransactionHash_not_in: [Bytes!] + currentConverterRegistry: String + currentConverterRegistry_contains: String + currentConverterRegistry_ends_with: String + currentConverterRegistry_gt: String + currentConverterRegistry_gte: String + currentConverterRegistry_in: [String!] + currentConverterRegistry_lt: String + currentConverterRegistry_lte: String + currentConverterRegistry_not: String + currentConverterRegistry_not_contains: String + currentConverterRegistry_not_ends_with: String + currentConverterRegistry_not_in: [String!] + currentConverterRegistry_not_starts_with: String + currentConverterRegistry_starts_with: String + decimals: Int + decimals_gt: Int + decimals_gte: Int + decimals_in: [Int!] + decimals_lt: Int + decimals_lte: Int + decimals_not: Int + decimals_not_in: [Int!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + name: String + name_contains: String + name_ends_with: String + name_gt: String + name_gte: String + name_in: [String!] + name_lt: String + name_lte: String + name_not: String + name_not_contains: String + name_not_ends_with: String + name_not_in: [String!] + name_not_starts_with: String + name_starts_with: String + owner: String + owner_contains: String + owner_ends_with: String + owner_gt: String + owner_gte: String + owner_in: [String!] + owner_lt: String + owner_lte: String + owner_not: String + owner_not_contains: String + owner_not_ends_with: String + owner_not_in: [String!] + owner_not_starts_with: String + owner_starts_with: String + smartTokenType: String + smartTokenType_contains: String + smartTokenType_ends_with: String + smartTokenType_gt: String + smartTokenType_gte: String + smartTokenType_in: [String!] + smartTokenType_lt: String + smartTokenType_lte: String + smartTokenType_not: String + smartTokenType_not_contains: String + smartTokenType_not_ends_with: String + smartTokenType_not_in: [String!] + smartTokenType_not_starts_with: String + smartTokenType_starts_with: String + symbol: String + symbol_contains: String + symbol_ends_with: String + symbol_gt: String + symbol_gte: String + symbol_in: [String!] + symbol_lt: String + symbol_lte: String + symbol_not: String + symbol_not_contains: String + symbol_not_ends_with: String + symbol_not_in: [String!] + symbol_not_starts_with: String + symbol_starts_with: String +} + +enum SmartToken_orderBy { + addedToRegistryBlockNumber + addedToRegistryTransactionHash + connectorTokens + currentConverterRegistry + decimals + id + liquidityPool + name + owner + smartTokenType + symbol +} + +type Stake { + amount: BigDecimal + delegatedAmount: BigDecimal! + id: ID! + lockedUntil: Int + user: User + vestingAmount: BigDecimal! +} + +enum StakeHistoryAction { + "When a user delegates voting power to another user. This can also be for voting power that the user has through a vesting contract.\n" + Delegate + + "Extending an existing stake. The amount of the stake remains the same, but the lockedUntil date increases.\n" + ExtendStake + + "When a user withdraws their share of the Protocol fees that is shared amongst stakers\n" + FeeWithdrawn + + "Increasing the amount of an existing stake. The lockedUntil date of this stake remains the same, but amount increases.\n" + IncreaseStake + + "Voluntarily staking SOV (ie not staked through a vesting contract)\n" + Stake + + "Unstake is early unstaking, when a user withdraws staked SOV before the lockedUntil date and incurs a slashing penalty.\n" + Unstake + + "WithdrawStaked is when a user withdraws SOV from the staking contract after the unlock date, when the funds are no longer staked or locked\n" + WithdrawStaked +} + +"This entity is the granular history of user actions related to voluntary staking\n" +type StakeHistoryItem { + action: StakeHistoryAction! + amount: BigDecimal + id: ID! + lockedUntil: Int + timestamp: Int! + token: String + transaction: Transaction! + user: UserStakeHistory! +} + +input StakeHistoryItem_filter { + action: StakeHistoryAction + action_in: [StakeHistoryAction!] + action_not: StakeHistoryAction + action_not_in: [StakeHistoryAction!] + amount: BigDecimal + amount_gt: BigDecimal + amount_gte: BigDecimal + amount_in: [BigDecimal!] + amount_lt: BigDecimal + amount_lte: BigDecimal + amount_not: BigDecimal + amount_not_in: [BigDecimal!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + lockedUntil: Int + lockedUntil_gt: Int + lockedUntil_gte: Int + lockedUntil_in: [Int!] + lockedUntil_lt: Int + lockedUntil_lte: Int + lockedUntil_not: Int + lockedUntil_not_in: [Int!] + timestamp: Int + timestamp_gt: Int + timestamp_gte: Int + timestamp_in: [Int!] + timestamp_lt: Int + timestamp_lte: Int + timestamp_not: Int + timestamp_not_in: [Int!] + token: String + token_contains: String + token_ends_with: String + token_gt: String + token_gte: String + token_in: [String!] + token_lt: String + token_lte: String + token_not: String + token_not_contains: String + token_not_ends_with: String + token_not_in: [String!] + token_not_starts_with: String + token_starts_with: String + transaction: String + transaction_contains: String + transaction_ends_with: String + transaction_gt: String + transaction_gte: String + transaction_in: [String!] + transaction_lt: String + transaction_lte: String + transaction_not: String + transaction_not_contains: String + transaction_not_ends_with: String + transaction_not_in: [String!] + transaction_not_starts_with: String + transaction_starts_with: String + user: String + user_contains: String + user_ends_with: String + user_gt: String + user_gte: String + user_in: [String!] + user_lt: String + user_lte: String + user_not: String + user_not_contains: String + user_not_ends_with: String + user_not_in: [String!] + user_not_starts_with: String + user_starts_with: String +} + +enum StakeHistoryItem_orderBy { + action + amount + id + lockedUntil + timestamp + token + transaction + user +} + +input Stake_filter { + amount: BigDecimal + amount_gt: BigDecimal + amount_gte: BigDecimal + amount_in: [BigDecimal!] + amount_lt: BigDecimal + amount_lte: BigDecimal + amount_not: BigDecimal + amount_not_in: [BigDecimal!] + delegatedAmount: BigDecimal + delegatedAmount_gt: BigDecimal + delegatedAmount_gte: BigDecimal + delegatedAmount_in: [BigDecimal!] + delegatedAmount_lt: BigDecimal + delegatedAmount_lte: BigDecimal + delegatedAmount_not: BigDecimal + delegatedAmount_not_in: [BigDecimal!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + lockedUntil: Int + lockedUntil_gt: Int + lockedUntil_gte: Int + lockedUntil_in: [Int!] + lockedUntil_lt: Int + lockedUntil_lte: Int + lockedUntil_not: Int + lockedUntil_not_in: [Int!] + user: String + user_contains: String + user_ends_with: String + user_gt: String + user_gte: String + user_in: [String!] + user_lt: String + user_lte: String + user_not: String + user_not_contains: String + user_not_ends_with: String + user_not_in: [String!] + user_not_starts_with: String + user_starts_with: String + vestingAmount: BigDecimal + vestingAmount_gt: BigDecimal + vestingAmount_gte: BigDecimal + vestingAmount_in: [BigDecimal!] + vestingAmount_lt: BigDecimal + vestingAmount_lte: BigDecimal + vestingAmount_not: BigDecimal + vestingAmount_not_in: [BigDecimal!] +} + +enum Stake_orderBy { + amount + delegatedAmount + id + lockedUntil + user + vestingAmount +} + +type Subscription { + """ + Access to subgraph metadata + """ + _meta(block: Block_height): _Meta_ + bitcoinTransfer( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): BitcoinTransfer + bitcoinTransferBatchSending( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): BitcoinTransferBatchSending + bitcoinTransferBatchSendings( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: BitcoinTransferBatchSending_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: BitcoinTransferBatchSending_filter + ): [BitcoinTransferBatchSending!]! + bitcoinTransfers( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: BitcoinTransfer_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: BitcoinTransfer_filter + ): [BitcoinTransfer!]! + borrow( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): Borrow + borrows( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: Borrow_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: Borrow_filter + ): [Borrow!]! + bridge( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): Bridge + bridges( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: Bridge_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: Bridge_filter + ): [Bridge!]! + candleStickDay( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): CandleStickDay + candleStickDays( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: CandleStickDay_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: CandleStickDay_filter + ): [CandleStickDay!]! + candleStickFifteenMinute( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): CandleStickFifteenMinute + candleStickFifteenMinutes( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: CandleStickFifteenMinute_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: CandleStickFifteenMinute_filter + ): [CandleStickFifteenMinute!]! + candleStickFourHour( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): CandleStickFourHour + candleStickFourHours( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: CandleStickFourHour_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: CandleStickFourHour_filter + ): [CandleStickFourHour!]! + candleStickHour( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): CandleStickHour + candleStickHours( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: CandleStickHour_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: CandleStickHour_filter + ): [CandleStickHour!]! + candleStickMinute( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): CandleStickMinute + candleStickMinutes( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: CandleStickMinute_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: CandleStickMinute_filter + ): [CandleStickMinute!]! + closeWithDeposit( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): CloseWithDeposit + closeWithDeposits( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: CloseWithDeposit_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: CloseWithDeposit_filter + ): [CloseWithDeposit!]! + closeWithSwap( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): CloseWithSwap + closeWithSwaps( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: CloseWithSwap_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: CloseWithSwap_filter + ): [CloseWithSwap!]! + conversion( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): Conversion + conversions( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: Conversion_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: Conversion_filter + ): [Conversion!]! + converterRegistries( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: ConverterRegistry_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: ConverterRegistry_filter + ): [ConverterRegistry!]! + converterRegistry( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): ConverterRegistry + crossTransfer( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): CrossTransfer + crossTransfers( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: CrossTransfer_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: CrossTransfer_filter + ): [CrossTransfer!]! + deposit( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): Deposit + depositCollateral( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): DepositCollateral + depositCollaterals( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: DepositCollateral_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: DepositCollateral_filter + ): [DepositCollateral!]! + deposits( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: Deposit_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: Deposit_filter + ): [Deposit!]! + fastBTCBridgeStat( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): FastBTCBridgeStat + fastBTCBridgeStats( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: FastBTCBridgeStat_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: FastBTCBridgeStat_filter + ): [FastBTCBridgeStat!]! + federation( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): Federation + federations( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: Federation_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: Federation_filter + ): [Federation!]! + feeSharingTokensTransferred( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): FeeSharingTokensTransferred + feeSharingTokensTransferreds( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: FeeSharingTokensTransferred_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: FeeSharingTokensTransferred_filter + ): [FeeSharingTokensTransferred!]! + icandleStick( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): ICandleStick + icandleSticks( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: ICandleStick_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: ICandleStick_filter + ): [ICandleStick!]! + lendingHistoryItem( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): LendingHistoryItem + lendingHistoryItems( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: LendingHistoryItem_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: LendingHistoryItem_filter + ): [LendingHistoryItem!]! + lendingPool( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): LendingPool + lendingPools( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: LendingPool_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: LendingPool_filter + ): [LendingPool!]! + liquidate( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): Liquidate + liquidates( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: Liquidate_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: Liquidate_filter + ): [Liquidate!]! + liquidityHistoryItem( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): LiquidityHistoryItem + liquidityHistoryItems( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: LiquidityHistoryItem_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: LiquidityHistoryItem_filter + ): [LiquidityHistoryItem!]! + liquidityMiningAllocationPoint( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): LiquidityMiningAllocationPoint + liquidityMiningAllocationPoints( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: LiquidityMiningAllocationPoint_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: LiquidityMiningAllocationPoint_filter + ): [LiquidityMiningAllocationPoint!]! + liquidityMiningGlobal( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): LiquidityMiningGlobal + liquidityMiningGlobals( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: LiquidityMiningGlobal_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: LiquidityMiningGlobal_filter + ): [LiquidityMiningGlobal!]! + liquidityPool( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): LiquidityPool + liquidityPoolToken( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): LiquidityPoolToken + liquidityPoolTokens( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: LiquidityPoolToken_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: LiquidityPoolToken_filter + ): [LiquidityPoolToken!]! + liquidityPools( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: LiquidityPool_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: LiquidityPool_filter + ): [LiquidityPool!]! + loan( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): Loan + loans( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: Loan_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: Loan_filter + ): [Loan!]! + marginOrderCanceled( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): MarginOrderCanceled + marginOrderCanceleds( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: MarginOrderCanceled_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: MarginOrderCanceled_filter + ): [MarginOrderCanceled!]! + marginOrderFilled( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): MarginOrderFilled + marginOrderFilleds( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: MarginOrderFilled_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: MarginOrderFilled_filter + ): [MarginOrderFilled!]! + orderCanceled( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): OrderCanceled + orderCanceleds( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: OrderCanceled_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: OrderCanceled_filter + ): [OrderCanceled!]! + orderCreated( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): OrderCreated + orderCreateds( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: OrderCreated_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: OrderCreated_filter + ): [OrderCreated!]! + orderFilled( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): OrderFilled + orderFilleds( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: OrderFilled_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: OrderFilled_filter + ): [OrderFilled!]! + ownerUpdate( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): OwnerUpdate + ownerUpdates( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: OwnerUpdate_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: OwnerUpdate_filter + ): [OwnerUpdate!]! + payBorrowingFee( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): PayBorrowingFee + payBorrowingFees( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: PayBorrowingFee_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: PayBorrowingFee_filter + ): [PayBorrowingFee!]! + payInterestTransfer( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): PayInterestTransfer + payInterestTransfers( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: PayInterestTransfer_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: PayInterestTransfer_filter + ): [PayInterestTransfer!]! + payLendingFee( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): PayLendingFee + payLendingFees( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: PayLendingFee_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: PayLendingFee_filter + ): [PayLendingFee!]! + payTradingFee( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): PayTradingFee + payTradingFees( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: PayTradingFee_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: PayTradingFee_filter + ): [PayTradingFee!]! + poolToken( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): PoolToken + poolTokens( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: PoolToken_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: PoolToken_filter + ): [PoolToken!]! + proposal( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): Proposal + proposals( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: Proposal_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: Proposal_filter + ): [Proposal!]! + protocolStats( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: ProtocolStats_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: ProtocolStats_filter + ): [ProtocolStats!]! + protocolWithdrawFee( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): ProtocolWithdrawFee + protocolWithdrawFees( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: ProtocolWithdrawFee_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: ProtocolWithdrawFee_filter + ): [ProtocolWithdrawFee!]! + rewardsEarnedHistoryItem( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): RewardsEarnedHistoryItem + rewardsEarnedHistoryItems( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: RewardsEarnedHistoryItem_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: RewardsEarnedHistoryItem_filter + ): [RewardsEarnedHistoryItem!]! + rollover( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): Rollover + rollovers( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: Rollover_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: Rollover_filter + ): [Rollover!]! + sideToken( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): SideToken + sideTokens( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: SideToken_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: SideToken_filter + ): [SideToken!]! + smartToken( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): SmartToken + smartTokens( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: SmartToken_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: SmartToken_filter + ): [SmartToken!]! + stake( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): Stake + stakeHistoryItem( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): StakeHistoryItem + stakeHistoryItems( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: StakeHistoryItem_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: StakeHistoryItem_filter + ): [StakeHistoryItem!]! + stakes( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: Stake_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: Stake_filter + ): [Stake!]! + swap( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): Swap + swaps( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: Swap_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: Swap_filter + ): [Swap!]! + token( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): Token + tokenSmartToken( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): TokenSmartToken + tokenSmartTokens( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: TokenSmartToken_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: TokenSmartToken_filter + ): [TokenSmartToken!]! + tokens( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: Token_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: Token_filter + ): [Token!]! + tokensStaked( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): TokensStaked + tokensStakeds( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: TokensStaked_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: TokensStaked_filter + ): [TokensStaked!]! + trade( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): Trade + trades( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: Trade_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: Trade_filter + ): [Trade!]! + transaction( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): Transaction + transactions( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: Transaction_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: Transaction_filter + ): [Transaction!]! + user( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): User + userLendingHistories( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: UserLendingHistory_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: UserLendingHistory_filter + ): [UserLendingHistory!]! + userLendingHistory( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): UserLendingHistory + userLiquidityHistories( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: UserLiquidityHistory_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: UserLiquidityHistory_filter + ): [UserLiquidityHistory!]! + userLiquidityHistory( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): UserLiquidityHistory + userRewardsEarnedHistories( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: UserRewardsEarnedHistory_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: UserRewardsEarnedHistory_filter + ): [UserRewardsEarnedHistory!]! + userRewardsEarnedHistory( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): UserRewardsEarnedHistory + userStakeHistories( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: UserStakeHistory_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: UserStakeHistory_filter + ): [UserStakeHistory!]! + userStakeHistory( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): UserStakeHistory + userTotal( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): UserTotal + userTotals( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: UserTotal_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: UserTotal_filter + ): [UserTotal!]! + users( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: User_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: User_filter + ): [User!]! + vestingContract( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): VestingContract + vestingContracts( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: VestingContract_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: VestingContract_filter + ): [VestingContract!]! + vestingHistoryItem( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): VestingHistoryItem + vestingHistoryItems( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: VestingHistoryItem_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: VestingHistoryItem_filter + ): [VestingHistoryItem!]! + voteCast( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): VoteCast + voteCasts( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: VoteCast_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: VoteCast_filter + ): [VoteCast!]! + withdrawal( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + id: ID! + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): Withdrawal + withdrawals( + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + first: Int = 100 + orderBy: Withdrawal_orderBy + orderDirection: OrderDirection + skip: Int = 0 + + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + where: Withdrawal_filter + ): [Withdrawal!]! +} + +"The Swap entity is an aggregated entity of the individual Conversion events in a transaction.\nFor example, if a User swaps XUSD to SOV, there will be 2 Conversion events through 2 AMMs (XUSD-BTC and BTC-SOV) in one transaction. These two Conversions are aggregated here.\n" +type Swap { + fromAmount: BigDecimal! + + "Token the user converted\n" + fromToken: Token! + + "Transaction hash of this swap\n" + id: ID! + + "Not in use - this property is always false. It is kept for backwards compatibility and will be deprecated\n" + isLimit: Boolean! + + "The number of AMM Conversions involved in this swap (this is primarily for debugging purposes)\n" + numConversions: Int! + + "Rate is calculated as toAmount / fromAmount\n" + rate: BigDecimal! + swapType: SwapType + timestamp: Int! + toAmount: BigDecimal! + + "Token the user received\n" + toToken: Token! + transaction: Transaction! + + "If this swap was initiated by a contract (for example as part of a Margin Trade), User will be null.\nOtherwise, this is the user that initiated the transaction.\n" + user: User +} + +enum SwapType { + Limit + Market + Other +} + +input Swap_filter { + fromAmount: BigDecimal + fromAmount_gt: BigDecimal + fromAmount_gte: BigDecimal + fromAmount_in: [BigDecimal!] + fromAmount_lt: BigDecimal + fromAmount_lte: BigDecimal + fromAmount_not: BigDecimal + fromAmount_not_in: [BigDecimal!] + fromToken: String + fromToken_contains: String + fromToken_ends_with: String + fromToken_gt: String + fromToken_gte: String + fromToken_in: [String!] + fromToken_lt: String + fromToken_lte: String + fromToken_not: String + fromToken_not_contains: String + fromToken_not_ends_with: String + fromToken_not_in: [String!] + fromToken_not_starts_with: String + fromToken_starts_with: String + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + isLimit: Boolean + isLimit_in: [Boolean!] + isLimit_not: Boolean + isLimit_not_in: [Boolean!] + numConversions: Int + numConversions_gt: Int + numConversions_gte: Int + numConversions_in: [Int!] + numConversions_lt: Int + numConversions_lte: Int + numConversions_not: Int + numConversions_not_in: [Int!] + rate: BigDecimal + rate_gt: BigDecimal + rate_gte: BigDecimal + rate_in: [BigDecimal!] + rate_lt: BigDecimal + rate_lte: BigDecimal + rate_not: BigDecimal + rate_not_in: [BigDecimal!] + swapType: SwapType + swapType_in: [SwapType!] + swapType_not: SwapType + swapType_not_in: [SwapType!] + timestamp: Int + timestamp_gt: Int + timestamp_gte: Int + timestamp_in: [Int!] + timestamp_lt: Int + timestamp_lte: Int + timestamp_not: Int + timestamp_not_in: [Int!] + toAmount: BigDecimal + toAmount_gt: BigDecimal + toAmount_gte: BigDecimal + toAmount_in: [BigDecimal!] + toAmount_lt: BigDecimal + toAmount_lte: BigDecimal + toAmount_not: BigDecimal + toAmount_not_in: [BigDecimal!] + toToken: String + toToken_contains: String + toToken_ends_with: String + toToken_gt: String + toToken_gte: String + toToken_in: [String!] + toToken_lt: String + toToken_lte: String + toToken_not: String + toToken_not_contains: String + toToken_not_ends_with: String + toToken_not_in: [String!] + toToken_not_starts_with: String + toToken_starts_with: String + transaction: String + transaction_contains: String + transaction_ends_with: String + transaction_gt: String + transaction_gte: String + transaction_in: [String!] + transaction_lt: String + transaction_lte: String + transaction_not: String + transaction_not_contains: String + transaction_not_ends_with: String + transaction_not_in: [String!] + transaction_not_starts_with: String + transaction_starts_with: String + user: String + user_contains: String + user_ends_with: String + user_gt: String + user_gte: String + user_in: [String!] + user_lt: String + user_lte: String + user_not: String + user_not_contains: String + user_not_ends_with: String + user_not_in: [String!] + user_not_starts_with: String + user_starts_with: String +} + +enum Swap_orderBy { + fromAmount + fromToken + id + isLimit + numConversions + rate + swapType + timestamp + toAmount + toToken + transaction + user +} + +"This entity represents an ERC20 token traded on the Sovryn Protocol\n" +type Token { + "The total volume of this token that has been traded through the protocol quoted in BTC\n" + btcVolume: BigDecimal! + + "CrossTransfers: cross transfers list (currently only relevant to SOV)\n" + crossTransfers( + first: Int = 100 + orderBy: CrossTransfer_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: CrossTransfer_filter + ): [CrossTransfer!] + currentConverterRegistry: ConverterRegistry + + "Number of decimal places used in the smart contract for this token\n" + decimals: Int + + "Does this token have an AMM pool with rBTC as the other reserve asset?\n" + hasBtcPool: Boolean + + "Does this token have an AMM pool with the protocol stablecoin as the other reserve asset?\n" + hasStablecoinPool: Boolean + + "The ID is the contract address of the token on RSK\n" + id: ID! + + "lastPriceBtc is the last traded price of this token in BTC\n" + lastPriceBtc: BigDecimal! + + "lastPriceUsd is the last traded price of this token in USD\n" + lastPriceUsd: BigDecimal! + + "The addresses of the LiquidityPools where this token is a reserve asset\n" + liquidityPools( + first: Int = 100 + orderBy: LiquidityPoolToken_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: LiquidityPoolToken_filter + ): [LiquidityPoolToken!] + name: String + + "Internal use only - previous BTC price used for candleSticks\n" + prevPriceBtc: BigDecimal! + + "Internal use only - previous BTC price used for candleSticks\n" + prevPriceUsd: BigDecimal! + + "The smart tokens that have this token as an underlying asset\n" + smartTokens( + first: Int = 100 + orderBy: TokenSmartToken_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: TokenSmartToken_filter + ): [TokenSmartToken!] + symbol: String + + "The total volume of this token that has been traded through the protocol\n" + tokenVolume: BigDecimal! + + "The total volume of this token that has been traded through the protocol quoted in USD\n" + usdVolume: BigDecimal! + version: Int +} + +"This entity is to store a many-to-many relationship between tokens and smart tokens\n" +type TokenSmartToken { + "ID is token address + smart token address\n" + id: ID! + smartToken: SmartToken! + + "token is the underlying asset represented by the smartToken\n" + token: Token! +} + +input TokenSmartToken_filter { + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + smartToken: String + smartToken_contains: String + smartToken_ends_with: String + smartToken_gt: String + smartToken_gte: String + smartToken_in: [String!] + smartToken_lt: String + smartToken_lte: String + smartToken_not: String + smartToken_not_contains: String + smartToken_not_ends_with: String + smartToken_not_in: [String!] + smartToken_not_starts_with: String + smartToken_starts_with: String + token: String + token_contains: String + token_ends_with: String + token_gt: String + token_gte: String + token_in: [String!] + token_lt: String + token_lte: String + token_not: String + token_not_contains: String + token_not_ends_with: String + token_not_in: [String!] + token_not_starts_with: String + token_starts_with: String +} + +enum TokenSmartToken_orderBy { + id + smartToken + token +} + +input Token_filter { + btcVolume: BigDecimal + btcVolume_gt: BigDecimal + btcVolume_gte: BigDecimal + btcVolume_in: [BigDecimal!] + btcVolume_lt: BigDecimal + btcVolume_lte: BigDecimal + btcVolume_not: BigDecimal + btcVolume_not_in: [BigDecimal!] + currentConverterRegistry: String + currentConverterRegistry_contains: String + currentConverterRegistry_ends_with: String + currentConverterRegistry_gt: String + currentConverterRegistry_gte: String + currentConverterRegistry_in: [String!] + currentConverterRegistry_lt: String + currentConverterRegistry_lte: String + currentConverterRegistry_not: String + currentConverterRegistry_not_contains: String + currentConverterRegistry_not_ends_with: String + currentConverterRegistry_not_in: [String!] + currentConverterRegistry_not_starts_with: String + currentConverterRegistry_starts_with: String + decimals: Int + decimals_gt: Int + decimals_gte: Int + decimals_in: [Int!] + decimals_lt: Int + decimals_lte: Int + decimals_not: Int + decimals_not_in: [Int!] + hasBtcPool: Boolean + hasBtcPool_in: [Boolean!] + hasBtcPool_not: Boolean + hasBtcPool_not_in: [Boolean!] + hasStablecoinPool: Boolean + hasStablecoinPool_in: [Boolean!] + hasStablecoinPool_not: Boolean + hasStablecoinPool_not_in: [Boolean!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + lastPriceBtc: BigDecimal + lastPriceBtc_gt: BigDecimal + lastPriceBtc_gte: BigDecimal + lastPriceBtc_in: [BigDecimal!] + lastPriceBtc_lt: BigDecimal + lastPriceBtc_lte: BigDecimal + lastPriceBtc_not: BigDecimal + lastPriceBtc_not_in: [BigDecimal!] + lastPriceUsd: BigDecimal + lastPriceUsd_gt: BigDecimal + lastPriceUsd_gte: BigDecimal + lastPriceUsd_in: [BigDecimal!] + lastPriceUsd_lt: BigDecimal + lastPriceUsd_lte: BigDecimal + lastPriceUsd_not: BigDecimal + lastPriceUsd_not_in: [BigDecimal!] + name: String + name_contains: String + name_ends_with: String + name_gt: String + name_gte: String + name_in: [String!] + name_lt: String + name_lte: String + name_not: String + name_not_contains: String + name_not_ends_with: String + name_not_in: [String!] + name_not_starts_with: String + name_starts_with: String + prevPriceBtc: BigDecimal + prevPriceBtc_gt: BigDecimal + prevPriceBtc_gte: BigDecimal + prevPriceBtc_in: [BigDecimal!] + prevPriceBtc_lt: BigDecimal + prevPriceBtc_lte: BigDecimal + prevPriceBtc_not: BigDecimal + prevPriceBtc_not_in: [BigDecimal!] + prevPriceUsd: BigDecimal + prevPriceUsd_gt: BigDecimal + prevPriceUsd_gte: BigDecimal + prevPriceUsd_in: [BigDecimal!] + prevPriceUsd_lt: BigDecimal + prevPriceUsd_lte: BigDecimal + prevPriceUsd_not: BigDecimal + prevPriceUsd_not_in: [BigDecimal!] + symbol: String + symbol_contains: String + symbol_ends_with: String + symbol_gt: String + symbol_gte: String + symbol_in: [String!] + symbol_lt: String + symbol_lte: String + symbol_not: String + symbol_not_contains: String + symbol_not_ends_with: String + symbol_not_in: [String!] + symbol_not_starts_with: String + symbol_starts_with: String + tokenVolume: BigDecimal + tokenVolume_gt: BigDecimal + tokenVolume_gte: BigDecimal + tokenVolume_in: [BigDecimal!] + tokenVolume_lt: BigDecimal + tokenVolume_lte: BigDecimal + tokenVolume_not: BigDecimal + tokenVolume_not_in: [BigDecimal!] + usdVolume: BigDecimal + usdVolume_gt: BigDecimal + usdVolume_gte: BigDecimal + usdVolume_in: [BigDecimal!] + usdVolume_lt: BigDecimal + usdVolume_lte: BigDecimal + usdVolume_not: BigDecimal + usdVolume_not_in: [BigDecimal!] + version: Int + version_gt: Int + version_gte: Int + version_in: [Int!] + version_lt: Int + version_lte: Int + version_not: Int + version_not_in: [Int!] +} + +enum Token_orderBy { + btcVolume + crossTransfers + currentConverterRegistry + decimals + hasBtcPool + hasStablecoinPool + id + lastPriceBtc + lastPriceUsd + liquidityPools + name + prevPriceBtc + prevPriceUsd + smartTokens + symbol + tokenVolume + usdVolume + version +} + +"This is an event emitted from the staking contract when tokens are staked, either by a user or by a vesting contract\nIf tokens are staked by a vesting contract, there may be multiple tokens staked event per transaction (eg if tokensa are vested over 10 months, there would be 10 TokensStaked events each with a different lockedUntil date)\nWe have improvements planned to better represent staking on our subgraph.\n" +type TokensStaked { + "The amount of SOV staked in this event (as mentioned above, there can be multiple TokensStaked events per transaction)\n" + amount: BigDecimal! + emittedBy: Bytes! + + "ID is transaction hash + log index\n" + id: ID! + + "If this is false, the tokens were staked by a vesting contract, and not voluntarily by a user\n" + isUserStaked: Boolean! + + "The date when these tokens will unlock\nA user/vesting contract can have multiple stakes with different lockedUntil dates\n" + lockedUntil: Int! + + "The staker is either a user address or a vesting contract address\n" + staker: Bytes! + timestamp: Int! + + "The total amount staked for this specific user until this specific lockedUntil date\n" + totalStaked: BigDecimal! + transaction: Transaction! + + "If tokens were staked by a vesting contract, user property will be null\n" + user: User +} + +input TokensStaked_filter { + amount: BigDecimal + amount_gt: BigDecimal + amount_gte: BigDecimal + amount_in: [BigDecimal!] + amount_lt: BigDecimal + amount_lte: BigDecimal + amount_not: BigDecimal + amount_not_in: [BigDecimal!] + emittedBy: Bytes + emittedBy_contains: Bytes + emittedBy_in: [Bytes!] + emittedBy_not: Bytes + emittedBy_not_contains: Bytes + emittedBy_not_in: [Bytes!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + isUserStaked: Boolean + isUserStaked_in: [Boolean!] + isUserStaked_not: Boolean + isUserStaked_not_in: [Boolean!] + lockedUntil: Int + lockedUntil_gt: Int + lockedUntil_gte: Int + lockedUntil_in: [Int!] + lockedUntil_lt: Int + lockedUntil_lte: Int + lockedUntil_not: Int + lockedUntil_not_in: [Int!] + staker: Bytes + staker_contains: Bytes + staker_in: [Bytes!] + staker_not: Bytes + staker_not_contains: Bytes + staker_not_in: [Bytes!] + timestamp: Int + timestamp_gt: Int + timestamp_gte: Int + timestamp_in: [Int!] + timestamp_lt: Int + timestamp_lte: Int + timestamp_not: Int + timestamp_not_in: [Int!] + totalStaked: BigDecimal + totalStaked_gt: BigDecimal + totalStaked_gte: BigDecimal + totalStaked_in: [BigDecimal!] + totalStaked_lt: BigDecimal + totalStaked_lte: BigDecimal + totalStaked_not: BigDecimal + totalStaked_not_in: [BigDecimal!] + transaction: String + transaction_contains: String + transaction_ends_with: String + transaction_gt: String + transaction_gte: String + transaction_in: [String!] + transaction_lt: String + transaction_lte: String + transaction_not: String + transaction_not_contains: String + transaction_not_ends_with: String + transaction_not_in: [String!] + transaction_not_starts_with: String + transaction_starts_with: String + user: String + user_contains: String + user_ends_with: String + user_gt: String + user_gte: String + user_in: [String!] + user_lt: String + user_lte: String + user_not: String + user_not_contains: String + user_not_ends_with: String + user_not_in: [String!] + user_not_starts_with: String + user_starts_with: String +} + +enum TokensStaked_orderBy { + amount + emittedBy + id + isUserStaked + lockedUntil + staker + timestamp + totalStaked + transaction + user +} + +"Granular event data for the Loan entity. Emitted when a user opens a Margin Trade\n" +type Trade { + borrowedAmount: BigDecimal! + collateralToken: Token! + currentLeverage: BigDecimal! + emittedBy: Bytes! + entryLeverage: BigDecimal! + entryPrice: BigDecimal! + id: ID! + interestRate: BigDecimal! + lender: Bytes! + loanId: Loan! + loanToken: Token! + positionSize: BigDecimal! + settlementDate: Int! + timestamp: Int! + transaction: Transaction! + user: User! +} + +input Trade_filter { + borrowedAmount: BigDecimal + borrowedAmount_gt: BigDecimal + borrowedAmount_gte: BigDecimal + borrowedAmount_in: [BigDecimal!] + borrowedAmount_lt: BigDecimal + borrowedAmount_lte: BigDecimal + borrowedAmount_not: BigDecimal + borrowedAmount_not_in: [BigDecimal!] + collateralToken: String + collateralToken_contains: String + collateralToken_ends_with: String + collateralToken_gt: String + collateralToken_gte: String + collateralToken_in: [String!] + collateralToken_lt: String + collateralToken_lte: String + collateralToken_not: String + collateralToken_not_contains: String + collateralToken_not_ends_with: String + collateralToken_not_in: [String!] + collateralToken_not_starts_with: String + collateralToken_starts_with: String + currentLeverage: BigDecimal + currentLeverage_gt: BigDecimal + currentLeverage_gte: BigDecimal + currentLeverage_in: [BigDecimal!] + currentLeverage_lt: BigDecimal + currentLeverage_lte: BigDecimal + currentLeverage_not: BigDecimal + currentLeverage_not_in: [BigDecimal!] + emittedBy: Bytes + emittedBy_contains: Bytes + emittedBy_in: [Bytes!] + emittedBy_not: Bytes + emittedBy_not_contains: Bytes + emittedBy_not_in: [Bytes!] + entryLeverage: BigDecimal + entryLeverage_gt: BigDecimal + entryLeverage_gte: BigDecimal + entryLeverage_in: [BigDecimal!] + entryLeverage_lt: BigDecimal + entryLeverage_lte: BigDecimal + entryLeverage_not: BigDecimal + entryLeverage_not_in: [BigDecimal!] + entryPrice: BigDecimal + entryPrice_gt: BigDecimal + entryPrice_gte: BigDecimal + entryPrice_in: [BigDecimal!] + entryPrice_lt: BigDecimal + entryPrice_lte: BigDecimal + entryPrice_not: BigDecimal + entryPrice_not_in: [BigDecimal!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + interestRate: BigDecimal + interestRate_gt: BigDecimal + interestRate_gte: BigDecimal + interestRate_in: [BigDecimal!] + interestRate_lt: BigDecimal + interestRate_lte: BigDecimal + interestRate_not: BigDecimal + interestRate_not_in: [BigDecimal!] + lender: Bytes + lender_contains: Bytes + lender_in: [Bytes!] + lender_not: Bytes + lender_not_contains: Bytes + lender_not_in: [Bytes!] + loanId: String + loanId_contains: String + loanId_ends_with: String + loanId_gt: String + loanId_gte: String + loanId_in: [String!] + loanId_lt: String + loanId_lte: String + loanId_not: String + loanId_not_contains: String + loanId_not_ends_with: String + loanId_not_in: [String!] + loanId_not_starts_with: String + loanId_starts_with: String + loanToken: String + loanToken_contains: String + loanToken_ends_with: String + loanToken_gt: String + loanToken_gte: String + loanToken_in: [String!] + loanToken_lt: String + loanToken_lte: String + loanToken_not: String + loanToken_not_contains: String + loanToken_not_ends_with: String + loanToken_not_in: [String!] + loanToken_not_starts_with: String + loanToken_starts_with: String + positionSize: BigDecimal + positionSize_gt: BigDecimal + positionSize_gte: BigDecimal + positionSize_in: [BigDecimal!] + positionSize_lt: BigDecimal + positionSize_lte: BigDecimal + positionSize_not: BigDecimal + positionSize_not_in: [BigDecimal!] + settlementDate: Int + settlementDate_gt: Int + settlementDate_gte: Int + settlementDate_in: [Int!] + settlementDate_lt: Int + settlementDate_lte: Int + settlementDate_not: Int + settlementDate_not_in: [Int!] + timestamp: Int + timestamp_gt: Int + timestamp_gte: Int + timestamp_in: [Int!] + timestamp_lt: Int + timestamp_lte: Int + timestamp_not: Int + timestamp_not_in: [Int!] + transaction: String + transaction_contains: String + transaction_ends_with: String + transaction_gt: String + transaction_gte: String + transaction_in: [String!] + transaction_lt: String + transaction_lte: String + transaction_not: String + transaction_not_contains: String + transaction_not_ends_with: String + transaction_not_in: [String!] + transaction_not_starts_with: String + transaction_starts_with: String + user: String + user_contains: String + user_ends_with: String + user_gt: String + user_gte: String + user_in: [String!] + user_lt: String + user_lte: String + user_not: String + user_not_contains: String + user_not_ends_with: String + user_not_in: [String!] + user_not_starts_with: String + user_starts_with: String +} + +enum Trade_orderBy { + borrowedAmount + collateralToken + currentLeverage + emittedBy + entryLeverage + entryPrice + id + interestRate + lender + loanId + loanToken + positionSize + settlementDate + timestamp + transaction + user +} + +"Transaction data, including hash and timestamp\n" +type Transaction { + blockNumber: Int! + + "The account that initiated this transaction. This must be an Account and not a Contract.\n" + from: User! + functionSignature: String! + gasLimit: BigInt! + gasPrice: BigInt! + + "ID is transaction hash\n" + id: ID! + + "The index of this transaction within the block\n" + index: Int! + + "The timestamp the transaction was confirmed\n" + timestamp: Int! + + "The contract the user interacted with\n" + to: Bytes + value: BigInt! +} + +input Transaction_filter { + blockNumber: Int + blockNumber_gt: Int + blockNumber_gte: Int + blockNumber_in: [Int!] + blockNumber_lt: Int + blockNumber_lte: Int + blockNumber_not: Int + blockNumber_not_in: [Int!] + from: String + from_contains: String + from_ends_with: String + from_gt: String + from_gte: String + from_in: [String!] + from_lt: String + from_lte: String + from_not: String + from_not_contains: String + from_not_ends_with: String + from_not_in: [String!] + from_not_starts_with: String + from_starts_with: String + functionSignature: String + functionSignature_contains: String + functionSignature_ends_with: String + functionSignature_gt: String + functionSignature_gte: String + functionSignature_in: [String!] + functionSignature_lt: String + functionSignature_lte: String + functionSignature_not: String + functionSignature_not_contains: String + functionSignature_not_ends_with: String + functionSignature_not_in: [String!] + functionSignature_not_starts_with: String + functionSignature_starts_with: String + gasLimit: BigInt + gasLimit_gt: BigInt + gasLimit_gte: BigInt + gasLimit_in: [BigInt!] + gasLimit_lt: BigInt + gasLimit_lte: BigInt + gasLimit_not: BigInt + gasLimit_not_in: [BigInt!] + gasPrice: BigInt + gasPrice_gt: BigInt + gasPrice_gte: BigInt + gasPrice_in: [BigInt!] + gasPrice_lt: BigInt + gasPrice_lte: BigInt + gasPrice_not: BigInt + gasPrice_not_in: [BigInt!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + index: Int + index_gt: Int + index_gte: Int + index_in: [Int!] + index_lt: Int + index_lte: Int + index_not: Int + index_not_in: [Int!] + timestamp: Int + timestamp_gt: Int + timestamp_gte: Int + timestamp_in: [Int!] + timestamp_lt: Int + timestamp_lte: Int + timestamp_not: Int + timestamp_not_in: [Int!] + to: Bytes + to_contains: Bytes + to_in: [Bytes!] + to_not: Bytes + to_not_contains: Bytes + to_not_in: [Bytes!] + value: BigInt + value_gt: BigInt + value_gte: BigInt + value_in: [BigInt!] + value_lt: BigInt + value_lte: BigInt + value_not: BigInt + value_not_in: [BigInt!] +} + +enum Transaction_orderBy { + blockNumber + from + functionSignature + gasLimit + gasPrice + id + index + timestamp + to + value +} + +"This entity contains all user-specific data displayed on the dapp, including all user actions\n" +type User { + "FastBTCBridge transfers from BTC to RSK\n" + bitcoinTransfers( + first: Int = 100 + orderBy: BitcoinTransfer_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: BitcoinTransfer_filter + ): [BitcoinTransfer!] + + "An array of Borrow events\n" + borrows( + first: Int = 100 + orderBy: Borrow_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: Borrow_filter + ): [Borrow!] + + "Timestamp of User's first interaction with the protocol (first transaction)\n" + createdAtTimestamp: Int! + + "EVM Bridge transfers\n" + crossChainTransfer( + first: Int = 100 + orderBy: CrossTransfer_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: CrossTransfer_filter + ): [CrossTransfer!] + + "Stakes the user owns, including stakes from Vesting Contracts\n" + currentStakes( + first: Int = 100 + orderBy: Stake_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: Stake_filter + ): [Stake!] + fastBTCBridgeStats( + first: Int = 100 + orderBy: FastBTCBridgeStat_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: FastBTCBridgeStat_filter + ): [FastBTCBridgeStat!] + + "ID is user wallet address\n" + id: ID! + + "The lending history of a User, separated into lending pools. Explore the UserLendingHistory entity for more granular events.\n" + lendingHistory( + first: Int = 100 + orderBy: UserLendingHistory_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: UserLendingHistory_filter + ): [UserLendingHistory!] + + "An array of Liquidation events linked to this user\n" + liquidations( + first: Int = 100 + orderBy: Liquidate_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: Liquidate_filter + ): [Liquidate!] + + "An array of all LiquidityAdded and LiquidityRemoved events\n" + liquidityHistory( + first: Int = 100 + orderBy: UserLiquidityHistory_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: UserLiquidityHistory_filter + ): [UserLiquidityHistory!] + + "All loans taken out by this user, including for margin trading and for borrowing\n" + loans( + first: Int = 100 + orderBy: Loan_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: Loan_filter + ): [Loan!] + + "The Rewards history of one user. This includes actions like EarnReward, RewardSovDeposited, and RewardSovStaked.\nExplore the UserRewardsEarnedHistory entity for more granular events\n" + rewardsEarnedHistory( + first: Int = 100 + orderBy: UserRewardsEarnedHistory_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: UserRewardsEarnedHistory_filter + ): [UserRewardsEarnedHistory!] + + "The SOV Staking history of a user. This includes withdrawing vested tokens. Explore the UserStakeHistory entity for more granular events.\n" + stakeHistory( + first: Int = 100 + orderBy: UserStakeHistory_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: UserStakeHistory_filter + ): [UserStakeHistory!] + + "Swaps here refers to only user-triggered swaps. For example, a swap that is part of a margin trade would not be included.\nSwaps involving multiple amm pools are stored as a single swap, comprised of multiple Conversion events\n" + swaps( + first: Int = 100 + orderBy: Swap_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: Swap_filter + ): [Swap!] + + "An array of margin trade Trade events\n" + trades( + first: Int = 100 + orderBy: Trade_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: Trade_filter + ): [Trade!] + + "Transactions initiated by this user\n" + transactions( + first: Int = 100 + orderBy: Transaction_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: Transaction_filter + ): [Transaction!] + + "See UserTotals entity for full documentation\n" + userTotals: UserTotal + + "Vesting contracts owned by User, labelled by type\n" + vestingContracts( + first: Int = 100 + orderBy: VestingContract_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: VestingContract_filter + ): [VestingContract!] + + "Voting history of User\n" + votes( + first: Int = 100 + orderBy: VoteCast_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: VoteCast_filter + ): [VoteCast!] +} + +"This entity contains the lending and unlending history of one User\n" +type UserLendingHistory { + "ID is userAddress + lendingPoolAddress (lendingPool in this case is the lending pool token)\n" + id: ID! + + "Granular Lend/UnLend events. Derived from Mint/Burn events on the contracts\n" + lendingHistory( + first: Int = 100 + orderBy: LendingHistoryItem_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: LendingHistoryItem_filter + ): [LendingHistoryItem!] + lendingPool: LendingPool! + + "Total volume this User has lent to this pool over all time (in the underlying asset currency, ie rBTC for the rBTC lending pool)\n" + totalLendVolume: BigDecimal! + + "Total volume this User has withdrawn from this pool over all time\n" + totalUnlendVolume: BigDecimal! + user: User! +} + +input UserLendingHistory_filter { + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + lendingPool: String + lendingPool_contains: String + lendingPool_ends_with: String + lendingPool_gt: String + lendingPool_gte: String + lendingPool_in: [String!] + lendingPool_lt: String + lendingPool_lte: String + lendingPool_not: String + lendingPool_not_contains: String + lendingPool_not_ends_with: String + lendingPool_not_in: [String!] + lendingPool_not_starts_with: String + lendingPool_starts_with: String + totalLendVolume: BigDecimal + totalLendVolume_gt: BigDecimal + totalLendVolume_gte: BigDecimal + totalLendVolume_in: [BigDecimal!] + totalLendVolume_lt: BigDecimal + totalLendVolume_lte: BigDecimal + totalLendVolume_not: BigDecimal + totalLendVolume_not_in: [BigDecimal!] + totalUnlendVolume: BigDecimal + totalUnlendVolume_gt: BigDecimal + totalUnlendVolume_gte: BigDecimal + totalUnlendVolume_in: [BigDecimal!] + totalUnlendVolume_lt: BigDecimal + totalUnlendVolume_lte: BigDecimal + totalUnlendVolume_not: BigDecimal + totalUnlendVolume_not_in: [BigDecimal!] + user: String + user_contains: String + user_ends_with: String + user_gt: String + user_gte: String + user_in: [String!] + user_lt: String + user_lte: String + user_not: String + user_not_contains: String + user_not_ends_with: String + user_not_in: [String!] + user_not_starts_with: String + user_starts_with: String +} + +enum UserLendingHistory_orderBy { + id + lendingHistory + lendingPool + totalLendVolume + totalUnlendVolume + user +} + +"This entity stores one User's history of adding and removing liquidity from one AMM pool\n" +type UserLiquidityHistory { + "The ID is userAddress + '-' + smartToken\nLiquidity Pool address is not used here because when a liquidity pool is updated the address changes, but the smart token address remains the same.\n" + id: ID! + + "Granular transaction history for transactions adding or removing liquidity from an AMM pool\n" + liquidityHistory( + first: Int = 100 + orderBy: LiquidityHistoryItem_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: LiquidityHistoryItem_filter + ): [LiquidityHistoryItem!] + + "This is the pool token (sometimes called smart token), not the liquidity pool address\n" + poolToken: PoolToken! + + "Asset0 is defined on the LiquidityPool.\nThese totals are amounts added and removed over all time. These values are used to calculate a user's PnL from liquidity provision.\n" + totalAsset0LiquidityAdded: BigDecimal! + totalAsset0LiquidityRemoved: BigDecimal! + + "Asset1 is defined on the LiquidityPool\nThese totals are amounts added and removed over all time. These values are used to calculate a user's PnL from liquidity provision.\n" + totalAsset1LiquidityAdded: BigDecimal! + totalAsset1LiquidityRemoved: BigDecimal! + user: User! +} + +input UserLiquidityHistory_filter { + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + poolToken: String + poolToken_contains: String + poolToken_ends_with: String + poolToken_gt: String + poolToken_gte: String + poolToken_in: [String!] + poolToken_lt: String + poolToken_lte: String + poolToken_not: String + poolToken_not_contains: String + poolToken_not_ends_with: String + poolToken_not_in: [String!] + poolToken_not_starts_with: String + poolToken_starts_with: String + totalAsset0LiquidityAdded: BigDecimal + totalAsset0LiquidityAdded_gt: BigDecimal + totalAsset0LiquidityAdded_gte: BigDecimal + totalAsset0LiquidityAdded_in: [BigDecimal!] + totalAsset0LiquidityAdded_lt: BigDecimal + totalAsset0LiquidityAdded_lte: BigDecimal + totalAsset0LiquidityAdded_not: BigDecimal + totalAsset0LiquidityAdded_not_in: [BigDecimal!] + totalAsset0LiquidityRemoved: BigDecimal + totalAsset0LiquidityRemoved_gt: BigDecimal + totalAsset0LiquidityRemoved_gte: BigDecimal + totalAsset0LiquidityRemoved_in: [BigDecimal!] + totalAsset0LiquidityRemoved_lt: BigDecimal + totalAsset0LiquidityRemoved_lte: BigDecimal + totalAsset0LiquidityRemoved_not: BigDecimal + totalAsset0LiquidityRemoved_not_in: [BigDecimal!] + totalAsset1LiquidityAdded: BigDecimal + totalAsset1LiquidityAdded_gt: BigDecimal + totalAsset1LiquidityAdded_gte: BigDecimal + totalAsset1LiquidityAdded_in: [BigDecimal!] + totalAsset1LiquidityAdded_lt: BigDecimal + totalAsset1LiquidityAdded_lte: BigDecimal + totalAsset1LiquidityAdded_not: BigDecimal + totalAsset1LiquidityAdded_not_in: [BigDecimal!] + totalAsset1LiquidityRemoved: BigDecimal + totalAsset1LiquidityRemoved_gt: BigDecimal + totalAsset1LiquidityRemoved_gte: BigDecimal + totalAsset1LiquidityRemoved_in: [BigDecimal!] + totalAsset1LiquidityRemoved_lt: BigDecimal + totalAsset1LiquidityRemoved_lte: BigDecimal + totalAsset1LiquidityRemoved_not: BigDecimal + totalAsset1LiquidityRemoved_not_in: [BigDecimal!] + user: String + user_contains: String + user_ends_with: String + user_gt: String + user_gte: String + user_in: [String!] + user_lt: String + user_lte: String + user_not: String + user_not_contains: String + user_not_ends_with: String + user_not_in: [String!] + user_not_starts_with: String + user_starts_with: String +} + +enum UserLiquidityHistory_orderBy { + id + liquidityHistory + poolToken + totalAsset0LiquidityAdded + totalAsset0LiquidityRemoved + totalAsset1LiquidityAdded + totalAsset1LiquidityRemoved + user +} + +"This entity contains the history, fees and totals regarding one users' SOV rewards\n" +type UserRewardsEarnedHistory { + "SOV rewards earned from margin trading, but not yet claimed and vested\nIncremented by EarnReward events, and set to 0 by TokensStaked events on the LockedSOV contract\n" + availableTradingRewards: BigDecimal! + id: ID! + + "Granular events for transaction where a reward is earned\n" + rewardsEarnedHistory( + first: Int = 100 + orderBy: RewardsEarnedHistoryItem_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: RewardsEarnedHistoryItem_filter + ): [RewardsEarnedHistoryItem!] + + "The total protocol fees this user has earned and withdrawn, quoted in RBTC.\nFees can be paid out in different tokens (usually RBTC and SOV).\nThis is the total amount, converted to RBTC using the rate at the time of transaction.\nIncremented by UserFeeWithdrawn\n" + totalFeeWithdrawn: BigDecimal! + + "This is the total of all EarnReward and RewardClaimed events\n" + totalFeesAndRewardsEarned: BigDecimal! + + "The total liquidity mining rewards the user has claimed, earned from the lending pools.\nIncremented by RewardClaimed, where poolToken is a lending pool token\n" + totalLendingRewards: BigDecimal! + + "The total liquidity mining rewards the user has claimed, earned from the amm pools.\nIncremented by RewardClaimed, where poolToken is an amm pool token\n" + totalLiquidityRewards: BigDecimal! + + "Total liquid SOV rewards the user has earned through staking.\nIncremented by RewardWithdrawn\n" + totalStakingRewards: BigDecimal! + + "Sum of all SOV rewards earned from margin trading.\nIncremented by EarnReward events\n" + totalTradingRewards: BigDecimal! + user: User! +} + +input UserRewardsEarnedHistory_filter { + availableTradingRewards: BigDecimal + availableTradingRewards_gt: BigDecimal + availableTradingRewards_gte: BigDecimal + availableTradingRewards_in: [BigDecimal!] + availableTradingRewards_lt: BigDecimal + availableTradingRewards_lte: BigDecimal + availableTradingRewards_not: BigDecimal + availableTradingRewards_not_in: [BigDecimal!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + totalFeeWithdrawn: BigDecimal + totalFeeWithdrawn_gt: BigDecimal + totalFeeWithdrawn_gte: BigDecimal + totalFeeWithdrawn_in: [BigDecimal!] + totalFeeWithdrawn_lt: BigDecimal + totalFeeWithdrawn_lte: BigDecimal + totalFeeWithdrawn_not: BigDecimal + totalFeeWithdrawn_not_in: [BigDecimal!] + totalFeesAndRewardsEarned: BigDecimal + totalFeesAndRewardsEarned_gt: BigDecimal + totalFeesAndRewardsEarned_gte: BigDecimal + totalFeesAndRewardsEarned_in: [BigDecimal!] + totalFeesAndRewardsEarned_lt: BigDecimal + totalFeesAndRewardsEarned_lte: BigDecimal + totalFeesAndRewardsEarned_not: BigDecimal + totalFeesAndRewardsEarned_not_in: [BigDecimal!] + totalLendingRewards: BigDecimal + totalLendingRewards_gt: BigDecimal + totalLendingRewards_gte: BigDecimal + totalLendingRewards_in: [BigDecimal!] + totalLendingRewards_lt: BigDecimal + totalLendingRewards_lte: BigDecimal + totalLendingRewards_not: BigDecimal + totalLendingRewards_not_in: [BigDecimal!] + totalLiquidityRewards: BigDecimal + totalLiquidityRewards_gt: BigDecimal + totalLiquidityRewards_gte: BigDecimal + totalLiquidityRewards_in: [BigDecimal!] + totalLiquidityRewards_lt: BigDecimal + totalLiquidityRewards_lte: BigDecimal + totalLiquidityRewards_not: BigDecimal + totalLiquidityRewards_not_in: [BigDecimal!] + totalStakingRewards: BigDecimal + totalStakingRewards_gt: BigDecimal + totalStakingRewards_gte: BigDecimal + totalStakingRewards_in: [BigDecimal!] + totalStakingRewards_lt: BigDecimal + totalStakingRewards_lte: BigDecimal + totalStakingRewards_not: BigDecimal + totalStakingRewards_not_in: [BigDecimal!] + totalTradingRewards: BigDecimal + totalTradingRewards_gt: BigDecimal + totalTradingRewards_gte: BigDecimal + totalTradingRewards_in: [BigDecimal!] + totalTradingRewards_lt: BigDecimal + totalTradingRewards_lte: BigDecimal + totalTradingRewards_not: BigDecimal + totalTradingRewards_not_in: [BigDecimal!] + user: String + user_contains: String + user_ends_with: String + user_gt: String + user_gte: String + user_in: [String!] + user_lt: String + user_lte: String + user_not: String + user_not_contains: String + user_not_ends_with: String + user_not_in: [String!] + user_not_starts_with: String + user_starts_with: String +} + +enum UserRewardsEarnedHistory_orderBy { + availableTradingRewards + id + rewardsEarnedHistory + totalFeeWithdrawn + totalFeesAndRewardsEarned + totalLendingRewards + totalLiquidityRewards + totalStakingRewards + totalTradingRewards + user +} + +"This entity holds the voluntary staking history (ie not staking by a vesting contract) of one user\n" +type UserStakeHistory { + "ID is the user address\n" + id: ID! + + "Granular history of the user's voluntary staking activity\n" + stakeHistory( + first: Int = 100 + orderBy: StakeHistoryItem_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: StakeHistoryItem_filter + ): [StakeHistoryItem!] + + "totalRemaining is the amount the user currently has staked.\nIt should be the same as the result of calling the balanceOf(USER_ADDRESS) method on the staking contract.\n" + totalRemaining: BigDecimal! + + "totalStaked is the total amount the user has EVER staked (over all time).\nEg if they stake 10 SOV and then withdraw it and stake it again, totalStaked is 20 SOV\n" + totalStaked: BigDecimal! + + "totalWithdrawn is the total amount the user has ever withdrawn from voluntary staking (over all time)\n" + totalWithdrawn: BigDecimal! + user: User! +} + +input UserStakeHistory_filter { + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + totalRemaining: BigDecimal + totalRemaining_gt: BigDecimal + totalRemaining_gte: BigDecimal + totalRemaining_in: [BigDecimal!] + totalRemaining_lt: BigDecimal + totalRemaining_lte: BigDecimal + totalRemaining_not: BigDecimal + totalRemaining_not_in: [BigDecimal!] + totalStaked: BigDecimal + totalStaked_gt: BigDecimal + totalStaked_gte: BigDecimal + totalStaked_in: [BigDecimal!] + totalStaked_lt: BigDecimal + totalStaked_lte: BigDecimal + totalStaked_not: BigDecimal + totalStaked_not_in: [BigDecimal!] + totalWithdrawn: BigDecimal + totalWithdrawn_gt: BigDecimal + totalWithdrawn_gte: BigDecimal + totalWithdrawn_in: [BigDecimal!] + totalWithdrawn_lt: BigDecimal + totalWithdrawn_lte: BigDecimal + totalWithdrawn_not: BigDecimal + totalWithdrawn_not_in: [BigDecimal!] + user: String + user_contains: String + user_ends_with: String + user_gt: String + user_gte: String + user_in: [String!] + user_lt: String + user_lte: String + user_not: String + user_not_contains: String + user_not_ends_with: String + user_not_in: [String!] + user_not_starts_with: String + user_starts_with: String +} + +enum UserStakeHistory_orderBy { + id + stakeHistory + totalRemaining + totalStaked + totalWithdrawn + user +} + +"This is the total volumes of different actions for one user. See ProtocolStats entity for full descriptions.\n" +type UserTotal { + id: ID! + totalAmmLpFeesUsd: BigDecimal! + totalAmmStakerFeesUsd: BigDecimal! + totalAmmVolumeUsd: BigDecimal! + totalBorrowVolumeUsd: BigDecimal! + totalBorrowingFeesUsd: BigDecimal! + totalCloseWithDepositVolumeUsd: BigDecimal! + totalCloseWithSwapVolumeUsd: BigDecimal! + totalDepositCollateralVolumeUsd: BigDecimal! + totalLendVolumeUsd: BigDecimal! + totalLendingFeesUsd: BigDecimal! + totalLiquidateVolumeUsd: BigDecimal! + totalMarginTradeVolumeUsd: BigDecimal! + totalTradingFeesUsd: BigDecimal! + totalUnlendVolumeUsd: BigDecimal! + user: User! +} + +input UserTotal_filter { + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + totalAmmLpFeesUsd: BigDecimal + totalAmmLpFeesUsd_gt: BigDecimal + totalAmmLpFeesUsd_gte: BigDecimal + totalAmmLpFeesUsd_in: [BigDecimal!] + totalAmmLpFeesUsd_lt: BigDecimal + totalAmmLpFeesUsd_lte: BigDecimal + totalAmmLpFeesUsd_not: BigDecimal + totalAmmLpFeesUsd_not_in: [BigDecimal!] + totalAmmStakerFeesUsd: BigDecimal + totalAmmStakerFeesUsd_gt: BigDecimal + totalAmmStakerFeesUsd_gte: BigDecimal + totalAmmStakerFeesUsd_in: [BigDecimal!] + totalAmmStakerFeesUsd_lt: BigDecimal + totalAmmStakerFeesUsd_lte: BigDecimal + totalAmmStakerFeesUsd_not: BigDecimal + totalAmmStakerFeesUsd_not_in: [BigDecimal!] + totalAmmVolumeUsd: BigDecimal + totalAmmVolumeUsd_gt: BigDecimal + totalAmmVolumeUsd_gte: BigDecimal + totalAmmVolumeUsd_in: [BigDecimal!] + totalAmmVolumeUsd_lt: BigDecimal + totalAmmVolumeUsd_lte: BigDecimal + totalAmmVolumeUsd_not: BigDecimal + totalAmmVolumeUsd_not_in: [BigDecimal!] + totalBorrowVolumeUsd: BigDecimal + totalBorrowVolumeUsd_gt: BigDecimal + totalBorrowVolumeUsd_gte: BigDecimal + totalBorrowVolumeUsd_in: [BigDecimal!] + totalBorrowVolumeUsd_lt: BigDecimal + totalBorrowVolumeUsd_lte: BigDecimal + totalBorrowVolumeUsd_not: BigDecimal + totalBorrowVolumeUsd_not_in: [BigDecimal!] + totalBorrowingFeesUsd: BigDecimal + totalBorrowingFeesUsd_gt: BigDecimal + totalBorrowingFeesUsd_gte: BigDecimal + totalBorrowingFeesUsd_in: [BigDecimal!] + totalBorrowingFeesUsd_lt: BigDecimal + totalBorrowingFeesUsd_lte: BigDecimal + totalBorrowingFeesUsd_not: BigDecimal + totalBorrowingFeesUsd_not_in: [BigDecimal!] + totalCloseWithDepositVolumeUsd: BigDecimal + totalCloseWithDepositVolumeUsd_gt: BigDecimal + totalCloseWithDepositVolumeUsd_gte: BigDecimal + totalCloseWithDepositVolumeUsd_in: [BigDecimal!] + totalCloseWithDepositVolumeUsd_lt: BigDecimal + totalCloseWithDepositVolumeUsd_lte: BigDecimal + totalCloseWithDepositVolumeUsd_not: BigDecimal + totalCloseWithDepositVolumeUsd_not_in: [BigDecimal!] + totalCloseWithSwapVolumeUsd: BigDecimal + totalCloseWithSwapVolumeUsd_gt: BigDecimal + totalCloseWithSwapVolumeUsd_gte: BigDecimal + totalCloseWithSwapVolumeUsd_in: [BigDecimal!] + totalCloseWithSwapVolumeUsd_lt: BigDecimal + totalCloseWithSwapVolumeUsd_lte: BigDecimal + totalCloseWithSwapVolumeUsd_not: BigDecimal + totalCloseWithSwapVolumeUsd_not_in: [BigDecimal!] + totalDepositCollateralVolumeUsd: BigDecimal + totalDepositCollateralVolumeUsd_gt: BigDecimal + totalDepositCollateralVolumeUsd_gte: BigDecimal + totalDepositCollateralVolumeUsd_in: [BigDecimal!] + totalDepositCollateralVolumeUsd_lt: BigDecimal + totalDepositCollateralVolumeUsd_lte: BigDecimal + totalDepositCollateralVolumeUsd_not: BigDecimal + totalDepositCollateralVolumeUsd_not_in: [BigDecimal!] + totalLendVolumeUsd: BigDecimal + totalLendVolumeUsd_gt: BigDecimal + totalLendVolumeUsd_gte: BigDecimal + totalLendVolumeUsd_in: [BigDecimal!] + totalLendVolumeUsd_lt: BigDecimal + totalLendVolumeUsd_lte: BigDecimal + totalLendVolumeUsd_not: BigDecimal + totalLendVolumeUsd_not_in: [BigDecimal!] + totalLendingFeesUsd: BigDecimal + totalLendingFeesUsd_gt: BigDecimal + totalLendingFeesUsd_gte: BigDecimal + totalLendingFeesUsd_in: [BigDecimal!] + totalLendingFeesUsd_lt: BigDecimal + totalLendingFeesUsd_lte: BigDecimal + totalLendingFeesUsd_not: BigDecimal + totalLendingFeesUsd_not_in: [BigDecimal!] + totalLiquidateVolumeUsd: BigDecimal + totalLiquidateVolumeUsd_gt: BigDecimal + totalLiquidateVolumeUsd_gte: BigDecimal + totalLiquidateVolumeUsd_in: [BigDecimal!] + totalLiquidateVolumeUsd_lt: BigDecimal + totalLiquidateVolumeUsd_lte: BigDecimal + totalLiquidateVolumeUsd_not: BigDecimal + totalLiquidateVolumeUsd_not_in: [BigDecimal!] + totalMarginTradeVolumeUsd: BigDecimal + totalMarginTradeVolumeUsd_gt: BigDecimal + totalMarginTradeVolumeUsd_gte: BigDecimal + totalMarginTradeVolumeUsd_in: [BigDecimal!] + totalMarginTradeVolumeUsd_lt: BigDecimal + totalMarginTradeVolumeUsd_lte: BigDecimal + totalMarginTradeVolumeUsd_not: BigDecimal + totalMarginTradeVolumeUsd_not_in: [BigDecimal!] + totalTradingFeesUsd: BigDecimal + totalTradingFeesUsd_gt: BigDecimal + totalTradingFeesUsd_gte: BigDecimal + totalTradingFeesUsd_in: [BigDecimal!] + totalTradingFeesUsd_lt: BigDecimal + totalTradingFeesUsd_lte: BigDecimal + totalTradingFeesUsd_not: BigDecimal + totalTradingFeesUsd_not_in: [BigDecimal!] + totalUnlendVolumeUsd: BigDecimal + totalUnlendVolumeUsd_gt: BigDecimal + totalUnlendVolumeUsd_gte: BigDecimal + totalUnlendVolumeUsd_in: [BigDecimal!] + totalUnlendVolumeUsd_lt: BigDecimal + totalUnlendVolumeUsd_lte: BigDecimal + totalUnlendVolumeUsd_not: BigDecimal + totalUnlendVolumeUsd_not_in: [BigDecimal!] + user: String + user_contains: String + user_ends_with: String + user_gt: String + user_gte: String + user_in: [String!] + user_lt: String + user_lte: String + user_not: String + user_not_contains: String + user_not_ends_with: String + user_not_in: [String!] + user_not_starts_with: String + user_starts_with: String +} + +enum UserTotal_orderBy { + id + totalAmmLpFeesUsd + totalAmmStakerFeesUsd + totalAmmVolumeUsd + totalBorrowVolumeUsd + totalBorrowingFeesUsd + totalCloseWithDepositVolumeUsd + totalCloseWithSwapVolumeUsd + totalDepositCollateralVolumeUsd + totalLendVolumeUsd + totalLendingFeesUsd + totalLiquidateVolumeUsd + totalMarginTradeVolumeUsd + totalTradingFeesUsd + totalUnlendVolumeUsd + user +} + +input User_filter { + createdAtTimestamp: Int + createdAtTimestamp_gt: Int + createdAtTimestamp_gte: Int + createdAtTimestamp_in: [Int!] + createdAtTimestamp_lt: Int + createdAtTimestamp_lte: Int + createdAtTimestamp_not: Int + createdAtTimestamp_not_in: [Int!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] +} + +enum User_orderBy { + bitcoinTransfers + borrows + createdAtTimestamp + crossChainTransfer + currentStakes + fastBTCBridgeStats + id + lendingHistory + liquidations + liquidityHistory + loans + rewardsEarnedHistory + stakeHistory + swaps + trades + transactions + userTotals + vestingContracts + votes +} + +"This entity represents one vesting contract\nA User can have multiple vesting contracts\n" +type VestingContract { + "The cliff is the period (in seconds) until the first tokens become liquid on this contract\n" + cliff: Int + + "Date that the vesting contract was created\n" + createdAtTimestamp: Int! + createdAtTransaction: Transaction! + + "Current balance of tokens on the contract, including locked and liquid tokens that have not been withdrawn.\nIncremented on TokensStaked actions, decremented on TokensWithdrawn actions\n" + currentBalance: BigDecimal! + + "The total duration of the vesting contract, including the cliff, in seconds. \nFor example, a 9 month vesting contract with a 1 month cliff would have a duration of 26280000 (10 months in seconds)\n" + duration: Int + emittedBy: Bytes! + + "ID is the vesting contract address\n" + id: ID! + + "A granular history of every action involving this vesting contract\n" + stakeHistory( + first: Int = 100 + orderBy: VestingHistoryItem_orderBy + orderDirection: OrderDirection + skip: Int = 0 + where: VestingHistoryItem_filter + ): [VestingHistoryItem!] + + "The initial balance when this contract was created. This is often 0, as tokens can be added to the contract after contract creation\n" + startingBalance: BigDecimal! + + "Type of contract (see VestingContractType docs for more details)\n" + type: VestingContractType! + + "The owner of the vesting contract\n" + user: User! +} + +enum VestingContractType { + "FISH (Babelfish governance token) vesting contracts\n" + Fish + + "Babelfish team vesting contracts\n" + FishTeam + + "Vesting contracts for strategic investors with a four-year lockup\n" + FourYearVesting + + "Vesting contracts for investors who participated in the Sovryn Genesis sale\n" + Genesis + + "Vesting contracts for investors who participated in the Sovryn Origin sale\n" + Origins + + "Vesting contracts for vested rewards\n" + Rewards + + "Vesting contracts for early strategic investors\n" + Strategic + + "Sovryn team vesting contracts\n" + Team +} + +input VestingContract_filter { + cliff: Int + cliff_gt: Int + cliff_gte: Int + cliff_in: [Int!] + cliff_lt: Int + cliff_lte: Int + cliff_not: Int + cliff_not_in: [Int!] + createdAtTimestamp: Int + createdAtTimestamp_gt: Int + createdAtTimestamp_gte: Int + createdAtTimestamp_in: [Int!] + createdAtTimestamp_lt: Int + createdAtTimestamp_lte: Int + createdAtTimestamp_not: Int + createdAtTimestamp_not_in: [Int!] + createdAtTransaction: String + createdAtTransaction_contains: String + createdAtTransaction_ends_with: String + createdAtTransaction_gt: String + createdAtTransaction_gte: String + createdAtTransaction_in: [String!] + createdAtTransaction_lt: String + createdAtTransaction_lte: String + createdAtTransaction_not: String + createdAtTransaction_not_contains: String + createdAtTransaction_not_ends_with: String + createdAtTransaction_not_in: [String!] + createdAtTransaction_not_starts_with: String + createdAtTransaction_starts_with: String + currentBalance: BigDecimal + currentBalance_gt: BigDecimal + currentBalance_gte: BigDecimal + currentBalance_in: [BigDecimal!] + currentBalance_lt: BigDecimal + currentBalance_lte: BigDecimal + currentBalance_not: BigDecimal + currentBalance_not_in: [BigDecimal!] + duration: Int + duration_gt: Int + duration_gte: Int + duration_in: [Int!] + duration_lt: Int + duration_lte: Int + duration_not: Int + duration_not_in: [Int!] + emittedBy: Bytes + emittedBy_contains: Bytes + emittedBy_in: [Bytes!] + emittedBy_not: Bytes + emittedBy_not_contains: Bytes + emittedBy_not_in: [Bytes!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + startingBalance: BigDecimal + startingBalance_gt: BigDecimal + startingBalance_gte: BigDecimal + startingBalance_in: [BigDecimal!] + startingBalance_lt: BigDecimal + startingBalance_lte: BigDecimal + startingBalance_not: BigDecimal + startingBalance_not_in: [BigDecimal!] + type: VestingContractType + type_in: [VestingContractType!] + type_not: VestingContractType + type_not_in: [VestingContractType!] + user: String + user_contains: String + user_ends_with: String + user_gt: String + user_gte: String + user_in: [String!] + user_lt: String + user_lte: String + user_not: String + user_not_contains: String + user_not_ends_with: String + user_not_in: [String!] + user_not_starts_with: String + user_starts_with: String +} + +enum VestingContract_orderBy { + cliff + createdAtTimestamp + createdAtTransaction + currentBalance + duration + emittedBy + id + stakeHistory + startingBalance + type + user +} + +"Granular data for each vesting contract, and any actions involving that contract\n" +type VestingHistoryItem { + action: VestingHistoryItemAction! + + "Amount being staked\n" + amount: BigDecimal! + emittedBy: Bytes! + + "ID is transaction hash + \"-\" + log index\nFor TokensStaked actions, there can be multiple actions per transactions, and each will create a new entity\n" + id: ID! + + "The date when the tokens become unlocked\n" + lockedUntil: Int! + + "The staker here will always be the vesting contract\n" + staker: VestingContract! + timestamp: Int! + + "Total number of tokens staked until this lockedUntil date\n" + totalStaked: BigDecimal! + transaction: Transaction! +} + +enum VestingHistoryItemAction { + "This is only relevant to Team tokens. For Team contracts, a vesting contract can be revoked by governance if a team member leaves the project.\nIf this happens, all tokens still locked are returned to the exchequer.\nThis is ONLY possible with Team or FishTeam vesting contracts.\n" + TeamTokensRevoked + + "Tokens are staked by the Vesting contract. This happens when the Vesting contract receives funds.\n" + TokensStaked + + "When a user withdraws unlocked tokens from the vesting contract\n" + TokensWithdrawn +} + +input VestingHistoryItem_filter { + action: VestingHistoryItemAction + action_in: [VestingHistoryItemAction!] + action_not: VestingHistoryItemAction + action_not_in: [VestingHistoryItemAction!] + amount: BigDecimal + amount_gt: BigDecimal + amount_gte: BigDecimal + amount_in: [BigDecimal!] + amount_lt: BigDecimal + amount_lte: BigDecimal + amount_not: BigDecimal + amount_not_in: [BigDecimal!] + emittedBy: Bytes + emittedBy_contains: Bytes + emittedBy_in: [Bytes!] + emittedBy_not: Bytes + emittedBy_not_contains: Bytes + emittedBy_not_in: [Bytes!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + lockedUntil: Int + lockedUntil_gt: Int + lockedUntil_gte: Int + lockedUntil_in: [Int!] + lockedUntil_lt: Int + lockedUntil_lte: Int + lockedUntil_not: Int + lockedUntil_not_in: [Int!] + staker: String + staker_contains: String + staker_ends_with: String + staker_gt: String + staker_gte: String + staker_in: [String!] + staker_lt: String + staker_lte: String + staker_not: String + staker_not_contains: String + staker_not_ends_with: String + staker_not_in: [String!] + staker_not_starts_with: String + staker_starts_with: String + timestamp: Int + timestamp_gt: Int + timestamp_gte: Int + timestamp_in: [Int!] + timestamp_lt: Int + timestamp_lte: Int + timestamp_not: Int + timestamp_not_in: [Int!] + totalStaked: BigDecimal + totalStaked_gt: BigDecimal + totalStaked_gte: BigDecimal + totalStaked_in: [BigDecimal!] + totalStaked_lt: BigDecimal + totalStaked_lte: BigDecimal + totalStaked_not: BigDecimal + totalStaked_not_in: [BigDecimal!] + transaction: String + transaction_contains: String + transaction_ends_with: String + transaction_gt: String + transaction_gte: String + transaction_in: [String!] + transaction_lt: String + transaction_lte: String + transaction_not: String + transaction_not_contains: String + transaction_not_ends_with: String + transaction_not_in: [String!] + transaction_not_starts_with: String + transaction_starts_with: String +} + +enum VestingHistoryItem_orderBy { + action + amount + emittedBy + id + lockedUntil + staker + timestamp + totalStaked + transaction +} + +"This is the event emitted when a user votes for or against a proposed SIP\n" +type VoteCast { + emittedBy: Bytes! + + "ID is transaction hash + log index\n" + id: ID! + + "The ID of the Proposal entity that this vote is for/against\n" + proposal: Proposal! + + "The ID of the proposal\n" + proposalId: Int! + + "True if the vote is for the proposal, False if it is against\n" + support: Boolean! + timestamp: Int! + transaction: Transaction! + voter: User! + + "The number of votes the user cast (the voting power of that user)\n" + votes: BigInt! +} + +input VoteCast_filter { + emittedBy: Bytes + emittedBy_contains: Bytes + emittedBy_in: [Bytes!] + emittedBy_not: Bytes + emittedBy_not_contains: Bytes + emittedBy_not_in: [Bytes!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + proposal: String + proposalId: Int + proposalId_gt: Int + proposalId_gte: Int + proposalId_in: [Int!] + proposalId_lt: Int + proposalId_lte: Int + proposalId_not: Int + proposalId_not_in: [Int!] + proposal_contains: String + proposal_ends_with: String + proposal_gt: String + proposal_gte: String + proposal_in: [String!] + proposal_lt: String + proposal_lte: String + proposal_not: String + proposal_not_contains: String + proposal_not_ends_with: String + proposal_not_in: [String!] + proposal_not_starts_with: String + proposal_starts_with: String + support: Boolean + support_in: [Boolean!] + support_not: Boolean + support_not_in: [Boolean!] + timestamp: Int + timestamp_gt: Int + timestamp_gte: Int + timestamp_in: [Int!] + timestamp_lt: Int + timestamp_lte: Int + timestamp_not: Int + timestamp_not_in: [Int!] + transaction: String + transaction_contains: String + transaction_ends_with: String + transaction_gt: String + transaction_gte: String + transaction_in: [String!] + transaction_lt: String + transaction_lte: String + transaction_not: String + transaction_not_contains: String + transaction_not_ends_with: String + transaction_not_in: [String!] + transaction_not_starts_with: String + transaction_starts_with: String + voter: String + voter_contains: String + voter_ends_with: String + voter_gt: String + voter_gte: String + voter_in: [String!] + voter_lt: String + voter_lte: String + voter_not: String + voter_not_contains: String + voter_not_ends_with: String + voter_not_in: [String!] + voter_not_starts_with: String + voter_starts_with: String + votes: BigInt + votes_gt: BigInt + votes_gte: BigInt + votes_in: [BigInt!] + votes_lt: BigInt + votes_lte: BigInt + votes_not: BigInt + votes_not_in: [BigInt!] +} + +enum VoteCast_orderBy { + emittedBy + id + proposal + proposalId + support + timestamp + transaction + voter + votes +} + +type Withdrawal { + amount: BigDecimal! + emittedBy: Bytes! + id: ID! + receiver: Bytes! + timestamp: Int! + transaction: Transaction! +} + +input Withdrawal_filter { + amount: BigDecimal + amount_gt: BigDecimal + amount_gte: BigDecimal + amount_in: [BigDecimal!] + amount_lt: BigDecimal + amount_lte: BigDecimal + amount_not: BigDecimal + amount_not_in: [BigDecimal!] + emittedBy: Bytes + emittedBy_contains: Bytes + emittedBy_in: [Bytes!] + emittedBy_not: Bytes + emittedBy_not_contains: Bytes + emittedBy_not_in: [Bytes!] + id: ID + id_gt: ID + id_gte: ID + id_in: [ID!] + id_lt: ID + id_lte: ID + id_not: ID + id_not_in: [ID!] + receiver: Bytes + receiver_contains: Bytes + receiver_in: [Bytes!] + receiver_not: Bytes + receiver_not_contains: Bytes + receiver_not_in: [Bytes!] + timestamp: Int + timestamp_gt: Int + timestamp_gte: Int + timestamp_in: [Int!] + timestamp_lt: Int + timestamp_lte: Int + timestamp_not: Int + timestamp_not_in: [Int!] + transaction: String + transaction_contains: String + transaction_ends_with: String + transaction_gt: String + transaction_gte: String + transaction_in: [String!] + transaction_lt: String + transaction_lte: String + transaction_not: String + transaction_not_contains: String + transaction_not_ends_with: String + transaction_not_in: [String!] + transaction_not_starts_with: String + transaction_starts_with: String +} + +enum Withdrawal_orderBy { + amount + emittedBy + id + receiver + timestamp + transaction +} + +type _Block_ { + """ + The hash of the block + """ + hash: Bytes + + """ + The block number + """ + number: Int! +} + +""" +The type for the top-level _meta field +""" +type _Meta_ { + "Information about a specific subgraph block. The hash of the block\nwill be null if the _meta field has a block constraint that asks for\na block number. It will be filled if the _meta field has no block constraint\nand therefore asks for the latest block\n" + block: _Block_! + + """ + The deployment ID + """ + deployment: String! + + """ + If `true`, the subgraph encountered indexing errors at some past block + """ + hasIndexingErrors: Boolean! +} + +enum _SubgraphErrorPolicy_ { + """ + Data will be returned even if the subgraph has indexing errors + """ + allow + + """ + If the subgraph has indexing errors, data will be omitted. The default. + """ + deny +} diff --git a/package.json b/package.json index 6a0becf77..5bfa3258b 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,9 @@ "coverage": "turbo run coverage", "storybook": "turbo run storybook", "prepare": "husky install", - "release-packages": "turbo run build lint test --filter=./packages/* && changeset publish" + "release-packages": "turbo run build lint test --filter=./packages/* && changeset publish", + "generate:graphql:fetch:testnet": "turbo run generate:graphql:fetch:testnet", + "generate:graphql:fetch:mainnet": "turbo run generate:graphql:fetch:mainnet" }, "devDependencies": { "@sovryn/eslint-config-custom": "*", diff --git a/turbo.json b/turbo.json index 535b753a7..fd3dd852f 100644 --- a/turbo.json +++ b/turbo.json @@ -26,6 +26,12 @@ }, "storybook": { "outputs": [] + }, + "generate:graphql:fetch:testnet": { + "outputs": [] + }, + "generate:graphql:fetch:mainnet": { + "outputs": [] } } } diff --git a/yarn.lock b/yarn.lock index dac61cec6..1110c65d4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -24,6 +24,62 @@ jsonpointer "^5.0.0" leven "^3.1.0" +"@apollo/client@3.7.1", "@apollo/client@latest": + version "3.7.1" + resolved "https://registry.yarnpkg.com/@apollo/client/-/client-3.7.1.tgz#86ce47c18a0714e229231148b0306562550c2248" + integrity sha512-xu5M/l7p9gT9Fx7nF3AQivp0XukjB7TM7tOd5wifIpI8RskYveL4I+rpTijzWrnqCPZabkbzJKH7WEAKdctt9w== + dependencies: + "@graphql-typed-document-node/core" "^3.1.1" + "@wry/context" "^0.7.0" + "@wry/equality" "^0.5.0" + "@wry/trie" "^0.3.0" + graphql-tag "^2.12.6" + hoist-non-react-statics "^3.3.2" + optimism "^0.16.1" + prop-types "^15.7.2" + response-iterator "^0.2.6" + symbol-observable "^4.0.0" + ts-invariant "^0.10.3" + tslib "^2.3.0" + zen-observable-ts "^1.2.5" + +"@apollo/react-hooks@4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@apollo/react-hooks/-/react-hooks-4.0.0.tgz#7bf7b320c90d276f637d9a84b503e17b840dd4e6" + integrity sha512-fCu0cbne3gbUl0QbA8X4L33iuuFVQbC5Jo2MIKRK8CyawR6PoxDpFdFA1kc6033ODZuZZ9Eo4RdeJFlFIIYcLA== + dependencies: + "@apollo/client" latest + +"@ardatan/relay-compiler@12.0.0": + version "12.0.0" + resolved "https://registry.yarnpkg.com/@ardatan/relay-compiler/-/relay-compiler-12.0.0.tgz#2e4cca43088e807adc63450e8cab037020e91106" + integrity sha512-9anThAaj1dQr6IGmzBMcfzOQKTa5artjuPmw8NYK/fiGEMjADbSguBY2FMDykt+QhilR3wc9VA/3yVju7JHg7Q== + dependencies: + "@babel/core" "^7.14.0" + "@babel/generator" "^7.14.0" + "@babel/parser" "^7.14.0" + "@babel/runtime" "^7.0.0" + "@babel/traverse" "^7.14.0" + "@babel/types" "^7.0.0" + babel-preset-fbjs "^3.4.0" + chalk "^4.0.0" + fb-watchman "^2.0.0" + fbjs "^3.0.0" + glob "^7.1.1" + immutable "~3.7.6" + invariant "^2.2.4" + nullthrows "^1.1.1" + relay-runtime "12.0.0" + signedsource "^1.0.0" + yargs "^15.3.1" + +"@ardatan/sync-fetch@0.0.1": + version "0.0.1" + resolved "https://registry.yarnpkg.com/@ardatan/sync-fetch/-/sync-fetch-0.0.1.tgz#3385d3feedceb60a896518a1db857ec1e945348f" + integrity sha512-xhlTqH0m31mnsG0tIP4ETgfSB6gXDaYYsUWTrlUV93fFQPI9dd8hE0Ot6MHLCtqgB32hwJAC3YZMWlXZw7AleA== + dependencies: + node-fetch "^2.6.1" + "@babel/code-frame@7.12.11": version "7.12.11" resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.12.11.tgz#f4ad435aa263db935b8f10f2c552d23fb716a63f" @@ -128,7 +184,7 @@ json5 "^2.2.1" semver "^6.3.0" -"@babel/core@^7.1.0", "@babel/core@^7.11.1", "@babel/core@^7.11.6", "@babel/core@^7.12.10", "@babel/core@^7.12.3", "@babel/core@^7.16.0", "@babel/core@^7.7.2", "@babel/core@^7.7.5", "@babel/core@^7.8.0": +"@babel/core@^7.1.0", "@babel/core@^7.11.1", "@babel/core@^7.11.6", "@babel/core@^7.12.10", "@babel/core@^7.12.3", "@babel/core@^7.14.0", "@babel/core@^7.16.0", "@babel/core@^7.7.2", "@babel/core@^7.7.5", "@babel/core@^7.8.0": version "7.20.2" resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.20.2.tgz#8dc9b1620a673f92d3624bd926dc49a52cf25b92" integrity sha512-w7DbG8DtMrJcFOi4VrLm+8QM4az8Mo+PuLBKLp2zrYRCow8W/f9xiXm5sN53C8HksCyDQwCKha9JiDoIyPjT2g== @@ -167,7 +223,7 @@ jsesc "^2.5.1" source-map "^0.5.0" -"@babel/generator@^7.12.11", "@babel/generator@^7.12.5", "@babel/generator@^7.17.3", "@babel/generator@^7.17.7", "@babel/generator@^7.18.2", "@babel/generator@^7.20.1", "@babel/generator@^7.20.2", "@babel/generator@^7.7.2": +"@babel/generator@^7.12.11", "@babel/generator@^7.12.5", "@babel/generator@^7.14.0", "@babel/generator@^7.17.3", "@babel/generator@^7.17.7", "@babel/generator@^7.18.13", "@babel/generator@^7.18.2", "@babel/generator@^7.20.1", "@babel/generator@^7.20.2", "@babel/generator@^7.7.2": version "7.20.4" resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.20.4.tgz#4d9f8f0c30be75fd90a0562099a26e5839602ab8" integrity sha512-luCf7yk/cm7yab6CAW1aiFnmEfBJplb/JojV56MYEK7ziWfGmFlTfmL9Ehwfy4gFhbjBfWO1wj7/TuSbVNEEtA== @@ -201,7 +257,20 @@ browserslist "^4.21.3" semver "^6.3.0" -"@babel/helper-create-class-features-plugin@^7.18.6", "@babel/helper-create-class-features-plugin@^7.20.2": +"@babel/helper-create-class-features-plugin@^7.18.6": + version "7.19.0" + resolved "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.19.0.tgz" + integrity sha512-NRz8DwF4jT3UfrmUoZjd0Uph9HQnP30t7Ash+weACcyNkiYTywpIjDBgReJMKgr+n86sn2nPVVmJ28Dm053Kqw== + dependencies: + "@babel/helper-annotate-as-pure" "^7.18.6" + "@babel/helper-environment-visitor" "^7.18.9" + "@babel/helper-function-name" "^7.19.0" + "@babel/helper-member-expression-to-functions" "^7.18.9" + "@babel/helper-optimise-call-expression" "^7.18.6" + "@babel/helper-replace-supers" "^7.18.9" + "@babel/helper-split-export-declaration" "^7.18.6" + +"@babel/helper-create-class-features-plugin@^7.20.2": version "7.20.2" resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.20.2.tgz#3c08a5b5417c7f07b5cf3dfb6dc79cbec682e8c2" integrity sha512-k22GoYRAHPYr9I+Gvy2ZQlAe5mGy8BqWst2wRt8cwIufWTxrsVshhIBvYNqC80N0GSFWTsqRVexOtfzlgOEDvA== @@ -410,7 +479,7 @@ resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.17.8.tgz#2817fb9d885dd8132ea0f8eb615a6388cca1c240" integrity sha512-BoHhDJrJXqcg+ZL16Xv39H9n+AqJ4pcDrQBGZN+wHxIysrLZ3/ECwCBUch/1zUNhnsXULcONU3Ei5Hmkfk6kiQ== -"@babel/parser@^7.1.0", "@babel/parser@^7.12.11", "@babel/parser@^7.12.7", "@babel/parser@^7.14.7", "@babel/parser@^7.17.3", "@babel/parser@^7.17.8", "@babel/parser@^7.18.0", "@babel/parser@^7.18.10", "@babel/parser@^7.18.5", "@babel/parser@^7.20.1", "@babel/parser@^7.20.2": +"@babel/parser@^7.1.0", "@babel/parser@^7.12.11", "@babel/parser@^7.12.7", "@babel/parser@^7.14.0", "@babel/parser@^7.14.7", "@babel/parser@^7.16.8", "@babel/parser@^7.17.3", "@babel/parser@^7.17.8", "@babel/parser@^7.18.0", "@babel/parser@^7.18.10", "@babel/parser@^7.18.5", "@babel/parser@^7.20.1", "@babel/parser@^7.20.2": version "7.20.3" resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.20.3.tgz#5358cf62e380cf69efcb87a7bb922ff88bfac6e2" integrity sha512-OP/s5a94frIPXwjzEcv5S/tpQfc6XhxYUnmWpgdqMWGgYCuErA3SzozaRAMQgSZWKeTJxht9aWAkUY+0UzvOFg== @@ -441,7 +510,7 @@ "@babel/helper-remap-async-to-generator" "^7.18.9" "@babel/plugin-syntax-async-generators" "^7.8.4" -"@babel/plugin-proposal-class-properties@^7.12.1", "@babel/plugin-proposal-class-properties@^7.16.0", "@babel/plugin-proposal-class-properties@^7.18.6": +"@babel/plugin-proposal-class-properties@^7.0.0", "@babel/plugin-proposal-class-properties@^7.12.1", "@babel/plugin-proposal-class-properties@^7.16.0", "@babel/plugin-proposal-class-properties@^7.18.6": version "7.18.6" resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.18.6.tgz#b110f59741895f7ec21a6fff696ec46265c446a3" integrity sha512-cumfXOF0+nzZrrN8Rf0t7M+tF6sZc7vhQwYQck9q1/5w2OExlD+b4v4RpMJFaV1Z7WcDRgO6FqvxqxGlwo+RHQ== @@ -534,7 +603,7 @@ "@babel/plugin-syntax-object-rest-spread" "^7.8.0" "@babel/plugin-transform-parameters" "^7.12.1" -"@babel/plugin-proposal-object-rest-spread@^7.12.1", "@babel/plugin-proposal-object-rest-spread@^7.20.2": +"@babel/plugin-proposal-object-rest-spread@^7.0.0", "@babel/plugin-proposal-object-rest-spread@^7.20.2": version "7.20.2" resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.20.2.tgz#a556f59d555f06961df1e572bb5eca864c84022d" integrity sha512-Ks6uej9WFK+fvIMesSqbAto5dD8Dz4VuuFvGJFKgIGSkJuRGcrwGECPA1fDgQK3/DbExBJpEkTeYeB8geIFCSQ== @@ -545,6 +614,17 @@ "@babel/plugin-syntax-object-rest-spread" "^7.8.3" "@babel/plugin-transform-parameters" "^7.20.1" +"@babel/plugin-proposal-object-rest-spread@^7.12.1": + version "7.18.9" + resolved "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.18.9.tgz" + integrity sha512-kDDHQ5rflIeY5xl69CEqGEZ0KY369ehsCIEbTGb4siHG5BE9sga/T0r0OUwyZNLMmZE79E1kbsqAjwFCW4ds6Q== + dependencies: + "@babel/compat-data" "^7.18.8" + "@babel/helper-compilation-targets" "^7.18.9" + "@babel/helper-plugin-utils" "^7.18.9" + "@babel/plugin-syntax-object-rest-spread" "^7.8.3" + "@babel/plugin-transform-parameters" "^7.18.8" + "@babel/plugin-proposal-optional-catch-binding@^7.18.6": version "7.18.6" resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.18.6.tgz#f9400d0e6a3ea93ba9ef70b09e72dd6da638a2cb" @@ -602,7 +682,7 @@ dependencies: "@babel/helper-plugin-utils" "^7.8.0" -"@babel/plugin-syntax-class-properties@^7.12.13", "@babel/plugin-syntax-class-properties@^7.8.3": +"@babel/plugin-syntax-class-properties@^7.0.0", "@babel/plugin-syntax-class-properties@^7.12.13", "@babel/plugin-syntax-class-properties@^7.8.3": version "7.12.13" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz#b5c987274c4a3a82b89714796931a6b53544ae10" integrity sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA== @@ -644,7 +724,7 @@ dependencies: "@babel/helper-plugin-utils" "^7.8.3" -"@babel/plugin-syntax-flow@^7.18.6": +"@babel/plugin-syntax-flow@^7.0.0", "@babel/plugin-syntax-flow@^7.18.6": version "7.18.6" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-flow/-/plugin-syntax-flow-7.18.6.tgz#774d825256f2379d06139be0c723c4dd444f3ca1" integrity sha512-LUbR+KNTBWCUAqRG9ex5Gnzu2IOkt8jRJbHHXFT9q+L9zm7M/QQbEqXyw1n1pohYvOyWC8CjeyjrSaIwiYjK7A== @@ -679,7 +759,7 @@ dependencies: "@babel/helper-plugin-utils" "^7.10.4" -"@babel/plugin-syntax-jsx@^7.18.6", "@babel/plugin-syntax-jsx@^7.7.2": +"@babel/plugin-syntax-jsx@^7.0.0", "@babel/plugin-syntax-jsx@^7.18.6", "@babel/plugin-syntax-jsx@^7.7.2": version "7.18.6" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.18.6.tgz#a8feef63b010150abd97f1649ec296e849943ca0" integrity sha512-6mmljtAedFGTWu2p/8WIORGwy+61PLgOMPOdazc7YoJ9ZCWUyFy3A6CpPkRKLKD1ToAesxX8KGEViAiLo9N+7Q== @@ -707,7 +787,7 @@ dependencies: "@babel/helper-plugin-utils" "^7.10.4" -"@babel/plugin-syntax-object-rest-spread@7.8.3", "@babel/plugin-syntax-object-rest-spread@^7.8.0", "@babel/plugin-syntax-object-rest-spread@^7.8.3": +"@babel/plugin-syntax-object-rest-spread@7.8.3", "@babel/plugin-syntax-object-rest-spread@^7.0.0", "@babel/plugin-syntax-object-rest-spread@^7.8.0", "@babel/plugin-syntax-object-rest-spread@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz#60e225edcbd98a640332a2e72dd3e66f1af55871" integrity sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA== @@ -749,7 +829,7 @@ dependencies: "@babel/helper-plugin-utils" "^7.19.0" -"@babel/plugin-transform-arrow-functions@^7.12.1", "@babel/plugin-transform-arrow-functions@^7.18.6": +"@babel/plugin-transform-arrow-functions@^7.0.0", "@babel/plugin-transform-arrow-functions@^7.12.1", "@babel/plugin-transform-arrow-functions@^7.18.6": version "7.18.6" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.18.6.tgz#19063fcf8771ec7b31d742339dac62433d0611fe" integrity sha512-9S9X9RUefzrsHZmKMbDXxweEH+YlE8JJEuat9FdvW9Qh1cw7W64jELCtWNkPBPX5En45uy28KGvA/AySqUh8CQ== @@ -765,21 +845,28 @@ "@babel/helper-plugin-utils" "^7.18.6" "@babel/helper-remap-async-to-generator" "^7.18.6" -"@babel/plugin-transform-block-scoped-functions@^7.18.6": +"@babel/plugin-transform-block-scoped-functions@^7.0.0", "@babel/plugin-transform-block-scoped-functions@^7.18.6": version "7.18.6" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.18.6.tgz#9187bf4ba302635b9d70d986ad70f038726216a8" integrity sha512-ExUcOqpPWnliRcPqves5HJcJOvHvIIWfuS4sroBUenPuMdmW+SMHDakmtS7qOo13sVppmUijqeTv7qqGsvURpQ== dependencies: "@babel/helper-plugin-utils" "^7.18.6" -"@babel/plugin-transform-block-scoping@^7.12.12", "@babel/plugin-transform-block-scoping@^7.20.2": +"@babel/plugin-transform-block-scoping@^7.0.0", "@babel/plugin-transform-block-scoping@^7.20.2": version "7.20.2" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.20.2.tgz#f59b1767e6385c663fd0bce655db6ca9c8b236ed" integrity sha512-y5V15+04ry69OV2wULmwhEA6jwSWXO1TwAtIwiPXcvHcoOQUqpyMVd2bDsQJMW8AurjulIyUV8kDqtjSwHy1uQ== dependencies: "@babel/helper-plugin-utils" "^7.20.2" -"@babel/plugin-transform-classes@^7.12.1", "@babel/plugin-transform-classes@^7.20.2": +"@babel/plugin-transform-block-scoping@^7.12.12": + version "7.18.9" + resolved "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.18.9.tgz" + integrity sha512-5sDIJRV1KtQVEbt/EIBwGy4T01uYIo4KRB3VUqzkhrAIOGx7AoctL9+Ux88btY0zXdDyPJ9mW+bg+v+XEkGmtw== + dependencies: + "@babel/helper-plugin-utils" "^7.18.9" + +"@babel/plugin-transform-classes@^7.0.0", "@babel/plugin-transform-classes@^7.20.2": version "7.20.2" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.20.2.tgz#c0033cf1916ccf78202d04be4281d161f6709bb2" integrity sha512-9rbPp0lCVVoagvtEyQKSo5L8oo0nQS/iif+lwlAz29MccX2642vWDlSZK+2T2buxbopotId2ld7zZAzRfz9j1g== @@ -794,20 +881,42 @@ "@babel/helper-split-export-declaration" "^7.18.6" globals "^11.1.0" -"@babel/plugin-transform-computed-properties@^7.18.9": +"@babel/plugin-transform-classes@^7.12.1": + version "7.19.0" + resolved "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.19.0.tgz" + integrity sha512-YfeEE9kCjqTS9IitkgfJuxjcEtLUHMqa8yUJ6zdz8vR7hKuo6mOy2C05P0F1tdMmDCeuyidKnlrw/iTppHcr2A== + dependencies: + "@babel/helper-annotate-as-pure" "^7.18.6" + "@babel/helper-compilation-targets" "^7.19.0" + "@babel/helper-environment-visitor" "^7.18.9" + "@babel/helper-function-name" "^7.19.0" + "@babel/helper-optimise-call-expression" "^7.18.6" + "@babel/helper-plugin-utils" "^7.19.0" + "@babel/helper-replace-supers" "^7.18.9" + "@babel/helper-split-export-declaration" "^7.18.6" + globals "^11.1.0" + +"@babel/plugin-transform-computed-properties@^7.0.0", "@babel/plugin-transform-computed-properties@^7.18.9": version "7.18.9" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.18.9.tgz#2357a8224d402dad623caf6259b611e56aec746e" integrity sha512-+i0ZU1bCDymKakLxn5srGHrsAPRELC2WIbzwjLhHW9SIE1cPYkLCL0NlnXMZaM1vhfgA2+M7hySk42VBvrkBRw== dependencies: "@babel/helper-plugin-utils" "^7.18.9" -"@babel/plugin-transform-destructuring@^7.12.1", "@babel/plugin-transform-destructuring@^7.20.2": +"@babel/plugin-transform-destructuring@^7.0.0", "@babel/plugin-transform-destructuring@^7.20.2": version "7.20.2" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.20.2.tgz#c23741cfa44ddd35f5e53896e88c75331b8b2792" integrity sha512-mENM+ZHrvEgxLTBXUiQ621rRXZes3KWUv6NdQlrnr1TkWVw+hUjQBZuP2X32qKlrlG2BzgR95gkuCRSkJl8vIw== dependencies: "@babel/helper-plugin-utils" "^7.20.2" +"@babel/plugin-transform-destructuring@^7.12.1": + version "7.18.13" + resolved "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.18.13.tgz" + integrity sha512-TodpQ29XekIsex2A+YJPj5ax2plkGa8YYY6mFjCohk/IG9IY42Rtuj1FuDeemfg2ipxIFLzPeA83SIBnlhSIow== + dependencies: + "@babel/helper-plugin-utils" "^7.18.9" + "@babel/plugin-transform-dotall-regex@^7.18.6", "@babel/plugin-transform-dotall-regex@^7.4.4": version "7.18.6" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.18.6.tgz#b286b3e7aae6c7b861e45bed0a2fafd6b1a4fef8" @@ -831,7 +940,7 @@ "@babel/helper-builder-binary-assignment-operator-visitor" "^7.18.6" "@babel/helper-plugin-utils" "^7.18.6" -"@babel/plugin-transform-flow-strip-types@^7.16.0", "@babel/plugin-transform-flow-strip-types@^7.18.6": +"@babel/plugin-transform-flow-strip-types@^7.0.0", "@babel/plugin-transform-flow-strip-types@^7.16.0", "@babel/plugin-transform-flow-strip-types@^7.18.6": version "7.19.0" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-flow-strip-types/-/plugin-transform-flow-strip-types-7.19.0.tgz#e9e8606633287488216028719638cbbb2f2dde8f" integrity sha512-sgeMlNaQVbCSpgLSKP4ZZKfsJVnFnNQlUSk6gPYzR/q7tzCgQF2t8RBKAP6cKJeZdveei7Q7Jm527xepI8lNLg== @@ -839,14 +948,14 @@ "@babel/helper-plugin-utils" "^7.19.0" "@babel/plugin-syntax-flow" "^7.18.6" -"@babel/plugin-transform-for-of@^7.12.1", "@babel/plugin-transform-for-of@^7.18.8": +"@babel/plugin-transform-for-of@^7.0.0", "@babel/plugin-transform-for-of@^7.12.1", "@babel/plugin-transform-for-of@^7.18.8": version "7.18.8" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.18.8.tgz#6ef8a50b244eb6a0bdbad0c7c61877e4e30097c1" integrity sha512-yEfTRnjuskWYo0k1mHUqrVWaZwrdq8AYbfrpqULOJOaucGSp4mNMVps+YtA8byoevxS/urwU75vyhQIxcCgiBQ== dependencies: "@babel/helper-plugin-utils" "^7.18.6" -"@babel/plugin-transform-function-name@^7.18.9": +"@babel/plugin-transform-function-name@^7.0.0", "@babel/plugin-transform-function-name@^7.18.9": version "7.18.9" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.18.9.tgz#cc354f8234e62968946c61a46d6365440fc764e0" integrity sha512-WvIBoRPaJQ5yVHzcnJFor7oS5Ls0PYixlTYE63lCj2RtdQEl15M68FXQlxnG6wdraJIXRdR7KI+hQ7q/9QjrCQ== @@ -855,14 +964,14 @@ "@babel/helper-function-name" "^7.18.9" "@babel/helper-plugin-utils" "^7.18.9" -"@babel/plugin-transform-literals@^7.18.9": +"@babel/plugin-transform-literals@^7.0.0", "@babel/plugin-transform-literals@^7.18.9": version "7.18.9" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-literals/-/plugin-transform-literals-7.18.9.tgz#72796fdbef80e56fba3c6a699d54f0de557444bc" integrity sha512-IFQDSRoTPnrAIrI5zoZv73IFeZu2dhu6irxQjY9rNjTT53VmKg9fenjvoiOWOkJ6mm4jKVPtdMzBY98Fp4Z4cg== dependencies: "@babel/helper-plugin-utils" "^7.18.9" -"@babel/plugin-transform-member-expression-literals@^7.18.6": +"@babel/plugin-transform-member-expression-literals@^7.0.0", "@babel/plugin-transform-member-expression-literals@^7.18.6": version "7.18.6" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.18.6.tgz#ac9fdc1a118620ac49b7e7a5d2dc177a1bfee88e" integrity sha512-qSF1ihLGO3q+/g48k85tUjD033C29TNTVB2paCwZPVmOsjn9pClvYYrM2VeJpBY2bcNkuny0YUyTNRyRxJ54KA== @@ -877,7 +986,7 @@ "@babel/helper-module-transforms" "^7.19.6" "@babel/helper-plugin-utils" "^7.19.0" -"@babel/plugin-transform-modules-commonjs@^7.19.6": +"@babel/plugin-transform-modules-commonjs@^7.0.0", "@babel/plugin-transform-modules-commonjs@^7.19.6": version "7.19.6" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.19.6.tgz#25b32feef24df8038fc1ec56038917eacb0b730c" integrity sha512-8PIa1ym4XRTKuSsOUXqDG0YaOlEuTVvHMe5JCfgBMOtHvJKw/4NGovEGN33viISshG/rZNVrACiBmPQLvWN8xQ== @@ -919,7 +1028,7 @@ dependencies: "@babel/helper-plugin-utils" "^7.18.6" -"@babel/plugin-transform-object-super@^7.18.6": +"@babel/plugin-transform-object-super@^7.0.0", "@babel/plugin-transform-object-super@^7.18.6": version "7.18.6" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.18.6.tgz#fb3c6ccdd15939b6ff7939944b51971ddc35912c" integrity sha512-uvGz6zk+pZoS1aTZrOvrbj6Pp/kK2mp45t2B+bTDre2UgsZZ8EZLSJtUg7m/no0zOJUWgFONpB7Zv9W2tSaFlA== @@ -927,14 +1036,21 @@ "@babel/helper-plugin-utils" "^7.18.6" "@babel/helper-replace-supers" "^7.18.6" -"@babel/plugin-transform-parameters@^7.12.1", "@babel/plugin-transform-parameters@^7.20.1": +"@babel/plugin-transform-parameters@^7.0.0", "@babel/plugin-transform-parameters@^7.20.1": version "7.20.3" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.20.3.tgz#7b3468d70c3c5b62e46be0a47b6045d8590fb748" integrity sha512-oZg/Fpx0YDrj13KsLyO8I/CX3Zdw7z0O9qOd95SqcoIzuqy/WTGWvePeHAnZCN54SfdyjHcb1S30gc8zlzlHcA== dependencies: "@babel/helper-plugin-utils" "^7.20.2" -"@babel/plugin-transform-property-literals@^7.18.6": +"@babel/plugin-transform-parameters@^7.12.1": + version "7.18.8" + resolved "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.18.8.tgz" + integrity sha512-ivfbE3X2Ss+Fj8nnXvKJS6sjRG4gzwPMsP+taZC+ZzEGjAYlvENixmt1sZ5Ca6tWls+BlKSGKPJ6OOXvXCbkFg== + dependencies: + "@babel/helper-plugin-utils" "^7.18.6" + +"@babel/plugin-transform-property-literals@^7.0.0", "@babel/plugin-transform-property-literals@^7.18.6": version "7.18.6" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.18.6.tgz#e22498903a483448e94e032e9bbb9c5ccbfc93a3" integrity sha512-cYcs6qlgafTud3PAzrrRNbQtfpQ8+y/+M5tKmksS9+M1ckbH6kzY8MrexEM9mcA6JDsukE19iIRvAyYl463sMg== @@ -948,7 +1064,7 @@ dependencies: "@babel/helper-plugin-utils" "^7.20.2" -"@babel/plugin-transform-react-display-name@^7.16.0", "@babel/plugin-transform-react-display-name@^7.18.6": +"@babel/plugin-transform-react-display-name@^7.0.0", "@babel/plugin-transform-react-display-name@^7.16.0", "@babel/plugin-transform-react-display-name@^7.18.6": version "7.18.6" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.18.6.tgz#8b1125f919ef36ebdfff061d664e266c666b9415" integrity sha512-TV4sQ+T013n61uMoygyMRm+xf04Bd5oqFpv2jAEQwSZ8NwQA7zeRPg1LMVg2PWi3zWBz+CLKD+v5bcpZ/BS0aA== @@ -962,7 +1078,7 @@ dependencies: "@babel/plugin-transform-react-jsx" "^7.18.6" -"@babel/plugin-transform-react-jsx@^7.12.12", "@babel/plugin-transform-react-jsx@^7.18.6": +"@babel/plugin-transform-react-jsx@^7.0.0", "@babel/plugin-transform-react-jsx@^7.12.12", "@babel/plugin-transform-react-jsx@^7.18.6": version "7.19.0" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.19.0.tgz#b3cbb7c3a00b92ec8ae1027910e331ba5c500eb9" integrity sha512-UVEvX3tXie3Szm3emi1+G63jyw1w5IcMY0FSKM+CRnKRI5Mr1YbCNgsSTwoTwKphQEG9P+QqmuRFneJPZuHNhg== @@ -1008,14 +1124,14 @@ babel-plugin-polyfill-regenerator "^0.4.1" semver "^6.3.0" -"@babel/plugin-transform-shorthand-properties@^7.12.1", "@babel/plugin-transform-shorthand-properties@^7.18.6": +"@babel/plugin-transform-shorthand-properties@^7.0.0", "@babel/plugin-transform-shorthand-properties@^7.12.1", "@babel/plugin-transform-shorthand-properties@^7.18.6": version "7.18.6" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.18.6.tgz#6d6df7983d67b195289be24909e3f12a8f664dc9" integrity sha512-eCLXXJqv8okzg86ywZJbRn19YJHU4XUa55oz2wbHhaQVn/MM+XhukiT7SYqp/7o00dg52Rj51Ny+Ecw4oyoygw== dependencies: "@babel/helper-plugin-utils" "^7.18.6" -"@babel/plugin-transform-spread@^7.12.1", "@babel/plugin-transform-spread@^7.19.0": +"@babel/plugin-transform-spread@^7.0.0", "@babel/plugin-transform-spread@^7.12.1", "@babel/plugin-transform-spread@^7.19.0": version "7.19.0" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-spread/-/plugin-transform-spread-7.19.0.tgz#dd60b4620c2fec806d60cfaae364ec2188d593b6" integrity sha512-RsuMk7j6n+r752EtzyScnWkQyuJdli6LdO5Klv8Yx0OfPVTcQkIUfS8clx5e9yHXzlnhOZF3CbQ8C2uP5j074w== @@ -1030,7 +1146,7 @@ dependencies: "@babel/helper-plugin-utils" "^7.18.6" -"@babel/plugin-transform-template-literals@^7.12.1", "@babel/plugin-transform-template-literals@^7.18.9": +"@babel/plugin-transform-template-literals@^7.0.0", "@babel/plugin-transform-template-literals@^7.12.1", "@babel/plugin-transform-template-literals@^7.18.9": version "7.18.9" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.18.9.tgz#04ec6f10acdaa81846689d63fae117dd9c243a5e" integrity sha512-S8cOWfT82gTezpYOiVaGHrCbhlHgKhQt8XH5ES46P2XWmX92yisoZywf5km75wv5sYcXDUCLMmMxOLCtthDgMA== @@ -1262,7 +1378,7 @@ debug "^4.1.0" globals "^11.1.0" -"@babel/traverse@^7.1.6", "@babel/traverse@^7.12.11", "@babel/traverse@^7.12.9", "@babel/traverse@^7.13.0", "@babel/traverse@^7.17.3", "@babel/traverse@^7.18.2", "@babel/traverse@^7.18.5", "@babel/traverse@^7.19.0", "@babel/traverse@^7.19.1", "@babel/traverse@^7.20.1", "@babel/traverse@^7.7.2": +"@babel/traverse@^7.1.6", "@babel/traverse@^7.12.11", "@babel/traverse@^7.12.9", "@babel/traverse@^7.13.0", "@babel/traverse@^7.14.0", "@babel/traverse@^7.16.8", "@babel/traverse@^7.17.3", "@babel/traverse@^7.18.2", "@babel/traverse@^7.18.5", "@babel/traverse@^7.19.0", "@babel/traverse@^7.19.1", "@babel/traverse@^7.20.1", "@babel/traverse@^7.7.2": version "7.20.1" resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.20.1.tgz#9b15ccbf882f6d107eeeecf263fbcdd208777ec8" integrity sha512-d3tN8fkVJwFLkHkBN479SOsw4DMZnz8cdbL/gvuDuzy3TS6Nfw80HuQqhw1pITbIruHyh7d1fMA47kWzmcUEGA== @@ -1286,7 +1402,7 @@ "@babel/helper-validator-identifier" "^7.16.7" to-fast-properties "^2.0.0" -"@babel/types@^7.0.0", "@babel/types@^7.12.11", "@babel/types@^7.12.6", "@babel/types@^7.12.7", "@babel/types@^7.17.0", "@babel/types@^7.18.10", "@babel/types@^7.18.2", "@babel/types@^7.18.4", "@babel/types@^7.18.6", "@babel/types@^7.18.9", "@babel/types@^7.19.0", "@babel/types@^7.2.0", "@babel/types@^7.20.0", "@babel/types@^7.20.2", "@babel/types@^7.3.0", "@babel/types@^7.3.3", "@babel/types@^7.4.4": +"@babel/types@^7.0.0", "@babel/types@^7.12.11", "@babel/types@^7.12.6", "@babel/types@^7.12.7", "@babel/types@^7.16.8", "@babel/types@^7.17.0", "@babel/types@^7.18.10", "@babel/types@^7.18.13", "@babel/types@^7.18.2", "@babel/types@^7.18.4", "@babel/types@^7.18.6", "@babel/types@^7.18.9", "@babel/types@^7.19.0", "@babel/types@^7.2.0", "@babel/types@^7.20.0", "@babel/types@^7.20.2", "@babel/types@^7.3.0", "@babel/types@^7.3.3", "@babel/types@^7.4.4": version "7.20.2" resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.20.2.tgz#67ac09266606190f496322dbaff360fdaa5e7842" integrity sha512-FnnvsNWgZCr232sqtXggapvlkk/tuwR/qhGzcmxI0GXLCjmPYQPzio2FbdlWuY6y1sHFfQKk+rRbUZ9VStQMog== @@ -2545,6 +2661,462 @@ resolved "https://registry.yarnpkg.com/@gar/promisify/-/promisify-1.1.3.tgz#555193ab2e3bb3b6adc3d551c9c030d9e860daf6" integrity sha512-k2Ty1JcVojjJFwrg/ThKi2ujJ7XNLYaFGNB/bWT9wGR+oSMJHMa5w+CUq6p/pVrKeNNgA7pCqEcjSnHVoqJQFw== +"@graphql-codegen/add@3.2.1": + version "3.2.1" + resolved "https://registry.yarnpkg.com/@graphql-codegen/add/-/add-3.2.1.tgz#f1109f36f194f88a6abcc51703abee43ebbb50a2" + integrity sha512-w82H/evh8SSGoD3K6K/Oh3kqSdbuU+TgHqMYmmHFxtH692v2xhN/cu1s/TotBQ7r4mO7OQutze7dde2tZEXGEQ== + dependencies: + "@graphql-codegen/plugin-helpers" "^2.6.2" + tslib "~2.4.0" + +"@graphql-codegen/cli@2.13.12": + version "2.13.12" + resolved "https://registry.yarnpkg.com/@graphql-codegen/cli/-/cli-2.13.12.tgz#5ee91c95a47d8eeab365d93a8bf21da764c6a7be" + integrity sha512-9pr39oseKQyQvm1tRFvW/2kt8c5JmT8u+5X6FZVBqWE18l1g4hB+XOeUNg/oEBdeDfiP7bvYjtQYOZaToXz9IQ== + dependencies: + "@babel/generator" "^7.18.13" + "@babel/template" "^7.18.10" + "@babel/types" "^7.18.13" + "@graphql-codegen/core" "2.6.6" + "@graphql-codegen/plugin-helpers" "^2.7.2" + "@graphql-tools/apollo-engine-loader" "^7.3.6" + "@graphql-tools/code-file-loader" "^7.3.1" + "@graphql-tools/git-loader" "^7.2.1" + "@graphql-tools/github-loader" "^7.3.6" + "@graphql-tools/graphql-file-loader" "^7.5.0" + "@graphql-tools/json-file-loader" "^7.4.1" + "@graphql-tools/load" "7.8.0" + "@graphql-tools/prisma-loader" "^7.2.7" + "@graphql-tools/url-loader" "^7.13.2" + "@graphql-tools/utils" "^8.9.0" + "@whatwg-node/fetch" "^0.3.0" + ansi-escapes "^4.3.1" + chalk "^4.1.0" + chokidar "^3.5.2" + cosmiconfig "^7.0.0" + cosmiconfig-typescript-loader "4.1.1" + debounce "^1.2.0" + detect-indent "^6.0.0" + graphql-config "4.3.6" + inquirer "^8.0.0" + is-glob "^4.0.1" + json-to-pretty-yaml "^1.2.2" + listr2 "^4.0.5" + log-symbols "^4.0.0" + mkdirp "^1.0.4" + shell-quote "^1.7.3" + string-env-interpolation "^1.0.1" + ts-log "^2.2.3" + tslib "^2.4.0" + yaml "^1.10.0" + yargs "^17.0.0" + +"@graphql-codegen/core@2.6.6": + version "2.6.6" + resolved "https://registry.yarnpkg.com/@graphql-codegen/core/-/core-2.6.6.tgz#e6ea99682230c5bbcf28cb247672da7f17e78578" + integrity sha512-gU2FUxoLGw2GfcPWfBVXuiN3aDODbZ6Z9I+IGxa2u1Rzxlacw4TMmcwr4/IjC6mkiYJEKTvdVspHaby+brhuAg== + dependencies: + "@graphql-codegen/plugin-helpers" "^2.7.2" + "@graphql-tools/schema" "^9.0.0" + "@graphql-tools/utils" "^9.1.1" + tslib "~2.4.0" + +"@graphql-codegen/plugin-helpers@^2.6.2", "@graphql-codegen/plugin-helpers@^2.7.2": + version "2.7.2" + resolved "https://registry.yarnpkg.com/@graphql-codegen/plugin-helpers/-/plugin-helpers-2.7.2.tgz#6544f739d725441c826a8af6a49519f588ff9bed" + integrity sha512-kln2AZ12uii6U59OQXdjLk5nOlh1pHis1R98cDZGFnfaiAbX9V3fxcZ1MMJkB7qFUymTALzyjZoXXdyVmPMfRg== + dependencies: + "@graphql-tools/utils" "^8.8.0" + change-case-all "1.0.14" + common-tags "1.8.2" + import-from "4.0.0" + lodash "~4.17.0" + tslib "~2.4.0" + +"@graphql-codegen/schema-ast@2.5.1", "@graphql-codegen/schema-ast@^2.5.1": + version "2.5.1" + resolved "https://registry.yarnpkg.com/@graphql-codegen/schema-ast/-/schema-ast-2.5.1.tgz#ce030ae6de5dacd745848009ba0ca18c9c30910c" + integrity sha512-tewa5DEKbglWn7kYyVBkh3J8YQ5ALqAMVmZwiVFIGOao5u66nd+e4HuFqp0u+Jpz4SJGGi0ap/oFrEvlqLjd2A== + dependencies: + "@graphql-codegen/plugin-helpers" "^2.6.2" + "@graphql-tools/utils" "^8.8.0" + tslib "~2.4.0" + +"@graphql-codegen/typescript-operations@2.5.7": + version "2.5.7" + resolved "https://registry.yarnpkg.com/@graphql-codegen/typescript-operations/-/typescript-operations-2.5.7.tgz#324bec408ef1ab26eece9d0ace1d5780a2f9dd42" + integrity sha512-4TRyQy/GizcjkZsvN176C5O5bULyGB/lMXDWqg58A9AGf/P0n5n4QjgrMd2EG6tA3Xzg1tiBWhxYEFSmlPVETQ== + dependencies: + "@graphql-codegen/plugin-helpers" "^2.7.2" + "@graphql-codegen/typescript" "^2.8.2" + "@graphql-codegen/visitor-plugin-common" "2.13.2" + auto-bind "~4.0.0" + tslib "~2.4.0" + +"@graphql-codegen/typescript-react-apollo@3.3.6": + version "3.3.6" + resolved "https://registry.yarnpkg.com/@graphql-codegen/typescript-react-apollo/-/typescript-react-apollo-3.3.6.tgz#320738576ae967829f57c909364204476b6b5ee7" + integrity sha512-W4xBQ54pdIyXGefYVAsfOB/fIlcony5ZlKWpwxbP5J+Keh2cNNTOxs1Tdib0UFFP4tgqnQY4S3e+QyG9fuv/iQ== + dependencies: + "@graphql-codegen/plugin-helpers" "^2.7.2" + "@graphql-codegen/visitor-plugin-common" "2.13.1" + auto-bind "~4.0.0" + change-case-all "1.0.14" + tslib "~2.4.0" + +"@graphql-codegen/typescript@2.8.2", "@graphql-codegen/typescript@^2.8.2": + version "2.8.2" + resolved "https://registry.yarnpkg.com/@graphql-codegen/typescript/-/typescript-2.8.2.tgz#88d5b916d9b6c93b17d2300a0ddddda5696581c1" + integrity sha512-FWyEcJTHSxkImNgDRfsg4yBMJ11qPA6sPJ7v8Kviv5MaOFybclVSZ8WWfp7D8Dc6ix4zWfMd4dIl9ZIL/AJu8A== + dependencies: + "@graphql-codegen/plugin-helpers" "^2.7.2" + "@graphql-codegen/schema-ast" "^2.5.1" + "@graphql-codegen/visitor-plugin-common" "2.13.2" + auto-bind "~4.0.0" + tslib "~2.4.0" + +"@graphql-codegen/visitor-plugin-common@2.13.1": + version "2.13.1" + resolved "https://registry.yarnpkg.com/@graphql-codegen/visitor-plugin-common/-/visitor-plugin-common-2.13.1.tgz#2228660f6692bcdb96b1f6d91a0661624266b76b" + integrity sha512-mD9ufZhDGhyrSaWQGrU1Q1c5f01TeWtSWy/cDwXYjJcHIj1Y/DG2x0tOflEfCvh5WcnmHNIw4lzDsg1W7iFJEg== + dependencies: + "@graphql-codegen/plugin-helpers" "^2.7.2" + "@graphql-tools/optimize" "^1.3.0" + "@graphql-tools/relay-operation-optimizer" "^6.5.0" + "@graphql-tools/utils" "^8.8.0" + auto-bind "~4.0.0" + change-case-all "1.0.14" + dependency-graph "^0.11.0" + graphql-tag "^2.11.0" + parse-filepath "^1.0.2" + tslib "~2.4.0" + +"@graphql-codegen/visitor-plugin-common@2.13.2": + version "2.13.2" + resolved "https://registry.yarnpkg.com/@graphql-codegen/visitor-plugin-common/-/visitor-plugin-common-2.13.2.tgz#cccc287d9b7eb25d9b8e54672a3807c1502c8091" + integrity sha512-qCZ4nfI1YjDuPz4lqGi0s4/5lOqHxdiQPFSwrXDENjHW+Z0oAiNYj6CFqob9ai2tLtXXKSUzMh/eeZDPmTrfhQ== + dependencies: + "@graphql-codegen/plugin-helpers" "^2.7.2" + "@graphql-tools/optimize" "^1.3.0" + "@graphql-tools/relay-operation-optimizer" "^6.5.0" + "@graphql-tools/utils" "^8.8.0" + auto-bind "~4.0.0" + change-case-all "1.0.14" + dependency-graph "^0.11.0" + graphql-tag "^2.11.0" + parse-filepath "^1.0.2" + tslib "~2.4.0" + +"@graphql-tools/apollo-engine-loader@^7.3.6": + version "7.3.19" + resolved "https://registry.yarnpkg.com/@graphql-tools/apollo-engine-loader/-/apollo-engine-loader-7.3.19.tgz#f18e73ba0e2efc9d9b9f30b96f6ce3a842837695" + integrity sha512-at5VaqSVGZDc3Fjr63vWhrKXTb5YdopCuvpRGeC9PALIWAMOLXNdkdPYiFe8crLAz60qhcpADqFoNFR+G2+NIg== + dependencies: + "@ardatan/sync-fetch" "0.0.1" + "@graphql-tools/utils" "9.1.1" + "@whatwg-node/fetch" "^0.5.0" + tslib "^2.4.0" + +"@graphql-tools/batch-execute@8.5.12": + version "8.5.12" + resolved "https://registry.yarnpkg.com/@graphql-tools/batch-execute/-/batch-execute-8.5.12.tgz#3059646b87e4ea3a196a6c8cbc3faf9b7c410d52" + integrity sha512-eNdN5CirW3ILoBaVyy4GI6JpLoJELeH0A7+uLRjwZuMFxpe4cljSrY8P+id28m43+uvBzB3rvNTv0+mnRjrMRw== + dependencies: + "@graphql-tools/utils" "9.1.1" + dataloader "2.1.0" + tslib "^2.4.0" + value-or-promise "1.0.11" + +"@graphql-tools/code-file-loader@^7.3.1": + version "7.3.12" + resolved "https://registry.yarnpkg.com/@graphql-tools/code-file-loader/-/code-file-loader-7.3.12.tgz#f3038b58f2bca369d2e5a4a487a9dbe7fd24d9b0" + integrity sha512-XflxElA2FNPDgicUZr4UF6NVlvPHFOKd1u8KAb/nHSlUT70qcvIPFfRASSuEvLMGYuW/lrFZfgi2z0BV6P5Vqw== + dependencies: + "@graphql-tools/graphql-tag-pluck" "7.3.12" + "@graphql-tools/utils" "9.1.1" + globby "^11.0.3" + tslib "^2.4.0" + unixify "^1.0.0" + +"@graphql-tools/delegate@9.0.17": + version "9.0.17" + resolved "https://registry.yarnpkg.com/@graphql-tools/delegate/-/delegate-9.0.17.tgz#8f509a046cee7b37c0cae33a526e4aea903539ab" + integrity sha512-y7h5H+hOhQWEkG67A4wurlphHMYJuMlQIEY7wZPVpmViuV6TuSPB7qkLITsM99XiNQhX+v1VayN2cuaP/8nIhw== + dependencies: + "@graphql-tools/batch-execute" "8.5.12" + "@graphql-tools/executor" "0.0.9" + "@graphql-tools/schema" "9.0.10" + "@graphql-tools/utils" "9.1.1" + dataloader "2.1.0" + tslib "~2.4.0" + value-or-promise "1.0.11" + +"@graphql-tools/executor-graphql-ws@0.0.3": + version "0.0.3" + resolved "https://registry.yarnpkg.com/@graphql-tools/executor-graphql-ws/-/executor-graphql-ws-0.0.3.tgz#5cbc6adca46cf46a3b5e208976a978b26221678b" + integrity sha512-8VATDf82lTaYRE4/BrFm8v6Cz6UHoNTlSkQjPcGtDX4nxbBUYLDfN+Z8ZXl0eZc3tCwsIHkYQunJO0OjmcrP5Q== + dependencies: + "@graphql-tools/utils" "9.1.1" + "@repeaterjs/repeater" "3.0.4" + "@types/ws" "^8.0.0" + graphql-ws "5.11.2" + isomorphic-ws "5.0.0" + tslib "^2.4.0" + ws "8.11.0" + +"@graphql-tools/executor-http@0.0.3": + version "0.0.3" + resolved "https://registry.yarnpkg.com/@graphql-tools/executor-http/-/executor-http-0.0.3.tgz#adfec46a7814c7f7082005a374d944900ea18018" + integrity sha512-dtZzdcoc7tnctSGCQhcbOQPnVidn4DakgkyrBAWf0O3GTP9NFKlA+T9+I1N4gPHupQOZdJ1gmNXfnJZyswzCkA== + dependencies: + "@graphql-tools/utils" "9.1.1" + "@repeaterjs/repeater" "3.0.4" + "@whatwg-node/fetch" "0.5.1" + dset "3.1.2" + extract-files "^11.0.0" + meros "1.2.1" + tslib "^2.4.0" + value-or-promise "1.0.11" + +"@graphql-tools/executor-legacy-ws@0.0.3": + version "0.0.3" + resolved "https://registry.yarnpkg.com/@graphql-tools/executor-legacy-ws/-/executor-legacy-ws-0.0.3.tgz#6d01d319989b2013c90cb548677272b985fd37c9" + integrity sha512-ulQ3IsxQ9VRA2S+afJefFpMZHedoUDRd8ylz+9DjqAoykYz6CDD2s3pi6Fud52VCq3DP79dRM7a6hjWgt+YPWw== + dependencies: + "@graphql-tools/utils" "9.1.1" + "@types/ws" "^8.0.0" + isomorphic-ws "5.0.0" + tslib "^2.4.0" + ws "8.11.0" + +"@graphql-tools/executor@0.0.9": + version "0.0.9" + resolved "https://registry.yarnpkg.com/@graphql-tools/executor/-/executor-0.0.9.tgz#f55f8cbe12d7989b0ff58cca9a041fbdde3dbd40" + integrity sha512-qLhQWXTxTS6gbL9INAQa4FJIqTd2tccnbs4HswOx35KnyLaLtREuQ8uTfU+5qMrRIBhuzpGdkP2ssqxLyOJ5rA== + dependencies: + "@graphql-tools/utils" "9.1.1" + "@graphql-typed-document-node/core" "3.1.1" + "@repeaterjs/repeater" "3.0.4" + tslib "^2.4.0" + value-or-promise "1.0.11" + +"@graphql-tools/git-loader@^7.2.1": + version "7.2.12" + resolved "https://registry.yarnpkg.com/@graphql-tools/git-loader/-/git-loader-7.2.12.tgz#1e144b5a2de4c6d6faa8958537ee7aa8c25dd625" + integrity sha512-9YnkOikUTPMMlFw2F8Uvd1lPzbciwVo3E5WRsAN4bLeGnVcDAuf0QxElvpcAEhD5ctQR/VKlhuzm/5DyzgTBww== + dependencies: + "@graphql-tools/graphql-tag-pluck" "7.3.12" + "@graphql-tools/utils" "9.1.1" + is-glob "4.0.3" + micromatch "^4.0.4" + tslib "^2.4.0" + unixify "^1.0.0" + +"@graphql-tools/github-loader@^7.3.6": + version "7.3.19" + resolved "https://registry.yarnpkg.com/@graphql-tools/github-loader/-/github-loader-7.3.19.tgz#16aac8bc71ab77f3edca96d9d7c047b3cffddd3b" + integrity sha512-/IAe1zmtMFaxx2fiEWXXsExWn5akjjhBn06mfcewo1o27E+Pkg1E0H8QHwsmSN7wqXNUzph7V/C9jlA8kO3pvg== + dependencies: + "@ardatan/sync-fetch" "0.0.1" + "@graphql-tools/graphql-tag-pluck" "7.3.12" + "@graphql-tools/utils" "9.1.1" + "@whatwg-node/fetch" "^0.5.0" + tslib "^2.4.0" + +"@graphql-tools/graphql-file-loader@^7.3.7", "@graphql-tools/graphql-file-loader@^7.5.0": + version "7.5.11" + resolved "https://registry.yarnpkg.com/@graphql-tools/graphql-file-loader/-/graphql-file-loader-7.5.11.tgz#19c44ea9021d3220c7ed1cef6cfa0afbb40fd9a4" + integrity sha512-E4/YYLlM/T/VDYJ3MfQzJSkCpnHck+xMv2R6QTjO3khUeTCWJY4qsLDPFjAWE0+Mbe9NanXi/yL8Bz0yS/usDw== + dependencies: + "@graphql-tools/import" "6.7.12" + "@graphql-tools/utils" "9.1.1" + globby "^11.0.3" + tslib "^2.4.0" + unixify "^1.0.0" + +"@graphql-tools/graphql-tag-pluck@7.3.12": + version "7.3.12" + resolved "https://registry.yarnpkg.com/@graphql-tools/graphql-tag-pluck/-/graphql-tag-pluck-7.3.12.tgz#204e1048f92d8e3fa5d0cd39e837dd47e4ca8b96" + integrity sha512-B92+Q6xPgAKj4z+06vVWdx/7KPlh6vHgIkCg+9hJ2duYBUyEGn39YNdjjWvsGgl3N2G5/BOVFJRmdgLG1k79Xg== + dependencies: + "@babel/parser" "^7.16.8" + "@babel/traverse" "^7.16.8" + "@babel/types" "^7.16.8" + "@graphql-tools/utils" "9.1.1" + tslib "^2.4.0" + +"@graphql-tools/import@6.7.12": + version "6.7.12" + resolved "https://registry.yarnpkg.com/@graphql-tools/import/-/import-6.7.12.tgz#173d2ce94304d1930e8674857d4ffe3cd52cfdd5" + integrity sha512-3+IV3RHqnpQz0o+0Liw3jkr0HL8LppvsFROKdfXihbnCGO7cIq4S9QYdczZ2DAJ7AosyzSu8m36X5dEmOYY6WA== + dependencies: + "@graphql-tools/utils" "9.1.1" + resolve-from "5.0.0" + tslib "^2.4.0" + +"@graphql-tools/json-file-loader@^7.3.7", "@graphql-tools/json-file-loader@^7.4.1": + version "7.4.12" + resolved "https://registry.yarnpkg.com/@graphql-tools/json-file-loader/-/json-file-loader-7.4.12.tgz#ac1d98e90926e0ac0a8530ff464f5a1c9041c16c" + integrity sha512-KuOBJg9ZVrgDsYUaolSXJI90HpwkNiPJviWSc5aqNYSkE+C9DwelBOaKBVQNk1ecEnktqx6Nd+KVsF3m+dupRQ== + dependencies: + "@graphql-tools/utils" "9.1.1" + globby "^11.0.3" + tslib "^2.4.0" + unixify "^1.0.0" + +"@graphql-tools/load@7.8.0": + version "7.8.0" + resolved "https://registry.yarnpkg.com/@graphql-tools/load/-/load-7.8.0.tgz#bd4d2e2a5117de9a60f9691a218217e96afc2ea7" + integrity sha512-l4FGgqMW0VOqo+NMYizwV8Zh+KtvVqOf93uaLo9wJ3sS3y/egPCgxPMDJJ/ufQZG3oZ/0oWeKt68qop3jY0yZg== + dependencies: + "@graphql-tools/schema" "9.0.4" + "@graphql-tools/utils" "8.12.0" + p-limit "3.1.0" + tslib "^2.4.0" + +"@graphql-tools/load@^7.5.5": + version "7.8.6" + resolved "https://registry.yarnpkg.com/@graphql-tools/load/-/load-7.8.6.tgz#f0c5d7852337f8c7e4b88a9a7d63255d29d98395" + integrity sha512-yFDM5hVhV0eOom3SGyc+mjL8FvEb+0PZTZ/OSc4zrs3m/ABiQFHm2ilhzNS+OsMCpOsfGl2kXguEdt86QPp60Q== + dependencies: + "@graphql-tools/schema" "9.0.10" + "@graphql-tools/utils" "9.1.1" + p-limit "3.1.0" + tslib "^2.4.0" + +"@graphql-tools/merge@8.3.12", "@graphql-tools/merge@^8.2.6": + version "8.3.12" + resolved "https://registry.yarnpkg.com/@graphql-tools/merge/-/merge-8.3.12.tgz#e3f2e5d8a7b34fb689cda66799d845cbc919e464" + integrity sha512-BFL8r4+FrqecPnIW0H8UJCBRQ4Y8Ep60aujw9c/sQuFmQTiqgWgpphswMGfaosP2zUinDE3ojU5wwcS2IJnumA== + dependencies: + "@graphql-tools/utils" "9.1.1" + tslib "^2.4.0" + +"@graphql-tools/merge@8.3.6": + version "8.3.6" + resolved "https://registry.yarnpkg.com/@graphql-tools/merge/-/merge-8.3.6.tgz#97a936d4c8e8f935e58a514bb516c476437b5b2c" + integrity sha512-uUBokxXi89bj08P+iCvQk3Vew4vcfL5ZM6NTylWi8PIpoq4r5nJ625bRuN8h2uubEdRiH8ntN9M4xkd/j7AybQ== + dependencies: + "@graphql-tools/utils" "8.12.0" + tslib "^2.4.0" + +"@graphql-tools/optimize@^1.3.0": + version "1.3.1" + resolved "https://registry.yarnpkg.com/@graphql-tools/optimize/-/optimize-1.3.1.tgz#29407991478dbbedc3e7deb8c44f46acb4e9278b" + integrity sha512-5j5CZSRGWVobt4bgRRg7zhjPiSimk+/zIuColih8E8DxuFOaJ+t0qu7eZS5KXWBkjcd4BPNuhUPpNlEmHPqVRQ== + dependencies: + tslib "^2.4.0" + +"@graphql-tools/prisma-loader@^7.2.7": + version "7.2.39" + resolved "https://registry.yarnpkg.com/@graphql-tools/prisma-loader/-/prisma-loader-7.2.39.tgz#056c97751fb89787cba30bb2d0cc0ceccce297de" + integrity sha512-WcLOFFDmLjxcE3Lp0qdX7vD0KkJqAh3af1sVQnpFQLptWLoRHru44AbhECGs3XigICMBKrHO9MV+qtg7FAzhvA== + dependencies: + "@graphql-tools/url-loader" "7.16.19" + "@graphql-tools/utils" "9.1.1" + "@types/js-yaml" "^4.0.0" + "@types/json-stable-stringify" "^1.0.32" + "@types/jsonwebtoken" "^8.5.0" + chalk "^4.1.0" + debug "^4.3.1" + dotenv "^16.0.0" + graphql-request "^5.0.0" + http-proxy-agent "^5.0.0" + https-proxy-agent "^5.0.0" + isomorphic-fetch "^3.0.0" + js-yaml "^4.0.0" + json-stable-stringify "^1.0.1" + jsonwebtoken "^8.5.1" + lodash "^4.17.20" + scuid "^1.1.0" + tslib "^2.4.0" + yaml-ast-parser "^0.0.43" + +"@graphql-tools/relay-operation-optimizer@^6.5.0": + version "6.5.12" + resolved "https://registry.yarnpkg.com/@graphql-tools/relay-operation-optimizer/-/relay-operation-optimizer-6.5.12.tgz#659af3aff0e70bfed0f45d02776c8c0dd7f5fb03" + integrity sha512-jwcgNK1S8fqDI612uhbZSZTmQ0aJrLjtOSEcelwZ6Ec7o29I3NlOMBGnjvnBr4Y2tUFWZhBKfx0aEn6EJlhiGA== + dependencies: + "@ardatan/relay-compiler" "12.0.0" + "@graphql-tools/utils" "9.1.1" + tslib "^2.4.0" + +"@graphql-tools/schema@9.0.10", "@graphql-tools/schema@^9.0.0": + version "9.0.10" + resolved "https://registry.yarnpkg.com/@graphql-tools/schema/-/schema-9.0.10.tgz#77ba3dfab241f0232dc0d3ba03201663b63714e2" + integrity sha512-lV0o4df9SpPiaeeDAzgdCJ2o2N9Wvsp0SMHlF2qDbh9aFCFQRsXuksgiDm2yTgT3TG5OtUes/t0D6uPjPZFUbQ== + dependencies: + "@graphql-tools/merge" "8.3.12" + "@graphql-tools/utils" "9.1.1" + tslib "^2.4.0" + value-or-promise "1.0.11" + +"@graphql-tools/schema@9.0.4": + version "9.0.4" + resolved "https://registry.yarnpkg.com/@graphql-tools/schema/-/schema-9.0.4.tgz#1a74608b57abf90fae6fd929d25e5482c57bc05d" + integrity sha512-B/b8ukjs18fq+/s7p97P8L1VMrwapYc3N2KvdG/uNThSazRRn8GsBK0Nr+FH+mVKiUfb4Dno79e3SumZVoHuOQ== + dependencies: + "@graphql-tools/merge" "8.3.6" + "@graphql-tools/utils" "8.12.0" + tslib "^2.4.0" + value-or-promise "1.0.11" + +"@graphql-tools/url-loader@7.16.19", "@graphql-tools/url-loader@^7.13.2", "@graphql-tools/url-loader@^7.9.7": + version "7.16.19" + resolved "https://registry.yarnpkg.com/@graphql-tools/url-loader/-/url-loader-7.16.19.tgz#4e95443bcaf8ec66e72118caa48252180bedf37d" + integrity sha512-vFHstaANoojDCXUb/a25mTubteTUV8b7XVLHbbSvAQvwGUne6d+Upg5MeGrKBeHl2Wpn240cJnaa4A1mrwivWA== + dependencies: + "@ardatan/sync-fetch" "0.0.1" + "@graphql-tools/delegate" "9.0.17" + "@graphql-tools/executor-graphql-ws" "0.0.3" + "@graphql-tools/executor-http" "0.0.3" + "@graphql-tools/executor-legacy-ws" "0.0.3" + "@graphql-tools/utils" "9.1.1" + "@graphql-tools/wrap" "9.2.16" + "@types/ws" "^8.0.0" + "@whatwg-node/fetch" "^0.5.0" + isomorphic-ws "5.0.0" + tslib "^2.4.0" + value-or-promise "^1.0.11" + ws "8.11.0" + +"@graphql-tools/utils@8.12.0": + version "8.12.0" + resolved "https://registry.yarnpkg.com/@graphql-tools/utils/-/utils-8.12.0.tgz#243bc4f5fc2edbc9e8fd1038189e57d837cbe31f" + integrity sha512-TeO+MJWGXjUTS52qfK4R8HiPoF/R7X+qmgtOYd8DTH0l6b+5Y/tlg5aGeUJefqImRq7nvi93Ms40k/Uz4D5CWw== + dependencies: + tslib "^2.4.0" + +"@graphql-tools/utils@9.1.1", "@graphql-tools/utils@^9.1.1": + version "9.1.1" + resolved "https://registry.yarnpkg.com/@graphql-tools/utils/-/utils-9.1.1.tgz#b47ea8f0d18c038c5c1c429e72caa5c25039fbab" + integrity sha512-DXKLIEDbihK24fktR2hwp/BNIVwULIHaSTNTNhXS+19vgT50eX9wndx1bPxGwHnVBOONcwjXy0roQac49vdt/w== + dependencies: + tslib "^2.4.0" + +"@graphql-tools/utils@^8.6.5", "@graphql-tools/utils@^8.8.0", "@graphql-tools/utils@^8.9.0": + version "8.13.1" + resolved "https://registry.yarnpkg.com/@graphql-tools/utils/-/utils-8.13.1.tgz#b247607e400365c2cd87ff54654d4ad25a7ac491" + integrity sha512-qIh9yYpdUFmctVqovwMdheVNJqFh+DQNWIhX87FJStfXYnmweBUDATok9fWPleKeFwxnW8IapKmY8m8toJEkAw== + dependencies: + tslib "^2.4.0" + +"@graphql-tools/wrap@9.2.16": + version "9.2.16" + resolved "https://registry.yarnpkg.com/@graphql-tools/wrap/-/wrap-9.2.16.tgz#ec7696101a34cacd1bfefb86ccb631f55651c8fa" + integrity sha512-fWTvGytllPq0IVrRcEAc6VuVUInfCEpOUhSAo1ocsSe0HZMoyrQkS1ST0jmCpEWeGWuUd/S2zBLS2yjH8fYfhA== + dependencies: + "@graphql-tools/delegate" "9.0.17" + "@graphql-tools/schema" "9.0.10" + "@graphql-tools/utils" "9.1.1" + tslib "^2.4.0" + value-or-promise "1.0.11" + +"@graphql-typed-document-node/core@3.1.1", "@graphql-typed-document-node/core@^3.1.1": + version "3.1.1" + resolved "https://registry.yarnpkg.com/@graphql-typed-document-node/core/-/core-3.1.1.tgz#076d78ce99822258cf813ecc1e7fa460fa74d052" + integrity sha512-NQ17ii0rK1b34VZonlmT2QMJFI70m0TRwbknO/ihlbatXyaktDhN/98vBiUU6kNBPljqGqyIrl2T4nY2RpFANg== + "@hapi/hoek@^9.0.0": version "9.3.0" resolved "https://registry.yarnpkg.com/@hapi/hoek/-/hoek-9.3.0.tgz#8368869dcb735be2e7f5cb7647de78e167a251fb" @@ -2585,6 +3157,11 @@ resolved "https://registry.yarnpkg.com/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz#b520529ec21d8e5945a1851dfd1c32e94e39ff45" integrity sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA== +"@iarna/toml@^2.2.5": + version "2.2.5" + resolved "https://registry.yarnpkg.com/@iarna/toml/-/toml-2.2.5.tgz#b32366c89b43c6f8cefbdefac778b9c828e3ba8c" + integrity sha512-trnsAYxU3xnS1gPHPyU961coFyLkh4gAD/0zQ5mymY4yOZ+CYvsPqUbOFSw0aDM4y0tV7tiFxL/1XfXPNC6IPg== + "@istanbuljs/load-nyc-config@^1.0.0": version "1.1.0" resolved "https://registry.yarnpkg.com/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz#fd3db1d59ecf7cf121e80650bb86712f9b55eced" @@ -3329,6 +3906,33 @@ mkdirp "^1.0.4" rimraf "^3.0.2" +"@peculiar/asn1-schema@^2.1.6", "@peculiar/asn1-schema@^2.3.0": + version "2.3.3" + resolved "https://registry.yarnpkg.com/@peculiar/asn1-schema/-/asn1-schema-2.3.3.tgz#21418e1f3819e0b353ceff0c2dad8ccb61acd777" + integrity sha512-6GptMYDMyWBHTUKndHaDsRZUO/XMSgIns2krxcm2L7SEExRHwawFvSwNBhqNPR9HJwv3MruAiF1bhN0we6j6GQ== + dependencies: + asn1js "^3.0.5" + pvtsutils "^1.3.2" + tslib "^2.4.0" + +"@peculiar/json-schema@^1.1.12": + version "1.1.12" + resolved "https://registry.yarnpkg.com/@peculiar/json-schema/-/json-schema-1.1.12.tgz#fe61e85259e3b5ba5ad566cb62ca75b3d3cd5339" + integrity sha512-coUfuoMeIB7B8/NMekxaDzLhaYmp0HZNPEjYRm9goRou8UZIC3z21s0sL9AWoCw4EG876QyO3kYrc61WNF9B/w== + dependencies: + tslib "^2.0.0" + +"@peculiar/webcrypto@^1.4.0": + version "1.4.1" + resolved "https://registry.yarnpkg.com/@peculiar/webcrypto/-/webcrypto-1.4.1.tgz#821493bd5ad0f05939bd5f53b28536f68158360a" + integrity sha512-eK4C6WTNYxoI7JOabMoZICiyqRRtJB220bh0Mbj5RwRycleZf9BPyZoxsTvpP0FpmVS2aS13NKOuh5/tN3sIRw== + dependencies: + "@peculiar/asn1-schema" "^2.3.0" + "@peculiar/json-schema" "^1.1.12" + pvtsutils "^1.3.2" + tslib "^2.4.1" + webcrypto-core "^1.7.4" + "@pmmmwh/react-refresh-webpack-plugin@^0.5.3": version "0.5.9" resolved "https://registry.yarnpkg.com/@pmmmwh/react-refresh-webpack-plugin/-/react-refresh-webpack-plugin-0.5.9.tgz#35aae6624a6270ca7ad755800b7eec417fa6f830" @@ -3349,6 +3953,11 @@ resolved "https://registry.yarnpkg.com/@remix-run/router/-/router-1.0.2.tgz#1c17eadb2fa77f80a796ad5ea9bf108e6993ef06" integrity sha512-GRSOFhJzjGN+d4sKHTMSvNeUPoZiDHWmRnXfzaxrqe7dE/Nzlc8BiMSJdLDESZlndM7jIUrZ/F4yWqVYlI0rwQ== +"@repeaterjs/repeater@3.0.4": + version "3.0.4" + resolved "https://registry.yarnpkg.com/@repeaterjs/repeater/-/repeater-3.0.4.tgz#a04d63f4d1bf5540a41b01a921c9a7fddc3bd1ca" + integrity sha512-AW8PKd6iX3vAZ0vA43nOUOnbq/X5ihgU+mSXXqunMkeQADGiqw/PY0JNeYtD5sr0PAy51YPgAPbDoeapv9r8WA== + "@rollup/plugin-babel@^5.2.0", "@rollup/plugin-babel@^5.3.0": version "5.3.1" resolved "https://registry.yarnpkg.com/@rollup/plugin-babel/-/plugin-babel-5.3.1.tgz#04bc0608f4aa4b2e4b1aebf284344d0f68fda283" @@ -5101,6 +5710,11 @@ jest-matcher-utils "^27.0.0" pretty-format "^27.0.0" +"@types/js-yaml@^4.0.0": + version "4.0.5" + resolved "https://registry.yarnpkg.com/@types/js-yaml/-/js-yaml-4.0.5.tgz#738dd390a6ecc5442f35e7f03fa1431353f7e138" + integrity sha512-FhpRzf927MNQdRZP0J5DLIdTXhjLYzeUTmLAu69mnVksLH9CJY3IuSeEgbKUki7GQZm0WqDkGzyxju2EZGD2wA== + "@types/jsdom@^20.0.0": version "20.0.1" resolved "https://registry.yarnpkg.com/@types/jsdom/-/jsdom-20.0.1.tgz#07c14bc19bd2f918c1929541cdaacae894744808" @@ -5115,11 +5729,23 @@ resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.11.tgz#d421b6c527a3037f7c84433fd2c4229e016863d3" integrity sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ== +"@types/json-stable-stringify@^1.0.32": + version "1.0.34" + resolved "https://registry.yarnpkg.com/@types/json-stable-stringify/-/json-stable-stringify-1.0.34.tgz#c0fb25e4d957e0ee2e497c1f553d7f8bb668fd75" + integrity sha512-s2cfwagOQAS8o06TcwKfr9Wx11dNGbH2E9vJz1cqV+a/LOyhWNLUNd6JSRYNzvB4d29UuJX2M0Dj9vE1T8fRXw== + "@types/json5@^0.0.29": version "0.0.29" resolved "https://registry.yarnpkg.com/@types/json5/-/json5-0.0.29.tgz#ee28707ae94e11d2b827bcbe5270bcea7f3e71ee" integrity sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ== +"@types/jsonwebtoken@^8.5.0": + version "8.5.9" + resolved "https://registry.yarnpkg.com/@types/jsonwebtoken/-/jsonwebtoken-8.5.9.tgz#2c064ecb0b3128d837d2764aa0b117b0ff6e4586" + integrity sha512-272FMnFGzAVMGtu9tkr29hRL6bZj4Zs1KZNeHLnKqAvp06tAIcarTMwOh8/8bz4FmKRcMxZhZNeUAQsNLoiPhg== + dependencies: + "@types/node" "*" + "@types/lodash@^4.14.167": version "4.14.189" resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.189.tgz#975ff8c38da5ae58b751127b19ad5e44b5b7f6d2" @@ -5381,7 +6007,7 @@ anymatch "^3.0.0" source-map "^0.6.0" -"@types/ws@^8.5.1": +"@types/ws@^8.0.0", "@types/ws@^8.5.1": version "8.5.3" resolved "https://registry.yarnpkg.com/@types/ws/-/ws-8.5.3.tgz#7d25a1ffbecd3c4f2d35068d0b283c037003274d" integrity sha512-6YOoWjruKj1uLf3INHH7D3qTXwFfEsg1kf3c0uDdSBJwfa/llkwIjrAGV7j7mVgGNbzTQ3HiHKKDXl6bJPD97w== @@ -5918,6 +6544,70 @@ "@webassemblyjs/wast-parser" "1.9.0" "@xtuc/long" "4.2.2" +"@whatwg-node/fetch@0.5.1": + version "0.5.1" + resolved "https://registry.yarnpkg.com/@whatwg-node/fetch/-/fetch-0.5.1.tgz#62c7e902ddfb7d16b0b31599d81628bbd22350a9" + integrity sha512-RBZS60EU6CbRJ370BVVKW4F9csZuGh0OQNrUDhJ0IaIFLsXsJorFCM2iwaDWZTAPMqxW1TmuVcVKJ3d/H1dV1g== + dependencies: + "@peculiar/webcrypto" "^1.4.0" + abort-controller "^3.0.0" + busboy "^1.6.0" + form-data-encoder "^1.7.1" + formdata-node "^4.3.1" + node-fetch "^2.6.7" + undici "^5.12.0" + web-streams-polyfill "^3.2.0" + +"@whatwg-node/fetch@^0.3.0": + version "0.3.2" + resolved "https://registry.yarnpkg.com/@whatwg-node/fetch/-/fetch-0.3.2.tgz#da4323795c26c135563ba01d49dc16037bec4287" + integrity sha512-Bs5zAWQs0tXsLa4mRmLw7Psps1EN78vPtgcLpw3qPY8s6UYPUM67zFZ9cy+7tZ64PXhfwzxJn+m7RH2Lq48RNQ== + dependencies: + "@peculiar/webcrypto" "^1.4.0" + abort-controller "^3.0.0" + busboy "^1.6.0" + event-target-polyfill "^0.0.3" + form-data-encoder "^1.7.1" + formdata-node "^4.3.1" + node-fetch "^2.6.7" + undici "^5.8.0" + web-streams-polyfill "^3.2.0" + +"@whatwg-node/fetch@^0.5.0": + version "0.5.3" + resolved "https://registry.yarnpkg.com/@whatwg-node/fetch/-/fetch-0.5.3.tgz#afbd38a2e5392d91318845b967529076ca654b9e" + integrity sha512-cuAKL3Z7lrJJuUrfF1wxkQTb24Qd1QO/lsjJpM5ZSZZzUMms5TPnbGeGUKWA3hVKNHh30lVfr2MyRCT5Jfkucw== + dependencies: + "@peculiar/webcrypto" "^1.4.0" + abort-controller "^3.0.0" + busboy "^1.6.0" + form-data-encoder "^1.7.1" + formdata-node "^4.3.1" + node-fetch "^2.6.7" + undici "^5.12.0" + web-streams-polyfill "^3.2.0" + +"@wry/context@^0.7.0": + version "0.7.0" + resolved "https://registry.yarnpkg.com/@wry/context/-/context-0.7.0.tgz#be88e22c0ddf62aeb0ae9f95c3d90932c619a5c8" + integrity sha512-LcDAiYWRtwAoSOArfk7cuYvFXytxfVrdX7yxoUmK7pPITLk5jYh2F8knCwS7LjgYL8u1eidPlKKV6Ikqq0ODqQ== + dependencies: + tslib "^2.3.0" + +"@wry/equality@^0.5.0": + version "0.5.3" + resolved "https://registry.yarnpkg.com/@wry/equality/-/equality-0.5.3.tgz#fafebc69561aa2d40340da89fa7dc4b1f6fb7831" + integrity sha512-avR+UXdSrsF2v8vIqIgmeTY0UR91UT+IyablCyKe/uk22uOJ8fusKZnH9JH9e1/EtLeNJBtagNmL3eJdnOV53g== + dependencies: + tslib "^2.3.0" + +"@wry/trie@^0.3.0": + version "0.3.2" + resolved "https://registry.yarnpkg.com/@wry/trie/-/trie-0.3.2.tgz#a06f235dc184bd26396ba456711f69f8c35097e6" + integrity sha512-yRTyhWSls2OY/pYLfwff867r8ekooZ4UI+/gxot5Wj8EFwSf2rG+n+Mo/6LoLQm1TKA4GRj2+LCpbfS937dClQ== + dependencies: + tslib "^2.3.0" + "@xtuc/ieee754@^1.2.0": version "1.2.0" resolved "https://registry.yarnpkg.com/@xtuc/ieee754/-/ieee754-1.2.0.tgz#eef014a3145ae477a1cbc00cd1e552336dceb790" @@ -5933,6 +6623,13 @@ abab@^2.0.3, abab@^2.0.5, abab@^2.0.6: resolved "https://registry.yarnpkg.com/abab/-/abab-2.0.6.tgz#41b80f2c871d19686216b82309231cfd3cb3d291" integrity sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA== +abort-controller@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/abort-controller/-/abort-controller-3.0.0.tgz#eaf54d53b62bae4138e809ca225c8439a6efb392" + integrity sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg== + dependencies: + event-target-shim "^5.0.0" + accepts@~1.3.4, accepts@~1.3.5, accepts@~1.3.8: version "1.3.8" resolved "https://registry.yarnpkg.com/accepts/-/accepts-1.3.8.tgz#0bf0be125b67014adcb0b0921e62db7bffe16b2e" @@ -6387,7 +7084,7 @@ arrify@^2.0.1: resolved "https://registry.yarnpkg.com/arrify/-/arrify-2.0.1.tgz#c9655e9331e0abcd588d2a7cad7e9956f66701fa" integrity sha512-3duEwti880xqi4eAMN8AyR4a0ByT90zoYdLlevfrvU43vb0YZwZVfxOgxWrLXXXpyugL0hNZc9G6BiB5B3nUug== -asap@~2.0.6: +asap@~2.0.3, asap@~2.0.6: version "2.0.6" resolved "https://registry.yarnpkg.com/asap/-/asap-2.0.6.tgz#e50347611d7e690943208bbdafebcbc2fb866d46" integrity sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA== @@ -6402,6 +7099,15 @@ asn1.js@^5.2.0: minimalistic-assert "^1.0.0" safer-buffer "^2.1.0" +asn1js@^3.0.1, asn1js@^3.0.5: + version "3.0.5" + resolved "https://registry.yarnpkg.com/asn1js/-/asn1js-3.0.5.tgz#5ea36820443dbefb51cc7f88a2ebb5b462114f38" + integrity sha512-FVnvrKJwpt9LP2lAMl8qZswRNm3T4q9CON+bxldk2iwk3FFpuwhx2FfinyitizWHsVYyaY+y5JzDR0rCMV5yTQ== + dependencies: + pvtsutils "^1.3.2" + pvutils "^1.1.3" + tslib "^2.4.0" + assert@^1.1.1: version "1.5.0" resolved "https://registry.yarnpkg.com/assert/-/assert-1.5.0.tgz#55c109aaf6e0aefdb3dc4b71240c70bf574b18eb" @@ -6457,7 +7163,12 @@ atob@^2.1.2: resolved "https://registry.yarnpkg.com/atob/-/atob-2.1.2.tgz#6d9517eb9e030d2436666651e86bd9f6f13533c9" integrity sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg== -autoprefixer@^10.4.13, autoprefixer@^10.4.7: +auto-bind@~4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/auto-bind/-/auto-bind-4.0.0.tgz#e3589fc6c2da8f7ca43ba9f84fa52a744fc997fb" + integrity sha512-Hdw8qdNiqdJ8LqT0iK0sVzkFbzg6fhnQqqfWhBDxcHZvU75+B+ayzTy8x+k5Ix0Y92XOhOUlx74ps+bA6BeYMQ== + +autoprefixer@^10.4.13: version "10.4.13" resolved "https://registry.yarnpkg.com/autoprefixer/-/autoprefixer-10.4.13.tgz#b5136b59930209a321e9fa3dca2e7c4d223e83a8" integrity sha512-49vKpMqcZYsJjwotvt4+h/BCjJVnhGwcLpDt5xkcaOG3eLrG/HUYLagrihYsQ+qrIBgIzX1Rw7a6L8I/ZA1Atg== @@ -6469,6 +7180,18 @@ autoprefixer@^10.4.13, autoprefixer@^10.4.7: picocolors "^1.0.0" postcss-value-parser "^4.2.0" +autoprefixer@^10.4.7: + version "10.4.11" + resolved "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.11.tgz" + integrity sha512-5lHp6DgRodxlBLSkzHOTcufWFflH1ewfy2hvFQyjrblBFlP/0Yh4O/Wrg4ow8WRlN3AAUFFLAQwX8hTptzqVHg== + dependencies: + browserslist "^4.21.3" + caniuse-lite "^1.0.30001399" + fraction.js "^4.2.0" + normalize-range "^0.1.2" + picocolors "^1.0.0" + postcss-value-parser "^4.2.0" + autoprefixer@^9.8.6: version "9.8.8" resolved "https://registry.yarnpkg.com/autoprefixer/-/autoprefixer-9.8.8.tgz#fd4bd4595385fa6f06599de749a4d5f7a474957a" @@ -6662,6 +7385,11 @@ babel-plugin-react-docgen@^4.2.1: lodash "^4.17.15" react-docgen "^5.0.0" +babel-plugin-syntax-trailing-function-commas@^7.0.0-beta.0: + version "7.0.0-beta.0" + resolved "https://registry.yarnpkg.com/babel-plugin-syntax-trailing-function-commas/-/babel-plugin-syntax-trailing-function-commas-7.0.0-beta.0.tgz#aa213c1435e2bffeb6fca842287ef534ad05d5cf" + integrity sha512-Xj9XuRuz3nTSbaTXWv3itLOcxyF4oPD8douBBmj7U9BBC6nEBYfyOJYQMf/8PJAFotC62UY5dFfIGEPr7WswzQ== + babel-plugin-transform-react-remove-prop-types@^0.4.24: version "0.4.24" resolved "https://registry.yarnpkg.com/babel-plugin-transform-react-remove-prop-types/-/babel-plugin-transform-react-remove-prop-types-0.4.24.tgz#f2edaf9b4c6a5fbe5c1d678bfb531078c1555f3a" @@ -6685,6 +7413,39 @@ babel-preset-current-node-syntax@^1.0.0: "@babel/plugin-syntax-optional-chaining" "^7.8.3" "@babel/plugin-syntax-top-level-await" "^7.8.3" +babel-preset-fbjs@^3.4.0: + version "3.4.0" + resolved "https://registry.yarnpkg.com/babel-preset-fbjs/-/babel-preset-fbjs-3.4.0.tgz#38a14e5a7a3b285a3f3a86552d650dca5cf6111c" + integrity sha512-9ywCsCvo1ojrw0b+XYk7aFvTH6D9064t0RIL1rtMf3nsa02Xw41MS7sZw216Im35xj/UY0PDBQsa1brUDDF1Ow== + dependencies: + "@babel/plugin-proposal-class-properties" "^7.0.0" + "@babel/plugin-proposal-object-rest-spread" "^7.0.0" + "@babel/plugin-syntax-class-properties" "^7.0.0" + "@babel/plugin-syntax-flow" "^7.0.0" + "@babel/plugin-syntax-jsx" "^7.0.0" + "@babel/plugin-syntax-object-rest-spread" "^7.0.0" + "@babel/plugin-transform-arrow-functions" "^7.0.0" + "@babel/plugin-transform-block-scoped-functions" "^7.0.0" + "@babel/plugin-transform-block-scoping" "^7.0.0" + "@babel/plugin-transform-classes" "^7.0.0" + "@babel/plugin-transform-computed-properties" "^7.0.0" + "@babel/plugin-transform-destructuring" "^7.0.0" + "@babel/plugin-transform-flow-strip-types" "^7.0.0" + "@babel/plugin-transform-for-of" "^7.0.0" + "@babel/plugin-transform-function-name" "^7.0.0" + "@babel/plugin-transform-literals" "^7.0.0" + "@babel/plugin-transform-member-expression-literals" "^7.0.0" + "@babel/plugin-transform-modules-commonjs" "^7.0.0" + "@babel/plugin-transform-object-super" "^7.0.0" + "@babel/plugin-transform-parameters" "^7.0.0" + "@babel/plugin-transform-property-literals" "^7.0.0" + "@babel/plugin-transform-react-display-name" "^7.0.0" + "@babel/plugin-transform-react-jsx" "^7.0.0" + "@babel/plugin-transform-shorthand-properties" "^7.0.0" + "@babel/plugin-transform-spread" "^7.0.0" + "@babel/plugin-transform-template-literals" "^7.0.0" + babel-plugin-syntax-trailing-function-commas "^7.0.0-beta.0" + babel-preset-jest@^27.5.1: version "27.5.1" resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-27.5.1.tgz#91f10f58034cb7989cb4f962b69fa6eef6a6bc81" @@ -6831,6 +7592,15 @@ bip66@^1.1.5: dependencies: safe-buffer "^5.0.1" +bl@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/bl/-/bl-4.1.0.tgz#451535264182bec2fbbc83a62ab98cf11d9f7b3a" + integrity sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w== + dependencies: + buffer "^5.5.0" + inherits "^2.0.4" + readable-stream "^3.4.0" + blakejs@^1.1.0: version "1.2.1" resolved "https://registry.yarnpkg.com/blakejs/-/blakejs-1.2.1.tgz#5057e4206eadb4a97f7c0b6e197a505042fc3814" @@ -7082,6 +7852,11 @@ buffer-alloc@^1.2.0: buffer-alloc-unsafe "^1.1.0" buffer-fill "^1.0.0" +buffer-equal-constant-time@1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz#f8e71132f7ffe6e01a5c9697a4c6f3e48d5cc819" + integrity sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA== + buffer-fill@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/buffer-fill/-/buffer-fill-1.0.0.tgz#f8f78b76789888ef39f205cd637f68e702122b2c" @@ -7106,7 +7881,7 @@ buffer@^4.3.0: ieee754 "^1.1.4" isarray "^1.0.0" -buffer@^5.4.3: +buffer@^5.4.3, buffer@^5.5.0: version "5.7.1" resolved "https://registry.yarnpkg.com/buffer/-/buffer-5.7.1.tgz#ba62e7c13133053582197160851a8f648e99eed0" integrity sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ== @@ -7131,6 +7906,13 @@ bundle-require@^3.1.0: dependencies: load-tsconfig "^0.2.0" +busboy@^1.6.0: + version "1.6.0" + resolved "https://registry.yarnpkg.com/busboy/-/busboy-1.6.0.tgz#966ea36a9502e43cdb9146962523b92f531f6893" + integrity sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA== + dependencies: + streamsearch "^1.1.0" + bytes@3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.0.0.tgz#d32815404d689699f85a4ea4fa8755dd13a96048" @@ -7302,6 +8084,15 @@ caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001109, caniuse-lite@^1.0.30001400, can resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001431.tgz#e7c59bd1bc518fae03a4656be442ce6c4887a795" integrity sha512-zBUoFU0ZcxpvSt9IU66dXVT/3ctO1cy4y9cscs1szkPlcWb6pasYM144GqrUygUbT+k7cmUCW61cvskjcv0enQ== +capital-case@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/capital-case/-/capital-case-1.0.4.tgz#9d130292353c9249f6b00fa5852bee38a717e669" + integrity sha512-ds37W8CytHgwnhGGTi88pcPyR15qoNkOpYwmMMfnWqqWgESapLqvDx6huFjQ5vqWSn2Z06173XNA7LtMOeUh1A== + dependencies: + no-case "^3.0.4" + tslib "^2.0.3" + upper-case-first "^2.0.2" + capture-exit@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/capture-exit/-/capture-exit-2.0.0.tgz#fb953bfaebeb781f62898239dabb426d08a509a4" @@ -7336,7 +8127,7 @@ chalk@^3.0.0: ansi-styles "^4.1.0" supports-color "^7.1.0" -chalk@^4.0.0, chalk@^4.0.2, chalk@^4.1.0, chalk@^4.1.2: +chalk@^4.0.0, chalk@^4.0.2, chalk@^4.1.0, chalk@^4.1.1, chalk@^4.1.2: version "4.1.2" resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01" integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== @@ -7344,6 +8135,40 @@ chalk@^4.0.0, chalk@^4.0.2, chalk@^4.1.0, chalk@^4.1.2: ansi-styles "^4.1.0" supports-color "^7.1.0" +change-case-all@1.0.14: + version "1.0.14" + resolved "https://registry.yarnpkg.com/change-case-all/-/change-case-all-1.0.14.tgz#bac04da08ad143278d0ac3dda7eccd39280bfba1" + integrity sha512-CWVm2uT7dmSHdO/z1CXT/n47mWonyypzBbuCy5tN7uMg22BsfkhwT6oHmFCAk+gL1LOOxhdbB9SZz3J1KTY3gA== + dependencies: + change-case "^4.1.2" + is-lower-case "^2.0.2" + is-upper-case "^2.0.2" + lower-case "^2.0.2" + lower-case-first "^2.0.2" + sponge-case "^1.0.1" + swap-case "^2.0.2" + title-case "^3.0.3" + upper-case "^2.0.2" + upper-case-first "^2.0.2" + +change-case@^4.1.2: + version "4.1.2" + resolved "https://registry.yarnpkg.com/change-case/-/change-case-4.1.2.tgz#fedfc5f136045e2398c0410ee441f95704641e12" + integrity sha512-bSxY2ws9OtviILG1EiY5K7NNxkqg/JnRnFxLtKQ96JaviiIxi7djMrSd0ECT9AC+lttClmYwKw53BWpOMblo7A== + dependencies: + camel-case "^4.1.2" + capital-case "^1.0.4" + constant-case "^3.0.4" + dot-case "^3.0.4" + header-case "^2.0.4" + no-case "^3.0.4" + param-case "^3.0.4" + pascal-case "^3.1.2" + path-case "^3.0.4" + sentence-case "^3.0.4" + snake-case "^3.0.4" + tslib "^2.0.3" + char-regex@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/char-regex/-/char-regex-1.0.2.tgz#d744358226217f981ed58f479b1d6bcc29545dcf" @@ -7398,7 +8223,7 @@ chokidar@^2.1.8: optionalDependencies: fsevents "^1.2.7" -chokidar@^3.4.1, chokidar@^3.4.2, chokidar@^3.5.1, chokidar@^3.5.3: +chokidar@^3.4.1, chokidar@^3.4.2, chokidar@^3.5.1, chokidar@^3.5.2, chokidar@^3.5.3: version "3.5.3" resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.5.3.tgz#1cf37c8707b932bd1af1ae22c0432e2acd1903bd" integrity sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw== @@ -7502,6 +8327,11 @@ cli-cursor@^3.1.0: dependencies: restore-cursor "^3.1.0" +cli-spinners@^2.5.0: + version "2.7.0" + resolved "https://registry.yarnpkg.com/cli-spinners/-/cli-spinners-2.7.0.tgz#f815fd30b5f9eaac02db604c7a231ed7cb2f797a" + integrity sha512-qu3pN8Y3qHNgE2AFweciB1IfMnmZ/fsNTEE+NOFjmGB2F/7rLhnhzppvpCnN4FovtP26k8lHyy9ptEbNwWFLzw== + cli-table3@^0.6.1: version "0.6.3" resolved "https://registry.yarnpkg.com/cli-table3/-/cli-table3-0.6.3.tgz#61ab765aac156b52f222954ffc607a6f01dbeeb2" @@ -7527,6 +8357,11 @@ cli-truncate@^3.1.0: slice-ansi "^5.0.0" string-width "^5.0.0" +cli-width@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/cli-width/-/cli-width-3.0.0.tgz#a2f48437a2caa9a22436e794bf071ec9e61cedf6" + integrity sha512-FxqpkPPwu1HjuN93Omfm4h8uIanXofW0RxVEW3k5RKx+mJJYSthzNhp32Kzxxy3YAEZ/Dc/EWN1vZRY0+kOhbw== + cliui@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/cliui/-/cliui-5.0.0.tgz#deefcfdb2e800784aa34f46fa08e06851c7bbbc5" @@ -7710,7 +8545,7 @@ common-path-prefix@^3.0.0: resolved "https://registry.yarnpkg.com/common-path-prefix/-/common-path-prefix-3.0.0.tgz#7d007a7e07c58c4b4d5f433131a19141b29f11e0" integrity sha512-QE33hToZseCH3jS0qN96O/bSh3kaw/h+Tq7ngyY9eWDUnTlTNUyqfqvCXioLe5Na5jFsL78ra/wuBU4iuEgd4w== -common-tags@^1.8.0: +common-tags@1.8.2, common-tags@^1.8.0: version "1.8.2" resolved "https://registry.yarnpkg.com/common-tags/-/common-tags-1.8.2.tgz#94ebb3c076d26032745fd54face7f688ef5ac9c6" integrity sha512-gk/Z852D2Wtb//0I+kRFNKKE9dIIVirjoqPoA1wJU+XePVXZfGeBpk45+A1rKO4Q43prqWBNY/MiIeRLbPWUaA== @@ -7787,6 +8622,15 @@ console-control-strings@^1.0.0, console-control-strings@^1.1.0: resolved "https://registry.yarnpkg.com/console-control-strings/-/console-control-strings-1.1.0.tgz#3d7cf4464db6446ea644bf4b39507f9851008e8e" integrity sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ== +constant-case@^3.0.4: + version "3.0.4" + resolved "https://registry.yarnpkg.com/constant-case/-/constant-case-3.0.4.tgz#3b84a9aeaf4cf31ec45e6bf5de91bdfb0589faf1" + integrity sha512-I2hSBi7Vvs7BEuJDr5dDHfzb/Ruj3FyvFyh7KLilAjNQw3Be+xgqUBA2W6scVEcL0hL1dwPRtIqEPVUCKkSsyQ== + dependencies: + no-case "^3.0.4" + tslib "^2.0.3" + upper-case "^2.0.2" + constants-browserify@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/constants-browserify/-/constants-browserify-1.0.0.tgz#c20b96d8c617748aaf1c16021760cd27fcb8cb75" @@ -7870,6 +8714,18 @@ core-util-is@~1.0.0: resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.3.tgz#a6042d3634c2b27e9328f837b965fac83808db85" integrity sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ== +cosmiconfig-toml-loader@1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/cosmiconfig-toml-loader/-/cosmiconfig-toml-loader-1.0.0.tgz#0681383651cceff918177debe9084c0d3769509b" + integrity sha512-H/2gurFWVi7xXvCyvsWRLCMekl4tITJcX0QEsDMpzxtuxDyM59xLatYNg4s/k9AA/HdtCYfj2su8mgA0GSDLDA== + dependencies: + "@iarna/toml" "^2.2.5" + +cosmiconfig-typescript-loader@4.1.1: + version "4.1.1" + resolved "https://registry.yarnpkg.com/cosmiconfig-typescript-loader/-/cosmiconfig-typescript-loader-4.1.1.tgz#38dd3578344038dae40fdf09792bc2e9df529f78" + integrity sha512-9DHpa379Gp0o0Zefii35fcmuuin6q92FnLDffzdZ0l9tVd3nEobG3O+MZ06+kuBvFTSVScvNb/oHA13Nd4iipg== + cosmiconfig-typescript-loader@^1.0.0: version "1.0.9" resolved "https://registry.yarnpkg.com/cosmiconfig-typescript-loader/-/cosmiconfig-typescript-loader-1.0.9.tgz#69c523f7e8c3d9f27f563d02bbeadaf2f27212d3" @@ -7878,27 +8734,32 @@ cosmiconfig-typescript-loader@^1.0.0: cosmiconfig "^7" ts-node "^10.7.0" -cosmiconfig@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-6.0.0.tgz#da4fee853c52f6b1e6935f41c1a2fc50bd4a9982" - integrity sha512-xb3ZL6+L8b9JLLCx3ZdoZy4+2ECphCMo2PwqgP1tlfVq6M6YReyzBJtvWWtbDSpNr9hn96pkCiZqUcFEc+54Qg== +cosmiconfig-typescript-loader@^4.0.0: + version "4.2.0" + resolved "https://registry.yarnpkg.com/cosmiconfig-typescript-loader/-/cosmiconfig-typescript-loader-4.2.0.tgz#a3cfd0dd9dac86be7dbe5f53eb46ad03abdf417b" + integrity sha512-NkANeMnaHrlaSSlpKGyvn2R4rqUDeE/9E5YHx+b4nwo0R8dZyAqcih8/gxpCZvqWP9Vf6xuLpMSzSgdVEIM78g== + +cosmiconfig@7.0.1, cosmiconfig@^7, cosmiconfig@^7.0.0, cosmiconfig@^7.0.1: + version "7.0.1" + resolved "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.0.1.tgz" + integrity sha512-a1YWNUV2HwGimB7dU2s1wUMurNKjpx60HxBB6xUM8Re+2s1g1IIfJvFR0/iCF+XHdE0GMTKTuLR32UQff4TEyQ== dependencies: "@types/parse-json" "^4.0.0" - import-fresh "^3.1.0" + import-fresh "^3.2.1" parse-json "^5.0.0" path-type "^4.0.0" - yaml "^1.7.2" + yaml "^1.10.0" -cosmiconfig@^7, cosmiconfig@^7.0.0, cosmiconfig@^7.0.1: - version "7.1.0" - resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-7.1.0.tgz#1443b9afa596b670082ea46cbd8f6a62b84635f6" - integrity sha512-AdmX6xUzdNASswsFtmwSt7Vj8po9IuqXm0UXz7QKPuEUmPB4XyjGfaAr2PSuELMwkRMVH1EpIkX5bTZGRB3eCA== +cosmiconfig@^6.0.0: + version "6.0.0" + resolved "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-6.0.0.tgz" + integrity sha512-xb3ZL6+L8b9JLLCx3ZdoZy4+2ECphCMo2PwqgP1tlfVq6M6YReyzBJtvWWtbDSpNr9hn96pkCiZqUcFEc+54Qg== dependencies: "@types/parse-json" "^4.0.0" - import-fresh "^3.2.1" + import-fresh "^3.1.0" parse-json "^5.0.0" path-type "^4.0.0" - yaml "^1.10.0" + yaml "^1.7.2" cp-file@^7.0.0: version "7.0.0" @@ -8331,6 +9192,16 @@ data-urls@^3.0.2: whatwg-mimetype "^3.0.0" whatwg-url "^11.0.0" +dataloader@2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/dataloader/-/dataloader-2.1.0.tgz#c69c538235e85e7ac6c6c444bae8ecabf5de9df7" + integrity sha512-qTcEYLen3r7ojZNgVUaRggOI+KM7jrKxXeSHhogh/TWxYMeONEMqY+hmkobiYQozsGIyg9OYVzO4ZIfoB4I0pQ== + +debounce@^1.2.0: + version "1.2.1" + resolved "https://registry.yarnpkg.com/debounce/-/debounce-1.2.1.tgz#38881d8f4166a5c5848020c11827b834bcb3e0a5" + integrity sha512-XRRe6Glud4rd/ZGQfiV1ruXSfbvfJedlV9Y6zOlP+2K04vBYiJEte6stfFkCP03aMnY5tsipamumUjL14fofug== + debug@2.6.9, debug@^2.2.0, debug@^2.3.3, debug@^2.6.0, debug@^2.6.9: version "2.6.9" resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" @@ -8494,6 +9365,11 @@ depd@~1.1.2: resolved "https://registry.yarnpkg.com/depd/-/depd-1.1.2.tgz#9bcd52e14c097763e749b274c4346ed2e560b5a9" integrity sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ== +dependency-graph@^0.11.0: + version "0.11.0" + resolved "https://registry.yarnpkg.com/dependency-graph/-/dependency-graph-0.11.0.tgz#ac0ce7ed68a54da22165a85e97a01d53f5eb2e27" + integrity sha512-JeMq7fEshyepOWDfcfHK06N3MhyPhz++vtqWhMT5O9A3K42rdsEDpfdVqjaqaAhsw6a+ZqeDvQVtD0hFHQWrzg== + des.js@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/des.js/-/des.js-1.0.1.tgz#5382142e1bdc53f85d86d53e5f4aa7deb91e0843" @@ -8758,6 +9634,11 @@ dotenv@^10.0.0: resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-10.0.0.tgz#3d4227b8fb95f81096cdd2b66653fb2c7085ba81" integrity sha512-rlBi9d8jpv9Sf1klPjNfFAuWDjKLwTIJJ/VxtoTwIR6hnZxcEOQCZg2oIL3MWBYw5GpUDKOEnND7LXTbIpQ03Q== +dotenv@^16.0.0: + version "16.0.3" + resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-16.0.3.tgz#115aec42bac5053db3c456db30cc243a5a836a07" + integrity sha512-7GO6HghkA5fYG9TYnNxi14/7K9f5occMlp3zXAuSxn7CKCxt9xbNWG7yF8hTCSUchlfWSe3uLmlPfigevRItzQ== + dotenv@^8.0.0: version "8.6.0" resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-8.6.0.tgz#061af664d19f7f4d8fc6e4ff9b584ce237adcb8b" @@ -8772,6 +9653,11 @@ drbg.js@^1.0.1: create-hash "^1.1.2" create-hmac "^1.1.4" +dset@3.1.2: + version "3.1.2" + resolved "https://registry.yarnpkg.com/dset/-/dset-3.1.2.tgz#89c436ca6450398396dc6538ea00abc0c54cd45a" + integrity sha512-g/M9sqy3oHe477Ar4voQxWtaPIFw1jTdKZuomOjhCcBx9nHUNn0pu6NopuFFrTh/TRZIKEj+76vLWFu9BNKk+Q== + duplexer@^0.1.2: version "0.1.2" resolved "https://registry.yarnpkg.com/duplexer/-/duplexer-0.1.2.tgz#3abe43aef3835f8ae077d136ddce0f276b0400e6" @@ -8804,6 +9690,13 @@ eccrypto@1.1.6: optionalDependencies: secp256k1 "3.7.1" +ecdsa-sig-formatter@1.0.11: + version "1.0.11" + resolved "https://registry.yarnpkg.com/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz#ae0f0fa2d85045ef14a817daa3ce9acd0489e5bf" + integrity sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ== + dependencies: + safe-buffer "^5.0.1" + ee-first@1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d" @@ -8924,6 +9817,14 @@ entities@^4.4.0: resolved "https://registry.yarnpkg.com/entities/-/entities-4.4.0.tgz#97bdaba170339446495e653cfd2db78962900174" integrity sha512-oYp7156SP8LkeGD0GF85ad1X9Ai79WtRsZ2gxJqtBuzH+98YUV6jkHEKlZkMbcrjJjIVJNIDP/3WL9wQkoPbWA== +env-cmd@10.1.0: + version "10.1.0" + resolved "https://registry.yarnpkg.com/env-cmd/-/env-cmd-10.1.0.tgz#c7f5d3b550c9519f137fdac4dd8fb6866a8c8c4b" + integrity sha512-mMdWTT9XKN7yNth/6N6g2GuKuJTsKMDHlQFUDacb/heQRRWOTIZ42t1rMHnQu4jYxU1ajdTeJM+9eEETlqToMA== + dependencies: + commander "^4.0.0" + cross-spawn "^7.0.0" + errno@^0.1.3, errno@~0.1.7: version "0.1.8" resolved "https://registry.yarnpkg.com/errno/-/errno-0.1.8.tgz#8bb3e9c7d463be4976ff888f76b4809ebc2e811f" @@ -9851,9 +10752,19 @@ ethjs-util@0.1.6, ethjs-util@^0.1.6: is-hex-prefixed "1.0.0" strip-hex-prefix "1.0.0" +event-target-polyfill@^0.0.3: + version "0.0.3" + resolved "https://registry.yarnpkg.com/event-target-polyfill/-/event-target-polyfill-0.0.3.tgz#ed373295f3b257774b5d75afb2599331d9f3406c" + integrity sha512-ZMc6UuvmbinrCk4RzGyVmRyIsAyxMRlp4CqSrcQRO8Dy0A9ldbiRy5kdtBj4OtP7EClGdqGfIqo9JmOClMsGLQ== + +event-target-shim@^5.0.0: + version "5.0.1" + resolved "https://registry.yarnpkg.com/event-target-shim/-/event-target-shim-5.0.1.tgz#5d4d3ebdf9583d63a5333ce2deb7480ab2b05789" + integrity sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ== + eventemitter3@^4.0.0, eventemitter3@^4.0.4, eventemitter3@^4.0.7: version "4.0.7" - resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-4.0.7.tgz#2de9b68f6528d5644ef5c59526a1b4a07306169f" + resolved "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz" integrity sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw== events@^3.0.0, events@^3.2.0, events@^3.3.0: @@ -10018,7 +10929,7 @@ extendable-error@^0.1.5: resolved "https://registry.yarnpkg.com/extendable-error/-/extendable-error-0.1.7.tgz#60b9adf206264ac920058a7395685ae4670c2b96" integrity sha512-UOiS2in6/Q0FK0R0q6UY9vYpQ21mr/Qn1KOnte7vsACuNJf514WvCCUHSRCPcgjPT2bAhNIJdlE6bVap1GKmeg== -external-editor@^3.1.0: +external-editor@^3.0.3, external-editor@^3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/external-editor/-/external-editor-3.1.0.tgz#cb03f740befae03ea4d283caed2741a83f335495" integrity sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew== @@ -10041,6 +10952,16 @@ extglob@^2.0.4: snapdragon "^0.8.1" to-regex "^3.0.1" +extract-files@^11.0.0: + version "11.0.0" + resolved "https://registry.yarnpkg.com/extract-files/-/extract-files-11.0.0.tgz#b72d428712f787eef1f5193aff8ab5351ca8469a" + integrity sha512-FuoE1qtbJ4bBVvv94CC7s0oTnKUGvQs+Rjf1L2SJFfS+HTVVjhPFtehPdQ0JiGPqVNfSSZvL5yzHHQq2Z4WNhQ== + +extract-files@^9.0.0: + version "9.0.0" + resolved "https://registry.yarnpkg.com/extract-files/-/extract-files-9.0.0.tgz#8a7744f2437f81f5ed3250ed9f1550de902fe54a" + integrity sha512-CvdFfHkC95B4bBBk36hcEmvdR2awOdhhVUYH6S/zrVj3477zven/fJMYg7121h4T1xHZC+tetUpubpAhxwI7hQ== + fast-deep-equal@^3.1.1, fast-deep-equal@^3.1.3: version "3.1.3" resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525" @@ -10117,6 +11038,24 @@ fb-watchman@^2.0.0: dependencies: bser "2.1.1" +fbjs-css-vars@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/fbjs-css-vars/-/fbjs-css-vars-1.0.2.tgz#216551136ae02fe255932c3ec8775f18e2c078b8" + integrity sha512-b2XGFAFdWZWg0phtAWLHCk836A1Xann+I+Dgd3Gk64MHKZO44FfoD1KxyvbSh0qZsIoXQGGlVztIY+oitJPpRQ== + +fbjs@^3.0.0: + version "3.0.4" + resolved "https://registry.yarnpkg.com/fbjs/-/fbjs-3.0.4.tgz#e1871c6bd3083bac71ff2da868ad5067d37716c6" + integrity sha512-ucV0tDODnGV3JCnnkmoszb5lf4bNpzjv80K41wd4k798Etq+UYD0y0TIfalLjZoKgjive6/adkRnszwapiDgBQ== + dependencies: + cross-fetch "^3.1.5" + fbjs-css-vars "^1.0.0" + loose-envify "^1.0.0" + object-assign "^4.1.0" + promise "^7.1.1" + setimmediate "^1.0.5" + ua-parser-js "^0.7.30" + fetch-retry@^5.0.2: version "5.0.3" resolved "https://registry.yarnpkg.com/fetch-retry/-/fetch-retry-5.0.3.tgz#edfa3641892995f9afee94f25b168827aa97fe3d" @@ -10127,6 +11066,13 @@ figgy-pudding@^3.5.1: resolved "https://registry.yarnpkg.com/figgy-pudding/-/figgy-pudding-3.5.2.tgz#b4eee8148abb01dcf1d1ac34367d59e12fa61d6e" integrity sha512-0btnI/H8f2pavGMN8w40mlSKOfTK2SVJmBfBeVIj3kNw0swwgzyRq0d5TJVOwodFmtvpPeWPN/MCcfuWF0Ezbw== +figures@^3.0.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/figures/-/figures-3.2.0.tgz#625c18bd293c604dc4a8ddb2febf0c88341746af" + integrity sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg== + dependencies: + escape-string-regexp "^1.0.5" + file-entry-cache@^6.0.1: version "6.0.1" resolved "https://registry.yarnpkg.com/file-entry-cache/-/file-entry-cache-6.0.1.tgz#211b2dd9659cb0394b073e7323ac3c933d522027" @@ -10354,6 +11300,11 @@ fork-ts-checker-webpack-plugin@^6.0.4, fork-ts-checker-webpack-plugin@^6.5.0: semver "^7.3.2" tapable "^1.0.0" +form-data-encoder@^1.7.1: + version "1.7.2" + resolved "https://registry.yarnpkg.com/form-data-encoder/-/form-data-encoder-1.7.2.tgz#1f1ae3dccf58ed4690b86d87e4f57c654fbab040" + integrity sha512-qfqtYan3rxrnCk1VYaA4H+Ms9xdpPqvLZa6xmMgFvhO32x7/3J/ExcTd6qpxM0vH2GdMI+poehyBZvqfMTto8A== + form-data@^3.0.0: version "3.0.1" resolved "https://registry.yarnpkg.com/form-data/-/form-data-3.0.1.tgz#ebd53791b78356a99af9a300d4282c4d5eb9755f" @@ -10377,6 +11328,14 @@ format@^0.2.0: resolved "https://registry.yarnpkg.com/format/-/format-0.2.2.tgz#d6170107e9efdc4ed30c9dc39016df942b5cb58b" integrity sha512-wzsgA6WOq+09wrU1tsJ09udeR/YZRaeArL9e1wPbFg3GG2yDnC2ldKpxs4xunpFF9DgqCqOIra3bc1HWrJ37Ww== +formdata-node@^4.3.1: + version "4.4.1" + resolved "https://registry.yarnpkg.com/formdata-node/-/formdata-node-4.4.1.tgz#23f6a5cb9cb55315912cbec4ff7b0f59bbd191e2" + integrity sha512-0iirZp3uVDjVGt9p49aTaqjk84TrglENEDuqfdlZQ1roC9CWlPk6Avf8EEnZNcAqPonwkG35x4n3ww/1THYAeQ== + dependencies: + node-domexception "1.0.0" + web-streams-polyfill "4.0.0-beta.3" + forwarded@0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/forwarded/-/forwarded-0.2.0.tgz#2269936428aad4c15c7ebe9779a84bf0b2a81811" @@ -10744,6 +11703,52 @@ grapheme-splitter@^1.0.4: resolved "https://registry.yarnpkg.com/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz#9cf3a665c6247479896834af35cf1dbb4400767e" integrity sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ== +graphql-config@4.3.6: + version "4.3.6" + resolved "https://registry.yarnpkg.com/graphql-config/-/graphql-config-4.3.6.tgz#908ef03d6670c3068e51fe2e84e10e3e0af220b6" + integrity sha512-i7mAPwc0LAZPnYu2bI8B6yXU5820Wy/ArvmOseDLZIu0OU1UTULEuexHo6ZcHXeT9NvGGaUPQZm8NV3z79YydA== + dependencies: + "@graphql-tools/graphql-file-loader" "^7.3.7" + "@graphql-tools/json-file-loader" "^7.3.7" + "@graphql-tools/load" "^7.5.5" + "@graphql-tools/merge" "^8.2.6" + "@graphql-tools/url-loader" "^7.9.7" + "@graphql-tools/utils" "^8.6.5" + cosmiconfig "7.0.1" + cosmiconfig-toml-loader "1.0.0" + cosmiconfig-typescript-loader "^4.0.0" + minimatch "4.2.1" + string-env-interpolation "1.0.1" + ts-node "^10.8.1" + tslib "^2.4.0" + +graphql-request@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/graphql-request/-/graphql-request-5.0.0.tgz#7504a807d0e11be11a3c448e900f0cc316aa18ef" + integrity sha512-SpVEnIo2J5k2+Zf76cUkdvIRaq5FMZvGQYnA4lUWYbc99m+fHh4CZYRRO/Ff4tCLQ613fzCm3SiDT64ubW5Gyw== + dependencies: + "@graphql-typed-document-node/core" "^3.1.1" + cross-fetch "^3.1.5" + extract-files "^9.0.0" + form-data "^3.0.0" + +graphql-tag@^2.11.0, graphql-tag@^2.12.6: + version "2.12.6" + resolved "https://registry.yarnpkg.com/graphql-tag/-/graphql-tag-2.12.6.tgz#d441a569c1d2537ef10ca3d1633b48725329b5f1" + integrity sha512-FdSNcu2QQcWnM2VNvSCCDCVS5PpPqpzgFT8+GXzqJuoDd0CBncxCY278u4mhRO7tMgo2JjgJA5aZ+nWSQ/Z+xg== + dependencies: + tslib "^2.1.0" + +graphql-ws@5.11.2: + version "5.11.2" + resolved "https://registry.yarnpkg.com/graphql-ws/-/graphql-ws-5.11.2.tgz#d5e0acae8b4d4a4cf7be410a24135cfcefd7ddc0" + integrity sha512-4EiZ3/UXYcjm+xFGP544/yW1+DVI8ZpKASFbzrV5EDTFWJp0ZvLl4Dy2fSZAzz9imKp5pZMIcjB0x/H69Pv/6w== + +graphql@16.6.0: + version "16.6.0" + resolved "https://registry.yarnpkg.com/graphql/-/graphql-16.6.0.tgz#c2dcffa4649db149f6282af726c8c83f1c7c5fdb" + integrity sha512-KPIBPDlW7NxrbT/eh4qPXz5FiFdL5UbaA0XUNz2Rp3Z3hqBSkbj0GVjwFDztsWVauZUWsbKHgMg++sk8UX0bkw== + gzip-size@^6.0.0: version "6.0.0" resolved "https://registry.yarnpkg.com/gzip-size/-/gzip-size-6.0.0.tgz#065367fd50c239c0671cbcbad5be3e2eeb10e462" @@ -10961,6 +11966,14 @@ he@^1.2.0: resolved "https://registry.yarnpkg.com/he/-/he-1.2.0.tgz#84ae65fa7eafb165fddb61566ae14baf05664f0f" integrity sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw== +header-case@^2.0.4: + version "2.0.4" + resolved "https://registry.yarnpkg.com/header-case/-/header-case-2.0.4.tgz#5a42e63b55177349cf405beb8d775acabb92c063" + integrity sha512-H/vuk5TEEVZwrR0lp2zed9OCo1uAILMlx0JEMgC26rzyJJ3N1v6XkwHHXJQdR2doSjcGPM6OKPYoJgf0plJ11Q== + dependencies: + capital-case "^1.0.4" + tslib "^2.0.3" + highlight.js@^10.4.1, highlight.js@~10.7.0: version "10.7.3" resolved "https://registry.yarnpkg.com/highlight.js/-/highlight.js-10.7.3.tgz#697272e3991356e40c3cac566a74eef681756531" @@ -10975,6 +11988,13 @@ hmac-drbg@^1.0.1: minimalistic-assert "^1.0.0" minimalistic-crypto-utils "^1.0.1" +hoist-non-react-statics@^3.3.2: + version "3.3.2" + resolved "https://registry.yarnpkg.com/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz#ece0acaf71d62c2969c2ec59feff42a4b1a85b45" + integrity sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw== + dependencies: + react-is "^16.7.0" + hoopy@^0.1.4: version "0.1.4" resolved "https://registry.yarnpkg.com/hoopy/-/hoopy-0.1.4.tgz#609207d661100033a9a9402ad3dea677381c1b1d" @@ -11282,6 +12302,11 @@ immer@^9.0.7: resolved "https://registry.yarnpkg.com/immer/-/immer-9.0.16.tgz#8e7caab80118c2b54b37ad43e05758cdefad0198" integrity sha512-qenGE7CstVm1NrHQbMh8YaSzTZTFNP3zPqr3YU0S0UY441j4bJTg4A2Hh5KAhwgaiU6ZZ1Ar6y/2f4TblnMReQ== +immutable@~3.7.6: + version "3.7.6" + resolved "https://registry.yarnpkg.com/immutable/-/immutable-3.7.6.tgz#13b4d3cb12befa15482a26fe1b2ebae640071e4b" + integrity sha512-AizQPcaofEtO11RZhPPHBOJRdo/20MKQF9mBLnVkBoyHi1/zXK8fzVdnEpSV9gxqtnh6Qomfp3F0xT5qP/vThw== + import-cwd@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/import-cwd/-/import-cwd-3.0.0.tgz#20845547718015126ea9b3676b7592fb8bd4cf92" @@ -11297,6 +12322,11 @@ import-fresh@^3.0.0, import-fresh@^3.1.0, import-fresh@^3.2.1: parent-module "^1.0.0" resolve-from "^4.0.0" +import-from@4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/import-from/-/import-from-4.0.0.tgz#2710b8d66817d232e16f4166e319248d3d5492e2" + integrity sha512-P9J71vT5nLlDeV8FHs5nNxaLbrpfAV5cF5srvbZfpwpcJoM/xZR3hiv+q+SAnuSmuGbXMWud063iIMx/V/EWZQ== + import-from@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/import-from/-/import-from-3.0.0.tgz#055cfec38cd5a27d8057ca51376d7d3bf0891966" @@ -11367,6 +12397,27 @@ inline-style-parser@0.1.1: resolved "https://registry.yarnpkg.com/inline-style-parser/-/inline-style-parser-0.1.1.tgz#ec8a3b429274e9c0a1f1c4ffa9453a7fef72cea1" integrity sha512-7NXolsK4CAS5+xvdj5OMMbI962hU/wvwoxk+LWR9Ek9bVtyuuYScDN6eS0rUm6TxApFpw7CX1o4uJzcd4AyD3Q== +inquirer@^8.0.0: + version "8.2.5" + resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-8.2.5.tgz#d8654a7542c35a9b9e069d27e2df4858784d54f8" + integrity sha512-QAgPDQMEgrDssk1XiwwHoOGYF9BAbUcc1+j+FhEvaOt8/cKRqyLn0U5qA6F74fGhTMGxf92pOvPBeh29jQJDTQ== + dependencies: + ansi-escapes "^4.2.1" + chalk "^4.1.1" + cli-cursor "^3.1.0" + cli-width "^3.0.0" + external-editor "^3.0.3" + figures "^3.0.0" + lodash "^4.17.21" + mute-stream "0.0.8" + ora "^5.4.1" + run-async "^2.4.0" + rxjs "^7.5.5" + string-width "^4.1.0" + strip-ansi "^6.0.0" + through "^2.3.6" + wrap-ansi "^7.0.0" + internal-slot@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/internal-slot/-/internal-slot-1.0.3.tgz#7347e307deeea2faac2ac6205d4bc7d34967f59c" @@ -11381,7 +12432,7 @@ interpret@^2.2.0: resolved "https://registry.yarnpkg.com/interpret/-/interpret-2.2.0.tgz#1a78a0b5965c40a5416d007ad6f50ad27c417df9" integrity sha512-Ju0Bz/cEia55xDwUWEa8+olFpCiQoypjnQySseKtmjNrnps3P+xfpUmGr90T7yjlVJmOtybRvPXhKMbHr+fWnw== -invariant@2: +invariant@2, invariant@^2.2.4: version "2.2.4" resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.4.tgz#610f3c92c9359ce1db616e538008d23ff35158e6" integrity sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA== @@ -11408,6 +12459,14 @@ is-absolute-url@^3.0.0: resolved "https://registry.yarnpkg.com/is-absolute-url/-/is-absolute-url-3.0.3.tgz#96c6a22b6a23929b11ea0afb1836c36ad4a5d698" integrity sha512-opmNIX7uFnS96NtPmhWQgQx6/NYFgsUXYMllcfzwWKUMwfo8kku1TvE6hkNcH+Q1ts5cMVrsY7j0bxXQDciu9Q== +is-absolute@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-absolute/-/is-absolute-1.0.0.tgz#395e1ae84b11f26ad1795e73c17378e48a301576" + integrity sha512-dOWoqflvcydARa360Gvv18DZ/gRuHKi2NU/wU5X1ZFzdYfH29nkiNZsF3mp4OJ3H4yo9Mx8A/uAGNzpzPN3yBA== + dependencies: + is-relative "^1.0.0" + is-windows "^1.0.1" + is-accessor-descriptor@^0.1.6: version "0.1.6" resolved "https://registry.yarnpkg.com/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz#a9e12cb3ae8d876727eeef3843f8a0897b5c98d6" @@ -11624,6 +12683,13 @@ is-generator-fn@^2.0.0: resolved "https://registry.yarnpkg.com/is-generator-fn/-/is-generator-fn-2.1.0.tgz#7d140adc389aaf3011a8f2a2a4cfa6faadffb118" integrity sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ== +is-glob@4.0.3, is-glob@^4.0.0, is-glob@^4.0.1, is-glob@^4.0.3, is-glob@~4.0.1: + version "4.0.3" + resolved "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz" + integrity sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg== + dependencies: + is-extglob "^2.1.1" + is-glob@^3.0.0, is-glob@^3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-3.1.0.tgz#7ba5ae24217804ac70707b96922567486cc3e84a" @@ -11631,13 +12697,6 @@ is-glob@^3.0.0, is-glob@^3.1.0: dependencies: is-extglob "^2.1.0" -is-glob@^4.0.0, is-glob@^4.0.1, is-glob@^4.0.3, is-glob@~4.0.1: - version "4.0.3" - resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.3.tgz#64f61e42cbbb2eec2071a9dac0b28ba1e65d5084" - integrity sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg== - dependencies: - is-extglob "^2.1.1" - is-hex-prefixed@1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/is-hex-prefixed/-/is-hex-prefixed-1.0.0.tgz#7d8d37e6ad77e5d127148913c573e082d777f554" @@ -11648,6 +12707,18 @@ is-hexadecimal@^1.0.0: resolved "https://registry.yarnpkg.com/is-hexadecimal/-/is-hexadecimal-1.0.4.tgz#cc35c97588da4bd49a8eedd6bc4082d44dcb23a7" integrity sha512-gyPJuv83bHMpocVYoqof5VDiZveEoGoFL8m3BXNb2VW8Xs+rz9kqO8LOQ5DH6EsuvilT1ApazU0pyl+ytbPtlw== +is-interactive@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-interactive/-/is-interactive-1.0.0.tgz#cea6e6ae5c870a7b0a0004070b7b587e0252912e" + integrity sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w== + +is-lower-case@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/is-lower-case/-/is-lower-case-2.0.2.tgz#1c0884d3012c841556243483aa5d522f47396d2a" + integrity sha512-bVcMJy4X5Og6VZfdOZstSexlEy20Sr0k/p/b2IlQJlfdKAQuMpiv5w2Ccxb8sKdRUNAG1PnHVHjFSdRDVS6NlQ== + dependencies: + tslib "^2.0.3" + is-map@^2.0.1, is-map@^2.0.2: version "2.0.2" resolved "https://registry.yarnpkg.com/is-map/-/is-map-2.0.2.tgz#00922db8c9bf73e81b7a335827bc2a43f2b91127" @@ -11749,6 +12820,13 @@ is-regexp@^1.0.0: resolved "https://registry.yarnpkg.com/is-regexp/-/is-regexp-1.0.0.tgz#fd2d883545c46bac5a633e7b9a09e87fa2cb5069" integrity sha512-7zjFAPO4/gwyQAAgRRmqeEeyIICSdmCqa3tsVHMdBzaXXRiqopZL4Cyghg/XulGWrtABTpbnYYzzIRffLkP4oA== +is-relative@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-relative/-/is-relative-1.0.0.tgz#a1bb6935ce8c5dba1e8b9754b9b2dcc020e2260d" + integrity sha512-Kw/ReK0iqwKeu0MITLFuj0jbPAmEiOsIwyIXvvbfa6QfmN9pkD1M+8pdk7Rl/dTKbH34/XBFMbgD4iMJhLQbGA== + dependencies: + is-unc-path "^1.0.0" + is-root@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/is-root/-/is-root-2.1.0.tgz#809e18129cf1129644302a4f8544035d51984a9c" @@ -11818,6 +12896,25 @@ is-typedarray@1.0.0, is-typedarray@^1.0.0: resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" integrity sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA== +is-unc-path@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-unc-path/-/is-unc-path-1.0.0.tgz#d731e8898ed090a12c352ad2eaed5095ad322c9d" + integrity sha512-mrGpVd0fs7WWLfVsStvgF6iEJnbjDFZh9/emhRDcGWTduTfNHd9CHeUwH3gYIjdbwo4On6hunkztwOaAw0yllQ== + dependencies: + unc-path-regex "^0.1.2" + +is-unicode-supported@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz#3f26c76a809593b52bfa2ecb5710ed2779b522a7" + integrity sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw== + +is-upper-case@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/is-upper-case/-/is-upper-case-2.0.2.tgz#f1105ced1fe4de906a5f39553e7d3803fd804649" + integrity sha512-44pxmxAvnnAOwBg4tHPnkfvgjPwbc5QIsSstNU+YcJ1ovxVzCWpSGosPJOZh/a1tdl81fbgnLc9LLv+x2ywbPQ== + dependencies: + tslib "^2.0.3" + is-utf8@^0.2.0: version "0.2.1" resolved "https://registry.yarnpkg.com/is-utf8/-/is-utf8-0.2.1.tgz#4b0da1442104d1b336340e80797e865cf39f7d72" @@ -11853,7 +12950,7 @@ is-window@^1.0.2: resolved "https://registry.yarnpkg.com/is-window/-/is-window-1.0.2.tgz#2c896ca53db97de45d3c33133a65d8c9f563480d" integrity sha512-uj00kdXyZb9t9RcAUAwMZAnkBUwdYGhYlt7djMXhfyhUCzwNba50tIiBKR7q0l7tdoBtFVw/3JmLY6fI3rmZmg== -is-windows@^1.0.0, is-windows@^1.0.2: +is-windows@^1.0.0, is-windows@^1.0.1, is-windows@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.2.tgz#d1850eb9791ecd18e6182ce12a30f396634bb19d" integrity sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA== @@ -11907,6 +13004,14 @@ isobject@^4.0.0: resolved "https://registry.yarnpkg.com/isobject/-/isobject-4.0.0.tgz#3f1c9155e73b192022a80819bacd0343711697b0" integrity sha512-S/2fF5wH8SJA/kmwr6HYhK/RI/OkhD84k8ntalo0iJjZikgq1XFvR5M8NPT1x5F7fBwCG3qHfnzeP/Vh/ZxCUA== +isomorphic-fetch@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/isomorphic-fetch/-/isomorphic-fetch-3.0.0.tgz#0267b005049046d2421207215d45d6a262b8b8b4" + integrity sha512-qvUtwJ3j6qwsF3jLxkZ72qCgjMysPzDfeV240JHiGZsANBYd+EEuu35v7dfrJ9Up0Ak07D7GGSkGhCHTqg/5wA== + dependencies: + node-fetch "^2.6.1" + whatwg-fetch "^3.4.1" + isomorphic-unfetch@^3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/isomorphic-unfetch/-/isomorphic-unfetch-3.1.0.tgz#87341d5f4f7b63843d468438128cb087b7c3e98f" @@ -11915,6 +13020,11 @@ isomorphic-unfetch@^3.1.0: node-fetch "^2.6.1" unfetch "^4.2.0" +isomorphic-ws@5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/isomorphic-ws/-/isomorphic-ws-5.0.0.tgz#e5529148912ecb9b451b46ed44d53dae1ce04bbf" + integrity sha512-muId7Zzn9ywDsyXgTIafTry2sV3nySZeUDe6YedVd1Hvuuep5AsIlqK+XefWpYTyJG5e503F2xIuT2lcU6rCSw== + istanbul-lib-coverage@^3.0.0, istanbul-lib-coverage@^3.2.0: version "3.2.0" resolved "https://registry.yarnpkg.com/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz#189e7909d0a39fa5a3dfad5b03f71947770191d3" @@ -12935,7 +14045,7 @@ js-yaml@^3.13.0, js-yaml@^3.13.1, js-yaml@^3.6.1: argparse "^1.0.7" esprima "^4.0.0" -js-yaml@^4.1.0: +js-yaml@^4.0.0, js-yaml@^4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-4.1.0.tgz#c1fb65f8f5017901cdd2c951864ba18458a10602" integrity sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA== @@ -13047,6 +14157,21 @@ json-stable-stringify-without-jsonify@^1.0.1: resolved "https://registry.yarnpkg.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz#9db7b59496ad3f3cfef30a75142d2d930ad72651" integrity sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw== +json-stable-stringify@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/json-stable-stringify/-/json-stable-stringify-1.0.2.tgz#e06f23128e0bbe342dc996ed5a19e28b57b580e0" + integrity sha512-eunSSaEnxV12z+Z73y/j5N37/In40GK4GmsSy+tEHJMxknvqnA7/djeYtAgW0GsWHUfg+847WJjKaEylk2y09g== + dependencies: + jsonify "^0.0.1" + +json-to-pretty-yaml@^1.2.2: + version "1.2.2" + resolved "https://registry.yarnpkg.com/json-to-pretty-yaml/-/json-to-pretty-yaml-1.2.2.tgz#f4cd0bd0a5e8fe1df25aaf5ba118b099fd992d5b" + integrity sha512-rvm6hunfCcqegwYaG5T4yKJWxc9FXFgBVrcTZ4XfSVRwa5HA/Xs+vB/Eo9treYYHCeNM0nrSUr82V/M31Urc7A== + dependencies: + remedial "^1.0.7" + remove-trailing-spaces "^1.0.6" + json5@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/json5/-/json5-1.0.1.tgz#779fb0018604fa854eacbf6252180d83543e3dbe" @@ -13075,11 +14200,32 @@ jsonfile@^6.0.1: optionalDependencies: graceful-fs "^4.1.6" +jsonify@^0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/jsonify/-/jsonify-0.0.1.tgz#2aa3111dae3d34a0f151c63f3a45d995d9420978" + integrity sha512-2/Ki0GcmuqSrgFyelQq9M05y7PS0mEwuIzrf3f1fPqkVDVRvZrPZtVSMHxdgo8Aq0sxAOb/cr2aqqA3LeWHVPg== + jsonpointer@^5.0.0: version "5.0.1" resolved "https://registry.yarnpkg.com/jsonpointer/-/jsonpointer-5.0.1.tgz#2110e0af0900fd37467b5907ecd13a7884a1b559" integrity sha512-p/nXbhSEcu3pZRdkW1OfJhpsVtW1gd4Wa1fnQc9YLiTfAjn0312eMKimbdIQzuZl9aa9xUGaRlP9T/CJE/ditQ== +jsonwebtoken@^8.5.1: + version "8.5.1" + resolved "https://registry.yarnpkg.com/jsonwebtoken/-/jsonwebtoken-8.5.1.tgz#00e71e0b8df54c2121a1f26137df2280673bcc0d" + integrity sha512-XjwVfRS6jTMsqYs0EsuJ4LGxXV14zQybNd4L2r0UvbVnSF9Af8x7p5MzbJ90Ioz/9TI41/hTCvznF/loiSzn8w== + dependencies: + jws "^3.2.2" + lodash.includes "^4.3.0" + lodash.isboolean "^3.0.3" + lodash.isinteger "^4.0.4" + lodash.isnumber "^3.0.3" + lodash.isplainobject "^4.0.6" + lodash.isstring "^4.0.1" + lodash.once "^4.0.0" + ms "^2.1.1" + semver "^5.6.0" + "jsx-ast-utils@^2.4.1 || ^3.0.0", jsx-ast-utils@^3.2.1, jsx-ast-utils@^3.3.2: version "3.3.3" resolved "https://registry.yarnpkg.com/jsx-ast-utils/-/jsx-ast-utils-3.3.3.tgz#76b3e6e6cece5c69d49a5792c3d01bd1a0cdc7ea" @@ -13093,6 +14239,23 @@ junk@^3.1.0: resolved "https://registry.yarnpkg.com/junk/-/junk-3.1.0.tgz#31499098d902b7e98c5d9b9c80f43457a88abfa1" integrity sha512-pBxcB3LFc8QVgdggvZWyeys+hnrNWg4OcZIU/1X59k5jQdLBlCsYGRQaz234SqoRLTCgMH00fY0xRJH+F9METQ== +jwa@^1.4.1: + version "1.4.1" + resolved "https://registry.yarnpkg.com/jwa/-/jwa-1.4.1.tgz#743c32985cb9e98655530d53641b66c8645b039a" + integrity sha512-qiLX/xhEEFKUAJ6FiBMbes3w9ATzyk5W7Hvzpa/SLYdxNtng+gcurvrI7TbACjIXlsJyr05/S1oUhZrc63evQA== + dependencies: + buffer-equal-constant-time "1.0.1" + ecdsa-sig-formatter "1.0.11" + safe-buffer "^5.0.1" + +jws@^3.2.2: + version "3.2.2" + resolved "https://registry.yarnpkg.com/jws/-/jws-3.2.2.tgz#001099f3639468c9414000e99995fa52fb478304" + integrity sha512-YHlZCB6lMTllWDtSPHz/ZXTsi8S00usEV6v1tjq8tOUZzw7DpSDWVXjXDre6ed1w/pd495ODpHZYSdkRTsa0HA== + dependencies: + jwa "^1.4.1" + safe-buffer "^5.0.1" + keccak@^3.0.0: version "3.0.2" resolved "https://registry.yarnpkg.com/keccak/-/keccak-3.0.2.tgz#4c2c6e8c54e04f2670ee49fa734eb9da152206e0" @@ -13334,6 +14497,36 @@ lodash.get@4.4.2: resolved "https://registry.yarnpkg.com/lodash.get/-/lodash.get-4.4.2.tgz#2d177f652fa31e939b4438d5341499dfa3825e99" integrity sha512-z+Uw/vLuy6gQe8cfaFWD7p0wVv8fJl3mbzXh33RS+0oW2wvUqiRXiQ69gLWSLpgB5/6sU+r6BlQR0MBILadqTQ== +lodash.includes@^4.3.0: + version "4.3.0" + resolved "https://registry.yarnpkg.com/lodash.includes/-/lodash.includes-4.3.0.tgz#60bb98a87cb923c68ca1e51325483314849f553f" + integrity sha512-W3Bx6mdkRTGtlJISOvVD/lbqjTlPPUDTMnlXZFnVwi9NKJ6tiAk6LVdlhZMm17VZisqhKcgzpO5Wz91PCt5b0w== + +lodash.isboolean@^3.0.3: + version "3.0.3" + resolved "https://registry.yarnpkg.com/lodash.isboolean/-/lodash.isboolean-3.0.3.tgz#6c2e171db2a257cd96802fd43b01b20d5f5870f6" + integrity sha512-Bz5mupy2SVbPHURB98VAcw+aHh4vRV5IPNhILUCsOzRmsTmSQ17jIuqopAentWoehktxGd9e/hbIXq980/1QJg== + +lodash.isinteger@^4.0.4: + version "4.0.4" + resolved "https://registry.yarnpkg.com/lodash.isinteger/-/lodash.isinteger-4.0.4.tgz#619c0af3d03f8b04c31f5882840b77b11cd68343" + integrity sha512-DBwtEWN2caHQ9/imiNeEA5ys1JoRtRfY3d7V9wkqtbycnAmTvRRmbHKDV4a0EYc678/dia0jrte4tjYwVBaZUA== + +lodash.isnumber@^3.0.3: + version "3.0.3" + resolved "https://registry.yarnpkg.com/lodash.isnumber/-/lodash.isnumber-3.0.3.tgz#3ce76810c5928d03352301ac287317f11c0b1ffc" + integrity sha512-QYqzpfwO3/CWf3XP+Z+tkQsfaLL/EnUlXWVkIk5FUPc4sBdTehEqZONuyRt2P67PXAk+NXmTBcc97zw9t1FQrw== + +lodash.isplainobject@^4.0.6: + version "4.0.6" + resolved "https://registry.yarnpkg.com/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz#7c526a52d89b45c45cc690b88163be0497f550cb" + integrity sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA== + +lodash.isstring@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/lodash.isstring/-/lodash.isstring-4.0.1.tgz#d527dfb5456eca7cc9bb95d5daeaf88ba54a5451" + integrity sha512-0wJxfxH1wgO3GrbuP+dTTk7op+6L41QCXbGINEmD+ny/G/eCqGzxyCsh7159S+mgDDcoarnBw6PC1PS5+wUGgw== + lodash.memoize@^4.1.2: version "4.1.2" resolved "https://registry.yarnpkg.com/lodash.memoize/-/lodash.memoize-4.1.2.tgz#bcc6c49a42a2840ed997f323eada5ecd182e0bfe" @@ -13344,6 +14537,11 @@ lodash.merge@^4.6.2: resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.2.tgz#558aa53b43b661e1925a0afdfa36a9a1085fe57a" integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ== +lodash.once@^4.0.0: + version "4.1.1" + resolved "https://registry.yarnpkg.com/lodash.once/-/lodash.once-4.1.1.tgz#0dd3971213c7c56df880977d504c88fb471a97ac" + integrity sha512-Sb487aTOCr9drQVL8pIxOzVhafOjZN9UU54hiN8PU3uAiSV7lx1yYNpbNmex2PK6dSJoNTSJUUswT651yww3Mg== + lodash.partition@^4.6.0: version "4.6.0" resolved "https://registry.yarnpkg.com/lodash.partition/-/lodash.partition-4.6.0.tgz#a38e46b73469e0420b0da1212e66d414be364ba4" @@ -13379,11 +14577,19 @@ lodash.uniqby@^4.7.0: resolved "https://registry.yarnpkg.com/lodash.uniqby/-/lodash.uniqby-4.7.0.tgz#d99c07a669e9e6d24e1362dfe266c67616af1302" integrity sha512-e/zcLx6CSbmaEgFHCA7BnoQKyCtKMxnuWrJygbwPs/AIn+IMKl66L8/s+wBUn5LRw2pZx3bUHibiV1b6aTWIww== -lodash@4.17.21, lodash@^4.17.15, lodash@^4.17.19, lodash@^4.17.20, lodash@^4.17.21, lodash@^4.7.0: +lodash@4.17.21, lodash@^4.17.15, lodash@^4.17.19, lodash@^4.17.20, lodash@^4.17.21, lodash@^4.7.0, lodash@~4.17.0: version "4.17.21" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== +log-symbols@^4.0.0, log-symbols@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-4.1.0.tgz#3fbdbb95b4683ac9fc785111e792e558d4abd503" + integrity sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg== + dependencies: + chalk "^4.1.0" + is-unicode-supported "^0.1.0" + log-update@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/log-update/-/log-update-4.0.0.tgz#589ecd352471f2a1c0c570287543a64dfd20e0a1" @@ -13421,6 +14627,13 @@ loud-rejection@^1.0.0: currently-unhandled "^0.4.1" signal-exit "^3.0.0" +lower-case-first@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/lower-case-first/-/lower-case-first-2.0.2.tgz#64c2324a2250bf7c37c5901e76a5b5309301160b" + integrity sha512-EVm/rR94FJTZi3zefZ82fLWab+GX14LJN4HrWBcuo6Evmsl9hEfnqxgcHCKb9q+mNf6EVdsjx/qucYFIIB84pg== + dependencies: + tslib "^2.0.3" + lower-case@^2.0.2: version "2.0.2" resolved "https://registry.yarnpkg.com/lower-case/-/lower-case-2.0.2.tgz#6fa237c63dbdc4a82ca0fd882e4722dc5e634e28" @@ -13511,7 +14724,7 @@ map-age-cleaner@^0.1.3: dependencies: p-defer "^1.0.0" -map-cache@^0.2.2: +map-cache@^0.2.0, map-cache@^0.2.2: version "0.2.2" resolved "https://registry.yarnpkg.com/map-cache/-/map-cache-0.2.2.tgz#c32abd0bd6525d9b051645bb4f26ac5dc98a0dbf" integrity sha512-8y/eV9QQZCiyn1SprXSrCmqJN0yNRATe+PO8ztwqrvrbdRLA3eYJF0yaR0YayLWkMbsQSKWS9N2gPcGEc4UsZg== @@ -13691,6 +14904,11 @@ merge2@^1.2.3, merge2@^1.3.0, merge2@^1.4.1: resolved "https://registry.yarnpkg.com/merge2/-/merge2-1.4.1.tgz#4368892f885e907455a6fd7dc55c0c9d404990ae" integrity sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg== +meros@1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/meros/-/meros-1.2.1.tgz#056f7a76e8571d0aaf3c7afcbe7eb6407ff7329e" + integrity sha512-R2f/jxYqCAGI19KhAvaxSOxALBMkaXWH2a7rOyqQw+ZmizX5bKkEYWLzdhC+U82ZVVPVp6MCXe3EkVligh+12g== + methods@~1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/methods/-/methods-1.1.2.tgz#5529a4d67654134edcc5266656835b0f851afcee" @@ -13802,6 +15020,13 @@ minimalistic-crypto-utils@^1.0.1: resolved "https://registry.yarnpkg.com/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz#f6c00c1c0b082246e5c4d99dfb8c7c083b2b582a" integrity sha512-JIYlbt6g8i5jKfJ3xz7rF0LXmv2TkDxBLUkiBeZ7bAx4GnnNMr8xFpGnOxn6GhTEHx3SjRrZEoU+j04prX1ktg== +minimatch@4.2.1: + version "4.2.1" + resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-4.2.1.tgz#40d9d511a46bdc4e563c22c3080cde9c0d8299b4" + integrity sha512-9Uq1ChtSZO+Mxa/CL1eGizn2vRn3MlLgzhT0Iz8zaY8NdvxvB0d5QdPFmCKf7JKA9Lerx5vRrnwO03jsSfGG9g== + dependencies: + brace-expansion "^1.1.7" + minimatch@^3.0.2, minimatch@^3.0.4, minimatch@^3.0.5, minimatch@^3.1.1, minimatch@^3.1.2: version "3.1.2" resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b" @@ -13954,6 +15179,11 @@ multicast-dns@^7.2.5: dns-packet "^5.2.2" thunky "^1.0.2" +mute-stream@0.0.8: + version "0.0.8" + resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.8.tgz#1630c42b2251ff81e2a283de96a5497ea92e5e0d" + integrity sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA== + mz@^2.7.0: version "2.7.0" resolved "https://registry.yarnpkg.com/mz/-/mz-2.7.0.tgz#95008057a56cafadc2bc63dde7f9ff6955948e32" @@ -14045,6 +15275,11 @@ node-dir@^0.1.10: dependencies: minimatch "^3.0.2" +node-domexception@1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/node-domexception/-/node-domexception-1.0.0.tgz#6888db46a1f71c0b76b3f7555016b63fe64766e5" + integrity sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ== + node-fetch@2.6.7, node-fetch@^2.6.1, node-fetch@^2.6.7: version "2.6.7" resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.7.tgz#24de9fba827e3b4ae44dc8b20256a379160052ad" @@ -14178,6 +15413,11 @@ nth-check@^2.0.1: dependencies: boolbase "^1.0.0" +nullthrows@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/nullthrows/-/nullthrows-1.1.1.tgz#7818258843856ae971eae4208ad7d7eb19a431b1" + integrity sha512-2vPPEi+Z7WqML2jZYddDIfy5Dqb0r2fze2zTxNNknZaFpVHU3mFB3R+DWeJWGVx0ecvttSGlJTI+WG+8Z4cDWw== + num2fraction@^1.2.2: version "1.2.2" resolved "https://registry.yarnpkg.com/num2fraction/-/num2fraction-1.2.2.tgz#6f682b6a027a4e9ddfa4564cd2589d1d4e669ede" @@ -14188,7 +15428,7 @@ nwsapi@^2.2.0, nwsapi@^2.2.2: resolved "https://registry.yarnpkg.com/nwsapi/-/nwsapi-2.2.2.tgz#e5418863e7905df67d51ec95938d67bf801f0bb0" integrity sha512-90yv+6538zuvUMnN+zCr8LuV6bPFdq50304114vJYJ8RDyK8D5O9Phpbd6SZWgI7PwzmmfN1upeOJlvybDSgCw== -object-assign@^4.0.1, object-assign@^4.1.1: +object-assign@^4.0.1, object-assign@^4.1.0, object-assign@^4.1.1: version "4.1.1" resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" integrity sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg== @@ -14354,6 +15594,14 @@ open@^8.0.9, open@^8.4.0: is-docker "^2.1.1" is-wsl "^2.2.0" +optimism@^0.16.1: + version "0.16.2" + resolved "https://registry.yarnpkg.com/optimism/-/optimism-0.16.2.tgz#519b0c78b3b30954baed0defe5143de7776bf081" + integrity sha512-zWNbgWj+3vLEjZNIh/okkY2EUfX+vB9TJopzIZwT1xxaMqC5hRLLraePod4c5n4He08xuXNH+zhKFFCu390wiQ== + dependencies: + "@wry/context" "^0.7.0" + "@wry/trie" "^0.3.0" + optionator@^0.8.1: version "0.8.3" resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.8.3.tgz#84fa1d036fe9d3c7e21d99884b601167ec8fb495" @@ -14378,6 +15626,21 @@ optionator@^0.9.1: type-check "^0.4.0" word-wrap "^1.2.3" +ora@^5.4.1: + version "5.4.1" + resolved "https://registry.yarnpkg.com/ora/-/ora-5.4.1.tgz#1b2678426af4ac4a509008e5e4ac9e9959db9e18" + integrity sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ== + dependencies: + bl "^4.1.0" + chalk "^4.1.0" + cli-cursor "^3.1.0" + cli-spinners "^2.5.0" + is-interactive "^1.0.0" + is-unicode-supported "^0.1.0" + log-symbols "^4.1.0" + strip-ansi "^6.0.0" + wcwidth "^1.0.1" + os-browserify@^0.3.0: version "0.3.0" resolved "https://registry.yarnpkg.com/os-browserify/-/os-browserify-0.3.0.tgz#854373c7f5c2315914fc9bfc6bd8238fdda1ec27" @@ -14429,6 +15692,13 @@ p-finally@^1.0.0: resolved "https://registry.yarnpkg.com/p-finally/-/p-finally-1.0.0.tgz#3fbcfb15b899a44123b34b6dcc18b724336a2cae" integrity sha512-LICb2p9CB7FS+0eR1oqWnHhp0FljGLZCWBE9aix0Uye9W8LTQPwMTYVGWQWIw9RdQiDg4+epXQODwIYJtSJaow== +p-limit@3.1.0, p-limit@^3.0.2, p-limit@^3.1.0: + version "3.1.0" + resolved "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz" + integrity sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ== + dependencies: + yocto-queue "^0.1.0" + p-limit@^2.0.0, p-limit@^2.2.0: version "2.3.0" resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-2.3.0.tgz#3dd33c647a214fdfffd835933eb086da0dc21db1" @@ -14436,13 +15706,6 @@ p-limit@^2.0.0, p-limit@^2.2.0: dependencies: p-try "^2.0.0" -p-limit@^3.0.2, p-limit@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-3.1.0.tgz#e1daccbe78d0d1388ca18c64fea38e3e57e3706b" - integrity sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ== - dependencies: - yocto-queue "^0.1.0" - p-locate@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-3.0.0.tgz#322d69a05c0264b25997d9f40cd8a891ab0064a4" @@ -14563,6 +15826,15 @@ parse-entities@^2.0.0: is-decimal "^1.0.0" is-hexadecimal "^1.0.0" +parse-filepath@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/parse-filepath/-/parse-filepath-1.0.2.tgz#a632127f53aaf3d15876f5872f3ffac763d6c891" + integrity sha512-FwdRXKCohSVeXqwtYonZTXtbGJKrn+HNyWDYVcp5yuJlesTwNH4rsmRZ+GrKAPJ5bLpRxESMeS+Rl0VCHRvB2Q== + dependencies: + is-absolute "^1.0.0" + map-cache "^0.2.0" + path-root "^0.1.1" + parse-json@^2.2.0: version "2.2.0" resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-2.2.0.tgz#f480f40434ef80741f8469099f8dea18f55a4dc9" @@ -14620,6 +15892,14 @@ path-browserify@^1.0.1: resolved "https://registry.yarnpkg.com/path-browserify/-/path-browserify-1.0.1.tgz#d98454a9c3753d5790860f16f68867b9e46be1fd" integrity sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g== +path-case@^3.0.4: + version "3.0.4" + resolved "https://registry.yarnpkg.com/path-case/-/path-case-3.0.4.tgz#9168645334eb942658375c56f80b4c0cb5f82c6f" + integrity sha512-qO4qCFjXqVTrcbPt/hQfhTQ+VhFsqNKOPtytgNKkKxSoEp3XPUQ8ObFuePylOIok5gjn69ry8XiULxCwot3Wfg== + dependencies: + dot-case "^3.0.4" + tslib "^2.0.3" + path-dirname@^1.0.0: version "1.0.2" resolved "https://registry.yarnpkg.com/path-dirname/-/path-dirname-1.0.2.tgz#cc33d24d525e099a5388c0336c6e32b9160609e0" @@ -14667,6 +15947,18 @@ path-parse@^1.0.7: resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735" integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw== +path-root-regex@^0.1.0: + version "0.1.2" + resolved "https://registry.yarnpkg.com/path-root-regex/-/path-root-regex-0.1.2.tgz#bfccdc8df5b12dc52c8b43ec38d18d72c04ba96d" + integrity sha512-4GlJ6rZDhQZFE0DPVKh0e9jmZ5egZfxTkp7bcRDuPlJXbAwhxcl2dINPUAsjLdejqaLsCeg8axcLjIbvBjN4pQ== + +path-root@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/path-root/-/path-root-0.1.1.tgz#9a4a6814cac1c0cd73360a95f32083c8ea4745b7" + integrity sha512-QLcPegTHF11axjfojBIoDygmS2E3Lf+8+jI6wOVmNVenrKSo3mFdSGiIgdSHenczw3wPtlVMQaFVwGmM7BJdtg== + dependencies: + path-root-regex "^0.1.0" + path-to-regexp@0.1.7: version "0.1.7" resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-0.1.7.tgz#df604178005f522f15eb4490e7247a1bfaa67f8c" @@ -15599,6 +16891,13 @@ promise.series@^0.2.0: resolved "https://registry.yarnpkg.com/promise.series/-/promise.series-0.2.0.tgz#2cc7ebe959fc3a6619c04ab4dbdc9e452d864bbd" integrity sha512-VWQJyU2bcDTgZw8kpfBpB/ejZASlCrzwz5f2hjb/zlujOEB4oeiAhHygAWq8ubsX2GVkD4kCU5V2dwOTaCY5EQ== +promise@^7.1.1: + version "7.3.1" + resolved "https://registry.yarnpkg.com/promise/-/promise-7.3.1.tgz#064b72602b18f90f29192b8b1bc418ffd1ebd3bf" + integrity sha512-nolQXZ/4L+bP/UGlkfaIujX9BKxGwmQ9OT4mOt5yvy8iK1h3wqTEJCijzGANTCCl9nWjY41juyAn2K3Q1hLLTg== + dependencies: + asap "~2.0.3" + promise@^8.1.0: version "8.3.0" resolved "https://registry.yarnpkg.com/promise/-/promise-8.3.0.tgz#8cb333d1edeb61ef23869fbb8a4ea0279ab60e0a" @@ -15705,6 +17004,18 @@ punycode@^2.1.0, punycode@^2.1.1: resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.1.1.tgz#b58b010ac40c22c5657616c8d2c2c02c7bf479ec" integrity sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A== +pvtsutils@^1.3.2: + version "1.3.2" + resolved "https://registry.yarnpkg.com/pvtsutils/-/pvtsutils-1.3.2.tgz#9f8570d132cdd3c27ab7d51a2799239bf8d8d5de" + integrity sha512-+Ipe2iNUyrZz+8K/2IOo+kKikdtfhRKzNpQbruF2URmqPtoqAs8g3xS7TJvFF2GcPXjh7DkqMnpVveRFq4PgEQ== + dependencies: + tslib "^2.4.0" + +pvutils@^1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/pvutils/-/pvutils-1.1.3.tgz#f35fc1d27e7cd3dfbd39c0826d173e806a03f5a3" + integrity sha512-pMpnA0qRdFp32b1sJl1wOJNxZLQ2cbQx+k6tjNtZ8CpvVhNqEPRgivZ2WOUev2YMajecdH7ctUPDvEe87nariQ== + q@^1.1.2: version "1.5.1" resolved "https://registry.yarnpkg.com/q/-/q-1.5.1.tgz#7e32f75b41381291d04611f1bf14109ac00651d7" @@ -15926,7 +17237,7 @@ react-is@17.0.2, react-is@^17.0.1: resolved "https://registry.yarnpkg.com/react-is/-/react-is-17.0.2.tgz#e691d4a8e9c789365655539ab372762b0efb54f0" integrity sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w== -react-is@^16.13.1: +react-is@^16.13.1, react-is@^16.7.0: version "16.13.1" resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4" integrity sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ== @@ -16105,7 +17416,7 @@ read-yaml-file@^1.1.0: string_decoder "~1.1.1" util-deprecate "~1.0.1" -readable-stream@^3.0.6, readable-stream@^3.5.0, readable-stream@^3.6.0: +readable-stream@^3.0.6, readable-stream@^3.4.0, readable-stream@^3.5.0, readable-stream@^3.6.0: version "3.6.0" resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-3.6.0.tgz#337bbda3adc0706bd3e024426a286d4b4b2c9198" integrity sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA== @@ -16242,6 +17553,15 @@ relateurl@^0.2.7: resolved "https://registry.yarnpkg.com/relateurl/-/relateurl-0.2.7.tgz#54dbf377e51440aca90a4cd274600d3ff2d888a9" integrity sha512-G08Dxvm4iDN3MLM0EsP62EDV9IuhXPR6blNz6Utcp7zyV3tr4HVNINt6MpaRWbxoOHT3Q7YN2P+jaHX8vUbgog== +relay-runtime@12.0.0: + version "12.0.0" + resolved "https://registry.yarnpkg.com/relay-runtime/-/relay-runtime-12.0.0.tgz#1e039282bdb5e0c1b9a7dc7f6b9a09d4f4ff8237" + integrity sha512-QU6JKr1tMsry22DXNy9Whsq5rmvwr3LSZiiWV/9+DFpuTWvp+WFhobWMc8TC4OjKFfNhEZy7mOiqUAn5atQtug== + dependencies: + "@babel/runtime" "^7.0.0" + fbjs "^3.0.0" + invariant "^2.2.4" + remark-external-links@^8.0.0: version "8.0.0" resolved "https://registry.yarnpkg.com/remark-external-links/-/remark-external-links-8.0.0.tgz#308de69482958b5d1cd3692bc9b725ce0240f345" @@ -16310,11 +17630,21 @@ remark-squeeze-paragraphs@4.0.0: dependencies: mdast-squeeze-paragraphs "^4.0.0" +remedial@^1.0.7: + version "1.0.8" + resolved "https://registry.yarnpkg.com/remedial/-/remedial-1.0.8.tgz#a5e4fd52a0e4956adbaf62da63a5a46a78c578a0" + integrity sha512-/62tYiOe6DzS5BqVsNpH/nkGlX45C/Sp6V+NtiN6JQNS1Viay7cWkazmRkrQrdFj2eshDe96SIQNIoMxqhzBOg== + remove-trailing-separator@^1.0.1: version "1.1.0" resolved "https://registry.yarnpkg.com/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz#c24bce2a283adad5bc3f58e0d48249b92379d8ef" integrity sha512-/hS+Y0u3aOfIETiaiirUFwDBDzmXPvO+jAfKTitUngIPzdKc6Z0LoFjM/CK5PL4C+eKwHohlHAb6H0VFfmmUsw== +remove-trailing-spaces@^1.0.6: + version "1.0.8" + resolved "https://registry.yarnpkg.com/remove-trailing-spaces/-/remove-trailing-spaces-1.0.8.tgz#4354d22f3236374702f58ee373168f6d6887ada7" + integrity sha512-O3vsMYfWighyFbTd8hk8VaSj9UAGENxAtX+//ugIst2RMk5e03h6RoIS+0ylsFxY1gvmPuAY/PO4It+gPEeySA== + renderkid@^2.0.4: version "2.0.7" resolved "https://registry.yarnpkg.com/renderkid/-/renderkid-2.0.7.tgz#464f276a6bdcee606f4a15993f9b29fc74ca8609" @@ -16381,16 +17711,16 @@ resolve-cwd@^3.0.0: dependencies: resolve-from "^5.0.0" +resolve-from@5.0.0, resolve-from@^5.0.0: + version "5.0.0" + resolved "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz" + integrity sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw== + resolve-from@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-4.0.0.tgz#4abcd852ad32dd7baabfe9b40e00a36db5f392e6" integrity sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g== -resolve-from@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-5.0.0.tgz#c35225843df8f776df21c57557bc087e9dfdfc69" - integrity sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw== - resolve-url-loader@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/resolve-url-loader/-/resolve-url-loader-4.0.0.tgz#d50d4ddc746bb10468443167acf800dcd6c3ad57" @@ -16430,6 +17760,11 @@ resolve@^2.0.0-next.3: path-parse "^1.0.7" supports-preserve-symlinks-flag "^1.0.0" +response-iterator@^0.2.6: + version "0.2.6" + resolved "https://registry.yarnpkg.com/response-iterator/-/response-iterator-0.2.6.tgz#249005fb14d2e4eeb478a3f735a28fd8b4c9f3da" + integrity sha512-pVzEEzrsg23Sh053rmDUvLSkGXluZio0qu8VT6ukrYuvtjVfCbDZH9d6PGXb8HZfzdNZt8feXv/jvUzlhRgLnw== + restore-cursor@^3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-3.1.0.tgz#39f67c54b3a7a58cea5236d95cf0034239631f7e" @@ -16552,6 +17887,11 @@ rsvp@^4.8.4: resolved "https://registry.yarnpkg.com/rsvp/-/rsvp-4.8.5.tgz#c8f155311d167f68f21e168df71ec5b083113734" integrity sha512-nfMOlASu9OnRJo1mbEk2cz0D56a1MBNrJ7orjRZQG10XDyuvwksKbuXNp6qa+kbn839HwjwhBzhFmdsaEAfauA== +run-async@^2.4.0: + version "2.4.1" + resolved "https://registry.yarnpkg.com/run-async/-/run-async-2.4.1.tgz#8440eccf99ea3e70bd409d49aab88e10c189a455" + integrity sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ== + run-parallel@^1.1.9: version "1.2.0" resolved "https://registry.yarnpkg.com/run-parallel/-/run-parallel-1.2.0.tgz#66d1368da7bdf921eb9d95bd1a9229e7f21a43ee" @@ -16733,6 +18073,11 @@ scrypt-js@3.0.1, scrypt-js@^3.0.0: resolved "https://registry.yarnpkg.com/scrypt-js/-/scrypt-js-3.0.1.tgz#d314a57c2aef69d1ad98a138a21fe9eafa9ee312" integrity sha512-cdwTTnqPu0Hyvf5in5asVdZocVDTNRmR7XEcJuIzMjJeSHybHl7vpB66AzwTaIg6CLSbtjcxc8fqcySfnTkccA== +scuid@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/scuid/-/scuid-1.1.0.tgz#d3f9f920956e737a60f72d0e4ad280bf324d5dab" + integrity sha512-MuCAyrGZcTLfQoH2XoBlQ8C6bzwN88XT/0slOGz0pn8+gIP85BOAfYa44ZXQUTOwRwPU0QvgU+V+OSajl/59Xg== + secp256k1@3.7.1: version "3.7.1" resolved "https://registry.yarnpkg.com/secp256k1/-/secp256k1-3.7.1.tgz#12e473e0e9a7c2f2d4d4818e722ad0e14cc1e2f1" @@ -16804,6 +18149,15 @@ send@0.18.0: range-parser "~1.2.1" statuses "2.0.1" +sentence-case@^3.0.4: + version "3.0.4" + resolved "https://registry.yarnpkg.com/sentence-case/-/sentence-case-3.0.4.tgz#3645a7b8c117c787fde8702056225bb62a45131f" + integrity sha512-8LS0JInaQMCRoQ7YUytAo/xUu5W2XnQxV2HI/6uM6U7CITS1RqPElr30V6uIqyMKM9lJGRVFy5/4CuzcixNYSg== + dependencies: + no-case "^3.0.4" + tslib "^2.0.3" + upper-case-first "^2.0.2" + serialize-javascript@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/serialize-javascript/-/serialize-javascript-4.0.0.tgz#b525e1238489a5ecfc42afacc3fe99e666f4b1aa" @@ -16947,6 +18301,11 @@ signal-exit@^3.0.0, signal-exit@^3.0.2, signal-exit@^3.0.3, signal-exit@^3.0.7: resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.7.tgz#a9a1767f8af84155114eaabd73f99273c8f59ad9" integrity sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ== +signedsource@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/signedsource/-/signedsource-1.0.0.tgz#1ddace4981798f93bd833973803d80d52e93ad6a" + integrity sha512-6+eerH9fEnNmi/hyM1DXcRK3pWdoMQtlkQ+ns0ntzunjKqp5i3sKCc80ym8Fib3iaYhdJUOPdhlJWj1tvge2Ww== + sisteransi@^1.0.5: version "1.0.5" resolved "https://registry.yarnpkg.com/sisteransi/-/sisteransi-1.0.5.tgz#134d681297756437cc05ca01370d3a7a571075ed" @@ -17005,6 +18364,14 @@ smartwrap@^2.0.2: wcwidth "^1.0.1" yargs "^15.1.0" +snake-case@^3.0.4: + version "3.0.4" + resolved "https://registry.yarnpkg.com/snake-case/-/snake-case-3.0.4.tgz#4f2bbd568e9935abdfd593f34c691dadb49c452c" + integrity sha512-LAOh4z89bGQvl9pFfNF8V146i7o7/CqFPbqzYgP+yYzDIDeS9HaNFtXABamRW+AQzEVODcvE79ljJ+8a9YSdMg== + dependencies: + dot-case "^3.0.4" + tslib "^2.0.3" + snapdragon-node@^2.0.1: version "2.1.1" resolved "https://registry.yarnpkg.com/snapdragon-node/-/snapdragon-node-2.1.1.tgz#6c175f86ff14bdb0724563e8f3c1b021a286853b" @@ -17196,6 +18563,13 @@ split-string@^3.0.1, split-string@^3.0.2: dependencies: extend-shallow "^3.0.0" +sponge-case@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/sponge-case/-/sponge-case-1.0.1.tgz#260833b86453883d974f84854cdb63aecc5aef4c" + integrity sha512-dblb9Et4DAtiZ5YSUZHLl4XhH4uK80GhAZrVXdN4O2P4gQ40Wa5UIOPUHlA/nFd2PLblBZWUioLMMAVrgpoYcA== + dependencies: + tslib "^2.0.3" + sprintf-js@~1.0.2: version "1.0.3" resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" @@ -17312,6 +18686,11 @@ stream-transform@^2.1.3: dependencies: mixme "^0.5.1" +streamsearch@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/streamsearch/-/streamsearch-1.1.0.tgz#404dd1e2247ca94af554e841a8ef0eaa238da764" + integrity sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg== + strict-uri-encode@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/strict-uri-encode/-/strict-uri-encode-2.0.0.tgz#b9c7330c7042862f6b142dc274bbcc5866ce3546" @@ -17322,6 +18701,11 @@ string-argv@^0.3.1: resolved "https://registry.yarnpkg.com/string-argv/-/string-argv-0.3.1.tgz#95e2fbec0427ae19184935f816d74aaa4c5c19da" integrity sha512-a1uQGz7IyVy9YwhqjZIZu1c8JO8dNIe20xBmSS6qu9kv++k3JGzCVmprbNN5Kn+BgzD5E7YYwg1CcjuJMRNsvg== +string-env-interpolation@1.0.1, string-env-interpolation@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/string-env-interpolation/-/string-env-interpolation-1.0.1.tgz#ad4397ae4ac53fe6c91d1402ad6f6a52862c7152" + integrity sha512-78lwMoCcn0nNu8LszbP1UA7g55OeE4v7rCeWnM5B453rnNr4aq+5it3FEYtZrSEiMvHZOZ9Jlqb0OD0M2VInqg== + string-hash@^1.1.1: version "1.1.3" resolved "https://registry.yarnpkg.com/string-hash/-/string-hash-1.1.3.tgz#e8aafc0ac1855b4666929ed7dd1275df5d6c811b" @@ -17663,6 +19047,18 @@ svgo@^2.7.0: picocolors "^1.0.0" stable "^0.1.8" +swap-case@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/swap-case/-/swap-case-2.0.2.tgz#671aedb3c9c137e2985ef51c51f9e98445bf70d9" + integrity sha512-kc6S2YS/2yXbtkSMunBtKdah4VFETZ8Oh6ONSmSd9bRxhqTrtARUCBUiWXH3xVPpvR7tz2CSnkuXVE42EcGnMw== + dependencies: + tslib "^2.0.3" + +symbol-observable@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/symbol-observable/-/symbol-observable-4.0.0.tgz#5b425f192279e87f2f9b937ac8540d1984b39205" + integrity sha512-b19dMThMV4HVFynSAM1++gBHAbk2Tc/osgLIBZMKsyqh34jb2e8Os7T6ZW/Bt3pJFdBTd2JwAnAAEQV7rSNvcQ== + symbol-tree@^3.2.4: version "3.2.4" resolved "https://registry.yarnpkg.com/symbol-tree/-/symbol-tree-3.2.4.tgz#430637d248ba77e078883951fb9aa0eed7c63fa2" @@ -17893,7 +19289,7 @@ through2@^2.0.0: readable-stream "~2.3.6" xtend "~4.0.1" -through@^2.3.8: +through@^2.3.6, through@^2.3.8: version "2.3.8" resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5" integrity sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg== @@ -17910,6 +19306,13 @@ timers-browserify@^2.0.4: dependencies: setimmediate "^1.0.4" +title-case@^3.0.3: + version "3.0.3" + resolved "https://registry.yarnpkg.com/title-case/-/title-case-3.0.3.tgz#bc689b46f02e411f1d1e1d081f7c3deca0489982" + integrity sha512-e1zGYRvbffpcHIrnuqT0Dh+gEJtDaxDSoG4JAIpq4oDFyooziLBIiYQv0GBT4FUAnUop5uZ1hiIAj7oAF6sOCA== + dependencies: + tslib "^2.0.3" + tmp@^0.0.33: version "0.0.33" resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.0.33.tgz#6d34335889768d21b2bcda0aa277ced3b1bfadf9" @@ -18064,6 +19467,13 @@ ts-interface-checker@^0.1.9: resolved "https://registry.yarnpkg.com/ts-interface-checker/-/ts-interface-checker-0.1.13.tgz#784fd3d679722bc103b1b4b8030bcddb5db2a699" integrity sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA== +ts-invariant@^0.10.3: + version "0.10.3" + resolved "https://registry.yarnpkg.com/ts-invariant/-/ts-invariant-0.10.3.tgz#3e048ff96e91459ffca01304dbc7f61c1f642f6c" + integrity sha512-uivwYcQaxAucv1CzRp2n/QdYPo4ILf9VXgH19zEIjFx2EJufV16P0JtJVpYHy89DItG6Kwj2oIUjrcK5au+4tQ== + dependencies: + tslib "^2.1.0" + ts-loader@^9.3.1: version "9.4.1" resolved "https://registry.yarnpkg.com/ts-loader/-/ts-loader-9.4.1.tgz#b6f3d82db0eac5a8295994f8cb5e4940ff6b1060" @@ -18074,7 +19484,12 @@ ts-loader@^9.3.1: micromatch "^4.0.0" semver "^7.3.4" -ts-node@^10.7.0: +ts-log@^2.2.3: + version "2.2.5" + resolved "https://registry.yarnpkg.com/ts-log/-/ts-log-2.2.5.tgz#aef3252f1143d11047e2cb6f7cfaac7408d96623" + integrity sha512-PGcnJoTBnVGy6yYNFxWVNkdcAuAMstvutN9MgDJIV6L0oG8fB+ZNNy1T+wJzah8RPGor1mZuPQkVfXNDpy9eHA== + +ts-node@^10.7.0, ts-node@^10.8.1: version "10.9.1" resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-10.9.1.tgz#e73de9102958af9e1f0b168a6ff320e25adcff4b" integrity sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw== @@ -18113,7 +19528,7 @@ tslib@^1.8.1, tslib@^1.9.0, tslib@^1.9.3: resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00" integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg== -tslib@^2.0.0, tslib@^2.0.1, tslib@^2.0.3, tslib@^2.1.0: +tslib@^2.0.0, tslib@^2.0.1, tslib@^2.0.3, tslib@^2.1.0, tslib@^2.3.0, tslib@^2.4.0, tslib@^2.4.1, tslib@~2.4.0: version "2.4.1" resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.4.1.tgz#0d0bfbaac2880b91e22df0768e55be9753a5b17e" integrity sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA== @@ -18309,6 +19724,11 @@ u2f-api@0.2.7: resolved "https://registry.yarnpkg.com/u2f-api/-/u2f-api-0.2.7.tgz#17bf196b242f6bf72353d9858e6a7566cc192720" integrity sha512-fqLNg8vpvLOD5J/z4B6wpPg4Lvowz1nJ9xdHcCzdUPKcFE/qNCceV2gNZxSJd5vhAZemHr/K/hbzVA0zxB5mkg== +ua-parser-js@^0.7.30: + version "0.7.32" + resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-0.7.32.tgz#cd8c639cdca949e30fa68c44b7813ef13e36d211" + integrity sha512-f9BESNVhzlhEFf2CHMSj40NWOjYPl1YKYbrvIr/hFTDEmLq7SRbWvm7FcdcpCYT95zrOhC7gZSxjdnnTpBcwVw== + uglify-js@^3.1.4: version "3.17.4" resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.17.4.tgz#61678cf5fa3f5b7eb789bb345df29afb8257c22c" @@ -18324,6 +19744,18 @@ unbox-primitive@^1.0.2: has-symbols "^1.0.3" which-boxed-primitive "^1.0.2" +unc-path-regex@^0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/unc-path-regex/-/unc-path-regex-0.1.2.tgz#e73dd3d7b0d7c5ed86fbac6b0ae7d8c6a69d50fa" + integrity sha512-eXL4nmJT7oCpkZsHZUOJo8hcX3GbsiDOa0Qu9F646fi8dT3XuSVopVqAcEiVzSKKH7UoDti23wNX3qGFxcW5Qg== + +undici@^5.12.0, undici@^5.8.0: + version "5.12.0" + resolved "https://registry.yarnpkg.com/undici/-/undici-5.12.0.tgz#c758ffa704fbcd40d506e4948860ccaf4099f531" + integrity sha512-zMLamCG62PGjd9HHMpo05bSLvvwWOZgGeiWlN/vlqu3+lRo3elxktVGEyLMX+IO7c2eflLjcW74AlkhEZm15mg== + dependencies: + busboy "^1.6.0" + unfetch@^4.2.0: version "4.2.0" resolved "https://registry.yarnpkg.com/unfetch/-/unfetch-4.2.0.tgz#7e21b0ef7d363d8d9af0fb929a5555f6ef97a3be" @@ -18476,6 +19908,13 @@ universalify@^2.0.0: resolved "https://registry.yarnpkg.com/universalify/-/universalify-2.0.0.tgz#75a4984efedc4b08975c5aeb73f530d02df25717" integrity sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ== +unixify@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/unixify/-/unixify-1.0.0.tgz#3a641c8c2ffbce4da683a5c70f03a462940c2090" + integrity sha512-6bc58dPYhCMHHuwxldQxO3RRNZ4eCogZ/st++0+fcC1nr0jiGUtAdBJ2qzmLQWSxbtz42pWt4QQMiZ9HvZf5cg== + dependencies: + normalize-path "^2.1.1" + unpipe@1.0.0, unpipe@~1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec" @@ -18514,6 +19953,20 @@ update-browserslist-db@^1.0.9: escalade "^3.1.1" picocolors "^1.0.0" +upper-case-first@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/upper-case-first/-/upper-case-first-2.0.2.tgz#992c3273f882abd19d1e02894cc147117f844324" + integrity sha512-514ppYHBaKwfJRK/pNC6c/OxfGa0obSnAl106u97Ed0I625Nin96KAjttZF6ZL3e1XLtphxnqrOi9iWgm+u+bg== + dependencies: + tslib "^2.0.3" + +upper-case@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/upper-case/-/upper-case-2.0.2.tgz#d89810823faab1df1549b7d97a76f8662bae6f7a" + integrity sha512-KgdgDGJt2TpuwBUIjgG6lzw2GWFRCW9Qkfkiv0DxqHHLYJHmtmdUIKcZd8rHgFSjopVTlw6ggzCm1b8MFQwikg== + dependencies: + tslib "^2.0.3" + uri-js@^4.2.2: version "4.4.1" resolved "https://registry.yarnpkg.com/uri-js/-/uri-js-4.4.1.tgz#9b1a52595225859e55f669d928f88c6c57f2a77e" @@ -18654,6 +20107,11 @@ validate-npm-package-license@^3.0.1: spdx-correct "^3.0.0" spdx-expression-parse "^3.0.0" +value-or-promise@1.0.11, value-or-promise@^1.0.11: + version "1.0.11" + resolved "https://registry.yarnpkg.com/value-or-promise/-/value-or-promise-1.0.11.tgz#3e90299af31dd014fe843fe309cefa7c1d94b140" + integrity sha512-41BrgH+dIbCFXClcSapVs5M6GkENd3gQOJpEfPDNa71LsUGMXDL0jMWpI/Rh7WhX+Aalfz2TTS3Zt5pUsbnhLg== + vary@~1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc" @@ -18765,6 +20223,27 @@ web-namespaces@^1.0.0: resolved "https://registry.yarnpkg.com/web-namespaces/-/web-namespaces-1.1.4.tgz#bc98a3de60dadd7faefc403d1076d529f5e030ec" integrity sha512-wYxSGajtmoP4WxfejAPIr4l0fVh+jeMXZb08wNc0tMg6xsfZXj3cECqIK0G7ZAqUq0PP8WlMDtaOGVBTAWztNw== +web-streams-polyfill@4.0.0-beta.3: + version "4.0.0-beta.3" + resolved "https://registry.yarnpkg.com/web-streams-polyfill/-/web-streams-polyfill-4.0.0-beta.3.tgz#2898486b74f5156095e473efe989dcf185047a38" + integrity sha512-QW95TCTaHmsYfHDybGMwO5IJIM93I/6vTRk+daHTWFPhwh+C8Cg7j7XyKrwrj8Ib6vYXe0ocYNrmzY4xAAN6ug== + +web-streams-polyfill@^3.2.0: + version "3.2.1" + resolved "https://registry.yarnpkg.com/web-streams-polyfill/-/web-streams-polyfill-3.2.1.tgz#71c2718c52b45fd49dbeee88634b3a60ceab42a6" + integrity sha512-e0MO3wdXWKrLbL0DgGnUV7WHVuw9OUvL4hjgnPkIeEvESk74gAITi5G606JtZPp39cd8HA9VQzCIvA49LpPN5Q== + +webcrypto-core@^1.7.4: + version "1.7.5" + resolved "https://registry.yarnpkg.com/webcrypto-core/-/webcrypto-core-1.7.5.tgz#c02104c953ca7107557f9c165d194c6316587ca4" + integrity sha512-gaExY2/3EHQlRNNNVSrbG2Cg94Rutl7fAaKILS1w8ZDhGxdFOaw6EbCfHIxPy9vt/xwp5o0VQAx9aySPF6hU1A== + dependencies: + "@peculiar/asn1-schema" "^2.1.6" + "@peculiar/json-schema" "^1.1.12" + asn1js "^3.0.1" + pvtsutils "^1.3.2" + tslib "^2.4.0" + webidl-conversions@^3.0.0: version "3.0.1" resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-3.0.1.tgz#24534275e2a7bc6be7bc86611cc16ae0a5654871" @@ -19016,7 +20495,7 @@ whatwg-encoding@^2.0.0: dependencies: iconv-lite "0.6.3" -whatwg-fetch@^3.6.2: +whatwg-fetch@^3.4.1, whatwg-fetch@^3.6.2: version "3.6.2" resolved "https://registry.yarnpkg.com/whatwg-fetch/-/whatwg-fetch-3.6.2.tgz#dced24f37f2624ed0281725d51d0e2e3fe677f8c" integrity sha512-bJlen0FcuU/0EMLrdbJ7zOnW6ITZLrZMIarMUVmdKtsGvZna8vxKYaexICWPfZ8qwf9fzNq+UEIZrnSaApt6RA== @@ -19392,16 +20871,16 @@ ws@7.5.3: resolved "https://registry.yarnpkg.com/ws/-/ws-7.5.3.tgz#160835b63c7d97bfab418fc1b8a9fced2ac01a74" integrity sha512-kQ/dHIzuLrS6Je9+uv81ueZomEwH0qVYstcAQ4/Z93K8zeko9gtAbttJWzoC5ukqXY1PpoouV3+VSOqEAFt5wg== +ws@8.11.0, ws@^8.2.3, ws@^8.4.2, ws@^8.9.0: + version "8.11.0" + resolved "https://registry.yarnpkg.com/ws/-/ws-8.11.0.tgz#6a0d36b8edfd9f96d8b25683db2f8d7de6e8e143" + integrity sha512-HPG3wQd9sNQoT9xHyNCXoDUa+Xw/VevmY9FoHyQ+g+rrMn4j6FB4np7Z0OhdTgjx6MgQLK7jwSy1YecU1+4Asg== + ws@^7.4.6: version "7.5.9" resolved "https://registry.yarnpkg.com/ws/-/ws-7.5.9.tgz#54fa7db29f4c7cec68b1ddd3a89de099942bb591" integrity sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q== -ws@^8.2.3, ws@^8.4.2, ws@^8.9.0: - version "8.11.0" - resolved "https://registry.yarnpkg.com/ws/-/ws-8.11.0.tgz#6a0d36b8edfd9f96d8b25683db2f8d7de6e8e143" - integrity sha512-HPG3wQd9sNQoT9xHyNCXoDUa+Xw/VevmY9FoHyQ+g+rrMn4j6FB4np7Z0OhdTgjx6MgQLK7jwSy1YecU1+4Asg== - x-default-browser@^0.4.0: version "0.4.0" resolved "https://registry.yarnpkg.com/x-default-browser/-/x-default-browser-0.4.0.tgz#70cf0da85da7c0ab5cb0f15a897f2322a6bdd481" @@ -19454,6 +20933,11 @@ yallist@^4.0.0: resolved "https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72" integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A== +yaml-ast-parser@^0.0.43: + version "0.0.43" + resolved "https://registry.yarnpkg.com/yaml-ast-parser/-/yaml-ast-parser-0.0.43.tgz#e8a23e6fb4c38076ab92995c5dca33f3d3d7c9bb" + integrity sha512-2PTINUwsRqSd+s8XxKaJWQlUuEMHJQyEuh2edBbW8KNJz0SJPwUSD2zRWqezFEdN7IzAgeuYHFUCF7o8zRdZ0A== + yaml@^1.10.0, yaml@^1.10.2, yaml@^1.7.2: version "1.10.2" resolved "https://registry.yarnpkg.com/yaml/-/yaml-1.10.2.tgz#2301c5ffbf12b467de8da2333a459e29e7920e4b" @@ -19506,7 +20990,7 @@ yargs@^13.2.4: y18n "^4.0.0" yargs-parser "^13.1.2" -yargs@^15.1.0: +yargs@^15.1.0, yargs@^15.3.1: version "15.4.1" resolved "https://registry.yarnpkg.com/yargs/-/yargs-15.4.1.tgz#0d87a16de01aee9d8bec2bfbf74f67851730f4f8" integrity sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A== @@ -19536,7 +21020,7 @@ yargs@^16.2.0: y18n "^5.0.5" yargs-parser "^20.2.2" -yargs@^17.1.1, yargs@^17.3.1: +yargs@^17.0.0, yargs@^17.3.1: version "17.6.2" resolved "https://registry.yarnpkg.com/yargs/-/yargs-17.6.2.tgz#2e23f2944e976339a1ee00f18c77fedee8332541" integrity sha512-1/9UrdHjDZc0eOU0HxOHoS78C69UD3JRMvzlJ7S79S2nTaWRA/whGCTV8o9e/N/1Va9YIV7Q4sOxD8VV4pCWOw== @@ -19549,6 +21033,19 @@ yargs@^17.1.1, yargs@^17.3.1: y18n "^5.0.5" yargs-parser "^21.1.1" +yargs@^17.1.1: + version "17.6.0" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-17.6.0.tgz#e134900fc1f218bc230192bdec06a0a5f973e46c" + integrity sha512-8H/wTDqlSwoSnScvV2N/JHfLWOKuh5MVla9hqLjK3nsfyy6Y4kDSYSvkU5YCUEPOSnRXfIyx3Sq+B/IWudTo4g== + dependencies: + cliui "^8.0.1" + escalade "^3.1.1" + get-caller-file "^2.0.5" + require-directory "^2.1.1" + string-width "^4.2.3" + y18n "^5.0.5" + yargs-parser "^21.0.0" + yn@3.1.1: version "3.1.1" resolved "https://registry.yarnpkg.com/yn/-/yn-3.1.1.tgz#1e87401a09d767c1d5eab26a6e4c185182d2eb50" @@ -19559,6 +21056,18 @@ yocto-queue@^0.1.0: resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b" integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q== +zen-observable-ts@^1.2.5: + version "1.2.5" + resolved "https://registry.yarnpkg.com/zen-observable-ts/-/zen-observable-ts-1.2.5.tgz#6c6d9ea3d3a842812c6e9519209365a122ba8b58" + integrity sha512-QZWQekv6iB72Naeake9hS1KxHlotfRpe+WGNbNx5/ta+R3DNjVO2bswf63gXlWDcs+EMd7XY8HfVQyP1X6T4Zg== + dependencies: + zen-observable "0.8.15" + +zen-observable@0.8.15: + version "0.8.15" + resolved "https://registry.yarnpkg.com/zen-observable/-/zen-observable-0.8.15.tgz#96415c512d8e3ffd920afd3889604e30b9eaac15" + integrity sha512-PQ2PC7R9rslx84ndNBZB/Dkv8V8fZEpk83RLgXtYd0fwUgEjseMn1Dgajh2x6S8QbZAFa9p2qVCEuYZNgve0dQ== + zwitch@^1.0.0: version "1.0.5" resolved "https://registry.yarnpkg.com/zwitch/-/zwitch-1.0.5.tgz#d11d7381ffed16b742f6af7b3f223d5cd9fe9920"