From 5b4b16137eab42c5a349448f7a6d4f830e45551f Mon Sep 17 00:00:00 2001 From: Adam Soffer Date: Tue, 29 Sep 2026 02:56:42 +0000 Subject: [PATCH 01/14] app: remove the old explorer Deletes the pages-router app: Stitches styles, Apollo and its codegen, and the hand-written components, hooks and layouts. Repository tooling (CI, templates, husky, license, contributing docs) stays. The contract ABIs are kept and move to lib/abis. This commit doesn't build on its own; the next ones put the new app in place. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Dh52qRhBrfkLKKAAGqPxYN --- @types/custom.d.ts | 8 - apollo/createSchema.ts | 29 - apollo/index.tsx | 21 - apollo/subgraph.ts | 11639 ---------------- codegen.yml | 29 - components/Account/index.tsx | 65 - components/AccountCell/index.tsx | 100 - components/AnimatedToken/index.tsx | 77 - components/AppBar/index.tsx | 100 - components/Approve/index.tsx | 42 - components/Banner/index.tsx | 31 - components/BottomDrawer/index.tsx | 31 - components/BroadcastingView/index.tsx | 120 - components/Button/index.tsx | 106 - components/CircularProgressBar/index.tsx | 39 - components/Claim/index.tsx | 264 - .../CliVotingInstructionsDialog/index.tsx | 173 - components/CodeBlock/index.tsx | 102 - components/ConnectButton/index.tsx | 52 - components/DelegatingView/index.tsx | 483 - components/DelegatingWidget/Delegate.tsx | 296 - components/DelegatingWidget/Footer.tsx | 258 - components/DelegatingWidget/Footnote.tsx | 19 - components/DelegatingWidget/Header.tsx | 78 - components/DelegatingWidget/Input.tsx | 128 - components/DelegatingWidget/InputBox.tsx | 140 - components/DelegatingWidget/ProjectionBox.tsx | 140 - components/DelegatingWidget/Tabs.tsx | 54 - components/DelegatingWidget/Undelegate.tsx | 174 - components/DelegatingWidget/index.tsx | 244 - components/DelegatorList/index.tsx | 338 - components/DelegatorsView/index.tsx | 152 - components/Drawer/index.tsx | 255 - components/EditProfile/index.tsx | 88 - components/EmbedModal/index.tsx | 29 - components/Error/index.tsx | 35 - components/EthAddressBadge/index.tsx | 34 - components/ExplorerChart/index.tsx | 525 - components/ExplorerTooltip/DesktopTooltip.tsx | 74 - components/ExplorerTooltip/MobileTooltip.tsx | 145 - components/ExplorerTooltip/index.tsx | 14 - components/ExplorerTooltip/types.ts | 27 - components/GatewayList/index.tsx | 345 - components/Hamburger/index.tsx | 37 - components/HistoryView/index.tsx | 1075 -- .../HorizontalScrollContainer/index.tsx | 187 - components/IdentityAvatar/index.tsx | 92 - components/InactiveWarning/index.tsx | 75 - components/Logo/index.tsx | 65 - components/MarkdownRenderer/index.test.tsx | 102 - components/MarkdownRenderer/index.tsx | 200 - components/OrchestratingView/index.tsx | 434 - components/OrchestratorCutHistory/index.tsx | 90 - components/OrchestratorList/index.tsx | 1446 -- components/PerformanceList/index.tsx | 357 - components/PerformanceListSelector/index.tsx | 172 - components/PollVote/DesktopVoteTable.tsx | 220 - components/PollVote/MobileVoteCards.tsx | 57 - components/PollVote/MobileVoteView.tsx | 210 - components/PollVote/PollVoteDetail.tsx | 258 - components/PollVote/PollVotePopover.tsx | 239 - components/PollVote/index.tsx | 223 - components/PollVotingWidget/index.tsx | 524 - components/PopoverLink/index.tsx | 55 - components/Pre/index.tsx | 205 - components/Profile/index.tsx | 489 - components/ProgressBar/index.tsx | 51 - components/ProgressSteps/index.tsx | 88 - components/QueueExecuteButton/index.tsx | 99 - components/Redelegate/index.tsx | 46 - .../RedelegateFromUndelegated/index.tsx | 61 - components/RegisterToVote/index.tsx | 179 - components/RoundStatus/index.tsx | 505 - components/SafeHtml/index.tsx | 27 - components/Search/index.tsx | 203 - components/ShowMoreRichText/index.tsx | 104 - components/Snackbar/index.tsx | 271 - components/Spinner/index.tsx | 25 - components/StakeTransactions/index.tsx | 262 - components/Stat/index.tsx | 73 - components/Table/Pagination.tsx | 81 - components/Table/index.tsx | 290 - components/ThreeBoxSteps/index.tsx | 38 - components/TransactionBadge/index.tsx | 51 - components/TransactionsList/index.tsx | 614 - .../Treasury/TreasuryProposalRow/index.tsx | 135 - .../TreasuryVoteTable/TreasuryVoteDetail.tsx | 356 - .../TreasuryVoteHistoryModal.tsx | 222 - .../TreasuryVoteTable/TreasuryVotePopover.tsx | 253 - .../Views/DesktopVoteTable.tsx | 262 - .../Views/MobileVoteTable.tsx | 58 - .../TreasuryVoteTable/Views/VoteItem.tsx | 531 - .../Views/VoteReasonPopover.tsx | 117 - .../Treasury/TreasuryVoteTable/index.tsx | 206 - .../TreasuryVotingReason.tsx | 72 - .../Treasury/TreasuryVotingWidget/index.tsx | 569 - components/TxConfirmedDialog/index.tsx | 680 - components/TxStartedDialog/index.tsx | 241 - components/TxSummaryDialog/index.tsx | 103 - components/URLVerificationBanner/index.tsx | 193 - components/VoteButton/index.tsx | 89 - components/Web3Providers/index.tsx | 101 - components/WithdrawStake/index.tsx | 53 - constants/links.ts | 9 - constants/rainbowTheme.ts | 66 - data/delegatorClaimSnapshot.json | 4761 ------- data/delegatorClaimSnapshotRinkeby.json | 14 - data/earningsTree.js | 2 - data/earningsTree_rinkeby.js | 2 - data/historical-usage.ts | 8709 ------------ data/image-to-video.json | 1 - data/text-to-audio.json | 1 - data/text-to-image.json | 1 - hooks/index.tsx | 38 - hooks/useContracts.ts | 39 - hooks/useExplorerStore.tsx | 214 - hooks/useGetAllPollVotesEvents.ts | 92 - hooks/useHandleTransaction.test.tsx | 76 - hooks/useHandleTransaction.tsx | 88 - hooks/useOrchestratorCutHistory.tsx | 124 - hooks/useOrchestratorRewardCutSpike.test.ts | 89 - hooks/useOrchestratorRewardCutSpike.tsx | 103 - hooks/usePersistedExplorerListState.ts | 218 - hooks/useSubgraphHealth.ts | 16 - hooks/useSwr.tsx | 218 - hooks/wallet.tsx | 99 - jest.setup.ts | 4 - layouts/account.tsx | 447 - layouts/constants.ts | 1 - layouts/main.tsx | 1072 -- lib/{api/abis/main => abis}/BondingManager.ts | 0 lib/{api/abis/main => abis}/BondingVotes.ts | 0 lib/{api/abis/main => abis}/Controller.ts | 0 .../abis/main => abis}/LivepeerGovernor.ts | 0 lib/{api/abis/main => abis}/LivepeerToken.ts | 0 lib/{api/abis/main => abis}/Minter.ts | 0 lib/{api/abis/main => abis}/Poll.ts | 0 lib/{api/abis/main => abis}/PollCreator.ts | 0 lib/{api/abis/main => abis}/RoundsManager.ts | 0 lib/{api/abis/safe => abis}/Safe.ts | 0 lib/analytics.ts | 171 - lib/api/abis/bridge/ArbRetryableTx.ts | 204 - lib/api/abis/bridge/Inbox.ts | 452 - lib/api/abis/bridge/L1BondingManager.ts | 1454 -- lib/api/abis/bridge/L1Migrator.ts | 531 - lib/api/abis/bridge/L2LPTGateway.ts | 601 - lib/api/abis/bridge/L2Migrator.ts | 518 - lib/api/abis/bridge/NodeInterface.ts | 301 - lib/api/abis/main/L2Migrator.ts | 518 - lib/api/abis/main/LivepeerTokenFaucet.ts | 218 - lib/api/abis/main/MerkleSnapshot.ts | 142 - lib/api/abis/main/ServiceRegistry.ts | 74 - lib/api/abis/main/TicketBroker.ts | 591 - lib/api/api.ts | 39 - lib/api/contracts.ts | 55 - lib/api/ens-avatar-image.test.ts | 92 - lib/api/ens.ts | 77 - lib/api/errors.ts | 64 - lib/api/index.ts | 2 - lib/api/poll-lips.ts | 219 - lib/api/polls.ts | 230 - lib/api/ssr.ts | 152 - lib/api/treasury.ts | 153 - lib/api/types/add-ipfs.ts | 3 - lib/api/types/api-error.ts | 12 - lib/api/types/get-account-balance.ts | 4 - lib/api/types/get-available-pipelines.ts | 9 - lib/api/types/get-changefeed.ts | 25 - lib/api/types/get-chart-data.ts | 50 - lib/api/types/get-contract-info.ts | 29 - lib/api/types/get-current-round.ts | 9 - lib/api/types/get-ens.ts | 11 - lib/api/types/get-l1-delegator.ts | 16 - lib/api/types/get-pending-stake.ts | 4 - lib/api/types/get-performance.ts | 26 - lib/api/types/get-poll-lips.ts | 17 - lib/api/types/get-protocol-day-data.ts | 39 - lib/api/types/get-regions.ts | 9 - lib/api/types/get-supply-change.ts | 7 - lib/api/types/get-treasury-proposal.ts | 64 - lib/api/types/votes.ts | 82 - lib/chains.ts | 201 - lib/dayjs.ts | 14 - lib/earningsTree.tsx | 187 - lib/fetchWithRetry.test.ts | 137 - lib/fetchWithRetry.ts | 136 - lib/fetcher.ts | 28 - lib/globalStyles.ts | 31 - lib/roi.ts | 167 - lib/sanitize.test.tsx | 51 - lib/sanitize.testUtils.ts | 34 - lib/sanitize.ts | 121 - lib/utils.test.ts | 323 - lib/utils.tsx | 282 - pages/404.tsx | 45 - pages/_app.tsx | 69 - pages/_document.tsx | 29 - pages/_error.tsx | 12 - pages/accounts/[account]/broadcasting.tsx | 115 - pages/accounts/[account]/delegating.tsx | 121 - pages/accounts/[account]/delegators.tsx | 106 - pages/accounts/[account]/history.tsx | 100 - pages/accounts/[account]/orchestrating.tsx | 119 - pages/api/account-balance/[address].tsx | 61 - pages/api/changefeed.tsx | 70 - pages/api/contracts.tsx | 136 - pages/api/current-round.tsx | 81 - pages/api/ens-data/[address].tsx | 44 - pages/api/ens-data/image/[name].tsx | 101 - pages/api/ens-data/index.tsx | 77 - pages/api/generateProof.tsx | 50 - pages/api/health.tsx | 44 - pages/api/l1-delegator/[address].tsx | 127 - pages/api/pending-stake/[address].tsx | 72 - pages/api/pipelines/index.tsx | 36 - pages/api/polls/lips.ts | 31 - pages/api/protocol-day-data.tsx | 211 - pages/api/regions/index.ts | 72 - pages/api/score/[address].tsx | 184 - pages/api/score/index.tsx | 115 - pages/api/subgraph-health.tsx | 49 - pages/api/supply-change.tsx | 94 - .../treasury/proposal/[proposalId]/state.tsx | 123 - .../proposal/[proposalId]/votes/[address].tsx | 95 - pages/api/treasury/votes/[address]/index.tsx | 82 - .../treasury/votes/[address]/registered.tsx | 92 - pages/api/upload-ipfs.tsx | 44 - pages/api/usage.tsx | 242 - pages/gateways.tsx | 94 - pages/index.tsx | 715 - pages/leaderboard.tsx | 309 - pages/migrate/broadcaster.tsx | 930 -- .../delegator/contract-wallet-tool.tsx | 380 - pages/migrate/delegator/index.tsx | 939 -- pages/migrate/index.tsx | 93 - pages/migrate/orchestrator.tsx | 920 -- pages/orchestrators.tsx | 191 - pages/transactions.tsx | 126 - pages/treasury/[proposal].tsx | 854 -- pages/treasury/create-proposal.tsx | 483 - pages/treasury/index.tsx | 125 - pages/voting/[poll].tsx | 555 - pages/voting/create-poll.tsx | 288 - pages/voting/index.tsx | 235 - pages/whats-new.tsx | 184 - public/favicon.ico | Bin 12462 -> 0 bytes public/img/account.svg | 12 - public/img/add-photo.svg | 12 - public/img/approve.svg | 11 - public/img/arbitrum.svg | 9 - public/img/arrow-down.svg | 15 - public/img/arrow-right-long.svg | 11 - public/img/arrow-right.svg | 13 - public/img/ballot.svg | 11 - public/img/camera.svg | 10 - public/img/change.svg | 11 - public/img/check.svg | 11 - public/img/claim.svg | 11 - public/img/close.svg | 11 - public/img/coinbase-wallet.svg | 23 - public/img/copy.svg | 9 - public/img/dns.svg | 12 - public/img/eth.svg | 10 - public/img/etherscan.svg | 18 - public/img/green-loader.svg | 4 - public/img/help.svg | 8 - public/img/link.svg | 11 - public/img/logo-icon.svg | 9 - public/img/logo.svg | 14 - public/img/logos/arbitrum.png | Bin 16453 -> 0 bytes public/img/logos/arbitrum.svg | 181 - public/img/logos/ethereum.png | Bin 3954 -> 0 bytes public/img/logos/logo-circle-black.png | Bin 76183 -> 0 bytes public/img/logos/logo-circle-black.svg | 11 - public/img/logos/logo-circle-green.png | Bin 614033 -> 0 bytes public/img/logos/logo-circle-green.svg | 15 - public/img/logos/logo-circle-white.png | Bin 17163 -> 0 bytes public/img/logos/logo-circle-white.svg | 4 - public/img/logos/logo.png | Bin 11889 -> 0 bytes public/img/lpt.svg | 23 - public/img/metamask-fill.svg | 3 - public/img/metamask.svg | 39 - public/img/network.svg | 3 - public/img/new.svg | 17 - public/img/open-in-new.svg | 11 - public/img/orchestrators.svg | 3 - public/img/play-outline.svg | 11 - public/img/play.svg | 11 - public/img/portis.svg | 21 - public/img/power.svg | 11 - public/img/search.svg | 9 - public/img/secure.svg | 3 - public/img/sign-message-screenshot-1.png | Bin 91889 -> 0 bytes public/img/sign-message-screenshot-2.png | Bin 108172 -> 0 bytes public/img/sign-message-screenshot-3.png | Bin 90022 -> 0 bytes public/img/squiggle.svg | 5 - public/img/stake.svg | 5 - public/img/star.svg | 1 - public/img/trending.svg | 13 - public/img/unlink.svg | 11 - public/img/verified.svg | 9 - public/img/wallet-connect.svg | 12 - public/img/wallet.svg | 13 - public/img/wifi.svg | 11 - public/img/yield-chart.svg | 3 - public/sitemap.xml | 32 - queries/account.graphql | 80 - queries/accountInactive.graphql | 15 - queries/currentRound.graphql | 16 - queries/days.graphql | 15 - queries/events.graphql | 215 - queries/gatewaySelfRedeem.graphql | 12 - queries/gateways.graphql | 22 - queries/meta.graphql | 8 - queries/orchestratorDelegators.graphql | 21 - queries/orchestrators.graphql | 53 - queries/orchestratorsSorted.graphql | 10 - queries/poll.graphql | 20 - queries/polls.graphql | 22 - queries/protocol.graphql | 27 - queries/protocolByBlock.graphql | 13 - queries/transactions.graphql | 161 - queries/transcoderActivatedEvents.graphql | 16 - queries/transcoderUpdateEvents.graphql | 24 - queries/treasuryProposal.graphql | 14 - queries/treasuryProposals.graphql | 22 - queries/treasuryVoteEvents.graphql | 29 - queries/treasuryVotes.graphql | 21 - queries/vote.graphql | 14 - queries/voteEvents.graphql | 21 - styles/globals.css | 5 - utils/Inbox.json | 452 - utils/encoder.ts | 43 - utils/ipfs.ts | 39 - utils/messaging.ts | 158 - utils/numberFormatters.test.ts | 425 - utils/numberFormatters.ts | 419 - utils/stepperStyles.ts | 34 - utils/voting.ts | 46 - utils/web3.test.ts | 65 - utils/web3.ts | 109 - 341 files changed, 70607 deletions(-) delete mode 100644 @types/custom.d.ts delete mode 100644 apollo/createSchema.ts delete mode 100644 apollo/index.tsx delete mode 100644 apollo/subgraph.ts delete mode 100644 codegen.yml delete mode 100644 components/Account/index.tsx delete mode 100644 components/AccountCell/index.tsx delete mode 100644 components/AnimatedToken/index.tsx delete mode 100644 components/AppBar/index.tsx delete mode 100644 components/Approve/index.tsx delete mode 100644 components/Banner/index.tsx delete mode 100644 components/BottomDrawer/index.tsx delete mode 100644 components/BroadcastingView/index.tsx delete mode 100644 components/Button/index.tsx delete mode 100644 components/CircularProgressBar/index.tsx delete mode 100644 components/Claim/index.tsx delete mode 100644 components/CliVotingInstructionsDialog/index.tsx delete mode 100644 components/CodeBlock/index.tsx delete mode 100644 components/ConnectButton/index.tsx delete mode 100644 components/DelegatingView/index.tsx delete mode 100644 components/DelegatingWidget/Delegate.tsx delete mode 100644 components/DelegatingWidget/Footer.tsx delete mode 100644 components/DelegatingWidget/Footnote.tsx delete mode 100644 components/DelegatingWidget/Header.tsx delete mode 100644 components/DelegatingWidget/Input.tsx delete mode 100644 components/DelegatingWidget/InputBox.tsx delete mode 100644 components/DelegatingWidget/ProjectionBox.tsx delete mode 100644 components/DelegatingWidget/Tabs.tsx delete mode 100644 components/DelegatingWidget/Undelegate.tsx delete mode 100644 components/DelegatingWidget/index.tsx delete mode 100644 components/DelegatorList/index.tsx delete mode 100644 components/DelegatorsView/index.tsx delete mode 100644 components/Drawer/index.tsx delete mode 100644 components/EditProfile/index.tsx delete mode 100644 components/EmbedModal/index.tsx delete mode 100644 components/Error/index.tsx delete mode 100644 components/EthAddressBadge/index.tsx delete mode 100644 components/ExplorerChart/index.tsx delete mode 100644 components/ExplorerTooltip/DesktopTooltip.tsx delete mode 100644 components/ExplorerTooltip/MobileTooltip.tsx delete mode 100644 components/ExplorerTooltip/index.tsx delete mode 100644 components/ExplorerTooltip/types.ts delete mode 100644 components/GatewayList/index.tsx delete mode 100644 components/Hamburger/index.tsx delete mode 100644 components/HistoryView/index.tsx delete mode 100644 components/HorizontalScrollContainer/index.tsx delete mode 100644 components/IdentityAvatar/index.tsx delete mode 100644 components/InactiveWarning/index.tsx delete mode 100644 components/Logo/index.tsx delete mode 100644 components/MarkdownRenderer/index.test.tsx delete mode 100644 components/MarkdownRenderer/index.tsx delete mode 100644 components/OrchestratingView/index.tsx delete mode 100644 components/OrchestratorCutHistory/index.tsx delete mode 100644 components/OrchestratorList/index.tsx delete mode 100644 components/PerformanceList/index.tsx delete mode 100644 components/PerformanceListSelector/index.tsx delete mode 100644 components/PollVote/DesktopVoteTable.tsx delete mode 100644 components/PollVote/MobileVoteCards.tsx delete mode 100644 components/PollVote/MobileVoteView.tsx delete mode 100644 components/PollVote/PollVoteDetail.tsx delete mode 100644 components/PollVote/PollVotePopover.tsx delete mode 100644 components/PollVote/index.tsx delete mode 100644 components/PollVotingWidget/index.tsx delete mode 100644 components/PopoverLink/index.tsx delete mode 100644 components/Pre/index.tsx delete mode 100644 components/Profile/index.tsx delete mode 100644 components/ProgressBar/index.tsx delete mode 100644 components/ProgressSteps/index.tsx delete mode 100644 components/QueueExecuteButton/index.tsx delete mode 100644 components/Redelegate/index.tsx delete mode 100644 components/RedelegateFromUndelegated/index.tsx delete mode 100644 components/RegisterToVote/index.tsx delete mode 100644 components/RoundStatus/index.tsx delete mode 100644 components/SafeHtml/index.tsx delete mode 100644 components/Search/index.tsx delete mode 100644 components/ShowMoreRichText/index.tsx delete mode 100644 components/Snackbar/index.tsx delete mode 100644 components/Spinner/index.tsx delete mode 100644 components/StakeTransactions/index.tsx delete mode 100644 components/Stat/index.tsx delete mode 100644 components/Table/Pagination.tsx delete mode 100644 components/Table/index.tsx delete mode 100644 components/ThreeBoxSteps/index.tsx delete mode 100644 components/TransactionBadge/index.tsx delete mode 100644 components/TransactionsList/index.tsx delete mode 100644 components/Treasury/TreasuryProposalRow/index.tsx delete mode 100644 components/Treasury/TreasuryVoteTable/TreasuryVoteDetail.tsx delete mode 100644 components/Treasury/TreasuryVoteTable/TreasuryVoteHistoryModal.tsx delete mode 100644 components/Treasury/TreasuryVoteTable/TreasuryVotePopover.tsx delete mode 100644 components/Treasury/TreasuryVoteTable/Views/DesktopVoteTable.tsx delete mode 100644 components/Treasury/TreasuryVoteTable/Views/MobileVoteTable.tsx delete mode 100644 components/Treasury/TreasuryVoteTable/Views/VoteItem.tsx delete mode 100644 components/Treasury/TreasuryVoteTable/Views/VoteReasonPopover.tsx delete mode 100644 components/Treasury/TreasuryVoteTable/index.tsx delete mode 100644 components/Treasury/TreasuryVotingWidget/TreasuryVotingReason.tsx delete mode 100644 components/Treasury/TreasuryVotingWidget/index.tsx delete mode 100644 components/TxConfirmedDialog/index.tsx delete mode 100644 components/TxStartedDialog/index.tsx delete mode 100644 components/TxSummaryDialog/index.tsx delete mode 100644 components/URLVerificationBanner/index.tsx delete mode 100644 components/VoteButton/index.tsx delete mode 100644 components/Web3Providers/index.tsx delete mode 100644 components/WithdrawStake/index.tsx delete mode 100644 constants/links.ts delete mode 100644 constants/rainbowTheme.ts delete mode 100644 data/delegatorClaimSnapshot.json delete mode 100644 data/delegatorClaimSnapshotRinkeby.json delete mode 100644 data/earningsTree.js delete mode 100644 data/earningsTree_rinkeby.js delete mode 100644 data/historical-usage.ts delete mode 100644 data/image-to-video.json delete mode 100644 data/text-to-audio.json delete mode 100644 data/text-to-image.json delete mode 100644 hooks/index.tsx delete mode 100644 hooks/useContracts.ts delete mode 100644 hooks/useExplorerStore.tsx delete mode 100644 hooks/useGetAllPollVotesEvents.ts delete mode 100644 hooks/useHandleTransaction.test.tsx delete mode 100644 hooks/useHandleTransaction.tsx delete mode 100644 hooks/useOrchestratorCutHistory.tsx delete mode 100644 hooks/useOrchestratorRewardCutSpike.test.ts delete mode 100644 hooks/useOrchestratorRewardCutSpike.tsx delete mode 100644 hooks/usePersistedExplorerListState.ts delete mode 100644 hooks/useSubgraphHealth.ts delete mode 100644 hooks/useSwr.tsx delete mode 100644 hooks/wallet.tsx delete mode 100644 jest.setup.ts delete mode 100644 layouts/account.tsx delete mode 100644 layouts/constants.ts delete mode 100644 layouts/main.tsx rename lib/{api/abis/main => abis}/BondingManager.ts (100%) rename lib/{api/abis/main => abis}/BondingVotes.ts (100%) rename lib/{api/abis/main => abis}/Controller.ts (100%) rename lib/{api/abis/main => abis}/LivepeerGovernor.ts (100%) rename lib/{api/abis/main => abis}/LivepeerToken.ts (100%) rename lib/{api/abis/main => abis}/Minter.ts (100%) rename lib/{api/abis/main => abis}/Poll.ts (100%) rename lib/{api/abis/main => abis}/PollCreator.ts (100%) rename lib/{api/abis/main => abis}/RoundsManager.ts (100%) rename lib/{api/abis/safe => abis}/Safe.ts (100%) delete mode 100644 lib/analytics.ts delete mode 100644 lib/api/abis/bridge/ArbRetryableTx.ts delete mode 100644 lib/api/abis/bridge/Inbox.ts delete mode 100644 lib/api/abis/bridge/L1BondingManager.ts delete mode 100644 lib/api/abis/bridge/L1Migrator.ts delete mode 100644 lib/api/abis/bridge/L2LPTGateway.ts delete mode 100644 lib/api/abis/bridge/L2Migrator.ts delete mode 100644 lib/api/abis/bridge/NodeInterface.ts delete mode 100644 lib/api/abis/main/L2Migrator.ts delete mode 100644 lib/api/abis/main/LivepeerTokenFaucet.ts delete mode 100644 lib/api/abis/main/MerkleSnapshot.ts delete mode 100644 lib/api/abis/main/ServiceRegistry.ts delete mode 100644 lib/api/abis/main/TicketBroker.ts delete mode 100644 lib/api/api.ts delete mode 100644 lib/api/contracts.ts delete mode 100644 lib/api/ens-avatar-image.test.ts delete mode 100644 lib/api/ens.ts delete mode 100644 lib/api/errors.ts delete mode 100644 lib/api/index.ts delete mode 100644 lib/api/poll-lips.ts delete mode 100644 lib/api/polls.ts delete mode 100644 lib/api/ssr.ts delete mode 100644 lib/api/treasury.ts delete mode 100644 lib/api/types/add-ipfs.ts delete mode 100644 lib/api/types/api-error.ts delete mode 100644 lib/api/types/get-account-balance.ts delete mode 100644 lib/api/types/get-available-pipelines.ts delete mode 100644 lib/api/types/get-changefeed.ts delete mode 100644 lib/api/types/get-chart-data.ts delete mode 100644 lib/api/types/get-contract-info.ts delete mode 100644 lib/api/types/get-current-round.ts delete mode 100644 lib/api/types/get-ens.ts delete mode 100644 lib/api/types/get-l1-delegator.ts delete mode 100644 lib/api/types/get-pending-stake.ts delete mode 100644 lib/api/types/get-performance.ts delete mode 100644 lib/api/types/get-poll-lips.ts delete mode 100644 lib/api/types/get-protocol-day-data.ts delete mode 100644 lib/api/types/get-regions.ts delete mode 100644 lib/api/types/get-supply-change.ts delete mode 100644 lib/api/types/get-treasury-proposal.ts delete mode 100644 lib/api/types/votes.ts delete mode 100644 lib/chains.ts delete mode 100644 lib/dayjs.ts delete mode 100644 lib/earningsTree.tsx delete mode 100644 lib/fetchWithRetry.test.ts delete mode 100644 lib/fetchWithRetry.ts delete mode 100644 lib/fetcher.ts delete mode 100644 lib/globalStyles.ts delete mode 100644 lib/roi.ts delete mode 100644 lib/sanitize.test.tsx delete mode 100644 lib/sanitize.testUtils.ts delete mode 100644 lib/sanitize.ts delete mode 100644 lib/utils.test.ts delete mode 100644 lib/utils.tsx delete mode 100644 pages/404.tsx delete mode 100644 pages/_app.tsx delete mode 100644 pages/_document.tsx delete mode 100644 pages/_error.tsx delete mode 100644 pages/accounts/[account]/broadcasting.tsx delete mode 100644 pages/accounts/[account]/delegating.tsx delete mode 100644 pages/accounts/[account]/delegators.tsx delete mode 100644 pages/accounts/[account]/history.tsx delete mode 100644 pages/accounts/[account]/orchestrating.tsx delete mode 100644 pages/api/account-balance/[address].tsx delete mode 100644 pages/api/changefeed.tsx delete mode 100644 pages/api/contracts.tsx delete mode 100644 pages/api/current-round.tsx delete mode 100644 pages/api/ens-data/[address].tsx delete mode 100644 pages/api/ens-data/image/[name].tsx delete mode 100644 pages/api/ens-data/index.tsx delete mode 100644 pages/api/generateProof.tsx delete mode 100644 pages/api/health.tsx delete mode 100644 pages/api/l1-delegator/[address].tsx delete mode 100644 pages/api/pending-stake/[address].tsx delete mode 100644 pages/api/pipelines/index.tsx delete mode 100644 pages/api/polls/lips.ts delete mode 100644 pages/api/protocol-day-data.tsx delete mode 100644 pages/api/regions/index.ts delete mode 100644 pages/api/score/[address].tsx delete mode 100644 pages/api/score/index.tsx delete mode 100644 pages/api/subgraph-health.tsx delete mode 100644 pages/api/supply-change.tsx delete mode 100644 pages/api/treasury/proposal/[proposalId]/state.tsx delete mode 100644 pages/api/treasury/proposal/[proposalId]/votes/[address].tsx delete mode 100644 pages/api/treasury/votes/[address]/index.tsx delete mode 100644 pages/api/treasury/votes/[address]/registered.tsx delete mode 100644 pages/api/upload-ipfs.tsx delete mode 100644 pages/api/usage.tsx delete mode 100644 pages/gateways.tsx delete mode 100644 pages/index.tsx delete mode 100644 pages/leaderboard.tsx delete mode 100644 pages/migrate/broadcaster.tsx delete mode 100644 pages/migrate/delegator/contract-wallet-tool.tsx delete mode 100644 pages/migrate/delegator/index.tsx delete mode 100644 pages/migrate/index.tsx delete mode 100644 pages/migrate/orchestrator.tsx delete mode 100644 pages/orchestrators.tsx delete mode 100644 pages/transactions.tsx delete mode 100644 pages/treasury/[proposal].tsx delete mode 100644 pages/treasury/create-proposal.tsx delete mode 100644 pages/treasury/index.tsx delete mode 100644 pages/voting/[poll].tsx delete mode 100644 pages/voting/create-poll.tsx delete mode 100644 pages/voting/index.tsx delete mode 100644 pages/whats-new.tsx delete mode 100644 public/favicon.ico delete mode 100644 public/img/account.svg delete mode 100644 public/img/add-photo.svg delete mode 100644 public/img/approve.svg delete mode 100644 public/img/arbitrum.svg delete mode 100644 public/img/arrow-down.svg delete mode 100755 public/img/arrow-right-long.svg delete mode 100644 public/img/arrow-right.svg delete mode 100644 public/img/ballot.svg delete mode 100755 public/img/camera.svg delete mode 100644 public/img/change.svg delete mode 100644 public/img/check.svg delete mode 100644 public/img/claim.svg delete mode 100644 public/img/close.svg delete mode 100644 public/img/coinbase-wallet.svg delete mode 100644 public/img/copy.svg delete mode 100644 public/img/dns.svg delete mode 100644 public/img/eth.svg delete mode 100644 public/img/etherscan.svg delete mode 100644 public/img/green-loader.svg delete mode 100644 public/img/help.svg delete mode 100755 public/img/link.svg delete mode 100644 public/img/logo-icon.svg delete mode 100644 public/img/logo.svg delete mode 100644 public/img/logos/arbitrum.png delete mode 100644 public/img/logos/arbitrum.svg delete mode 100644 public/img/logos/ethereum.png delete mode 100644 public/img/logos/logo-circle-black.png delete mode 100644 public/img/logos/logo-circle-black.svg delete mode 100644 public/img/logos/logo-circle-green.png delete mode 100644 public/img/logos/logo-circle-green.svg delete mode 100644 public/img/logos/logo-circle-white.png delete mode 100644 public/img/logos/logo-circle-white.svg delete mode 100644 public/img/logos/logo.png delete mode 100644 public/img/lpt.svg delete mode 100644 public/img/metamask-fill.svg delete mode 100644 public/img/metamask.svg delete mode 100644 public/img/network.svg delete mode 100644 public/img/new.svg delete mode 100644 public/img/open-in-new.svg delete mode 100644 public/img/orchestrators.svg delete mode 100644 public/img/play-outline.svg delete mode 100644 public/img/play.svg delete mode 100644 public/img/portis.svg delete mode 100644 public/img/power.svg delete mode 100644 public/img/search.svg delete mode 100644 public/img/secure.svg delete mode 100644 public/img/sign-message-screenshot-1.png delete mode 100644 public/img/sign-message-screenshot-2.png delete mode 100644 public/img/sign-message-screenshot-3.png delete mode 100644 public/img/squiggle.svg delete mode 100644 public/img/stake.svg delete mode 100644 public/img/star.svg delete mode 100644 public/img/trending.svg delete mode 100755 public/img/unlink.svg delete mode 100644 public/img/verified.svg delete mode 100644 public/img/wallet-connect.svg delete mode 100644 public/img/wallet.svg delete mode 100644 public/img/wifi.svg delete mode 100644 public/img/yield-chart.svg delete mode 100644 public/sitemap.xml delete mode 100644 queries/account.graphql delete mode 100644 queries/accountInactive.graphql delete mode 100644 queries/currentRound.graphql delete mode 100644 queries/days.graphql delete mode 100644 queries/events.graphql delete mode 100644 queries/gatewaySelfRedeem.graphql delete mode 100644 queries/gateways.graphql delete mode 100644 queries/meta.graphql delete mode 100644 queries/orchestratorDelegators.graphql delete mode 100644 queries/orchestrators.graphql delete mode 100644 queries/orchestratorsSorted.graphql delete mode 100644 queries/poll.graphql delete mode 100644 queries/polls.graphql delete mode 100644 queries/protocol.graphql delete mode 100644 queries/protocolByBlock.graphql delete mode 100644 queries/transactions.graphql delete mode 100644 queries/transcoderActivatedEvents.graphql delete mode 100644 queries/transcoderUpdateEvents.graphql delete mode 100644 queries/treasuryProposal.graphql delete mode 100644 queries/treasuryProposals.graphql delete mode 100644 queries/treasuryVoteEvents.graphql delete mode 100644 queries/treasuryVotes.graphql delete mode 100644 queries/vote.graphql delete mode 100644 queries/voteEvents.graphql delete mode 100644 styles/globals.css delete mode 100644 utils/Inbox.json delete mode 100644 utils/encoder.ts delete mode 100644 utils/ipfs.ts delete mode 100644 utils/messaging.ts delete mode 100644 utils/numberFormatters.test.ts delete mode 100644 utils/numberFormatters.ts delete mode 100644 utils/stepperStyles.ts delete mode 100644 utils/voting.ts delete mode 100644 utils/web3.test.ts delete mode 100644 utils/web3.ts diff --git a/@types/custom.d.ts b/@types/custom.d.ts deleted file mode 100644 index 4261298f..00000000 --- a/@types/custom.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -declare module "*.svg" { - const content: any; - export default content; -} -declare module "*.png"; -declare module "*.jpg"; -declare module "*.jpeg"; -declare module "*.gif"; diff --git a/apollo/createSchema.ts b/apollo/createSchema.ts deleted file mode 100644 index 8a57b16b..00000000 --- a/apollo/createSchema.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { introspectSchema, wrapSchema } from "@graphql-tools/wrap"; -import { print } from "graphql"; -import fetch from "isomorphic-unfetch"; - -import { CHAIN_INFO, DEFAULT_CHAIN_ID } from "lib/chains"; - -const createSchema = async () => { - const executor = (async ({ document, variables }) => { - const query = print(document); - const fetchResult = await fetch(CHAIN_INFO[DEFAULT_CHAIN_ID].subgraph, { - method: "POST", - headers: { - "Content-Type": "application/json", - }, - body: JSON.stringify({ query, variables }), - }); - - return fetchResult.json(); - }) as any; - - const subgraphSchema = wrapSchema({ - schema: await introspectSchema(executor), - executor, - }); - - return subgraphSchema; -}; - -export default createSchema; diff --git a/apollo/index.tsx b/apollo/index.tsx deleted file mode 100644 index a6244d90..00000000 --- a/apollo/index.tsx +++ /dev/null @@ -1,21 +0,0 @@ -import { ApolloClient, HttpLink, InMemoryCache } from "@apollo/client"; -import { CHAIN_INFO, DEFAULT_CHAIN_ID } from "lib/chains"; -import { useMemo } from "react"; - -export * from "./subgraph"; - -export const client = new ApolloClient({ - link: new HttpLink({ - uri: CHAIN_INFO[DEFAULT_CHAIN_ID].subgraph, - }), - cache: new InMemoryCache(), -}); - -export function getApollo() { - return client; -} - -export function useApollo() { - const store = useMemo(() => getApollo(), []); - return store; -} diff --git a/apollo/subgraph.ts b/apollo/subgraph.ts deleted file mode 100644 index 6a2d9093..00000000 --- a/apollo/subgraph.ts +++ /dev/null @@ -1,11639 +0,0 @@ -/** - * @generated - * This file was automatically generated and should not be edited. - * To add new queries, mutations, or subscriptions, create or update files in the queries folder. - */ - -import { gql } from '@apollo/client'; -import * as Apollo from '@apollo/client'; -export type Maybe = T | null; -export type InputMaybe = Maybe; -export type Exact = { [K in keyof T]: T[K] }; -export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; -export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; -const defaultOptions = {} as const; -/** All built-in and custom scalars, mapped to their actual values */ -export type Scalars = { - ID: string; - String: string; - Boolean: boolean; - Int: number; - Float: number; - BigDecimal: string; - BigInt: string; - Bytes: any; - Int8: any; - Timestamp: any; -}; - -/** Indicates whether the current, partially filled bucket should be included in the response. Defaults to `exclude` */ -export enum Aggregation_Current { - /** Exclude the current, partially filled bucket from the response */ - Exclude = 'exclude', - /** Include the current, partially filled bucket in the response */ - Include = 'include' -} - -export enum Aggregation_Interval { - Day = 'day', - Hour = 'hour' -} - -export type BlockChangedFilter = { - number_gte: Scalars['Int']; -}; - -export type Block_Height = { - hash?: InputMaybe; - number?: InputMaybe; - number_gte?: InputMaybe; -}; - -/** BondEvent entities are created for every emitted Bond event. */ -export type BondEvent = Event & { - __typename: 'BondEvent'; - /** Additional amount added to bonded amount */ - additionalAmount: Scalars['BigDecimal']; - /** Delegator's current total bonded amount */ - bondedAmount: Scalars['BigDecimal']; - /** Reference to the Delegator that bonded */ - delegator: Delegator; - /** Ethereum transaction hash + event log index */ - id: Scalars['ID']; - /** Reference to the Delegator's new delegate */ - newDelegate: Transcoder; - /** Reference to the Delegator's old delegate */ - oldDelegate?: Maybe; - /** Reference to the round the event occured in */ - round: Round; - /** Timestamp of the transaction the event was included in, used to sort */ - timestamp: Scalars['Int']; - /** Reference to the transaction the event was included in */ - transaction: Transaction; -}; - -export type BondEvent_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - additionalAmount?: InputMaybe; - additionalAmount_gt?: InputMaybe; - additionalAmount_gte?: InputMaybe; - additionalAmount_in?: InputMaybe>; - additionalAmount_lt?: InputMaybe; - additionalAmount_lte?: InputMaybe; - additionalAmount_not?: InputMaybe; - additionalAmount_not_in?: InputMaybe>; - and?: InputMaybe>>; - bondedAmount?: InputMaybe; - bondedAmount_gt?: InputMaybe; - bondedAmount_gte?: InputMaybe; - bondedAmount_in?: InputMaybe>; - bondedAmount_lt?: InputMaybe; - bondedAmount_lte?: InputMaybe; - bondedAmount_not?: InputMaybe; - bondedAmount_not_in?: InputMaybe>; - delegator?: InputMaybe; - delegator_?: InputMaybe; - delegator_contains?: InputMaybe; - delegator_contains_nocase?: InputMaybe; - delegator_ends_with?: InputMaybe; - delegator_ends_with_nocase?: InputMaybe; - delegator_gt?: InputMaybe; - delegator_gte?: InputMaybe; - delegator_in?: InputMaybe>; - delegator_lt?: InputMaybe; - delegator_lte?: InputMaybe; - delegator_not?: InputMaybe; - delegator_not_contains?: InputMaybe; - delegator_not_contains_nocase?: InputMaybe; - delegator_not_ends_with?: InputMaybe; - delegator_not_ends_with_nocase?: InputMaybe; - delegator_not_in?: InputMaybe>; - delegator_not_starts_with?: InputMaybe; - delegator_not_starts_with_nocase?: InputMaybe; - delegator_starts_with?: InputMaybe; - delegator_starts_with_nocase?: InputMaybe; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - newDelegate?: InputMaybe; - newDelegate_?: InputMaybe; - newDelegate_contains?: InputMaybe; - newDelegate_contains_nocase?: InputMaybe; - newDelegate_ends_with?: InputMaybe; - newDelegate_ends_with_nocase?: InputMaybe; - newDelegate_gt?: InputMaybe; - newDelegate_gte?: InputMaybe; - newDelegate_in?: InputMaybe>; - newDelegate_lt?: InputMaybe; - newDelegate_lte?: InputMaybe; - newDelegate_not?: InputMaybe; - newDelegate_not_contains?: InputMaybe; - newDelegate_not_contains_nocase?: InputMaybe; - newDelegate_not_ends_with?: InputMaybe; - newDelegate_not_ends_with_nocase?: InputMaybe; - newDelegate_not_in?: InputMaybe>; - newDelegate_not_starts_with?: InputMaybe; - newDelegate_not_starts_with_nocase?: InputMaybe; - newDelegate_starts_with?: InputMaybe; - newDelegate_starts_with_nocase?: InputMaybe; - oldDelegate?: InputMaybe; - oldDelegate_?: InputMaybe; - oldDelegate_contains?: InputMaybe; - oldDelegate_contains_nocase?: InputMaybe; - oldDelegate_ends_with?: InputMaybe; - oldDelegate_ends_with_nocase?: InputMaybe; - oldDelegate_gt?: InputMaybe; - oldDelegate_gte?: InputMaybe; - oldDelegate_in?: InputMaybe>; - oldDelegate_lt?: InputMaybe; - oldDelegate_lte?: InputMaybe; - oldDelegate_not?: InputMaybe; - oldDelegate_not_contains?: InputMaybe; - oldDelegate_not_contains_nocase?: InputMaybe; - oldDelegate_not_ends_with?: InputMaybe; - oldDelegate_not_ends_with_nocase?: InputMaybe; - oldDelegate_not_in?: InputMaybe>; - oldDelegate_not_starts_with?: InputMaybe; - oldDelegate_not_starts_with_nocase?: InputMaybe; - oldDelegate_starts_with?: InputMaybe; - oldDelegate_starts_with_nocase?: InputMaybe; - or?: InputMaybe>>; - round?: InputMaybe; - round_?: InputMaybe; - round_contains?: InputMaybe; - round_contains_nocase?: InputMaybe; - round_ends_with?: InputMaybe; - round_ends_with_nocase?: InputMaybe; - round_gt?: InputMaybe; - round_gte?: InputMaybe; - round_in?: InputMaybe>; - round_lt?: InputMaybe; - round_lte?: InputMaybe; - round_not?: InputMaybe; - round_not_contains?: InputMaybe; - round_not_contains_nocase?: InputMaybe; - round_not_ends_with?: InputMaybe; - round_not_ends_with_nocase?: InputMaybe; - round_not_in?: InputMaybe>; - round_not_starts_with?: InputMaybe; - round_not_starts_with_nocase?: InputMaybe; - round_starts_with?: InputMaybe; - round_starts_with_nocase?: InputMaybe; - timestamp?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not?: InputMaybe; - timestamp_not_in?: InputMaybe>; - transaction?: InputMaybe; - transaction_?: InputMaybe; - transaction_contains?: InputMaybe; - transaction_contains_nocase?: InputMaybe; - transaction_ends_with?: InputMaybe; - transaction_ends_with_nocase?: InputMaybe; - transaction_gt?: InputMaybe; - transaction_gte?: InputMaybe; - transaction_in?: InputMaybe>; - transaction_lt?: InputMaybe; - transaction_lte?: InputMaybe; - transaction_not?: InputMaybe; - transaction_not_contains?: InputMaybe; - transaction_not_contains_nocase?: InputMaybe; - transaction_not_ends_with?: InputMaybe; - transaction_not_ends_with_nocase?: InputMaybe; - transaction_not_in?: InputMaybe>; - transaction_not_starts_with?: InputMaybe; - transaction_not_starts_with_nocase?: InputMaybe; - transaction_starts_with?: InputMaybe; - transaction_starts_with_nocase?: InputMaybe; -}; - -export enum BondEvent_OrderBy { - AdditionalAmount = 'additionalAmount', - BondedAmount = 'bondedAmount', - Delegator = 'delegator', - DelegatorBondedAmount = 'delegator__bondedAmount', - DelegatorDelegatedAmount = 'delegator__delegatedAmount', - DelegatorFees = 'delegator__fees', - DelegatorId = 'delegator__id', - DelegatorPrincipal = 'delegator__principal', - DelegatorStartRound = 'delegator__startRound', - DelegatorUnbonded = 'delegator__unbonded', - DelegatorWithdrawnFees = 'delegator__withdrawnFees', - Id = 'id', - NewDelegate = 'newDelegate', - NewDelegateActivationRound = 'newDelegate__activationRound', - NewDelegateActivationTimestamp = 'newDelegate__activationTimestamp', - NewDelegateActive = 'newDelegate__active', - NewDelegateDeactivationRound = 'newDelegate__deactivationRound', - NewDelegateFeeShare = 'newDelegate__feeShare', - NewDelegateFeeShareUpdateTimestamp = 'newDelegate__feeShareUpdateTimestamp', - NewDelegateId = 'newDelegate__id', - NewDelegateLastActiveStakeUpdateRound = 'newDelegate__lastActiveStakeUpdateRound', - NewDelegateNinetyDayVolumeEth = 'newDelegate__ninetyDayVolumeETH', - NewDelegateRewardCaller = 'newDelegate__rewardCaller', - NewDelegateRewardCut = 'newDelegate__rewardCut', - NewDelegateRewardCutUpdateTimestamp = 'newDelegate__rewardCutUpdateTimestamp', - NewDelegateServiceUri = 'newDelegate__serviceURI', - NewDelegateSixtyDayVolumeEth = 'newDelegate__sixtyDayVolumeETH', - NewDelegateStatus = 'newDelegate__status', - NewDelegateThirtyDayVolumeEth = 'newDelegate__thirtyDayVolumeETH', - NewDelegateTotalStake = 'newDelegate__totalStake', - NewDelegateTotalVolumeEth = 'newDelegate__totalVolumeETH', - NewDelegateTotalVolumeUsd = 'newDelegate__totalVolumeUSD', - OldDelegate = 'oldDelegate', - OldDelegateActivationRound = 'oldDelegate__activationRound', - OldDelegateActivationTimestamp = 'oldDelegate__activationTimestamp', - OldDelegateActive = 'oldDelegate__active', - OldDelegateDeactivationRound = 'oldDelegate__deactivationRound', - OldDelegateFeeShare = 'oldDelegate__feeShare', - OldDelegateFeeShareUpdateTimestamp = 'oldDelegate__feeShareUpdateTimestamp', - OldDelegateId = 'oldDelegate__id', - OldDelegateLastActiveStakeUpdateRound = 'oldDelegate__lastActiveStakeUpdateRound', - OldDelegateNinetyDayVolumeEth = 'oldDelegate__ninetyDayVolumeETH', - OldDelegateRewardCaller = 'oldDelegate__rewardCaller', - OldDelegateRewardCut = 'oldDelegate__rewardCut', - OldDelegateRewardCutUpdateTimestamp = 'oldDelegate__rewardCutUpdateTimestamp', - OldDelegateServiceUri = 'oldDelegate__serviceURI', - OldDelegateSixtyDayVolumeEth = 'oldDelegate__sixtyDayVolumeETH', - OldDelegateStatus = 'oldDelegate__status', - OldDelegateThirtyDayVolumeEth = 'oldDelegate__thirtyDayVolumeETH', - OldDelegateTotalStake = 'oldDelegate__totalStake', - OldDelegateTotalVolumeEth = 'oldDelegate__totalVolumeETH', - OldDelegateTotalVolumeUsd = 'oldDelegate__totalVolumeUSD', - Round = 'round', - RoundActiveTranscoderCount = 'round__activeTranscoderCount', - RoundDelegatorsCount = 'round__delegatorsCount', - RoundEndBlock = 'round__endBlock', - RoundId = 'round__id', - RoundInflation = 'round__inflation', - RoundInitialized = 'round__initialized', - RoundLength = 'round__length', - RoundMintableTokens = 'round__mintableTokens', - RoundMovedStake = 'round__movedStake', - RoundNewStake = 'round__newStake', - RoundNumActiveTranscoders = 'round__numActiveTranscoders', - RoundParticipationRate = 'round__participationRate', - RoundStartBlock = 'round__startBlock', - RoundStartTimestamp = 'round__startTimestamp', - RoundTotalActiveStake = 'round__totalActiveStake', - RoundTotalSupply = 'round__totalSupply', - RoundVolumeEth = 'round__volumeETH', - RoundVolumeUsd = 'round__volumeUSD', - Timestamp = 'timestamp', - Transaction = 'transaction', - TransactionBlockNumber = 'transaction__blockNumber', - TransactionFrom = 'transaction__from', - TransactionGasPrice = 'transaction__gasPrice', - TransactionGasUsed = 'transaction__gasUsed', - TransactionId = 'transaction__id', - TransactionTimestamp = 'transaction__timestamp', - TransactionTo = 'transaction__to' -} - -/** Broadcasters pay transcoders to do the work of transcoding in exchange for fees */ -export type Broadcaster = { - __typename: 'Broadcaster'; - /** Days in which this broadcaster paid out fees */ - broadcasterDays: Array; - /** Amount of funds deposited */ - deposit: Scalars['BigDecimal']; - /** The date this broadcaster first funded a deposit or reserve, beginning at 12:00am UTC */ - firstActiveDay: Scalars['Int']; - /** The date this broadcaster first funded a deposit or reserve, beginning at 12:00am UTC */ - firstFundedDay: Scalars['Int']; - /** ETH address of a broadcaster */ - id: Scalars['ID']; - /** The date this broadcaster last paid fees, beginning at 12:00am UTC */ - lastActiveDay: Scalars['Int']; - /** The date this broadcaster last paid fees, beginning at 12:00am UTC */ - lastFundedDay: Scalars['Int']; - /** Fees paid out by this broadcaster in ETH during the last 90 days */ - ninetyDayVolumeETH: Scalars['BigDecimal']; - /** Amount of funds in reserve */ - reserve: Scalars['BigDecimal']; - /** Fees paid out by this broadcaster in ETH during the last 60 days */ - sixtyDayVolumeETH: Scalars['BigDecimal']; - /** Fees paid out by this broadcaster in ETH during the last 30 days */ - thirtyDayVolumeETH: Scalars['BigDecimal']; - /** Total fees paid out by this broadcaster in ETH */ - totalVolumeETH: Scalars['BigDecimal']; - /** Total fees paid out by this broadcaster in USD */ - totalVolumeUSD: Scalars['BigDecimal']; -}; - - -/** Broadcasters pay transcoders to do the work of transcoding in exchange for fees */ -export type BroadcasterBroadcasterDaysArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - -/** Broadcaster data accumulated and condensed into day stats */ -export type BroadcasterDay = { - __typename: 'BroadcasterDay'; - /** Broadcaster associated with the day */ - broadcaster: Broadcaster; - /** The date beginning at 12:00am UTC */ - date: Scalars['Int']; - /** Concatenation of the broadcaster address and the day timestamp (e.g.
-) */ - id: Scalars['ID']; - /** Fees paid this day in ETH */ - volumeETH: Scalars['BigDecimal']; - /** Fees paid this day in USD */ - volumeUSD: Scalars['BigDecimal']; -}; - -export type BroadcasterDay_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - broadcaster?: InputMaybe; - broadcaster_?: InputMaybe; - broadcaster_contains?: InputMaybe; - broadcaster_contains_nocase?: InputMaybe; - broadcaster_ends_with?: InputMaybe; - broadcaster_ends_with_nocase?: InputMaybe; - broadcaster_gt?: InputMaybe; - broadcaster_gte?: InputMaybe; - broadcaster_in?: InputMaybe>; - broadcaster_lt?: InputMaybe; - broadcaster_lte?: InputMaybe; - broadcaster_not?: InputMaybe; - broadcaster_not_contains?: InputMaybe; - broadcaster_not_contains_nocase?: InputMaybe; - broadcaster_not_ends_with?: InputMaybe; - broadcaster_not_ends_with_nocase?: InputMaybe; - broadcaster_not_in?: InputMaybe>; - broadcaster_not_starts_with?: InputMaybe; - broadcaster_not_starts_with_nocase?: InputMaybe; - broadcaster_starts_with?: InputMaybe; - broadcaster_starts_with_nocase?: InputMaybe; - date?: InputMaybe; - date_gt?: InputMaybe; - date_gte?: InputMaybe; - date_in?: InputMaybe>; - date_lt?: InputMaybe; - date_lte?: InputMaybe; - date_not?: InputMaybe; - date_not_in?: InputMaybe>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - or?: InputMaybe>>; - volumeETH?: InputMaybe; - volumeETH_gt?: InputMaybe; - volumeETH_gte?: InputMaybe; - volumeETH_in?: InputMaybe>; - volumeETH_lt?: InputMaybe; - volumeETH_lte?: InputMaybe; - volumeETH_not?: InputMaybe; - volumeETH_not_in?: InputMaybe>; - volumeUSD?: InputMaybe; - volumeUSD_gt?: InputMaybe; - volumeUSD_gte?: InputMaybe; - volumeUSD_in?: InputMaybe>; - volumeUSD_lt?: InputMaybe; - volumeUSD_lte?: InputMaybe; - volumeUSD_not?: InputMaybe; - volumeUSD_not_in?: InputMaybe>; -}; - -export enum BroadcasterDay_OrderBy { - Broadcaster = 'broadcaster', - BroadcasterDeposit = 'broadcaster__deposit', - BroadcasterFirstActiveDay = 'broadcaster__firstActiveDay', - BroadcasterFirstFundedDay = 'broadcaster__firstFundedDay', - BroadcasterId = 'broadcaster__id', - BroadcasterLastActiveDay = 'broadcaster__lastActiveDay', - BroadcasterLastFundedDay = 'broadcaster__lastFundedDay', - BroadcasterNinetyDayVolumeEth = 'broadcaster__ninetyDayVolumeETH', - BroadcasterReserve = 'broadcaster__reserve', - BroadcasterSixtyDayVolumeEth = 'broadcaster__sixtyDayVolumeETH', - BroadcasterThirtyDayVolumeEth = 'broadcaster__thirtyDayVolumeETH', - BroadcasterTotalVolumeEth = 'broadcaster__totalVolumeETH', - BroadcasterTotalVolumeUsd = 'broadcaster__totalVolumeUSD', - Date = 'date', - Id = 'id', - VolumeEth = 'volumeETH', - VolumeUsd = 'volumeUSD' -} - -export type Broadcaster_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - broadcasterDays?: InputMaybe>; - broadcasterDays_?: InputMaybe; - broadcasterDays_contains?: InputMaybe>; - broadcasterDays_contains_nocase?: InputMaybe>; - broadcasterDays_not?: InputMaybe>; - broadcasterDays_not_contains?: InputMaybe>; - broadcasterDays_not_contains_nocase?: InputMaybe>; - deposit?: InputMaybe; - deposit_gt?: InputMaybe; - deposit_gte?: InputMaybe; - deposit_in?: InputMaybe>; - deposit_lt?: InputMaybe; - deposit_lte?: InputMaybe; - deposit_not?: InputMaybe; - deposit_not_in?: InputMaybe>; - firstActiveDay?: InputMaybe; - firstActiveDay_gt?: InputMaybe; - firstActiveDay_gte?: InputMaybe; - firstActiveDay_in?: InputMaybe>; - firstActiveDay_lt?: InputMaybe; - firstActiveDay_lte?: InputMaybe; - firstActiveDay_not?: InputMaybe; - firstActiveDay_not_in?: InputMaybe>; - firstFundedDay?: InputMaybe; - firstFundedDay_gt?: InputMaybe; - firstFundedDay_gte?: InputMaybe; - firstFundedDay_in?: InputMaybe>; - firstFundedDay_lt?: InputMaybe; - firstFundedDay_lte?: InputMaybe; - firstFundedDay_not?: InputMaybe; - firstFundedDay_not_in?: InputMaybe>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - lastActiveDay?: InputMaybe; - lastActiveDay_gt?: InputMaybe; - lastActiveDay_gte?: InputMaybe; - lastActiveDay_in?: InputMaybe>; - lastActiveDay_lt?: InputMaybe; - lastActiveDay_lte?: InputMaybe; - lastActiveDay_not?: InputMaybe; - lastActiveDay_not_in?: InputMaybe>; - lastFundedDay?: InputMaybe; - lastFundedDay_gt?: InputMaybe; - lastFundedDay_gte?: InputMaybe; - lastFundedDay_in?: InputMaybe>; - lastFundedDay_lt?: InputMaybe; - lastFundedDay_lte?: InputMaybe; - lastFundedDay_not?: InputMaybe; - lastFundedDay_not_in?: InputMaybe>; - ninetyDayVolumeETH?: InputMaybe; - ninetyDayVolumeETH_gt?: InputMaybe; - ninetyDayVolumeETH_gte?: InputMaybe; - ninetyDayVolumeETH_in?: InputMaybe>; - ninetyDayVolumeETH_lt?: InputMaybe; - ninetyDayVolumeETH_lte?: InputMaybe; - ninetyDayVolumeETH_not?: InputMaybe; - ninetyDayVolumeETH_not_in?: InputMaybe>; - or?: InputMaybe>>; - reserve?: InputMaybe; - reserve_gt?: InputMaybe; - reserve_gte?: InputMaybe; - reserve_in?: InputMaybe>; - reserve_lt?: InputMaybe; - reserve_lte?: InputMaybe; - reserve_not?: InputMaybe; - reserve_not_in?: InputMaybe>; - sixtyDayVolumeETH?: InputMaybe; - sixtyDayVolumeETH_gt?: InputMaybe; - sixtyDayVolumeETH_gte?: InputMaybe; - sixtyDayVolumeETH_in?: InputMaybe>; - sixtyDayVolumeETH_lt?: InputMaybe; - sixtyDayVolumeETH_lte?: InputMaybe; - sixtyDayVolumeETH_not?: InputMaybe; - sixtyDayVolumeETH_not_in?: InputMaybe>; - thirtyDayVolumeETH?: InputMaybe; - thirtyDayVolumeETH_gt?: InputMaybe; - thirtyDayVolumeETH_gte?: InputMaybe; - thirtyDayVolumeETH_in?: InputMaybe>; - thirtyDayVolumeETH_lt?: InputMaybe; - thirtyDayVolumeETH_lte?: InputMaybe; - thirtyDayVolumeETH_not?: InputMaybe; - thirtyDayVolumeETH_not_in?: InputMaybe>; - totalVolumeETH?: InputMaybe; - totalVolumeETH_gt?: InputMaybe; - totalVolumeETH_gte?: InputMaybe; - totalVolumeETH_in?: InputMaybe>; - totalVolumeETH_lt?: InputMaybe; - totalVolumeETH_lte?: InputMaybe; - totalVolumeETH_not?: InputMaybe; - totalVolumeETH_not_in?: InputMaybe>; - totalVolumeUSD?: InputMaybe; - totalVolumeUSD_gt?: InputMaybe; - totalVolumeUSD_gte?: InputMaybe; - totalVolumeUSD_in?: InputMaybe>; - totalVolumeUSD_lt?: InputMaybe; - totalVolumeUSD_lte?: InputMaybe; - totalVolumeUSD_not?: InputMaybe; - totalVolumeUSD_not_in?: InputMaybe>; -}; - -export enum Broadcaster_OrderBy { - BroadcasterDays = 'broadcasterDays', - Deposit = 'deposit', - FirstActiveDay = 'firstActiveDay', - FirstFundedDay = 'firstFundedDay', - Id = 'id', - LastActiveDay = 'lastActiveDay', - LastFundedDay = 'lastFundedDay', - NinetyDayVolumeEth = 'ninetyDayVolumeETH', - Reserve = 'reserve', - SixtyDayVolumeEth = 'sixtyDayVolumeETH', - ThirtyDayVolumeEth = 'thirtyDayVolumeETH', - TotalVolumeEth = 'totalVolumeETH', - TotalVolumeUsd = 'totalVolumeUSD' -} - -/** BurnEvent entities are created for every emitted Burn event. */ -export type BurnEvent = Event & { - __typename: 'BurnEvent'; - /** Ethereum transaction hash + event log index */ - id: Scalars['ID']; - /** Reference to the round the event occured in */ - round: Round; - /** Timestamp of the transaction the event was included in */ - timestamp: Scalars['Int']; - /** Reference to the transaction the event was included in */ - transaction: Transaction; - /** Amount of tokens burned */ - value: Scalars['BigDecimal']; -}; - -export type BurnEvent_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - or?: InputMaybe>>; - round?: InputMaybe; - round_?: InputMaybe; - round_contains?: InputMaybe; - round_contains_nocase?: InputMaybe; - round_ends_with?: InputMaybe; - round_ends_with_nocase?: InputMaybe; - round_gt?: InputMaybe; - round_gte?: InputMaybe; - round_in?: InputMaybe>; - round_lt?: InputMaybe; - round_lte?: InputMaybe; - round_not?: InputMaybe; - round_not_contains?: InputMaybe; - round_not_contains_nocase?: InputMaybe; - round_not_ends_with?: InputMaybe; - round_not_ends_with_nocase?: InputMaybe; - round_not_in?: InputMaybe>; - round_not_starts_with?: InputMaybe; - round_not_starts_with_nocase?: InputMaybe; - round_starts_with?: InputMaybe; - round_starts_with_nocase?: InputMaybe; - timestamp?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not?: InputMaybe; - timestamp_not_in?: InputMaybe>; - transaction?: InputMaybe; - transaction_?: InputMaybe; - transaction_contains?: InputMaybe; - transaction_contains_nocase?: InputMaybe; - transaction_ends_with?: InputMaybe; - transaction_ends_with_nocase?: InputMaybe; - transaction_gt?: InputMaybe; - transaction_gte?: InputMaybe; - transaction_in?: InputMaybe>; - transaction_lt?: InputMaybe; - transaction_lte?: InputMaybe; - transaction_not?: InputMaybe; - transaction_not_contains?: InputMaybe; - transaction_not_contains_nocase?: InputMaybe; - transaction_not_ends_with?: InputMaybe; - transaction_not_ends_with_nocase?: InputMaybe; - transaction_not_in?: InputMaybe>; - transaction_not_starts_with?: InputMaybe; - transaction_not_starts_with_nocase?: InputMaybe; - transaction_starts_with?: InputMaybe; - transaction_starts_with_nocase?: InputMaybe; - value?: InputMaybe; - value_gt?: InputMaybe; - value_gte?: InputMaybe; - value_in?: InputMaybe>; - value_lt?: InputMaybe; - value_lte?: InputMaybe; - value_not?: InputMaybe; - value_not_in?: InputMaybe>; -}; - -export enum BurnEvent_OrderBy { - Id = 'id', - Round = 'round', - RoundActiveTranscoderCount = 'round__activeTranscoderCount', - RoundDelegatorsCount = 'round__delegatorsCount', - RoundEndBlock = 'round__endBlock', - RoundId = 'round__id', - RoundInflation = 'round__inflation', - RoundInitialized = 'round__initialized', - RoundLength = 'round__length', - RoundMintableTokens = 'round__mintableTokens', - RoundMovedStake = 'round__movedStake', - RoundNewStake = 'round__newStake', - RoundNumActiveTranscoders = 'round__numActiveTranscoders', - RoundParticipationRate = 'round__participationRate', - RoundStartBlock = 'round__startBlock', - RoundStartTimestamp = 'round__startTimestamp', - RoundTotalActiveStake = 'round__totalActiveStake', - RoundTotalSupply = 'round__totalSupply', - RoundVolumeEth = 'round__volumeETH', - RoundVolumeUsd = 'round__volumeUSD', - Timestamp = 'timestamp', - Transaction = 'transaction', - TransactionBlockNumber = 'transaction__blockNumber', - TransactionFrom = 'transaction__from', - TransactionGasPrice = 'transaction__gasPrice', - TransactionGasUsed = 'transaction__gasUsed', - TransactionId = 'transaction__id', - TransactionTimestamp = 'transaction__timestamp', - TransactionTo = 'transaction__to', - Value = 'value' -} - -/** Protocol data accumulated and condensed into day stats */ -export type Day = { - __typename: 'Day'; - /** Total active transcoders (up to the limit) */ - activeTranscoderCount: Scalars['BigInt']; - /** The date beginning at 12:00am UTC */ - date: Scalars['Int']; - /** Total number of delegators at the start of the round */ - delegatorsCount: Scalars['BigInt']; - /** Timestamp rounded to current day by dividing by 86400 */ - id: Scalars['ID']; - /** Per round inflation rate */ - inflation: Scalars['BigInt']; - /** Limit of active transcoders */ - numActiveTranscoders: Scalars['BigInt']; - /** Participation rate during the day (totalActiveStake/totalSupply) */ - participationRate: Scalars['BigDecimal']; - /** Total active stake during the day */ - totalActiveStake: Scalars['BigDecimal']; - /** Total Livepeer token supply during the day */ - totalSupply: Scalars['BigDecimal']; - /** Fees generated this day in ETH */ - volumeETH: Scalars['BigDecimal']; - /** Fees generated this day in USD */ - volumeUSD: Scalars['BigDecimal']; -}; - -export type Day_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - activeTranscoderCount?: InputMaybe; - activeTranscoderCount_gt?: InputMaybe; - activeTranscoderCount_gte?: InputMaybe; - activeTranscoderCount_in?: InputMaybe>; - activeTranscoderCount_lt?: InputMaybe; - activeTranscoderCount_lte?: InputMaybe; - activeTranscoderCount_not?: InputMaybe; - activeTranscoderCount_not_in?: InputMaybe>; - and?: InputMaybe>>; - date?: InputMaybe; - date_gt?: InputMaybe; - date_gte?: InputMaybe; - date_in?: InputMaybe>; - date_lt?: InputMaybe; - date_lte?: InputMaybe; - date_not?: InputMaybe; - date_not_in?: InputMaybe>; - delegatorsCount?: InputMaybe; - delegatorsCount_gt?: InputMaybe; - delegatorsCount_gte?: InputMaybe; - delegatorsCount_in?: InputMaybe>; - delegatorsCount_lt?: InputMaybe; - delegatorsCount_lte?: InputMaybe; - delegatorsCount_not?: InputMaybe; - delegatorsCount_not_in?: InputMaybe>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - inflation?: InputMaybe; - inflation_gt?: InputMaybe; - inflation_gte?: InputMaybe; - inflation_in?: InputMaybe>; - inflation_lt?: InputMaybe; - inflation_lte?: InputMaybe; - inflation_not?: InputMaybe; - inflation_not_in?: InputMaybe>; - numActiveTranscoders?: InputMaybe; - numActiveTranscoders_gt?: InputMaybe; - numActiveTranscoders_gte?: InputMaybe; - numActiveTranscoders_in?: InputMaybe>; - numActiveTranscoders_lt?: InputMaybe; - numActiveTranscoders_lte?: InputMaybe; - numActiveTranscoders_not?: InputMaybe; - numActiveTranscoders_not_in?: InputMaybe>; - or?: InputMaybe>>; - participationRate?: InputMaybe; - participationRate_gt?: InputMaybe; - participationRate_gte?: InputMaybe; - participationRate_in?: InputMaybe>; - participationRate_lt?: InputMaybe; - participationRate_lte?: InputMaybe; - participationRate_not?: InputMaybe; - participationRate_not_in?: InputMaybe>; - totalActiveStake?: InputMaybe; - totalActiveStake_gt?: InputMaybe; - totalActiveStake_gte?: InputMaybe; - totalActiveStake_in?: InputMaybe>; - totalActiveStake_lt?: InputMaybe; - totalActiveStake_lte?: InputMaybe; - totalActiveStake_not?: InputMaybe; - totalActiveStake_not_in?: InputMaybe>; - totalSupply?: InputMaybe; - totalSupply_gt?: InputMaybe; - totalSupply_gte?: InputMaybe; - totalSupply_in?: InputMaybe>; - totalSupply_lt?: InputMaybe; - totalSupply_lte?: InputMaybe; - totalSupply_not?: InputMaybe; - totalSupply_not_in?: InputMaybe>; - volumeETH?: InputMaybe; - volumeETH_gt?: InputMaybe; - volumeETH_gte?: InputMaybe; - volumeETH_in?: InputMaybe>; - volumeETH_lt?: InputMaybe; - volumeETH_lte?: InputMaybe; - volumeETH_not?: InputMaybe; - volumeETH_not_in?: InputMaybe>; - volumeUSD?: InputMaybe; - volumeUSD_gt?: InputMaybe; - volumeUSD_gte?: InputMaybe; - volumeUSD_in?: InputMaybe>; - volumeUSD_lt?: InputMaybe; - volumeUSD_lte?: InputMaybe; - volumeUSD_not?: InputMaybe; - volumeUSD_not_in?: InputMaybe>; -}; - -export enum Day_OrderBy { - ActiveTranscoderCount = 'activeTranscoderCount', - Date = 'date', - DelegatorsCount = 'delegatorsCount', - Id = 'id', - Inflation = 'inflation', - NumActiveTranscoders = 'numActiveTranscoders', - ParticipationRate = 'participationRate', - TotalActiveStake = 'totalActiveStake', - TotalSupply = 'totalSupply', - VolumeEth = 'volumeETH', - VolumeUsd = 'volumeUSD' -} - -/** Bonded accounts who have delegated their stake towards a transcoder candidate */ -export type Delegator = { - __typename: 'Delegator'; - /** Amount of Livepeer Token a delegator currently has bonded */ - bondedAmount: Scalars['BigDecimal']; - /** ETH address of the delegate (the one whom the delegator has bonded to) */ - delegate?: Maybe; - /** Amount of Livepeer Token the delegator has delegated */ - delegatedAmount: Scalars['BigDecimal']; - /** Amount of fees a delegator has collected */ - fees: Scalars['BigDecimal']; - /** ETH address of a delegator */ - id: Scalars['ID']; - /** Last round that the delegator claimed reward and fee pool shares */ - lastClaimRound?: Maybe; - /** Amount of Livepeer Token a delegator has bonded over its lifetime separate from rewards */ - principal: Scalars['BigDecimal']; - /** Round the delegator becomes bonded and delegated to its delegate */ - startRound: Scalars['BigInt']; - /** Amount of Livepeer Token a delegator has unbonded over its lifetime */ - unbonded: Scalars['BigDecimal']; - /** Unbonding locks associated with the delegator */ - unbondingLocks?: Maybe>; - /** Amount of fees withdrawn */ - withdrawnFees: Scalars['BigDecimal']; -}; - - -/** Bonded accounts who have delegated their stake towards a transcoder candidate */ -export type DelegatorUnbondingLocksArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - -export type Delegator_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - bondedAmount?: InputMaybe; - bondedAmount_gt?: InputMaybe; - bondedAmount_gte?: InputMaybe; - bondedAmount_in?: InputMaybe>; - bondedAmount_lt?: InputMaybe; - bondedAmount_lte?: InputMaybe; - bondedAmount_not?: InputMaybe; - bondedAmount_not_in?: InputMaybe>; - delegate?: InputMaybe; - delegate_?: InputMaybe; - delegate_contains?: InputMaybe; - delegate_contains_nocase?: InputMaybe; - delegate_ends_with?: InputMaybe; - delegate_ends_with_nocase?: InputMaybe; - delegate_gt?: InputMaybe; - delegate_gte?: InputMaybe; - delegate_in?: InputMaybe>; - delegate_lt?: InputMaybe; - delegate_lte?: InputMaybe; - delegate_not?: InputMaybe; - delegate_not_contains?: InputMaybe; - delegate_not_contains_nocase?: InputMaybe; - delegate_not_ends_with?: InputMaybe; - delegate_not_ends_with_nocase?: InputMaybe; - delegate_not_in?: InputMaybe>; - delegate_not_starts_with?: InputMaybe; - delegate_not_starts_with_nocase?: InputMaybe; - delegate_starts_with?: InputMaybe; - delegate_starts_with_nocase?: InputMaybe; - delegatedAmount?: InputMaybe; - delegatedAmount_gt?: InputMaybe; - delegatedAmount_gte?: InputMaybe; - delegatedAmount_in?: InputMaybe>; - delegatedAmount_lt?: InputMaybe; - delegatedAmount_lte?: InputMaybe; - delegatedAmount_not?: InputMaybe; - delegatedAmount_not_in?: InputMaybe>; - fees?: InputMaybe; - fees_gt?: InputMaybe; - fees_gte?: InputMaybe; - fees_in?: InputMaybe>; - fees_lt?: InputMaybe; - fees_lte?: InputMaybe; - fees_not?: InputMaybe; - fees_not_in?: InputMaybe>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - lastClaimRound?: InputMaybe; - lastClaimRound_?: InputMaybe; - lastClaimRound_contains?: InputMaybe; - lastClaimRound_contains_nocase?: InputMaybe; - lastClaimRound_ends_with?: InputMaybe; - lastClaimRound_ends_with_nocase?: InputMaybe; - lastClaimRound_gt?: InputMaybe; - lastClaimRound_gte?: InputMaybe; - lastClaimRound_in?: InputMaybe>; - lastClaimRound_lt?: InputMaybe; - lastClaimRound_lte?: InputMaybe; - lastClaimRound_not?: InputMaybe; - lastClaimRound_not_contains?: InputMaybe; - lastClaimRound_not_contains_nocase?: InputMaybe; - lastClaimRound_not_ends_with?: InputMaybe; - lastClaimRound_not_ends_with_nocase?: InputMaybe; - lastClaimRound_not_in?: InputMaybe>; - lastClaimRound_not_starts_with?: InputMaybe; - lastClaimRound_not_starts_with_nocase?: InputMaybe; - lastClaimRound_starts_with?: InputMaybe; - lastClaimRound_starts_with_nocase?: InputMaybe; - or?: InputMaybe>>; - principal?: InputMaybe; - principal_gt?: InputMaybe; - principal_gte?: InputMaybe; - principal_in?: InputMaybe>; - principal_lt?: InputMaybe; - principal_lte?: InputMaybe; - principal_not?: InputMaybe; - principal_not_in?: InputMaybe>; - startRound?: InputMaybe; - startRound_gt?: InputMaybe; - startRound_gte?: InputMaybe; - startRound_in?: InputMaybe>; - startRound_lt?: InputMaybe; - startRound_lte?: InputMaybe; - startRound_not?: InputMaybe; - startRound_not_in?: InputMaybe>; - unbonded?: InputMaybe; - unbonded_gt?: InputMaybe; - unbonded_gte?: InputMaybe; - unbonded_in?: InputMaybe>; - unbonded_lt?: InputMaybe; - unbonded_lte?: InputMaybe; - unbonded_not?: InputMaybe; - unbonded_not_in?: InputMaybe>; - unbondingLocks_?: InputMaybe; - withdrawnFees?: InputMaybe; - withdrawnFees_gt?: InputMaybe; - withdrawnFees_gte?: InputMaybe; - withdrawnFees_in?: InputMaybe>; - withdrawnFees_lt?: InputMaybe; - withdrawnFees_lte?: InputMaybe; - withdrawnFees_not?: InputMaybe; - withdrawnFees_not_in?: InputMaybe>; -}; - -export enum Delegator_OrderBy { - BondedAmount = 'bondedAmount', - Delegate = 'delegate', - DelegateActivationRound = 'delegate__activationRound', - DelegateActivationTimestamp = 'delegate__activationTimestamp', - DelegateActive = 'delegate__active', - DelegateDeactivationRound = 'delegate__deactivationRound', - DelegateFeeShare = 'delegate__feeShare', - DelegateFeeShareUpdateTimestamp = 'delegate__feeShareUpdateTimestamp', - DelegateId = 'delegate__id', - DelegateLastActiveStakeUpdateRound = 'delegate__lastActiveStakeUpdateRound', - DelegateNinetyDayVolumeEth = 'delegate__ninetyDayVolumeETH', - DelegateRewardCaller = 'delegate__rewardCaller', - DelegateRewardCut = 'delegate__rewardCut', - DelegateRewardCutUpdateTimestamp = 'delegate__rewardCutUpdateTimestamp', - DelegateServiceUri = 'delegate__serviceURI', - DelegateSixtyDayVolumeEth = 'delegate__sixtyDayVolumeETH', - DelegateStatus = 'delegate__status', - DelegateThirtyDayVolumeEth = 'delegate__thirtyDayVolumeETH', - DelegateTotalStake = 'delegate__totalStake', - DelegateTotalVolumeEth = 'delegate__totalVolumeETH', - DelegateTotalVolumeUsd = 'delegate__totalVolumeUSD', - DelegatedAmount = 'delegatedAmount', - Fees = 'fees', - Id = 'id', - LastClaimRound = 'lastClaimRound', - LastClaimRoundActiveTranscoderCount = 'lastClaimRound__activeTranscoderCount', - LastClaimRoundDelegatorsCount = 'lastClaimRound__delegatorsCount', - LastClaimRoundEndBlock = 'lastClaimRound__endBlock', - LastClaimRoundId = 'lastClaimRound__id', - LastClaimRoundInflation = 'lastClaimRound__inflation', - LastClaimRoundInitialized = 'lastClaimRound__initialized', - LastClaimRoundLength = 'lastClaimRound__length', - LastClaimRoundMintableTokens = 'lastClaimRound__mintableTokens', - LastClaimRoundMovedStake = 'lastClaimRound__movedStake', - LastClaimRoundNewStake = 'lastClaimRound__newStake', - LastClaimRoundNumActiveTranscoders = 'lastClaimRound__numActiveTranscoders', - LastClaimRoundParticipationRate = 'lastClaimRound__participationRate', - LastClaimRoundStartBlock = 'lastClaimRound__startBlock', - LastClaimRoundStartTimestamp = 'lastClaimRound__startTimestamp', - LastClaimRoundTotalActiveStake = 'lastClaimRound__totalActiveStake', - LastClaimRoundTotalSupply = 'lastClaimRound__totalSupply', - LastClaimRoundVolumeEth = 'lastClaimRound__volumeETH', - LastClaimRoundVolumeUsd = 'lastClaimRound__volumeUSD', - Principal = 'principal', - StartRound = 'startRound', - Unbonded = 'unbonded', - UnbondingLocks = 'unbondingLocks', - WithdrawnFees = 'withdrawnFees' -} - -/** DepositFundedEvent entities are created for every emitted DepositFunded event. */ -export type DepositFundedEvent = Event & { - __typename: 'DepositFundedEvent'; - /** Amount of broadcasting fees deposited */ - amount: Scalars['BigDecimal']; - /** Ethereum transaction hash + event log index */ - id: Scalars['ID']; - /** Reference to the round the event occured in */ - round: Round; - /** Reference to the broadcaster that deposited the broadcasting fees */ - sender: Broadcaster; - /** Timestamp of the transaction the event was included in */ - timestamp: Scalars['Int']; - /** Reference to the transaction the event was included in */ - transaction: Transaction; -}; - -export type DepositFundedEvent_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - amount?: InputMaybe; - amount_gt?: InputMaybe; - amount_gte?: InputMaybe; - amount_in?: InputMaybe>; - amount_lt?: InputMaybe; - amount_lte?: InputMaybe; - amount_not?: InputMaybe; - amount_not_in?: InputMaybe>; - and?: InputMaybe>>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - or?: InputMaybe>>; - round?: InputMaybe; - round_?: InputMaybe; - round_contains?: InputMaybe; - round_contains_nocase?: InputMaybe; - round_ends_with?: InputMaybe; - round_ends_with_nocase?: InputMaybe; - round_gt?: InputMaybe; - round_gte?: InputMaybe; - round_in?: InputMaybe>; - round_lt?: InputMaybe; - round_lte?: InputMaybe; - round_not?: InputMaybe; - round_not_contains?: InputMaybe; - round_not_contains_nocase?: InputMaybe; - round_not_ends_with?: InputMaybe; - round_not_ends_with_nocase?: InputMaybe; - round_not_in?: InputMaybe>; - round_not_starts_with?: InputMaybe; - round_not_starts_with_nocase?: InputMaybe; - round_starts_with?: InputMaybe; - round_starts_with_nocase?: InputMaybe; - sender?: InputMaybe; - sender_?: InputMaybe; - sender_contains?: InputMaybe; - sender_contains_nocase?: InputMaybe; - sender_ends_with?: InputMaybe; - sender_ends_with_nocase?: InputMaybe; - sender_gt?: InputMaybe; - sender_gte?: InputMaybe; - sender_in?: InputMaybe>; - sender_lt?: InputMaybe; - sender_lte?: InputMaybe; - sender_not?: InputMaybe; - sender_not_contains?: InputMaybe; - sender_not_contains_nocase?: InputMaybe; - sender_not_ends_with?: InputMaybe; - sender_not_ends_with_nocase?: InputMaybe; - sender_not_in?: InputMaybe>; - sender_not_starts_with?: InputMaybe; - sender_not_starts_with_nocase?: InputMaybe; - sender_starts_with?: InputMaybe; - sender_starts_with_nocase?: InputMaybe; - timestamp?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not?: InputMaybe; - timestamp_not_in?: InputMaybe>; - transaction?: InputMaybe; - transaction_?: InputMaybe; - transaction_contains?: InputMaybe; - transaction_contains_nocase?: InputMaybe; - transaction_ends_with?: InputMaybe; - transaction_ends_with_nocase?: InputMaybe; - transaction_gt?: InputMaybe; - transaction_gte?: InputMaybe; - transaction_in?: InputMaybe>; - transaction_lt?: InputMaybe; - transaction_lte?: InputMaybe; - transaction_not?: InputMaybe; - transaction_not_contains?: InputMaybe; - transaction_not_contains_nocase?: InputMaybe; - transaction_not_ends_with?: InputMaybe; - transaction_not_ends_with_nocase?: InputMaybe; - transaction_not_in?: InputMaybe>; - transaction_not_starts_with?: InputMaybe; - transaction_not_starts_with_nocase?: InputMaybe; - transaction_starts_with?: InputMaybe; - transaction_starts_with_nocase?: InputMaybe; -}; - -export enum DepositFundedEvent_OrderBy { - Amount = 'amount', - Id = 'id', - Round = 'round', - RoundActiveTranscoderCount = 'round__activeTranscoderCount', - RoundDelegatorsCount = 'round__delegatorsCount', - RoundEndBlock = 'round__endBlock', - RoundId = 'round__id', - RoundInflation = 'round__inflation', - RoundInitialized = 'round__initialized', - RoundLength = 'round__length', - RoundMintableTokens = 'round__mintableTokens', - RoundMovedStake = 'round__movedStake', - RoundNewStake = 'round__newStake', - RoundNumActiveTranscoders = 'round__numActiveTranscoders', - RoundParticipationRate = 'round__participationRate', - RoundStartBlock = 'round__startBlock', - RoundStartTimestamp = 'round__startTimestamp', - RoundTotalActiveStake = 'round__totalActiveStake', - RoundTotalSupply = 'round__totalSupply', - RoundVolumeEth = 'round__volumeETH', - RoundVolumeUsd = 'round__volumeUSD', - Sender = 'sender', - SenderDeposit = 'sender__deposit', - SenderFirstActiveDay = 'sender__firstActiveDay', - SenderFirstFundedDay = 'sender__firstFundedDay', - SenderId = 'sender__id', - SenderLastActiveDay = 'sender__lastActiveDay', - SenderLastFundedDay = 'sender__lastFundedDay', - SenderNinetyDayVolumeEth = 'sender__ninetyDayVolumeETH', - SenderReserve = 'sender__reserve', - SenderSixtyDayVolumeEth = 'sender__sixtyDayVolumeETH', - SenderThirtyDayVolumeEth = 'sender__thirtyDayVolumeETH', - SenderTotalVolumeEth = 'sender__totalVolumeETH', - SenderTotalVolumeUsd = 'sender__totalVolumeUSD', - Timestamp = 'timestamp', - Transaction = 'transaction', - TransactionBlockNumber = 'transaction__blockNumber', - TransactionFrom = 'transaction__from', - TransactionGasPrice = 'transaction__gasPrice', - TransactionGasUsed = 'transaction__gasUsed', - TransactionId = 'transaction__id', - TransactionTimestamp = 'transaction__timestamp', - TransactionTo = 'transaction__to' -} - -/** EarningsClaimedEvent entities are created for every emitted EarningsClaimed event. */ -export type EarningsClaimedEvent = Event & { - __typename: 'EarningsClaimedEvent'; - /** Reference to the delegator's delegate */ - delegate: Transcoder; - /** Reference to the delegator that claimed its earnings */ - delegator: Delegator; - /** Last round that the delegator's pending stake was computed from */ - endRound: Round; - /** Fees claimed by the delegator */ - fees: Scalars['BigDecimal']; - /** Ethereum transaction hash + event log index */ - id: Scalars['ID']; - /** Reward tokens claimed by the delegator */ - rewardTokens: Scalars['BigDecimal']; - /** Reference to the round the event occured in */ - round: Round; - /** First round that the delegator's pending stake was computed from */ - startRound: Scalars['BigInt']; - /** Timestamp of the transaction the event was included in */ - timestamp: Scalars['Int']; - /** Reference to the transaction the event was included in */ - transaction: Transaction; -}; - -export type EarningsClaimedEvent_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - delegate?: InputMaybe; - delegate_?: InputMaybe; - delegate_contains?: InputMaybe; - delegate_contains_nocase?: InputMaybe; - delegate_ends_with?: InputMaybe; - delegate_ends_with_nocase?: InputMaybe; - delegate_gt?: InputMaybe; - delegate_gte?: InputMaybe; - delegate_in?: InputMaybe>; - delegate_lt?: InputMaybe; - delegate_lte?: InputMaybe; - delegate_not?: InputMaybe; - delegate_not_contains?: InputMaybe; - delegate_not_contains_nocase?: InputMaybe; - delegate_not_ends_with?: InputMaybe; - delegate_not_ends_with_nocase?: InputMaybe; - delegate_not_in?: InputMaybe>; - delegate_not_starts_with?: InputMaybe; - delegate_not_starts_with_nocase?: InputMaybe; - delegate_starts_with?: InputMaybe; - delegate_starts_with_nocase?: InputMaybe; - delegator?: InputMaybe; - delegator_?: InputMaybe; - delegator_contains?: InputMaybe; - delegator_contains_nocase?: InputMaybe; - delegator_ends_with?: InputMaybe; - delegator_ends_with_nocase?: InputMaybe; - delegator_gt?: InputMaybe; - delegator_gte?: InputMaybe; - delegator_in?: InputMaybe>; - delegator_lt?: InputMaybe; - delegator_lte?: InputMaybe; - delegator_not?: InputMaybe; - delegator_not_contains?: InputMaybe; - delegator_not_contains_nocase?: InputMaybe; - delegator_not_ends_with?: InputMaybe; - delegator_not_ends_with_nocase?: InputMaybe; - delegator_not_in?: InputMaybe>; - delegator_not_starts_with?: InputMaybe; - delegator_not_starts_with_nocase?: InputMaybe; - delegator_starts_with?: InputMaybe; - delegator_starts_with_nocase?: InputMaybe; - endRound?: InputMaybe; - endRound_?: InputMaybe; - endRound_contains?: InputMaybe; - endRound_contains_nocase?: InputMaybe; - endRound_ends_with?: InputMaybe; - endRound_ends_with_nocase?: InputMaybe; - endRound_gt?: InputMaybe; - endRound_gte?: InputMaybe; - endRound_in?: InputMaybe>; - endRound_lt?: InputMaybe; - endRound_lte?: InputMaybe; - endRound_not?: InputMaybe; - endRound_not_contains?: InputMaybe; - endRound_not_contains_nocase?: InputMaybe; - endRound_not_ends_with?: InputMaybe; - endRound_not_ends_with_nocase?: InputMaybe; - endRound_not_in?: InputMaybe>; - endRound_not_starts_with?: InputMaybe; - endRound_not_starts_with_nocase?: InputMaybe; - endRound_starts_with?: InputMaybe; - endRound_starts_with_nocase?: InputMaybe; - fees?: InputMaybe; - fees_gt?: InputMaybe; - fees_gte?: InputMaybe; - fees_in?: InputMaybe>; - fees_lt?: InputMaybe; - fees_lte?: InputMaybe; - fees_not?: InputMaybe; - fees_not_in?: InputMaybe>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - or?: InputMaybe>>; - rewardTokens?: InputMaybe; - rewardTokens_gt?: InputMaybe; - rewardTokens_gte?: InputMaybe; - rewardTokens_in?: InputMaybe>; - rewardTokens_lt?: InputMaybe; - rewardTokens_lte?: InputMaybe; - rewardTokens_not?: InputMaybe; - rewardTokens_not_in?: InputMaybe>; - round?: InputMaybe; - round_?: InputMaybe; - round_contains?: InputMaybe; - round_contains_nocase?: InputMaybe; - round_ends_with?: InputMaybe; - round_ends_with_nocase?: InputMaybe; - round_gt?: InputMaybe; - round_gte?: InputMaybe; - round_in?: InputMaybe>; - round_lt?: InputMaybe; - round_lte?: InputMaybe; - round_not?: InputMaybe; - round_not_contains?: InputMaybe; - round_not_contains_nocase?: InputMaybe; - round_not_ends_with?: InputMaybe; - round_not_ends_with_nocase?: InputMaybe; - round_not_in?: InputMaybe>; - round_not_starts_with?: InputMaybe; - round_not_starts_with_nocase?: InputMaybe; - round_starts_with?: InputMaybe; - round_starts_with_nocase?: InputMaybe; - startRound?: InputMaybe; - startRound_gt?: InputMaybe; - startRound_gte?: InputMaybe; - startRound_in?: InputMaybe>; - startRound_lt?: InputMaybe; - startRound_lte?: InputMaybe; - startRound_not?: InputMaybe; - startRound_not_in?: InputMaybe>; - timestamp?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not?: InputMaybe; - timestamp_not_in?: InputMaybe>; - transaction?: InputMaybe; - transaction_?: InputMaybe; - transaction_contains?: InputMaybe; - transaction_contains_nocase?: InputMaybe; - transaction_ends_with?: InputMaybe; - transaction_ends_with_nocase?: InputMaybe; - transaction_gt?: InputMaybe; - transaction_gte?: InputMaybe; - transaction_in?: InputMaybe>; - transaction_lt?: InputMaybe; - transaction_lte?: InputMaybe; - transaction_not?: InputMaybe; - transaction_not_contains?: InputMaybe; - transaction_not_contains_nocase?: InputMaybe; - transaction_not_ends_with?: InputMaybe; - transaction_not_ends_with_nocase?: InputMaybe; - transaction_not_in?: InputMaybe>; - transaction_not_starts_with?: InputMaybe; - transaction_not_starts_with_nocase?: InputMaybe; - transaction_starts_with?: InputMaybe; - transaction_starts_with_nocase?: InputMaybe; -}; - -export enum EarningsClaimedEvent_OrderBy { - Delegate = 'delegate', - DelegateActivationRound = 'delegate__activationRound', - DelegateActivationTimestamp = 'delegate__activationTimestamp', - DelegateActive = 'delegate__active', - DelegateDeactivationRound = 'delegate__deactivationRound', - DelegateFeeShare = 'delegate__feeShare', - DelegateFeeShareUpdateTimestamp = 'delegate__feeShareUpdateTimestamp', - DelegateId = 'delegate__id', - DelegateLastActiveStakeUpdateRound = 'delegate__lastActiveStakeUpdateRound', - DelegateNinetyDayVolumeEth = 'delegate__ninetyDayVolumeETH', - DelegateRewardCaller = 'delegate__rewardCaller', - DelegateRewardCut = 'delegate__rewardCut', - DelegateRewardCutUpdateTimestamp = 'delegate__rewardCutUpdateTimestamp', - DelegateServiceUri = 'delegate__serviceURI', - DelegateSixtyDayVolumeEth = 'delegate__sixtyDayVolumeETH', - DelegateStatus = 'delegate__status', - DelegateThirtyDayVolumeEth = 'delegate__thirtyDayVolumeETH', - DelegateTotalStake = 'delegate__totalStake', - DelegateTotalVolumeEth = 'delegate__totalVolumeETH', - DelegateTotalVolumeUsd = 'delegate__totalVolumeUSD', - Delegator = 'delegator', - DelegatorBondedAmount = 'delegator__bondedAmount', - DelegatorDelegatedAmount = 'delegator__delegatedAmount', - DelegatorFees = 'delegator__fees', - DelegatorId = 'delegator__id', - DelegatorPrincipal = 'delegator__principal', - DelegatorStartRound = 'delegator__startRound', - DelegatorUnbonded = 'delegator__unbonded', - DelegatorWithdrawnFees = 'delegator__withdrawnFees', - EndRound = 'endRound', - EndRoundActiveTranscoderCount = 'endRound__activeTranscoderCount', - EndRoundDelegatorsCount = 'endRound__delegatorsCount', - EndRoundEndBlock = 'endRound__endBlock', - EndRoundId = 'endRound__id', - EndRoundInflation = 'endRound__inflation', - EndRoundInitialized = 'endRound__initialized', - EndRoundLength = 'endRound__length', - EndRoundMintableTokens = 'endRound__mintableTokens', - EndRoundMovedStake = 'endRound__movedStake', - EndRoundNewStake = 'endRound__newStake', - EndRoundNumActiveTranscoders = 'endRound__numActiveTranscoders', - EndRoundParticipationRate = 'endRound__participationRate', - EndRoundStartBlock = 'endRound__startBlock', - EndRoundStartTimestamp = 'endRound__startTimestamp', - EndRoundTotalActiveStake = 'endRound__totalActiveStake', - EndRoundTotalSupply = 'endRound__totalSupply', - EndRoundVolumeEth = 'endRound__volumeETH', - EndRoundVolumeUsd = 'endRound__volumeUSD', - Fees = 'fees', - Id = 'id', - RewardTokens = 'rewardTokens', - Round = 'round', - RoundActiveTranscoderCount = 'round__activeTranscoderCount', - RoundDelegatorsCount = 'round__delegatorsCount', - RoundEndBlock = 'round__endBlock', - RoundId = 'round__id', - RoundInflation = 'round__inflation', - RoundInitialized = 'round__initialized', - RoundLength = 'round__length', - RoundMintableTokens = 'round__mintableTokens', - RoundMovedStake = 'round__movedStake', - RoundNewStake = 'round__newStake', - RoundNumActiveTranscoders = 'round__numActiveTranscoders', - RoundParticipationRate = 'round__participationRate', - RoundStartBlock = 'round__startBlock', - RoundStartTimestamp = 'round__startTimestamp', - RoundTotalActiveStake = 'round__totalActiveStake', - RoundTotalSupply = 'round__totalSupply', - RoundVolumeEth = 'round__volumeETH', - RoundVolumeUsd = 'round__volumeUSD', - StartRound = 'startRound', - Timestamp = 'timestamp', - Transaction = 'transaction', - TransactionBlockNumber = 'transaction__blockNumber', - TransactionFrom = 'transaction__from', - TransactionGasPrice = 'transaction__gasPrice', - TransactionGasUsed = 'transaction__gasUsed', - TransactionId = 'transaction__id', - TransactionTimestamp = 'transaction__timestamp', - TransactionTo = 'transaction__to' -} - -export type Event = { - id: Scalars['ID']; - round: Round; - timestamp: Scalars['Int']; - transaction: Transaction; -}; - -export type Event_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - or?: InputMaybe>>; - round?: InputMaybe; - round_?: InputMaybe; - round_contains?: InputMaybe; - round_contains_nocase?: InputMaybe; - round_ends_with?: InputMaybe; - round_ends_with_nocase?: InputMaybe; - round_gt?: InputMaybe; - round_gte?: InputMaybe; - round_in?: InputMaybe>; - round_lt?: InputMaybe; - round_lte?: InputMaybe; - round_not?: InputMaybe; - round_not_contains?: InputMaybe; - round_not_contains_nocase?: InputMaybe; - round_not_ends_with?: InputMaybe; - round_not_ends_with_nocase?: InputMaybe; - round_not_in?: InputMaybe>; - round_not_starts_with?: InputMaybe; - round_not_starts_with_nocase?: InputMaybe; - round_starts_with?: InputMaybe; - round_starts_with_nocase?: InputMaybe; - timestamp?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not?: InputMaybe; - timestamp_not_in?: InputMaybe>; - transaction?: InputMaybe; - transaction_?: InputMaybe; - transaction_contains?: InputMaybe; - transaction_contains_nocase?: InputMaybe; - transaction_ends_with?: InputMaybe; - transaction_ends_with_nocase?: InputMaybe; - transaction_gt?: InputMaybe; - transaction_gte?: InputMaybe; - transaction_in?: InputMaybe>; - transaction_lt?: InputMaybe; - transaction_lte?: InputMaybe; - transaction_not?: InputMaybe; - transaction_not_contains?: InputMaybe; - transaction_not_contains_nocase?: InputMaybe; - transaction_not_ends_with?: InputMaybe; - transaction_not_ends_with_nocase?: InputMaybe; - transaction_not_in?: InputMaybe>; - transaction_not_starts_with?: InputMaybe; - transaction_not_starts_with_nocase?: InputMaybe; - transaction_starts_with?: InputMaybe; - transaction_starts_with_nocase?: InputMaybe; -}; - -export enum Event_OrderBy { - Id = 'id', - Round = 'round', - RoundActiveTranscoderCount = 'round__activeTranscoderCount', - RoundDelegatorsCount = 'round__delegatorsCount', - RoundEndBlock = 'round__endBlock', - RoundId = 'round__id', - RoundInflation = 'round__inflation', - RoundInitialized = 'round__initialized', - RoundLength = 'round__length', - RoundMintableTokens = 'round__mintableTokens', - RoundMovedStake = 'round__movedStake', - RoundNewStake = 'round__newStake', - RoundNumActiveTranscoders = 'round__numActiveTranscoders', - RoundParticipationRate = 'round__participationRate', - RoundStartBlock = 'round__startBlock', - RoundStartTimestamp = 'round__startTimestamp', - RoundTotalActiveStake = 'round__totalActiveStake', - RoundTotalSupply = 'round__totalSupply', - RoundVolumeEth = 'round__volumeETH', - RoundVolumeUsd = 'round__volumeUSD', - Timestamp = 'timestamp', - Transaction = 'transaction', - TransactionBlockNumber = 'transaction__blockNumber', - TransactionFrom = 'transaction__from', - TransactionGasPrice = 'transaction__gasPrice', - TransactionGasUsed = 'transaction__gasUsed', - TransactionId = 'transaction__id', - TransactionTimestamp = 'transaction__timestamp', - TransactionTo = 'transaction__to' -} - -/** Abstraction for accounts/delegators bonded with the protocol */ -export type LivepeerAccount = { - __typename: 'LivepeerAccount'; - /** Reference to the Delegate this address is bonded to */ - delegate?: Maybe; - /** Delegator details for this account */ - delegator?: Maybe; - /** ETH address of the bonded delegator */ - id: Scalars['ID']; - /** The date the account was last associated with an event, beginning at 12:00am UTC */ - lastUpdatedTimestamp: Scalars['Int']; -}; - -export type LivepeerAccount_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - delegate?: InputMaybe; - delegate_?: InputMaybe; - delegate_contains?: InputMaybe; - delegate_contains_nocase?: InputMaybe; - delegate_ends_with?: InputMaybe; - delegate_ends_with_nocase?: InputMaybe; - delegate_gt?: InputMaybe; - delegate_gte?: InputMaybe; - delegate_in?: InputMaybe>; - delegate_lt?: InputMaybe; - delegate_lte?: InputMaybe; - delegate_not?: InputMaybe; - delegate_not_contains?: InputMaybe; - delegate_not_contains_nocase?: InputMaybe; - delegate_not_ends_with?: InputMaybe; - delegate_not_ends_with_nocase?: InputMaybe; - delegate_not_in?: InputMaybe>; - delegate_not_starts_with?: InputMaybe; - delegate_not_starts_with_nocase?: InputMaybe; - delegate_starts_with?: InputMaybe; - delegate_starts_with_nocase?: InputMaybe; - delegator?: InputMaybe; - delegator_?: InputMaybe; - delegator_contains?: InputMaybe; - delegator_contains_nocase?: InputMaybe; - delegator_ends_with?: InputMaybe; - delegator_ends_with_nocase?: InputMaybe; - delegator_gt?: InputMaybe; - delegator_gte?: InputMaybe; - delegator_in?: InputMaybe>; - delegator_lt?: InputMaybe; - delegator_lte?: InputMaybe; - delegator_not?: InputMaybe; - delegator_not_contains?: InputMaybe; - delegator_not_contains_nocase?: InputMaybe; - delegator_not_ends_with?: InputMaybe; - delegator_not_ends_with_nocase?: InputMaybe; - delegator_not_in?: InputMaybe>; - delegator_not_starts_with?: InputMaybe; - delegator_not_starts_with_nocase?: InputMaybe; - delegator_starts_with?: InputMaybe; - delegator_starts_with_nocase?: InputMaybe; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - lastUpdatedTimestamp?: InputMaybe; - lastUpdatedTimestamp_gt?: InputMaybe; - lastUpdatedTimestamp_gte?: InputMaybe; - lastUpdatedTimestamp_in?: InputMaybe>; - lastUpdatedTimestamp_lt?: InputMaybe; - lastUpdatedTimestamp_lte?: InputMaybe; - lastUpdatedTimestamp_not?: InputMaybe; - lastUpdatedTimestamp_not_in?: InputMaybe>; - or?: InputMaybe>>; -}; - -export enum LivepeerAccount_OrderBy { - Delegate = 'delegate', - DelegateActivationRound = 'delegate__activationRound', - DelegateActivationTimestamp = 'delegate__activationTimestamp', - DelegateActive = 'delegate__active', - DelegateDeactivationRound = 'delegate__deactivationRound', - DelegateFeeShare = 'delegate__feeShare', - DelegateFeeShareUpdateTimestamp = 'delegate__feeShareUpdateTimestamp', - DelegateId = 'delegate__id', - DelegateLastActiveStakeUpdateRound = 'delegate__lastActiveStakeUpdateRound', - DelegateNinetyDayVolumeEth = 'delegate__ninetyDayVolumeETH', - DelegateRewardCaller = 'delegate__rewardCaller', - DelegateRewardCut = 'delegate__rewardCut', - DelegateRewardCutUpdateTimestamp = 'delegate__rewardCutUpdateTimestamp', - DelegateServiceUri = 'delegate__serviceURI', - DelegateSixtyDayVolumeEth = 'delegate__sixtyDayVolumeETH', - DelegateStatus = 'delegate__status', - DelegateThirtyDayVolumeEth = 'delegate__thirtyDayVolumeETH', - DelegateTotalStake = 'delegate__totalStake', - DelegateTotalVolumeEth = 'delegate__totalVolumeETH', - DelegateTotalVolumeUsd = 'delegate__totalVolumeUSD', - Delegator = 'delegator', - DelegatorBondedAmount = 'delegator__bondedAmount', - DelegatorDelegatedAmount = 'delegator__delegatedAmount', - DelegatorFees = 'delegator__fees', - DelegatorId = 'delegator__id', - DelegatorPrincipal = 'delegator__principal', - DelegatorStartRound = 'delegator__startRound', - DelegatorUnbonded = 'delegator__unbonded', - DelegatorWithdrawnFees = 'delegator__withdrawnFees', - Id = 'id', - LastUpdatedTimestamp = 'lastUpdatedTimestamp' -} - -/** - * The severity level of a log entry. - * Log levels are ordered from most to least severe: CRITICAL > ERROR > WARNING > INFO > DEBUG - */ -export enum LogLevel { - /** Critical errors that require immediate attention */ - Critical = 'CRITICAL', - /** Detailed diagnostic information for debugging */ - Debug = 'DEBUG', - /** Error conditions that indicate a failure */ - Error = 'ERROR', - /** Informational messages about normal operations */ - Info = 'INFO', - /** Warning conditions that may require attention */ - Warning = 'WARNING' -} - -/** MigrateDelegatorFinalizedEvent entities are created for every emitted WithdrawStake event. */ -export type MigrateDelegatorFinalizedEvent = Event & { - __typename: 'MigrateDelegatorFinalizedEvent'; - delegate: Scalars['String']; - delegatedStake: Scalars['BigDecimal']; - fees: Scalars['BigDecimal']; - /** Ethereum transaction hash + event log index */ - id: Scalars['ID']; - l1Addr: Scalars['String']; - l2Addr: Scalars['String']; - /** Reference to the round the event occured in */ - round: Round; - stake: Scalars['BigDecimal']; - /** Timestamp of the transaction the event was included in */ - timestamp: Scalars['Int']; - /** Reference to the transaction the event was included in */ - transaction: Transaction; -}; - -export type MigrateDelegatorFinalizedEvent_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - delegate?: InputMaybe; - delegate_contains?: InputMaybe; - delegate_contains_nocase?: InputMaybe; - delegate_ends_with?: InputMaybe; - delegate_ends_with_nocase?: InputMaybe; - delegate_gt?: InputMaybe; - delegate_gte?: InputMaybe; - delegate_in?: InputMaybe>; - delegate_lt?: InputMaybe; - delegate_lte?: InputMaybe; - delegate_not?: InputMaybe; - delegate_not_contains?: InputMaybe; - delegate_not_contains_nocase?: InputMaybe; - delegate_not_ends_with?: InputMaybe; - delegate_not_ends_with_nocase?: InputMaybe; - delegate_not_in?: InputMaybe>; - delegate_not_starts_with?: InputMaybe; - delegate_not_starts_with_nocase?: InputMaybe; - delegate_starts_with?: InputMaybe; - delegate_starts_with_nocase?: InputMaybe; - delegatedStake?: InputMaybe; - delegatedStake_gt?: InputMaybe; - delegatedStake_gte?: InputMaybe; - delegatedStake_in?: InputMaybe>; - delegatedStake_lt?: InputMaybe; - delegatedStake_lte?: InputMaybe; - delegatedStake_not?: InputMaybe; - delegatedStake_not_in?: InputMaybe>; - fees?: InputMaybe; - fees_gt?: InputMaybe; - fees_gte?: InputMaybe; - fees_in?: InputMaybe>; - fees_lt?: InputMaybe; - fees_lte?: InputMaybe; - fees_not?: InputMaybe; - fees_not_in?: InputMaybe>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - l1Addr?: InputMaybe; - l1Addr_contains?: InputMaybe; - l1Addr_contains_nocase?: InputMaybe; - l1Addr_ends_with?: InputMaybe; - l1Addr_ends_with_nocase?: InputMaybe; - l1Addr_gt?: InputMaybe; - l1Addr_gte?: InputMaybe; - l1Addr_in?: InputMaybe>; - l1Addr_lt?: InputMaybe; - l1Addr_lte?: InputMaybe; - l1Addr_not?: InputMaybe; - l1Addr_not_contains?: InputMaybe; - l1Addr_not_contains_nocase?: InputMaybe; - l1Addr_not_ends_with?: InputMaybe; - l1Addr_not_ends_with_nocase?: InputMaybe; - l1Addr_not_in?: InputMaybe>; - l1Addr_not_starts_with?: InputMaybe; - l1Addr_not_starts_with_nocase?: InputMaybe; - l1Addr_starts_with?: InputMaybe; - l1Addr_starts_with_nocase?: InputMaybe; - l2Addr?: InputMaybe; - l2Addr_contains?: InputMaybe; - l2Addr_contains_nocase?: InputMaybe; - l2Addr_ends_with?: InputMaybe; - l2Addr_ends_with_nocase?: InputMaybe; - l2Addr_gt?: InputMaybe; - l2Addr_gte?: InputMaybe; - l2Addr_in?: InputMaybe>; - l2Addr_lt?: InputMaybe; - l2Addr_lte?: InputMaybe; - l2Addr_not?: InputMaybe; - l2Addr_not_contains?: InputMaybe; - l2Addr_not_contains_nocase?: InputMaybe; - l2Addr_not_ends_with?: InputMaybe; - l2Addr_not_ends_with_nocase?: InputMaybe; - l2Addr_not_in?: InputMaybe>; - l2Addr_not_starts_with?: InputMaybe; - l2Addr_not_starts_with_nocase?: InputMaybe; - l2Addr_starts_with?: InputMaybe; - l2Addr_starts_with_nocase?: InputMaybe; - or?: InputMaybe>>; - round?: InputMaybe; - round_?: InputMaybe; - round_contains?: InputMaybe; - round_contains_nocase?: InputMaybe; - round_ends_with?: InputMaybe; - round_ends_with_nocase?: InputMaybe; - round_gt?: InputMaybe; - round_gte?: InputMaybe; - round_in?: InputMaybe>; - round_lt?: InputMaybe; - round_lte?: InputMaybe; - round_not?: InputMaybe; - round_not_contains?: InputMaybe; - round_not_contains_nocase?: InputMaybe; - round_not_ends_with?: InputMaybe; - round_not_ends_with_nocase?: InputMaybe; - round_not_in?: InputMaybe>; - round_not_starts_with?: InputMaybe; - round_not_starts_with_nocase?: InputMaybe; - round_starts_with?: InputMaybe; - round_starts_with_nocase?: InputMaybe; - stake?: InputMaybe; - stake_gt?: InputMaybe; - stake_gte?: InputMaybe; - stake_in?: InputMaybe>; - stake_lt?: InputMaybe; - stake_lte?: InputMaybe; - stake_not?: InputMaybe; - stake_not_in?: InputMaybe>; - timestamp?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not?: InputMaybe; - timestamp_not_in?: InputMaybe>; - transaction?: InputMaybe; - transaction_?: InputMaybe; - transaction_contains?: InputMaybe; - transaction_contains_nocase?: InputMaybe; - transaction_ends_with?: InputMaybe; - transaction_ends_with_nocase?: InputMaybe; - transaction_gt?: InputMaybe; - transaction_gte?: InputMaybe; - transaction_in?: InputMaybe>; - transaction_lt?: InputMaybe; - transaction_lte?: InputMaybe; - transaction_not?: InputMaybe; - transaction_not_contains?: InputMaybe; - transaction_not_contains_nocase?: InputMaybe; - transaction_not_ends_with?: InputMaybe; - transaction_not_ends_with_nocase?: InputMaybe; - transaction_not_in?: InputMaybe>; - transaction_not_starts_with?: InputMaybe; - transaction_not_starts_with_nocase?: InputMaybe; - transaction_starts_with?: InputMaybe; - transaction_starts_with_nocase?: InputMaybe; -}; - -export enum MigrateDelegatorFinalizedEvent_OrderBy { - Delegate = 'delegate', - DelegatedStake = 'delegatedStake', - Fees = 'fees', - Id = 'id', - L1Addr = 'l1Addr', - L2Addr = 'l2Addr', - Round = 'round', - RoundActiveTranscoderCount = 'round__activeTranscoderCount', - RoundDelegatorsCount = 'round__delegatorsCount', - RoundEndBlock = 'round__endBlock', - RoundId = 'round__id', - RoundInflation = 'round__inflation', - RoundInitialized = 'round__initialized', - RoundLength = 'round__length', - RoundMintableTokens = 'round__mintableTokens', - RoundMovedStake = 'round__movedStake', - RoundNewStake = 'round__newStake', - RoundNumActiveTranscoders = 'round__numActiveTranscoders', - RoundParticipationRate = 'round__participationRate', - RoundStartBlock = 'round__startBlock', - RoundStartTimestamp = 'round__startTimestamp', - RoundTotalActiveStake = 'round__totalActiveStake', - RoundTotalSupply = 'round__totalSupply', - RoundVolumeEth = 'round__volumeETH', - RoundVolumeUsd = 'round__volumeUSD', - Stake = 'stake', - Timestamp = 'timestamp', - Transaction = 'transaction', - TransactionBlockNumber = 'transaction__blockNumber', - TransactionFrom = 'transaction__from', - TransactionGasPrice = 'transaction__gasPrice', - TransactionGasUsed = 'transaction__gasUsed', - TransactionId = 'transaction__id', - TransactionTimestamp = 'transaction__timestamp', - TransactionTo = 'transaction__to' -} - -/** MintEvent entities are created for every emitted Mint event. */ -export type MintEvent = Event & { - __typename: 'MintEvent'; - /** Amount of tokens minted */ - amount: Scalars['BigDecimal']; - /** Ethereum transaction hash + event log index */ - id: Scalars['ID']; - /** Reference to the round the event occured in */ - round: Round; - /** Timestamp of the transaction the event was included in */ - timestamp: Scalars['Int']; - /** Token smart contract address */ - to: Scalars['String']; - /** Reference to the transaction the event was included in */ - transaction: Transaction; -}; - -export type MintEvent_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - amount?: InputMaybe; - amount_gt?: InputMaybe; - amount_gte?: InputMaybe; - amount_in?: InputMaybe>; - amount_lt?: InputMaybe; - amount_lte?: InputMaybe; - amount_not?: InputMaybe; - amount_not_in?: InputMaybe>; - and?: InputMaybe>>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - or?: InputMaybe>>; - round?: InputMaybe; - round_?: InputMaybe; - round_contains?: InputMaybe; - round_contains_nocase?: InputMaybe; - round_ends_with?: InputMaybe; - round_ends_with_nocase?: InputMaybe; - round_gt?: InputMaybe; - round_gte?: InputMaybe; - round_in?: InputMaybe>; - round_lt?: InputMaybe; - round_lte?: InputMaybe; - round_not?: InputMaybe; - round_not_contains?: InputMaybe; - round_not_contains_nocase?: InputMaybe; - round_not_ends_with?: InputMaybe; - round_not_ends_with_nocase?: InputMaybe; - round_not_in?: InputMaybe>; - round_not_starts_with?: InputMaybe; - round_not_starts_with_nocase?: InputMaybe; - round_starts_with?: InputMaybe; - round_starts_with_nocase?: InputMaybe; - timestamp?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not?: InputMaybe; - timestamp_not_in?: InputMaybe>; - to?: InputMaybe; - to_contains?: InputMaybe; - to_contains_nocase?: InputMaybe; - to_ends_with?: InputMaybe; - to_ends_with_nocase?: InputMaybe; - to_gt?: InputMaybe; - to_gte?: InputMaybe; - to_in?: InputMaybe>; - to_lt?: InputMaybe; - to_lte?: InputMaybe; - to_not?: InputMaybe; - to_not_contains?: InputMaybe; - to_not_contains_nocase?: InputMaybe; - to_not_ends_with?: InputMaybe; - to_not_ends_with_nocase?: InputMaybe; - to_not_in?: InputMaybe>; - to_not_starts_with?: InputMaybe; - to_not_starts_with_nocase?: InputMaybe; - to_starts_with?: InputMaybe; - to_starts_with_nocase?: InputMaybe; - transaction?: InputMaybe; - transaction_?: InputMaybe; - transaction_contains?: InputMaybe; - transaction_contains_nocase?: InputMaybe; - transaction_ends_with?: InputMaybe; - transaction_ends_with_nocase?: InputMaybe; - transaction_gt?: InputMaybe; - transaction_gte?: InputMaybe; - transaction_in?: InputMaybe>; - transaction_lt?: InputMaybe; - transaction_lte?: InputMaybe; - transaction_not?: InputMaybe; - transaction_not_contains?: InputMaybe; - transaction_not_contains_nocase?: InputMaybe; - transaction_not_ends_with?: InputMaybe; - transaction_not_ends_with_nocase?: InputMaybe; - transaction_not_in?: InputMaybe>; - transaction_not_starts_with?: InputMaybe; - transaction_not_starts_with_nocase?: InputMaybe; - transaction_starts_with?: InputMaybe; - transaction_starts_with_nocase?: InputMaybe; -}; - -export enum MintEvent_OrderBy { - Amount = 'amount', - Id = 'id', - Round = 'round', - RoundActiveTranscoderCount = 'round__activeTranscoderCount', - RoundDelegatorsCount = 'round__delegatorsCount', - RoundEndBlock = 'round__endBlock', - RoundId = 'round__id', - RoundInflation = 'round__inflation', - RoundInitialized = 'round__initialized', - RoundLength = 'round__length', - RoundMintableTokens = 'round__mintableTokens', - RoundMovedStake = 'round__movedStake', - RoundNewStake = 'round__newStake', - RoundNumActiveTranscoders = 'round__numActiveTranscoders', - RoundParticipationRate = 'round__participationRate', - RoundStartBlock = 'round__startBlock', - RoundStartTimestamp = 'round__startTimestamp', - RoundTotalActiveStake = 'round__totalActiveStake', - RoundTotalSupply = 'round__totalSupply', - RoundVolumeEth = 'round__volumeETH', - RoundVolumeUsd = 'round__volumeUSD', - Timestamp = 'timestamp', - To = 'to', - Transaction = 'transaction', - TransactionBlockNumber = 'transaction__blockNumber', - TransactionFrom = 'transaction__from', - TransactionGasPrice = 'transaction__gasPrice', - TransactionGasUsed = 'transaction__gasUsed', - TransactionId = 'transaction__id', - TransactionTimestamp = 'transaction__timestamp', - TransactionTo = 'transaction__to' -} - -/** NewRoundEvent entities are created for every emitted NewRound event. */ -export type NewRoundEvent = Event & { - __typename: 'NewRoundEvent'; - /** Block hash for the round */ - blockHash: Scalars['String']; - /** Ethereum transaction hash + event log index */ - id: Scalars['ID']; - /** Reference to the round the event occured in */ - round: Round; - /** Timestamp of the transaction the event was included in */ - timestamp: Scalars['Int']; - /** Reference to the transaction the event was included in */ - transaction: Transaction; -}; - -export type NewRoundEvent_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - blockHash?: InputMaybe; - blockHash_contains?: InputMaybe; - blockHash_contains_nocase?: InputMaybe; - blockHash_ends_with?: InputMaybe; - blockHash_ends_with_nocase?: InputMaybe; - blockHash_gt?: InputMaybe; - blockHash_gte?: InputMaybe; - blockHash_in?: InputMaybe>; - blockHash_lt?: InputMaybe; - blockHash_lte?: InputMaybe; - blockHash_not?: InputMaybe; - blockHash_not_contains?: InputMaybe; - blockHash_not_contains_nocase?: InputMaybe; - blockHash_not_ends_with?: InputMaybe; - blockHash_not_ends_with_nocase?: InputMaybe; - blockHash_not_in?: InputMaybe>; - blockHash_not_starts_with?: InputMaybe; - blockHash_not_starts_with_nocase?: InputMaybe; - blockHash_starts_with?: InputMaybe; - blockHash_starts_with_nocase?: InputMaybe; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - or?: InputMaybe>>; - round?: InputMaybe; - round_?: InputMaybe; - round_contains?: InputMaybe; - round_contains_nocase?: InputMaybe; - round_ends_with?: InputMaybe; - round_ends_with_nocase?: InputMaybe; - round_gt?: InputMaybe; - round_gte?: InputMaybe; - round_in?: InputMaybe>; - round_lt?: InputMaybe; - round_lte?: InputMaybe; - round_not?: InputMaybe; - round_not_contains?: InputMaybe; - round_not_contains_nocase?: InputMaybe; - round_not_ends_with?: InputMaybe; - round_not_ends_with_nocase?: InputMaybe; - round_not_in?: InputMaybe>; - round_not_starts_with?: InputMaybe; - round_not_starts_with_nocase?: InputMaybe; - round_starts_with?: InputMaybe; - round_starts_with_nocase?: InputMaybe; - timestamp?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not?: InputMaybe; - timestamp_not_in?: InputMaybe>; - transaction?: InputMaybe; - transaction_?: InputMaybe; - transaction_contains?: InputMaybe; - transaction_contains_nocase?: InputMaybe; - transaction_ends_with?: InputMaybe; - transaction_ends_with_nocase?: InputMaybe; - transaction_gt?: InputMaybe; - transaction_gte?: InputMaybe; - transaction_in?: InputMaybe>; - transaction_lt?: InputMaybe; - transaction_lte?: InputMaybe; - transaction_not?: InputMaybe; - transaction_not_contains?: InputMaybe; - transaction_not_contains_nocase?: InputMaybe; - transaction_not_ends_with?: InputMaybe; - transaction_not_ends_with_nocase?: InputMaybe; - transaction_not_in?: InputMaybe>; - transaction_not_starts_with?: InputMaybe; - transaction_not_starts_with_nocase?: InputMaybe; - transaction_starts_with?: InputMaybe; - transaction_starts_with_nocase?: InputMaybe; -}; - -export enum NewRoundEvent_OrderBy { - BlockHash = 'blockHash', - Id = 'id', - Round = 'round', - RoundActiveTranscoderCount = 'round__activeTranscoderCount', - RoundDelegatorsCount = 'round__delegatorsCount', - RoundEndBlock = 'round__endBlock', - RoundId = 'round__id', - RoundInflation = 'round__inflation', - RoundInitialized = 'round__initialized', - RoundLength = 'round__length', - RoundMintableTokens = 'round__mintableTokens', - RoundMovedStake = 'round__movedStake', - RoundNewStake = 'round__newStake', - RoundNumActiveTranscoders = 'round__numActiveTranscoders', - RoundParticipationRate = 'round__participationRate', - RoundStartBlock = 'round__startBlock', - RoundStartTimestamp = 'round__startTimestamp', - RoundTotalActiveStake = 'round__totalActiveStake', - RoundTotalSupply = 'round__totalSupply', - RoundVolumeEth = 'round__volumeETH', - RoundVolumeUsd = 'round__volumeUSD', - Timestamp = 'timestamp', - Transaction = 'transaction', - TransactionBlockNumber = 'transaction__blockNumber', - TransactionFrom = 'transaction__from', - TransactionGasPrice = 'transaction__gasPrice', - TransactionGasUsed = 'transaction__gasUsed', - TransactionId = 'transaction__id', - TransactionTimestamp = 'transaction__timestamp', - TransactionTo = 'transaction__to' -} - -/** Defines the order direction, either ascending or descending */ -export enum OrderDirection { - Asc = 'asc', - Desc = 'desc' -} - -/** ParameterUpdateEvent entities are created for every emitted ParameterUpdate event. */ -export type ParameterUpdateEvent = Event & { - __typename: 'ParameterUpdateEvent'; - /** Ethereum transaction hash + event log index */ - id: Scalars['ID']; - /** Parameter that was updated */ - param: Scalars['String']; - /** Reference to the round the event occured in */ - round: Round; - /** Timestamp of the transaction the event was included in */ - timestamp: Scalars['Int']; - /** Reference to the transaction the event was included in */ - transaction: Transaction; -}; - -export type ParameterUpdateEvent_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - or?: InputMaybe>>; - param?: InputMaybe; - param_contains?: InputMaybe; - param_contains_nocase?: InputMaybe; - param_ends_with?: InputMaybe; - param_ends_with_nocase?: InputMaybe; - param_gt?: InputMaybe; - param_gte?: InputMaybe; - param_in?: InputMaybe>; - param_lt?: InputMaybe; - param_lte?: InputMaybe; - param_not?: InputMaybe; - param_not_contains?: InputMaybe; - param_not_contains_nocase?: InputMaybe; - param_not_ends_with?: InputMaybe; - param_not_ends_with_nocase?: InputMaybe; - param_not_in?: InputMaybe>; - param_not_starts_with?: InputMaybe; - param_not_starts_with_nocase?: InputMaybe; - param_starts_with?: InputMaybe; - param_starts_with_nocase?: InputMaybe; - round?: InputMaybe; - round_?: InputMaybe; - round_contains?: InputMaybe; - round_contains_nocase?: InputMaybe; - round_ends_with?: InputMaybe; - round_ends_with_nocase?: InputMaybe; - round_gt?: InputMaybe; - round_gte?: InputMaybe; - round_in?: InputMaybe>; - round_lt?: InputMaybe; - round_lte?: InputMaybe; - round_not?: InputMaybe; - round_not_contains?: InputMaybe; - round_not_contains_nocase?: InputMaybe; - round_not_ends_with?: InputMaybe; - round_not_ends_with_nocase?: InputMaybe; - round_not_in?: InputMaybe>; - round_not_starts_with?: InputMaybe; - round_not_starts_with_nocase?: InputMaybe; - round_starts_with?: InputMaybe; - round_starts_with_nocase?: InputMaybe; - timestamp?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not?: InputMaybe; - timestamp_not_in?: InputMaybe>; - transaction?: InputMaybe; - transaction_?: InputMaybe; - transaction_contains?: InputMaybe; - transaction_contains_nocase?: InputMaybe; - transaction_ends_with?: InputMaybe; - transaction_ends_with_nocase?: InputMaybe; - transaction_gt?: InputMaybe; - transaction_gte?: InputMaybe; - transaction_in?: InputMaybe>; - transaction_lt?: InputMaybe; - transaction_lte?: InputMaybe; - transaction_not?: InputMaybe; - transaction_not_contains?: InputMaybe; - transaction_not_contains_nocase?: InputMaybe; - transaction_not_ends_with?: InputMaybe; - transaction_not_ends_with_nocase?: InputMaybe; - transaction_not_in?: InputMaybe>; - transaction_not_starts_with?: InputMaybe; - transaction_not_starts_with_nocase?: InputMaybe; - transaction_starts_with?: InputMaybe; - transaction_starts_with_nocase?: InputMaybe; -}; - -export enum ParameterUpdateEvent_OrderBy { - Id = 'id', - Param = 'param', - Round = 'round', - RoundActiveTranscoderCount = 'round__activeTranscoderCount', - RoundDelegatorsCount = 'round__delegatorsCount', - RoundEndBlock = 'round__endBlock', - RoundId = 'round__id', - RoundInflation = 'round__inflation', - RoundInitialized = 'round__initialized', - RoundLength = 'round__length', - RoundMintableTokens = 'round__mintableTokens', - RoundMovedStake = 'round__movedStake', - RoundNewStake = 'round__newStake', - RoundNumActiveTranscoders = 'round__numActiveTranscoders', - RoundParticipationRate = 'round__participationRate', - RoundStartBlock = 'round__startBlock', - RoundStartTimestamp = 'round__startTimestamp', - RoundTotalActiveStake = 'round__totalActiveStake', - RoundTotalSupply = 'round__totalSupply', - RoundVolumeEth = 'round__volumeETH', - RoundVolumeUsd = 'round__volumeUSD', - Timestamp = 'timestamp', - Transaction = 'transaction', - TransactionBlockNumber = 'transaction__blockNumber', - TransactionFrom = 'transaction__from', - TransactionGasPrice = 'transaction__gasPrice', - TransactionGasUsed = 'transaction__gasUsed', - TransactionId = 'transaction__id', - TransactionTimestamp = 'transaction__timestamp', - TransactionTo = 'transaction__to' -} - -/** PauseEvent entities are created for every emitted Pause event. */ -export type PauseEvent = Event & { - __typename: 'PauseEvent'; - /** Ethereum transaction hash + event log index */ - id: Scalars['ID']; - /** Reference to the round the event occured in */ - round: Round; - /** Timestamp of the transaction the event was included in */ - timestamp: Scalars['Int']; - /** Reference to the transaction the event was included in */ - transaction: Transaction; -}; - -export type PauseEvent_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - or?: InputMaybe>>; - round?: InputMaybe; - round_?: InputMaybe; - round_contains?: InputMaybe; - round_contains_nocase?: InputMaybe; - round_ends_with?: InputMaybe; - round_ends_with_nocase?: InputMaybe; - round_gt?: InputMaybe; - round_gte?: InputMaybe; - round_in?: InputMaybe>; - round_lt?: InputMaybe; - round_lte?: InputMaybe; - round_not?: InputMaybe; - round_not_contains?: InputMaybe; - round_not_contains_nocase?: InputMaybe; - round_not_ends_with?: InputMaybe; - round_not_ends_with_nocase?: InputMaybe; - round_not_in?: InputMaybe>; - round_not_starts_with?: InputMaybe; - round_not_starts_with_nocase?: InputMaybe; - round_starts_with?: InputMaybe; - round_starts_with_nocase?: InputMaybe; - timestamp?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not?: InputMaybe; - timestamp_not_in?: InputMaybe>; - transaction?: InputMaybe; - transaction_?: InputMaybe; - transaction_contains?: InputMaybe; - transaction_contains_nocase?: InputMaybe; - transaction_ends_with?: InputMaybe; - transaction_ends_with_nocase?: InputMaybe; - transaction_gt?: InputMaybe; - transaction_gte?: InputMaybe; - transaction_in?: InputMaybe>; - transaction_lt?: InputMaybe; - transaction_lte?: InputMaybe; - transaction_not?: InputMaybe; - transaction_not_contains?: InputMaybe; - transaction_not_contains_nocase?: InputMaybe; - transaction_not_ends_with?: InputMaybe; - transaction_not_ends_with_nocase?: InputMaybe; - transaction_not_in?: InputMaybe>; - transaction_not_starts_with?: InputMaybe; - transaction_not_starts_with_nocase?: InputMaybe; - transaction_starts_with?: InputMaybe; - transaction_starts_with_nocase?: InputMaybe; -}; - -export enum PauseEvent_OrderBy { - Id = 'id', - Round = 'round', - RoundActiveTranscoderCount = 'round__activeTranscoderCount', - RoundDelegatorsCount = 'round__delegatorsCount', - RoundEndBlock = 'round__endBlock', - RoundId = 'round__id', - RoundInflation = 'round__inflation', - RoundInitialized = 'round__initialized', - RoundLength = 'round__length', - RoundMintableTokens = 'round__mintableTokens', - RoundMovedStake = 'round__movedStake', - RoundNewStake = 'round__newStake', - RoundNumActiveTranscoders = 'round__numActiveTranscoders', - RoundParticipationRate = 'round__participationRate', - RoundStartBlock = 'round__startBlock', - RoundStartTimestamp = 'round__startTimestamp', - RoundTotalActiveStake = 'round__totalActiveStake', - RoundTotalSupply = 'round__totalSupply', - RoundVolumeEth = 'round__volumeETH', - RoundVolumeUsd = 'round__volumeUSD', - Timestamp = 'timestamp', - Transaction = 'transaction', - TransactionBlockNumber = 'transaction__blockNumber', - TransactionFrom = 'transaction__from', - TransactionGasPrice = 'transaction__gasPrice', - TransactionGasUsed = 'transaction__gasUsed', - TransactionId = 'transaction__id', - TransactionTimestamp = 'transaction__timestamp', - TransactionTo = 'transaction__to' -} - -/** Stake weighted poll */ -export type Poll = { - __typename: 'Poll'; - /** Block at which the poll ends and votes can no longer be submitted */ - endBlock: Scalars['BigInt']; - /** Poll address */ - id: Scalars['ID']; - /** IPFS multihash for the proposal */ - proposal: Scalars['String']; - /** Minimum amount of participation (total stake including inactive stake) required for a poll to pass */ - quorum: Scalars['BigInt']; - /** Minimum amount of yes votes required for a poll to pass */ - quota: Scalars['BigInt']; - /** Poll tally */ - tally?: Maybe; - /** Votes belonging to a poll */ - votes: Array; -}; - - -/** Stake weighted poll */ -export type PollVotesArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - -export enum PollChoice { - No = 'No', - Yes = 'Yes' -} - -/** PollCreatedEvent entities are created for every emitted PollCreated event. */ -export type PollCreatedEvent = Event & { - __typename: 'PollCreatedEvent'; - /** Ethereum block in which this poll ends */ - endBlock: Scalars['BigInt']; - /** Ethereum transaction hash + event log index */ - id: Scalars['ID']; - /** Reference to the poll that was created */ - poll: Poll; - /** IPFS content hash representing proposal */ - proposal: Scalars['Bytes']; - /** The minimum amount of stake-weighted votes for this poll's outcome to be considered valid */ - quorum: Scalars['BigInt']; - /** The minimum amount of stake-weighted 'yes' votes needed for the poll to pass */ - quota: Scalars['BigInt']; - /** Reference to the round the event occured in */ - round: Round; - /** Timestamp of the transaction the event was included in */ - timestamp: Scalars['Int']; - /** Reference to the transaction the event was included in */ - transaction: Transaction; -}; - -export type PollCreatedEvent_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - endBlock?: InputMaybe; - endBlock_gt?: InputMaybe; - endBlock_gte?: InputMaybe; - endBlock_in?: InputMaybe>; - endBlock_lt?: InputMaybe; - endBlock_lte?: InputMaybe; - endBlock_not?: InputMaybe; - endBlock_not_in?: InputMaybe>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - or?: InputMaybe>>; - poll?: InputMaybe; - poll_?: InputMaybe; - poll_contains?: InputMaybe; - poll_contains_nocase?: InputMaybe; - poll_ends_with?: InputMaybe; - poll_ends_with_nocase?: InputMaybe; - poll_gt?: InputMaybe; - poll_gte?: InputMaybe; - poll_in?: InputMaybe>; - poll_lt?: InputMaybe; - poll_lte?: InputMaybe; - poll_not?: InputMaybe; - poll_not_contains?: InputMaybe; - poll_not_contains_nocase?: InputMaybe; - poll_not_ends_with?: InputMaybe; - poll_not_ends_with_nocase?: InputMaybe; - poll_not_in?: InputMaybe>; - poll_not_starts_with?: InputMaybe; - poll_not_starts_with_nocase?: InputMaybe; - poll_starts_with?: InputMaybe; - poll_starts_with_nocase?: InputMaybe; - proposal?: InputMaybe; - proposal_contains?: InputMaybe; - proposal_gt?: InputMaybe; - proposal_gte?: InputMaybe; - proposal_in?: InputMaybe>; - proposal_lt?: InputMaybe; - proposal_lte?: InputMaybe; - proposal_not?: InputMaybe; - proposal_not_contains?: InputMaybe; - proposal_not_in?: InputMaybe>; - quorum?: InputMaybe; - quorum_gt?: InputMaybe; - quorum_gte?: InputMaybe; - quorum_in?: InputMaybe>; - quorum_lt?: InputMaybe; - quorum_lte?: InputMaybe; - quorum_not?: InputMaybe; - quorum_not_in?: InputMaybe>; - quota?: InputMaybe; - quota_gt?: InputMaybe; - quota_gte?: InputMaybe; - quota_in?: InputMaybe>; - quota_lt?: InputMaybe; - quota_lte?: InputMaybe; - quota_not?: InputMaybe; - quota_not_in?: InputMaybe>; - round?: InputMaybe; - round_?: InputMaybe; - round_contains?: InputMaybe; - round_contains_nocase?: InputMaybe; - round_ends_with?: InputMaybe; - round_ends_with_nocase?: InputMaybe; - round_gt?: InputMaybe; - round_gte?: InputMaybe; - round_in?: InputMaybe>; - round_lt?: InputMaybe; - round_lte?: InputMaybe; - round_not?: InputMaybe; - round_not_contains?: InputMaybe; - round_not_contains_nocase?: InputMaybe; - round_not_ends_with?: InputMaybe; - round_not_ends_with_nocase?: InputMaybe; - round_not_in?: InputMaybe>; - round_not_starts_with?: InputMaybe; - round_not_starts_with_nocase?: InputMaybe; - round_starts_with?: InputMaybe; - round_starts_with_nocase?: InputMaybe; - timestamp?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not?: InputMaybe; - timestamp_not_in?: InputMaybe>; - transaction?: InputMaybe; - transaction_?: InputMaybe; - transaction_contains?: InputMaybe; - transaction_contains_nocase?: InputMaybe; - transaction_ends_with?: InputMaybe; - transaction_ends_with_nocase?: InputMaybe; - transaction_gt?: InputMaybe; - transaction_gte?: InputMaybe; - transaction_in?: InputMaybe>; - transaction_lt?: InputMaybe; - transaction_lte?: InputMaybe; - transaction_not?: InputMaybe; - transaction_not_contains?: InputMaybe; - transaction_not_contains_nocase?: InputMaybe; - transaction_not_ends_with?: InputMaybe; - transaction_not_ends_with_nocase?: InputMaybe; - transaction_not_in?: InputMaybe>; - transaction_not_starts_with?: InputMaybe; - transaction_not_starts_with_nocase?: InputMaybe; - transaction_starts_with?: InputMaybe; - transaction_starts_with_nocase?: InputMaybe; -}; - -export enum PollCreatedEvent_OrderBy { - EndBlock = 'endBlock', - Id = 'id', - Poll = 'poll', - PollEndBlock = 'poll__endBlock', - PollId = 'poll__id', - PollProposal = 'poll__proposal', - PollQuorum = 'poll__quorum', - PollQuota = 'poll__quota', - Proposal = 'proposal', - Quorum = 'quorum', - Quota = 'quota', - Round = 'round', - RoundActiveTranscoderCount = 'round__activeTranscoderCount', - RoundDelegatorsCount = 'round__delegatorsCount', - RoundEndBlock = 'round__endBlock', - RoundId = 'round__id', - RoundInflation = 'round__inflation', - RoundInitialized = 'round__initialized', - RoundLength = 'round__length', - RoundMintableTokens = 'round__mintableTokens', - RoundMovedStake = 'round__movedStake', - RoundNewStake = 'round__newStake', - RoundNumActiveTranscoders = 'round__numActiveTranscoders', - RoundParticipationRate = 'round__participationRate', - RoundStartBlock = 'round__startBlock', - RoundStartTimestamp = 'round__startTimestamp', - RoundTotalActiveStake = 'round__totalActiveStake', - RoundTotalSupply = 'round__totalSupply', - RoundVolumeEth = 'round__volumeETH', - RoundVolumeUsd = 'round__volumeUSD', - Timestamp = 'timestamp', - Transaction = 'transaction', - TransactionBlockNumber = 'transaction__blockNumber', - TransactionFrom = 'transaction__from', - TransactionGasPrice = 'transaction__gasPrice', - TransactionGasUsed = 'transaction__gasUsed', - TransactionId = 'transaction__id', - TransactionTimestamp = 'transaction__timestamp', - TransactionTo = 'transaction__to' -} - -/** Stake weighted tally associated with a poll */ -export type PollTally = { - __typename: 'PollTally'; - /** Poll address */ - id: Scalars['ID']; - /** Stake voted no */ - no: Scalars['BigDecimal']; - /** Stake voted yes */ - yes: Scalars['BigDecimal']; -}; - -export type PollTally_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - no?: InputMaybe; - no_gt?: InputMaybe; - no_gte?: InputMaybe; - no_in?: InputMaybe>; - no_lt?: InputMaybe; - no_lte?: InputMaybe; - no_not?: InputMaybe; - no_not_in?: InputMaybe>; - or?: InputMaybe>>; - yes?: InputMaybe; - yes_gt?: InputMaybe; - yes_gte?: InputMaybe; - yes_in?: InputMaybe>; - yes_lt?: InputMaybe; - yes_lte?: InputMaybe; - yes_not?: InputMaybe; - yes_not_in?: InputMaybe>; -}; - -export enum PollTally_OrderBy { - Id = 'id', - No = 'no', - Yes = 'yes' -} - -export type Poll_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - endBlock?: InputMaybe; - endBlock_gt?: InputMaybe; - endBlock_gte?: InputMaybe; - endBlock_in?: InputMaybe>; - endBlock_lt?: InputMaybe; - endBlock_lte?: InputMaybe; - endBlock_not?: InputMaybe; - endBlock_not_in?: InputMaybe>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - or?: InputMaybe>>; - proposal?: InputMaybe; - proposal_contains?: InputMaybe; - proposal_contains_nocase?: InputMaybe; - proposal_ends_with?: InputMaybe; - proposal_ends_with_nocase?: InputMaybe; - proposal_gt?: InputMaybe; - proposal_gte?: InputMaybe; - proposal_in?: InputMaybe>; - proposal_lt?: InputMaybe; - proposal_lte?: InputMaybe; - proposal_not?: InputMaybe; - proposal_not_contains?: InputMaybe; - proposal_not_contains_nocase?: InputMaybe; - proposal_not_ends_with?: InputMaybe; - proposal_not_ends_with_nocase?: InputMaybe; - proposal_not_in?: InputMaybe>; - proposal_not_starts_with?: InputMaybe; - proposal_not_starts_with_nocase?: InputMaybe; - proposal_starts_with?: InputMaybe; - proposal_starts_with_nocase?: InputMaybe; - quorum?: InputMaybe; - quorum_gt?: InputMaybe; - quorum_gte?: InputMaybe; - quorum_in?: InputMaybe>; - quorum_lt?: InputMaybe; - quorum_lte?: InputMaybe; - quorum_not?: InputMaybe; - quorum_not_in?: InputMaybe>; - quota?: InputMaybe; - quota_gt?: InputMaybe; - quota_gte?: InputMaybe; - quota_in?: InputMaybe>; - quota_lt?: InputMaybe; - quota_lte?: InputMaybe; - quota_not?: InputMaybe; - quota_not_in?: InputMaybe>; - tally?: InputMaybe; - tally_?: InputMaybe; - tally_contains?: InputMaybe; - tally_contains_nocase?: InputMaybe; - tally_ends_with?: InputMaybe; - tally_ends_with_nocase?: InputMaybe; - tally_gt?: InputMaybe; - tally_gte?: InputMaybe; - tally_in?: InputMaybe>; - tally_lt?: InputMaybe; - tally_lte?: InputMaybe; - tally_not?: InputMaybe; - tally_not_contains?: InputMaybe; - tally_not_contains_nocase?: InputMaybe; - tally_not_ends_with?: InputMaybe; - tally_not_ends_with_nocase?: InputMaybe; - tally_not_in?: InputMaybe>; - tally_not_starts_with?: InputMaybe; - tally_not_starts_with_nocase?: InputMaybe; - tally_starts_with?: InputMaybe; - tally_starts_with_nocase?: InputMaybe; - votes?: InputMaybe>; - votes_?: InputMaybe; - votes_contains?: InputMaybe>; - votes_contains_nocase?: InputMaybe>; - votes_not?: InputMaybe>; - votes_not_contains?: InputMaybe>; - votes_not_contains_nocase?: InputMaybe>; -}; - -export enum Poll_OrderBy { - EndBlock = 'endBlock', - Id = 'id', - Proposal = 'proposal', - Quorum = 'quorum', - Quota = 'quota', - Tally = 'tally', - TallyId = 'tally__id', - TallyNo = 'tally__no', - TallyYes = 'tally__yes', - Votes = 'votes' -} - -/** Represents a transcoder's rewards and fees to be distributed to delegators */ -export type Pool = { - __typename: 'Pool'; - /** Transcoder associated with the pool */ - delegate: Transcoder; - /** Transcoder's fee share during the earnings pool's round */ - feeShare: Scalars['BigInt']; - /** Fees collected in the pool */ - fees: Scalars['BigDecimal']; - /** Unique identifer for the pool (formed using the transcoder's address and round number) */ - id: Scalars['ID']; - /** Transcoder's reward cut during the earnings pool's round */ - rewardCut: Scalars['BigInt']; - /** Total reward tokens collected in the pool */ - rewardTokens?: Maybe; - /** Round associated with the pool */ - round: Round; - /** Transcoder's total stake during the earnings pool's round */ - totalStake: Scalars['BigDecimal']; -}; - -export type Pool_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - delegate?: InputMaybe; - delegate_?: InputMaybe; - delegate_contains?: InputMaybe; - delegate_contains_nocase?: InputMaybe; - delegate_ends_with?: InputMaybe; - delegate_ends_with_nocase?: InputMaybe; - delegate_gt?: InputMaybe; - delegate_gte?: InputMaybe; - delegate_in?: InputMaybe>; - delegate_lt?: InputMaybe; - delegate_lte?: InputMaybe; - delegate_not?: InputMaybe; - delegate_not_contains?: InputMaybe; - delegate_not_contains_nocase?: InputMaybe; - delegate_not_ends_with?: InputMaybe; - delegate_not_ends_with_nocase?: InputMaybe; - delegate_not_in?: InputMaybe>; - delegate_not_starts_with?: InputMaybe; - delegate_not_starts_with_nocase?: InputMaybe; - delegate_starts_with?: InputMaybe; - delegate_starts_with_nocase?: InputMaybe; - feeShare?: InputMaybe; - feeShare_gt?: InputMaybe; - feeShare_gte?: InputMaybe; - feeShare_in?: InputMaybe>; - feeShare_lt?: InputMaybe; - feeShare_lte?: InputMaybe; - feeShare_not?: InputMaybe; - feeShare_not_in?: InputMaybe>; - fees?: InputMaybe; - fees_gt?: InputMaybe; - fees_gte?: InputMaybe; - fees_in?: InputMaybe>; - fees_lt?: InputMaybe; - fees_lte?: InputMaybe; - fees_not?: InputMaybe; - fees_not_in?: InputMaybe>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - or?: InputMaybe>>; - rewardCut?: InputMaybe; - rewardCut_gt?: InputMaybe; - rewardCut_gte?: InputMaybe; - rewardCut_in?: InputMaybe>; - rewardCut_lt?: InputMaybe; - rewardCut_lte?: InputMaybe; - rewardCut_not?: InputMaybe; - rewardCut_not_in?: InputMaybe>; - rewardTokens?: InputMaybe; - rewardTokens_gt?: InputMaybe; - rewardTokens_gte?: InputMaybe; - rewardTokens_in?: InputMaybe>; - rewardTokens_lt?: InputMaybe; - rewardTokens_lte?: InputMaybe; - rewardTokens_not?: InputMaybe; - rewardTokens_not_in?: InputMaybe>; - round?: InputMaybe; - round_?: InputMaybe; - round_contains?: InputMaybe; - round_contains_nocase?: InputMaybe; - round_ends_with?: InputMaybe; - round_ends_with_nocase?: InputMaybe; - round_gt?: InputMaybe; - round_gte?: InputMaybe; - round_in?: InputMaybe>; - round_lt?: InputMaybe; - round_lte?: InputMaybe; - round_not?: InputMaybe; - round_not_contains?: InputMaybe; - round_not_contains_nocase?: InputMaybe; - round_not_ends_with?: InputMaybe; - round_not_ends_with_nocase?: InputMaybe; - round_not_in?: InputMaybe>; - round_not_starts_with?: InputMaybe; - round_not_starts_with_nocase?: InputMaybe; - round_starts_with?: InputMaybe; - round_starts_with_nocase?: InputMaybe; - totalStake?: InputMaybe; - totalStake_gt?: InputMaybe; - totalStake_gte?: InputMaybe; - totalStake_in?: InputMaybe>; - totalStake_lt?: InputMaybe; - totalStake_lte?: InputMaybe; - totalStake_not?: InputMaybe; - totalStake_not_in?: InputMaybe>; -}; - -export enum Pool_OrderBy { - Delegate = 'delegate', - DelegateActivationRound = 'delegate__activationRound', - DelegateActivationTimestamp = 'delegate__activationTimestamp', - DelegateActive = 'delegate__active', - DelegateDeactivationRound = 'delegate__deactivationRound', - DelegateFeeShare = 'delegate__feeShare', - DelegateFeeShareUpdateTimestamp = 'delegate__feeShareUpdateTimestamp', - DelegateId = 'delegate__id', - DelegateLastActiveStakeUpdateRound = 'delegate__lastActiveStakeUpdateRound', - DelegateNinetyDayVolumeEth = 'delegate__ninetyDayVolumeETH', - DelegateRewardCaller = 'delegate__rewardCaller', - DelegateRewardCut = 'delegate__rewardCut', - DelegateRewardCutUpdateTimestamp = 'delegate__rewardCutUpdateTimestamp', - DelegateServiceUri = 'delegate__serviceURI', - DelegateSixtyDayVolumeEth = 'delegate__sixtyDayVolumeETH', - DelegateStatus = 'delegate__status', - DelegateThirtyDayVolumeEth = 'delegate__thirtyDayVolumeETH', - DelegateTotalStake = 'delegate__totalStake', - DelegateTotalVolumeEth = 'delegate__totalVolumeETH', - DelegateTotalVolumeUsd = 'delegate__totalVolumeUSD', - FeeShare = 'feeShare', - Fees = 'fees', - Id = 'id', - RewardCut = 'rewardCut', - RewardTokens = 'rewardTokens', - Round = 'round', - RoundActiveTranscoderCount = 'round__activeTranscoderCount', - RoundDelegatorsCount = 'round__delegatorsCount', - RoundEndBlock = 'round__endBlock', - RoundId = 'round__id', - RoundInflation = 'round__inflation', - RoundInitialized = 'round__initialized', - RoundLength = 'round__length', - RoundMintableTokens = 'round__mintableTokens', - RoundMovedStake = 'round__movedStake', - RoundNewStake = 'round__newStake', - RoundNumActiveTranscoders = 'round__numActiveTranscoders', - RoundParticipationRate = 'round__participationRate', - RoundStartBlock = 'round__startBlock', - RoundStartTimestamp = 'round__startTimestamp', - RoundTotalActiveStake = 'round__totalActiveStake', - RoundTotalSupply = 'round__totalSupply', - RoundVolumeEth = 'round__volumeETH', - RoundVolumeUsd = 'round__volumeUSD', - TotalStake = 'totalStake' -} - -/** Livepeer protocol global parameters */ -export type Protocol = { - __typename: 'Protocol'; - /** Broadcasters that paid tickets within the current 90 day fee window */ - activeBroadcasters: Array; - /** Total active transcoders (up to the limit) */ - activeTranscoderCount: Scalars['BigInt']; - /** Current round the protocol is in */ - currentRound: Round; - /** Total number of delegators on the network */ - delegatorsCount: Scalars['BigInt']; - /** ID is set to 0 */ - id: Scalars['ID']; - /** Per round inflation rate */ - inflation: Scalars['BigInt']; - /** Change in inflation rate per round until the target bonding rate is achieved */ - inflationChange: Scalars['BigInt']; - /** Round that was last initialized */ - lastInitializedRound: Round; - /** Round when round length was last updated */ - lastRoundLengthUpdateRound: Round; - /** Block when round length was last updated */ - lastRoundLengthUpdateStartBlock: Scalars['BigInt']; - /** Time in blocks delegators have to review transcoder information without changes */ - lockPeriod: Scalars['BigInt']; - /** Livepeer Token price in ETH (not to be used for trading - updated only every round) */ - lptPriceEth: Scalars['BigDecimal']; - /** Limit of active transcoders */ - numActiveTranscoders: Scalars['BigInt']; - /** Ratio of total active stake to total supply */ - participationRate: Scalars['BigDecimal']; - /** True if the protocol is paused */ - paused: Scalars['Boolean']; - /** Transcoders pending activation */ - pendingActivation: Array; - /** Transcoders pending deactivation */ - pendingDeactivation: Array; - /** Total rounds */ - roundCount: Scalars['Int']; - /** Round length in blocks */ - roundLength: Scalars['BigInt']; - /** Lock period of a round as a % of round length */ - roundLockAmount: Scalars['BigInt']; - /** Target bonding rate (participation) that determines whether inflation should increase or decrease */ - targetBondingRate: Scalars['BigInt']; - /** The total amount of active LPT staked */ - totalActiveStake: Scalars['BigDecimal']; - /** Livepeer Token supply */ - totalSupply: Scalars['BigDecimal']; - /** Total broadcaster fees transcoders have accumulated in ETH */ - totalVolumeETH: Scalars['BigDecimal']; - /** Total broadcaster fees transcoders have accumulated in USD */ - totalVolumeUSD: Scalars['BigDecimal']; - /** Time in blocks needed to wait to unstake */ - unbondingPeriod: Scalars['BigInt']; - /** Total winning tickets */ - winningTicketCount: Scalars['Int']; -}; - - -/** Livepeer protocol global parameters */ -export type ProtocolPendingActivationArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - - -/** Livepeer protocol global parameters */ -export type ProtocolPendingDeactivationArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - -export type Protocol_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - activeBroadcasters?: InputMaybe>; - activeBroadcasters_contains?: InputMaybe>; - activeBroadcasters_contains_nocase?: InputMaybe>; - activeBroadcasters_not?: InputMaybe>; - activeBroadcasters_not_contains?: InputMaybe>; - activeBroadcasters_not_contains_nocase?: InputMaybe>; - activeTranscoderCount?: InputMaybe; - activeTranscoderCount_gt?: InputMaybe; - activeTranscoderCount_gte?: InputMaybe; - activeTranscoderCount_in?: InputMaybe>; - activeTranscoderCount_lt?: InputMaybe; - activeTranscoderCount_lte?: InputMaybe; - activeTranscoderCount_not?: InputMaybe; - activeTranscoderCount_not_in?: InputMaybe>; - and?: InputMaybe>>; - currentRound?: InputMaybe; - currentRound_?: InputMaybe; - currentRound_contains?: InputMaybe; - currentRound_contains_nocase?: InputMaybe; - currentRound_ends_with?: InputMaybe; - currentRound_ends_with_nocase?: InputMaybe; - currentRound_gt?: InputMaybe; - currentRound_gte?: InputMaybe; - currentRound_in?: InputMaybe>; - currentRound_lt?: InputMaybe; - currentRound_lte?: InputMaybe; - currentRound_not?: InputMaybe; - currentRound_not_contains?: InputMaybe; - currentRound_not_contains_nocase?: InputMaybe; - currentRound_not_ends_with?: InputMaybe; - currentRound_not_ends_with_nocase?: InputMaybe; - currentRound_not_in?: InputMaybe>; - currentRound_not_starts_with?: InputMaybe; - currentRound_not_starts_with_nocase?: InputMaybe; - currentRound_starts_with?: InputMaybe; - currentRound_starts_with_nocase?: InputMaybe; - delegatorsCount?: InputMaybe; - delegatorsCount_gt?: InputMaybe; - delegatorsCount_gte?: InputMaybe; - delegatorsCount_in?: InputMaybe>; - delegatorsCount_lt?: InputMaybe; - delegatorsCount_lte?: InputMaybe; - delegatorsCount_not?: InputMaybe; - delegatorsCount_not_in?: InputMaybe>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - inflation?: InputMaybe; - inflationChange?: InputMaybe; - inflationChange_gt?: InputMaybe; - inflationChange_gte?: InputMaybe; - inflationChange_in?: InputMaybe>; - inflationChange_lt?: InputMaybe; - inflationChange_lte?: InputMaybe; - inflationChange_not?: InputMaybe; - inflationChange_not_in?: InputMaybe>; - inflation_gt?: InputMaybe; - inflation_gte?: InputMaybe; - inflation_in?: InputMaybe>; - inflation_lt?: InputMaybe; - inflation_lte?: InputMaybe; - inflation_not?: InputMaybe; - inflation_not_in?: InputMaybe>; - lastInitializedRound?: InputMaybe; - lastInitializedRound_?: InputMaybe; - lastInitializedRound_contains?: InputMaybe; - lastInitializedRound_contains_nocase?: InputMaybe; - lastInitializedRound_ends_with?: InputMaybe; - lastInitializedRound_ends_with_nocase?: InputMaybe; - lastInitializedRound_gt?: InputMaybe; - lastInitializedRound_gte?: InputMaybe; - lastInitializedRound_in?: InputMaybe>; - lastInitializedRound_lt?: InputMaybe; - lastInitializedRound_lte?: InputMaybe; - lastInitializedRound_not?: InputMaybe; - lastInitializedRound_not_contains?: InputMaybe; - lastInitializedRound_not_contains_nocase?: InputMaybe; - lastInitializedRound_not_ends_with?: InputMaybe; - lastInitializedRound_not_ends_with_nocase?: InputMaybe; - lastInitializedRound_not_in?: InputMaybe>; - lastInitializedRound_not_starts_with?: InputMaybe; - lastInitializedRound_not_starts_with_nocase?: InputMaybe; - lastInitializedRound_starts_with?: InputMaybe; - lastInitializedRound_starts_with_nocase?: InputMaybe; - lastRoundLengthUpdateRound?: InputMaybe; - lastRoundLengthUpdateRound_?: InputMaybe; - lastRoundLengthUpdateRound_contains?: InputMaybe; - lastRoundLengthUpdateRound_contains_nocase?: InputMaybe; - lastRoundLengthUpdateRound_ends_with?: InputMaybe; - lastRoundLengthUpdateRound_ends_with_nocase?: InputMaybe; - lastRoundLengthUpdateRound_gt?: InputMaybe; - lastRoundLengthUpdateRound_gte?: InputMaybe; - lastRoundLengthUpdateRound_in?: InputMaybe>; - lastRoundLengthUpdateRound_lt?: InputMaybe; - lastRoundLengthUpdateRound_lte?: InputMaybe; - lastRoundLengthUpdateRound_not?: InputMaybe; - lastRoundLengthUpdateRound_not_contains?: InputMaybe; - lastRoundLengthUpdateRound_not_contains_nocase?: InputMaybe; - lastRoundLengthUpdateRound_not_ends_with?: InputMaybe; - lastRoundLengthUpdateRound_not_ends_with_nocase?: InputMaybe; - lastRoundLengthUpdateRound_not_in?: InputMaybe>; - lastRoundLengthUpdateRound_not_starts_with?: InputMaybe; - lastRoundLengthUpdateRound_not_starts_with_nocase?: InputMaybe; - lastRoundLengthUpdateRound_starts_with?: InputMaybe; - lastRoundLengthUpdateRound_starts_with_nocase?: InputMaybe; - lastRoundLengthUpdateStartBlock?: InputMaybe; - lastRoundLengthUpdateStartBlock_gt?: InputMaybe; - lastRoundLengthUpdateStartBlock_gte?: InputMaybe; - lastRoundLengthUpdateStartBlock_in?: InputMaybe>; - lastRoundLengthUpdateStartBlock_lt?: InputMaybe; - lastRoundLengthUpdateStartBlock_lte?: InputMaybe; - lastRoundLengthUpdateStartBlock_not?: InputMaybe; - lastRoundLengthUpdateStartBlock_not_in?: InputMaybe>; - lockPeriod?: InputMaybe; - lockPeriod_gt?: InputMaybe; - lockPeriod_gte?: InputMaybe; - lockPeriod_in?: InputMaybe>; - lockPeriod_lt?: InputMaybe; - lockPeriod_lte?: InputMaybe; - lockPeriod_not?: InputMaybe; - lockPeriod_not_in?: InputMaybe>; - lptPriceEth?: InputMaybe; - lptPriceEth_gt?: InputMaybe; - lptPriceEth_gte?: InputMaybe; - lptPriceEth_in?: InputMaybe>; - lptPriceEth_lt?: InputMaybe; - lptPriceEth_lte?: InputMaybe; - lptPriceEth_not?: InputMaybe; - lptPriceEth_not_in?: InputMaybe>; - numActiveTranscoders?: InputMaybe; - numActiveTranscoders_gt?: InputMaybe; - numActiveTranscoders_gte?: InputMaybe; - numActiveTranscoders_in?: InputMaybe>; - numActiveTranscoders_lt?: InputMaybe; - numActiveTranscoders_lte?: InputMaybe; - numActiveTranscoders_not?: InputMaybe; - numActiveTranscoders_not_in?: InputMaybe>; - or?: InputMaybe>>; - participationRate?: InputMaybe; - participationRate_gt?: InputMaybe; - participationRate_gte?: InputMaybe; - participationRate_in?: InputMaybe>; - participationRate_lt?: InputMaybe; - participationRate_lte?: InputMaybe; - participationRate_not?: InputMaybe; - participationRate_not_in?: InputMaybe>; - paused?: InputMaybe; - paused_in?: InputMaybe>; - paused_not?: InputMaybe; - paused_not_in?: InputMaybe>; - pendingActivation?: InputMaybe>; - pendingActivation_?: InputMaybe; - pendingActivation_contains?: InputMaybe>; - pendingActivation_contains_nocase?: InputMaybe>; - pendingActivation_not?: InputMaybe>; - pendingActivation_not_contains?: InputMaybe>; - pendingActivation_not_contains_nocase?: InputMaybe>; - pendingDeactivation?: InputMaybe>; - pendingDeactivation_?: InputMaybe; - pendingDeactivation_contains?: InputMaybe>; - pendingDeactivation_contains_nocase?: InputMaybe>; - pendingDeactivation_not?: InputMaybe>; - pendingDeactivation_not_contains?: InputMaybe>; - pendingDeactivation_not_contains_nocase?: InputMaybe>; - roundCount?: InputMaybe; - roundCount_gt?: InputMaybe; - roundCount_gte?: InputMaybe; - roundCount_in?: InputMaybe>; - roundCount_lt?: InputMaybe; - roundCount_lte?: InputMaybe; - roundCount_not?: InputMaybe; - roundCount_not_in?: InputMaybe>; - roundLength?: InputMaybe; - roundLength_gt?: InputMaybe; - roundLength_gte?: InputMaybe; - roundLength_in?: InputMaybe>; - roundLength_lt?: InputMaybe; - roundLength_lte?: InputMaybe; - roundLength_not?: InputMaybe; - roundLength_not_in?: InputMaybe>; - roundLockAmount?: InputMaybe; - roundLockAmount_gt?: InputMaybe; - roundLockAmount_gte?: InputMaybe; - roundLockAmount_in?: InputMaybe>; - roundLockAmount_lt?: InputMaybe; - roundLockAmount_lte?: InputMaybe; - roundLockAmount_not?: InputMaybe; - roundLockAmount_not_in?: InputMaybe>; - targetBondingRate?: InputMaybe; - targetBondingRate_gt?: InputMaybe; - targetBondingRate_gte?: InputMaybe; - targetBondingRate_in?: InputMaybe>; - targetBondingRate_lt?: InputMaybe; - targetBondingRate_lte?: InputMaybe; - targetBondingRate_not?: InputMaybe; - targetBondingRate_not_in?: InputMaybe>; - totalActiveStake?: InputMaybe; - totalActiveStake_gt?: InputMaybe; - totalActiveStake_gte?: InputMaybe; - totalActiveStake_in?: InputMaybe>; - totalActiveStake_lt?: InputMaybe; - totalActiveStake_lte?: InputMaybe; - totalActiveStake_not?: InputMaybe; - totalActiveStake_not_in?: InputMaybe>; - totalSupply?: InputMaybe; - totalSupply_gt?: InputMaybe; - totalSupply_gte?: InputMaybe; - totalSupply_in?: InputMaybe>; - totalSupply_lt?: InputMaybe; - totalSupply_lte?: InputMaybe; - totalSupply_not?: InputMaybe; - totalSupply_not_in?: InputMaybe>; - totalVolumeETH?: InputMaybe; - totalVolumeETH_gt?: InputMaybe; - totalVolumeETH_gte?: InputMaybe; - totalVolumeETH_in?: InputMaybe>; - totalVolumeETH_lt?: InputMaybe; - totalVolumeETH_lte?: InputMaybe; - totalVolumeETH_not?: InputMaybe; - totalVolumeETH_not_in?: InputMaybe>; - totalVolumeUSD?: InputMaybe; - totalVolumeUSD_gt?: InputMaybe; - totalVolumeUSD_gte?: InputMaybe; - totalVolumeUSD_in?: InputMaybe>; - totalVolumeUSD_lt?: InputMaybe; - totalVolumeUSD_lte?: InputMaybe; - totalVolumeUSD_not?: InputMaybe; - totalVolumeUSD_not_in?: InputMaybe>; - unbondingPeriod?: InputMaybe; - unbondingPeriod_gt?: InputMaybe; - unbondingPeriod_gte?: InputMaybe; - unbondingPeriod_in?: InputMaybe>; - unbondingPeriod_lt?: InputMaybe; - unbondingPeriod_lte?: InputMaybe; - unbondingPeriod_not?: InputMaybe; - unbondingPeriod_not_in?: InputMaybe>; - winningTicketCount?: InputMaybe; - winningTicketCount_gt?: InputMaybe; - winningTicketCount_gte?: InputMaybe; - winningTicketCount_in?: InputMaybe>; - winningTicketCount_lt?: InputMaybe; - winningTicketCount_lte?: InputMaybe; - winningTicketCount_not?: InputMaybe; - winningTicketCount_not_in?: InputMaybe>; -}; - -export enum Protocol_OrderBy { - ActiveBroadcasters = 'activeBroadcasters', - ActiveTranscoderCount = 'activeTranscoderCount', - CurrentRound = 'currentRound', - CurrentRoundActiveTranscoderCount = 'currentRound__activeTranscoderCount', - CurrentRoundDelegatorsCount = 'currentRound__delegatorsCount', - CurrentRoundEndBlock = 'currentRound__endBlock', - CurrentRoundId = 'currentRound__id', - CurrentRoundInflation = 'currentRound__inflation', - CurrentRoundInitialized = 'currentRound__initialized', - CurrentRoundLength = 'currentRound__length', - CurrentRoundMintableTokens = 'currentRound__mintableTokens', - CurrentRoundMovedStake = 'currentRound__movedStake', - CurrentRoundNewStake = 'currentRound__newStake', - CurrentRoundNumActiveTranscoders = 'currentRound__numActiveTranscoders', - CurrentRoundParticipationRate = 'currentRound__participationRate', - CurrentRoundStartBlock = 'currentRound__startBlock', - CurrentRoundStartTimestamp = 'currentRound__startTimestamp', - CurrentRoundTotalActiveStake = 'currentRound__totalActiveStake', - CurrentRoundTotalSupply = 'currentRound__totalSupply', - CurrentRoundVolumeEth = 'currentRound__volumeETH', - CurrentRoundVolumeUsd = 'currentRound__volumeUSD', - DelegatorsCount = 'delegatorsCount', - Id = 'id', - Inflation = 'inflation', - InflationChange = 'inflationChange', - LastInitializedRound = 'lastInitializedRound', - LastInitializedRoundActiveTranscoderCount = 'lastInitializedRound__activeTranscoderCount', - LastInitializedRoundDelegatorsCount = 'lastInitializedRound__delegatorsCount', - LastInitializedRoundEndBlock = 'lastInitializedRound__endBlock', - LastInitializedRoundId = 'lastInitializedRound__id', - LastInitializedRoundInflation = 'lastInitializedRound__inflation', - LastInitializedRoundInitialized = 'lastInitializedRound__initialized', - LastInitializedRoundLength = 'lastInitializedRound__length', - LastInitializedRoundMintableTokens = 'lastInitializedRound__mintableTokens', - LastInitializedRoundMovedStake = 'lastInitializedRound__movedStake', - LastInitializedRoundNewStake = 'lastInitializedRound__newStake', - LastInitializedRoundNumActiveTranscoders = 'lastInitializedRound__numActiveTranscoders', - LastInitializedRoundParticipationRate = 'lastInitializedRound__participationRate', - LastInitializedRoundStartBlock = 'lastInitializedRound__startBlock', - LastInitializedRoundStartTimestamp = 'lastInitializedRound__startTimestamp', - LastInitializedRoundTotalActiveStake = 'lastInitializedRound__totalActiveStake', - LastInitializedRoundTotalSupply = 'lastInitializedRound__totalSupply', - LastInitializedRoundVolumeEth = 'lastInitializedRound__volumeETH', - LastInitializedRoundVolumeUsd = 'lastInitializedRound__volumeUSD', - LastRoundLengthUpdateRound = 'lastRoundLengthUpdateRound', - LastRoundLengthUpdateRoundActiveTranscoderCount = 'lastRoundLengthUpdateRound__activeTranscoderCount', - LastRoundLengthUpdateRoundDelegatorsCount = 'lastRoundLengthUpdateRound__delegatorsCount', - LastRoundLengthUpdateRoundEndBlock = 'lastRoundLengthUpdateRound__endBlock', - LastRoundLengthUpdateRoundId = 'lastRoundLengthUpdateRound__id', - LastRoundLengthUpdateRoundInflation = 'lastRoundLengthUpdateRound__inflation', - LastRoundLengthUpdateRoundInitialized = 'lastRoundLengthUpdateRound__initialized', - LastRoundLengthUpdateRoundLength = 'lastRoundLengthUpdateRound__length', - LastRoundLengthUpdateRoundMintableTokens = 'lastRoundLengthUpdateRound__mintableTokens', - LastRoundLengthUpdateRoundMovedStake = 'lastRoundLengthUpdateRound__movedStake', - LastRoundLengthUpdateRoundNewStake = 'lastRoundLengthUpdateRound__newStake', - LastRoundLengthUpdateRoundNumActiveTranscoders = 'lastRoundLengthUpdateRound__numActiveTranscoders', - LastRoundLengthUpdateRoundParticipationRate = 'lastRoundLengthUpdateRound__participationRate', - LastRoundLengthUpdateRoundStartBlock = 'lastRoundLengthUpdateRound__startBlock', - LastRoundLengthUpdateRoundStartTimestamp = 'lastRoundLengthUpdateRound__startTimestamp', - LastRoundLengthUpdateRoundTotalActiveStake = 'lastRoundLengthUpdateRound__totalActiveStake', - LastRoundLengthUpdateRoundTotalSupply = 'lastRoundLengthUpdateRound__totalSupply', - LastRoundLengthUpdateRoundVolumeEth = 'lastRoundLengthUpdateRound__volumeETH', - LastRoundLengthUpdateRoundVolumeUsd = 'lastRoundLengthUpdateRound__volumeUSD', - LastRoundLengthUpdateStartBlock = 'lastRoundLengthUpdateStartBlock', - LockPeriod = 'lockPeriod', - LptPriceEth = 'lptPriceEth', - NumActiveTranscoders = 'numActiveTranscoders', - ParticipationRate = 'participationRate', - Paused = 'paused', - PendingActivation = 'pendingActivation', - PendingDeactivation = 'pendingDeactivation', - RoundCount = 'roundCount', - RoundLength = 'roundLength', - RoundLockAmount = 'roundLockAmount', - TargetBondingRate = 'targetBondingRate', - TotalActiveStake = 'totalActiveStake', - TotalSupply = 'totalSupply', - TotalVolumeEth = 'totalVolumeETH', - TotalVolumeUsd = 'totalVolumeUSD', - UnbondingPeriod = 'unbondingPeriod', - WinningTicketCount = 'winningTicketCount' -} - -export type Query = { - __typename: 'Query'; - /** Query execution logs emitted by the subgraph during indexing. Results are sorted by timestamp in descending order (newest first). */ - _logs: Array<_Log_>; - /** Access to subgraph metadata */ - _meta?: Maybe<_Meta_>; - bondEvent?: Maybe; - bondEvents: Array; - broadcaster?: Maybe; - broadcasterDay?: Maybe; - broadcasterDays: Array; - broadcasters: Array; - burnEvent?: Maybe; - burnEvents: Array; - day?: Maybe; - days: Array; - delegator?: Maybe; - delegators: Array; - depositFundedEvent?: Maybe; - depositFundedEvents: Array; - earningsClaimedEvent?: Maybe; - earningsClaimedEvents: Array; - event?: Maybe; - events: Array; - livepeerAccount?: Maybe; - livepeerAccounts: Array; - migrateDelegatorFinalizedEvent?: Maybe; - migrateDelegatorFinalizedEvents: Array; - mintEvent?: Maybe; - mintEvents: Array; - newRoundEvent?: Maybe; - newRoundEvents: Array; - parameterUpdateEvent?: Maybe; - parameterUpdateEvents: Array; - pauseEvent?: Maybe; - pauseEvents: Array; - poll?: Maybe; - pollCreatedEvent?: Maybe; - pollCreatedEvents: Array; - pollTallies: Array; - pollTally?: Maybe; - polls: Array; - pool?: Maybe; - pools: Array; - protocol?: Maybe; - protocols: Array; - rebondEvent?: Maybe; - rebondEvents: Array; - reserveClaimedEvent?: Maybe; - reserveClaimedEvents: Array; - reserveFundedEvent?: Maybe; - reserveFundedEvents: Array; - rewardCallerSetEvent?: Maybe; - rewardCallerSetEvents: Array; - rewardEvent?: Maybe; - rewardEvents: Array; - round?: Maybe; - rounds: Array; - serviceURIUpdateEvent?: Maybe; - serviceURIUpdateEvents: Array; - setCurrentRewardTokensEvent?: Maybe; - setCurrentRewardTokensEvents: Array; - stakeClaimedEvent?: Maybe; - stakeClaimedEvents: Array; - transaction?: Maybe; - transactions: Array; - transcoder?: Maybe; - transcoderActivatedEvent?: Maybe; - transcoderActivatedEvents: Array; - transcoderDay?: Maybe; - transcoderDays: Array; - transcoderDeactivatedEvent?: Maybe; - transcoderDeactivatedEvents: Array; - transcoderEvictedEvent?: Maybe; - transcoderEvictedEvents: Array; - transcoderResignedEvent?: Maybe; - transcoderResignedEvents: Array; - transcoderSlashedEvent?: Maybe; - transcoderSlashedEvents: Array; - transcoderUpdateEvent?: Maybe; - transcoderUpdateEvents: Array; - transcoders: Array; - transferBondEvent?: Maybe; - transferBondEvents: Array; - treasuryProposal?: Maybe; - treasuryProposals: Array; - treasuryVote?: Maybe; - treasuryVoteEvent?: Maybe; - treasuryVoteEvents: Array; - treasuryVotes: Array; - unbondEvent?: Maybe; - unbondEvents: Array; - unbondingLock?: Maybe; - unbondingLocks: Array; - unpauseEvent?: Maybe; - unpauseEvents: Array; - vote?: Maybe; - voteEvent?: Maybe; - voteEvents: Array; - votes: Array; - winningTicketRedeemedEvent?: Maybe; - winningTicketRedeemedEvents: Array; - withdrawFeesEvent?: Maybe; - withdrawFeesEvents: Array; - withdrawStakeEvent?: Maybe; - withdrawStakeEvents: Array; - withdrawalEvent?: Maybe; - withdrawalEvents: Array; -}; - - -export type Query_LogsArgs = { - first?: InputMaybe; - from?: InputMaybe; - level?: InputMaybe; - orderDirection?: InputMaybe; - search?: InputMaybe; - skip?: InputMaybe; - to?: InputMaybe; -}; - - -export type Query_MetaArgs = { - block?: InputMaybe; -}; - - -export type QueryBondEventArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type QueryBondEventsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type QueryBroadcasterArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type QueryBroadcasterDayArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type QueryBroadcasterDaysArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type QueryBroadcastersArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type QueryBurnEventArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type QueryBurnEventsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type QueryDayArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type QueryDaysArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type QueryDelegatorArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type QueryDelegatorsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type QueryDepositFundedEventArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type QueryDepositFundedEventsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type QueryEarningsClaimedEventArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type QueryEarningsClaimedEventsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type QueryEventArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type QueryEventsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type QueryLivepeerAccountArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type QueryLivepeerAccountsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type QueryMigrateDelegatorFinalizedEventArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type QueryMigrateDelegatorFinalizedEventsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type QueryMintEventArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type QueryMintEventsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type QueryNewRoundEventArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type QueryNewRoundEventsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type QueryParameterUpdateEventArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type QueryParameterUpdateEventsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type QueryPauseEventArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type QueryPauseEventsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type QueryPollArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type QueryPollCreatedEventArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type QueryPollCreatedEventsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type QueryPollTalliesArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type QueryPollTallyArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type QueryPollsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type QueryPoolArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type QueryPoolsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type QueryProtocolArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type QueryProtocolsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type QueryRebondEventArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type QueryRebondEventsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type QueryReserveClaimedEventArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type QueryReserveClaimedEventsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type QueryReserveFundedEventArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type QueryReserveFundedEventsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type QueryRewardCallerSetEventArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type QueryRewardCallerSetEventsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type QueryRewardEventArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type QueryRewardEventsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type QueryRoundArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type QueryRoundsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type QueryServiceUriUpdateEventArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type QueryServiceUriUpdateEventsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type QuerySetCurrentRewardTokensEventArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type QuerySetCurrentRewardTokensEventsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type QueryStakeClaimedEventArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type QueryStakeClaimedEventsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type QueryTransactionArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type QueryTransactionsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type QueryTranscoderArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type QueryTranscoderActivatedEventArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type QueryTranscoderActivatedEventsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type QueryTranscoderDayArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type QueryTranscoderDaysArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type QueryTranscoderDeactivatedEventArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type QueryTranscoderDeactivatedEventsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type QueryTranscoderEvictedEventArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type QueryTranscoderEvictedEventsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type QueryTranscoderResignedEventArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type QueryTranscoderResignedEventsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type QueryTranscoderSlashedEventArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type QueryTranscoderSlashedEventsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type QueryTranscoderUpdateEventArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type QueryTranscoderUpdateEventsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type QueryTranscodersArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type QueryTransferBondEventArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type QueryTransferBondEventsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type QueryTreasuryProposalArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type QueryTreasuryProposalsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type QueryTreasuryVoteArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type QueryTreasuryVoteEventArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type QueryTreasuryVoteEventsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type QueryTreasuryVotesArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type QueryUnbondEventArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type QueryUnbondEventsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type QueryUnbondingLockArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type QueryUnbondingLocksArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type QueryUnpauseEventArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type QueryUnpauseEventsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type QueryVoteArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type QueryVoteEventArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type QueryVoteEventsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type QueryVotesArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type QueryWinningTicketRedeemedEventArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type QueryWinningTicketRedeemedEventsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type QueryWithdrawFeesEventArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type QueryWithdrawFeesEventsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type QueryWithdrawStakeEventArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type QueryWithdrawStakeEventsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type QueryWithdrawalEventArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type QueryWithdrawalEventsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - -/** RebondEvent entities are created for every emitted Rebond event. */ -export type RebondEvent = Event & { - __typename: 'RebondEvent'; - amount: Scalars['BigDecimal']; - delegate: Transcoder; - /** Reference to the delegator that rebonded */ - delegator: Delegator; - /** Ethereum transaction hash + event log index */ - id: Scalars['ID']; - /** Reference to the round the event occured in */ - round: Round; - /** Timestamp of the transaction the event was included in */ - timestamp: Scalars['Int']; - /** Reference to the transaction the event was included in */ - transaction: Transaction; - unbondingLockId: Scalars['Int']; -}; - -export type RebondEvent_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - amount?: InputMaybe; - amount_gt?: InputMaybe; - amount_gte?: InputMaybe; - amount_in?: InputMaybe>; - amount_lt?: InputMaybe; - amount_lte?: InputMaybe; - amount_not?: InputMaybe; - amount_not_in?: InputMaybe>; - and?: InputMaybe>>; - delegate?: InputMaybe; - delegate_?: InputMaybe; - delegate_contains?: InputMaybe; - delegate_contains_nocase?: InputMaybe; - delegate_ends_with?: InputMaybe; - delegate_ends_with_nocase?: InputMaybe; - delegate_gt?: InputMaybe; - delegate_gte?: InputMaybe; - delegate_in?: InputMaybe>; - delegate_lt?: InputMaybe; - delegate_lte?: InputMaybe; - delegate_not?: InputMaybe; - delegate_not_contains?: InputMaybe; - delegate_not_contains_nocase?: InputMaybe; - delegate_not_ends_with?: InputMaybe; - delegate_not_ends_with_nocase?: InputMaybe; - delegate_not_in?: InputMaybe>; - delegate_not_starts_with?: InputMaybe; - delegate_not_starts_with_nocase?: InputMaybe; - delegate_starts_with?: InputMaybe; - delegate_starts_with_nocase?: InputMaybe; - delegator?: InputMaybe; - delegator_?: InputMaybe; - delegator_contains?: InputMaybe; - delegator_contains_nocase?: InputMaybe; - delegator_ends_with?: InputMaybe; - delegator_ends_with_nocase?: InputMaybe; - delegator_gt?: InputMaybe; - delegator_gte?: InputMaybe; - delegator_in?: InputMaybe>; - delegator_lt?: InputMaybe; - delegator_lte?: InputMaybe; - delegator_not?: InputMaybe; - delegator_not_contains?: InputMaybe; - delegator_not_contains_nocase?: InputMaybe; - delegator_not_ends_with?: InputMaybe; - delegator_not_ends_with_nocase?: InputMaybe; - delegator_not_in?: InputMaybe>; - delegator_not_starts_with?: InputMaybe; - delegator_not_starts_with_nocase?: InputMaybe; - delegator_starts_with?: InputMaybe; - delegator_starts_with_nocase?: InputMaybe; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - or?: InputMaybe>>; - round?: InputMaybe; - round_?: InputMaybe; - round_contains?: InputMaybe; - round_contains_nocase?: InputMaybe; - round_ends_with?: InputMaybe; - round_ends_with_nocase?: InputMaybe; - round_gt?: InputMaybe; - round_gte?: InputMaybe; - round_in?: InputMaybe>; - round_lt?: InputMaybe; - round_lte?: InputMaybe; - round_not?: InputMaybe; - round_not_contains?: InputMaybe; - round_not_contains_nocase?: InputMaybe; - round_not_ends_with?: InputMaybe; - round_not_ends_with_nocase?: InputMaybe; - round_not_in?: InputMaybe>; - round_not_starts_with?: InputMaybe; - round_not_starts_with_nocase?: InputMaybe; - round_starts_with?: InputMaybe; - round_starts_with_nocase?: InputMaybe; - timestamp?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not?: InputMaybe; - timestamp_not_in?: InputMaybe>; - transaction?: InputMaybe; - transaction_?: InputMaybe; - transaction_contains?: InputMaybe; - transaction_contains_nocase?: InputMaybe; - transaction_ends_with?: InputMaybe; - transaction_ends_with_nocase?: InputMaybe; - transaction_gt?: InputMaybe; - transaction_gte?: InputMaybe; - transaction_in?: InputMaybe>; - transaction_lt?: InputMaybe; - transaction_lte?: InputMaybe; - transaction_not?: InputMaybe; - transaction_not_contains?: InputMaybe; - transaction_not_contains_nocase?: InputMaybe; - transaction_not_ends_with?: InputMaybe; - transaction_not_ends_with_nocase?: InputMaybe; - transaction_not_in?: InputMaybe>; - transaction_not_starts_with?: InputMaybe; - transaction_not_starts_with_nocase?: InputMaybe; - transaction_starts_with?: InputMaybe; - transaction_starts_with_nocase?: InputMaybe; - unbondingLockId?: InputMaybe; - unbondingLockId_gt?: InputMaybe; - unbondingLockId_gte?: InputMaybe; - unbondingLockId_in?: InputMaybe>; - unbondingLockId_lt?: InputMaybe; - unbondingLockId_lte?: InputMaybe; - unbondingLockId_not?: InputMaybe; - unbondingLockId_not_in?: InputMaybe>; -}; - -export enum RebondEvent_OrderBy { - Amount = 'amount', - Delegate = 'delegate', - DelegateActivationRound = 'delegate__activationRound', - DelegateActivationTimestamp = 'delegate__activationTimestamp', - DelegateActive = 'delegate__active', - DelegateDeactivationRound = 'delegate__deactivationRound', - DelegateFeeShare = 'delegate__feeShare', - DelegateFeeShareUpdateTimestamp = 'delegate__feeShareUpdateTimestamp', - DelegateId = 'delegate__id', - DelegateLastActiveStakeUpdateRound = 'delegate__lastActiveStakeUpdateRound', - DelegateNinetyDayVolumeEth = 'delegate__ninetyDayVolumeETH', - DelegateRewardCaller = 'delegate__rewardCaller', - DelegateRewardCut = 'delegate__rewardCut', - DelegateRewardCutUpdateTimestamp = 'delegate__rewardCutUpdateTimestamp', - DelegateServiceUri = 'delegate__serviceURI', - DelegateSixtyDayVolumeEth = 'delegate__sixtyDayVolumeETH', - DelegateStatus = 'delegate__status', - DelegateThirtyDayVolumeEth = 'delegate__thirtyDayVolumeETH', - DelegateTotalStake = 'delegate__totalStake', - DelegateTotalVolumeEth = 'delegate__totalVolumeETH', - DelegateTotalVolumeUsd = 'delegate__totalVolumeUSD', - Delegator = 'delegator', - DelegatorBondedAmount = 'delegator__bondedAmount', - DelegatorDelegatedAmount = 'delegator__delegatedAmount', - DelegatorFees = 'delegator__fees', - DelegatorId = 'delegator__id', - DelegatorPrincipal = 'delegator__principal', - DelegatorStartRound = 'delegator__startRound', - DelegatorUnbonded = 'delegator__unbonded', - DelegatorWithdrawnFees = 'delegator__withdrawnFees', - Id = 'id', - Round = 'round', - RoundActiveTranscoderCount = 'round__activeTranscoderCount', - RoundDelegatorsCount = 'round__delegatorsCount', - RoundEndBlock = 'round__endBlock', - RoundId = 'round__id', - RoundInflation = 'round__inflation', - RoundInitialized = 'round__initialized', - RoundLength = 'round__length', - RoundMintableTokens = 'round__mintableTokens', - RoundMovedStake = 'round__movedStake', - RoundNewStake = 'round__newStake', - RoundNumActiveTranscoders = 'round__numActiveTranscoders', - RoundParticipationRate = 'round__participationRate', - RoundStartBlock = 'round__startBlock', - RoundStartTimestamp = 'round__startTimestamp', - RoundTotalActiveStake = 'round__totalActiveStake', - RoundTotalSupply = 'round__totalSupply', - RoundVolumeEth = 'round__volumeETH', - RoundVolumeUsd = 'round__volumeUSD', - Timestamp = 'timestamp', - Transaction = 'transaction', - TransactionBlockNumber = 'transaction__blockNumber', - TransactionFrom = 'transaction__from', - TransactionGasPrice = 'transaction__gasPrice', - TransactionGasUsed = 'transaction__gasUsed', - TransactionId = 'transaction__id', - TransactionTimestamp = 'transaction__timestamp', - TransactionTo = 'transaction__to', - UnbondingLockId = 'unbondingLockId' -} - -/** ReserveClaimedEvent entities are created for every emitted ReserveClaimed event. */ -export type ReserveClaimedEvent = Event & { - __typename: 'ReserveClaimedEvent'; - /** Amount of funds claimed by claimant from the reserve for the reserve holder */ - amount: Scalars['BigDecimal']; - /** Reference to the claimant */ - claimant: Transcoder; - /** Ethereum transaction hash + event log index */ - id: Scalars['ID']; - /** Reference to the reserve holder */ - reserveHolder: Broadcaster; - /** Reference to the round the event occured in */ - round: Round; - /** Timestamp of the transaction the event was included in */ - timestamp: Scalars['Int']; - /** Reference to the transaction the event was included in */ - transaction: Transaction; -}; - -export type ReserveClaimedEvent_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - amount?: InputMaybe; - amount_gt?: InputMaybe; - amount_gte?: InputMaybe; - amount_in?: InputMaybe>; - amount_lt?: InputMaybe; - amount_lte?: InputMaybe; - amount_not?: InputMaybe; - amount_not_in?: InputMaybe>; - and?: InputMaybe>>; - claimant?: InputMaybe; - claimant_?: InputMaybe; - claimant_contains?: InputMaybe; - claimant_contains_nocase?: InputMaybe; - claimant_ends_with?: InputMaybe; - claimant_ends_with_nocase?: InputMaybe; - claimant_gt?: InputMaybe; - claimant_gte?: InputMaybe; - claimant_in?: InputMaybe>; - claimant_lt?: InputMaybe; - claimant_lte?: InputMaybe; - claimant_not?: InputMaybe; - claimant_not_contains?: InputMaybe; - claimant_not_contains_nocase?: InputMaybe; - claimant_not_ends_with?: InputMaybe; - claimant_not_ends_with_nocase?: InputMaybe; - claimant_not_in?: InputMaybe>; - claimant_not_starts_with?: InputMaybe; - claimant_not_starts_with_nocase?: InputMaybe; - claimant_starts_with?: InputMaybe; - claimant_starts_with_nocase?: InputMaybe; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - or?: InputMaybe>>; - reserveHolder?: InputMaybe; - reserveHolder_?: InputMaybe; - reserveHolder_contains?: InputMaybe; - reserveHolder_contains_nocase?: InputMaybe; - reserveHolder_ends_with?: InputMaybe; - reserveHolder_ends_with_nocase?: InputMaybe; - reserveHolder_gt?: InputMaybe; - reserveHolder_gte?: InputMaybe; - reserveHolder_in?: InputMaybe>; - reserveHolder_lt?: InputMaybe; - reserveHolder_lte?: InputMaybe; - reserveHolder_not?: InputMaybe; - reserveHolder_not_contains?: InputMaybe; - reserveHolder_not_contains_nocase?: InputMaybe; - reserveHolder_not_ends_with?: InputMaybe; - reserveHolder_not_ends_with_nocase?: InputMaybe; - reserveHolder_not_in?: InputMaybe>; - reserveHolder_not_starts_with?: InputMaybe; - reserveHolder_not_starts_with_nocase?: InputMaybe; - reserveHolder_starts_with?: InputMaybe; - reserveHolder_starts_with_nocase?: InputMaybe; - round?: InputMaybe; - round_?: InputMaybe; - round_contains?: InputMaybe; - round_contains_nocase?: InputMaybe; - round_ends_with?: InputMaybe; - round_ends_with_nocase?: InputMaybe; - round_gt?: InputMaybe; - round_gte?: InputMaybe; - round_in?: InputMaybe>; - round_lt?: InputMaybe; - round_lte?: InputMaybe; - round_not?: InputMaybe; - round_not_contains?: InputMaybe; - round_not_contains_nocase?: InputMaybe; - round_not_ends_with?: InputMaybe; - round_not_ends_with_nocase?: InputMaybe; - round_not_in?: InputMaybe>; - round_not_starts_with?: InputMaybe; - round_not_starts_with_nocase?: InputMaybe; - round_starts_with?: InputMaybe; - round_starts_with_nocase?: InputMaybe; - timestamp?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not?: InputMaybe; - timestamp_not_in?: InputMaybe>; - transaction?: InputMaybe; - transaction_?: InputMaybe; - transaction_contains?: InputMaybe; - transaction_contains_nocase?: InputMaybe; - transaction_ends_with?: InputMaybe; - transaction_ends_with_nocase?: InputMaybe; - transaction_gt?: InputMaybe; - transaction_gte?: InputMaybe; - transaction_in?: InputMaybe>; - transaction_lt?: InputMaybe; - transaction_lte?: InputMaybe; - transaction_not?: InputMaybe; - transaction_not_contains?: InputMaybe; - transaction_not_contains_nocase?: InputMaybe; - transaction_not_ends_with?: InputMaybe; - transaction_not_ends_with_nocase?: InputMaybe; - transaction_not_in?: InputMaybe>; - transaction_not_starts_with?: InputMaybe; - transaction_not_starts_with_nocase?: InputMaybe; - transaction_starts_with?: InputMaybe; - transaction_starts_with_nocase?: InputMaybe; -}; - -export enum ReserveClaimedEvent_OrderBy { - Amount = 'amount', - Claimant = 'claimant', - ClaimantActivationRound = 'claimant__activationRound', - ClaimantActivationTimestamp = 'claimant__activationTimestamp', - ClaimantActive = 'claimant__active', - ClaimantDeactivationRound = 'claimant__deactivationRound', - ClaimantFeeShare = 'claimant__feeShare', - ClaimantFeeShareUpdateTimestamp = 'claimant__feeShareUpdateTimestamp', - ClaimantId = 'claimant__id', - ClaimantLastActiveStakeUpdateRound = 'claimant__lastActiveStakeUpdateRound', - ClaimantNinetyDayVolumeEth = 'claimant__ninetyDayVolumeETH', - ClaimantRewardCaller = 'claimant__rewardCaller', - ClaimantRewardCut = 'claimant__rewardCut', - ClaimantRewardCutUpdateTimestamp = 'claimant__rewardCutUpdateTimestamp', - ClaimantServiceUri = 'claimant__serviceURI', - ClaimantSixtyDayVolumeEth = 'claimant__sixtyDayVolumeETH', - ClaimantStatus = 'claimant__status', - ClaimantThirtyDayVolumeEth = 'claimant__thirtyDayVolumeETH', - ClaimantTotalStake = 'claimant__totalStake', - ClaimantTotalVolumeEth = 'claimant__totalVolumeETH', - ClaimantTotalVolumeUsd = 'claimant__totalVolumeUSD', - Id = 'id', - ReserveHolder = 'reserveHolder', - ReserveHolderDeposit = 'reserveHolder__deposit', - ReserveHolderFirstActiveDay = 'reserveHolder__firstActiveDay', - ReserveHolderFirstFundedDay = 'reserveHolder__firstFundedDay', - ReserveHolderId = 'reserveHolder__id', - ReserveHolderLastActiveDay = 'reserveHolder__lastActiveDay', - ReserveHolderLastFundedDay = 'reserveHolder__lastFundedDay', - ReserveHolderNinetyDayVolumeEth = 'reserveHolder__ninetyDayVolumeETH', - ReserveHolderReserve = 'reserveHolder__reserve', - ReserveHolderSixtyDayVolumeEth = 'reserveHolder__sixtyDayVolumeETH', - ReserveHolderThirtyDayVolumeEth = 'reserveHolder__thirtyDayVolumeETH', - ReserveHolderTotalVolumeEth = 'reserveHolder__totalVolumeETH', - ReserveHolderTotalVolumeUsd = 'reserveHolder__totalVolumeUSD', - Round = 'round', - RoundActiveTranscoderCount = 'round__activeTranscoderCount', - RoundDelegatorsCount = 'round__delegatorsCount', - RoundEndBlock = 'round__endBlock', - RoundId = 'round__id', - RoundInflation = 'round__inflation', - RoundInitialized = 'round__initialized', - RoundLength = 'round__length', - RoundMintableTokens = 'round__mintableTokens', - RoundMovedStake = 'round__movedStake', - RoundNewStake = 'round__newStake', - RoundNumActiveTranscoders = 'round__numActiveTranscoders', - RoundParticipationRate = 'round__participationRate', - RoundStartBlock = 'round__startBlock', - RoundStartTimestamp = 'round__startTimestamp', - RoundTotalActiveStake = 'round__totalActiveStake', - RoundTotalSupply = 'round__totalSupply', - RoundVolumeEth = 'round__volumeETH', - RoundVolumeUsd = 'round__volumeUSD', - Timestamp = 'timestamp', - Transaction = 'transaction', - TransactionBlockNumber = 'transaction__blockNumber', - TransactionFrom = 'transaction__from', - TransactionGasPrice = 'transaction__gasPrice', - TransactionGasUsed = 'transaction__gasUsed', - TransactionId = 'transaction__id', - TransactionTimestamp = 'transaction__timestamp', - TransactionTo = 'transaction__to' -} - -/** ReserveFundedEvent entities are created for every emitted ReserveFunded event. */ -export type ReserveFundedEvent = Event & { - __typename: 'ReserveFundedEvent'; - /** Amount of funds added to reserve */ - amount: Scalars['BigDecimal']; - /** Ethereum transaction hash + event log index */ - id: Scalars['ID']; - /** Reference to reserve holder */ - reserveHolder: Broadcaster; - /** Reference to the round the event occured in */ - round: Round; - /** Timestamp of the transaction the event was included in */ - timestamp: Scalars['Int']; - /** Reference to the transaction the event was included in */ - transaction: Transaction; -}; - -export type ReserveFundedEvent_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - amount?: InputMaybe; - amount_gt?: InputMaybe; - amount_gte?: InputMaybe; - amount_in?: InputMaybe>; - amount_lt?: InputMaybe; - amount_lte?: InputMaybe; - amount_not?: InputMaybe; - amount_not_in?: InputMaybe>; - and?: InputMaybe>>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - or?: InputMaybe>>; - reserveHolder?: InputMaybe; - reserveHolder_?: InputMaybe; - reserveHolder_contains?: InputMaybe; - reserveHolder_contains_nocase?: InputMaybe; - reserveHolder_ends_with?: InputMaybe; - reserveHolder_ends_with_nocase?: InputMaybe; - reserveHolder_gt?: InputMaybe; - reserveHolder_gte?: InputMaybe; - reserveHolder_in?: InputMaybe>; - reserveHolder_lt?: InputMaybe; - reserveHolder_lte?: InputMaybe; - reserveHolder_not?: InputMaybe; - reserveHolder_not_contains?: InputMaybe; - reserveHolder_not_contains_nocase?: InputMaybe; - reserveHolder_not_ends_with?: InputMaybe; - reserveHolder_not_ends_with_nocase?: InputMaybe; - reserveHolder_not_in?: InputMaybe>; - reserveHolder_not_starts_with?: InputMaybe; - reserveHolder_not_starts_with_nocase?: InputMaybe; - reserveHolder_starts_with?: InputMaybe; - reserveHolder_starts_with_nocase?: InputMaybe; - round?: InputMaybe; - round_?: InputMaybe; - round_contains?: InputMaybe; - round_contains_nocase?: InputMaybe; - round_ends_with?: InputMaybe; - round_ends_with_nocase?: InputMaybe; - round_gt?: InputMaybe; - round_gte?: InputMaybe; - round_in?: InputMaybe>; - round_lt?: InputMaybe; - round_lte?: InputMaybe; - round_not?: InputMaybe; - round_not_contains?: InputMaybe; - round_not_contains_nocase?: InputMaybe; - round_not_ends_with?: InputMaybe; - round_not_ends_with_nocase?: InputMaybe; - round_not_in?: InputMaybe>; - round_not_starts_with?: InputMaybe; - round_not_starts_with_nocase?: InputMaybe; - round_starts_with?: InputMaybe; - round_starts_with_nocase?: InputMaybe; - timestamp?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not?: InputMaybe; - timestamp_not_in?: InputMaybe>; - transaction?: InputMaybe; - transaction_?: InputMaybe; - transaction_contains?: InputMaybe; - transaction_contains_nocase?: InputMaybe; - transaction_ends_with?: InputMaybe; - transaction_ends_with_nocase?: InputMaybe; - transaction_gt?: InputMaybe; - transaction_gte?: InputMaybe; - transaction_in?: InputMaybe>; - transaction_lt?: InputMaybe; - transaction_lte?: InputMaybe; - transaction_not?: InputMaybe; - transaction_not_contains?: InputMaybe; - transaction_not_contains_nocase?: InputMaybe; - transaction_not_ends_with?: InputMaybe; - transaction_not_ends_with_nocase?: InputMaybe; - transaction_not_in?: InputMaybe>; - transaction_not_starts_with?: InputMaybe; - transaction_not_starts_with_nocase?: InputMaybe; - transaction_starts_with?: InputMaybe; - transaction_starts_with_nocase?: InputMaybe; -}; - -export enum ReserveFundedEvent_OrderBy { - Amount = 'amount', - Id = 'id', - ReserveHolder = 'reserveHolder', - ReserveHolderDeposit = 'reserveHolder__deposit', - ReserveHolderFirstActiveDay = 'reserveHolder__firstActiveDay', - ReserveHolderFirstFundedDay = 'reserveHolder__firstFundedDay', - ReserveHolderId = 'reserveHolder__id', - ReserveHolderLastActiveDay = 'reserveHolder__lastActiveDay', - ReserveHolderLastFundedDay = 'reserveHolder__lastFundedDay', - ReserveHolderNinetyDayVolumeEth = 'reserveHolder__ninetyDayVolumeETH', - ReserveHolderReserve = 'reserveHolder__reserve', - ReserveHolderSixtyDayVolumeEth = 'reserveHolder__sixtyDayVolumeETH', - ReserveHolderThirtyDayVolumeEth = 'reserveHolder__thirtyDayVolumeETH', - ReserveHolderTotalVolumeEth = 'reserveHolder__totalVolumeETH', - ReserveHolderTotalVolumeUsd = 'reserveHolder__totalVolumeUSD', - Round = 'round', - RoundActiveTranscoderCount = 'round__activeTranscoderCount', - RoundDelegatorsCount = 'round__delegatorsCount', - RoundEndBlock = 'round__endBlock', - RoundId = 'round__id', - RoundInflation = 'round__inflation', - RoundInitialized = 'round__initialized', - RoundLength = 'round__length', - RoundMintableTokens = 'round__mintableTokens', - RoundMovedStake = 'round__movedStake', - RoundNewStake = 'round__newStake', - RoundNumActiveTranscoders = 'round__numActiveTranscoders', - RoundParticipationRate = 'round__participationRate', - RoundStartBlock = 'round__startBlock', - RoundStartTimestamp = 'round__startTimestamp', - RoundTotalActiveStake = 'round__totalActiveStake', - RoundTotalSupply = 'round__totalSupply', - RoundVolumeEth = 'round__volumeETH', - RoundVolumeUsd = 'round__volumeUSD', - Timestamp = 'timestamp', - Transaction = 'transaction', - TransactionBlockNumber = 'transaction__blockNumber', - TransactionFrom = 'transaction__from', - TransactionGasPrice = 'transaction__gasPrice', - TransactionGasUsed = 'transaction__gasUsed', - TransactionId = 'transaction__id', - TransactionTimestamp = 'transaction__timestamp', - TransactionTo = 'transaction__to' -} - -/** RewardCallerSetEvent entities are created for every emitted RewardCallerSet event. */ -export type RewardCallerSetEvent = Event & { - __typename: 'RewardCallerSetEvent'; - /** Reference to the transcoder that set the reward caller */ - delegate: Transcoder; - /** Ethereum transaction hash + event log index */ - id: Scalars['ID']; - /** Address authorized to call reward - the zero address when unset */ - rewardCaller: Scalars['String']; - /** Reference to the round the event occured in */ - round: Round; - /** Timestamp of the transaction the event was included in */ - timestamp: Scalars['Int']; - /** Reference to the transaction the event was included in */ - transaction: Transaction; -}; - -export type RewardCallerSetEvent_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - delegate?: InputMaybe; - delegate_?: InputMaybe; - delegate_contains?: InputMaybe; - delegate_contains_nocase?: InputMaybe; - delegate_ends_with?: InputMaybe; - delegate_ends_with_nocase?: InputMaybe; - delegate_gt?: InputMaybe; - delegate_gte?: InputMaybe; - delegate_in?: InputMaybe>; - delegate_lt?: InputMaybe; - delegate_lte?: InputMaybe; - delegate_not?: InputMaybe; - delegate_not_contains?: InputMaybe; - delegate_not_contains_nocase?: InputMaybe; - delegate_not_ends_with?: InputMaybe; - delegate_not_ends_with_nocase?: InputMaybe; - delegate_not_in?: InputMaybe>; - delegate_not_starts_with?: InputMaybe; - delegate_not_starts_with_nocase?: InputMaybe; - delegate_starts_with?: InputMaybe; - delegate_starts_with_nocase?: InputMaybe; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - or?: InputMaybe>>; - rewardCaller?: InputMaybe; - rewardCaller_contains?: InputMaybe; - rewardCaller_contains_nocase?: InputMaybe; - rewardCaller_ends_with?: InputMaybe; - rewardCaller_ends_with_nocase?: InputMaybe; - rewardCaller_gt?: InputMaybe; - rewardCaller_gte?: InputMaybe; - rewardCaller_in?: InputMaybe>; - rewardCaller_lt?: InputMaybe; - rewardCaller_lte?: InputMaybe; - rewardCaller_not?: InputMaybe; - rewardCaller_not_contains?: InputMaybe; - rewardCaller_not_contains_nocase?: InputMaybe; - rewardCaller_not_ends_with?: InputMaybe; - rewardCaller_not_ends_with_nocase?: InputMaybe; - rewardCaller_not_in?: InputMaybe>; - rewardCaller_not_starts_with?: InputMaybe; - rewardCaller_not_starts_with_nocase?: InputMaybe; - rewardCaller_starts_with?: InputMaybe; - rewardCaller_starts_with_nocase?: InputMaybe; - round?: InputMaybe; - round_?: InputMaybe; - round_contains?: InputMaybe; - round_contains_nocase?: InputMaybe; - round_ends_with?: InputMaybe; - round_ends_with_nocase?: InputMaybe; - round_gt?: InputMaybe; - round_gte?: InputMaybe; - round_in?: InputMaybe>; - round_lt?: InputMaybe; - round_lte?: InputMaybe; - round_not?: InputMaybe; - round_not_contains?: InputMaybe; - round_not_contains_nocase?: InputMaybe; - round_not_ends_with?: InputMaybe; - round_not_ends_with_nocase?: InputMaybe; - round_not_in?: InputMaybe>; - round_not_starts_with?: InputMaybe; - round_not_starts_with_nocase?: InputMaybe; - round_starts_with?: InputMaybe; - round_starts_with_nocase?: InputMaybe; - timestamp?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not?: InputMaybe; - timestamp_not_in?: InputMaybe>; - transaction?: InputMaybe; - transaction_?: InputMaybe; - transaction_contains?: InputMaybe; - transaction_contains_nocase?: InputMaybe; - transaction_ends_with?: InputMaybe; - transaction_ends_with_nocase?: InputMaybe; - transaction_gt?: InputMaybe; - transaction_gte?: InputMaybe; - transaction_in?: InputMaybe>; - transaction_lt?: InputMaybe; - transaction_lte?: InputMaybe; - transaction_not?: InputMaybe; - transaction_not_contains?: InputMaybe; - transaction_not_contains_nocase?: InputMaybe; - transaction_not_ends_with?: InputMaybe; - transaction_not_ends_with_nocase?: InputMaybe; - transaction_not_in?: InputMaybe>; - transaction_not_starts_with?: InputMaybe; - transaction_not_starts_with_nocase?: InputMaybe; - transaction_starts_with?: InputMaybe; - transaction_starts_with_nocase?: InputMaybe; -}; - -export enum RewardCallerSetEvent_OrderBy { - Delegate = 'delegate', - DelegateActivationRound = 'delegate__activationRound', - DelegateActivationTimestamp = 'delegate__activationTimestamp', - DelegateActive = 'delegate__active', - DelegateDeactivationRound = 'delegate__deactivationRound', - DelegateFeeShare = 'delegate__feeShare', - DelegateFeeShareUpdateTimestamp = 'delegate__feeShareUpdateTimestamp', - DelegateId = 'delegate__id', - DelegateLastActiveStakeUpdateRound = 'delegate__lastActiveStakeUpdateRound', - DelegateNinetyDayVolumeEth = 'delegate__ninetyDayVolumeETH', - DelegateRewardCaller = 'delegate__rewardCaller', - DelegateRewardCut = 'delegate__rewardCut', - DelegateRewardCutUpdateTimestamp = 'delegate__rewardCutUpdateTimestamp', - DelegateServiceUri = 'delegate__serviceURI', - DelegateSixtyDayVolumeEth = 'delegate__sixtyDayVolumeETH', - DelegateStatus = 'delegate__status', - DelegateThirtyDayVolumeEth = 'delegate__thirtyDayVolumeETH', - DelegateTotalStake = 'delegate__totalStake', - DelegateTotalVolumeEth = 'delegate__totalVolumeETH', - DelegateTotalVolumeUsd = 'delegate__totalVolumeUSD', - Id = 'id', - RewardCaller = 'rewardCaller', - Round = 'round', - RoundActiveTranscoderCount = 'round__activeTranscoderCount', - RoundDelegatorsCount = 'round__delegatorsCount', - RoundEndBlock = 'round__endBlock', - RoundId = 'round__id', - RoundInflation = 'round__inflation', - RoundInitialized = 'round__initialized', - RoundLength = 'round__length', - RoundMintableTokens = 'round__mintableTokens', - RoundMovedStake = 'round__movedStake', - RoundNewStake = 'round__newStake', - RoundNumActiveTranscoders = 'round__numActiveTranscoders', - RoundParticipationRate = 'round__participationRate', - RoundStartBlock = 'round__startBlock', - RoundStartTimestamp = 'round__startTimestamp', - RoundTotalActiveStake = 'round__totalActiveStake', - RoundTotalSupply = 'round__totalSupply', - RoundVolumeEth = 'round__volumeETH', - RoundVolumeUsd = 'round__volumeUSD', - Timestamp = 'timestamp', - Transaction = 'transaction', - TransactionBlockNumber = 'transaction__blockNumber', - TransactionFrom = 'transaction__from', - TransactionGasPrice = 'transaction__gasPrice', - TransactionGasUsed = 'transaction__gasUsed', - TransactionId = 'transaction__id', - TransactionTimestamp = 'transaction__timestamp', - TransactionTo = 'transaction__to' -} - -/** RewardEvent entities are created for every emitted Reward event. */ -export type RewardEvent = Event & { - __typename: 'RewardEvent'; - /** Reference to the delegate that claimed its inflationary token reward */ - delegate: Transcoder; - /** Ethereum transaction hash + event log index */ - id: Scalars['ID']; - /** Amount of inflationary token rewards claimed */ - rewardTokens: Scalars['BigDecimal']; - /** Reference to the round the event occured in */ - round: Round; - /** Timestamp of the transaction the event was included in */ - timestamp: Scalars['Int']; - /** Reference to the transaction the event was included in */ - transaction: Transaction; -}; - -export type RewardEvent_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - delegate?: InputMaybe; - delegate_?: InputMaybe; - delegate_contains?: InputMaybe; - delegate_contains_nocase?: InputMaybe; - delegate_ends_with?: InputMaybe; - delegate_ends_with_nocase?: InputMaybe; - delegate_gt?: InputMaybe; - delegate_gte?: InputMaybe; - delegate_in?: InputMaybe>; - delegate_lt?: InputMaybe; - delegate_lte?: InputMaybe; - delegate_not?: InputMaybe; - delegate_not_contains?: InputMaybe; - delegate_not_contains_nocase?: InputMaybe; - delegate_not_ends_with?: InputMaybe; - delegate_not_ends_with_nocase?: InputMaybe; - delegate_not_in?: InputMaybe>; - delegate_not_starts_with?: InputMaybe; - delegate_not_starts_with_nocase?: InputMaybe; - delegate_starts_with?: InputMaybe; - delegate_starts_with_nocase?: InputMaybe; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - or?: InputMaybe>>; - rewardTokens?: InputMaybe; - rewardTokens_gt?: InputMaybe; - rewardTokens_gte?: InputMaybe; - rewardTokens_in?: InputMaybe>; - rewardTokens_lt?: InputMaybe; - rewardTokens_lte?: InputMaybe; - rewardTokens_not?: InputMaybe; - rewardTokens_not_in?: InputMaybe>; - round?: InputMaybe; - round_?: InputMaybe; - round_contains?: InputMaybe; - round_contains_nocase?: InputMaybe; - round_ends_with?: InputMaybe; - round_ends_with_nocase?: InputMaybe; - round_gt?: InputMaybe; - round_gte?: InputMaybe; - round_in?: InputMaybe>; - round_lt?: InputMaybe; - round_lte?: InputMaybe; - round_not?: InputMaybe; - round_not_contains?: InputMaybe; - round_not_contains_nocase?: InputMaybe; - round_not_ends_with?: InputMaybe; - round_not_ends_with_nocase?: InputMaybe; - round_not_in?: InputMaybe>; - round_not_starts_with?: InputMaybe; - round_not_starts_with_nocase?: InputMaybe; - round_starts_with?: InputMaybe; - round_starts_with_nocase?: InputMaybe; - timestamp?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not?: InputMaybe; - timestamp_not_in?: InputMaybe>; - transaction?: InputMaybe; - transaction_?: InputMaybe; - transaction_contains?: InputMaybe; - transaction_contains_nocase?: InputMaybe; - transaction_ends_with?: InputMaybe; - transaction_ends_with_nocase?: InputMaybe; - transaction_gt?: InputMaybe; - transaction_gte?: InputMaybe; - transaction_in?: InputMaybe>; - transaction_lt?: InputMaybe; - transaction_lte?: InputMaybe; - transaction_not?: InputMaybe; - transaction_not_contains?: InputMaybe; - transaction_not_contains_nocase?: InputMaybe; - transaction_not_ends_with?: InputMaybe; - transaction_not_ends_with_nocase?: InputMaybe; - transaction_not_in?: InputMaybe>; - transaction_not_starts_with?: InputMaybe; - transaction_not_starts_with_nocase?: InputMaybe; - transaction_starts_with?: InputMaybe; - transaction_starts_with_nocase?: InputMaybe; -}; - -export enum RewardEvent_OrderBy { - Delegate = 'delegate', - DelegateActivationRound = 'delegate__activationRound', - DelegateActivationTimestamp = 'delegate__activationTimestamp', - DelegateActive = 'delegate__active', - DelegateDeactivationRound = 'delegate__deactivationRound', - DelegateFeeShare = 'delegate__feeShare', - DelegateFeeShareUpdateTimestamp = 'delegate__feeShareUpdateTimestamp', - DelegateId = 'delegate__id', - DelegateLastActiveStakeUpdateRound = 'delegate__lastActiveStakeUpdateRound', - DelegateNinetyDayVolumeEth = 'delegate__ninetyDayVolumeETH', - DelegateRewardCaller = 'delegate__rewardCaller', - DelegateRewardCut = 'delegate__rewardCut', - DelegateRewardCutUpdateTimestamp = 'delegate__rewardCutUpdateTimestamp', - DelegateServiceUri = 'delegate__serviceURI', - DelegateSixtyDayVolumeEth = 'delegate__sixtyDayVolumeETH', - DelegateStatus = 'delegate__status', - DelegateThirtyDayVolumeEth = 'delegate__thirtyDayVolumeETH', - DelegateTotalStake = 'delegate__totalStake', - DelegateTotalVolumeEth = 'delegate__totalVolumeETH', - DelegateTotalVolumeUsd = 'delegate__totalVolumeUSD', - Id = 'id', - RewardTokens = 'rewardTokens', - Round = 'round', - RoundActiveTranscoderCount = 'round__activeTranscoderCount', - RoundDelegatorsCount = 'round__delegatorsCount', - RoundEndBlock = 'round__endBlock', - RoundId = 'round__id', - RoundInflation = 'round__inflation', - RoundInitialized = 'round__initialized', - RoundLength = 'round__length', - RoundMintableTokens = 'round__mintableTokens', - RoundMovedStake = 'round__movedStake', - RoundNewStake = 'round__newStake', - RoundNumActiveTranscoders = 'round__numActiveTranscoders', - RoundParticipationRate = 'round__participationRate', - RoundStartBlock = 'round__startBlock', - RoundStartTimestamp = 'round__startTimestamp', - RoundTotalActiveStake = 'round__totalActiveStake', - RoundTotalSupply = 'round__totalSupply', - RoundVolumeEth = 'round__volumeETH', - RoundVolumeUsd = 'round__volumeUSD', - Timestamp = 'timestamp', - Transaction = 'transaction', - TransactionBlockNumber = 'transaction__blockNumber', - TransactionFrom = 'transaction__from', - TransactionGasPrice = 'transaction__gasPrice', - TransactionGasUsed = 'transaction__gasUsed', - TransactionId = 'transaction__id', - TransactionTimestamp = 'transaction__timestamp', - TransactionTo = 'transaction__to' -} - -/** The Livepeer protocol is round based and each round is represented by some number of Ethereum blocks. */ -export type Round = { - __typename: 'Round'; - /** Total active transcoders (up to the limit) */ - activeTranscoderCount: Scalars['BigInt']; - /** Total number of delegators at the start of the round */ - delegatorsCount: Scalars['BigInt']; - /** End block for the round */ - endBlock: Scalars['BigInt']; - /** Round number */ - id: Scalars['ID']; - /** Per round inflation rate */ - inflation: Scalars['BigInt']; - /** Whether the round was initialized */ - initialized: Scalars['Boolean']; - /** Number of blocks this round lasts for */ - length: Scalars['BigInt']; - /** Mintable tokens for the round */ - mintableTokens: Scalars['BigDecimal']; - /** Total stake moved from one delegate to another during the round */ - movedStake: Scalars['BigDecimal']; - /** Total amount of new stake introduced during the round */ - newStake: Scalars['BigDecimal']; - /** Limit of active transcoders */ - numActiveTranscoders: Scalars['BigInt']; - /** Participation rate during the round (totalActiveStake/totalSupply) */ - participationRate: Scalars['BigDecimal']; - /** Pools associated with the round */ - pools?: Maybe>; - /** Start block for the round */ - startBlock: Scalars['BigInt']; - /** The start date beginning at 12:00am UTC */ - startTimestamp: Scalars['Int']; - /** Total active stake during the round */ - totalActiveStake: Scalars['BigDecimal']; - /** Total Livepeer token supply during the round */ - totalSupply: Scalars['BigDecimal']; - /** Fees generated this round in ETH */ - volumeETH: Scalars['BigDecimal']; - /** Fees generated this round in USD */ - volumeUSD: Scalars['BigDecimal']; -}; - - -/** The Livepeer protocol is round based and each round is represented by some number of Ethereum blocks. */ -export type RoundPoolsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - -export type Round_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - activeTranscoderCount?: InputMaybe; - activeTranscoderCount_gt?: InputMaybe; - activeTranscoderCount_gte?: InputMaybe; - activeTranscoderCount_in?: InputMaybe>; - activeTranscoderCount_lt?: InputMaybe; - activeTranscoderCount_lte?: InputMaybe; - activeTranscoderCount_not?: InputMaybe; - activeTranscoderCount_not_in?: InputMaybe>; - and?: InputMaybe>>; - delegatorsCount?: InputMaybe; - delegatorsCount_gt?: InputMaybe; - delegatorsCount_gte?: InputMaybe; - delegatorsCount_in?: InputMaybe>; - delegatorsCount_lt?: InputMaybe; - delegatorsCount_lte?: InputMaybe; - delegatorsCount_not?: InputMaybe; - delegatorsCount_not_in?: InputMaybe>; - endBlock?: InputMaybe; - endBlock_gt?: InputMaybe; - endBlock_gte?: InputMaybe; - endBlock_in?: InputMaybe>; - endBlock_lt?: InputMaybe; - endBlock_lte?: InputMaybe; - endBlock_not?: InputMaybe; - endBlock_not_in?: InputMaybe>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - inflation?: InputMaybe; - inflation_gt?: InputMaybe; - inflation_gte?: InputMaybe; - inflation_in?: InputMaybe>; - inflation_lt?: InputMaybe; - inflation_lte?: InputMaybe; - inflation_not?: InputMaybe; - inflation_not_in?: InputMaybe>; - initialized?: InputMaybe; - initialized_in?: InputMaybe>; - initialized_not?: InputMaybe; - initialized_not_in?: InputMaybe>; - length?: InputMaybe; - length_gt?: InputMaybe; - length_gte?: InputMaybe; - length_in?: InputMaybe>; - length_lt?: InputMaybe; - length_lte?: InputMaybe; - length_not?: InputMaybe; - length_not_in?: InputMaybe>; - mintableTokens?: InputMaybe; - mintableTokens_gt?: InputMaybe; - mintableTokens_gte?: InputMaybe; - mintableTokens_in?: InputMaybe>; - mintableTokens_lt?: InputMaybe; - mintableTokens_lte?: InputMaybe; - mintableTokens_not?: InputMaybe; - mintableTokens_not_in?: InputMaybe>; - movedStake?: InputMaybe; - movedStake_gt?: InputMaybe; - movedStake_gte?: InputMaybe; - movedStake_in?: InputMaybe>; - movedStake_lt?: InputMaybe; - movedStake_lte?: InputMaybe; - movedStake_not?: InputMaybe; - movedStake_not_in?: InputMaybe>; - newStake?: InputMaybe; - newStake_gt?: InputMaybe; - newStake_gte?: InputMaybe; - newStake_in?: InputMaybe>; - newStake_lt?: InputMaybe; - newStake_lte?: InputMaybe; - newStake_not?: InputMaybe; - newStake_not_in?: InputMaybe>; - numActiveTranscoders?: InputMaybe; - numActiveTranscoders_gt?: InputMaybe; - numActiveTranscoders_gte?: InputMaybe; - numActiveTranscoders_in?: InputMaybe>; - numActiveTranscoders_lt?: InputMaybe; - numActiveTranscoders_lte?: InputMaybe; - numActiveTranscoders_not?: InputMaybe; - numActiveTranscoders_not_in?: InputMaybe>; - or?: InputMaybe>>; - participationRate?: InputMaybe; - participationRate_gt?: InputMaybe; - participationRate_gte?: InputMaybe; - participationRate_in?: InputMaybe>; - participationRate_lt?: InputMaybe; - participationRate_lte?: InputMaybe; - participationRate_not?: InputMaybe; - participationRate_not_in?: InputMaybe>; - pools_?: InputMaybe; - startBlock?: InputMaybe; - startBlock_gt?: InputMaybe; - startBlock_gte?: InputMaybe; - startBlock_in?: InputMaybe>; - startBlock_lt?: InputMaybe; - startBlock_lte?: InputMaybe; - startBlock_not?: InputMaybe; - startBlock_not_in?: InputMaybe>; - startTimestamp?: InputMaybe; - startTimestamp_gt?: InputMaybe; - startTimestamp_gte?: InputMaybe; - startTimestamp_in?: InputMaybe>; - startTimestamp_lt?: InputMaybe; - startTimestamp_lte?: InputMaybe; - startTimestamp_not?: InputMaybe; - startTimestamp_not_in?: InputMaybe>; - totalActiveStake?: InputMaybe; - totalActiveStake_gt?: InputMaybe; - totalActiveStake_gte?: InputMaybe; - totalActiveStake_in?: InputMaybe>; - totalActiveStake_lt?: InputMaybe; - totalActiveStake_lte?: InputMaybe; - totalActiveStake_not?: InputMaybe; - totalActiveStake_not_in?: InputMaybe>; - totalSupply?: InputMaybe; - totalSupply_gt?: InputMaybe; - totalSupply_gte?: InputMaybe; - totalSupply_in?: InputMaybe>; - totalSupply_lt?: InputMaybe; - totalSupply_lte?: InputMaybe; - totalSupply_not?: InputMaybe; - totalSupply_not_in?: InputMaybe>; - volumeETH?: InputMaybe; - volumeETH_gt?: InputMaybe; - volumeETH_gte?: InputMaybe; - volumeETH_in?: InputMaybe>; - volumeETH_lt?: InputMaybe; - volumeETH_lte?: InputMaybe; - volumeETH_not?: InputMaybe; - volumeETH_not_in?: InputMaybe>; - volumeUSD?: InputMaybe; - volumeUSD_gt?: InputMaybe; - volumeUSD_gte?: InputMaybe; - volumeUSD_in?: InputMaybe>; - volumeUSD_lt?: InputMaybe; - volumeUSD_lte?: InputMaybe; - volumeUSD_not?: InputMaybe; - volumeUSD_not_in?: InputMaybe>; -}; - -export enum Round_OrderBy { - ActiveTranscoderCount = 'activeTranscoderCount', - DelegatorsCount = 'delegatorsCount', - EndBlock = 'endBlock', - Id = 'id', - Inflation = 'inflation', - Initialized = 'initialized', - Length = 'length', - MintableTokens = 'mintableTokens', - MovedStake = 'movedStake', - NewStake = 'newStake', - NumActiveTranscoders = 'numActiveTranscoders', - ParticipationRate = 'participationRate', - Pools = 'pools', - StartBlock = 'startBlock', - StartTimestamp = 'startTimestamp', - TotalActiveStake = 'totalActiveStake', - TotalSupply = 'totalSupply', - VolumeEth = 'volumeETH', - VolumeUsd = 'volumeUSD' -} - -/** ServiceURIUpdateEvent entities are created for every emitted ServiceURIUpdate event. */ -export type ServiceUriUpdateEvent = Event & { - __typename: 'ServiceURIUpdateEvent'; - /** Address of sender */ - addr: Scalars['String']; - /** Ethereum transaction hash + event log index */ - id: Scalars['ID']; - /** Reference to the round the event occured in */ - round: Round; - /** Service URI endpoint for the caller */ - serviceURI: Scalars['String']; - /** Timestamp of the transaction the event was included in */ - timestamp: Scalars['Int']; - /** Reference to the transaction the event was included in */ - transaction: Transaction; -}; - -export type ServiceUriUpdateEvent_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - addr?: InputMaybe; - addr_contains?: InputMaybe; - addr_contains_nocase?: InputMaybe; - addr_ends_with?: InputMaybe; - addr_ends_with_nocase?: InputMaybe; - addr_gt?: InputMaybe; - addr_gte?: InputMaybe; - addr_in?: InputMaybe>; - addr_lt?: InputMaybe; - addr_lte?: InputMaybe; - addr_not?: InputMaybe; - addr_not_contains?: InputMaybe; - addr_not_contains_nocase?: InputMaybe; - addr_not_ends_with?: InputMaybe; - addr_not_ends_with_nocase?: InputMaybe; - addr_not_in?: InputMaybe>; - addr_not_starts_with?: InputMaybe; - addr_not_starts_with_nocase?: InputMaybe; - addr_starts_with?: InputMaybe; - addr_starts_with_nocase?: InputMaybe; - and?: InputMaybe>>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - or?: InputMaybe>>; - round?: InputMaybe; - round_?: InputMaybe; - round_contains?: InputMaybe; - round_contains_nocase?: InputMaybe; - round_ends_with?: InputMaybe; - round_ends_with_nocase?: InputMaybe; - round_gt?: InputMaybe; - round_gte?: InputMaybe; - round_in?: InputMaybe>; - round_lt?: InputMaybe; - round_lte?: InputMaybe; - round_not?: InputMaybe; - round_not_contains?: InputMaybe; - round_not_contains_nocase?: InputMaybe; - round_not_ends_with?: InputMaybe; - round_not_ends_with_nocase?: InputMaybe; - round_not_in?: InputMaybe>; - round_not_starts_with?: InputMaybe; - round_not_starts_with_nocase?: InputMaybe; - round_starts_with?: InputMaybe; - round_starts_with_nocase?: InputMaybe; - serviceURI?: InputMaybe; - serviceURI_contains?: InputMaybe; - serviceURI_contains_nocase?: InputMaybe; - serviceURI_ends_with?: InputMaybe; - serviceURI_ends_with_nocase?: InputMaybe; - serviceURI_gt?: InputMaybe; - serviceURI_gte?: InputMaybe; - serviceURI_in?: InputMaybe>; - serviceURI_lt?: InputMaybe; - serviceURI_lte?: InputMaybe; - serviceURI_not?: InputMaybe; - serviceURI_not_contains?: InputMaybe; - serviceURI_not_contains_nocase?: InputMaybe; - serviceURI_not_ends_with?: InputMaybe; - serviceURI_not_ends_with_nocase?: InputMaybe; - serviceURI_not_in?: InputMaybe>; - serviceURI_not_starts_with?: InputMaybe; - serviceURI_not_starts_with_nocase?: InputMaybe; - serviceURI_starts_with?: InputMaybe; - serviceURI_starts_with_nocase?: InputMaybe; - timestamp?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not?: InputMaybe; - timestamp_not_in?: InputMaybe>; - transaction?: InputMaybe; - transaction_?: InputMaybe; - transaction_contains?: InputMaybe; - transaction_contains_nocase?: InputMaybe; - transaction_ends_with?: InputMaybe; - transaction_ends_with_nocase?: InputMaybe; - transaction_gt?: InputMaybe; - transaction_gte?: InputMaybe; - transaction_in?: InputMaybe>; - transaction_lt?: InputMaybe; - transaction_lte?: InputMaybe; - transaction_not?: InputMaybe; - transaction_not_contains?: InputMaybe; - transaction_not_contains_nocase?: InputMaybe; - transaction_not_ends_with?: InputMaybe; - transaction_not_ends_with_nocase?: InputMaybe; - transaction_not_in?: InputMaybe>; - transaction_not_starts_with?: InputMaybe; - transaction_not_starts_with_nocase?: InputMaybe; - transaction_starts_with?: InputMaybe; - transaction_starts_with_nocase?: InputMaybe; -}; - -export enum ServiceUriUpdateEvent_OrderBy { - Addr = 'addr', - Id = 'id', - Round = 'round', - RoundActiveTranscoderCount = 'round__activeTranscoderCount', - RoundDelegatorsCount = 'round__delegatorsCount', - RoundEndBlock = 'round__endBlock', - RoundId = 'round__id', - RoundInflation = 'round__inflation', - RoundInitialized = 'round__initialized', - RoundLength = 'round__length', - RoundMintableTokens = 'round__mintableTokens', - RoundMovedStake = 'round__movedStake', - RoundNewStake = 'round__newStake', - RoundNumActiveTranscoders = 'round__numActiveTranscoders', - RoundParticipationRate = 'round__participationRate', - RoundStartBlock = 'round__startBlock', - RoundStartTimestamp = 'round__startTimestamp', - RoundTotalActiveStake = 'round__totalActiveStake', - RoundTotalSupply = 'round__totalSupply', - RoundVolumeEth = 'round__volumeETH', - RoundVolumeUsd = 'round__volumeUSD', - ServiceUri = 'serviceURI', - Timestamp = 'timestamp', - Transaction = 'transaction', - TransactionBlockNumber = 'transaction__blockNumber', - TransactionFrom = 'transaction__from', - TransactionGasPrice = 'transaction__gasPrice', - TransactionGasUsed = 'transaction__gasUsed', - TransactionId = 'transaction__id', - TransactionTimestamp = 'transaction__timestamp', - TransactionTo = 'transaction__to' -} - -/** SetCurrentRewardTokensEvent entities are created for every emitted SetCurrentRewardTokens event. */ -export type SetCurrentRewardTokensEvent = Event & { - __typename: 'SetCurrentRewardTokensEvent'; - /** Current inflation during the round */ - currentInflation: Scalars['BigInt']; - /** Number of mintable tokens for the round */ - currentMintableTokens: Scalars['BigDecimal']; - /** Ethereum transaction hash + event log index */ - id: Scalars['ID']; - /** Reference to the round the event occured in */ - round: Round; - /** Timestamp of the transaction the event was included in */ - timestamp: Scalars['Int']; - /** Reference to the transaction the event was included in */ - transaction: Transaction; -}; - -export type SetCurrentRewardTokensEvent_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - currentInflation?: InputMaybe; - currentInflation_gt?: InputMaybe; - currentInflation_gte?: InputMaybe; - currentInflation_in?: InputMaybe>; - currentInflation_lt?: InputMaybe; - currentInflation_lte?: InputMaybe; - currentInflation_not?: InputMaybe; - currentInflation_not_in?: InputMaybe>; - currentMintableTokens?: InputMaybe; - currentMintableTokens_gt?: InputMaybe; - currentMintableTokens_gte?: InputMaybe; - currentMintableTokens_in?: InputMaybe>; - currentMintableTokens_lt?: InputMaybe; - currentMintableTokens_lte?: InputMaybe; - currentMintableTokens_not?: InputMaybe; - currentMintableTokens_not_in?: InputMaybe>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - or?: InputMaybe>>; - round?: InputMaybe; - round_?: InputMaybe; - round_contains?: InputMaybe; - round_contains_nocase?: InputMaybe; - round_ends_with?: InputMaybe; - round_ends_with_nocase?: InputMaybe; - round_gt?: InputMaybe; - round_gte?: InputMaybe; - round_in?: InputMaybe>; - round_lt?: InputMaybe; - round_lte?: InputMaybe; - round_not?: InputMaybe; - round_not_contains?: InputMaybe; - round_not_contains_nocase?: InputMaybe; - round_not_ends_with?: InputMaybe; - round_not_ends_with_nocase?: InputMaybe; - round_not_in?: InputMaybe>; - round_not_starts_with?: InputMaybe; - round_not_starts_with_nocase?: InputMaybe; - round_starts_with?: InputMaybe; - round_starts_with_nocase?: InputMaybe; - timestamp?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not?: InputMaybe; - timestamp_not_in?: InputMaybe>; - transaction?: InputMaybe; - transaction_?: InputMaybe; - transaction_contains?: InputMaybe; - transaction_contains_nocase?: InputMaybe; - transaction_ends_with?: InputMaybe; - transaction_ends_with_nocase?: InputMaybe; - transaction_gt?: InputMaybe; - transaction_gte?: InputMaybe; - transaction_in?: InputMaybe>; - transaction_lt?: InputMaybe; - transaction_lte?: InputMaybe; - transaction_not?: InputMaybe; - transaction_not_contains?: InputMaybe; - transaction_not_contains_nocase?: InputMaybe; - transaction_not_ends_with?: InputMaybe; - transaction_not_ends_with_nocase?: InputMaybe; - transaction_not_in?: InputMaybe>; - transaction_not_starts_with?: InputMaybe; - transaction_not_starts_with_nocase?: InputMaybe; - transaction_starts_with?: InputMaybe; - transaction_starts_with_nocase?: InputMaybe; -}; - -export enum SetCurrentRewardTokensEvent_OrderBy { - CurrentInflation = 'currentInflation', - CurrentMintableTokens = 'currentMintableTokens', - Id = 'id', - Round = 'round', - RoundActiveTranscoderCount = 'round__activeTranscoderCount', - RoundDelegatorsCount = 'round__delegatorsCount', - RoundEndBlock = 'round__endBlock', - RoundId = 'round__id', - RoundInflation = 'round__inflation', - RoundInitialized = 'round__initialized', - RoundLength = 'round__length', - RoundMintableTokens = 'round__mintableTokens', - RoundMovedStake = 'round__movedStake', - RoundNewStake = 'round__newStake', - RoundNumActiveTranscoders = 'round__numActiveTranscoders', - RoundParticipationRate = 'round__participationRate', - RoundStartBlock = 'round__startBlock', - RoundStartTimestamp = 'round__startTimestamp', - RoundTotalActiveStake = 'round__totalActiveStake', - RoundTotalSupply = 'round__totalSupply', - RoundVolumeEth = 'round__volumeETH', - RoundVolumeUsd = 'round__volumeUSD', - Timestamp = 'timestamp', - Transaction = 'transaction', - TransactionBlockNumber = 'transaction__blockNumber', - TransactionFrom = 'transaction__from', - TransactionGasPrice = 'transaction__gasPrice', - TransactionGasUsed = 'transaction__gasUsed', - TransactionId = 'transaction__id', - TransactionTimestamp = 'transaction__timestamp', - TransactionTo = 'transaction__to' -} - -/** StakeClaimedEvent entities are created for every emitted StakeClaimed event. */ -export type StakeClaimedEvent = Event & { - __typename: 'StakeClaimedEvent'; - delegate: Scalars['String']; - delegator: Scalars['String']; - fees: Scalars['BigDecimal']; - /** Ethereum transaction hash + event log index */ - id: Scalars['ID']; - /** Reference to the round the event occured in */ - round: Round; - stake: Scalars['BigDecimal']; - /** Timestamp of the transaction the event was included in */ - timestamp: Scalars['Int']; - /** Reference to the transaction the event was included in */ - transaction: Transaction; -}; - -export type StakeClaimedEvent_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - delegate?: InputMaybe; - delegate_contains?: InputMaybe; - delegate_contains_nocase?: InputMaybe; - delegate_ends_with?: InputMaybe; - delegate_ends_with_nocase?: InputMaybe; - delegate_gt?: InputMaybe; - delegate_gte?: InputMaybe; - delegate_in?: InputMaybe>; - delegate_lt?: InputMaybe; - delegate_lte?: InputMaybe; - delegate_not?: InputMaybe; - delegate_not_contains?: InputMaybe; - delegate_not_contains_nocase?: InputMaybe; - delegate_not_ends_with?: InputMaybe; - delegate_not_ends_with_nocase?: InputMaybe; - delegate_not_in?: InputMaybe>; - delegate_not_starts_with?: InputMaybe; - delegate_not_starts_with_nocase?: InputMaybe; - delegate_starts_with?: InputMaybe; - delegate_starts_with_nocase?: InputMaybe; - delegator?: InputMaybe; - delegator_contains?: InputMaybe; - delegator_contains_nocase?: InputMaybe; - delegator_ends_with?: InputMaybe; - delegator_ends_with_nocase?: InputMaybe; - delegator_gt?: InputMaybe; - delegator_gte?: InputMaybe; - delegator_in?: InputMaybe>; - delegator_lt?: InputMaybe; - delegator_lte?: InputMaybe; - delegator_not?: InputMaybe; - delegator_not_contains?: InputMaybe; - delegator_not_contains_nocase?: InputMaybe; - delegator_not_ends_with?: InputMaybe; - delegator_not_ends_with_nocase?: InputMaybe; - delegator_not_in?: InputMaybe>; - delegator_not_starts_with?: InputMaybe; - delegator_not_starts_with_nocase?: InputMaybe; - delegator_starts_with?: InputMaybe; - delegator_starts_with_nocase?: InputMaybe; - fees?: InputMaybe; - fees_gt?: InputMaybe; - fees_gte?: InputMaybe; - fees_in?: InputMaybe>; - fees_lt?: InputMaybe; - fees_lte?: InputMaybe; - fees_not?: InputMaybe; - fees_not_in?: InputMaybe>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - or?: InputMaybe>>; - round?: InputMaybe; - round_?: InputMaybe; - round_contains?: InputMaybe; - round_contains_nocase?: InputMaybe; - round_ends_with?: InputMaybe; - round_ends_with_nocase?: InputMaybe; - round_gt?: InputMaybe; - round_gte?: InputMaybe; - round_in?: InputMaybe>; - round_lt?: InputMaybe; - round_lte?: InputMaybe; - round_not?: InputMaybe; - round_not_contains?: InputMaybe; - round_not_contains_nocase?: InputMaybe; - round_not_ends_with?: InputMaybe; - round_not_ends_with_nocase?: InputMaybe; - round_not_in?: InputMaybe>; - round_not_starts_with?: InputMaybe; - round_not_starts_with_nocase?: InputMaybe; - round_starts_with?: InputMaybe; - round_starts_with_nocase?: InputMaybe; - stake?: InputMaybe; - stake_gt?: InputMaybe; - stake_gte?: InputMaybe; - stake_in?: InputMaybe>; - stake_lt?: InputMaybe; - stake_lte?: InputMaybe; - stake_not?: InputMaybe; - stake_not_in?: InputMaybe>; - timestamp?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not?: InputMaybe; - timestamp_not_in?: InputMaybe>; - transaction?: InputMaybe; - transaction_?: InputMaybe; - transaction_contains?: InputMaybe; - transaction_contains_nocase?: InputMaybe; - transaction_ends_with?: InputMaybe; - transaction_ends_with_nocase?: InputMaybe; - transaction_gt?: InputMaybe; - transaction_gte?: InputMaybe; - transaction_in?: InputMaybe>; - transaction_lt?: InputMaybe; - transaction_lte?: InputMaybe; - transaction_not?: InputMaybe; - transaction_not_contains?: InputMaybe; - transaction_not_contains_nocase?: InputMaybe; - transaction_not_ends_with?: InputMaybe; - transaction_not_ends_with_nocase?: InputMaybe; - transaction_not_in?: InputMaybe>; - transaction_not_starts_with?: InputMaybe; - transaction_not_starts_with_nocase?: InputMaybe; - transaction_starts_with?: InputMaybe; - transaction_starts_with_nocase?: InputMaybe; -}; - -export enum StakeClaimedEvent_OrderBy { - Delegate = 'delegate', - Delegator = 'delegator', - Fees = 'fees', - Id = 'id', - Round = 'round', - RoundActiveTranscoderCount = 'round__activeTranscoderCount', - RoundDelegatorsCount = 'round__delegatorsCount', - RoundEndBlock = 'round__endBlock', - RoundId = 'round__id', - RoundInflation = 'round__inflation', - RoundInitialized = 'round__initialized', - RoundLength = 'round__length', - RoundMintableTokens = 'round__mintableTokens', - RoundMovedStake = 'round__movedStake', - RoundNewStake = 'round__newStake', - RoundNumActiveTranscoders = 'round__numActiveTranscoders', - RoundParticipationRate = 'round__participationRate', - RoundStartBlock = 'round__startBlock', - RoundStartTimestamp = 'round__startTimestamp', - RoundTotalActiveStake = 'round__totalActiveStake', - RoundTotalSupply = 'round__totalSupply', - RoundVolumeEth = 'round__volumeETH', - RoundVolumeUsd = 'round__volumeUSD', - Stake = 'stake', - Timestamp = 'timestamp', - Transaction = 'transaction', - TransactionBlockNumber = 'transaction__blockNumber', - TransactionFrom = 'transaction__from', - TransactionGasPrice = 'transaction__gasPrice', - TransactionGasUsed = 'transaction__gasUsed', - TransactionId = 'transaction__id', - TransactionTimestamp = 'transaction__timestamp', - TransactionTo = 'transaction__to' -} - -/** Transaction entities are created for each Ethereum transaction that contains an interaction within Livepeer contracts. */ -export type Transaction = { - __typename: 'Transaction'; - /** Block transaction was mined in */ - blockNumber: Scalars['BigInt']; - /** The events emitted within this transaction */ - events?: Maybe>; - /** The sending party of the transaction */ - from: Scalars['String']; - /** Cost per unit of gas specified for the transaction */ - gasPrice: Scalars['BigInt']; - /** Actually is the limit of gas in the transaction, pending update in downstream projects */ - gasUsed: Scalars['BigInt']; - /** Ethereum transaction hash */ - id: Scalars['ID']; - /** Timestamp for transaction */ - timestamp: Scalars['Int']; - /** The receiving party of the transaction - null for contract-creation transactions */ - to?: Maybe; -}; - - -/** Transaction entities are created for each Ethereum transaction that contains an interaction within Livepeer contracts. */ -export type TransactionEventsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - -export type Transaction_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - blockNumber?: InputMaybe; - blockNumber_gt?: InputMaybe; - blockNumber_gte?: InputMaybe; - blockNumber_in?: InputMaybe>; - blockNumber_lt?: InputMaybe; - blockNumber_lte?: InputMaybe; - blockNumber_not?: InputMaybe; - blockNumber_not_in?: InputMaybe>; - events_?: InputMaybe; - from?: InputMaybe; - from_contains?: InputMaybe; - from_contains_nocase?: InputMaybe; - from_ends_with?: InputMaybe; - from_ends_with_nocase?: InputMaybe; - from_gt?: InputMaybe; - from_gte?: InputMaybe; - from_in?: InputMaybe>; - from_lt?: InputMaybe; - from_lte?: InputMaybe; - from_not?: InputMaybe; - from_not_contains?: InputMaybe; - from_not_contains_nocase?: InputMaybe; - from_not_ends_with?: InputMaybe; - from_not_ends_with_nocase?: InputMaybe; - from_not_in?: InputMaybe>; - from_not_starts_with?: InputMaybe; - from_not_starts_with_nocase?: InputMaybe; - from_starts_with?: InputMaybe; - from_starts_with_nocase?: InputMaybe; - gasPrice?: InputMaybe; - gasPrice_gt?: InputMaybe; - gasPrice_gte?: InputMaybe; - gasPrice_in?: InputMaybe>; - gasPrice_lt?: InputMaybe; - gasPrice_lte?: InputMaybe; - gasPrice_not?: InputMaybe; - gasPrice_not_in?: InputMaybe>; - gasUsed?: InputMaybe; - gasUsed_gt?: InputMaybe; - gasUsed_gte?: InputMaybe; - gasUsed_in?: InputMaybe>; - gasUsed_lt?: InputMaybe; - gasUsed_lte?: InputMaybe; - gasUsed_not?: InputMaybe; - gasUsed_not_in?: InputMaybe>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - or?: InputMaybe>>; - timestamp?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not?: InputMaybe; - timestamp_not_in?: InputMaybe>; - to?: InputMaybe; - to_contains?: InputMaybe; - to_contains_nocase?: InputMaybe; - to_ends_with?: InputMaybe; - to_ends_with_nocase?: InputMaybe; - to_gt?: InputMaybe; - to_gte?: InputMaybe; - to_in?: InputMaybe>; - to_lt?: InputMaybe; - to_lte?: InputMaybe; - to_not?: InputMaybe; - to_not_contains?: InputMaybe; - to_not_contains_nocase?: InputMaybe; - to_not_ends_with?: InputMaybe; - to_not_ends_with_nocase?: InputMaybe; - to_not_in?: InputMaybe>; - to_not_starts_with?: InputMaybe; - to_not_starts_with_nocase?: InputMaybe; - to_starts_with?: InputMaybe; - to_starts_with_nocase?: InputMaybe; -}; - -export enum Transaction_OrderBy { - BlockNumber = 'blockNumber', - Events = 'events', - From = 'from', - GasPrice = 'gasPrice', - GasUsed = 'gasUsed', - Id = 'id', - Timestamp = 'timestamp', - To = 'to' -} - -/** Perform transcoding work for the network. The transcoders with the most delegated stake are elected as active transcoders that process transcode jobs for the network. */ -export type Transcoder = { - __typename: 'Transcoder'; - /** Round in which the transcoder became active - 0 if inactive */ - activationRound: Scalars['BigInt']; - /** The activation date beginning at 12:00am UTC */ - activationTimestamp: Scalars['Int']; - /** Whether or not the transcoder is active */ - active: Scalars['Boolean']; - /** Round in which the transcoder will become inactive */ - deactivationRound: Scalars['BigInt']; - /** Delegator that registered this transcoder */ - delegator?: Maybe; - /** Delegators bonded to the transcoder */ - delegators?: Maybe>; - /** % of fees paid to delegators by transcoder */ - feeShare: Scalars['BigInt']; - /** The last timestamped update to fee share, beginning at 12:00am UTC */ - feeShareUpdateTimestamp: Scalars['Int']; - /** Transcoder's ETH address */ - id: Scalars['ID']; - /** Round for which the stake was last updated while the transcoder is active */ - lastActiveStakeUpdateRound: Scalars['BigInt']; - /** Last round that the transcoder called reward */ - lastRewardRound?: Maybe; - /** Total fees generated by the transcoder in ETH (before distribution and in past 90 days) */ - ninetyDayVolumeETH: Scalars['BigDecimal']; - /** Pools associated with the transcoder */ - pools?: Maybe>; - /** Address delegated to call reward on the transcoder's behalf - null if unset */ - rewardCaller?: Maybe; - /** % of block reward cut paid to transcoder by a delegator */ - rewardCut: Scalars['BigInt']; - /** The last timestamped update to reward cut, beginning at 12:00am UTC */ - rewardCutUpdateTimestamp: Scalars['Int']; - /** Service URI endpoint that can be used to send off-chain requests */ - serviceURI?: Maybe; - /** Total fees generated by the transcoder in ETH (before distribution and in past 60 days) */ - sixtyDayVolumeETH: Scalars['BigDecimal']; - /** Status of the transcoder */ - status: TranscoderStatus; - /** Total fees generated by the transcoder in ETH (before distribution and in past 30 days) */ - thirtyDayVolumeETH: Scalars['BigDecimal']; - /** Total tokens delegated toward a transcoder (including their own) */ - totalStake: Scalars['BigDecimal']; - /** Total fees generated by the transcoder in ETH (before distribution to delegators) */ - totalVolumeETH: Scalars['BigDecimal']; - /** Total fees generated by the transcoder in USD (before distribution to delegators) */ - totalVolumeUSD: Scalars['BigDecimal']; - /** Days which the transcoder earned fees */ - transcoderDays: Array; -}; - - -/** Perform transcoding work for the network. The transcoders with the most delegated stake are elected as active transcoders that process transcode jobs for the network. */ -export type TranscoderDelegatorsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - - -/** Perform transcoding work for the network. The transcoders with the most delegated stake are elected as active transcoders that process transcode jobs for the network. */ -export type TranscoderPoolsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - - -/** Perform transcoding work for the network. The transcoders with the most delegated stake are elected as active transcoders that process transcode jobs for the network. */ -export type TranscoderTranscoderDaysArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - -/** TranscoderActivatedEvent entities are created for every emitted TranscoderActivated event. */ -export type TranscoderActivatedEvent = Event & { - __typename: 'TranscoderActivatedEvent'; - /** Future round in which the delegate will become active */ - activationRound: Scalars['BigInt']; - /** Reference to the delegate that will be active */ - delegate: Transcoder; - /** Ethereum transaction hash + event log index */ - id: Scalars['ID']; - /** Reference to the round the event occured in */ - round: Round; - /** Timestamp of the transaction the event was included in */ - timestamp: Scalars['Int']; - /** Reference to the transaction the event was included in */ - transaction: Transaction; -}; - -export type TranscoderActivatedEvent_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - activationRound?: InputMaybe; - activationRound_gt?: InputMaybe; - activationRound_gte?: InputMaybe; - activationRound_in?: InputMaybe>; - activationRound_lt?: InputMaybe; - activationRound_lte?: InputMaybe; - activationRound_not?: InputMaybe; - activationRound_not_in?: InputMaybe>; - and?: InputMaybe>>; - delegate?: InputMaybe; - delegate_?: InputMaybe; - delegate_contains?: InputMaybe; - delegate_contains_nocase?: InputMaybe; - delegate_ends_with?: InputMaybe; - delegate_ends_with_nocase?: InputMaybe; - delegate_gt?: InputMaybe; - delegate_gte?: InputMaybe; - delegate_in?: InputMaybe>; - delegate_lt?: InputMaybe; - delegate_lte?: InputMaybe; - delegate_not?: InputMaybe; - delegate_not_contains?: InputMaybe; - delegate_not_contains_nocase?: InputMaybe; - delegate_not_ends_with?: InputMaybe; - delegate_not_ends_with_nocase?: InputMaybe; - delegate_not_in?: InputMaybe>; - delegate_not_starts_with?: InputMaybe; - delegate_not_starts_with_nocase?: InputMaybe; - delegate_starts_with?: InputMaybe; - delegate_starts_with_nocase?: InputMaybe; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - or?: InputMaybe>>; - round?: InputMaybe; - round_?: InputMaybe; - round_contains?: InputMaybe; - round_contains_nocase?: InputMaybe; - round_ends_with?: InputMaybe; - round_ends_with_nocase?: InputMaybe; - round_gt?: InputMaybe; - round_gte?: InputMaybe; - round_in?: InputMaybe>; - round_lt?: InputMaybe; - round_lte?: InputMaybe; - round_not?: InputMaybe; - round_not_contains?: InputMaybe; - round_not_contains_nocase?: InputMaybe; - round_not_ends_with?: InputMaybe; - round_not_ends_with_nocase?: InputMaybe; - round_not_in?: InputMaybe>; - round_not_starts_with?: InputMaybe; - round_not_starts_with_nocase?: InputMaybe; - round_starts_with?: InputMaybe; - round_starts_with_nocase?: InputMaybe; - timestamp?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not?: InputMaybe; - timestamp_not_in?: InputMaybe>; - transaction?: InputMaybe; - transaction_?: InputMaybe; - transaction_contains?: InputMaybe; - transaction_contains_nocase?: InputMaybe; - transaction_ends_with?: InputMaybe; - transaction_ends_with_nocase?: InputMaybe; - transaction_gt?: InputMaybe; - transaction_gte?: InputMaybe; - transaction_in?: InputMaybe>; - transaction_lt?: InputMaybe; - transaction_lte?: InputMaybe; - transaction_not?: InputMaybe; - transaction_not_contains?: InputMaybe; - transaction_not_contains_nocase?: InputMaybe; - transaction_not_ends_with?: InputMaybe; - transaction_not_ends_with_nocase?: InputMaybe; - transaction_not_in?: InputMaybe>; - transaction_not_starts_with?: InputMaybe; - transaction_not_starts_with_nocase?: InputMaybe; - transaction_starts_with?: InputMaybe; - transaction_starts_with_nocase?: InputMaybe; -}; - -export enum TranscoderActivatedEvent_OrderBy { - ActivationRound = 'activationRound', - Delegate = 'delegate', - DelegateActivationRound = 'delegate__activationRound', - DelegateActivationTimestamp = 'delegate__activationTimestamp', - DelegateActive = 'delegate__active', - DelegateDeactivationRound = 'delegate__deactivationRound', - DelegateFeeShare = 'delegate__feeShare', - DelegateFeeShareUpdateTimestamp = 'delegate__feeShareUpdateTimestamp', - DelegateId = 'delegate__id', - DelegateLastActiveStakeUpdateRound = 'delegate__lastActiveStakeUpdateRound', - DelegateNinetyDayVolumeEth = 'delegate__ninetyDayVolumeETH', - DelegateRewardCaller = 'delegate__rewardCaller', - DelegateRewardCut = 'delegate__rewardCut', - DelegateRewardCutUpdateTimestamp = 'delegate__rewardCutUpdateTimestamp', - DelegateServiceUri = 'delegate__serviceURI', - DelegateSixtyDayVolumeEth = 'delegate__sixtyDayVolumeETH', - DelegateStatus = 'delegate__status', - DelegateThirtyDayVolumeEth = 'delegate__thirtyDayVolumeETH', - DelegateTotalStake = 'delegate__totalStake', - DelegateTotalVolumeEth = 'delegate__totalVolumeETH', - DelegateTotalVolumeUsd = 'delegate__totalVolumeUSD', - Id = 'id', - Round = 'round', - RoundActiveTranscoderCount = 'round__activeTranscoderCount', - RoundDelegatorsCount = 'round__delegatorsCount', - RoundEndBlock = 'round__endBlock', - RoundId = 'round__id', - RoundInflation = 'round__inflation', - RoundInitialized = 'round__initialized', - RoundLength = 'round__length', - RoundMintableTokens = 'round__mintableTokens', - RoundMovedStake = 'round__movedStake', - RoundNewStake = 'round__newStake', - RoundNumActiveTranscoders = 'round__numActiveTranscoders', - RoundParticipationRate = 'round__participationRate', - RoundStartBlock = 'round__startBlock', - RoundStartTimestamp = 'round__startTimestamp', - RoundTotalActiveStake = 'round__totalActiveStake', - RoundTotalSupply = 'round__totalSupply', - RoundVolumeEth = 'round__volumeETH', - RoundVolumeUsd = 'round__volumeUSD', - Timestamp = 'timestamp', - Transaction = 'transaction', - TransactionBlockNumber = 'transaction__blockNumber', - TransactionFrom = 'transaction__from', - TransactionGasPrice = 'transaction__gasPrice', - TransactionGasUsed = 'transaction__gasUsed', - TransactionId = 'transaction__id', - TransactionTimestamp = 'transaction__timestamp', - TransactionTo = 'transaction__to' -} - -/** Transcoder data accumulated and condensed into day stats */ -export type TranscoderDay = { - __typename: 'TranscoderDay'; - /** The date beginning at 12:00am UTC */ - date: Scalars['Int']; - /** Concatenation of the transcoder address and the day timestamp (e.g.
-) */ - id: Scalars['ID']; - /** Transcoder associated with the day */ - transcoder: Transcoder; - /** Fees generated this day in ETH */ - volumeETH: Scalars['BigDecimal']; - /** Fees generated this day in USD */ - volumeUSD: Scalars['BigDecimal']; -}; - -export type TranscoderDay_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - date?: InputMaybe; - date_gt?: InputMaybe; - date_gte?: InputMaybe; - date_in?: InputMaybe>; - date_lt?: InputMaybe; - date_lte?: InputMaybe; - date_not?: InputMaybe; - date_not_in?: InputMaybe>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - or?: InputMaybe>>; - transcoder?: InputMaybe; - transcoder_?: InputMaybe; - transcoder_contains?: InputMaybe; - transcoder_contains_nocase?: InputMaybe; - transcoder_ends_with?: InputMaybe; - transcoder_ends_with_nocase?: InputMaybe; - transcoder_gt?: InputMaybe; - transcoder_gte?: InputMaybe; - transcoder_in?: InputMaybe>; - transcoder_lt?: InputMaybe; - transcoder_lte?: InputMaybe; - transcoder_not?: InputMaybe; - transcoder_not_contains?: InputMaybe; - transcoder_not_contains_nocase?: InputMaybe; - transcoder_not_ends_with?: InputMaybe; - transcoder_not_ends_with_nocase?: InputMaybe; - transcoder_not_in?: InputMaybe>; - transcoder_not_starts_with?: InputMaybe; - transcoder_not_starts_with_nocase?: InputMaybe; - transcoder_starts_with?: InputMaybe; - transcoder_starts_with_nocase?: InputMaybe; - volumeETH?: InputMaybe; - volumeETH_gt?: InputMaybe; - volumeETH_gte?: InputMaybe; - volumeETH_in?: InputMaybe>; - volumeETH_lt?: InputMaybe; - volumeETH_lte?: InputMaybe; - volumeETH_not?: InputMaybe; - volumeETH_not_in?: InputMaybe>; - volumeUSD?: InputMaybe; - volumeUSD_gt?: InputMaybe; - volumeUSD_gte?: InputMaybe; - volumeUSD_in?: InputMaybe>; - volumeUSD_lt?: InputMaybe; - volumeUSD_lte?: InputMaybe; - volumeUSD_not?: InputMaybe; - volumeUSD_not_in?: InputMaybe>; -}; - -export enum TranscoderDay_OrderBy { - Date = 'date', - Id = 'id', - Transcoder = 'transcoder', - TranscoderActivationRound = 'transcoder__activationRound', - TranscoderActivationTimestamp = 'transcoder__activationTimestamp', - TranscoderActive = 'transcoder__active', - TranscoderDeactivationRound = 'transcoder__deactivationRound', - TranscoderFeeShare = 'transcoder__feeShare', - TranscoderFeeShareUpdateTimestamp = 'transcoder__feeShareUpdateTimestamp', - TranscoderId = 'transcoder__id', - TranscoderLastActiveStakeUpdateRound = 'transcoder__lastActiveStakeUpdateRound', - TranscoderNinetyDayVolumeEth = 'transcoder__ninetyDayVolumeETH', - TranscoderRewardCaller = 'transcoder__rewardCaller', - TranscoderRewardCut = 'transcoder__rewardCut', - TranscoderRewardCutUpdateTimestamp = 'transcoder__rewardCutUpdateTimestamp', - TranscoderServiceUri = 'transcoder__serviceURI', - TranscoderSixtyDayVolumeEth = 'transcoder__sixtyDayVolumeETH', - TranscoderStatus = 'transcoder__status', - TranscoderThirtyDayVolumeEth = 'transcoder__thirtyDayVolumeETH', - TranscoderTotalStake = 'transcoder__totalStake', - TranscoderTotalVolumeEth = 'transcoder__totalVolumeETH', - TranscoderTotalVolumeUsd = 'transcoder__totalVolumeUSD', - VolumeEth = 'volumeETH', - VolumeUsd = 'volumeUSD' -} - -/** TranscoderDeactivatedEvent entities are created for every emitted TranscoderDeactivated event. */ -export type TranscoderDeactivatedEvent = Event & { - __typename: 'TranscoderDeactivatedEvent'; - /** Future round in which the delegate will become deactive */ - deactivationRound: Scalars['BigInt']; - /** Reference to the delegate that will become deactive */ - delegate: Transcoder; - /** Ethereum transaction hash + event log index */ - id: Scalars['ID']; - /** Reference to the round the event occured in */ - round: Round; - /** Timestamp of the transaction the event was included in */ - timestamp: Scalars['Int']; - /** Reference to the transaction the event was included in */ - transaction: Transaction; -}; - -export type TranscoderDeactivatedEvent_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - deactivationRound?: InputMaybe; - deactivationRound_gt?: InputMaybe; - deactivationRound_gte?: InputMaybe; - deactivationRound_in?: InputMaybe>; - deactivationRound_lt?: InputMaybe; - deactivationRound_lte?: InputMaybe; - deactivationRound_not?: InputMaybe; - deactivationRound_not_in?: InputMaybe>; - delegate?: InputMaybe; - delegate_?: InputMaybe; - delegate_contains?: InputMaybe; - delegate_contains_nocase?: InputMaybe; - delegate_ends_with?: InputMaybe; - delegate_ends_with_nocase?: InputMaybe; - delegate_gt?: InputMaybe; - delegate_gte?: InputMaybe; - delegate_in?: InputMaybe>; - delegate_lt?: InputMaybe; - delegate_lte?: InputMaybe; - delegate_not?: InputMaybe; - delegate_not_contains?: InputMaybe; - delegate_not_contains_nocase?: InputMaybe; - delegate_not_ends_with?: InputMaybe; - delegate_not_ends_with_nocase?: InputMaybe; - delegate_not_in?: InputMaybe>; - delegate_not_starts_with?: InputMaybe; - delegate_not_starts_with_nocase?: InputMaybe; - delegate_starts_with?: InputMaybe; - delegate_starts_with_nocase?: InputMaybe; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - or?: InputMaybe>>; - round?: InputMaybe; - round_?: InputMaybe; - round_contains?: InputMaybe; - round_contains_nocase?: InputMaybe; - round_ends_with?: InputMaybe; - round_ends_with_nocase?: InputMaybe; - round_gt?: InputMaybe; - round_gte?: InputMaybe; - round_in?: InputMaybe>; - round_lt?: InputMaybe; - round_lte?: InputMaybe; - round_not?: InputMaybe; - round_not_contains?: InputMaybe; - round_not_contains_nocase?: InputMaybe; - round_not_ends_with?: InputMaybe; - round_not_ends_with_nocase?: InputMaybe; - round_not_in?: InputMaybe>; - round_not_starts_with?: InputMaybe; - round_not_starts_with_nocase?: InputMaybe; - round_starts_with?: InputMaybe; - round_starts_with_nocase?: InputMaybe; - timestamp?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not?: InputMaybe; - timestamp_not_in?: InputMaybe>; - transaction?: InputMaybe; - transaction_?: InputMaybe; - transaction_contains?: InputMaybe; - transaction_contains_nocase?: InputMaybe; - transaction_ends_with?: InputMaybe; - transaction_ends_with_nocase?: InputMaybe; - transaction_gt?: InputMaybe; - transaction_gte?: InputMaybe; - transaction_in?: InputMaybe>; - transaction_lt?: InputMaybe; - transaction_lte?: InputMaybe; - transaction_not?: InputMaybe; - transaction_not_contains?: InputMaybe; - transaction_not_contains_nocase?: InputMaybe; - transaction_not_ends_with?: InputMaybe; - transaction_not_ends_with_nocase?: InputMaybe; - transaction_not_in?: InputMaybe>; - transaction_not_starts_with?: InputMaybe; - transaction_not_starts_with_nocase?: InputMaybe; - transaction_starts_with?: InputMaybe; - transaction_starts_with_nocase?: InputMaybe; -}; - -export enum TranscoderDeactivatedEvent_OrderBy { - DeactivationRound = 'deactivationRound', - Delegate = 'delegate', - DelegateActivationRound = 'delegate__activationRound', - DelegateActivationTimestamp = 'delegate__activationTimestamp', - DelegateActive = 'delegate__active', - DelegateDeactivationRound = 'delegate__deactivationRound', - DelegateFeeShare = 'delegate__feeShare', - DelegateFeeShareUpdateTimestamp = 'delegate__feeShareUpdateTimestamp', - DelegateId = 'delegate__id', - DelegateLastActiveStakeUpdateRound = 'delegate__lastActiveStakeUpdateRound', - DelegateNinetyDayVolumeEth = 'delegate__ninetyDayVolumeETH', - DelegateRewardCaller = 'delegate__rewardCaller', - DelegateRewardCut = 'delegate__rewardCut', - DelegateRewardCutUpdateTimestamp = 'delegate__rewardCutUpdateTimestamp', - DelegateServiceUri = 'delegate__serviceURI', - DelegateSixtyDayVolumeEth = 'delegate__sixtyDayVolumeETH', - DelegateStatus = 'delegate__status', - DelegateThirtyDayVolumeEth = 'delegate__thirtyDayVolumeETH', - DelegateTotalStake = 'delegate__totalStake', - DelegateTotalVolumeEth = 'delegate__totalVolumeETH', - DelegateTotalVolumeUsd = 'delegate__totalVolumeUSD', - Id = 'id', - Round = 'round', - RoundActiveTranscoderCount = 'round__activeTranscoderCount', - RoundDelegatorsCount = 'round__delegatorsCount', - RoundEndBlock = 'round__endBlock', - RoundId = 'round__id', - RoundInflation = 'round__inflation', - RoundInitialized = 'round__initialized', - RoundLength = 'round__length', - RoundMintableTokens = 'round__mintableTokens', - RoundMovedStake = 'round__movedStake', - RoundNewStake = 'round__newStake', - RoundNumActiveTranscoders = 'round__numActiveTranscoders', - RoundParticipationRate = 'round__participationRate', - RoundStartBlock = 'round__startBlock', - RoundStartTimestamp = 'round__startTimestamp', - RoundTotalActiveStake = 'round__totalActiveStake', - RoundTotalSupply = 'round__totalSupply', - RoundVolumeEth = 'round__volumeETH', - RoundVolumeUsd = 'round__volumeUSD', - Timestamp = 'timestamp', - Transaction = 'transaction', - TransactionBlockNumber = 'transaction__blockNumber', - TransactionFrom = 'transaction__from', - TransactionGasPrice = 'transaction__gasPrice', - TransactionGasUsed = 'transaction__gasUsed', - TransactionId = 'transaction__id', - TransactionTimestamp = 'transaction__timestamp', - TransactionTo = 'transaction__to' -} - -/** TranscoderEvictedEvent entities are created for every emitted TranscoderEvicted event. */ -export type TranscoderEvictedEvent = Event & { - __typename: 'TranscoderEvictedEvent'; - /** Reference to the delegate that was evicted */ - delegate: Transcoder; - /** Ethereum transaction hash + event log index */ - id: Scalars['ID']; - /** Reference to the round the event occured in */ - round: Round; - /** Timestamp of the transaction the event was included in */ - timestamp: Scalars['Int']; - /** Reference to the transaction the event was included in */ - transaction: Transaction; -}; - -export type TranscoderEvictedEvent_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - delegate?: InputMaybe; - delegate_?: InputMaybe; - delegate_contains?: InputMaybe; - delegate_contains_nocase?: InputMaybe; - delegate_ends_with?: InputMaybe; - delegate_ends_with_nocase?: InputMaybe; - delegate_gt?: InputMaybe; - delegate_gte?: InputMaybe; - delegate_in?: InputMaybe>; - delegate_lt?: InputMaybe; - delegate_lte?: InputMaybe; - delegate_not?: InputMaybe; - delegate_not_contains?: InputMaybe; - delegate_not_contains_nocase?: InputMaybe; - delegate_not_ends_with?: InputMaybe; - delegate_not_ends_with_nocase?: InputMaybe; - delegate_not_in?: InputMaybe>; - delegate_not_starts_with?: InputMaybe; - delegate_not_starts_with_nocase?: InputMaybe; - delegate_starts_with?: InputMaybe; - delegate_starts_with_nocase?: InputMaybe; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - or?: InputMaybe>>; - round?: InputMaybe; - round_?: InputMaybe; - round_contains?: InputMaybe; - round_contains_nocase?: InputMaybe; - round_ends_with?: InputMaybe; - round_ends_with_nocase?: InputMaybe; - round_gt?: InputMaybe; - round_gte?: InputMaybe; - round_in?: InputMaybe>; - round_lt?: InputMaybe; - round_lte?: InputMaybe; - round_not?: InputMaybe; - round_not_contains?: InputMaybe; - round_not_contains_nocase?: InputMaybe; - round_not_ends_with?: InputMaybe; - round_not_ends_with_nocase?: InputMaybe; - round_not_in?: InputMaybe>; - round_not_starts_with?: InputMaybe; - round_not_starts_with_nocase?: InputMaybe; - round_starts_with?: InputMaybe; - round_starts_with_nocase?: InputMaybe; - timestamp?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not?: InputMaybe; - timestamp_not_in?: InputMaybe>; - transaction?: InputMaybe; - transaction_?: InputMaybe; - transaction_contains?: InputMaybe; - transaction_contains_nocase?: InputMaybe; - transaction_ends_with?: InputMaybe; - transaction_ends_with_nocase?: InputMaybe; - transaction_gt?: InputMaybe; - transaction_gte?: InputMaybe; - transaction_in?: InputMaybe>; - transaction_lt?: InputMaybe; - transaction_lte?: InputMaybe; - transaction_not?: InputMaybe; - transaction_not_contains?: InputMaybe; - transaction_not_contains_nocase?: InputMaybe; - transaction_not_ends_with?: InputMaybe; - transaction_not_ends_with_nocase?: InputMaybe; - transaction_not_in?: InputMaybe>; - transaction_not_starts_with?: InputMaybe; - transaction_not_starts_with_nocase?: InputMaybe; - transaction_starts_with?: InputMaybe; - transaction_starts_with_nocase?: InputMaybe; -}; - -export enum TranscoderEvictedEvent_OrderBy { - Delegate = 'delegate', - DelegateActivationRound = 'delegate__activationRound', - DelegateActivationTimestamp = 'delegate__activationTimestamp', - DelegateActive = 'delegate__active', - DelegateDeactivationRound = 'delegate__deactivationRound', - DelegateFeeShare = 'delegate__feeShare', - DelegateFeeShareUpdateTimestamp = 'delegate__feeShareUpdateTimestamp', - DelegateId = 'delegate__id', - DelegateLastActiveStakeUpdateRound = 'delegate__lastActiveStakeUpdateRound', - DelegateNinetyDayVolumeEth = 'delegate__ninetyDayVolumeETH', - DelegateRewardCaller = 'delegate__rewardCaller', - DelegateRewardCut = 'delegate__rewardCut', - DelegateRewardCutUpdateTimestamp = 'delegate__rewardCutUpdateTimestamp', - DelegateServiceUri = 'delegate__serviceURI', - DelegateSixtyDayVolumeEth = 'delegate__sixtyDayVolumeETH', - DelegateStatus = 'delegate__status', - DelegateThirtyDayVolumeEth = 'delegate__thirtyDayVolumeETH', - DelegateTotalStake = 'delegate__totalStake', - DelegateTotalVolumeEth = 'delegate__totalVolumeETH', - DelegateTotalVolumeUsd = 'delegate__totalVolumeUSD', - Id = 'id', - Round = 'round', - RoundActiveTranscoderCount = 'round__activeTranscoderCount', - RoundDelegatorsCount = 'round__delegatorsCount', - RoundEndBlock = 'round__endBlock', - RoundId = 'round__id', - RoundInflation = 'round__inflation', - RoundInitialized = 'round__initialized', - RoundLength = 'round__length', - RoundMintableTokens = 'round__mintableTokens', - RoundMovedStake = 'round__movedStake', - RoundNewStake = 'round__newStake', - RoundNumActiveTranscoders = 'round__numActiveTranscoders', - RoundParticipationRate = 'round__participationRate', - RoundStartBlock = 'round__startBlock', - RoundStartTimestamp = 'round__startTimestamp', - RoundTotalActiveStake = 'round__totalActiveStake', - RoundTotalSupply = 'round__totalSupply', - RoundVolumeEth = 'round__volumeETH', - RoundVolumeUsd = 'round__volumeUSD', - Timestamp = 'timestamp', - Transaction = 'transaction', - TransactionBlockNumber = 'transaction__blockNumber', - TransactionFrom = 'transaction__from', - TransactionGasPrice = 'transaction__gasPrice', - TransactionGasUsed = 'transaction__gasUsed', - TransactionId = 'transaction__id', - TransactionTimestamp = 'transaction__timestamp', - TransactionTo = 'transaction__to' -} - -/** TranscoderResignedEvent entities are created for every emitted TranscoderResigned event. */ -export type TranscoderResignedEvent = Event & { - __typename: 'TranscoderResignedEvent'; - /** Reference to the delegate that resigned */ - delegate: Transcoder; - /** Ethereum transaction hash + event log index */ - id: Scalars['ID']; - /** Reference to the round the event occured in */ - round: Round; - /** Timestamp of the transaction the event was included in */ - timestamp: Scalars['Int']; - /** Reference to the transaction the event was included in */ - transaction: Transaction; -}; - -export type TranscoderResignedEvent_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - delegate?: InputMaybe; - delegate_?: InputMaybe; - delegate_contains?: InputMaybe; - delegate_contains_nocase?: InputMaybe; - delegate_ends_with?: InputMaybe; - delegate_ends_with_nocase?: InputMaybe; - delegate_gt?: InputMaybe; - delegate_gte?: InputMaybe; - delegate_in?: InputMaybe>; - delegate_lt?: InputMaybe; - delegate_lte?: InputMaybe; - delegate_not?: InputMaybe; - delegate_not_contains?: InputMaybe; - delegate_not_contains_nocase?: InputMaybe; - delegate_not_ends_with?: InputMaybe; - delegate_not_ends_with_nocase?: InputMaybe; - delegate_not_in?: InputMaybe>; - delegate_not_starts_with?: InputMaybe; - delegate_not_starts_with_nocase?: InputMaybe; - delegate_starts_with?: InputMaybe; - delegate_starts_with_nocase?: InputMaybe; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - or?: InputMaybe>>; - round?: InputMaybe; - round_?: InputMaybe; - round_contains?: InputMaybe; - round_contains_nocase?: InputMaybe; - round_ends_with?: InputMaybe; - round_ends_with_nocase?: InputMaybe; - round_gt?: InputMaybe; - round_gte?: InputMaybe; - round_in?: InputMaybe>; - round_lt?: InputMaybe; - round_lte?: InputMaybe; - round_not?: InputMaybe; - round_not_contains?: InputMaybe; - round_not_contains_nocase?: InputMaybe; - round_not_ends_with?: InputMaybe; - round_not_ends_with_nocase?: InputMaybe; - round_not_in?: InputMaybe>; - round_not_starts_with?: InputMaybe; - round_not_starts_with_nocase?: InputMaybe; - round_starts_with?: InputMaybe; - round_starts_with_nocase?: InputMaybe; - timestamp?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not?: InputMaybe; - timestamp_not_in?: InputMaybe>; - transaction?: InputMaybe; - transaction_?: InputMaybe; - transaction_contains?: InputMaybe; - transaction_contains_nocase?: InputMaybe; - transaction_ends_with?: InputMaybe; - transaction_ends_with_nocase?: InputMaybe; - transaction_gt?: InputMaybe; - transaction_gte?: InputMaybe; - transaction_in?: InputMaybe>; - transaction_lt?: InputMaybe; - transaction_lte?: InputMaybe; - transaction_not?: InputMaybe; - transaction_not_contains?: InputMaybe; - transaction_not_contains_nocase?: InputMaybe; - transaction_not_ends_with?: InputMaybe; - transaction_not_ends_with_nocase?: InputMaybe; - transaction_not_in?: InputMaybe>; - transaction_not_starts_with?: InputMaybe; - transaction_not_starts_with_nocase?: InputMaybe; - transaction_starts_with?: InputMaybe; - transaction_starts_with_nocase?: InputMaybe; -}; - -export enum TranscoderResignedEvent_OrderBy { - Delegate = 'delegate', - DelegateActivationRound = 'delegate__activationRound', - DelegateActivationTimestamp = 'delegate__activationTimestamp', - DelegateActive = 'delegate__active', - DelegateDeactivationRound = 'delegate__deactivationRound', - DelegateFeeShare = 'delegate__feeShare', - DelegateFeeShareUpdateTimestamp = 'delegate__feeShareUpdateTimestamp', - DelegateId = 'delegate__id', - DelegateLastActiveStakeUpdateRound = 'delegate__lastActiveStakeUpdateRound', - DelegateNinetyDayVolumeEth = 'delegate__ninetyDayVolumeETH', - DelegateRewardCaller = 'delegate__rewardCaller', - DelegateRewardCut = 'delegate__rewardCut', - DelegateRewardCutUpdateTimestamp = 'delegate__rewardCutUpdateTimestamp', - DelegateServiceUri = 'delegate__serviceURI', - DelegateSixtyDayVolumeEth = 'delegate__sixtyDayVolumeETH', - DelegateStatus = 'delegate__status', - DelegateThirtyDayVolumeEth = 'delegate__thirtyDayVolumeETH', - DelegateTotalStake = 'delegate__totalStake', - DelegateTotalVolumeEth = 'delegate__totalVolumeETH', - DelegateTotalVolumeUsd = 'delegate__totalVolumeUSD', - Id = 'id', - Round = 'round', - RoundActiveTranscoderCount = 'round__activeTranscoderCount', - RoundDelegatorsCount = 'round__delegatorsCount', - RoundEndBlock = 'round__endBlock', - RoundId = 'round__id', - RoundInflation = 'round__inflation', - RoundInitialized = 'round__initialized', - RoundLength = 'round__length', - RoundMintableTokens = 'round__mintableTokens', - RoundMovedStake = 'round__movedStake', - RoundNewStake = 'round__newStake', - RoundNumActiveTranscoders = 'round__numActiveTranscoders', - RoundParticipationRate = 'round__participationRate', - RoundStartBlock = 'round__startBlock', - RoundStartTimestamp = 'round__startTimestamp', - RoundTotalActiveStake = 'round__totalActiveStake', - RoundTotalSupply = 'round__totalSupply', - RoundVolumeEth = 'round__volumeETH', - RoundVolumeUsd = 'round__volumeUSD', - Timestamp = 'timestamp', - Transaction = 'transaction', - TransactionBlockNumber = 'transaction__blockNumber', - TransactionFrom = 'transaction__from', - TransactionGasPrice = 'transaction__gasPrice', - TransactionGasUsed = 'transaction__gasUsed', - TransactionId = 'transaction__id', - TransactionTimestamp = 'transaction__timestamp', - TransactionTo = 'transaction__to' -} - -/** TranscoderSlashedEvent entities are created for every emitted TranscoderSlashed event. */ -export type TranscoderSlashedEvent = Event & { - __typename: 'TranscoderSlashedEvent'; - /** Reference to the delegate that was slashed */ - delegate: Transcoder; - /** Finder that proved a transcoder violated a slashing condition. Null address if there is no finder */ - finder: Scalars['Bytes']; - /** Percentage of penalty awarded to finder. Zero if there is no finder */ - finderReward: Scalars['BigInt']; - /** Ethereum transaction hash + event log index */ - id: Scalars['ID']; - /** Percentage of transcoder bond to be slashed */ - penalty: Scalars['BigDecimal']; - /** Reference to the round the event occured in */ - round: Round; - /** Timestamp of the transaction the event was included in */ - timestamp: Scalars['Int']; - /** Reference to the transaction the event was included in */ - transaction: Transaction; -}; - -export type TranscoderSlashedEvent_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - delegate?: InputMaybe; - delegate_?: InputMaybe; - delegate_contains?: InputMaybe; - delegate_contains_nocase?: InputMaybe; - delegate_ends_with?: InputMaybe; - delegate_ends_with_nocase?: InputMaybe; - delegate_gt?: InputMaybe; - delegate_gte?: InputMaybe; - delegate_in?: InputMaybe>; - delegate_lt?: InputMaybe; - delegate_lte?: InputMaybe; - delegate_not?: InputMaybe; - delegate_not_contains?: InputMaybe; - delegate_not_contains_nocase?: InputMaybe; - delegate_not_ends_with?: InputMaybe; - delegate_not_ends_with_nocase?: InputMaybe; - delegate_not_in?: InputMaybe>; - delegate_not_starts_with?: InputMaybe; - delegate_not_starts_with_nocase?: InputMaybe; - delegate_starts_with?: InputMaybe; - delegate_starts_with_nocase?: InputMaybe; - finder?: InputMaybe; - finderReward?: InputMaybe; - finderReward_gt?: InputMaybe; - finderReward_gte?: InputMaybe; - finderReward_in?: InputMaybe>; - finderReward_lt?: InputMaybe; - finderReward_lte?: InputMaybe; - finderReward_not?: InputMaybe; - finderReward_not_in?: InputMaybe>; - finder_contains?: InputMaybe; - finder_gt?: InputMaybe; - finder_gte?: InputMaybe; - finder_in?: InputMaybe>; - finder_lt?: InputMaybe; - finder_lte?: InputMaybe; - finder_not?: InputMaybe; - finder_not_contains?: InputMaybe; - finder_not_in?: InputMaybe>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - or?: InputMaybe>>; - penalty?: InputMaybe; - penalty_gt?: InputMaybe; - penalty_gte?: InputMaybe; - penalty_in?: InputMaybe>; - penalty_lt?: InputMaybe; - penalty_lte?: InputMaybe; - penalty_not?: InputMaybe; - penalty_not_in?: InputMaybe>; - round?: InputMaybe; - round_?: InputMaybe; - round_contains?: InputMaybe; - round_contains_nocase?: InputMaybe; - round_ends_with?: InputMaybe; - round_ends_with_nocase?: InputMaybe; - round_gt?: InputMaybe; - round_gte?: InputMaybe; - round_in?: InputMaybe>; - round_lt?: InputMaybe; - round_lte?: InputMaybe; - round_not?: InputMaybe; - round_not_contains?: InputMaybe; - round_not_contains_nocase?: InputMaybe; - round_not_ends_with?: InputMaybe; - round_not_ends_with_nocase?: InputMaybe; - round_not_in?: InputMaybe>; - round_not_starts_with?: InputMaybe; - round_not_starts_with_nocase?: InputMaybe; - round_starts_with?: InputMaybe; - round_starts_with_nocase?: InputMaybe; - timestamp?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not?: InputMaybe; - timestamp_not_in?: InputMaybe>; - transaction?: InputMaybe; - transaction_?: InputMaybe; - transaction_contains?: InputMaybe; - transaction_contains_nocase?: InputMaybe; - transaction_ends_with?: InputMaybe; - transaction_ends_with_nocase?: InputMaybe; - transaction_gt?: InputMaybe; - transaction_gte?: InputMaybe; - transaction_in?: InputMaybe>; - transaction_lt?: InputMaybe; - transaction_lte?: InputMaybe; - transaction_not?: InputMaybe; - transaction_not_contains?: InputMaybe; - transaction_not_contains_nocase?: InputMaybe; - transaction_not_ends_with?: InputMaybe; - transaction_not_ends_with_nocase?: InputMaybe; - transaction_not_in?: InputMaybe>; - transaction_not_starts_with?: InputMaybe; - transaction_not_starts_with_nocase?: InputMaybe; - transaction_starts_with?: InputMaybe; - transaction_starts_with_nocase?: InputMaybe; -}; - -export enum TranscoderSlashedEvent_OrderBy { - Delegate = 'delegate', - DelegateActivationRound = 'delegate__activationRound', - DelegateActivationTimestamp = 'delegate__activationTimestamp', - DelegateActive = 'delegate__active', - DelegateDeactivationRound = 'delegate__deactivationRound', - DelegateFeeShare = 'delegate__feeShare', - DelegateFeeShareUpdateTimestamp = 'delegate__feeShareUpdateTimestamp', - DelegateId = 'delegate__id', - DelegateLastActiveStakeUpdateRound = 'delegate__lastActiveStakeUpdateRound', - DelegateNinetyDayVolumeEth = 'delegate__ninetyDayVolumeETH', - DelegateRewardCaller = 'delegate__rewardCaller', - DelegateRewardCut = 'delegate__rewardCut', - DelegateRewardCutUpdateTimestamp = 'delegate__rewardCutUpdateTimestamp', - DelegateServiceUri = 'delegate__serviceURI', - DelegateSixtyDayVolumeEth = 'delegate__sixtyDayVolumeETH', - DelegateStatus = 'delegate__status', - DelegateThirtyDayVolumeEth = 'delegate__thirtyDayVolumeETH', - DelegateTotalStake = 'delegate__totalStake', - DelegateTotalVolumeEth = 'delegate__totalVolumeETH', - DelegateTotalVolumeUsd = 'delegate__totalVolumeUSD', - Finder = 'finder', - FinderReward = 'finderReward', - Id = 'id', - Penalty = 'penalty', - Round = 'round', - RoundActiveTranscoderCount = 'round__activeTranscoderCount', - RoundDelegatorsCount = 'round__delegatorsCount', - RoundEndBlock = 'round__endBlock', - RoundId = 'round__id', - RoundInflation = 'round__inflation', - RoundInitialized = 'round__initialized', - RoundLength = 'round__length', - RoundMintableTokens = 'round__mintableTokens', - RoundMovedStake = 'round__movedStake', - RoundNewStake = 'round__newStake', - RoundNumActiveTranscoders = 'round__numActiveTranscoders', - RoundParticipationRate = 'round__participationRate', - RoundStartBlock = 'round__startBlock', - RoundStartTimestamp = 'round__startTimestamp', - RoundTotalActiveStake = 'round__totalActiveStake', - RoundTotalSupply = 'round__totalSupply', - RoundVolumeEth = 'round__volumeETH', - RoundVolumeUsd = 'round__volumeUSD', - Timestamp = 'timestamp', - Transaction = 'transaction', - TransactionBlockNumber = 'transaction__blockNumber', - TransactionFrom = 'transaction__from', - TransactionGasPrice = 'transaction__gasPrice', - TransactionGasUsed = 'transaction__gasUsed', - TransactionId = 'transaction__id', - TransactionTimestamp = 'transaction__timestamp', - TransactionTo = 'transaction__to' -} - -export enum TranscoderStatus { - NotRegistered = 'NotRegistered', - Registered = 'Registered' -} - -/** TranscoderUpdateEvent entities are created for every emitted TranscoderUpdate event. */ -export type TranscoderUpdateEvent = Event & { - __typename: 'TranscoderUpdateEvent'; - /** Reference to the delegate that was updated */ - delegate: Transcoder; - /** Delegate's updated fee share */ - feeShare: Scalars['BigInt']; - /** Ethereum transaction hash + event log index */ - id: Scalars['ID']; - /** Delegate's updated reward cut */ - rewardCut: Scalars['BigInt']; - /** Reference to the round the event occured in */ - round: Round; - /** Timestamp of the transaction the event was included in */ - timestamp: Scalars['Int']; - /** Reference to the transaction the event was included in */ - transaction: Transaction; -}; - -export type TranscoderUpdateEvent_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - delegate?: InputMaybe; - delegate_?: InputMaybe; - delegate_contains?: InputMaybe; - delegate_contains_nocase?: InputMaybe; - delegate_ends_with?: InputMaybe; - delegate_ends_with_nocase?: InputMaybe; - delegate_gt?: InputMaybe; - delegate_gte?: InputMaybe; - delegate_in?: InputMaybe>; - delegate_lt?: InputMaybe; - delegate_lte?: InputMaybe; - delegate_not?: InputMaybe; - delegate_not_contains?: InputMaybe; - delegate_not_contains_nocase?: InputMaybe; - delegate_not_ends_with?: InputMaybe; - delegate_not_ends_with_nocase?: InputMaybe; - delegate_not_in?: InputMaybe>; - delegate_not_starts_with?: InputMaybe; - delegate_not_starts_with_nocase?: InputMaybe; - delegate_starts_with?: InputMaybe; - delegate_starts_with_nocase?: InputMaybe; - feeShare?: InputMaybe; - feeShare_gt?: InputMaybe; - feeShare_gte?: InputMaybe; - feeShare_in?: InputMaybe>; - feeShare_lt?: InputMaybe; - feeShare_lte?: InputMaybe; - feeShare_not?: InputMaybe; - feeShare_not_in?: InputMaybe>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - or?: InputMaybe>>; - rewardCut?: InputMaybe; - rewardCut_gt?: InputMaybe; - rewardCut_gte?: InputMaybe; - rewardCut_in?: InputMaybe>; - rewardCut_lt?: InputMaybe; - rewardCut_lte?: InputMaybe; - rewardCut_not?: InputMaybe; - rewardCut_not_in?: InputMaybe>; - round?: InputMaybe; - round_?: InputMaybe; - round_contains?: InputMaybe; - round_contains_nocase?: InputMaybe; - round_ends_with?: InputMaybe; - round_ends_with_nocase?: InputMaybe; - round_gt?: InputMaybe; - round_gte?: InputMaybe; - round_in?: InputMaybe>; - round_lt?: InputMaybe; - round_lte?: InputMaybe; - round_not?: InputMaybe; - round_not_contains?: InputMaybe; - round_not_contains_nocase?: InputMaybe; - round_not_ends_with?: InputMaybe; - round_not_ends_with_nocase?: InputMaybe; - round_not_in?: InputMaybe>; - round_not_starts_with?: InputMaybe; - round_not_starts_with_nocase?: InputMaybe; - round_starts_with?: InputMaybe; - round_starts_with_nocase?: InputMaybe; - timestamp?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not?: InputMaybe; - timestamp_not_in?: InputMaybe>; - transaction?: InputMaybe; - transaction_?: InputMaybe; - transaction_contains?: InputMaybe; - transaction_contains_nocase?: InputMaybe; - transaction_ends_with?: InputMaybe; - transaction_ends_with_nocase?: InputMaybe; - transaction_gt?: InputMaybe; - transaction_gte?: InputMaybe; - transaction_in?: InputMaybe>; - transaction_lt?: InputMaybe; - transaction_lte?: InputMaybe; - transaction_not?: InputMaybe; - transaction_not_contains?: InputMaybe; - transaction_not_contains_nocase?: InputMaybe; - transaction_not_ends_with?: InputMaybe; - transaction_not_ends_with_nocase?: InputMaybe; - transaction_not_in?: InputMaybe>; - transaction_not_starts_with?: InputMaybe; - transaction_not_starts_with_nocase?: InputMaybe; - transaction_starts_with?: InputMaybe; - transaction_starts_with_nocase?: InputMaybe; -}; - -export enum TranscoderUpdateEvent_OrderBy { - Delegate = 'delegate', - DelegateActivationRound = 'delegate__activationRound', - DelegateActivationTimestamp = 'delegate__activationTimestamp', - DelegateActive = 'delegate__active', - DelegateDeactivationRound = 'delegate__deactivationRound', - DelegateFeeShare = 'delegate__feeShare', - DelegateFeeShareUpdateTimestamp = 'delegate__feeShareUpdateTimestamp', - DelegateId = 'delegate__id', - DelegateLastActiveStakeUpdateRound = 'delegate__lastActiveStakeUpdateRound', - DelegateNinetyDayVolumeEth = 'delegate__ninetyDayVolumeETH', - DelegateRewardCaller = 'delegate__rewardCaller', - DelegateRewardCut = 'delegate__rewardCut', - DelegateRewardCutUpdateTimestamp = 'delegate__rewardCutUpdateTimestamp', - DelegateServiceUri = 'delegate__serviceURI', - DelegateSixtyDayVolumeEth = 'delegate__sixtyDayVolumeETH', - DelegateStatus = 'delegate__status', - DelegateThirtyDayVolumeEth = 'delegate__thirtyDayVolumeETH', - DelegateTotalStake = 'delegate__totalStake', - DelegateTotalVolumeEth = 'delegate__totalVolumeETH', - DelegateTotalVolumeUsd = 'delegate__totalVolumeUSD', - FeeShare = 'feeShare', - Id = 'id', - RewardCut = 'rewardCut', - Round = 'round', - RoundActiveTranscoderCount = 'round__activeTranscoderCount', - RoundDelegatorsCount = 'round__delegatorsCount', - RoundEndBlock = 'round__endBlock', - RoundId = 'round__id', - RoundInflation = 'round__inflation', - RoundInitialized = 'round__initialized', - RoundLength = 'round__length', - RoundMintableTokens = 'round__mintableTokens', - RoundMovedStake = 'round__movedStake', - RoundNewStake = 'round__newStake', - RoundNumActiveTranscoders = 'round__numActiveTranscoders', - RoundParticipationRate = 'round__participationRate', - RoundStartBlock = 'round__startBlock', - RoundStartTimestamp = 'round__startTimestamp', - RoundTotalActiveStake = 'round__totalActiveStake', - RoundTotalSupply = 'round__totalSupply', - RoundVolumeEth = 'round__volumeETH', - RoundVolumeUsd = 'round__volumeUSD', - Timestamp = 'timestamp', - Transaction = 'transaction', - TransactionBlockNumber = 'transaction__blockNumber', - TransactionFrom = 'transaction__from', - TransactionGasPrice = 'transaction__gasPrice', - TransactionGasUsed = 'transaction__gasUsed', - TransactionId = 'transaction__id', - TransactionTimestamp = 'transaction__timestamp', - TransactionTo = 'transaction__to' -} - -export type Transcoder_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - activationRound?: InputMaybe; - activationRound_gt?: InputMaybe; - activationRound_gte?: InputMaybe; - activationRound_in?: InputMaybe>; - activationRound_lt?: InputMaybe; - activationRound_lte?: InputMaybe; - activationRound_not?: InputMaybe; - activationRound_not_in?: InputMaybe>; - activationTimestamp?: InputMaybe; - activationTimestamp_gt?: InputMaybe; - activationTimestamp_gte?: InputMaybe; - activationTimestamp_in?: InputMaybe>; - activationTimestamp_lt?: InputMaybe; - activationTimestamp_lte?: InputMaybe; - activationTimestamp_not?: InputMaybe; - activationTimestamp_not_in?: InputMaybe>; - active?: InputMaybe; - active_in?: InputMaybe>; - active_not?: InputMaybe; - active_not_in?: InputMaybe>; - and?: InputMaybe>>; - deactivationRound?: InputMaybe; - deactivationRound_gt?: InputMaybe; - deactivationRound_gte?: InputMaybe; - deactivationRound_in?: InputMaybe>; - deactivationRound_lt?: InputMaybe; - deactivationRound_lte?: InputMaybe; - deactivationRound_not?: InputMaybe; - deactivationRound_not_in?: InputMaybe>; - delegator?: InputMaybe; - delegator_?: InputMaybe; - delegator_contains?: InputMaybe; - delegator_contains_nocase?: InputMaybe; - delegator_ends_with?: InputMaybe; - delegator_ends_with_nocase?: InputMaybe; - delegator_gt?: InputMaybe; - delegator_gte?: InputMaybe; - delegator_in?: InputMaybe>; - delegator_lt?: InputMaybe; - delegator_lte?: InputMaybe; - delegator_not?: InputMaybe; - delegator_not_contains?: InputMaybe; - delegator_not_contains_nocase?: InputMaybe; - delegator_not_ends_with?: InputMaybe; - delegator_not_ends_with_nocase?: InputMaybe; - delegator_not_in?: InputMaybe>; - delegator_not_starts_with?: InputMaybe; - delegator_not_starts_with_nocase?: InputMaybe; - delegator_starts_with?: InputMaybe; - delegator_starts_with_nocase?: InputMaybe; - delegators_?: InputMaybe; - feeShare?: InputMaybe; - feeShareUpdateTimestamp?: InputMaybe; - feeShareUpdateTimestamp_gt?: InputMaybe; - feeShareUpdateTimestamp_gte?: InputMaybe; - feeShareUpdateTimestamp_in?: InputMaybe>; - feeShareUpdateTimestamp_lt?: InputMaybe; - feeShareUpdateTimestamp_lte?: InputMaybe; - feeShareUpdateTimestamp_not?: InputMaybe; - feeShareUpdateTimestamp_not_in?: InputMaybe>; - feeShare_gt?: InputMaybe; - feeShare_gte?: InputMaybe; - feeShare_in?: InputMaybe>; - feeShare_lt?: InputMaybe; - feeShare_lte?: InputMaybe; - feeShare_not?: InputMaybe; - feeShare_not_in?: InputMaybe>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - lastActiveStakeUpdateRound?: InputMaybe; - lastActiveStakeUpdateRound_gt?: InputMaybe; - lastActiveStakeUpdateRound_gte?: InputMaybe; - lastActiveStakeUpdateRound_in?: InputMaybe>; - lastActiveStakeUpdateRound_lt?: InputMaybe; - lastActiveStakeUpdateRound_lte?: InputMaybe; - lastActiveStakeUpdateRound_not?: InputMaybe; - lastActiveStakeUpdateRound_not_in?: InputMaybe>; - lastRewardRound?: InputMaybe; - lastRewardRound_?: InputMaybe; - lastRewardRound_contains?: InputMaybe; - lastRewardRound_contains_nocase?: InputMaybe; - lastRewardRound_ends_with?: InputMaybe; - lastRewardRound_ends_with_nocase?: InputMaybe; - lastRewardRound_gt?: InputMaybe; - lastRewardRound_gte?: InputMaybe; - lastRewardRound_in?: InputMaybe>; - lastRewardRound_lt?: InputMaybe; - lastRewardRound_lte?: InputMaybe; - lastRewardRound_not?: InputMaybe; - lastRewardRound_not_contains?: InputMaybe; - lastRewardRound_not_contains_nocase?: InputMaybe; - lastRewardRound_not_ends_with?: InputMaybe; - lastRewardRound_not_ends_with_nocase?: InputMaybe; - lastRewardRound_not_in?: InputMaybe>; - lastRewardRound_not_starts_with?: InputMaybe; - lastRewardRound_not_starts_with_nocase?: InputMaybe; - lastRewardRound_starts_with?: InputMaybe; - lastRewardRound_starts_with_nocase?: InputMaybe; - ninetyDayVolumeETH?: InputMaybe; - ninetyDayVolumeETH_gt?: InputMaybe; - ninetyDayVolumeETH_gte?: InputMaybe; - ninetyDayVolumeETH_in?: InputMaybe>; - ninetyDayVolumeETH_lt?: InputMaybe; - ninetyDayVolumeETH_lte?: InputMaybe; - ninetyDayVolumeETH_not?: InputMaybe; - ninetyDayVolumeETH_not_in?: InputMaybe>; - or?: InputMaybe>>; - pools_?: InputMaybe; - rewardCaller?: InputMaybe; - rewardCaller_contains?: InputMaybe; - rewardCaller_contains_nocase?: InputMaybe; - rewardCaller_ends_with?: InputMaybe; - rewardCaller_ends_with_nocase?: InputMaybe; - rewardCaller_gt?: InputMaybe; - rewardCaller_gte?: InputMaybe; - rewardCaller_in?: InputMaybe>; - rewardCaller_lt?: InputMaybe; - rewardCaller_lte?: InputMaybe; - rewardCaller_not?: InputMaybe; - rewardCaller_not_contains?: InputMaybe; - rewardCaller_not_contains_nocase?: InputMaybe; - rewardCaller_not_ends_with?: InputMaybe; - rewardCaller_not_ends_with_nocase?: InputMaybe; - rewardCaller_not_in?: InputMaybe>; - rewardCaller_not_starts_with?: InputMaybe; - rewardCaller_not_starts_with_nocase?: InputMaybe; - rewardCaller_starts_with?: InputMaybe; - rewardCaller_starts_with_nocase?: InputMaybe; - rewardCut?: InputMaybe; - rewardCutUpdateTimestamp?: InputMaybe; - rewardCutUpdateTimestamp_gt?: InputMaybe; - rewardCutUpdateTimestamp_gte?: InputMaybe; - rewardCutUpdateTimestamp_in?: InputMaybe>; - rewardCutUpdateTimestamp_lt?: InputMaybe; - rewardCutUpdateTimestamp_lte?: InputMaybe; - rewardCutUpdateTimestamp_not?: InputMaybe; - rewardCutUpdateTimestamp_not_in?: InputMaybe>; - rewardCut_gt?: InputMaybe; - rewardCut_gte?: InputMaybe; - rewardCut_in?: InputMaybe>; - rewardCut_lt?: InputMaybe; - rewardCut_lte?: InputMaybe; - rewardCut_not?: InputMaybe; - rewardCut_not_in?: InputMaybe>; - serviceURI?: InputMaybe; - serviceURI_contains?: InputMaybe; - serviceURI_contains_nocase?: InputMaybe; - serviceURI_ends_with?: InputMaybe; - serviceURI_ends_with_nocase?: InputMaybe; - serviceURI_gt?: InputMaybe; - serviceURI_gte?: InputMaybe; - serviceURI_in?: InputMaybe>; - serviceURI_lt?: InputMaybe; - serviceURI_lte?: InputMaybe; - serviceURI_not?: InputMaybe; - serviceURI_not_contains?: InputMaybe; - serviceURI_not_contains_nocase?: InputMaybe; - serviceURI_not_ends_with?: InputMaybe; - serviceURI_not_ends_with_nocase?: InputMaybe; - serviceURI_not_in?: InputMaybe>; - serviceURI_not_starts_with?: InputMaybe; - serviceURI_not_starts_with_nocase?: InputMaybe; - serviceURI_starts_with?: InputMaybe; - serviceURI_starts_with_nocase?: InputMaybe; - sixtyDayVolumeETH?: InputMaybe; - sixtyDayVolumeETH_gt?: InputMaybe; - sixtyDayVolumeETH_gte?: InputMaybe; - sixtyDayVolumeETH_in?: InputMaybe>; - sixtyDayVolumeETH_lt?: InputMaybe; - sixtyDayVolumeETH_lte?: InputMaybe; - sixtyDayVolumeETH_not?: InputMaybe; - sixtyDayVolumeETH_not_in?: InputMaybe>; - status?: InputMaybe; - status_in?: InputMaybe>; - status_not?: InputMaybe; - status_not_in?: InputMaybe>; - thirtyDayVolumeETH?: InputMaybe; - thirtyDayVolumeETH_gt?: InputMaybe; - thirtyDayVolumeETH_gte?: InputMaybe; - thirtyDayVolumeETH_in?: InputMaybe>; - thirtyDayVolumeETH_lt?: InputMaybe; - thirtyDayVolumeETH_lte?: InputMaybe; - thirtyDayVolumeETH_not?: InputMaybe; - thirtyDayVolumeETH_not_in?: InputMaybe>; - totalStake?: InputMaybe; - totalStake_gt?: InputMaybe; - totalStake_gte?: InputMaybe; - totalStake_in?: InputMaybe>; - totalStake_lt?: InputMaybe; - totalStake_lte?: InputMaybe; - totalStake_not?: InputMaybe; - totalStake_not_in?: InputMaybe>; - totalVolumeETH?: InputMaybe; - totalVolumeETH_gt?: InputMaybe; - totalVolumeETH_gte?: InputMaybe; - totalVolumeETH_in?: InputMaybe>; - totalVolumeETH_lt?: InputMaybe; - totalVolumeETH_lte?: InputMaybe; - totalVolumeETH_not?: InputMaybe; - totalVolumeETH_not_in?: InputMaybe>; - totalVolumeUSD?: InputMaybe; - totalVolumeUSD_gt?: InputMaybe; - totalVolumeUSD_gte?: InputMaybe; - totalVolumeUSD_in?: InputMaybe>; - totalVolumeUSD_lt?: InputMaybe; - totalVolumeUSD_lte?: InputMaybe; - totalVolumeUSD_not?: InputMaybe; - totalVolumeUSD_not_in?: InputMaybe>; - transcoderDays?: InputMaybe>; - transcoderDays_?: InputMaybe; - transcoderDays_contains?: InputMaybe>; - transcoderDays_contains_nocase?: InputMaybe>; - transcoderDays_not?: InputMaybe>; - transcoderDays_not_contains?: InputMaybe>; - transcoderDays_not_contains_nocase?: InputMaybe>; -}; - -export enum Transcoder_OrderBy { - ActivationRound = 'activationRound', - ActivationTimestamp = 'activationTimestamp', - Active = 'active', - DeactivationRound = 'deactivationRound', - Delegator = 'delegator', - DelegatorBondedAmount = 'delegator__bondedAmount', - DelegatorDelegatedAmount = 'delegator__delegatedAmount', - DelegatorFees = 'delegator__fees', - DelegatorId = 'delegator__id', - DelegatorPrincipal = 'delegator__principal', - DelegatorStartRound = 'delegator__startRound', - DelegatorUnbonded = 'delegator__unbonded', - DelegatorWithdrawnFees = 'delegator__withdrawnFees', - Delegators = 'delegators', - FeeShare = 'feeShare', - FeeShareUpdateTimestamp = 'feeShareUpdateTimestamp', - Id = 'id', - LastActiveStakeUpdateRound = 'lastActiveStakeUpdateRound', - LastRewardRound = 'lastRewardRound', - LastRewardRoundActiveTranscoderCount = 'lastRewardRound__activeTranscoderCount', - LastRewardRoundDelegatorsCount = 'lastRewardRound__delegatorsCount', - LastRewardRoundEndBlock = 'lastRewardRound__endBlock', - LastRewardRoundId = 'lastRewardRound__id', - LastRewardRoundInflation = 'lastRewardRound__inflation', - LastRewardRoundInitialized = 'lastRewardRound__initialized', - LastRewardRoundLength = 'lastRewardRound__length', - LastRewardRoundMintableTokens = 'lastRewardRound__mintableTokens', - LastRewardRoundMovedStake = 'lastRewardRound__movedStake', - LastRewardRoundNewStake = 'lastRewardRound__newStake', - LastRewardRoundNumActiveTranscoders = 'lastRewardRound__numActiveTranscoders', - LastRewardRoundParticipationRate = 'lastRewardRound__participationRate', - LastRewardRoundStartBlock = 'lastRewardRound__startBlock', - LastRewardRoundStartTimestamp = 'lastRewardRound__startTimestamp', - LastRewardRoundTotalActiveStake = 'lastRewardRound__totalActiveStake', - LastRewardRoundTotalSupply = 'lastRewardRound__totalSupply', - LastRewardRoundVolumeEth = 'lastRewardRound__volumeETH', - LastRewardRoundVolumeUsd = 'lastRewardRound__volumeUSD', - NinetyDayVolumeEth = 'ninetyDayVolumeETH', - Pools = 'pools', - RewardCaller = 'rewardCaller', - RewardCut = 'rewardCut', - RewardCutUpdateTimestamp = 'rewardCutUpdateTimestamp', - ServiceUri = 'serviceURI', - SixtyDayVolumeEth = 'sixtyDayVolumeETH', - Status = 'status', - ThirtyDayVolumeEth = 'thirtyDayVolumeETH', - TotalStake = 'totalStake', - TotalVolumeEth = 'totalVolumeETH', - TotalVolumeUsd = 'totalVolumeUSD', - TranscoderDays = 'transcoderDays' -} - -/** TransferBond entities are created for every emitted TransferBond event. */ -export type TransferBondEvent = Event & { - __typename: 'TransferBondEvent'; - amount: Scalars['BigDecimal']; - /** Ethereum transaction hash + event log index */ - id: Scalars['ID']; - newDelegator: Delegator; - newUnbondingLockId: Scalars['Int']; - oldDelegator: Delegator; - oldUnbondingLockId: Scalars['Int']; - /** Reference to the round the event occured in */ - round: Round; - /** Timestamp of the transaction the event was included in */ - timestamp: Scalars['Int']; - /** Reference to the transaction the event was included in */ - transaction: Transaction; -}; - -export type TransferBondEvent_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - amount?: InputMaybe; - amount_gt?: InputMaybe; - amount_gte?: InputMaybe; - amount_in?: InputMaybe>; - amount_lt?: InputMaybe; - amount_lte?: InputMaybe; - amount_not?: InputMaybe; - amount_not_in?: InputMaybe>; - and?: InputMaybe>>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - newDelegator?: InputMaybe; - newDelegator_?: InputMaybe; - newDelegator_contains?: InputMaybe; - newDelegator_contains_nocase?: InputMaybe; - newDelegator_ends_with?: InputMaybe; - newDelegator_ends_with_nocase?: InputMaybe; - newDelegator_gt?: InputMaybe; - newDelegator_gte?: InputMaybe; - newDelegator_in?: InputMaybe>; - newDelegator_lt?: InputMaybe; - newDelegator_lte?: InputMaybe; - newDelegator_not?: InputMaybe; - newDelegator_not_contains?: InputMaybe; - newDelegator_not_contains_nocase?: InputMaybe; - newDelegator_not_ends_with?: InputMaybe; - newDelegator_not_ends_with_nocase?: InputMaybe; - newDelegator_not_in?: InputMaybe>; - newDelegator_not_starts_with?: InputMaybe; - newDelegator_not_starts_with_nocase?: InputMaybe; - newDelegator_starts_with?: InputMaybe; - newDelegator_starts_with_nocase?: InputMaybe; - newUnbondingLockId?: InputMaybe; - newUnbondingLockId_gt?: InputMaybe; - newUnbondingLockId_gte?: InputMaybe; - newUnbondingLockId_in?: InputMaybe>; - newUnbondingLockId_lt?: InputMaybe; - newUnbondingLockId_lte?: InputMaybe; - newUnbondingLockId_not?: InputMaybe; - newUnbondingLockId_not_in?: InputMaybe>; - oldDelegator?: InputMaybe; - oldDelegator_?: InputMaybe; - oldDelegator_contains?: InputMaybe; - oldDelegator_contains_nocase?: InputMaybe; - oldDelegator_ends_with?: InputMaybe; - oldDelegator_ends_with_nocase?: InputMaybe; - oldDelegator_gt?: InputMaybe; - oldDelegator_gte?: InputMaybe; - oldDelegator_in?: InputMaybe>; - oldDelegator_lt?: InputMaybe; - oldDelegator_lte?: InputMaybe; - oldDelegator_not?: InputMaybe; - oldDelegator_not_contains?: InputMaybe; - oldDelegator_not_contains_nocase?: InputMaybe; - oldDelegator_not_ends_with?: InputMaybe; - oldDelegator_not_ends_with_nocase?: InputMaybe; - oldDelegator_not_in?: InputMaybe>; - oldDelegator_not_starts_with?: InputMaybe; - oldDelegator_not_starts_with_nocase?: InputMaybe; - oldDelegator_starts_with?: InputMaybe; - oldDelegator_starts_with_nocase?: InputMaybe; - oldUnbondingLockId?: InputMaybe; - oldUnbondingLockId_gt?: InputMaybe; - oldUnbondingLockId_gte?: InputMaybe; - oldUnbondingLockId_in?: InputMaybe>; - oldUnbondingLockId_lt?: InputMaybe; - oldUnbondingLockId_lte?: InputMaybe; - oldUnbondingLockId_not?: InputMaybe; - oldUnbondingLockId_not_in?: InputMaybe>; - or?: InputMaybe>>; - round?: InputMaybe; - round_?: InputMaybe; - round_contains?: InputMaybe; - round_contains_nocase?: InputMaybe; - round_ends_with?: InputMaybe; - round_ends_with_nocase?: InputMaybe; - round_gt?: InputMaybe; - round_gte?: InputMaybe; - round_in?: InputMaybe>; - round_lt?: InputMaybe; - round_lte?: InputMaybe; - round_not?: InputMaybe; - round_not_contains?: InputMaybe; - round_not_contains_nocase?: InputMaybe; - round_not_ends_with?: InputMaybe; - round_not_ends_with_nocase?: InputMaybe; - round_not_in?: InputMaybe>; - round_not_starts_with?: InputMaybe; - round_not_starts_with_nocase?: InputMaybe; - round_starts_with?: InputMaybe; - round_starts_with_nocase?: InputMaybe; - timestamp?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not?: InputMaybe; - timestamp_not_in?: InputMaybe>; - transaction?: InputMaybe; - transaction_?: InputMaybe; - transaction_contains?: InputMaybe; - transaction_contains_nocase?: InputMaybe; - transaction_ends_with?: InputMaybe; - transaction_ends_with_nocase?: InputMaybe; - transaction_gt?: InputMaybe; - transaction_gte?: InputMaybe; - transaction_in?: InputMaybe>; - transaction_lt?: InputMaybe; - transaction_lte?: InputMaybe; - transaction_not?: InputMaybe; - transaction_not_contains?: InputMaybe; - transaction_not_contains_nocase?: InputMaybe; - transaction_not_ends_with?: InputMaybe; - transaction_not_ends_with_nocase?: InputMaybe; - transaction_not_in?: InputMaybe>; - transaction_not_starts_with?: InputMaybe; - transaction_not_starts_with_nocase?: InputMaybe; - transaction_starts_with?: InputMaybe; - transaction_starts_with_nocase?: InputMaybe; -}; - -export enum TransferBondEvent_OrderBy { - Amount = 'amount', - Id = 'id', - NewDelegator = 'newDelegator', - NewDelegatorBondedAmount = 'newDelegator__bondedAmount', - NewDelegatorDelegatedAmount = 'newDelegator__delegatedAmount', - NewDelegatorFees = 'newDelegator__fees', - NewDelegatorId = 'newDelegator__id', - NewDelegatorPrincipal = 'newDelegator__principal', - NewDelegatorStartRound = 'newDelegator__startRound', - NewDelegatorUnbonded = 'newDelegator__unbonded', - NewDelegatorWithdrawnFees = 'newDelegator__withdrawnFees', - NewUnbondingLockId = 'newUnbondingLockId', - OldDelegator = 'oldDelegator', - OldDelegatorBondedAmount = 'oldDelegator__bondedAmount', - OldDelegatorDelegatedAmount = 'oldDelegator__delegatedAmount', - OldDelegatorFees = 'oldDelegator__fees', - OldDelegatorId = 'oldDelegator__id', - OldDelegatorPrincipal = 'oldDelegator__principal', - OldDelegatorStartRound = 'oldDelegator__startRound', - OldDelegatorUnbonded = 'oldDelegator__unbonded', - OldDelegatorWithdrawnFees = 'oldDelegator__withdrawnFees', - OldUnbondingLockId = 'oldUnbondingLockId', - Round = 'round', - RoundActiveTranscoderCount = 'round__activeTranscoderCount', - RoundDelegatorsCount = 'round__delegatorsCount', - RoundEndBlock = 'round__endBlock', - RoundId = 'round__id', - RoundInflation = 'round__inflation', - RoundInitialized = 'round__initialized', - RoundLength = 'round__length', - RoundMintableTokens = 'round__mintableTokens', - RoundMovedStake = 'round__movedStake', - RoundNewStake = 'round__newStake', - RoundNumActiveTranscoders = 'round__numActiveTranscoders', - RoundParticipationRate = 'round__participationRate', - RoundStartBlock = 'round__startBlock', - RoundStartTimestamp = 'round__startTimestamp', - RoundTotalActiveStake = 'round__totalActiveStake', - RoundTotalSupply = 'round__totalSupply', - RoundVolumeEth = 'round__volumeETH', - RoundVolumeUsd = 'round__volumeUSD', - Timestamp = 'timestamp', - Transaction = 'transaction', - TransactionBlockNumber = 'transaction__blockNumber', - TransactionFrom = 'transaction__from', - TransactionGasPrice = 'transaction__gasPrice', - TransactionGasUsed = 'transaction__gasUsed', - TransactionId = 'transaction__id', - TransactionTimestamp = 'transaction__timestamp', - TransactionTo = 'transaction__to' -} - -/** Stake weighted treasury proposal */ -export type TreasuryProposal = { - __typename: 'TreasuryProposal'; - /** Total weight of abstaining votes */ - abstainVotes: Scalars['BigDecimal']; - /** Total weight of votes against */ - againstVotes: Scalars['BigDecimal']; - /** Functions to call on the targets on proposal execution */ - calldatas: Array; - /** Description of the proposal */ - description: Scalars['String']; - /** Total weight of votes in favor */ - forVotes: Scalars['BigDecimal']; - /** Governor proposal ID formatted as a decimal number */ - id: Scalars['ID']; - /** Account that created the proposal */ - proposer: LivepeerAccount; - /** Targets to be called on proposal execution */ - targets: Array; - /** Sum of all vote weights */ - totalVotes: Scalars['BigDecimal']; - /** Values to be passed to the targets on proposal execution */ - values: Array; - /** Round after which the proposal voting will end and, if approved, execution will be allowed */ - voteEnd: Scalars['BigInt']; - /** Round after which the proposal voting will begin */ - voteStart: Scalars['BigInt']; - /** Votes cast for this proposal */ - votes: Array; -}; - - -/** Stake weighted treasury proposal */ -export type TreasuryProposalVotesArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - -export type TreasuryProposal_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - abstainVotes?: InputMaybe; - abstainVotes_gt?: InputMaybe; - abstainVotes_gte?: InputMaybe; - abstainVotes_in?: InputMaybe>; - abstainVotes_lt?: InputMaybe; - abstainVotes_lte?: InputMaybe; - abstainVotes_not?: InputMaybe; - abstainVotes_not_in?: InputMaybe>; - againstVotes?: InputMaybe; - againstVotes_gt?: InputMaybe; - againstVotes_gte?: InputMaybe; - againstVotes_in?: InputMaybe>; - againstVotes_lt?: InputMaybe; - againstVotes_lte?: InputMaybe; - againstVotes_not?: InputMaybe; - againstVotes_not_in?: InputMaybe>; - and?: InputMaybe>>; - calldatas?: InputMaybe>; - calldatas_contains?: InputMaybe>; - calldatas_not?: InputMaybe>; - calldatas_not_contains?: InputMaybe>; - description?: InputMaybe; - description_contains?: InputMaybe; - description_contains_nocase?: InputMaybe; - description_ends_with?: InputMaybe; - description_ends_with_nocase?: InputMaybe; - description_gt?: InputMaybe; - description_gte?: InputMaybe; - description_in?: InputMaybe>; - description_lt?: InputMaybe; - description_lte?: InputMaybe; - description_not?: InputMaybe; - description_not_contains?: InputMaybe; - description_not_contains_nocase?: InputMaybe; - description_not_ends_with?: InputMaybe; - description_not_ends_with_nocase?: InputMaybe; - description_not_in?: InputMaybe>; - description_not_starts_with?: InputMaybe; - description_not_starts_with_nocase?: InputMaybe; - description_starts_with?: InputMaybe; - description_starts_with_nocase?: InputMaybe; - forVotes?: InputMaybe; - forVotes_gt?: InputMaybe; - forVotes_gte?: InputMaybe; - forVotes_in?: InputMaybe>; - forVotes_lt?: InputMaybe; - forVotes_lte?: InputMaybe; - forVotes_not?: InputMaybe; - forVotes_not_in?: InputMaybe>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - or?: InputMaybe>>; - proposer?: InputMaybe; - proposer_?: InputMaybe; - proposer_contains?: InputMaybe; - proposer_contains_nocase?: InputMaybe; - proposer_ends_with?: InputMaybe; - proposer_ends_with_nocase?: InputMaybe; - proposer_gt?: InputMaybe; - proposer_gte?: InputMaybe; - proposer_in?: InputMaybe>; - proposer_lt?: InputMaybe; - proposer_lte?: InputMaybe; - proposer_not?: InputMaybe; - proposer_not_contains?: InputMaybe; - proposer_not_contains_nocase?: InputMaybe; - proposer_not_ends_with?: InputMaybe; - proposer_not_ends_with_nocase?: InputMaybe; - proposer_not_in?: InputMaybe>; - proposer_not_starts_with?: InputMaybe; - proposer_not_starts_with_nocase?: InputMaybe; - proposer_starts_with?: InputMaybe; - proposer_starts_with_nocase?: InputMaybe; - targets?: InputMaybe>; - targets_contains?: InputMaybe>; - targets_contains_nocase?: InputMaybe>; - targets_not?: InputMaybe>; - targets_not_contains?: InputMaybe>; - targets_not_contains_nocase?: InputMaybe>; - totalVotes?: InputMaybe; - totalVotes_gt?: InputMaybe; - totalVotes_gte?: InputMaybe; - totalVotes_in?: InputMaybe>; - totalVotes_lt?: InputMaybe; - totalVotes_lte?: InputMaybe; - totalVotes_not?: InputMaybe; - totalVotes_not_in?: InputMaybe>; - values?: InputMaybe>; - values_contains?: InputMaybe>; - values_not?: InputMaybe>; - values_not_contains?: InputMaybe>; - voteEnd?: InputMaybe; - voteEnd_gt?: InputMaybe; - voteEnd_gte?: InputMaybe; - voteEnd_in?: InputMaybe>; - voteEnd_lt?: InputMaybe; - voteEnd_lte?: InputMaybe; - voteEnd_not?: InputMaybe; - voteEnd_not_in?: InputMaybe>; - voteStart?: InputMaybe; - voteStart_gt?: InputMaybe; - voteStart_gte?: InputMaybe; - voteStart_in?: InputMaybe>; - voteStart_lt?: InputMaybe; - voteStart_lte?: InputMaybe; - voteStart_not?: InputMaybe; - voteStart_not_in?: InputMaybe>; - votes_?: InputMaybe; -}; - -export enum TreasuryProposal_OrderBy { - AbstainVotes = 'abstainVotes', - AgainstVotes = 'againstVotes', - Calldatas = 'calldatas', - Description = 'description', - ForVotes = 'forVotes', - Id = 'id', - Proposer = 'proposer', - ProposerId = 'proposer__id', - ProposerLastUpdatedTimestamp = 'proposer__lastUpdatedTimestamp', - Targets = 'targets', - TotalVotes = 'totalVotes', - Values = 'values', - VoteEnd = 'voteEnd', - VoteStart = 'voteStart', - Votes = 'votes' -} - -/** Stake weighted vote on a treasury proposal */ -export type TreasuryVote = { - __typename: 'TreasuryVote'; - /** Proposal ID + voter address */ - id: Scalars['ID']; - /** The proposal that was voted on */ - proposal: TreasuryProposal; - /** Optional reason string provided by the voter */ - reason?: Maybe; - /** The voter's position */ - support: TreasuryVoteSupport; - /** Account that cast the vote */ - voter: LivepeerAccount; - /** Stake-weighted voting power */ - weight: Scalars['BigDecimal']; -}; - -/** TreasuryVoteEvent entities are created for every emitted VoteCast/VoteCastWithParams event. */ -export type TreasuryVoteEvent = Event & { - __typename: 'TreasuryVoteEvent'; - /** Ethereum transaction hash + event log index */ - id: Scalars['ID']; - /** Proposal that the vote was cast for */ - proposal: TreasuryProposal; - /** Optional reason string provided by the voter */ - reason?: Maybe; - /** Reference to the round the event occured in */ - round: Round; - /** The voter's position */ - support: TreasuryVoteSupport; - /** Timestamp of the transaction the event was included in */ - timestamp: Scalars['Int']; - /** Reference to the transaction the event was included in */ - transaction: Transaction; - /** Account that cast the vote */ - voter: LivepeerAccount; - /** Stake-weighted voting power */ - weight: Scalars['BigDecimal']; -}; - -export type TreasuryVoteEvent_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - or?: InputMaybe>>; - proposal?: InputMaybe; - proposal_?: InputMaybe; - proposal_contains?: InputMaybe; - proposal_contains_nocase?: InputMaybe; - proposal_ends_with?: InputMaybe; - proposal_ends_with_nocase?: InputMaybe; - proposal_gt?: InputMaybe; - proposal_gte?: InputMaybe; - proposal_in?: InputMaybe>; - proposal_lt?: InputMaybe; - proposal_lte?: InputMaybe; - proposal_not?: InputMaybe; - proposal_not_contains?: InputMaybe; - proposal_not_contains_nocase?: InputMaybe; - proposal_not_ends_with?: InputMaybe; - proposal_not_ends_with_nocase?: InputMaybe; - proposal_not_in?: InputMaybe>; - proposal_not_starts_with?: InputMaybe; - proposal_not_starts_with_nocase?: InputMaybe; - proposal_starts_with?: InputMaybe; - proposal_starts_with_nocase?: InputMaybe; - reason?: InputMaybe; - reason_contains?: InputMaybe; - reason_contains_nocase?: InputMaybe; - reason_ends_with?: InputMaybe; - reason_ends_with_nocase?: InputMaybe; - reason_gt?: InputMaybe; - reason_gte?: InputMaybe; - reason_in?: InputMaybe>; - reason_lt?: InputMaybe; - reason_lte?: InputMaybe; - reason_not?: InputMaybe; - reason_not_contains?: InputMaybe; - reason_not_contains_nocase?: InputMaybe; - reason_not_ends_with?: InputMaybe; - reason_not_ends_with_nocase?: InputMaybe; - reason_not_in?: InputMaybe>; - reason_not_starts_with?: InputMaybe; - reason_not_starts_with_nocase?: InputMaybe; - reason_starts_with?: InputMaybe; - reason_starts_with_nocase?: InputMaybe; - round?: InputMaybe; - round_?: InputMaybe; - round_contains?: InputMaybe; - round_contains_nocase?: InputMaybe; - round_ends_with?: InputMaybe; - round_ends_with_nocase?: InputMaybe; - round_gt?: InputMaybe; - round_gte?: InputMaybe; - round_in?: InputMaybe>; - round_lt?: InputMaybe; - round_lte?: InputMaybe; - round_not?: InputMaybe; - round_not_contains?: InputMaybe; - round_not_contains_nocase?: InputMaybe; - round_not_ends_with?: InputMaybe; - round_not_ends_with_nocase?: InputMaybe; - round_not_in?: InputMaybe>; - round_not_starts_with?: InputMaybe; - round_not_starts_with_nocase?: InputMaybe; - round_starts_with?: InputMaybe; - round_starts_with_nocase?: InputMaybe; - support?: InputMaybe; - support_in?: InputMaybe>; - support_not?: InputMaybe; - support_not_in?: InputMaybe>; - timestamp?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not?: InputMaybe; - timestamp_not_in?: InputMaybe>; - transaction?: InputMaybe; - transaction_?: InputMaybe; - transaction_contains?: InputMaybe; - transaction_contains_nocase?: InputMaybe; - transaction_ends_with?: InputMaybe; - transaction_ends_with_nocase?: InputMaybe; - transaction_gt?: InputMaybe; - transaction_gte?: InputMaybe; - transaction_in?: InputMaybe>; - transaction_lt?: InputMaybe; - transaction_lte?: InputMaybe; - transaction_not?: InputMaybe; - transaction_not_contains?: InputMaybe; - transaction_not_contains_nocase?: InputMaybe; - transaction_not_ends_with?: InputMaybe; - transaction_not_ends_with_nocase?: InputMaybe; - transaction_not_in?: InputMaybe>; - transaction_not_starts_with?: InputMaybe; - transaction_not_starts_with_nocase?: InputMaybe; - transaction_starts_with?: InputMaybe; - transaction_starts_with_nocase?: InputMaybe; - voter?: InputMaybe; - voter_?: InputMaybe; - voter_contains?: InputMaybe; - voter_contains_nocase?: InputMaybe; - voter_ends_with?: InputMaybe; - voter_ends_with_nocase?: InputMaybe; - voter_gt?: InputMaybe; - voter_gte?: InputMaybe; - voter_in?: InputMaybe>; - voter_lt?: InputMaybe; - voter_lte?: InputMaybe; - voter_not?: InputMaybe; - voter_not_contains?: InputMaybe; - voter_not_contains_nocase?: InputMaybe; - voter_not_ends_with?: InputMaybe; - voter_not_ends_with_nocase?: InputMaybe; - voter_not_in?: InputMaybe>; - voter_not_starts_with?: InputMaybe; - voter_not_starts_with_nocase?: InputMaybe; - voter_starts_with?: InputMaybe; - voter_starts_with_nocase?: InputMaybe; - weight?: InputMaybe; - weight_gt?: InputMaybe; - weight_gte?: InputMaybe; - weight_in?: InputMaybe>; - weight_lt?: InputMaybe; - weight_lte?: InputMaybe; - weight_not?: InputMaybe; - weight_not_in?: InputMaybe>; -}; - -export enum TreasuryVoteEvent_OrderBy { - Id = 'id', - Proposal = 'proposal', - ProposalAbstainVotes = 'proposal__abstainVotes', - ProposalAgainstVotes = 'proposal__againstVotes', - ProposalDescription = 'proposal__description', - ProposalForVotes = 'proposal__forVotes', - ProposalId = 'proposal__id', - ProposalTotalVotes = 'proposal__totalVotes', - ProposalVoteEnd = 'proposal__voteEnd', - ProposalVoteStart = 'proposal__voteStart', - Reason = 'reason', - Round = 'round', - RoundActiveTranscoderCount = 'round__activeTranscoderCount', - RoundDelegatorsCount = 'round__delegatorsCount', - RoundEndBlock = 'round__endBlock', - RoundId = 'round__id', - RoundInflation = 'round__inflation', - RoundInitialized = 'round__initialized', - RoundLength = 'round__length', - RoundMintableTokens = 'round__mintableTokens', - RoundMovedStake = 'round__movedStake', - RoundNewStake = 'round__newStake', - RoundNumActiveTranscoders = 'round__numActiveTranscoders', - RoundParticipationRate = 'round__participationRate', - RoundStartBlock = 'round__startBlock', - RoundStartTimestamp = 'round__startTimestamp', - RoundTotalActiveStake = 'round__totalActiveStake', - RoundTotalSupply = 'round__totalSupply', - RoundVolumeEth = 'round__volumeETH', - RoundVolumeUsd = 'round__volumeUSD', - Support = 'support', - Timestamp = 'timestamp', - Transaction = 'transaction', - TransactionBlockNumber = 'transaction__blockNumber', - TransactionFrom = 'transaction__from', - TransactionGasPrice = 'transaction__gasPrice', - TransactionGasUsed = 'transaction__gasUsed', - TransactionId = 'transaction__id', - TransactionTimestamp = 'transaction__timestamp', - TransactionTo = 'transaction__to', - Voter = 'voter', - VoterId = 'voter__id', - VoterLastUpdatedTimestamp = 'voter__lastUpdatedTimestamp', - Weight = 'weight' -} - -export enum TreasuryVoteSupport { - Abstain = 'Abstain', - Against = 'Against', - For = 'For' -} - -export type TreasuryVote_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - or?: InputMaybe>>; - proposal?: InputMaybe; - proposal_?: InputMaybe; - proposal_contains?: InputMaybe; - proposal_contains_nocase?: InputMaybe; - proposal_ends_with?: InputMaybe; - proposal_ends_with_nocase?: InputMaybe; - proposal_gt?: InputMaybe; - proposal_gte?: InputMaybe; - proposal_in?: InputMaybe>; - proposal_lt?: InputMaybe; - proposal_lte?: InputMaybe; - proposal_not?: InputMaybe; - proposal_not_contains?: InputMaybe; - proposal_not_contains_nocase?: InputMaybe; - proposal_not_ends_with?: InputMaybe; - proposal_not_ends_with_nocase?: InputMaybe; - proposal_not_in?: InputMaybe>; - proposal_not_starts_with?: InputMaybe; - proposal_not_starts_with_nocase?: InputMaybe; - proposal_starts_with?: InputMaybe; - proposal_starts_with_nocase?: InputMaybe; - reason?: InputMaybe; - reason_contains?: InputMaybe; - reason_contains_nocase?: InputMaybe; - reason_ends_with?: InputMaybe; - reason_ends_with_nocase?: InputMaybe; - reason_gt?: InputMaybe; - reason_gte?: InputMaybe; - reason_in?: InputMaybe>; - reason_lt?: InputMaybe; - reason_lte?: InputMaybe; - reason_not?: InputMaybe; - reason_not_contains?: InputMaybe; - reason_not_contains_nocase?: InputMaybe; - reason_not_ends_with?: InputMaybe; - reason_not_ends_with_nocase?: InputMaybe; - reason_not_in?: InputMaybe>; - reason_not_starts_with?: InputMaybe; - reason_not_starts_with_nocase?: InputMaybe; - reason_starts_with?: InputMaybe; - reason_starts_with_nocase?: InputMaybe; - support?: InputMaybe; - support_in?: InputMaybe>; - support_not?: InputMaybe; - support_not_in?: InputMaybe>; - voter?: InputMaybe; - voter_?: InputMaybe; - voter_contains?: InputMaybe; - voter_contains_nocase?: InputMaybe; - voter_ends_with?: InputMaybe; - voter_ends_with_nocase?: InputMaybe; - voter_gt?: InputMaybe; - voter_gte?: InputMaybe; - voter_in?: InputMaybe>; - voter_lt?: InputMaybe; - voter_lte?: InputMaybe; - voter_not?: InputMaybe; - voter_not_contains?: InputMaybe; - voter_not_contains_nocase?: InputMaybe; - voter_not_ends_with?: InputMaybe; - voter_not_ends_with_nocase?: InputMaybe; - voter_not_in?: InputMaybe>; - voter_not_starts_with?: InputMaybe; - voter_not_starts_with_nocase?: InputMaybe; - voter_starts_with?: InputMaybe; - voter_starts_with_nocase?: InputMaybe; - weight?: InputMaybe; - weight_gt?: InputMaybe; - weight_gte?: InputMaybe; - weight_in?: InputMaybe>; - weight_lt?: InputMaybe; - weight_lte?: InputMaybe; - weight_not?: InputMaybe; - weight_not_in?: InputMaybe>; -}; - -export enum TreasuryVote_OrderBy { - Id = 'id', - Proposal = 'proposal', - ProposalAbstainVotes = 'proposal__abstainVotes', - ProposalAgainstVotes = 'proposal__againstVotes', - ProposalDescription = 'proposal__description', - ProposalForVotes = 'proposal__forVotes', - ProposalId = 'proposal__id', - ProposalTotalVotes = 'proposal__totalVotes', - ProposalVoteEnd = 'proposal__voteEnd', - ProposalVoteStart = 'proposal__voteStart', - Reason = 'reason', - Support = 'support', - Voter = 'voter', - VoterId = 'voter__id', - VoterLastUpdatedTimestamp = 'voter__lastUpdatedTimestamp', - Weight = 'weight' -} - -/** UnbondEvent entities are created for every emitted Unbond event. */ -export type UnbondEvent = Event & { - __typename: 'UnbondEvent'; - /** Amount unbonded in the transaction */ - amount: Scalars['BigDecimal']; - /** Reference to the delegate unbonded from */ - delegate: Transcoder; - /** Reference to the Delegator that unbonded */ - delegator: Delegator; - /** Ethereum transaction hash + event log index */ - id: Scalars['ID']; - /** Reference to the round the event occured in */ - round: Round; - /** Timestamp of the transaction the event was included in */ - timestamp: Scalars['Int']; - /** Reference to the transaction the event was included in */ - transaction: Transaction; - /** The unbonding lock ID associated with this transaction, used to optionally rebond the amount */ - unbondingLockId?: Maybe; - /** The future round in which the Delegator may withdraw its unbonded stake */ - withdrawRound: Scalars['BigInt']; -}; - -export type UnbondEvent_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - amount?: InputMaybe; - amount_gt?: InputMaybe; - amount_gte?: InputMaybe; - amount_in?: InputMaybe>; - amount_lt?: InputMaybe; - amount_lte?: InputMaybe; - amount_not?: InputMaybe; - amount_not_in?: InputMaybe>; - and?: InputMaybe>>; - delegate?: InputMaybe; - delegate_?: InputMaybe; - delegate_contains?: InputMaybe; - delegate_contains_nocase?: InputMaybe; - delegate_ends_with?: InputMaybe; - delegate_ends_with_nocase?: InputMaybe; - delegate_gt?: InputMaybe; - delegate_gte?: InputMaybe; - delegate_in?: InputMaybe>; - delegate_lt?: InputMaybe; - delegate_lte?: InputMaybe; - delegate_not?: InputMaybe; - delegate_not_contains?: InputMaybe; - delegate_not_contains_nocase?: InputMaybe; - delegate_not_ends_with?: InputMaybe; - delegate_not_ends_with_nocase?: InputMaybe; - delegate_not_in?: InputMaybe>; - delegate_not_starts_with?: InputMaybe; - delegate_not_starts_with_nocase?: InputMaybe; - delegate_starts_with?: InputMaybe; - delegate_starts_with_nocase?: InputMaybe; - delegator?: InputMaybe; - delegator_?: InputMaybe; - delegator_contains?: InputMaybe; - delegator_contains_nocase?: InputMaybe; - delegator_ends_with?: InputMaybe; - delegator_ends_with_nocase?: InputMaybe; - delegator_gt?: InputMaybe; - delegator_gte?: InputMaybe; - delegator_in?: InputMaybe>; - delegator_lt?: InputMaybe; - delegator_lte?: InputMaybe; - delegator_not?: InputMaybe; - delegator_not_contains?: InputMaybe; - delegator_not_contains_nocase?: InputMaybe; - delegator_not_ends_with?: InputMaybe; - delegator_not_ends_with_nocase?: InputMaybe; - delegator_not_in?: InputMaybe>; - delegator_not_starts_with?: InputMaybe; - delegator_not_starts_with_nocase?: InputMaybe; - delegator_starts_with?: InputMaybe; - delegator_starts_with_nocase?: InputMaybe; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - or?: InputMaybe>>; - round?: InputMaybe; - round_?: InputMaybe; - round_contains?: InputMaybe; - round_contains_nocase?: InputMaybe; - round_ends_with?: InputMaybe; - round_ends_with_nocase?: InputMaybe; - round_gt?: InputMaybe; - round_gte?: InputMaybe; - round_in?: InputMaybe>; - round_lt?: InputMaybe; - round_lte?: InputMaybe; - round_not?: InputMaybe; - round_not_contains?: InputMaybe; - round_not_contains_nocase?: InputMaybe; - round_not_ends_with?: InputMaybe; - round_not_ends_with_nocase?: InputMaybe; - round_not_in?: InputMaybe>; - round_not_starts_with?: InputMaybe; - round_not_starts_with_nocase?: InputMaybe; - round_starts_with?: InputMaybe; - round_starts_with_nocase?: InputMaybe; - timestamp?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not?: InputMaybe; - timestamp_not_in?: InputMaybe>; - transaction?: InputMaybe; - transaction_?: InputMaybe; - transaction_contains?: InputMaybe; - transaction_contains_nocase?: InputMaybe; - transaction_ends_with?: InputMaybe; - transaction_ends_with_nocase?: InputMaybe; - transaction_gt?: InputMaybe; - transaction_gte?: InputMaybe; - transaction_in?: InputMaybe>; - transaction_lt?: InputMaybe; - transaction_lte?: InputMaybe; - transaction_not?: InputMaybe; - transaction_not_contains?: InputMaybe; - transaction_not_contains_nocase?: InputMaybe; - transaction_not_ends_with?: InputMaybe; - transaction_not_ends_with_nocase?: InputMaybe; - transaction_not_in?: InputMaybe>; - transaction_not_starts_with?: InputMaybe; - transaction_not_starts_with_nocase?: InputMaybe; - transaction_starts_with?: InputMaybe; - transaction_starts_with_nocase?: InputMaybe; - unbondingLockId?: InputMaybe; - unbondingLockId_gt?: InputMaybe; - unbondingLockId_gte?: InputMaybe; - unbondingLockId_in?: InputMaybe>; - unbondingLockId_lt?: InputMaybe; - unbondingLockId_lte?: InputMaybe; - unbondingLockId_not?: InputMaybe; - unbondingLockId_not_in?: InputMaybe>; - withdrawRound?: InputMaybe; - withdrawRound_gt?: InputMaybe; - withdrawRound_gte?: InputMaybe; - withdrawRound_in?: InputMaybe>; - withdrawRound_lt?: InputMaybe; - withdrawRound_lte?: InputMaybe; - withdrawRound_not?: InputMaybe; - withdrawRound_not_in?: InputMaybe>; -}; - -export enum UnbondEvent_OrderBy { - Amount = 'amount', - Delegate = 'delegate', - DelegateActivationRound = 'delegate__activationRound', - DelegateActivationTimestamp = 'delegate__activationTimestamp', - DelegateActive = 'delegate__active', - DelegateDeactivationRound = 'delegate__deactivationRound', - DelegateFeeShare = 'delegate__feeShare', - DelegateFeeShareUpdateTimestamp = 'delegate__feeShareUpdateTimestamp', - DelegateId = 'delegate__id', - DelegateLastActiveStakeUpdateRound = 'delegate__lastActiveStakeUpdateRound', - DelegateNinetyDayVolumeEth = 'delegate__ninetyDayVolumeETH', - DelegateRewardCaller = 'delegate__rewardCaller', - DelegateRewardCut = 'delegate__rewardCut', - DelegateRewardCutUpdateTimestamp = 'delegate__rewardCutUpdateTimestamp', - DelegateServiceUri = 'delegate__serviceURI', - DelegateSixtyDayVolumeEth = 'delegate__sixtyDayVolumeETH', - DelegateStatus = 'delegate__status', - DelegateThirtyDayVolumeEth = 'delegate__thirtyDayVolumeETH', - DelegateTotalStake = 'delegate__totalStake', - DelegateTotalVolumeEth = 'delegate__totalVolumeETH', - DelegateTotalVolumeUsd = 'delegate__totalVolumeUSD', - Delegator = 'delegator', - DelegatorBondedAmount = 'delegator__bondedAmount', - DelegatorDelegatedAmount = 'delegator__delegatedAmount', - DelegatorFees = 'delegator__fees', - DelegatorId = 'delegator__id', - DelegatorPrincipal = 'delegator__principal', - DelegatorStartRound = 'delegator__startRound', - DelegatorUnbonded = 'delegator__unbonded', - DelegatorWithdrawnFees = 'delegator__withdrawnFees', - Id = 'id', - Round = 'round', - RoundActiveTranscoderCount = 'round__activeTranscoderCount', - RoundDelegatorsCount = 'round__delegatorsCount', - RoundEndBlock = 'round__endBlock', - RoundId = 'round__id', - RoundInflation = 'round__inflation', - RoundInitialized = 'round__initialized', - RoundLength = 'round__length', - RoundMintableTokens = 'round__mintableTokens', - RoundMovedStake = 'round__movedStake', - RoundNewStake = 'round__newStake', - RoundNumActiveTranscoders = 'round__numActiveTranscoders', - RoundParticipationRate = 'round__participationRate', - RoundStartBlock = 'round__startBlock', - RoundStartTimestamp = 'round__startTimestamp', - RoundTotalActiveStake = 'round__totalActiveStake', - RoundTotalSupply = 'round__totalSupply', - RoundVolumeEth = 'round__volumeETH', - RoundVolumeUsd = 'round__volumeUSD', - Timestamp = 'timestamp', - Transaction = 'transaction', - TransactionBlockNumber = 'transaction__blockNumber', - TransactionFrom = 'transaction__from', - TransactionGasPrice = 'transaction__gasPrice', - TransactionGasUsed = 'transaction__gasUsed', - TransactionId = 'transaction__id', - TransactionTimestamp = 'transaction__timestamp', - TransactionTo = 'transaction__to', - UnbondingLockId = 'unbondingLockId', - WithdrawRound = 'withdrawRound' -} - -/** Get an unbonding lock for a delegator */ -export type UnbondingLock = { - __typename: 'UnbondingLock'; - /** Amount being unbonded */ - amount: Scalars['BigDecimal']; - /** Address of delegate unbonding from */ - delegate: Transcoder; - /** Delegator address this lock belongs to */ - delegator: Delegator; - /** Unique unlock identifer */ - id: Scalars['ID']; - /** Account that initiates the transaction that creates the unbonding lock */ - sender: Scalars['String']; - /** unbonding lock id */ - unbondingLockId: Scalars['Int']; - /** Round number when the unbonding amount will be available for withdrawal */ - withdrawRound: Scalars['BigInt']; -}; - -export type UnbondingLock_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - amount?: InputMaybe; - amount_gt?: InputMaybe; - amount_gte?: InputMaybe; - amount_in?: InputMaybe>; - amount_lt?: InputMaybe; - amount_lte?: InputMaybe; - amount_not?: InputMaybe; - amount_not_in?: InputMaybe>; - and?: InputMaybe>>; - delegate?: InputMaybe; - delegate_?: InputMaybe; - delegate_contains?: InputMaybe; - delegate_contains_nocase?: InputMaybe; - delegate_ends_with?: InputMaybe; - delegate_ends_with_nocase?: InputMaybe; - delegate_gt?: InputMaybe; - delegate_gte?: InputMaybe; - delegate_in?: InputMaybe>; - delegate_lt?: InputMaybe; - delegate_lte?: InputMaybe; - delegate_not?: InputMaybe; - delegate_not_contains?: InputMaybe; - delegate_not_contains_nocase?: InputMaybe; - delegate_not_ends_with?: InputMaybe; - delegate_not_ends_with_nocase?: InputMaybe; - delegate_not_in?: InputMaybe>; - delegate_not_starts_with?: InputMaybe; - delegate_not_starts_with_nocase?: InputMaybe; - delegate_starts_with?: InputMaybe; - delegate_starts_with_nocase?: InputMaybe; - delegator?: InputMaybe; - delegator_?: InputMaybe; - delegator_contains?: InputMaybe; - delegator_contains_nocase?: InputMaybe; - delegator_ends_with?: InputMaybe; - delegator_ends_with_nocase?: InputMaybe; - delegator_gt?: InputMaybe; - delegator_gte?: InputMaybe; - delegator_in?: InputMaybe>; - delegator_lt?: InputMaybe; - delegator_lte?: InputMaybe; - delegator_not?: InputMaybe; - delegator_not_contains?: InputMaybe; - delegator_not_contains_nocase?: InputMaybe; - delegator_not_ends_with?: InputMaybe; - delegator_not_ends_with_nocase?: InputMaybe; - delegator_not_in?: InputMaybe>; - delegator_not_starts_with?: InputMaybe; - delegator_not_starts_with_nocase?: InputMaybe; - delegator_starts_with?: InputMaybe; - delegator_starts_with_nocase?: InputMaybe; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - or?: InputMaybe>>; - sender?: InputMaybe; - sender_contains?: InputMaybe; - sender_contains_nocase?: InputMaybe; - sender_ends_with?: InputMaybe; - sender_ends_with_nocase?: InputMaybe; - sender_gt?: InputMaybe; - sender_gte?: InputMaybe; - sender_in?: InputMaybe>; - sender_lt?: InputMaybe; - sender_lte?: InputMaybe; - sender_not?: InputMaybe; - sender_not_contains?: InputMaybe; - sender_not_contains_nocase?: InputMaybe; - sender_not_ends_with?: InputMaybe; - sender_not_ends_with_nocase?: InputMaybe; - sender_not_in?: InputMaybe>; - sender_not_starts_with?: InputMaybe; - sender_not_starts_with_nocase?: InputMaybe; - sender_starts_with?: InputMaybe; - sender_starts_with_nocase?: InputMaybe; - unbondingLockId?: InputMaybe; - unbondingLockId_gt?: InputMaybe; - unbondingLockId_gte?: InputMaybe; - unbondingLockId_in?: InputMaybe>; - unbondingLockId_lt?: InputMaybe; - unbondingLockId_lte?: InputMaybe; - unbondingLockId_not?: InputMaybe; - unbondingLockId_not_in?: InputMaybe>; - withdrawRound?: InputMaybe; - withdrawRound_gt?: InputMaybe; - withdrawRound_gte?: InputMaybe; - withdrawRound_in?: InputMaybe>; - withdrawRound_lt?: InputMaybe; - withdrawRound_lte?: InputMaybe; - withdrawRound_not?: InputMaybe; - withdrawRound_not_in?: InputMaybe>; -}; - -export enum UnbondingLock_OrderBy { - Amount = 'amount', - Delegate = 'delegate', - DelegateActivationRound = 'delegate__activationRound', - DelegateActivationTimestamp = 'delegate__activationTimestamp', - DelegateActive = 'delegate__active', - DelegateDeactivationRound = 'delegate__deactivationRound', - DelegateFeeShare = 'delegate__feeShare', - DelegateFeeShareUpdateTimestamp = 'delegate__feeShareUpdateTimestamp', - DelegateId = 'delegate__id', - DelegateLastActiveStakeUpdateRound = 'delegate__lastActiveStakeUpdateRound', - DelegateNinetyDayVolumeEth = 'delegate__ninetyDayVolumeETH', - DelegateRewardCaller = 'delegate__rewardCaller', - DelegateRewardCut = 'delegate__rewardCut', - DelegateRewardCutUpdateTimestamp = 'delegate__rewardCutUpdateTimestamp', - DelegateServiceUri = 'delegate__serviceURI', - DelegateSixtyDayVolumeEth = 'delegate__sixtyDayVolumeETH', - DelegateStatus = 'delegate__status', - DelegateThirtyDayVolumeEth = 'delegate__thirtyDayVolumeETH', - DelegateTotalStake = 'delegate__totalStake', - DelegateTotalVolumeEth = 'delegate__totalVolumeETH', - DelegateTotalVolumeUsd = 'delegate__totalVolumeUSD', - Delegator = 'delegator', - DelegatorBondedAmount = 'delegator__bondedAmount', - DelegatorDelegatedAmount = 'delegator__delegatedAmount', - DelegatorFees = 'delegator__fees', - DelegatorId = 'delegator__id', - DelegatorPrincipal = 'delegator__principal', - DelegatorStartRound = 'delegator__startRound', - DelegatorUnbonded = 'delegator__unbonded', - DelegatorWithdrawnFees = 'delegator__withdrawnFees', - Id = 'id', - Sender = 'sender', - UnbondingLockId = 'unbondingLockId', - WithdrawRound = 'withdrawRound' -} - -/** UnpauseEvent entities are created for every emitted Unpause event. */ -export type UnpauseEvent = Event & { - __typename: 'UnpauseEvent'; - /** Ethereum transaction hash + event log index */ - id: Scalars['ID']; - /** Reference to the round the event occured in */ - round: Round; - /** Timestamp of the transaction the event was included in */ - timestamp: Scalars['Int']; - /** Reference to the transaction the event was included in */ - transaction: Transaction; -}; - -export type UnpauseEvent_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - or?: InputMaybe>>; - round?: InputMaybe; - round_?: InputMaybe; - round_contains?: InputMaybe; - round_contains_nocase?: InputMaybe; - round_ends_with?: InputMaybe; - round_ends_with_nocase?: InputMaybe; - round_gt?: InputMaybe; - round_gte?: InputMaybe; - round_in?: InputMaybe>; - round_lt?: InputMaybe; - round_lte?: InputMaybe; - round_not?: InputMaybe; - round_not_contains?: InputMaybe; - round_not_contains_nocase?: InputMaybe; - round_not_ends_with?: InputMaybe; - round_not_ends_with_nocase?: InputMaybe; - round_not_in?: InputMaybe>; - round_not_starts_with?: InputMaybe; - round_not_starts_with_nocase?: InputMaybe; - round_starts_with?: InputMaybe; - round_starts_with_nocase?: InputMaybe; - timestamp?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not?: InputMaybe; - timestamp_not_in?: InputMaybe>; - transaction?: InputMaybe; - transaction_?: InputMaybe; - transaction_contains?: InputMaybe; - transaction_contains_nocase?: InputMaybe; - transaction_ends_with?: InputMaybe; - transaction_ends_with_nocase?: InputMaybe; - transaction_gt?: InputMaybe; - transaction_gte?: InputMaybe; - transaction_in?: InputMaybe>; - transaction_lt?: InputMaybe; - transaction_lte?: InputMaybe; - transaction_not?: InputMaybe; - transaction_not_contains?: InputMaybe; - transaction_not_contains_nocase?: InputMaybe; - transaction_not_ends_with?: InputMaybe; - transaction_not_ends_with_nocase?: InputMaybe; - transaction_not_in?: InputMaybe>; - transaction_not_starts_with?: InputMaybe; - transaction_not_starts_with_nocase?: InputMaybe; - transaction_starts_with?: InputMaybe; - transaction_starts_with_nocase?: InputMaybe; -}; - -export enum UnpauseEvent_OrderBy { - Id = 'id', - Round = 'round', - RoundActiveTranscoderCount = 'round__activeTranscoderCount', - RoundDelegatorsCount = 'round__delegatorsCount', - RoundEndBlock = 'round__endBlock', - RoundId = 'round__id', - RoundInflation = 'round__inflation', - RoundInitialized = 'round__initialized', - RoundLength = 'round__length', - RoundMintableTokens = 'round__mintableTokens', - RoundMovedStake = 'round__movedStake', - RoundNewStake = 'round__newStake', - RoundNumActiveTranscoders = 'round__numActiveTranscoders', - RoundParticipationRate = 'round__participationRate', - RoundStartBlock = 'round__startBlock', - RoundStartTimestamp = 'round__startTimestamp', - RoundTotalActiveStake = 'round__totalActiveStake', - RoundTotalSupply = 'round__totalSupply', - RoundVolumeEth = 'round__volumeETH', - RoundVolumeUsd = 'round__volumeUSD', - Timestamp = 'timestamp', - Transaction = 'transaction', - TransactionBlockNumber = 'transaction__blockNumber', - TransactionFrom = 'transaction__from', - TransactionGasPrice = 'transaction__gasPrice', - TransactionGasUsed = 'transaction__gasUsed', - TransactionId = 'transaction__id', - TransactionTimestamp = 'transaction__timestamp', - TransactionTo = 'transaction__to' -} - -/** Vote data */ -export type Vote = { - __typename: 'Vote'; - /** Vote choice */ - choiceID?: Maybe; - /** Voter address + poll address */ - id: Scalars['ID']; - /** This will be non-zero if voter is an transcoder and any of the its delegators voted */ - nonVoteStake: Scalars['BigDecimal']; - /** Poll associated with this vote */ - poll?: Maybe; - /** True if the voter was a registered transcoder during the poll period */ - registeredTranscoder?: Maybe; - /** Stake weighted vote */ - voteStake: Scalars['BigDecimal']; - /** Vote caster */ - voter: Scalars['String']; -}; - -/** VoteEvent entities are created for every emitted Vote event. */ -export type VoteEvent = Event & { - __typename: 'VoteEvent'; - /** Voter choice. Zero means yes and one means no */ - choiceID: Scalars['BigInt']; - /** Ethereum transaction hash + event log index */ - id: Scalars['ID']; - /** Reference to the poll this vote was casted in */ - poll: Poll; - /** Reference to the round the event occured in */ - round: Round; - /** Timestamp of the transaction the event was included in */ - timestamp: Scalars['Int']; - /** Reference to the transaction the event was included in */ - transaction: Transaction; - /** Address belonging to the voter */ - voter: Scalars['String']; -}; - -export type VoteEvent_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - choiceID?: InputMaybe; - choiceID_gt?: InputMaybe; - choiceID_gte?: InputMaybe; - choiceID_in?: InputMaybe>; - choiceID_lt?: InputMaybe; - choiceID_lte?: InputMaybe; - choiceID_not?: InputMaybe; - choiceID_not_in?: InputMaybe>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - or?: InputMaybe>>; - poll?: InputMaybe; - poll_?: InputMaybe; - poll_contains?: InputMaybe; - poll_contains_nocase?: InputMaybe; - poll_ends_with?: InputMaybe; - poll_ends_with_nocase?: InputMaybe; - poll_gt?: InputMaybe; - poll_gte?: InputMaybe; - poll_in?: InputMaybe>; - poll_lt?: InputMaybe; - poll_lte?: InputMaybe; - poll_not?: InputMaybe; - poll_not_contains?: InputMaybe; - poll_not_contains_nocase?: InputMaybe; - poll_not_ends_with?: InputMaybe; - poll_not_ends_with_nocase?: InputMaybe; - poll_not_in?: InputMaybe>; - poll_not_starts_with?: InputMaybe; - poll_not_starts_with_nocase?: InputMaybe; - poll_starts_with?: InputMaybe; - poll_starts_with_nocase?: InputMaybe; - round?: InputMaybe; - round_?: InputMaybe; - round_contains?: InputMaybe; - round_contains_nocase?: InputMaybe; - round_ends_with?: InputMaybe; - round_ends_with_nocase?: InputMaybe; - round_gt?: InputMaybe; - round_gte?: InputMaybe; - round_in?: InputMaybe>; - round_lt?: InputMaybe; - round_lte?: InputMaybe; - round_not?: InputMaybe; - round_not_contains?: InputMaybe; - round_not_contains_nocase?: InputMaybe; - round_not_ends_with?: InputMaybe; - round_not_ends_with_nocase?: InputMaybe; - round_not_in?: InputMaybe>; - round_not_starts_with?: InputMaybe; - round_not_starts_with_nocase?: InputMaybe; - round_starts_with?: InputMaybe; - round_starts_with_nocase?: InputMaybe; - timestamp?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not?: InputMaybe; - timestamp_not_in?: InputMaybe>; - transaction?: InputMaybe; - transaction_?: InputMaybe; - transaction_contains?: InputMaybe; - transaction_contains_nocase?: InputMaybe; - transaction_ends_with?: InputMaybe; - transaction_ends_with_nocase?: InputMaybe; - transaction_gt?: InputMaybe; - transaction_gte?: InputMaybe; - transaction_in?: InputMaybe>; - transaction_lt?: InputMaybe; - transaction_lte?: InputMaybe; - transaction_not?: InputMaybe; - transaction_not_contains?: InputMaybe; - transaction_not_contains_nocase?: InputMaybe; - transaction_not_ends_with?: InputMaybe; - transaction_not_ends_with_nocase?: InputMaybe; - transaction_not_in?: InputMaybe>; - transaction_not_starts_with?: InputMaybe; - transaction_not_starts_with_nocase?: InputMaybe; - transaction_starts_with?: InputMaybe; - transaction_starts_with_nocase?: InputMaybe; - voter?: InputMaybe; - voter_contains?: InputMaybe; - voter_contains_nocase?: InputMaybe; - voter_ends_with?: InputMaybe; - voter_ends_with_nocase?: InputMaybe; - voter_gt?: InputMaybe; - voter_gte?: InputMaybe; - voter_in?: InputMaybe>; - voter_lt?: InputMaybe; - voter_lte?: InputMaybe; - voter_not?: InputMaybe; - voter_not_contains?: InputMaybe; - voter_not_contains_nocase?: InputMaybe; - voter_not_ends_with?: InputMaybe; - voter_not_ends_with_nocase?: InputMaybe; - voter_not_in?: InputMaybe>; - voter_not_starts_with?: InputMaybe; - voter_not_starts_with_nocase?: InputMaybe; - voter_starts_with?: InputMaybe; - voter_starts_with_nocase?: InputMaybe; -}; - -export enum VoteEvent_OrderBy { - ChoiceId = 'choiceID', - Id = 'id', - Poll = 'poll', - PollEndBlock = 'poll__endBlock', - PollId = 'poll__id', - PollProposal = 'poll__proposal', - PollQuorum = 'poll__quorum', - PollQuota = 'poll__quota', - Round = 'round', - RoundActiveTranscoderCount = 'round__activeTranscoderCount', - RoundDelegatorsCount = 'round__delegatorsCount', - RoundEndBlock = 'round__endBlock', - RoundId = 'round__id', - RoundInflation = 'round__inflation', - RoundInitialized = 'round__initialized', - RoundLength = 'round__length', - RoundMintableTokens = 'round__mintableTokens', - RoundMovedStake = 'round__movedStake', - RoundNewStake = 'round__newStake', - RoundNumActiveTranscoders = 'round__numActiveTranscoders', - RoundParticipationRate = 'round__participationRate', - RoundStartBlock = 'round__startBlock', - RoundStartTimestamp = 'round__startTimestamp', - RoundTotalActiveStake = 'round__totalActiveStake', - RoundTotalSupply = 'round__totalSupply', - RoundVolumeEth = 'round__volumeETH', - RoundVolumeUsd = 'round__volumeUSD', - Timestamp = 'timestamp', - Transaction = 'transaction', - TransactionBlockNumber = 'transaction__blockNumber', - TransactionFrom = 'transaction__from', - TransactionGasPrice = 'transaction__gasPrice', - TransactionGasUsed = 'transaction__gasUsed', - TransactionId = 'transaction__id', - TransactionTimestamp = 'transaction__timestamp', - TransactionTo = 'transaction__to', - Voter = 'voter' -} - -export type Vote_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - choiceID?: InputMaybe; - choiceID_in?: InputMaybe>; - choiceID_not?: InputMaybe; - choiceID_not_in?: InputMaybe>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - nonVoteStake?: InputMaybe; - nonVoteStake_gt?: InputMaybe; - nonVoteStake_gte?: InputMaybe; - nonVoteStake_in?: InputMaybe>; - nonVoteStake_lt?: InputMaybe; - nonVoteStake_lte?: InputMaybe; - nonVoteStake_not?: InputMaybe; - nonVoteStake_not_in?: InputMaybe>; - or?: InputMaybe>>; - poll?: InputMaybe; - poll_?: InputMaybe; - poll_contains?: InputMaybe; - poll_contains_nocase?: InputMaybe; - poll_ends_with?: InputMaybe; - poll_ends_with_nocase?: InputMaybe; - poll_gt?: InputMaybe; - poll_gte?: InputMaybe; - poll_in?: InputMaybe>; - poll_lt?: InputMaybe; - poll_lte?: InputMaybe; - poll_not?: InputMaybe; - poll_not_contains?: InputMaybe; - poll_not_contains_nocase?: InputMaybe; - poll_not_ends_with?: InputMaybe; - poll_not_ends_with_nocase?: InputMaybe; - poll_not_in?: InputMaybe>; - poll_not_starts_with?: InputMaybe; - poll_not_starts_with_nocase?: InputMaybe; - poll_starts_with?: InputMaybe; - poll_starts_with_nocase?: InputMaybe; - registeredTranscoder?: InputMaybe; - registeredTranscoder_in?: InputMaybe>; - registeredTranscoder_not?: InputMaybe; - registeredTranscoder_not_in?: InputMaybe>; - voteStake?: InputMaybe; - voteStake_gt?: InputMaybe; - voteStake_gte?: InputMaybe; - voteStake_in?: InputMaybe>; - voteStake_lt?: InputMaybe; - voteStake_lte?: InputMaybe; - voteStake_not?: InputMaybe; - voteStake_not_in?: InputMaybe>; - voter?: InputMaybe; - voter_contains?: InputMaybe; - voter_contains_nocase?: InputMaybe; - voter_ends_with?: InputMaybe; - voter_ends_with_nocase?: InputMaybe; - voter_gt?: InputMaybe; - voter_gte?: InputMaybe; - voter_in?: InputMaybe>; - voter_lt?: InputMaybe; - voter_lte?: InputMaybe; - voter_not?: InputMaybe; - voter_not_contains?: InputMaybe; - voter_not_contains_nocase?: InputMaybe; - voter_not_ends_with?: InputMaybe; - voter_not_ends_with_nocase?: InputMaybe; - voter_not_in?: InputMaybe>; - voter_not_starts_with?: InputMaybe; - voter_not_starts_with_nocase?: InputMaybe; - voter_starts_with?: InputMaybe; - voter_starts_with_nocase?: InputMaybe; -}; - -export enum Vote_OrderBy { - ChoiceId = 'choiceID', - Id = 'id', - NonVoteStake = 'nonVoteStake', - Poll = 'poll', - PollEndBlock = 'poll__endBlock', - PollId = 'poll__id', - PollProposal = 'poll__proposal', - PollQuorum = 'poll__quorum', - PollQuota = 'poll__quota', - RegisteredTranscoder = 'registeredTranscoder', - VoteStake = 'voteStake', - Voter = 'voter' -} - -/** WinningTicketRedeemedEvent entities are created for every emitted WinningTicketRedeemed event. */ -export type WinningTicketRedeemedEvent = Event & { - __typename: 'WinningTicketRedeemedEvent'; - /** Auxilary data included in ticket used for additional validation */ - auxData: Scalars['Bytes']; - /** Face value of ticket paid to recipient */ - faceValue: Scalars['BigDecimal']; - /** Amount of fees the winning ticket was redeemed for in in USD */ - faceValueUSD: Scalars['BigDecimal']; - /** Ethereum transaction hash + event log index */ - id: Scalars['ID']; - /** Reference to the recipient of the broadcaster fees */ - recipient: Transcoder; - /** keccak256 hash commitment to recipient's random value */ - recipientRand: Scalars['BigInt']; - /** Reference to the round the event occured in */ - round: Round; - /** Reference to the broadcaster who sent the fees */ - sender: Broadcaster; - /** Sender's monotonically increasing counter for each ticket */ - senderNonce: Scalars['BigInt']; - /** Timestamp of the transaction the event was included in */ - timestamp: Scalars['Int']; - /** Reference to the transaction the event was included in */ - transaction: Transaction; - /** The winning probability of the ticket */ - winProb: Scalars['BigInt']; -}; - -export type WinningTicketRedeemedEvent_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - auxData?: InputMaybe; - auxData_contains?: InputMaybe; - auxData_gt?: InputMaybe; - auxData_gte?: InputMaybe; - auxData_in?: InputMaybe>; - auxData_lt?: InputMaybe; - auxData_lte?: InputMaybe; - auxData_not?: InputMaybe; - auxData_not_contains?: InputMaybe; - auxData_not_in?: InputMaybe>; - faceValue?: InputMaybe; - faceValueUSD?: InputMaybe; - faceValueUSD_gt?: InputMaybe; - faceValueUSD_gte?: InputMaybe; - faceValueUSD_in?: InputMaybe>; - faceValueUSD_lt?: InputMaybe; - faceValueUSD_lte?: InputMaybe; - faceValueUSD_not?: InputMaybe; - faceValueUSD_not_in?: InputMaybe>; - faceValue_gt?: InputMaybe; - faceValue_gte?: InputMaybe; - faceValue_in?: InputMaybe>; - faceValue_lt?: InputMaybe; - faceValue_lte?: InputMaybe; - faceValue_not?: InputMaybe; - faceValue_not_in?: InputMaybe>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - or?: InputMaybe>>; - recipient?: InputMaybe; - recipientRand?: InputMaybe; - recipientRand_gt?: InputMaybe; - recipientRand_gte?: InputMaybe; - recipientRand_in?: InputMaybe>; - recipientRand_lt?: InputMaybe; - recipientRand_lte?: InputMaybe; - recipientRand_not?: InputMaybe; - recipientRand_not_in?: InputMaybe>; - recipient_?: InputMaybe; - recipient_contains?: InputMaybe; - recipient_contains_nocase?: InputMaybe; - recipient_ends_with?: InputMaybe; - recipient_ends_with_nocase?: InputMaybe; - recipient_gt?: InputMaybe; - recipient_gte?: InputMaybe; - recipient_in?: InputMaybe>; - recipient_lt?: InputMaybe; - recipient_lte?: InputMaybe; - recipient_not?: InputMaybe; - recipient_not_contains?: InputMaybe; - recipient_not_contains_nocase?: InputMaybe; - recipient_not_ends_with?: InputMaybe; - recipient_not_ends_with_nocase?: InputMaybe; - recipient_not_in?: InputMaybe>; - recipient_not_starts_with?: InputMaybe; - recipient_not_starts_with_nocase?: InputMaybe; - recipient_starts_with?: InputMaybe; - recipient_starts_with_nocase?: InputMaybe; - round?: InputMaybe; - round_?: InputMaybe; - round_contains?: InputMaybe; - round_contains_nocase?: InputMaybe; - round_ends_with?: InputMaybe; - round_ends_with_nocase?: InputMaybe; - round_gt?: InputMaybe; - round_gte?: InputMaybe; - round_in?: InputMaybe>; - round_lt?: InputMaybe; - round_lte?: InputMaybe; - round_not?: InputMaybe; - round_not_contains?: InputMaybe; - round_not_contains_nocase?: InputMaybe; - round_not_ends_with?: InputMaybe; - round_not_ends_with_nocase?: InputMaybe; - round_not_in?: InputMaybe>; - round_not_starts_with?: InputMaybe; - round_not_starts_with_nocase?: InputMaybe; - round_starts_with?: InputMaybe; - round_starts_with_nocase?: InputMaybe; - sender?: InputMaybe; - senderNonce?: InputMaybe; - senderNonce_gt?: InputMaybe; - senderNonce_gte?: InputMaybe; - senderNonce_in?: InputMaybe>; - senderNonce_lt?: InputMaybe; - senderNonce_lte?: InputMaybe; - senderNonce_not?: InputMaybe; - senderNonce_not_in?: InputMaybe>; - sender_?: InputMaybe; - sender_contains?: InputMaybe; - sender_contains_nocase?: InputMaybe; - sender_ends_with?: InputMaybe; - sender_ends_with_nocase?: InputMaybe; - sender_gt?: InputMaybe; - sender_gte?: InputMaybe; - sender_in?: InputMaybe>; - sender_lt?: InputMaybe; - sender_lte?: InputMaybe; - sender_not?: InputMaybe; - sender_not_contains?: InputMaybe; - sender_not_contains_nocase?: InputMaybe; - sender_not_ends_with?: InputMaybe; - sender_not_ends_with_nocase?: InputMaybe; - sender_not_in?: InputMaybe>; - sender_not_starts_with?: InputMaybe; - sender_not_starts_with_nocase?: InputMaybe; - sender_starts_with?: InputMaybe; - sender_starts_with_nocase?: InputMaybe; - timestamp?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not?: InputMaybe; - timestamp_not_in?: InputMaybe>; - transaction?: InputMaybe; - transaction_?: InputMaybe; - transaction_contains?: InputMaybe; - transaction_contains_nocase?: InputMaybe; - transaction_ends_with?: InputMaybe; - transaction_ends_with_nocase?: InputMaybe; - transaction_gt?: InputMaybe; - transaction_gte?: InputMaybe; - transaction_in?: InputMaybe>; - transaction_lt?: InputMaybe; - transaction_lte?: InputMaybe; - transaction_not?: InputMaybe; - transaction_not_contains?: InputMaybe; - transaction_not_contains_nocase?: InputMaybe; - transaction_not_ends_with?: InputMaybe; - transaction_not_ends_with_nocase?: InputMaybe; - transaction_not_in?: InputMaybe>; - transaction_not_starts_with?: InputMaybe; - transaction_not_starts_with_nocase?: InputMaybe; - transaction_starts_with?: InputMaybe; - transaction_starts_with_nocase?: InputMaybe; - winProb?: InputMaybe; - winProb_gt?: InputMaybe; - winProb_gte?: InputMaybe; - winProb_in?: InputMaybe>; - winProb_lt?: InputMaybe; - winProb_lte?: InputMaybe; - winProb_not?: InputMaybe; - winProb_not_in?: InputMaybe>; -}; - -export enum WinningTicketRedeemedEvent_OrderBy { - AuxData = 'auxData', - FaceValue = 'faceValue', - FaceValueUsd = 'faceValueUSD', - Id = 'id', - Recipient = 'recipient', - RecipientRand = 'recipientRand', - RecipientActivationRound = 'recipient__activationRound', - RecipientActivationTimestamp = 'recipient__activationTimestamp', - RecipientActive = 'recipient__active', - RecipientDeactivationRound = 'recipient__deactivationRound', - RecipientFeeShare = 'recipient__feeShare', - RecipientFeeShareUpdateTimestamp = 'recipient__feeShareUpdateTimestamp', - RecipientId = 'recipient__id', - RecipientLastActiveStakeUpdateRound = 'recipient__lastActiveStakeUpdateRound', - RecipientNinetyDayVolumeEth = 'recipient__ninetyDayVolumeETH', - RecipientRewardCaller = 'recipient__rewardCaller', - RecipientRewardCut = 'recipient__rewardCut', - RecipientRewardCutUpdateTimestamp = 'recipient__rewardCutUpdateTimestamp', - RecipientServiceUri = 'recipient__serviceURI', - RecipientSixtyDayVolumeEth = 'recipient__sixtyDayVolumeETH', - RecipientStatus = 'recipient__status', - RecipientThirtyDayVolumeEth = 'recipient__thirtyDayVolumeETH', - RecipientTotalStake = 'recipient__totalStake', - RecipientTotalVolumeEth = 'recipient__totalVolumeETH', - RecipientTotalVolumeUsd = 'recipient__totalVolumeUSD', - Round = 'round', - RoundActiveTranscoderCount = 'round__activeTranscoderCount', - RoundDelegatorsCount = 'round__delegatorsCount', - RoundEndBlock = 'round__endBlock', - RoundId = 'round__id', - RoundInflation = 'round__inflation', - RoundInitialized = 'round__initialized', - RoundLength = 'round__length', - RoundMintableTokens = 'round__mintableTokens', - RoundMovedStake = 'round__movedStake', - RoundNewStake = 'round__newStake', - RoundNumActiveTranscoders = 'round__numActiveTranscoders', - RoundParticipationRate = 'round__participationRate', - RoundStartBlock = 'round__startBlock', - RoundStartTimestamp = 'round__startTimestamp', - RoundTotalActiveStake = 'round__totalActiveStake', - RoundTotalSupply = 'round__totalSupply', - RoundVolumeEth = 'round__volumeETH', - RoundVolumeUsd = 'round__volumeUSD', - Sender = 'sender', - SenderNonce = 'senderNonce', - SenderDeposit = 'sender__deposit', - SenderFirstActiveDay = 'sender__firstActiveDay', - SenderFirstFundedDay = 'sender__firstFundedDay', - SenderId = 'sender__id', - SenderLastActiveDay = 'sender__lastActiveDay', - SenderLastFundedDay = 'sender__lastFundedDay', - SenderNinetyDayVolumeEth = 'sender__ninetyDayVolumeETH', - SenderReserve = 'sender__reserve', - SenderSixtyDayVolumeEth = 'sender__sixtyDayVolumeETH', - SenderThirtyDayVolumeEth = 'sender__thirtyDayVolumeETH', - SenderTotalVolumeEth = 'sender__totalVolumeETH', - SenderTotalVolumeUsd = 'sender__totalVolumeUSD', - Timestamp = 'timestamp', - Transaction = 'transaction', - TransactionBlockNumber = 'transaction__blockNumber', - TransactionFrom = 'transaction__from', - TransactionGasPrice = 'transaction__gasPrice', - TransactionGasUsed = 'transaction__gasUsed', - TransactionId = 'transaction__id', - TransactionTimestamp = 'transaction__timestamp', - TransactionTo = 'transaction__to', - WinProb = 'winProb' -} - -/** WithdrawFeesEvent entities are created for every emitted WithdrawFees event. */ -export type WithdrawFeesEvent = Event & { - __typename: 'WithdrawFeesEvent'; - /** Amount of fees withdrawn */ - amount: Scalars['BigDecimal']; - /** Reference to the delegator that withdraw its fees */ - delegator: Delegator; - /** Ethereum transaction hash + event log index */ - id: Scalars['ID']; - /** Address belonging to the receiver of fees */ - recipient: Scalars['String']; - /** Reference to the round the event occured in */ - round: Round; - /** Timestamp of the transaction the event was included in */ - timestamp: Scalars['Int']; - /** Reference to the transaction the event was included in */ - transaction: Transaction; -}; - -export type WithdrawFeesEvent_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - amount?: InputMaybe; - amount_gt?: InputMaybe; - amount_gte?: InputMaybe; - amount_in?: InputMaybe>; - amount_lt?: InputMaybe; - amount_lte?: InputMaybe; - amount_not?: InputMaybe; - amount_not_in?: InputMaybe>; - and?: InputMaybe>>; - delegator?: InputMaybe; - delegator_?: InputMaybe; - delegator_contains?: InputMaybe; - delegator_contains_nocase?: InputMaybe; - delegator_ends_with?: InputMaybe; - delegator_ends_with_nocase?: InputMaybe; - delegator_gt?: InputMaybe; - delegator_gte?: InputMaybe; - delegator_in?: InputMaybe>; - delegator_lt?: InputMaybe; - delegator_lte?: InputMaybe; - delegator_not?: InputMaybe; - delegator_not_contains?: InputMaybe; - delegator_not_contains_nocase?: InputMaybe; - delegator_not_ends_with?: InputMaybe; - delegator_not_ends_with_nocase?: InputMaybe; - delegator_not_in?: InputMaybe>; - delegator_not_starts_with?: InputMaybe; - delegator_not_starts_with_nocase?: InputMaybe; - delegator_starts_with?: InputMaybe; - delegator_starts_with_nocase?: InputMaybe; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - or?: InputMaybe>>; - recipient?: InputMaybe; - recipient_contains?: InputMaybe; - recipient_contains_nocase?: InputMaybe; - recipient_ends_with?: InputMaybe; - recipient_ends_with_nocase?: InputMaybe; - recipient_gt?: InputMaybe; - recipient_gte?: InputMaybe; - recipient_in?: InputMaybe>; - recipient_lt?: InputMaybe; - recipient_lte?: InputMaybe; - recipient_not?: InputMaybe; - recipient_not_contains?: InputMaybe; - recipient_not_contains_nocase?: InputMaybe; - recipient_not_ends_with?: InputMaybe; - recipient_not_ends_with_nocase?: InputMaybe; - recipient_not_in?: InputMaybe>; - recipient_not_starts_with?: InputMaybe; - recipient_not_starts_with_nocase?: InputMaybe; - recipient_starts_with?: InputMaybe; - recipient_starts_with_nocase?: InputMaybe; - round?: InputMaybe; - round_?: InputMaybe; - round_contains?: InputMaybe; - round_contains_nocase?: InputMaybe; - round_ends_with?: InputMaybe; - round_ends_with_nocase?: InputMaybe; - round_gt?: InputMaybe; - round_gte?: InputMaybe; - round_in?: InputMaybe>; - round_lt?: InputMaybe; - round_lte?: InputMaybe; - round_not?: InputMaybe; - round_not_contains?: InputMaybe; - round_not_contains_nocase?: InputMaybe; - round_not_ends_with?: InputMaybe; - round_not_ends_with_nocase?: InputMaybe; - round_not_in?: InputMaybe>; - round_not_starts_with?: InputMaybe; - round_not_starts_with_nocase?: InputMaybe; - round_starts_with?: InputMaybe; - round_starts_with_nocase?: InputMaybe; - timestamp?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not?: InputMaybe; - timestamp_not_in?: InputMaybe>; - transaction?: InputMaybe; - transaction_?: InputMaybe; - transaction_contains?: InputMaybe; - transaction_contains_nocase?: InputMaybe; - transaction_ends_with?: InputMaybe; - transaction_ends_with_nocase?: InputMaybe; - transaction_gt?: InputMaybe; - transaction_gte?: InputMaybe; - transaction_in?: InputMaybe>; - transaction_lt?: InputMaybe; - transaction_lte?: InputMaybe; - transaction_not?: InputMaybe; - transaction_not_contains?: InputMaybe; - transaction_not_contains_nocase?: InputMaybe; - transaction_not_ends_with?: InputMaybe; - transaction_not_ends_with_nocase?: InputMaybe; - transaction_not_in?: InputMaybe>; - transaction_not_starts_with?: InputMaybe; - transaction_not_starts_with_nocase?: InputMaybe; - transaction_starts_with?: InputMaybe; - transaction_starts_with_nocase?: InputMaybe; -}; - -export enum WithdrawFeesEvent_OrderBy { - Amount = 'amount', - Delegator = 'delegator', - DelegatorBondedAmount = 'delegator__bondedAmount', - DelegatorDelegatedAmount = 'delegator__delegatedAmount', - DelegatorFees = 'delegator__fees', - DelegatorId = 'delegator__id', - DelegatorPrincipal = 'delegator__principal', - DelegatorStartRound = 'delegator__startRound', - DelegatorUnbonded = 'delegator__unbonded', - DelegatorWithdrawnFees = 'delegator__withdrawnFees', - Id = 'id', - Recipient = 'recipient', - Round = 'round', - RoundActiveTranscoderCount = 'round__activeTranscoderCount', - RoundDelegatorsCount = 'round__delegatorsCount', - RoundEndBlock = 'round__endBlock', - RoundId = 'round__id', - RoundInflation = 'round__inflation', - RoundInitialized = 'round__initialized', - RoundLength = 'round__length', - RoundMintableTokens = 'round__mintableTokens', - RoundMovedStake = 'round__movedStake', - RoundNewStake = 'round__newStake', - RoundNumActiveTranscoders = 'round__numActiveTranscoders', - RoundParticipationRate = 'round__participationRate', - RoundStartBlock = 'round__startBlock', - RoundStartTimestamp = 'round__startTimestamp', - RoundTotalActiveStake = 'round__totalActiveStake', - RoundTotalSupply = 'round__totalSupply', - RoundVolumeEth = 'round__volumeETH', - RoundVolumeUsd = 'round__volumeUSD', - Timestamp = 'timestamp', - Transaction = 'transaction', - TransactionBlockNumber = 'transaction__blockNumber', - TransactionFrom = 'transaction__from', - TransactionGasPrice = 'transaction__gasPrice', - TransactionGasUsed = 'transaction__gasUsed', - TransactionId = 'transaction__id', - TransactionTimestamp = 'transaction__timestamp', - TransactionTo = 'transaction__to' -} - -/** WithdrawStakeEvent entities are created for every emitted WithdrawStake event. */ -export type WithdrawStakeEvent = Event & { - __typename: 'WithdrawStakeEvent'; - /** Amount of stake withdrawn */ - amount: Scalars['BigDecimal']; - /** Reference to the delegator that withdraw its stake */ - delegator: Delegator; - /** Ethereum transaction hash + event log index */ - id: Scalars['ID']; - /** Reference to the round the event occured in */ - round: Round; - /** Timestamp of the transaction the event was included in */ - timestamp: Scalars['Int']; - /** Reference to the transaction the event was included in */ - transaction: Transaction; - /** Unbonding lock ID that was deleted upon withdrawal */ - unbondingLockId?: Maybe; -}; - -export type WithdrawStakeEvent_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - amount?: InputMaybe; - amount_gt?: InputMaybe; - amount_gte?: InputMaybe; - amount_in?: InputMaybe>; - amount_lt?: InputMaybe; - amount_lte?: InputMaybe; - amount_not?: InputMaybe; - amount_not_in?: InputMaybe>; - and?: InputMaybe>>; - delegator?: InputMaybe; - delegator_?: InputMaybe; - delegator_contains?: InputMaybe; - delegator_contains_nocase?: InputMaybe; - delegator_ends_with?: InputMaybe; - delegator_ends_with_nocase?: InputMaybe; - delegator_gt?: InputMaybe; - delegator_gte?: InputMaybe; - delegator_in?: InputMaybe>; - delegator_lt?: InputMaybe; - delegator_lte?: InputMaybe; - delegator_not?: InputMaybe; - delegator_not_contains?: InputMaybe; - delegator_not_contains_nocase?: InputMaybe; - delegator_not_ends_with?: InputMaybe; - delegator_not_ends_with_nocase?: InputMaybe; - delegator_not_in?: InputMaybe>; - delegator_not_starts_with?: InputMaybe; - delegator_not_starts_with_nocase?: InputMaybe; - delegator_starts_with?: InputMaybe; - delegator_starts_with_nocase?: InputMaybe; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - or?: InputMaybe>>; - round?: InputMaybe; - round_?: InputMaybe; - round_contains?: InputMaybe; - round_contains_nocase?: InputMaybe; - round_ends_with?: InputMaybe; - round_ends_with_nocase?: InputMaybe; - round_gt?: InputMaybe; - round_gte?: InputMaybe; - round_in?: InputMaybe>; - round_lt?: InputMaybe; - round_lte?: InputMaybe; - round_not?: InputMaybe; - round_not_contains?: InputMaybe; - round_not_contains_nocase?: InputMaybe; - round_not_ends_with?: InputMaybe; - round_not_ends_with_nocase?: InputMaybe; - round_not_in?: InputMaybe>; - round_not_starts_with?: InputMaybe; - round_not_starts_with_nocase?: InputMaybe; - round_starts_with?: InputMaybe; - round_starts_with_nocase?: InputMaybe; - timestamp?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not?: InputMaybe; - timestamp_not_in?: InputMaybe>; - transaction?: InputMaybe; - transaction_?: InputMaybe; - transaction_contains?: InputMaybe; - transaction_contains_nocase?: InputMaybe; - transaction_ends_with?: InputMaybe; - transaction_ends_with_nocase?: InputMaybe; - transaction_gt?: InputMaybe; - transaction_gte?: InputMaybe; - transaction_in?: InputMaybe>; - transaction_lt?: InputMaybe; - transaction_lte?: InputMaybe; - transaction_not?: InputMaybe; - transaction_not_contains?: InputMaybe; - transaction_not_contains_nocase?: InputMaybe; - transaction_not_ends_with?: InputMaybe; - transaction_not_ends_with_nocase?: InputMaybe; - transaction_not_in?: InputMaybe>; - transaction_not_starts_with?: InputMaybe; - transaction_not_starts_with_nocase?: InputMaybe; - transaction_starts_with?: InputMaybe; - transaction_starts_with_nocase?: InputMaybe; - unbondingLockId?: InputMaybe; - unbondingLockId_gt?: InputMaybe; - unbondingLockId_gte?: InputMaybe; - unbondingLockId_in?: InputMaybe>; - unbondingLockId_lt?: InputMaybe; - unbondingLockId_lte?: InputMaybe; - unbondingLockId_not?: InputMaybe; - unbondingLockId_not_in?: InputMaybe>; -}; - -export enum WithdrawStakeEvent_OrderBy { - Amount = 'amount', - Delegator = 'delegator', - DelegatorBondedAmount = 'delegator__bondedAmount', - DelegatorDelegatedAmount = 'delegator__delegatedAmount', - DelegatorFees = 'delegator__fees', - DelegatorId = 'delegator__id', - DelegatorPrincipal = 'delegator__principal', - DelegatorStartRound = 'delegator__startRound', - DelegatorUnbonded = 'delegator__unbonded', - DelegatorWithdrawnFees = 'delegator__withdrawnFees', - Id = 'id', - Round = 'round', - RoundActiveTranscoderCount = 'round__activeTranscoderCount', - RoundDelegatorsCount = 'round__delegatorsCount', - RoundEndBlock = 'round__endBlock', - RoundId = 'round__id', - RoundInflation = 'round__inflation', - RoundInitialized = 'round__initialized', - RoundLength = 'round__length', - RoundMintableTokens = 'round__mintableTokens', - RoundMovedStake = 'round__movedStake', - RoundNewStake = 'round__newStake', - RoundNumActiveTranscoders = 'round__numActiveTranscoders', - RoundParticipationRate = 'round__participationRate', - RoundStartBlock = 'round__startBlock', - RoundStartTimestamp = 'round__startTimestamp', - RoundTotalActiveStake = 'round__totalActiveStake', - RoundTotalSupply = 'round__totalSupply', - RoundVolumeEth = 'round__volumeETH', - RoundVolumeUsd = 'round__volumeUSD', - Timestamp = 'timestamp', - Transaction = 'transaction', - TransactionBlockNumber = 'transaction__blockNumber', - TransactionFrom = 'transaction__from', - TransactionGasPrice = 'transaction__gasPrice', - TransactionGasUsed = 'transaction__gasUsed', - TransactionId = 'transaction__id', - TransactionTimestamp = 'transaction__timestamp', - TransactionTo = 'transaction__to', - UnbondingLockId = 'unbondingLockId' -} - -/** WithdrawalEvent entities are created for every emitted Withdrawal event. */ -export type WithdrawalEvent = Event & { - __typename: 'WithdrawalEvent'; - /** Deposit amount withdrawn */ - deposit: Scalars['BigDecimal']; - /** Ethereum transaction hash + event log index */ - id: Scalars['ID']; - /** Reserve amount withdrawn */ - reserve: Scalars['BigDecimal']; - /** Reference to the round the event occured in */ - round: Round; - /** Reference to the broadcaster withdrawing its deposit and reserve */ - sender: Broadcaster; - /** Timestamp of the transaction the event was included in */ - timestamp: Scalars['Int']; - /** Reference to the transaction the event was included in */ - transaction: Transaction; -}; - -export type WithdrawalEvent_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - deposit?: InputMaybe; - deposit_gt?: InputMaybe; - deposit_gte?: InputMaybe; - deposit_in?: InputMaybe>; - deposit_lt?: InputMaybe; - deposit_lte?: InputMaybe; - deposit_not?: InputMaybe; - deposit_not_in?: InputMaybe>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - or?: InputMaybe>>; - reserve?: InputMaybe; - reserve_gt?: InputMaybe; - reserve_gte?: InputMaybe; - reserve_in?: InputMaybe>; - reserve_lt?: InputMaybe; - reserve_lte?: InputMaybe; - reserve_not?: InputMaybe; - reserve_not_in?: InputMaybe>; - round?: InputMaybe; - round_?: InputMaybe; - round_contains?: InputMaybe; - round_contains_nocase?: InputMaybe; - round_ends_with?: InputMaybe; - round_ends_with_nocase?: InputMaybe; - round_gt?: InputMaybe; - round_gte?: InputMaybe; - round_in?: InputMaybe>; - round_lt?: InputMaybe; - round_lte?: InputMaybe; - round_not?: InputMaybe; - round_not_contains?: InputMaybe; - round_not_contains_nocase?: InputMaybe; - round_not_ends_with?: InputMaybe; - round_not_ends_with_nocase?: InputMaybe; - round_not_in?: InputMaybe>; - round_not_starts_with?: InputMaybe; - round_not_starts_with_nocase?: InputMaybe; - round_starts_with?: InputMaybe; - round_starts_with_nocase?: InputMaybe; - sender?: InputMaybe; - sender_?: InputMaybe; - sender_contains?: InputMaybe; - sender_contains_nocase?: InputMaybe; - sender_ends_with?: InputMaybe; - sender_ends_with_nocase?: InputMaybe; - sender_gt?: InputMaybe; - sender_gte?: InputMaybe; - sender_in?: InputMaybe>; - sender_lt?: InputMaybe; - sender_lte?: InputMaybe; - sender_not?: InputMaybe; - sender_not_contains?: InputMaybe; - sender_not_contains_nocase?: InputMaybe; - sender_not_ends_with?: InputMaybe; - sender_not_ends_with_nocase?: InputMaybe; - sender_not_in?: InputMaybe>; - sender_not_starts_with?: InputMaybe; - sender_not_starts_with_nocase?: InputMaybe; - sender_starts_with?: InputMaybe; - sender_starts_with_nocase?: InputMaybe; - timestamp?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not?: InputMaybe; - timestamp_not_in?: InputMaybe>; - transaction?: InputMaybe; - transaction_?: InputMaybe; - transaction_contains?: InputMaybe; - transaction_contains_nocase?: InputMaybe; - transaction_ends_with?: InputMaybe; - transaction_ends_with_nocase?: InputMaybe; - transaction_gt?: InputMaybe; - transaction_gte?: InputMaybe; - transaction_in?: InputMaybe>; - transaction_lt?: InputMaybe; - transaction_lte?: InputMaybe; - transaction_not?: InputMaybe; - transaction_not_contains?: InputMaybe; - transaction_not_contains_nocase?: InputMaybe; - transaction_not_ends_with?: InputMaybe; - transaction_not_ends_with_nocase?: InputMaybe; - transaction_not_in?: InputMaybe>; - transaction_not_starts_with?: InputMaybe; - transaction_not_starts_with_nocase?: InputMaybe; - transaction_starts_with?: InputMaybe; - transaction_starts_with_nocase?: InputMaybe; -}; - -export enum WithdrawalEvent_OrderBy { - Deposit = 'deposit', - Id = 'id', - Reserve = 'reserve', - Round = 'round', - RoundActiveTranscoderCount = 'round__activeTranscoderCount', - RoundDelegatorsCount = 'round__delegatorsCount', - RoundEndBlock = 'round__endBlock', - RoundId = 'round__id', - RoundInflation = 'round__inflation', - RoundInitialized = 'round__initialized', - RoundLength = 'round__length', - RoundMintableTokens = 'round__mintableTokens', - RoundMovedStake = 'round__movedStake', - RoundNewStake = 'round__newStake', - RoundNumActiveTranscoders = 'round__numActiveTranscoders', - RoundParticipationRate = 'round__participationRate', - RoundStartBlock = 'round__startBlock', - RoundStartTimestamp = 'round__startTimestamp', - RoundTotalActiveStake = 'round__totalActiveStake', - RoundTotalSupply = 'round__totalSupply', - RoundVolumeEth = 'round__volumeETH', - RoundVolumeUsd = 'round__volumeUSD', - Sender = 'sender', - SenderDeposit = 'sender__deposit', - SenderFirstActiveDay = 'sender__firstActiveDay', - SenderFirstFundedDay = 'sender__firstFundedDay', - SenderId = 'sender__id', - SenderLastActiveDay = 'sender__lastActiveDay', - SenderLastFundedDay = 'sender__lastFundedDay', - SenderNinetyDayVolumeEth = 'sender__ninetyDayVolumeETH', - SenderReserve = 'sender__reserve', - SenderSixtyDayVolumeEth = 'sender__sixtyDayVolumeETH', - SenderThirtyDayVolumeEth = 'sender__thirtyDayVolumeETH', - SenderTotalVolumeEth = 'sender__totalVolumeETH', - SenderTotalVolumeUsd = 'sender__totalVolumeUSD', - Timestamp = 'timestamp', - Transaction = 'transaction', - TransactionBlockNumber = 'transaction__blockNumber', - TransactionFrom = 'transaction__from', - TransactionGasPrice = 'transaction__gasPrice', - TransactionGasUsed = 'transaction__gasUsed', - TransactionId = 'transaction__id', - TransactionTimestamp = 'transaction__timestamp', - TransactionTo = 'transaction__to' -} - -export type _Block_ = { - __typename: '_Block_'; - /** The hash of the block */ - hash?: Maybe; - /** The block number */ - number: Scalars['Int']; - /** The hash of the parent block */ - parentHash?: Maybe; - /** Integer representation of the timestamp stored in blocks for the chain */ - timestamp?: Maybe; -}; - -/** - * A key-value pair of additional data associated with a log entry. - * These correspond to arguments passed to the log function in the subgraph code. - */ -export type _LogArgument_ = { - __typename: '_LogArgument_'; - /** The parameter name */ - key: Scalars['String']; - /** The parameter value, serialized as a string */ - value: Scalars['String']; -}; - -/** - * Source code location metadata for a log entry. - * Indicates where in the subgraph's AssemblyScript code the log statement was executed. - */ -export type _LogMeta_ = { - __typename: '_LogMeta_'; - /** The column number in the source file */ - column: Scalars['Int']; - /** The line number in the source file */ - line: Scalars['Int']; - /** The module or file path where the log was emitted */ - module: Scalars['String']; -}; - -/** - * A log entry emitted by a subgraph during indexing. - * Logs can be generated by the subgraph's AssemblyScript code using the `log.*` functions. - */ -export type _Log_ = { - __typename: '_Log_'; - /** Additional structured data passed to the log function as key-value pairs */ - arguments: Array<_LogArgument_>; - /** Unique identifier for this log entry */ - id: Scalars['String']; - /** The severity level of the log entry */ - level: LogLevel; - /** Metadata about the source location in the subgraph code where the log was emitted */ - meta: _LogMeta_; - /** The deployment hash of the subgraph that emitted this log */ - subgraphId: Scalars['String']; - /** The log message text */ - text: Scalars['String']; - /** The timestamp when the log was emitted, in RFC3339 format (e.g., '2024-01-15T10:30:00Z') */ - timestamp: Scalars['String']; -}; - -/** The type for the top-level _meta field */ -export type _Meta_ = { - __typename: '_Meta_'; - /** - * Information about a specific subgraph block. The hash of the block - * will be null if the _meta field has a block constraint that asks for - * a block number. It will be filled if the _meta field has no block constraint - * and therefore asks for the latest block - */ - block: _Block_; - /** The deployment ID */ - deployment: Scalars['String']; - /** If `true`, the subgraph encountered indexing errors at some past block */ - hasIndexingErrors: Scalars['Boolean']; -}; - -export enum _SubgraphErrorPolicy_ { - /** Data will be returned even if the subgraph has indexing errors */ - Allow = 'allow', - /** If the subgraph has indexing errors, data will be omitted. The default. */ - Deny = 'deny' -} - -export type AccountQueryVariables = Exact<{ - account: Scalars['ID']; -}>; - - -export type AccountQuery = { __typename: 'Query', delegator?: { __typename: 'Delegator', id: string, bondedAmount: string, principal: string, unbonded: string, withdrawnFees: string, startRound: string, lastClaimRound?: { __typename: 'Round', id: string } | null, unbondingLocks?: Array<{ __typename: 'UnbondingLock', id: string, amount: string, unbondingLockId: number, withdrawRound: string, delegate: { __typename: 'Transcoder', id: string } }> | null, delegate?: { __typename: 'Transcoder', id: string, active: boolean, status: TranscoderStatus, totalStake: string, feeShare: string, rewardCut: string, ninetyDayVolumeETH: string, pools?: Array<{ __typename: 'Pool', rewardTokens?: string | null }> | null } | null } | null, transcoder?: { __typename: 'Transcoder', id: string, active: boolean, feeShare: string, rewardCut: string, status: TranscoderStatus, totalStake: string, totalVolumeETH: string, activationTimestamp: number, activationRound: string, deactivationRound: string, thirtyDayVolumeETH: string, ninetyDayVolumeETH: string, lastRewardRound?: { __typename: 'Round', id: string } | null, pools?: Array<{ __typename: 'Pool', rewardTokens?: string | null }> | null, delegators?: Array<{ __typename: 'Delegator', id: string }> | null } | null, gateway?: { __typename: 'Broadcaster', id: string, deposit: string, reserve: string, totalVolumeETH: string, ninetyDayVolumeETH: string, firstActiveDay: number, lastActiveDay: number } | null, protocol?: { __typename: 'Protocol', id: string, totalSupply: string, totalActiveStake: string, participationRate: string, inflation: string, inflationChange: string, lptPriceEth: string, roundLength: string, currentRound: { __typename: 'Round', id: string } } | null }; - -export type AccountInactiveQueryVariables = Exact<{ - id: Scalars['ID']; -}>; - - -export type AccountInactiveQuery = { __typename: 'Query', delegator?: { __typename: 'Delegator', id: string, delegate?: { __typename: 'Transcoder', id: string, active: boolean } | null } | null, protocol?: { __typename: 'Protocol', id: string, pendingActivation: Array<{ __typename: 'Transcoder', id: string }> } | null }; - -export type CurrentRoundQueryVariables = Exact<{ [key: string]: never; }>; - - -export type CurrentRoundQuery = { __typename: 'Query', _meta?: { __typename: '_Meta_', block: { __typename: '_Block_', number: number } } | null, protocol?: { __typename: 'Protocol', id: string, currentRound: { __typename: 'Round', id: string, initialized: boolean, startBlock: string } } | null }; - -export type DaysQueryVariables = Exact<{ - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; -}>; - - -export type DaysQuery = { __typename: 'Query', days: Array<{ __typename: 'Day', date: number, volumeUSD: string, volumeETH: string, participationRate: string, inflation: string, activeTranscoderCount: string, delegatorsCount: string }> }; - -export type EventsQueryVariables = Exact<{ - first?: InputMaybe; -}>; - - -export type EventsQuery = { __typename: 'Query', transactions: Array<{ __typename: 'Transaction', events?: Array<{ __typename: 'BondEvent', additionalAmount: string, delegator: { __typename: 'Delegator', id: string }, newDelegate: { __typename: 'Transcoder', id: string }, oldDelegate?: { __typename: 'Transcoder', id: string } | null, round: { __typename: 'Round', id: string }, transaction: { __typename: 'Transaction', id: string, timestamp: number, from: string } } | { __typename: 'BurnEvent', round: { __typename: 'Round', id: string }, transaction: { __typename: 'Transaction', id: string, timestamp: number, from: string } } | { __typename: 'DepositFundedEvent', amount: string, sender: { __typename: 'Broadcaster', id: string }, round: { __typename: 'Round', id: string }, transaction: { __typename: 'Transaction', id: string, timestamp: number, from: string } } | { __typename: 'EarningsClaimedEvent', round: { __typename: 'Round', id: string }, transaction: { __typename: 'Transaction', id: string, timestamp: number, from: string } } | { __typename: 'MigrateDelegatorFinalizedEvent', l1Addr: string, l2Addr: string, stake: string, delegatedStake: string, fees: string, round: { __typename: 'Round', id: string }, transaction: { __typename: 'Transaction', id: string, timestamp: number, from: string } } | { __typename: 'MintEvent', round: { __typename: 'Round', id: string }, transaction: { __typename: 'Transaction', id: string, timestamp: number, from: string } } | { __typename: 'NewRoundEvent', transaction: { __typename: 'Transaction', from: string, id: string, timestamp: number }, round: { __typename: 'Round', id: string } } | { __typename: 'ParameterUpdateEvent', param: string, round: { __typename: 'Round', id: string }, transaction: { __typename: 'Transaction', id: string, timestamp: number, from: string } } | { __typename: 'PauseEvent', round: { __typename: 'Round', id: string }, transaction: { __typename: 'Transaction', id: string, timestamp: number, from: string } } | { __typename: 'PollCreatedEvent', endBlock: string, poll: { __typename: 'Poll', id: string }, round: { __typename: 'Round', id: string }, transaction: { __typename: 'Transaction', id: string, timestamp: number, from: string } } | { __typename: 'RebondEvent', amount: string, delegate: { __typename: 'Transcoder', id: string }, delegator: { __typename: 'Delegator', id: string }, round: { __typename: 'Round', id: string }, transaction: { __typename: 'Transaction', id: string, timestamp: number, from: string } } | { __typename: 'ReserveClaimedEvent', amount: string, claimant: { __typename: 'Transcoder', id: string }, reserveHolder: { __typename: 'Broadcaster', id: string }, round: { __typename: 'Round', id: string }, transaction: { __typename: 'Transaction', id: string, timestamp: number, from: string } } | { __typename: 'ReserveFundedEvent', amount: string, reserveHolder: { __typename: 'Broadcaster', id: string }, round: { __typename: 'Round', id: string }, transaction: { __typename: 'Transaction', id: string, timestamp: number, from: string } } | { __typename: 'RewardCallerSetEvent', rewardCaller: string, delegate: { __typename: 'Transcoder', id: string }, round: { __typename: 'Round', id: string }, transaction: { __typename: 'Transaction', id: string, timestamp: number, from: string } } | { __typename: 'RewardEvent', rewardTokens: string, delegate: { __typename: 'Transcoder', id: string }, round: { __typename: 'Round', id: string }, transaction: { __typename: 'Transaction', id: string, timestamp: number, from: string } } | { __typename: 'ServiceURIUpdateEvent', addr: string, serviceURI: string, round: { __typename: 'Round', id: string }, transaction: { __typename: 'Transaction', id: string, timestamp: number, from: string } } | { __typename: 'SetCurrentRewardTokensEvent', currentInflation: string, currentMintableTokens: string, round: { __typename: 'Round', id: string }, transaction: { __typename: 'Transaction', id: string, timestamp: number, from: string } } | { __typename: 'StakeClaimedEvent', stake: string, fees: string, round: { __typename: 'Round', id: string }, transaction: { __typename: 'Transaction', id: string, timestamp: number, from: string } } | { __typename: 'TranscoderActivatedEvent', activationRound: string, delegate: { __typename: 'Transcoder', id: string }, round: { __typename: 'Round', id: string }, transaction: { __typename: 'Transaction', id: string, timestamp: number, from: string } } | { __typename: 'TranscoderDeactivatedEvent', deactivationRound: string, delegate: { __typename: 'Transcoder', id: string }, round: { __typename: 'Round', id: string }, transaction: { __typename: 'Transaction', id: string, timestamp: number, from: string } } | { __typename: 'TranscoderEvictedEvent', delegate: { __typename: 'Transcoder', id: string }, round: { __typename: 'Round', id: string }, transaction: { __typename: 'Transaction', id: string, timestamp: number, from: string } } | { __typename: 'TranscoderResignedEvent', delegate: { __typename: 'Transcoder', id: string }, round: { __typename: 'Round', id: string }, transaction: { __typename: 'Transaction', id: string, timestamp: number, from: string } } | { __typename: 'TranscoderSlashedEvent', round: { __typename: 'Round', id: string }, transaction: { __typename: 'Transaction', id: string, timestamp: number, from: string } } | { __typename: 'TranscoderUpdateEvent', rewardCut: string, feeShare: string, delegate: { __typename: 'Transcoder', id: string }, round: { __typename: 'Round', id: string }, transaction: { __typename: 'Transaction', id: string, timestamp: number, from: string } } | { __typename: 'TransferBondEvent', amount: string, newDelegator: { __typename: 'Delegator', id: string }, oldDelegator: { __typename: 'Delegator', id: string }, round: { __typename: 'Round', id: string }, transaction: { __typename: 'Transaction', id: string, timestamp: number, from: string } } | { __typename: 'TreasuryVoteEvent', support: TreasuryVoteSupport, proposal: { __typename: 'TreasuryProposal', id: string, description: string }, round: { __typename: 'Round', id: string }, transaction: { __typename: 'Transaction', id: string, timestamp: number, from: string } } | { __typename: 'UnbondEvent', amount: string, delegate: { __typename: 'Transcoder', id: string }, delegator: { __typename: 'Delegator', id: string }, round: { __typename: 'Round', id: string }, transaction: { __typename: 'Transaction', id: string, timestamp: number, from: string } } | { __typename: 'UnpauseEvent', round: { __typename: 'Round', id: string }, transaction: { __typename: 'Transaction', id: string, timestamp: number, from: string } } | { __typename: 'VoteEvent', voter: string, choiceID: string, poll: { __typename: 'Poll', id: string }, round: { __typename: 'Round', id: string }, transaction: { __typename: 'Transaction', id: string, timestamp: number, from: string } } | { __typename: 'WinningTicketRedeemedEvent', faceValue: string, recipient: { __typename: 'Transcoder', id: string }, round: { __typename: 'Round', id: string }, transaction: { __typename: 'Transaction', id: string, timestamp: number, from: string } } | { __typename: 'WithdrawFeesEvent', amount: string, delegator: { __typename: 'Delegator', id: string }, round: { __typename: 'Round', id: string }, transaction: { __typename: 'Transaction', id: string, timestamp: number, from: string } } | { __typename: 'WithdrawStakeEvent', amount: string, delegator: { __typename: 'Delegator', id: string }, round: { __typename: 'Round', id: string }, transaction: { __typename: 'Transaction', id: string, timestamp: number, from: string } } | { __typename: 'WithdrawalEvent', deposit: string, reserve: string, sender: { __typename: 'Broadcaster', id: string }, round: { __typename: 'Round', id: string }, transaction: { __typename: 'Transaction', id: string, timestamp: number, from: string } }> | null }>, transcoders: Array<{ __typename: 'Transcoder', id: string }> }; - -export type GatewaySelfRedeemQueryVariables = Exact<{ - account: Scalars['String']; -}>; - - -export type GatewaySelfRedeemQuery = { __typename: 'Query', winningTicketRedeemedEvents: Array<{ __typename: 'WinningTicketRedeemedEvent', transaction: { __typename: 'Transaction', timestamp: number } }> }; - -export type GatewaysQueryVariables = Exact<{ - first: Scalars['Int']; - skip: Scalars['Int']; - minActiveDay: Scalars['Int']; -}>; - - -export type GatewaysQuery = { __typename: 'Query', gateways: Array<{ __typename: 'Broadcaster', id: string, deposit: string, reserve: string, totalVolumeETH: string, ninetyDayVolumeETH: string, firstActiveDay: number, lastActiveDay: number }> }; - -export type MetaQueryVariables = Exact<{ [key: string]: never; }>; - - -export type MetaQuery = { __typename: 'Query', _meta?: { __typename: '_Meta_', hasIndexingErrors: boolean, block: { __typename: '_Block_', number: number } } | null }; - -export type OrchestratorDelegatorsQueryVariables = Exact<{ - id: Scalars['ID']; - first?: InputMaybe; - skip?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; -}>; - - -export type OrchestratorDelegatorsQuery = { __typename: 'Query', transcoder?: { __typename: 'Transcoder', id: string, delegators?: Array<{ __typename: 'Delegator', id: string, bondedAmount: string, startRound: string }> | null } | null }; - -export type OrchestratorsQueryVariables = Exact<{ - currentRound?: InputMaybe; - currentRoundString?: InputMaybe; - where?: InputMaybe; - first?: InputMaybe; - skip?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; -}>; - - -export type OrchestratorsQuery = { __typename: 'Query', transcoders: Array<{ __typename: 'Transcoder', id: string, totalVolumeETH: string, feeShare: string, feeShareUpdateTimestamp: number, activationTimestamp: number, activationRound: string, deactivationRound: string, rewardCut: string, rewardCutUpdateTimestamp: number, totalStake: string, thirtyDayVolumeETH: string, sixtyDayVolumeETH: string, ninetyDayVolumeETH: string, delegator?: { __typename: 'Delegator', startRound: string, bondedAmount: string, unbondingLocks?: Array<{ __typename: 'UnbondingLock', withdrawRound: string }> | null } | null, delegators?: Array<{ __typename: 'Delegator', id: string }> | null, pools?: Array<{ __typename: 'Pool', rewardTokens?: string | null }> | null }> }; - -export type OrchestratorsSortedQueryVariables = Exact<{ [key: string]: never; }>; - - -export type OrchestratorsSortedQuery = { __typename: 'Query', transcoders: Array<{ __typename: 'Transcoder', id: string, totalStake: string }> }; - -export type PollQueryVariables = Exact<{ - id: Scalars['ID']; -}>; - - -export type PollQuery = { __typename: 'Query', poll?: { __typename: 'Poll', id: string, proposal: string, endBlock: string, quorum: string, quota: string, tally?: { __typename: 'PollTally', yes: string, no: string } | null, votes: Array<{ __typename: 'Vote', id: string, choiceID?: PollChoice | null, voter: string, voteStake: string, nonVoteStake: string }> } | null }; - -export type PollsQueryVariables = Exact<{ [key: string]: never; }>; - - -export type PollsQuery = { __typename: 'Query', polls: Array<{ __typename: 'Poll', id: string, proposal: string, endBlock: string, quorum: string, quota: string, tally?: { __typename: 'PollTally', yes: string, no: string } | null, votes: Array<{ __typename: 'Vote', id: string }> }> }; - -export type ProtocolQueryVariables = Exact<{ [key: string]: never; }>; - - -export type ProtocolQuery = { __typename: 'Query', protocol?: { __typename: 'Protocol', id: string, totalVolumeUSD: string, totalVolumeETH: string, participationRate: string, inflation: string, activeTranscoderCount: string, delegatorsCount: string, lockPeriod: string, totalSupply: string, totalActiveStake: string, inflationChange: string, roundLength: string, lptPriceEth: string, paused: boolean, currentRound: { __typename: 'Round', id: string, mintableTokens: string, volumeETH: string, volumeUSD: string, pools?: Array<{ __typename: 'Pool', rewardTokens?: string | null }> | null } } | null }; - -export type ProtocolByBlockQueryVariables = Exact<{ - block?: InputMaybe; -}>; - - -export type ProtocolByBlockQuery = { __typename: 'Query', protocol?: { __typename: 'Protocol', id: string, totalVolumeUSD: string, totalVolumeETH: string, participationRate: string, inflation: string, activeTranscoderCount: string, delegatorsCount: string, lockPeriod: string, totalActiveStake: string } | null }; - -export type TransactionsQueryVariables = Exact<{ - account: Scalars['String']; - first: Scalars['Int']; - skip: Scalars['Int']; -}>; - - -export type TransactionsQuery = { __typename: 'Query', transactions: Array<{ __typename: 'Transaction', events?: Array<{ __typename: 'BondEvent', additionalAmount: string, delegator: { __typename: 'Delegator', id: string }, newDelegate: { __typename: 'Transcoder', id: string }, oldDelegate?: { __typename: 'Transcoder', id: string } | null, round: { __typename: 'Round', id: string }, transaction: { __typename: 'Transaction', id: string, timestamp: number } } | { __typename: 'BurnEvent', round: { __typename: 'Round', id: string }, transaction: { __typename: 'Transaction', id: string, timestamp: number } } | { __typename: 'DepositFundedEvent', amount: string, sender: { __typename: 'Broadcaster', id: string }, round: { __typename: 'Round', id: string }, transaction: { __typename: 'Transaction', id: string, timestamp: number } } | { __typename: 'EarningsClaimedEvent', round: { __typename: 'Round', id: string }, transaction: { __typename: 'Transaction', id: string, timestamp: number } } | { __typename: 'MigrateDelegatorFinalizedEvent', round: { __typename: 'Round', id: string }, transaction: { __typename: 'Transaction', id: string, timestamp: number } } | { __typename: 'MintEvent', round: { __typename: 'Round', id: string }, transaction: { __typename: 'Transaction', id: string, timestamp: number } } | { __typename: 'NewRoundEvent', round: { __typename: 'Round', id: string }, transaction: { __typename: 'Transaction', id: string, timestamp: number } } | { __typename: 'ParameterUpdateEvent', round: { __typename: 'Round', id: string }, transaction: { __typename: 'Transaction', id: string, timestamp: number } } | { __typename: 'PauseEvent', round: { __typename: 'Round', id: string }, transaction: { __typename: 'Transaction', id: string, timestamp: number } } | { __typename: 'PollCreatedEvent', round: { __typename: 'Round', id: string }, transaction: { __typename: 'Transaction', id: string, timestamp: number } } | { __typename: 'RebondEvent', amount: string, delegate: { __typename: 'Transcoder', id: string }, round: { __typename: 'Round', id: string }, transaction: { __typename: 'Transaction', id: string, timestamp: number } } | { __typename: 'ReserveClaimedEvent', round: { __typename: 'Round', id: string }, transaction: { __typename: 'Transaction', id: string, timestamp: number } } | { __typename: 'ReserveFundedEvent', amount: string, reserveHolder: { __typename: 'Broadcaster', id: string }, round: { __typename: 'Round', id: string }, transaction: { __typename: 'Transaction', id: string, timestamp: number } } | { __typename: 'RewardCallerSetEvent', rewardCaller: string, round: { __typename: 'Round', id: string }, transaction: { __typename: 'Transaction', id: string, timestamp: number } } | { __typename: 'RewardEvent', rewardTokens: string, round: { __typename: 'Round', id: string }, transaction: { __typename: 'Transaction', id: string, timestamp: number } } | { __typename: 'ServiceURIUpdateEvent', round: { __typename: 'Round', id: string }, transaction: { __typename: 'Transaction', id: string, timestamp: number } } | { __typename: 'SetCurrentRewardTokensEvent', round: { __typename: 'Round', id: string }, transaction: { __typename: 'Transaction', id: string, timestamp: number } } | { __typename: 'StakeClaimedEvent', round: { __typename: 'Round', id: string }, transaction: { __typename: 'Transaction', id: string, timestamp: number } } | { __typename: 'TranscoderActivatedEvent', round: { __typename: 'Round', id: string }, transaction: { __typename: 'Transaction', id: string, timestamp: number } } | { __typename: 'TranscoderDeactivatedEvent', round: { __typename: 'Round', id: string }, transaction: { __typename: 'Transaction', id: string, timestamp: number } } | { __typename: 'TranscoderEvictedEvent', round: { __typename: 'Round', id: string }, transaction: { __typename: 'Transaction', id: string, timestamp: number } } | { __typename: 'TranscoderResignedEvent', round: { __typename: 'Round', id: string }, transaction: { __typename: 'Transaction', id: string, timestamp: number } } | { __typename: 'TranscoderSlashedEvent', round: { __typename: 'Round', id: string }, transaction: { __typename: 'Transaction', id: string, timestamp: number } } | { __typename: 'TranscoderUpdateEvent', rewardCut: string, feeShare: string, round: { __typename: 'Round', id: string }, transaction: { __typename: 'Transaction', id: string, timestamp: number } } | { __typename: 'TransferBondEvent', round: { __typename: 'Round', id: string }, transaction: { __typename: 'Transaction', id: string, timestamp: number } } | { __typename: 'TreasuryVoteEvent', id: string, reason?: string | null, support: TreasuryVoteSupport, timestamp: number, weight: string, proposal: { __typename: 'TreasuryProposal', id: string, targets: Array, description: string }, treasuryVoter: { __typename: 'LivepeerAccount', id: string }, round: { __typename: 'Round', id: string }, transaction: { __typename: 'Transaction', id: string, timestamp: number } } | { __typename: 'UnbondEvent', amount: string, delegate: { __typename: 'Transcoder', id: string }, round: { __typename: 'Round', id: string }, transaction: { __typename: 'Transaction', id: string, timestamp: number } } | { __typename: 'UnpauseEvent', round: { __typename: 'Round', id: string }, transaction: { __typename: 'Transaction', id: string, timestamp: number } } | { __typename: 'VoteEvent', voter: string, choiceID: string, id: string, timestamp: number, poll: { __typename: 'Poll', id: string, proposal: string, endBlock: string, quorum: string, quota: string }, transaction: { __typename: 'Transaction', id: string, timestamp: number }, round: { __typename: 'Round', id: string } } | { __typename: 'WinningTicketRedeemedEvent', round: { __typename: 'Round', id: string }, transaction: { __typename: 'Transaction', id: string, timestamp: number } } | { __typename: 'WithdrawFeesEvent', amount: string, round: { __typename: 'Round', id: string }, transaction: { __typename: 'Transaction', id: string, timestamp: number } } | { __typename: 'WithdrawStakeEvent', amount: string, round: { __typename: 'Round', id: string }, transaction: { __typename: 'Transaction', id: string, timestamp: number } } | { __typename: 'WithdrawalEvent', round: { __typename: 'Round', id: string }, transaction: { __typename: 'Transaction', id: string, timestamp: number } }> | null }>, winningTicketRedeemedEvents: Array<{ __typename: 'WinningTicketRedeemedEvent', id: string, faceValue: string, round: { __typename: 'Round', id: string }, transaction: { __typename: 'Transaction', id: string, timestamp: number }, sender: { __typename: 'Broadcaster', id: string }, recipient: { __typename: 'Transcoder', id: string } }>, rewardEvents: Array<{ __typename: 'RewardEvent', id: string, rewardTokens: string, round: { __typename: 'Round', id: string }, transaction: { __typename: 'Transaction', id: string, timestamp: number }, delegate: { __typename: 'Transcoder', id: string } }> }; - -export type TranscoderActivatedEventsQueryVariables = Exact<{ - where?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; -}>; - - -export type TranscoderActivatedEventsQuery = { __typename: 'Query', transcoderActivatedEvents: Array<{ __typename: 'TranscoderActivatedEvent', activationRound: string, id: string }> }; - -export type TranscoderUpdateEventsQueryVariables = Exact<{ - where?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; -}>; - - -export type TranscoderUpdateEventsQuery = { __typename: 'Query', transcoderUpdateEvents: Array<{ __typename: 'TranscoderUpdateEvent', id: string, rewardCut: string, feeShare: string, timestamp: number, round: { __typename: 'Round', id: string }, transaction: { __typename: 'Transaction', id: string } }> }; - -export type TreasuryProposalQueryVariables = Exact<{ - id: Scalars['ID']; -}>; - - -export type TreasuryProposalQuery = { __typename: 'Query', treasuryProposal?: { __typename: 'TreasuryProposal', id: string, description: string, calldatas: Array, targets: Array, values: Array, voteEnd: string, voteStart: string, proposer: { __typename: 'LivepeerAccount', id: string } } | null }; - -export type TreasuryProposalsQueryVariables = Exact<{ - where?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; -}>; - - -export type TreasuryProposalsQuery = { __typename: 'Query', treasuryProposals: Array<{ __typename: 'TreasuryProposal', id: string, description: string, calldatas: Array, targets: Array, values: Array, voteEnd: string, voteStart: string, proposer: { __typename: 'LivepeerAccount', id: string } }> }; - -export type TreasuryVoteEventsQueryVariables = Exact<{ - first?: InputMaybe; - where?: InputMaybe; -}>; - - -export type TreasuryVoteEventsQuery = { __typename: 'Query', treasuryVoteEvents: Array<{ __typename: 'TreasuryVoteEvent', id: string, reason?: string | null, support: TreasuryVoteSupport, timestamp: number, weight: string, proposal: { __typename: 'TreasuryProposal', id: string, targets: Array, description: string }, voter: { __typename: 'LivepeerAccount', id: string }, round: { __typename: 'Round', id: string }, transaction: { __typename: 'Transaction', id: string, timestamp: number } }> }; - -export type TreasuryVotesQueryVariables = Exact<{ - where?: InputMaybe; -}>; - - -export type TreasuryVotesQuery = { __typename: 'Query', treasuryVotes: Array<{ __typename: 'TreasuryVote', id: string, reason?: string | null, support: TreasuryVoteSupport, weight: string, proposal: { __typename: 'TreasuryProposal', id: string, voteStart: string, voteEnd: string }, voter: { __typename: 'LivepeerAccount', id: string, delegate?: { __typename: 'Transcoder', id: string, activationRound: string, deactivationRound: string } | null } }> }; - -export type VoteQueryVariables = Exact<{ - id: Scalars['ID']; -}>; - - -export type VoteQuery = { __typename: 'Query', vote?: { __typename: 'Vote', choiceID?: PollChoice | null, voteStake: string, nonVoteStake: string, poll?: { __typename: 'Poll', id: string, votes: Array<{ __typename: 'Vote', voteStake: string, id: string }> } | null } | null }; - -export type VoteEventsQueryVariables = Exact<{ - first?: InputMaybe; - where?: InputMaybe; -}>; - - -export type VoteEventsQuery = { __typename: 'Query', voteEvents: Array<{ __typename: 'VoteEvent', id: string, choiceID: string, voter: string, timestamp: number, poll: { __typename: 'Poll', id: string, proposal: string }, transaction: { __typename: 'Transaction', id: string, timestamp: number } }> }; - - -export const AccountDocument = gql` - query account($account: ID!) { - delegator(id: $account) { - id - bondedAmount - principal - unbonded - withdrawnFees - startRound - lastClaimRound { - id - } - unbondingLocks { - id - amount - unbondingLockId - withdrawRound - delegate { - id - } - } - delegate { - id - active - status - totalStake - feeShare - rewardCut - ninetyDayVolumeETH - pools(first: 30, skip: 1, orderBy: id, orderDirection: desc) { - rewardTokens - } - } - } - transcoder(id: $account) { - id - active - feeShare - rewardCut - status - active - totalStake - totalVolumeETH - activationTimestamp - activationRound - deactivationRound - thirtyDayVolumeETH - ninetyDayVolumeETH - lastRewardRound { - id - } - pools(first: 30, skip: 1, orderBy: id, orderDirection: desc) { - rewardTokens - } - delegators(first: 1000) { - id - } - } - gateway: broadcaster(id: $account) { - id - deposit - reserve - totalVolumeETH - ninetyDayVolumeETH - firstActiveDay - lastActiveDay - } - protocol(id: "0") { - id - totalSupply - totalActiveStake - participationRate - inflation - inflationChange - lptPriceEth - roundLength - currentRound { - id - } - } -} - `; - -/** - * __useAccountQuery__ - * - * To run a query within a React component, call `useAccountQuery` and pass it any options that fit your needs. - * When your component renders, `useAccountQuery` returns an object from Apollo Client that contains loading, error, and data properties - * you can use to render your UI. - * - * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; - * - * @example - * const { data, loading, error } = useAccountQuery({ - * variables: { - * account: // value for 'account' - * }, - * }); - */ -export function useAccountQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(AccountDocument, options); - } -export function useAccountLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(AccountDocument, options); - } -export type AccountQueryHookResult = ReturnType; -export type AccountLazyQueryHookResult = ReturnType; -export type AccountQueryResult = Apollo.QueryResult; -export const AccountInactiveDocument = gql` - query accountInactive($id: ID!) { - delegator(id: $id) { - id - delegate { - id - active - } - } - protocol(id: "0") { - id - pendingActivation { - id - } - } -} - `; - -/** - * __useAccountInactiveQuery__ - * - * To run a query within a React component, call `useAccountInactiveQuery` and pass it any options that fit your needs. - * When your component renders, `useAccountInactiveQuery` returns an object from Apollo Client that contains loading, error, and data properties - * you can use to render your UI. - * - * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; - * - * @example - * const { data, loading, error } = useAccountInactiveQuery({ - * variables: { - * id: // value for 'id' - * }, - * }); - */ -export function useAccountInactiveQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(AccountInactiveDocument, options); - } -export function useAccountInactiveLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(AccountInactiveDocument, options); - } -export type AccountInactiveQueryHookResult = ReturnType; -export type AccountInactiveLazyQueryHookResult = ReturnType; -export type AccountInactiveQueryResult = Apollo.QueryResult; -export const CurrentRoundDocument = gql` - query currentRound { - _meta { - block { - number - } - } - protocol(id: 0) { - id - currentRound { - id - initialized - startBlock - } - } -} - `; - -/** - * __useCurrentRoundQuery__ - * - * To run a query within a React component, call `useCurrentRoundQuery` and pass it any options that fit your needs. - * When your component renders, `useCurrentRoundQuery` returns an object from Apollo Client that contains loading, error, and data properties - * you can use to render your UI. - * - * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; - * - * @example - * const { data, loading, error } = useCurrentRoundQuery({ - * variables: { - * }, - * }); - */ -export function useCurrentRoundQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(CurrentRoundDocument, options); - } -export function useCurrentRoundLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(CurrentRoundDocument, options); - } -export type CurrentRoundQueryHookResult = ReturnType; -export type CurrentRoundLazyQueryHookResult = ReturnType; -export type CurrentRoundQueryResult = Apollo.QueryResult; -export const DaysDocument = gql` - query days($first: Int, $orderBy: Day_orderBy, $orderDirection: OrderDirection) { - days(first: $first, orderBy: $orderBy, orderDirection: $orderDirection) { - date - volumeUSD - volumeETH - participationRate - inflation - activeTranscoderCount - delegatorsCount - } -} - `; - -/** - * __useDaysQuery__ - * - * To run a query within a React component, call `useDaysQuery` and pass it any options that fit your needs. - * When your component renders, `useDaysQuery` returns an object from Apollo Client that contains loading, error, and data properties - * you can use to render your UI. - * - * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; - * - * @example - * const { data, loading, error } = useDaysQuery({ - * variables: { - * first: // value for 'first' - * orderBy: // value for 'orderBy' - * orderDirection: // value for 'orderDirection' - * }, - * }); - */ -export function useDaysQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(DaysDocument, options); - } -export function useDaysLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(DaysDocument, options); - } -export type DaysQueryHookResult = ReturnType; -export type DaysLazyQueryHookResult = ReturnType; -export type DaysQueryResult = Apollo.QueryResult; -export const EventsDocument = gql` - query events($first: Int) { - transactions(first: $first, orderBy: timestamp, orderDirection: desc) { - events { - __typename - round { - id - } - transaction { - id - timestamp - from - } - ... on BondEvent { - delegator { - id - } - newDelegate { - id - } - oldDelegate { - id - } - additionalAmount - } - ... on UnbondEvent { - delegate { - id - } - delegator { - id - } - amount - } - ... on RebondEvent { - delegate { - id - } - delegator { - id - } - amount - } - ... on TranscoderUpdateEvent { - delegate { - id - } - rewardCut - feeShare - } - ... on RewardEvent { - delegate { - id - } - rewardTokens - } - ... on RewardCallerSetEvent { - delegate { - id - } - rewardCaller - } - ... on WithdrawStakeEvent { - delegator { - id - } - amount - } - ... on WithdrawFeesEvent { - delegator { - id - } - amount - } - ... on WinningTicketRedeemedEvent { - recipient { - id - } - faceValue - } - ... on DepositFundedEvent { - sender { - id - } - amount - } - ... on ReserveFundedEvent { - reserveHolder { - id - } - amount - } - ... on TransferBondEvent { - amount - newDelegator { - id - } - oldDelegator { - id - } - } - ... on TranscoderActivatedEvent { - activationRound - delegate { - id - } - } - ... on TranscoderDeactivatedEvent { - deactivationRound - delegate { - id - } - } - ... on TranscoderResignedEvent { - delegate { - id - } - } - ... on TranscoderEvictedEvent { - delegate { - id - } - } - ... on NewRoundEvent { - transaction { - from - } - } - ... on ReserveClaimedEvent { - claimant { - id - } - reserveHolder { - id - } - amount - } - ... on WithdrawalEvent { - sender { - id - } - deposit - reserve - } - ... on SetCurrentRewardTokensEvent { - currentInflation - currentMintableTokens - } - ... on ParameterUpdateEvent { - param - } - ... on VoteEvent { - voter - choiceID - poll { - id - } - } - ... on PollCreatedEvent { - poll { - id - } - endBlock - } - ... on ServiceURIUpdateEvent { - addr - serviceURI - } - ... on MigrateDelegatorFinalizedEvent { - l1Addr - l2Addr - stake - delegatedStake - fees - } - ... on StakeClaimedEvent { - stake - fees - } - ... on TreasuryVoteEvent { - support - proposal { - id - description - } - } - } - } - transcoders(where: {active: true}) { - id - } -} - `; - -/** - * __useEventsQuery__ - * - * To run a query within a React component, call `useEventsQuery` and pass it any options that fit your needs. - * When your component renders, `useEventsQuery` returns an object from Apollo Client that contains loading, error, and data properties - * you can use to render your UI. - * - * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; - * - * @example - * const { data, loading, error } = useEventsQuery({ - * variables: { - * first: // value for 'first' - * }, - * }); - */ -export function useEventsQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(EventsDocument, options); - } -export function useEventsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(EventsDocument, options); - } -export type EventsQueryHookResult = ReturnType; -export type EventsLazyQueryHookResult = ReturnType; -export type EventsQueryResult = Apollo.QueryResult; -export const GatewaySelfRedeemDocument = gql` - query gatewaySelfRedeem($account: String!) { - winningTicketRedeemedEvents( - first: 1 - orderBy: timestamp - orderDirection: desc - where: {sender: $account, recipient: $account} - ) { - transaction { - timestamp - } - } -} - `; - -/** - * __useGatewaySelfRedeemQuery__ - * - * To run a query within a React component, call `useGatewaySelfRedeemQuery` and pass it any options that fit your needs. - * When your component renders, `useGatewaySelfRedeemQuery` returns an object from Apollo Client that contains loading, error, and data properties - * you can use to render your UI. - * - * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; - * - * @example - * const { data, loading, error } = useGatewaySelfRedeemQuery({ - * variables: { - * account: // value for 'account' - * }, - * }); - */ -export function useGatewaySelfRedeemQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GatewaySelfRedeemDocument, options); - } -export function useGatewaySelfRedeemLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GatewaySelfRedeemDocument, options); - } -export type GatewaySelfRedeemQueryHookResult = ReturnType; -export type GatewaySelfRedeemLazyQueryHookResult = ReturnType; -export type GatewaySelfRedeemQueryResult = Apollo.QueryResult; -export const GatewaysDocument = gql` - query gateways($first: Int!, $skip: Int!, $minActiveDay: Int!) { - gateways: broadcasters( - first: $first - skip: $skip - orderBy: ninetyDayVolumeETH - orderDirection: desc - where: {or: [{ninetyDayVolumeETH_gt: "0"}, {firstActiveDay_gte: $minActiveDay}]} - ) { - id - deposit - reserve - totalVolumeETH - ninetyDayVolumeETH - firstActiveDay - lastActiveDay - } -} - `; - -/** - * __useGatewaysQuery__ - * - * To run a query within a React component, call `useGatewaysQuery` and pass it any options that fit your needs. - * When your component renders, `useGatewaysQuery` returns an object from Apollo Client that contains loading, error, and data properties - * you can use to render your UI. - * - * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; - * - * @example - * const { data, loading, error } = useGatewaysQuery({ - * variables: { - * first: // value for 'first' - * skip: // value for 'skip' - * minActiveDay: // value for 'minActiveDay' - * }, - * }); - */ -export function useGatewaysQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GatewaysDocument, options); - } -export function useGatewaysLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GatewaysDocument, options); - } -export type GatewaysQueryHookResult = ReturnType; -export type GatewaysLazyQueryHookResult = ReturnType; -export type GatewaysQueryResult = Apollo.QueryResult; -export const MetaDocument = gql` - query meta { - _meta { - block { - number - } - hasIndexingErrors - } -} - `; - -/** - * __useMetaQuery__ - * - * To run a query within a React component, call `useMetaQuery` and pass it any options that fit your needs. - * When your component renders, `useMetaQuery` returns an object from Apollo Client that contains loading, error, and data properties - * you can use to render your UI. - * - * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; - * - * @example - * const { data, loading, error } = useMetaQuery({ - * variables: { - * }, - * }); - */ -export function useMetaQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(MetaDocument, options); - } -export function useMetaLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(MetaDocument, options); - } -export type MetaQueryHookResult = ReturnType; -export type MetaLazyQueryHookResult = ReturnType; -export type MetaQueryResult = Apollo.QueryResult; -export const OrchestratorDelegatorsDocument = gql` - query orchestratorDelegators($id: ID!, $first: Int, $skip: Int, $orderBy: Delegator_orderBy, $orderDirection: OrderDirection) { - transcoder(id: $id) { - id - delegators( - first: $first - skip: $skip - orderBy: $orderBy - orderDirection: $orderDirection - ) { - id - bondedAmount - startRound - } - } -} - `; - -/** - * __useOrchestratorDelegatorsQuery__ - * - * To run a query within a React component, call `useOrchestratorDelegatorsQuery` and pass it any options that fit your needs. - * When your component renders, `useOrchestratorDelegatorsQuery` returns an object from Apollo Client that contains loading, error, and data properties - * you can use to render your UI. - * - * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; - * - * @example - * const { data, loading, error } = useOrchestratorDelegatorsQuery({ - * variables: { - * id: // value for 'id' - * first: // value for 'first' - * skip: // value for 'skip' - * orderBy: // value for 'orderBy' - * orderDirection: // value for 'orderDirection' - * }, - * }); - */ -export function useOrchestratorDelegatorsQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(OrchestratorDelegatorsDocument, options); - } -export function useOrchestratorDelegatorsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(OrchestratorDelegatorsDocument, options); - } -export type OrchestratorDelegatorsQueryHookResult = ReturnType; -export type OrchestratorDelegatorsLazyQueryHookResult = ReturnType; -export type OrchestratorDelegatorsQueryResult = Apollo.QueryResult; -export const OrchestratorsDocument = gql` - query orchestrators($currentRound: BigInt, $currentRoundString: String, $where: Transcoder_filter, $first: Int, $skip: Int, $orderBy: Transcoder_orderBy, $orderDirection: OrderDirection) { - transcoders( - where: {activationRound_lte: $currentRound, deactivationRound_gt: $currentRound} - first: $first - skip: $skip - orderBy: thirtyDayVolumeETH - orderDirection: desc - ) { - id - totalVolumeETH - feeShare - feeShareUpdateTimestamp - activationTimestamp - activationRound - deactivationRound - rewardCut - rewardCutUpdateTimestamp - totalStake - delegator { - startRound - bondedAmount - unbondingLocks { - withdrawRound - } - } - delegators(first: 1000) { - id - } - pools( - first: 90 - orderBy: id - orderDirection: desc - where: {round_not: $currentRoundString} - ) { - rewardTokens - } - thirtyDayVolumeETH - sixtyDayVolumeETH - ninetyDayVolumeETH - } -} - `; - -/** - * __useOrchestratorsQuery__ - * - * To run a query within a React component, call `useOrchestratorsQuery` and pass it any options that fit your needs. - * When your component renders, `useOrchestratorsQuery` returns an object from Apollo Client that contains loading, error, and data properties - * you can use to render your UI. - * - * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; - * - * @example - * const { data, loading, error } = useOrchestratorsQuery({ - * variables: { - * currentRound: // value for 'currentRound' - * currentRoundString: // value for 'currentRoundString' - * where: // value for 'where' - * first: // value for 'first' - * skip: // value for 'skip' - * orderBy: // value for 'orderBy' - * orderDirection: // value for 'orderDirection' - * }, - * }); - */ -export function useOrchestratorsQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(OrchestratorsDocument, options); - } -export function useOrchestratorsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(OrchestratorsDocument, options); - } -export type OrchestratorsQueryHookResult = ReturnType; -export type OrchestratorsLazyQueryHookResult = ReturnType; -export type OrchestratorsQueryResult = Apollo.QueryResult; -export const OrchestratorsSortedDocument = gql` - query orchestratorsSorted { - transcoders(orderDirection: desc, orderBy: totalStake, where: {active: true}) { - id - totalStake - } -} - `; - -/** - * __useOrchestratorsSortedQuery__ - * - * To run a query within a React component, call `useOrchestratorsSortedQuery` and pass it any options that fit your needs. - * When your component renders, `useOrchestratorsSortedQuery` returns an object from Apollo Client that contains loading, error, and data properties - * you can use to render your UI. - * - * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; - * - * @example - * const { data, loading, error } = useOrchestratorsSortedQuery({ - * variables: { - * }, - * }); - */ -export function useOrchestratorsSortedQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(OrchestratorsSortedDocument, options); - } -export function useOrchestratorsSortedLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(OrchestratorsSortedDocument, options); - } -export type OrchestratorsSortedQueryHookResult = ReturnType; -export type OrchestratorsSortedLazyQueryHookResult = ReturnType; -export type OrchestratorsSortedQueryResult = Apollo.QueryResult; -export const PollDocument = gql` - query poll($id: ID!) { - poll(id: $id) { - id - proposal - endBlock - quorum - quota - tally { - yes - no - } - votes { - id - choiceID - voter - voteStake - nonVoteStake - } - } -} - `; - -/** - * __usePollQuery__ - * - * To run a query within a React component, call `usePollQuery` and pass it any options that fit your needs. - * When your component renders, `usePollQuery` returns an object from Apollo Client that contains loading, error, and data properties - * you can use to render your UI. - * - * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; - * - * @example - * const { data, loading, error } = usePollQuery({ - * variables: { - * id: // value for 'id' - * }, - * }); - */ -export function usePollQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(PollDocument, options); - } -export function usePollLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(PollDocument, options); - } -export type PollQueryHookResult = ReturnType; -export type PollLazyQueryHookResult = ReturnType; -export type PollQueryResult = Apollo.QueryResult; -export const PollsDocument = gql` - query polls { - polls { - id - proposal - endBlock - quorum - quota - tally { - yes - no - } - votes { - id - } - } -} - `; - -/** - * __usePollsQuery__ - * - * To run a query within a React component, call `usePollsQuery` and pass it any options that fit your needs. - * When your component renders, `usePollsQuery` returns an object from Apollo Client that contains loading, error, and data properties - * you can use to render your UI. - * - * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; - * - * @example - * const { data, loading, error } = usePollsQuery({ - * variables: { - * }, - * }); - */ -export function usePollsQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(PollsDocument, options); - } -export function usePollsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(PollsDocument, options); - } -export type PollsQueryHookResult = ReturnType; -export type PollsLazyQueryHookResult = ReturnType; -export type PollsQueryResult = Apollo.QueryResult; -export const ProtocolDocument = gql` - query protocol { - protocol(id: "0") { - id - totalVolumeUSD - totalVolumeETH - participationRate - inflation - activeTranscoderCount - delegatorsCount - lockPeriod - totalSupply - totalActiveStake - inflationChange - roundLength - lptPriceEth - paused - currentRound { - id - mintableTokens - volumeETH - volumeUSD - pools { - rewardTokens - } - } - } -} - `; - -/** - * __useProtocolQuery__ - * - * To run a query within a React component, call `useProtocolQuery` and pass it any options that fit your needs. - * When your component renders, `useProtocolQuery` returns an object from Apollo Client that contains loading, error, and data properties - * you can use to render your UI. - * - * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; - * - * @example - * const { data, loading, error } = useProtocolQuery({ - * variables: { - * }, - * }); - */ -export function useProtocolQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(ProtocolDocument, options); - } -export function useProtocolLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(ProtocolDocument, options); - } -export type ProtocolQueryHookResult = ReturnType; -export type ProtocolLazyQueryHookResult = ReturnType; -export type ProtocolQueryResult = Apollo.QueryResult; -export const ProtocolByBlockDocument = gql` - query protocolByBlock($block: Block_height) { - protocol(id: 0, block: $block) { - id - totalVolumeUSD - totalVolumeETH - participationRate - inflation - activeTranscoderCount - delegatorsCount - lockPeriod - totalActiveStake - } -} - `; - -/** - * __useProtocolByBlockQuery__ - * - * To run a query within a React component, call `useProtocolByBlockQuery` and pass it any options that fit your needs. - * When your component renders, `useProtocolByBlockQuery` returns an object from Apollo Client that contains loading, error, and data properties - * you can use to render your UI. - * - * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; - * - * @example - * const { data, loading, error } = useProtocolByBlockQuery({ - * variables: { - * block: // value for 'block' - * }, - * }); - */ -export function useProtocolByBlockQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(ProtocolByBlockDocument, options); - } -export function useProtocolByBlockLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(ProtocolByBlockDocument, options); - } -export type ProtocolByBlockQueryHookResult = ReturnType; -export type ProtocolByBlockLazyQueryHookResult = ReturnType; -export type ProtocolByBlockQueryResult = Apollo.QueryResult; -export const TransactionsDocument = gql` - query transactions($account: String!, $first: Int!, $skip: Int!) { - transactions( - orderBy: timestamp - orderDirection: desc - where: {from: $account} - first: $first - skip: $skip - ) { - events { - __typename - round { - id - } - transaction { - id - timestamp - } - ... on BondEvent { - delegator { - id - } - newDelegate { - id - } - oldDelegate { - id - } - additionalAmount - } - ... on UnbondEvent { - delegate { - id - } - amount - } - ... on RebondEvent { - delegate { - id - } - amount - } - ... on TranscoderUpdateEvent { - rewardCut - feeShare - } - ... on RewardEvent { - rewardTokens - } - ... on RewardCallerSetEvent { - rewardCaller - } - ... on WithdrawStakeEvent { - amount - } - ... on WithdrawFeesEvent { - amount - } - ... on DepositFundedEvent { - sender { - id - } - amount - } - ... on ReserveFundedEvent { - reserveHolder { - id - } - amount - } - ... on TreasuryVoteEvent { - id - reason - support - timestamp - proposal { - id - targets - description - } - treasuryVoter: voter { - id - } - weight - round { - id - } - transaction { - id - timestamp - } - } - ... on VoteEvent { - voter - poll { - id - proposal - endBlock - quorum - quota - } - transaction { - id - timestamp - } - choiceID - id - round { - id - } - timestamp - } - } - } - winningTicketRedeemedEvents( - orderBy: timestamp - orderDirection: desc - where: {or: [{recipient: $account}, {sender: $account}]} - first: $first - skip: $skip - ) { - __typename - id - round { - id - } - transaction { - id - timestamp - } - faceValue - sender { - id - } - recipient { - id - } - } - rewardEvents( - orderBy: timestamp - orderDirection: desc - where: {or: [{delegate: $account}, {transaction_: {from: $account}}]} - first: $first - skip: $skip - ) { - __typename - id - round { - id - } - transaction { - id - timestamp - } - rewardTokens - delegate { - id - } - } -} - `; - -/** - * __useTransactionsQuery__ - * - * To run a query within a React component, call `useTransactionsQuery` and pass it any options that fit your needs. - * When your component renders, `useTransactionsQuery` returns an object from Apollo Client that contains loading, error, and data properties - * you can use to render your UI. - * - * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; - * - * @example - * const { data, loading, error } = useTransactionsQuery({ - * variables: { - * account: // value for 'account' - * first: // value for 'first' - * skip: // value for 'skip' - * }, - * }); - */ -export function useTransactionsQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(TransactionsDocument, options); - } -export function useTransactionsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(TransactionsDocument, options); - } -export type TransactionsQueryHookResult = ReturnType; -export type TransactionsLazyQueryHookResult = ReturnType; -export type TransactionsQueryResult = Apollo.QueryResult; -export const TranscoderActivatedEventsDocument = gql` - query transcoderActivatedEvents($where: TranscoderActivatedEvent_filter, $first: Int, $orderBy: TranscoderActivatedEvent_orderBy, $orderDirection: OrderDirection) { - transcoderActivatedEvents( - where: $where - first: $first - orderBy: $orderBy - orderDirection: $orderDirection - ) { - activationRound - id - } -} - `; - -/** - * __useTranscoderActivatedEventsQuery__ - * - * To run a query within a React component, call `useTranscoderActivatedEventsQuery` and pass it any options that fit your needs. - * When your component renders, `useTranscoderActivatedEventsQuery` returns an object from Apollo Client that contains loading, error, and data properties - * you can use to render your UI. - * - * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; - * - * @example - * const { data, loading, error } = useTranscoderActivatedEventsQuery({ - * variables: { - * where: // value for 'where' - * first: // value for 'first' - * orderBy: // value for 'orderBy' - * orderDirection: // value for 'orderDirection' - * }, - * }); - */ -export function useTranscoderActivatedEventsQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(TranscoderActivatedEventsDocument, options); - } -export function useTranscoderActivatedEventsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(TranscoderActivatedEventsDocument, options); - } -export type TranscoderActivatedEventsQueryHookResult = ReturnType; -export type TranscoderActivatedEventsLazyQueryHookResult = ReturnType; -export type TranscoderActivatedEventsQueryResult = Apollo.QueryResult; -export const TranscoderUpdateEventsDocument = gql` - query transcoderUpdateEvents($where: TranscoderUpdateEvent_filter, $first: Int, $orderBy: TranscoderUpdateEvent_orderBy, $orderDirection: OrderDirection) { - transcoderUpdateEvents( - where: $where - first: $first - orderBy: $orderBy - orderDirection: $orderDirection - ) { - id - rewardCut - feeShare - timestamp - round { - id - } - transaction { - id - } - } -} - `; - -/** - * __useTranscoderUpdateEventsQuery__ - * - * To run a query within a React component, call `useTranscoderUpdateEventsQuery` and pass it any options that fit your needs. - * When your component renders, `useTranscoderUpdateEventsQuery` returns an object from Apollo Client that contains loading, error, and data properties - * you can use to render your UI. - * - * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; - * - * @example - * const { data, loading, error } = useTranscoderUpdateEventsQuery({ - * variables: { - * where: // value for 'where' - * first: // value for 'first' - * orderBy: // value for 'orderBy' - * orderDirection: // value for 'orderDirection' - * }, - * }); - */ -export function useTranscoderUpdateEventsQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(TranscoderUpdateEventsDocument, options); - } -export function useTranscoderUpdateEventsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(TranscoderUpdateEventsDocument, options); - } -export type TranscoderUpdateEventsQueryHookResult = ReturnType; -export type TranscoderUpdateEventsLazyQueryHookResult = ReturnType; -export type TranscoderUpdateEventsQueryResult = Apollo.QueryResult; -export const TreasuryProposalDocument = gql` - query treasuryProposal($id: ID!) { - treasuryProposal(id: $id) { - id - description - calldatas - targets - values - voteEnd - voteStart - proposer { - id - } - } -} - `; - -/** - * __useTreasuryProposalQuery__ - * - * To run a query within a React component, call `useTreasuryProposalQuery` and pass it any options that fit your needs. - * When your component renders, `useTreasuryProposalQuery` returns an object from Apollo Client that contains loading, error, and data properties - * you can use to render your UI. - * - * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; - * - * @example - * const { data, loading, error } = useTreasuryProposalQuery({ - * variables: { - * id: // value for 'id' - * }, - * }); - */ -export function useTreasuryProposalQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(TreasuryProposalDocument, options); - } -export function useTreasuryProposalLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(TreasuryProposalDocument, options); - } -export type TreasuryProposalQueryHookResult = ReturnType; -export type TreasuryProposalLazyQueryHookResult = ReturnType; -export type TreasuryProposalQueryResult = Apollo.QueryResult; -export const TreasuryProposalsDocument = gql` - query treasuryProposals($where: TreasuryProposal_filter, $orderBy: TreasuryProposal_orderBy = voteStart, $orderDirection: OrderDirection = desc) { - treasuryProposals( - where: $where - orderBy: $orderBy - orderDirection: $orderDirection - ) { - id - description - calldatas - targets - values - voteEnd - voteStart - proposer { - id - } - } -} - `; - -/** - * __useTreasuryProposalsQuery__ - * - * To run a query within a React component, call `useTreasuryProposalsQuery` and pass it any options that fit your needs. - * When your component renders, `useTreasuryProposalsQuery` returns an object from Apollo Client that contains loading, error, and data properties - * you can use to render your UI. - * - * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; - * - * @example - * const { data, loading, error } = useTreasuryProposalsQuery({ - * variables: { - * where: // value for 'where' - * orderBy: // value for 'orderBy' - * orderDirection: // value for 'orderDirection' - * }, - * }); - */ -export function useTreasuryProposalsQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(TreasuryProposalsDocument, options); - } -export function useTreasuryProposalsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(TreasuryProposalsDocument, options); - } -export type TreasuryProposalsQueryHookResult = ReturnType; -export type TreasuryProposalsLazyQueryHookResult = ReturnType; -export type TreasuryProposalsQueryResult = Apollo.QueryResult; -export const TreasuryVoteEventsDocument = gql` - query treasuryVoteEvents($first: Int, $where: TreasuryVoteEvent_filter) { - treasuryVoteEvents( - orderBy: timestamp - orderDirection: desc - first: $first - where: $where - ) { - id - reason - support - timestamp - proposal { - id - targets - description - } - voter { - id - } - weight - round { - id - } - transaction { - id - timestamp - } - } -} - `; - -/** - * __useTreasuryVoteEventsQuery__ - * - * To run a query within a React component, call `useTreasuryVoteEventsQuery` and pass it any options that fit your needs. - * When your component renders, `useTreasuryVoteEventsQuery` returns an object from Apollo Client that contains loading, error, and data properties - * you can use to render your UI. - * - * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; - * - * @example - * const { data, loading, error } = useTreasuryVoteEventsQuery({ - * variables: { - * first: // value for 'first' - * where: // value for 'where' - * }, - * }); - */ -export function useTreasuryVoteEventsQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(TreasuryVoteEventsDocument, options); - } -export function useTreasuryVoteEventsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(TreasuryVoteEventsDocument, options); - } -export type TreasuryVoteEventsQueryHookResult = ReturnType; -export type TreasuryVoteEventsLazyQueryHookResult = ReturnType; -export type TreasuryVoteEventsQueryResult = Apollo.QueryResult; -export const TreasuryVotesDocument = gql` - query treasuryVotes($where: TreasuryVote_filter) { - treasuryVotes(where: $where) { - id - reason - support - weight - proposal { - id - voteStart - voteEnd - } - voter { - id - delegate { - id - activationRound - deactivationRound - } - } - } -} - `; - -/** - * __useTreasuryVotesQuery__ - * - * To run a query within a React component, call `useTreasuryVotesQuery` and pass it any options that fit your needs. - * When your component renders, `useTreasuryVotesQuery` returns an object from Apollo Client that contains loading, error, and data properties - * you can use to render your UI. - * - * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; - * - * @example - * const { data, loading, error } = useTreasuryVotesQuery({ - * variables: { - * where: // value for 'where' - * }, - * }); - */ -export function useTreasuryVotesQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(TreasuryVotesDocument, options); - } -export function useTreasuryVotesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(TreasuryVotesDocument, options); - } -export type TreasuryVotesQueryHookResult = ReturnType; -export type TreasuryVotesLazyQueryHookResult = ReturnType; -export type TreasuryVotesQueryResult = Apollo.QueryResult; -export const VoteDocument = gql` - query vote($id: ID!) { - vote(id: $id) { - choiceID - voteStake - nonVoteStake - poll { - id - votes { - voteStake - id - } - } - } -} - `; - -/** - * __useVoteQuery__ - * - * To run a query within a React component, call `useVoteQuery` and pass it any options that fit your needs. - * When your component renders, `useVoteQuery` returns an object from Apollo Client that contains loading, error, and data properties - * you can use to render your UI. - * - * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; - * - * @example - * const { data, loading, error } = useVoteQuery({ - * variables: { - * id: // value for 'id' - * }, - * }); - */ -export function useVoteQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(VoteDocument, options); - } -export function useVoteLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(VoteDocument, options); - } -export type VoteQueryHookResult = ReturnType; -export type VoteLazyQueryHookResult = ReturnType; -export type VoteQueryResult = Apollo.QueryResult; -export const VoteEventsDocument = gql` - query voteEvents($first: Int, $where: VoteEvent_filter) { - voteEvents( - orderBy: timestamp - orderDirection: desc - first: $first - where: $where - ) { - id - choiceID - voter - timestamp - poll { - id - proposal - } - transaction { - id - timestamp - } - } -} - `; - -/** - * __useVoteEventsQuery__ - * - * To run a query within a React component, call `useVoteEventsQuery` and pass it any options that fit your needs. - * When your component renders, `useVoteEventsQuery` returns an object from Apollo Client that contains loading, error, and data properties - * you can use to render your UI. - * - * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; - * - * @example - * const { data, loading, error } = useVoteEventsQuery({ - * variables: { - * first: // value for 'first' - * where: // value for 'where' - * }, - * }); - */ -export function useVoteEventsQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(VoteEventsDocument, options); - } -export function useVoteEventsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(VoteEventsDocument, options); - } -export type VoteEventsQueryHookResult = ReturnType; -export type VoteEventsLazyQueryHookResult = ReturnType; -export type VoteEventsQueryResult = Apollo.QueryResult; \ No newline at end of file diff --git a/codegen.yml b/codegen.yml deleted file mode 100644 index 143c8c99..00000000 --- a/codegen.yml +++ /dev/null @@ -1,29 +0,0 @@ -overwrite: true -schema: https://gateway.thegraph.com/api/${NEXT_PUBLIC_SUBGRAPH_API_KEY}/subgraphs/id/${NEXT_PUBLIC_SUBGRAPH_ID} -documents: ./queries/**/*.graphql -generates: - ./apollo/subgraph.ts: - plugins: - - add: - content: | - /** - * @generated - * This file was automatically generated and should not be edited. - * To add new queries, mutations, or subscriptions, create or update files in the queries folder. - */ - - typescript - - typescript-operations - - typescript-react-apollo - config: - withHooks: true - nonOptionalTypename: true - exportFragmentSpreadSubTypes: true - -config: - scalars: - BigInt: string - BigDecimal: string - -hooks: - afterAllFileWrite: - - pnpm prettier --write ./apollo/subgraph.ts diff --git a/components/Account/index.tsx b/components/Account/index.tsx deleted file mode 100644 index 28afdcc5..00000000 --- a/components/Account/index.tsx +++ /dev/null @@ -1,65 +0,0 @@ -import { Box, Flex, Link as A } from "@livepeer/design-system"; -import { formatAddress } from "@utils/web3"; -import { useAccountAddress, useEnsData } from "hooks"; -import Link from "next/link"; -import { useRouter } from "next/router"; -import { useRef } from "react"; - -import AccountIcon from "../../public/img/account.svg"; - -const Account = () => { - const router = useRouter(); - const accountAddress = useAccountAddress(); - const ens = useEnsData(accountAddress); - const { asPath } = router; - const ref = useRef(null); - - return accountAddress ? ( - - - - - - - {ens?.name ? ens.name : formatAddress(accountAddress)} - - - - ) : ( - <> - ); -}; - -export default Account; diff --git a/components/AccountCell/index.tsx b/components/AccountCell/index.tsx deleted file mode 100644 index cd9659aa..00000000 --- a/components/AccountCell/index.tsx +++ /dev/null @@ -1,100 +0,0 @@ -import { textTruncate } from "@lib/utils"; -import { Box, Flex } from "@livepeer/design-system"; -import { formatAddress } from "@utils/web3"; -import { useEnsData } from "hooks"; -import { QRCodeCanvas } from "qrcode.react"; - -const ActiveCircle = ({ css = {}, active }) => { - return ( - - ); -}; - -const Index = ({ active, address }) => { - const identity = useEnsData(address); - return ( - - - {identity?.avatar ? ( - - ) : ( - - )} - - - - - - - {identity?.name - ? textTruncate(identity.name, 12, "…") - : formatAddress(address)} - - - - - ); -}; - -export default Index; diff --git a/components/AnimatedToken/index.tsx b/components/AnimatedToken/index.tsx deleted file mode 100644 index c2d25c0c..00000000 --- a/components/AnimatedToken/index.tsx +++ /dev/null @@ -1,77 +0,0 @@ -import { Box, keyframes } from "@livepeer/design-system"; - -const face = "#4a524e"; -const lowLight = "#111"; -const side = "#252a27"; -const sideDark = "#120e08"; -const coinSize = "7rem"; - -const spin = keyframes({ - "0%": { - width: coinSize, - boxShadow: `0 0 0 ${sideDark}`, - animationTimingFunction: "ease-in", - }, - "49.999%": { - width: "0.1rem", - boxShadow: `0.05rem 0 0 ${side}, 0.1rem 0 0 ${side}, 0.15rem 0 0 ${side},0.2rem 0 0 ${side},0.25rem 0 0 ${side},0.3rem 0 0 ${side},0.35rem 0 0 ${side},0.4rem 0 0 ${side},0.45rem 0 0 ${side},0.5rem 0 0 ${side},0.55rem 0 0 ${side},0.6rem 0 0 ${side},0.65rem 0 0 ${side},0.7rem 0 0 ${side},0.75rem 0 0 ${side}`, - transform: "translateX(-0.375rem)", - backgroundColor: lowLight, - animationTimingFunction: "linear", - }, - - "50.001%": { - width: "0.1rem", - boxShadow: `-0.05rem 0 0 ${side},-0.1rem 0 0 ${side},-0.15rem 0 0 ${side},-0.2rem 0 0 ${side},-0.25rem 0 0 ${side},-0.3rem 0 0 ${side},-0.35rem 0 0 ${side},-0.4rem 0 0 ${side},-0.45rem 0 0 ${side},-0.5rem 0 0 ${side},-0.55rem 0 0 ${side},-0.6rem 0 0 ${side},-0.65rem 0 0 ${side},-0.7rem 0 0 ${side},-0.75rem 0 0 ${side}`, - transform: "translateX(0.375rem)", - backgroundColor: "${side}", - animationTimingFunction: "ease-out", - }, - "100%": { - width: coinSize, - boxShadow: `0 0 0 ${sideDark}`, - }, -}); - -const AnimatedToken = () => { - return ( - - - - - - ); -}; - -export default AnimatedToken; diff --git a/components/AppBar/index.tsx b/components/AppBar/index.tsx deleted file mode 100644 index 4cc20ed1..00000000 --- a/components/AppBar/index.tsx +++ /dev/null @@ -1,100 +0,0 @@ -import { styled } from "@livepeer/design-system"; - -const AppBar = styled("div", { - boxSizing: "border-box", - zIndex: "1", - length: {}, - - variants: { - size: { - 1: { - py: "$1", - }, - 2: { - py: "$2", - }, - 3: { - py: "$3", - }, - }, - sticky: { - true: { - position: "sticky", - width: "100%", - top: 0, - left: 0, - }, - }, - glass: { - true: { - backdropFilter: "blur(12px) saturate(160%)", - }, - }, - border: { - true: { - borderBottom: "1px solid", - }, - }, - color: { - loContrast: { - backgroundColor: "$loContrast", - }, - neutral: { - backgroundColor: "$neutral2", - }, - primary: { - backgroundColor: "$primary9", - }, - }, - }, - compoundVariants: [ - { - glass: "true", - color: "neutral", - css: { - opacity: ".9", - }, - }, - { - glass: "true", - color: "primary", - css: { - opacity: ".9", - }, - }, - { - glass: "true", - color: "loContrast", - css: { - opacity: ".9", - }, - }, - { - border: "true", - color: "neutral", - css: { - borderColor: "$neutral4", - }, - }, - { - border: "true", - color: "primary", - css: { - borderColor: "$primary11", - }, - }, - { - border: "true", - color: "loContrast", - css: { - borderColor: "$neutral4", - }, - }, - ], - defaultVariants: { - size: "1", - color: "loContrast", - }, -}); - -export default AppBar; diff --git a/components/Approve/index.tsx b/components/Approve/index.tsx deleted file mode 100644 index 4ddba7fe..00000000 --- a/components/Approve/index.tsx +++ /dev/null @@ -1,42 +0,0 @@ -import { livepeerToken } from "@lib/api/abis/main/LivepeerToken"; -import { - useBondingManagerAddress, - useLivepeerTokenAddress, -} from "hooks/useContracts"; -import { useHandleTransaction } from "hooks/useHandleTransaction"; -import { useSimulateContract, useWriteContract } from "wagmi"; - -import { MAXIMUM_VALUE_UINT256 } from "../../lib/utils"; -import Button from "../Button"; - -const Index = () => { - const { data: livepeerTokenAddress } = useLivepeerTokenAddress(); - const { data: bondingManagerAddress } = useBondingManagerAddress(); - - const { data: config } = useSimulateContract({ - query: { enabled: Boolean(livepeerTokenAddress && bondingManagerAddress) }, - address: livepeerTokenAddress, - abi: livepeerToken, - functionName: "approve", - args: [bondingManagerAddress ?? "0x", BigInt(MAXIMUM_VALUE_UINT256)], - }); - const { data, isPending, isSuccess, writeContract, error } = - useWriteContract(); - - useHandleTransaction("approve", data, error, isPending, isSuccess, { - type: "approve", - amount: BigInt(MAXIMUM_VALUE_UINT256), - }); - - return ( - - ); -}; - -export default Index; diff --git a/components/Banner/index.tsx b/components/Banner/index.tsx deleted file mode 100644 index ad28d741..00000000 --- a/components/Banner/index.tsx +++ /dev/null @@ -1,31 +0,0 @@ -import { Box } from "@livepeer/design-system"; -import React from "react"; - -interface Props { - open?: boolean; - label: React.ReactNode; - button?: React.ReactNode; - css?: object; -} - -const Index = ({ css = {}, open = true, label, button }: Props) => - !open ? null : ( - - - {label} - {button && button} - - - ); - -export default Index; diff --git a/components/BottomDrawer/index.tsx b/components/BottomDrawer/index.tsx deleted file mode 100644 index d251f2c5..00000000 --- a/components/BottomDrawer/index.tsx +++ /dev/null @@ -1,31 +0,0 @@ -import { Sheet, SheetContent } from "@livepeer/design-system"; -import { useExplorerStore } from "hooks"; -import { useWindowSize } from "react-use"; - -const Index = ({ children }) => { - const { width } = useWindowSize(); - - const { bottomDrawerOpen, setBottomDrawerOpen } = useExplorerStore(); - - return ( - { - if (!open) setBottomDrawerOpen(false); - }} - > - - {children} - - - ); -}; - -export default Index; diff --git a/components/BroadcastingView/index.tsx b/components/BroadcastingView/index.tsx deleted file mode 100644 index f2387f35..00000000 --- a/components/BroadcastingView/index.tsx +++ /dev/null @@ -1,120 +0,0 @@ -import { ExplorerTooltip } from "@components/ExplorerTooltip"; -import Stat from "@components/Stat"; -import dayjs from "@lib/dayjs"; -import { formatEth } from "@lib/utils"; -import { Box, Grid } from "@livepeer/design-system"; -import { ExclamationTriangleIcon } from "@radix-ui/react-icons"; -import { GatewaysQuery } from "apollo"; -import { useMemo } from "react"; - -const SelfRedeemIndicator = () => ( - Self-redeemed winning tickets detected in the last 90 days. - } - > - - - - -); - -const BroadcastingView = ({ - gateway, - isSelfRedeeming = false, -}: { - gateway?: GatewaysQuery["gateways"] extends Array ? G | null : null; - isSelfRedeeming?: boolean; -}) => { - const activeSince = useMemo( - () => - gateway?.firstActiveDay - ? dayjs.unix(gateway.firstActiveDay).format("MMM D, YYYY") - : "N/A", - [gateway] - ); - const statusText = useMemo(() => { - const active = Number(gateway?.ninetyDayVolumeETH ?? 0) > 0; - return active ? "Active" : "Inactive"; - }, [gateway]); - const statItems = useMemo( - () => [ - { - id: "total-fees-distributed", - label: "Total fees distributed", - value: ( - - {formatEth(gateway?.totalVolumeETH)} - {isSelfRedeeming && } - - ), - tooltip: "Lifetime fees this gateway has distributed on-chain.", - }, - { - id: "status", - label: "Status", - value: statusText, - tooltip: "Active if this gateway distributed fees in the last 90 days.", - }, - { - id: "ninety-day-fees", - label: "90d fees distributed", - value: formatEth(gateway?.ninetyDayVolumeETH), - tooltip: - "Total fees distributed to orchestrators over the last 90 days.", - }, - { - id: "activation-date", - label: "Activation date", - value: activeSince, - tooltip: "First day this gateway funded deposit/reserve on-chain.", - }, - { - id: "deposit-balance", - label: "Deposit balance", - value: formatEth(gateway?.deposit), - tooltip: "Current deposit balance funded for gateway job payouts.", - }, - { - id: "reserve-balance", - label: "Reserve balance", - value: formatEth(gateway?.reserve), - tooltip: "Reserve funds available for winning ticket payouts.", - }, - ], - [gateway, activeSince, statusText, isSelfRedeeming] - ); - - return ( - - - {statItems.map((stat) => ( - - ))} - - - ); -}; - -export default BroadcastingView; diff --git a/components/Button/index.tsx b/components/Button/index.tsx deleted file mode 100644 index a48951f8..00000000 --- a/components/Button/index.tsx +++ /dev/null @@ -1,106 +0,0 @@ -import { styled } from "@livepeer/design-system"; - -export const Button = styled("button", { - length: {}, - // Reset - boxSizing: "border-box", - border: 0, - appearance: "none", - display: "inline-block", - textAlign: "center", - textDecoration: "none", - fontSize: "14px", - fontWeight: 600, - textTransform: "uppercase", - m: 0, - px: "$3", - py: 12, - borderRadius: "$6", - position: "relative", - cursor: "pointer", - "&:disabled": { - bg: "$gray500", - color: "$white", - cursor: "not-allowed", - opacity: 0.2, - "&:hover": { - bg: "$gray500", - }, - }, - variants: { - color: { - primary: { - color: "$primary", - bg: "rgba(0,235,136,.1)", - transition: "background-color .3s", - "&:hover": { - bg: "rgba(0,235,136,.05)", - transition: "background-color .3s", - }, - "&:focus": { - bg: "rgba(0,235,136,.05)", - boxShadow: - "0 0 0 1px rgba(0,235,136,.05), inset 0 0 0 1px rgba(0,235,136,.05)", - }, - }, - secondary: { - color: "$hiContrast", - bg: "$gray100", - transition: "background-color .3s", - "@hover": { - "&:hover": { - bg: "$gray200", - transition: "background-color .3s", - }, - }, - "&:focus": { - backgroundColor: "$gray200", - boxShadow: - "0 0 0 1px $colors$gray200, inset 0 0 0 1px $colors$gray200", - }, - }, - danger: { - bg: "rgb(255, 0, 34, .1)", - color: "$red500", - "@hover": { - "&:hover": { - bg: "rgb(255, 0, 34, .05)", - transition: "background-color .3s", - }, - }, - "&:focus": { - bg: "rgb(255, 0, 34, .05)", - boxShadow: - "0 0 0 1px rgb(255, 0, 34, .05), inset 0 0 0 1px rgb(255, 0, 34, .05)", - }, - }, - }, - outline: { - true: { - color: "$primary", - bg: "transparent", - border: "1px solid", - borderColor: "$primary", - }, - }, - fullWidth: { - true: { - width: "100%", - }, - }, - size: { - small: { - py: "$2", - px: "$3", - fontSize: "$1", - }, - large: { - py: "$3", - px: "$3", - fontSize: "$2", - }, - }, - }, -}); - -export default Button; diff --git a/components/CircularProgressBar/index.tsx b/components/CircularProgressBar/index.tsx deleted file mode 100644 index 80fd43cb..00000000 --- a/components/CircularProgressBar/index.tsx +++ /dev/null @@ -1,39 +0,0 @@ -import { Box, Flex } from "@livepeer/design-system"; -import { CircularProgressbar } from "react-circular-progressbar"; - -const Index = (props) => { - const { children, ...otherProps } = props; - - return ( - - - - - - {children} - - - ); -}; - -export default Index; diff --git a/components/Claim/index.tsx b/components/Claim/index.tsx deleted file mode 100644 index b25e0576..00000000 --- a/components/Claim/index.tsx +++ /dev/null @@ -1,264 +0,0 @@ -import { LAYOUT_MAX_WIDTH } from "@layouts/constants"; -import { l2Migrator } from "@lib/api/abis/bridge/L2Migrator"; -import { getL2MigratorAddress } from "@lib/api/contracts"; -import { Box, Button, Container, Flex, Text } from "@livepeer/design-system"; -import { ArrowTopRightIcon } from "@radix-ui/react-icons"; -import { formatAddress } from "@utils/web3"; -import { constants, ethers } from "ethers"; -import { useAccountAddress, useL1DelegatorData } from "hooks"; -import { useHandleTransaction } from "hooks/useHandleTransaction"; -import { CHAIN_INFO, DEFAULT_CHAIN_ID } from "lib/chains"; -import { useEffect, useState } from "react"; -import { Hex } from "viem"; -import { useReadContract, useSimulateContract, useWriteContract } from "wagmi"; - -const l2MigratorAddress = getL2MigratorAddress(); - -const Claim = () => { - const accountAddress = useAccountAddress(); - - const l1Delegator = useL1DelegatorData(accountAddress); - - const [proof, setProof] = useState(null); - const [migrationParams, setMigrationParams] = useState<{ - delegate: Hex; - stake: bigint; - fees: bigint; - }>({ - delegate: constants.AddressZero as Hex, - stake: 0n, - fees: 0n, - }); - const [isDelegator, setIsDelegator] = useState(false); - const [loading, setLoading] = useState(true); - - const { data: config } = useSimulateContract({ - query: { enabled: Boolean(migrationParams && l2MigratorAddress) }, - address: l2MigratorAddress, - abi: l2Migrator, - functionName: "claimStake", - args: [ - migrationParams.delegate, - migrationParams.stake, - migrationParams.fees, - proof ?? [], - constants.AddressZero, - ], - }); - - const { data, isIdle, isPending, writeContract, isSuccess, error } = - useWriteContract(); - - useEffect(() => { - if (proof && isIdle) { - if (!config) return; - writeContract(config.request); - } - }, [config, proof, writeContract, isIdle]); - - const { data: claimStakeEnabled } = useReadContract({ - query: { enabled: Boolean(l2MigratorAddress) }, - address: l2MigratorAddress, - abi: l2Migrator, - functionName: "claimStakeEnabled", - }); - - const { data: isMigrated, refetch } = useReadContract({ - query: { enabled: Boolean(accountAddress) }, - address: l2MigratorAddress, - abi: l2Migrator, - functionName: "migratedDelegators", - args: [accountAddress ?? "0x"], - }); - - useHandleTransaction( - "claimStake", - data, - error, - isPending, - isSuccess, - { - delegate: migrationParams?.delegate, - stake: migrationParams?.stake, - fees: migrationParams?.fees, - newDelegate: constants.AddressZero, - }, - () => { - refetch(); - } - ); - - useEffect(() => { - const init = async () => { - if (accountAddress && l2Migrator && l1Delegator) { - setLoading(true); - - // reset on account change - setIsDelegator(false); - - setMigrationParams({ - delegate: l1Delegator.delegateAddress as Hex, - stake: BigInt(l1Delegator.pendingStake), - fees: BigInt(l1Delegator.pendingFees), - }); - - if ( - l1Delegator.transcoderStatus === "not-registered" && - (l1Delegator.pendingStake !== "0" || - l1Delegator.pendingFees !== "0" || - l1Delegator.unbondingLocks.length > 1) - ) { - setIsDelegator(true); - } - setLoading(false); - } - }; - init(); - }, [accountAddress, l1Delegator]); - - return loading || !isDelegator || isMigrated ? null : ( - - - - - Claim stake & fees on {CHAIN_INFO[DEFAULT_CHAIN_ID].label} - - - - Your delegated stake of - - {ethers.utils.formatEther(migrationParams?.stake)} LPT - - and - - {ethers.utils.formatEther(migrationParams.fees)} ETH - - in earned fees{" "} - {claimStakeEnabled - ? `is available to claim on ${CHAIN_INFO[DEFAULT_CHAIN_ID].label}.` - : `will be available to claim on ${CHAIN_INFO[DEFAULT_CHAIN_ID].label} upon deployment of the delegator - state snapshot.`} - - - - - Delegating with - - - {formatAddress(migrationParams.delegate)} - - - - {claimStakeEnabled && ( - - )} - - - - - ); -}; - -export default Claim; diff --git a/components/CliVotingInstructionsDialog/index.tsx b/components/CliVotingInstructionsDialog/index.tsx deleted file mode 100644 index 1ca1847d..00000000 --- a/components/CliVotingInstructionsDialog/index.tsx +++ /dev/null @@ -1,173 +0,0 @@ -import { - Box, - Dialog, - DialogContent, - DialogTitle, - Flex, - Heading, -} from "@livepeer/design-system"; -import copy from "copy-to-clipboard"; -import { useEffect, useState } from "react"; - -import Check from "../../public/img/check.svg"; -import Copy from "../../public/img/copy.svg"; - -type Props = { - voteId: string; - idLabel: string; - cliOptionName: string; - voteInstructions: string; -}; - -const CliVotingInstructionsDialog = ({ - voteId, - idLabel, - cliOptionName, - voteInstructions, -}: Props) => { - const [copied, setCopied] = useState(false); - const [modalOpen, setModalOpen] = useState(false); - - useEffect(() => { - if (copied) { - const timer = setTimeout(() => { - setCopied(false); - }, 5000); - return () => clearTimeout(timer); - } - }, [copied]); - - const handleCopy = () => { - if (copy(voteId)) { - setCopied(true); - } - }; - - return ( - <> - - - Are you an orchestrator?{" "} - setModalOpen(true)} - css={{ - color: "$primary11", - cursor: "pointer", - background: "none", - border: "none", - padding: 0, - font: "inherit", - textDecoration: "underline", - }} - > - Follow these instructions - {" "} - if you prefer to vote with the Livepeer CLI. - - - - - - - Livepeer CLI Voting Instructions - - - - - - - Run the Livepeer CLI and select the option to " - {cliOptionName}". When prompted, copy and paste this{" "} - {idLabel}: - - - {voteId} - - {copied ? ( - - ) : ( - - )} - - - - - - The Livepeer CLI will prompt you for your vote.{" "} - {voteInstructions} - - - - - Once your vote is confirmed, check back here to see it reflected - in the UI. - - - - - - - ); -}; - -export default CliVotingInstructionsDialog; diff --git a/components/CodeBlock/index.tsx b/components/CodeBlock/index.tsx deleted file mode 100644 index 5bb72375..00000000 --- a/components/CodeBlock/index.tsx +++ /dev/null @@ -1,102 +0,0 @@ -import { Pre } from "@components/Pre"; -import { Box, IconButton } from "@livepeer/design-system"; -import { CheckIcon, ClipboardIcon } from "@radix-ui/react-icons"; -import copy from "copy-to-clipboard"; -import { useEffect, useRef, useState } from "react"; - -export function CodeBlock({ - className = "code-block", - children, - id, - showLineNumbers = false, - isHighlightingLines = true, - css = {}, -}) { - const [hasCopied, setHasCopied] = useState(false); - const [code, setCode] = useState(undefined); - const preRef = useRef(null); - - useEffect(() => { - if (preRef.current) { - const codeElement = preRef.current?.querySelector("code"); - // remove double line breaks - const code = codeElement?.innerText.replace(/\n{3,}/g, "\n"); - if (code) { - setCode(code); - } - } - }, [preRef]); - - useEffect(() => { - if (!hasCopied) return; - const timer = setTimeout(() => setHasCopied(false), 1500); - return () => clearTimeout(timer); - }, [hasCopied]); - - const handleCopy = () => { - if (!code) return; - - if (copy(code)) { - setHasCopied(true); - } - }; - - return ( - - pre": { - backgroundColor: "transparent", - overflow: "visible", - paddingTop: 0, - paddingBottom: 0, - float: "left", - minWidth: "100%", - $$outline: "none", - borderRadius: 0, - }, - }} - > -
-          {children}
-        
-
- - {hasCopied ? : } - -
- ); -} diff --git a/components/ConnectButton/index.tsx b/components/ConnectButton/index.tsx deleted file mode 100644 index 60a18b9c..00000000 --- a/components/ConnectButton/index.tsx +++ /dev/null @@ -1,52 +0,0 @@ -import { - ConnectButton as ConnectButtonRainbowKit, - useChainModal, -} from "@rainbow-me/rainbowkit"; -import { useIsWrongRouteChain } from "hooks"; -import type { ComponentProps } from "react"; -import { useWindowSize } from "react-use"; - -type ConnectButtonProps = ComponentProps; - -const ConnectButton = (props: ConnectButtonProps) => { - const { width } = useWindowSize(); - const isWrongRouteChain = useIsWrongRouteChain(); - const { openChainModal } = useChainModal(); - - if (isWrongRouteChain) { - return ( - - ); - } - - return ( - - ); -}; - -export default ConnectButton; diff --git a/components/DelegatingView/index.tsx b/components/DelegatingView/index.tsx deleted file mode 100644 index b5d03d01..00000000 --- a/components/DelegatingView/index.tsx +++ /dev/null @@ -1,483 +0,0 @@ -import { ExplorerTooltip } from "@components/ExplorerTooltip"; -import Stat from "@components/Stat"; -import { bondingManager } from "@lib/api/abis/main/BondingManager"; -import { Box, Button, Flex, Link as A, Text } from "@livepeer/design-system"; -import { QuestionMarkCircledIcon } from "@radix-ui/react-icons"; -import { formatETH, formatLPT, formatPercent } from "@utils/numberFormatters"; -import { checkAddressEquality, formatAddress } from "@utils/web3"; -import { AccountQueryResult, OrchestratorsSortedQueryResult } from "apollo"; -import { - useAccountAddress, - useEnsData, - useIsSafe, - usePendingFeesAndStakeData, -} from "hooks"; -import { useBondingManagerAddress } from "hooks/useContracts"; -import { useHandleTransaction } from "hooks/useHandleTransaction"; -import Link from "next/link"; -import { useRouter } from "next/router"; -import { useMemo } from "react"; -import Masonry from "react-masonry-css"; -import { Address } from "viem"; -import { useSimulateContract, useWriteContract } from "wagmi"; - -import StakeTransactions from "../StakeTransactions"; - -const breakpointColumnsObj = { - default: 2, - 1100: 2, - 700: 2, - 500: 1, -}; - -interface Props { - transcoders?: NonNullable< - OrchestratorsSortedQueryResult["data"] - >["transcoders"]; - delegator?: NonNullable["delegator"]; - protocol?: NonNullable["protocol"]; - currentRound?: NonNullable< - NonNullable["protocol"] - >["currentRound"]; -} - -const Index = ({ delegator, transcoders, protocol, currentRound }: Props) => { - const router = useRouter(); - const query = router.query; - const accountAddress = useAccountAddress(); - - const delegateIdentity = useEnsData(delegator?.delegate?.id); - - const pendingFeesAndStake = usePendingFeesAndStakeData(delegator?.id); - - const recipient = delegator?.id as Address | undefined; - const amount = pendingFeesAndStake?.pendingFees ?? "0"; - - const { data: bondingManagerAddress } = useBondingManagerAddress(); - - const { data: config } = useSimulateContract({ - query: { enabled: Boolean(bondingManagerAddress && recipient) }, - address: bondingManagerAddress, - abi: bondingManager, - functionName: "withdrawFees", - args: [recipient ?? "0x", BigInt(amount)], - }); - const { data, isPending, writeContract, isSuccess, error } = - useWriteContract(); - // Simulation reverts for Safes (2300-gas transfer into a cold proxy) but - // execTransaction succeeds; Safe runs its own simulation, so skip the gate. - const isSafe = useIsSafe(); - const canWithdraw = Boolean( - config || (isSafe && bondingManagerAddress && recipient) - ); - const withdrawFees = () => { - if (config) return writeContract(config.request); - if (bondingManagerAddress && recipient) { - writeContract({ - address: bondingManagerAddress, - abi: bondingManager, - functionName: "withdrawFees", - args: [recipient, BigInt(amount)], - }); - } - }; - - useHandleTransaction("withdrawFees", data, error, isPending, isSuccess, { - recipient, - amount: BigInt(amount), - }); - - const isMyAccount = checkAddressEquality( - accountAddress ?? "", - query?.account?.toString() ?? "" - ); - - const pendingStake = useMemo( - () => Number(pendingFeesAndStake?.pendingStake || 0) / 10 ** 18, - [pendingFeesAndStake?.pendingStake] - ); - const pendingFees = useMemo( - () => Number(pendingFeesAndStake?.pendingFees || 0) / 10 ** 18, - [pendingFeesAndStake?.pendingFees] - ); - const unbonded = useMemo( - () => Math.abs(+(delegator?.unbonded ?? 0) || 0), - [delegator] - ); - - const rewards = useMemo( - () => pendingStake + unbonded - Math.abs(+(delegator?.principal ?? 0)), - [unbonded, pendingStake, delegator] - ); - const totalActiveStake = useMemo( - () => Math.abs(+(protocol?.totalActiveStake ?? 0)), - [protocol] - ); - const lifetimeEarnings = useMemo( - () => Math.abs(pendingFees) + Math.abs(+(delegator?.withdrawnFees ?? 0)), - [delegator, pendingFees] - ); - const withdrawButtonDisabled = useMemo( - () => pendingFees === 0, - [pendingFees] - ); - - const networkEquity = (() => { - if (!totalActiveStake) { - return 0; - } - - // If self-delegating, include total delegated stake + pending stake - if (delegator?.delegate?.id === delegator?.id) { - const delegateTotalStake = Math.abs( - +(delegator?.delegate?.totalStake ?? 0) - ); - return (delegateTotalStake + pendingStake) / totalActiveStake; - } - - return pendingStake / totalActiveStake; - })(); - - if (!delegator?.bondedAmount) { - if (isMyAccount) { - return ( - - - Delegate LPT with an Orchestrator to begin earning LPT rewards and a - share of the fees being paid into the Livepeer network. - - - - - - ); - } else { - return Nothing here.; - } - } - - return ( - .masonry-grid_item": { - marginBottom: "$3", - }, - }} - > - - {delegator?.delegate && ( - - - {delegateIdentity?.name - ? delegateIdentity?.name - : formatAddress(delegator?.delegate?.id)} - - } - />{" "} - - )} - - - {`${formatLPT(pendingStake, { - precision: pendingStake > 0 && pendingStake < 0.01 ? 4 : 2, - })}`} -
- ) : null - } - meta={ - - - - Lifetime Undelegated - - This is the amount undelegated over the lifetime of this - account. - - } - > - - - - - - - {unbonded > 0 ? ( - - {formatLPT(-unbonded, { forceSign: true, precision: 2 })} - - ) : ( - - 0 LPT - - )} - - - - - Lifetime Rewards - - The account's total rewards earned all-time. -
- } - > - - - - - - - {formatLPT(Math.abs(rewards), { - forceSign: true, - precision: 2, - })} - - - - } - /> - - {formatETH(pendingFees, { precision: 3 })} - - ) : null - } - meta={ - - - - Lifetime earnings - - The total fees earned over the lifetime of this account - (since the migration to Arbitrum One). - - } - > - - - - - - - {formatETH(lifetimeEarnings || 0, { - abbreviate: true, - precision: 3, - })} - - - - - Withdrawn - - The total fees withdrawn over the lifetime of this - account (since the migration to Arbitrum One). - - } - > - - - - - - - {formatETH(delegator?.withdrawnFees, { - abbreviate: true, - precision: 3, - })} - - - {isMyAccount && !withdrawButtonDisabled && delegator?.id && ( - - )} - - } - /> - {delegator?.delegate && ( - - Network Equity - - The account's equity relative to the entire network. - - } - > - - - - - - } - value={{formatPercent(networkEquity, { precision: 3 })}} - meta={ - - - - Account ( - {formatPercent( - totalActiveStake === 0 - ? 0 - : pendingStake / totalActiveStake, - { precision: 2 } - )} - ) - - - {formatLPT(pendingStake, { precision: 2 })} - - - - - Orchestrator ( - {formatPercent( - totalActiveStake === 0 - ? 0 - : Math.abs(+delegator.delegate.totalStake) / - totalActiveStake, - { precision: 2 } - )} - ) - - - {formatLPT(Math.abs(+delegator.delegate.totalStake), { - precision: 2, - abbreviate: true, - })} - - - - } - /> - )} - - - - ); -}; - -export default Index; diff --git a/components/DelegatingWidget/Delegate.tsx b/components/DelegatingWidget/Delegate.tsx deleted file mode 100644 index 536d22ee..00000000 --- a/components/DelegatingWidget/Delegate.tsx +++ /dev/null @@ -1,296 +0,0 @@ -import { bondingManager } from "@lib/api/abis/main/BondingManager"; -import { livepeerToken } from "@lib/api/abis/main/LivepeerToken"; -import dayjs from "@lib/dayjs"; -import { MAXIMUM_VALUE_UINT256 } from "@lib/utils"; -import { Box, Button, Flex, Text } from "@livepeer/design-system"; -import { - ExclamationTriangleIcon, - InfoCircledIcon, -} from "@radix-ui/react-icons"; -import { formatPercent } from "@utils/numberFormatters"; -import { - useBondingManagerAddress, - useLivepeerTokenAddress, -} from "hooks/useContracts"; -import { useHandleTransaction } from "hooks/useHandleTransaction"; -import { useOrchestratorRewardCutSpike } from "hooks/useOrchestratorRewardCutSpike"; -import { useMemo, useState } from "react"; -import { parseEther } from "viem"; -import { useSimulateContract, useWriteContract } from "wagmi"; - -import ProgressSteps from "../ProgressSteps"; - -/** - * Info banner above the Delegate button. Becomes a yellow warning when - * `useOrchestratorRewardCutSpike` returns a qualifying spike. - */ -const CutChangeNotice = ({ orchestratorId }: { orchestratorId?: string }) => { - const spike = useOrchestratorRewardCutSpike(orchestratorId); - - if (spike) { - return ( - - - - This orchestrator's reward cut increased sharply{" "} - {dayjs(spike.endTimestamp).fromNow()} ( - {formatPercent(spike.fromRewardCut, { precision: 0 })} →{" "} - {formatPercent(spike.toRewardCut, { precision: 0 })}). Review history - before delegating. - - - ); - } - - return ( - - - - Please ensure you have checked the reward & fee cut history before - delegating. - - - ); -}; - -const Delegate = ({ - to, - amount, - isTransferStake, - isMyTranscoder, - tokenBalance, - transferAllowance, - reset, - hint: { - oldDelegateNewPosPrev, - oldDelegateNewPosNext, - currDelegateNewPosPrev, - currDelegateNewPosNext, - }, -}) => { - const { data: livepeerTokenAddress } = useLivepeerTokenAddress(); - - const { data: bondingManagerAddress } = useBondingManagerAddress(); - - const { data: config } = useSimulateContract({ - query: { enabled: Boolean(livepeerTokenAddress && bondingManagerAddress) }, - address: livepeerTokenAddress, - abi: livepeerToken, - functionName: "approve", - args: [bondingManagerAddress ?? "0x", BigInt(MAXIMUM_VALUE_UINT256)], - }); - const { - data: approveData, - isPending: approveIsLoading, - writeContract: approveWrite, - error: approveError, - isSuccess: approveIsSuccess, - } = useWriteContract(); - - useHandleTransaction( - "approve", - approveData, - approveError, - approveIsLoading, - approveIsSuccess, - { - type: "bond", - amount: BigInt(MAXIMUM_VALUE_UINT256), - } - ); - - const bondWithHintArgs = { - amount: amount?.toString() ? parseEther(amount) : BigInt(0), - to, - isTransferStake, - oldDelegateNewPosPrev, - oldDelegateNewPosNext, - currDelegateNewPosPrev, - currDelegateNewPosNext, - }; - - const { data: bondWithHintConfig } = useSimulateContract({ - query: { enabled: Boolean(to) }, - address: bondingManagerAddress, - abi: bondingManager, - functionName: "bondWithHint", - args: [ - BigInt(bondWithHintArgs.amount?.toString()), - to, - oldDelegateNewPosPrev, - oldDelegateNewPosNext, - currDelegateNewPosPrev, - currDelegateNewPosNext, - ], - }); - const { - data: bondData, - isPending: bondIsLoading, - writeContract: bondWrite, - isSuccess: bondIsSuccess, - error: bondError, - } = useWriteContract(); - - useHandleTransaction( - "bond", - bondData, - bondError, - bondIsLoading, - bondIsSuccess, - bondWithHintArgs - ); - - const [approvalSubmitted, setApprovalSubmitted] = useState(false); - - const amountIsNonEmpty = useMemo(() => amount, [amount]); - const sufficientBalance = useMemo( - () => - amountIsNonEmpty && - parseFloat(amount) > 0 && - Number(tokenBalance) >= amount, - [amount, amountIsNonEmpty, tokenBalance] - ); - const sufficientTransferAllowance = useMemo( - () => - amountIsNonEmpty && - Number(transferAllowance) > 0 && - Number(transferAllowance) >= amount, - [amount, amountIsNonEmpty, transferAllowance] - ); - - // show approve flow when: no error on inputs, not approved or pending, or approved in current session - const showApproveFlow = useMemo( - () => - (amountIsNonEmpty && +amount >= 0 && !sufficientTransferAllowance) || - (approvalSubmitted && sufficientTransferAllowance), - [amount, amountIsNonEmpty, sufficientTransferAllowance, approvalSubmitted] - ); - - const onApprove = async () => { - try { - if (!config) { - throw new Error("No config for approve"); - } - setApprovalSubmitted(true); - - approveWrite(config.request); - } catch (e) { - console.log(e); - } - }; - - const onDelegate = async () => { - try { - if (!bondWithHintConfig) { - throw new Error("No config for bond with hint"); - } - bondWrite(bondWithHintConfig.request); - } catch (e) { - console.error(e); - } - - setApprovalSubmitted(false); - reset(); - }; - - if (!amountIsNonEmpty && !isTransferStake) { - return ( - - ); - } - - if (amountIsNonEmpty && +amount >= 0 && !sufficientBalance) { - return ( - - ); - } - - const cutChangeNotice = isMyTranscoder ? null : ( - - ); - - if (showApproveFlow) { - return ( - <> - {cutChangeNotice} - - - - - - - - - ); - } - - return ( - <> - {cutChangeNotice} - - - ); -}; - -export default Delegate; diff --git a/components/DelegatingWidget/Footer.tsx b/components/DelegatingWidget/Footer.tsx deleted file mode 100644 index 5de1ed0e..00000000 --- a/components/DelegatingWidget/Footer.tsx +++ /dev/null @@ -1,258 +0,0 @@ -import { TranscoderOrDelegateType } from "@components/DelegatingWidget"; -import { EnsIdentity } from "@lib/api/types/get-ens"; -import { - getDelegatorStatus, - getHint, - simulateNewActiveSetOrder, -} from "@lib/utils"; -import { Box, Button } from "@livepeer/design-system"; -import { AccountQueryResult, OrchestratorsSortedQueryResult } from "apollo"; -import { - StakingAction, - useAccountAddress, - useAccountBalanceData, - useExpectedChainId, - usePendingFeesAndStakeData, -} from "hooks"; -import { CHAIN_INFO } from "lib/chains"; -import { useMemo } from "react"; -import { parseEther } from "viem"; - -import Delegate from "./Delegate"; -import Footnote from "./Footnote"; -import Undelegate from "./Undelegate"; - -type FooterData = { - isTransferStake: boolean; - isMyTranscoder: boolean; - isDelegated: boolean; - - action: StakingAction; - amount: string; - isWrongRouteChain: boolean; - - currentRound: - | NonNullable< - NonNullable["protocol"] - >["currentRound"] - | undefined; - - transcoders: - | NonNullable["transcoders"] - | undefined; - transcoder: TranscoderOrDelegateType; - delegator?: NonNullable["delegator"]; - account: EnsIdentity; -}; -interface Props { - reset: () => void; - data: FooterData; - css?: object; -} - -const Footer = ({ - reset, - data: { - isTransferStake, - isDelegated, - isMyTranscoder, - transcoders, - delegator, - transcoder, - action, - amount, - isWrongRouteChain, - currentRound, - }, - css = {}, -}: Props) => { - const accountAddress = useAccountAddress(); - const expectedChainId = useExpectedChainId(); - const expectedChainLabel = CHAIN_INFO[expectedChainId].label; - - const delegatorPendingStakeAndFees = usePendingFeesAndStakeData( - delegator?.id - ); - const accountBalance = useAccountBalanceData(accountAddress); - - const tokenBalance = useMemo(() => accountBalance?.balance, [accountBalance]); - const transferAllowance = useMemo( - () => accountBalance?.allowance, - [accountBalance] - ); - const delegatorStatus = useMemo( - () => getDelegatorStatus(delegator, currentRound), - [currentRound, delegator] - ); - const stakeWei = useMemo( - () => - delegatorPendingStakeAndFees?.pendingStake - ? BigInt(delegatorPendingStakeAndFees.pendingStake) - : null, - [delegatorPendingStakeAndFees] - ); - const sufficientStake = useMemo(() => { - if (!delegator || !amount || stakeWei === null) return false; - try { - const amountWei = parseEther(amount); - return amountWei <= stakeWei; - } catch { - return false; - } - }, [delegator, amount, stakeWei]); - const canUndelegate = useMemo( - () => isMyTranscoder && isDelegated && parseFloat(amount) > 0, - [isMyTranscoder, isDelegated, amount] - ); - const newActiveSetOrder = useMemo( - () => - simulateNewActiveSetOrder({ - action, - transcoders: JSON.parse(JSON.stringify(transcoders)), - amount: parseEther(amount ? amount.toString() : "0"), - newDelegate: transcoder?.id ?? "", - oldDelegate: delegator?.delegate?.id, - }), - [action, transcoders, amount, transcoder, delegator] - ); - const { newPosPrev, newPosNext } = useMemo( - () => getHint(delegator?.delegate?.id, newActiveSetOrder), - [delegator, newActiveSetOrder] - ); - const { - newPosPrev: currDelegateNewPosPrev, - newPosNext: currDelegateNewPosNext, - } = useMemo( - () => getHint(transcoder?.id, newActiveSetOrder), - [newActiveSetOrder, transcoder] - ); - - // Check if unbonding will deactivate the orchestrator - const isOwnOrchestrator = useMemo( - () => - accountAddress?.toLowerCase() === delegator?.delegate?.id?.toLowerCase(), - [accountAddress, delegator?.delegate?.id] - ); - const willDeactivate = useMemo(() => { - // Wait for stake data to load before determining deactivation - if (!isOwnOrchestrator || stakeWei === null || !amount) return false; - try { - const amountWei = parseEther(amount); - // Deactivates if unbonding all stake (amount >= current stake) - return amountWei > 0n && amountWei >= stakeWei; - } catch { - return false; - } - }, [isOwnOrchestrator, stakeWei, amount]); - - if (isWrongRouteChain) { - return ( - <> - - - Switch to {expectedChainLabel} to{" "} - {action === "delegate" ? "delegate" : "undelegate"}. - - - ); - } - - if (!accountAddress) { - return ( - <> - - - Connect your wallet to{" "} - {action === "delegate" ? "delegate" : "undelegate"}. - - - ); - } - - if (action === "delegate") { - return ( - - - - ); - } - return ( - - - {renderUnstakeWarnings( - amount, - delegatorStatus, - isDelegated, - sufficientStake, - isMyTranscoder - )} - - ); -}; - -export default Footer; - -function renderUnstakeWarnings( - amount, - delegatorStatus, - isDelegated, - sufficientStake, - isMyTranscoder -) { - if (delegatorStatus === "Pending") { - return ( - - Your account is in a pending state. You can undelegate during the next - round. - - ); - } - if (!isDelegated) { - return One must delegate before one can undelegate.; - } - if (!isMyTranscoder) { - return You're not delegated to this orchestrator.; - } - if (parseFloat(amount) && !sufficientStake) { - return Insufficient stake; - } - return ( - - {`Looking to move your delegated stake? No need to undelegate. Navigate to the orchestrator you wish to switch to and use the \"Move Delegated Stake\" feature.`} - - ); -} diff --git a/components/DelegatingWidget/Footnote.tsx b/components/DelegatingWidget/Footnote.tsx deleted file mode 100644 index 2063c235..00000000 --- a/components/DelegatingWidget/Footnote.tsx +++ /dev/null @@ -1,19 +0,0 @@ -import { Box } from "@livepeer/design-system"; - -const Footnote = ({ children }) => { - return ( - - {children} - - ); -}; - -export default Footnote; diff --git a/components/DelegatingWidget/Header.tsx b/components/DelegatingWidget/Header.tsx deleted file mode 100644 index c9e071d1..00000000 --- a/components/DelegatingWidget/Header.tsx +++ /dev/null @@ -1,78 +0,0 @@ -import { EnsIdentity } from "@lib/api/types/get-ens"; -import { Box, Flex, Heading } from "@livepeer/design-system"; -import { formatAddress } from "@utils/web3"; -import { QRCodeCanvas } from "qrcode.react"; - -import { TranscoderOrDelegateType } from "."; - -const Header = ({ - transcoder, - delegateProfile, -}: { - transcoder: TranscoderOrDelegateType; - delegateProfile: EnsIdentity | undefined; -}) => { - return ( - - - {delegateProfile?.avatar ? ( - - ) : ( - - )} - - - - {delegateProfile?.name - ? delegateProfile.name - : formatAddress(transcoder?.id)} - - - - - ); -}; - -export default Header; diff --git a/components/DelegatingWidget/Input.tsx b/components/DelegatingWidget/Input.tsx deleted file mode 100644 index 90c86f5f..00000000 --- a/components/DelegatingWidget/Input.tsx +++ /dev/null @@ -1,128 +0,0 @@ -import { calculateROI } from "@lib/roi"; -import { Box } from "@livepeer/design-system"; -import { - PERCENTAGE_PRECISION_BILLION, - PERCENTAGE_PRECISION_MILLION, -} from "@utils/web3"; -import { useExplorerStore } from "hooks"; -import { useEffect, useMemo } from "react"; -import { useWindowSize } from "react-use"; - -const Input = ({ - transcoder, - value, - onChange, - protocol, - treasury, - ...props -}) => { - const { width } = useWindowSize(); - - const pools = useMemo(() => transcoder?.pools ?? [], [transcoder]); - const rewardCallRatio = useMemo( - () => - pools.length > 0 - ? pools.filter((r) => r?.rewardTokens).length / pools.length - : 0, - [pools] - ); - - const principle = useMemo(() => Number(value || 0), [value]); - - const roi = useMemo( - () => - calculateROI({ - inputs: { - principle, - }, - orchestratorParams: { - totalStake: Number(transcoder.totalStake), - }, - feeParams: { - ninetyDayVolumeETH: Number(transcoder.ninetyDayVolumeETH), - feeShare: Number(transcoder.feeShare) / PERCENTAGE_PRECISION_MILLION, - lptPriceEth: Number(protocol.lptPriceEth), - }, - rewardParams: { - inflation: Number(protocol.inflation) / PERCENTAGE_PRECISION_BILLION, - inflationChangePerRound: - Number(protocol.inflationChange) / PERCENTAGE_PRECISION_BILLION, - totalSupply: Number(protocol.totalSupply), - totalActiveStake: Number(protocol.totalActiveStake), - roundLength: Number(protocol.roundLength), - - rewardCallRatio, - rewardCut: - Number(transcoder.rewardCut) / PERCENTAGE_PRECISION_MILLION, - treasuryRewardCut: treasury.treasuryRewardCutRate, - }, - }), - [ - protocol, - transcoder, - principle, - rewardCallRatio, - treasury.treasuryRewardCutRate, - ] - ); - - const { setYieldResults } = useExplorerStore(); - - useEffect(() => { - setYieldResults({ - principle, - roiFeesLpt: roi.delegator.feesLpt, - roiFees: roi.delegator.fees, - roiRewards: roi.delegator.rewards, - }); - }, [setYieldResults, principle, roi.delegator]); - - return ( - - = 1200} - value={value} - onChange={onChange} - css={{ - backgroundColor: "transparent", - borderTop: 0, - borderLeft: 0, - borderRight: 0, - borderBottom: 0, - color: "$text", - paddingTop: 0, - paddingBottom: 0, - paddingLeft: 0, - paddingRight: 6, - boxShadow: "none", - width: "100%", - outline: "none", - fontSize: "$5", - fontFamily: "$monospace", - "&::-webkit-inner-spin-button": { - WebkitAppearance: "none", - }, - "&::-webkit-outer-spin-button": { - WebkitAppearance: "none", - }, - }} - /> - LPT - - ); -}; - -export default Input; diff --git a/components/DelegatingWidget/InputBox.tsx b/components/DelegatingWidget/InputBox.tsx deleted file mode 100644 index fe48fd28..00000000 --- a/components/DelegatingWidget/InputBox.tsx +++ /dev/null @@ -1,140 +0,0 @@ -import { TranscoderOrDelegateType } from "@components/DelegatingWidget"; -import { ExplorerTooltip } from "@components/ExplorerTooltip"; -import { EnsIdentity } from "@lib/api/types/get-ens"; -import { Box, Card, Flex } from "@livepeer/design-system"; -import { fromWei } from "@utils/web3"; -import { AccountQueryResult } from "apollo"; -import { - StakingAction, - useAccountAddress, - useAccountBalanceData, - usePendingFeesAndStakeData, -} from "hooks"; -import React, { useMemo } from "react"; - -import Input from "./Input"; - -interface Treasury { - treasuryRewardCutRate: number; -} - -interface Props { - transcoder: TranscoderOrDelegateType; - delegator?: NonNullable["delegator"]; - protocol: NonNullable["protocol"]; - treasury: Treasury; - account: EnsIdentity; - action?: StakingAction; - delegateProfile?: EnsIdentity; - - amount: string; - setAmount: (a: string) => void; -} - -const InputBox = ({ - account, - action, - delegator, - transcoder, - amount, - setAmount, - protocol, - treasury, -}: Props) => { - const walletAddress = useAccountAddress(); - const delegatorPendingStakeAndFees = usePendingFeesAndStakeData( - delegator?.id - ); - const accountBalance = useAccountBalanceData(account?.id); - - const tokenBalance = useMemo( - () => accountBalance && fromWei(accountBalance.balance.toString()), - [accountBalance] - ); - const stake = useMemo( - () => - delegatorPendingStakeAndFees?.pendingStake - ? fromWei(delegatorPendingStakeAndFees.pendingStake) - : "0", - [delegatorPendingStakeAndFees] - ); - - return ( - - - - - Input - - {walletAddress && - (action === "delegate" ? ( - - setAmount(tokenBalance ?? "0")} - css={{ cursor: "pointer", color: "$muted" }} - > - Balance:{" "} - - {parseFloat(tokenBalance ?? "0")} - - - - ) : ( - <> - {+stake > 0 && ( - - setAmount(stake)} - css={{ cursor: "pointer", color: "$muted" }} - > - Stake:{" "} - - {+stake} - - - - )} - - ))} - - - ) => { - setAmount(e.target.value ? e.target.value : ""); - }} - protocol={protocol} - treasury={treasury} - /> - - - - - ); -}; - -export default InputBox; diff --git a/components/DelegatingWidget/ProjectionBox.tsx b/components/DelegatingWidget/ProjectionBox.tsx deleted file mode 100644 index 1a2a00b7..00000000 --- a/components/DelegatingWidget/ProjectionBox.tsx +++ /dev/null @@ -1,140 +0,0 @@ -import { ExplorerTooltip } from "@components/ExplorerTooltip"; -import { Box, Card, Flex, Text } from "@livepeer/design-system"; -import { QuestionMarkCircledIcon } from "@radix-ui/react-icons"; -import { formatETH, formatLPT, formatPercent } from "@utils/numberFormatters"; -import { useExplorerStore } from "hooks"; - -const ProjectionBox = ({ action }) => { - const { yieldResults } = useExplorerStore(); - - const formattedPrinciple = formatLPT(Number(yieldResults?.principle), { - precision: 0, - }); - - const roi = yieldResults.principle - ? (yieldResults.roiFeesLpt + yieldResults.roiRewards) / - +yieldResults.principle - : 0; - - return ( - - - - - - - - {action === "delegate" - ? "Forecasted Yield (1Y)" - : "Forecasted Opportunity Cost (1Y)"} - - - {action === "delegate" - ? `The expected earnings if you were to delegate - ${formattedPrinciple} LPT to this orchestrator. This is only an - estimate based on recent performance data and is subject to - change.` - : `The expected earnings you would not receive in the next year, if you were to undelegate - ${formattedPrinciple} LPT from this orchestrator.`} - - } - > - - - - - - - {action === "delegate" && ( - - {formatPercent(roi, { precision: 1 })} - - )} - - - - - Inflationary Rewards - - The forecasted LPT rewards you would receive, based on your - input stake and the total stake for the orchestrator. - - } - > - - - - - - - {formatLPT(yieldResults.roiRewards, { - precision: 1, - abbreviate: false, - })} - - - - - Fee Share - - The projected fee share you would receive for the work that - the orchestrator performs on the network (in Ether). - - } - > - - - - - - - {formatETH(yieldResults.roiFees, { precision: 3 })} - - - - - - ); -}; - -export default ProjectionBox; diff --git a/components/DelegatingWidget/Tabs.tsx b/components/DelegatingWidget/Tabs.tsx deleted file mode 100644 index 204a6040..00000000 --- a/components/DelegatingWidget/Tabs.tsx +++ /dev/null @@ -1,54 +0,0 @@ -import { Box } from "@livepeer/design-system"; -import { - Tab as ReachTab, - TabList as ReachTabList, - Tabs as ReachTabs, -} from "@reach/tabs"; - -export const Tabs = (props) => ; - -export const TabList = (props) => ( - -); - -export const Tab = (props) => ( - -); diff --git a/components/DelegatingWidget/Undelegate.tsx b/components/DelegatingWidget/Undelegate.tsx deleted file mode 100644 index 767bb5f6..00000000 --- a/components/DelegatingWidget/Undelegate.tsx +++ /dev/null @@ -1,174 +0,0 @@ -import { bondingManager } from "@lib/api/abis/main/BondingManager"; -import { - Box, - Button, - Dialog, - DialogContent, - DialogTitle, - Flex, - Text, -} from "@livepeer/design-system"; -import { useAccountAddress } from "hooks"; -import { useBondingManagerAddress } from "hooks/useContracts"; -import { useHandleTransaction } from "hooks/useHandleTransaction"; -import { useState } from "react"; -import { parseEther } from "viem"; -import { useSimulateContract, useWriteContract } from "wagmi"; - -interface Props { - amount: string; - newPosPrev: string; - newPosNext: string; - disabled: boolean; - willDeactivate: boolean; -} - -const Undelegate = ({ - amount, - newPosPrev, - newPosNext, - disabled, - willDeactivate, -}: Props) => { - const accountAddress = useAccountAddress(); - const [showConfirmDialog, setShowConfirmDialog] = useState(false); - - const args = { - amount: parseEther(amount ? amount.toString() : "0"), - newPosPrev, - newPosNext, - }; - - const { data: bondingManagerAddress } = useBondingManagerAddress(); - - const { data: config } = useSimulateContract({ - query: { enabled: Boolean(bondingManagerAddress) }, - address: bondingManagerAddress, - abi: bondingManager, - functionName: "unbondWithHint", - args: [ - BigInt(args.amount.toString()), - newPosPrev as `0x${string}`, - newPosNext as `0x${string}`, - ], - }); - const { data, isPending, writeContract, error, isSuccess } = - useWriteContract(); - - useHandleTransaction("unbond", data, error, isPending, isSuccess, { - ...args, - wasDeactivated: willDeactivate, - }); - - const handleUndelegate = () => { - if (willDeactivate) { - setShowConfirmDialog(true); - } else if (config) { - writeContract(config.request); - } - }; - - const handleConfirmUnbond = () => { - setShowConfirmDialog(false); - if (config) { - writeContract(config.request); - } - }; - - if (!accountAddress) { - return null; - } - - return ( - <> - - - - - - - Unbonding all stake - - - - - This will{" "} - - deactivate your orchestrator - {" "} - and remove you from the active set. You'll stop earning rewards - until you stake again. - - - - Amount - - {amount} LPT - - - - - - - - - - - ); -}; - -export default Undelegate; diff --git a/components/DelegatingWidget/index.tsx b/components/DelegatingWidget/index.tsx deleted file mode 100644 index e6eb8611..00000000 --- a/components/DelegatingWidget/index.tsx +++ /dev/null @@ -1,244 +0,0 @@ -import { trackVercelAnalyticsEvent } from "@lib/analytics"; -import { EnsIdentity } from "@lib/api/types/get-ens"; -import { Box, Card, Flex, Text } from "@livepeer/design-system"; -import { formatLPT } from "@utils/numberFormatters"; -import { fromWei } from "@utils/web3"; -import { AccountQueryResult, OrchestratorsSortedQueryResult } from "apollo"; -import { - useAccountAddress, - useEnsData, - useExplorerStore, - useIsWrongRouteChain, - usePendingFeesAndStakeData, -} from "hooks"; -import { useEffect, useMemo, useRef, useState } from "react"; - -import ArrowDown from "../../public/img/arrow-down.svg"; -import Footer from "./Footer"; -import Header from "./Header"; -import InputBox from "./InputBox"; -import ProjectionBox from "./ProjectionBox"; -import { Tab, TabList, Tabs } from "./Tabs"; - -// Define a type for either a Transcoder or a Delegate. -export type TranscoderOrDelegateType = - | NonNullable["transcoder"] - | NonNullable< - NonNullable["delegator"] - >["delegate"]; - -interface Props { - transcoders: - | NonNullable["transcoders"] - | undefined; - transcoder: TranscoderOrDelegateType | undefined; - delegator?: NonNullable["delegator"] | undefined; - protocol: NonNullable["protocol"] | undefined; - treasury: { treasuryRewardCutRate: number }; - account: EnsIdentity; - delegateProfile?: EnsIdentity; -} - -const Index = ({ - transcoders, - delegator, - account, - transcoder, - protocol, - treasury, - delegateProfile, -}: Props) => { - const [amount, setAmount] = useState(""); - const { selectedStakingAction, setSelectedStakingAction } = - useExplorerStore(); - const isWrongRouteChain = useIsWrongRouteChain(); - const accountAddress = useAccountAddress(); - - const pendingFeesAndStake = usePendingFeesAndStakeData(delegator?.id); - - const isMyTranscoder = useMemo( - () => delegator?.delegate?.id === transcoder?.id, - [delegator, transcoder] - ); - - const delegateEns = useEnsData(delegator?.delegate?.id); - - const isDelegated = useMemo( - () => delegator?.bondedAmount && delegator?.bondedAmount !== "0", - [delegator] - ); - const isTransferStake = useMemo( - () => !isMyTranscoder && isDelegated, - [isMyTranscoder, isDelegated] - ); - const currentPendingStake = Number( - fromWei(pendingFeesAndStake?.pendingStake ?? "0") - ); - - // Fire once per delegation attempt by a connected wallet, the first time - // the form goes from clean to dirty - not again on every clear/refill of - // the amount. Covers both typed amounts and the "max" shortcut. - const hasTrackedFormStart = useRef(false); - useEffect(() => { - if ( - !hasTrackedFormStart.current && - accountAddress && - selectedStakingAction === "delegate" && - parseFloat(amount) > 0 - ) { - hasTrackedFormStart.current = true; - trackVercelAnalyticsEvent("delegation_form_started"); - } - }, [accountAddress, amount, selectedStakingAction]); - - // Submitting ends the attempt, so the next one is tracked again. - const resetForm = () => { - setAmount(""); - hasTrackedFormStart.current = false; - }; - - return ( - -
- - { - if (isWrongRouteChain) return; - setSelectedStakingAction(index ? "undelegate" : "delegate"); - }} - > - - - Delegate - - - Undelegate - - - - - {isTransferStake ? ( - <> - - - - - {`This transaction will move your current delegated stake of `} - - {formatLPT(currentPendingStake, { - precision: 1, - abbreviate: false, - })} - - {` from `} - - {delegateEns.name - ? delegateEns.name - : delegateEns.idShort ?? ""} - - {" to "} - - {delegateProfile?.name ?? delegateProfile?.idShort ?? ""} - - {"."} - - - - - - ) : ( - <> - - - - - - - )} -