From d131fab4c9f0c2300913db57d5dbb7b3da504e24 Mon Sep 17 00:00:00 2001 From: belopash Date: Thu, 9 May 2024 20:57:06 +0500 Subject: [PATCH 01/11] fix: fix total worker reward display value --- src/api/subsquid-network-squid/workers-graphql.ts | 4 ++-- src/pages/WorkersPage/MyWorkerStat.tsx | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/api/subsquid-network-squid/workers-graphql.ts b/src/api/subsquid-network-squid/workers-graphql.ts index 5d6f2a1..97c6b8b 100644 --- a/src/api/subsquid-network-squid/workers-graphql.ts +++ b/src/api/subsquid-network-squid/workers-graphql.ts @@ -49,7 +49,7 @@ export class BlockchainApiWorker { }[] = []; myDelegationsTotal: Decimal; myDelegationsRewardsTotal: Decimal; - totalReward: Decimal; + totalReward: string; constructor({ worker, address }: { worker: WorkerFragmentFragment; address?: `0x${string}` }) { const totalDelegation = fromSqd(worker.totalDelegation); @@ -74,7 +74,7 @@ export class BlockchainApiWorker { new Decimal(0), ); - this.totalReward = new Decimal(this.claimedReward).add(this.claimableReward); + this.totalReward = new Decimal(this.claimedReward).add(this.claimableReward).toFixed(0); } } diff --git a/src/pages/WorkersPage/MyWorkerStat.tsx b/src/pages/WorkersPage/MyWorkerStat.tsx index 133af91..5e4d856 100644 --- a/src/pages/WorkersPage/MyWorkerStat.tsx +++ b/src/pages/WorkersPage/MyWorkerStat.tsx @@ -48,9 +48,7 @@ export const MyWorkerStat = ({ worker }: { worker: BlockchainApiWorker }) => { Total rewards - - {formatSqd(SQD_TOKEN, new Decimal(worker.claimedReward).add(worker.claimableReward))} - + {formatSqd(SQD_TOKEN, worker.totalReward)} From 740085d85a5cdfaac4a5bf47f44faf1b3612c9fb Mon Sep 17 00:00:00 2001 From: belopash Date: Fri, 10 May 2024 15:07:51 +0500 Subject: [PATCH 02/11] feat: hide uptime graph --- src/pages/WorkersPage/WorkerStatistics.tsx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/pages/WorkersPage/WorkerStatistics.tsx b/src/pages/WorkersPage/WorkerStatistics.tsx index 9c0f5df..7467e5d 100644 --- a/src/pages/WorkersPage/WorkerStatistics.tsx +++ b/src/pages/WorkersPage/WorkerStatistics.tsx @@ -93,7 +93,7 @@ export const WorkerStatistics = ({ worker }: { worker: BlockchainApiFullWorker } - + {/* */} {/**/} @@ -105,14 +105,20 @@ export const WorkerStatistics = ({ worker }: { worker: BlockchainApiFullWorker } {/* */} {/**/} - Queries, last 24 hours / last 90 days + Uptime, 24 hours / 90 days + + {percentFormatter(worker.uptime24Hours)} / {percentFormatter(worker.uptime90Days)} + + + + Queries, 24 hours / 90 days {numberWithSpacesFormatter(worker.queries24Hours)} /{' '} {numberWithSpacesFormatter(worker.queries90Days)} - Data served, last 24 hours / last 90 days + Data served, 24 hours / 90 days {bytesFormatter(worker.servedData24Hours)} / {bytesFormatter(worker.servedData90Days)} From 9885bf3aa874a2e6b7d42843108825d341b97ae4 Mon Sep 17 00:00:00 2001 From: belopash Date: Fri, 10 May 2024 17:52:36 +0500 Subject: [PATCH 03/11] feat: hide 0 delegator apr if there are no delegators --- src/api/subsquid-network-squid/workers-graphql.ts | 2 +- src/pages/DashboardPage/Workers.tsx | 6 +++++- src/pages/WorkersPage/WorkerStatistics.tsx | 8 +++++--- src/pages/WorkersPage/WorkersPage.tsx | 6 ++++++ 4 files changed, 17 insertions(+), 5 deletions(-) diff --git a/src/api/subsquid-network-squid/workers-graphql.ts b/src/api/subsquid-network-squid/workers-graphql.ts index 97c6b8b..0667f4b 100644 --- a/src/api/subsquid-network-squid/workers-graphql.ts +++ b/src/api/subsquid-network-squid/workers-graphql.ts @@ -149,7 +149,7 @@ export function useWorkers({ case WorkerSortBy.DelegationCapacity: return a.totalDelegations.capacity.minus(b.totalDelegations.capacity).toNumber(); case WorkerSortBy.StakerAPR: - return (a.stakerApr || 0) - (b.stakerApr || 0); + return (a.stakerApr || 0) - (b.stakerApr || 0) || a.delegationCount - b.delegationCount; case WorkerSortBy.WorkerAPR: return (a.apr || 0) - (b.apr || 0); default: diff --git a/src/pages/DashboardPage/Workers.tsx b/src/pages/DashboardPage/Workers.tsx index 4826892..674db3d 100644 --- a/src/pages/DashboardPage/Workers.tsx +++ b/src/pages/DashboardPage/Workers.tsx @@ -139,7 +139,11 @@ export function Workers() { {percentFormatter(worker.uptime24Hours)} {percentFormatter(worker.apr)} - {percentFormatter(worker.stakerApr)} + + {worker.delegationCount || worker.stakerApr + ? percentFormatter(worker.stakerApr) + : '-'} + {/*{formatSqd(worker.totalDelegations.capacity, 0)}*/} {dateFormat(worker.createdAt)} diff --git a/src/pages/WorkersPage/WorkerStatistics.tsx b/src/pages/WorkersPage/WorkerStatistics.tsx index 7467e5d..107d91e 100644 --- a/src/pages/WorkersPage/WorkerStatistics.tsx +++ b/src/pages/WorkersPage/WorkerStatistics.tsx @@ -11,8 +11,6 @@ import { BlockchainApiFullWorker } from '@api/subsquid-network-squid'; import { Card } from '@components/Card'; import { Online } from '@components/Online'; -import { UptimeGraph } from './UptimeGraph'; - export const WorkerColumnLabel = styled(Box, { name: 'WorkerColumnLabel', })(() => ({ @@ -65,7 +63,11 @@ export const WorkerStatistics = ({ worker }: { worker: BlockchainApiFullWorker } Delegator APR - {percentFormatter(worker.stakerApr)} + + {worker.delegationCount || worker.stakerApr + ? percentFormatter(worker.stakerApr) + : '-'} + {/**/} diff --git a/src/pages/WorkersPage/WorkersPage.tsx b/src/pages/WorkersPage/WorkersPage.tsx index 48a5ea9..c53adc1 100644 --- a/src/pages/WorkersPage/WorkersPage.tsx +++ b/src/pages/WorkersPage/WorkersPage.tsx @@ -44,6 +44,7 @@ export function MyWorkers() { Status Uptime, 24h APR, 7d + Delegator APR, 7d Total reward @@ -64,6 +65,11 @@ export function MyWorkers() { {percentFormatter(worker.uptime24Hours)} {percentFormatter(worker.apr)} + + {worker.delegationCount || worker.stakerApr + ? percentFormatter(worker.stakerApr) + : '-'} + {formatSqd(SQD_TOKEN, worker.totalReward)} From 33fa618aa1006f5d579d2713632b9207046d3d30 Mon Sep 17 00:00:00 2001 From: belopash Date: Fri, 10 May 2024 20:08:04 +0500 Subject: [PATCH 04/11] fix: don't display null aprs --- src/pages/DashboardPage/Workers.tsx | 6 ++---- src/pages/DelegationsPage/DelegationsPage.tsx | 4 +++- src/pages/WorkersPage/MyWorkerStat.tsx | 3 +-- src/pages/WorkersPage/WorkerStatistics.tsx | 6 +----- src/pages/WorkersPage/WorkersPage.tsx | 6 ++---- 5 files changed, 9 insertions(+), 16 deletions(-) diff --git a/src/pages/DashboardPage/Workers.tsx b/src/pages/DashboardPage/Workers.tsx index 674db3d..f43d150 100644 --- a/src/pages/DashboardPage/Workers.tsx +++ b/src/pages/DashboardPage/Workers.tsx @@ -138,11 +138,9 @@ export function Workers() { {percentFormatter(worker.uptime24Hours)} - {percentFormatter(worker.apr)} + {worker.apr != null ? percentFormatter(worker.apr) : '-'} - {worker.delegationCount || worker.stakerApr - ? percentFormatter(worker.stakerApr) - : '-'} + {worker.stakerApr != null ? percentFormatter(worker.stakerApr) : '-'} {/*{formatSqd(worker.totalDelegations.capacity, 0)}*/} {dateFormat(worker.createdAt)} diff --git a/src/pages/DelegationsPage/DelegationsPage.tsx b/src/pages/DelegationsPage/DelegationsPage.tsx index f7b4378..e560036 100644 --- a/src/pages/DelegationsPage/DelegationsPage.tsx +++ b/src/pages/DelegationsPage/DelegationsPage.tsx @@ -54,7 +54,9 @@ export function MyDelegations() { {formatSqd(SQD_TOKEN, worker.myDelegationsTotal)} - {percentFormatter(worker.stakerApr)} + + {worker.stakerApr != null ? percentFormatter(worker.stakerApr) : '-'} + {formatSqd(SQD_TOKEN, worker.myDelegationsRewardsTotal)} diff --git a/src/pages/WorkersPage/MyWorkerStat.tsx b/src/pages/WorkersPage/MyWorkerStat.tsx index 5e4d856..e387576 100644 --- a/src/pages/WorkersPage/MyWorkerStat.tsx +++ b/src/pages/WorkersPage/MyWorkerStat.tsx @@ -2,7 +2,6 @@ import React from 'react'; import { percentFormatter } from '@lib/formatters/formatters.ts'; import { Box, Divider, Stack, styled } from '@mui/material'; -import Decimal from 'decimal.js'; import { formatSqd } from '@api/contracts/utils'; import { BlockchainApiWorker } from '@api/subsquid-network-squid'; @@ -36,7 +35,7 @@ export const MyWorkerStat = ({ worker }: { worker: BlockchainApiWorker }) => { Worker APR - {percentFormatter(worker.apr)} + {worker.apr != null ? percentFormatter(worker.apr) : '-'} diff --git a/src/pages/WorkersPage/WorkerStatistics.tsx b/src/pages/WorkersPage/WorkerStatistics.tsx index 107d91e..49a4c3e 100644 --- a/src/pages/WorkersPage/WorkerStatistics.tsx +++ b/src/pages/WorkersPage/WorkerStatistics.tsx @@ -63,11 +63,7 @@ export const WorkerStatistics = ({ worker }: { worker: BlockchainApiFullWorker } Delegator APR - - {worker.delegationCount || worker.stakerApr - ? percentFormatter(worker.stakerApr) - : '-'} - + {worker.stakerApr != null ? percentFormatter(worker.stakerApr) : '-'} {/**/} diff --git a/src/pages/WorkersPage/WorkersPage.tsx b/src/pages/WorkersPage/WorkersPage.tsx index c53adc1..4108f0f 100644 --- a/src/pages/WorkersPage/WorkersPage.tsx +++ b/src/pages/WorkersPage/WorkersPage.tsx @@ -64,11 +64,9 @@ export function MyWorkers() { {percentFormatter(worker.uptime24Hours)} - {percentFormatter(worker.apr)} + {worker.apr != null ? percentFormatter(worker.apr) : '-'} - {worker.delegationCount || worker.stakerApr - ? percentFormatter(worker.stakerApr) - : '-'} + {worker.stakerApr != null ? percentFormatter(worker.stakerApr) : '-'} {formatSqd(SQD_TOKEN, worker.totalReward)} From c96c8fd3e0c1bf65487edc758d87798555abd0c9 Mon Sep 17 00:00:00 2001 From: belopash Date: Sat, 11 May 2024 16:35:04 +0500 Subject: [PATCH 05/11] fix: increase Decimal precision --- src/index.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/index.tsx b/src/index.tsx index 0893f2b..f88ca2e 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -2,6 +2,7 @@ import React from 'react'; import { info } from '@logger'; import * as Sentry from '@sentry/react'; +import Decimal from 'decimal.js'; import { createRoot } from 'react-dom/client'; import { useNavigate } from 'react-router-dom'; import { useDisconnect } from 'wagmi'; @@ -10,6 +11,8 @@ import { queryClient } from '@api/client'; import App from './App'; +Decimal.set({ precision: 30, rounding: 3 }); + declare global { interface process { env: { From 7da2babd15f3dda21bc2ab164c726e93698f2d58 Mon Sep 17 00:00:00 2001 From: belopash Date: Mon, 13 May 2024 19:12:52 +0500 Subject: [PATCH 06/11] feat: switch wallet --- src/api/subsquid-network-squid/datasource.ts | 2 +- .../NetworkSwitcher/NetworkSwitcher.tsx | 16 ++++++++--- src/layouts/NetworkLayout/NetworkLayout.tsx | 4 +-- src/network/config.ts | 27 +++++++++--------- src/network/useContracts.ts | 2 +- src/network/useSubsquidNetwork.ts | 9 ++++-- src/network/useSwitchNetwork.ts | 28 +++++++++++++++---- 7 files changed, 57 insertions(+), 31 deletions(-) diff --git a/src/api/subsquid-network-squid/datasource.ts b/src/api/subsquid-network-squid/datasource.ts index c8af1ab..fd3e7c3 100644 --- a/src/api/subsquid-network-squid/datasource.ts +++ b/src/api/subsquid-network-squid/datasource.ts @@ -1,7 +1,7 @@ import { NetworkName, useSubsquidNetwork } from '@network/useSubsquidNetwork'; export function useSquidDataSource() { - const [network] = useSubsquidNetwork(); + const { network } = useSubsquidNetwork(); return { endpoint: diff --git a/src/components/NetworkSwitcher/NetworkSwitcher.tsx b/src/components/NetworkSwitcher/NetworkSwitcher.tsx index 81d6918..cc50ed3 100644 --- a/src/components/NetworkSwitcher/NetworkSwitcher.tsx +++ b/src/components/NetworkSwitcher/NetworkSwitcher.tsx @@ -2,9 +2,11 @@ import React from 'react'; import { Button, styled, SxProps } from '@mui/material'; import capitalize from 'lodash-es/capitalize'; +import { useSwitchNetwork } from 'wagmi'; import { SwitchArrowsIcon } from '@icons/SwitchArrowsIcon'; import { NetworkName, useSubsquidNetwork } from '@network/useSubsquidNetwork.ts'; +import { getChainId } from '@network/useSwitchNetwork'; const SwitchButton = styled(Button)<{ fill?: string }>(({ theme, fill }) => ({ width: 'fit-content', @@ -22,18 +24,24 @@ export function NetworkSwitcher({ color?: string; hideText?: boolean; }) { - const [network, changNetwork] = useSubsquidNetwork(); + const { network, changeAndReset } = useSubsquidNetwork(); + const { switchNetworkAsync } = useSwitchNetwork(); const inverseNetworkName = (name: string) => name === NetworkName.Mainnet ? NetworkName.Testnet : NetworkName.Mainnet; - const handleAppSwitch = () => { - changNetwork(inverseNetworkName(network)); + const handleAppSwitchAsync = async (network: NetworkName) => { + await switchNetworkAsync?.(getChainId(network)); + changeAndReset(network); }; return ( <> - + handleAppSwitchAsync(inverseNetworkName(network))} + sx={sx} + > {hideText ? null : `Switch to ${capitalize(inverseNetworkName(network))}`} diff --git a/src/layouts/NetworkLayout/NetworkLayout.tsx b/src/layouts/NetworkLayout/NetworkLayout.tsx index 7bc1e47..705f562 100644 --- a/src/layouts/NetworkLayout/NetworkLayout.tsx +++ b/src/layouts/NetworkLayout/NetworkLayout.tsx @@ -19,7 +19,7 @@ import { TopBanner, useBannerHeight } from '@components/TopBanner'; import { demoFeaturesEnabled } from '@hooks/demoFeaturesEnabled'; import { MenuIcon } from '@icons/MenuIcon'; import { UserMenu } from '@layouts/NetworkLayout/UserMenu.tsx'; -import { useSwitchNetwork } from '@network/useSwitchNetwork'; +import { useSwitchSubsquidNetwork } from '@network/useSwitchNetwork'; import '@rainbow-me/rainbowkit/styles.css'; @@ -258,7 +258,7 @@ export const NetworkLayout = ({ }: PropsWithChildren<{ stretchContent?: boolean; }>) => { - useSwitchNetwork(); + useSwitchSubsquidNetwork(); const theme = useTheme(); const narrowLg = useMediaQuery(theme.breakpoints.down('lg')); diff --git a/src/network/config.ts b/src/network/config.ts index 5376d2d..267b300 100644 --- a/src/network/config.ts +++ b/src/network/config.ts @@ -1,22 +1,21 @@ import { connectorsForWallets } from '@rainbow-me/rainbowkit'; import { metaMaskWallet, walletConnectWallet } from '@rainbow-me/rainbowkit/wallets'; import { configureChains, createConfig } from 'wagmi'; -import { Chain } from 'wagmi'; -import { arbitrumSepolia, hardhat } from 'wagmi/chains'; +import { arbitrumSepolia, arbitrum } from 'wagmi/chains'; import { jsonRpcProvider } from 'wagmi/providers/jsonRpc'; import { publicProvider } from 'wagmi/providers/public'; -export let CHAIN: Chain = arbitrumSepolia; -if (process.env.NETWORK === 'hardhat') { - CHAIN = { - ...hardhat, - contracts: { - multicall3: { - address: process.env.MULTICALL_3_CONTRACT_ADDRESS, - } as any, - }, - }; -} +// export let CHAIN: Chain = arbitrumSepolia; +// if (process.env.NETWORK === 'hardhat') { +// CHAIN = { +// ...hardhat, +// contracts: { +// multicall3: { +// address: process.env.MULTICALL_3_CONTRACT_ADDRESS, +// } as any, +// }, +// }; +// } const privateNode = process.env.BLOCK_CHAIN_NODE_ADDRESS; @@ -25,7 +24,7 @@ const { publicClient, webSocketPublicClient, } = configureChains( - [CHAIN], + [arbitrumSepolia, arbitrum], [ privateNode ? jsonRpcProvider({ diff --git a/src/network/useContracts.ts b/src/network/useContracts.ts index 171c87d..31ecea7 100644 --- a/src/network/useContracts.ts +++ b/src/network/useContracts.ts @@ -9,7 +9,7 @@ export function useContracts(): { GATEWAY_REGISTRATION: `0x${string}`; SQD_TOKEN: string; } { - const [network] = useSubsquidNetwork(); + const { network } = useSubsquidNetwork(); switch (network) { case NetworkName.Testnet: { diff --git a/src/network/useSubsquidNetwork.ts b/src/network/useSubsquidNetwork.ts index e4878df..719aa71 100644 --- a/src/network/useSubsquidNetwork.ts +++ b/src/network/useSubsquidNetwork.ts @@ -1,10 +1,13 @@ -import { useEffect } from 'react'; +import { useState } from 'react'; import { useQueryClient } from '@tanstack/react-query'; import useLocalStorageState from 'use-local-storage-state'; +import { useSwitchNetwork } from 'wagmi'; import { localStorageStringSerializer } from '@hooks/useLocalStorageState.ts'; +import { getChainId } from './useSwitchNetwork'; + export enum NetworkName { Testnet = 'testnet', Mainnet = 'mainnet', @@ -16,7 +19,7 @@ function validate(app: NetworkName): NetworkName { return Object.values(NetworkName).includes(app) ? (app as NetworkName) : defaultApp; } -export function useSubsquidNetwork(): [NetworkName, (app: NetworkName) => void] { +export function useSubsquidNetwork() { const [app, changeApp] = useLocalStorageState('network', { serializer: localStorageStringSerializer, defaultValue: defaultApp, @@ -29,5 +32,5 @@ export function useSubsquidNetwork(): [NetworkName, (app: NetworkName) => void] queryClient.clear(); }; - return [validate(app), changeAndReset]; + return { network: validate(app), changeAndReset }; } diff --git a/src/network/useSwitchNetwork.ts b/src/network/useSwitchNetwork.ts index 7e97820..d1d79ea 100644 --- a/src/network/useSwitchNetwork.ts +++ b/src/network/useSwitchNetwork.ts @@ -1,19 +1,30 @@ import { useCallback, useEffect } from 'react'; import { useSnackbar } from 'notistack'; -import { useAccount, useDisconnect, useNetwork } from 'wagmi'; +import { arbitrum, arbitrumSepolia } from 'viem/chains'; +import { useAccount, useDisconnect, useNetwork, useWalletClient } from 'wagmi'; import { SQD_DECIMALS, SQD_TOKEN } from '@api/contracts/consts.ts'; import { useContracts } from '@network/useContracts.ts'; -import { chains } from './config.ts'; +import { NetworkName, useSubsquidNetwork } from './useSubsquidNetwork.ts'; -export function useSwitchNetwork() { +export function getChainId(network: NetworkName) { + return network === NetworkName.Mainnet ? arbitrum.id : arbitrumSepolia.id; +} + +export function getNetworkName(chainId?: number) { + return chainId === arbitrum.id ? NetworkName.Mainnet : NetworkName.Testnet; +} + +export function useSwitchSubsquidNetwork() { const contracts = useContracts(); const { isConnected, connector } = useAccount(); + const { isLoading } = useWalletClient(); const { chain } = useNetwork(); const { disconnect } = useDisconnect(); const { enqueueSnackbar } = useSnackbar(); + const { network, changeAndReset } = useSubsquidNetwork(); const importMetamaskSqdToken = useCallback(async () => { if (!connector) return; @@ -47,9 +58,14 @@ export function useSwitchNetwork() { }, [connector, enqueueSnackbar, contracts.SQD]); useEffect(() => { - if (!isConnected) return; - else if (chains[0].id === chain?.id) return; + if (!isConnected || isLoading) return; + + if (chain?.id === getChainId(network)) return; + + if (!chain?.unsupported) { + return changeAndReset(getNetworkName(chain?.id)); + } disconnect(); - }, [chain?.id, disconnect, isConnected]); + }, [chain, disconnect, isConnected, network, isLoading, changeAndReset]); } From e94b2d5c3a1330a112e67acf78a736c21207c880 Mon Sep 17 00:00:00 2001 From: belopash Date: Mon, 13 May 2024 21:22:03 +0500 Subject: [PATCH 07/11] refactor: move switch effect to the layout --- .../NetworkSwitcher/NetworkSwitcher.tsx | 5 +- src/layouts/NetworkLayout/NetworkLayout.tsx | 31 ++++++-- src/network/useSubsquidNetwork.ts | 18 +++-- src/network/useSwitchNetwork.ts | 71 ------------------- 4 files changed, 38 insertions(+), 87 deletions(-) delete mode 100644 src/network/useSwitchNetwork.ts diff --git a/src/components/NetworkSwitcher/NetworkSwitcher.tsx b/src/components/NetworkSwitcher/NetworkSwitcher.tsx index cc50ed3..9d5fac1 100644 --- a/src/components/NetworkSwitcher/NetworkSwitcher.tsx +++ b/src/components/NetworkSwitcher/NetworkSwitcher.tsx @@ -5,8 +5,7 @@ import capitalize from 'lodash-es/capitalize'; import { useSwitchNetwork } from 'wagmi'; import { SwitchArrowsIcon } from '@icons/SwitchArrowsIcon'; -import { NetworkName, useSubsquidNetwork } from '@network/useSubsquidNetwork.ts'; -import { getChainId } from '@network/useSwitchNetwork'; +import { getChainId, NetworkName, useSubsquidNetwork } from '@network/useSubsquidNetwork.ts'; const SwitchButton = styled(Button)<{ fill?: string }>(({ theme, fill }) => ({ width: 'fit-content', @@ -24,7 +23,7 @@ export function NetworkSwitcher({ color?: string; hideText?: boolean; }) { - const { network, changeAndReset } = useSubsquidNetwork(); + const { network, switchAndReset: changeAndReset } = useSubsquidNetwork(); const { switchNetworkAsync } = useSwitchNetwork(); const inverseNetworkName = (name: string) => diff --git a/src/layouts/NetworkLayout/NetworkLayout.tsx b/src/layouts/NetworkLayout/NetworkLayout.tsx index 705f562..6c60974 100644 --- a/src/layouts/NetworkLayout/NetworkLayout.tsx +++ b/src/layouts/NetworkLayout/NetworkLayout.tsx @@ -1,4 +1,6 @@ -import React, { PropsWithChildren, useState } from 'react'; +import '@rainbow-me/rainbowkit/styles.css'; + +import React, { PropsWithChildren, useEffect, useState } from 'react'; import { AppBar as AppBarMaterial, @@ -12,21 +14,21 @@ import { import { alpha } from '@mui/system/colorManipulator'; import classnames from 'classnames'; import { Outlet } from 'react-router-dom'; +import { useDisconnect, useNetwork, useWalletClient } from 'wagmi'; import { Logo } from '@components/Logo'; import { NetworkSwitcher } from '@components/NetworkSwitcher'; import { TopBanner, useBannerHeight } from '@components/TopBanner'; import { demoFeaturesEnabled } from '@hooks/demoFeaturesEnabled'; import { MenuIcon } from '@icons/MenuIcon'; -import { UserMenu } from '@layouts/NetworkLayout/UserMenu.tsx'; -import { useSwitchSubsquidNetwork } from '@network/useSwitchNetwork'; - -import '@rainbow-me/rainbowkit/styles.css'; +import { useAccount } from '@network/useAccount'; +import { getChainId, getNetworkName, useSubsquidNetwork } from '@network/useSubsquidNetwork'; import { ColorVariant } from '../../theme'; import { NetworkMenu } from './NetworkMenu'; import { SyncSquidSnackbar } from './SyncSquidSnackbar'; +import { UserMenu } from './UserMenu'; const APP_BAR_HEIGHT = 52; const SIDEBAR_WIDTH = { @@ -258,7 +260,24 @@ export const NetworkLayout = ({ }: PropsWithChildren<{ stretchContent?: boolean; }>) => { - useSwitchSubsquidNetwork(); + const { isConnected } = useAccount(); + const { isLoading } = useWalletClient(); + const { chain } = useNetwork(); + const { disconnect } = useDisconnect(); + const { network, switchAndReset } = useSubsquidNetwork(); + + useEffect(() => { + if (!isConnected || isLoading) return; + + if (chain?.id === getChainId(network)) return; + + if (!chain?.unsupported && demoFeaturesEnabled()) { + switchAndReset(getNetworkName(chain?.id)); + return; + } + + disconnect(); + }, [chain, disconnect, isConnected, network, isLoading, switchAndReset]); const theme = useTheme(); const narrowLg = useMediaQuery(theme.breakpoints.down('lg')); diff --git a/src/network/useSubsquidNetwork.ts b/src/network/useSubsquidNetwork.ts index 719aa71..3723dfd 100644 --- a/src/network/useSubsquidNetwork.ts +++ b/src/network/useSubsquidNetwork.ts @@ -1,13 +1,9 @@ -import { useState } from 'react'; - import { useQueryClient } from '@tanstack/react-query'; import useLocalStorageState from 'use-local-storage-state'; -import { useSwitchNetwork } from 'wagmi'; +import { arbitrum, arbitrumSepolia } from 'wagmi/chains'; import { localStorageStringSerializer } from '@hooks/useLocalStorageState.ts'; -import { getChainId } from './useSwitchNetwork'; - export enum NetworkName { Testnet = 'testnet', Mainnet = 'mainnet', @@ -27,10 +23,18 @@ export function useSubsquidNetwork() { const queryClient = useQueryClient(); - const changeAndReset = (network: NetworkName) => { + const switchAndReset = (network: NetworkName) => { changeApp(network); queryClient.clear(); }; - return { network: validate(app), changeAndReset }; + return { network: validate(app), switchAndReset }; +} + +export function getChainId(network: NetworkName) { + return network === NetworkName.Mainnet ? arbitrum.id : arbitrumSepolia.id; +} + +export function getNetworkName(chainId?: number) { + return chainId === arbitrum.id ? NetworkName.Mainnet : NetworkName.Testnet; } diff --git a/src/network/useSwitchNetwork.ts b/src/network/useSwitchNetwork.ts deleted file mode 100644 index d1d79ea..0000000 --- a/src/network/useSwitchNetwork.ts +++ /dev/null @@ -1,71 +0,0 @@ -import { useCallback, useEffect } from 'react'; - -import { useSnackbar } from 'notistack'; -import { arbitrum, arbitrumSepolia } from 'viem/chains'; -import { useAccount, useDisconnect, useNetwork, useWalletClient } from 'wagmi'; - -import { SQD_DECIMALS, SQD_TOKEN } from '@api/contracts/consts.ts'; -import { useContracts } from '@network/useContracts.ts'; - -import { NetworkName, useSubsquidNetwork } from './useSubsquidNetwork.ts'; - -export function getChainId(network: NetworkName) { - return network === NetworkName.Mainnet ? arbitrum.id : arbitrumSepolia.id; -} - -export function getNetworkName(chainId?: number) { - return chainId === arbitrum.id ? NetworkName.Mainnet : NetworkName.Testnet; -} - -export function useSwitchSubsquidNetwork() { - const contracts = useContracts(); - const { isConnected, connector } = useAccount(); - const { isLoading } = useWalletClient(); - const { chain } = useNetwork(); - const { disconnect } = useDisconnect(); - const { enqueueSnackbar } = useSnackbar(); - const { network, changeAndReset } = useSubsquidNetwork(); - - const importMetamaskSqdToken = useCallback(async () => { - if (!connector) return; - - const provider = await connector.getProvider(); - - let tokenImported = false; - try { - const wasAdded = await provider.request({ - method: 'wallet_watchAsset', - params: { - type: 'ERC20', - options: { - address: contracts.SQD, - symbol: SQD_TOKEN, - decimals: SQD_DECIMALS, - }, - }, - }); - - tokenImported = !!wasAdded; - } catch {} - - if (!tokenImported) { - enqueueSnackbar('Adding tSQD to your MetaMask account will allow you track balance.', { - title: 'Metamask', - variant: 'subsquid', - severity: 'warning', - }); - } - }, [connector, enqueueSnackbar, contracts.SQD]); - - useEffect(() => { - if (!isConnected || isLoading) return; - - if (chain?.id === getChainId(network)) return; - - if (!chain?.unsupported) { - return changeAndReset(getNetworkName(chain?.id)); - } - - disconnect(); - }, [chain, disconnect, isConnected, network, isLoading, changeAndReset]); -} From 609ded38c93398ed74a91c2321c64501136f577f Mon Sep 17 00:00:00 2001 From: Eugene Formanenko Date: Mon, 13 May 2024 20:39:57 +0400 Subject: [PATCH 08/11] chore: add defult env variables --- .env.example | 3 ++- .../NetworkSwitcher/NetworkSwitcher.tsx | 17 +++++++++++++---- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/.env.example b/.env.example index c4eae26..1c72e8a 100644 --- a/.env.example +++ b/.env.example @@ -1,2 +1,3 @@ WALLET_CONNECT_PROJECT_ID=b7b3d81af86feb2af54461f26b665ee4 -SQUID_API_URL=https://squid.subsquid.io/subsquid-network-indexer/v/v7/graphql +TESTNET_SQUID_API_URL=https://subsquid.squids.live/subsquid-network-testnet/v/v1/graphql +MAINNET_SQUID_API_URL=https://subsquid.squids.live/subsquid-network-mainnet/v/v1/graphql diff --git a/src/components/NetworkSwitcher/NetworkSwitcher.tsx b/src/components/NetworkSwitcher/NetworkSwitcher.tsx index 9d5fac1..769b056 100644 --- a/src/components/NetworkSwitcher/NetworkSwitcher.tsx +++ b/src/components/NetworkSwitcher/NetworkSwitcher.tsx @@ -7,6 +7,9 @@ import { useSwitchNetwork } from 'wagmi'; import { SwitchArrowsIcon } from '@icons/SwitchArrowsIcon'; import { getChainId, NetworkName, useSubsquidNetwork } from '@network/useSubsquidNetwork.ts'; +const inverseNetworkName = (name: string) => + name === NetworkName.Mainnet ? NetworkName.Testnet : NetworkName.Mainnet; + const SwitchButton = styled(Button)<{ fill?: string }>(({ theme, fill }) => ({ width: 'fit-content', fontSize: '0.875rem', @@ -26,11 +29,17 @@ export function NetworkSwitcher({ const { network, switchAndReset: changeAndReset } = useSubsquidNetwork(); const { switchNetworkAsync } = useSwitchNetwork(); - const inverseNetworkName = (name: string) => - name === NetworkName.Mainnet ? NetworkName.Testnet : NetworkName.Mainnet; - const handleAppSwitchAsync = async (network: NetworkName) => { - await switchNetworkAsync?.(getChainId(network)); + try { + await switchNetworkAsync?.(getChainId(network)); + } catch (e: any) { + if (e.message?.toLowerCase().includes('user rejected the request')) { + return; + } + + throw e; + } + changeAndReset(network); }; From 68348f84c8a825b7005350f0ada168975fa911fd Mon Sep 17 00:00:00 2001 From: Eugene Formanenko Date: Mon, 13 May 2024 20:43:51 +0400 Subject: [PATCH 09/11] chore: fix css --- src/components/NetworkSwitcher/NetworkSwitcher.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/NetworkSwitcher/NetworkSwitcher.tsx b/src/components/NetworkSwitcher/NetworkSwitcher.tsx index 769b056..8cf2a70 100644 --- a/src/components/NetworkSwitcher/NetworkSwitcher.tsx +++ b/src/components/NetworkSwitcher/NetworkSwitcher.tsx @@ -14,7 +14,8 @@ const SwitchButton = styled(Button)<{ fill?: string }>(({ theme, fill }) => ({ width: 'fit-content', fontSize: '0.875rem', color: fill || theme.palette?.primary?.contrastText, - gap: '0.625rem', + gap: theme.spacing(1), + margin: theme.spacing(0, 1), })); export function NetworkSwitcher({ From 4cbde8b1b68cf3fc92fb7bdfbb7d29298acf2892 Mon Sep 17 00:00:00 2001 From: belopash Date: Tue, 14 May 2024 00:59:30 +0500 Subject: [PATCH 10/11] feat: partially rework worker page --- src/api/subsquid-network-squid/api.graphql | 1 + src/api/subsquid-network-squid/graphql.tsx | 756 ++++++++++++++++++ .../NetworkLayout/NetworkPageTitle.tsx | 2 +- src/pages/WorkersPage/MyWorkerStat.tsx | 56 -- src/pages/WorkersPage/UptimeGraph.tsx | 4 +- src/pages/WorkersPage/Worker.tsx | 58 +- src/pages/WorkersPage/WorkerCard.tsx | 19 +- src/pages/WorkersPage/WorkerDelegate.tsx | 14 +- src/pages/WorkersPage/WorkerStatistics.tsx | 154 ++-- src/pages/WorkersPage/WorkerStatus.tsx | 51 +- src/pages/WorkersPage/WorkerUndelegate.tsx | 14 +- src/pages/WorkersPage/WorkerUnregister.tsx | 5 +- 12 files changed, 918 insertions(+), 216 deletions(-) delete mode 100644 src/pages/WorkersPage/MyWorkerStat.tsx diff --git a/src/api/subsquid-network-squid/api.graphql b/src/api/subsquid-network-squid/api.graphql index 41f5538..235d307 100644 --- a/src/api/subsquid-network-squid/api.graphql +++ b/src/api/subsquid-network-squid/api.graphql @@ -57,6 +57,7 @@ fragment WorkerFragment on Worker { jailed dialOk locked + version owner { id } diff --git a/src/api/subsquid-network-squid/graphql.tsx b/src/api/subsquid-network-squid/graphql.tsx index d348a41..2f905c4 100644 --- a/src/api/subsquid-network-squid/graphql.tsx +++ b/src/api/subsquid-network-squid/graphql.tsx @@ -138,43 +138,63 @@ export type AccountEdge = { export enum AccountOrderByInput { BalanceAsc = 'balance_ASC', BalanceAscNullsFirst = 'balance_ASC_NULLS_FIRST', + BalanceAscNullsLast = 'balance_ASC_NULLS_LAST', BalanceDesc = 'balance_DESC', + BalanceDescNullsFirst = 'balance_DESC_NULLS_FIRST', BalanceDescNullsLast = 'balance_DESC_NULLS_LAST', ClaimableDelegationCountAsc = 'claimableDelegationCount_ASC', ClaimableDelegationCountAscNullsFirst = 'claimableDelegationCount_ASC_NULLS_FIRST', + ClaimableDelegationCountAscNullsLast = 'claimableDelegationCount_ASC_NULLS_LAST', ClaimableDelegationCountDesc = 'claimableDelegationCount_DESC', + ClaimableDelegationCountDescNullsFirst = 'claimableDelegationCount_DESC_NULLS_FIRST', ClaimableDelegationCountDescNullsLast = 'claimableDelegationCount_DESC_NULLS_LAST', GatewayOperatorAutoExtensionAsc = 'gatewayOperator_autoExtension_ASC', GatewayOperatorAutoExtensionAscNullsFirst = 'gatewayOperator_autoExtension_ASC_NULLS_FIRST', + GatewayOperatorAutoExtensionAscNullsLast = 'gatewayOperator_autoExtension_ASC_NULLS_LAST', GatewayOperatorAutoExtensionDesc = 'gatewayOperator_autoExtension_DESC', + GatewayOperatorAutoExtensionDescNullsFirst = 'gatewayOperator_autoExtension_DESC_NULLS_FIRST', GatewayOperatorAutoExtensionDescNullsLast = 'gatewayOperator_autoExtension_DESC_NULLS_LAST', GatewayOperatorIdAsc = 'gatewayOperator_id_ASC', GatewayOperatorIdAscNullsFirst = 'gatewayOperator_id_ASC_NULLS_FIRST', + GatewayOperatorIdAscNullsLast = 'gatewayOperator_id_ASC_NULLS_LAST', GatewayOperatorIdDesc = 'gatewayOperator_id_DESC', + GatewayOperatorIdDescNullsFirst = 'gatewayOperator_id_DESC_NULLS_FIRST', GatewayOperatorIdDescNullsLast = 'gatewayOperator_id_DESC_NULLS_LAST', IdAsc = 'id_ASC', IdAscNullsFirst = 'id_ASC_NULLS_FIRST', + IdAscNullsLast = 'id_ASC_NULLS_LAST', IdDesc = 'id_DESC', + IdDescNullsFirst = 'id_DESC_NULLS_FIRST', IdDescNullsLast = 'id_DESC_NULLS_LAST', OwnerBalanceAsc = 'owner_balance_ASC', OwnerBalanceAscNullsFirst = 'owner_balance_ASC_NULLS_FIRST', + OwnerBalanceAscNullsLast = 'owner_balance_ASC_NULLS_LAST', OwnerBalanceDesc = 'owner_balance_DESC', + OwnerBalanceDescNullsFirst = 'owner_balance_DESC_NULLS_FIRST', OwnerBalanceDescNullsLast = 'owner_balance_DESC_NULLS_LAST', OwnerClaimableDelegationCountAsc = 'owner_claimableDelegationCount_ASC', OwnerClaimableDelegationCountAscNullsFirst = 'owner_claimableDelegationCount_ASC_NULLS_FIRST', + OwnerClaimableDelegationCountAscNullsLast = 'owner_claimableDelegationCount_ASC_NULLS_LAST', OwnerClaimableDelegationCountDesc = 'owner_claimableDelegationCount_DESC', + OwnerClaimableDelegationCountDescNullsFirst = 'owner_claimableDelegationCount_DESC_NULLS_FIRST', OwnerClaimableDelegationCountDescNullsLast = 'owner_claimableDelegationCount_DESC_NULLS_LAST', OwnerIdAsc = 'owner_id_ASC', OwnerIdAscNullsFirst = 'owner_id_ASC_NULLS_FIRST', + OwnerIdAscNullsLast = 'owner_id_ASC_NULLS_LAST', OwnerIdDesc = 'owner_id_DESC', + OwnerIdDescNullsFirst = 'owner_id_DESC_NULLS_FIRST', OwnerIdDescNullsLast = 'owner_id_DESC_NULLS_LAST', OwnerTypeAsc = 'owner_type_ASC', OwnerTypeAscNullsFirst = 'owner_type_ASC_NULLS_FIRST', + OwnerTypeAscNullsLast = 'owner_type_ASC_NULLS_LAST', OwnerTypeDesc = 'owner_type_DESC', + OwnerTypeDescNullsFirst = 'owner_type_DESC_NULLS_FIRST', OwnerTypeDescNullsLast = 'owner_type_DESC_NULLS_LAST', TypeAsc = 'type_ASC', TypeAscNullsFirst = 'type_ASC_NULLS_FIRST', + TypeAscNullsLast = 'type_ASC_NULLS_LAST', TypeDesc = 'type_DESC', + TypeDescNullsFirst = 'type_DESC_NULLS_FIRST', TypeDescNullsLast = 'type_DESC_NULLS_LAST', } @@ -195,43 +215,63 @@ export type AccountTransferEdge = { export enum AccountTransferOrderByInput { AccountBalanceAsc = 'account_balance_ASC', AccountBalanceAscNullsFirst = 'account_balance_ASC_NULLS_FIRST', + AccountBalanceAscNullsLast = 'account_balance_ASC_NULLS_LAST', AccountBalanceDesc = 'account_balance_DESC', + AccountBalanceDescNullsFirst = 'account_balance_DESC_NULLS_FIRST', AccountBalanceDescNullsLast = 'account_balance_DESC_NULLS_LAST', AccountClaimableDelegationCountAsc = 'account_claimableDelegationCount_ASC', AccountClaimableDelegationCountAscNullsFirst = 'account_claimableDelegationCount_ASC_NULLS_FIRST', + AccountClaimableDelegationCountAscNullsLast = 'account_claimableDelegationCount_ASC_NULLS_LAST', AccountClaimableDelegationCountDesc = 'account_claimableDelegationCount_DESC', + AccountClaimableDelegationCountDescNullsFirst = 'account_claimableDelegationCount_DESC_NULLS_FIRST', AccountClaimableDelegationCountDescNullsLast = 'account_claimableDelegationCount_DESC_NULLS_LAST', AccountIdAsc = 'account_id_ASC', AccountIdAscNullsFirst = 'account_id_ASC_NULLS_FIRST', + AccountIdAscNullsLast = 'account_id_ASC_NULLS_LAST', AccountIdDesc = 'account_id_DESC', + AccountIdDescNullsFirst = 'account_id_DESC_NULLS_FIRST', AccountIdDescNullsLast = 'account_id_DESC_NULLS_LAST', AccountTypeAsc = 'account_type_ASC', AccountTypeAscNullsFirst = 'account_type_ASC_NULLS_FIRST', + AccountTypeAscNullsLast = 'account_type_ASC_NULLS_LAST', AccountTypeDesc = 'account_type_DESC', + AccountTypeDescNullsFirst = 'account_type_DESC_NULLS_FIRST', AccountTypeDescNullsLast = 'account_type_DESC_NULLS_LAST', DirectionAsc = 'direction_ASC', DirectionAscNullsFirst = 'direction_ASC_NULLS_FIRST', + DirectionAscNullsLast = 'direction_ASC_NULLS_LAST', DirectionDesc = 'direction_DESC', + DirectionDescNullsFirst = 'direction_DESC_NULLS_FIRST', DirectionDescNullsLast = 'direction_DESC_NULLS_LAST', IdAsc = 'id_ASC', IdAscNullsFirst = 'id_ASC_NULLS_FIRST', + IdAscNullsLast = 'id_ASC_NULLS_LAST', IdDesc = 'id_DESC', + IdDescNullsFirst = 'id_DESC_NULLS_FIRST', IdDescNullsLast = 'id_DESC_NULLS_LAST', TransferAmountAsc = 'transfer_amount_ASC', TransferAmountAscNullsFirst = 'transfer_amount_ASC_NULLS_FIRST', + TransferAmountAscNullsLast = 'transfer_amount_ASC_NULLS_LAST', TransferAmountDesc = 'transfer_amount_DESC', + TransferAmountDescNullsFirst = 'transfer_amount_DESC_NULLS_FIRST', TransferAmountDescNullsLast = 'transfer_amount_DESC_NULLS_LAST', TransferBlockNumberAsc = 'transfer_blockNumber_ASC', TransferBlockNumberAscNullsFirst = 'transfer_blockNumber_ASC_NULLS_FIRST', + TransferBlockNumberAscNullsLast = 'transfer_blockNumber_ASC_NULLS_LAST', TransferBlockNumberDesc = 'transfer_blockNumber_DESC', + TransferBlockNumberDescNullsFirst = 'transfer_blockNumber_DESC_NULLS_FIRST', TransferBlockNumberDescNullsLast = 'transfer_blockNumber_DESC_NULLS_LAST', TransferIdAsc = 'transfer_id_ASC', TransferIdAscNullsFirst = 'transfer_id_ASC_NULLS_FIRST', + TransferIdAscNullsLast = 'transfer_id_ASC_NULLS_LAST', TransferIdDesc = 'transfer_id_DESC', + TransferIdDescNullsFirst = 'transfer_id_DESC_NULLS_FIRST', TransferIdDescNullsLast = 'transfer_id_DESC_NULLS_LAST', TransferTimestampAsc = 'transfer_timestamp_ASC', TransferTimestampAscNullsFirst = 'transfer_timestamp_ASC_NULLS_FIRST', + TransferTimestampAscNullsLast = 'transfer_timestamp_ASC_NULLS_LAST', TransferTimestampDesc = 'transfer_timestamp_DESC', + TransferTimestampDescNullsFirst = 'transfer_timestamp_DESC_NULLS_FIRST', TransferTimestampDescNullsLast = 'transfer_timestamp_DESC_NULLS_LAST', } @@ -379,23 +419,33 @@ export type BlockEdge = { export enum BlockOrderByInput { HashAsc = 'hash_ASC', HashAscNullsFirst = 'hash_ASC_NULLS_FIRST', + HashAscNullsLast = 'hash_ASC_NULLS_LAST', HashDesc = 'hash_DESC', + HashDescNullsFirst = 'hash_DESC_NULLS_FIRST', HashDescNullsLast = 'hash_DESC_NULLS_LAST', HeightAsc = 'height_ASC', HeightAscNullsFirst = 'height_ASC_NULLS_FIRST', + HeightAscNullsLast = 'height_ASC_NULLS_LAST', HeightDesc = 'height_DESC', + HeightDescNullsFirst = 'height_DESC_NULLS_FIRST', HeightDescNullsLast = 'height_DESC_NULLS_LAST', IdAsc = 'id_ASC', IdAscNullsFirst = 'id_ASC_NULLS_FIRST', + IdAscNullsLast = 'id_ASC_NULLS_LAST', IdDesc = 'id_DESC', + IdDescNullsFirst = 'id_DESC_NULLS_FIRST', IdDescNullsLast = 'id_DESC_NULLS_LAST', L1BlockNumberAsc = 'l1BlockNumber_ASC', L1BlockNumberAscNullsFirst = 'l1BlockNumber_ASC_NULLS_FIRST', + L1BlockNumberAscNullsLast = 'l1BlockNumber_ASC_NULLS_LAST', L1BlockNumberDesc = 'l1BlockNumber_DESC', + L1BlockNumberDescNullsFirst = 'l1BlockNumber_DESC_NULLS_FIRST', L1BlockNumberDescNullsLast = 'l1BlockNumber_DESC_NULLS_LAST', TimestampAsc = 'timestamp_ASC', TimestampAscNullsFirst = 'timestamp_ASC_NULLS_FIRST', + TimestampAscNullsLast = 'timestamp_ASC_NULLS_LAST', TimestampDesc = 'timestamp_DESC', + TimestampDescNullsFirst = 'timestamp_DESC_NULLS_FIRST', TimestampDescNullsLast = 'timestamp_DESC_NULLS_LAST', } @@ -494,191 +544,285 @@ export type ClaimEdge = { export enum ClaimOrderByInput { AccountBalanceAsc = 'account_balance_ASC', AccountBalanceAscNullsFirst = 'account_balance_ASC_NULLS_FIRST', + AccountBalanceAscNullsLast = 'account_balance_ASC_NULLS_LAST', AccountBalanceDesc = 'account_balance_DESC', + AccountBalanceDescNullsFirst = 'account_balance_DESC_NULLS_FIRST', AccountBalanceDescNullsLast = 'account_balance_DESC_NULLS_LAST', AccountClaimableDelegationCountAsc = 'account_claimableDelegationCount_ASC', AccountClaimableDelegationCountAscNullsFirst = 'account_claimableDelegationCount_ASC_NULLS_FIRST', + AccountClaimableDelegationCountAscNullsLast = 'account_claimableDelegationCount_ASC_NULLS_LAST', AccountClaimableDelegationCountDesc = 'account_claimableDelegationCount_DESC', + AccountClaimableDelegationCountDescNullsFirst = 'account_claimableDelegationCount_DESC_NULLS_FIRST', AccountClaimableDelegationCountDescNullsLast = 'account_claimableDelegationCount_DESC_NULLS_LAST', AccountIdAsc = 'account_id_ASC', AccountIdAscNullsFirst = 'account_id_ASC_NULLS_FIRST', + AccountIdAscNullsLast = 'account_id_ASC_NULLS_LAST', AccountIdDesc = 'account_id_DESC', + AccountIdDescNullsFirst = 'account_id_DESC_NULLS_FIRST', AccountIdDescNullsLast = 'account_id_DESC_NULLS_LAST', AccountTypeAsc = 'account_type_ASC', AccountTypeAscNullsFirst = 'account_type_ASC_NULLS_FIRST', + AccountTypeAscNullsLast = 'account_type_ASC_NULLS_LAST', AccountTypeDesc = 'account_type_DESC', + AccountTypeDescNullsFirst = 'account_type_DESC_NULLS_FIRST', AccountTypeDescNullsLast = 'account_type_DESC_NULLS_LAST', AmountAsc = 'amount_ASC', AmountAscNullsFirst = 'amount_ASC_NULLS_FIRST', + AmountAscNullsLast = 'amount_ASC_NULLS_LAST', AmountDesc = 'amount_DESC', + AmountDescNullsFirst = 'amount_DESC_NULLS_FIRST', AmountDescNullsLast = 'amount_DESC_NULLS_LAST', BlockNumberAsc = 'blockNumber_ASC', BlockNumberAscNullsFirst = 'blockNumber_ASC_NULLS_FIRST', + BlockNumberAscNullsLast = 'blockNumber_ASC_NULLS_LAST', BlockNumberDesc = 'blockNumber_DESC', + BlockNumberDescNullsFirst = 'blockNumber_DESC_NULLS_FIRST', BlockNumberDescNullsLast = 'blockNumber_DESC_NULLS_LAST', DelegationClaimableRewardAsc = 'delegation_claimableReward_ASC', DelegationClaimableRewardAscNullsFirst = 'delegation_claimableReward_ASC_NULLS_FIRST', + DelegationClaimableRewardAscNullsLast = 'delegation_claimableReward_ASC_NULLS_LAST', DelegationClaimableRewardDesc = 'delegation_claimableReward_DESC', + DelegationClaimableRewardDescNullsFirst = 'delegation_claimableReward_DESC_NULLS_FIRST', DelegationClaimableRewardDescNullsLast = 'delegation_claimableReward_DESC_NULLS_LAST', DelegationClaimedRewardAsc = 'delegation_claimedReward_ASC', DelegationClaimedRewardAscNullsFirst = 'delegation_claimedReward_ASC_NULLS_FIRST', + DelegationClaimedRewardAscNullsLast = 'delegation_claimedReward_ASC_NULLS_LAST', DelegationClaimedRewardDesc = 'delegation_claimedReward_DESC', + DelegationClaimedRewardDescNullsFirst = 'delegation_claimedReward_DESC_NULLS_FIRST', DelegationClaimedRewardDescNullsLast = 'delegation_claimedReward_DESC_NULLS_LAST', DelegationDepositAsc = 'delegation_deposit_ASC', DelegationDepositAscNullsFirst = 'delegation_deposit_ASC_NULLS_FIRST', + DelegationDepositAscNullsLast = 'delegation_deposit_ASC_NULLS_LAST', DelegationDepositDesc = 'delegation_deposit_DESC', + DelegationDepositDescNullsFirst = 'delegation_deposit_DESC_NULLS_FIRST', DelegationDepositDescNullsLast = 'delegation_deposit_DESC_NULLS_LAST', DelegationIdAsc = 'delegation_id_ASC', DelegationIdAscNullsFirst = 'delegation_id_ASC_NULLS_FIRST', + DelegationIdAscNullsLast = 'delegation_id_ASC_NULLS_LAST', DelegationIdDesc = 'delegation_id_DESC', + DelegationIdDescNullsFirst = 'delegation_id_DESC_NULLS_FIRST', DelegationIdDescNullsLast = 'delegation_id_DESC_NULLS_LAST', DelegationLockEndAsc = 'delegation_lockEnd_ASC', DelegationLockEndAscNullsFirst = 'delegation_lockEnd_ASC_NULLS_FIRST', + DelegationLockEndAscNullsLast = 'delegation_lockEnd_ASC_NULLS_LAST', DelegationLockEndDesc = 'delegation_lockEnd_DESC', + DelegationLockEndDescNullsFirst = 'delegation_lockEnd_DESC_NULLS_FIRST', DelegationLockEndDescNullsLast = 'delegation_lockEnd_DESC_NULLS_LAST', DelegationLockStartAsc = 'delegation_lockStart_ASC', DelegationLockStartAscNullsFirst = 'delegation_lockStart_ASC_NULLS_FIRST', + DelegationLockStartAscNullsLast = 'delegation_lockStart_ASC_NULLS_LAST', DelegationLockStartDesc = 'delegation_lockStart_DESC', + DelegationLockStartDescNullsFirst = 'delegation_lockStart_DESC_NULLS_FIRST', DelegationLockStartDescNullsLast = 'delegation_lockStart_DESC_NULLS_LAST', DelegationLockedAsc = 'delegation_locked_ASC', DelegationLockedAscNullsFirst = 'delegation_locked_ASC_NULLS_FIRST', + DelegationLockedAscNullsLast = 'delegation_locked_ASC_NULLS_LAST', DelegationLockedDesc = 'delegation_locked_DESC', + DelegationLockedDescNullsFirst = 'delegation_locked_DESC_NULLS_FIRST', DelegationLockedDescNullsLast = 'delegation_locked_DESC_NULLS_LAST', IdAsc = 'id_ASC', IdAscNullsFirst = 'id_ASC_NULLS_FIRST', + IdAscNullsLast = 'id_ASC_NULLS_LAST', IdDesc = 'id_DESC', + IdDescNullsFirst = 'id_DESC_NULLS_FIRST', IdDescNullsLast = 'id_DESC_NULLS_LAST', TimestampAsc = 'timestamp_ASC', TimestampAscNullsFirst = 'timestamp_ASC_NULLS_FIRST', + TimestampAscNullsLast = 'timestamp_ASC_NULLS_LAST', TimestampDesc = 'timestamp_DESC', + TimestampDescNullsFirst = 'timestamp_DESC_NULLS_FIRST', TimestampDescNullsLast = 'timestamp_DESC_NULLS_LAST', TypeAsc = 'type_ASC', TypeAscNullsFirst = 'type_ASC_NULLS_FIRST', + TypeAscNullsLast = 'type_ASC_NULLS_LAST', TypeDesc = 'type_DESC', + TypeDescNullsFirst = 'type_DESC_NULLS_FIRST', TypeDescNullsLast = 'type_DESC_NULLS_LAST', WorkerAprAsc = 'worker_apr_ASC', WorkerAprAscNullsFirst = 'worker_apr_ASC_NULLS_FIRST', + WorkerAprAscNullsLast = 'worker_apr_ASC_NULLS_LAST', WorkerAprDesc = 'worker_apr_DESC', + WorkerAprDescNullsFirst = 'worker_apr_DESC_NULLS_FIRST', WorkerAprDescNullsLast = 'worker_apr_DESC_NULLS_LAST', WorkerBondAsc = 'worker_bond_ASC', WorkerBondAscNullsFirst = 'worker_bond_ASC_NULLS_FIRST', + WorkerBondAscNullsLast = 'worker_bond_ASC_NULLS_LAST', WorkerBondDesc = 'worker_bond_DESC', + WorkerBondDescNullsFirst = 'worker_bond_DESC_NULLS_FIRST', WorkerBondDescNullsLast = 'worker_bond_DESC_NULLS_LAST', WorkerClaimableRewardAsc = 'worker_claimableReward_ASC', WorkerClaimableRewardAscNullsFirst = 'worker_claimableReward_ASC_NULLS_FIRST', + WorkerClaimableRewardAscNullsLast = 'worker_claimableReward_ASC_NULLS_LAST', WorkerClaimableRewardDesc = 'worker_claimableReward_DESC', + WorkerClaimableRewardDescNullsFirst = 'worker_claimableReward_DESC_NULLS_FIRST', WorkerClaimableRewardDescNullsLast = 'worker_claimableReward_DESC_NULLS_LAST', WorkerClaimedRewardAsc = 'worker_claimedReward_ASC', WorkerClaimedRewardAscNullsFirst = 'worker_claimedReward_ASC_NULLS_FIRST', + WorkerClaimedRewardAscNullsLast = 'worker_claimedReward_ASC_NULLS_LAST', WorkerClaimedRewardDesc = 'worker_claimedReward_DESC', + WorkerClaimedRewardDescNullsFirst = 'worker_claimedReward_DESC_NULLS_FIRST', WorkerClaimedRewardDescNullsLast = 'worker_claimedReward_DESC_NULLS_LAST', WorkerCreatedAtAsc = 'worker_createdAt_ASC', WorkerCreatedAtAscNullsFirst = 'worker_createdAt_ASC_NULLS_FIRST', + WorkerCreatedAtAscNullsLast = 'worker_createdAt_ASC_NULLS_LAST', WorkerCreatedAtDesc = 'worker_createdAt_DESC', + WorkerCreatedAtDescNullsFirst = 'worker_createdAt_DESC_NULLS_FIRST', WorkerCreatedAtDescNullsLast = 'worker_createdAt_DESC_NULLS_LAST', WorkerDelegationCountAsc = 'worker_delegationCount_ASC', WorkerDelegationCountAscNullsFirst = 'worker_delegationCount_ASC_NULLS_FIRST', + WorkerDelegationCountAscNullsLast = 'worker_delegationCount_ASC_NULLS_LAST', WorkerDelegationCountDesc = 'worker_delegationCount_DESC', + WorkerDelegationCountDescNullsFirst = 'worker_delegationCount_DESC_NULLS_FIRST', WorkerDelegationCountDescNullsLast = 'worker_delegationCount_DESC_NULLS_LAST', WorkerDescriptionAsc = 'worker_description_ASC', WorkerDescriptionAscNullsFirst = 'worker_description_ASC_NULLS_FIRST', + WorkerDescriptionAscNullsLast = 'worker_description_ASC_NULLS_LAST', WorkerDescriptionDesc = 'worker_description_DESC', + WorkerDescriptionDescNullsFirst = 'worker_description_DESC_NULLS_FIRST', WorkerDescriptionDescNullsLast = 'worker_description_DESC_NULLS_LAST', WorkerDialOkAsc = 'worker_dialOk_ASC', WorkerDialOkAscNullsFirst = 'worker_dialOk_ASC_NULLS_FIRST', + WorkerDialOkAscNullsLast = 'worker_dialOk_ASC_NULLS_LAST', WorkerDialOkDesc = 'worker_dialOk_DESC', + WorkerDialOkDescNullsFirst = 'worker_dialOk_DESC_NULLS_FIRST', WorkerDialOkDescNullsLast = 'worker_dialOk_DESC_NULLS_LAST', WorkerEmailAsc = 'worker_email_ASC', WorkerEmailAscNullsFirst = 'worker_email_ASC_NULLS_FIRST', + WorkerEmailAscNullsLast = 'worker_email_ASC_NULLS_LAST', WorkerEmailDesc = 'worker_email_DESC', + WorkerEmailDescNullsFirst = 'worker_email_DESC_NULLS_FIRST', WorkerEmailDescNullsLast = 'worker_email_DESC_NULLS_LAST', WorkerIdAsc = 'worker_id_ASC', WorkerIdAscNullsFirst = 'worker_id_ASC_NULLS_FIRST', + WorkerIdAscNullsLast = 'worker_id_ASC_NULLS_LAST', WorkerIdDesc = 'worker_id_DESC', + WorkerIdDescNullsFirst = 'worker_id_DESC_NULLS_FIRST', WorkerIdDescNullsLast = 'worker_id_DESC_NULLS_LAST', WorkerJailedAsc = 'worker_jailed_ASC', WorkerJailedAscNullsFirst = 'worker_jailed_ASC_NULLS_FIRST', + WorkerJailedAscNullsLast = 'worker_jailed_ASC_NULLS_LAST', WorkerJailedDesc = 'worker_jailed_DESC', + WorkerJailedDescNullsFirst = 'worker_jailed_DESC_NULLS_FIRST', WorkerJailedDescNullsLast = 'worker_jailed_DESC_NULLS_LAST', WorkerLockEndAsc = 'worker_lockEnd_ASC', WorkerLockEndAscNullsFirst = 'worker_lockEnd_ASC_NULLS_FIRST', + WorkerLockEndAscNullsLast = 'worker_lockEnd_ASC_NULLS_LAST', WorkerLockEndDesc = 'worker_lockEnd_DESC', + WorkerLockEndDescNullsFirst = 'worker_lockEnd_DESC_NULLS_FIRST', WorkerLockEndDescNullsLast = 'worker_lockEnd_DESC_NULLS_LAST', WorkerLockStartAsc = 'worker_lockStart_ASC', WorkerLockStartAscNullsFirst = 'worker_lockStart_ASC_NULLS_FIRST', + WorkerLockStartAscNullsLast = 'worker_lockStart_ASC_NULLS_LAST', WorkerLockStartDesc = 'worker_lockStart_DESC', + WorkerLockStartDescNullsFirst = 'worker_lockStart_DESC_NULLS_FIRST', WorkerLockStartDescNullsLast = 'worker_lockStart_DESC_NULLS_LAST', WorkerLockedAsc = 'worker_locked_ASC', WorkerLockedAscNullsFirst = 'worker_locked_ASC_NULLS_FIRST', + WorkerLockedAscNullsLast = 'worker_locked_ASC_NULLS_LAST', WorkerLockedDesc = 'worker_locked_DESC', + WorkerLockedDescNullsFirst = 'worker_locked_DESC_NULLS_FIRST', WorkerLockedDescNullsLast = 'worker_locked_DESC_NULLS_LAST', WorkerNameAsc = 'worker_name_ASC', WorkerNameAscNullsFirst = 'worker_name_ASC_NULLS_FIRST', + WorkerNameAscNullsLast = 'worker_name_ASC_NULLS_LAST', WorkerNameDesc = 'worker_name_DESC', + WorkerNameDescNullsFirst = 'worker_name_DESC_NULLS_FIRST', WorkerNameDescNullsLast = 'worker_name_DESC_NULLS_LAST', WorkerOnlineAsc = 'worker_online_ASC', WorkerOnlineAscNullsFirst = 'worker_online_ASC_NULLS_FIRST', + WorkerOnlineAscNullsLast = 'worker_online_ASC_NULLS_LAST', WorkerOnlineDesc = 'worker_online_DESC', + WorkerOnlineDescNullsFirst = 'worker_online_DESC_NULLS_FIRST', WorkerOnlineDescNullsLast = 'worker_online_DESC_NULLS_LAST', WorkerPeerIdAsc = 'worker_peerId_ASC', WorkerPeerIdAscNullsFirst = 'worker_peerId_ASC_NULLS_FIRST', + WorkerPeerIdAscNullsLast = 'worker_peerId_ASC_NULLS_LAST', WorkerPeerIdDesc = 'worker_peerId_DESC', + WorkerPeerIdDescNullsFirst = 'worker_peerId_DESC_NULLS_FIRST', WorkerPeerIdDescNullsLast = 'worker_peerId_DESC_NULLS_LAST', WorkerQueries24HoursAsc = 'worker_queries24Hours_ASC', WorkerQueries24HoursAscNullsFirst = 'worker_queries24Hours_ASC_NULLS_FIRST', + WorkerQueries24HoursAscNullsLast = 'worker_queries24Hours_ASC_NULLS_LAST', WorkerQueries24HoursDesc = 'worker_queries24Hours_DESC', + WorkerQueries24HoursDescNullsFirst = 'worker_queries24Hours_DESC_NULLS_FIRST', WorkerQueries24HoursDescNullsLast = 'worker_queries24Hours_DESC_NULLS_LAST', WorkerQueries90DaysAsc = 'worker_queries90Days_ASC', WorkerQueries90DaysAscNullsFirst = 'worker_queries90Days_ASC_NULLS_FIRST', + WorkerQueries90DaysAscNullsLast = 'worker_queries90Days_ASC_NULLS_LAST', WorkerQueries90DaysDesc = 'worker_queries90Days_DESC', + WorkerQueries90DaysDescNullsFirst = 'worker_queries90Days_DESC_NULLS_FIRST', WorkerQueries90DaysDescNullsLast = 'worker_queries90Days_DESC_NULLS_LAST', WorkerScannedData24HoursAsc = 'worker_scannedData24Hours_ASC', WorkerScannedData24HoursAscNullsFirst = 'worker_scannedData24Hours_ASC_NULLS_FIRST', + WorkerScannedData24HoursAscNullsLast = 'worker_scannedData24Hours_ASC_NULLS_LAST', WorkerScannedData24HoursDesc = 'worker_scannedData24Hours_DESC', + WorkerScannedData24HoursDescNullsFirst = 'worker_scannedData24Hours_DESC_NULLS_FIRST', WorkerScannedData24HoursDescNullsLast = 'worker_scannedData24Hours_DESC_NULLS_LAST', WorkerScannedData90DaysAsc = 'worker_scannedData90Days_ASC', WorkerScannedData90DaysAscNullsFirst = 'worker_scannedData90Days_ASC_NULLS_FIRST', + WorkerScannedData90DaysAscNullsLast = 'worker_scannedData90Days_ASC_NULLS_LAST', WorkerScannedData90DaysDesc = 'worker_scannedData90Days_DESC', + WorkerScannedData90DaysDescNullsFirst = 'worker_scannedData90Days_DESC_NULLS_FIRST', WorkerScannedData90DaysDescNullsLast = 'worker_scannedData90Days_DESC_NULLS_LAST', WorkerServedData24HoursAsc = 'worker_servedData24Hours_ASC', WorkerServedData24HoursAscNullsFirst = 'worker_servedData24Hours_ASC_NULLS_FIRST', + WorkerServedData24HoursAscNullsLast = 'worker_servedData24Hours_ASC_NULLS_LAST', WorkerServedData24HoursDesc = 'worker_servedData24Hours_DESC', + WorkerServedData24HoursDescNullsFirst = 'worker_servedData24Hours_DESC_NULLS_FIRST', WorkerServedData24HoursDescNullsLast = 'worker_servedData24Hours_DESC_NULLS_LAST', WorkerServedData90DaysAsc = 'worker_servedData90Days_ASC', WorkerServedData90DaysAscNullsFirst = 'worker_servedData90Days_ASC_NULLS_FIRST', + WorkerServedData90DaysAscNullsLast = 'worker_servedData90Days_ASC_NULLS_LAST', WorkerServedData90DaysDesc = 'worker_servedData90Days_DESC', + WorkerServedData90DaysDescNullsFirst = 'worker_servedData90Days_DESC_NULLS_FIRST', WorkerServedData90DaysDescNullsLast = 'worker_servedData90Days_DESC_NULLS_LAST', WorkerStakerAprAsc = 'worker_stakerApr_ASC', WorkerStakerAprAscNullsFirst = 'worker_stakerApr_ASC_NULLS_FIRST', + WorkerStakerAprAscNullsLast = 'worker_stakerApr_ASC_NULLS_LAST', WorkerStakerAprDesc = 'worker_stakerApr_DESC', + WorkerStakerAprDescNullsFirst = 'worker_stakerApr_DESC_NULLS_FIRST', WorkerStakerAprDescNullsLast = 'worker_stakerApr_DESC_NULLS_LAST', WorkerStatusAsc = 'worker_status_ASC', WorkerStatusAscNullsFirst = 'worker_status_ASC_NULLS_FIRST', + WorkerStatusAscNullsLast = 'worker_status_ASC_NULLS_LAST', WorkerStatusDesc = 'worker_status_DESC', + WorkerStatusDescNullsFirst = 'worker_status_DESC_NULLS_FIRST', WorkerStatusDescNullsLast = 'worker_status_DESC_NULLS_LAST', WorkerStoredDataAsc = 'worker_storedData_ASC', WorkerStoredDataAscNullsFirst = 'worker_storedData_ASC_NULLS_FIRST', + WorkerStoredDataAscNullsLast = 'worker_storedData_ASC_NULLS_LAST', WorkerStoredDataDesc = 'worker_storedData_DESC', + WorkerStoredDataDescNullsFirst = 'worker_storedData_DESC_NULLS_FIRST', WorkerStoredDataDescNullsLast = 'worker_storedData_DESC_NULLS_LAST', WorkerTotalDelegationAsc = 'worker_totalDelegation_ASC', WorkerTotalDelegationAscNullsFirst = 'worker_totalDelegation_ASC_NULLS_FIRST', + WorkerTotalDelegationAscNullsLast = 'worker_totalDelegation_ASC_NULLS_LAST', WorkerTotalDelegationDesc = 'worker_totalDelegation_DESC', + WorkerTotalDelegationDescNullsFirst = 'worker_totalDelegation_DESC_NULLS_FIRST', WorkerTotalDelegationDescNullsLast = 'worker_totalDelegation_DESC_NULLS_LAST', WorkerUptime24HoursAsc = 'worker_uptime24Hours_ASC', WorkerUptime24HoursAscNullsFirst = 'worker_uptime24Hours_ASC_NULLS_FIRST', + WorkerUptime24HoursAscNullsLast = 'worker_uptime24Hours_ASC_NULLS_LAST', WorkerUptime24HoursDesc = 'worker_uptime24Hours_DESC', + WorkerUptime24HoursDescNullsFirst = 'worker_uptime24Hours_DESC_NULLS_FIRST', WorkerUptime24HoursDescNullsLast = 'worker_uptime24Hours_DESC_NULLS_LAST', WorkerUptime90DaysAsc = 'worker_uptime90Days_ASC', WorkerUptime90DaysAscNullsFirst = 'worker_uptime90Days_ASC_NULLS_FIRST', + WorkerUptime90DaysAscNullsLast = 'worker_uptime90Days_ASC_NULLS_LAST', WorkerUptime90DaysDesc = 'worker_uptime90Days_DESC', + WorkerUptime90DaysDescNullsFirst = 'worker_uptime90Days_DESC_NULLS_FIRST', WorkerUptime90DaysDescNullsLast = 'worker_uptime90Days_DESC_NULLS_LAST', WorkerVersionAsc = 'worker_version_ASC', WorkerVersionAscNullsFirst = 'worker_version_ASC_NULLS_FIRST', + WorkerVersionAscNullsLast = 'worker_version_ASC_NULLS_LAST', WorkerVersionDesc = 'worker_version_DESC', + WorkerVersionDescNullsFirst = 'worker_version_DESC_NULLS_FIRST', WorkerVersionDescNullsLast = 'worker_version_DESC_NULLS_LAST', WorkerWebsiteAsc = 'worker_website_ASC', WorkerWebsiteAscNullsFirst = 'worker_website_ASC_NULLS_FIRST', + WorkerWebsiteAscNullsLast = 'worker_website_ASC_NULLS_LAST', WorkerWebsiteDesc = 'worker_website_DESC', + WorkerWebsiteDescNullsFirst = 'worker_website_DESC_NULLS_FIRST', WorkerWebsiteDescNullsLast = 'worker_website_DESC_NULLS_LAST', } @@ -771,15 +915,21 @@ export type CommitmentEdge = { export enum CommitmentOrderByInput { FromAsc = 'from_ASC', FromAscNullsFirst = 'from_ASC_NULLS_FIRST', + FromAscNullsLast = 'from_ASC_NULLS_LAST', FromDesc = 'from_DESC', + FromDescNullsFirst = 'from_DESC_NULLS_FIRST', FromDescNullsLast = 'from_DESC_NULLS_LAST', IdAsc = 'id_ASC', IdAscNullsFirst = 'id_ASC_NULLS_FIRST', + IdAscNullsLast = 'id_ASC_NULLS_LAST', IdDesc = 'id_DESC', + IdDescNullsFirst = 'id_DESC_NULLS_FIRST', IdDescNullsLast = 'id_DESC_NULLS_LAST', ToAsc = 'to_ASC', ToAscNullsFirst = 'to_ASC_NULLS_FIRST', + ToAscNullsLast = 'to_ASC_NULLS_LAST', ToDesc = 'to_DESC', + ToDescNullsFirst = 'to_DESC_NULLS_FIRST', ToDescNullsLast = 'to_DESC_NULLS_LAST', } @@ -880,187 +1030,279 @@ export type DelegationEdge = { export enum DelegationOrderByInput { ClaimableRewardAsc = 'claimableReward_ASC', ClaimableRewardAscNullsFirst = 'claimableReward_ASC_NULLS_FIRST', + ClaimableRewardAscNullsLast = 'claimableReward_ASC_NULLS_LAST', ClaimableRewardDesc = 'claimableReward_DESC', + ClaimableRewardDescNullsFirst = 'claimableReward_DESC_NULLS_FIRST', ClaimableRewardDescNullsLast = 'claimableReward_DESC_NULLS_LAST', ClaimedRewardAsc = 'claimedReward_ASC', ClaimedRewardAscNullsFirst = 'claimedReward_ASC_NULLS_FIRST', + ClaimedRewardAscNullsLast = 'claimedReward_ASC_NULLS_LAST', ClaimedRewardDesc = 'claimedReward_DESC', + ClaimedRewardDescNullsFirst = 'claimedReward_DESC_NULLS_FIRST', ClaimedRewardDescNullsLast = 'claimedReward_DESC_NULLS_LAST', DepositAsc = 'deposit_ASC', DepositAscNullsFirst = 'deposit_ASC_NULLS_FIRST', + DepositAscNullsLast = 'deposit_ASC_NULLS_LAST', DepositDesc = 'deposit_DESC', + DepositDescNullsFirst = 'deposit_DESC_NULLS_FIRST', DepositDescNullsLast = 'deposit_DESC_NULLS_LAST', IdAsc = 'id_ASC', IdAscNullsFirst = 'id_ASC_NULLS_FIRST', + IdAscNullsLast = 'id_ASC_NULLS_LAST', IdDesc = 'id_DESC', + IdDescNullsFirst = 'id_DESC_NULLS_FIRST', IdDescNullsLast = 'id_DESC_NULLS_LAST', LockEndAsc = 'lockEnd_ASC', LockEndAscNullsFirst = 'lockEnd_ASC_NULLS_FIRST', + LockEndAscNullsLast = 'lockEnd_ASC_NULLS_LAST', LockEndDesc = 'lockEnd_DESC', + LockEndDescNullsFirst = 'lockEnd_DESC_NULLS_FIRST', LockEndDescNullsLast = 'lockEnd_DESC_NULLS_LAST', LockStartAsc = 'lockStart_ASC', LockStartAscNullsFirst = 'lockStart_ASC_NULLS_FIRST', + LockStartAscNullsLast = 'lockStart_ASC_NULLS_LAST', LockStartDesc = 'lockStart_DESC', + LockStartDescNullsFirst = 'lockStart_DESC_NULLS_FIRST', LockStartDescNullsLast = 'lockStart_DESC_NULLS_LAST', LockedAsc = 'locked_ASC', LockedAscNullsFirst = 'locked_ASC_NULLS_FIRST', + LockedAscNullsLast = 'locked_ASC_NULLS_LAST', LockedDesc = 'locked_DESC', + LockedDescNullsFirst = 'locked_DESC_NULLS_FIRST', LockedDescNullsLast = 'locked_DESC_NULLS_LAST', OwnerBalanceAsc = 'owner_balance_ASC', OwnerBalanceAscNullsFirst = 'owner_balance_ASC_NULLS_FIRST', + OwnerBalanceAscNullsLast = 'owner_balance_ASC_NULLS_LAST', OwnerBalanceDesc = 'owner_balance_DESC', + OwnerBalanceDescNullsFirst = 'owner_balance_DESC_NULLS_FIRST', OwnerBalanceDescNullsLast = 'owner_balance_DESC_NULLS_LAST', OwnerClaimableDelegationCountAsc = 'owner_claimableDelegationCount_ASC', OwnerClaimableDelegationCountAscNullsFirst = 'owner_claimableDelegationCount_ASC_NULLS_FIRST', + OwnerClaimableDelegationCountAscNullsLast = 'owner_claimableDelegationCount_ASC_NULLS_LAST', OwnerClaimableDelegationCountDesc = 'owner_claimableDelegationCount_DESC', + OwnerClaimableDelegationCountDescNullsFirst = 'owner_claimableDelegationCount_DESC_NULLS_FIRST', OwnerClaimableDelegationCountDescNullsLast = 'owner_claimableDelegationCount_DESC_NULLS_LAST', OwnerIdAsc = 'owner_id_ASC', OwnerIdAscNullsFirst = 'owner_id_ASC_NULLS_FIRST', + OwnerIdAscNullsLast = 'owner_id_ASC_NULLS_LAST', OwnerIdDesc = 'owner_id_DESC', + OwnerIdDescNullsFirst = 'owner_id_DESC_NULLS_FIRST', OwnerIdDescNullsLast = 'owner_id_DESC_NULLS_LAST', OwnerTypeAsc = 'owner_type_ASC', OwnerTypeAscNullsFirst = 'owner_type_ASC_NULLS_FIRST', + OwnerTypeAscNullsLast = 'owner_type_ASC_NULLS_LAST', OwnerTypeDesc = 'owner_type_DESC', + OwnerTypeDescNullsFirst = 'owner_type_DESC_NULLS_FIRST', OwnerTypeDescNullsLast = 'owner_type_DESC_NULLS_LAST', RealOwnerBalanceAsc = 'realOwner_balance_ASC', RealOwnerBalanceAscNullsFirst = 'realOwner_balance_ASC_NULLS_FIRST', + RealOwnerBalanceAscNullsLast = 'realOwner_balance_ASC_NULLS_LAST', RealOwnerBalanceDesc = 'realOwner_balance_DESC', + RealOwnerBalanceDescNullsFirst = 'realOwner_balance_DESC_NULLS_FIRST', RealOwnerBalanceDescNullsLast = 'realOwner_balance_DESC_NULLS_LAST', RealOwnerClaimableDelegationCountAsc = 'realOwner_claimableDelegationCount_ASC', RealOwnerClaimableDelegationCountAscNullsFirst = 'realOwner_claimableDelegationCount_ASC_NULLS_FIRST', + RealOwnerClaimableDelegationCountAscNullsLast = 'realOwner_claimableDelegationCount_ASC_NULLS_LAST', RealOwnerClaimableDelegationCountDesc = 'realOwner_claimableDelegationCount_DESC', + RealOwnerClaimableDelegationCountDescNullsFirst = 'realOwner_claimableDelegationCount_DESC_NULLS_FIRST', RealOwnerClaimableDelegationCountDescNullsLast = 'realOwner_claimableDelegationCount_DESC_NULLS_LAST', RealOwnerIdAsc = 'realOwner_id_ASC', RealOwnerIdAscNullsFirst = 'realOwner_id_ASC_NULLS_FIRST', + RealOwnerIdAscNullsLast = 'realOwner_id_ASC_NULLS_LAST', RealOwnerIdDesc = 'realOwner_id_DESC', + RealOwnerIdDescNullsFirst = 'realOwner_id_DESC_NULLS_FIRST', RealOwnerIdDescNullsLast = 'realOwner_id_DESC_NULLS_LAST', RealOwnerTypeAsc = 'realOwner_type_ASC', RealOwnerTypeAscNullsFirst = 'realOwner_type_ASC_NULLS_FIRST', + RealOwnerTypeAscNullsLast = 'realOwner_type_ASC_NULLS_LAST', RealOwnerTypeDesc = 'realOwner_type_DESC', + RealOwnerTypeDescNullsFirst = 'realOwner_type_DESC_NULLS_FIRST', RealOwnerTypeDescNullsLast = 'realOwner_type_DESC_NULLS_LAST', WorkerAprAsc = 'worker_apr_ASC', WorkerAprAscNullsFirst = 'worker_apr_ASC_NULLS_FIRST', + WorkerAprAscNullsLast = 'worker_apr_ASC_NULLS_LAST', WorkerAprDesc = 'worker_apr_DESC', + WorkerAprDescNullsFirst = 'worker_apr_DESC_NULLS_FIRST', WorkerAprDescNullsLast = 'worker_apr_DESC_NULLS_LAST', WorkerBondAsc = 'worker_bond_ASC', WorkerBondAscNullsFirst = 'worker_bond_ASC_NULLS_FIRST', + WorkerBondAscNullsLast = 'worker_bond_ASC_NULLS_LAST', WorkerBondDesc = 'worker_bond_DESC', + WorkerBondDescNullsFirst = 'worker_bond_DESC_NULLS_FIRST', WorkerBondDescNullsLast = 'worker_bond_DESC_NULLS_LAST', WorkerClaimableRewardAsc = 'worker_claimableReward_ASC', WorkerClaimableRewardAscNullsFirst = 'worker_claimableReward_ASC_NULLS_FIRST', + WorkerClaimableRewardAscNullsLast = 'worker_claimableReward_ASC_NULLS_LAST', WorkerClaimableRewardDesc = 'worker_claimableReward_DESC', + WorkerClaimableRewardDescNullsFirst = 'worker_claimableReward_DESC_NULLS_FIRST', WorkerClaimableRewardDescNullsLast = 'worker_claimableReward_DESC_NULLS_LAST', WorkerClaimedRewardAsc = 'worker_claimedReward_ASC', WorkerClaimedRewardAscNullsFirst = 'worker_claimedReward_ASC_NULLS_FIRST', + WorkerClaimedRewardAscNullsLast = 'worker_claimedReward_ASC_NULLS_LAST', WorkerClaimedRewardDesc = 'worker_claimedReward_DESC', + WorkerClaimedRewardDescNullsFirst = 'worker_claimedReward_DESC_NULLS_FIRST', WorkerClaimedRewardDescNullsLast = 'worker_claimedReward_DESC_NULLS_LAST', WorkerCreatedAtAsc = 'worker_createdAt_ASC', WorkerCreatedAtAscNullsFirst = 'worker_createdAt_ASC_NULLS_FIRST', + WorkerCreatedAtAscNullsLast = 'worker_createdAt_ASC_NULLS_LAST', WorkerCreatedAtDesc = 'worker_createdAt_DESC', + WorkerCreatedAtDescNullsFirst = 'worker_createdAt_DESC_NULLS_FIRST', WorkerCreatedAtDescNullsLast = 'worker_createdAt_DESC_NULLS_LAST', WorkerDelegationCountAsc = 'worker_delegationCount_ASC', WorkerDelegationCountAscNullsFirst = 'worker_delegationCount_ASC_NULLS_FIRST', + WorkerDelegationCountAscNullsLast = 'worker_delegationCount_ASC_NULLS_LAST', WorkerDelegationCountDesc = 'worker_delegationCount_DESC', + WorkerDelegationCountDescNullsFirst = 'worker_delegationCount_DESC_NULLS_FIRST', WorkerDelegationCountDescNullsLast = 'worker_delegationCount_DESC_NULLS_LAST', WorkerDescriptionAsc = 'worker_description_ASC', WorkerDescriptionAscNullsFirst = 'worker_description_ASC_NULLS_FIRST', + WorkerDescriptionAscNullsLast = 'worker_description_ASC_NULLS_LAST', WorkerDescriptionDesc = 'worker_description_DESC', + WorkerDescriptionDescNullsFirst = 'worker_description_DESC_NULLS_FIRST', WorkerDescriptionDescNullsLast = 'worker_description_DESC_NULLS_LAST', WorkerDialOkAsc = 'worker_dialOk_ASC', WorkerDialOkAscNullsFirst = 'worker_dialOk_ASC_NULLS_FIRST', + WorkerDialOkAscNullsLast = 'worker_dialOk_ASC_NULLS_LAST', WorkerDialOkDesc = 'worker_dialOk_DESC', + WorkerDialOkDescNullsFirst = 'worker_dialOk_DESC_NULLS_FIRST', WorkerDialOkDescNullsLast = 'worker_dialOk_DESC_NULLS_LAST', WorkerEmailAsc = 'worker_email_ASC', WorkerEmailAscNullsFirst = 'worker_email_ASC_NULLS_FIRST', + WorkerEmailAscNullsLast = 'worker_email_ASC_NULLS_LAST', WorkerEmailDesc = 'worker_email_DESC', + WorkerEmailDescNullsFirst = 'worker_email_DESC_NULLS_FIRST', WorkerEmailDescNullsLast = 'worker_email_DESC_NULLS_LAST', WorkerIdAsc = 'worker_id_ASC', WorkerIdAscNullsFirst = 'worker_id_ASC_NULLS_FIRST', + WorkerIdAscNullsLast = 'worker_id_ASC_NULLS_LAST', WorkerIdDesc = 'worker_id_DESC', + WorkerIdDescNullsFirst = 'worker_id_DESC_NULLS_FIRST', WorkerIdDescNullsLast = 'worker_id_DESC_NULLS_LAST', WorkerJailedAsc = 'worker_jailed_ASC', WorkerJailedAscNullsFirst = 'worker_jailed_ASC_NULLS_FIRST', + WorkerJailedAscNullsLast = 'worker_jailed_ASC_NULLS_LAST', WorkerJailedDesc = 'worker_jailed_DESC', + WorkerJailedDescNullsFirst = 'worker_jailed_DESC_NULLS_FIRST', WorkerJailedDescNullsLast = 'worker_jailed_DESC_NULLS_LAST', WorkerLockEndAsc = 'worker_lockEnd_ASC', WorkerLockEndAscNullsFirst = 'worker_lockEnd_ASC_NULLS_FIRST', + WorkerLockEndAscNullsLast = 'worker_lockEnd_ASC_NULLS_LAST', WorkerLockEndDesc = 'worker_lockEnd_DESC', + WorkerLockEndDescNullsFirst = 'worker_lockEnd_DESC_NULLS_FIRST', WorkerLockEndDescNullsLast = 'worker_lockEnd_DESC_NULLS_LAST', WorkerLockStartAsc = 'worker_lockStart_ASC', WorkerLockStartAscNullsFirst = 'worker_lockStart_ASC_NULLS_FIRST', + WorkerLockStartAscNullsLast = 'worker_lockStart_ASC_NULLS_LAST', WorkerLockStartDesc = 'worker_lockStart_DESC', + WorkerLockStartDescNullsFirst = 'worker_lockStart_DESC_NULLS_FIRST', WorkerLockStartDescNullsLast = 'worker_lockStart_DESC_NULLS_LAST', WorkerLockedAsc = 'worker_locked_ASC', WorkerLockedAscNullsFirst = 'worker_locked_ASC_NULLS_FIRST', + WorkerLockedAscNullsLast = 'worker_locked_ASC_NULLS_LAST', WorkerLockedDesc = 'worker_locked_DESC', + WorkerLockedDescNullsFirst = 'worker_locked_DESC_NULLS_FIRST', WorkerLockedDescNullsLast = 'worker_locked_DESC_NULLS_LAST', WorkerNameAsc = 'worker_name_ASC', WorkerNameAscNullsFirst = 'worker_name_ASC_NULLS_FIRST', + WorkerNameAscNullsLast = 'worker_name_ASC_NULLS_LAST', WorkerNameDesc = 'worker_name_DESC', + WorkerNameDescNullsFirst = 'worker_name_DESC_NULLS_FIRST', WorkerNameDescNullsLast = 'worker_name_DESC_NULLS_LAST', WorkerOnlineAsc = 'worker_online_ASC', WorkerOnlineAscNullsFirst = 'worker_online_ASC_NULLS_FIRST', + WorkerOnlineAscNullsLast = 'worker_online_ASC_NULLS_LAST', WorkerOnlineDesc = 'worker_online_DESC', + WorkerOnlineDescNullsFirst = 'worker_online_DESC_NULLS_FIRST', WorkerOnlineDescNullsLast = 'worker_online_DESC_NULLS_LAST', WorkerPeerIdAsc = 'worker_peerId_ASC', WorkerPeerIdAscNullsFirst = 'worker_peerId_ASC_NULLS_FIRST', + WorkerPeerIdAscNullsLast = 'worker_peerId_ASC_NULLS_LAST', WorkerPeerIdDesc = 'worker_peerId_DESC', + WorkerPeerIdDescNullsFirst = 'worker_peerId_DESC_NULLS_FIRST', WorkerPeerIdDescNullsLast = 'worker_peerId_DESC_NULLS_LAST', WorkerQueries24HoursAsc = 'worker_queries24Hours_ASC', WorkerQueries24HoursAscNullsFirst = 'worker_queries24Hours_ASC_NULLS_FIRST', + WorkerQueries24HoursAscNullsLast = 'worker_queries24Hours_ASC_NULLS_LAST', WorkerQueries24HoursDesc = 'worker_queries24Hours_DESC', + WorkerQueries24HoursDescNullsFirst = 'worker_queries24Hours_DESC_NULLS_FIRST', WorkerQueries24HoursDescNullsLast = 'worker_queries24Hours_DESC_NULLS_LAST', WorkerQueries90DaysAsc = 'worker_queries90Days_ASC', WorkerQueries90DaysAscNullsFirst = 'worker_queries90Days_ASC_NULLS_FIRST', + WorkerQueries90DaysAscNullsLast = 'worker_queries90Days_ASC_NULLS_LAST', WorkerQueries90DaysDesc = 'worker_queries90Days_DESC', + WorkerQueries90DaysDescNullsFirst = 'worker_queries90Days_DESC_NULLS_FIRST', WorkerQueries90DaysDescNullsLast = 'worker_queries90Days_DESC_NULLS_LAST', WorkerScannedData24HoursAsc = 'worker_scannedData24Hours_ASC', WorkerScannedData24HoursAscNullsFirst = 'worker_scannedData24Hours_ASC_NULLS_FIRST', + WorkerScannedData24HoursAscNullsLast = 'worker_scannedData24Hours_ASC_NULLS_LAST', WorkerScannedData24HoursDesc = 'worker_scannedData24Hours_DESC', + WorkerScannedData24HoursDescNullsFirst = 'worker_scannedData24Hours_DESC_NULLS_FIRST', WorkerScannedData24HoursDescNullsLast = 'worker_scannedData24Hours_DESC_NULLS_LAST', WorkerScannedData90DaysAsc = 'worker_scannedData90Days_ASC', WorkerScannedData90DaysAscNullsFirst = 'worker_scannedData90Days_ASC_NULLS_FIRST', + WorkerScannedData90DaysAscNullsLast = 'worker_scannedData90Days_ASC_NULLS_LAST', WorkerScannedData90DaysDesc = 'worker_scannedData90Days_DESC', + WorkerScannedData90DaysDescNullsFirst = 'worker_scannedData90Days_DESC_NULLS_FIRST', WorkerScannedData90DaysDescNullsLast = 'worker_scannedData90Days_DESC_NULLS_LAST', WorkerServedData24HoursAsc = 'worker_servedData24Hours_ASC', WorkerServedData24HoursAscNullsFirst = 'worker_servedData24Hours_ASC_NULLS_FIRST', + WorkerServedData24HoursAscNullsLast = 'worker_servedData24Hours_ASC_NULLS_LAST', WorkerServedData24HoursDesc = 'worker_servedData24Hours_DESC', + WorkerServedData24HoursDescNullsFirst = 'worker_servedData24Hours_DESC_NULLS_FIRST', WorkerServedData24HoursDescNullsLast = 'worker_servedData24Hours_DESC_NULLS_LAST', WorkerServedData90DaysAsc = 'worker_servedData90Days_ASC', WorkerServedData90DaysAscNullsFirst = 'worker_servedData90Days_ASC_NULLS_FIRST', + WorkerServedData90DaysAscNullsLast = 'worker_servedData90Days_ASC_NULLS_LAST', WorkerServedData90DaysDesc = 'worker_servedData90Days_DESC', + WorkerServedData90DaysDescNullsFirst = 'worker_servedData90Days_DESC_NULLS_FIRST', WorkerServedData90DaysDescNullsLast = 'worker_servedData90Days_DESC_NULLS_LAST', WorkerStakerAprAsc = 'worker_stakerApr_ASC', WorkerStakerAprAscNullsFirst = 'worker_stakerApr_ASC_NULLS_FIRST', + WorkerStakerAprAscNullsLast = 'worker_stakerApr_ASC_NULLS_LAST', WorkerStakerAprDesc = 'worker_stakerApr_DESC', + WorkerStakerAprDescNullsFirst = 'worker_stakerApr_DESC_NULLS_FIRST', WorkerStakerAprDescNullsLast = 'worker_stakerApr_DESC_NULLS_LAST', WorkerStatusAsc = 'worker_status_ASC', WorkerStatusAscNullsFirst = 'worker_status_ASC_NULLS_FIRST', + WorkerStatusAscNullsLast = 'worker_status_ASC_NULLS_LAST', WorkerStatusDesc = 'worker_status_DESC', + WorkerStatusDescNullsFirst = 'worker_status_DESC_NULLS_FIRST', WorkerStatusDescNullsLast = 'worker_status_DESC_NULLS_LAST', WorkerStoredDataAsc = 'worker_storedData_ASC', WorkerStoredDataAscNullsFirst = 'worker_storedData_ASC_NULLS_FIRST', + WorkerStoredDataAscNullsLast = 'worker_storedData_ASC_NULLS_LAST', WorkerStoredDataDesc = 'worker_storedData_DESC', + WorkerStoredDataDescNullsFirst = 'worker_storedData_DESC_NULLS_FIRST', WorkerStoredDataDescNullsLast = 'worker_storedData_DESC_NULLS_LAST', WorkerTotalDelegationAsc = 'worker_totalDelegation_ASC', WorkerTotalDelegationAscNullsFirst = 'worker_totalDelegation_ASC_NULLS_FIRST', + WorkerTotalDelegationAscNullsLast = 'worker_totalDelegation_ASC_NULLS_LAST', WorkerTotalDelegationDesc = 'worker_totalDelegation_DESC', + WorkerTotalDelegationDescNullsFirst = 'worker_totalDelegation_DESC_NULLS_FIRST', WorkerTotalDelegationDescNullsLast = 'worker_totalDelegation_DESC_NULLS_LAST', WorkerUptime24HoursAsc = 'worker_uptime24Hours_ASC', WorkerUptime24HoursAscNullsFirst = 'worker_uptime24Hours_ASC_NULLS_FIRST', + WorkerUptime24HoursAscNullsLast = 'worker_uptime24Hours_ASC_NULLS_LAST', WorkerUptime24HoursDesc = 'worker_uptime24Hours_DESC', + WorkerUptime24HoursDescNullsFirst = 'worker_uptime24Hours_DESC_NULLS_FIRST', WorkerUptime24HoursDescNullsLast = 'worker_uptime24Hours_DESC_NULLS_LAST', WorkerUptime90DaysAsc = 'worker_uptime90Days_ASC', WorkerUptime90DaysAscNullsFirst = 'worker_uptime90Days_ASC_NULLS_FIRST', + WorkerUptime90DaysAscNullsLast = 'worker_uptime90Days_ASC_NULLS_LAST', WorkerUptime90DaysDesc = 'worker_uptime90Days_DESC', + WorkerUptime90DaysDescNullsFirst = 'worker_uptime90Days_DESC_NULLS_FIRST', WorkerUptime90DaysDescNullsLast = 'worker_uptime90Days_DESC_NULLS_LAST', WorkerVersionAsc = 'worker_version_ASC', WorkerVersionAscNullsFirst = 'worker_version_ASC_NULLS_FIRST', + WorkerVersionAscNullsLast = 'worker_version_ASC_NULLS_LAST', WorkerVersionDesc = 'worker_version_DESC', + WorkerVersionDescNullsFirst = 'worker_version_DESC_NULLS_FIRST', WorkerVersionDescNullsLast = 'worker_version_DESC_NULLS_LAST', WorkerWebsiteAsc = 'worker_website_ASC', WorkerWebsiteAscNullsFirst = 'worker_website_ASC_NULLS_FIRST', + WorkerWebsiteAscNullsLast = 'worker_website_ASC_NULLS_LAST', WorkerWebsiteDesc = 'worker_website_DESC', + WorkerWebsiteDescNullsFirst = 'worker_website_DESC_NULLS_FIRST', WorkerWebsiteDescNullsLast = 'worker_website_DESC_NULLS_LAST', } @@ -1082,47 +1324,69 @@ export type DelegationRewardEdge = { export enum DelegationRewardOrderByInput { AmountAsc = 'amount_ASC', AmountAscNullsFirst = 'amount_ASC_NULLS_FIRST', + AmountAscNullsLast = 'amount_ASC_NULLS_LAST', AmountDesc = 'amount_DESC', + AmountDescNullsFirst = 'amount_DESC_NULLS_FIRST', AmountDescNullsLast = 'amount_DESC_NULLS_LAST', BlockNumberAsc = 'blockNumber_ASC', BlockNumberAscNullsFirst = 'blockNumber_ASC_NULLS_FIRST', + BlockNumberAscNullsLast = 'blockNumber_ASC_NULLS_LAST', BlockNumberDesc = 'blockNumber_DESC', + BlockNumberDescNullsFirst = 'blockNumber_DESC_NULLS_FIRST', BlockNumberDescNullsLast = 'blockNumber_DESC_NULLS_LAST', DelegationClaimableRewardAsc = 'delegation_claimableReward_ASC', DelegationClaimableRewardAscNullsFirst = 'delegation_claimableReward_ASC_NULLS_FIRST', + DelegationClaimableRewardAscNullsLast = 'delegation_claimableReward_ASC_NULLS_LAST', DelegationClaimableRewardDesc = 'delegation_claimableReward_DESC', + DelegationClaimableRewardDescNullsFirst = 'delegation_claimableReward_DESC_NULLS_FIRST', DelegationClaimableRewardDescNullsLast = 'delegation_claimableReward_DESC_NULLS_LAST', DelegationClaimedRewardAsc = 'delegation_claimedReward_ASC', DelegationClaimedRewardAscNullsFirst = 'delegation_claimedReward_ASC_NULLS_FIRST', + DelegationClaimedRewardAscNullsLast = 'delegation_claimedReward_ASC_NULLS_LAST', DelegationClaimedRewardDesc = 'delegation_claimedReward_DESC', + DelegationClaimedRewardDescNullsFirst = 'delegation_claimedReward_DESC_NULLS_FIRST', DelegationClaimedRewardDescNullsLast = 'delegation_claimedReward_DESC_NULLS_LAST', DelegationDepositAsc = 'delegation_deposit_ASC', DelegationDepositAscNullsFirst = 'delegation_deposit_ASC_NULLS_FIRST', + DelegationDepositAscNullsLast = 'delegation_deposit_ASC_NULLS_LAST', DelegationDepositDesc = 'delegation_deposit_DESC', + DelegationDepositDescNullsFirst = 'delegation_deposit_DESC_NULLS_FIRST', DelegationDepositDescNullsLast = 'delegation_deposit_DESC_NULLS_LAST', DelegationIdAsc = 'delegation_id_ASC', DelegationIdAscNullsFirst = 'delegation_id_ASC_NULLS_FIRST', + DelegationIdAscNullsLast = 'delegation_id_ASC_NULLS_LAST', DelegationIdDesc = 'delegation_id_DESC', + DelegationIdDescNullsFirst = 'delegation_id_DESC_NULLS_FIRST', DelegationIdDescNullsLast = 'delegation_id_DESC_NULLS_LAST', DelegationLockEndAsc = 'delegation_lockEnd_ASC', DelegationLockEndAscNullsFirst = 'delegation_lockEnd_ASC_NULLS_FIRST', + DelegationLockEndAscNullsLast = 'delegation_lockEnd_ASC_NULLS_LAST', DelegationLockEndDesc = 'delegation_lockEnd_DESC', + DelegationLockEndDescNullsFirst = 'delegation_lockEnd_DESC_NULLS_FIRST', DelegationLockEndDescNullsLast = 'delegation_lockEnd_DESC_NULLS_LAST', DelegationLockStartAsc = 'delegation_lockStart_ASC', DelegationLockStartAscNullsFirst = 'delegation_lockStart_ASC_NULLS_FIRST', + DelegationLockStartAscNullsLast = 'delegation_lockStart_ASC_NULLS_LAST', DelegationLockStartDesc = 'delegation_lockStart_DESC', + DelegationLockStartDescNullsFirst = 'delegation_lockStart_DESC_NULLS_FIRST', DelegationLockStartDescNullsLast = 'delegation_lockStart_DESC_NULLS_LAST', DelegationLockedAsc = 'delegation_locked_ASC', DelegationLockedAscNullsFirst = 'delegation_locked_ASC_NULLS_FIRST', + DelegationLockedAscNullsLast = 'delegation_locked_ASC_NULLS_LAST', DelegationLockedDesc = 'delegation_locked_DESC', + DelegationLockedDescNullsFirst = 'delegation_locked_DESC_NULLS_FIRST', DelegationLockedDescNullsLast = 'delegation_locked_DESC_NULLS_LAST', IdAsc = 'id_ASC', IdAscNullsFirst = 'id_ASC_NULLS_FIRST', + IdAscNullsLast = 'id_ASC_NULLS_LAST', IdDesc = 'id_DESC', + IdDescNullsFirst = 'id_DESC_NULLS_FIRST', IdDescNullsLast = 'id_DESC_NULLS_LAST', TimestampAsc = 'timestamp_ASC', TimestampAscNullsFirst = 'timestamp_ASC_NULLS_FIRST', + TimestampAscNullsLast = 'timestamp_ASC_NULLS_LAST', TimestampDesc = 'timestamp_DESC', + TimestampDescNullsFirst = 'timestamp_DESC_NULLS_FIRST', TimestampDescNullsLast = 'timestamp_DESC_NULLS_LAST', } @@ -1294,31 +1558,45 @@ export type EpochEdge = { export enum EpochOrderByInput { EndAsc = 'end_ASC', EndAscNullsFirst = 'end_ASC_NULLS_FIRST', + EndAscNullsLast = 'end_ASC_NULLS_LAST', EndDesc = 'end_DESC', + EndDescNullsFirst = 'end_DESC_NULLS_FIRST', EndDescNullsLast = 'end_DESC_NULLS_LAST', EndedAtAsc = 'endedAt_ASC', EndedAtAscNullsFirst = 'endedAt_ASC_NULLS_FIRST', + EndedAtAscNullsLast = 'endedAt_ASC_NULLS_LAST', EndedAtDesc = 'endedAt_DESC', + EndedAtDescNullsFirst = 'endedAt_DESC_NULLS_FIRST', EndedAtDescNullsLast = 'endedAt_DESC_NULLS_LAST', IdAsc = 'id_ASC', IdAscNullsFirst = 'id_ASC_NULLS_FIRST', + IdAscNullsLast = 'id_ASC_NULLS_LAST', IdDesc = 'id_DESC', + IdDescNullsFirst = 'id_DESC_NULLS_FIRST', IdDescNullsLast = 'id_DESC_NULLS_LAST', NumberAsc = 'number_ASC', NumberAscNullsFirst = 'number_ASC_NULLS_FIRST', + NumberAscNullsLast = 'number_ASC_NULLS_LAST', NumberDesc = 'number_DESC', + NumberDescNullsFirst = 'number_DESC_NULLS_FIRST', NumberDescNullsLast = 'number_DESC_NULLS_LAST', StartAsc = 'start_ASC', StartAscNullsFirst = 'start_ASC_NULLS_FIRST', + StartAscNullsLast = 'start_ASC_NULLS_LAST', StartDesc = 'start_DESC', + StartDescNullsFirst = 'start_DESC_NULLS_FIRST', StartDescNullsLast = 'start_DESC_NULLS_LAST', StartedAtAsc = 'startedAt_ASC', StartedAtAscNullsFirst = 'startedAt_ASC_NULLS_FIRST', + StartedAtAscNullsLast = 'startedAt_ASC_NULLS_LAST', StartedAtDesc = 'startedAt_DESC', + StartedAtDescNullsFirst = 'startedAt_DESC_NULLS_FIRST', StartedAtDescNullsLast = 'startedAt_DESC_NULLS_LAST', StatusAsc = 'status_ASC', StatusAscNullsFirst = 'status_ASC_NULLS_FIRST', + StatusAscNullsLast = 'status_ASC_NULLS_LAST', StatusDesc = 'status_DESC', + StatusDescNullsFirst = 'status_DESC_NULLS_FIRST', StatusDescNullsLast = 'status_DESC_NULLS_LAST', } @@ -1465,83 +1743,123 @@ export type GatewayOperatorEdge = { export enum GatewayOperatorOrderByInput { AccountBalanceAsc = 'account_balance_ASC', AccountBalanceAscNullsFirst = 'account_balance_ASC_NULLS_FIRST', + AccountBalanceAscNullsLast = 'account_balance_ASC_NULLS_LAST', AccountBalanceDesc = 'account_balance_DESC', + AccountBalanceDescNullsFirst = 'account_balance_DESC_NULLS_FIRST', AccountBalanceDescNullsLast = 'account_balance_DESC_NULLS_LAST', AccountClaimableDelegationCountAsc = 'account_claimableDelegationCount_ASC', AccountClaimableDelegationCountAscNullsFirst = 'account_claimableDelegationCount_ASC_NULLS_FIRST', + AccountClaimableDelegationCountAscNullsLast = 'account_claimableDelegationCount_ASC_NULLS_LAST', AccountClaimableDelegationCountDesc = 'account_claimableDelegationCount_DESC', + AccountClaimableDelegationCountDescNullsFirst = 'account_claimableDelegationCount_DESC_NULLS_FIRST', AccountClaimableDelegationCountDescNullsLast = 'account_claimableDelegationCount_DESC_NULLS_LAST', AccountIdAsc = 'account_id_ASC', AccountIdAscNullsFirst = 'account_id_ASC_NULLS_FIRST', + AccountIdAscNullsLast = 'account_id_ASC_NULLS_LAST', AccountIdDesc = 'account_id_DESC', + AccountIdDescNullsFirst = 'account_id_DESC_NULLS_FIRST', AccountIdDescNullsLast = 'account_id_DESC_NULLS_LAST', AccountTypeAsc = 'account_type_ASC', AccountTypeAscNullsFirst = 'account_type_ASC_NULLS_FIRST', + AccountTypeAscNullsLast = 'account_type_ASC_NULLS_LAST', AccountTypeDesc = 'account_type_DESC', + AccountTypeDescNullsFirst = 'account_type_DESC_NULLS_FIRST', AccountTypeDescNullsLast = 'account_type_DESC_NULLS_LAST', AutoExtensionAsc = 'autoExtension_ASC', AutoExtensionAscNullsFirst = 'autoExtension_ASC_NULLS_FIRST', + AutoExtensionAscNullsLast = 'autoExtension_ASC_NULLS_LAST', AutoExtensionDesc = 'autoExtension_DESC', + AutoExtensionDescNullsFirst = 'autoExtension_DESC_NULLS_FIRST', AutoExtensionDescNullsLast = 'autoExtension_DESC_NULLS_LAST', IdAsc = 'id_ASC', IdAscNullsFirst = 'id_ASC_NULLS_FIRST', + IdAscNullsLast = 'id_ASC_NULLS_LAST', IdDesc = 'id_DESC', + IdDescNullsFirst = 'id_DESC_NULLS_FIRST', IdDescNullsLast = 'id_DESC_NULLS_LAST', PendingStakeAmountAsc = 'pendingStake_amount_ASC', PendingStakeAmountAscNullsFirst = 'pendingStake_amount_ASC_NULLS_FIRST', + PendingStakeAmountAscNullsLast = 'pendingStake_amount_ASC_NULLS_LAST', PendingStakeAmountDesc = 'pendingStake_amount_DESC', + PendingStakeAmountDescNullsFirst = 'pendingStake_amount_DESC_NULLS_FIRST', PendingStakeAmountDescNullsLast = 'pendingStake_amount_DESC_NULLS_LAST', PendingStakeComputationUnitsAsc = 'pendingStake_computationUnits_ASC', PendingStakeComputationUnitsAscNullsFirst = 'pendingStake_computationUnits_ASC_NULLS_FIRST', + PendingStakeComputationUnitsAscNullsLast = 'pendingStake_computationUnits_ASC_NULLS_LAST', PendingStakeComputationUnitsDesc = 'pendingStake_computationUnits_DESC', + PendingStakeComputationUnitsDescNullsFirst = 'pendingStake_computationUnits_DESC_NULLS_FIRST', PendingStakeComputationUnitsDescNullsLast = 'pendingStake_computationUnits_DESC_NULLS_LAST', PendingStakeIdAsc = 'pendingStake_id_ASC', PendingStakeIdAscNullsFirst = 'pendingStake_id_ASC_NULLS_FIRST', + PendingStakeIdAscNullsLast = 'pendingStake_id_ASC_NULLS_LAST', PendingStakeIdDesc = 'pendingStake_id_DESC', + PendingStakeIdDescNullsFirst = 'pendingStake_id_DESC_NULLS_FIRST', PendingStakeIdDescNullsLast = 'pendingStake_id_DESC_NULLS_LAST', PendingStakeIndexAsc = 'pendingStake_index_ASC', PendingStakeIndexAscNullsFirst = 'pendingStake_index_ASC_NULLS_FIRST', + PendingStakeIndexAscNullsLast = 'pendingStake_index_ASC_NULLS_LAST', PendingStakeIndexDesc = 'pendingStake_index_DESC', + PendingStakeIndexDescNullsFirst = 'pendingStake_index_DESC_NULLS_FIRST', PendingStakeIndexDescNullsLast = 'pendingStake_index_DESC_NULLS_LAST', PendingStakeLockEndAsc = 'pendingStake_lockEnd_ASC', PendingStakeLockEndAscNullsFirst = 'pendingStake_lockEnd_ASC_NULLS_FIRST', + PendingStakeLockEndAscNullsLast = 'pendingStake_lockEnd_ASC_NULLS_LAST', PendingStakeLockEndDesc = 'pendingStake_lockEnd_DESC', + PendingStakeLockEndDescNullsFirst = 'pendingStake_lockEnd_DESC_NULLS_FIRST', PendingStakeLockEndDescNullsLast = 'pendingStake_lockEnd_DESC_NULLS_LAST', PendingStakeLockStartAsc = 'pendingStake_lockStart_ASC', PendingStakeLockStartAscNullsFirst = 'pendingStake_lockStart_ASC_NULLS_FIRST', + PendingStakeLockStartAscNullsLast = 'pendingStake_lockStart_ASC_NULLS_LAST', PendingStakeLockStartDesc = 'pendingStake_lockStart_DESC', + PendingStakeLockStartDescNullsFirst = 'pendingStake_lockStart_DESC_NULLS_FIRST', PendingStakeLockStartDescNullsLast = 'pendingStake_lockStart_DESC_NULLS_LAST', PendingStakeLockedAsc = 'pendingStake_locked_ASC', PendingStakeLockedAscNullsFirst = 'pendingStake_locked_ASC_NULLS_FIRST', + PendingStakeLockedAscNullsLast = 'pendingStake_locked_ASC_NULLS_LAST', PendingStakeLockedDesc = 'pendingStake_locked_DESC', + PendingStakeLockedDescNullsFirst = 'pendingStake_locked_DESC_NULLS_FIRST', PendingStakeLockedDescNullsLast = 'pendingStake_locked_DESC_NULLS_LAST', StakeAmountAsc = 'stake_amount_ASC', StakeAmountAscNullsFirst = 'stake_amount_ASC_NULLS_FIRST', + StakeAmountAscNullsLast = 'stake_amount_ASC_NULLS_LAST', StakeAmountDesc = 'stake_amount_DESC', + StakeAmountDescNullsFirst = 'stake_amount_DESC_NULLS_FIRST', StakeAmountDescNullsLast = 'stake_amount_DESC_NULLS_LAST', StakeComputationUnitsAsc = 'stake_computationUnits_ASC', StakeComputationUnitsAscNullsFirst = 'stake_computationUnits_ASC_NULLS_FIRST', + StakeComputationUnitsAscNullsLast = 'stake_computationUnits_ASC_NULLS_LAST', StakeComputationUnitsDesc = 'stake_computationUnits_DESC', + StakeComputationUnitsDescNullsFirst = 'stake_computationUnits_DESC_NULLS_FIRST', StakeComputationUnitsDescNullsLast = 'stake_computationUnits_DESC_NULLS_LAST', StakeIdAsc = 'stake_id_ASC', StakeIdAscNullsFirst = 'stake_id_ASC_NULLS_FIRST', + StakeIdAscNullsLast = 'stake_id_ASC_NULLS_LAST', StakeIdDesc = 'stake_id_DESC', + StakeIdDescNullsFirst = 'stake_id_DESC_NULLS_FIRST', StakeIdDescNullsLast = 'stake_id_DESC_NULLS_LAST', StakeIndexAsc = 'stake_index_ASC', StakeIndexAscNullsFirst = 'stake_index_ASC_NULLS_FIRST', + StakeIndexAscNullsLast = 'stake_index_ASC_NULLS_LAST', StakeIndexDesc = 'stake_index_DESC', + StakeIndexDescNullsFirst = 'stake_index_DESC_NULLS_FIRST', StakeIndexDescNullsLast = 'stake_index_DESC_NULLS_LAST', StakeLockEndAsc = 'stake_lockEnd_ASC', StakeLockEndAscNullsFirst = 'stake_lockEnd_ASC_NULLS_FIRST', + StakeLockEndAscNullsLast = 'stake_lockEnd_ASC_NULLS_LAST', StakeLockEndDesc = 'stake_lockEnd_DESC', + StakeLockEndDescNullsFirst = 'stake_lockEnd_DESC_NULLS_FIRST', StakeLockEndDescNullsLast = 'stake_lockEnd_DESC_NULLS_LAST', StakeLockStartAsc = 'stake_lockStart_ASC', StakeLockStartAscNullsFirst = 'stake_lockStart_ASC_NULLS_FIRST', + StakeLockStartAscNullsLast = 'stake_lockStart_ASC_NULLS_LAST', StakeLockStartDesc = 'stake_lockStart_DESC', + StakeLockStartDescNullsFirst = 'stake_lockStart_DESC_NULLS_FIRST', StakeLockStartDescNullsLast = 'stake_lockStart_DESC_NULLS_LAST', StakeLockedAsc = 'stake_locked_ASC', StakeLockedAscNullsFirst = 'stake_locked_ASC_NULLS_FIRST', + StakeLockedAscNullsLast = 'stake_locked_ASC_NULLS_LAST', StakeLockedDesc = 'stake_locked_DESC', + StakeLockedDescNullsFirst = 'stake_locked_DESC_NULLS_FIRST', StakeLockedDescNullsLast = 'stake_locked_DESC_NULLS_LAST', } @@ -1589,59 +1907,87 @@ export type GatewayOperatorsConnection = { export enum GatewayOrderByInput { CreatedAtAsc = 'createdAt_ASC', CreatedAtAscNullsFirst = 'createdAt_ASC_NULLS_FIRST', + CreatedAtAscNullsLast = 'createdAt_ASC_NULLS_LAST', CreatedAtDesc = 'createdAt_DESC', + CreatedAtDescNullsFirst = 'createdAt_DESC_NULLS_FIRST', CreatedAtDescNullsLast = 'createdAt_DESC_NULLS_LAST', DescriptionAsc = 'description_ASC', DescriptionAscNullsFirst = 'description_ASC_NULLS_FIRST', + DescriptionAscNullsLast = 'description_ASC_NULLS_LAST', DescriptionDesc = 'description_DESC', + DescriptionDescNullsFirst = 'description_DESC_NULLS_FIRST', DescriptionDescNullsLast = 'description_DESC_NULLS_LAST', EmailAsc = 'email_ASC', EmailAscNullsFirst = 'email_ASC_NULLS_FIRST', + EmailAscNullsLast = 'email_ASC_NULLS_LAST', EmailDesc = 'email_DESC', + EmailDescNullsFirst = 'email_DESC_NULLS_FIRST', EmailDescNullsLast = 'email_DESC_NULLS_LAST', EndpointUrlAsc = 'endpointUrl_ASC', EndpointUrlAscNullsFirst = 'endpointUrl_ASC_NULLS_FIRST', + EndpointUrlAscNullsLast = 'endpointUrl_ASC_NULLS_LAST', EndpointUrlDesc = 'endpointUrl_DESC', + EndpointUrlDescNullsFirst = 'endpointUrl_DESC_NULLS_FIRST', EndpointUrlDescNullsLast = 'endpointUrl_DESC_NULLS_LAST', IdAsc = 'id_ASC', IdAscNullsFirst = 'id_ASC_NULLS_FIRST', + IdAscNullsLast = 'id_ASC_NULLS_LAST', IdDesc = 'id_DESC', + IdDescNullsFirst = 'id_DESC_NULLS_FIRST', IdDescNullsLast = 'id_DESC_NULLS_LAST', NameAsc = 'name_ASC', NameAscNullsFirst = 'name_ASC_NULLS_FIRST', + NameAscNullsLast = 'name_ASC_NULLS_LAST', NameDesc = 'name_DESC', + NameDescNullsFirst = 'name_DESC_NULLS_FIRST', NameDescNullsLast = 'name_DESC_NULLS_LAST', OperatorAutoExtensionAsc = 'operator_autoExtension_ASC', OperatorAutoExtensionAscNullsFirst = 'operator_autoExtension_ASC_NULLS_FIRST', + OperatorAutoExtensionAscNullsLast = 'operator_autoExtension_ASC_NULLS_LAST', OperatorAutoExtensionDesc = 'operator_autoExtension_DESC', + OperatorAutoExtensionDescNullsFirst = 'operator_autoExtension_DESC_NULLS_FIRST', OperatorAutoExtensionDescNullsLast = 'operator_autoExtension_DESC_NULLS_LAST', OperatorIdAsc = 'operator_id_ASC', OperatorIdAscNullsFirst = 'operator_id_ASC_NULLS_FIRST', + OperatorIdAscNullsLast = 'operator_id_ASC_NULLS_LAST', OperatorIdDesc = 'operator_id_DESC', + OperatorIdDescNullsFirst = 'operator_id_DESC_NULLS_FIRST', OperatorIdDescNullsLast = 'operator_id_DESC_NULLS_LAST', OwnerBalanceAsc = 'owner_balance_ASC', OwnerBalanceAscNullsFirst = 'owner_balance_ASC_NULLS_FIRST', + OwnerBalanceAscNullsLast = 'owner_balance_ASC_NULLS_LAST', OwnerBalanceDesc = 'owner_balance_DESC', + OwnerBalanceDescNullsFirst = 'owner_balance_DESC_NULLS_FIRST', OwnerBalanceDescNullsLast = 'owner_balance_DESC_NULLS_LAST', OwnerClaimableDelegationCountAsc = 'owner_claimableDelegationCount_ASC', OwnerClaimableDelegationCountAscNullsFirst = 'owner_claimableDelegationCount_ASC_NULLS_FIRST', + OwnerClaimableDelegationCountAscNullsLast = 'owner_claimableDelegationCount_ASC_NULLS_LAST', OwnerClaimableDelegationCountDesc = 'owner_claimableDelegationCount_DESC', + OwnerClaimableDelegationCountDescNullsFirst = 'owner_claimableDelegationCount_DESC_NULLS_FIRST', OwnerClaimableDelegationCountDescNullsLast = 'owner_claimableDelegationCount_DESC_NULLS_LAST', OwnerIdAsc = 'owner_id_ASC', OwnerIdAscNullsFirst = 'owner_id_ASC_NULLS_FIRST', + OwnerIdAscNullsLast = 'owner_id_ASC_NULLS_LAST', OwnerIdDesc = 'owner_id_DESC', + OwnerIdDescNullsFirst = 'owner_id_DESC_NULLS_FIRST', OwnerIdDescNullsLast = 'owner_id_DESC_NULLS_LAST', OwnerTypeAsc = 'owner_type_ASC', OwnerTypeAscNullsFirst = 'owner_type_ASC_NULLS_FIRST', + OwnerTypeAscNullsLast = 'owner_type_ASC_NULLS_LAST', OwnerTypeDesc = 'owner_type_DESC', + OwnerTypeDescNullsFirst = 'owner_type_DESC_NULLS_FIRST', OwnerTypeDescNullsLast = 'owner_type_DESC_NULLS_LAST', StatusAsc = 'status_ASC', StatusAscNullsFirst = 'status_ASC_NULLS_FIRST', + StatusAscNullsLast = 'status_ASC_NULLS_LAST', StatusDesc = 'status_DESC', + StatusDescNullsFirst = 'status_DESC_NULLS_FIRST', StatusDescNullsLast = 'status_DESC_NULLS_LAST', WebsiteAsc = 'website_ASC', WebsiteAscNullsFirst = 'website_ASC_NULLS_FIRST', + WebsiteAscNullsLast = 'website_ASC_NULLS_LAST', WebsiteDesc = 'website_DESC', + WebsiteDescNullsFirst = 'website_DESC_NULLS_FIRST', WebsiteDescNullsLast = 'website_DESC_NULLS_LAST', } @@ -1667,55 +2013,81 @@ export type GatewayStakeEdge = { export enum GatewayStakeOrderByInput { AmountAsc = 'amount_ASC', AmountAscNullsFirst = 'amount_ASC_NULLS_FIRST', + AmountAscNullsLast = 'amount_ASC_NULLS_LAST', AmountDesc = 'amount_DESC', + AmountDescNullsFirst = 'amount_DESC_NULLS_FIRST', AmountDescNullsLast = 'amount_DESC_NULLS_LAST', ComputationUnitsAsc = 'computationUnits_ASC', ComputationUnitsAscNullsFirst = 'computationUnits_ASC_NULLS_FIRST', + ComputationUnitsAscNullsLast = 'computationUnits_ASC_NULLS_LAST', ComputationUnitsDesc = 'computationUnits_DESC', + ComputationUnitsDescNullsFirst = 'computationUnits_DESC_NULLS_FIRST', ComputationUnitsDescNullsLast = 'computationUnits_DESC_NULLS_LAST', IdAsc = 'id_ASC', IdAscNullsFirst = 'id_ASC_NULLS_FIRST', + IdAscNullsLast = 'id_ASC_NULLS_LAST', IdDesc = 'id_DESC', + IdDescNullsFirst = 'id_DESC_NULLS_FIRST', IdDescNullsLast = 'id_DESC_NULLS_LAST', IndexAsc = 'index_ASC', IndexAscNullsFirst = 'index_ASC_NULLS_FIRST', + IndexAscNullsLast = 'index_ASC_NULLS_LAST', IndexDesc = 'index_DESC', + IndexDescNullsFirst = 'index_DESC_NULLS_FIRST', IndexDescNullsLast = 'index_DESC_NULLS_LAST', LockEndAsc = 'lockEnd_ASC', LockEndAscNullsFirst = 'lockEnd_ASC_NULLS_FIRST', + LockEndAscNullsLast = 'lockEnd_ASC_NULLS_LAST', LockEndDesc = 'lockEnd_DESC', + LockEndDescNullsFirst = 'lockEnd_DESC_NULLS_FIRST', LockEndDescNullsLast = 'lockEnd_DESC_NULLS_LAST', LockStartAsc = 'lockStart_ASC', LockStartAscNullsFirst = 'lockStart_ASC_NULLS_FIRST', + LockStartAscNullsLast = 'lockStart_ASC_NULLS_LAST', LockStartDesc = 'lockStart_DESC', + LockStartDescNullsFirst = 'lockStart_DESC_NULLS_FIRST', LockStartDescNullsLast = 'lockStart_DESC_NULLS_LAST', LockedAsc = 'locked_ASC', LockedAscNullsFirst = 'locked_ASC_NULLS_FIRST', + LockedAscNullsLast = 'locked_ASC_NULLS_LAST', LockedDesc = 'locked_DESC', + LockedDescNullsFirst = 'locked_DESC_NULLS_FIRST', LockedDescNullsLast = 'locked_DESC_NULLS_LAST', OperatorAutoExtensionAsc = 'operator_autoExtension_ASC', OperatorAutoExtensionAscNullsFirst = 'operator_autoExtension_ASC_NULLS_FIRST', + OperatorAutoExtensionAscNullsLast = 'operator_autoExtension_ASC_NULLS_LAST', OperatorAutoExtensionDesc = 'operator_autoExtension_DESC', + OperatorAutoExtensionDescNullsFirst = 'operator_autoExtension_DESC_NULLS_FIRST', OperatorAutoExtensionDescNullsLast = 'operator_autoExtension_DESC_NULLS_LAST', OperatorIdAsc = 'operator_id_ASC', OperatorIdAscNullsFirst = 'operator_id_ASC_NULLS_FIRST', + OperatorIdAscNullsLast = 'operator_id_ASC_NULLS_LAST', OperatorIdDesc = 'operator_id_DESC', + OperatorIdDescNullsFirst = 'operator_id_DESC_NULLS_FIRST', OperatorIdDescNullsLast = 'operator_id_DESC_NULLS_LAST', OwnerBalanceAsc = 'owner_balance_ASC', OwnerBalanceAscNullsFirst = 'owner_balance_ASC_NULLS_FIRST', + OwnerBalanceAscNullsLast = 'owner_balance_ASC_NULLS_LAST', OwnerBalanceDesc = 'owner_balance_DESC', + OwnerBalanceDescNullsFirst = 'owner_balance_DESC_NULLS_FIRST', OwnerBalanceDescNullsLast = 'owner_balance_DESC_NULLS_LAST', OwnerClaimableDelegationCountAsc = 'owner_claimableDelegationCount_ASC', OwnerClaimableDelegationCountAscNullsFirst = 'owner_claimableDelegationCount_ASC_NULLS_FIRST', + OwnerClaimableDelegationCountAscNullsLast = 'owner_claimableDelegationCount_ASC_NULLS_LAST', OwnerClaimableDelegationCountDesc = 'owner_claimableDelegationCount_DESC', + OwnerClaimableDelegationCountDescNullsFirst = 'owner_claimableDelegationCount_DESC_NULLS_FIRST', OwnerClaimableDelegationCountDescNullsLast = 'owner_claimableDelegationCount_DESC_NULLS_LAST', OwnerIdAsc = 'owner_id_ASC', OwnerIdAscNullsFirst = 'owner_id_ASC_NULLS_FIRST', + OwnerIdAscNullsLast = 'owner_id_ASC_NULLS_LAST', OwnerIdDesc = 'owner_id_DESC', + OwnerIdDescNullsFirst = 'owner_id_DESC_NULLS_FIRST', OwnerIdDescNullsLast = 'owner_id_DESC_NULLS_LAST', OwnerTypeAsc = 'owner_type_ASC', OwnerTypeAscNullsFirst = 'owner_type_ASC_NULLS_FIRST', + OwnerTypeAscNullsLast = 'owner_type_ASC_NULLS_LAST', OwnerTypeDesc = 'owner_type_DESC', + OwnerTypeDescNullsFirst = 'owner_type_DESC_NULLS_FIRST', OwnerTypeDescNullsLast = 'owner_type_DESC_NULLS_LAST', } @@ -1824,51 +2196,75 @@ export type GatewayStatusChangeEdge = { export enum GatewayStatusChangeOrderByInput { BlockNumberAsc = 'blockNumber_ASC', BlockNumberAscNullsFirst = 'blockNumber_ASC_NULLS_FIRST', + BlockNumberAscNullsLast = 'blockNumber_ASC_NULLS_LAST', BlockNumberDesc = 'blockNumber_DESC', + BlockNumberDescNullsFirst = 'blockNumber_DESC_NULLS_FIRST', BlockNumberDescNullsLast = 'blockNumber_DESC_NULLS_LAST', GatewayCreatedAtAsc = 'gateway_createdAt_ASC', GatewayCreatedAtAscNullsFirst = 'gateway_createdAt_ASC_NULLS_FIRST', + GatewayCreatedAtAscNullsLast = 'gateway_createdAt_ASC_NULLS_LAST', GatewayCreatedAtDesc = 'gateway_createdAt_DESC', + GatewayCreatedAtDescNullsFirst = 'gateway_createdAt_DESC_NULLS_FIRST', GatewayCreatedAtDescNullsLast = 'gateway_createdAt_DESC_NULLS_LAST', GatewayDescriptionAsc = 'gateway_description_ASC', GatewayDescriptionAscNullsFirst = 'gateway_description_ASC_NULLS_FIRST', + GatewayDescriptionAscNullsLast = 'gateway_description_ASC_NULLS_LAST', GatewayDescriptionDesc = 'gateway_description_DESC', + GatewayDescriptionDescNullsFirst = 'gateway_description_DESC_NULLS_FIRST', GatewayDescriptionDescNullsLast = 'gateway_description_DESC_NULLS_LAST', GatewayEmailAsc = 'gateway_email_ASC', GatewayEmailAscNullsFirst = 'gateway_email_ASC_NULLS_FIRST', + GatewayEmailAscNullsLast = 'gateway_email_ASC_NULLS_LAST', GatewayEmailDesc = 'gateway_email_DESC', + GatewayEmailDescNullsFirst = 'gateway_email_DESC_NULLS_FIRST', GatewayEmailDescNullsLast = 'gateway_email_DESC_NULLS_LAST', GatewayEndpointUrlAsc = 'gateway_endpointUrl_ASC', GatewayEndpointUrlAscNullsFirst = 'gateway_endpointUrl_ASC_NULLS_FIRST', + GatewayEndpointUrlAscNullsLast = 'gateway_endpointUrl_ASC_NULLS_LAST', GatewayEndpointUrlDesc = 'gateway_endpointUrl_DESC', + GatewayEndpointUrlDescNullsFirst = 'gateway_endpointUrl_DESC_NULLS_FIRST', GatewayEndpointUrlDescNullsLast = 'gateway_endpointUrl_DESC_NULLS_LAST', GatewayIdAsc = 'gateway_id_ASC', GatewayIdAscNullsFirst = 'gateway_id_ASC_NULLS_FIRST', + GatewayIdAscNullsLast = 'gateway_id_ASC_NULLS_LAST', GatewayIdDesc = 'gateway_id_DESC', + GatewayIdDescNullsFirst = 'gateway_id_DESC_NULLS_FIRST', GatewayIdDescNullsLast = 'gateway_id_DESC_NULLS_LAST', GatewayNameAsc = 'gateway_name_ASC', GatewayNameAscNullsFirst = 'gateway_name_ASC_NULLS_FIRST', + GatewayNameAscNullsLast = 'gateway_name_ASC_NULLS_LAST', GatewayNameDesc = 'gateway_name_DESC', + GatewayNameDescNullsFirst = 'gateway_name_DESC_NULLS_FIRST', GatewayNameDescNullsLast = 'gateway_name_DESC_NULLS_LAST', GatewayStatusAsc = 'gateway_status_ASC', GatewayStatusAscNullsFirst = 'gateway_status_ASC_NULLS_FIRST', + GatewayStatusAscNullsLast = 'gateway_status_ASC_NULLS_LAST', GatewayStatusDesc = 'gateway_status_DESC', + GatewayStatusDescNullsFirst = 'gateway_status_DESC_NULLS_FIRST', GatewayStatusDescNullsLast = 'gateway_status_DESC_NULLS_LAST', GatewayWebsiteAsc = 'gateway_website_ASC', GatewayWebsiteAscNullsFirst = 'gateway_website_ASC_NULLS_FIRST', + GatewayWebsiteAscNullsLast = 'gateway_website_ASC_NULLS_LAST', GatewayWebsiteDesc = 'gateway_website_DESC', + GatewayWebsiteDescNullsFirst = 'gateway_website_DESC_NULLS_FIRST', GatewayWebsiteDescNullsLast = 'gateway_website_DESC_NULLS_LAST', IdAsc = 'id_ASC', IdAscNullsFirst = 'id_ASC_NULLS_FIRST', + IdAscNullsLast = 'id_ASC_NULLS_LAST', IdDesc = 'id_DESC', + IdDescNullsFirst = 'id_DESC_NULLS_FIRST', IdDescNullsLast = 'id_DESC_NULLS_LAST', StatusAsc = 'status_ASC', StatusAscNullsFirst = 'status_ASC_NULLS_FIRST', + StatusAscNullsLast = 'status_ASC_NULLS_LAST', StatusDesc = 'status_DESC', + StatusDescNullsFirst = 'status_DESC_NULLS_FIRST', StatusDescNullsLast = 'status_DESC_NULLS_LAST', TimestampAsc = 'timestamp_ASC', TimestampAscNullsFirst = 'timestamp_ASC_NULLS_FIRST', + TimestampAscNullsLast = 'timestamp_ASC_NULLS_LAST', TimestampDesc = 'timestamp_DESC', + TimestampDescNullsFirst = 'timestamp_DESC_NULLS_FIRST', TimestampDescNullsLast = 'timestamp_DESC_NULLS_LAST', } @@ -2618,19 +3014,27 @@ export type SettingsEdge = { export enum SettingsOrderByInput { BondAmountAsc = 'bondAmount_ASC', BondAmountAscNullsFirst = 'bondAmount_ASC_NULLS_FIRST', + BondAmountAscNullsLast = 'bondAmount_ASC_NULLS_LAST', BondAmountDesc = 'bondAmount_DESC', + BondAmountDescNullsFirst = 'bondAmount_DESC_NULLS_FIRST', BondAmountDescNullsLast = 'bondAmount_DESC_NULLS_LAST', DelegationLimitCoefficientAsc = 'delegationLimitCoefficient_ASC', DelegationLimitCoefficientAscNullsFirst = 'delegationLimitCoefficient_ASC_NULLS_FIRST', + DelegationLimitCoefficientAscNullsLast = 'delegationLimitCoefficient_ASC_NULLS_LAST', DelegationLimitCoefficientDesc = 'delegationLimitCoefficient_DESC', + DelegationLimitCoefficientDescNullsFirst = 'delegationLimitCoefficient_DESC_NULLS_FIRST', DelegationLimitCoefficientDescNullsLast = 'delegationLimitCoefficient_DESC_NULLS_LAST', EpochLengthAsc = 'epochLength_ASC', EpochLengthAscNullsFirst = 'epochLength_ASC_NULLS_FIRST', + EpochLengthAscNullsLast = 'epochLength_ASC_NULLS_LAST', EpochLengthDesc = 'epochLength_DESC', + EpochLengthDescNullsFirst = 'epochLength_DESC_NULLS_FIRST', EpochLengthDescNullsLast = 'epochLength_DESC_NULLS_LAST', IdAsc = 'id_ASC', IdAscNullsFirst = 'id_ASC_NULLS_FIRST', + IdAscNullsLast = 'id_ASC_NULLS_LAST', IdDesc = 'id_DESC', + IdDescNullsFirst = 'id_DESC_NULLS_FIRST', IdDescNullsLast = 'id_DESC_NULLS_LAST', } @@ -2718,39 +3122,57 @@ export type StatisticsEdge = { export enum StatisticsOrderByInput { BlockTimeL1Asc = 'blockTimeL1_ASC', BlockTimeL1AscNullsFirst = 'blockTimeL1_ASC_NULLS_FIRST', + BlockTimeL1AscNullsLast = 'blockTimeL1_ASC_NULLS_LAST', BlockTimeL1Desc = 'blockTimeL1_DESC', + BlockTimeL1DescNullsFirst = 'blockTimeL1_DESC_NULLS_FIRST', BlockTimeL1DescNullsLast = 'blockTimeL1_DESC_NULLS_LAST', BlockTimeAsc = 'blockTime_ASC', BlockTimeAscNullsFirst = 'blockTime_ASC_NULLS_FIRST', + BlockTimeAscNullsLast = 'blockTime_ASC_NULLS_LAST', BlockTimeDesc = 'blockTime_DESC', + BlockTimeDescNullsFirst = 'blockTime_DESC_NULLS_FIRST', BlockTimeDescNullsLast = 'blockTime_DESC_NULLS_LAST', CurrentEpochAsc = 'currentEpoch_ASC', CurrentEpochAscNullsFirst = 'currentEpoch_ASC_NULLS_FIRST', + CurrentEpochAscNullsLast = 'currentEpoch_ASC_NULLS_LAST', CurrentEpochDesc = 'currentEpoch_DESC', + CurrentEpochDescNullsFirst = 'currentEpoch_DESC_NULLS_FIRST', CurrentEpochDescNullsLast = 'currentEpoch_DESC_NULLS_LAST', IdAsc = 'id_ASC', IdAscNullsFirst = 'id_ASC_NULLS_FIRST', + IdAscNullsLast = 'id_ASC_NULLS_LAST', IdDesc = 'id_DESC', + IdDescNullsFirst = 'id_DESC_NULLS_FIRST', IdDescNullsLast = 'id_DESC_NULLS_LAST', LastBlockL1Asc = 'lastBlockL1_ASC', LastBlockL1AscNullsFirst = 'lastBlockL1_ASC_NULLS_FIRST', + LastBlockL1AscNullsLast = 'lastBlockL1_ASC_NULLS_LAST', LastBlockL1Desc = 'lastBlockL1_DESC', + LastBlockL1DescNullsFirst = 'lastBlockL1_DESC_NULLS_FIRST', LastBlockL1DescNullsLast = 'lastBlockL1_DESC_NULLS_LAST', LastBlockTimestampL1Asc = 'lastBlockTimestampL1_ASC', LastBlockTimestampL1AscNullsFirst = 'lastBlockTimestampL1_ASC_NULLS_FIRST', + LastBlockTimestampL1AscNullsLast = 'lastBlockTimestampL1_ASC_NULLS_LAST', LastBlockTimestampL1Desc = 'lastBlockTimestampL1_DESC', + LastBlockTimestampL1DescNullsFirst = 'lastBlockTimestampL1_DESC_NULLS_FIRST', LastBlockTimestampL1DescNullsLast = 'lastBlockTimestampL1_DESC_NULLS_LAST', LastBlockTimestampAsc = 'lastBlockTimestamp_ASC', LastBlockTimestampAscNullsFirst = 'lastBlockTimestamp_ASC_NULLS_FIRST', + LastBlockTimestampAscNullsLast = 'lastBlockTimestamp_ASC_NULLS_LAST', LastBlockTimestampDesc = 'lastBlockTimestamp_DESC', + LastBlockTimestampDescNullsFirst = 'lastBlockTimestamp_DESC_NULLS_FIRST', LastBlockTimestampDescNullsLast = 'lastBlockTimestamp_DESC_NULLS_LAST', LastBlockAsc = 'lastBlock_ASC', LastBlockAscNullsFirst = 'lastBlock_ASC_NULLS_FIRST', + LastBlockAscNullsLast = 'lastBlock_ASC_NULLS_LAST', LastBlockDesc = 'lastBlock_DESC', + LastBlockDescNullsFirst = 'lastBlock_DESC_NULLS_FIRST', LastBlockDescNullsLast = 'lastBlock_DESC_NULLS_LAST', LastSnapshotTimestampAsc = 'lastSnapshotTimestamp_ASC', LastSnapshotTimestampAscNullsFirst = 'lastSnapshotTimestamp_ASC_NULLS_FIRST', + LastSnapshotTimestampAscNullsLast = 'lastSnapshotTimestamp_ASC_NULLS_LAST', LastSnapshotTimestampDesc = 'lastSnapshotTimestamp_DESC', + LastSnapshotTimestampDescNullsFirst = 'lastSnapshotTimestamp_DESC_NULLS_FIRST', LastSnapshotTimestampDescNullsLast = 'lastSnapshotTimestamp_DESC_NULLS_LAST', } @@ -2872,51 +3294,75 @@ export type TransferEdge = { export enum TransferOrderByInput { AmountAsc = 'amount_ASC', AmountAscNullsFirst = 'amount_ASC_NULLS_FIRST', + AmountAscNullsLast = 'amount_ASC_NULLS_LAST', AmountDesc = 'amount_DESC', + AmountDescNullsFirst = 'amount_DESC_NULLS_FIRST', AmountDescNullsLast = 'amount_DESC_NULLS_LAST', BlockNumberAsc = 'blockNumber_ASC', BlockNumberAscNullsFirst = 'blockNumber_ASC_NULLS_FIRST', + BlockNumberAscNullsLast = 'blockNumber_ASC_NULLS_LAST', BlockNumberDesc = 'blockNumber_DESC', + BlockNumberDescNullsFirst = 'blockNumber_DESC_NULLS_FIRST', BlockNumberDescNullsLast = 'blockNumber_DESC_NULLS_LAST', FromBalanceAsc = 'from_balance_ASC', FromBalanceAscNullsFirst = 'from_balance_ASC_NULLS_FIRST', + FromBalanceAscNullsLast = 'from_balance_ASC_NULLS_LAST', FromBalanceDesc = 'from_balance_DESC', + FromBalanceDescNullsFirst = 'from_balance_DESC_NULLS_FIRST', FromBalanceDescNullsLast = 'from_balance_DESC_NULLS_LAST', FromClaimableDelegationCountAsc = 'from_claimableDelegationCount_ASC', FromClaimableDelegationCountAscNullsFirst = 'from_claimableDelegationCount_ASC_NULLS_FIRST', + FromClaimableDelegationCountAscNullsLast = 'from_claimableDelegationCount_ASC_NULLS_LAST', FromClaimableDelegationCountDesc = 'from_claimableDelegationCount_DESC', + FromClaimableDelegationCountDescNullsFirst = 'from_claimableDelegationCount_DESC_NULLS_FIRST', FromClaimableDelegationCountDescNullsLast = 'from_claimableDelegationCount_DESC_NULLS_LAST', FromIdAsc = 'from_id_ASC', FromIdAscNullsFirst = 'from_id_ASC_NULLS_FIRST', + FromIdAscNullsLast = 'from_id_ASC_NULLS_LAST', FromIdDesc = 'from_id_DESC', + FromIdDescNullsFirst = 'from_id_DESC_NULLS_FIRST', FromIdDescNullsLast = 'from_id_DESC_NULLS_LAST', FromTypeAsc = 'from_type_ASC', FromTypeAscNullsFirst = 'from_type_ASC_NULLS_FIRST', + FromTypeAscNullsLast = 'from_type_ASC_NULLS_LAST', FromTypeDesc = 'from_type_DESC', + FromTypeDescNullsFirst = 'from_type_DESC_NULLS_FIRST', FromTypeDescNullsLast = 'from_type_DESC_NULLS_LAST', IdAsc = 'id_ASC', IdAscNullsFirst = 'id_ASC_NULLS_FIRST', + IdAscNullsLast = 'id_ASC_NULLS_LAST', IdDesc = 'id_DESC', + IdDescNullsFirst = 'id_DESC_NULLS_FIRST', IdDescNullsLast = 'id_DESC_NULLS_LAST', TimestampAsc = 'timestamp_ASC', TimestampAscNullsFirst = 'timestamp_ASC_NULLS_FIRST', + TimestampAscNullsLast = 'timestamp_ASC_NULLS_LAST', TimestampDesc = 'timestamp_DESC', + TimestampDescNullsFirst = 'timestamp_DESC_NULLS_FIRST', TimestampDescNullsLast = 'timestamp_DESC_NULLS_LAST', ToBalanceAsc = 'to_balance_ASC', ToBalanceAscNullsFirst = 'to_balance_ASC_NULLS_FIRST', + ToBalanceAscNullsLast = 'to_balance_ASC_NULLS_LAST', ToBalanceDesc = 'to_balance_DESC', + ToBalanceDescNullsFirst = 'to_balance_DESC_NULLS_FIRST', ToBalanceDescNullsLast = 'to_balance_DESC_NULLS_LAST', ToClaimableDelegationCountAsc = 'to_claimableDelegationCount_ASC', ToClaimableDelegationCountAscNullsFirst = 'to_claimableDelegationCount_ASC_NULLS_FIRST', + ToClaimableDelegationCountAscNullsLast = 'to_claimableDelegationCount_ASC_NULLS_LAST', ToClaimableDelegationCountDesc = 'to_claimableDelegationCount_DESC', + ToClaimableDelegationCountDescNullsFirst = 'to_claimableDelegationCount_DESC_NULLS_FIRST', ToClaimableDelegationCountDescNullsLast = 'to_claimableDelegationCount_DESC_NULLS_LAST', ToIdAsc = 'to_id_ASC', ToIdAscNullsFirst = 'to_id_ASC_NULLS_FIRST', + ToIdAscNullsLast = 'to_id_ASC_NULLS_LAST', ToIdDesc = 'to_id_DESC', + ToIdDescNullsFirst = 'to_id_DESC_NULLS_FIRST', ToIdDescNullsLast = 'to_id_DESC_NULLS_LAST', ToTypeAsc = 'to_type_ASC', ToTypeAscNullsFirst = 'to_type_ASC_NULLS_FIRST', + ToTypeAscNullsLast = 'to_type_ASC_NULLS_LAST', ToTypeDesc = 'to_type_DESC', + ToTypeDescNullsFirst = 'to_type_DESC_NULLS_FIRST', ToTypeDescNullsLast = 'to_type_DESC_NULLS_LAST', } @@ -3071,159 +3517,237 @@ export type WorkerEdge = { export enum WorkerOrderByInput { AprAsc = 'apr_ASC', AprAscNullsFirst = 'apr_ASC_NULLS_FIRST', + AprAscNullsLast = 'apr_ASC_NULLS_LAST', AprDesc = 'apr_DESC', + AprDescNullsFirst = 'apr_DESC_NULLS_FIRST', AprDescNullsLast = 'apr_DESC_NULLS_LAST', BondAsc = 'bond_ASC', BondAscNullsFirst = 'bond_ASC_NULLS_FIRST', + BondAscNullsLast = 'bond_ASC_NULLS_LAST', BondDesc = 'bond_DESC', + BondDescNullsFirst = 'bond_DESC_NULLS_FIRST', BondDescNullsLast = 'bond_DESC_NULLS_LAST', ClaimableRewardAsc = 'claimableReward_ASC', ClaimableRewardAscNullsFirst = 'claimableReward_ASC_NULLS_FIRST', + ClaimableRewardAscNullsLast = 'claimableReward_ASC_NULLS_LAST', ClaimableRewardDesc = 'claimableReward_DESC', + ClaimableRewardDescNullsFirst = 'claimableReward_DESC_NULLS_FIRST', ClaimableRewardDescNullsLast = 'claimableReward_DESC_NULLS_LAST', ClaimedRewardAsc = 'claimedReward_ASC', ClaimedRewardAscNullsFirst = 'claimedReward_ASC_NULLS_FIRST', + ClaimedRewardAscNullsLast = 'claimedReward_ASC_NULLS_LAST', ClaimedRewardDesc = 'claimedReward_DESC', + ClaimedRewardDescNullsFirst = 'claimedReward_DESC_NULLS_FIRST', ClaimedRewardDescNullsLast = 'claimedReward_DESC_NULLS_LAST', CreatedAtAsc = 'createdAt_ASC', CreatedAtAscNullsFirst = 'createdAt_ASC_NULLS_FIRST', + CreatedAtAscNullsLast = 'createdAt_ASC_NULLS_LAST', CreatedAtDesc = 'createdAt_DESC', + CreatedAtDescNullsFirst = 'createdAt_DESC_NULLS_FIRST', CreatedAtDescNullsLast = 'createdAt_DESC_NULLS_LAST', DelegationCountAsc = 'delegationCount_ASC', DelegationCountAscNullsFirst = 'delegationCount_ASC_NULLS_FIRST', + DelegationCountAscNullsLast = 'delegationCount_ASC_NULLS_LAST', DelegationCountDesc = 'delegationCount_DESC', + DelegationCountDescNullsFirst = 'delegationCount_DESC_NULLS_FIRST', DelegationCountDescNullsLast = 'delegationCount_DESC_NULLS_LAST', DescriptionAsc = 'description_ASC', DescriptionAscNullsFirst = 'description_ASC_NULLS_FIRST', + DescriptionAscNullsLast = 'description_ASC_NULLS_LAST', DescriptionDesc = 'description_DESC', + DescriptionDescNullsFirst = 'description_DESC_NULLS_FIRST', DescriptionDescNullsLast = 'description_DESC_NULLS_LAST', DialOkAsc = 'dialOk_ASC', DialOkAscNullsFirst = 'dialOk_ASC_NULLS_FIRST', + DialOkAscNullsLast = 'dialOk_ASC_NULLS_LAST', DialOkDesc = 'dialOk_DESC', + DialOkDescNullsFirst = 'dialOk_DESC_NULLS_FIRST', DialOkDescNullsLast = 'dialOk_DESC_NULLS_LAST', EmailAsc = 'email_ASC', EmailAscNullsFirst = 'email_ASC_NULLS_FIRST', + EmailAscNullsLast = 'email_ASC_NULLS_LAST', EmailDesc = 'email_DESC', + EmailDescNullsFirst = 'email_DESC_NULLS_FIRST', EmailDescNullsLast = 'email_DESC_NULLS_LAST', IdAsc = 'id_ASC', IdAscNullsFirst = 'id_ASC_NULLS_FIRST', + IdAscNullsLast = 'id_ASC_NULLS_LAST', IdDesc = 'id_DESC', + IdDescNullsFirst = 'id_DESC_NULLS_FIRST', IdDescNullsLast = 'id_DESC_NULLS_LAST', JailedAsc = 'jailed_ASC', JailedAscNullsFirst = 'jailed_ASC_NULLS_FIRST', + JailedAscNullsLast = 'jailed_ASC_NULLS_LAST', JailedDesc = 'jailed_DESC', + JailedDescNullsFirst = 'jailed_DESC_NULLS_FIRST', JailedDescNullsLast = 'jailed_DESC_NULLS_LAST', LockEndAsc = 'lockEnd_ASC', LockEndAscNullsFirst = 'lockEnd_ASC_NULLS_FIRST', + LockEndAscNullsLast = 'lockEnd_ASC_NULLS_LAST', LockEndDesc = 'lockEnd_DESC', + LockEndDescNullsFirst = 'lockEnd_DESC_NULLS_FIRST', LockEndDescNullsLast = 'lockEnd_DESC_NULLS_LAST', LockStartAsc = 'lockStart_ASC', LockStartAscNullsFirst = 'lockStart_ASC_NULLS_FIRST', + LockStartAscNullsLast = 'lockStart_ASC_NULLS_LAST', LockStartDesc = 'lockStart_DESC', + LockStartDescNullsFirst = 'lockStart_DESC_NULLS_FIRST', LockStartDescNullsLast = 'lockStart_DESC_NULLS_LAST', LockedAsc = 'locked_ASC', LockedAscNullsFirst = 'locked_ASC_NULLS_FIRST', + LockedAscNullsLast = 'locked_ASC_NULLS_LAST', LockedDesc = 'locked_DESC', + LockedDescNullsFirst = 'locked_DESC_NULLS_FIRST', LockedDescNullsLast = 'locked_DESC_NULLS_LAST', NameAsc = 'name_ASC', NameAscNullsFirst = 'name_ASC_NULLS_FIRST', + NameAscNullsLast = 'name_ASC_NULLS_LAST', NameDesc = 'name_DESC', + NameDescNullsFirst = 'name_DESC_NULLS_FIRST', NameDescNullsLast = 'name_DESC_NULLS_LAST', OnlineAsc = 'online_ASC', OnlineAscNullsFirst = 'online_ASC_NULLS_FIRST', + OnlineAscNullsLast = 'online_ASC_NULLS_LAST', OnlineDesc = 'online_DESC', + OnlineDescNullsFirst = 'online_DESC_NULLS_FIRST', OnlineDescNullsLast = 'online_DESC_NULLS_LAST', OwnerBalanceAsc = 'owner_balance_ASC', OwnerBalanceAscNullsFirst = 'owner_balance_ASC_NULLS_FIRST', + OwnerBalanceAscNullsLast = 'owner_balance_ASC_NULLS_LAST', OwnerBalanceDesc = 'owner_balance_DESC', + OwnerBalanceDescNullsFirst = 'owner_balance_DESC_NULLS_FIRST', OwnerBalanceDescNullsLast = 'owner_balance_DESC_NULLS_LAST', OwnerClaimableDelegationCountAsc = 'owner_claimableDelegationCount_ASC', OwnerClaimableDelegationCountAscNullsFirst = 'owner_claimableDelegationCount_ASC_NULLS_FIRST', + OwnerClaimableDelegationCountAscNullsLast = 'owner_claimableDelegationCount_ASC_NULLS_LAST', OwnerClaimableDelegationCountDesc = 'owner_claimableDelegationCount_DESC', + OwnerClaimableDelegationCountDescNullsFirst = 'owner_claimableDelegationCount_DESC_NULLS_FIRST', OwnerClaimableDelegationCountDescNullsLast = 'owner_claimableDelegationCount_DESC_NULLS_LAST', OwnerIdAsc = 'owner_id_ASC', OwnerIdAscNullsFirst = 'owner_id_ASC_NULLS_FIRST', + OwnerIdAscNullsLast = 'owner_id_ASC_NULLS_LAST', OwnerIdDesc = 'owner_id_DESC', + OwnerIdDescNullsFirst = 'owner_id_DESC_NULLS_FIRST', OwnerIdDescNullsLast = 'owner_id_DESC_NULLS_LAST', OwnerTypeAsc = 'owner_type_ASC', OwnerTypeAscNullsFirst = 'owner_type_ASC_NULLS_FIRST', + OwnerTypeAscNullsLast = 'owner_type_ASC_NULLS_LAST', OwnerTypeDesc = 'owner_type_DESC', + OwnerTypeDescNullsFirst = 'owner_type_DESC_NULLS_FIRST', OwnerTypeDescNullsLast = 'owner_type_DESC_NULLS_LAST', PeerIdAsc = 'peerId_ASC', PeerIdAscNullsFirst = 'peerId_ASC_NULLS_FIRST', + PeerIdAscNullsLast = 'peerId_ASC_NULLS_LAST', PeerIdDesc = 'peerId_DESC', + PeerIdDescNullsFirst = 'peerId_DESC_NULLS_FIRST', PeerIdDescNullsLast = 'peerId_DESC_NULLS_LAST', Queries24HoursAsc = 'queries24Hours_ASC', Queries24HoursAscNullsFirst = 'queries24Hours_ASC_NULLS_FIRST', + Queries24HoursAscNullsLast = 'queries24Hours_ASC_NULLS_LAST', Queries24HoursDesc = 'queries24Hours_DESC', + Queries24HoursDescNullsFirst = 'queries24Hours_DESC_NULLS_FIRST', Queries24HoursDescNullsLast = 'queries24Hours_DESC_NULLS_LAST', Queries90DaysAsc = 'queries90Days_ASC', Queries90DaysAscNullsFirst = 'queries90Days_ASC_NULLS_FIRST', + Queries90DaysAscNullsLast = 'queries90Days_ASC_NULLS_LAST', Queries90DaysDesc = 'queries90Days_DESC', + Queries90DaysDescNullsFirst = 'queries90Days_DESC_NULLS_FIRST', Queries90DaysDescNullsLast = 'queries90Days_DESC_NULLS_LAST', RealOwnerBalanceAsc = 'realOwner_balance_ASC', RealOwnerBalanceAscNullsFirst = 'realOwner_balance_ASC_NULLS_FIRST', + RealOwnerBalanceAscNullsLast = 'realOwner_balance_ASC_NULLS_LAST', RealOwnerBalanceDesc = 'realOwner_balance_DESC', + RealOwnerBalanceDescNullsFirst = 'realOwner_balance_DESC_NULLS_FIRST', RealOwnerBalanceDescNullsLast = 'realOwner_balance_DESC_NULLS_LAST', RealOwnerClaimableDelegationCountAsc = 'realOwner_claimableDelegationCount_ASC', RealOwnerClaimableDelegationCountAscNullsFirst = 'realOwner_claimableDelegationCount_ASC_NULLS_FIRST', + RealOwnerClaimableDelegationCountAscNullsLast = 'realOwner_claimableDelegationCount_ASC_NULLS_LAST', RealOwnerClaimableDelegationCountDesc = 'realOwner_claimableDelegationCount_DESC', + RealOwnerClaimableDelegationCountDescNullsFirst = 'realOwner_claimableDelegationCount_DESC_NULLS_FIRST', RealOwnerClaimableDelegationCountDescNullsLast = 'realOwner_claimableDelegationCount_DESC_NULLS_LAST', RealOwnerIdAsc = 'realOwner_id_ASC', RealOwnerIdAscNullsFirst = 'realOwner_id_ASC_NULLS_FIRST', + RealOwnerIdAscNullsLast = 'realOwner_id_ASC_NULLS_LAST', RealOwnerIdDesc = 'realOwner_id_DESC', + RealOwnerIdDescNullsFirst = 'realOwner_id_DESC_NULLS_FIRST', RealOwnerIdDescNullsLast = 'realOwner_id_DESC_NULLS_LAST', RealOwnerTypeAsc = 'realOwner_type_ASC', RealOwnerTypeAscNullsFirst = 'realOwner_type_ASC_NULLS_FIRST', + RealOwnerTypeAscNullsLast = 'realOwner_type_ASC_NULLS_LAST', RealOwnerTypeDesc = 'realOwner_type_DESC', + RealOwnerTypeDescNullsFirst = 'realOwner_type_DESC_NULLS_FIRST', RealOwnerTypeDescNullsLast = 'realOwner_type_DESC_NULLS_LAST', ScannedData24HoursAsc = 'scannedData24Hours_ASC', ScannedData24HoursAscNullsFirst = 'scannedData24Hours_ASC_NULLS_FIRST', + ScannedData24HoursAscNullsLast = 'scannedData24Hours_ASC_NULLS_LAST', ScannedData24HoursDesc = 'scannedData24Hours_DESC', + ScannedData24HoursDescNullsFirst = 'scannedData24Hours_DESC_NULLS_FIRST', ScannedData24HoursDescNullsLast = 'scannedData24Hours_DESC_NULLS_LAST', ScannedData90DaysAsc = 'scannedData90Days_ASC', ScannedData90DaysAscNullsFirst = 'scannedData90Days_ASC_NULLS_FIRST', + ScannedData90DaysAscNullsLast = 'scannedData90Days_ASC_NULLS_LAST', ScannedData90DaysDesc = 'scannedData90Days_DESC', + ScannedData90DaysDescNullsFirst = 'scannedData90Days_DESC_NULLS_FIRST', ScannedData90DaysDescNullsLast = 'scannedData90Days_DESC_NULLS_LAST', ServedData24HoursAsc = 'servedData24Hours_ASC', ServedData24HoursAscNullsFirst = 'servedData24Hours_ASC_NULLS_FIRST', + ServedData24HoursAscNullsLast = 'servedData24Hours_ASC_NULLS_LAST', ServedData24HoursDesc = 'servedData24Hours_DESC', + ServedData24HoursDescNullsFirst = 'servedData24Hours_DESC_NULLS_FIRST', ServedData24HoursDescNullsLast = 'servedData24Hours_DESC_NULLS_LAST', ServedData90DaysAsc = 'servedData90Days_ASC', ServedData90DaysAscNullsFirst = 'servedData90Days_ASC_NULLS_FIRST', + ServedData90DaysAscNullsLast = 'servedData90Days_ASC_NULLS_LAST', ServedData90DaysDesc = 'servedData90Days_DESC', + ServedData90DaysDescNullsFirst = 'servedData90Days_DESC_NULLS_FIRST', ServedData90DaysDescNullsLast = 'servedData90Days_DESC_NULLS_LAST', StakerAprAsc = 'stakerApr_ASC', StakerAprAscNullsFirst = 'stakerApr_ASC_NULLS_FIRST', + StakerAprAscNullsLast = 'stakerApr_ASC_NULLS_LAST', StakerAprDesc = 'stakerApr_DESC', + StakerAprDescNullsFirst = 'stakerApr_DESC_NULLS_FIRST', StakerAprDescNullsLast = 'stakerApr_DESC_NULLS_LAST', StatusAsc = 'status_ASC', StatusAscNullsFirst = 'status_ASC_NULLS_FIRST', + StatusAscNullsLast = 'status_ASC_NULLS_LAST', StatusDesc = 'status_DESC', + StatusDescNullsFirst = 'status_DESC_NULLS_FIRST', StatusDescNullsLast = 'status_DESC_NULLS_LAST', StoredDataAsc = 'storedData_ASC', StoredDataAscNullsFirst = 'storedData_ASC_NULLS_FIRST', + StoredDataAscNullsLast = 'storedData_ASC_NULLS_LAST', StoredDataDesc = 'storedData_DESC', + StoredDataDescNullsFirst = 'storedData_DESC_NULLS_FIRST', StoredDataDescNullsLast = 'storedData_DESC_NULLS_LAST', TotalDelegationAsc = 'totalDelegation_ASC', TotalDelegationAscNullsFirst = 'totalDelegation_ASC_NULLS_FIRST', + TotalDelegationAscNullsLast = 'totalDelegation_ASC_NULLS_LAST', TotalDelegationDesc = 'totalDelegation_DESC', + TotalDelegationDescNullsFirst = 'totalDelegation_DESC_NULLS_FIRST', TotalDelegationDescNullsLast = 'totalDelegation_DESC_NULLS_LAST', Uptime24HoursAsc = 'uptime24Hours_ASC', Uptime24HoursAscNullsFirst = 'uptime24Hours_ASC_NULLS_FIRST', + Uptime24HoursAscNullsLast = 'uptime24Hours_ASC_NULLS_LAST', Uptime24HoursDesc = 'uptime24Hours_DESC', + Uptime24HoursDescNullsFirst = 'uptime24Hours_DESC_NULLS_FIRST', Uptime24HoursDescNullsLast = 'uptime24Hours_DESC_NULLS_LAST', Uptime90DaysAsc = 'uptime90Days_ASC', Uptime90DaysAscNullsFirst = 'uptime90Days_ASC_NULLS_FIRST', + Uptime90DaysAscNullsLast = 'uptime90Days_ASC_NULLS_LAST', Uptime90DaysDesc = 'uptime90Days_DESC', + Uptime90DaysDescNullsFirst = 'uptime90Days_DESC_NULLS_FIRST', Uptime90DaysDescNullsLast = 'uptime90Days_DESC_NULLS_LAST', VersionAsc = 'version_ASC', VersionAscNullsFirst = 'version_ASC_NULLS_FIRST', + VersionAscNullsLast = 'version_ASC_NULLS_LAST', VersionDesc = 'version_DESC', + VersionDescNullsFirst = 'version_DESC_NULLS_FIRST', VersionDescNullsLast = 'version_DESC_NULLS_LAST', WebsiteAsc = 'website_ASC', WebsiteAscNullsFirst = 'website_ASC_NULLS_FIRST', + WebsiteAscNullsLast = 'website_ASC_NULLS_LAST', WebsiteDesc = 'website_DESC', + WebsiteDescNullsFirst = 'website_DESC_NULLS_FIRST', WebsiteDescNullsLast = 'website_DESC_NULLS_LAST', } @@ -3246,147 +3770,219 @@ export type WorkerRewardEdge = { export enum WorkerRewardOrderByInput { AmountAsc = 'amount_ASC', AmountAscNullsFirst = 'amount_ASC_NULLS_FIRST', + AmountAscNullsLast = 'amount_ASC_NULLS_LAST', AmountDesc = 'amount_DESC', + AmountDescNullsFirst = 'amount_DESC_NULLS_FIRST', AmountDescNullsLast = 'amount_DESC_NULLS_LAST', BlockNumberAsc = 'blockNumber_ASC', BlockNumberAscNullsFirst = 'blockNumber_ASC_NULLS_FIRST', + BlockNumberAscNullsLast = 'blockNumber_ASC_NULLS_LAST', BlockNumberDesc = 'blockNumber_DESC', + BlockNumberDescNullsFirst = 'blockNumber_DESC_NULLS_FIRST', BlockNumberDescNullsLast = 'blockNumber_DESC_NULLS_LAST', IdAsc = 'id_ASC', IdAscNullsFirst = 'id_ASC_NULLS_FIRST', + IdAscNullsLast = 'id_ASC_NULLS_LAST', IdDesc = 'id_DESC', + IdDescNullsFirst = 'id_DESC_NULLS_FIRST', IdDescNullsLast = 'id_DESC_NULLS_LAST', StakersRewardAsc = 'stakersReward_ASC', StakersRewardAscNullsFirst = 'stakersReward_ASC_NULLS_FIRST', + StakersRewardAscNullsLast = 'stakersReward_ASC_NULLS_LAST', StakersRewardDesc = 'stakersReward_DESC', + StakersRewardDescNullsFirst = 'stakersReward_DESC_NULLS_FIRST', StakersRewardDescNullsLast = 'stakersReward_DESC_NULLS_LAST', TimestampAsc = 'timestamp_ASC', TimestampAscNullsFirst = 'timestamp_ASC_NULLS_FIRST', + TimestampAscNullsLast = 'timestamp_ASC_NULLS_LAST', TimestampDesc = 'timestamp_DESC', + TimestampDescNullsFirst = 'timestamp_DESC_NULLS_FIRST', TimestampDescNullsLast = 'timestamp_DESC_NULLS_LAST', WorkerAprAsc = 'worker_apr_ASC', WorkerAprAscNullsFirst = 'worker_apr_ASC_NULLS_FIRST', + WorkerAprAscNullsLast = 'worker_apr_ASC_NULLS_LAST', WorkerAprDesc = 'worker_apr_DESC', + WorkerAprDescNullsFirst = 'worker_apr_DESC_NULLS_FIRST', WorkerAprDescNullsLast = 'worker_apr_DESC_NULLS_LAST', WorkerBondAsc = 'worker_bond_ASC', WorkerBondAscNullsFirst = 'worker_bond_ASC_NULLS_FIRST', + WorkerBondAscNullsLast = 'worker_bond_ASC_NULLS_LAST', WorkerBondDesc = 'worker_bond_DESC', + WorkerBondDescNullsFirst = 'worker_bond_DESC_NULLS_FIRST', WorkerBondDescNullsLast = 'worker_bond_DESC_NULLS_LAST', WorkerClaimableRewardAsc = 'worker_claimableReward_ASC', WorkerClaimableRewardAscNullsFirst = 'worker_claimableReward_ASC_NULLS_FIRST', + WorkerClaimableRewardAscNullsLast = 'worker_claimableReward_ASC_NULLS_LAST', WorkerClaimableRewardDesc = 'worker_claimableReward_DESC', + WorkerClaimableRewardDescNullsFirst = 'worker_claimableReward_DESC_NULLS_FIRST', WorkerClaimableRewardDescNullsLast = 'worker_claimableReward_DESC_NULLS_LAST', WorkerClaimedRewardAsc = 'worker_claimedReward_ASC', WorkerClaimedRewardAscNullsFirst = 'worker_claimedReward_ASC_NULLS_FIRST', + WorkerClaimedRewardAscNullsLast = 'worker_claimedReward_ASC_NULLS_LAST', WorkerClaimedRewardDesc = 'worker_claimedReward_DESC', + WorkerClaimedRewardDescNullsFirst = 'worker_claimedReward_DESC_NULLS_FIRST', WorkerClaimedRewardDescNullsLast = 'worker_claimedReward_DESC_NULLS_LAST', WorkerCreatedAtAsc = 'worker_createdAt_ASC', WorkerCreatedAtAscNullsFirst = 'worker_createdAt_ASC_NULLS_FIRST', + WorkerCreatedAtAscNullsLast = 'worker_createdAt_ASC_NULLS_LAST', WorkerCreatedAtDesc = 'worker_createdAt_DESC', + WorkerCreatedAtDescNullsFirst = 'worker_createdAt_DESC_NULLS_FIRST', WorkerCreatedAtDescNullsLast = 'worker_createdAt_DESC_NULLS_LAST', WorkerDelegationCountAsc = 'worker_delegationCount_ASC', WorkerDelegationCountAscNullsFirst = 'worker_delegationCount_ASC_NULLS_FIRST', + WorkerDelegationCountAscNullsLast = 'worker_delegationCount_ASC_NULLS_LAST', WorkerDelegationCountDesc = 'worker_delegationCount_DESC', + WorkerDelegationCountDescNullsFirst = 'worker_delegationCount_DESC_NULLS_FIRST', WorkerDelegationCountDescNullsLast = 'worker_delegationCount_DESC_NULLS_LAST', WorkerDescriptionAsc = 'worker_description_ASC', WorkerDescriptionAscNullsFirst = 'worker_description_ASC_NULLS_FIRST', + WorkerDescriptionAscNullsLast = 'worker_description_ASC_NULLS_LAST', WorkerDescriptionDesc = 'worker_description_DESC', + WorkerDescriptionDescNullsFirst = 'worker_description_DESC_NULLS_FIRST', WorkerDescriptionDescNullsLast = 'worker_description_DESC_NULLS_LAST', WorkerDialOkAsc = 'worker_dialOk_ASC', WorkerDialOkAscNullsFirst = 'worker_dialOk_ASC_NULLS_FIRST', + WorkerDialOkAscNullsLast = 'worker_dialOk_ASC_NULLS_LAST', WorkerDialOkDesc = 'worker_dialOk_DESC', + WorkerDialOkDescNullsFirst = 'worker_dialOk_DESC_NULLS_FIRST', WorkerDialOkDescNullsLast = 'worker_dialOk_DESC_NULLS_LAST', WorkerEmailAsc = 'worker_email_ASC', WorkerEmailAscNullsFirst = 'worker_email_ASC_NULLS_FIRST', + WorkerEmailAscNullsLast = 'worker_email_ASC_NULLS_LAST', WorkerEmailDesc = 'worker_email_DESC', + WorkerEmailDescNullsFirst = 'worker_email_DESC_NULLS_FIRST', WorkerEmailDescNullsLast = 'worker_email_DESC_NULLS_LAST', WorkerIdAsc = 'worker_id_ASC', WorkerIdAscNullsFirst = 'worker_id_ASC_NULLS_FIRST', + WorkerIdAscNullsLast = 'worker_id_ASC_NULLS_LAST', WorkerIdDesc = 'worker_id_DESC', + WorkerIdDescNullsFirst = 'worker_id_DESC_NULLS_FIRST', WorkerIdDescNullsLast = 'worker_id_DESC_NULLS_LAST', WorkerJailedAsc = 'worker_jailed_ASC', WorkerJailedAscNullsFirst = 'worker_jailed_ASC_NULLS_FIRST', + WorkerJailedAscNullsLast = 'worker_jailed_ASC_NULLS_LAST', WorkerJailedDesc = 'worker_jailed_DESC', + WorkerJailedDescNullsFirst = 'worker_jailed_DESC_NULLS_FIRST', WorkerJailedDescNullsLast = 'worker_jailed_DESC_NULLS_LAST', WorkerLockEndAsc = 'worker_lockEnd_ASC', WorkerLockEndAscNullsFirst = 'worker_lockEnd_ASC_NULLS_FIRST', + WorkerLockEndAscNullsLast = 'worker_lockEnd_ASC_NULLS_LAST', WorkerLockEndDesc = 'worker_lockEnd_DESC', + WorkerLockEndDescNullsFirst = 'worker_lockEnd_DESC_NULLS_FIRST', WorkerLockEndDescNullsLast = 'worker_lockEnd_DESC_NULLS_LAST', WorkerLockStartAsc = 'worker_lockStart_ASC', WorkerLockStartAscNullsFirst = 'worker_lockStart_ASC_NULLS_FIRST', + WorkerLockStartAscNullsLast = 'worker_lockStart_ASC_NULLS_LAST', WorkerLockStartDesc = 'worker_lockStart_DESC', + WorkerLockStartDescNullsFirst = 'worker_lockStart_DESC_NULLS_FIRST', WorkerLockStartDescNullsLast = 'worker_lockStart_DESC_NULLS_LAST', WorkerLockedAsc = 'worker_locked_ASC', WorkerLockedAscNullsFirst = 'worker_locked_ASC_NULLS_FIRST', + WorkerLockedAscNullsLast = 'worker_locked_ASC_NULLS_LAST', WorkerLockedDesc = 'worker_locked_DESC', + WorkerLockedDescNullsFirst = 'worker_locked_DESC_NULLS_FIRST', WorkerLockedDescNullsLast = 'worker_locked_DESC_NULLS_LAST', WorkerNameAsc = 'worker_name_ASC', WorkerNameAscNullsFirst = 'worker_name_ASC_NULLS_FIRST', + WorkerNameAscNullsLast = 'worker_name_ASC_NULLS_LAST', WorkerNameDesc = 'worker_name_DESC', + WorkerNameDescNullsFirst = 'worker_name_DESC_NULLS_FIRST', WorkerNameDescNullsLast = 'worker_name_DESC_NULLS_LAST', WorkerOnlineAsc = 'worker_online_ASC', WorkerOnlineAscNullsFirst = 'worker_online_ASC_NULLS_FIRST', + WorkerOnlineAscNullsLast = 'worker_online_ASC_NULLS_LAST', WorkerOnlineDesc = 'worker_online_DESC', + WorkerOnlineDescNullsFirst = 'worker_online_DESC_NULLS_FIRST', WorkerOnlineDescNullsLast = 'worker_online_DESC_NULLS_LAST', WorkerPeerIdAsc = 'worker_peerId_ASC', WorkerPeerIdAscNullsFirst = 'worker_peerId_ASC_NULLS_FIRST', + WorkerPeerIdAscNullsLast = 'worker_peerId_ASC_NULLS_LAST', WorkerPeerIdDesc = 'worker_peerId_DESC', + WorkerPeerIdDescNullsFirst = 'worker_peerId_DESC_NULLS_FIRST', WorkerPeerIdDescNullsLast = 'worker_peerId_DESC_NULLS_LAST', WorkerQueries24HoursAsc = 'worker_queries24Hours_ASC', WorkerQueries24HoursAscNullsFirst = 'worker_queries24Hours_ASC_NULLS_FIRST', + WorkerQueries24HoursAscNullsLast = 'worker_queries24Hours_ASC_NULLS_LAST', WorkerQueries24HoursDesc = 'worker_queries24Hours_DESC', + WorkerQueries24HoursDescNullsFirst = 'worker_queries24Hours_DESC_NULLS_FIRST', WorkerQueries24HoursDescNullsLast = 'worker_queries24Hours_DESC_NULLS_LAST', WorkerQueries90DaysAsc = 'worker_queries90Days_ASC', WorkerQueries90DaysAscNullsFirst = 'worker_queries90Days_ASC_NULLS_FIRST', + WorkerQueries90DaysAscNullsLast = 'worker_queries90Days_ASC_NULLS_LAST', WorkerQueries90DaysDesc = 'worker_queries90Days_DESC', + WorkerQueries90DaysDescNullsFirst = 'worker_queries90Days_DESC_NULLS_FIRST', WorkerQueries90DaysDescNullsLast = 'worker_queries90Days_DESC_NULLS_LAST', WorkerScannedData24HoursAsc = 'worker_scannedData24Hours_ASC', WorkerScannedData24HoursAscNullsFirst = 'worker_scannedData24Hours_ASC_NULLS_FIRST', + WorkerScannedData24HoursAscNullsLast = 'worker_scannedData24Hours_ASC_NULLS_LAST', WorkerScannedData24HoursDesc = 'worker_scannedData24Hours_DESC', + WorkerScannedData24HoursDescNullsFirst = 'worker_scannedData24Hours_DESC_NULLS_FIRST', WorkerScannedData24HoursDescNullsLast = 'worker_scannedData24Hours_DESC_NULLS_LAST', WorkerScannedData90DaysAsc = 'worker_scannedData90Days_ASC', WorkerScannedData90DaysAscNullsFirst = 'worker_scannedData90Days_ASC_NULLS_FIRST', + WorkerScannedData90DaysAscNullsLast = 'worker_scannedData90Days_ASC_NULLS_LAST', WorkerScannedData90DaysDesc = 'worker_scannedData90Days_DESC', + WorkerScannedData90DaysDescNullsFirst = 'worker_scannedData90Days_DESC_NULLS_FIRST', WorkerScannedData90DaysDescNullsLast = 'worker_scannedData90Days_DESC_NULLS_LAST', WorkerServedData24HoursAsc = 'worker_servedData24Hours_ASC', WorkerServedData24HoursAscNullsFirst = 'worker_servedData24Hours_ASC_NULLS_FIRST', + WorkerServedData24HoursAscNullsLast = 'worker_servedData24Hours_ASC_NULLS_LAST', WorkerServedData24HoursDesc = 'worker_servedData24Hours_DESC', + WorkerServedData24HoursDescNullsFirst = 'worker_servedData24Hours_DESC_NULLS_FIRST', WorkerServedData24HoursDescNullsLast = 'worker_servedData24Hours_DESC_NULLS_LAST', WorkerServedData90DaysAsc = 'worker_servedData90Days_ASC', WorkerServedData90DaysAscNullsFirst = 'worker_servedData90Days_ASC_NULLS_FIRST', + WorkerServedData90DaysAscNullsLast = 'worker_servedData90Days_ASC_NULLS_LAST', WorkerServedData90DaysDesc = 'worker_servedData90Days_DESC', + WorkerServedData90DaysDescNullsFirst = 'worker_servedData90Days_DESC_NULLS_FIRST', WorkerServedData90DaysDescNullsLast = 'worker_servedData90Days_DESC_NULLS_LAST', WorkerStakerAprAsc = 'worker_stakerApr_ASC', WorkerStakerAprAscNullsFirst = 'worker_stakerApr_ASC_NULLS_FIRST', + WorkerStakerAprAscNullsLast = 'worker_stakerApr_ASC_NULLS_LAST', WorkerStakerAprDesc = 'worker_stakerApr_DESC', + WorkerStakerAprDescNullsFirst = 'worker_stakerApr_DESC_NULLS_FIRST', WorkerStakerAprDescNullsLast = 'worker_stakerApr_DESC_NULLS_LAST', WorkerStatusAsc = 'worker_status_ASC', WorkerStatusAscNullsFirst = 'worker_status_ASC_NULLS_FIRST', + WorkerStatusAscNullsLast = 'worker_status_ASC_NULLS_LAST', WorkerStatusDesc = 'worker_status_DESC', + WorkerStatusDescNullsFirst = 'worker_status_DESC_NULLS_FIRST', WorkerStatusDescNullsLast = 'worker_status_DESC_NULLS_LAST', WorkerStoredDataAsc = 'worker_storedData_ASC', WorkerStoredDataAscNullsFirst = 'worker_storedData_ASC_NULLS_FIRST', + WorkerStoredDataAscNullsLast = 'worker_storedData_ASC_NULLS_LAST', WorkerStoredDataDesc = 'worker_storedData_DESC', + WorkerStoredDataDescNullsFirst = 'worker_storedData_DESC_NULLS_FIRST', WorkerStoredDataDescNullsLast = 'worker_storedData_DESC_NULLS_LAST', WorkerTotalDelegationAsc = 'worker_totalDelegation_ASC', WorkerTotalDelegationAscNullsFirst = 'worker_totalDelegation_ASC_NULLS_FIRST', + WorkerTotalDelegationAscNullsLast = 'worker_totalDelegation_ASC_NULLS_LAST', WorkerTotalDelegationDesc = 'worker_totalDelegation_DESC', + WorkerTotalDelegationDescNullsFirst = 'worker_totalDelegation_DESC_NULLS_FIRST', WorkerTotalDelegationDescNullsLast = 'worker_totalDelegation_DESC_NULLS_LAST', WorkerUptime24HoursAsc = 'worker_uptime24Hours_ASC', WorkerUptime24HoursAscNullsFirst = 'worker_uptime24Hours_ASC_NULLS_FIRST', + WorkerUptime24HoursAscNullsLast = 'worker_uptime24Hours_ASC_NULLS_LAST', WorkerUptime24HoursDesc = 'worker_uptime24Hours_DESC', + WorkerUptime24HoursDescNullsFirst = 'worker_uptime24Hours_DESC_NULLS_FIRST', WorkerUptime24HoursDescNullsLast = 'worker_uptime24Hours_DESC_NULLS_LAST', WorkerUptime90DaysAsc = 'worker_uptime90Days_ASC', WorkerUptime90DaysAscNullsFirst = 'worker_uptime90Days_ASC_NULLS_FIRST', + WorkerUptime90DaysAscNullsLast = 'worker_uptime90Days_ASC_NULLS_LAST', WorkerUptime90DaysDesc = 'worker_uptime90Days_DESC', + WorkerUptime90DaysDescNullsFirst = 'worker_uptime90Days_DESC_NULLS_FIRST', WorkerUptime90DaysDescNullsLast = 'worker_uptime90Days_DESC_NULLS_LAST', WorkerVersionAsc = 'worker_version_ASC', WorkerVersionAscNullsFirst = 'worker_version_ASC_NULLS_FIRST', + WorkerVersionAscNullsLast = 'worker_version_ASC_NULLS_LAST', WorkerVersionDesc = 'worker_version_DESC', + WorkerVersionDescNullsFirst = 'worker_version_DESC_NULLS_FIRST', WorkerVersionDescNullsLast = 'worker_version_DESC_NULLS_LAST', WorkerWebsiteAsc = 'worker_website_ASC', WorkerWebsiteAscNullsFirst = 'worker_website_ASC_NULLS_FIRST', + WorkerWebsiteAscNullsLast = 'worker_website_ASC_NULLS_LAST', WorkerWebsiteDesc = 'worker_website_DESC', + WorkerWebsiteDescNullsFirst = 'worker_website_DESC_NULLS_FIRST', WorkerWebsiteDescNullsLast = 'worker_website_DESC_NULLS_LAST', } @@ -3481,167 +4077,249 @@ export type WorkerSnapshotEdge = { export enum WorkerSnapshotOrderByInput { EpochEndAsc = 'epoch_end_ASC', EpochEndAscNullsFirst = 'epoch_end_ASC_NULLS_FIRST', + EpochEndAscNullsLast = 'epoch_end_ASC_NULLS_LAST', EpochEndDesc = 'epoch_end_DESC', + EpochEndDescNullsFirst = 'epoch_end_DESC_NULLS_FIRST', EpochEndDescNullsLast = 'epoch_end_DESC_NULLS_LAST', EpochEndedAtAsc = 'epoch_endedAt_ASC', EpochEndedAtAscNullsFirst = 'epoch_endedAt_ASC_NULLS_FIRST', + EpochEndedAtAscNullsLast = 'epoch_endedAt_ASC_NULLS_LAST', EpochEndedAtDesc = 'epoch_endedAt_DESC', + EpochEndedAtDescNullsFirst = 'epoch_endedAt_DESC_NULLS_FIRST', EpochEndedAtDescNullsLast = 'epoch_endedAt_DESC_NULLS_LAST', EpochIdAsc = 'epoch_id_ASC', EpochIdAscNullsFirst = 'epoch_id_ASC_NULLS_FIRST', + EpochIdAscNullsLast = 'epoch_id_ASC_NULLS_LAST', EpochIdDesc = 'epoch_id_DESC', + EpochIdDescNullsFirst = 'epoch_id_DESC_NULLS_FIRST', EpochIdDescNullsLast = 'epoch_id_DESC_NULLS_LAST', EpochNumberAsc = 'epoch_number_ASC', EpochNumberAscNullsFirst = 'epoch_number_ASC_NULLS_FIRST', + EpochNumberAscNullsLast = 'epoch_number_ASC_NULLS_LAST', EpochNumberDesc = 'epoch_number_DESC', + EpochNumberDescNullsFirst = 'epoch_number_DESC_NULLS_FIRST', EpochNumberDescNullsLast = 'epoch_number_DESC_NULLS_LAST', EpochStartAsc = 'epoch_start_ASC', EpochStartAscNullsFirst = 'epoch_start_ASC_NULLS_FIRST', + EpochStartAscNullsLast = 'epoch_start_ASC_NULLS_LAST', EpochStartDesc = 'epoch_start_DESC', + EpochStartDescNullsFirst = 'epoch_start_DESC_NULLS_FIRST', EpochStartDescNullsLast = 'epoch_start_DESC_NULLS_LAST', EpochStartedAtAsc = 'epoch_startedAt_ASC', EpochStartedAtAscNullsFirst = 'epoch_startedAt_ASC_NULLS_FIRST', + EpochStartedAtAscNullsLast = 'epoch_startedAt_ASC_NULLS_LAST', EpochStartedAtDesc = 'epoch_startedAt_DESC', + EpochStartedAtDescNullsFirst = 'epoch_startedAt_DESC_NULLS_FIRST', EpochStartedAtDescNullsLast = 'epoch_startedAt_DESC_NULLS_LAST', EpochStatusAsc = 'epoch_status_ASC', EpochStatusAscNullsFirst = 'epoch_status_ASC_NULLS_FIRST', + EpochStatusAscNullsLast = 'epoch_status_ASC_NULLS_LAST', EpochStatusDesc = 'epoch_status_DESC', + EpochStatusDescNullsFirst = 'epoch_status_DESC_NULLS_FIRST', EpochStatusDescNullsLast = 'epoch_status_DESC_NULLS_LAST', IdAsc = 'id_ASC', IdAscNullsFirst = 'id_ASC_NULLS_FIRST', + IdAscNullsLast = 'id_ASC_NULLS_LAST', IdDesc = 'id_DESC', + IdDescNullsFirst = 'id_DESC_NULLS_FIRST', IdDescNullsLast = 'id_DESC_NULLS_LAST', TimestampAsc = 'timestamp_ASC', TimestampAscNullsFirst = 'timestamp_ASC_NULLS_FIRST', + TimestampAscNullsLast = 'timestamp_ASC_NULLS_LAST', TimestampDesc = 'timestamp_DESC', + TimestampDescNullsFirst = 'timestamp_DESC_NULLS_FIRST', TimestampDescNullsLast = 'timestamp_DESC_NULLS_LAST', UptimeAsc = 'uptime_ASC', UptimeAscNullsFirst = 'uptime_ASC_NULLS_FIRST', + UptimeAscNullsLast = 'uptime_ASC_NULLS_LAST', UptimeDesc = 'uptime_DESC', + UptimeDescNullsFirst = 'uptime_DESC_NULLS_FIRST', UptimeDescNullsLast = 'uptime_DESC_NULLS_LAST', WorkerAprAsc = 'worker_apr_ASC', WorkerAprAscNullsFirst = 'worker_apr_ASC_NULLS_FIRST', + WorkerAprAscNullsLast = 'worker_apr_ASC_NULLS_LAST', WorkerAprDesc = 'worker_apr_DESC', + WorkerAprDescNullsFirst = 'worker_apr_DESC_NULLS_FIRST', WorkerAprDescNullsLast = 'worker_apr_DESC_NULLS_LAST', WorkerBondAsc = 'worker_bond_ASC', WorkerBondAscNullsFirst = 'worker_bond_ASC_NULLS_FIRST', + WorkerBondAscNullsLast = 'worker_bond_ASC_NULLS_LAST', WorkerBondDesc = 'worker_bond_DESC', + WorkerBondDescNullsFirst = 'worker_bond_DESC_NULLS_FIRST', WorkerBondDescNullsLast = 'worker_bond_DESC_NULLS_LAST', WorkerClaimableRewardAsc = 'worker_claimableReward_ASC', WorkerClaimableRewardAscNullsFirst = 'worker_claimableReward_ASC_NULLS_FIRST', + WorkerClaimableRewardAscNullsLast = 'worker_claimableReward_ASC_NULLS_LAST', WorkerClaimableRewardDesc = 'worker_claimableReward_DESC', + WorkerClaimableRewardDescNullsFirst = 'worker_claimableReward_DESC_NULLS_FIRST', WorkerClaimableRewardDescNullsLast = 'worker_claimableReward_DESC_NULLS_LAST', WorkerClaimedRewardAsc = 'worker_claimedReward_ASC', WorkerClaimedRewardAscNullsFirst = 'worker_claimedReward_ASC_NULLS_FIRST', + WorkerClaimedRewardAscNullsLast = 'worker_claimedReward_ASC_NULLS_LAST', WorkerClaimedRewardDesc = 'worker_claimedReward_DESC', + WorkerClaimedRewardDescNullsFirst = 'worker_claimedReward_DESC_NULLS_FIRST', WorkerClaimedRewardDescNullsLast = 'worker_claimedReward_DESC_NULLS_LAST', WorkerCreatedAtAsc = 'worker_createdAt_ASC', WorkerCreatedAtAscNullsFirst = 'worker_createdAt_ASC_NULLS_FIRST', + WorkerCreatedAtAscNullsLast = 'worker_createdAt_ASC_NULLS_LAST', WorkerCreatedAtDesc = 'worker_createdAt_DESC', + WorkerCreatedAtDescNullsFirst = 'worker_createdAt_DESC_NULLS_FIRST', WorkerCreatedAtDescNullsLast = 'worker_createdAt_DESC_NULLS_LAST', WorkerDelegationCountAsc = 'worker_delegationCount_ASC', WorkerDelegationCountAscNullsFirst = 'worker_delegationCount_ASC_NULLS_FIRST', + WorkerDelegationCountAscNullsLast = 'worker_delegationCount_ASC_NULLS_LAST', WorkerDelegationCountDesc = 'worker_delegationCount_DESC', + WorkerDelegationCountDescNullsFirst = 'worker_delegationCount_DESC_NULLS_FIRST', WorkerDelegationCountDescNullsLast = 'worker_delegationCount_DESC_NULLS_LAST', WorkerDescriptionAsc = 'worker_description_ASC', WorkerDescriptionAscNullsFirst = 'worker_description_ASC_NULLS_FIRST', + WorkerDescriptionAscNullsLast = 'worker_description_ASC_NULLS_LAST', WorkerDescriptionDesc = 'worker_description_DESC', + WorkerDescriptionDescNullsFirst = 'worker_description_DESC_NULLS_FIRST', WorkerDescriptionDescNullsLast = 'worker_description_DESC_NULLS_LAST', WorkerDialOkAsc = 'worker_dialOk_ASC', WorkerDialOkAscNullsFirst = 'worker_dialOk_ASC_NULLS_FIRST', + WorkerDialOkAscNullsLast = 'worker_dialOk_ASC_NULLS_LAST', WorkerDialOkDesc = 'worker_dialOk_DESC', + WorkerDialOkDescNullsFirst = 'worker_dialOk_DESC_NULLS_FIRST', WorkerDialOkDescNullsLast = 'worker_dialOk_DESC_NULLS_LAST', WorkerEmailAsc = 'worker_email_ASC', WorkerEmailAscNullsFirst = 'worker_email_ASC_NULLS_FIRST', + WorkerEmailAscNullsLast = 'worker_email_ASC_NULLS_LAST', WorkerEmailDesc = 'worker_email_DESC', + WorkerEmailDescNullsFirst = 'worker_email_DESC_NULLS_FIRST', WorkerEmailDescNullsLast = 'worker_email_DESC_NULLS_LAST', WorkerIdAsc = 'worker_id_ASC', WorkerIdAscNullsFirst = 'worker_id_ASC_NULLS_FIRST', + WorkerIdAscNullsLast = 'worker_id_ASC_NULLS_LAST', WorkerIdDesc = 'worker_id_DESC', + WorkerIdDescNullsFirst = 'worker_id_DESC_NULLS_FIRST', WorkerIdDescNullsLast = 'worker_id_DESC_NULLS_LAST', WorkerJailedAsc = 'worker_jailed_ASC', WorkerJailedAscNullsFirst = 'worker_jailed_ASC_NULLS_FIRST', + WorkerJailedAscNullsLast = 'worker_jailed_ASC_NULLS_LAST', WorkerJailedDesc = 'worker_jailed_DESC', + WorkerJailedDescNullsFirst = 'worker_jailed_DESC_NULLS_FIRST', WorkerJailedDescNullsLast = 'worker_jailed_DESC_NULLS_LAST', WorkerLockEndAsc = 'worker_lockEnd_ASC', WorkerLockEndAscNullsFirst = 'worker_lockEnd_ASC_NULLS_FIRST', + WorkerLockEndAscNullsLast = 'worker_lockEnd_ASC_NULLS_LAST', WorkerLockEndDesc = 'worker_lockEnd_DESC', + WorkerLockEndDescNullsFirst = 'worker_lockEnd_DESC_NULLS_FIRST', WorkerLockEndDescNullsLast = 'worker_lockEnd_DESC_NULLS_LAST', WorkerLockStartAsc = 'worker_lockStart_ASC', WorkerLockStartAscNullsFirst = 'worker_lockStart_ASC_NULLS_FIRST', + WorkerLockStartAscNullsLast = 'worker_lockStart_ASC_NULLS_LAST', WorkerLockStartDesc = 'worker_lockStart_DESC', + WorkerLockStartDescNullsFirst = 'worker_lockStart_DESC_NULLS_FIRST', WorkerLockStartDescNullsLast = 'worker_lockStart_DESC_NULLS_LAST', WorkerLockedAsc = 'worker_locked_ASC', WorkerLockedAscNullsFirst = 'worker_locked_ASC_NULLS_FIRST', + WorkerLockedAscNullsLast = 'worker_locked_ASC_NULLS_LAST', WorkerLockedDesc = 'worker_locked_DESC', + WorkerLockedDescNullsFirst = 'worker_locked_DESC_NULLS_FIRST', WorkerLockedDescNullsLast = 'worker_locked_DESC_NULLS_LAST', WorkerNameAsc = 'worker_name_ASC', WorkerNameAscNullsFirst = 'worker_name_ASC_NULLS_FIRST', + WorkerNameAscNullsLast = 'worker_name_ASC_NULLS_LAST', WorkerNameDesc = 'worker_name_DESC', + WorkerNameDescNullsFirst = 'worker_name_DESC_NULLS_FIRST', WorkerNameDescNullsLast = 'worker_name_DESC_NULLS_LAST', WorkerOnlineAsc = 'worker_online_ASC', WorkerOnlineAscNullsFirst = 'worker_online_ASC_NULLS_FIRST', + WorkerOnlineAscNullsLast = 'worker_online_ASC_NULLS_LAST', WorkerOnlineDesc = 'worker_online_DESC', + WorkerOnlineDescNullsFirst = 'worker_online_DESC_NULLS_FIRST', WorkerOnlineDescNullsLast = 'worker_online_DESC_NULLS_LAST', WorkerPeerIdAsc = 'worker_peerId_ASC', WorkerPeerIdAscNullsFirst = 'worker_peerId_ASC_NULLS_FIRST', + WorkerPeerIdAscNullsLast = 'worker_peerId_ASC_NULLS_LAST', WorkerPeerIdDesc = 'worker_peerId_DESC', + WorkerPeerIdDescNullsFirst = 'worker_peerId_DESC_NULLS_FIRST', WorkerPeerIdDescNullsLast = 'worker_peerId_DESC_NULLS_LAST', WorkerQueries24HoursAsc = 'worker_queries24Hours_ASC', WorkerQueries24HoursAscNullsFirst = 'worker_queries24Hours_ASC_NULLS_FIRST', + WorkerQueries24HoursAscNullsLast = 'worker_queries24Hours_ASC_NULLS_LAST', WorkerQueries24HoursDesc = 'worker_queries24Hours_DESC', + WorkerQueries24HoursDescNullsFirst = 'worker_queries24Hours_DESC_NULLS_FIRST', WorkerQueries24HoursDescNullsLast = 'worker_queries24Hours_DESC_NULLS_LAST', WorkerQueries90DaysAsc = 'worker_queries90Days_ASC', WorkerQueries90DaysAscNullsFirst = 'worker_queries90Days_ASC_NULLS_FIRST', + WorkerQueries90DaysAscNullsLast = 'worker_queries90Days_ASC_NULLS_LAST', WorkerQueries90DaysDesc = 'worker_queries90Days_DESC', + WorkerQueries90DaysDescNullsFirst = 'worker_queries90Days_DESC_NULLS_FIRST', WorkerQueries90DaysDescNullsLast = 'worker_queries90Days_DESC_NULLS_LAST', WorkerScannedData24HoursAsc = 'worker_scannedData24Hours_ASC', WorkerScannedData24HoursAscNullsFirst = 'worker_scannedData24Hours_ASC_NULLS_FIRST', + WorkerScannedData24HoursAscNullsLast = 'worker_scannedData24Hours_ASC_NULLS_LAST', WorkerScannedData24HoursDesc = 'worker_scannedData24Hours_DESC', + WorkerScannedData24HoursDescNullsFirst = 'worker_scannedData24Hours_DESC_NULLS_FIRST', WorkerScannedData24HoursDescNullsLast = 'worker_scannedData24Hours_DESC_NULLS_LAST', WorkerScannedData90DaysAsc = 'worker_scannedData90Days_ASC', WorkerScannedData90DaysAscNullsFirst = 'worker_scannedData90Days_ASC_NULLS_FIRST', + WorkerScannedData90DaysAscNullsLast = 'worker_scannedData90Days_ASC_NULLS_LAST', WorkerScannedData90DaysDesc = 'worker_scannedData90Days_DESC', + WorkerScannedData90DaysDescNullsFirst = 'worker_scannedData90Days_DESC_NULLS_FIRST', WorkerScannedData90DaysDescNullsLast = 'worker_scannedData90Days_DESC_NULLS_LAST', WorkerServedData24HoursAsc = 'worker_servedData24Hours_ASC', WorkerServedData24HoursAscNullsFirst = 'worker_servedData24Hours_ASC_NULLS_FIRST', + WorkerServedData24HoursAscNullsLast = 'worker_servedData24Hours_ASC_NULLS_LAST', WorkerServedData24HoursDesc = 'worker_servedData24Hours_DESC', + WorkerServedData24HoursDescNullsFirst = 'worker_servedData24Hours_DESC_NULLS_FIRST', WorkerServedData24HoursDescNullsLast = 'worker_servedData24Hours_DESC_NULLS_LAST', WorkerServedData90DaysAsc = 'worker_servedData90Days_ASC', WorkerServedData90DaysAscNullsFirst = 'worker_servedData90Days_ASC_NULLS_FIRST', + WorkerServedData90DaysAscNullsLast = 'worker_servedData90Days_ASC_NULLS_LAST', WorkerServedData90DaysDesc = 'worker_servedData90Days_DESC', + WorkerServedData90DaysDescNullsFirst = 'worker_servedData90Days_DESC_NULLS_FIRST', WorkerServedData90DaysDescNullsLast = 'worker_servedData90Days_DESC_NULLS_LAST', WorkerStakerAprAsc = 'worker_stakerApr_ASC', WorkerStakerAprAscNullsFirst = 'worker_stakerApr_ASC_NULLS_FIRST', + WorkerStakerAprAscNullsLast = 'worker_stakerApr_ASC_NULLS_LAST', WorkerStakerAprDesc = 'worker_stakerApr_DESC', + WorkerStakerAprDescNullsFirst = 'worker_stakerApr_DESC_NULLS_FIRST', WorkerStakerAprDescNullsLast = 'worker_stakerApr_DESC_NULLS_LAST', WorkerStatusAsc = 'worker_status_ASC', WorkerStatusAscNullsFirst = 'worker_status_ASC_NULLS_FIRST', + WorkerStatusAscNullsLast = 'worker_status_ASC_NULLS_LAST', WorkerStatusDesc = 'worker_status_DESC', + WorkerStatusDescNullsFirst = 'worker_status_DESC_NULLS_FIRST', WorkerStatusDescNullsLast = 'worker_status_DESC_NULLS_LAST', WorkerStoredDataAsc = 'worker_storedData_ASC', WorkerStoredDataAscNullsFirst = 'worker_storedData_ASC_NULLS_FIRST', + WorkerStoredDataAscNullsLast = 'worker_storedData_ASC_NULLS_LAST', WorkerStoredDataDesc = 'worker_storedData_DESC', + WorkerStoredDataDescNullsFirst = 'worker_storedData_DESC_NULLS_FIRST', WorkerStoredDataDescNullsLast = 'worker_storedData_DESC_NULLS_LAST', WorkerTotalDelegationAsc = 'worker_totalDelegation_ASC', WorkerTotalDelegationAscNullsFirst = 'worker_totalDelegation_ASC_NULLS_FIRST', + WorkerTotalDelegationAscNullsLast = 'worker_totalDelegation_ASC_NULLS_LAST', WorkerTotalDelegationDesc = 'worker_totalDelegation_DESC', + WorkerTotalDelegationDescNullsFirst = 'worker_totalDelegation_DESC_NULLS_FIRST', WorkerTotalDelegationDescNullsLast = 'worker_totalDelegation_DESC_NULLS_LAST', WorkerUptime24HoursAsc = 'worker_uptime24Hours_ASC', WorkerUptime24HoursAscNullsFirst = 'worker_uptime24Hours_ASC_NULLS_FIRST', + WorkerUptime24HoursAscNullsLast = 'worker_uptime24Hours_ASC_NULLS_LAST', WorkerUptime24HoursDesc = 'worker_uptime24Hours_DESC', + WorkerUptime24HoursDescNullsFirst = 'worker_uptime24Hours_DESC_NULLS_FIRST', WorkerUptime24HoursDescNullsLast = 'worker_uptime24Hours_DESC_NULLS_LAST', WorkerUptime90DaysAsc = 'worker_uptime90Days_ASC', WorkerUptime90DaysAscNullsFirst = 'worker_uptime90Days_ASC_NULLS_FIRST', + WorkerUptime90DaysAscNullsLast = 'worker_uptime90Days_ASC_NULLS_LAST', WorkerUptime90DaysDesc = 'worker_uptime90Days_DESC', + WorkerUptime90DaysDescNullsFirst = 'worker_uptime90Days_DESC_NULLS_FIRST', WorkerUptime90DaysDescNullsLast = 'worker_uptime90Days_DESC_NULLS_LAST', WorkerVersionAsc = 'worker_version_ASC', WorkerVersionAscNullsFirst = 'worker_version_ASC_NULLS_FIRST', + WorkerVersionAscNullsLast = 'worker_version_ASC_NULLS_LAST', WorkerVersionDesc = 'worker_version_DESC', + WorkerVersionDescNullsFirst = 'worker_version_DESC_NULLS_FIRST', WorkerVersionDescNullsLast = 'worker_version_DESC_NULLS_LAST', WorkerWebsiteAsc = 'worker_website_ASC', WorkerWebsiteAscNullsFirst = 'worker_website_ASC_NULLS_FIRST', + WorkerWebsiteAscNullsLast = 'worker_website_ASC_NULLS_LAST', WorkerWebsiteDesc = 'worker_website_DESC', + WorkerWebsiteDescNullsFirst = 'worker_website_DESC_NULLS_FIRST', WorkerWebsiteDescNullsLast = 'worker_website_DESC_NULLS_LAST', } @@ -3724,147 +4402,219 @@ export type WorkerStatusChangeEdge = { export enum WorkerStatusChangeOrderByInput { BlockNumberAsc = 'blockNumber_ASC', BlockNumberAscNullsFirst = 'blockNumber_ASC_NULLS_FIRST', + BlockNumberAscNullsLast = 'blockNumber_ASC_NULLS_LAST', BlockNumberDesc = 'blockNumber_DESC', + BlockNumberDescNullsFirst = 'blockNumber_DESC_NULLS_FIRST', BlockNumberDescNullsLast = 'blockNumber_DESC_NULLS_LAST', IdAsc = 'id_ASC', IdAscNullsFirst = 'id_ASC_NULLS_FIRST', + IdAscNullsLast = 'id_ASC_NULLS_LAST', IdDesc = 'id_DESC', + IdDescNullsFirst = 'id_DESC_NULLS_FIRST', IdDescNullsLast = 'id_DESC_NULLS_LAST', PendingAsc = 'pending_ASC', PendingAscNullsFirst = 'pending_ASC_NULLS_FIRST', + PendingAscNullsLast = 'pending_ASC_NULLS_LAST', PendingDesc = 'pending_DESC', + PendingDescNullsFirst = 'pending_DESC_NULLS_FIRST', PendingDescNullsLast = 'pending_DESC_NULLS_LAST', StatusAsc = 'status_ASC', StatusAscNullsFirst = 'status_ASC_NULLS_FIRST', + StatusAscNullsLast = 'status_ASC_NULLS_LAST', StatusDesc = 'status_DESC', + StatusDescNullsFirst = 'status_DESC_NULLS_FIRST', StatusDescNullsLast = 'status_DESC_NULLS_LAST', TimestampAsc = 'timestamp_ASC', TimestampAscNullsFirst = 'timestamp_ASC_NULLS_FIRST', + TimestampAscNullsLast = 'timestamp_ASC_NULLS_LAST', TimestampDesc = 'timestamp_DESC', + TimestampDescNullsFirst = 'timestamp_DESC_NULLS_FIRST', TimestampDescNullsLast = 'timestamp_DESC_NULLS_LAST', WorkerAprAsc = 'worker_apr_ASC', WorkerAprAscNullsFirst = 'worker_apr_ASC_NULLS_FIRST', + WorkerAprAscNullsLast = 'worker_apr_ASC_NULLS_LAST', WorkerAprDesc = 'worker_apr_DESC', + WorkerAprDescNullsFirst = 'worker_apr_DESC_NULLS_FIRST', WorkerAprDescNullsLast = 'worker_apr_DESC_NULLS_LAST', WorkerBondAsc = 'worker_bond_ASC', WorkerBondAscNullsFirst = 'worker_bond_ASC_NULLS_FIRST', + WorkerBondAscNullsLast = 'worker_bond_ASC_NULLS_LAST', WorkerBondDesc = 'worker_bond_DESC', + WorkerBondDescNullsFirst = 'worker_bond_DESC_NULLS_FIRST', WorkerBondDescNullsLast = 'worker_bond_DESC_NULLS_LAST', WorkerClaimableRewardAsc = 'worker_claimableReward_ASC', WorkerClaimableRewardAscNullsFirst = 'worker_claimableReward_ASC_NULLS_FIRST', + WorkerClaimableRewardAscNullsLast = 'worker_claimableReward_ASC_NULLS_LAST', WorkerClaimableRewardDesc = 'worker_claimableReward_DESC', + WorkerClaimableRewardDescNullsFirst = 'worker_claimableReward_DESC_NULLS_FIRST', WorkerClaimableRewardDescNullsLast = 'worker_claimableReward_DESC_NULLS_LAST', WorkerClaimedRewardAsc = 'worker_claimedReward_ASC', WorkerClaimedRewardAscNullsFirst = 'worker_claimedReward_ASC_NULLS_FIRST', + WorkerClaimedRewardAscNullsLast = 'worker_claimedReward_ASC_NULLS_LAST', WorkerClaimedRewardDesc = 'worker_claimedReward_DESC', + WorkerClaimedRewardDescNullsFirst = 'worker_claimedReward_DESC_NULLS_FIRST', WorkerClaimedRewardDescNullsLast = 'worker_claimedReward_DESC_NULLS_LAST', WorkerCreatedAtAsc = 'worker_createdAt_ASC', WorkerCreatedAtAscNullsFirst = 'worker_createdAt_ASC_NULLS_FIRST', + WorkerCreatedAtAscNullsLast = 'worker_createdAt_ASC_NULLS_LAST', WorkerCreatedAtDesc = 'worker_createdAt_DESC', + WorkerCreatedAtDescNullsFirst = 'worker_createdAt_DESC_NULLS_FIRST', WorkerCreatedAtDescNullsLast = 'worker_createdAt_DESC_NULLS_LAST', WorkerDelegationCountAsc = 'worker_delegationCount_ASC', WorkerDelegationCountAscNullsFirst = 'worker_delegationCount_ASC_NULLS_FIRST', + WorkerDelegationCountAscNullsLast = 'worker_delegationCount_ASC_NULLS_LAST', WorkerDelegationCountDesc = 'worker_delegationCount_DESC', + WorkerDelegationCountDescNullsFirst = 'worker_delegationCount_DESC_NULLS_FIRST', WorkerDelegationCountDescNullsLast = 'worker_delegationCount_DESC_NULLS_LAST', WorkerDescriptionAsc = 'worker_description_ASC', WorkerDescriptionAscNullsFirst = 'worker_description_ASC_NULLS_FIRST', + WorkerDescriptionAscNullsLast = 'worker_description_ASC_NULLS_LAST', WorkerDescriptionDesc = 'worker_description_DESC', + WorkerDescriptionDescNullsFirst = 'worker_description_DESC_NULLS_FIRST', WorkerDescriptionDescNullsLast = 'worker_description_DESC_NULLS_LAST', WorkerDialOkAsc = 'worker_dialOk_ASC', WorkerDialOkAscNullsFirst = 'worker_dialOk_ASC_NULLS_FIRST', + WorkerDialOkAscNullsLast = 'worker_dialOk_ASC_NULLS_LAST', WorkerDialOkDesc = 'worker_dialOk_DESC', + WorkerDialOkDescNullsFirst = 'worker_dialOk_DESC_NULLS_FIRST', WorkerDialOkDescNullsLast = 'worker_dialOk_DESC_NULLS_LAST', WorkerEmailAsc = 'worker_email_ASC', WorkerEmailAscNullsFirst = 'worker_email_ASC_NULLS_FIRST', + WorkerEmailAscNullsLast = 'worker_email_ASC_NULLS_LAST', WorkerEmailDesc = 'worker_email_DESC', + WorkerEmailDescNullsFirst = 'worker_email_DESC_NULLS_FIRST', WorkerEmailDescNullsLast = 'worker_email_DESC_NULLS_LAST', WorkerIdAsc = 'worker_id_ASC', WorkerIdAscNullsFirst = 'worker_id_ASC_NULLS_FIRST', + WorkerIdAscNullsLast = 'worker_id_ASC_NULLS_LAST', WorkerIdDesc = 'worker_id_DESC', + WorkerIdDescNullsFirst = 'worker_id_DESC_NULLS_FIRST', WorkerIdDescNullsLast = 'worker_id_DESC_NULLS_LAST', WorkerJailedAsc = 'worker_jailed_ASC', WorkerJailedAscNullsFirst = 'worker_jailed_ASC_NULLS_FIRST', + WorkerJailedAscNullsLast = 'worker_jailed_ASC_NULLS_LAST', WorkerJailedDesc = 'worker_jailed_DESC', + WorkerJailedDescNullsFirst = 'worker_jailed_DESC_NULLS_FIRST', WorkerJailedDescNullsLast = 'worker_jailed_DESC_NULLS_LAST', WorkerLockEndAsc = 'worker_lockEnd_ASC', WorkerLockEndAscNullsFirst = 'worker_lockEnd_ASC_NULLS_FIRST', + WorkerLockEndAscNullsLast = 'worker_lockEnd_ASC_NULLS_LAST', WorkerLockEndDesc = 'worker_lockEnd_DESC', + WorkerLockEndDescNullsFirst = 'worker_lockEnd_DESC_NULLS_FIRST', WorkerLockEndDescNullsLast = 'worker_lockEnd_DESC_NULLS_LAST', WorkerLockStartAsc = 'worker_lockStart_ASC', WorkerLockStartAscNullsFirst = 'worker_lockStart_ASC_NULLS_FIRST', + WorkerLockStartAscNullsLast = 'worker_lockStart_ASC_NULLS_LAST', WorkerLockStartDesc = 'worker_lockStart_DESC', + WorkerLockStartDescNullsFirst = 'worker_lockStart_DESC_NULLS_FIRST', WorkerLockStartDescNullsLast = 'worker_lockStart_DESC_NULLS_LAST', WorkerLockedAsc = 'worker_locked_ASC', WorkerLockedAscNullsFirst = 'worker_locked_ASC_NULLS_FIRST', + WorkerLockedAscNullsLast = 'worker_locked_ASC_NULLS_LAST', WorkerLockedDesc = 'worker_locked_DESC', + WorkerLockedDescNullsFirst = 'worker_locked_DESC_NULLS_FIRST', WorkerLockedDescNullsLast = 'worker_locked_DESC_NULLS_LAST', WorkerNameAsc = 'worker_name_ASC', WorkerNameAscNullsFirst = 'worker_name_ASC_NULLS_FIRST', + WorkerNameAscNullsLast = 'worker_name_ASC_NULLS_LAST', WorkerNameDesc = 'worker_name_DESC', + WorkerNameDescNullsFirst = 'worker_name_DESC_NULLS_FIRST', WorkerNameDescNullsLast = 'worker_name_DESC_NULLS_LAST', WorkerOnlineAsc = 'worker_online_ASC', WorkerOnlineAscNullsFirst = 'worker_online_ASC_NULLS_FIRST', + WorkerOnlineAscNullsLast = 'worker_online_ASC_NULLS_LAST', WorkerOnlineDesc = 'worker_online_DESC', + WorkerOnlineDescNullsFirst = 'worker_online_DESC_NULLS_FIRST', WorkerOnlineDescNullsLast = 'worker_online_DESC_NULLS_LAST', WorkerPeerIdAsc = 'worker_peerId_ASC', WorkerPeerIdAscNullsFirst = 'worker_peerId_ASC_NULLS_FIRST', + WorkerPeerIdAscNullsLast = 'worker_peerId_ASC_NULLS_LAST', WorkerPeerIdDesc = 'worker_peerId_DESC', + WorkerPeerIdDescNullsFirst = 'worker_peerId_DESC_NULLS_FIRST', WorkerPeerIdDescNullsLast = 'worker_peerId_DESC_NULLS_LAST', WorkerQueries24HoursAsc = 'worker_queries24Hours_ASC', WorkerQueries24HoursAscNullsFirst = 'worker_queries24Hours_ASC_NULLS_FIRST', + WorkerQueries24HoursAscNullsLast = 'worker_queries24Hours_ASC_NULLS_LAST', WorkerQueries24HoursDesc = 'worker_queries24Hours_DESC', + WorkerQueries24HoursDescNullsFirst = 'worker_queries24Hours_DESC_NULLS_FIRST', WorkerQueries24HoursDescNullsLast = 'worker_queries24Hours_DESC_NULLS_LAST', WorkerQueries90DaysAsc = 'worker_queries90Days_ASC', WorkerQueries90DaysAscNullsFirst = 'worker_queries90Days_ASC_NULLS_FIRST', + WorkerQueries90DaysAscNullsLast = 'worker_queries90Days_ASC_NULLS_LAST', WorkerQueries90DaysDesc = 'worker_queries90Days_DESC', + WorkerQueries90DaysDescNullsFirst = 'worker_queries90Days_DESC_NULLS_FIRST', WorkerQueries90DaysDescNullsLast = 'worker_queries90Days_DESC_NULLS_LAST', WorkerScannedData24HoursAsc = 'worker_scannedData24Hours_ASC', WorkerScannedData24HoursAscNullsFirst = 'worker_scannedData24Hours_ASC_NULLS_FIRST', + WorkerScannedData24HoursAscNullsLast = 'worker_scannedData24Hours_ASC_NULLS_LAST', WorkerScannedData24HoursDesc = 'worker_scannedData24Hours_DESC', + WorkerScannedData24HoursDescNullsFirst = 'worker_scannedData24Hours_DESC_NULLS_FIRST', WorkerScannedData24HoursDescNullsLast = 'worker_scannedData24Hours_DESC_NULLS_LAST', WorkerScannedData90DaysAsc = 'worker_scannedData90Days_ASC', WorkerScannedData90DaysAscNullsFirst = 'worker_scannedData90Days_ASC_NULLS_FIRST', + WorkerScannedData90DaysAscNullsLast = 'worker_scannedData90Days_ASC_NULLS_LAST', WorkerScannedData90DaysDesc = 'worker_scannedData90Days_DESC', + WorkerScannedData90DaysDescNullsFirst = 'worker_scannedData90Days_DESC_NULLS_FIRST', WorkerScannedData90DaysDescNullsLast = 'worker_scannedData90Days_DESC_NULLS_LAST', WorkerServedData24HoursAsc = 'worker_servedData24Hours_ASC', WorkerServedData24HoursAscNullsFirst = 'worker_servedData24Hours_ASC_NULLS_FIRST', + WorkerServedData24HoursAscNullsLast = 'worker_servedData24Hours_ASC_NULLS_LAST', WorkerServedData24HoursDesc = 'worker_servedData24Hours_DESC', + WorkerServedData24HoursDescNullsFirst = 'worker_servedData24Hours_DESC_NULLS_FIRST', WorkerServedData24HoursDescNullsLast = 'worker_servedData24Hours_DESC_NULLS_LAST', WorkerServedData90DaysAsc = 'worker_servedData90Days_ASC', WorkerServedData90DaysAscNullsFirst = 'worker_servedData90Days_ASC_NULLS_FIRST', + WorkerServedData90DaysAscNullsLast = 'worker_servedData90Days_ASC_NULLS_LAST', WorkerServedData90DaysDesc = 'worker_servedData90Days_DESC', + WorkerServedData90DaysDescNullsFirst = 'worker_servedData90Days_DESC_NULLS_FIRST', WorkerServedData90DaysDescNullsLast = 'worker_servedData90Days_DESC_NULLS_LAST', WorkerStakerAprAsc = 'worker_stakerApr_ASC', WorkerStakerAprAscNullsFirst = 'worker_stakerApr_ASC_NULLS_FIRST', + WorkerStakerAprAscNullsLast = 'worker_stakerApr_ASC_NULLS_LAST', WorkerStakerAprDesc = 'worker_stakerApr_DESC', + WorkerStakerAprDescNullsFirst = 'worker_stakerApr_DESC_NULLS_FIRST', WorkerStakerAprDescNullsLast = 'worker_stakerApr_DESC_NULLS_LAST', WorkerStatusAsc = 'worker_status_ASC', WorkerStatusAscNullsFirst = 'worker_status_ASC_NULLS_FIRST', + WorkerStatusAscNullsLast = 'worker_status_ASC_NULLS_LAST', WorkerStatusDesc = 'worker_status_DESC', + WorkerStatusDescNullsFirst = 'worker_status_DESC_NULLS_FIRST', WorkerStatusDescNullsLast = 'worker_status_DESC_NULLS_LAST', WorkerStoredDataAsc = 'worker_storedData_ASC', WorkerStoredDataAscNullsFirst = 'worker_storedData_ASC_NULLS_FIRST', + WorkerStoredDataAscNullsLast = 'worker_storedData_ASC_NULLS_LAST', WorkerStoredDataDesc = 'worker_storedData_DESC', + WorkerStoredDataDescNullsFirst = 'worker_storedData_DESC_NULLS_FIRST', WorkerStoredDataDescNullsLast = 'worker_storedData_DESC_NULLS_LAST', WorkerTotalDelegationAsc = 'worker_totalDelegation_ASC', WorkerTotalDelegationAscNullsFirst = 'worker_totalDelegation_ASC_NULLS_FIRST', + WorkerTotalDelegationAscNullsLast = 'worker_totalDelegation_ASC_NULLS_LAST', WorkerTotalDelegationDesc = 'worker_totalDelegation_DESC', + WorkerTotalDelegationDescNullsFirst = 'worker_totalDelegation_DESC_NULLS_FIRST', WorkerTotalDelegationDescNullsLast = 'worker_totalDelegation_DESC_NULLS_LAST', WorkerUptime24HoursAsc = 'worker_uptime24Hours_ASC', WorkerUptime24HoursAscNullsFirst = 'worker_uptime24Hours_ASC_NULLS_FIRST', + WorkerUptime24HoursAscNullsLast = 'worker_uptime24Hours_ASC_NULLS_LAST', WorkerUptime24HoursDesc = 'worker_uptime24Hours_DESC', + WorkerUptime24HoursDescNullsFirst = 'worker_uptime24Hours_DESC_NULLS_FIRST', WorkerUptime24HoursDescNullsLast = 'worker_uptime24Hours_DESC_NULLS_LAST', WorkerUptime90DaysAsc = 'worker_uptime90Days_ASC', WorkerUptime90DaysAscNullsFirst = 'worker_uptime90Days_ASC_NULLS_FIRST', + WorkerUptime90DaysAscNullsLast = 'worker_uptime90Days_ASC_NULLS_LAST', WorkerUptime90DaysDesc = 'worker_uptime90Days_DESC', + WorkerUptime90DaysDescNullsFirst = 'worker_uptime90Days_DESC_NULLS_FIRST', WorkerUptime90DaysDescNullsLast = 'worker_uptime90Days_DESC_NULLS_LAST', WorkerVersionAsc = 'worker_version_ASC', WorkerVersionAscNullsFirst = 'worker_version_ASC_NULLS_FIRST', + WorkerVersionAscNullsLast = 'worker_version_ASC_NULLS_LAST', WorkerVersionDesc = 'worker_version_DESC', + WorkerVersionDescNullsFirst = 'worker_version_DESC_NULLS_FIRST', WorkerVersionDescNullsLast = 'worker_version_DESC_NULLS_LAST', WorkerWebsiteAsc = 'worker_website_ASC', WorkerWebsiteAscNullsFirst = 'worker_website_ASC_NULLS_FIRST', + WorkerWebsiteAscNullsLast = 'worker_website_ASC_NULLS_LAST', WorkerWebsiteDesc = 'worker_website_DESC', + WorkerWebsiteDescNullsFirst = 'worker_website_DESC_NULLS_FIRST', WorkerWebsiteDescNullsLast = 'worker_website_DESC_NULLS_LAST', } @@ -4326,6 +5076,7 @@ export type WorkerFragmentFragment = { jailed?: boolean; dialOk?: boolean; locked?: boolean; + version?: string; owner: { __typename?: 'Account'; id: string }; realOwner: { __typename?: 'Account'; id: string }; }; @@ -4369,6 +5120,7 @@ export type AllWorkersQuery = { jailed?: boolean; dialOk?: boolean; locked?: boolean; + version?: string; owner: { __typename?: 'Account'; id: string }; realOwner: { __typename?: 'Account'; id: string }; }>; @@ -4404,6 +5156,7 @@ export type WorkerByPeerIdQuery = { jailed?: boolean; dialOk?: boolean; locked?: boolean; + version?: string; queries24Hours?: any; queries90Days?: any; scannedData24Hours?: any; @@ -4461,6 +5214,7 @@ export type MyWorkersQuery = { jailed?: boolean; dialOk?: boolean; locked?: boolean; + version?: string; myDelegations: Array<{ __typename?: 'Delegation'; deposit: any; @@ -4522,6 +5276,7 @@ export type MyDelegationsQuery = { jailed?: boolean; dialOk?: boolean; locked?: boolean; + version?: string; owner: { __typename?: 'Account'; id: string }; realOwner: { __typename?: 'Account'; id: string }; }; @@ -4682,6 +5437,7 @@ export const WorkerFragmentFragmentDoc = ` jailed dialOk locked + version owner { id } diff --git a/src/layouts/NetworkLayout/NetworkPageTitle.tsx b/src/layouts/NetworkLayout/NetworkPageTitle.tsx index 2c130af..12cebeb 100644 --- a/src/layouts/NetworkLayout/NetworkPageTitle.tsx +++ b/src/layouts/NetworkLayout/NetworkPageTitle.tsx @@ -8,7 +8,7 @@ import { BackButton } from '@components/BackButton'; const PageTitleWrapper = styled('div', { name: 'PageTitleWrapper', })(({ theme }) => ({ - marginBottom: theme.spacing(5), + marginBottom: theme.spacing(2.5), minHeight: theme.spacing(5), '& .title': { diff --git a/src/pages/WorkersPage/MyWorkerStat.tsx b/src/pages/WorkersPage/MyWorkerStat.tsx deleted file mode 100644 index e387576..0000000 --- a/src/pages/WorkersPage/MyWorkerStat.tsx +++ /dev/null @@ -1,56 +0,0 @@ -import React from 'react'; - -import { percentFormatter } from '@lib/formatters/formatters.ts'; -import { Box, Divider, Stack, styled } from '@mui/material'; - -import { formatSqd } from '@api/contracts/utils'; -import { BlockchainApiWorker } from '@api/subsquid-network-squid'; -import { Card } from '@components/Card'; -import { useContracts } from '@network/useContracts'; - -import { WorkerColumn, WorkerColumnLabel } from './WorkerStatistics'; - -export const MyWorkerLabel = styled(Box, { - name: 'MyWorkerLabel', -})(({ theme }) => ({ - color: theme.palette.text.primary, -})); -export const MyWorkerValue = styled(Box, { - name: 'MyWorkerValue', -})(({ theme }) => ({ - color: theme.palette.text.secondary, -})); - -export const MyWorkerStat = ({ worker }: { worker: BlockchainApiWorker }) => { - const { SQD_TOKEN } = useContracts(); - - return ( - - } - spacing={2} - direction="row" - justifyContent="space-between" - > - - - Worker APR - {worker.apr != null ? percentFormatter(worker.apr) : '-'} - - - - - Bond - {formatSqd(SQD_TOKEN, worker.bond)} - - - - - Total rewards - {formatSqd(SQD_TOKEN, worker.totalReward)} - - - - - ); -}; diff --git a/src/pages/WorkersPage/UptimeGraph.tsx b/src/pages/WorkersPage/UptimeGraph.tsx index 76a3f47..1046640 100644 --- a/src/pages/WorkersPage/UptimeGraph.tsx +++ b/src/pages/WorkersPage/UptimeGraph.tsx @@ -16,7 +16,7 @@ const StyledTitle = styled(Box)(({ theme: { spacing } }) => ({ const StyledGraph = styled(Box)(({ theme: { spacing } }) => ({ display: 'flex', - justifyContent: 'space-between', + justifyContent: 'space-around', marginBottom: spacing(1), })); @@ -66,7 +66,7 @@ export const UptimeGraph = ({ worker }: { worker: BlockchainApiFullWorker }) => return ( - {displayedDays} days uptime + Uptime graph {data.map(d => ( diff --git a/src/pages/WorkersPage/Worker.tsx b/src/pages/WorkersPage/Worker.tsx index 584bc48..231a84e 100644 --- a/src/pages/WorkersPage/Worker.tsx +++ b/src/pages/WorkersPage/Worker.tsx @@ -1,29 +1,29 @@ import React from 'react'; -import { Divider } from '@mui/material'; +import { Stack } from '@mui/material'; import { Box } from '@mui/system'; import { useParams, useSearchParams } from 'react-router-dom'; import { useWorkerByPeerId } from '@api/subsquid-network-squid'; -import { BackButton } from '@components/BackButton'; import { Card } from '@components/Card'; import { Loader } from '@components/Loader'; -import { CenteredPageWrapper } from '@layouts/NetworkLayout'; +import { CenteredPageWrapper, NetworkPageTitle } from '@layouts/NetworkLayout'; import { WorkerUnregister } from '@pages/WorkersPage/WorkerUnregister'; -import { MyWorkerStat } from './MyWorkerStat'; import { WorkerCard } from './WorkerCard'; +import { WorkerDelegate } from './WorkerDelegate'; import { WorkerStatistics } from './WorkerStatistics'; +import { WorkerUndelegate } from './WorkerUndelegate'; -const sx = { - background: '#000', - color: '#fff', +// const sx = { +// background: '#000', +// color: '#fff', - '&:hover': { - background: '#333', - color: '#fff', - }, -}; +// '&:hover': { +// background: '#333', +// color: '#fff', +// }, +// }; export const Worker = ({ backPath }: { backPath: string }) => { const { peerId } = useParams<{ peerId: string }>(); @@ -42,29 +42,27 @@ export const Worker = ({ backPath }: { backPath: string }) => { return ( - - - + + + + + } + /> + - - {worker.ownedByMe ? ( - - - - ) : null} - - + - - {worker.ownedByMe ? ( - <> - - - - ) : null} + {worker.ownedByMe ? ( + + + + ) : null} ); }; diff --git a/src/pages/WorkersPage/WorkerCard.tsx b/src/pages/WorkersPage/WorkerCard.tsx index f1d5a0f..04f50a3 100644 --- a/src/pages/WorkersPage/WorkerCard.tsx +++ b/src/pages/WorkersPage/WorkerCard.tsx @@ -5,17 +5,12 @@ import { Divider, IconButton, Stack, styled } from '@mui/material'; import { Box } from '@mui/system'; import { Link } from 'react-router-dom'; -import { - BlockchainApiFullWorker, - WorkerStatus as BlockchainWorkerStatus, -} from '@api/subsquid-network-squid'; +import { BlockchainApiFullWorker } from '@api/subsquid-network-squid'; import { Avatar } from '@components/Avatar'; import { CopyToClipboard } from '@components/CopyToClipboard'; import { EditIcon } from '@icons/EditIcon'; -import { WorkerDelegate } from './WorkerDelegate'; import { WorkerStatus } from './WorkerStatus'; -import { WorkerUndelegate } from './WorkerUndelegate'; export const WorkerDescLabel = styled(Box, { name: 'WorkerDescLabel', @@ -58,12 +53,6 @@ function WorkerTitle({ worker }: { worker: BlockchainApiFullWorker }) { - - {worker.status === BlockchainWorkerStatus.Active ? ( - - ) : null} - {worker.myDelegationsTotal.greaterThan(0) ? : null} - ); } @@ -89,7 +78,7 @@ export const WorkerCard = ({ worker }: { worker: BlockchainApiFullWorker }) => { - + {/**/} {/* Website*/} {/* {worker.website || '-'}*/} @@ -106,6 +95,10 @@ export const WorkerCard = ({ worker }: { worker: BlockchainApiFullWorker }) => { Joined {dateFormat(worker.createdAt)} + + Version + {worker.version || '-'} + diff --git a/src/pages/WorkersPage/WorkerDelegate.tsx b/src/pages/WorkersPage/WorkerDelegate.tsx index 16b6f7e..3abafd0 100644 --- a/src/pages/WorkersPage/WorkerDelegate.tsx +++ b/src/pages/WorkersPage/WorkerDelegate.tsx @@ -30,7 +30,13 @@ export const delegateSchema = (SQD_TOKEN: string) => max: yup.number().label('Max').required('Max is required'), }); -export function WorkerDelegate({ worker }: { worker: BlockchainApiWorker }) { +export function WorkerDelegate({ + worker, + disabled, +}: { + worker: BlockchainApiWorker; + disabled?: boolean; +}) { const { delegateToWorker, error, isLoading } = useWorkerDelegate(); const { SQD_TOKEN } = useContracts(); @@ -94,7 +100,11 @@ export function WorkerDelegate({ worker }: { worker: BlockchainApiWorker }) { return ( <> - ({ + flex: 1, fontWeight: 500, + whiteSpace: 'balance', })); export const WorkerColumn = styled(Box, { - name: 'WorkerColumnLabel', + name: 'WorkerDescLabel', })(() => ({ flex: 1, })); @@ -37,11 +42,7 @@ export const WorkerDescRow = styled(Box, { margin: theme.spacing(5, 0), lineHeight: 1.4, })); -export const WorkerDescLabel = styled(Box, { - name: 'WorkerDescLabel', -})(() => ({ - fontWeight: 500, -})); + export const WorkerDescValue = styled(Box, { name: 'WorkerDescValue', })(({ theme }) => ({ @@ -51,81 +52,78 @@ export const WorkerDescValue = styled(Box, { })); export const WorkerStatistics = ({ worker }: { worker: BlockchainApiFullWorker }) => { + const { SQD_TOKEN } = useContracts(); + return ( - Worker statistics}> - } - > - - - Delegator APR - {worker.stakerApr != null ? percentFormatter(worker.stakerApr) : '-'} + + + } spacing={2}> + + Worker APR, 7d + + {worker.apr != null ? percentFormatter(worker.apr) : '-'} + - - {/**/} - {/* */} - {/* Delegation capacity*/} - {/* */} - {/* */} - {/* */} - {/* */} - {/**/} - - - Delegators - {worker.delegationCount} + + Bonded + {formatSqd(SQD_TOKEN, worker.bond, 2)} - - - - Health - - - + + Total rewards + {formatSqd(SQD_TOKEN, worker.totalReward, 2)} - - - - - {/* */} + + + + }> + + Delegator APR, 7d + + {worker.stakerApr != null ? percentFormatter(worker.stakerApr) : '-'} + + + + Delegators + {worker.delegationCount} + + + Total delegated + {formatSqd(SQD_TOKEN, worker.totalDelegation, 2)} + + + + + }> + + Uptime, 24h / 90d + + {percentFormatter(worker.uptime24Hours)} / {percentFormatter(worker.uptime90Days)} + + + + Queries, 24h / 90d + + {numberWithSpacesFormatter(worker.queries24Hours)} /{' '} + {numberWithSpacesFormatter(worker.queries90Days)} + + + + Data served, 24h / 90d + + {bytesFormatter(worker.servedData24Hours)} /{' '} + {bytesFormatter(worker.servedData90Days)} + + + + Data stored + {bytesFormatter(worker.storedData)} + + + + - - {/**/} - {/* Total worker rewards*/} - {/* {worker.tot}*/} - {/**/} - {/**/} - {/* Total delegators rewards*/} - {/* */} - {/**/} - - Uptime, 24 hours / 90 days - - {percentFormatter(worker.uptime24Hours)} / {percentFormatter(worker.uptime90Days)} - - - - Queries, 24 hours / 90 days - - {numberWithSpacesFormatter(worker.queries24Hours)} /{' '} - {numberWithSpacesFormatter(worker.queries90Days)} - - - - Data served, 24 hours / 90 days - - {bytesFormatter(worker.servedData24Hours)} / {bytesFormatter(worker.servedData90Days)} - - - - Data stored - {bytesFormatter(worker.storedData)} - - + ); }; diff --git a/src/pages/WorkersPage/WorkerStatus.tsx b/src/pages/WorkersPage/WorkerStatus.tsx index 25eba7d..8482e15 100644 --- a/src/pages/WorkersPage/WorkerStatus.tsx +++ b/src/pages/WorkersPage/WorkerStatus.tsx @@ -5,33 +5,26 @@ import capitalize from 'lodash-es/capitalize'; import { BlockchainApiWorker, WorkerStatus as Status } from '@api/subsquid-network-squid'; -export const Chip = styled(MaterialChip)( - ({ - theme: { - spacing, - palette: { error }, - }, - }) => ({ - fontSize: '0.75rem', - fontWeight: 500, - lineHeight: 1, - height: 24, - - [`& .${chipClasses.label}`]: { - padding: spacing(0.5, 1), - }, - - [`&.MuiChip-filledError`]: { - background: error.main, - color: error.contrastText, - }, - - [`&.${chipClasses.colorSuccess}`]: { - background: '#E3F7E0', - color: '#55AD44', - }, - }), -); +export const Chip = styled(MaterialChip)(({ theme: { spacing } }) => ({ + fontSize: '0.75rem', + fontWeight: 500, + lineHeight: 1, + height: 24, + + [`& .${chipClasses.label}`]: { + padding: spacing(0.5, 1), + }, + + [`&.${chipClasses.colorError}`]: { + background: '#FFE6C0', + color: '#FF6B35', + }, + + [`&.${chipClasses.colorSuccess}`]: { + background: '#E3F7E0', + color: '#55AD44', + }, +})); export function workerStatus(worker: BlockchainApiWorker): { label: string; @@ -49,9 +42,9 @@ export function workerStatus(worker: BlockchainApiWorker): { return { label: 'Online', color: 'success' }; case Status.Registering: - return { label: 'Registration pending', color: 'default' }; + return { label: 'Registering', color: 'default' }; case Status.Deregistering: - return { label: 'Unregistration pending', color: 'default' }; + return { label: 'Unregistring', color: 'default' }; case Status.Deregistered: return { label: 'Deregistered', color: 'default' }; } diff --git a/src/pages/WorkersPage/WorkerUndelegate.tsx b/src/pages/WorkersPage/WorkerUndelegate.tsx index 3c9e848..44727e4 100644 --- a/src/pages/WorkersPage/WorkerUndelegate.tsx +++ b/src/pages/WorkersPage/WorkerUndelegate.tsx @@ -29,7 +29,13 @@ export const undelegateSchema = (SQD_TOKEN: string) => max: yup.string().label('Max').required('Max is required'), }); -export function WorkerUndelegate({ worker }: { worker: BlockchainApiWorker }) { +export function WorkerUndelegate({ + worker, + disabled, +}: { + worker: BlockchainApiWorker; + disabled?: boolean; +}) { const { undelegateFromWorker, error, isLoading } = useWorkerUndelegate(); const { SQD_TOKEN } = useContracts(); @@ -106,7 +112,11 @@ export function WorkerUndelegate({ worker }: { worker: BlockchainApiWorker }) { return ( <>