diff --git a/.env b/.env index edd2c958b..40c5aa9db 100644 --- a/.env +++ b/.env @@ -1 +1 @@ -VITE_SUBSQUID_URL="https://squid.subsquid.io/origin-squid/v/v5/graphql" +VITE_SUBSQUID_URL="https://squid.subsquid.io/origin-squid/v/v6/graphql" diff --git a/.graphqlconfig b/.graphqlconfig index 37ef6aa86..8e889c5a1 100644 --- a/.graphqlconfig +++ b/.graphqlconfig @@ -1,4 +1,4 @@ { "name": "Subsquid GraphQL Schema", - "schemaPath": "https://squid.subsquid.io/origin-squid/v/v5/graphql" + "schemaPath": "https://squid.subsquid.io/origin-squid/v/v6/graphql" } diff --git a/libs/oeth/history/src/components/APYContainer.tsx b/libs/oeth/history/src/components/APYContainer.tsx index a78598026..aa2eb355c 100644 --- a/libs/oeth/history/src/components/APYContainer.tsx +++ b/libs/oeth/history/src/components/APYContainer.tsx @@ -2,10 +2,11 @@ import { Divider, Skeleton, Stack, Typography } from '@mui/material'; import { tokens } from '@origin/shared/contracts'; import { balanceFormat } from '@origin/shared/utils'; import { useIntl } from 'react-intl'; +import { formatEther } from 'viem'; import { useAccount, useBalance } from 'wagmi'; import { usePendingYield } from '../hooks'; -import { useHistoryTableQuery } from '../queries.generated'; +import { useHistoryPageQuery } from '../queries.generated'; import type { StackProps } from '@mui/material'; @@ -17,10 +18,11 @@ export function APYContainer() { token: tokens.mainnet.OETH.address, watch: true, }); - const { data: earnings, isLoading: earningsLoading } = useHistoryTableQuery( + const { data, isLoading } = useHistoryPageQuery( { address: address?.toLowerCase(), offset: 0 }, { enabled: isConnected, + select: (data) => data?.addresses?.at(0), }, ); const { data: pendingYield, isLoading: pendingYieldLoading } = @@ -56,10 +58,10 @@ export function APYContainer() { defaultMessage: 'Lifetime Earnings (OETH)', })} value={intl.formatNumber( - earnings?.addressById?.earned ?? 0, + +formatEther(BigInt(data.earned ?? '0')), balanceFormat, )} - isLoading={isConnected && earningsLoading} + isLoading={isConnected && isLoading} /> ); diff --git a/libs/oeth/history/src/components/ExportData.tsx b/libs/oeth/history/src/components/ExportData.tsx index 747fdbb38..74e5390e6 100644 --- a/libs/oeth/history/src/components/ExportData.tsx +++ b/libs/oeth/history/src/components/ExportData.tsx @@ -1,4 +1,4 @@ -import React, { useCallback, useRef } from 'react'; +import { useCallback, useRef } from 'react'; import { Box, Link } from '@mui/material'; import { useIntl } from 'react-intl'; diff --git a/libs/oeth/history/src/components/HistoryCard.tsx b/libs/oeth/history/src/components/HistoryCard.tsx index 4f931353b..b352ac469 100644 --- a/libs/oeth/history/src/components/HistoryCard.tsx +++ b/libs/oeth/history/src/components/HistoryCard.tsx @@ -5,26 +5,27 @@ import { ConnectedButton } from '@origin/shared/providers'; import { useIntl } from 'react-intl'; import { useAccount } from 'wagmi'; -import { useHistoryTableWithFiltersQuery } from '../queries.generated'; +import { useHistoryPageQuery } from '../queries.generated'; import { ExportData } from './ExportData'; import { HistoryFilters } from './HistoryFilters'; import { HistoryTable } from './HistoryTable'; +import type { HistoryType } from '@origin/oeth/shared'; + const PAGE_SIZE = 20; export function HistoryCard() { const intl = useIntl(); const [page, setPage] = useState(0); - const [filters, setFilters] = useState([]); + const [filters, setFilters] = useState([]); const { address, isConnected } = useAccount(); - - const { data, isFetching } = useHistoryTableWithFiltersQuery( + const { data, isFetching, isLoading } = useHistoryPageQuery( { address: address?.toLowerCase(), filters: filters.length ? filters : undefined, offset: page * PAGE_SIZE, }, - { enabled: isConnected }, + { enabled: isConnected, select: (data) => data?.addresses?.at(0)?.history }, ); return ( @@ -46,15 +47,15 @@ export function HistoryCard() { filters={filters} onChange={(values) => setFilters(values)} /> - + {isConnected ? ( 0} page={page} setPage={(page) => setPage(page)} diff --git a/libs/oeth/history/src/components/HistoryCell.tsx b/libs/oeth/history/src/components/HistoryCell.tsx deleted file mode 100644 index 6524752f3..000000000 --- a/libs/oeth/history/src/components/HistoryCell.tsx +++ /dev/null @@ -1,35 +0,0 @@ -import { Stack, Typography } from '@mui/material'; -import { useIntl } from 'react-intl'; -import { useTransaction } from 'wagmi'; - -import { TransactionIcon } from './TransactionIcon'; - -import type { HexAddress } from '@origin/shared/utils'; - -interface Props { - timestamp: string; - type: 'Sent' | 'Received' | 'Yield' | 'Swap'; - transactionHash: string; -} - -export function HistoryCell(props: Props) { - const intl = useIntl(); - - // eslint-disable-next-line @typescript-eslint/no-unused-vars - const { data } = useTransaction({ - hash: props.transactionHash as unknown as HexAddress, - }); - - return ( - - {/* @ts-expect-error whatever */} - - - {props.type} - - {intl.formatDate(new Date(props.timestamp))} - - - - ); -} diff --git a/libs/oeth/history/src/components/HistoryFilters.tsx b/libs/oeth/history/src/components/HistoryFilters.tsx index a0efc550a..f1fe5e2e4 100644 --- a/libs/oeth/history/src/components/HistoryFilters.tsx +++ b/libs/oeth/history/src/components/HistoryFilters.tsx @@ -11,6 +11,7 @@ import { Typography, useTheme, } from '@mui/material'; +import { HistoryType } from '@origin/oeth/shared'; import { isNilOrEmpty } from '@origin/shared/utils'; import { defineMessage, useIntl } from 'react-intl'; @@ -23,32 +24,38 @@ const styles = { }; const filterOptions = [ - { label: defineMessage({ defaultMessage: 'Yield' }), value: 'Yield' }, - { label: defineMessage({ defaultMessage: 'Swap' }), value: 'Swap' }, - { label: defineMessage({ defaultMessage: 'Sent' }), value: 'Sent' }, - { label: defineMessage({ defaultMessage: 'Received' }), value: 'Received' }, + { + label: defineMessage({ defaultMessage: 'Yield' }), + value: HistoryType.Yield, + }, + { label: defineMessage({ defaultMessage: 'Swap' }), value: HistoryType.Swap }, + { label: defineMessage({ defaultMessage: 'Sent' }), value: HistoryType.Sent }, + { + label: defineMessage({ defaultMessage: 'Received' }), + value: HistoryType.Received, + }, ]; export type HistoryFiltersProps = { - filters: string[]; - onChange: (values: string[]) => void; + filters: HistoryType[]; + onChange: (values: HistoryType[]) => void; }; export function HistoryFilters({ filters, onChange }: HistoryFiltersProps) { - const [selected, setSelectedTypes] = useState(filters); + const [selected, setSelectedTypes] = useState(filters); const intl = useIntl(); const theme = useTheme(); const [anchorEl, setAnchorEl] = useState(null); const handleSelect = ( e: React.ChangeEvent, - label: string, + value: HistoryType, ) => { setSelectedTypes((prev) => { if (e.target.checked) { - return [...prev, label]; + return [...prev, value]; } else { - return prev.filter((val) => val !== label); + return prev.filter((val) => val !== value); } }); }; diff --git a/libs/oeth/history/src/components/HistoryTable.tsx b/libs/oeth/history/src/components/HistoryTable.tsx index b3357bcf6..bf9af371e 100644 --- a/libs/oeth/history/src/components/HistoryTable.tsx +++ b/libs/oeth/history/src/components/HistoryTable.tsx @@ -18,13 +18,17 @@ import { useReactTable, } from '@tanstack/react-table'; import { useIntl } from 'react-intl'; +import { formatEther } from 'viem'; import { HistoryFilterButton } from './HistoryButton'; -import { HistoryCell } from './HistoryCell'; +import { TransactionIcon } from './TransactionIcon'; -import type { HistoryTableQuery } from '../queries.generated'; +import type { StackProps } from '@mui/material'; +import type { HistoryType } from '@origin/oeth/shared'; -export type Rows = HistoryTableQuery['addressById']['history']; +import type { HistoryPageQuery } from '../queries.generated'; + +export type Rows = HistoryPageQuery['addresses'][0]['history']; interface Props { rows: Rows; @@ -49,11 +53,9 @@ export function HistoryTable({ () => [ columnHelper.accessor('type', { cell: (info) => ( - ), header: intl.formatMessage({ defaultMessage: 'Type' }), @@ -66,7 +68,10 @@ export function HistoryTable({ columnHelper.accessor('value', { cell: (info) => ( - {intl.formatNumber(info.getValue(), quantityFormat)} + {intl.formatNumber( + +formatEther(BigInt(info.getValue() ?? '0')), + quantityFormat, + )} ), header: () => ( @@ -78,7 +83,10 @@ export function HistoryTable({ columnHelper.accessor('balance', { cell: (info) => ( - {intl.formatNumber(info.getValue(), quantityFormat)} + {intl.formatNumber( + +formatEther(BigInt(info.getValue() ?? '0')), + quantityFormat, + )} ), header: () => ( @@ -160,14 +168,7 @@ export function HistoryTable({ }} > {row.getVisibleCells().map((cell) => ( - + {flexRender(cell.column.columnDef.cell, cell.getContext())} ))} @@ -204,3 +205,24 @@ export function HistoryTable({ ); } + +type HistoryTypeCellProps = { + timestamp: string; + type: HistoryType; +} & StackProps; + +function HistoryTypeCell({ timestamp, type, ...rest }: HistoryTypeCellProps) { + const intl = useIntl(); + + return ( + + + + {type} + + {intl.formatDate(new Date(timestamp))} + + + + ); +} diff --git a/libs/oeth/history/src/components/TransactionIcon.stories.tsx b/libs/oeth/history/src/components/TransactionIcon.stories.tsx index 96ce6c6e8..7209d7fd7 100644 --- a/libs/oeth/history/src/components/TransactionIcon.stories.tsx +++ b/libs/oeth/history/src/components/TransactionIcon.stories.tsx @@ -1,3 +1,5 @@ +import { HistoryType } from '@origin/oeth/shared'; + import { TransactionIcon } from './TransactionIcon'; import type { Meta, StoryObj } from '@storybook/react'; @@ -6,7 +8,7 @@ const meta: Meta = { component: TransactionIcon, title: 'History/TransactionIcon', args: { - type: 'yield', + type: HistoryType.Yield, }, }; @@ -24,19 +26,19 @@ export const SmallScreen: StoryObj = { export const Sent: StoryObj = { args: { - type: 'sent', + type: HistoryType.Sent, }, }; export const Received: StoryObj = { args: { - type: 'received', + type: HistoryType.Received, }, }; export const Swap: StoryObj = { args: { - type: 'swap', + type: HistoryType.Swap, tokenIcon: 'https://app.oeth.com/images/currency/reth-icon-small.png', }, }; diff --git a/libs/oeth/history/src/components/TransactionIcon.tsx b/libs/oeth/history/src/components/TransactionIcon.tsx index 1ee6da921..eaa9af2a3 100644 --- a/libs/oeth/history/src/components/TransactionIcon.tsx +++ b/libs/oeth/history/src/components/TransactionIcon.tsx @@ -1,23 +1,34 @@ import { Box } from '@mui/material'; +import { HistoryType } from '@origin/oeth/shared'; +import { isNilOrEmpty } from '@origin/shared/utils'; -type Props = - | { - type: 'sent' | 'received' | 'yield'; - } - | { type: 'swap'; tokenIcon: string }; +import type { BoxProps } from '@mui/material'; -export function TransactionIcon(props: Props) { +export type TransactionIconProps = { + type: HistoryType; + tokenIcon?: string; +} & BoxProps; + +export function TransactionIcon({ + type, + tokenIcon, + ...rest +}: TransactionIconProps) { return ( - {props.type === 'swap' && ( + {type === HistoryType.Swap && !isNilOrEmpty(tokenIcon) && ( )} diff --git a/libs/oeth/history/src/hooks.ts b/libs/oeth/history/src/hooks.ts index 0c17b790d..349d6eea3 100644 --- a/libs/oeth/history/src/hooks.ts +++ b/libs/oeth/history/src/hooks.ts @@ -3,12 +3,12 @@ import { isNilOrEmpty } from '@origin/shared/utils'; import { useQuery } from '@tanstack/react-query'; import { fetchBalance, getAccount } from '@wagmi/core'; -import { useHistoryTableQuery } from './queries.generated'; +import { useHistoryPageQuery } from './queries.generated'; import type { Token } from '@origin/shared/contracts'; import type { QueryOptions } from '@tanstack/react-query'; -import type { HistoryTableQuery } from './queries.generated'; +import type { HistoryPageQuery } from './queries.generated'; export const usePendingYield = (token: Token, options?: QueryOptions) => useQuery({ @@ -23,16 +23,17 @@ export const usePendingYield = (token: Token, options?: QueryOptions) => // TODO endpoint for next userCredits is not yet available on subsquid const [balance, data] = await Promise.all([ fetchBalance({ address, token: token.address }), - queryClient.fetchQuery({ - queryKey: useHistoryTableQuery.getKey({ address, offset: 0 }), - queryFn: useHistoryTableQuery.fetcher({ - address: address.toLowerCase(), + queryClient.fetchQuery({ + queryKey: useHistoryPageQuery.getKey({ address, offset: 0 }), + queryFn: useHistoryPageQuery.fetcher({ + address, offset: 0, }), }), ]); - if (isNilOrEmpty(data?.addressById) || balance?.value === 0n) return 0; + if (isNilOrEmpty(data?.addresses?.at(0)) || balance?.value === 0n) + return 0; return 0; }, diff --git a/libs/oeth/history/src/queries.generated.ts b/libs/oeth/history/src/queries.generated.ts index e6913fc17..eb3e0b9ca 100644 --- a/libs/oeth/history/src/queries.generated.ts +++ b/libs/oeth/history/src/queries.generated.ts @@ -3,58 +3,30 @@ import { useQuery } from '@tanstack/react-query'; import type * as Types from '@origin/oeth/shared'; import type { UseQueryOptions } from '@tanstack/react-query'; -export type HistoryTableQueryVariables = Types.Exact<{ +export type HistoryPageQueryVariables = Types.Exact<{ address: Types.Scalars['String']['input']; offset: Types.Scalars['Int']['input']; + filters?: Types.InputMaybe | Types.HistoryType>; }>; -export type HistoryTableQuery = { +export type HistoryPageQuery = { __typename?: 'Query'; - addressById?: { + addresses: Array<{ __typename?: 'Address'; - balance: number; - earned: number; + balance: string; + earned: string; isContract: boolean; - rebasingOption: string; - credits: any; - lastUpdated: any; + rebasingOption: Types.RebasingOption; + lastUpdated: string; history: Array<{ __typename?: 'History'; - type: string; - value: number; + type: Types.HistoryType; + value: string; txHash: string; - timestamp: any; - balance: number; + timestamp: string; + balance: string; }>; - } | null; -}; - -export type HistoryTableWithFiltersQueryVariables = Types.Exact<{ - address: Types.Scalars['String']['input']; - offset: Types.Scalars['Int']['input']; - filters?: Types.InputMaybe< - Array | Types.Scalars['String']['input'] - >; -}>; - -export type HistoryTableWithFiltersQuery = { - __typename?: 'Query'; - addressById?: { - __typename?: 'Address'; - balance: number; - earned: number; - isContract: boolean; - rebasingOption: string; - lastUpdated: any; - history: Array<{ - __typename?: 'History'; - type: string; - value: number; - txHash: string; - timestamp: any; - balance: number; - }>; - } | null; + }>; }; export type HistoryApyQueryVariables = Types.Exact<{ [key: string]: never }>; @@ -64,16 +36,20 @@ export type HistoryApyQuery = { apies: Array<{ __typename?: 'APY'; apy7DayAvg: number; apy30DayAvg: number }>; }; -export const HistoryTableDocument = ` - query HistoryTable($address: String!, $offset: Int!) { - addressById(id: $address) { +export const HistoryPageDocument = ` + query HistoryPage($address: String!, $offset: Int!, $filters: [HistoryType!]) { + addresses(where: {id_containsInsensitive: $address}) { balance earned isContract rebasingOption - credits lastUpdated - history(limit: 20, orderBy: timestamp_DESC, offset: $offset) { + history( + limit: 20 + orderBy: timestamp_DESC + offset: $offset + where: {type_in: $filters} + ) { type value txHash @@ -83,85 +59,32 @@ export const HistoryTableDocument = ` } } `; -export const useHistoryTableQuery = < - TData = HistoryTableQuery, - TError = unknown, ->( - variables: HistoryTableQueryVariables, - options?: UseQueryOptions, +export const useHistoryPageQuery = ( + variables: HistoryPageQueryVariables, + options?: UseQueryOptions, ) => - useQuery( - ['HistoryTable', variables], - graphqlClient( - HistoryTableDocument, + useQuery( + ['HistoryPage', variables], + graphqlClient( + HistoryPageDocument, variables, ), options, ); -useHistoryTableQuery.getKey = (variables: HistoryTableQueryVariables) => [ - 'HistoryTable', +useHistoryPageQuery.getKey = (variables: HistoryPageQueryVariables) => [ + 'HistoryPage', variables, ]; -useHistoryTableQuery.fetcher = ( - variables: HistoryTableQueryVariables, +useHistoryPageQuery.fetcher = ( + variables: HistoryPageQueryVariables, options?: RequestInit['headers'], ) => - graphqlClient( - HistoryTableDocument, + graphqlClient( + HistoryPageDocument, variables, options, ); -export const HistoryTableWithFiltersDocument = ` - query HistoryTableWithFilters($address: String!, $offset: Int!, $filters: [String!]) { - addressById(id: $address) { - balance - earned - isContract - rebasingOption - lastUpdated - history( - limit: 20 - orderBy: timestamp_DESC - offset: $offset - where: {type_in: $filters} - ) { - type - value - txHash - timestamp - balance - } - } -} - `; -export const useHistoryTableWithFiltersQuery = < - TData = HistoryTableWithFiltersQuery, - TError = unknown, ->( - variables: HistoryTableWithFiltersQueryVariables, - options?: UseQueryOptions, -) => - useQuery( - ['HistoryTableWithFilters', variables], - graphqlClient< - HistoryTableWithFiltersQuery, - HistoryTableWithFiltersQueryVariables - >(HistoryTableWithFiltersDocument, variables), - options, - ); - -useHistoryTableWithFiltersQuery.getKey = ( - variables: HistoryTableWithFiltersQueryVariables, -) => ['HistoryTableWithFilters', variables]; -useHistoryTableWithFiltersQuery.fetcher = ( - variables: HistoryTableWithFiltersQueryVariables, - options?: RequestInit['headers'], -) => - graphqlClient< - HistoryTableWithFiltersQuery, - HistoryTableWithFiltersQueryVariables - >(HistoryTableWithFiltersDocument, variables, options); export const HistoryApyDocument = ` query HistoryApy { apies(limit: 1, orderBy: timestamp_DESC) { diff --git a/libs/oeth/history/src/queries.graphql b/libs/oeth/history/src/queries.graphql index 856707099..faa9d92bc 100644 --- a/libs/oeth/history/src/queries.graphql +++ b/libs/oeth/history/src/queries.graphql @@ -1,27 +1,5 @@ -query HistoryTable($address: String!, $offset: Int!) { - addressById(id: $address) { - balance - earned - isContract - rebasingOption - credits - lastUpdated - history(limit: 20, orderBy: timestamp_DESC, offset: $offset) { - type - value - txHash - timestamp - balance - } - } -} - -query HistoryTableWithFilters( - $address: String! - $offset: Int! - $filters: [String!] -) { - addressById(id: $address) { +query HistoryPage($address: String!, $offset: Int!, $filters: [HistoryType!]) { + addresses(where: { id_containsInsensitive: $address }) { balance earned isContract diff --git a/libs/oeth/shared/codegen.ts b/libs/oeth/shared/codegen.ts index d6642c245..144a7e360 100644 --- a/libs/oeth/shared/codegen.ts +++ b/libs/oeth/shared/codegen.ts @@ -7,6 +7,12 @@ const config: CodegenConfig = { documents: ['**/src/**/*.graphql'], plugins: ['typescript'], hooks: { afterOneFileWrite: ['prettier --write', 'eslint --fix'] }, + config: { + scalars: { + BigInt: 'string', + DateTime: 'string', + }, + }, }, 'libs/oeth/': { schema: process.env.VITE_SUBSQUID_URL, @@ -24,6 +30,10 @@ const config: CodegenConfig = { fetcher: { func: '@origin/oeth/shared#graphqlClient', }, + scalars: { + BigInt: 'string', + DateTime: 'string', + }, }, }, }, diff --git a/libs/oeth/shared/src/clients/graphql.ts b/libs/oeth/shared/src/clients/graphql.ts index 69069cc09..e19fac5a7 100644 --- a/libs/oeth/shared/src/clients/graphql.ts +++ b/libs/oeth/shared/src/clients/graphql.ts @@ -1,4 +1,3 @@ -/* eslint-disable @typescript-eslint/no-unused-vars */ import axios from 'axios'; export const axiosInstance = axios.create({ diff --git a/libs/oeth/shared/src/generated/graphql.ts b/libs/oeth/shared/src/generated/graphql.ts index 6dfa0d6a2..ce751fd04 100644 --- a/libs/oeth/shared/src/generated/graphql.ts +++ b/libs/oeth/shared/src/generated/graphql.ts @@ -12,8 +12,8 @@ export type Scalars = { Boolean: { input: boolean; output: boolean; } Int: { input: number; output: number; } Float: { input: number; output: number; } - BigInt: { input: any; output: any; } - DateTime: { input: any; output: any; } + BigInt: { input: string; output: string; } + DateTime: { input: string; output: string; } }; export type Apy = { @@ -199,14 +199,14 @@ export type APiesConnection = { export type Address = { __typename?: 'Address'; - balance: Scalars['Float']['output']; + balance: Scalars['BigInt']['output']; credits: Scalars['BigInt']['output']; - earned: Scalars['Float']['output']; + earned: Scalars['BigInt']['output']; history: Array; id: Scalars['String']['output']; isContract: Scalars['Boolean']['output']; lastUpdated: Scalars['DateTime']['output']; - rebasingOption: Scalars['String']['output']; + rebasingOption: RebasingOption; }; @@ -257,15 +257,15 @@ export enum AddressOrderByInput { export type AddressWhereInput = { AND?: InputMaybe>; OR?: InputMaybe>; - balance_eq?: InputMaybe; - balance_gt?: InputMaybe; - balance_gte?: InputMaybe; - balance_in?: InputMaybe>; + balance_eq?: InputMaybe; + balance_gt?: InputMaybe; + balance_gte?: InputMaybe; + balance_in?: InputMaybe>; balance_isNull?: InputMaybe; - balance_lt?: InputMaybe; - balance_lte?: InputMaybe; - balance_not_eq?: InputMaybe; - balance_not_in?: InputMaybe>; + balance_lt?: InputMaybe; + balance_lte?: InputMaybe; + balance_not_eq?: InputMaybe; + balance_not_in?: InputMaybe>; credits_eq?: InputMaybe; credits_gt?: InputMaybe; credits_gte?: InputMaybe; @@ -275,15 +275,15 @@ export type AddressWhereInput = { credits_lte?: InputMaybe; credits_not_eq?: InputMaybe; credits_not_in?: InputMaybe>; - earned_eq?: InputMaybe; - earned_gt?: InputMaybe; - earned_gte?: InputMaybe; - earned_in?: InputMaybe>; + earned_eq?: InputMaybe; + earned_gt?: InputMaybe; + earned_gte?: InputMaybe; + earned_in?: InputMaybe>; earned_isNull?: InputMaybe; - earned_lt?: InputMaybe; - earned_lte?: InputMaybe; - earned_not_eq?: InputMaybe; - earned_not_in?: InputMaybe>; + earned_lt?: InputMaybe; + earned_lte?: InputMaybe; + earned_not_eq?: InputMaybe; + earned_not_in?: InputMaybe>; history_every?: InputMaybe; history_none?: InputMaybe; history_some?: InputMaybe; @@ -316,23 +316,11 @@ export type AddressWhereInput = { lastUpdated_lte?: InputMaybe; lastUpdated_not_eq?: InputMaybe; lastUpdated_not_in?: InputMaybe>; - rebasingOption_contains?: InputMaybe; - rebasingOption_containsInsensitive?: InputMaybe; - rebasingOption_endsWith?: InputMaybe; - rebasingOption_eq?: InputMaybe; - rebasingOption_gt?: InputMaybe; - rebasingOption_gte?: InputMaybe; - rebasingOption_in?: InputMaybe>; + rebasingOption_eq?: InputMaybe; + rebasingOption_in?: InputMaybe>; rebasingOption_isNull?: InputMaybe; - rebasingOption_lt?: InputMaybe; - rebasingOption_lte?: InputMaybe; - rebasingOption_not_contains?: InputMaybe; - rebasingOption_not_containsInsensitive?: InputMaybe; - rebasingOption_not_endsWith?: InputMaybe; - rebasingOption_not_eq?: InputMaybe; - rebasingOption_not_in?: InputMaybe>; - rebasingOption_not_startsWith?: InputMaybe; - rebasingOption_startsWith?: InputMaybe; + rebasingOption_not_eq?: InputMaybe; + rebasingOption_not_in?: InputMaybe>; }; export type AddressesConnection = { @@ -342,6 +330,343 @@ export type AddressesConnection = { totalCount: Scalars['Int']['output']; }; +export type CurveLp = { + __typename?: 'CurveLP'; + blockNumber: Scalars['Int']['output']; + eth: Scalars['BigInt']['output']; + ethOwned: Scalars['BigInt']['output']; + id: Scalars['String']['output']; + oeth: Scalars['BigInt']['output']; + oethOwned: Scalars['BigInt']['output']; + timestamp: Scalars['DateTime']['output']; + totalSupply: Scalars['BigInt']['output']; + totalSupplyOwned: Scalars['BigInt']['output']; +}; + +export type CurveLpEdge = { + __typename?: 'CurveLPEdge'; + cursor: Scalars['String']['output']; + node: CurveLp; +}; + +export enum CurveLpOrderByInput { + BlockNumberAsc = 'blockNumber_ASC', + BlockNumberAscNullsFirst = 'blockNumber_ASC_NULLS_FIRST', + BlockNumberDesc = 'blockNumber_DESC', + BlockNumberDescNullsLast = 'blockNumber_DESC_NULLS_LAST', + EthOwnedAsc = 'ethOwned_ASC', + EthOwnedAscNullsFirst = 'ethOwned_ASC_NULLS_FIRST', + EthOwnedDesc = 'ethOwned_DESC', + EthOwnedDescNullsLast = 'ethOwned_DESC_NULLS_LAST', + EthAsc = 'eth_ASC', + EthAscNullsFirst = 'eth_ASC_NULLS_FIRST', + EthDesc = 'eth_DESC', + EthDescNullsLast = 'eth_DESC_NULLS_LAST', + IdAsc = 'id_ASC', + IdAscNullsFirst = 'id_ASC_NULLS_FIRST', + IdDesc = 'id_DESC', + IdDescNullsLast = 'id_DESC_NULLS_LAST', + OethOwnedAsc = 'oethOwned_ASC', + OethOwnedAscNullsFirst = 'oethOwned_ASC_NULLS_FIRST', + OethOwnedDesc = 'oethOwned_DESC', + OethOwnedDescNullsLast = 'oethOwned_DESC_NULLS_LAST', + OethAsc = 'oeth_ASC', + OethAscNullsFirst = 'oeth_ASC_NULLS_FIRST', + OethDesc = 'oeth_DESC', + OethDescNullsLast = 'oeth_DESC_NULLS_LAST', + TimestampAsc = 'timestamp_ASC', + TimestampAscNullsFirst = 'timestamp_ASC_NULLS_FIRST', + TimestampDesc = 'timestamp_DESC', + TimestampDescNullsLast = 'timestamp_DESC_NULLS_LAST', + TotalSupplyOwnedAsc = 'totalSupplyOwned_ASC', + TotalSupplyOwnedAscNullsFirst = 'totalSupplyOwned_ASC_NULLS_FIRST', + TotalSupplyOwnedDesc = 'totalSupplyOwned_DESC', + TotalSupplyOwnedDescNullsLast = 'totalSupplyOwned_DESC_NULLS_LAST', + TotalSupplyAsc = 'totalSupply_ASC', + TotalSupplyAscNullsFirst = 'totalSupply_ASC_NULLS_FIRST', + TotalSupplyDesc = 'totalSupply_DESC', + TotalSupplyDescNullsLast = 'totalSupply_DESC_NULLS_LAST' +} + +export type CurveLpWhereInput = { + AND?: InputMaybe>; + OR?: InputMaybe>; + blockNumber_eq?: InputMaybe; + blockNumber_gt?: InputMaybe; + blockNumber_gte?: InputMaybe; + blockNumber_in?: InputMaybe>; + blockNumber_isNull?: InputMaybe; + blockNumber_lt?: InputMaybe; + blockNumber_lte?: InputMaybe; + blockNumber_not_eq?: InputMaybe; + blockNumber_not_in?: InputMaybe>; + ethOwned_eq?: InputMaybe; + ethOwned_gt?: InputMaybe; + ethOwned_gte?: InputMaybe; + ethOwned_in?: InputMaybe>; + ethOwned_isNull?: InputMaybe; + ethOwned_lt?: InputMaybe; + ethOwned_lte?: InputMaybe; + ethOwned_not_eq?: InputMaybe; + ethOwned_not_in?: InputMaybe>; + eth_eq?: InputMaybe; + eth_gt?: InputMaybe; + eth_gte?: InputMaybe; + eth_in?: InputMaybe>; + eth_isNull?: InputMaybe; + eth_lt?: InputMaybe; + eth_lte?: InputMaybe; + eth_not_eq?: InputMaybe; + eth_not_in?: InputMaybe>; + id_contains?: InputMaybe; + id_containsInsensitive?: InputMaybe; + id_endsWith?: InputMaybe; + id_eq?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_isNull?: InputMaybe; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not_contains?: InputMaybe; + id_not_containsInsensitive?: InputMaybe; + id_not_endsWith?: InputMaybe; + id_not_eq?: InputMaybe; + id_not_in?: InputMaybe>; + id_not_startsWith?: InputMaybe; + id_startsWith?: InputMaybe; + oethOwned_eq?: InputMaybe; + oethOwned_gt?: InputMaybe; + oethOwned_gte?: InputMaybe; + oethOwned_in?: InputMaybe>; + oethOwned_isNull?: InputMaybe; + oethOwned_lt?: InputMaybe; + oethOwned_lte?: InputMaybe; + oethOwned_not_eq?: InputMaybe; + oethOwned_not_in?: InputMaybe>; + oeth_eq?: InputMaybe; + oeth_gt?: InputMaybe; + oeth_gte?: InputMaybe; + oeth_in?: InputMaybe>; + oeth_isNull?: InputMaybe; + oeth_lt?: InputMaybe; + oeth_lte?: InputMaybe; + oeth_not_eq?: InputMaybe; + oeth_not_in?: InputMaybe>; + timestamp_eq?: InputMaybe; + timestamp_gt?: InputMaybe; + timestamp_gte?: InputMaybe; + timestamp_in?: InputMaybe>; + timestamp_isNull?: InputMaybe; + timestamp_lt?: InputMaybe; + timestamp_lte?: InputMaybe; + timestamp_not_eq?: InputMaybe; + timestamp_not_in?: InputMaybe>; + totalSupplyOwned_eq?: InputMaybe; + totalSupplyOwned_gt?: InputMaybe; + totalSupplyOwned_gte?: InputMaybe; + totalSupplyOwned_in?: InputMaybe>; + totalSupplyOwned_isNull?: InputMaybe; + totalSupplyOwned_lt?: InputMaybe; + totalSupplyOwned_lte?: InputMaybe; + totalSupplyOwned_not_eq?: InputMaybe; + totalSupplyOwned_not_in?: InputMaybe>; + totalSupply_eq?: InputMaybe; + totalSupply_gt?: InputMaybe; + totalSupply_gte?: InputMaybe; + totalSupply_in?: InputMaybe>; + totalSupply_isNull?: InputMaybe; + totalSupply_lt?: InputMaybe; + totalSupply_lte?: InputMaybe; + totalSupply_not_eq?: InputMaybe; + totalSupply_not_in?: InputMaybe>; +}; + +export type CurveLPsConnection = { + __typename?: 'CurveLPsConnection'; + edges: Array; + pageInfo: PageInfo; + totalCount: Scalars['Int']['output']; +}; + +export type Dripper = { + __typename?: 'Dripper'; + blockNumber: Scalars['Int']['output']; + id: Scalars['String']['output']; + timestamp: Scalars['DateTime']['output']; + weth: Scalars['BigInt']['output']; +}; + +export type DripperEdge = { + __typename?: 'DripperEdge'; + cursor: Scalars['String']['output']; + node: Dripper; +}; + +export enum DripperOrderByInput { + BlockNumberAsc = 'blockNumber_ASC', + BlockNumberAscNullsFirst = 'blockNumber_ASC_NULLS_FIRST', + BlockNumberDesc = 'blockNumber_DESC', + BlockNumberDescNullsLast = 'blockNumber_DESC_NULLS_LAST', + IdAsc = 'id_ASC', + IdAscNullsFirst = 'id_ASC_NULLS_FIRST', + IdDesc = 'id_DESC', + IdDescNullsLast = 'id_DESC_NULLS_LAST', + TimestampAsc = 'timestamp_ASC', + TimestampAscNullsFirst = 'timestamp_ASC_NULLS_FIRST', + TimestampDesc = 'timestamp_DESC', + TimestampDescNullsLast = 'timestamp_DESC_NULLS_LAST', + WethAsc = 'weth_ASC', + WethAscNullsFirst = 'weth_ASC_NULLS_FIRST', + WethDesc = 'weth_DESC', + WethDescNullsLast = 'weth_DESC_NULLS_LAST' +} + +export type DripperWhereInput = { + AND?: InputMaybe>; + OR?: InputMaybe>; + blockNumber_eq?: InputMaybe; + blockNumber_gt?: InputMaybe; + blockNumber_gte?: InputMaybe; + blockNumber_in?: InputMaybe>; + blockNumber_isNull?: InputMaybe; + blockNumber_lt?: InputMaybe; + blockNumber_lte?: InputMaybe; + blockNumber_not_eq?: InputMaybe; + blockNumber_not_in?: InputMaybe>; + id_contains?: InputMaybe; + id_containsInsensitive?: InputMaybe; + id_endsWith?: InputMaybe; + id_eq?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_isNull?: InputMaybe; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not_contains?: InputMaybe; + id_not_containsInsensitive?: InputMaybe; + id_not_endsWith?: InputMaybe; + id_not_eq?: InputMaybe; + id_not_in?: InputMaybe>; + id_not_startsWith?: InputMaybe; + id_startsWith?: InputMaybe; + timestamp_eq?: InputMaybe; + timestamp_gt?: InputMaybe; + timestamp_gte?: InputMaybe; + timestamp_in?: InputMaybe>; + timestamp_isNull?: InputMaybe; + timestamp_lt?: InputMaybe; + timestamp_lte?: InputMaybe; + timestamp_not_eq?: InputMaybe; + timestamp_not_in?: InputMaybe>; + weth_eq?: InputMaybe; + weth_gt?: InputMaybe; + weth_gte?: InputMaybe; + weth_in?: InputMaybe>; + weth_isNull?: InputMaybe; + weth_lt?: InputMaybe; + weth_lte?: InputMaybe; + weth_not_eq?: InputMaybe; + weth_not_in?: InputMaybe>; +}; + +export type DrippersConnection = { + __typename?: 'DrippersConnection'; + edges: Array; + pageInfo: PageInfo; + totalCount: Scalars['Int']['output']; +}; + +export type FraxStaking = { + __typename?: 'FraxStaking'; + blockNumber: Scalars['Int']['output']; + frxETH: Scalars['BigInt']['output']; + id: Scalars['String']['output']; + timestamp: Scalars['DateTime']['output']; +}; + +export type FraxStakingEdge = { + __typename?: 'FraxStakingEdge'; + cursor: Scalars['String']['output']; + node: FraxStaking; +}; + +export enum FraxStakingOrderByInput { + BlockNumberAsc = 'blockNumber_ASC', + BlockNumberAscNullsFirst = 'blockNumber_ASC_NULLS_FIRST', + BlockNumberDesc = 'blockNumber_DESC', + BlockNumberDescNullsLast = 'blockNumber_DESC_NULLS_LAST', + FrxEthAsc = 'frxETH_ASC', + FrxEthAscNullsFirst = 'frxETH_ASC_NULLS_FIRST', + FrxEthDesc = 'frxETH_DESC', + FrxEthDescNullsLast = 'frxETH_DESC_NULLS_LAST', + IdAsc = 'id_ASC', + IdAscNullsFirst = 'id_ASC_NULLS_FIRST', + IdDesc = 'id_DESC', + IdDescNullsLast = 'id_DESC_NULLS_LAST', + TimestampAsc = 'timestamp_ASC', + TimestampAscNullsFirst = 'timestamp_ASC_NULLS_FIRST', + TimestampDesc = 'timestamp_DESC', + TimestampDescNullsLast = 'timestamp_DESC_NULLS_LAST' +} + +export type FraxStakingWhereInput = { + AND?: InputMaybe>; + OR?: InputMaybe>; + blockNumber_eq?: InputMaybe; + blockNumber_gt?: InputMaybe; + blockNumber_gte?: InputMaybe; + blockNumber_in?: InputMaybe>; + blockNumber_isNull?: InputMaybe; + blockNumber_lt?: InputMaybe; + blockNumber_lte?: InputMaybe; + blockNumber_not_eq?: InputMaybe; + blockNumber_not_in?: InputMaybe>; + frxETH_eq?: InputMaybe; + frxETH_gt?: InputMaybe; + frxETH_gte?: InputMaybe; + frxETH_in?: InputMaybe>; + frxETH_isNull?: InputMaybe; + frxETH_lt?: InputMaybe; + frxETH_lte?: InputMaybe; + frxETH_not_eq?: InputMaybe; + frxETH_not_in?: InputMaybe>; + id_contains?: InputMaybe; + id_containsInsensitive?: InputMaybe; + id_endsWith?: InputMaybe; + id_eq?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_isNull?: InputMaybe; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not_contains?: InputMaybe; + id_not_containsInsensitive?: InputMaybe; + id_not_endsWith?: InputMaybe; + id_not_eq?: InputMaybe; + id_not_in?: InputMaybe>; + id_not_startsWith?: InputMaybe; + id_startsWith?: InputMaybe; + timestamp_eq?: InputMaybe; + timestamp_gt?: InputMaybe; + timestamp_gte?: InputMaybe; + timestamp_in?: InputMaybe>; + timestamp_isNull?: InputMaybe; + timestamp_lt?: InputMaybe; + timestamp_lte?: InputMaybe; + timestamp_not_eq?: InputMaybe; + timestamp_not_in?: InputMaybe>; +}; + +export type FraxStakingsConnection = { + __typename?: 'FraxStakingsConnection'; + edges: Array; + pageInfo: PageInfo; + totalCount: Scalars['Int']['output']; +}; + export type HistoriesConnection = { __typename?: 'HistoriesConnection'; edges: Array; @@ -349,25 +674,769 @@ export type HistoriesConnection = { totalCount: Scalars['Int']['output']; }; -export type History = { - __typename?: 'History'; +export type History = { + __typename?: 'History'; + address: Address; + balance: Scalars['BigInt']['output']; + blockNumber: Scalars['Int']['output']; + id: Scalars['String']['output']; + timestamp: Scalars['DateTime']['output']; + txHash: Scalars['String']['output']; + type: HistoryType; + value: Scalars['BigInt']['output']; +}; + +export type HistoryEdge = { + __typename?: 'HistoryEdge'; + cursor: Scalars['String']['output']; + node: History; +}; + +export enum HistoryOrderByInput { + AddressBalanceAsc = 'address_balance_ASC', + AddressBalanceAscNullsFirst = 'address_balance_ASC_NULLS_FIRST', + AddressBalanceDesc = 'address_balance_DESC', + AddressBalanceDescNullsLast = 'address_balance_DESC_NULLS_LAST', + AddressCreditsAsc = 'address_credits_ASC', + AddressCreditsAscNullsFirst = 'address_credits_ASC_NULLS_FIRST', + AddressCreditsDesc = 'address_credits_DESC', + AddressCreditsDescNullsLast = 'address_credits_DESC_NULLS_LAST', + AddressEarnedAsc = 'address_earned_ASC', + AddressEarnedAscNullsFirst = 'address_earned_ASC_NULLS_FIRST', + AddressEarnedDesc = 'address_earned_DESC', + AddressEarnedDescNullsLast = 'address_earned_DESC_NULLS_LAST', + AddressIdAsc = 'address_id_ASC', + AddressIdAscNullsFirst = 'address_id_ASC_NULLS_FIRST', + AddressIdDesc = 'address_id_DESC', + AddressIdDescNullsLast = 'address_id_DESC_NULLS_LAST', + AddressIsContractAsc = 'address_isContract_ASC', + AddressIsContractAscNullsFirst = 'address_isContract_ASC_NULLS_FIRST', + AddressIsContractDesc = 'address_isContract_DESC', + AddressIsContractDescNullsLast = 'address_isContract_DESC_NULLS_LAST', + AddressLastUpdatedAsc = 'address_lastUpdated_ASC', + AddressLastUpdatedAscNullsFirst = 'address_lastUpdated_ASC_NULLS_FIRST', + AddressLastUpdatedDesc = 'address_lastUpdated_DESC', + AddressLastUpdatedDescNullsLast = 'address_lastUpdated_DESC_NULLS_LAST', + AddressRebasingOptionAsc = 'address_rebasingOption_ASC', + AddressRebasingOptionAscNullsFirst = 'address_rebasingOption_ASC_NULLS_FIRST', + AddressRebasingOptionDesc = 'address_rebasingOption_DESC', + AddressRebasingOptionDescNullsLast = 'address_rebasingOption_DESC_NULLS_LAST', + BalanceAsc = 'balance_ASC', + BalanceAscNullsFirst = 'balance_ASC_NULLS_FIRST', + BalanceDesc = 'balance_DESC', + BalanceDescNullsLast = 'balance_DESC_NULLS_LAST', + BlockNumberAsc = 'blockNumber_ASC', + BlockNumberAscNullsFirst = 'blockNumber_ASC_NULLS_FIRST', + BlockNumberDesc = 'blockNumber_DESC', + BlockNumberDescNullsLast = 'blockNumber_DESC_NULLS_LAST', + IdAsc = 'id_ASC', + IdAscNullsFirst = 'id_ASC_NULLS_FIRST', + IdDesc = 'id_DESC', + IdDescNullsLast = 'id_DESC_NULLS_LAST', + TimestampAsc = 'timestamp_ASC', + TimestampAscNullsFirst = 'timestamp_ASC_NULLS_FIRST', + TimestampDesc = 'timestamp_DESC', + TimestampDescNullsLast = 'timestamp_DESC_NULLS_LAST', + TxHashAsc = 'txHash_ASC', + TxHashAscNullsFirst = 'txHash_ASC_NULLS_FIRST', + TxHashDesc = 'txHash_DESC', + TxHashDescNullsLast = 'txHash_DESC_NULLS_LAST', + TypeAsc = 'type_ASC', + TypeAscNullsFirst = 'type_ASC_NULLS_FIRST', + TypeDesc = 'type_DESC', + TypeDescNullsLast = 'type_DESC_NULLS_LAST', + ValueAsc = 'value_ASC', + ValueAscNullsFirst = 'value_ASC_NULLS_FIRST', + ValueDesc = 'value_DESC', + ValueDescNullsLast = 'value_DESC_NULLS_LAST' +} + +export enum HistoryType { + Received = 'Received', + Sent = 'Sent', + Swap = 'Swap', + Yield = 'Yield' +} + +export type HistoryWhereInput = { + AND?: InputMaybe>; + OR?: InputMaybe>; + address?: InputMaybe; + address_isNull?: InputMaybe; + balance_eq?: InputMaybe; + balance_gt?: InputMaybe; + balance_gte?: InputMaybe; + balance_in?: InputMaybe>; + balance_isNull?: InputMaybe; + balance_lt?: InputMaybe; + balance_lte?: InputMaybe; + balance_not_eq?: InputMaybe; + balance_not_in?: InputMaybe>; + blockNumber_eq?: InputMaybe; + blockNumber_gt?: InputMaybe; + blockNumber_gte?: InputMaybe; + blockNumber_in?: InputMaybe>; + blockNumber_isNull?: InputMaybe; + blockNumber_lt?: InputMaybe; + blockNumber_lte?: InputMaybe; + blockNumber_not_eq?: InputMaybe; + blockNumber_not_in?: InputMaybe>; + id_contains?: InputMaybe; + id_containsInsensitive?: InputMaybe; + id_endsWith?: InputMaybe; + id_eq?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_isNull?: InputMaybe; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not_contains?: InputMaybe; + id_not_containsInsensitive?: InputMaybe; + id_not_endsWith?: InputMaybe; + id_not_eq?: InputMaybe; + id_not_in?: InputMaybe>; + id_not_startsWith?: InputMaybe; + id_startsWith?: InputMaybe; + timestamp_eq?: InputMaybe; + timestamp_gt?: InputMaybe; + timestamp_gte?: InputMaybe; + timestamp_in?: InputMaybe>; + timestamp_isNull?: InputMaybe; + timestamp_lt?: InputMaybe; + timestamp_lte?: InputMaybe; + timestamp_not_eq?: InputMaybe; + timestamp_not_in?: InputMaybe>; + txHash_contains?: InputMaybe; + txHash_containsInsensitive?: InputMaybe; + txHash_endsWith?: InputMaybe; + txHash_eq?: InputMaybe; + txHash_gt?: InputMaybe; + txHash_gte?: InputMaybe; + txHash_in?: InputMaybe>; + txHash_isNull?: InputMaybe; + txHash_lt?: InputMaybe; + txHash_lte?: InputMaybe; + txHash_not_contains?: InputMaybe; + txHash_not_containsInsensitive?: InputMaybe; + txHash_not_endsWith?: InputMaybe; + txHash_not_eq?: InputMaybe; + txHash_not_in?: InputMaybe>; + txHash_not_startsWith?: InputMaybe; + txHash_startsWith?: InputMaybe; + type_eq?: InputMaybe; + type_in?: InputMaybe>; + type_isNull?: InputMaybe; + type_not_eq?: InputMaybe; + type_not_in?: InputMaybe>; + value_eq?: InputMaybe; + value_gt?: InputMaybe; + value_gte?: InputMaybe; + value_in?: InputMaybe>; + value_isNull?: InputMaybe; + value_lt?: InputMaybe; + value_lte?: InputMaybe; + value_not_eq?: InputMaybe; + value_not_in?: InputMaybe>; +}; + +export type MorphoAave = { + __typename?: 'MorphoAave'; + blockNumber: Scalars['Int']['output']; + id: Scalars['String']['output']; + timestamp: Scalars['DateTime']['output']; + weth: Scalars['BigInt']['output']; +}; + +export type MorphoAaveEdge = { + __typename?: 'MorphoAaveEdge'; + cursor: Scalars['String']['output']; + node: MorphoAave; +}; + +export enum MorphoAaveOrderByInput { + BlockNumberAsc = 'blockNumber_ASC', + BlockNumberAscNullsFirst = 'blockNumber_ASC_NULLS_FIRST', + BlockNumberDesc = 'blockNumber_DESC', + BlockNumberDescNullsLast = 'blockNumber_DESC_NULLS_LAST', + IdAsc = 'id_ASC', + IdAscNullsFirst = 'id_ASC_NULLS_FIRST', + IdDesc = 'id_DESC', + IdDescNullsLast = 'id_DESC_NULLS_LAST', + TimestampAsc = 'timestamp_ASC', + TimestampAscNullsFirst = 'timestamp_ASC_NULLS_FIRST', + TimestampDesc = 'timestamp_DESC', + TimestampDescNullsLast = 'timestamp_DESC_NULLS_LAST', + WethAsc = 'weth_ASC', + WethAscNullsFirst = 'weth_ASC_NULLS_FIRST', + WethDesc = 'weth_DESC', + WethDescNullsLast = 'weth_DESC_NULLS_LAST' +} + +export type MorphoAaveWhereInput = { + AND?: InputMaybe>; + OR?: InputMaybe>; + blockNumber_eq?: InputMaybe; + blockNumber_gt?: InputMaybe; + blockNumber_gte?: InputMaybe; + blockNumber_in?: InputMaybe>; + blockNumber_isNull?: InputMaybe; + blockNumber_lt?: InputMaybe; + blockNumber_lte?: InputMaybe; + blockNumber_not_eq?: InputMaybe; + blockNumber_not_in?: InputMaybe>; + id_contains?: InputMaybe; + id_containsInsensitive?: InputMaybe; + id_endsWith?: InputMaybe; + id_eq?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_isNull?: InputMaybe; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not_contains?: InputMaybe; + id_not_containsInsensitive?: InputMaybe; + id_not_endsWith?: InputMaybe; + id_not_eq?: InputMaybe; + id_not_in?: InputMaybe>; + id_not_startsWith?: InputMaybe; + id_startsWith?: InputMaybe; + timestamp_eq?: InputMaybe; + timestamp_gt?: InputMaybe; + timestamp_gte?: InputMaybe; + timestamp_in?: InputMaybe>; + timestamp_isNull?: InputMaybe; + timestamp_lt?: InputMaybe; + timestamp_lte?: InputMaybe; + timestamp_not_eq?: InputMaybe; + timestamp_not_in?: InputMaybe>; + weth_eq?: InputMaybe; + weth_gt?: InputMaybe; + weth_gte?: InputMaybe; + weth_in?: InputMaybe>; + weth_isNull?: InputMaybe; + weth_lt?: InputMaybe; + weth_lte?: InputMaybe; + weth_not_eq?: InputMaybe; + weth_not_in?: InputMaybe>; +}; + +export type MorphoAavesConnection = { + __typename?: 'MorphoAavesConnection'; + edges: Array; + pageInfo: PageInfo; + totalCount: Scalars['Int']['output']; +}; + +export type Oeth = { + __typename?: 'OETH'; + blockNumber: Scalars['Int']['output']; + id: Scalars['String']['output']; + nonRebasingSupply: Scalars['BigInt']['output']; + rebasingSupply: Scalars['BigInt']['output']; + timestamp: Scalars['DateTime']['output']; + totalSupply: Scalars['BigInt']['output']; +}; + +export type OethEdge = { + __typename?: 'OETHEdge'; + cursor: Scalars['String']['output']; + node: Oeth; +}; + +export enum OethOrderByInput { + BlockNumberAsc = 'blockNumber_ASC', + BlockNumberAscNullsFirst = 'blockNumber_ASC_NULLS_FIRST', + BlockNumberDesc = 'blockNumber_DESC', + BlockNumberDescNullsLast = 'blockNumber_DESC_NULLS_LAST', + IdAsc = 'id_ASC', + IdAscNullsFirst = 'id_ASC_NULLS_FIRST', + IdDesc = 'id_DESC', + IdDescNullsLast = 'id_DESC_NULLS_LAST', + NonRebasingSupplyAsc = 'nonRebasingSupply_ASC', + NonRebasingSupplyAscNullsFirst = 'nonRebasingSupply_ASC_NULLS_FIRST', + NonRebasingSupplyDesc = 'nonRebasingSupply_DESC', + NonRebasingSupplyDescNullsLast = 'nonRebasingSupply_DESC_NULLS_LAST', + RebasingSupplyAsc = 'rebasingSupply_ASC', + RebasingSupplyAscNullsFirst = 'rebasingSupply_ASC_NULLS_FIRST', + RebasingSupplyDesc = 'rebasingSupply_DESC', + RebasingSupplyDescNullsLast = 'rebasingSupply_DESC_NULLS_LAST', + TimestampAsc = 'timestamp_ASC', + TimestampAscNullsFirst = 'timestamp_ASC_NULLS_FIRST', + TimestampDesc = 'timestamp_DESC', + TimestampDescNullsLast = 'timestamp_DESC_NULLS_LAST', + TotalSupplyAsc = 'totalSupply_ASC', + TotalSupplyAscNullsFirst = 'totalSupply_ASC_NULLS_FIRST', + TotalSupplyDesc = 'totalSupply_DESC', + TotalSupplyDescNullsLast = 'totalSupply_DESC_NULLS_LAST' +} + +export type OethWhereInput = { + AND?: InputMaybe>; + OR?: InputMaybe>; + blockNumber_eq?: InputMaybe; + blockNumber_gt?: InputMaybe; + blockNumber_gte?: InputMaybe; + blockNumber_in?: InputMaybe>; + blockNumber_isNull?: InputMaybe; + blockNumber_lt?: InputMaybe; + blockNumber_lte?: InputMaybe; + blockNumber_not_eq?: InputMaybe; + blockNumber_not_in?: InputMaybe>; + id_contains?: InputMaybe; + id_containsInsensitive?: InputMaybe; + id_endsWith?: InputMaybe; + id_eq?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_isNull?: InputMaybe; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not_contains?: InputMaybe; + id_not_containsInsensitive?: InputMaybe; + id_not_endsWith?: InputMaybe; + id_not_eq?: InputMaybe; + id_not_in?: InputMaybe>; + id_not_startsWith?: InputMaybe; + id_startsWith?: InputMaybe; + nonRebasingSupply_eq?: InputMaybe; + nonRebasingSupply_gt?: InputMaybe; + nonRebasingSupply_gte?: InputMaybe; + nonRebasingSupply_in?: InputMaybe>; + nonRebasingSupply_isNull?: InputMaybe; + nonRebasingSupply_lt?: InputMaybe; + nonRebasingSupply_lte?: InputMaybe; + nonRebasingSupply_not_eq?: InputMaybe; + nonRebasingSupply_not_in?: InputMaybe>; + rebasingSupply_eq?: InputMaybe; + rebasingSupply_gt?: InputMaybe; + rebasingSupply_gte?: InputMaybe; + rebasingSupply_in?: InputMaybe>; + rebasingSupply_isNull?: InputMaybe; + rebasingSupply_lt?: InputMaybe; + rebasingSupply_lte?: InputMaybe; + rebasingSupply_not_eq?: InputMaybe; + rebasingSupply_not_in?: InputMaybe>; + timestamp_eq?: InputMaybe; + timestamp_gt?: InputMaybe; + timestamp_gte?: InputMaybe; + timestamp_in?: InputMaybe>; + timestamp_isNull?: InputMaybe; + timestamp_lt?: InputMaybe; + timestamp_lte?: InputMaybe; + timestamp_not_eq?: InputMaybe; + timestamp_not_in?: InputMaybe>; + totalSupply_eq?: InputMaybe; + totalSupply_gt?: InputMaybe; + totalSupply_gte?: InputMaybe; + totalSupply_in?: InputMaybe>; + totalSupply_isNull?: InputMaybe; + totalSupply_lt?: InputMaybe; + totalSupply_lte?: InputMaybe; + totalSupply_not_eq?: InputMaybe; + totalSupply_not_in?: InputMaybe>; +}; + +export type OetHsConnection = { + __typename?: 'OETHsConnection'; + edges: Array; + pageInfo: PageInfo; + totalCount: Scalars['Int']['output']; +}; + +export type PageInfo = { + __typename?: 'PageInfo'; + endCursor: Scalars['String']['output']; + hasNextPage: Scalars['Boolean']['output']; + hasPreviousPage: Scalars['Boolean']['output']; + startCursor: Scalars['String']['output']; +}; + +export type Query = { + __typename?: 'Query'; + addressById?: Maybe
; + /** @deprecated Use addressById */ + addressByUniqueInput?: Maybe
; + addresses: Array
; + addressesConnection: AddressesConnection; + apies: Array; + apiesConnection: APiesConnection; + apyById?: Maybe; + /** @deprecated Use apyById */ + apyByUniqueInput?: Maybe; + curveLpById?: Maybe; + /** @deprecated Use curveLpById */ + curveLpByUniqueInput?: Maybe; + curveLps: Array; + curveLpsConnection: CurveLPsConnection; + dripperById?: Maybe; + /** @deprecated Use dripperById */ + dripperByUniqueInput?: Maybe; + drippers: Array; + drippersConnection: DrippersConnection; + fraxStakingById?: Maybe; + /** @deprecated Use fraxStakingById */ + fraxStakingByUniqueInput?: Maybe; + fraxStakings: Array; + fraxStakingsConnection: FraxStakingsConnection; + histories: Array; + historiesConnection: HistoriesConnection; + historyById?: Maybe; + /** @deprecated Use historyById */ + historyByUniqueInput?: Maybe; + morphoAaveById?: Maybe; + /** @deprecated Use morphoAaveById */ + morphoAaveByUniqueInput?: Maybe; + morphoAaves: Array; + morphoAavesConnection: MorphoAavesConnection; + oethById?: Maybe; + /** @deprecated Use oethById */ + oethByUniqueInput?: Maybe; + oeths: Array; + oethsConnection: OetHsConnection; + rebaseById?: Maybe; + /** @deprecated Use rebaseById */ + rebaseByUniqueInput?: Maybe; + rebaseOptionById?: Maybe; + /** @deprecated Use rebaseOptionById */ + rebaseOptionByUniqueInput?: Maybe; + rebaseOptions: Array; + rebaseOptionsConnection: RebaseOptionsConnection; + rebases: Array; + rebasesConnection: RebasesConnection; + squidStatus?: Maybe; + vaultById?: Maybe; + /** @deprecated Use vaultById */ + vaultByUniqueInput?: Maybe; + vaults: Array; + vaultsConnection: VaultsConnection; +}; + + +export type QueryAddressByIdArgs = { + id: Scalars['String']['input']; +}; + + +export type QueryAddressByUniqueInputArgs = { + where: WhereIdInput; +}; + + +export type QueryAddressesArgs = { + limit?: InputMaybe; + offset?: InputMaybe; + orderBy?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryAddressesConnectionArgs = { + after?: InputMaybe; + first?: InputMaybe; + orderBy: Array; + where?: InputMaybe; +}; + + +export type QueryApiesArgs = { + limit?: InputMaybe; + offset?: InputMaybe; + orderBy?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryApiesConnectionArgs = { + after?: InputMaybe; + first?: InputMaybe; + orderBy: Array; + where?: InputMaybe; +}; + + +export type QueryApyByIdArgs = { + id: Scalars['String']['input']; +}; + + +export type QueryApyByUniqueInputArgs = { + where: WhereIdInput; +}; + + +export type QueryCurveLpByIdArgs = { + id: Scalars['String']['input']; +}; + + +export type QueryCurveLpByUniqueInputArgs = { + where: WhereIdInput; +}; + + +export type QueryCurveLpsArgs = { + limit?: InputMaybe; + offset?: InputMaybe; + orderBy?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryCurveLpsConnectionArgs = { + after?: InputMaybe; + first?: InputMaybe; + orderBy: Array; + where?: InputMaybe; +}; + + +export type QueryDripperByIdArgs = { + id: Scalars['String']['input']; +}; + + +export type QueryDripperByUniqueInputArgs = { + where: WhereIdInput; +}; + + +export type QueryDrippersArgs = { + limit?: InputMaybe; + offset?: InputMaybe; + orderBy?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryDrippersConnectionArgs = { + after?: InputMaybe; + first?: InputMaybe; + orderBy: Array; + where?: InputMaybe; +}; + + +export type QueryFraxStakingByIdArgs = { + id: Scalars['String']['input']; +}; + + +export type QueryFraxStakingByUniqueInputArgs = { + where: WhereIdInput; +}; + + +export type QueryFraxStakingsArgs = { + limit?: InputMaybe; + offset?: InputMaybe; + orderBy?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryFraxStakingsConnectionArgs = { + after?: InputMaybe; + first?: InputMaybe; + orderBy: Array; + where?: InputMaybe; +}; + + +export type QueryHistoriesArgs = { + limit?: InputMaybe; + offset?: InputMaybe; + orderBy?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryHistoriesConnectionArgs = { + after?: InputMaybe; + first?: InputMaybe; + orderBy: Array; + where?: InputMaybe; +}; + + +export type QueryHistoryByIdArgs = { + id: Scalars['String']['input']; +}; + + +export type QueryHistoryByUniqueInputArgs = { + where: WhereIdInput; +}; + + +export type QueryMorphoAaveByIdArgs = { + id: Scalars['String']['input']; +}; + + +export type QueryMorphoAaveByUniqueInputArgs = { + where: WhereIdInput; +}; + + +export type QueryMorphoAavesArgs = { + limit?: InputMaybe; + offset?: InputMaybe; + orderBy?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryMorphoAavesConnectionArgs = { + after?: InputMaybe; + first?: InputMaybe; + orderBy: Array; + where?: InputMaybe; +}; + + +export type QueryOethByIdArgs = { + id: Scalars['String']['input']; +}; + + +export type QueryOethByUniqueInputArgs = { + where: WhereIdInput; +}; + + +export type QueryOethsArgs = { + limit?: InputMaybe; + offset?: InputMaybe; + orderBy?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryOethsConnectionArgs = { + after?: InputMaybe; + first?: InputMaybe; + orderBy: Array; + where?: InputMaybe; +}; + + +export type QueryRebaseByIdArgs = { + id: Scalars['String']['input']; +}; + + +export type QueryRebaseByUniqueInputArgs = { + where: WhereIdInput; +}; + + +export type QueryRebaseOptionByIdArgs = { + id: Scalars['String']['input']; +}; + + +export type QueryRebaseOptionByUniqueInputArgs = { + where: WhereIdInput; +}; + + +export type QueryRebaseOptionsArgs = { + limit?: InputMaybe; + offset?: InputMaybe; + orderBy?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRebaseOptionsConnectionArgs = { + after?: InputMaybe; + first?: InputMaybe; + orderBy: Array; + where?: InputMaybe; +}; + + +export type QueryRebasesArgs = { + limit?: InputMaybe; + offset?: InputMaybe; + orderBy?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRebasesConnectionArgs = { + after?: InputMaybe; + first?: InputMaybe; + orderBy: Array; + where?: InputMaybe; +}; + + +export type QueryVaultByIdArgs = { + id: Scalars['String']['input']; +}; + + +export type QueryVaultByUniqueInputArgs = { + where: WhereIdInput; +}; + + +export type QueryVaultsArgs = { + limit?: InputMaybe; + offset?: InputMaybe; + orderBy?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryVaultsConnectionArgs = { + after?: InputMaybe; + first?: InputMaybe; + orderBy: Array; + where?: InputMaybe; +}; + +export type Rebase = { + __typename?: 'Rebase'; + apy: Apy; + blockNumber: Scalars['Int']['output']; + fee: Scalars['BigInt']['output']; + id: Scalars['String']['output']; + rebasingCredits: Scalars['BigInt']['output']; + rebasingCreditsPerToken: Scalars['BigInt']['output']; + timestamp: Scalars['DateTime']['output']; + totalSupply: Scalars['BigInt']['output']; + txHash: Scalars['String']['output']; + yield: Scalars['BigInt']['output']; +}; + +export type RebaseEdge = { + __typename?: 'RebaseEdge'; + cursor: Scalars['String']['output']; + node: Rebase; +}; + +export type RebaseOption = { + __typename?: 'RebaseOption'; address: Address; - balance: Scalars['Float']['output']; blockNumber: Scalars['Int']['output']; id: Scalars['String']['output']; + status: RebasingOption; timestamp: Scalars['DateTime']['output']; txHash: Scalars['String']['output']; - type: Scalars['String']['output']; - value: Scalars['Float']['output']; }; -export type HistoryEdge = { - __typename?: 'HistoryEdge'; +export type RebaseOptionEdge = { + __typename?: 'RebaseOptionEdge'; cursor: Scalars['String']['output']; - node: History; + node: RebaseOption; }; -export enum HistoryOrderByInput { +export enum RebaseOptionOrderByInput { AddressBalanceAsc = 'address_balance_ASC', AddressBalanceAscNullsFirst = 'address_balance_ASC_NULLS_FIRST', AddressBalanceDesc = 'address_balance_DESC', @@ -396,10 +1465,6 @@ export enum HistoryOrderByInput { AddressRebasingOptionAscNullsFirst = 'address_rebasingOption_ASC_NULLS_FIRST', AddressRebasingOptionDesc = 'address_rebasingOption_DESC', AddressRebasingOptionDescNullsLast = 'address_rebasingOption_DESC_NULLS_LAST', - BalanceAsc = 'balance_ASC', - BalanceAscNullsFirst = 'balance_ASC_NULLS_FIRST', - BalanceDesc = 'balance_DESC', - BalanceDescNullsLast = 'balance_DESC_NULLS_LAST', BlockNumberAsc = 'blockNumber_ASC', BlockNumberAscNullsFirst = 'blockNumber_ASC_NULLS_FIRST', BlockNumberDesc = 'blockNumber_DESC', @@ -408,6 +1473,10 @@ export enum HistoryOrderByInput { IdAscNullsFirst = 'id_ASC_NULLS_FIRST', IdDesc = 'id_DESC', IdDescNullsLast = 'id_DESC_NULLS_LAST', + StatusAsc = 'status_ASC', + StatusAscNullsFirst = 'status_ASC_NULLS_FIRST', + StatusDesc = 'status_DESC', + StatusDescNullsLast = 'status_DESC_NULLS_LAST', TimestampAsc = 'timestamp_ASC', TimestampAscNullsFirst = 'timestamp_ASC_NULLS_FIRST', TimestampDesc = 'timestamp_DESC', @@ -415,31 +1484,14 @@ export enum HistoryOrderByInput { TxHashAsc = 'txHash_ASC', TxHashAscNullsFirst = 'txHash_ASC_NULLS_FIRST', TxHashDesc = 'txHash_DESC', - TxHashDescNullsLast = 'txHash_DESC_NULLS_LAST', - TypeAsc = 'type_ASC', - TypeAscNullsFirst = 'type_ASC_NULLS_FIRST', - TypeDesc = 'type_DESC', - TypeDescNullsLast = 'type_DESC_NULLS_LAST', - ValueAsc = 'value_ASC', - ValueAscNullsFirst = 'value_ASC_NULLS_FIRST', - ValueDesc = 'value_DESC', - ValueDescNullsLast = 'value_DESC_NULLS_LAST' + TxHashDescNullsLast = 'txHash_DESC_NULLS_LAST' } -export type HistoryWhereInput = { - AND?: InputMaybe>; - OR?: InputMaybe>; +export type RebaseOptionWhereInput = { + AND?: InputMaybe>; + OR?: InputMaybe>; address?: InputMaybe; address_isNull?: InputMaybe; - balance_eq?: InputMaybe; - balance_gt?: InputMaybe; - balance_gte?: InputMaybe; - balance_in?: InputMaybe>; - balance_isNull?: InputMaybe; - balance_lt?: InputMaybe; - balance_lte?: InputMaybe; - balance_not_eq?: InputMaybe; - balance_not_in?: InputMaybe>; blockNumber_eq?: InputMaybe; blockNumber_gt?: InputMaybe; blockNumber_gte?: InputMaybe; @@ -466,6 +1518,11 @@ export type HistoryWhereInput = { id_not_in?: InputMaybe>; id_not_startsWith?: InputMaybe; id_startsWith?: InputMaybe; + status_eq?: InputMaybe; + status_in?: InputMaybe>; + status_isNull?: InputMaybe; + status_not_eq?: InputMaybe; + status_not_in?: InputMaybe>; timestamp_eq?: InputMaybe; timestamp_gt?: InputMaybe; timestamp_gte?: InputMaybe; @@ -492,187 +1549,13 @@ export type HistoryWhereInput = { txHash_not_in?: InputMaybe>; txHash_not_startsWith?: InputMaybe; txHash_startsWith?: InputMaybe; - type_contains?: InputMaybe; - type_containsInsensitive?: InputMaybe; - type_endsWith?: InputMaybe; - type_eq?: InputMaybe; - type_gt?: InputMaybe; - type_gte?: InputMaybe; - type_in?: InputMaybe>; - type_isNull?: InputMaybe; - type_lt?: InputMaybe; - type_lte?: InputMaybe; - type_not_contains?: InputMaybe; - type_not_containsInsensitive?: InputMaybe; - type_not_endsWith?: InputMaybe; - type_not_eq?: InputMaybe; - type_not_in?: InputMaybe>; - type_not_startsWith?: InputMaybe; - type_startsWith?: InputMaybe; - value_eq?: InputMaybe; - value_gt?: InputMaybe; - value_gte?: InputMaybe; - value_in?: InputMaybe>; - value_isNull?: InputMaybe; - value_lt?: InputMaybe; - value_lte?: InputMaybe; - value_not_eq?: InputMaybe; - value_not_in?: InputMaybe>; -}; - -export type PageInfo = { - __typename?: 'PageInfo'; - endCursor: Scalars['String']['output']; - hasNextPage: Scalars['Boolean']['output']; - hasPreviousPage: Scalars['Boolean']['output']; - startCursor: Scalars['String']['output']; -}; - -export type Query = { - __typename?: 'Query'; - addressById?: Maybe
; - /** @deprecated Use addressById */ - addressByUniqueInput?: Maybe
; - addresses: Array
; - addressesConnection: AddressesConnection; - apies: Array; - apiesConnection: APiesConnection; - apyById?: Maybe; - /** @deprecated Use apyById */ - apyByUniqueInput?: Maybe; - histories: Array; - historiesConnection: HistoriesConnection; - historyById?: Maybe; - /** @deprecated Use historyById */ - historyByUniqueInput?: Maybe; - rebaseById?: Maybe; - /** @deprecated Use rebaseById */ - rebaseByUniqueInput?: Maybe; - rebases: Array; - rebasesConnection: RebasesConnection; - squidStatus?: Maybe; -}; - - -export type QueryAddressByIdArgs = { - id: Scalars['String']['input']; -}; - - -export type QueryAddressByUniqueInputArgs = { - where: WhereIdInput; -}; - - -export type QueryAddressesArgs = { - limit?: InputMaybe; - offset?: InputMaybe; - orderBy?: InputMaybe>; - where?: InputMaybe; -}; - - -export type QueryAddressesConnectionArgs = { - after?: InputMaybe; - first?: InputMaybe; - orderBy: Array; - where?: InputMaybe; -}; - - -export type QueryApiesArgs = { - limit?: InputMaybe; - offset?: InputMaybe; - orderBy?: InputMaybe>; - where?: InputMaybe; -}; - - -export type QueryApiesConnectionArgs = { - after?: InputMaybe; - first?: InputMaybe; - orderBy: Array; - where?: InputMaybe; -}; - - -export type QueryApyByIdArgs = { - id: Scalars['String']['input']; -}; - - -export type QueryApyByUniqueInputArgs = { - where: WhereIdInput; -}; - - -export type QueryHistoriesArgs = { - limit?: InputMaybe; - offset?: InputMaybe; - orderBy?: InputMaybe>; - where?: InputMaybe; -}; - - -export type QueryHistoriesConnectionArgs = { - after?: InputMaybe; - first?: InputMaybe; - orderBy: Array; - where?: InputMaybe; -}; - - -export type QueryHistoryByIdArgs = { - id: Scalars['String']['input']; -}; - - -export type QueryHistoryByUniqueInputArgs = { - where: WhereIdInput; -}; - - -export type QueryRebaseByIdArgs = { - id: Scalars['String']['input']; -}; - - -export type QueryRebaseByUniqueInputArgs = { - where: WhereIdInput; -}; - - -export type QueryRebasesArgs = { - limit?: InputMaybe; - offset?: InputMaybe; - orderBy?: InputMaybe>; - where?: InputMaybe; -}; - - -export type QueryRebasesConnectionArgs = { - after?: InputMaybe; - first?: InputMaybe; - orderBy: Array; - where?: InputMaybe; -}; - -export type Rebase = { - __typename?: 'Rebase'; - apy: Apy; - blockNumber: Scalars['Int']['output']; - id: Scalars['String']['output']; - rebasingCredits: Scalars['BigInt']['output']; - rebasingCreditsPerToken: Scalars['BigInt']['output']; - timestamp: Scalars['DateTime']['output']; - totalSupply: Scalars['BigInt']['output']; - txHash: Scalars['String']['output']; }; -export type RebaseEdge = { - __typename?: 'RebaseEdge'; - cursor: Scalars['String']['output']; - node: Rebase; +export type RebaseOptionsConnection = { + __typename?: 'RebaseOptionsConnection'; + edges: Array; + pageInfo: PageInfo; + totalCount: Scalars['Int']['output']; }; export enum RebaseOrderByInput { @@ -720,6 +1603,10 @@ export enum RebaseOrderByInput { BlockNumberAscNullsFirst = 'blockNumber_ASC_NULLS_FIRST', BlockNumberDesc = 'blockNumber_DESC', BlockNumberDescNullsLast = 'blockNumber_DESC_NULLS_LAST', + FeeAsc = 'fee_ASC', + FeeAscNullsFirst = 'fee_ASC_NULLS_FIRST', + FeeDesc = 'fee_DESC', + FeeDescNullsLast = 'fee_DESC_NULLS_LAST', IdAsc = 'id_ASC', IdAscNullsFirst = 'id_ASC_NULLS_FIRST', IdDesc = 'id_DESC', @@ -743,7 +1630,11 @@ export enum RebaseOrderByInput { TxHashAsc = 'txHash_ASC', TxHashAscNullsFirst = 'txHash_ASC_NULLS_FIRST', TxHashDesc = 'txHash_DESC', - TxHashDescNullsLast = 'txHash_DESC_NULLS_LAST' + TxHashDescNullsLast = 'txHash_DESC_NULLS_LAST', + YieldAsc = 'yield_ASC', + YieldAscNullsFirst = 'yield_ASC_NULLS_FIRST', + YieldDesc = 'yield_DESC', + YieldDescNullsLast = 'yield_DESC_NULLS_LAST' } export type RebaseWhereInput = { @@ -760,6 +1651,15 @@ export type RebaseWhereInput = { blockNumber_lte?: InputMaybe; blockNumber_not_eq?: InputMaybe; blockNumber_not_in?: InputMaybe>; + fee_eq?: InputMaybe; + fee_gt?: InputMaybe; + fee_gte?: InputMaybe; + fee_in?: InputMaybe>; + fee_isNull?: InputMaybe; + fee_lt?: InputMaybe; + fee_lte?: InputMaybe; + fee_not_eq?: InputMaybe; + fee_not_in?: InputMaybe>; id_contains?: InputMaybe; id_containsInsensitive?: InputMaybe; id_endsWith?: InputMaybe; @@ -830,6 +1730,15 @@ export type RebaseWhereInput = { txHash_not_in?: InputMaybe>; txHash_not_startsWith?: InputMaybe; txHash_startsWith?: InputMaybe; + yield_eq?: InputMaybe; + yield_gt?: InputMaybe; + yield_gte?: InputMaybe; + yield_in?: InputMaybe>; + yield_isNull?: InputMaybe; + yield_lt?: InputMaybe; + yield_lte?: InputMaybe; + yield_not_eq?: InputMaybe; + yield_not_in?: InputMaybe>; }; export type RebasesConnection = { @@ -839,12 +1748,148 @@ export type RebasesConnection = { totalCount: Scalars['Int']['output']; }; +export enum RebasingOption { + OptIn = 'OptIn', + OptOut = 'OptOut' +} + export type SquidStatus = { __typename?: 'SquidStatus'; /** The height of the processed part of the chain */ height?: Maybe; }; +export type Vault = { + __typename?: 'Vault'; + blockNumber: Scalars['Int']['output']; + frxETH: Scalars['BigInt']['output']; + id: Scalars['String']['output']; + rETH: Scalars['BigInt']['output']; + stETH: Scalars['BigInt']['output']; + timestamp: Scalars['DateTime']['output']; + weth: Scalars['BigInt']['output']; +}; + +export type VaultEdge = { + __typename?: 'VaultEdge'; + cursor: Scalars['String']['output']; + node: Vault; +}; + +export enum VaultOrderByInput { + BlockNumberAsc = 'blockNumber_ASC', + BlockNumberAscNullsFirst = 'blockNumber_ASC_NULLS_FIRST', + BlockNumberDesc = 'blockNumber_DESC', + BlockNumberDescNullsLast = 'blockNumber_DESC_NULLS_LAST', + FrxEthAsc = 'frxETH_ASC', + FrxEthAscNullsFirst = 'frxETH_ASC_NULLS_FIRST', + FrxEthDesc = 'frxETH_DESC', + FrxEthDescNullsLast = 'frxETH_DESC_NULLS_LAST', + IdAsc = 'id_ASC', + IdAscNullsFirst = 'id_ASC_NULLS_FIRST', + IdDesc = 'id_DESC', + IdDescNullsLast = 'id_DESC_NULLS_LAST', + REthAsc = 'rETH_ASC', + REthAscNullsFirst = 'rETH_ASC_NULLS_FIRST', + REthDesc = 'rETH_DESC', + REthDescNullsLast = 'rETH_DESC_NULLS_LAST', + StEthAsc = 'stETH_ASC', + StEthAscNullsFirst = 'stETH_ASC_NULLS_FIRST', + StEthDesc = 'stETH_DESC', + StEthDescNullsLast = 'stETH_DESC_NULLS_LAST', + TimestampAsc = 'timestamp_ASC', + TimestampAscNullsFirst = 'timestamp_ASC_NULLS_FIRST', + TimestampDesc = 'timestamp_DESC', + TimestampDescNullsLast = 'timestamp_DESC_NULLS_LAST', + WethAsc = 'weth_ASC', + WethAscNullsFirst = 'weth_ASC_NULLS_FIRST', + WethDesc = 'weth_DESC', + WethDescNullsLast = 'weth_DESC_NULLS_LAST' +} + +export type VaultWhereInput = { + AND?: InputMaybe>; + OR?: InputMaybe>; + blockNumber_eq?: InputMaybe; + blockNumber_gt?: InputMaybe; + blockNumber_gte?: InputMaybe; + blockNumber_in?: InputMaybe>; + blockNumber_isNull?: InputMaybe; + blockNumber_lt?: InputMaybe; + blockNumber_lte?: InputMaybe; + blockNumber_not_eq?: InputMaybe; + blockNumber_not_in?: InputMaybe>; + frxETH_eq?: InputMaybe; + frxETH_gt?: InputMaybe; + frxETH_gte?: InputMaybe; + frxETH_in?: InputMaybe>; + frxETH_isNull?: InputMaybe; + frxETH_lt?: InputMaybe; + frxETH_lte?: InputMaybe; + frxETH_not_eq?: InputMaybe; + frxETH_not_in?: InputMaybe>; + id_contains?: InputMaybe; + id_containsInsensitive?: InputMaybe; + id_endsWith?: InputMaybe; + id_eq?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_isNull?: InputMaybe; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not_contains?: InputMaybe; + id_not_containsInsensitive?: InputMaybe; + id_not_endsWith?: InputMaybe; + id_not_eq?: InputMaybe; + id_not_in?: InputMaybe>; + id_not_startsWith?: InputMaybe; + id_startsWith?: InputMaybe; + rETH_eq?: InputMaybe; + rETH_gt?: InputMaybe; + rETH_gte?: InputMaybe; + rETH_in?: InputMaybe>; + rETH_isNull?: InputMaybe; + rETH_lt?: InputMaybe; + rETH_lte?: InputMaybe; + rETH_not_eq?: InputMaybe; + rETH_not_in?: InputMaybe>; + stETH_eq?: InputMaybe; + stETH_gt?: InputMaybe; + stETH_gte?: InputMaybe; + stETH_in?: InputMaybe>; + stETH_isNull?: InputMaybe; + stETH_lt?: InputMaybe; + stETH_lte?: InputMaybe; + stETH_not_eq?: InputMaybe; + stETH_not_in?: InputMaybe>; + timestamp_eq?: InputMaybe; + timestamp_gt?: InputMaybe; + timestamp_gte?: InputMaybe; + timestamp_in?: InputMaybe>; + timestamp_isNull?: InputMaybe; + timestamp_lt?: InputMaybe; + timestamp_lte?: InputMaybe; + timestamp_not_eq?: InputMaybe; + timestamp_not_in?: InputMaybe>; + weth_eq?: InputMaybe; + weth_gt?: InputMaybe; + weth_gte?: InputMaybe; + weth_in?: InputMaybe>; + weth_isNull?: InputMaybe; + weth_lt?: InputMaybe; + weth_lte?: InputMaybe; + weth_not_eq?: InputMaybe; + weth_not_in?: InputMaybe>; +}; + +export type VaultsConnection = { + __typename?: 'VaultsConnection'; + edges: Array; + pageInfo: PageInfo; + totalCount: Scalars['Int']['output']; +}; + export type WhereIdInput = { id: Scalars['String']['input']; }; diff --git a/libs/oeth/swap/src/queries.generated.ts b/libs/oeth/swap/src/queries.generated.ts index c94d68aeb..148c79d8f 100644 --- a/libs/oeth/swap/src/queries.generated.ts +++ b/libs/oeth/swap/src/queries.generated.ts @@ -12,7 +12,7 @@ export type ApiesQuery = { apies: Array<{ __typename?: 'APY'; id: string; - timestamp: any; + timestamp: string; apy7DayAvg: number; apy30DayAvg: number; }>;