diff --git a/.env.example b/.env.example index 165ee1acb..3756f260c 100644 --- a/.env.example +++ b/.env.example @@ -2,4 +2,5 @@ VITE_WALLET_CONNECT_PROJECT_ID="" VITE_ALCHEMY_API_KEY="" # alchemy api key. https://www.alchemy.com/ VITE_CHAINS="1337,8453" #comma separated list of chain ids. (ex: "1337,8543") VITE_BASE_ENDPOINT="pinto.money" # base endpoint domain -VITE_TENDERLY_RPC_URL="" # rpc url for pointing towards tenderly RPC for testing. Add chainId 41337 to VITE_CHAINS \ No newline at end of file +VITE_TENDERLY_RPC_URL="" # rpc url for pointing towards tenderly RPC for testing. Add chainId 41337 to VITE_CHAINS +VITE_PRIVY_APP_ID="" # privy app id from dashboard.privy.io \ No newline at end of file diff --git a/.gitignore b/.gitignore index fe761fd70..79896e2f4 100644 --- a/.gitignore +++ b/.gitignore @@ -20,6 +20,7 @@ dist-ssr # Editor directories and files .vscode/* +.kiro !.vscode/extensions.json .idea .DS_Store diff --git a/package.json b/package.json index a9932333e..6bc9ea2ea 100644 --- a/package.json +++ b/package.json @@ -23,6 +23,9 @@ "@hookform/resolvers": "^3.9.0", "@netlify/functions": "^2.8.1", "@number-flow/react": "^0.5.9", + "@privy-io/react-auth": "^3.6.0", + "@privy-io/wagmi": "^2.0.2", + "@privy-io/wagmi-connector": "^0.1.13", "@radix-ui/react-accordion": "^1.2.3", "@radix-ui/react-checkbox": "^1.1.2", "@radix-ui/react-collapsible": "^1.1.1", @@ -120,7 +123,9 @@ "@babel/runtime": "^7.26.10", "brace-expansion": "^2.0.2", "micromatch": "^4.0.8", - "cross-spawn": "7.0.6" + "cross-spawn": "7.0.6", + "viem": "^2.33.1", + "ox": "^0.8.1" }, "packageManager": "yarn@4.5.0" } diff --git a/src/Web3Provider.tsx b/src/Web3Provider.tsx index 6477dd098..9c02117bd 100644 --- a/src/Web3Provider.tsx +++ b/src/Web3Provider.tsx @@ -1,3 +1,4 @@ +import { PrivyProvider, usePrivy, useWallets } from "@privy-io/react-auth"; import { createSyncStoragePersister } from "@tanstack/query-sync-storage-persister"; import { QueryClient } from "@tanstack/react-query"; import { ReactQueryDevtools } from "@tanstack/react-query-devtools"; @@ -6,8 +7,13 @@ import { ConnectKitProvider } from "connectkit"; import { atom, useAtom } from "jotai"; import { ReactNode, useEffect, useMemo } from "react"; import { createTestClient } from "viem"; -import { http, WagmiProvider, createConfig } from "wagmi"; +import { http, WagmiProvider, createConfig, createStorage } from "wagmi"; +import type { CreateConnectorFn } from "wagmi"; import { mock } from "wagmi/connectors"; +import { useAutoReconnect } from "./hooks/wallet/useAutoReconnect"; +import { usePrivySync } from "./hooks/wallet/usePrivySync"; +import { privyConfig } from "./utils/privy/privy.config"; +import { getPrivyEmbeddedWallet, getPrivyLogout } from "./utils/privy/privyRefs"; import { isValidAddress } from "./utils/string"; import { isLocalhost, isNetlifyPreview, isProd } from "./utils/utils"; import { @@ -16,7 +22,8 @@ import { localhostNetwork as localhost, tenderlyTestnetNetwork as testnet, } from "./utils/wagmi/chains"; -import config from "./utils/wagmi/config"; +import { buildBaseConfigParams } from "./utils/wagmi/config"; +import { privy as privyConnector } from "./utils/wagmi/connectors/privy"; // biome-ignore lint/suspicious/noExplicitAny: React Query needs this to serialize BigInts (BigInt.prototype as any).toJSON = function () { @@ -38,10 +45,14 @@ const localStoragePersister = createSyncStoragePersister({ }); export const Web3Provider = ({ children }: { children: ReactNode }) => { - const config = useEnvConfig(); + const privyAppId = import.meta.env.VITE_PRIVY_APP_ID; + + if (!privyAppId) { + console.warn("VITE_PRIVY_APP_ID is not set. Privy email/social login will not work."); + } return ( - + {/** * If the cache that is found has a different buster string than what is set here, it will be discarded. * Should be changed whenever there's a significant change in the subgraphs. @@ -52,51 +63,103 @@ export const Web3Provider = ({ children }: { children: ReactNode }) => { client={queryClient} persistOptions={{ persister: localStoragePersister, buster: "20250501" }} > - - - {children} - - + {children} - + ); }; -// New component to handle mock connector logic +function getDefaultChainId() { + if (isProd()) { + return base.id; + } + if (isNetlifyPreview()) { + return !!TENDERLY_RPC_URL ? testnet.id : base.id; + } + return localhost.id; +} + +/** + * Stable wagmi config for non-localhost environments + * Config instance never changes to preserve wagmi's storage state + * Privy connector uses global refs that can be updated without recreating config + */ +const stableBaseConfig = createConfig( + buildBaseConfigParams({ + additionalConnectors: [ + privyConnector({ + getEmbeddedWallet: getPrivyEmbeddedWallet, + logout: () => { + const logout = getPrivyLogout(); + return logout ? logout() : Promise.resolve(); + }, + }), + ], + }), +); + +const connectKitTheme = { + "--ck-font-family": "Pinto", + "--ck-border-radius": "24px", + "--ck-body-color": "#404040", + "--ck-body-background": "#FCFCFC", + "--ck-modal-box-shadow": "0px 0px 0px 1px rgb(217, 217, 217)", + "--ck-overlay-backdrop-filter": "blur(2px)", + "--ck-overlay-background": "rgb(255 255 255 / 0.5)", + "--ck-primary-button-font-weight": "400", + "--ck-primary-button-box-shadow": "0px 0px 0px 1px rgb(217, 217, 217)", + "--ck-primary-button-background": "#FCFCFC", + "--ck-primary-button-hover-background": "#EBEBEB", + "--ck-secondary-button-background": "#FCFCFC", + "--ck-secondary-button-hover-background": "#EBEBEB", + "--ck-secondary-button-box-shadow": "0px 0px 0px 1px rgb(217, 217, 217)", + "--ck-spinner-color": "rgb(36 102 69)", + "--ck-qr-border-color": "rgb(217, 217, 217)", + "--ck-qr-dot-color": "rgb(36 102 69)", + "--ck-body-divider": "rgb(217, 217, 217)", +}; + +const connectKitOptions = { + initialChainId: getDefaultChainId(), + avoidLayoutShift: true, + hideNoWalletCTA: true, + hideQuestionMarkCTA: true, + enforceSupportedChains: true, +}; + +function WagmiProviderWrapper({ children }: { children: ReactNode }) { + const wagmiConfig = useEnvConfig(stableBaseConfig); + + return ( + + + + + {children} + + + + ); +} + +/** + * Manages wallet connection lifecycle + * Handles auto-reconnect and Privy sync + */ +function ConnectionManager() { + useAutoReconnect(); + usePrivySync(); + return null; +} + +/** + * Manages mock connector for localhost development + * Impersonates accounts for testing + */ function MockConnectorManager() { const [mockAddress] = useAtom(mockAddressAtom); const isLocal = isLocalhost(); - // Impersonate account whenever mockAddress changes useEffect(() => { if (isLocal && isValidAddress(mockAddress)) { anvilTestClient.impersonateAccount({ address: mockAddress }); @@ -106,14 +169,7 @@ function MockConnectorManager() { return null; } -// Add atom for mock address with stored value or default -export const mockAddressAtom = atom<`0x${string}`>( - // default to local storage - (localStorage.getItem("mockAddress") as `0x${string}`) || - null || - // if none in local storage, use env variable - "0x", -); +export const mockAddressAtom = atom<`0x${string}`>((localStorage.getItem("mockAddress") as `0x${string}`) || "0x"); export const anvilTestClient = createTestClient({ mode: "anvil", @@ -121,36 +177,49 @@ export const anvilTestClient = createTestClient({ transport: http(), }); -const getDefaultChainId = () => { - if (isProd()) { - return base.id; - } - if (isNetlifyPreview()) { - return !!TENDERLY_RPC_URL ? testnet.id : base.id; - } - return localhost.id; -}; - -// Create config with current mock address value -const useEnvConfig = () => { +/** + * Creates wagmi config based on environment + * - Localhost: Uses mock connector with impersonation + * - Other environments: Uses stable base config + */ +function useEnvConfig(stableBaseConfig: ReturnType) { const [mockAddress] = useAtom(mockAddressAtom); const isLocal = isLocalhost(); + const { logout: privyLogout } = usePrivy(); + const wallets = useWallets(); + const walletsArray = Array.isArray(wallets) ? wallets : wallets?.wallets || []; + const embeddedWallet = walletsArray.find((w) => w.walletClientType === "privy"); const localConfig = useMemo(() => { if (!isValidAddress(mockAddress)) { return undefined; } + const connectors: CreateConnectorFn[] = [ + mock({ accounts: [mockAddress], features: { defaultConnected: true, reconnect: true } }), + ]; + + if (embeddedWallet && privyLogout) { + connectors.push( + privyConnector({ + getEmbeddedWallet: () => embeddedWallet, + logout: privyLogout, + }), + ); + } + return createConfig({ - connectors: [mock({ accounts: [mockAddress], features: { defaultConnected: true, reconnect: true } })], + connectors, chains: [localhost, base], client() { return anvilTestClient; }, + storage: createStorage({ + storage: typeof window !== "undefined" ? window.localStorage : undefined, + }), + ssr: false, }); - }, [mockAddress]); - - const envConfig = isLocal && localConfig ? localConfig : config; + }, [mockAddress, embeddedWallet, privyLogout]); - return envConfig; -}; + return isLocal && localConfig ? localConfig : stableBaseConfig; +} diff --git a/src/assets/misc/Privy_Symbol_Black.png b/src/assets/misc/Privy_Symbol_Black.png new file mode 100644 index 000000000..3da947923 Binary files /dev/null and b/src/assets/misc/Privy_Symbol_Black.png differ diff --git a/src/assets/misc/mail.png b/src/assets/misc/mail.png new file mode 100644 index 000000000..48f7be6bd Binary files /dev/null and b/src/assets/misc/mail.png differ diff --git a/src/assets/wallets/coinbase.png b/src/assets/wallets/coinbase.png new file mode 100644 index 000000000..468b0d8c6 Binary files /dev/null and b/src/assets/wallets/coinbase.png differ diff --git a/src/assets/wallets/metamask.png b/src/assets/wallets/metamask.png new file mode 100644 index 000000000..d9ca586f4 Binary files /dev/null and b/src/assets/wallets/metamask.png differ diff --git a/src/assets/wallets/rabby.png b/src/assets/wallets/rabby.png new file mode 100644 index 000000000..303bfe7a6 Binary files /dev/null and b/src/assets/wallets/rabby.png differ diff --git a/src/assets/wallets/walletconnect.png b/src/assets/wallets/walletconnect.png new file mode 100644 index 000000000..4390a0962 Binary files /dev/null and b/src/assets/wallets/walletconnect.png differ diff --git a/src/components/AutoConnectFirstConnector.tsx b/src/components/AutoConnectFirstConnector.tsx new file mode 100644 index 000000000..a90bc8074 --- /dev/null +++ b/src/components/AutoConnectFirstConnector.tsx @@ -0,0 +1,39 @@ +import { isDev } from "@/utils/utils"; +import { useEffect } from "react"; +import { useConnect } from "wagmi"; + +/** + * AutoConnectFirstConnector Component + * + * Automatically connects to the first available wagmi connector when: + * - Status is "idle" (not connected) + * - Connectors array has at least one connector + * - Component is mounted + * + * This is useful for development/testing purposes. + * Can be conditionally rendered based on environment (e.g., only in dev mode). + * + * Usage: + * ```tsx + * {isDev() && } + * ``` + */ +export default function AutoConnectFirstConnector() { + const { connectors, connectAsync, status } = useConnect(); + + useEffect(() => { + if (!isDev()) { + return; + } + + if (status === "idle" && connectors.length > 0) { + const firstConnector = connectors[0]; + connectAsync({ connector: firstConnector }).catch((error) => { + console.error("AutoConnectFirstConnector: Auto-connect failed", error); + }); + } + }, [connectors, status, connectAsync]); + + // This component doesn't render anything + return null; +} diff --git a/src/components/ComboInputField.tsx b/src/components/ComboInputField.tsx index 94369e0a0..d011137d3 100644 --- a/src/components/ComboInputField.tsx +++ b/src/components/ComboInputField.tsx @@ -14,7 +14,7 @@ import { sanitizeNumericInputValue, stringEq, stringToNumber, toValidStringNumIn import { FarmFromMode, Plot, Token } from "@/utils/types"; import { useDebouncedEffect } from "@/utils/useDebounce"; import { cn } from "@/utils/utils"; -import { +import React, { Dispatch, InputHTMLAttributes, SetStateAction, @@ -101,6 +101,7 @@ export interface ComboInputProps extends InputHTMLAttributes { // Slider props enableSlider?: boolean; sliderMarkers?: number[]; + customTokenSelector?: React.ReactNode; } function ComboInputField({ @@ -137,6 +138,7 @@ function ComboInputField({ filterTokens, selectKey, transformTokenLabels, + customTokenSelector, placeholder, enableSlider, sliderMarkers, @@ -602,23 +604,25 @@ function ComboInputField({ ? setPlots && ( ) - : setToken && - selectedToken && ( - - )} + : customTokenSelector + ? customTokenSelector + : setToken && + selectedToken && ( + + )} {!disableInlineBalance && (
diff --git a/src/components/Icons.tsx b/src/components/Icons.tsx index 02688a183..c91322b38 100644 --- a/src/components/Icons.tsx +++ b/src/components/Icons.tsx @@ -123,6 +123,14 @@ export const LeftArrowIcon = ({ color = "#9C9C9C", width = 17, height = 12 }: SV ); +export const DownArrowIcon = ({ color = "#9C9C9C", width = 12, height = 17 }: SVGProps) => ( + + + + + +); + export const UpArrowIcon = ({ color = "#9C9C9C", width = 16, height = 16 }: SVGProps) => ( { - if (isConnected) { - const dismissed = localStorage.getItem("baseValueAlertDismissed"); - if (!dismissed) { - setShow(true); - } + if (isConnected && !hasBalanceOnBase) { + setShow(true); } else { setShow(false); } - }, [isConnected]); + }, [isConnected, hasBalanceOnBase]); const handleDismiss = () => { - localStorage.setItem("baseValueAlertDismissed", "true"); setShow(false); }; @@ -54,7 +55,7 @@ export default function NoBaseValueAlert() { return ( - {isConnected && show && !isLoading && !hasBalanceOnBase && ( + {show && !isLoading && (

- Looks like you don't have any funds on Base. Bridge value from Ethereum, or send value to your wallet - using an exchange. + {connector?.type === "privy" + ? "Looks like you don't have any funds on Base. Fund your wallet via Privy, or send value to your wallet using an exchange." + : "Looks like you don't have any funds on Base. Bridge value from Ethereum, or send value to your wallet using an exchange."}

- + + ) : ( + + )} - } - > - - + <> + {}} + side="right" + panelProps={{ + className: `max-w-panel-price w-panel-price mt-4 ${isOpen ? `translate-x-12 mr-0 lg:translate-x-12 lg:mr-12` : `translate-x-full -mr-20 lg:-mr-12`}`, + }} + screenReaderTitle="Wallet Panel" + trigger={ + + } + > + + + {/* Custom Wallet Connection Modal */} + + ); }, ); export default WalletButton; - -/** - * If the connectkit modal opens, wagmi sets status to 'connecting' but doesn't set it to 'disconnected' when the modal is closed w/o connecting an account. - * - * Uses cascading effects to ensure that the account is disconnected if it has not connected after some time after the modal is closed. - */ -const useSyncAccountConnecting = (modalOpen: boolean, { address, status }: ReturnType) => { - const { disconnect } = useDisconnect(); - - // Whether the connect kit modal has been opened. - const [didOpen, setDidOpen] = useState(false); - // Whether the account may need to be disconnected. - const [mayNeedDisconnect, setMayNeedDisconnect] = useState(false); - - /** - * Effect 1 - * - * Triggers 'didOpen' - * - * If the modal opens, set the didOpen state to true. - */ - useEffect(() => { - if (didOpen === true) return; - setDidOpen(modalOpen); - }, [modalOpen, didOpen]); - - /** - * Effect 2 - * - * Triggers 'setMayNeedDisconnect' - * - * If triggered, set 'mayNeedDisconnect' after 1500ms & resets 'didOpen' state only if - * - the account is in the 'connecting' state (status === "connecting") - * - the modal has been closed (modalOpen === false) - */ - useEffect(() => { - // if the modal is open or the modal has never been opened, do nothing. - if (!didOpen || modalOpen) return; - - if (status === "connecting") { - // Give ample time to see if the account is connected. - setTimeout(() => { - setDidOpen(false); - setMayNeedDisconnect(true); - }, 1500); - } - }, [didOpen, modalOpen, status]); - - /** - * Effect 3 - * - * Triggers 'disconnect' - * - * Resets 'mayNeedDisconnect' state & resets the wagmi status to 'disconnected' - */ - useEffect(() => { - if (!mayNeedDisconnect) return; - - // If the account has not connected after 1.5 seconds of being in the 'connecting' state, disconnect. - if (mayNeedDisconnect && !address) { - // Keep this log here for debugging purposes. - console.log("No wallet connected after 1500ms of modal close. Disconnecting..."); - disconnect(); - setMayNeedDisconnect(false); - } - }, [mayNeedDisconnect]); - - /** - * Effect 4 - * - * If an address is connected & 'mayNeedDisconnect' is true, reset the states. - */ - useEffect(() => { - if (!!address && mayNeedDisconnect) { - setMayNeedDisconnect(false); - setDidOpen(false); - } - }, [address, mayNeedDisconnect]); -}; diff --git a/src/components/WalletButtonPanel.tsx b/src/components/WalletButtonPanel.tsx index 18aa1117b..c33d9e89f 100644 --- a/src/components/WalletButtonPanel.tsx +++ b/src/components/WalletButtonPanel.tsx @@ -1,3 +1,5 @@ +import copyIcon from "@/assets/misc/Copy.svg"; +import etherscanIcon from "@/assets/misc/Etherscan.png"; import { TokenValue } from "@/classes/TokenValue"; import { ANALYTICS_EVENTS } from "@/constants/analytics-events"; import { useWalletNFTProfile } from "@/hooks/useWalletNFTProfile"; @@ -9,19 +11,22 @@ import { trackClick, withTracking } from "@/utils/analytics"; import { formatter } from "@/utils/format"; import { Token } from "@/utils/types"; import { ENABLE_SWITCH_CHAINS } from "@/utils/wagmi/chains"; +import { useFundWallet, usePrivy, useWallets } from "@privy-io/react-auth"; import { Avatar } from "connectkit"; import { useAtom } from "jotai"; import { useCallback, useMemo } from "react"; import { useNavigate } from "react-router-dom"; +import { toast } from "sonner"; import { useAccount, useDisconnect, useEnsAvatar, useEnsName } from "wagmi"; import { renderAnnouncement } from "./AnnouncementBanner"; import ChainButton from "./ChainButton"; -import { BackwardArrowDotsIcon, LeftArrowIcon, UpDownArrowsIcon } from "./Icons"; +import { AddCoinsIcon, BackwardArrowDotsIcon, DownArrowIcon, LeftArrowIcon, UpDownArrowsIcon } from "./Icons"; import WalletButtonClaim from "./WalletButtonClaim"; import WalletButtonTransfer from "./WalletButtonTransfer"; import WalletPanelTokenDisplay from "./WalletPanelTokenDisplay"; import { Button } from "./ui/Button"; import { CardContent, CardFooter, CardHeader } from "./ui/Card"; +import IconImage from "./ui/IconImage"; import { ScrollArea } from "./ui/ScrollArea"; import { Separator } from "./ui/Separator"; import { Tabs, TabsContent, TabsList, TabsTrigger } from "./ui/Tabs"; @@ -81,19 +86,50 @@ interface WalletHeaderProps { totalBalance: FarmerBalance; navigate: ReturnType; } -const WalletHeader = ({ address, ensName, ensAvatar, totalBalance }: WalletHeaderProps) => ( -
-
- {ensAvatar && } - - {ensName || (address ? `${address.substring(0, 7)}...${address.substring(38, 42)}` : "")} +const WalletHeader = ({ address, ensName, ensAvatar, totalBalance }: WalletHeaderProps) => { + const handleCopyAddress = useCallback(() => { + if (!address) return; + navigator.clipboard.writeText(address); + toast.success("Address copied to clipboard"); + }, [address]); + + const basescanUrl = address ? `https://basescan.org/address/${address}` : "#"; + + return ( +
+
+ {ensAvatar && } + + {ensName || (address ? `${address.substring(0, 7)}...${address.substring(38, 42)}` : "")} + + {address && ( +
+ + + + +
+ )} +
+ + {formatter.usd(totalBalance.total, { decimals: totalBalance.total.gt(9999999) ? 0 : 2 })}
- - {formatter.usd(totalBalance.total, { decimals: totalBalance.total.gt(9999999) ? 0 : 2 })} - -
-); + ); +}; // Balance summary component interface BalanceSummaryProps { @@ -118,8 +154,10 @@ const BalanceSummary = ({ totalBalance }: BalanceSummaryProps) => ( interface ActionButtonsProps { navigate: ReturnType; togglePanel: () => void; + account: ReturnType; + fundWallet: ReturnType["fundWallet"]; } -const ActionButtons = ({ navigate, togglePanel }: ActionButtonsProps) => ( +const ActionButtons = ({ navigate, togglePanel, account, fundWallet }: ActionButtonsProps) => (
Send + +
); @@ -249,6 +310,13 @@ export default function WalletButtonPanel({ togglePanel }) { const { data: ensAvatar } = useEnsAvatar({ name: ensName ?? undefined }); const { disconnect } = useDisconnect(); const navigate = useNavigate(); + const { logout: privyLogout, authenticated: privyAuthenticated } = usePrivy(); + const wallets = useWallets(); + const account = useAccount(); + const { fundWallet } = useFundWallet(); + + const walletsArray = Array.isArray(wallets) ? wallets : wallets?.wallets || []; + const isPrivyWallet = walletsArray.some((w) => w.address === address && w.walletClientType === "privy"); const [panelState, setPanelState] = useAtom(navbarPanelAtom); const { showTransfer, showClaim, balanceTab: currentTab } = panelState.walletPanel; @@ -370,13 +438,19 @@ export default function WalletButtonPanel({ togglePanel }) { type="button" onClick={withTracking( ANALYTICS_EVENTS.WALLET.DISCONNECT_BUTTON_CLICK, - () => { + async () => { + // If connected via Privy, logout from Privy first + if (isPrivyWallet && privyAuthenticated && privyLogout) { + await privyLogout(); + } + // Then disconnect from wagmi disconnect(); togglePanel(); }, { has_ens: !!ensName, from_page: "wallet_panel", + is_privy_wallet: isPrivyWallet, }, )} className="flex justify-center items-center gap-1 w-[11.25rem] h-[2.125rem] bg-[#F8F8F8] rounded-full pinto-sm hover:hover:bg-pinto-green hover:text-white" @@ -392,7 +466,7 @@ export default function WalletButtonPanel({ togglePanel }) {
- + diff --git a/src/components/WalletConnectionModal.tsx b/src/components/WalletConnectionModal.tsx new file mode 100644 index 000000000..272d4444f --- /dev/null +++ b/src/components/WalletConnectionModal.tsx @@ -0,0 +1,74 @@ +import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle } from "@/components/ui/Dialog"; +import { Separator } from "@/components/ui/Separator"; +import { ANALYTICS_EVENTS } from "@/constants/analytics-events"; +import { useChainSelection } from "@/hooks/wallet/useChainSelection"; +import { trackSimpleEvent } from "@/utils/analytics"; +import { isDev } from "@/utils/utils"; +import { useEffect } from "react"; +import { useConnect } from "wagmi"; +import { ChainSelectionModal } from "./wallet-connection/ChainSelectionModal"; +import { EmailLoginButton } from "./wallet-connection/EmailLoginButton"; +import { WalletConnectorList } from "./wallet-connection/WalletConnectorList"; + +interface WalletConnectionModalProps { + open: boolean; + onOpenChange: (open: boolean) => void; +} + +/** + * Main Wallet Connection Modal Component + * Provides two authentication paths: + * 1. Email/Social login via Privy + * 2. External wallet connection via wagmi (MetaMask, Rabby, WalletConnect, etc.) + */ +export default function WalletConnectionModal({ open, onOpenChange }: WalletConnectionModalProps) { + const { error: connectError } = useConnect(); + const { isOpen: showChainSelection, setIsOpen: setShowChainSelection } = useChainSelection(open, onOpenChange); + + // Track modal open/close + useEffect(() => { + if (open) { + trackSimpleEvent(ANALYTICS_EVENTS.WALLET.CONNECT_MODAL_OPEN, { + source: "wallet_connection_modal", + }); + } + }, [open]); + + return ( + <> + + + + Connect Wallet + Choose a wallet to connect to Pinto + + +
+
+ onOpenChange(false)} /> +
+ +
+ + OR + +
+ +
+ +
+
+ + {connectError && ( +
+
Connection Error
+
{connectError.message}
+
+ )} +
+
+ + {isDev() && } + + ); +} diff --git a/src/components/ui/Dialog.tsx b/src/components/ui/Dialog.tsx index 672239dfb..482cb46ee 100644 --- a/src/components/ui/Dialog.tsx +++ b/src/components/ui/Dialog.tsx @@ -3,7 +3,12 @@ import * as DialogPrimitive from "@radix-ui/react-dialog"; import { Cross2Icon } from "@radix-ui/react-icons"; import React, { useEffect } from "react"; -const Dialog = ({ onOpenChange, open, ...props }: React.ComponentPropsWithoutRef) => { +const Dialog = ({ + onOpenChange, + open, + modal = true, + ...props +}: React.ComponentPropsWithoutRef) => { // Handle body overflow when dialog is controlled externally useEffect(() => { const scrollContainer = document.getElementById("scrollContainer"); @@ -19,6 +24,7 @@ const Dialog = ({ onOpenChange, open, ...props }: React.ComponentPropsWithoutRef return ( { const scrollContainer = document.getElementById("scrollContainer"); if (scrollContainer) { @@ -43,7 +49,11 @@ const DialogOverlay = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( -
+ )); DialogOverlay.displayName = DialogPrimitive.Overlay.displayName; @@ -52,15 +62,32 @@ interface DialogContentProps extends React.ComponentPropsWithoutRef, DialogContentProps>( - ({ className, children, hideCloseButton = false, ...props }, ref) => ( + ({ className, children, hideCloseButton = false, onPointerDownOutside, ...props }, ref) => ( { + // Check if the click is on a Privy modal or its overlay + const target = e.target as Element; + const isPrivyElement = + target.closest("[data-privy-modal]") || + target.closest('[class*="privy"]') || + target.closest('[id*="privy"]'); + + if (isPrivyElement) { + // Prevent the dialog from closing when clicking on Privy elements + e.preventDefault(); + return; + } + + // Call the original handler if provided + onPointerDownOutside?.(e); + }} {...props} > {children} diff --git a/src/components/wallet-connection/ChainSelectionModal.tsx b/src/components/wallet-connection/ChainSelectionModal.tsx new file mode 100644 index 000000000..4dd84ee04 --- /dev/null +++ b/src/components/wallet-connection/ChainSelectionModal.tsx @@ -0,0 +1,54 @@ +import { Button } from "@/components/ui/Button"; +import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle } from "@/components/ui/Dialog"; +import { useChainId, useSwitchChain } from "wagmi"; + +interface ChainSelectionModalProps { + open: boolean; + onOpenChange: (open: boolean) => void; +} + +/** + * Chain Selection Modal Component + * Shown after wallet connection in dev mode to allow chain switching + */ +export function ChainSelectionModal({ open, onOpenChange }: ChainSelectionModalProps) { + const chainId = useChainId(); + const { chains, switchChain } = useSwitchChain(); + + const handleChainSelect = async (selectedChainId: number) => { + try { + await switchChain({ chainId: selectedChainId }); + onOpenChange(false); + window.location.reload(); + } catch (error) { + console.error("Failed to switch chain:", error); + } + }; + + return ( + + + + Select Chain + +
+ {chains.map((chain) => ( + + ))} +
+
+
+
+
+ ); +} diff --git a/src/components/wallet-connection/EmailLoginButton.tsx b/src/components/wallet-connection/EmailLoginButton.tsx new file mode 100644 index 000000000..b0e798b9c --- /dev/null +++ b/src/components/wallet-connection/EmailLoginButton.tsx @@ -0,0 +1,62 @@ +import mailIcon from "@/assets/misc/mail.png"; +import { Button } from "@/components/ui/Button"; +import { ANALYTICS_EVENTS } from "@/constants/analytics-events"; +import { withTracking } from "@/utils/analytics"; +import { useLogin, usePrivy } from "@privy-io/react-auth"; + +interface EmailLoginButtonProps { + onConnect?: () => void; +} + +/** + * Email/Social Login Button Component + * Triggers Privy authentication modal for email and social login + */ +export function EmailLoginButton({ onConnect }: EmailLoginButtonProps) { + const { login } = useLogin(); + const { ready, authenticated } = usePrivy(); + + const handleClick = () => { + if (!ready) { + console.warn("Privy is not ready yet"); + return; + } + + if (authenticated) { + return; + } + + withTracking( + ANALYTICS_EVENTS.WALLET.CONNECT_BUTTON_CLICK, + () => { + // Close modal before opening Privy modal + onConnect?.(); + + // Small delay to ensure modal closes before Privy modal opens + setTimeout(() => { + login(); + }, 100); + }, + { + wallet_type: "email", + source: "wallet_connection_modal", + }, + )(); + }; + + return ( + + ); +} diff --git a/src/components/wallet-connection/WalletConnectorButton.tsx b/src/components/wallet-connection/WalletConnectorButton.tsx new file mode 100644 index 000000000..db36f9820 --- /dev/null +++ b/src/components/wallet-connection/WalletConnectorButton.tsx @@ -0,0 +1,78 @@ +import { Button } from "@/components/ui/Button"; +import { useWalletConnection } from "@/hooks/wallet/useWalletConnection"; +import type { Connector } from "wagmi"; + +interface WalletConnectorButtonProps { + connector?: Connector; + walletName: string; + walletIcon: string; + isInstalled: boolean; + onConnect: () => void; + disabled?: boolean; +} + +/** + * Single wallet connector button with icon and loading state + * Handles connection to a specific wallet connector + */ +export function WalletConnectorButton({ + connector, + walletName, + walletIcon, + isInstalled, + onConnect, + disabled, +}: WalletConnectorButtonProps) { + const { connect, isPending, connectingWalletId } = useWalletConnection({ + onSuccess: onConnect, + }); + + const isConnecting = connector && isPending && connectingWalletId === connector.id; + + const handleClick = () => { + // Only connect if wallet is installed and connector exists + if (!isInstalled || !connector) { + return; + } + connect(connector.id); + }; + + return ( + + ); +} diff --git a/src/components/wallet-connection/WalletConnectorList.tsx b/src/components/wallet-connection/WalletConnectorList.tsx new file mode 100644 index 000000000..a4eba5f1e --- /dev/null +++ b/src/components/wallet-connection/WalletConnectorList.tsx @@ -0,0 +1,96 @@ +import { useMemo } from "react"; +import { useConnect } from "wagmi"; +import type { Connector } from "wagmi"; +import { WalletConnectorButton } from "./WalletConnectorButton"; + +// import coinbaseIcon from "@/assets/wallets/coinbase.png"; +import metamaskIcon from "@/assets/wallets/metamask.png"; +import rabbyIcon from "@/assets/wallets/rabby.png"; +import walletconnectIcon from "@/assets/wallets/walletconnect.png"; + +interface WalletConnectorListProps { + onConnect?: () => void; +} + +interface WalletConfig { + id: string; + name: string; + icon: string; + checkInstalled?: () => boolean; +} + +const WALLET_ORDER: WalletConfig[] = [ + { + id: "rabby", + name: "Rabby Wallet", + icon: rabbyIcon, + checkInstalled: () => typeof window !== "undefined" && window.ethereum?.isRabby === true, + }, + { + id: "metamask", + name: "MetaMask", + icon: metamaskIcon, + checkInstalled: () => typeof window !== "undefined" && window.ethereum?.isMetaMask === true, + }, + { + id: "walletconnect", + name: "WalletConnect", + icon: walletconnectIcon, + checkInstalled: () => true, // WalletConnect is always available (QR code) + }, + // { + // id: "coinbase", + // name: "Coinbase Wallet", + // icon: coinbaseIcon, + // checkInstalled: () => true, // Coinbase Wallet can use QR code if extension not installed + // }, +]; + +/** + * List of wallet connectors in a fixed order + * Shows: Rabby, MetaMask, WalletConnect (Coinbase Wallet disabled) + */ +export function WalletConnectorList({ onConnect }: WalletConnectorListProps) { + const { connectors } = useConnect(); + + const orderedWallets = useMemo(() => { + return WALLET_ORDER.map((walletConfig) => { + // Find matching connector + const connector = connectors.find((c) => { + const idLower = c.id.toLowerCase(); + const nameLower = c.name.toLowerCase(); + const configIdLower = walletConfig.id.toLowerCase(); + + return ( + idLower.includes(configIdLower) || + nameLower.includes(configIdLower) || + (configIdLower === "walletconnect" && (c.type === "walletConnect" || c.type === "wallet_connect")) + ); + }); + + const isInstalled = walletConfig.checkInstalled?.() ?? false; + + return { + config: walletConfig, + connector, + isInstalled, + icon: walletConfig.icon, + }; + }); + }, [connectors]); + + return ( + <> + {orderedWallets.map(({ config, connector, isInstalled, icon }) => ( + onConnect?.()} + /> + ))} + + ); +} diff --git a/src/constants/analytics-events.ts b/src/constants/analytics-events.ts index e4f53127a..b2232b022 100644 --- a/src/constants/analytics-events.ts +++ b/src/constants/analytics-events.ts @@ -69,6 +69,7 @@ const WALLET_EVENTS = { PANEL_SWAP_NAVIGATE: "wallet_panel_swap_navigate", PANEL_SEND_NAVIGATE: "wallet_panel_send_navigate", PANEL_NFT_COLLECTION_NAVIGATE: "wallet_panel_nft_collection_navigate", + PANEL_FUND_WALLET: "wallet_panel_fund", // Wallet Management DISCONNECT_BUTTON_CLICK: "wallet_disconnect_button_click", diff --git a/src/constants/subgraph.ts b/src/constants/subgraph.ts index 3c427d3cf..207e0c65c 100644 --- a/src/constants/subgraph.ts +++ b/src/constants/subgraph.ts @@ -12,12 +12,12 @@ export const subgraphs: { [chainId: number]: { beanstalk: string; bean: string; basin: "https://graph.pinto.money/exchange", }, [localhost.id]: { - beanstalk: "https://graph.pinto.money/pintostalk-dev", + beanstalk: "https://graph.pinto.money/pintostalk", bean: "https://graph.pinto.money/pinto", basin: "https://graph.pinto.money/exchange", }, [41337]: { - beanstalk: "https://graph.pinto.money/pintostalk-dev", + beanstalk: "https://graph.pinto.money/pintostalk", bean: "https://graph.pinto.money/pinto", basin: "https://graph.pinto.money/exchange", }, diff --git a/src/generated/gql/exchange/graphql.ts b/src/generated/gql/exchange/graphql.ts index d65a9c621..bbafe59fd 100644 --- a/src/generated/gql/exchange/graphql.ts +++ b/src/generated/gql/exchange/graphql.ts @@ -17,15 +17,9 @@ export type Scalars = { BigDecimal: { input: any; output: any; } BigInt: { input: any; output: any; } Bytes: { input: any; output: any; } - /** - * 8 bytes signed integer - * - */ + /** 8 bytes signed integer */ Int8: { input: any; output: any; } - /** - * A string representation of microseconds UNIX timestamp (16 digits) - * - */ + /** A string representation of microseconds UNIX timestamp (16 digits) */ Timestamp: { input: any; output: any; } }; @@ -38,16 +32,16 @@ export type Account = { export type AccountTradesArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; -export type Account_Filter = { +export type AccountFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe>>; id?: InputMaybe; id_contains?: InputMaybe; id_gt?: InputMaybe; @@ -58,18 +52,18 @@ export type Account_Filter = { id_not?: InputMaybe; id_not_contains?: InputMaybe; id_not_in?: InputMaybe>; - or?: InputMaybe>>; - trades_?: InputMaybe; + or?: InputMaybe>>; + trades_?: InputMaybe; }; -export enum Account_OrderBy { - Id = 'id', - Trades = 'trades' +export enum AccountOrderBy { + id = 'id', + trades = 'trades' } -export enum Aggregation_Interval { - Day = 'day', - Hour = 'hour' +export enum AggregationInterval { + day = 'day', + hour = 'hour' } export type Aquifer = { @@ -83,16 +77,16 @@ export type Aquifer = { export type AquiferWellsArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; -export type Aquifer_Filter = { +export type AquiferFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe>>; id?: InputMaybe; id_contains?: InputMaybe; id_gt?: InputMaybe; @@ -103,13 +97,13 @@ export type Aquifer_Filter = { id_not?: InputMaybe; id_not_contains?: InputMaybe; id_not_in?: InputMaybe>; - or?: InputMaybe>>; - wells_?: InputMaybe; + or?: InputMaybe>>; + wells_?: InputMaybe; }; -export enum Aquifer_OrderBy { - Id = 'id', - Wells = 'wells' +export enum AquiferOrderBy { + id = 'id', + wells = 'wells' } export type Beanstalk = { @@ -191,10 +185,10 @@ export type Beanstalk = { export type BeanstalkWellsArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; export type BeanstalkDailySnapshot = { @@ -258,16 +252,16 @@ export type BeanstalkDailySnapshot = { export type BeanstalkDailySnapshotWellsArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; -export type BeanstalkDailySnapshot_Filter = { +export type BeanstalkDailySnapshotFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe>>; createdTimestamp?: InputMaybe; createdTimestamp_gt?: InputMaybe; createdTimestamp_gte?: InputMaybe; @@ -460,9 +454,9 @@ export type BeanstalkDailySnapshot_Filter = { lastUpdateTimestamp_lte?: InputMaybe; lastUpdateTimestamp_not?: InputMaybe; lastUpdateTimestamp_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; season?: InputMaybe; - season_?: InputMaybe; + season_?: InputMaybe; season_contains?: InputMaybe; season_contains_nocase?: InputMaybe; season_ends_with?: InputMaybe; @@ -491,7 +485,7 @@ export type BeanstalkDailySnapshot_Filter = { totalLiquidityUSD_not?: InputMaybe; totalLiquidityUSD_not_in?: InputMaybe>; wells?: InputMaybe>; - wells_?: InputMaybe; + wells_?: InputMaybe; wells_contains?: InputMaybe>; wells_contains_nocase?: InputMaybe>; wells_not?: InputMaybe>; @@ -499,37 +493,37 @@ export type BeanstalkDailySnapshot_Filter = { wells_not_contains_nocase?: InputMaybe>; }; -export enum BeanstalkDailySnapshot_OrderBy { - CreatedTimestamp = 'createdTimestamp', - CumulativeBuyVolumeUsd = 'cumulativeBuyVolumeUSD', - CumulativeConvertDownVolumeUsd = 'cumulativeConvertDownVolumeUSD', - CumulativeConvertNeutralTradeVolumeUsd = 'cumulativeConvertNeutralTradeVolumeUSD', - CumulativeConvertNeutralTransferVolumeUsd = 'cumulativeConvertNeutralTransferVolumeUSD', - CumulativeConvertUpVolumeUsd = 'cumulativeConvertUpVolumeUSD', - CumulativeConvertVolumeUsd = 'cumulativeConvertVolumeUSD', - CumulativeSellVolumeUsd = 'cumulativeSellVolumeUSD', - CumulativeTradeVolumeUsd = 'cumulativeTradeVolumeUSD', - CumulativeTransferVolumeUsd = 'cumulativeTransferVolumeUSD', - Day = 'day', - DeltaBuyVolumeUsd = 'deltaBuyVolumeUSD', - DeltaConvertDownVolumeUsd = 'deltaConvertDownVolumeUSD', - DeltaConvertNeutralTradeVolumeUsd = 'deltaConvertNeutralTradeVolumeUSD', - DeltaConvertNeutralTransferVolumeUsd = 'deltaConvertNeutralTransferVolumeUSD', - DeltaConvertUpVolumeUsd = 'deltaConvertUpVolumeUSD', - DeltaConvertVolumeUsd = 'deltaConvertVolumeUSD', - DeltaLiquidityUsd = 'deltaLiquidityUSD', - DeltaSellVolumeUsd = 'deltaSellVolumeUSD', - DeltaTradeVolumeUsd = 'deltaTradeVolumeUSD', - DeltaTransferVolumeUsd = 'deltaTransferVolumeUSD', - Id = 'id', - LastUpdateBlockNumber = 'lastUpdateBlockNumber', - LastUpdateTimestamp = 'lastUpdateTimestamp', - Season = 'season', - SeasonId = 'season__id', - SeasonSeason = 'season__season', - SeasonTimestamp = 'season__timestamp', - TotalLiquidityUsd = 'totalLiquidityUSD', - Wells = 'wells' +export enum BeanstalkDailySnapshotOrderBy { + createdTimestamp = 'createdTimestamp', + cumulativeBuyVolumeUSD = 'cumulativeBuyVolumeUSD', + cumulativeConvertDownVolumeUSD = 'cumulativeConvertDownVolumeUSD', + cumulativeConvertNeutralTradeVolumeUSD = 'cumulativeConvertNeutralTradeVolumeUSD', + cumulativeConvertNeutralTransferVolumeUSD = 'cumulativeConvertNeutralTransferVolumeUSD', + cumulativeConvertUpVolumeUSD = 'cumulativeConvertUpVolumeUSD', + cumulativeConvertVolumeUSD = 'cumulativeConvertVolumeUSD', + cumulativeSellVolumeUSD = 'cumulativeSellVolumeUSD', + cumulativeTradeVolumeUSD = 'cumulativeTradeVolumeUSD', + cumulativeTransferVolumeUSD = 'cumulativeTransferVolumeUSD', + day = 'day', + deltaBuyVolumeUSD = 'deltaBuyVolumeUSD', + deltaConvertDownVolumeUSD = 'deltaConvertDownVolumeUSD', + deltaConvertNeutralTradeVolumeUSD = 'deltaConvertNeutralTradeVolumeUSD', + deltaConvertNeutralTransferVolumeUSD = 'deltaConvertNeutralTransferVolumeUSD', + deltaConvertUpVolumeUSD = 'deltaConvertUpVolumeUSD', + deltaConvertVolumeUSD = 'deltaConvertVolumeUSD', + deltaLiquidityUSD = 'deltaLiquidityUSD', + deltaSellVolumeUSD = 'deltaSellVolumeUSD', + deltaTradeVolumeUSD = 'deltaTradeVolumeUSD', + deltaTransferVolumeUSD = 'deltaTransferVolumeUSD', + id = 'id', + lastUpdateBlockNumber = 'lastUpdateBlockNumber', + lastUpdateTimestamp = 'lastUpdateTimestamp', + season = 'season', + season__id = 'season__id', + season__season = 'season__season', + season__timestamp = 'season__timestamp', + totalLiquidityUSD = 'totalLiquidityUSD', + wells = 'wells' } export type BeanstalkHourlySnapshot = { @@ -591,16 +585,16 @@ export type BeanstalkHourlySnapshot = { export type BeanstalkHourlySnapshotWellsArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; -export type BeanstalkHourlySnapshot_Filter = { +export type BeanstalkHourlySnapshotFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe>>; createdTimestamp?: InputMaybe; createdTimestamp_gt?: InputMaybe; createdTimestamp_gte?: InputMaybe; @@ -785,9 +779,9 @@ export type BeanstalkHourlySnapshot_Filter = { lastUpdateTimestamp_lte?: InputMaybe; lastUpdateTimestamp_not?: InputMaybe; lastUpdateTimestamp_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; season?: InputMaybe; - season_?: InputMaybe; + season_?: InputMaybe; season_contains?: InputMaybe; season_contains_nocase?: InputMaybe; season_ends_with?: InputMaybe; @@ -816,7 +810,7 @@ export type BeanstalkHourlySnapshot_Filter = { totalLiquidityUSD_not?: InputMaybe; totalLiquidityUSD_not_in?: InputMaybe>; wells?: InputMaybe>; - wells_?: InputMaybe; + wells_?: InputMaybe; wells_contains?: InputMaybe>; wells_contains_nocase?: InputMaybe>; wells_not?: InputMaybe>; @@ -824,42 +818,42 @@ export type BeanstalkHourlySnapshot_Filter = { wells_not_contains_nocase?: InputMaybe>; }; -export enum BeanstalkHourlySnapshot_OrderBy { - CreatedTimestamp = 'createdTimestamp', - CumulativeBuyVolumeUsd = 'cumulativeBuyVolumeUSD', - CumulativeConvertDownVolumeUsd = 'cumulativeConvertDownVolumeUSD', - CumulativeConvertNeutralTradeVolumeUsd = 'cumulativeConvertNeutralTradeVolumeUSD', - CumulativeConvertNeutralTransferVolumeUsd = 'cumulativeConvertNeutralTransferVolumeUSD', - CumulativeConvertUpVolumeUsd = 'cumulativeConvertUpVolumeUSD', - CumulativeConvertVolumeUsd = 'cumulativeConvertVolumeUSD', - CumulativeSellVolumeUsd = 'cumulativeSellVolumeUSD', - CumulativeTradeVolumeUsd = 'cumulativeTradeVolumeUSD', - CumulativeTransferVolumeUsd = 'cumulativeTransferVolumeUSD', - DeltaBuyVolumeUsd = 'deltaBuyVolumeUSD', - DeltaConvertDownVolumeUsd = 'deltaConvertDownVolumeUSD', - DeltaConvertNeutralTradeVolumeUsd = 'deltaConvertNeutralTradeVolumeUSD', - DeltaConvertNeutralTransferVolumeUsd = 'deltaConvertNeutralTransferVolumeUSD', - DeltaConvertUpVolumeUsd = 'deltaConvertUpVolumeUSD', - DeltaConvertVolumeUsd = 'deltaConvertVolumeUSD', - DeltaLiquidityUsd = 'deltaLiquidityUSD', - DeltaSellVolumeUsd = 'deltaSellVolumeUSD', - DeltaTradeVolumeUsd = 'deltaTradeVolumeUSD', - DeltaTransferVolumeUsd = 'deltaTransferVolumeUSD', - Id = 'id', - LastUpdateBlockNumber = 'lastUpdateBlockNumber', - LastUpdateTimestamp = 'lastUpdateTimestamp', - Season = 'season', - SeasonId = 'season__id', - SeasonSeason = 'season__season', - SeasonTimestamp = 'season__timestamp', - TotalLiquidityUsd = 'totalLiquidityUSD', - Wells = 'wells' +export enum BeanstalkHourlySnapshotOrderBy { + createdTimestamp = 'createdTimestamp', + cumulativeBuyVolumeUSD = 'cumulativeBuyVolumeUSD', + cumulativeConvertDownVolumeUSD = 'cumulativeConvertDownVolumeUSD', + cumulativeConvertNeutralTradeVolumeUSD = 'cumulativeConvertNeutralTradeVolumeUSD', + cumulativeConvertNeutralTransferVolumeUSD = 'cumulativeConvertNeutralTransferVolumeUSD', + cumulativeConvertUpVolumeUSD = 'cumulativeConvertUpVolumeUSD', + cumulativeConvertVolumeUSD = 'cumulativeConvertVolumeUSD', + cumulativeSellVolumeUSD = 'cumulativeSellVolumeUSD', + cumulativeTradeVolumeUSD = 'cumulativeTradeVolumeUSD', + cumulativeTransferVolumeUSD = 'cumulativeTransferVolumeUSD', + deltaBuyVolumeUSD = 'deltaBuyVolumeUSD', + deltaConvertDownVolumeUSD = 'deltaConvertDownVolumeUSD', + deltaConvertNeutralTradeVolumeUSD = 'deltaConvertNeutralTradeVolumeUSD', + deltaConvertNeutralTransferVolumeUSD = 'deltaConvertNeutralTransferVolumeUSD', + deltaConvertUpVolumeUSD = 'deltaConvertUpVolumeUSD', + deltaConvertVolumeUSD = 'deltaConvertVolumeUSD', + deltaLiquidityUSD = 'deltaLiquidityUSD', + deltaSellVolumeUSD = 'deltaSellVolumeUSD', + deltaTradeVolumeUSD = 'deltaTradeVolumeUSD', + deltaTransferVolumeUSD = 'deltaTransferVolumeUSD', + id = 'id', + lastUpdateBlockNumber = 'lastUpdateBlockNumber', + lastUpdateTimestamp = 'lastUpdateTimestamp', + season = 'season', + season__id = 'season__id', + season__season = 'season__season', + season__timestamp = 'season__timestamp', + totalLiquidityUSD = 'totalLiquidityUSD', + wells = 'wells' } -export type Beanstalk_Filter = { +export type BeanstalkFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe>>; createdTimestamp?: InputMaybe; createdTimestamp_gt?: InputMaybe; createdTimestamp_gte?: InputMaybe; @@ -965,7 +959,7 @@ export type Beanstalk_Filter = { lastHourlySnapshotSeason_not?: InputMaybe; lastHourlySnapshotSeason_not_in?: InputMaybe>; lastSeason?: InputMaybe; - lastSeason_?: InputMaybe; + lastSeason_?: InputMaybe; lastSeason_contains?: InputMaybe; lastSeason_contains_nocase?: InputMaybe; lastSeason_ends_with?: InputMaybe; @@ -1001,7 +995,7 @@ export type Beanstalk_Filter = { lastUpdateTimestamp_lte?: InputMaybe; lastUpdateTimestamp_not?: InputMaybe; lastUpdateTimestamp_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; rollingDailyBuyVolumeUSD?: InputMaybe; rollingDailyBuyVolumeUSD_gt?: InputMaybe; rollingDailyBuyVolumeUSD_gte?: InputMaybe; @@ -1155,7 +1149,7 @@ export type Beanstalk_Filter = { totalLiquidityUSD_not?: InputMaybe; totalLiquidityUSD_not_in?: InputMaybe>; wells?: InputMaybe>; - wells_?: InputMaybe; + wells_?: InputMaybe; wells_contains?: InputMaybe>; wells_contains_nocase?: InputMaybe>; wells_not?: InputMaybe>; @@ -1163,53 +1157,53 @@ export type Beanstalk_Filter = { wells_not_contains_nocase?: InputMaybe>; }; -export enum Beanstalk_OrderBy { - CreatedTimestamp = 'createdTimestamp', - CumulativeBuyVolumeUsd = 'cumulativeBuyVolumeUSD', - CumulativeConvertDownVolumeUsd = 'cumulativeConvertDownVolumeUSD', - CumulativeConvertNeutralTradeVolumeUsd = 'cumulativeConvertNeutralTradeVolumeUSD', - CumulativeConvertNeutralTransferVolumeUsd = 'cumulativeConvertNeutralTransferVolumeUSD', - CumulativeConvertUpVolumeUsd = 'cumulativeConvertUpVolumeUSD', - CumulativeConvertVolumeUsd = 'cumulativeConvertVolumeUSD', - CumulativeSellVolumeUsd = 'cumulativeSellVolumeUSD', - CumulativeTradeVolumeUsd = 'cumulativeTradeVolumeUSD', - CumulativeTransferVolumeUsd = 'cumulativeTransferVolumeUSD', - Id = 'id', - LastDailySnapshotDay = 'lastDailySnapshotDay', - LastHourlySnapshotSeason = 'lastHourlySnapshotSeason', - LastSeason = 'lastSeason', - LastSeasonId = 'lastSeason__id', - LastSeasonSeason = 'lastSeason__season', - LastSeasonTimestamp = 'lastSeason__timestamp', - LastUpdateBlockNumber = 'lastUpdateBlockNumber', - LastUpdateTimestamp = 'lastUpdateTimestamp', - RollingDailyBuyVolumeUsd = 'rollingDailyBuyVolumeUSD', - RollingDailyConvertDownVolumeUsd = 'rollingDailyConvertDownVolumeUSD', - RollingDailyConvertNeutralTradeVolumeUsd = 'rollingDailyConvertNeutralTradeVolumeUSD', - RollingDailyConvertNeutralTransferVolumeUsd = 'rollingDailyConvertNeutralTransferVolumeUSD', - RollingDailyConvertUpVolumeUsd = 'rollingDailyConvertUpVolumeUSD', - RollingDailyConvertVolumeUsd = 'rollingDailyConvertVolumeUSD', - RollingDailySellVolumeUsd = 'rollingDailySellVolumeUSD', - RollingDailyTradeVolumeUsd = 'rollingDailyTradeVolumeUSD', - RollingDailyTransferVolumeUsd = 'rollingDailyTransferVolumeUSD', - RollingWeeklyBuyVolumeUsd = 'rollingWeeklyBuyVolumeUSD', - RollingWeeklyConvertDownVolumeUsd = 'rollingWeeklyConvertDownVolumeUSD', - RollingWeeklyConvertNeutralTradeVolumeUsd = 'rollingWeeklyConvertNeutralTradeVolumeUSD', - RollingWeeklyConvertNeutralTransferVolumeUsd = 'rollingWeeklyConvertNeutralTransferVolumeUSD', - RollingWeeklyConvertUpVolumeUsd = 'rollingWeeklyConvertUpVolumeUSD', - RollingWeeklyConvertVolumeUsd = 'rollingWeeklyConvertVolumeUSD', - RollingWeeklySellVolumeUsd = 'rollingWeeklySellVolumeUSD', - RollingWeeklyTradeVolumeUsd = 'rollingWeeklyTradeVolumeUSD', - RollingWeeklyTransferVolumeUsd = 'rollingWeeklyTransferVolumeUSD', - TotalLiquidityUsd = 'totalLiquidityUSD', - Wells = 'wells' +export enum BeanstalkOrderBy { + createdTimestamp = 'createdTimestamp', + cumulativeBuyVolumeUSD = 'cumulativeBuyVolumeUSD', + cumulativeConvertDownVolumeUSD = 'cumulativeConvertDownVolumeUSD', + cumulativeConvertNeutralTradeVolumeUSD = 'cumulativeConvertNeutralTradeVolumeUSD', + cumulativeConvertNeutralTransferVolumeUSD = 'cumulativeConvertNeutralTransferVolumeUSD', + cumulativeConvertUpVolumeUSD = 'cumulativeConvertUpVolumeUSD', + cumulativeConvertVolumeUSD = 'cumulativeConvertVolumeUSD', + cumulativeSellVolumeUSD = 'cumulativeSellVolumeUSD', + cumulativeTradeVolumeUSD = 'cumulativeTradeVolumeUSD', + cumulativeTransferVolumeUSD = 'cumulativeTransferVolumeUSD', + id = 'id', + lastDailySnapshotDay = 'lastDailySnapshotDay', + lastHourlySnapshotSeason = 'lastHourlySnapshotSeason', + lastSeason = 'lastSeason', + lastSeason__id = 'lastSeason__id', + lastSeason__season = 'lastSeason__season', + lastSeason__timestamp = 'lastSeason__timestamp', + lastUpdateBlockNumber = 'lastUpdateBlockNumber', + lastUpdateTimestamp = 'lastUpdateTimestamp', + rollingDailyBuyVolumeUSD = 'rollingDailyBuyVolumeUSD', + rollingDailyConvertDownVolumeUSD = 'rollingDailyConvertDownVolumeUSD', + rollingDailyConvertNeutralTradeVolumeUSD = 'rollingDailyConvertNeutralTradeVolumeUSD', + rollingDailyConvertNeutralTransferVolumeUSD = 'rollingDailyConvertNeutralTransferVolumeUSD', + rollingDailyConvertUpVolumeUSD = 'rollingDailyConvertUpVolumeUSD', + rollingDailyConvertVolumeUSD = 'rollingDailyConvertVolumeUSD', + rollingDailySellVolumeUSD = 'rollingDailySellVolumeUSD', + rollingDailyTradeVolumeUSD = 'rollingDailyTradeVolumeUSD', + rollingDailyTransferVolumeUSD = 'rollingDailyTransferVolumeUSD', + rollingWeeklyBuyVolumeUSD = 'rollingWeeklyBuyVolumeUSD', + rollingWeeklyConvertDownVolumeUSD = 'rollingWeeklyConvertDownVolumeUSD', + rollingWeeklyConvertNeutralTradeVolumeUSD = 'rollingWeeklyConvertNeutralTradeVolumeUSD', + rollingWeeklyConvertNeutralTransferVolumeUSD = 'rollingWeeklyConvertNeutralTransferVolumeUSD', + rollingWeeklyConvertUpVolumeUSD = 'rollingWeeklyConvertUpVolumeUSD', + rollingWeeklyConvertVolumeUSD = 'rollingWeeklyConvertVolumeUSD', + rollingWeeklySellVolumeUSD = 'rollingWeeklySellVolumeUSD', + rollingWeeklyTradeVolumeUSD = 'rollingWeeklyTradeVolumeUSD', + rollingWeeklyTransferVolumeUSD = 'rollingWeeklyTransferVolumeUSD', + totalLiquidityUSD = 'totalLiquidityUSD', + wells = 'wells' } export type BlockChangedFilter = { number_gte: Scalars['Int']['input']; }; -export type Block_Height = { +export type BlockHeight = { hash?: InputMaybe; number?: InputMaybe; number_gte?: InputMaybe; @@ -1225,11 +1219,11 @@ export type ConvertCandidate = { removeLiquidityTrade?: Maybe; }; -export type ConvertCandidate_Filter = { +export type ConvertCandidateFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; addLiquidityTrade?: InputMaybe; - addLiquidityTrade_?: InputMaybe; + addLiquidityTrade_?: InputMaybe; addLiquidityTrade_contains?: InputMaybe; addLiquidityTrade_contains_nocase?: InputMaybe; addLiquidityTrade_ends_with?: InputMaybe; @@ -1249,7 +1243,7 @@ export type ConvertCandidate_Filter = { addLiquidityTrade_not_starts_with_nocase?: InputMaybe; addLiquidityTrade_starts_with?: InputMaybe; addLiquidityTrade_starts_with_nocase?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe>>; id?: InputMaybe; id_gt?: InputMaybe; id_gte?: InputMaybe; @@ -1258,9 +1252,9 @@ export type ConvertCandidate_Filter = { id_lte?: InputMaybe; id_not?: InputMaybe; id_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; removeLiquidityTrade?: InputMaybe; - removeLiquidityTrade_?: InputMaybe; + removeLiquidityTrade_?: InputMaybe; removeLiquidityTrade_contains?: InputMaybe; removeLiquidityTrade_contains_nocase?: InputMaybe; removeLiquidityTrade_ends_with?: InputMaybe; @@ -1282,34 +1276,34 @@ export type ConvertCandidate_Filter = { removeLiquidityTrade_starts_with_nocase?: InputMaybe; }; -export enum ConvertCandidate_OrderBy { - AddLiquidityTrade = 'addLiquidityTrade', - AddLiquidityTradeBlockNumber = 'addLiquidityTrade__blockNumber', - AddLiquidityTradeHash = 'addLiquidityTrade__hash', - AddLiquidityTradeId = 'addLiquidityTrade__id', - AddLiquidityTradeIsConvert = 'addLiquidityTrade__isConvert', - AddLiquidityTradeLiqLpTokenAmount = 'addLiquidityTrade__liqLpTokenAmount', - AddLiquidityTradeLogIndex = 'addLiquidityTrade__logIndex', - AddLiquidityTradeSwapAmountIn = 'addLiquidityTrade__swapAmountIn', - AddLiquidityTradeSwapAmountOut = 'addLiquidityTrade__swapAmountOut', - AddLiquidityTradeTimestamp = 'addLiquidityTrade__timestamp', - AddLiquidityTradeTradeType = 'addLiquidityTrade__tradeType', - AddLiquidityTradeTradeVolumeUsd = 'addLiquidityTrade__tradeVolumeUSD', - AddLiquidityTradeTransferVolumeUsd = 'addLiquidityTrade__transferVolumeUSD', - Id = 'id', - RemoveLiquidityTrade = 'removeLiquidityTrade', - RemoveLiquidityTradeBlockNumber = 'removeLiquidityTrade__blockNumber', - RemoveLiquidityTradeHash = 'removeLiquidityTrade__hash', - RemoveLiquidityTradeId = 'removeLiquidityTrade__id', - RemoveLiquidityTradeIsConvert = 'removeLiquidityTrade__isConvert', - RemoveLiquidityTradeLiqLpTokenAmount = 'removeLiquidityTrade__liqLpTokenAmount', - RemoveLiquidityTradeLogIndex = 'removeLiquidityTrade__logIndex', - RemoveLiquidityTradeSwapAmountIn = 'removeLiquidityTrade__swapAmountIn', - RemoveLiquidityTradeSwapAmountOut = 'removeLiquidityTrade__swapAmountOut', - RemoveLiquidityTradeTimestamp = 'removeLiquidityTrade__timestamp', - RemoveLiquidityTradeTradeType = 'removeLiquidityTrade__tradeType', - RemoveLiquidityTradeTradeVolumeUsd = 'removeLiquidityTrade__tradeVolumeUSD', - RemoveLiquidityTradeTransferVolumeUsd = 'removeLiquidityTrade__transferVolumeUSD' +export enum ConvertCandidateOrderBy { + addLiquidityTrade = 'addLiquidityTrade', + addLiquidityTrade__blockNumber = 'addLiquidityTrade__blockNumber', + addLiquidityTrade__hash = 'addLiquidityTrade__hash', + addLiquidityTrade__id = 'addLiquidityTrade__id', + addLiquidityTrade__isConvert = 'addLiquidityTrade__isConvert', + addLiquidityTrade__liqLpTokenAmount = 'addLiquidityTrade__liqLpTokenAmount', + addLiquidityTrade__logIndex = 'addLiquidityTrade__logIndex', + addLiquidityTrade__swapAmountIn = 'addLiquidityTrade__swapAmountIn', + addLiquidityTrade__swapAmountOut = 'addLiquidityTrade__swapAmountOut', + addLiquidityTrade__timestamp = 'addLiquidityTrade__timestamp', + addLiquidityTrade__tradeType = 'addLiquidityTrade__tradeType', + addLiquidityTrade__tradeVolumeUSD = 'addLiquidityTrade__tradeVolumeUSD', + addLiquidityTrade__transferVolumeUSD = 'addLiquidityTrade__transferVolumeUSD', + id = 'id', + removeLiquidityTrade = 'removeLiquidityTrade', + removeLiquidityTrade__blockNumber = 'removeLiquidityTrade__blockNumber', + removeLiquidityTrade__hash = 'removeLiquidityTrade__hash', + removeLiquidityTrade__id = 'removeLiquidityTrade__id', + removeLiquidityTrade__isConvert = 'removeLiquidityTrade__isConvert', + removeLiquidityTrade__liqLpTokenAmount = 'removeLiquidityTrade__liqLpTokenAmount', + removeLiquidityTrade__logIndex = 'removeLiquidityTrade__logIndex', + removeLiquidityTrade__swapAmountIn = 'removeLiquidityTrade__swapAmountIn', + removeLiquidityTrade__swapAmountOut = 'removeLiquidityTrade__swapAmountOut', + removeLiquidityTrade__timestamp = 'removeLiquidityTrade__timestamp', + removeLiquidityTrade__tradeType = 'removeLiquidityTrade__tradeType', + removeLiquidityTrade__tradeVolumeUSD = 'removeLiquidityTrade__tradeVolumeUSD', + removeLiquidityTrade__transferVolumeUSD = 'removeLiquidityTrade__transferVolumeUSD' } export type Implementation = { @@ -1323,16 +1317,16 @@ export type Implementation = { export type ImplementationWellsArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; -export type Implementation_Filter = { +export type ImplementationFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe>>; id?: InputMaybe; id_contains?: InputMaybe; id_gt?: InputMaybe; @@ -1343,19 +1337,19 @@ export type Implementation_Filter = { id_not?: InputMaybe; id_not_contains?: InputMaybe; id_not_in?: InputMaybe>; - or?: InputMaybe>>; - wells_?: InputMaybe; + or?: InputMaybe>>; + wells_?: InputMaybe; }; -export enum Implementation_OrderBy { - Id = 'id', - Wells = 'wells' +export enum ImplementationOrderBy { + id = 'id', + wells = 'wells' } /** Defines the order direction, either ascending or descending */ export enum OrderDirection { - Asc = 'asc', - Desc = 'desc' + asc = 'asc', + desc = 'desc' } export type Pump = { @@ -1369,16 +1363,16 @@ export type Pump = { export type PumpWellsArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; -export type Pump_Filter = { +export type PumpFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe>>; id?: InputMaybe; id_contains?: InputMaybe; id_gt?: InputMaybe; @@ -1389,19 +1383,19 @@ export type Pump_Filter = { id_not?: InputMaybe; id_not_contains?: InputMaybe; id_not_in?: InputMaybe>; - or?: InputMaybe>>; - wells_?: InputMaybe; + or?: InputMaybe>>; + wells_?: InputMaybe; }; -export enum Pump_OrderBy { - Id = 'id', - Wells = 'wells' +export enum PumpOrderBy { + id = 'id', + wells = 'wells' } export type Query = { __typename?: 'Query'; /** Access to subgraph metadata */ - _meta?: Maybe<_Meta_>; + _meta?: Maybe; account?: Maybe; accounts: Array; aquifer?: Maybe; @@ -1439,314 +1433,314 @@ export type Query = { }; -export type Query_MetaArgs = { - block?: InputMaybe; +export type QueryMetaArgs = { + block?: InputMaybe; }; export type QueryAccountArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryAccountsArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryAquiferArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryAquifersArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryBeanstalkArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryBeanstalkDailySnapshotArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryBeanstalkDailySnapshotsArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryBeanstalkHourlySnapshotArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryBeanstalkHourlySnapshotsArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryBeanstalksArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryConvertCandidateArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryConvertCandidatesArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryImplementationArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryImplementationsArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryPumpArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryPumpsArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QuerySeasonArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QuerySeasonsArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryTokenArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryTokensArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryTradeArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryTradesArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryVersionArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryVersionsArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryWellArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryWellDailySnapshotArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryWellDailySnapshotsArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryWellFunctionArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryWellFunctionsArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryWellHourlySnapshotArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryWellHourlySnapshotsArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryWellUpgradeHistoriesArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryWellUpgradeHistoryArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryWellsArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type Season = { @@ -1766,45 +1760,45 @@ export type Season = { export type SeasonBeanstalkDailySnapshotsArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; export type SeasonBeanstalkHourlySnapshotsArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; export type SeasonWellDailySnapshotsArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; export type SeasonWellHourlySnapshotsArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; -export type Season_Filter = { +export type SeasonFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - and?: InputMaybe>>; - beanstalkDailySnapshots_?: InputMaybe; - beanstalkHourlySnapshots_?: InputMaybe; + and?: InputMaybe>>; + beanstalkDailySnapshots_?: InputMaybe; + beanstalkHourlySnapshots_?: InputMaybe; id?: InputMaybe; id_gt?: InputMaybe; id_gte?: InputMaybe; @@ -1813,7 +1807,7 @@ export type Season_Filter = { id_lte?: InputMaybe; id_not?: InputMaybe; id_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; season?: InputMaybe; season_gt?: InputMaybe; season_gte?: InputMaybe; @@ -1830,371 +1824,20 @@ export type Season_Filter = { timestamp_lte?: InputMaybe; timestamp_not?: InputMaybe; timestamp_not_in?: InputMaybe>; - wellDailySnapshots_?: InputMaybe; - wellHourlySnapshots_?: InputMaybe; -}; - -export enum Season_OrderBy { - BeanstalkDailySnapshots = 'beanstalkDailySnapshots', - BeanstalkHourlySnapshots = 'beanstalkHourlySnapshots', - Id = 'id', - Season = 'season', - Timestamp = 'timestamp', - WellDailySnapshots = 'wellDailySnapshots', - WellHourlySnapshots = 'wellHourlySnapshots' + wellDailySnapshots_?: InputMaybe; + wellHourlySnapshots_?: InputMaybe; +}; + +export enum SeasonOrderBy { + beanstalkDailySnapshots = 'beanstalkDailySnapshots', + beanstalkHourlySnapshots = 'beanstalkHourlySnapshots', + id = 'id', + season = 'season', + timestamp = 'timestamp', + wellDailySnapshots = 'wellDailySnapshots', + wellHourlySnapshots = 'wellHourlySnapshots' } -export type Subscription = { - __typename?: 'Subscription'; - /** Access to subgraph metadata */ - _meta?: Maybe<_Meta_>; - account?: Maybe; - accounts: Array; - aquifer?: Maybe; - aquifers: Array; - beanstalk?: Maybe; - beanstalkDailySnapshot?: Maybe; - beanstalkDailySnapshots: Array; - beanstalkHourlySnapshot?: Maybe; - beanstalkHourlySnapshots: Array; - beanstalks: Array; - convertCandidate?: Maybe; - convertCandidates: Array; - implementation?: Maybe; - implementations: Array; - pump?: Maybe; - pumps: Array; - season?: Maybe; - seasons: Array; - token?: Maybe; - tokens: Array; - trade?: Maybe; - trades: Array; - version?: Maybe; - versions: Array; - well?: Maybe; - wellDailySnapshot?: Maybe; - wellDailySnapshots: Array; - wellFunction?: Maybe; - wellFunctions: Array; - wellHourlySnapshot?: Maybe; - wellHourlySnapshots: Array; - wellUpgradeHistories: Array; - wellUpgradeHistory?: Maybe; - wells: Array; -}; - - -export type Subscription_MetaArgs = { - block?: InputMaybe; -}; - - -export type SubscriptionAccountArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionAccountsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionAquiferArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionAquifersArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionBeanstalkArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionBeanstalkDailySnapshotArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionBeanstalkDailySnapshotsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionBeanstalkHourlySnapshotArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionBeanstalkHourlySnapshotsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionBeanstalksArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionConvertCandidateArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionConvertCandidatesArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionImplementationArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionImplementationsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionPumpArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionPumpsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionSeasonArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionSeasonsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionTokenArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionTokensArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionTradeArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionTradesArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionVersionArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionVersionsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionWellArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionWellDailySnapshotArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionWellDailySnapshotsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionWellFunctionArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionWellFunctionsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionWellHourlySnapshotArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionWellHourlySnapshotsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionWellUpgradeHistoriesArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionWellUpgradeHistoryArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionWellsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - export type Token = { __typename?: 'Token'; /** The number of decimal places this token uses, default to 18 */ @@ -2211,10 +1854,10 @@ export type Token = { symbol: Scalars['String']['output']; }; -export type Token_Filter = { +export type TokenFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe>>; decimals?: InputMaybe; decimals_gt?: InputMaybe; decimals_gte?: InputMaybe; @@ -2269,7 +1912,7 @@ export type Token_Filter = { name_not_starts_with_nocase?: InputMaybe; name_starts_with?: InputMaybe; name_starts_with_nocase?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe>>; symbol?: InputMaybe; symbol_contains?: InputMaybe; symbol_contains_nocase?: InputMaybe; @@ -2292,13 +1935,13 @@ export type Token_Filter = { symbol_starts_with_nocase?: InputMaybe; }; -export enum Token_OrderBy { - Decimals = 'decimals', - Id = 'id', - LastPriceBlockNumber = 'lastPriceBlockNumber', - LastPriceUsd = 'lastPriceUSD', - Name = 'name', - Symbol = 'symbol' +export enum TokenOrderBy { + decimals = 'decimals', + id = 'id', + lastPriceBlockNumber = 'lastPriceBlockNumber', + lastPriceUSD = 'lastPriceUSD', + name = 'name', + symbol = 'symbol' } export type Trade = { @@ -2358,16 +2001,16 @@ export type Trade = { }; export enum TradeType { - AddLiquidity = 'ADD_LIQUIDITY', - RemoveLiquidity = 'REMOVE_LIQUIDITY', - Swap = 'SWAP' + ADD_LIQUIDITY = 'ADD_LIQUIDITY', + REMOVE_LIQUIDITY = 'REMOVE_LIQUIDITY', + SWAP = 'SWAP' } -export type Trade_Filter = { +export type TradeFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; account?: InputMaybe; - account_?: InputMaybe; + account_?: InputMaybe; account_contains?: InputMaybe; account_contains_nocase?: InputMaybe; account_ends_with?: InputMaybe; @@ -2399,7 +2042,7 @@ export type Trade_Filter = { afterTokenRates_not?: InputMaybe>; afterTokenRates_not_contains?: InputMaybe>; afterTokenRates_not_contains_nocase?: InputMaybe>; - and?: InputMaybe>>; + and?: InputMaybe>>; beforeReserves?: InputMaybe>; beforeReserves_contains?: InputMaybe>; beforeReserves_contains_nocase?: InputMaybe>; @@ -2470,7 +2113,7 @@ export type Trade_Filter = { logIndex_lte?: InputMaybe; logIndex_not?: InputMaybe; logIndex_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; swapAmountIn?: InputMaybe; swapAmountIn_gt?: InputMaybe; swapAmountIn_gte?: InputMaybe; @@ -2488,7 +2131,7 @@ export type Trade_Filter = { swapAmountOut_not?: InputMaybe; swapAmountOut_not_in?: InputMaybe>; swapFromToken?: InputMaybe; - swapFromToken_?: InputMaybe; + swapFromToken_?: InputMaybe; swapFromToken_contains?: InputMaybe; swapFromToken_contains_nocase?: InputMaybe; swapFromToken_ends_with?: InputMaybe; @@ -2509,7 +2152,7 @@ export type Trade_Filter = { swapFromToken_starts_with?: InputMaybe; swapFromToken_starts_with_nocase?: InputMaybe; swapToToken?: InputMaybe; - swapToToken_?: InputMaybe; + swapToToken_?: InputMaybe; swapToToken_contains?: InputMaybe; swapToToken_contains_nocase?: InputMaybe; swapToToken_ends_with?: InputMaybe; @@ -2582,7 +2225,7 @@ export type Trade_Filter = { transferVolumeUSD_not?: InputMaybe; transferVolumeUSD_not_in?: InputMaybe>; well?: InputMaybe; - well_?: InputMaybe; + well_?: InputMaybe; well_contains?: InputMaybe; well_contains_nocase?: InputMaybe; well_ends_with?: InputMaybe; @@ -2604,68 +2247,68 @@ export type Trade_Filter = { well_starts_with_nocase?: InputMaybe; }; -export enum Trade_OrderBy { - Account = 'account', - AccountId = 'account__id', - AfterReserves = 'afterReserves', - AfterTokenRates = 'afterTokenRates', - BeforeReserves = 'beforeReserves', - BeforeTokenRates = 'beforeTokenRates', - BiTradeVolumeReserves = 'biTradeVolumeReserves', - BlockNumber = 'blockNumber', - Hash = 'hash', - Id = 'id', - IsConvert = 'isConvert', - LiqLpTokenAmount = 'liqLpTokenAmount', - LiqReservesAmount = 'liqReservesAmount', - LogIndex = 'logIndex', - SwapAmountIn = 'swapAmountIn', - SwapAmountOut = 'swapAmountOut', - SwapFromToken = 'swapFromToken', - SwapFromTokenDecimals = 'swapFromToken__decimals', - SwapFromTokenId = 'swapFromToken__id', - SwapFromTokenLastPriceBlockNumber = 'swapFromToken__lastPriceBlockNumber', - SwapFromTokenLastPriceUsd = 'swapFromToken__lastPriceUSD', - SwapFromTokenName = 'swapFromToken__name', - SwapFromTokenSymbol = 'swapFromToken__symbol', - SwapToToken = 'swapToToken', - SwapToTokenDecimals = 'swapToToken__decimals', - SwapToTokenId = 'swapToToken__id', - SwapToTokenLastPriceBlockNumber = 'swapToToken__lastPriceBlockNumber', - SwapToTokenLastPriceUsd = 'swapToToken__lastPriceUSD', - SwapToTokenName = 'swapToToken__name', - SwapToTokenSymbol = 'swapToToken__symbol', - Timestamp = 'timestamp', - TradeType = 'tradeType', - TradeVolumeReserves = 'tradeVolumeReserves', - TradeVolumeReservesUsd = 'tradeVolumeReservesUSD', - TradeVolumeUsd = 'tradeVolumeUSD', - TransferVolumeReserves = 'transferVolumeReserves', - TransferVolumeReservesUsd = 'transferVolumeReservesUSD', - TransferVolumeUsd = 'transferVolumeUSD', - Well = 'well', - WellBoredWell = 'well__boredWell', - WellConvertVolumeUsd = 'well__convertVolumeUSD', - WellCreatedTimestamp = 'well__createdTimestamp', - WellCumulativeTradeVolumeUsd = 'well__cumulativeTradeVolumeUSD', - WellCumulativeTransferVolumeUsd = 'well__cumulativeTransferVolumeUSD', - WellId = 'well__id', - WellIsBeanstalk = 'well__isBeanstalk', - WellLastDailySnapshotDay = 'well__lastDailySnapshotDay', - WellLastHourlySnapshotHour = 'well__lastHourlySnapshotHour', - WellLastUpdateBlockNumber = 'well__lastUpdateBlockNumber', - WellLastUpdateTimestamp = 'well__lastUpdateTimestamp', - WellLpTokenSupply = 'well__lpTokenSupply', - WellName = 'well__name', - WellRollingDailyConvertVolumeUsd = 'well__rollingDailyConvertVolumeUSD', - WellRollingDailyTradeVolumeUsd = 'well__rollingDailyTradeVolumeUSD', - WellRollingDailyTransferVolumeUsd = 'well__rollingDailyTransferVolumeUSD', - WellRollingWeeklyConvertVolumeUsd = 'well__rollingWeeklyConvertVolumeUSD', - WellRollingWeeklyTradeVolumeUsd = 'well__rollingWeeklyTradeVolumeUSD', - WellRollingWeeklyTransferVolumeUsd = 'well__rollingWeeklyTransferVolumeUSD', - WellSymbol = 'well__symbol', - WellTotalLiquidityUsd = 'well__totalLiquidityUSD', - WellWellFunctionData = 'well__wellFunctionData' +export enum TradeOrderBy { + account = 'account', + account__id = 'account__id', + afterReserves = 'afterReserves', + afterTokenRates = 'afterTokenRates', + beforeReserves = 'beforeReserves', + beforeTokenRates = 'beforeTokenRates', + biTradeVolumeReserves = 'biTradeVolumeReserves', + blockNumber = 'blockNumber', + hash = 'hash', + id = 'id', + isConvert = 'isConvert', + liqLpTokenAmount = 'liqLpTokenAmount', + liqReservesAmount = 'liqReservesAmount', + logIndex = 'logIndex', + swapAmountIn = 'swapAmountIn', + swapAmountOut = 'swapAmountOut', + swapFromToken = 'swapFromToken', + swapFromToken__decimals = 'swapFromToken__decimals', + swapFromToken__id = 'swapFromToken__id', + swapFromToken__lastPriceBlockNumber = 'swapFromToken__lastPriceBlockNumber', + swapFromToken__lastPriceUSD = 'swapFromToken__lastPriceUSD', + swapFromToken__name = 'swapFromToken__name', + swapFromToken__symbol = 'swapFromToken__symbol', + swapToToken = 'swapToToken', + swapToToken__decimals = 'swapToToken__decimals', + swapToToken__id = 'swapToToken__id', + swapToToken__lastPriceBlockNumber = 'swapToToken__lastPriceBlockNumber', + swapToToken__lastPriceUSD = 'swapToToken__lastPriceUSD', + swapToToken__name = 'swapToToken__name', + swapToToken__symbol = 'swapToToken__symbol', + timestamp = 'timestamp', + tradeType = 'tradeType', + tradeVolumeReserves = 'tradeVolumeReserves', + tradeVolumeReservesUSD = 'tradeVolumeReservesUSD', + tradeVolumeUSD = 'tradeVolumeUSD', + transferVolumeReserves = 'transferVolumeReserves', + transferVolumeReservesUSD = 'transferVolumeReservesUSD', + transferVolumeUSD = 'transferVolumeUSD', + well = 'well', + well__boredWell = 'well__boredWell', + well__convertVolumeUSD = 'well__convertVolumeUSD', + well__createdTimestamp = 'well__createdTimestamp', + well__cumulativeTradeVolumeUSD = 'well__cumulativeTradeVolumeUSD', + well__cumulativeTransferVolumeUSD = 'well__cumulativeTransferVolumeUSD', + well__id = 'well__id', + well__isBeanstalk = 'well__isBeanstalk', + well__lastDailySnapshotDay = 'well__lastDailySnapshotDay', + well__lastHourlySnapshotHour = 'well__lastHourlySnapshotHour', + well__lastUpdateBlockNumber = 'well__lastUpdateBlockNumber', + well__lastUpdateTimestamp = 'well__lastUpdateTimestamp', + well__lpTokenSupply = 'well__lpTokenSupply', + well__name = 'well__name', + well__rollingDailyConvertVolumeUSD = 'well__rollingDailyConvertVolumeUSD', + well__rollingDailyTradeVolumeUSD = 'well__rollingDailyTradeVolumeUSD', + well__rollingDailyTransferVolumeUSD = 'well__rollingDailyTransferVolumeUSD', + well__rollingWeeklyConvertVolumeUSD = 'well__rollingWeeklyConvertVolumeUSD', + well__rollingWeeklyTradeVolumeUSD = 'well__rollingWeeklyTradeVolumeUSD', + well__rollingWeeklyTransferVolumeUSD = 'well__rollingWeeklyTransferVolumeUSD', + well__symbol = 'well__symbol', + well__totalLiquidityUSD = 'well__totalLiquidityUSD', + well__wellFunctionData = 'well__wellFunctionData' } export type Version = { @@ -2682,10 +2325,10 @@ export type Version = { versionNumber: Scalars['String']['output']; }; -export type Version_Filter = { +export type VersionFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe>>; chain?: InputMaybe; chain_contains?: InputMaybe; chain_contains_nocase?: InputMaybe; @@ -2714,7 +2357,7 @@ export type Version_Filter = { id_lte?: InputMaybe; id_not?: InputMaybe; id_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; protocolAddress?: InputMaybe; protocolAddress_contains?: InputMaybe; protocolAddress_gt?: InputMaybe; @@ -2767,12 +2410,12 @@ export type Version_Filter = { versionNumber_starts_with_nocase?: InputMaybe; }; -export enum Version_OrderBy { - Chain = 'chain', - Id = 'id', - ProtocolAddress = 'protocolAddress', - SubgraphName = 'subgraphName', - VersionNumber = 'versionNumber' +export enum VersionOrderBy { + chain = 'chain', + id = 'id', + protocolAddress = 'protocolAddress', + subgraphName = 'subgraphName', + versionNumber = 'versionNumber' } export type Well = { @@ -2894,55 +2537,55 @@ export type Well = { export type WellDailySnapshotsArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; export type WellHourlySnapshotsArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; export type WellPumpsArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; export type WellTokensArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; export type WellTradesArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; export type WellUpgradeHistoryArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; export type WellDailySnapshot = { @@ -3015,10 +2658,10 @@ export type WellDailySnapshot = { well: Well; }; -export type WellDailySnapshot_Filter = { +export type WellDailySnapshotFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe>>; convertVolumeReserves?: InputMaybe>; convertVolumeReservesUSD?: InputMaybe>; convertVolumeReservesUSD_contains?: InputMaybe>; @@ -3221,9 +2864,9 @@ export type WellDailySnapshot_Filter = { lpTokenSupply_lte?: InputMaybe; lpTokenSupply_not?: InputMaybe; lpTokenSupply_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; season?: InputMaybe; - season_?: InputMaybe; + season_?: InputMaybe; season_contains?: InputMaybe; season_contains_nocase?: InputMaybe; season_ends_with?: InputMaybe; @@ -3258,7 +2901,7 @@ export type WellDailySnapshot_Filter = { totalLiquidityUSD_not?: InputMaybe; totalLiquidityUSD_not_in?: InputMaybe>; well?: InputMaybe; - well_?: InputMaybe; + well_?: InputMaybe; well_contains?: InputMaybe; well_contains_nocase?: InputMaybe; well_ends_with?: InputMaybe; @@ -3280,65 +2923,65 @@ export type WellDailySnapshot_Filter = { well_starts_with_nocase?: InputMaybe; }; -export enum WellDailySnapshot_OrderBy { - ConvertVolumeReserves = 'convertVolumeReserves', - ConvertVolumeReservesUsd = 'convertVolumeReservesUSD', - ConvertVolumeUsd = 'convertVolumeUSD', - CreatedTimestamp = 'createdTimestamp', - CumulativeBiTradeVolumeReserves = 'cumulativeBiTradeVolumeReserves', - CumulativeTradeVolumeReserves = 'cumulativeTradeVolumeReserves', - CumulativeTradeVolumeReservesUsd = 'cumulativeTradeVolumeReservesUSD', - CumulativeTradeVolumeUsd = 'cumulativeTradeVolumeUSD', - CumulativeTransferVolumeReserves = 'cumulativeTransferVolumeReserves', - CumulativeTransferVolumeReservesUsd = 'cumulativeTransferVolumeReservesUSD', - CumulativeTransferVolumeUsd = 'cumulativeTransferVolumeUSD', - Day = 'day', - DeltaBiTradeVolumeReserves = 'deltaBiTradeVolumeReserves', - DeltaConvertVolumeReserves = 'deltaConvertVolumeReserves', - DeltaConvertVolumeReservesUsd = 'deltaConvertVolumeReservesUSD', - DeltaConvertVolumeUsd = 'deltaConvertVolumeUSD', - DeltaLiquidityUsd = 'deltaLiquidityUSD', - DeltaLpTokenSupply = 'deltaLpTokenSupply', - DeltaTokenRates = 'deltaTokenRates', - DeltaTradeVolumeReserves = 'deltaTradeVolumeReserves', - DeltaTradeVolumeReservesUsd = 'deltaTradeVolumeReservesUSD', - DeltaTradeVolumeUsd = 'deltaTradeVolumeUSD', - DeltaTransferVolumeReserves = 'deltaTransferVolumeReserves', - DeltaTransferVolumeReservesUsd = 'deltaTransferVolumeReservesUSD', - DeltaTransferVolumeUsd = 'deltaTransferVolumeUSD', - Id = 'id', - LastUpdateBlockNumber = 'lastUpdateBlockNumber', - LastUpdateTimestamp = 'lastUpdateTimestamp', - LpTokenSupply = 'lpTokenSupply', - Season = 'season', - SeasonId = 'season__id', - SeasonSeason = 'season__season', - SeasonTimestamp = 'season__timestamp', - TokenRates = 'tokenRates', - TotalLiquidityUsd = 'totalLiquidityUSD', - Well = 'well', - WellBoredWell = 'well__boredWell', - WellConvertVolumeUsd = 'well__convertVolumeUSD', - WellCreatedTimestamp = 'well__createdTimestamp', - WellCumulativeTradeVolumeUsd = 'well__cumulativeTradeVolumeUSD', - WellCumulativeTransferVolumeUsd = 'well__cumulativeTransferVolumeUSD', - WellId = 'well__id', - WellIsBeanstalk = 'well__isBeanstalk', - WellLastDailySnapshotDay = 'well__lastDailySnapshotDay', - WellLastHourlySnapshotHour = 'well__lastHourlySnapshotHour', - WellLastUpdateBlockNumber = 'well__lastUpdateBlockNumber', - WellLastUpdateTimestamp = 'well__lastUpdateTimestamp', - WellLpTokenSupply = 'well__lpTokenSupply', - WellName = 'well__name', - WellRollingDailyConvertVolumeUsd = 'well__rollingDailyConvertVolumeUSD', - WellRollingDailyTradeVolumeUsd = 'well__rollingDailyTradeVolumeUSD', - WellRollingDailyTransferVolumeUsd = 'well__rollingDailyTransferVolumeUSD', - WellRollingWeeklyConvertVolumeUsd = 'well__rollingWeeklyConvertVolumeUSD', - WellRollingWeeklyTradeVolumeUsd = 'well__rollingWeeklyTradeVolumeUSD', - WellRollingWeeklyTransferVolumeUsd = 'well__rollingWeeklyTransferVolumeUSD', - WellSymbol = 'well__symbol', - WellTotalLiquidityUsd = 'well__totalLiquidityUSD', - WellWellFunctionData = 'well__wellFunctionData' +export enum WellDailySnapshotOrderBy { + convertVolumeReserves = 'convertVolumeReserves', + convertVolumeReservesUSD = 'convertVolumeReservesUSD', + convertVolumeUSD = 'convertVolumeUSD', + createdTimestamp = 'createdTimestamp', + cumulativeBiTradeVolumeReserves = 'cumulativeBiTradeVolumeReserves', + cumulativeTradeVolumeReserves = 'cumulativeTradeVolumeReserves', + cumulativeTradeVolumeReservesUSD = 'cumulativeTradeVolumeReservesUSD', + cumulativeTradeVolumeUSD = 'cumulativeTradeVolumeUSD', + cumulativeTransferVolumeReserves = 'cumulativeTransferVolumeReserves', + cumulativeTransferVolumeReservesUSD = 'cumulativeTransferVolumeReservesUSD', + cumulativeTransferVolumeUSD = 'cumulativeTransferVolumeUSD', + day = 'day', + deltaBiTradeVolumeReserves = 'deltaBiTradeVolumeReserves', + deltaConvertVolumeReserves = 'deltaConvertVolumeReserves', + deltaConvertVolumeReservesUSD = 'deltaConvertVolumeReservesUSD', + deltaConvertVolumeUSD = 'deltaConvertVolumeUSD', + deltaLiquidityUSD = 'deltaLiquidityUSD', + deltaLpTokenSupply = 'deltaLpTokenSupply', + deltaTokenRates = 'deltaTokenRates', + deltaTradeVolumeReserves = 'deltaTradeVolumeReserves', + deltaTradeVolumeReservesUSD = 'deltaTradeVolumeReservesUSD', + deltaTradeVolumeUSD = 'deltaTradeVolumeUSD', + deltaTransferVolumeReserves = 'deltaTransferVolumeReserves', + deltaTransferVolumeReservesUSD = 'deltaTransferVolumeReservesUSD', + deltaTransferVolumeUSD = 'deltaTransferVolumeUSD', + id = 'id', + lastUpdateBlockNumber = 'lastUpdateBlockNumber', + lastUpdateTimestamp = 'lastUpdateTimestamp', + lpTokenSupply = 'lpTokenSupply', + season = 'season', + season__id = 'season__id', + season__season = 'season__season', + season__timestamp = 'season__timestamp', + tokenRates = 'tokenRates', + totalLiquidityUSD = 'totalLiquidityUSD', + well = 'well', + well__boredWell = 'well__boredWell', + well__convertVolumeUSD = 'well__convertVolumeUSD', + well__createdTimestamp = 'well__createdTimestamp', + well__cumulativeTradeVolumeUSD = 'well__cumulativeTradeVolumeUSD', + well__cumulativeTransferVolumeUSD = 'well__cumulativeTransferVolumeUSD', + well__id = 'well__id', + well__isBeanstalk = 'well__isBeanstalk', + well__lastDailySnapshotDay = 'well__lastDailySnapshotDay', + well__lastHourlySnapshotHour = 'well__lastHourlySnapshotHour', + well__lastUpdateBlockNumber = 'well__lastUpdateBlockNumber', + well__lastUpdateTimestamp = 'well__lastUpdateTimestamp', + well__lpTokenSupply = 'well__lpTokenSupply', + well__name = 'well__name', + well__rollingDailyConvertVolumeUSD = 'well__rollingDailyConvertVolumeUSD', + well__rollingDailyTradeVolumeUSD = 'well__rollingDailyTradeVolumeUSD', + well__rollingDailyTransferVolumeUSD = 'well__rollingDailyTransferVolumeUSD', + well__rollingWeeklyConvertVolumeUSD = 'well__rollingWeeklyConvertVolumeUSD', + well__rollingWeeklyTradeVolumeUSD = 'well__rollingWeeklyTradeVolumeUSD', + well__rollingWeeklyTransferVolumeUSD = 'well__rollingWeeklyTransferVolumeUSD', + well__symbol = 'well__symbol', + well__totalLiquidityUSD = 'well__totalLiquidityUSD', + well__wellFunctionData = 'well__wellFunctionData' } export type WellFunction = { @@ -3352,16 +2995,16 @@ export type WellFunction = { export type WellFunctionWellsArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; -export type WellFunction_Filter = { +export type WellFunctionFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe>>; id?: InputMaybe; id_contains?: InputMaybe; id_gt?: InputMaybe; @@ -3372,13 +3015,13 @@ export type WellFunction_Filter = { id_not?: InputMaybe; id_not_contains?: InputMaybe; id_not_in?: InputMaybe>; - or?: InputMaybe>>; - wells_?: InputMaybe; + or?: InputMaybe>>; + wells_?: InputMaybe; }; -export enum WellFunction_OrderBy { - Id = 'id', - Wells = 'wells' +export enum WellFunctionOrderBy { + id = 'id', + wells = 'wells' } export type WellHourlySnapshot = { @@ -3451,10 +3094,10 @@ export type WellHourlySnapshot = { well: Well; }; -export type WellHourlySnapshot_Filter = { +export type WellHourlySnapshotFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe>>; convertVolumeReserves?: InputMaybe>; convertVolumeReservesUSD?: InputMaybe>; convertVolumeReservesUSD_contains?: InputMaybe>; @@ -3657,9 +3300,9 @@ export type WellHourlySnapshot_Filter = { lpTokenSupply_lte?: InputMaybe; lpTokenSupply_not?: InputMaybe; lpTokenSupply_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; season?: InputMaybe; - season_?: InputMaybe; + season_?: InputMaybe; season_contains?: InputMaybe; season_contains_nocase?: InputMaybe; season_ends_with?: InputMaybe; @@ -3694,7 +3337,7 @@ export type WellHourlySnapshot_Filter = { totalLiquidityUSD_not?: InputMaybe; totalLiquidityUSD_not_in?: InputMaybe>; well?: InputMaybe; - well_?: InputMaybe; + well_?: InputMaybe; well_contains?: InputMaybe; well_contains_nocase?: InputMaybe; well_ends_with?: InputMaybe; @@ -3716,65 +3359,65 @@ export type WellHourlySnapshot_Filter = { well_starts_with_nocase?: InputMaybe; }; -export enum WellHourlySnapshot_OrderBy { - ConvertVolumeReserves = 'convertVolumeReserves', - ConvertVolumeReservesUsd = 'convertVolumeReservesUSD', - ConvertVolumeUsd = 'convertVolumeUSD', - CreatedTimestamp = 'createdTimestamp', - CumulativeBiTradeVolumeReserves = 'cumulativeBiTradeVolumeReserves', - CumulativeTradeVolumeReserves = 'cumulativeTradeVolumeReserves', - CumulativeTradeVolumeReservesUsd = 'cumulativeTradeVolumeReservesUSD', - CumulativeTradeVolumeUsd = 'cumulativeTradeVolumeUSD', - CumulativeTransferVolumeReserves = 'cumulativeTransferVolumeReserves', - CumulativeTransferVolumeReservesUsd = 'cumulativeTransferVolumeReservesUSD', - CumulativeTransferVolumeUsd = 'cumulativeTransferVolumeUSD', - DeltaBiTradeVolumeReserves = 'deltaBiTradeVolumeReserves', - DeltaConvertVolumeReserves = 'deltaConvertVolumeReserves', - DeltaConvertVolumeReservesUsd = 'deltaConvertVolumeReservesUSD', - DeltaConvertVolumeUsd = 'deltaConvertVolumeUSD', - DeltaLiquidityUsd = 'deltaLiquidityUSD', - DeltaLpTokenSupply = 'deltaLpTokenSupply', - DeltaTokenRates = 'deltaTokenRates', - DeltaTradeVolumeReserves = 'deltaTradeVolumeReserves', - DeltaTradeVolumeReservesUsd = 'deltaTradeVolumeReservesUSD', - DeltaTradeVolumeUsd = 'deltaTradeVolumeUSD', - DeltaTransferVolumeReserves = 'deltaTransferVolumeReserves', - DeltaTransferVolumeReservesUsd = 'deltaTransferVolumeReservesUSD', - DeltaTransferVolumeUsd = 'deltaTransferVolumeUSD', - Hour = 'hour', - Id = 'id', - LastUpdateBlockNumber = 'lastUpdateBlockNumber', - LastUpdateTimestamp = 'lastUpdateTimestamp', - LpTokenSupply = 'lpTokenSupply', - Season = 'season', - SeasonId = 'season__id', - SeasonSeason = 'season__season', - SeasonTimestamp = 'season__timestamp', - TokenRates = 'tokenRates', - TotalLiquidityUsd = 'totalLiquidityUSD', - Well = 'well', - WellBoredWell = 'well__boredWell', - WellConvertVolumeUsd = 'well__convertVolumeUSD', - WellCreatedTimestamp = 'well__createdTimestamp', - WellCumulativeTradeVolumeUsd = 'well__cumulativeTradeVolumeUSD', - WellCumulativeTransferVolumeUsd = 'well__cumulativeTransferVolumeUSD', - WellId = 'well__id', - WellIsBeanstalk = 'well__isBeanstalk', - WellLastDailySnapshotDay = 'well__lastDailySnapshotDay', - WellLastHourlySnapshotHour = 'well__lastHourlySnapshotHour', - WellLastUpdateBlockNumber = 'well__lastUpdateBlockNumber', - WellLastUpdateTimestamp = 'well__lastUpdateTimestamp', - WellLpTokenSupply = 'well__lpTokenSupply', - WellName = 'well__name', - WellRollingDailyConvertVolumeUsd = 'well__rollingDailyConvertVolumeUSD', - WellRollingDailyTradeVolumeUsd = 'well__rollingDailyTradeVolumeUSD', - WellRollingDailyTransferVolumeUsd = 'well__rollingDailyTransferVolumeUSD', - WellRollingWeeklyConvertVolumeUsd = 'well__rollingWeeklyConvertVolumeUSD', - WellRollingWeeklyTradeVolumeUsd = 'well__rollingWeeklyTradeVolumeUSD', - WellRollingWeeklyTransferVolumeUsd = 'well__rollingWeeklyTransferVolumeUSD', - WellSymbol = 'well__symbol', - WellTotalLiquidityUsd = 'well__totalLiquidityUSD', - WellWellFunctionData = 'well__wellFunctionData' +export enum WellHourlySnapshotOrderBy { + convertVolumeReserves = 'convertVolumeReserves', + convertVolumeReservesUSD = 'convertVolumeReservesUSD', + convertVolumeUSD = 'convertVolumeUSD', + createdTimestamp = 'createdTimestamp', + cumulativeBiTradeVolumeReserves = 'cumulativeBiTradeVolumeReserves', + cumulativeTradeVolumeReserves = 'cumulativeTradeVolumeReserves', + cumulativeTradeVolumeReservesUSD = 'cumulativeTradeVolumeReservesUSD', + cumulativeTradeVolumeUSD = 'cumulativeTradeVolumeUSD', + cumulativeTransferVolumeReserves = 'cumulativeTransferVolumeReserves', + cumulativeTransferVolumeReservesUSD = 'cumulativeTransferVolumeReservesUSD', + cumulativeTransferVolumeUSD = 'cumulativeTransferVolumeUSD', + deltaBiTradeVolumeReserves = 'deltaBiTradeVolumeReserves', + deltaConvertVolumeReserves = 'deltaConvertVolumeReserves', + deltaConvertVolumeReservesUSD = 'deltaConvertVolumeReservesUSD', + deltaConvertVolumeUSD = 'deltaConvertVolumeUSD', + deltaLiquidityUSD = 'deltaLiquidityUSD', + deltaLpTokenSupply = 'deltaLpTokenSupply', + deltaTokenRates = 'deltaTokenRates', + deltaTradeVolumeReserves = 'deltaTradeVolumeReserves', + deltaTradeVolumeReservesUSD = 'deltaTradeVolumeReservesUSD', + deltaTradeVolumeUSD = 'deltaTradeVolumeUSD', + deltaTransferVolumeReserves = 'deltaTransferVolumeReserves', + deltaTransferVolumeReservesUSD = 'deltaTransferVolumeReservesUSD', + deltaTransferVolumeUSD = 'deltaTransferVolumeUSD', + hour = 'hour', + id = 'id', + lastUpdateBlockNumber = 'lastUpdateBlockNumber', + lastUpdateTimestamp = 'lastUpdateTimestamp', + lpTokenSupply = 'lpTokenSupply', + season = 'season', + season__id = 'season__id', + season__season = 'season__season', + season__timestamp = 'season__timestamp', + tokenRates = 'tokenRates', + totalLiquidityUSD = 'totalLiquidityUSD', + well = 'well', + well__boredWell = 'well__boredWell', + well__convertVolumeUSD = 'well__convertVolumeUSD', + well__createdTimestamp = 'well__createdTimestamp', + well__cumulativeTradeVolumeUSD = 'well__cumulativeTradeVolumeUSD', + well__cumulativeTransferVolumeUSD = 'well__cumulativeTransferVolumeUSD', + well__id = 'well__id', + well__isBeanstalk = 'well__isBeanstalk', + well__lastDailySnapshotDay = 'well__lastDailySnapshotDay', + well__lastHourlySnapshotHour = 'well__lastHourlySnapshotHour', + well__lastUpdateBlockNumber = 'well__lastUpdateBlockNumber', + well__lastUpdateTimestamp = 'well__lastUpdateTimestamp', + well__lpTokenSupply = 'well__lpTokenSupply', + well__name = 'well__name', + well__rollingDailyConvertVolumeUSD = 'well__rollingDailyConvertVolumeUSD', + well__rollingDailyTradeVolumeUSD = 'well__rollingDailyTradeVolumeUSD', + well__rollingDailyTransferVolumeUSD = 'well__rollingDailyTransferVolumeUSD', + well__rollingWeeklyConvertVolumeUSD = 'well__rollingWeeklyConvertVolumeUSD', + well__rollingWeeklyTradeVolumeUSD = 'well__rollingWeeklyTradeVolumeUSD', + well__rollingWeeklyTransferVolumeUSD = 'well__rollingWeeklyTransferVolumeUSD', + well__symbol = 'well__symbol', + well__totalLiquidityUSD = 'well__totalLiquidityUSD', + well__wellFunctionData = 'well__wellFunctionData' } export type WellUpgradeHistory = { @@ -3799,18 +3442,18 @@ export type WellUpgradeHistory = { export type WellUpgradeHistoryPumpsArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; -export type WellUpgradeHistory_Filter = { +export type WellUpgradeHistoryFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe>>; aquifer?: InputMaybe; - aquifer_?: InputMaybe; + aquifer_?: InputMaybe; aquifer_contains?: InputMaybe; aquifer_contains_nocase?: InputMaybe; aquifer_ends_with?: InputMaybe; @@ -3865,7 +3508,7 @@ export type WellUpgradeHistory_Filter = { id_not?: InputMaybe; id_not_in?: InputMaybe>; implementation?: InputMaybe; - implementation_?: InputMaybe; + implementation_?: InputMaybe; implementation_contains?: InputMaybe; implementation_contains_nocase?: InputMaybe; implementation_ends_with?: InputMaybe; @@ -3885,7 +3528,7 @@ export type WellUpgradeHistory_Filter = { implementation_not_starts_with_nocase?: InputMaybe; implementation_starts_with?: InputMaybe; implementation_starts_with_nocase?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe>>; pumpData?: InputMaybe>; pumpData_contains?: InputMaybe>; pumpData_contains_nocase?: InputMaybe>; @@ -3893,7 +3536,7 @@ export type WellUpgradeHistory_Filter = { pumpData_not_contains?: InputMaybe>; pumpData_not_contains_nocase?: InputMaybe>; pumps?: InputMaybe>; - pumps_?: InputMaybe; + pumps_?: InputMaybe; pumps_contains?: InputMaybe>; pumps_contains_nocase?: InputMaybe>; pumps_not?: InputMaybe>; @@ -3911,7 +3554,7 @@ export type WellUpgradeHistory_Filter = { wellFunctionData_not?: InputMaybe; wellFunctionData_not_contains?: InputMaybe; wellFunctionData_not_in?: InputMaybe>; - wellFunction_?: InputMaybe; + wellFunction_?: InputMaybe; wellFunction_contains?: InputMaybe; wellFunction_contains_nocase?: InputMaybe; wellFunction_ends_with?: InputMaybe; @@ -3931,7 +3574,7 @@ export type WellUpgradeHistory_Filter = { wellFunction_not_starts_with_nocase?: InputMaybe; wellFunction_starts_with?: InputMaybe; wellFunction_starts_with_nocase?: InputMaybe; - well_?: InputMaybe; + well_?: InputMaybe; well_contains?: InputMaybe; well_contains_nocase?: InputMaybe; well_ends_with?: InputMaybe; @@ -3953,51 +3596,51 @@ export type WellUpgradeHistory_Filter = { well_starts_with_nocase?: InputMaybe; }; -export enum WellUpgradeHistory_OrderBy { - Aquifer = 'aquifer', - AquiferId = 'aquifer__id', - BoredWell = 'boredWell', - EffectiveBlock = 'effectiveBlock', - EffectiveTimestamp = 'effectiveTimestamp', - Id = 'id', - Implementation = 'implementation', - ImplementationId = 'implementation__id', - PumpData = 'pumpData', - Pumps = 'pumps', - Well = 'well', - WellFunction = 'wellFunction', - WellFunctionData = 'wellFunctionData', - WellFunctionId = 'wellFunction__id', - WellBoredWell = 'well__boredWell', - WellConvertVolumeUsd = 'well__convertVolumeUSD', - WellCreatedTimestamp = 'well__createdTimestamp', - WellCumulativeTradeVolumeUsd = 'well__cumulativeTradeVolumeUSD', - WellCumulativeTransferVolumeUsd = 'well__cumulativeTransferVolumeUSD', - WellId = 'well__id', - WellIsBeanstalk = 'well__isBeanstalk', - WellLastDailySnapshotDay = 'well__lastDailySnapshotDay', - WellLastHourlySnapshotHour = 'well__lastHourlySnapshotHour', - WellLastUpdateBlockNumber = 'well__lastUpdateBlockNumber', - WellLastUpdateTimestamp = 'well__lastUpdateTimestamp', - WellLpTokenSupply = 'well__lpTokenSupply', - WellName = 'well__name', - WellRollingDailyConvertVolumeUsd = 'well__rollingDailyConvertVolumeUSD', - WellRollingDailyTradeVolumeUsd = 'well__rollingDailyTradeVolumeUSD', - WellRollingDailyTransferVolumeUsd = 'well__rollingDailyTransferVolumeUSD', - WellRollingWeeklyConvertVolumeUsd = 'well__rollingWeeklyConvertVolumeUSD', - WellRollingWeeklyTradeVolumeUsd = 'well__rollingWeeklyTradeVolumeUSD', - WellRollingWeeklyTransferVolumeUsd = 'well__rollingWeeklyTransferVolumeUSD', - WellSymbol = 'well__symbol', - WellTotalLiquidityUsd = 'well__totalLiquidityUSD', - WellWellFunctionData = 'well__wellFunctionData' +export enum WellUpgradeHistoryOrderBy { + aquifer = 'aquifer', + aquifer__id = 'aquifer__id', + boredWell = 'boredWell', + effectiveBlock = 'effectiveBlock', + effectiveTimestamp = 'effectiveTimestamp', + id = 'id', + implementation = 'implementation', + implementation__id = 'implementation__id', + pumpData = 'pumpData', + pumps = 'pumps', + well = 'well', + wellFunction = 'wellFunction', + wellFunctionData = 'wellFunctionData', + wellFunction__id = 'wellFunction__id', + well__boredWell = 'well__boredWell', + well__convertVolumeUSD = 'well__convertVolumeUSD', + well__createdTimestamp = 'well__createdTimestamp', + well__cumulativeTradeVolumeUSD = 'well__cumulativeTradeVolumeUSD', + well__cumulativeTransferVolumeUSD = 'well__cumulativeTransferVolumeUSD', + well__id = 'well__id', + well__isBeanstalk = 'well__isBeanstalk', + well__lastDailySnapshotDay = 'well__lastDailySnapshotDay', + well__lastHourlySnapshotHour = 'well__lastHourlySnapshotHour', + well__lastUpdateBlockNumber = 'well__lastUpdateBlockNumber', + well__lastUpdateTimestamp = 'well__lastUpdateTimestamp', + well__lpTokenSupply = 'well__lpTokenSupply', + well__name = 'well__name', + well__rollingDailyConvertVolumeUSD = 'well__rollingDailyConvertVolumeUSD', + well__rollingDailyTradeVolumeUSD = 'well__rollingDailyTradeVolumeUSD', + well__rollingDailyTransferVolumeUSD = 'well__rollingDailyTransferVolumeUSD', + well__rollingWeeklyConvertVolumeUSD = 'well__rollingWeeklyConvertVolumeUSD', + well__rollingWeeklyTradeVolumeUSD = 'well__rollingWeeklyTradeVolumeUSD', + well__rollingWeeklyTransferVolumeUSD = 'well__rollingWeeklyTransferVolumeUSD', + well__symbol = 'well__symbol', + well__totalLiquidityUSD = 'well__totalLiquidityUSD', + well__wellFunctionData = 'well__wellFunctionData' } -export type Well_Filter = { +export type WellFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe>>; aquifer?: InputMaybe; - aquifer_?: InputMaybe; + aquifer_?: InputMaybe; aquifer_contains?: InputMaybe; aquifer_contains_nocase?: InputMaybe; aquifer_ends_with?: InputMaybe; @@ -4101,8 +3744,8 @@ export type Well_Filter = { cumulativeTransferVolumeUSD_lte?: InputMaybe; cumulativeTransferVolumeUSD_not?: InputMaybe; cumulativeTransferVolumeUSD_not_in?: InputMaybe>; - dailySnapshots_?: InputMaybe; - hourlySnapshots_?: InputMaybe; + dailySnapshots_?: InputMaybe; + hourlySnapshots_?: InputMaybe; id?: InputMaybe; id_contains?: InputMaybe; id_gt?: InputMaybe; @@ -4114,7 +3757,7 @@ export type Well_Filter = { id_not_contains?: InputMaybe; id_not_in?: InputMaybe>; implementation?: InputMaybe; - implementation_?: InputMaybe; + implementation_?: InputMaybe; implementation_contains?: InputMaybe; implementation_contains_nocase?: InputMaybe; implementation_ends_with?: InputMaybe; @@ -4198,7 +3841,7 @@ export type Well_Filter = { name_not_starts_with_nocase?: InputMaybe; name_starts_with?: InputMaybe; name_starts_with_nocase?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe>>; pumpData?: InputMaybe>; pumpData_contains?: InputMaybe>; pumpData_contains_nocase?: InputMaybe>; @@ -4206,7 +3849,7 @@ export type Well_Filter = { pumpData_not_contains?: InputMaybe>; pumpData_not_contains_nocase?: InputMaybe>; pumps?: InputMaybe>; - pumps_?: InputMaybe; + pumps_?: InputMaybe; pumps_contains?: InputMaybe>; pumps_contains_nocase?: InputMaybe>; pumps_not?: InputMaybe>; @@ -4389,7 +4032,7 @@ export type Well_Filter = { tokenRates_not_contains?: InputMaybe>; tokenRates_not_contains_nocase?: InputMaybe>; tokens?: InputMaybe>; - tokens_?: InputMaybe; + tokens_?: InputMaybe; tokens_contains?: InputMaybe>; tokens_contains_nocase?: InputMaybe>; tokens_not?: InputMaybe>; @@ -4403,8 +4046,8 @@ export type Well_Filter = { totalLiquidityUSD_lte?: InputMaybe; totalLiquidityUSD_not?: InputMaybe; totalLiquidityUSD_not_in?: InputMaybe>; - trades_?: InputMaybe; - upgradeHistory_?: InputMaybe; + trades_?: InputMaybe; + upgradeHistory_?: InputMaybe; wellFunction?: InputMaybe; wellFunctionData?: InputMaybe; wellFunctionData_contains?: InputMaybe; @@ -4416,7 +4059,7 @@ export type Well_Filter = { wellFunctionData_not?: InputMaybe; wellFunctionData_not_contains?: InputMaybe; wellFunctionData_not_in?: InputMaybe>; - wellFunction_?: InputMaybe; + wellFunction_?: InputMaybe; wellFunction_contains?: InputMaybe; wellFunction_contains_nocase?: InputMaybe; wellFunction_ends_with?: InputMaybe; @@ -4438,70 +4081,70 @@ export type Well_Filter = { wellFunction_starts_with_nocase?: InputMaybe; }; -export enum Well_OrderBy { - Aquifer = 'aquifer', - AquiferId = 'aquifer__id', - BoredWell = 'boredWell', - ConvertVolumeReserves = 'convertVolumeReserves', - ConvertVolumeReservesUsd = 'convertVolumeReservesUSD', - ConvertVolumeUsd = 'convertVolumeUSD', - CreatedTimestamp = 'createdTimestamp', - CumulativeBiTradeVolumeReserves = 'cumulativeBiTradeVolumeReserves', - CumulativeTradeVolumeReserves = 'cumulativeTradeVolumeReserves', - CumulativeTradeVolumeReservesUsd = 'cumulativeTradeVolumeReservesUSD', - CumulativeTradeVolumeUsd = 'cumulativeTradeVolumeUSD', - CumulativeTransferVolumeReserves = 'cumulativeTransferVolumeReserves', - CumulativeTransferVolumeReservesUsd = 'cumulativeTransferVolumeReservesUSD', - CumulativeTransferVolumeUsd = 'cumulativeTransferVolumeUSD', - DailySnapshots = 'dailySnapshots', - HourlySnapshots = 'hourlySnapshots', - Id = 'id', - Implementation = 'implementation', - ImplementationId = 'implementation__id', - IsBeanstalk = 'isBeanstalk', - LastDailySnapshotDay = 'lastDailySnapshotDay', - LastHourlySnapshotHour = 'lastHourlySnapshotHour', - LastUpdateBlockNumber = 'lastUpdateBlockNumber', - LastUpdateTimestamp = 'lastUpdateTimestamp', - LpTokenSupply = 'lpTokenSupply', - Name = 'name', - PumpData = 'pumpData', - Pumps = 'pumps', - Reserves = 'reserves', - ReservesUsd = 'reservesUSD', - RollingDailyBiTradeVolumeReserves = 'rollingDailyBiTradeVolumeReserves', - RollingDailyConvertVolumeReserves = 'rollingDailyConvertVolumeReserves', - RollingDailyConvertVolumeReservesUsd = 'rollingDailyConvertVolumeReservesUSD', - RollingDailyConvertVolumeUsd = 'rollingDailyConvertVolumeUSD', - RollingDailyTradeVolumeReserves = 'rollingDailyTradeVolumeReserves', - RollingDailyTradeVolumeReservesUsd = 'rollingDailyTradeVolumeReservesUSD', - RollingDailyTradeVolumeUsd = 'rollingDailyTradeVolumeUSD', - RollingDailyTransferVolumeReserves = 'rollingDailyTransferVolumeReserves', - RollingDailyTransferVolumeReservesUsd = 'rollingDailyTransferVolumeReservesUSD', - RollingDailyTransferVolumeUsd = 'rollingDailyTransferVolumeUSD', - RollingWeeklyBiTradeVolumeReserves = 'rollingWeeklyBiTradeVolumeReserves', - RollingWeeklyConvertVolumeReserves = 'rollingWeeklyConvertVolumeReserves', - RollingWeeklyConvertVolumeReservesUsd = 'rollingWeeklyConvertVolumeReservesUSD', - RollingWeeklyConvertVolumeUsd = 'rollingWeeklyConvertVolumeUSD', - RollingWeeklyTradeVolumeReserves = 'rollingWeeklyTradeVolumeReserves', - RollingWeeklyTradeVolumeReservesUsd = 'rollingWeeklyTradeVolumeReservesUSD', - RollingWeeklyTradeVolumeUsd = 'rollingWeeklyTradeVolumeUSD', - RollingWeeklyTransferVolumeReserves = 'rollingWeeklyTransferVolumeReserves', - RollingWeeklyTransferVolumeReservesUsd = 'rollingWeeklyTransferVolumeReservesUSD', - RollingWeeklyTransferVolumeUsd = 'rollingWeeklyTransferVolumeUSD', - Symbol = 'symbol', - TokenOrder = 'tokenOrder', - TokenRates = 'tokenRates', - Tokens = 'tokens', - TotalLiquidityUsd = 'totalLiquidityUSD', - Trades = 'trades', - UpgradeHistory = 'upgradeHistory', - WellFunction = 'wellFunction', - WellFunctionData = 'wellFunctionData', - WellFunctionId = 'wellFunction__id' +export enum WellOrderBy { + aquifer = 'aquifer', + aquifer__id = 'aquifer__id', + boredWell = 'boredWell', + convertVolumeReserves = 'convertVolumeReserves', + convertVolumeReservesUSD = 'convertVolumeReservesUSD', + convertVolumeUSD = 'convertVolumeUSD', + createdTimestamp = 'createdTimestamp', + cumulativeBiTradeVolumeReserves = 'cumulativeBiTradeVolumeReserves', + cumulativeTradeVolumeReserves = 'cumulativeTradeVolumeReserves', + cumulativeTradeVolumeReservesUSD = 'cumulativeTradeVolumeReservesUSD', + cumulativeTradeVolumeUSD = 'cumulativeTradeVolumeUSD', + cumulativeTransferVolumeReserves = 'cumulativeTransferVolumeReserves', + cumulativeTransferVolumeReservesUSD = 'cumulativeTransferVolumeReservesUSD', + cumulativeTransferVolumeUSD = 'cumulativeTransferVolumeUSD', + dailySnapshots = 'dailySnapshots', + hourlySnapshots = 'hourlySnapshots', + id = 'id', + implementation = 'implementation', + implementation__id = 'implementation__id', + isBeanstalk = 'isBeanstalk', + lastDailySnapshotDay = 'lastDailySnapshotDay', + lastHourlySnapshotHour = 'lastHourlySnapshotHour', + lastUpdateBlockNumber = 'lastUpdateBlockNumber', + lastUpdateTimestamp = 'lastUpdateTimestamp', + lpTokenSupply = 'lpTokenSupply', + name = 'name', + pumpData = 'pumpData', + pumps = 'pumps', + reserves = 'reserves', + reservesUSD = 'reservesUSD', + rollingDailyBiTradeVolumeReserves = 'rollingDailyBiTradeVolumeReserves', + rollingDailyConvertVolumeReserves = 'rollingDailyConvertVolumeReserves', + rollingDailyConvertVolumeReservesUSD = 'rollingDailyConvertVolumeReservesUSD', + rollingDailyConvertVolumeUSD = 'rollingDailyConvertVolumeUSD', + rollingDailyTradeVolumeReserves = 'rollingDailyTradeVolumeReserves', + rollingDailyTradeVolumeReservesUSD = 'rollingDailyTradeVolumeReservesUSD', + rollingDailyTradeVolumeUSD = 'rollingDailyTradeVolumeUSD', + rollingDailyTransferVolumeReserves = 'rollingDailyTransferVolumeReserves', + rollingDailyTransferVolumeReservesUSD = 'rollingDailyTransferVolumeReservesUSD', + rollingDailyTransferVolumeUSD = 'rollingDailyTransferVolumeUSD', + rollingWeeklyBiTradeVolumeReserves = 'rollingWeeklyBiTradeVolumeReserves', + rollingWeeklyConvertVolumeReserves = 'rollingWeeklyConvertVolumeReserves', + rollingWeeklyConvertVolumeReservesUSD = 'rollingWeeklyConvertVolumeReservesUSD', + rollingWeeklyConvertVolumeUSD = 'rollingWeeklyConvertVolumeUSD', + rollingWeeklyTradeVolumeReserves = 'rollingWeeklyTradeVolumeReserves', + rollingWeeklyTradeVolumeReservesUSD = 'rollingWeeklyTradeVolumeReservesUSD', + rollingWeeklyTradeVolumeUSD = 'rollingWeeklyTradeVolumeUSD', + rollingWeeklyTransferVolumeReserves = 'rollingWeeklyTransferVolumeReserves', + rollingWeeklyTransferVolumeReservesUSD = 'rollingWeeklyTransferVolumeReservesUSD', + rollingWeeklyTransferVolumeUSD = 'rollingWeeklyTransferVolumeUSD', + symbol = 'symbol', + tokenOrder = 'tokenOrder', + tokenRates = 'tokenRates', + tokens = 'tokens', + totalLiquidityUSD = 'totalLiquidityUSD', + trades = 'trades', + upgradeHistory = 'upgradeHistory', + wellFunction = 'wellFunction', + wellFunctionData = 'wellFunctionData', + wellFunction__id = 'wellFunction__id' } -export type _Block_ = { +export type Block = { __typename?: '_Block_'; /** The hash of the block */ hash?: Maybe; @@ -4514,27 +4157,26 @@ export type _Block_ = { }; /** The type for the top-level _meta field */ -export type _Meta_ = { +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_; + block: Block; /** The deployment ID */ deployment: Scalars['String']['output']; /** If `true`, the subgraph encountered indexing errors at some past block */ hasIndexingErrors: Scalars['Boolean']['output']; }; -export enum _SubgraphErrorPolicy_ { +export enum SubgraphErrorPolicy { /** Data will be returned even if the subgraph has indexing errors */ - Allow = 'allow', + allow = 'allow', /** If the subgraph has indexing errors, data will be omitted. The default. */ - Deny = 'deny' + deny = 'deny' } export type BasinAdvancedChartQueryVariables = Exact<{ diff --git a/src/generated/gql/pinto/graphql.ts b/src/generated/gql/pinto/graphql.ts index 30818692d..6e341aa19 100644 --- a/src/generated/gql/pinto/graphql.ts +++ b/src/generated/gql/pinto/graphql.ts @@ -29,9 +29,9 @@ export type Scalars = { Timestamp: { input: any; output: any; } }; -export enum Aggregation_Interval { - Day = 'day', - Hour = 'hour' +export enum AggregationInterval { + day = 'day', + hour = 'hour' } export type Bean = { @@ -81,46 +81,46 @@ export type Bean = { export type BeanCrossEventsArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; export type BeanDailySnapshotsArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; export type BeanDewhitelistedPoolsArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; export type BeanHourlySnapshotsArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; export type BeanPoolsArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; export type BeanCross = { @@ -147,17 +147,17 @@ export type BeanCross = { timestamp: Scalars['BigInt']['output']; }; -export type BeanCross_Filter = { +export type BeanCrossFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; above?: InputMaybe; above_in?: InputMaybe>; above_not?: InputMaybe; above_not_in?: InputMaybe>; - and?: InputMaybe>>; + and?: InputMaybe>>; bean?: InputMaybe; beanDailySnapshot?: InputMaybe; - beanDailySnapshot_?: InputMaybe; + beanDailySnapshot_?: InputMaybe; beanDailySnapshot_contains?: InputMaybe; beanDailySnapshot_contains_nocase?: InputMaybe; beanDailySnapshot_ends_with?: InputMaybe; @@ -178,7 +178,7 @@ export type BeanCross_Filter = { beanDailySnapshot_starts_with?: InputMaybe; beanDailySnapshot_starts_with_nocase?: InputMaybe; beanHourlySnapshot?: InputMaybe; - beanHourlySnapshot_?: InputMaybe; + beanHourlySnapshot_?: InputMaybe; beanHourlySnapshot_contains?: InputMaybe; beanHourlySnapshot_contains_nocase?: InputMaybe; beanHourlySnapshot_ends_with?: InputMaybe; @@ -198,7 +198,7 @@ export type BeanCross_Filter = { beanHourlySnapshot_not_starts_with_nocase?: InputMaybe; beanHourlySnapshot_starts_with?: InputMaybe; beanHourlySnapshot_starts_with_nocase?: InputMaybe; - bean_?: InputMaybe; + bean_?: InputMaybe; bean_contains?: InputMaybe; bean_contains_nocase?: InputMaybe; bean_ends_with?: InputMaybe; @@ -242,7 +242,7 @@ export type BeanCross_Filter = { id_lte?: InputMaybe; id_not?: InputMaybe; id_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; price?: InputMaybe; price_gt?: InputMaybe; price_gte?: InputMaybe; @@ -269,82 +269,82 @@ export type BeanCross_Filter = { timestamp_not_in?: InputMaybe>; }; -export enum BeanCross_OrderBy { - Above = 'above', - Bean = 'bean', - BeanDailySnapshot = 'beanDailySnapshot', - BeanDailySnapshotCreatedTimestamp = 'beanDailySnapshot__createdTimestamp', - BeanDailySnapshotCrosses = 'beanDailySnapshot__crosses', - BeanDailySnapshotDay = 'beanDailySnapshot__day', - BeanDailySnapshotDeltaCrosses = 'beanDailySnapshot__deltaCrosses', - BeanDailySnapshotDeltaLiquidityUsd = 'beanDailySnapshot__deltaLiquidityUSD', - BeanDailySnapshotDeltaVolume = 'beanDailySnapshot__deltaVolume', - BeanDailySnapshotDeltaVolumeUsd = 'beanDailySnapshot__deltaVolumeUSD', - BeanDailySnapshotId = 'beanDailySnapshot__id', - BeanDailySnapshotInstDeltaB = 'beanDailySnapshot__instDeltaB', - BeanDailySnapshotInstPrice = 'beanDailySnapshot__instPrice', - BeanDailySnapshotL2sr = 'beanDailySnapshot__l2sr', - BeanDailySnapshotLastUpdateBlockNumber = 'beanDailySnapshot__lastUpdateBlockNumber', - BeanDailySnapshotLastUpdateTimestamp = 'beanDailySnapshot__lastUpdateTimestamp', - BeanDailySnapshotLiquidityUsd = 'beanDailySnapshot__liquidityUSD', - BeanDailySnapshotLockedBeans = 'beanDailySnapshot__lockedBeans', - BeanDailySnapshotMarketCap = 'beanDailySnapshot__marketCap', - BeanDailySnapshotSupply = 'beanDailySnapshot__supply', - BeanDailySnapshotSupplyInPegLp = 'beanDailySnapshot__supplyInPegLP', - BeanDailySnapshotTwaBeanLiquidityUsd = 'beanDailySnapshot__twaBeanLiquidityUSD', - BeanDailySnapshotTwaDeltaB = 'beanDailySnapshot__twaDeltaB', - BeanDailySnapshotTwaLiquidityUsd = 'beanDailySnapshot__twaLiquidityUSD', - BeanDailySnapshotTwaNonBeanLiquidityUsd = 'beanDailySnapshot__twaNonBeanLiquidityUSD', - BeanDailySnapshotTwaPrice = 'beanDailySnapshot__twaPrice', - BeanDailySnapshotVolume = 'beanDailySnapshot__volume', - BeanDailySnapshotVolumeUsd = 'beanDailySnapshot__volumeUSD', - BeanHourlySnapshot = 'beanHourlySnapshot', - BeanHourlySnapshotCreatedTimestamp = 'beanHourlySnapshot__createdTimestamp', - BeanHourlySnapshotCrosses = 'beanHourlySnapshot__crosses', - BeanHourlySnapshotDeltaCrosses = 'beanHourlySnapshot__deltaCrosses', - BeanHourlySnapshotDeltaLiquidityUsd = 'beanHourlySnapshot__deltaLiquidityUSD', - BeanHourlySnapshotDeltaVolume = 'beanHourlySnapshot__deltaVolume', - BeanHourlySnapshotDeltaVolumeUsd = 'beanHourlySnapshot__deltaVolumeUSD', - BeanHourlySnapshotId = 'beanHourlySnapshot__id', - BeanHourlySnapshotInstDeltaB = 'beanHourlySnapshot__instDeltaB', - BeanHourlySnapshotInstPrice = 'beanHourlySnapshot__instPrice', - BeanHourlySnapshotL2sr = 'beanHourlySnapshot__l2sr', - BeanHourlySnapshotLastUpdateBlockNumber = 'beanHourlySnapshot__lastUpdateBlockNumber', - BeanHourlySnapshotLastUpdateTimestamp = 'beanHourlySnapshot__lastUpdateTimestamp', - BeanHourlySnapshotLiquidityUsd = 'beanHourlySnapshot__liquidityUSD', - BeanHourlySnapshotLockedBeans = 'beanHourlySnapshot__lockedBeans', - BeanHourlySnapshotMarketCap = 'beanHourlySnapshot__marketCap', - BeanHourlySnapshotSeasonNumber = 'beanHourlySnapshot__seasonNumber', - BeanHourlySnapshotSupply = 'beanHourlySnapshot__supply', - BeanHourlySnapshotSupplyInPegLp = 'beanHourlySnapshot__supplyInPegLP', - BeanHourlySnapshotTwaBeanLiquidityUsd = 'beanHourlySnapshot__twaBeanLiquidityUSD', - BeanHourlySnapshotTwaDeltaB = 'beanHourlySnapshot__twaDeltaB', - BeanHourlySnapshotTwaLiquidityUsd = 'beanHourlySnapshot__twaLiquidityUSD', - BeanHourlySnapshotTwaNonBeanLiquidityUsd = 'beanHourlySnapshot__twaNonBeanLiquidityUSD', - BeanHourlySnapshotTwaPrice = 'beanHourlySnapshot__twaPrice', - BeanHourlySnapshotVolume = 'beanHourlySnapshot__volume', - BeanHourlySnapshotVolumeUsd = 'beanHourlySnapshot__volumeUSD', - BeanCreatedTimestamp = 'bean__createdTimestamp', - BeanCrosses = 'bean__crosses', - BeanId = 'bean__id', - BeanLastCross = 'bean__lastCross', - BeanLastDailySnapshotDay = 'bean__lastDailySnapshotDay', - BeanLastHourlySnapshotSeason = 'bean__lastHourlySnapshotSeason', - BeanLastPrice = 'bean__lastPrice', - BeanLastUpdateBlockNumber = 'bean__lastUpdateBlockNumber', - BeanLastUpdateTimestamp = 'bean__lastUpdateTimestamp', - BeanLiquidityUsd = 'bean__liquidityUSD', - BeanLockedBeans = 'bean__lockedBeans', - BeanSupply = 'bean__supply', - BeanSupplyInPegLp = 'bean__supplyInPegLP', - BeanVolume = 'bean__volume', - BeanVolumeUsd = 'bean__volumeUSD', - BlockNumber = 'blockNumber', - Cross = 'cross', - Id = 'id', - Price = 'price', - TimeSinceLastCross = 'timeSinceLastCross', - Timestamp = 'timestamp' +export enum BeanCrossOrderBy { + above = 'above', + bean = 'bean', + beanDailySnapshot = 'beanDailySnapshot', + beanDailySnapshot__createdTimestamp = 'beanDailySnapshot__createdTimestamp', + beanDailySnapshot__crosses = 'beanDailySnapshot__crosses', + beanDailySnapshot__day = 'beanDailySnapshot__day', + beanDailySnapshot__deltaCrosses = 'beanDailySnapshot__deltaCrosses', + beanDailySnapshot__deltaLiquidityUSD = 'beanDailySnapshot__deltaLiquidityUSD', + beanDailySnapshot__deltaVolume = 'beanDailySnapshot__deltaVolume', + beanDailySnapshot__deltaVolumeUSD = 'beanDailySnapshot__deltaVolumeUSD', + beanDailySnapshot__id = 'beanDailySnapshot__id', + beanDailySnapshot__instDeltaB = 'beanDailySnapshot__instDeltaB', + beanDailySnapshot__instPrice = 'beanDailySnapshot__instPrice', + beanDailySnapshot__l2sr = 'beanDailySnapshot__l2sr', + beanDailySnapshot__lastUpdateBlockNumber = 'beanDailySnapshot__lastUpdateBlockNumber', + beanDailySnapshot__lastUpdateTimestamp = 'beanDailySnapshot__lastUpdateTimestamp', + beanDailySnapshot__liquidityUSD = 'beanDailySnapshot__liquidityUSD', + beanDailySnapshot__lockedBeans = 'beanDailySnapshot__lockedBeans', + beanDailySnapshot__marketCap = 'beanDailySnapshot__marketCap', + beanDailySnapshot__supply = 'beanDailySnapshot__supply', + beanDailySnapshot__supplyInPegLP = 'beanDailySnapshot__supplyInPegLP', + beanDailySnapshot__twaBeanLiquidityUSD = 'beanDailySnapshot__twaBeanLiquidityUSD', + beanDailySnapshot__twaDeltaB = 'beanDailySnapshot__twaDeltaB', + beanDailySnapshot__twaLiquidityUSD = 'beanDailySnapshot__twaLiquidityUSD', + beanDailySnapshot__twaNonBeanLiquidityUSD = 'beanDailySnapshot__twaNonBeanLiquidityUSD', + beanDailySnapshot__twaPrice = 'beanDailySnapshot__twaPrice', + beanDailySnapshot__volume = 'beanDailySnapshot__volume', + beanDailySnapshot__volumeUSD = 'beanDailySnapshot__volumeUSD', + beanHourlySnapshot = 'beanHourlySnapshot', + beanHourlySnapshot__createdTimestamp = 'beanHourlySnapshot__createdTimestamp', + beanHourlySnapshot__crosses = 'beanHourlySnapshot__crosses', + beanHourlySnapshot__deltaCrosses = 'beanHourlySnapshot__deltaCrosses', + beanHourlySnapshot__deltaLiquidityUSD = 'beanHourlySnapshot__deltaLiquidityUSD', + beanHourlySnapshot__deltaVolume = 'beanHourlySnapshot__deltaVolume', + beanHourlySnapshot__deltaVolumeUSD = 'beanHourlySnapshot__deltaVolumeUSD', + beanHourlySnapshot__id = 'beanHourlySnapshot__id', + beanHourlySnapshot__instDeltaB = 'beanHourlySnapshot__instDeltaB', + beanHourlySnapshot__instPrice = 'beanHourlySnapshot__instPrice', + beanHourlySnapshot__l2sr = 'beanHourlySnapshot__l2sr', + beanHourlySnapshot__lastUpdateBlockNumber = 'beanHourlySnapshot__lastUpdateBlockNumber', + beanHourlySnapshot__lastUpdateTimestamp = 'beanHourlySnapshot__lastUpdateTimestamp', + beanHourlySnapshot__liquidityUSD = 'beanHourlySnapshot__liquidityUSD', + beanHourlySnapshot__lockedBeans = 'beanHourlySnapshot__lockedBeans', + beanHourlySnapshot__marketCap = 'beanHourlySnapshot__marketCap', + beanHourlySnapshot__seasonNumber = 'beanHourlySnapshot__seasonNumber', + beanHourlySnapshot__supply = 'beanHourlySnapshot__supply', + beanHourlySnapshot__supplyInPegLP = 'beanHourlySnapshot__supplyInPegLP', + beanHourlySnapshot__twaBeanLiquidityUSD = 'beanHourlySnapshot__twaBeanLiquidityUSD', + beanHourlySnapshot__twaDeltaB = 'beanHourlySnapshot__twaDeltaB', + beanHourlySnapshot__twaLiquidityUSD = 'beanHourlySnapshot__twaLiquidityUSD', + beanHourlySnapshot__twaNonBeanLiquidityUSD = 'beanHourlySnapshot__twaNonBeanLiquidityUSD', + beanHourlySnapshot__twaPrice = 'beanHourlySnapshot__twaPrice', + beanHourlySnapshot__volume = 'beanHourlySnapshot__volume', + beanHourlySnapshot__volumeUSD = 'beanHourlySnapshot__volumeUSD', + bean__createdTimestamp = 'bean__createdTimestamp', + bean__crosses = 'bean__crosses', + bean__id = 'bean__id', + bean__lastCross = 'bean__lastCross', + bean__lastDailySnapshotDay = 'bean__lastDailySnapshotDay', + bean__lastHourlySnapshotSeason = 'bean__lastHourlySnapshotSeason', + bean__lastPrice = 'bean__lastPrice', + bean__lastUpdateBlockNumber = 'bean__lastUpdateBlockNumber', + bean__lastUpdateTimestamp = 'bean__lastUpdateTimestamp', + bean__liquidityUSD = 'bean__liquidityUSD', + bean__lockedBeans = 'bean__lockedBeans', + bean__supply = 'bean__supply', + bean__supplyInPegLP = 'bean__supplyInPegLP', + bean__volume = 'bean__volume', + bean__volumeUSD = 'bean__volumeUSD', + blockNumber = 'blockNumber', + cross = 'cross', + id = 'id', + price = 'price', + timeSinceLastCross = 'timeSinceLastCross', + timestamp = 'timestamp' } export type BeanDailySnapshot = { @@ -408,18 +408,18 @@ export type BeanDailySnapshot = { export type BeanDailySnapshotCrossEventsArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; -export type BeanDailySnapshot_Filter = { +export type BeanDailySnapshotFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe>>; bean?: InputMaybe; - bean_?: InputMaybe; + bean_?: InputMaybe; bean_contains?: InputMaybe; bean_contains_nocase?: InputMaybe; bean_ends_with?: InputMaybe; @@ -447,7 +447,7 @@ export type BeanDailySnapshot_Filter = { createdTimestamp_lte?: InputMaybe; createdTimestamp_not?: InputMaybe; createdTimestamp_not_in?: InputMaybe>; - crossEvents_?: InputMaybe; + crossEvents_?: InputMaybe; crosses?: InputMaybe; crosses_gt?: InputMaybe; crosses_gte?: InputMaybe; @@ -568,9 +568,9 @@ export type BeanDailySnapshot_Filter = { marketCap_lte?: InputMaybe; marketCap_not?: InputMaybe; marketCap_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; season?: InputMaybe; - season_?: InputMaybe; + season_?: InputMaybe; season_contains?: InputMaybe; season_contains_nocase?: InputMaybe; season_ends_with?: InputMaybe; @@ -664,53 +664,53 @@ export type BeanDailySnapshot_Filter = { volume_not_in?: InputMaybe>; }; -export enum BeanDailySnapshot_OrderBy { - Bean = 'bean', - BeanCreatedTimestamp = 'bean__createdTimestamp', - BeanCrosses = 'bean__crosses', - BeanId = 'bean__id', - BeanLastCross = 'bean__lastCross', - BeanLastDailySnapshotDay = 'bean__lastDailySnapshotDay', - BeanLastHourlySnapshotSeason = 'bean__lastHourlySnapshotSeason', - BeanLastPrice = 'bean__lastPrice', - BeanLastUpdateBlockNumber = 'bean__lastUpdateBlockNumber', - BeanLastUpdateTimestamp = 'bean__lastUpdateTimestamp', - BeanLiquidityUsd = 'bean__liquidityUSD', - BeanLockedBeans = 'bean__lockedBeans', - BeanSupply = 'bean__supply', - BeanSupplyInPegLp = 'bean__supplyInPegLP', - BeanVolume = 'bean__volume', - BeanVolumeUsd = 'bean__volumeUSD', - CreatedTimestamp = 'createdTimestamp', - CrossEvents = 'crossEvents', - Crosses = 'crosses', - Day = 'day', - DeltaCrosses = 'deltaCrosses', - DeltaLiquidityUsd = 'deltaLiquidityUSD', - DeltaVolume = 'deltaVolume', - DeltaVolumeUsd = 'deltaVolumeUSD', - Id = 'id', - InstDeltaB = 'instDeltaB', - InstPrice = 'instPrice', - L2sr = 'l2sr', - LastUpdateBlockNumber = 'lastUpdateBlockNumber', - LastUpdateTimestamp = 'lastUpdateTimestamp', - LiquidityUsd = 'liquidityUSD', - LockedBeans = 'lockedBeans', - MarketCap = 'marketCap', - Season = 'season', - SeasonId = 'season__id', - SeasonSeason = 'season__season', - SeasonTimestamp = 'season__timestamp', - Supply = 'supply', - SupplyInPegLp = 'supplyInPegLP', - TwaBeanLiquidityUsd = 'twaBeanLiquidityUSD', - TwaDeltaB = 'twaDeltaB', - TwaLiquidityUsd = 'twaLiquidityUSD', - TwaNonBeanLiquidityUsd = 'twaNonBeanLiquidityUSD', - TwaPrice = 'twaPrice', - Volume = 'volume', - VolumeUsd = 'volumeUSD' +export enum BeanDailySnapshotOrderBy { + bean = 'bean', + bean__createdTimestamp = 'bean__createdTimestamp', + bean__crosses = 'bean__crosses', + bean__id = 'bean__id', + bean__lastCross = 'bean__lastCross', + bean__lastDailySnapshotDay = 'bean__lastDailySnapshotDay', + bean__lastHourlySnapshotSeason = 'bean__lastHourlySnapshotSeason', + bean__lastPrice = 'bean__lastPrice', + bean__lastUpdateBlockNumber = 'bean__lastUpdateBlockNumber', + bean__lastUpdateTimestamp = 'bean__lastUpdateTimestamp', + bean__liquidityUSD = 'bean__liquidityUSD', + bean__lockedBeans = 'bean__lockedBeans', + bean__supply = 'bean__supply', + bean__supplyInPegLP = 'bean__supplyInPegLP', + bean__volume = 'bean__volume', + bean__volumeUSD = 'bean__volumeUSD', + createdTimestamp = 'createdTimestamp', + crossEvents = 'crossEvents', + crosses = 'crosses', + day = 'day', + deltaCrosses = 'deltaCrosses', + deltaLiquidityUSD = 'deltaLiquidityUSD', + deltaVolume = 'deltaVolume', + deltaVolumeUSD = 'deltaVolumeUSD', + id = 'id', + instDeltaB = 'instDeltaB', + instPrice = 'instPrice', + l2sr = 'l2sr', + lastUpdateBlockNumber = 'lastUpdateBlockNumber', + lastUpdateTimestamp = 'lastUpdateTimestamp', + liquidityUSD = 'liquidityUSD', + lockedBeans = 'lockedBeans', + marketCap = 'marketCap', + season = 'season', + season__id = 'season__id', + season__season = 'season__season', + season__timestamp = 'season__timestamp', + supply = 'supply', + supplyInPegLP = 'supplyInPegLP', + twaBeanLiquidityUSD = 'twaBeanLiquidityUSD', + twaDeltaB = 'twaDeltaB', + twaLiquidityUSD = 'twaLiquidityUSD', + twaNonBeanLiquidityUSD = 'twaNonBeanLiquidityUSD', + twaPrice = 'twaPrice', + volume = 'volume', + volumeUSD = 'volumeUSD' } export type BeanHourlySnapshot = { @@ -773,18 +773,18 @@ export type BeanHourlySnapshot = { export type BeanHourlySnapshotCrossEventsArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; -export type BeanHourlySnapshot_Filter = { +export type BeanHourlySnapshotFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe>>; bean?: InputMaybe; - bean_?: InputMaybe; + bean_?: InputMaybe; bean_contains?: InputMaybe; bean_contains_nocase?: InputMaybe; bean_ends_with?: InputMaybe; @@ -812,7 +812,7 @@ export type BeanHourlySnapshot_Filter = { createdTimestamp_lte?: InputMaybe; createdTimestamp_not?: InputMaybe; createdTimestamp_not_in?: InputMaybe>; - crossEvents_?: InputMaybe; + crossEvents_?: InputMaybe; crosses?: InputMaybe; crosses_gt?: InputMaybe; crosses_gte?: InputMaybe; @@ -925,7 +925,7 @@ export type BeanHourlySnapshot_Filter = { marketCap_lte?: InputMaybe; marketCap_not?: InputMaybe; marketCap_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; season?: InputMaybe; seasonNumber?: InputMaybe; seasonNumber_gt?: InputMaybe; @@ -935,7 +935,7 @@ export type BeanHourlySnapshot_Filter = { seasonNumber_lte?: InputMaybe; seasonNumber_not?: InputMaybe; seasonNumber_not_in?: InputMaybe>; - season_?: InputMaybe; + season_?: InputMaybe; season_contains?: InputMaybe; season_contains_nocase?: InputMaybe; season_ends_with?: InputMaybe; @@ -1029,59 +1029,59 @@ export type BeanHourlySnapshot_Filter = { volume_not_in?: InputMaybe>; }; -export enum BeanHourlySnapshot_OrderBy { - Bean = 'bean', - BeanCreatedTimestamp = 'bean__createdTimestamp', - BeanCrosses = 'bean__crosses', - BeanId = 'bean__id', - BeanLastCross = 'bean__lastCross', - BeanLastDailySnapshotDay = 'bean__lastDailySnapshotDay', - BeanLastHourlySnapshotSeason = 'bean__lastHourlySnapshotSeason', - BeanLastPrice = 'bean__lastPrice', - BeanLastUpdateBlockNumber = 'bean__lastUpdateBlockNumber', - BeanLastUpdateTimestamp = 'bean__lastUpdateTimestamp', - BeanLiquidityUsd = 'bean__liquidityUSD', - BeanLockedBeans = 'bean__lockedBeans', - BeanSupply = 'bean__supply', - BeanSupplyInPegLp = 'bean__supplyInPegLP', - BeanVolume = 'bean__volume', - BeanVolumeUsd = 'bean__volumeUSD', - CreatedTimestamp = 'createdTimestamp', - CrossEvents = 'crossEvents', - Crosses = 'crosses', - DeltaCrosses = 'deltaCrosses', - DeltaLiquidityUsd = 'deltaLiquidityUSD', - DeltaVolume = 'deltaVolume', - DeltaVolumeUsd = 'deltaVolumeUSD', - Id = 'id', - InstDeltaB = 'instDeltaB', - InstPrice = 'instPrice', - L2sr = 'l2sr', - LastUpdateBlockNumber = 'lastUpdateBlockNumber', - LastUpdateTimestamp = 'lastUpdateTimestamp', - LiquidityUsd = 'liquidityUSD', - LockedBeans = 'lockedBeans', - MarketCap = 'marketCap', - Season = 'season', - SeasonNumber = 'seasonNumber', - SeasonId = 'season__id', - SeasonSeason = 'season__season', - SeasonTimestamp = 'season__timestamp', - Supply = 'supply', - SupplyInPegLp = 'supplyInPegLP', - TwaBeanLiquidityUsd = 'twaBeanLiquidityUSD', - TwaDeltaB = 'twaDeltaB', - TwaLiquidityUsd = 'twaLiquidityUSD', - TwaNonBeanLiquidityUsd = 'twaNonBeanLiquidityUSD', - TwaPrice = 'twaPrice', - Volume = 'volume', - VolumeUsd = 'volumeUSD' +export enum BeanHourlySnapshotOrderBy { + bean = 'bean', + bean__createdTimestamp = 'bean__createdTimestamp', + bean__crosses = 'bean__crosses', + bean__id = 'bean__id', + bean__lastCross = 'bean__lastCross', + bean__lastDailySnapshotDay = 'bean__lastDailySnapshotDay', + bean__lastHourlySnapshotSeason = 'bean__lastHourlySnapshotSeason', + bean__lastPrice = 'bean__lastPrice', + bean__lastUpdateBlockNumber = 'bean__lastUpdateBlockNumber', + bean__lastUpdateTimestamp = 'bean__lastUpdateTimestamp', + bean__liquidityUSD = 'bean__liquidityUSD', + bean__lockedBeans = 'bean__lockedBeans', + bean__supply = 'bean__supply', + bean__supplyInPegLP = 'bean__supplyInPegLP', + bean__volume = 'bean__volume', + bean__volumeUSD = 'bean__volumeUSD', + createdTimestamp = 'createdTimestamp', + crossEvents = 'crossEvents', + crosses = 'crosses', + deltaCrosses = 'deltaCrosses', + deltaLiquidityUSD = 'deltaLiquidityUSD', + deltaVolume = 'deltaVolume', + deltaVolumeUSD = 'deltaVolumeUSD', + id = 'id', + instDeltaB = 'instDeltaB', + instPrice = 'instPrice', + l2sr = 'l2sr', + lastUpdateBlockNumber = 'lastUpdateBlockNumber', + lastUpdateTimestamp = 'lastUpdateTimestamp', + liquidityUSD = 'liquidityUSD', + lockedBeans = 'lockedBeans', + marketCap = 'marketCap', + season = 'season', + seasonNumber = 'seasonNumber', + season__id = 'season__id', + season__season = 'season__season', + season__timestamp = 'season__timestamp', + supply = 'supply', + supplyInPegLP = 'supplyInPegLP', + twaBeanLiquidityUSD = 'twaBeanLiquidityUSD', + twaDeltaB = 'twaDeltaB', + twaLiquidityUSD = 'twaLiquidityUSD', + twaNonBeanLiquidityUSD = 'twaNonBeanLiquidityUSD', + twaPrice = 'twaPrice', + volume = 'volume', + volumeUSD = 'volumeUSD' } -export type Bean_Filter = { +export type BeanFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe>>; createdTimestamp?: InputMaybe; createdTimestamp_gt?: InputMaybe; createdTimestamp_gte?: InputMaybe; @@ -1090,7 +1090,7 @@ export type Bean_Filter = { createdTimestamp_lte?: InputMaybe; createdTimestamp_not?: InputMaybe; createdTimestamp_not_in?: InputMaybe>; - crossEvents_?: InputMaybe; + crossEvents_?: InputMaybe; crosses?: InputMaybe; crosses_gt?: InputMaybe; crosses_gte?: InputMaybe; @@ -1100,7 +1100,7 @@ export type Bean_Filter = { crosses_not?: InputMaybe; crosses_not_in?: InputMaybe>; currentSeason?: InputMaybe; - currentSeason_?: InputMaybe; + currentSeason_?: InputMaybe; currentSeason_contains?: InputMaybe; currentSeason_contains_nocase?: InputMaybe; currentSeason_ends_with?: InputMaybe; @@ -1120,15 +1120,15 @@ export type Bean_Filter = { currentSeason_not_starts_with_nocase?: InputMaybe; currentSeason_starts_with?: InputMaybe; currentSeason_starts_with_nocase?: InputMaybe; - dailySnapshots_?: InputMaybe; + dailySnapshots_?: InputMaybe; dewhitelistedPools?: InputMaybe>; - dewhitelistedPools_?: InputMaybe; + dewhitelistedPools_?: InputMaybe; dewhitelistedPools_contains?: InputMaybe>; dewhitelistedPools_contains_nocase?: InputMaybe>; dewhitelistedPools_not?: InputMaybe>; dewhitelistedPools_not_contains?: InputMaybe>; dewhitelistedPools_not_contains_nocase?: InputMaybe>; - hourlySnapshots_?: InputMaybe; + hourlySnapshots_?: InputMaybe; id?: InputMaybe; id_contains?: InputMaybe; id_gt?: InputMaybe; @@ -1203,9 +1203,9 @@ export type Bean_Filter = { lockedBeans_lte?: InputMaybe; lockedBeans_not?: InputMaybe; lockedBeans_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; pools?: InputMaybe>; - pools_?: InputMaybe; + pools_?: InputMaybe; pools_contains?: InputMaybe>; pools_contains_nocase?: InputMaybe>; pools_not?: InputMaybe>; @@ -1245,38 +1245,38 @@ export type Bean_Filter = { volume_not_in?: InputMaybe>; }; -export enum Bean_OrderBy { - CreatedTimestamp = 'createdTimestamp', - CrossEvents = 'crossEvents', - Crosses = 'crosses', - CurrentSeason = 'currentSeason', - CurrentSeasonId = 'currentSeason__id', - CurrentSeasonSeason = 'currentSeason__season', - CurrentSeasonTimestamp = 'currentSeason__timestamp', - DailySnapshots = 'dailySnapshots', - DewhitelistedPools = 'dewhitelistedPools', - HourlySnapshots = 'hourlySnapshots', - Id = 'id', - LastCross = 'lastCross', - LastDailySnapshotDay = 'lastDailySnapshotDay', - LastHourlySnapshotSeason = 'lastHourlySnapshotSeason', - LastPrice = 'lastPrice', - LastUpdateBlockNumber = 'lastUpdateBlockNumber', - LastUpdateTimestamp = 'lastUpdateTimestamp', - LiquidityUsd = 'liquidityUSD', - LockedBeans = 'lockedBeans', - Pools = 'pools', - Supply = 'supply', - SupplyInPegLp = 'supplyInPegLP', - Volume = 'volume', - VolumeUsd = 'volumeUSD' +export enum BeanOrderBy { + createdTimestamp = 'createdTimestamp', + crossEvents = 'crossEvents', + crosses = 'crosses', + currentSeason = 'currentSeason', + currentSeason__id = 'currentSeason__id', + currentSeason__season = 'currentSeason__season', + currentSeason__timestamp = 'currentSeason__timestamp', + dailySnapshots = 'dailySnapshots', + dewhitelistedPools = 'dewhitelistedPools', + hourlySnapshots = 'hourlySnapshots', + id = 'id', + lastCross = 'lastCross', + lastDailySnapshotDay = 'lastDailySnapshotDay', + lastHourlySnapshotSeason = 'lastHourlySnapshotSeason', + lastPrice = 'lastPrice', + lastUpdateBlockNumber = 'lastUpdateBlockNumber', + lastUpdateTimestamp = 'lastUpdateTimestamp', + liquidityUSD = 'liquidityUSD', + lockedBeans = 'lockedBeans', + pools = 'pools', + supply = 'supply', + supplyInPegLP = 'supplyInPegLP', + volume = 'volume', + volumeUSD = 'volumeUSD' } export type BlockChangedFilter = { number_gte: Scalars['Int']['input']; }; -export type Block_Height = { +export type BlockHeight = { hash?: InputMaybe; number?: InputMaybe; number_gte?: InputMaybe; @@ -1307,19 +1307,19 @@ export type FarmerBalance = { export type FarmerBalanceDailySnapshotsArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; export type FarmerBalanceHourlySnapshotsArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; export type FarmerBalanceDailySnapshot = { @@ -1350,10 +1350,10 @@ export type FarmerBalanceDailySnapshot = { walletBalance: Scalars['BigInt']['output']; }; -export type FarmerBalanceDailySnapshot_Filter = { +export type FarmerBalanceDailySnapshotFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe>>; createdTimestamp?: InputMaybe; createdTimestamp_gt?: InputMaybe; createdTimestamp_gte?: InputMaybe; @@ -1403,7 +1403,7 @@ export type FarmerBalanceDailySnapshot_Filter = { farmBalance_not?: InputMaybe; farmBalance_not_in?: InputMaybe>; farmerBalance?: InputMaybe; - farmerBalance_?: InputMaybe; + farmerBalance_?: InputMaybe; farmerBalance_contains?: InputMaybe; farmerBalance_contains_nocase?: InputMaybe; farmerBalance_ends_with?: InputMaybe; @@ -1447,9 +1447,9 @@ export type FarmerBalanceDailySnapshot_Filter = { lastUpdateTimestamp_lte?: InputMaybe; lastUpdateTimestamp_not?: InputMaybe; lastUpdateTimestamp_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; season?: InputMaybe; - season_?: InputMaybe; + season_?: InputMaybe; season_contains?: InputMaybe; season_contains_nocase?: InputMaybe; season_ends_with?: InputMaybe; @@ -1487,31 +1487,31 @@ export type FarmerBalanceDailySnapshot_Filter = { walletBalance_not_in?: InputMaybe>; }; -export enum FarmerBalanceDailySnapshot_OrderBy { - CreatedTimestamp = 'createdTimestamp', - Day = 'day', - DeltaFarmBalance = 'deltaFarmBalance', - DeltaTotalBalance = 'deltaTotalBalance', - DeltaWalletBalance = 'deltaWalletBalance', - FarmBalance = 'farmBalance', - FarmerBalance = 'farmerBalance', - FarmerBalanceFarmBalance = 'farmerBalance__farmBalance', - FarmerBalanceFarmer = 'farmerBalance__farmer', - FarmerBalanceId = 'farmerBalance__id', - FarmerBalanceLastDailySnapshotDay = 'farmerBalance__lastDailySnapshotDay', - FarmerBalanceLastHourlySnapshotSeason = 'farmerBalance__lastHourlySnapshotSeason', - FarmerBalanceToken = 'farmerBalance__token', - FarmerBalanceTotalBalance = 'farmerBalance__totalBalance', - FarmerBalanceWalletBalance = 'farmerBalance__walletBalance', - Id = 'id', - LastUpdateBlockNumber = 'lastUpdateBlockNumber', - LastUpdateTimestamp = 'lastUpdateTimestamp', - Season = 'season', - SeasonId = 'season__id', - SeasonSeason = 'season__season', - SeasonTimestamp = 'season__timestamp', - TotalBalance = 'totalBalance', - WalletBalance = 'walletBalance' +export enum FarmerBalanceDailySnapshotOrderBy { + createdTimestamp = 'createdTimestamp', + day = 'day', + deltaFarmBalance = 'deltaFarmBalance', + deltaTotalBalance = 'deltaTotalBalance', + deltaWalletBalance = 'deltaWalletBalance', + farmBalance = 'farmBalance', + farmerBalance = 'farmerBalance', + farmerBalance__farmBalance = 'farmerBalance__farmBalance', + farmerBalance__farmer = 'farmerBalance__farmer', + farmerBalance__id = 'farmerBalance__id', + farmerBalance__lastDailySnapshotDay = 'farmerBalance__lastDailySnapshotDay', + farmerBalance__lastHourlySnapshotSeason = 'farmerBalance__lastHourlySnapshotSeason', + farmerBalance__token = 'farmerBalance__token', + farmerBalance__totalBalance = 'farmerBalance__totalBalance', + farmerBalance__walletBalance = 'farmerBalance__walletBalance', + id = 'id', + lastUpdateBlockNumber = 'lastUpdateBlockNumber', + lastUpdateTimestamp = 'lastUpdateTimestamp', + season = 'season', + season__id = 'season__id', + season__season = 'season__season', + season__timestamp = 'season__timestamp', + totalBalance = 'totalBalance', + walletBalance = 'walletBalance' } export type FarmerBalanceHourlySnapshot = { @@ -1541,10 +1541,10 @@ export type FarmerBalanceHourlySnapshot = { walletBalance: Scalars['BigInt']['output']; }; -export type FarmerBalanceHourlySnapshot_Filter = { +export type FarmerBalanceHourlySnapshotFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe>>; createdTimestamp?: InputMaybe; createdTimestamp_gt?: InputMaybe; createdTimestamp_gte?: InputMaybe; @@ -1586,7 +1586,7 @@ export type FarmerBalanceHourlySnapshot_Filter = { farmBalance_not?: InputMaybe; farmBalance_not_in?: InputMaybe>; farmerBalance?: InputMaybe; - farmerBalance_?: InputMaybe; + farmerBalance_?: InputMaybe; farmerBalance_contains?: InputMaybe; farmerBalance_contains_nocase?: InputMaybe; farmerBalance_ends_with?: InputMaybe; @@ -1630,7 +1630,7 @@ export type FarmerBalanceHourlySnapshot_Filter = { lastUpdateTimestamp_lte?: InputMaybe; lastUpdateTimestamp_not?: InputMaybe; lastUpdateTimestamp_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; season?: InputMaybe; seasonNumber?: InputMaybe; seasonNumber_gt?: InputMaybe; @@ -1640,7 +1640,7 @@ export type FarmerBalanceHourlySnapshot_Filter = { seasonNumber_lte?: InputMaybe; seasonNumber_not?: InputMaybe; seasonNumber_not_in?: InputMaybe>; - season_?: InputMaybe; + season_?: InputMaybe; season_contains?: InputMaybe; season_contains_nocase?: InputMaybe; season_ends_with?: InputMaybe; @@ -1678,38 +1678,38 @@ export type FarmerBalanceHourlySnapshot_Filter = { walletBalance_not_in?: InputMaybe>; }; -export enum FarmerBalanceHourlySnapshot_OrderBy { - CreatedTimestamp = 'createdTimestamp', - DeltaFarmBalance = 'deltaFarmBalance', - DeltaTotalBalance = 'deltaTotalBalance', - DeltaWalletBalance = 'deltaWalletBalance', - FarmBalance = 'farmBalance', - FarmerBalance = 'farmerBalance', - FarmerBalanceFarmBalance = 'farmerBalance__farmBalance', - FarmerBalanceFarmer = 'farmerBalance__farmer', - FarmerBalanceId = 'farmerBalance__id', - FarmerBalanceLastDailySnapshotDay = 'farmerBalance__lastDailySnapshotDay', - FarmerBalanceLastHourlySnapshotSeason = 'farmerBalance__lastHourlySnapshotSeason', - FarmerBalanceToken = 'farmerBalance__token', - FarmerBalanceTotalBalance = 'farmerBalance__totalBalance', - FarmerBalanceWalletBalance = 'farmerBalance__walletBalance', - Id = 'id', - LastUpdateBlockNumber = 'lastUpdateBlockNumber', - LastUpdateTimestamp = 'lastUpdateTimestamp', - Season = 'season', - SeasonNumber = 'seasonNumber', - SeasonId = 'season__id', - SeasonSeason = 'season__season', - SeasonTimestamp = 'season__timestamp', - TotalBalance = 'totalBalance', - WalletBalance = 'walletBalance' +export enum FarmerBalanceHourlySnapshotOrderBy { + createdTimestamp = 'createdTimestamp', + deltaFarmBalance = 'deltaFarmBalance', + deltaTotalBalance = 'deltaTotalBalance', + deltaWalletBalance = 'deltaWalletBalance', + farmBalance = 'farmBalance', + farmerBalance = 'farmerBalance', + farmerBalance__farmBalance = 'farmerBalance__farmBalance', + farmerBalance__farmer = 'farmerBalance__farmer', + farmerBalance__id = 'farmerBalance__id', + farmerBalance__lastDailySnapshotDay = 'farmerBalance__lastDailySnapshotDay', + farmerBalance__lastHourlySnapshotSeason = 'farmerBalance__lastHourlySnapshotSeason', + farmerBalance__token = 'farmerBalance__token', + farmerBalance__totalBalance = 'farmerBalance__totalBalance', + farmerBalance__walletBalance = 'farmerBalance__walletBalance', + id = 'id', + lastUpdateBlockNumber = 'lastUpdateBlockNumber', + lastUpdateTimestamp = 'lastUpdateTimestamp', + season = 'season', + seasonNumber = 'seasonNumber', + season__id = 'season__id', + season__season = 'season__season', + season__timestamp = 'season__timestamp', + totalBalance = 'totalBalance', + walletBalance = 'walletBalance' } -export type FarmerBalance_Filter = { +export type FarmerBalanceFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - and?: InputMaybe>>; - dailySnapshots_?: InputMaybe; + and?: InputMaybe>>; + dailySnapshots_?: InputMaybe; farmBalance?: InputMaybe; farmBalance_gt?: InputMaybe; farmBalance_gte?: InputMaybe; @@ -1728,7 +1728,7 @@ export type FarmerBalance_Filter = { farmer_not?: InputMaybe; farmer_not_contains?: InputMaybe; farmer_not_in?: InputMaybe>; - hourlySnapshots_?: InputMaybe; + hourlySnapshots_?: InputMaybe; id?: InputMaybe; id_gt?: InputMaybe; id_gte?: InputMaybe; @@ -1753,7 +1753,7 @@ export type FarmerBalance_Filter = { lastHourlySnapshotSeason_lte?: InputMaybe; lastHourlySnapshotSeason_not?: InputMaybe; lastHourlySnapshotSeason_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; token?: InputMaybe; token_contains?: InputMaybe; token_gt?: InputMaybe; @@ -1782,23 +1782,23 @@ export type FarmerBalance_Filter = { walletBalance_not_in?: InputMaybe>; }; -export enum FarmerBalance_OrderBy { - DailySnapshots = 'dailySnapshots', - FarmBalance = 'farmBalance', - Farmer = 'farmer', - HourlySnapshots = 'hourlySnapshots', - Id = 'id', - LastDailySnapshotDay = 'lastDailySnapshotDay', - LastHourlySnapshotSeason = 'lastHourlySnapshotSeason', - Token = 'token', - TotalBalance = 'totalBalance', - WalletBalance = 'walletBalance' +export enum FarmerBalanceOrderBy { + dailySnapshots = 'dailySnapshots', + farmBalance = 'farmBalance', + farmer = 'farmer', + hourlySnapshots = 'hourlySnapshots', + id = 'id', + lastDailySnapshotDay = 'lastDailySnapshotDay', + lastHourlySnapshotSeason = 'lastHourlySnapshotSeason', + token = 'token', + totalBalance = 'totalBalance', + walletBalance = 'walletBalance' } /** Defines the order direction, either ascending or descending */ export enum OrderDirection { - Asc = 'asc', - Desc = 'desc' + asc = 'asc', + desc = 'desc' } export type Pool = { @@ -1844,37 +1844,37 @@ export type Pool = { export type PoolCrossEventsArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; export type PoolDailySnapshotsArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; export type PoolHourlySnapshotsArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; export type PoolTokensArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; export type PoolCross = { @@ -1901,14 +1901,14 @@ export type PoolCross = { timestamp: Scalars['BigInt']['output']; }; -export type PoolCross_Filter = { +export type PoolCrossFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; above?: InputMaybe; above_in?: InputMaybe>; above_not?: InputMaybe; above_not_in?: InputMaybe>; - and?: InputMaybe>>; + and?: InputMaybe>>; blockNumber?: InputMaybe; blockNumber_gt?: InputMaybe; blockNumber_gte?: InputMaybe; @@ -1933,10 +1933,10 @@ export type PoolCross_Filter = { id_lte?: InputMaybe; id_not?: InputMaybe; id_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; pool?: InputMaybe; poolDailySnapshot?: InputMaybe; - poolDailySnapshot_?: InputMaybe; + poolDailySnapshot_?: InputMaybe; poolDailySnapshot_contains?: InputMaybe; poolDailySnapshot_contains_nocase?: InputMaybe; poolDailySnapshot_ends_with?: InputMaybe; @@ -1957,7 +1957,7 @@ export type PoolCross_Filter = { poolDailySnapshot_starts_with?: InputMaybe; poolDailySnapshot_starts_with_nocase?: InputMaybe; poolHourlySnapshot?: InputMaybe; - poolHourlySnapshot_?: InputMaybe; + poolHourlySnapshot_?: InputMaybe; poolHourlySnapshot_contains?: InputMaybe; poolHourlySnapshot_contains_nocase?: InputMaybe; poolHourlySnapshot_ends_with?: InputMaybe; @@ -1977,7 +1977,7 @@ export type PoolCross_Filter = { poolHourlySnapshot_not_starts_with_nocase?: InputMaybe; poolHourlySnapshot_starts_with?: InputMaybe; poolHourlySnapshot_starts_with_nocase?: InputMaybe; - pool_?: InputMaybe; + pool_?: InputMaybe; pool_contains?: InputMaybe; pool_contains_nocase?: InputMaybe; pool_ends_with?: InputMaybe; @@ -2023,71 +2023,71 @@ export type PoolCross_Filter = { timestamp_not_in?: InputMaybe>; }; -export enum PoolCross_OrderBy { - Above = 'above', - BlockNumber = 'blockNumber', - Cross = 'cross', - Id = 'id', - Pool = 'pool', - PoolDailySnapshot = 'poolDailySnapshot', - PoolDailySnapshotCreatedTimestamp = 'poolDailySnapshot__createdTimestamp', - PoolDailySnapshotCrosses = 'poolDailySnapshot__crosses', - PoolDailySnapshotDay = 'poolDailySnapshot__day', - PoolDailySnapshotDeltaCrosses = 'poolDailySnapshot__deltaCrosses', - PoolDailySnapshotDeltaLiquidityUsd = 'poolDailySnapshot__deltaLiquidityUSD', - PoolDailySnapshotDeltaVolume = 'poolDailySnapshot__deltaVolume', - PoolDailySnapshotDeltaVolumeUsd = 'poolDailySnapshot__deltaVolumeUSD', - PoolDailySnapshotId = 'poolDailySnapshot__id', - PoolDailySnapshotInstDeltaB = 'poolDailySnapshot__instDeltaB', - PoolDailySnapshotInstPrice = 'poolDailySnapshot__instPrice', - PoolDailySnapshotLastUpdateBlockNumber = 'poolDailySnapshot__lastUpdateBlockNumber', - PoolDailySnapshotLastUpdateTimestamp = 'poolDailySnapshot__lastUpdateTimestamp', - PoolDailySnapshotLiquidityUsd = 'poolDailySnapshot__liquidityUSD', - PoolDailySnapshotTwaBeanLiquidityUsd = 'poolDailySnapshot__twaBeanLiquidityUSD', - PoolDailySnapshotTwaDeltaB = 'poolDailySnapshot__twaDeltaB', - PoolDailySnapshotTwaLiquidityUsd = 'poolDailySnapshot__twaLiquidityUSD', - PoolDailySnapshotTwaNonBeanLiquidityUsd = 'poolDailySnapshot__twaNonBeanLiquidityUSD', - PoolDailySnapshotTwaPrice = 'poolDailySnapshot__twaPrice', - PoolDailySnapshotTwaToken2Price = 'poolDailySnapshot__twaToken2Price', - PoolDailySnapshotVolume = 'poolDailySnapshot__volume', - PoolDailySnapshotVolumeUsd = 'poolDailySnapshot__volumeUSD', - PoolHourlySnapshot = 'poolHourlySnapshot', - PoolHourlySnapshotCreatedTimestamp = 'poolHourlySnapshot__createdTimestamp', - PoolHourlySnapshotCrosses = 'poolHourlySnapshot__crosses', - PoolHourlySnapshotDeltaCrosses = 'poolHourlySnapshot__deltaCrosses', - PoolHourlySnapshotDeltaLiquidityUsd = 'poolHourlySnapshot__deltaLiquidityUSD', - PoolHourlySnapshotDeltaVolume = 'poolHourlySnapshot__deltaVolume', - PoolHourlySnapshotDeltaVolumeUsd = 'poolHourlySnapshot__deltaVolumeUSD', - PoolHourlySnapshotId = 'poolHourlySnapshot__id', - PoolHourlySnapshotInstDeltaB = 'poolHourlySnapshot__instDeltaB', - PoolHourlySnapshotInstPrice = 'poolHourlySnapshot__instPrice', - PoolHourlySnapshotLastUpdateBlockNumber = 'poolHourlySnapshot__lastUpdateBlockNumber', - PoolHourlySnapshotLastUpdateTimestamp = 'poolHourlySnapshot__lastUpdateTimestamp', - PoolHourlySnapshotLiquidityUsd = 'poolHourlySnapshot__liquidityUSD', - PoolHourlySnapshotSeasonNumber = 'poolHourlySnapshot__seasonNumber', - PoolHourlySnapshotTwaBeanLiquidityUsd = 'poolHourlySnapshot__twaBeanLiquidityUSD', - PoolHourlySnapshotTwaDeltaB = 'poolHourlySnapshot__twaDeltaB', - PoolHourlySnapshotTwaLiquidityUsd = 'poolHourlySnapshot__twaLiquidityUSD', - PoolHourlySnapshotTwaNonBeanLiquidityUsd = 'poolHourlySnapshot__twaNonBeanLiquidityUSD', - PoolHourlySnapshotTwaPrice = 'poolHourlySnapshot__twaPrice', - PoolHourlySnapshotTwaToken2Price = 'poolHourlySnapshot__twaToken2Price', - PoolHourlySnapshotVolume = 'poolHourlySnapshot__volume', - PoolHourlySnapshotVolumeUsd = 'poolHourlySnapshot__volumeUSD', - PoolCreatedTimestamp = 'pool__createdTimestamp', - PoolCrosses = 'pool__crosses', - PoolId = 'pool__id', - PoolLastCross = 'pool__lastCross', - PoolLastDailySnapshotDay = 'pool__lastDailySnapshotDay', - PoolLastHourlySnapshotSeason = 'pool__lastHourlySnapshotSeason', - PoolLastPrice = 'pool__lastPrice', - PoolLastUpdateBlockNumber = 'pool__lastUpdateBlockNumber', - PoolLastUpdateTimestamp = 'pool__lastUpdateTimestamp', - PoolLiquidityUsd = 'pool__liquidityUSD', - PoolVolume = 'pool__volume', - PoolVolumeUsd = 'pool__volumeUSD', - Price = 'price', - TimeSinceLastCross = 'timeSinceLastCross', - Timestamp = 'timestamp' +export enum PoolCrossOrderBy { + above = 'above', + blockNumber = 'blockNumber', + cross = 'cross', + id = 'id', + pool = 'pool', + poolDailySnapshot = 'poolDailySnapshot', + poolDailySnapshot__createdTimestamp = 'poolDailySnapshot__createdTimestamp', + poolDailySnapshot__crosses = 'poolDailySnapshot__crosses', + poolDailySnapshot__day = 'poolDailySnapshot__day', + poolDailySnapshot__deltaCrosses = 'poolDailySnapshot__deltaCrosses', + poolDailySnapshot__deltaLiquidityUSD = 'poolDailySnapshot__deltaLiquidityUSD', + poolDailySnapshot__deltaVolume = 'poolDailySnapshot__deltaVolume', + poolDailySnapshot__deltaVolumeUSD = 'poolDailySnapshot__deltaVolumeUSD', + poolDailySnapshot__id = 'poolDailySnapshot__id', + poolDailySnapshot__instDeltaB = 'poolDailySnapshot__instDeltaB', + poolDailySnapshot__instPrice = 'poolDailySnapshot__instPrice', + poolDailySnapshot__lastUpdateBlockNumber = 'poolDailySnapshot__lastUpdateBlockNumber', + poolDailySnapshot__lastUpdateTimestamp = 'poolDailySnapshot__lastUpdateTimestamp', + poolDailySnapshot__liquidityUSD = 'poolDailySnapshot__liquidityUSD', + poolDailySnapshot__twaBeanLiquidityUSD = 'poolDailySnapshot__twaBeanLiquidityUSD', + poolDailySnapshot__twaDeltaB = 'poolDailySnapshot__twaDeltaB', + poolDailySnapshot__twaLiquidityUSD = 'poolDailySnapshot__twaLiquidityUSD', + poolDailySnapshot__twaNonBeanLiquidityUSD = 'poolDailySnapshot__twaNonBeanLiquidityUSD', + poolDailySnapshot__twaPrice = 'poolDailySnapshot__twaPrice', + poolDailySnapshot__twaToken2Price = 'poolDailySnapshot__twaToken2Price', + poolDailySnapshot__volume = 'poolDailySnapshot__volume', + poolDailySnapshot__volumeUSD = 'poolDailySnapshot__volumeUSD', + poolHourlySnapshot = 'poolHourlySnapshot', + poolHourlySnapshot__createdTimestamp = 'poolHourlySnapshot__createdTimestamp', + poolHourlySnapshot__crosses = 'poolHourlySnapshot__crosses', + poolHourlySnapshot__deltaCrosses = 'poolHourlySnapshot__deltaCrosses', + poolHourlySnapshot__deltaLiquidityUSD = 'poolHourlySnapshot__deltaLiquidityUSD', + poolHourlySnapshot__deltaVolume = 'poolHourlySnapshot__deltaVolume', + poolHourlySnapshot__deltaVolumeUSD = 'poolHourlySnapshot__deltaVolumeUSD', + poolHourlySnapshot__id = 'poolHourlySnapshot__id', + poolHourlySnapshot__instDeltaB = 'poolHourlySnapshot__instDeltaB', + poolHourlySnapshot__instPrice = 'poolHourlySnapshot__instPrice', + poolHourlySnapshot__lastUpdateBlockNumber = 'poolHourlySnapshot__lastUpdateBlockNumber', + poolHourlySnapshot__lastUpdateTimestamp = 'poolHourlySnapshot__lastUpdateTimestamp', + poolHourlySnapshot__liquidityUSD = 'poolHourlySnapshot__liquidityUSD', + poolHourlySnapshot__seasonNumber = 'poolHourlySnapshot__seasonNumber', + poolHourlySnapshot__twaBeanLiquidityUSD = 'poolHourlySnapshot__twaBeanLiquidityUSD', + poolHourlySnapshot__twaDeltaB = 'poolHourlySnapshot__twaDeltaB', + poolHourlySnapshot__twaLiquidityUSD = 'poolHourlySnapshot__twaLiquidityUSD', + poolHourlySnapshot__twaNonBeanLiquidityUSD = 'poolHourlySnapshot__twaNonBeanLiquidityUSD', + poolHourlySnapshot__twaPrice = 'poolHourlySnapshot__twaPrice', + poolHourlySnapshot__twaToken2Price = 'poolHourlySnapshot__twaToken2Price', + poolHourlySnapshot__volume = 'poolHourlySnapshot__volume', + poolHourlySnapshot__volumeUSD = 'poolHourlySnapshot__volumeUSD', + pool__createdTimestamp = 'pool__createdTimestamp', + pool__crosses = 'pool__crosses', + pool__id = 'pool__id', + pool__lastCross = 'pool__lastCross', + pool__lastDailySnapshotDay = 'pool__lastDailySnapshotDay', + pool__lastHourlySnapshotSeason = 'pool__lastHourlySnapshotSeason', + pool__lastPrice = 'pool__lastPrice', + pool__lastUpdateBlockNumber = 'pool__lastUpdateBlockNumber', + pool__lastUpdateTimestamp = 'pool__lastUpdateTimestamp', + pool__liquidityUSD = 'pool__liquidityUSD', + pool__volume = 'pool__volume', + pool__volumeUSD = 'pool__volumeUSD', + price = 'price', + timeSinceLastCross = 'timeSinceLastCross', + timestamp = 'timestamp' } export type PoolDailySnapshot = { @@ -2149,16 +2149,16 @@ export type PoolDailySnapshot = { export type PoolDailySnapshotCrossEventsArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; -export type PoolDailySnapshot_Filter = { +export type PoolDailySnapshotFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe>>; createdTimestamp?: InputMaybe; createdTimestamp_gt?: InputMaybe; createdTimestamp_gte?: InputMaybe; @@ -2167,7 +2167,7 @@ export type PoolDailySnapshot_Filter = { createdTimestamp_lte?: InputMaybe; createdTimestamp_not?: InputMaybe; createdTimestamp_not_in?: InputMaybe>; - crossEvents_?: InputMaybe; + crossEvents_?: InputMaybe; crosses?: InputMaybe; crosses_gt?: InputMaybe; crosses_gte?: InputMaybe; @@ -2270,9 +2270,9 @@ export type PoolDailySnapshot_Filter = { liquidityUSD_lte?: InputMaybe; liquidityUSD_not?: InputMaybe; liquidityUSD_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; pool?: InputMaybe; - pool_?: InputMaybe; + pool_?: InputMaybe; pool_contains?: InputMaybe; pool_contains_nocase?: InputMaybe; pool_ends_with?: InputMaybe; @@ -2299,7 +2299,7 @@ export type PoolDailySnapshot_Filter = { reserves_not_contains?: InputMaybe>; reserves_not_contains_nocase?: InputMaybe>; season?: InputMaybe; - season_?: InputMaybe; + season_?: InputMaybe; season_contains?: InputMaybe; season_contains_nocase?: InputMaybe; season_ends_with?: InputMaybe; @@ -2391,49 +2391,49 @@ export type PoolDailySnapshot_Filter = { volume_not_in?: InputMaybe>; }; -export enum PoolDailySnapshot_OrderBy { - CreatedTimestamp = 'createdTimestamp', - CrossEvents = 'crossEvents', - Crosses = 'crosses', - Day = 'day', - DeltaCrosses = 'deltaCrosses', - DeltaLiquidityUsd = 'deltaLiquidityUSD', - DeltaReserves = 'deltaReserves', - DeltaVolume = 'deltaVolume', - DeltaVolumeUsd = 'deltaVolumeUSD', - Id = 'id', - InstDeltaB = 'instDeltaB', - InstPrice = 'instPrice', - LastUpdateBlockNumber = 'lastUpdateBlockNumber', - LastUpdateTimestamp = 'lastUpdateTimestamp', - LiquidityUsd = 'liquidityUSD', - Pool = 'pool', - PoolCreatedTimestamp = 'pool__createdTimestamp', - PoolCrosses = 'pool__crosses', - PoolId = 'pool__id', - PoolLastCross = 'pool__lastCross', - PoolLastDailySnapshotDay = 'pool__lastDailySnapshotDay', - PoolLastHourlySnapshotSeason = 'pool__lastHourlySnapshotSeason', - PoolLastPrice = 'pool__lastPrice', - PoolLastUpdateBlockNumber = 'pool__lastUpdateBlockNumber', - PoolLastUpdateTimestamp = 'pool__lastUpdateTimestamp', - PoolLiquidityUsd = 'pool__liquidityUSD', - PoolVolume = 'pool__volume', - PoolVolumeUsd = 'pool__volumeUSD', - Reserves = 'reserves', - Season = 'season', - SeasonId = 'season__id', - SeasonSeason = 'season__season', - SeasonTimestamp = 'season__timestamp', - TwaBeanLiquidityUsd = 'twaBeanLiquidityUSD', - TwaDeltaB = 'twaDeltaB', - TwaLiquidityUsd = 'twaLiquidityUSD', - TwaNonBeanLiquidityUsd = 'twaNonBeanLiquidityUSD', - TwaPrice = 'twaPrice', - TwaReserves = 'twaReserves', - TwaToken2Price = 'twaToken2Price', - Volume = 'volume', - VolumeUsd = 'volumeUSD' +export enum PoolDailySnapshotOrderBy { + createdTimestamp = 'createdTimestamp', + crossEvents = 'crossEvents', + crosses = 'crosses', + day = 'day', + deltaCrosses = 'deltaCrosses', + deltaLiquidityUSD = 'deltaLiquidityUSD', + deltaReserves = 'deltaReserves', + deltaVolume = 'deltaVolume', + deltaVolumeUSD = 'deltaVolumeUSD', + id = 'id', + instDeltaB = 'instDeltaB', + instPrice = 'instPrice', + lastUpdateBlockNumber = 'lastUpdateBlockNumber', + lastUpdateTimestamp = 'lastUpdateTimestamp', + liquidityUSD = 'liquidityUSD', + pool = 'pool', + pool__createdTimestamp = 'pool__createdTimestamp', + pool__crosses = 'pool__crosses', + pool__id = 'pool__id', + pool__lastCross = 'pool__lastCross', + pool__lastDailySnapshotDay = 'pool__lastDailySnapshotDay', + pool__lastHourlySnapshotSeason = 'pool__lastHourlySnapshotSeason', + pool__lastPrice = 'pool__lastPrice', + pool__lastUpdateBlockNumber = 'pool__lastUpdateBlockNumber', + pool__lastUpdateTimestamp = 'pool__lastUpdateTimestamp', + pool__liquidityUSD = 'pool__liquidityUSD', + pool__volume = 'pool__volume', + pool__volumeUSD = 'pool__volumeUSD', + reserves = 'reserves', + season = 'season', + season__id = 'season__id', + season__season = 'season__season', + season__timestamp = 'season__timestamp', + twaBeanLiquidityUSD = 'twaBeanLiquidityUSD', + twaDeltaB = 'twaDeltaB', + twaLiquidityUSD = 'twaLiquidityUSD', + twaNonBeanLiquidityUSD = 'twaNonBeanLiquidityUSD', + twaPrice = 'twaPrice', + twaReserves = 'twaReserves', + twaToken2Price = 'twaToken2Price', + volume = 'volume', + volumeUSD = 'volumeUSD' } export type PoolHourlySnapshot = { @@ -2494,16 +2494,16 @@ export type PoolHourlySnapshot = { export type PoolHourlySnapshotCrossEventsArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; -export type PoolHourlySnapshot_Filter = { +export type PoolHourlySnapshotFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe>>; createdTimestamp?: InputMaybe; createdTimestamp_gt?: InputMaybe; createdTimestamp_gte?: InputMaybe; @@ -2512,7 +2512,7 @@ export type PoolHourlySnapshot_Filter = { createdTimestamp_lte?: InputMaybe; createdTimestamp_not?: InputMaybe; createdTimestamp_not_in?: InputMaybe>; - crossEvents_?: InputMaybe; + crossEvents_?: InputMaybe; crosses?: InputMaybe; crosses_gt?: InputMaybe; crosses_gte?: InputMaybe; @@ -2607,9 +2607,9 @@ export type PoolHourlySnapshot_Filter = { liquidityUSD_lte?: InputMaybe; liquidityUSD_not?: InputMaybe; liquidityUSD_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; pool?: InputMaybe; - pool_?: InputMaybe; + pool_?: InputMaybe; pool_contains?: InputMaybe; pool_contains_nocase?: InputMaybe; pool_ends_with?: InputMaybe; @@ -2644,7 +2644,7 @@ export type PoolHourlySnapshot_Filter = { seasonNumber_lte?: InputMaybe; seasonNumber_not?: InputMaybe; seasonNumber_not_in?: InputMaybe>; - season_?: InputMaybe; + season_?: InputMaybe; season_contains?: InputMaybe; season_contains_nocase?: InputMaybe; season_ends_with?: InputMaybe; @@ -2736,57 +2736,57 @@ export type PoolHourlySnapshot_Filter = { volume_not_in?: InputMaybe>; }; -export enum PoolHourlySnapshot_OrderBy { - CreatedTimestamp = 'createdTimestamp', - CrossEvents = 'crossEvents', - Crosses = 'crosses', - DeltaCrosses = 'deltaCrosses', - DeltaLiquidityUsd = 'deltaLiquidityUSD', - DeltaReserves = 'deltaReserves', - DeltaVolume = 'deltaVolume', - DeltaVolumeUsd = 'deltaVolumeUSD', - Id = 'id', - InstDeltaB = 'instDeltaB', - InstPrice = 'instPrice', - LastUpdateBlockNumber = 'lastUpdateBlockNumber', - LastUpdateTimestamp = 'lastUpdateTimestamp', - LiquidityUsd = 'liquidityUSD', - Pool = 'pool', - PoolCreatedTimestamp = 'pool__createdTimestamp', - PoolCrosses = 'pool__crosses', - PoolId = 'pool__id', - PoolLastCross = 'pool__lastCross', - PoolLastDailySnapshotDay = 'pool__lastDailySnapshotDay', - PoolLastHourlySnapshotSeason = 'pool__lastHourlySnapshotSeason', - PoolLastPrice = 'pool__lastPrice', - PoolLastUpdateBlockNumber = 'pool__lastUpdateBlockNumber', - PoolLastUpdateTimestamp = 'pool__lastUpdateTimestamp', - PoolLiquidityUsd = 'pool__liquidityUSD', - PoolVolume = 'pool__volume', - PoolVolumeUsd = 'pool__volumeUSD', - Reserves = 'reserves', - Season = 'season', - SeasonNumber = 'seasonNumber', - SeasonId = 'season__id', - SeasonSeason = 'season__season', - SeasonTimestamp = 'season__timestamp', - TwaBeanLiquidityUsd = 'twaBeanLiquidityUSD', - TwaDeltaB = 'twaDeltaB', - TwaLiquidityUsd = 'twaLiquidityUSD', - TwaNonBeanLiquidityUsd = 'twaNonBeanLiquidityUSD', - TwaPrice = 'twaPrice', - TwaReserves = 'twaReserves', - TwaToken2Price = 'twaToken2Price', - Volume = 'volume', - VolumeUsd = 'volumeUSD' +export enum PoolHourlySnapshotOrderBy { + createdTimestamp = 'createdTimestamp', + crossEvents = 'crossEvents', + crosses = 'crosses', + deltaCrosses = 'deltaCrosses', + deltaLiquidityUSD = 'deltaLiquidityUSD', + deltaReserves = 'deltaReserves', + deltaVolume = 'deltaVolume', + deltaVolumeUSD = 'deltaVolumeUSD', + id = 'id', + instDeltaB = 'instDeltaB', + instPrice = 'instPrice', + lastUpdateBlockNumber = 'lastUpdateBlockNumber', + lastUpdateTimestamp = 'lastUpdateTimestamp', + liquidityUSD = 'liquidityUSD', + pool = 'pool', + pool__createdTimestamp = 'pool__createdTimestamp', + pool__crosses = 'pool__crosses', + pool__id = 'pool__id', + pool__lastCross = 'pool__lastCross', + pool__lastDailySnapshotDay = 'pool__lastDailySnapshotDay', + pool__lastHourlySnapshotSeason = 'pool__lastHourlySnapshotSeason', + pool__lastPrice = 'pool__lastPrice', + pool__lastUpdateBlockNumber = 'pool__lastUpdateBlockNumber', + pool__lastUpdateTimestamp = 'pool__lastUpdateTimestamp', + pool__liquidityUSD = 'pool__liquidityUSD', + pool__volume = 'pool__volume', + pool__volumeUSD = 'pool__volumeUSD', + reserves = 'reserves', + season = 'season', + seasonNumber = 'seasonNumber', + season__id = 'season__id', + season__season = 'season__season', + season__timestamp = 'season__timestamp', + twaBeanLiquidityUSD = 'twaBeanLiquidityUSD', + twaDeltaB = 'twaDeltaB', + twaLiquidityUSD = 'twaLiquidityUSD', + twaNonBeanLiquidityUSD = 'twaNonBeanLiquidityUSD', + twaPrice = 'twaPrice', + twaReserves = 'twaReserves', + twaToken2Price = 'twaToken2Price', + volume = 'volume', + volumeUSD = 'volumeUSD' } -export type Pool_Filter = { +export type PoolFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe>>; bean?: InputMaybe; - bean_?: InputMaybe; + bean_?: InputMaybe; bean_contains?: InputMaybe; bean_contains_nocase?: InputMaybe; bean_ends_with?: InputMaybe; @@ -2814,7 +2814,7 @@ export type Pool_Filter = { createdTimestamp_lte?: InputMaybe; createdTimestamp_not?: InputMaybe; createdTimestamp_not_in?: InputMaybe>; - crossEvents_?: InputMaybe; + crossEvents_?: InputMaybe; crosses?: InputMaybe; crosses_gt?: InputMaybe; crosses_gte?: InputMaybe; @@ -2824,7 +2824,7 @@ export type Pool_Filter = { crosses_not?: InputMaybe; crosses_not_in?: InputMaybe>; currentSeason?: InputMaybe; - currentSeason_?: InputMaybe; + currentSeason_?: InputMaybe; currentSeason_contains?: InputMaybe; currentSeason_contains_nocase?: InputMaybe; currentSeason_ends_with?: InputMaybe; @@ -2844,8 +2844,8 @@ export type Pool_Filter = { currentSeason_not_starts_with_nocase?: InputMaybe; currentSeason_starts_with?: InputMaybe; currentSeason_starts_with_nocase?: InputMaybe; - dailySnapshots_?: InputMaybe; - hourlySnapshots_?: InputMaybe; + dailySnapshots_?: InputMaybe; + hourlySnapshots_?: InputMaybe; id?: InputMaybe; id_contains?: InputMaybe; id_gt?: InputMaybe; @@ -2912,7 +2912,7 @@ export type Pool_Filter = { liquidityUSD_lte?: InputMaybe; liquidityUSD_not?: InputMaybe; liquidityUSD_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; reserves?: InputMaybe>; reserves_contains?: InputMaybe>; reserves_contains_nocase?: InputMaybe>; @@ -2920,7 +2920,7 @@ export type Pool_Filter = { reserves_not_contains?: InputMaybe>; reserves_not_contains_nocase?: InputMaybe>; tokens?: InputMaybe>; - tokens_?: InputMaybe; + tokens_?: InputMaybe; tokens_contains?: InputMaybe>; tokens_contains_nocase?: InputMaybe>; tokens_not?: InputMaybe>; @@ -2944,50 +2944,50 @@ export type Pool_Filter = { volume_not_in?: InputMaybe>; }; -export enum Pool_OrderBy { - Bean = 'bean', - BeanCreatedTimestamp = 'bean__createdTimestamp', - BeanCrosses = 'bean__crosses', - BeanId = 'bean__id', - BeanLastCross = 'bean__lastCross', - BeanLastDailySnapshotDay = 'bean__lastDailySnapshotDay', - BeanLastHourlySnapshotSeason = 'bean__lastHourlySnapshotSeason', - BeanLastPrice = 'bean__lastPrice', - BeanLastUpdateBlockNumber = 'bean__lastUpdateBlockNumber', - BeanLastUpdateTimestamp = 'bean__lastUpdateTimestamp', - BeanLiquidityUsd = 'bean__liquidityUSD', - BeanLockedBeans = 'bean__lockedBeans', - BeanSupply = 'bean__supply', - BeanSupplyInPegLp = 'bean__supplyInPegLP', - BeanVolume = 'bean__volume', - BeanVolumeUsd = 'bean__volumeUSD', - CreatedTimestamp = 'createdTimestamp', - CrossEvents = 'crossEvents', - Crosses = 'crosses', - CurrentSeason = 'currentSeason', - CurrentSeasonId = 'currentSeason__id', - CurrentSeasonSeason = 'currentSeason__season', - CurrentSeasonTimestamp = 'currentSeason__timestamp', - DailySnapshots = 'dailySnapshots', - HourlySnapshots = 'hourlySnapshots', - Id = 'id', - LastCross = 'lastCross', - LastDailySnapshotDay = 'lastDailySnapshotDay', - LastHourlySnapshotSeason = 'lastHourlySnapshotSeason', - LastPrice = 'lastPrice', - LastUpdateBlockNumber = 'lastUpdateBlockNumber', - LastUpdateTimestamp = 'lastUpdateTimestamp', - LiquidityUsd = 'liquidityUSD', - Reserves = 'reserves', - Tokens = 'tokens', - Volume = 'volume', - VolumeUsd = 'volumeUSD' +export enum PoolOrderBy { + bean = 'bean', + bean__createdTimestamp = 'bean__createdTimestamp', + bean__crosses = 'bean__crosses', + bean__id = 'bean__id', + bean__lastCross = 'bean__lastCross', + bean__lastDailySnapshotDay = 'bean__lastDailySnapshotDay', + bean__lastHourlySnapshotSeason = 'bean__lastHourlySnapshotSeason', + bean__lastPrice = 'bean__lastPrice', + bean__lastUpdateBlockNumber = 'bean__lastUpdateBlockNumber', + bean__lastUpdateTimestamp = 'bean__lastUpdateTimestamp', + bean__liquidityUSD = 'bean__liquidityUSD', + bean__lockedBeans = 'bean__lockedBeans', + bean__supply = 'bean__supply', + bean__supplyInPegLP = 'bean__supplyInPegLP', + bean__volume = 'bean__volume', + bean__volumeUSD = 'bean__volumeUSD', + createdTimestamp = 'createdTimestamp', + crossEvents = 'crossEvents', + crosses = 'crosses', + currentSeason = 'currentSeason', + currentSeason__id = 'currentSeason__id', + currentSeason__season = 'currentSeason__season', + currentSeason__timestamp = 'currentSeason__timestamp', + dailySnapshots = 'dailySnapshots', + hourlySnapshots = 'hourlySnapshots', + id = 'id', + lastCross = 'lastCross', + lastDailySnapshotDay = 'lastDailySnapshotDay', + lastHourlySnapshotSeason = 'lastHourlySnapshotSeason', + lastPrice = 'lastPrice', + lastUpdateBlockNumber = 'lastUpdateBlockNumber', + lastUpdateTimestamp = 'lastUpdateTimestamp', + liquidityUSD = 'liquidityUSD', + reserves = 'reserves', + tokens = 'tokens', + volume = 'volume', + volumeUSD = 'volumeUSD' } export type Query = { __typename?: 'Query'; /** Access to subgraph metadata */ - _meta?: Maybe<_Meta_>; + _meta?: Maybe; bean?: Maybe; beanCross?: Maybe; beanCrosses: Array; @@ -3025,314 +3025,314 @@ export type Query = { }; -export type Query_MetaArgs = { - block?: InputMaybe; +export type QueryMetaArgs = { + block?: InputMaybe; }; export type QueryBeanArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryBeanCrossArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryBeanCrossesArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryBeanDailySnapshotArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryBeanDailySnapshotsArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryBeanHourlySnapshotArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryBeanHourlySnapshotsArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryBeansArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryFarmerBalanceArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryFarmerBalanceDailySnapshotArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryFarmerBalanceDailySnapshotsArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryFarmerBalanceHourlySnapshotArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryFarmerBalanceHourlySnapshotsArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryFarmerBalancesArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryPoolArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryPoolCrossArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryPoolCrossesArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryPoolDailySnapshotArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryPoolDailySnapshotsArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryPoolHourlySnapshotArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryPoolHourlySnapshotsArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryPoolsArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QuerySeasonArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QuerySeasonsArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryTokenArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryTokenDailySnapshotArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryTokenDailySnapshotsArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryTokenHourlySnapshotArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryTokenHourlySnapshotsArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryTokensArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryTwaOracleArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryTwaOraclesArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryVersionArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryVersionsArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type Season = { @@ -3352,27 +3352,27 @@ export type Season = { export type SeasonPoolDailySnapshotsArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; export type SeasonPoolHourlySnapshotsArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; -export type Season_Filter = { +export type SeasonFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - and?: InputMaybe>>; - beanDailySnapshot_?: InputMaybe; - beanHourlySnapshot_?: InputMaybe; + and?: InputMaybe>>; + beanDailySnapshot_?: InputMaybe; + beanHourlySnapshot_?: InputMaybe; id?: InputMaybe; id_gt?: InputMaybe; id_gte?: InputMaybe; @@ -3381,9 +3381,9 @@ export type Season_Filter = { id_lte?: InputMaybe; id_not?: InputMaybe; id_not_in?: InputMaybe>; - or?: InputMaybe>>; - poolDailySnapshots_?: InputMaybe; - poolHourlySnapshots_?: InputMaybe; + or?: InputMaybe>>; + poolDailySnapshots_?: InputMaybe; + poolHourlySnapshots_?: InputMaybe; season?: InputMaybe; season_gt?: InputMaybe; season_gte?: InputMaybe; @@ -3402,417 +3402,66 @@ export type Season_Filter = { timestamp_not_in?: InputMaybe>; }; -export enum Season_OrderBy { - BeanDailySnapshot = 'beanDailySnapshot', - BeanDailySnapshotCreatedTimestamp = 'beanDailySnapshot__createdTimestamp', - BeanDailySnapshotCrosses = 'beanDailySnapshot__crosses', - BeanDailySnapshotDay = 'beanDailySnapshot__day', - BeanDailySnapshotDeltaCrosses = 'beanDailySnapshot__deltaCrosses', - BeanDailySnapshotDeltaLiquidityUsd = 'beanDailySnapshot__deltaLiquidityUSD', - BeanDailySnapshotDeltaVolume = 'beanDailySnapshot__deltaVolume', - BeanDailySnapshotDeltaVolumeUsd = 'beanDailySnapshot__deltaVolumeUSD', - BeanDailySnapshotId = 'beanDailySnapshot__id', - BeanDailySnapshotInstDeltaB = 'beanDailySnapshot__instDeltaB', - BeanDailySnapshotInstPrice = 'beanDailySnapshot__instPrice', - BeanDailySnapshotL2sr = 'beanDailySnapshot__l2sr', - BeanDailySnapshotLastUpdateBlockNumber = 'beanDailySnapshot__lastUpdateBlockNumber', - BeanDailySnapshotLastUpdateTimestamp = 'beanDailySnapshot__lastUpdateTimestamp', - BeanDailySnapshotLiquidityUsd = 'beanDailySnapshot__liquidityUSD', - BeanDailySnapshotLockedBeans = 'beanDailySnapshot__lockedBeans', - BeanDailySnapshotMarketCap = 'beanDailySnapshot__marketCap', - BeanDailySnapshotSupply = 'beanDailySnapshot__supply', - BeanDailySnapshotSupplyInPegLp = 'beanDailySnapshot__supplyInPegLP', - BeanDailySnapshotTwaBeanLiquidityUsd = 'beanDailySnapshot__twaBeanLiquidityUSD', - BeanDailySnapshotTwaDeltaB = 'beanDailySnapshot__twaDeltaB', - BeanDailySnapshotTwaLiquidityUsd = 'beanDailySnapshot__twaLiquidityUSD', - BeanDailySnapshotTwaNonBeanLiquidityUsd = 'beanDailySnapshot__twaNonBeanLiquidityUSD', - BeanDailySnapshotTwaPrice = 'beanDailySnapshot__twaPrice', - BeanDailySnapshotVolume = 'beanDailySnapshot__volume', - BeanDailySnapshotVolumeUsd = 'beanDailySnapshot__volumeUSD', - BeanHourlySnapshot = 'beanHourlySnapshot', - BeanHourlySnapshotCreatedTimestamp = 'beanHourlySnapshot__createdTimestamp', - BeanHourlySnapshotCrosses = 'beanHourlySnapshot__crosses', - BeanHourlySnapshotDeltaCrosses = 'beanHourlySnapshot__deltaCrosses', - BeanHourlySnapshotDeltaLiquidityUsd = 'beanHourlySnapshot__deltaLiquidityUSD', - BeanHourlySnapshotDeltaVolume = 'beanHourlySnapshot__deltaVolume', - BeanHourlySnapshotDeltaVolumeUsd = 'beanHourlySnapshot__deltaVolumeUSD', - BeanHourlySnapshotId = 'beanHourlySnapshot__id', - BeanHourlySnapshotInstDeltaB = 'beanHourlySnapshot__instDeltaB', - BeanHourlySnapshotInstPrice = 'beanHourlySnapshot__instPrice', - BeanHourlySnapshotL2sr = 'beanHourlySnapshot__l2sr', - BeanHourlySnapshotLastUpdateBlockNumber = 'beanHourlySnapshot__lastUpdateBlockNumber', - BeanHourlySnapshotLastUpdateTimestamp = 'beanHourlySnapshot__lastUpdateTimestamp', - BeanHourlySnapshotLiquidityUsd = 'beanHourlySnapshot__liquidityUSD', - BeanHourlySnapshotLockedBeans = 'beanHourlySnapshot__lockedBeans', - BeanHourlySnapshotMarketCap = 'beanHourlySnapshot__marketCap', - BeanHourlySnapshotSeasonNumber = 'beanHourlySnapshot__seasonNumber', - BeanHourlySnapshotSupply = 'beanHourlySnapshot__supply', - BeanHourlySnapshotSupplyInPegLp = 'beanHourlySnapshot__supplyInPegLP', - BeanHourlySnapshotTwaBeanLiquidityUsd = 'beanHourlySnapshot__twaBeanLiquidityUSD', - BeanHourlySnapshotTwaDeltaB = 'beanHourlySnapshot__twaDeltaB', - BeanHourlySnapshotTwaLiquidityUsd = 'beanHourlySnapshot__twaLiquidityUSD', - BeanHourlySnapshotTwaNonBeanLiquidityUsd = 'beanHourlySnapshot__twaNonBeanLiquidityUSD', - BeanHourlySnapshotTwaPrice = 'beanHourlySnapshot__twaPrice', - BeanHourlySnapshotVolume = 'beanHourlySnapshot__volume', - BeanHourlySnapshotVolumeUsd = 'beanHourlySnapshot__volumeUSD', - Id = 'id', - PoolDailySnapshots = 'poolDailySnapshots', - PoolHourlySnapshots = 'poolHourlySnapshots', - Season = 'season', - Timestamp = 'timestamp' +export enum SeasonOrderBy { + beanDailySnapshot = 'beanDailySnapshot', + beanDailySnapshot__createdTimestamp = 'beanDailySnapshot__createdTimestamp', + beanDailySnapshot__crosses = 'beanDailySnapshot__crosses', + beanDailySnapshot__day = 'beanDailySnapshot__day', + beanDailySnapshot__deltaCrosses = 'beanDailySnapshot__deltaCrosses', + beanDailySnapshot__deltaLiquidityUSD = 'beanDailySnapshot__deltaLiquidityUSD', + beanDailySnapshot__deltaVolume = 'beanDailySnapshot__deltaVolume', + beanDailySnapshot__deltaVolumeUSD = 'beanDailySnapshot__deltaVolumeUSD', + beanDailySnapshot__id = 'beanDailySnapshot__id', + beanDailySnapshot__instDeltaB = 'beanDailySnapshot__instDeltaB', + beanDailySnapshot__instPrice = 'beanDailySnapshot__instPrice', + beanDailySnapshot__l2sr = 'beanDailySnapshot__l2sr', + beanDailySnapshot__lastUpdateBlockNumber = 'beanDailySnapshot__lastUpdateBlockNumber', + beanDailySnapshot__lastUpdateTimestamp = 'beanDailySnapshot__lastUpdateTimestamp', + beanDailySnapshot__liquidityUSD = 'beanDailySnapshot__liquidityUSD', + beanDailySnapshot__lockedBeans = 'beanDailySnapshot__lockedBeans', + beanDailySnapshot__marketCap = 'beanDailySnapshot__marketCap', + beanDailySnapshot__supply = 'beanDailySnapshot__supply', + beanDailySnapshot__supplyInPegLP = 'beanDailySnapshot__supplyInPegLP', + beanDailySnapshot__twaBeanLiquidityUSD = 'beanDailySnapshot__twaBeanLiquidityUSD', + beanDailySnapshot__twaDeltaB = 'beanDailySnapshot__twaDeltaB', + beanDailySnapshot__twaLiquidityUSD = 'beanDailySnapshot__twaLiquidityUSD', + beanDailySnapshot__twaNonBeanLiquidityUSD = 'beanDailySnapshot__twaNonBeanLiquidityUSD', + beanDailySnapshot__twaPrice = 'beanDailySnapshot__twaPrice', + beanDailySnapshot__volume = 'beanDailySnapshot__volume', + beanDailySnapshot__volumeUSD = 'beanDailySnapshot__volumeUSD', + beanHourlySnapshot = 'beanHourlySnapshot', + beanHourlySnapshot__createdTimestamp = 'beanHourlySnapshot__createdTimestamp', + beanHourlySnapshot__crosses = 'beanHourlySnapshot__crosses', + beanHourlySnapshot__deltaCrosses = 'beanHourlySnapshot__deltaCrosses', + beanHourlySnapshot__deltaLiquidityUSD = 'beanHourlySnapshot__deltaLiquidityUSD', + beanHourlySnapshot__deltaVolume = 'beanHourlySnapshot__deltaVolume', + beanHourlySnapshot__deltaVolumeUSD = 'beanHourlySnapshot__deltaVolumeUSD', + beanHourlySnapshot__id = 'beanHourlySnapshot__id', + beanHourlySnapshot__instDeltaB = 'beanHourlySnapshot__instDeltaB', + beanHourlySnapshot__instPrice = 'beanHourlySnapshot__instPrice', + beanHourlySnapshot__l2sr = 'beanHourlySnapshot__l2sr', + beanHourlySnapshot__lastUpdateBlockNumber = 'beanHourlySnapshot__lastUpdateBlockNumber', + beanHourlySnapshot__lastUpdateTimestamp = 'beanHourlySnapshot__lastUpdateTimestamp', + beanHourlySnapshot__liquidityUSD = 'beanHourlySnapshot__liquidityUSD', + beanHourlySnapshot__lockedBeans = 'beanHourlySnapshot__lockedBeans', + beanHourlySnapshot__marketCap = 'beanHourlySnapshot__marketCap', + beanHourlySnapshot__seasonNumber = 'beanHourlySnapshot__seasonNumber', + beanHourlySnapshot__supply = 'beanHourlySnapshot__supply', + beanHourlySnapshot__supplyInPegLP = 'beanHourlySnapshot__supplyInPegLP', + beanHourlySnapshot__twaBeanLiquidityUSD = 'beanHourlySnapshot__twaBeanLiquidityUSD', + beanHourlySnapshot__twaDeltaB = 'beanHourlySnapshot__twaDeltaB', + beanHourlySnapshot__twaLiquidityUSD = 'beanHourlySnapshot__twaLiquidityUSD', + beanHourlySnapshot__twaNonBeanLiquidityUSD = 'beanHourlySnapshot__twaNonBeanLiquidityUSD', + beanHourlySnapshot__twaPrice = 'beanHourlySnapshot__twaPrice', + beanHourlySnapshot__volume = 'beanHourlySnapshot__volume', + beanHourlySnapshot__volumeUSD = 'beanHourlySnapshot__volumeUSD', + id = 'id', + poolDailySnapshots = 'poolDailySnapshots', + poolHourlySnapshots = 'poolHourlySnapshots', + season = 'season', + timestamp = 'timestamp' } -export type Subscription = { - __typename?: 'Subscription'; - /** Access to subgraph metadata */ - _meta?: Maybe<_Meta_>; - bean?: Maybe; - beanCross?: Maybe; - beanCrosses: Array; - beanDailySnapshot?: Maybe; - beanDailySnapshots: Array; - beanHourlySnapshot?: Maybe; - beanHourlySnapshots: Array; - beans: Array; - farmerBalance?: Maybe; - farmerBalanceDailySnapshot?: Maybe; - farmerBalanceDailySnapshots: Array; - farmerBalanceHourlySnapshot?: Maybe; - farmerBalanceHourlySnapshots: Array; - farmerBalances: Array; - pool?: Maybe; - poolCross?: Maybe; - poolCrosses: Array; - poolDailySnapshot?: Maybe; - poolDailySnapshots: Array; - poolHourlySnapshot?: Maybe; - poolHourlySnapshots: Array; - pools: Array; - season?: Maybe; - seasons: Array; - token?: Maybe; - tokenDailySnapshot?: Maybe; - tokenDailySnapshots: Array; - tokenHourlySnapshot?: Maybe; - tokenHourlySnapshots: Array; - tokens: Array; - twaOracle?: Maybe; - twaOracles: Array; - version?: Maybe; - versions: Array; -}; - - -export type Subscription_MetaArgs = { - block?: InputMaybe; -}; - - -export type SubscriptionBeanArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionBeanCrossArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionBeanCrossesArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionBeanDailySnapshotArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionBeanDailySnapshotsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionBeanHourlySnapshotArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionBeanHourlySnapshotsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionBeansArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionFarmerBalanceArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionFarmerBalanceDailySnapshotArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionFarmerBalanceDailySnapshotsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionFarmerBalanceHourlySnapshotArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionFarmerBalanceHourlySnapshotsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionFarmerBalancesArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionPoolArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionPoolCrossArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionPoolCrossesArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionPoolDailySnapshotArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionPoolDailySnapshotsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionPoolHourlySnapshotArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionPoolHourlySnapshotsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionPoolsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionSeasonArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionSeasonsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionTokenArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionTokenDailySnapshotArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionTokenDailySnapshotsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionTokenHourlySnapshotArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionTokenHourlySnapshotsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionTokensArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionTwaOracleArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionTwaOraclesArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionVersionArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionVersionsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - export type Token = { __typename?: 'Token'; dailySnapshots: Array; @@ -3842,19 +3491,19 @@ export type Token = { export type TokenDailySnapshotsArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; export type TokenHourlySnapshotsArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; export type TokenDailySnapshot = { @@ -3897,10 +3546,10 @@ export type TokenDailySnapshot = { walletBalance: Scalars['BigInt']['output']; }; -export type TokenDailySnapshot_Filter = { +export type TokenDailySnapshotFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe>>; createdTimestamp?: InputMaybe; createdTimestamp_gt?: InputMaybe; createdTimestamp_gte?: InputMaybe; @@ -4025,7 +3674,7 @@ export type TokenDailySnapshot_Filter = { name_not_starts_with_nocase?: InputMaybe; name_starts_with?: InputMaybe; name_starts_with_nocase?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe>>; pooledBalance?: InputMaybe; pooledBalance_gt?: InputMaybe; pooledBalance_gte?: InputMaybe; @@ -4035,7 +3684,7 @@ export type TokenDailySnapshot_Filter = { pooledBalance_not?: InputMaybe; pooledBalance_not_in?: InputMaybe>; season?: InputMaybe; - season_?: InputMaybe; + season_?: InputMaybe; season_contains?: InputMaybe; season_contains_nocase?: InputMaybe; season_ends_with?: InputMaybe; @@ -4064,7 +3713,7 @@ export type TokenDailySnapshot_Filter = { supply_not?: InputMaybe; supply_not_in?: InputMaybe>; token?: InputMaybe; - token_?: InputMaybe; + token_?: InputMaybe; token_contains?: InputMaybe; token_contains_nocase?: InputMaybe; token_ends_with?: InputMaybe; @@ -4094,39 +3743,39 @@ export type TokenDailySnapshot_Filter = { walletBalance_not_in?: InputMaybe>; }; -export enum TokenDailySnapshot_OrderBy { - CreatedTimestamp = 'createdTimestamp', - Day = 'day', - Decimals = 'decimals', - DeltaFarmBalance = 'deltaFarmBalance', - DeltaLastPriceUsd = 'deltaLastPriceUSD', - DeltaPooledBalance = 'deltaPooledBalance', - DeltaSupply = 'deltaSupply', - DeltaWalletBalance = 'deltaWalletBalance', - FarmBalance = 'farmBalance', - Id = 'id', - LastPriceUsd = 'lastPriceUSD', - LastUpdateBlockNumber = 'lastUpdateBlockNumber', - LastUpdateTimestamp = 'lastUpdateTimestamp', - Name = 'name', - PooledBalance = 'pooledBalance', - Season = 'season', - SeasonId = 'season__id', - SeasonSeason = 'season__season', - SeasonTimestamp = 'season__timestamp', - Supply = 'supply', - Token = 'token', - TokenDecimals = 'token__decimals', - TokenFarmBalance = 'token__farmBalance', - TokenId = 'token__id', - TokenLastDailySnapshotDay = 'token__lastDailySnapshotDay', - TokenLastHourlySnapshotSeason = 'token__lastHourlySnapshotSeason', - TokenLastPriceUsd = 'token__lastPriceUSD', - TokenName = 'token__name', - TokenPooledBalance = 'token__pooledBalance', - TokenSupply = 'token__supply', - TokenWalletBalance = 'token__walletBalance', - WalletBalance = 'walletBalance' +export enum TokenDailySnapshotOrderBy { + createdTimestamp = 'createdTimestamp', + day = 'day', + decimals = 'decimals', + deltaFarmBalance = 'deltaFarmBalance', + deltaLastPriceUSD = 'deltaLastPriceUSD', + deltaPooledBalance = 'deltaPooledBalance', + deltaSupply = 'deltaSupply', + deltaWalletBalance = 'deltaWalletBalance', + farmBalance = 'farmBalance', + id = 'id', + lastPriceUSD = 'lastPriceUSD', + lastUpdateBlockNumber = 'lastUpdateBlockNumber', + lastUpdateTimestamp = 'lastUpdateTimestamp', + name = 'name', + pooledBalance = 'pooledBalance', + season = 'season', + season__id = 'season__id', + season__season = 'season__season', + season__timestamp = 'season__timestamp', + supply = 'supply', + token = 'token', + token__decimals = 'token__decimals', + token__farmBalance = 'token__farmBalance', + token__id = 'token__id', + token__lastDailySnapshotDay = 'token__lastDailySnapshotDay', + token__lastHourlySnapshotSeason = 'token__lastHourlySnapshotSeason', + token__lastPriceUSD = 'token__lastPriceUSD', + token__name = 'token__name', + token__pooledBalance = 'token__pooledBalance', + token__supply = 'token__supply', + token__walletBalance = 'token__walletBalance', + walletBalance = 'walletBalance' } export type TokenHourlySnapshot = { @@ -4168,10 +3817,10 @@ export type TokenHourlySnapshot = { walletBalance: Scalars['BigInt']['output']; }; -export type TokenHourlySnapshot_Filter = { +export type TokenHourlySnapshotFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe>>; createdTimestamp?: InputMaybe; createdTimestamp_gt?: InputMaybe; createdTimestamp_gte?: InputMaybe; @@ -4288,7 +3937,7 @@ export type TokenHourlySnapshot_Filter = { name_not_starts_with_nocase?: InputMaybe; name_starts_with?: InputMaybe; name_starts_with_nocase?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe>>; pooledBalance?: InputMaybe; pooledBalance_gt?: InputMaybe; pooledBalance_gte?: InputMaybe; @@ -4306,7 +3955,7 @@ export type TokenHourlySnapshot_Filter = { seasonNumber_lte?: InputMaybe; seasonNumber_not?: InputMaybe; seasonNumber_not_in?: InputMaybe>; - season_?: InputMaybe; + season_?: InputMaybe; season_contains?: InputMaybe; season_contains_nocase?: InputMaybe; season_ends_with?: InputMaybe; @@ -4335,7 +3984,7 @@ export type TokenHourlySnapshot_Filter = { supply_not?: InputMaybe; supply_not_in?: InputMaybe>; token?: InputMaybe; - token_?: InputMaybe; + token_?: InputMaybe; token_contains?: InputMaybe; token_contains_nocase?: InputMaybe; token_ends_with?: InputMaybe; @@ -4365,46 +4014,46 @@ export type TokenHourlySnapshot_Filter = { walletBalance_not_in?: InputMaybe>; }; -export enum TokenHourlySnapshot_OrderBy { - CreatedTimestamp = 'createdTimestamp', - Decimals = 'decimals', - DeltaFarmBalance = 'deltaFarmBalance', - DeltaLastPriceUsd = 'deltaLastPriceUSD', - DeltaPooledBalance = 'deltaPooledBalance', - DeltaSupply = 'deltaSupply', - DeltaWalletBalance = 'deltaWalletBalance', - FarmBalance = 'farmBalance', - Id = 'id', - LastPriceUsd = 'lastPriceUSD', - LastUpdateBlockNumber = 'lastUpdateBlockNumber', - LastUpdateTimestamp = 'lastUpdateTimestamp', - Name = 'name', - PooledBalance = 'pooledBalance', - Season = 'season', - SeasonNumber = 'seasonNumber', - SeasonId = 'season__id', - SeasonSeason = 'season__season', - SeasonTimestamp = 'season__timestamp', - Supply = 'supply', - Token = 'token', - TokenDecimals = 'token__decimals', - TokenFarmBalance = 'token__farmBalance', - TokenId = 'token__id', - TokenLastDailySnapshotDay = 'token__lastDailySnapshotDay', - TokenLastHourlySnapshotSeason = 'token__lastHourlySnapshotSeason', - TokenLastPriceUsd = 'token__lastPriceUSD', - TokenName = 'token__name', - TokenPooledBalance = 'token__pooledBalance', - TokenSupply = 'token__supply', - TokenWalletBalance = 'token__walletBalance', - WalletBalance = 'walletBalance' +export enum TokenHourlySnapshotOrderBy { + createdTimestamp = 'createdTimestamp', + decimals = 'decimals', + deltaFarmBalance = 'deltaFarmBalance', + deltaLastPriceUSD = 'deltaLastPriceUSD', + deltaPooledBalance = 'deltaPooledBalance', + deltaSupply = 'deltaSupply', + deltaWalletBalance = 'deltaWalletBalance', + farmBalance = 'farmBalance', + id = 'id', + lastPriceUSD = 'lastPriceUSD', + lastUpdateBlockNumber = 'lastUpdateBlockNumber', + lastUpdateTimestamp = 'lastUpdateTimestamp', + name = 'name', + pooledBalance = 'pooledBalance', + season = 'season', + seasonNumber = 'seasonNumber', + season__id = 'season__id', + season__season = 'season__season', + season__timestamp = 'season__timestamp', + supply = 'supply', + token = 'token', + token__decimals = 'token__decimals', + token__farmBalance = 'token__farmBalance', + token__id = 'token__id', + token__lastDailySnapshotDay = 'token__lastDailySnapshotDay', + token__lastHourlySnapshotSeason = 'token__lastHourlySnapshotSeason', + token__lastPriceUSD = 'token__lastPriceUSD', + token__name = 'token__name', + token__pooledBalance = 'token__pooledBalance', + token__supply = 'token__supply', + token__walletBalance = 'token__walletBalance', + walletBalance = 'walletBalance' } -export type Token_Filter = { +export type TokenFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - and?: InputMaybe>>; - dailySnapshots_?: InputMaybe; + and?: InputMaybe>>; + dailySnapshots_?: InputMaybe; decimals?: InputMaybe; decimals_gt?: InputMaybe; decimals_gte?: InputMaybe; @@ -4421,7 +4070,7 @@ export type Token_Filter = { farmBalance_lte?: InputMaybe; farmBalance_not?: InputMaybe; farmBalance_not_in?: InputMaybe>; - hourlySnapshots_?: InputMaybe; + hourlySnapshots_?: InputMaybe; id?: InputMaybe; id_contains?: InputMaybe; id_gt?: InputMaybe; @@ -4476,7 +4125,7 @@ export type Token_Filter = { name_not_starts_with_nocase?: InputMaybe; name_starts_with?: InputMaybe; name_starts_with_nocase?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe>>; pooledBalance?: InputMaybe; pooledBalance_gt?: InputMaybe; pooledBalance_gte?: InputMaybe; @@ -4503,19 +4152,19 @@ export type Token_Filter = { walletBalance_not_in?: InputMaybe>; }; -export enum Token_OrderBy { - DailySnapshots = 'dailySnapshots', - Decimals = 'decimals', - FarmBalance = 'farmBalance', - HourlySnapshots = 'hourlySnapshots', - Id = 'id', - LastDailySnapshotDay = 'lastDailySnapshotDay', - LastHourlySnapshotSeason = 'lastHourlySnapshotSeason', - LastPriceUsd = 'lastPriceUSD', - Name = 'name', - PooledBalance = 'pooledBalance', - Supply = 'supply', - WalletBalance = 'walletBalance' +export enum TokenOrderBy { + dailySnapshots = 'dailySnapshots', + decimals = 'decimals', + farmBalance = 'farmBalance', + hourlySnapshots = 'hourlySnapshots', + id = 'id', + lastDailySnapshotDay = 'lastDailySnapshotDay', + lastHourlySnapshotSeason = 'lastHourlySnapshotSeason', + lastPriceUSD = 'lastPriceUSD', + name = 'name', + pooledBalance = 'pooledBalance', + supply = 'supply', + walletBalance = 'walletBalance' } export type TwaOracle = { @@ -4536,10 +4185,10 @@ export type TwaOracle = { priceCumulativeSun: Array; }; -export type TwaOracle_Filter = { +export type TwaOracleFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe>>; cumulativeWellReserves?: InputMaybe; cumulativeWellReservesBlock?: InputMaybe; cumulativeWellReservesBlock_gt?: InputMaybe; @@ -4624,9 +4273,9 @@ export type TwaOracle_Filter = { lastUpdated_lte?: InputMaybe; lastUpdated_not?: InputMaybe; lastUpdated_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; pool?: InputMaybe; - pool_?: InputMaybe; + pool_?: InputMaybe; pool_contains?: InputMaybe; pool_contains_nocase?: InputMaybe; pool_ends_with?: InputMaybe; @@ -4660,32 +4309,32 @@ export type TwaOracle_Filter = { priceCumulativeSun_not_contains_nocase?: InputMaybe>; }; -export enum TwaOracle_OrderBy { - CumulativeWellReserves = 'cumulativeWellReserves', - CumulativeWellReservesBlock = 'cumulativeWellReservesBlock', - CumulativeWellReservesPrev = 'cumulativeWellReservesPrev', - CumulativeWellReservesPrevBlock = 'cumulativeWellReservesPrevBlock', - CumulativeWellReservesPrevTime = 'cumulativeWellReservesPrevTime', - CumulativeWellReservesTime = 'cumulativeWellReservesTime', - Id = 'id', - LastBalances = 'lastBalances', - LastSun = 'lastSun', - LastUpdated = 'lastUpdated', - Pool = 'pool', - PoolCreatedTimestamp = 'pool__createdTimestamp', - PoolCrosses = 'pool__crosses', - PoolId = 'pool__id', - PoolLastCross = 'pool__lastCross', - PoolLastDailySnapshotDay = 'pool__lastDailySnapshotDay', - PoolLastHourlySnapshotSeason = 'pool__lastHourlySnapshotSeason', - PoolLastPrice = 'pool__lastPrice', - PoolLastUpdateBlockNumber = 'pool__lastUpdateBlockNumber', - PoolLastUpdateTimestamp = 'pool__lastUpdateTimestamp', - PoolLiquidityUsd = 'pool__liquidityUSD', - PoolVolume = 'pool__volume', - PoolVolumeUsd = 'pool__volumeUSD', - PriceCumulativeLast = 'priceCumulativeLast', - PriceCumulativeSun = 'priceCumulativeSun' +export enum TwaOracleOrderBy { + cumulativeWellReserves = 'cumulativeWellReserves', + cumulativeWellReservesBlock = 'cumulativeWellReservesBlock', + cumulativeWellReservesPrev = 'cumulativeWellReservesPrev', + cumulativeWellReservesPrevBlock = 'cumulativeWellReservesPrevBlock', + cumulativeWellReservesPrevTime = 'cumulativeWellReservesPrevTime', + cumulativeWellReservesTime = 'cumulativeWellReservesTime', + id = 'id', + lastBalances = 'lastBalances', + lastSun = 'lastSun', + lastUpdated = 'lastUpdated', + pool = 'pool', + pool__createdTimestamp = 'pool__createdTimestamp', + pool__crosses = 'pool__crosses', + pool__id = 'pool__id', + pool__lastCross = 'pool__lastCross', + pool__lastDailySnapshotDay = 'pool__lastDailySnapshotDay', + pool__lastHourlySnapshotSeason = 'pool__lastHourlySnapshotSeason', + pool__lastPrice = 'pool__lastPrice', + pool__lastUpdateBlockNumber = 'pool__lastUpdateBlockNumber', + pool__lastUpdateTimestamp = 'pool__lastUpdateTimestamp', + pool__liquidityUSD = 'pool__liquidityUSD', + pool__volume = 'pool__volume', + pool__volumeUSD = 'pool__volumeUSD', + priceCumulativeLast = 'priceCumulativeLast', + priceCumulativeSun = 'priceCumulativeSun' } export type Version = { @@ -4702,10 +4351,10 @@ export type Version = { versionNumber: Scalars['String']['output']; }; -export type Version_Filter = { +export type VersionFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe>>; chain?: InputMaybe; chain_contains?: InputMaybe; chain_contains_nocase?: InputMaybe; @@ -4734,7 +4383,7 @@ export type Version_Filter = { id_lte?: InputMaybe; id_not?: InputMaybe; id_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; protocolAddress?: InputMaybe; protocolAddress_contains?: InputMaybe; protocolAddress_gt?: InputMaybe; @@ -4787,15 +4436,15 @@ export type Version_Filter = { versionNumber_starts_with_nocase?: InputMaybe; }; -export enum Version_OrderBy { - Chain = 'chain', - Id = 'id', - ProtocolAddress = 'protocolAddress', - SubgraphName = 'subgraphName', - VersionNumber = 'versionNumber' +export enum VersionOrderBy { + chain = 'chain', + id = 'id', + protocolAddress = 'protocolAddress', + subgraphName = 'subgraphName', + versionNumber = 'versionNumber' } -export type _Block_ = { +export type Block = { __typename?: '_Block_'; /** The hash of the block */ hash?: Maybe; @@ -4808,7 +4457,7 @@ export type _Block_ = { }; /** The type for the top-level _meta field */ -export type _Meta_ = { +export type Meta = { __typename?: '_Meta_'; /** * Information about a specific subgraph block. The hash of the block @@ -4817,18 +4466,18 @@ export type _Meta_ = { * and therefore asks for the latest block * */ - block: _Block_; + block: Block; /** The deployment ID */ deployment: Scalars['String']['output']; /** If `true`, the subgraph encountered indexing errors at some past block */ hasIndexingErrors: Scalars['Boolean']['output']; }; -export enum _SubgraphErrorPolicy_ { +export enum SubgraphErrorPolicy { /** Data will be returned even if the subgraph has indexing errors */ - Allow = 'allow', + allow = 'allow', /** If the subgraph has indexing errors, data will be omitted. The default. */ - Deny = 'deny' + deny = 'deny' } export type BeanAdvancedChartQueryVariables = Exact<{ diff --git a/src/generated/gql/pintostalk/gql.ts b/src/generated/gql/pintostalk/gql.ts index 941ada1fa..85c8092f7 100644 --- a/src/generated/gql/pintostalk/gql.ts +++ b/src/generated/gql/pintostalk/gql.ts @@ -14,11 +14,11 @@ import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/ * Learn more about it here: https://the-guild.dev/graphql/codegen/plugins/presets/preset-client#reducing-bundle-size */ type Documents = { - "query BeanstalkAdvancedChart($from: Int, $to: Int) {\n seasons(\n first: 1000\n orderBy: season\n orderDirection: desc\n where: {season_gte: $from, season_lte: $to}\n ) {\n id\n sunriseBlock\n rewardBeans\n price\n deltaBeans\n raining\n season\n createdAt\n }\n fieldHourlySnapshots(\n first: 1000\n orderBy: season\n orderDirection: desc\n where: {field: \"0xd1a0d188e861ed9d15773a2f3574a2e94134ba8f\", season_gte: $from, season_lte: $to}\n ) {\n id\n caseId\n issuedSoil\n deltaSownBeans\n sownBeans\n deltaPodDemand\n blocksToSoldOutSoil\n podRate\n temperature\n deltaTemperature\n season\n cultivationFactor\n cultivationTemperature\n harvestableIndex\n harvestablePods\n harvestedPods\n numberOfSowers\n numberOfSows\n podIndex\n realRateOfReturn\n seasonBlock\n soil\n soilSoldOut\n unharvestablePods\n }\n siloHourlySnapshots(\n first: 1000\n orderBy: season\n orderDirection: desc\n where: {silo: \"0xd1a0d188e861ed9d15773a2f3574a2e94134ba8f\", season_gte: $from, season_lte: $to}\n ) {\n id\n beanToMaxLpGpPerBdvRatio\n deltaBeanToMaxLpGpPerBdvRatio\n season\n stalk\n }\n}": typeof types.BeanstalkAdvancedChartDocument, + "query BeanstalkAdvancedChart($from: Int, $to: Int) {\n seasons(\n first: 1000\n orderBy: season\n orderDirection: desc\n where: {season_gte: $from, season_lte: $to}\n ) {\n id\n sunriseBlock\n rewardBeans\n price\n deltaBeans\n raining\n season\n createdAt\n }\n fieldHourlySnapshots(\n first: 1000\n orderBy: season\n orderDirection: desc\n where: {field: \"0xd1a0d188e861ed9d15773a2f3574a2e94134ba8f\", season_gte: $from, season_lte: $to}\n ) {\n id\n caseId\n issuedSoil\n deltaSownBeans\n sownBeans\n deltaPodDemand\n blocksToSoldOutSoil\n podRate\n temperature\n deltaTemperature\n season\n cultivationTemperature\n harvestableIndex\n harvestablePods\n harvestedPods\n numberOfSowers\n numberOfSows\n podIndex\n realRateOfReturn\n seasonBlock\n soil\n soilSoldOut\n unharvestablePods\n }\n siloHourlySnapshots(\n first: 1000\n orderBy: season\n orderDirection: desc\n where: {silo: \"0xd1a0d188e861ed9d15773a2f3574a2e94134ba8f\", season_gte: $from, season_lte: $to}\n ) {\n id\n beanToMaxLpGpPerBdvRatio\n deltaBeanToMaxLpGpPerBdvRatio\n season\n stalk\n cropRatio\n deltaCropRatio\n }\n gaugesInfoHourlySnapshots(\n first: 1000\n orderBy: season\n orderDirection: desc\n where: {season_gte: $from, season_lte: $to}\n ) {\n id\n g0CultivationFactor\n g1BlightFactor\n g1ConvertDownPenalty\n g2BdvConvertedThisSeason\n g2BonusStalkPerBdv\n g2MaxConvertCapacity\n }\n}": typeof types.BeanstalkAdvancedChartDocument, "query FarmerPlots($account: ID!) {\n farmer(id: $account) {\n plots(\n first: 1000\n where: {pods_gt: \"50\", fullyHarvested: false}\n orderBy: index\n orderDirection: asc\n ) {\n beansPerPod\n createdAt\n creationHash\n fullyHarvested\n harvestablePods\n harvestedPods\n id\n index\n pods\n season\n source\n sourceHash\n preTransferSource\n preTransferOwner {\n id\n }\n updatedAt\n updatedAtBlock\n listing {\n id\n }\n }\n }\n}": typeof types.FarmerPlotsDocument, "query FarmerSiloBalances($account: ID!, $season: Int!) {\n farmer(id: $account) {\n deposited: deposits(\n orderBy: season\n orderDirection: asc\n where: {depositedAmount_gt: 0}\n ) {\n season\n stem\n token\n depositedAmount\n depositedBDV\n }\n withdrawn: withdraws(\n orderBy: withdrawSeason\n orderDirection: asc\n where: {claimableSeason_gt: $season, claimed: false}\n ) {\n season: withdrawSeason\n token\n amount\n }\n claimable: withdraws(\n orderBy: withdrawSeason\n orderDirection: asc\n where: {claimableSeason_lte: $season, claimed: false}\n ) {\n season: withdrawSeason\n token\n amount\n }\n }\n}": typeof types.FarmerSiloBalancesDocument, "query fieldIssuedSoil($season: Int, $field_contains_nocase: String) {\n fieldHourlySnapshots(\n first: 1\n orderBy: season\n orderDirection: desc\n where: {season: $season, field_contains_nocase: $field_contains_nocase}\n ) {\n issuedSoil\n season\n soil\n }\n}": typeof types.FieldIssuedSoilDocument, - "query FieldSnapshots($fieldId: Bytes!, $first: Int!) {\n fieldHourlySnapshots(\n first: $first\n orderBy: season\n orderDirection: desc\n where: {field_: {id: $fieldId}}\n ) {\n blocksToSoldOutSoil\n caseId\n deltaHarvestablePods\n deltaHarvestedPods\n deltaIssuedSoil\n deltaNumberOfSowers\n deltaNumberOfSows\n deltaPodIndex\n deltaPodRate\n deltaRealRateOfReturn\n deltaSoil\n deltaSownBeans\n deltaTemperature\n deltaUnharvestablePods\n harvestablePods\n harvestedPods\n id\n issuedSoil\n numberOfSowers\n numberOfSows\n podIndex\n podRate\n realRateOfReturn\n season\n seasonBlock\n soil\n soilSoldOut\n sownBeans\n temperature\n unharvestablePods\n updatedAt\n }\n}": typeof types.FieldSnapshotsDocument, + "query FieldSnapshots($fieldId: ID!, $first: Int!) {\n fieldHourlySnapshots(\n first: $first\n orderBy: season\n orderDirection: desc\n where: {field_: {id: $fieldId}}\n ) {\n blocksToSoldOutSoil\n caseId\n deltaHarvestablePods\n deltaHarvestedPods\n deltaIssuedSoil\n deltaNumberOfSowers\n deltaNumberOfSows\n deltaPodIndex\n deltaPodRate\n deltaRealRateOfReturn\n deltaSoil\n deltaSownBeans\n deltaTemperature\n deltaUnharvestablePods\n harvestablePods\n harvestedPods\n id\n issuedSoil\n numberOfSowers\n numberOfSows\n podIndex\n podRate\n realRateOfReturn\n season\n seasonBlock\n soil\n soilSoldOut\n sownBeans\n temperature\n unharvestablePods\n updatedAt\n }\n}": typeof types.FieldSnapshotsDocument, "query BeanstalkSeasonsTable($from: Int, $to: Int) {\n seasons(\n first: 1000\n orderBy: season\n orderDirection: desc\n where: {season_gte: $from, season_lte: $to}\n ) {\n id\n sunriseBlock\n rewardBeans\n price\n deltaBeans\n raining\n season\n }\n fieldHourlySnapshots(\n first: 1000\n orderBy: season\n orderDirection: desc\n where: {field: \"0xd1a0d188e861ed9d15773a2f3574a2e94134ba8f\", season_gte: $from, season_lte: $to}\n ) {\n id\n caseId\n issuedSoil\n deltaSownBeans\n sownBeans\n deltaPodDemand\n blocksToSoldOutSoil\n podRate\n temperature\n deltaTemperature\n season\n }\n siloHourlySnapshots(\n first: 1000\n orderBy: season\n orderDirection: desc\n where: {silo: \"0xd1a0d188e861ed9d15773a2f3574a2e94134ba8f\", season_gte: $from, season_lte: $to}\n ) {\n id\n beanToMaxLpGpPerBdvRatio\n deltaBeanToMaxLpGpPerBdvRatio\n season\n }\n}": typeof types.BeanstalkSeasonsTableDocument, "query SiloSnapshots($first: Int!, $id: Bytes!) {\n siloHourlySnapshots(\n first: $first\n orderBy: season\n orderDirection: desc\n where: {silo_: {id: $id}}\n ) {\n beanToMaxLpGpPerBdvRatio\n deltaBeanMints\n season\n }\n}": typeof types.SiloSnapshotsDocument, "query SiloYields {\n siloYields(\n orderBy: season\n orderDirection: desc\n where: {emaWindow: ROLLING_30_DAY}\n first: 1\n ) {\n beansPerSeasonEMA\n beta\n createdAt\n season\n id\n u\n whitelistedTokens\n emaWindow\n tokenAPYS {\n beanAPY\n stalkAPY\n season\n createdAt\n token\n }\n }\n}": typeof types.SiloYieldsDocument, @@ -40,11 +40,11 @@ type Documents = { "query BeanstalkSeasonalWrappedDepositERC20($from: Int, $to: Int) {\n wrappedDepositERC20HourlySnapshots(\n where: {season_gte: $from, season_lte: $to}\n orderBy: season\n orderDirection: asc\n first: 1000\n ) {\n id\n season\n supply\n redeemRate\n apy24h\n apy7d\n apy30d\n apy90d\n createdAt\n }\n}": typeof types.BeanstalkSeasonalWrappedDepositErc20Document, }; const documents: Documents = { - "query BeanstalkAdvancedChart($from: Int, $to: Int) {\n seasons(\n first: 1000\n orderBy: season\n orderDirection: desc\n where: {season_gte: $from, season_lte: $to}\n ) {\n id\n sunriseBlock\n rewardBeans\n price\n deltaBeans\n raining\n season\n createdAt\n }\n fieldHourlySnapshots(\n first: 1000\n orderBy: season\n orderDirection: desc\n where: {field: \"0xd1a0d188e861ed9d15773a2f3574a2e94134ba8f\", season_gte: $from, season_lte: $to}\n ) {\n id\n caseId\n issuedSoil\n deltaSownBeans\n sownBeans\n deltaPodDemand\n blocksToSoldOutSoil\n podRate\n temperature\n deltaTemperature\n season\n cultivationFactor\n cultivationTemperature\n harvestableIndex\n harvestablePods\n harvestedPods\n numberOfSowers\n numberOfSows\n podIndex\n realRateOfReturn\n seasonBlock\n soil\n soilSoldOut\n unharvestablePods\n }\n siloHourlySnapshots(\n first: 1000\n orderBy: season\n orderDirection: desc\n where: {silo: \"0xd1a0d188e861ed9d15773a2f3574a2e94134ba8f\", season_gte: $from, season_lte: $to}\n ) {\n id\n beanToMaxLpGpPerBdvRatio\n deltaBeanToMaxLpGpPerBdvRatio\n season\n stalk\n }\n}": types.BeanstalkAdvancedChartDocument, + "query BeanstalkAdvancedChart($from: Int, $to: Int) {\n seasons(\n first: 1000\n orderBy: season\n orderDirection: desc\n where: {season_gte: $from, season_lte: $to}\n ) {\n id\n sunriseBlock\n rewardBeans\n price\n deltaBeans\n raining\n season\n createdAt\n }\n fieldHourlySnapshots(\n first: 1000\n orderBy: season\n orderDirection: desc\n where: {field: \"0xd1a0d188e861ed9d15773a2f3574a2e94134ba8f\", season_gte: $from, season_lte: $to}\n ) {\n id\n caseId\n issuedSoil\n deltaSownBeans\n sownBeans\n deltaPodDemand\n blocksToSoldOutSoil\n podRate\n temperature\n deltaTemperature\n season\n cultivationTemperature\n harvestableIndex\n harvestablePods\n harvestedPods\n numberOfSowers\n numberOfSows\n podIndex\n realRateOfReturn\n seasonBlock\n soil\n soilSoldOut\n unharvestablePods\n }\n siloHourlySnapshots(\n first: 1000\n orderBy: season\n orderDirection: desc\n where: {silo: \"0xd1a0d188e861ed9d15773a2f3574a2e94134ba8f\", season_gte: $from, season_lte: $to}\n ) {\n id\n beanToMaxLpGpPerBdvRatio\n deltaBeanToMaxLpGpPerBdvRatio\n season\n stalk\n cropRatio\n deltaCropRatio\n }\n gaugesInfoHourlySnapshots(\n first: 1000\n orderBy: season\n orderDirection: desc\n where: {season_gte: $from, season_lte: $to}\n ) {\n id\n g0CultivationFactor\n g1BlightFactor\n g1ConvertDownPenalty\n g2BdvConvertedThisSeason\n g2BonusStalkPerBdv\n g2MaxConvertCapacity\n }\n}": types.BeanstalkAdvancedChartDocument, "query FarmerPlots($account: ID!) {\n farmer(id: $account) {\n plots(\n first: 1000\n where: {pods_gt: \"50\", fullyHarvested: false}\n orderBy: index\n orderDirection: asc\n ) {\n beansPerPod\n createdAt\n creationHash\n fullyHarvested\n harvestablePods\n harvestedPods\n id\n index\n pods\n season\n source\n sourceHash\n preTransferSource\n preTransferOwner {\n id\n }\n updatedAt\n updatedAtBlock\n listing {\n id\n }\n }\n }\n}": types.FarmerPlotsDocument, "query FarmerSiloBalances($account: ID!, $season: Int!) {\n farmer(id: $account) {\n deposited: deposits(\n orderBy: season\n orderDirection: asc\n where: {depositedAmount_gt: 0}\n ) {\n season\n stem\n token\n depositedAmount\n depositedBDV\n }\n withdrawn: withdraws(\n orderBy: withdrawSeason\n orderDirection: asc\n where: {claimableSeason_gt: $season, claimed: false}\n ) {\n season: withdrawSeason\n token\n amount\n }\n claimable: withdraws(\n orderBy: withdrawSeason\n orderDirection: asc\n where: {claimableSeason_lte: $season, claimed: false}\n ) {\n season: withdrawSeason\n token\n amount\n }\n }\n}": types.FarmerSiloBalancesDocument, "query fieldIssuedSoil($season: Int, $field_contains_nocase: String) {\n fieldHourlySnapshots(\n first: 1\n orderBy: season\n orderDirection: desc\n where: {season: $season, field_contains_nocase: $field_contains_nocase}\n ) {\n issuedSoil\n season\n soil\n }\n}": types.FieldIssuedSoilDocument, - "query FieldSnapshots($fieldId: Bytes!, $first: Int!) {\n fieldHourlySnapshots(\n first: $first\n orderBy: season\n orderDirection: desc\n where: {field_: {id: $fieldId}}\n ) {\n blocksToSoldOutSoil\n caseId\n deltaHarvestablePods\n deltaHarvestedPods\n deltaIssuedSoil\n deltaNumberOfSowers\n deltaNumberOfSows\n deltaPodIndex\n deltaPodRate\n deltaRealRateOfReturn\n deltaSoil\n deltaSownBeans\n deltaTemperature\n deltaUnharvestablePods\n harvestablePods\n harvestedPods\n id\n issuedSoil\n numberOfSowers\n numberOfSows\n podIndex\n podRate\n realRateOfReturn\n season\n seasonBlock\n soil\n soilSoldOut\n sownBeans\n temperature\n unharvestablePods\n updatedAt\n }\n}": types.FieldSnapshotsDocument, + "query FieldSnapshots($fieldId: ID!, $first: Int!) {\n fieldHourlySnapshots(\n first: $first\n orderBy: season\n orderDirection: desc\n where: {field_: {id: $fieldId}}\n ) {\n blocksToSoldOutSoil\n caseId\n deltaHarvestablePods\n deltaHarvestedPods\n deltaIssuedSoil\n deltaNumberOfSowers\n deltaNumberOfSows\n deltaPodIndex\n deltaPodRate\n deltaRealRateOfReturn\n deltaSoil\n deltaSownBeans\n deltaTemperature\n deltaUnharvestablePods\n harvestablePods\n harvestedPods\n id\n issuedSoil\n numberOfSowers\n numberOfSows\n podIndex\n podRate\n realRateOfReturn\n season\n seasonBlock\n soil\n soilSoldOut\n sownBeans\n temperature\n unharvestablePods\n updatedAt\n }\n}": types.FieldSnapshotsDocument, "query BeanstalkSeasonsTable($from: Int, $to: Int) {\n seasons(\n first: 1000\n orderBy: season\n orderDirection: desc\n where: {season_gte: $from, season_lte: $to}\n ) {\n id\n sunriseBlock\n rewardBeans\n price\n deltaBeans\n raining\n season\n }\n fieldHourlySnapshots(\n first: 1000\n orderBy: season\n orderDirection: desc\n where: {field: \"0xd1a0d188e861ed9d15773a2f3574a2e94134ba8f\", season_gte: $from, season_lte: $to}\n ) {\n id\n caseId\n issuedSoil\n deltaSownBeans\n sownBeans\n deltaPodDemand\n blocksToSoldOutSoil\n podRate\n temperature\n deltaTemperature\n season\n }\n siloHourlySnapshots(\n first: 1000\n orderBy: season\n orderDirection: desc\n where: {silo: \"0xd1a0d188e861ed9d15773a2f3574a2e94134ba8f\", season_gte: $from, season_lte: $to}\n ) {\n id\n beanToMaxLpGpPerBdvRatio\n deltaBeanToMaxLpGpPerBdvRatio\n season\n }\n}": types.BeanstalkSeasonsTableDocument, "query SiloSnapshots($first: Int!, $id: Bytes!) {\n siloHourlySnapshots(\n first: $first\n orderBy: season\n orderDirection: desc\n where: {silo_: {id: $id}}\n ) {\n beanToMaxLpGpPerBdvRatio\n deltaBeanMints\n season\n }\n}": types.SiloSnapshotsDocument, "query SiloYields {\n siloYields(\n orderBy: season\n orderDirection: desc\n where: {emaWindow: ROLLING_30_DAY}\n first: 1\n ) {\n beansPerSeasonEMA\n beta\n createdAt\n season\n id\n u\n whitelistedTokens\n emaWindow\n tokenAPYS {\n beanAPY\n stalkAPY\n season\n createdAt\n token\n }\n }\n}": types.SiloYieldsDocument, @@ -83,7 +83,7 @@ export function graphql(source: string): unknown; /** * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function graphql(source: "query BeanstalkAdvancedChart($from: Int, $to: Int) {\n seasons(\n first: 1000\n orderBy: season\n orderDirection: desc\n where: {season_gte: $from, season_lte: $to}\n ) {\n id\n sunriseBlock\n rewardBeans\n price\n deltaBeans\n raining\n season\n createdAt\n }\n fieldHourlySnapshots(\n first: 1000\n orderBy: season\n orderDirection: desc\n where: {field: \"0xd1a0d188e861ed9d15773a2f3574a2e94134ba8f\", season_gte: $from, season_lte: $to}\n ) {\n id\n caseId\n issuedSoil\n deltaSownBeans\n sownBeans\n deltaPodDemand\n blocksToSoldOutSoil\n podRate\n temperature\n deltaTemperature\n season\n cultivationFactor\n cultivationTemperature\n harvestableIndex\n harvestablePods\n harvestedPods\n numberOfSowers\n numberOfSows\n podIndex\n realRateOfReturn\n seasonBlock\n soil\n soilSoldOut\n unharvestablePods\n }\n siloHourlySnapshots(\n first: 1000\n orderBy: season\n orderDirection: desc\n where: {silo: \"0xd1a0d188e861ed9d15773a2f3574a2e94134ba8f\", season_gte: $from, season_lte: $to}\n ) {\n id\n beanToMaxLpGpPerBdvRatio\n deltaBeanToMaxLpGpPerBdvRatio\n season\n stalk\n }\n}"): (typeof documents)["query BeanstalkAdvancedChart($from: Int, $to: Int) {\n seasons(\n first: 1000\n orderBy: season\n orderDirection: desc\n where: {season_gte: $from, season_lte: $to}\n ) {\n id\n sunriseBlock\n rewardBeans\n price\n deltaBeans\n raining\n season\n createdAt\n }\n fieldHourlySnapshots(\n first: 1000\n orderBy: season\n orderDirection: desc\n where: {field: \"0xd1a0d188e861ed9d15773a2f3574a2e94134ba8f\", season_gte: $from, season_lte: $to}\n ) {\n id\n caseId\n issuedSoil\n deltaSownBeans\n sownBeans\n deltaPodDemand\n blocksToSoldOutSoil\n podRate\n temperature\n deltaTemperature\n season\n cultivationFactor\n cultivationTemperature\n harvestableIndex\n harvestablePods\n harvestedPods\n numberOfSowers\n numberOfSows\n podIndex\n realRateOfReturn\n seasonBlock\n soil\n soilSoldOut\n unharvestablePods\n }\n siloHourlySnapshots(\n first: 1000\n orderBy: season\n orderDirection: desc\n where: {silo: \"0xd1a0d188e861ed9d15773a2f3574a2e94134ba8f\", season_gte: $from, season_lte: $to}\n ) {\n id\n beanToMaxLpGpPerBdvRatio\n deltaBeanToMaxLpGpPerBdvRatio\n season\n stalk\n }\n}"]; +export function graphql(source: "query BeanstalkAdvancedChart($from: Int, $to: Int) {\n seasons(\n first: 1000\n orderBy: season\n orderDirection: desc\n where: {season_gte: $from, season_lte: $to}\n ) {\n id\n sunriseBlock\n rewardBeans\n price\n deltaBeans\n raining\n season\n createdAt\n }\n fieldHourlySnapshots(\n first: 1000\n orderBy: season\n orderDirection: desc\n where: {field: \"0xd1a0d188e861ed9d15773a2f3574a2e94134ba8f\", season_gte: $from, season_lte: $to}\n ) {\n id\n caseId\n issuedSoil\n deltaSownBeans\n sownBeans\n deltaPodDemand\n blocksToSoldOutSoil\n podRate\n temperature\n deltaTemperature\n season\n cultivationTemperature\n harvestableIndex\n harvestablePods\n harvestedPods\n numberOfSowers\n numberOfSows\n podIndex\n realRateOfReturn\n seasonBlock\n soil\n soilSoldOut\n unharvestablePods\n }\n siloHourlySnapshots(\n first: 1000\n orderBy: season\n orderDirection: desc\n where: {silo: \"0xd1a0d188e861ed9d15773a2f3574a2e94134ba8f\", season_gte: $from, season_lte: $to}\n ) {\n id\n beanToMaxLpGpPerBdvRatio\n deltaBeanToMaxLpGpPerBdvRatio\n season\n stalk\n cropRatio\n deltaCropRatio\n }\n gaugesInfoHourlySnapshots(\n first: 1000\n orderBy: season\n orderDirection: desc\n where: {season_gte: $from, season_lte: $to}\n ) {\n id\n g0CultivationFactor\n g1BlightFactor\n g1ConvertDownPenalty\n g2BdvConvertedThisSeason\n g2BonusStalkPerBdv\n g2MaxConvertCapacity\n }\n}"): (typeof documents)["query BeanstalkAdvancedChart($from: Int, $to: Int) {\n seasons(\n first: 1000\n orderBy: season\n orderDirection: desc\n where: {season_gte: $from, season_lte: $to}\n ) {\n id\n sunriseBlock\n rewardBeans\n price\n deltaBeans\n raining\n season\n createdAt\n }\n fieldHourlySnapshots(\n first: 1000\n orderBy: season\n orderDirection: desc\n where: {field: \"0xd1a0d188e861ed9d15773a2f3574a2e94134ba8f\", season_gte: $from, season_lte: $to}\n ) {\n id\n caseId\n issuedSoil\n deltaSownBeans\n sownBeans\n deltaPodDemand\n blocksToSoldOutSoil\n podRate\n temperature\n deltaTemperature\n season\n cultivationTemperature\n harvestableIndex\n harvestablePods\n harvestedPods\n numberOfSowers\n numberOfSows\n podIndex\n realRateOfReturn\n seasonBlock\n soil\n soilSoldOut\n unharvestablePods\n }\n siloHourlySnapshots(\n first: 1000\n orderBy: season\n orderDirection: desc\n where: {silo: \"0xd1a0d188e861ed9d15773a2f3574a2e94134ba8f\", season_gte: $from, season_lte: $to}\n ) {\n id\n beanToMaxLpGpPerBdvRatio\n deltaBeanToMaxLpGpPerBdvRatio\n season\n stalk\n cropRatio\n deltaCropRatio\n }\n gaugesInfoHourlySnapshots(\n first: 1000\n orderBy: season\n orderDirection: desc\n where: {season_gte: $from, season_lte: $to}\n ) {\n id\n g0CultivationFactor\n g1BlightFactor\n g1ConvertDownPenalty\n g2BdvConvertedThisSeason\n g2BonusStalkPerBdv\n g2MaxConvertCapacity\n }\n}"]; /** * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ @@ -99,7 +99,7 @@ export function graphql(source: "query fieldIssuedSoil($season: Int, $field_cont /** * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function graphql(source: "query FieldSnapshots($fieldId: Bytes!, $first: Int!) {\n fieldHourlySnapshots(\n first: $first\n orderBy: season\n orderDirection: desc\n where: {field_: {id: $fieldId}}\n ) {\n blocksToSoldOutSoil\n caseId\n deltaHarvestablePods\n deltaHarvestedPods\n deltaIssuedSoil\n deltaNumberOfSowers\n deltaNumberOfSows\n deltaPodIndex\n deltaPodRate\n deltaRealRateOfReturn\n deltaSoil\n deltaSownBeans\n deltaTemperature\n deltaUnharvestablePods\n harvestablePods\n harvestedPods\n id\n issuedSoil\n numberOfSowers\n numberOfSows\n podIndex\n podRate\n realRateOfReturn\n season\n seasonBlock\n soil\n soilSoldOut\n sownBeans\n temperature\n unharvestablePods\n updatedAt\n }\n}"): (typeof documents)["query FieldSnapshots($fieldId: Bytes!, $first: Int!) {\n fieldHourlySnapshots(\n first: $first\n orderBy: season\n orderDirection: desc\n where: {field_: {id: $fieldId}}\n ) {\n blocksToSoldOutSoil\n caseId\n deltaHarvestablePods\n deltaHarvestedPods\n deltaIssuedSoil\n deltaNumberOfSowers\n deltaNumberOfSows\n deltaPodIndex\n deltaPodRate\n deltaRealRateOfReturn\n deltaSoil\n deltaSownBeans\n deltaTemperature\n deltaUnharvestablePods\n harvestablePods\n harvestedPods\n id\n issuedSoil\n numberOfSowers\n numberOfSows\n podIndex\n podRate\n realRateOfReturn\n season\n seasonBlock\n soil\n soilSoldOut\n sownBeans\n temperature\n unharvestablePods\n updatedAt\n }\n}"]; +export function graphql(source: "query FieldSnapshots($fieldId: ID!, $first: Int!) {\n fieldHourlySnapshots(\n first: $first\n orderBy: season\n orderDirection: desc\n where: {field_: {id: $fieldId}}\n ) {\n blocksToSoldOutSoil\n caseId\n deltaHarvestablePods\n deltaHarvestedPods\n deltaIssuedSoil\n deltaNumberOfSowers\n deltaNumberOfSows\n deltaPodIndex\n deltaPodRate\n deltaRealRateOfReturn\n deltaSoil\n deltaSownBeans\n deltaTemperature\n deltaUnharvestablePods\n harvestablePods\n harvestedPods\n id\n issuedSoil\n numberOfSowers\n numberOfSows\n podIndex\n podRate\n realRateOfReturn\n season\n seasonBlock\n soil\n soilSoldOut\n sownBeans\n temperature\n unharvestablePods\n updatedAt\n }\n}"): (typeof documents)["query FieldSnapshots($fieldId: ID!, $first: Int!) {\n fieldHourlySnapshots(\n first: $first\n orderBy: season\n orderDirection: desc\n where: {field_: {id: $fieldId}}\n ) {\n blocksToSoldOutSoil\n caseId\n deltaHarvestablePods\n deltaHarvestedPods\n deltaIssuedSoil\n deltaNumberOfSowers\n deltaNumberOfSows\n deltaPodIndex\n deltaPodRate\n deltaRealRateOfReturn\n deltaSoil\n deltaSownBeans\n deltaTemperature\n deltaUnharvestablePods\n harvestablePods\n harvestedPods\n id\n issuedSoil\n numberOfSowers\n numberOfSows\n podIndex\n podRate\n realRateOfReturn\n season\n seasonBlock\n soil\n soilSoldOut\n sownBeans\n temperature\n unharvestablePods\n updatedAt\n }\n}"]; /** * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ diff --git a/src/generated/gql/pintostalk/graphql.ts b/src/generated/gql/pintostalk/graphql.ts index 5dea95d18..f679052ec 100644 --- a/src/generated/gql/pintostalk/graphql.ts +++ b/src/generated/gql/pintostalk/graphql.ts @@ -29,9 +29,9 @@ export type Scalars = { Timestamp: { input: any; output: any; } }; -export enum Aggregation_Interval { - Day = 'day', - Hour = 'hour' +export enum AggregationInterval { + day = 'day', + hour = 'hour' } export type Beanstalk = { @@ -61,22 +61,22 @@ export type Beanstalk = { export type BeanstalkSeasonsArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; export type BeanstalkWrappedDepositTokensArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; -export type Beanstalk_Filter = { +export type BeanstalkFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; activeFarmers?: InputMaybe>; @@ -85,7 +85,7 @@ export type Beanstalk_Filter = { activeFarmers_not?: InputMaybe>; activeFarmers_not_contains?: InputMaybe>; activeFarmers_not_contains_nocase?: InputMaybe>; - and?: InputMaybe>>; + and?: InputMaybe>>; farmersToUpdate?: InputMaybe>; farmersToUpdate_contains?: InputMaybe>; farmersToUpdate_contains_nocase?: InputMaybe>; @@ -102,7 +102,7 @@ export type Beanstalk_Filter = { fertilizer1155_not?: InputMaybe; fertilizer1155_not_contains?: InputMaybe; fertilizer1155_not_in?: InputMaybe>; - field_?: InputMaybe; + field_?: InputMaybe; id?: InputMaybe; id_gt?: InputMaybe; id_gte?: InputMaybe; @@ -119,9 +119,9 @@ export type Beanstalk_Filter = { lastSeason_lte?: InputMaybe; lastSeason_not?: InputMaybe; lastSeason_not_in?: InputMaybe>; - or?: InputMaybe>>; - seasons_?: InputMaybe; - silo_?: InputMaybe; + or?: InputMaybe>>; + seasons_?: InputMaybe; + silo_?: InputMaybe; token?: InputMaybe; token_contains?: InputMaybe; token_gt?: InputMaybe; @@ -132,69 +132,70 @@ export type Beanstalk_Filter = { token_not?: InputMaybe; token_not_contains?: InputMaybe; token_not_in?: InputMaybe>; - wrappedDepositTokens_?: InputMaybe; -}; - -export enum Beanstalk_OrderBy { - ActiveFarmers = 'activeFarmers', - FarmersToUpdate = 'farmersToUpdate', - Fertilizer1155 = 'fertilizer1155', - Field = 'field', - FieldCultivationFactor = 'field__cultivationFactor', - FieldCultivationTemperature = 'field__cultivationTemperature', - FieldHarvestableIndex = 'field__harvestableIndex', - FieldHarvestablePods = 'field__harvestablePods', - FieldHarvestedPods = 'field__harvestedPods', - FieldId = 'field__id', - FieldLastDailySnapshotDay = 'field__lastDailySnapshotDay', - FieldLastHourlySnapshotSeason = 'field__lastHourlySnapshotSeason', - FieldNumberOfSowers = 'field__numberOfSowers', - FieldNumberOfSows = 'field__numberOfSows', - FieldPodIndex = 'field__podIndex', - FieldPodRate = 'field__podRate', - FieldRealRateOfReturn = 'field__realRateOfReturn', - FieldSeason = 'field__season', - FieldSoil = 'field__soil', - FieldSownBeans = 'field__sownBeans', - FieldTemperature = 'field__temperature', - FieldUnharvestablePods = 'field__unharvestablePods', - FieldUnmigratedL1Pods = 'field__unmigratedL1Pods', - Id = 'id', - LastSeason = 'lastSeason', - Seasons = 'seasons', - Silo = 'silo', - SiloActiveFarmers = 'silo__activeFarmers', - SiloAvgConvertDownPenalty = 'silo__avgConvertDownPenalty', - SiloAvgGrownStalkPerBdvPerSeason = 'silo__avgGrownStalkPerBdvPerSeason', - SiloBeanMints = 'silo__beanMints', - SiloBeanToMaxLpGpPerBdvRatio = 'silo__beanToMaxLpGpPerBdvRatio', - SiloBonusStalkConvertUp = 'silo__bonusStalkConvertUp', - SiloConvertDownPenalty = 'silo__convertDownPenalty', - SiloCropRatio = 'silo__cropRatio', - SiloDepositedBdv = 'silo__depositedBDV', - SiloGerminatingStalk = 'silo__germinatingStalk', - SiloGrownStalkPerSeason = 'silo__grownStalkPerSeason', - SiloId = 'silo__id', - SiloLastDailySnapshotDay = 'silo__lastDailySnapshotDay', - SiloLastHourlySnapshotSeason = 'silo__lastHourlySnapshotSeason', - SiloPenalizedStalkConvertDown = 'silo__penalizedStalkConvertDown', - SiloPlantableStalk = 'silo__plantableStalk', - SiloPlantedBeans = 'silo__plantedBeans', - SiloRoots = 'silo__roots', - SiloStalk = 'silo__stalk', - SiloTotalBdvConvertUp = 'silo__totalBdvConvertUp', - SiloTotalBdvConvertUpBonus = 'silo__totalBdvConvertUpBonus', - SiloUnmigratedL1DepositedBdv = 'silo__unmigratedL1DepositedBdv', - SiloUnpenalizedStalkConvertDown = 'silo__unpenalizedStalkConvertDown', - Token = 'token', - WrappedDepositTokens = 'wrappedDepositTokens' + wrappedDepositTokens_?: InputMaybe; +}; + +export enum BeanstalkOrderBy { + activeFarmers = 'activeFarmers', + farmersToUpdate = 'farmersToUpdate', + fertilizer1155 = 'fertilizer1155', + field = 'field', + field__cultivationFactor = 'field__cultivationFactor', + field__cultivationTemperature = 'field__cultivationTemperature', + field__fieldId = 'field__fieldId', + field__harvestableIndex = 'field__harvestableIndex', + field__harvestablePods = 'field__harvestablePods', + field__harvestedPods = 'field__harvestedPods', + field__id = 'field__id', + field__lastDailySnapshotDay = 'field__lastDailySnapshotDay', + field__lastHourlySnapshotSeason = 'field__lastHourlySnapshotSeason', + field__numberOfSowers = 'field__numberOfSowers', + field__numberOfSows = 'field__numberOfSows', + field__podIndex = 'field__podIndex', + field__podRate = 'field__podRate', + field__realRateOfReturn = 'field__realRateOfReturn', + field__season = 'field__season', + field__soil = 'field__soil', + field__sownBeans = 'field__sownBeans', + field__temperature = 'field__temperature', + field__unharvestablePods = 'field__unharvestablePods', + field__unmigratedL1Pods = 'field__unmigratedL1Pods', + id = 'id', + lastSeason = 'lastSeason', + seasons = 'seasons', + silo = 'silo', + silo__activeFarmers = 'silo__activeFarmers', + silo__avgConvertDownPenalty = 'silo__avgConvertDownPenalty', + silo__avgGrownStalkPerBdvPerSeason = 'silo__avgGrownStalkPerBdvPerSeason', + silo__beanMints = 'silo__beanMints', + silo__beanToMaxLpGpPerBdvRatio = 'silo__beanToMaxLpGpPerBdvRatio', + silo__bonusStalkConvertUp = 'silo__bonusStalkConvertUp', + silo__convertDownPenalty = 'silo__convertDownPenalty', + silo__cropRatio = 'silo__cropRatio', + silo__depositedBDV = 'silo__depositedBDV', + silo__germinatingStalk = 'silo__germinatingStalk', + silo__grownStalkPerSeason = 'silo__grownStalkPerSeason', + silo__id = 'silo__id', + silo__lastDailySnapshotDay = 'silo__lastDailySnapshotDay', + silo__lastHourlySnapshotSeason = 'silo__lastHourlySnapshotSeason', + silo__penalizedStalkConvertDown = 'silo__penalizedStalkConvertDown', + silo__plantableStalk = 'silo__plantableStalk', + silo__plantedBeans = 'silo__plantedBeans', + silo__roots = 'silo__roots', + silo__stalk = 'silo__stalk', + silo__totalBdvConvertUp = 'silo__totalBdvConvertUp', + silo__totalBdvConvertUpBonus = 'silo__totalBdvConvertUpBonus', + silo__unmigratedL1DepositedBdv = 'silo__unmigratedL1DepositedBdv', + silo__unpenalizedStalkConvertDown = 'silo__unpenalizedStalkConvertDown', + token = 'token', + wrappedDepositTokens = 'wrappedDepositTokens' } export type BlockChangedFilter = { number_gte: Scalars['Int']['input']; }; -export type Block_Height = { +export type BlockHeight = { hash?: InputMaybe; number?: InputMaybe; number_gte?: InputMaybe; @@ -228,10 +229,10 @@ export type Chop = { unripeToken: UnripeToken; }; -export type Chop_Filter = { +export type ChopFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe>>; blockNumber?: InputMaybe; blockNumber_gt?: InputMaybe; blockNumber_gte?: InputMaybe; @@ -257,7 +258,7 @@ export type Chop_Filter = { createdAt_not?: InputMaybe; createdAt_not_in?: InputMaybe>; farmer?: InputMaybe; - farmer_?: InputMaybe; + farmer_?: InputMaybe; farmer_contains?: InputMaybe; farmer_contains_nocase?: InputMaybe; farmer_ends_with?: InputMaybe; @@ -295,7 +296,7 @@ export type Chop_Filter = { id_lte?: InputMaybe; id_not?: InputMaybe; id_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; underlyingAmount?: InputMaybe; underlyingAmount_gt?: InputMaybe; underlyingAmount_gte?: InputMaybe; @@ -313,7 +314,7 @@ export type Chop_Filter = { underlyingBdv_not?: InputMaybe; underlyingBdv_not_in?: InputMaybe>; underlyingToken?: InputMaybe; - underlyingToken_?: InputMaybe; + underlyingToken_?: InputMaybe; underlyingToken_contains?: InputMaybe; underlyingToken_contains_nocase?: InputMaybe; underlyingToken_ends_with?: InputMaybe; @@ -350,7 +351,7 @@ export type Chop_Filter = { unripeBdv_not?: InputMaybe; unripeBdv_not_in?: InputMaybe>; unripeToken?: InputMaybe; - unripeToken_?: InputMaybe; + unripeToken_?: InputMaybe; unripeToken_contains?: InputMaybe; unripeToken_contains_nocase?: InputMaybe; unripeToken_ends_with?: InputMaybe; @@ -372,53 +373,55 @@ export type Chop_Filter = { unripeToken_starts_with_nocase?: InputMaybe; }; -export enum Chop_OrderBy { - BlockNumber = 'blockNumber', - ChopRate = 'chopRate', - CreatedAt = 'createdAt', - Farmer = 'farmer', - FarmerCreationBlock = 'farmer__creationBlock', - FarmerId = 'farmer__id', - Hash = 'hash', - Id = 'id', - UnderlyingAmount = 'underlyingAmount', - UnderlyingBdv = 'underlyingBdv', - UnderlyingToken = 'underlyingToken', - UnderlyingTokenDecimals = 'underlyingToken__decimals', - UnderlyingTokenGaugePoints = 'underlyingToken__gaugePoints', - UnderlyingTokenId = 'underlyingToken__id', - UnderlyingTokenIsGaugeEnabled = 'underlyingToken__isGaugeEnabled', - UnderlyingTokenLastDailySnapshotDay = 'underlyingToken__lastDailySnapshotDay', - UnderlyingTokenLastHourlySnapshotSeason = 'underlyingToken__lastHourlySnapshotSeason', - UnderlyingTokenMilestoneSeason = 'underlyingToken__milestoneSeason', - UnderlyingTokenOptimalPercentDepositedBdv = 'underlyingToken__optimalPercentDepositedBdv', - UnderlyingTokenSelector = 'underlyingToken__selector', - UnderlyingTokenStalkEarnedPerSeason = 'underlyingToken__stalkEarnedPerSeason', - UnderlyingTokenStalkIssuedPerBdv = 'underlyingToken__stalkIssuedPerBdv', - UnderlyingTokenStemTip = 'underlyingToken__stemTip', - UnderlyingTokenUpdatedAt = 'underlyingToken__updatedAt', - UnripeAmount = 'unripeAmount', - UnripeBdv = 'unripeBdv', - UnripeToken = 'unripeToken', - UnripeTokenAmountUnderlyingOne = 'unripeToken__amountUnderlyingOne', - UnripeTokenBdvUnderlyingOne = 'unripeToken__bdvUnderlyingOne', - UnripeTokenChopRate = 'unripeToken__chopRate', - UnripeTokenChoppableAmountOne = 'unripeToken__choppableAmountOne', - UnripeTokenChoppableBdvOne = 'unripeToken__choppableBdvOne', - UnripeTokenId = 'unripeToken__id', - UnripeTokenLastDailySnapshotDay = 'unripeToken__lastDailySnapshotDay', - UnripeTokenLastHourlySnapshotSeason = 'unripeToken__lastHourlySnapshotSeason', - UnripeTokenRecapPercent = 'unripeToken__recapPercent', - UnripeTokenTotalChoppedAmount = 'unripeToken__totalChoppedAmount', - UnripeTokenTotalChoppedBdv = 'unripeToken__totalChoppedBdv', - UnripeTokenTotalChoppedBdvReceived = 'unripeToken__totalChoppedBdvReceived', - UnripeTokenTotalUnderlying = 'unripeToken__totalUnderlying' +export enum ChopOrderBy { + blockNumber = 'blockNumber', + chopRate = 'chopRate', + createdAt = 'createdAt', + farmer = 'farmer', + farmer__creationBlock = 'farmer__creationBlock', + farmer__id = 'farmer__id', + farmer__refereeCount = 'farmer__refereeCount', + farmer__totalReferralRewardPodsReceived = 'farmer__totalReferralRewardPodsReceived', + hash = 'hash', + id = 'id', + underlyingAmount = 'underlyingAmount', + underlyingBdv = 'underlyingBdv', + underlyingToken = 'underlyingToken', + underlyingToken__decimals = 'underlyingToken__decimals', + underlyingToken__gaugePoints = 'underlyingToken__gaugePoints', + underlyingToken__id = 'underlyingToken__id', + underlyingToken__isGaugeEnabled = 'underlyingToken__isGaugeEnabled', + underlyingToken__lastDailySnapshotDay = 'underlyingToken__lastDailySnapshotDay', + underlyingToken__lastHourlySnapshotSeason = 'underlyingToken__lastHourlySnapshotSeason', + underlyingToken__milestoneSeason = 'underlyingToken__milestoneSeason', + underlyingToken__optimalPercentDepositedBdv = 'underlyingToken__optimalPercentDepositedBdv', + underlyingToken__selector = 'underlyingToken__selector', + underlyingToken__stalkEarnedPerSeason = 'underlyingToken__stalkEarnedPerSeason', + underlyingToken__stalkIssuedPerBdv = 'underlyingToken__stalkIssuedPerBdv', + underlyingToken__stemTip = 'underlyingToken__stemTip', + underlyingToken__updatedAt = 'underlyingToken__updatedAt', + unripeAmount = 'unripeAmount', + unripeBdv = 'unripeBdv', + unripeToken = 'unripeToken', + unripeToken__amountUnderlyingOne = 'unripeToken__amountUnderlyingOne', + unripeToken__bdvUnderlyingOne = 'unripeToken__bdvUnderlyingOne', + unripeToken__chopRate = 'unripeToken__chopRate', + unripeToken__choppableAmountOne = 'unripeToken__choppableAmountOne', + unripeToken__choppableBdvOne = 'unripeToken__choppableBdvOne', + unripeToken__id = 'unripeToken__id', + unripeToken__lastDailySnapshotDay = 'unripeToken__lastDailySnapshotDay', + unripeToken__lastHourlySnapshotSeason = 'unripeToken__lastHourlySnapshotSeason', + unripeToken__recapPercent = 'unripeToken__recapPercent', + unripeToken__totalChoppedAmount = 'unripeToken__totalChoppedAmount', + unripeToken__totalChoppedBdv = 'unripeToken__totalChoppedBdv', + unripeToken__totalChoppedBdvReceived = 'unripeToken__totalChoppedBdvReceived', + unripeToken__totalUnderlying = 'unripeToken__totalUnderlying' } export enum EmaWindow { - Rolling_7Day = 'ROLLING_7_DAY', - Rolling_24Hour = 'ROLLING_24_HOUR', - Rolling_30Day = 'ROLLING_30_DAY' + ROLLING_7_DAY = 'ROLLING_7_DAY', + ROLLING_24_HOUR = 'ROLLING_24_HOUR', + ROLLING_30_DAY = 'ROLLING_30_DAY' } export type Farmer = { @@ -434,77 +437,81 @@ export type Farmer = { listings: Array; orders: Array; plots: Array; + /** Number of accounts this farmer has referred */ + refereeCount: Scalars['Int']['output']; silo?: Maybe; + /** Total pods this farmer has received as referral rewards */ + totalReferralRewardPodsReceived: Scalars['BigInt']['output']; withdraws: Array; }; export type FarmerDepositsArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; export type FarmerFertilizersArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; export type FarmerFillsArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; export type FarmerListingsArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; export type FarmerOrdersArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; export type FarmerPlotsArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; export type FarmerWithdrawsArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; -export type Farmer_Filter = { +export type FarmerFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe>>; creationBlock?: InputMaybe; creationBlock_gt?: InputMaybe; creationBlock_gte?: InputMaybe; @@ -513,10 +520,10 @@ export type Farmer_Filter = { creationBlock_lte?: InputMaybe; creationBlock_not?: InputMaybe; creationBlock_not_in?: InputMaybe>; - deposits_?: InputMaybe; - fertilizers_?: InputMaybe; - field_?: InputMaybe; - fills_?: InputMaybe; + deposits_?: InputMaybe; + fertilizers_?: InputMaybe; + field_?: InputMaybe; + fills_?: InputMaybe; id?: InputMaybe; id_contains?: InputMaybe; id_gt?: InputMaybe; @@ -527,68 +534,87 @@ export type Farmer_Filter = { id_not?: InputMaybe; id_not_contains?: InputMaybe; id_not_in?: InputMaybe>; - listings_?: InputMaybe; - or?: InputMaybe>>; - orders_?: InputMaybe; - plots_?: InputMaybe; - silo_?: InputMaybe; - withdraws_?: InputMaybe; -}; - -export enum Farmer_OrderBy { - CreationBlock = 'creationBlock', - Deposits = 'deposits', - Fertilizers = 'fertilizers', - Field = 'field', - FieldCultivationFactor = 'field__cultivationFactor', - FieldCultivationTemperature = 'field__cultivationTemperature', - FieldHarvestableIndex = 'field__harvestableIndex', - FieldHarvestablePods = 'field__harvestablePods', - FieldHarvestedPods = 'field__harvestedPods', - FieldId = 'field__id', - FieldLastDailySnapshotDay = 'field__lastDailySnapshotDay', - FieldLastHourlySnapshotSeason = 'field__lastHourlySnapshotSeason', - FieldNumberOfSowers = 'field__numberOfSowers', - FieldNumberOfSows = 'field__numberOfSows', - FieldPodIndex = 'field__podIndex', - FieldPodRate = 'field__podRate', - FieldRealRateOfReturn = 'field__realRateOfReturn', - FieldSeason = 'field__season', - FieldSoil = 'field__soil', - FieldSownBeans = 'field__sownBeans', - FieldTemperature = 'field__temperature', - FieldUnharvestablePods = 'field__unharvestablePods', - FieldUnmigratedL1Pods = 'field__unmigratedL1Pods', - Fills = 'fills', - Id = 'id', - Listings = 'listings', - Orders = 'orders', - Plots = 'plots', - Silo = 'silo', - SiloActiveFarmers = 'silo__activeFarmers', - SiloAvgConvertDownPenalty = 'silo__avgConvertDownPenalty', - SiloAvgGrownStalkPerBdvPerSeason = 'silo__avgGrownStalkPerBdvPerSeason', - SiloBeanMints = 'silo__beanMints', - SiloBeanToMaxLpGpPerBdvRatio = 'silo__beanToMaxLpGpPerBdvRatio', - SiloBonusStalkConvertUp = 'silo__bonusStalkConvertUp', - SiloConvertDownPenalty = 'silo__convertDownPenalty', - SiloCropRatio = 'silo__cropRatio', - SiloDepositedBdv = 'silo__depositedBDV', - SiloGerminatingStalk = 'silo__germinatingStalk', - SiloGrownStalkPerSeason = 'silo__grownStalkPerSeason', - SiloId = 'silo__id', - SiloLastDailySnapshotDay = 'silo__lastDailySnapshotDay', - SiloLastHourlySnapshotSeason = 'silo__lastHourlySnapshotSeason', - SiloPenalizedStalkConvertDown = 'silo__penalizedStalkConvertDown', - SiloPlantableStalk = 'silo__plantableStalk', - SiloPlantedBeans = 'silo__plantedBeans', - SiloRoots = 'silo__roots', - SiloStalk = 'silo__stalk', - SiloTotalBdvConvertUp = 'silo__totalBdvConvertUp', - SiloTotalBdvConvertUpBonus = 'silo__totalBdvConvertUpBonus', - SiloUnmigratedL1DepositedBdv = 'silo__unmigratedL1DepositedBdv', - SiloUnpenalizedStalkConvertDown = 'silo__unpenalizedStalkConvertDown', - Withdraws = 'withdraws' + listings_?: InputMaybe; + or?: InputMaybe>>; + orders_?: InputMaybe; + plots_?: InputMaybe; + refereeCount?: InputMaybe; + refereeCount_gt?: InputMaybe; + refereeCount_gte?: InputMaybe; + refereeCount_in?: InputMaybe>; + refereeCount_lt?: InputMaybe; + refereeCount_lte?: InputMaybe; + refereeCount_not?: InputMaybe; + refereeCount_not_in?: InputMaybe>; + silo_?: InputMaybe; + totalReferralRewardPodsReceived?: InputMaybe; + totalReferralRewardPodsReceived_gt?: InputMaybe; + totalReferralRewardPodsReceived_gte?: InputMaybe; + totalReferralRewardPodsReceived_in?: InputMaybe>; + totalReferralRewardPodsReceived_lt?: InputMaybe; + totalReferralRewardPodsReceived_lte?: InputMaybe; + totalReferralRewardPodsReceived_not?: InputMaybe; + totalReferralRewardPodsReceived_not_in?: InputMaybe>; + withdraws_?: InputMaybe; +}; + +export enum FarmerOrderBy { + creationBlock = 'creationBlock', + deposits = 'deposits', + fertilizers = 'fertilizers', + field = 'field', + field__cultivationFactor = 'field__cultivationFactor', + field__cultivationTemperature = 'field__cultivationTemperature', + field__fieldId = 'field__fieldId', + field__harvestableIndex = 'field__harvestableIndex', + field__harvestablePods = 'field__harvestablePods', + field__harvestedPods = 'field__harvestedPods', + field__id = 'field__id', + field__lastDailySnapshotDay = 'field__lastDailySnapshotDay', + field__lastHourlySnapshotSeason = 'field__lastHourlySnapshotSeason', + field__numberOfSowers = 'field__numberOfSowers', + field__numberOfSows = 'field__numberOfSows', + field__podIndex = 'field__podIndex', + field__podRate = 'field__podRate', + field__realRateOfReturn = 'field__realRateOfReturn', + field__season = 'field__season', + field__soil = 'field__soil', + field__sownBeans = 'field__sownBeans', + field__temperature = 'field__temperature', + field__unharvestablePods = 'field__unharvestablePods', + field__unmigratedL1Pods = 'field__unmigratedL1Pods', + fills = 'fills', + id = 'id', + listings = 'listings', + orders = 'orders', + plots = 'plots', + refereeCount = 'refereeCount', + silo = 'silo', + silo__activeFarmers = 'silo__activeFarmers', + silo__avgConvertDownPenalty = 'silo__avgConvertDownPenalty', + silo__avgGrownStalkPerBdvPerSeason = 'silo__avgGrownStalkPerBdvPerSeason', + silo__beanMints = 'silo__beanMints', + silo__beanToMaxLpGpPerBdvRatio = 'silo__beanToMaxLpGpPerBdvRatio', + silo__bonusStalkConvertUp = 'silo__bonusStalkConvertUp', + silo__convertDownPenalty = 'silo__convertDownPenalty', + silo__cropRatio = 'silo__cropRatio', + silo__depositedBDV = 'silo__depositedBDV', + silo__germinatingStalk = 'silo__germinatingStalk', + silo__grownStalkPerSeason = 'silo__grownStalkPerSeason', + silo__id = 'silo__id', + silo__lastDailySnapshotDay = 'silo__lastDailySnapshotDay', + silo__lastHourlySnapshotSeason = 'silo__lastHourlySnapshotSeason', + silo__penalizedStalkConvertDown = 'silo__penalizedStalkConvertDown', + silo__plantableStalk = 'silo__plantableStalk', + silo__plantedBeans = 'silo__plantedBeans', + silo__roots = 'silo__roots', + silo__stalk = 'silo__stalk', + silo__totalBdvConvertUp = 'silo__totalBdvConvertUp', + silo__totalBdvConvertUpBonus = 'silo__totalBdvConvertUpBonus', + silo__unmigratedL1DepositedBdv = 'silo__unmigratedL1DepositedBdv', + silo__unpenalizedStalkConvertDown = 'silo__unpenalizedStalkConvertDown', + totalReferralRewardPodsReceived = 'totalReferralRewardPodsReceived', + withdraws = 'withdraws' } export type Fertilizer = { @@ -607,10 +633,10 @@ export type Fertilizer = { export type FertilizerTokensArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; export type FertilizerBalance = { @@ -623,7 +649,7 @@ export type FertilizerBalance = { id: Scalars['ID']['output']; }; -export type FertilizerBalance_Filter = { +export type FertilizerBalanceFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; amount?: InputMaybe; @@ -634,9 +660,9 @@ export type FertilizerBalance_Filter = { amount_lte?: InputMaybe; amount_not?: InputMaybe; amount_not_in?: InputMaybe>; - and?: InputMaybe>>; + and?: InputMaybe>>; farmer?: InputMaybe; - farmer_?: InputMaybe; + farmer_?: InputMaybe; farmer_contains?: InputMaybe; farmer_contains_nocase?: InputMaybe; farmer_ends_with?: InputMaybe; @@ -657,7 +683,7 @@ export type FertilizerBalance_Filter = { farmer_starts_with?: InputMaybe; farmer_starts_with_nocase?: InputMaybe; fertilizerToken?: InputMaybe; - fertilizerToken_?: InputMaybe; + fertilizerToken_?: InputMaybe; fertilizerToken_contains?: InputMaybe; fertilizerToken_contains_nocase?: InputMaybe; fertilizerToken_ends_with?: InputMaybe; @@ -685,22 +711,24 @@ export type FertilizerBalance_Filter = { id_lte?: InputMaybe; id_not?: InputMaybe; id_not_in?: InputMaybe>; - or?: InputMaybe>>; -}; - -export enum FertilizerBalance_OrderBy { - Amount = 'amount', - Farmer = 'farmer', - FarmerCreationBlock = 'farmer__creationBlock', - FarmerId = 'farmer__id', - FertilizerToken = 'fertilizerToken', - FertilizerTokenEndBpf = 'fertilizerToken__endBpf', - FertilizerTokenHumidity = 'fertilizerToken__humidity', - FertilizerTokenId = 'fertilizerToken__id', - FertilizerTokenSeason = 'fertilizerToken__season', - FertilizerTokenStartBpf = 'fertilizerToken__startBpf', - FertilizerTokenSupply = 'fertilizerToken__supply', - Id = 'id' + or?: InputMaybe>>; +}; + +export enum FertilizerBalanceOrderBy { + amount = 'amount', + farmer = 'farmer', + farmer__creationBlock = 'farmer__creationBlock', + farmer__id = 'farmer__id', + farmer__refereeCount = 'farmer__refereeCount', + farmer__totalReferralRewardPodsReceived = 'farmer__totalReferralRewardPodsReceived', + fertilizerToken = 'fertilizerToken', + fertilizerToken__endBpf = 'fertilizerToken__endBpf', + fertilizerToken__humidity = 'fertilizerToken__humidity', + fertilizerToken__id = 'fertilizerToken__id', + fertilizerToken__season = 'fertilizerToken__season', + fertilizerToken__startBpf = 'fertilizerToken__startBpf', + fertilizerToken__supply = 'fertilizerToken__supply', + id = 'id' } export type FertilizerToken = { @@ -724,17 +752,17 @@ export type FertilizerToken = { export type FertilizerTokenBalancesArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; -export type FertilizerToken_Filter = { +export type FertilizerTokenFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - and?: InputMaybe>>; - balances_?: InputMaybe; + and?: InputMaybe>>; + balances_?: InputMaybe; endBpf?: InputMaybe; endBpf_gt?: InputMaybe; endBpf_gte?: InputMaybe; @@ -744,7 +772,7 @@ export type FertilizerToken_Filter = { endBpf_not?: InputMaybe; endBpf_not_in?: InputMaybe>; fertilizer?: InputMaybe; - fertilizer_?: InputMaybe; + fertilizer_?: InputMaybe; fertilizer_contains?: InputMaybe; fertilizer_contains_nocase?: InputMaybe; fertilizer_ends_with?: InputMaybe; @@ -780,7 +808,7 @@ export type FertilizerToken_Filter = { id_lte?: InputMaybe; id_not?: InputMaybe; id_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; season?: InputMaybe; season_gt?: InputMaybe; season_gte?: InputMaybe; @@ -807,19 +835,19 @@ export type FertilizerToken_Filter = { supply_not_in?: InputMaybe>; }; -export enum FertilizerToken_OrderBy { - Balances = 'balances', - EndBpf = 'endBpf', - Fertilizer = 'fertilizer', - FertilizerBeanstalk = 'fertilizer__beanstalk', - FertilizerId = 'fertilizer__id', - FertilizerSupply = 'fertilizer__supply', - FertilizerUnmigratedL1Supply = 'fertilizer__unmigratedL1Supply', - Humidity = 'humidity', - Id = 'id', - Season = 'season', - StartBpf = 'startBpf', - Supply = 'supply' +export enum FertilizerTokenOrderBy { + balances = 'balances', + endBpf = 'endBpf', + fertilizer = 'fertilizer', + fertilizer__beanstalk = 'fertilizer__beanstalk', + fertilizer__id = 'fertilizer__id', + fertilizer__supply = 'fertilizer__supply', + fertilizer__unmigratedL1Supply = 'fertilizer__unmigratedL1Supply', + humidity = 'humidity', + id = 'id', + season = 'season', + startBpf = 'startBpf', + supply = 'supply' } export type FertilizerYield = { @@ -844,10 +872,10 @@ export type FertilizerYield = { simpleAPY: Scalars['BigDecimal']['output']; }; -export type FertilizerYield_Filter = { +export type FertilizerYieldFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe>>; beansPerSeasonEMA?: InputMaybe; beansPerSeasonEMA_gt?: InputMaybe; beansPerSeasonEMA_gte?: InputMaybe; @@ -892,7 +920,7 @@ export type FertilizerYield_Filter = { id_lte?: InputMaybe; id_not?: InputMaybe; id_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; outstandingFert?: InputMaybe; outstandingFert_gt?: InputMaybe; outstandingFert_gte?: InputMaybe; @@ -919,22 +947,22 @@ export type FertilizerYield_Filter = { simpleAPY_not_in?: InputMaybe>; }; -export enum FertilizerYield_OrderBy { - BeansPerSeasonEma = 'beansPerSeasonEMA', - CreatedAt = 'createdAt', - DeltaBpf = 'deltaBpf', - EmaWindow = 'emaWindow', - Humidity = 'humidity', - Id = 'id', - OutstandingFert = 'outstandingFert', - Season = 'season', - SimpleApy = 'simpleAPY' +export enum FertilizerYieldOrderBy { + beansPerSeasonEMA = 'beansPerSeasonEMA', + createdAt = 'createdAt', + deltaBpf = 'deltaBpf', + emaWindow = 'emaWindow', + humidity = 'humidity', + id = 'id', + outstandingFert = 'outstandingFert', + season = 'season', + simpleAPY = 'simpleAPY' } -export type Fertilizer_Filter = { +export type FertilizerFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe>>; beanstalk?: InputMaybe; beanstalk_contains?: InputMaybe; beanstalk_contains_nocase?: InputMaybe; @@ -965,7 +993,7 @@ export type Fertilizer_Filter = { id_not?: InputMaybe; id_not_contains?: InputMaybe; id_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; supply?: InputMaybe; supply_gt?: InputMaybe; supply_gte?: InputMaybe; @@ -974,7 +1002,7 @@ export type Fertilizer_Filter = { supply_lte?: InputMaybe; supply_not?: InputMaybe; supply_not_in?: InputMaybe>; - tokens_?: InputMaybe; + tokens_?: InputMaybe; unmigratedL1Supply?: InputMaybe; unmigratedL1Supply_gt?: InputMaybe; unmigratedL1Supply_gte?: InputMaybe; @@ -985,12 +1013,12 @@ export type Fertilizer_Filter = { unmigratedL1Supply_not_in?: InputMaybe>; }; -export enum Fertilizer_OrderBy { - Beanstalk = 'beanstalk', - Id = 'id', - Supply = 'supply', - Tokens = 'tokens', - UnmigratedL1Supply = 'unmigratedL1Supply' +export enum FertilizerOrderBy { + beanstalk = 'beanstalk', + id = 'id', + supply = 'supply', + tokens = 'tokens', + unmigratedL1Supply = 'unmigratedL1Supply' } export type Field = { @@ -1005,6 +1033,8 @@ export type Field = { dailySnapshots: Array; /** Farmer address if applicable */ farmer?: Maybe; + /** Numeric identifier of the field emitted on protocol events */ + fieldId: Scalars['BigInt']['output']; /** Current harvestable index */ harvestableIndex: Scalars['BigInt']['output']; /** Current harvestable pods */ @@ -1013,8 +1043,8 @@ export type Field = { harvestedPods: Scalars['BigInt']['output']; /** Link to hourly snapshot data */ hourlySnapshots: Array; - /** Contract address for this field or farmer */ - id: Scalars['Bytes']['output']; + /** Contract address for this field or farmer when fieldId is zero. Otherwise address:fieldId */ + id: Scalars['ID']['output']; /** Day of when the previous daily snapshot was taken/updated */ lastDailySnapshotDay?: Maybe; /** Season when the previous hourly snapshot was taken/updated */ @@ -1048,19 +1078,19 @@ export type Field = { export type FieldDailySnapshotsArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; export type FieldHourlySnapshotsArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; export type FieldDailySnapshot = { @@ -1088,6 +1118,8 @@ export type FieldDailySnapshot = { deltaUnharvestablePods: Scalars['BigInt']['output']; /** Field associated with this snapshot */ field: Field; + /** Numeric identifier of the field */ + fieldId: Scalars['BigInt']['output']; /** Point in time harvestable index */ harvestableIndex: Scalars['BigInt']['output']; /** Point in time harvestable pods */ @@ -1122,10 +1154,10 @@ export type FieldDailySnapshot = { updatedAt: Scalars['BigInt']['output']; }; -export type FieldDailySnapshot_Filter = { +export type FieldDailySnapshotFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe>>; createdAt?: InputMaybe; createdAt_gt?: InputMaybe; createdAt_gte?: InputMaybe; @@ -1271,7 +1303,15 @@ export type FieldDailySnapshot_Filter = { deltaUnharvestablePods_not?: InputMaybe; deltaUnharvestablePods_not_in?: InputMaybe>; field?: InputMaybe; - field_?: InputMaybe; + fieldId?: InputMaybe; + fieldId_gt?: InputMaybe; + fieldId_gte?: InputMaybe; + fieldId_in?: InputMaybe>; + fieldId_lt?: InputMaybe; + fieldId_lte?: InputMaybe; + fieldId_not?: InputMaybe; + fieldId_not_in?: InputMaybe>; + field_?: InputMaybe; field_contains?: InputMaybe; field_contains_nocase?: InputMaybe; field_ends_with?: InputMaybe; @@ -1347,7 +1387,7 @@ export type FieldDailySnapshot_Filter = { numberOfSows_lte?: InputMaybe; numberOfSows_not?: InputMaybe; numberOfSows_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; podIndex?: InputMaybe; podIndex_gt?: InputMaybe; podIndex_gte?: InputMaybe; @@ -1422,61 +1462,63 @@ export type FieldDailySnapshot_Filter = { updatedAt_not_in?: InputMaybe>; }; -export enum FieldDailySnapshot_OrderBy { - CreatedAt = 'createdAt', - CultivationFactor = 'cultivationFactor', - CultivationTemperature = 'cultivationTemperature', - DeltaCultivationFactor = 'deltaCultivationFactor', - DeltaCultivationTemperature = 'deltaCultivationTemperature', - DeltaHarvestableIndex = 'deltaHarvestableIndex', - DeltaHarvestablePods = 'deltaHarvestablePods', - DeltaHarvestedPods = 'deltaHarvestedPods', - DeltaIssuedSoil = 'deltaIssuedSoil', - DeltaNumberOfSowers = 'deltaNumberOfSowers', - DeltaNumberOfSows = 'deltaNumberOfSows', - DeltaPodIndex = 'deltaPodIndex', - DeltaPodRate = 'deltaPodRate', - DeltaRealRateOfReturn = 'deltaRealRateOfReturn', - DeltaSoil = 'deltaSoil', - DeltaSownBeans = 'deltaSownBeans', - DeltaTemperature = 'deltaTemperature', - DeltaUnharvestablePods = 'deltaUnharvestablePods', - Field = 'field', - FieldCultivationFactor = 'field__cultivationFactor', - FieldCultivationTemperature = 'field__cultivationTemperature', - FieldHarvestableIndex = 'field__harvestableIndex', - FieldHarvestablePods = 'field__harvestablePods', - FieldHarvestedPods = 'field__harvestedPods', - FieldId = 'field__id', - FieldLastDailySnapshotDay = 'field__lastDailySnapshotDay', - FieldLastHourlySnapshotSeason = 'field__lastHourlySnapshotSeason', - FieldNumberOfSowers = 'field__numberOfSowers', - FieldNumberOfSows = 'field__numberOfSows', - FieldPodIndex = 'field__podIndex', - FieldPodRate = 'field__podRate', - FieldRealRateOfReturn = 'field__realRateOfReturn', - FieldSeason = 'field__season', - FieldSoil = 'field__soil', - FieldSownBeans = 'field__sownBeans', - FieldTemperature = 'field__temperature', - FieldUnharvestablePods = 'field__unharvestablePods', - FieldUnmigratedL1Pods = 'field__unmigratedL1Pods', - HarvestableIndex = 'harvestableIndex', - HarvestablePods = 'harvestablePods', - HarvestedPods = 'harvestedPods', - Id = 'id', - IssuedSoil = 'issuedSoil', - NumberOfSowers = 'numberOfSowers', - NumberOfSows = 'numberOfSows', - PodIndex = 'podIndex', - PodRate = 'podRate', - RealRateOfReturn = 'realRateOfReturn', - Season = 'season', - Soil = 'soil', - SownBeans = 'sownBeans', - Temperature = 'temperature', - UnharvestablePods = 'unharvestablePods', - UpdatedAt = 'updatedAt' +export enum FieldDailySnapshotOrderBy { + createdAt = 'createdAt', + cultivationFactor = 'cultivationFactor', + cultivationTemperature = 'cultivationTemperature', + deltaCultivationFactor = 'deltaCultivationFactor', + deltaCultivationTemperature = 'deltaCultivationTemperature', + deltaHarvestableIndex = 'deltaHarvestableIndex', + deltaHarvestablePods = 'deltaHarvestablePods', + deltaHarvestedPods = 'deltaHarvestedPods', + deltaIssuedSoil = 'deltaIssuedSoil', + deltaNumberOfSowers = 'deltaNumberOfSowers', + deltaNumberOfSows = 'deltaNumberOfSows', + deltaPodIndex = 'deltaPodIndex', + deltaPodRate = 'deltaPodRate', + deltaRealRateOfReturn = 'deltaRealRateOfReturn', + deltaSoil = 'deltaSoil', + deltaSownBeans = 'deltaSownBeans', + deltaTemperature = 'deltaTemperature', + deltaUnharvestablePods = 'deltaUnharvestablePods', + field = 'field', + fieldId = 'fieldId', + field__cultivationFactor = 'field__cultivationFactor', + field__cultivationTemperature = 'field__cultivationTemperature', + field__fieldId = 'field__fieldId', + field__harvestableIndex = 'field__harvestableIndex', + field__harvestablePods = 'field__harvestablePods', + field__harvestedPods = 'field__harvestedPods', + field__id = 'field__id', + field__lastDailySnapshotDay = 'field__lastDailySnapshotDay', + field__lastHourlySnapshotSeason = 'field__lastHourlySnapshotSeason', + field__numberOfSowers = 'field__numberOfSowers', + field__numberOfSows = 'field__numberOfSows', + field__podIndex = 'field__podIndex', + field__podRate = 'field__podRate', + field__realRateOfReturn = 'field__realRateOfReturn', + field__season = 'field__season', + field__soil = 'field__soil', + field__sownBeans = 'field__sownBeans', + field__temperature = 'field__temperature', + field__unharvestablePods = 'field__unharvestablePods', + field__unmigratedL1Pods = 'field__unmigratedL1Pods', + harvestableIndex = 'harvestableIndex', + harvestablePods = 'harvestablePods', + harvestedPods = 'harvestedPods', + id = 'id', + issuedSoil = 'issuedSoil', + numberOfSowers = 'numberOfSowers', + numberOfSows = 'numberOfSows', + podIndex = 'podIndex', + podRate = 'podRate', + realRateOfReturn = 'realRateOfReturn', + season = 'season', + soil = 'soil', + sownBeans = 'sownBeans', + temperature = 'temperature', + unharvestablePods = 'unharvestablePods', + updatedAt = 'updatedAt' } export type FieldHourlySnapshot = { @@ -1510,6 +1552,8 @@ export type FieldHourlySnapshot = { deltaUnharvestablePods: Scalars['BigInt']['output']; /** Field associated with this snapshot */ field: Field; + /** Numeric identifier of the field */ + fieldId: Scalars['BigInt']['output']; /** Point in time harvestable index */ harvestableIndex: Scalars['BigInt']['output']; /** Point in time harvestable pods */ @@ -1548,10 +1592,10 @@ export type FieldHourlySnapshot = { updatedAt: Scalars['BigInt']['output']; }; -export type FieldHourlySnapshot_Filter = { +export type FieldHourlySnapshotFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe>>; blocksToSoldOutSoil?: InputMaybe; blocksToSoldOutSoil_gt?: InputMaybe; blocksToSoldOutSoil_gte?: InputMaybe; @@ -1721,7 +1765,15 @@ export type FieldHourlySnapshot_Filter = { deltaUnharvestablePods_not?: InputMaybe; deltaUnharvestablePods_not_in?: InputMaybe>; field?: InputMaybe; - field_?: InputMaybe; + fieldId?: InputMaybe; + fieldId_gt?: InputMaybe; + fieldId_gte?: InputMaybe; + fieldId_in?: InputMaybe>; + fieldId_lt?: InputMaybe; + fieldId_lte?: InputMaybe; + fieldId_not?: InputMaybe; + fieldId_not_in?: InputMaybe>; + field_?: InputMaybe; field_contains?: InputMaybe; field_contains_nocase?: InputMaybe; field_ends_with?: InputMaybe; @@ -1797,7 +1849,7 @@ export type FieldHourlySnapshot_Filter = { numberOfSows_lte?: InputMaybe; numberOfSows_not?: InputMaybe; numberOfSows_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; podIndex?: InputMaybe; podIndex_gt?: InputMaybe; podIndex_gte?: InputMaybe; @@ -1884,74 +1936,76 @@ export type FieldHourlySnapshot_Filter = { updatedAt_not_in?: InputMaybe>; }; -export enum FieldHourlySnapshot_OrderBy { - BlocksToSoldOutSoil = 'blocksToSoldOutSoil', - CaseId = 'caseId', - CreatedAt = 'createdAt', - CultivationFactor = 'cultivationFactor', - CultivationTemperature = 'cultivationTemperature', - DeltaCultivationFactor = 'deltaCultivationFactor', - DeltaCultivationTemperature = 'deltaCultivationTemperature', - DeltaHarvestableIndex = 'deltaHarvestableIndex', - DeltaHarvestablePods = 'deltaHarvestablePods', - DeltaHarvestedPods = 'deltaHarvestedPods', - DeltaIssuedSoil = 'deltaIssuedSoil', - DeltaNumberOfSowers = 'deltaNumberOfSowers', - DeltaNumberOfSows = 'deltaNumberOfSows', - DeltaPodDemand = 'deltaPodDemand', - DeltaPodIndex = 'deltaPodIndex', - DeltaPodRate = 'deltaPodRate', - DeltaRealRateOfReturn = 'deltaRealRateOfReturn', - DeltaSoil = 'deltaSoil', - DeltaSownBeans = 'deltaSownBeans', - DeltaTemperature = 'deltaTemperature', - DeltaUnharvestablePods = 'deltaUnharvestablePods', - Field = 'field', - FieldCultivationFactor = 'field__cultivationFactor', - FieldCultivationTemperature = 'field__cultivationTemperature', - FieldHarvestableIndex = 'field__harvestableIndex', - FieldHarvestablePods = 'field__harvestablePods', - FieldHarvestedPods = 'field__harvestedPods', - FieldId = 'field__id', - FieldLastDailySnapshotDay = 'field__lastDailySnapshotDay', - FieldLastHourlySnapshotSeason = 'field__lastHourlySnapshotSeason', - FieldNumberOfSowers = 'field__numberOfSowers', - FieldNumberOfSows = 'field__numberOfSows', - FieldPodIndex = 'field__podIndex', - FieldPodRate = 'field__podRate', - FieldRealRateOfReturn = 'field__realRateOfReturn', - FieldSeason = 'field__season', - FieldSoil = 'field__soil', - FieldSownBeans = 'field__sownBeans', - FieldTemperature = 'field__temperature', - FieldUnharvestablePods = 'field__unharvestablePods', - FieldUnmigratedL1Pods = 'field__unmigratedL1Pods', - HarvestableIndex = 'harvestableIndex', - HarvestablePods = 'harvestablePods', - HarvestedPods = 'harvestedPods', - Id = 'id', - IssuedSoil = 'issuedSoil', - NumberOfSowers = 'numberOfSowers', - NumberOfSows = 'numberOfSows', - PodIndex = 'podIndex', - PodRate = 'podRate', - RealRateOfReturn = 'realRateOfReturn', - Season = 'season', - SeasonBlock = 'seasonBlock', - Soil = 'soil', - SoilSoldOut = 'soilSoldOut', - SownBeans = 'sownBeans', - Temperature = 'temperature', - UnharvestablePods = 'unharvestablePods', - UpdatedAt = 'updatedAt' +export enum FieldHourlySnapshotOrderBy { + blocksToSoldOutSoil = 'blocksToSoldOutSoil', + caseId = 'caseId', + createdAt = 'createdAt', + cultivationFactor = 'cultivationFactor', + cultivationTemperature = 'cultivationTemperature', + deltaCultivationFactor = 'deltaCultivationFactor', + deltaCultivationTemperature = 'deltaCultivationTemperature', + deltaHarvestableIndex = 'deltaHarvestableIndex', + deltaHarvestablePods = 'deltaHarvestablePods', + deltaHarvestedPods = 'deltaHarvestedPods', + deltaIssuedSoil = 'deltaIssuedSoil', + deltaNumberOfSowers = 'deltaNumberOfSowers', + deltaNumberOfSows = 'deltaNumberOfSows', + deltaPodDemand = 'deltaPodDemand', + deltaPodIndex = 'deltaPodIndex', + deltaPodRate = 'deltaPodRate', + deltaRealRateOfReturn = 'deltaRealRateOfReturn', + deltaSoil = 'deltaSoil', + deltaSownBeans = 'deltaSownBeans', + deltaTemperature = 'deltaTemperature', + deltaUnharvestablePods = 'deltaUnharvestablePods', + field = 'field', + fieldId = 'fieldId', + field__cultivationFactor = 'field__cultivationFactor', + field__cultivationTemperature = 'field__cultivationTemperature', + field__fieldId = 'field__fieldId', + field__harvestableIndex = 'field__harvestableIndex', + field__harvestablePods = 'field__harvestablePods', + field__harvestedPods = 'field__harvestedPods', + field__id = 'field__id', + field__lastDailySnapshotDay = 'field__lastDailySnapshotDay', + field__lastHourlySnapshotSeason = 'field__lastHourlySnapshotSeason', + field__numberOfSowers = 'field__numberOfSowers', + field__numberOfSows = 'field__numberOfSows', + field__podIndex = 'field__podIndex', + field__podRate = 'field__podRate', + field__realRateOfReturn = 'field__realRateOfReturn', + field__season = 'field__season', + field__soil = 'field__soil', + field__sownBeans = 'field__sownBeans', + field__temperature = 'field__temperature', + field__unharvestablePods = 'field__unharvestablePods', + field__unmigratedL1Pods = 'field__unmigratedL1Pods', + harvestableIndex = 'harvestableIndex', + harvestablePods = 'harvestablePods', + harvestedPods = 'harvestedPods', + id = 'id', + issuedSoil = 'issuedSoil', + numberOfSowers = 'numberOfSowers', + numberOfSows = 'numberOfSows', + podIndex = 'podIndex', + podRate = 'podRate', + realRateOfReturn = 'realRateOfReturn', + season = 'season', + seasonBlock = 'seasonBlock', + soil = 'soil', + soilSoldOut = 'soilSoldOut', + sownBeans = 'sownBeans', + temperature = 'temperature', + unharvestablePods = 'unharvestablePods', + updatedAt = 'updatedAt' } -export type Field_Filter = { +export type FieldFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe>>; beanstalk?: InputMaybe; - beanstalk_?: InputMaybe; + beanstalk_?: InputMaybe; beanstalk_contains?: InputMaybe; beanstalk_contains_nocase?: InputMaybe; beanstalk_ends_with?: InputMaybe; @@ -1987,9 +2041,9 @@ export type Field_Filter = { cultivationTemperature_lte?: InputMaybe; cultivationTemperature_not?: InputMaybe; cultivationTemperature_not_in?: InputMaybe>; - dailySnapshots_?: InputMaybe; + dailySnapshots_?: InputMaybe; farmer?: InputMaybe; - farmer_?: InputMaybe; + farmer_?: InputMaybe; farmer_contains?: InputMaybe; farmer_contains_nocase?: InputMaybe; farmer_ends_with?: InputMaybe; @@ -2009,6 +2063,14 @@ export type Field_Filter = { farmer_not_starts_with_nocase?: InputMaybe; farmer_starts_with?: InputMaybe; farmer_starts_with_nocase?: InputMaybe; + fieldId?: InputMaybe; + fieldId_gt?: InputMaybe; + fieldId_gte?: InputMaybe; + fieldId_in?: InputMaybe>; + fieldId_lt?: InputMaybe; + fieldId_lte?: InputMaybe; + fieldId_not?: InputMaybe; + fieldId_not_in?: InputMaybe>; harvestableIndex?: InputMaybe; harvestableIndex_gt?: InputMaybe; harvestableIndex_gte?: InputMaybe; @@ -2033,17 +2095,15 @@ export type Field_Filter = { harvestedPods_lte?: InputMaybe; harvestedPods_not?: InputMaybe; harvestedPods_not_in?: InputMaybe>; - hourlySnapshots_?: InputMaybe; - id?: InputMaybe; - id_contains?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_contains?: InputMaybe; - id_not_in?: InputMaybe>; + hourlySnapshots_?: 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>; lastDailySnapshotDay?: InputMaybe; lastDailySnapshotDay_gt?: InputMaybe; lastDailySnapshotDay_gte?: InputMaybe; @@ -2076,7 +2136,7 @@ export type Field_Filter = { numberOfSows_lte?: InputMaybe; numberOfSows_not?: InputMaybe; numberOfSows_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; plotIndexes?: InputMaybe>; plotIndexes_contains?: InputMaybe>; plotIndexes_contains_nocase?: InputMaybe>; @@ -2157,37 +2217,40 @@ export type Field_Filter = { unmigratedL1Pods_not_in?: InputMaybe>; }; -export enum Field_OrderBy { - Beanstalk = 'beanstalk', - BeanstalkFertilizer1155 = 'beanstalk__fertilizer1155', - BeanstalkId = 'beanstalk__id', - BeanstalkLastSeason = 'beanstalk__lastSeason', - BeanstalkToken = 'beanstalk__token', - CultivationFactor = 'cultivationFactor', - CultivationTemperature = 'cultivationTemperature', - DailySnapshots = 'dailySnapshots', - Farmer = 'farmer', - FarmerCreationBlock = 'farmer__creationBlock', - FarmerId = 'farmer__id', - HarvestableIndex = 'harvestableIndex', - HarvestablePods = 'harvestablePods', - HarvestedPods = 'harvestedPods', - HourlySnapshots = 'hourlySnapshots', - Id = 'id', - LastDailySnapshotDay = 'lastDailySnapshotDay', - LastHourlySnapshotSeason = 'lastHourlySnapshotSeason', - NumberOfSowers = 'numberOfSowers', - NumberOfSows = 'numberOfSows', - PlotIndexes = 'plotIndexes', - PodIndex = 'podIndex', - PodRate = 'podRate', - RealRateOfReturn = 'realRateOfReturn', - Season = 'season', - Soil = 'soil', - SownBeans = 'sownBeans', - Temperature = 'temperature', - UnharvestablePods = 'unharvestablePods', - UnmigratedL1Pods = 'unmigratedL1Pods' +export enum FieldOrderBy { + beanstalk = 'beanstalk', + beanstalk__fertilizer1155 = 'beanstalk__fertilizer1155', + beanstalk__id = 'beanstalk__id', + beanstalk__lastSeason = 'beanstalk__lastSeason', + beanstalk__token = 'beanstalk__token', + cultivationFactor = 'cultivationFactor', + cultivationTemperature = 'cultivationTemperature', + dailySnapshots = 'dailySnapshots', + farmer = 'farmer', + farmer__creationBlock = 'farmer__creationBlock', + farmer__id = 'farmer__id', + farmer__refereeCount = 'farmer__refereeCount', + farmer__totalReferralRewardPodsReceived = 'farmer__totalReferralRewardPodsReceived', + fieldId = 'fieldId', + harvestableIndex = 'harvestableIndex', + harvestablePods = 'harvestablePods', + harvestedPods = 'harvestedPods', + hourlySnapshots = 'hourlySnapshots', + id = 'id', + lastDailySnapshotDay = 'lastDailySnapshotDay', + lastHourlySnapshotSeason = 'lastHourlySnapshotSeason', + numberOfSowers = 'numberOfSowers', + numberOfSows = 'numberOfSows', + plotIndexes = 'plotIndexes', + podIndex = 'podIndex', + podRate = 'podRate', + realRateOfReturn = 'realRateOfReturn', + season = 'season', + soil = 'soil', + sownBeans = 'sownBeans', + temperature = 'temperature', + unharvestablePods = 'unharvestablePods', + unmigratedL1Pods = 'unmigratedL1Pods' } export type GaugesInfo = { @@ -2227,19 +2290,19 @@ export type GaugesInfo = { export type GaugesInfoDailySnapshotsArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; export type GaugesInfoHourlySnapshotsArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; export type GaugesInfoDailySnapshot = { @@ -2276,10 +2339,10 @@ export type GaugesInfoDailySnapshot = { updatedAt: Scalars['BigInt']['output']; }; -export type GaugesInfoDailySnapshot_Filter = { +export type GaugesInfoDailySnapshotFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe>>; createdAt?: InputMaybe; createdAt_gt?: InputMaybe; createdAt_gte?: InputMaybe; @@ -2425,7 +2488,7 @@ export type GaugesInfoDailySnapshot_Filter = { g2MaxTwaDeltaB_not?: InputMaybe; g2MaxTwaDeltaB_not_in?: InputMaybe>; gaugesInfo?: InputMaybe; - gaugesInfo_?: InputMaybe; + gaugesInfo_?: InputMaybe; gaugesInfo_contains?: InputMaybe; gaugesInfo_contains_nocase?: InputMaybe; gaugesInfo_ends_with?: InputMaybe; @@ -2453,7 +2516,7 @@ export type GaugesInfoDailySnapshot_Filter = { id_lte?: InputMaybe; id_not?: InputMaybe; id_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; season?: InputMaybe; season_gt?: InputMaybe; season_gte?: InputMaybe; @@ -2472,45 +2535,45 @@ export type GaugesInfoDailySnapshot_Filter = { updatedAt_not_in?: InputMaybe>; }; -export enum GaugesInfoDailySnapshot_OrderBy { - CreatedAt = 'createdAt', - DeltaG0CultivationFactor = 'deltaG0CultivationFactor', - DeltaG0IsActive = 'deltaG0IsActive', - DeltaG1BlightFactor = 'deltaG1BlightFactor', - DeltaG1ConvertDownPenalty = 'deltaG1ConvertDownPenalty', - DeltaG1IsActive = 'deltaG1IsActive', - DeltaG2BdvConvertedThisSeason = 'deltaG2BdvConvertedThisSeason', - DeltaG2BonusStalkPerBdv = 'deltaG2BonusStalkPerBdv', - DeltaG2IsActive = 'deltaG2IsActive', - DeltaG2MaxConvertCapacity = 'deltaG2MaxConvertCapacity', - DeltaG2MaxTwaDeltaB = 'deltaG2MaxTwaDeltaB', - G0CultivationFactor = 'g0CultivationFactor', - G0IsActive = 'g0IsActive', - G1BlightFactor = 'g1BlightFactor', - G1ConvertDownPenalty = 'g1ConvertDownPenalty', - G1IsActive = 'g1IsActive', - G2BdvConvertedThisSeason = 'g2BdvConvertedThisSeason', - G2BonusStalkPerBdv = 'g2BonusStalkPerBdv', - G2IsActive = 'g2IsActive', - G2MaxConvertCapacity = 'g2MaxConvertCapacity', - G2MaxTwaDeltaB = 'g2MaxTwaDeltaB', - GaugesInfo = 'gaugesInfo', - GaugesInfoG0CultivationFactor = 'gaugesInfo__g0CultivationFactor', - GaugesInfoG0IsActive = 'gaugesInfo__g0IsActive', - GaugesInfoG1BlightFactor = 'gaugesInfo__g1BlightFactor', - GaugesInfoG1ConvertDownPenalty = 'gaugesInfo__g1ConvertDownPenalty', - GaugesInfoG1IsActive = 'gaugesInfo__g1IsActive', - GaugesInfoG2BdvConvertedThisSeason = 'gaugesInfo__g2BdvConvertedThisSeason', - GaugesInfoG2BonusStalkPerBdv = 'gaugesInfo__g2BonusStalkPerBdv', - GaugesInfoG2IsActive = 'gaugesInfo__g2IsActive', - GaugesInfoG2MaxConvertCapacity = 'gaugesInfo__g2MaxConvertCapacity', - GaugesInfoG2MaxTwaDeltaB = 'gaugesInfo__g2MaxTwaDeltaB', - GaugesInfoId = 'gaugesInfo__id', - GaugesInfoLastDailySnapshotDay = 'gaugesInfo__lastDailySnapshotDay', - GaugesInfoLastHourlySnapshotSeason = 'gaugesInfo__lastHourlySnapshotSeason', - Id = 'id', - Season = 'season', - UpdatedAt = 'updatedAt' +export enum GaugesInfoDailySnapshotOrderBy { + createdAt = 'createdAt', + deltaG0CultivationFactor = 'deltaG0CultivationFactor', + deltaG0IsActive = 'deltaG0IsActive', + deltaG1BlightFactor = 'deltaG1BlightFactor', + deltaG1ConvertDownPenalty = 'deltaG1ConvertDownPenalty', + deltaG1IsActive = 'deltaG1IsActive', + deltaG2BdvConvertedThisSeason = 'deltaG2BdvConvertedThisSeason', + deltaG2BonusStalkPerBdv = 'deltaG2BonusStalkPerBdv', + deltaG2IsActive = 'deltaG2IsActive', + deltaG2MaxConvertCapacity = 'deltaG2MaxConvertCapacity', + deltaG2MaxTwaDeltaB = 'deltaG2MaxTwaDeltaB', + g0CultivationFactor = 'g0CultivationFactor', + g0IsActive = 'g0IsActive', + g1BlightFactor = 'g1BlightFactor', + g1ConvertDownPenalty = 'g1ConvertDownPenalty', + g1IsActive = 'g1IsActive', + g2BdvConvertedThisSeason = 'g2BdvConvertedThisSeason', + g2BonusStalkPerBdv = 'g2BonusStalkPerBdv', + g2IsActive = 'g2IsActive', + g2MaxConvertCapacity = 'g2MaxConvertCapacity', + g2MaxTwaDeltaB = 'g2MaxTwaDeltaB', + gaugesInfo = 'gaugesInfo', + gaugesInfo__g0CultivationFactor = 'gaugesInfo__g0CultivationFactor', + gaugesInfo__g0IsActive = 'gaugesInfo__g0IsActive', + gaugesInfo__g1BlightFactor = 'gaugesInfo__g1BlightFactor', + gaugesInfo__g1ConvertDownPenalty = 'gaugesInfo__g1ConvertDownPenalty', + gaugesInfo__g1IsActive = 'gaugesInfo__g1IsActive', + gaugesInfo__g2BdvConvertedThisSeason = 'gaugesInfo__g2BdvConvertedThisSeason', + gaugesInfo__g2BonusStalkPerBdv = 'gaugesInfo__g2BonusStalkPerBdv', + gaugesInfo__g2IsActive = 'gaugesInfo__g2IsActive', + gaugesInfo__g2MaxConvertCapacity = 'gaugesInfo__g2MaxConvertCapacity', + gaugesInfo__g2MaxTwaDeltaB = 'gaugesInfo__g2MaxTwaDeltaB', + gaugesInfo__id = 'gaugesInfo__id', + gaugesInfo__lastDailySnapshotDay = 'gaugesInfo__lastDailySnapshotDay', + gaugesInfo__lastHourlySnapshotSeason = 'gaugesInfo__lastHourlySnapshotSeason', + id = 'id', + season = 'season', + updatedAt = 'updatedAt' } export type GaugesInfoHourlySnapshot = { @@ -2547,10 +2610,10 @@ export type GaugesInfoHourlySnapshot = { updatedAt: Scalars['BigInt']['output']; }; -export type GaugesInfoHourlySnapshot_Filter = { +export type GaugesInfoHourlySnapshotFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe>>; createdAt?: InputMaybe; createdAt_gt?: InputMaybe; createdAt_gte?: InputMaybe; @@ -2696,7 +2759,7 @@ export type GaugesInfoHourlySnapshot_Filter = { g2MaxTwaDeltaB_not?: InputMaybe; g2MaxTwaDeltaB_not_in?: InputMaybe>; gaugesInfo?: InputMaybe; - gaugesInfo_?: InputMaybe; + gaugesInfo_?: InputMaybe; gaugesInfo_contains?: InputMaybe; gaugesInfo_contains_nocase?: InputMaybe; gaugesInfo_ends_with?: InputMaybe; @@ -2724,7 +2787,7 @@ export type GaugesInfoHourlySnapshot_Filter = { id_lte?: InputMaybe; id_not?: InputMaybe; id_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; season?: InputMaybe; season_gt?: InputMaybe; season_gte?: InputMaybe; @@ -2743,52 +2806,52 @@ export type GaugesInfoHourlySnapshot_Filter = { updatedAt_not_in?: InputMaybe>; }; -export enum GaugesInfoHourlySnapshot_OrderBy { - CreatedAt = 'createdAt', - DeltaG0CultivationFactor = 'deltaG0CultivationFactor', - DeltaG0IsActive = 'deltaG0IsActive', - DeltaG1BlightFactor = 'deltaG1BlightFactor', - DeltaG1ConvertDownPenalty = 'deltaG1ConvertDownPenalty', - DeltaG1IsActive = 'deltaG1IsActive', - DeltaG2BdvConvertedThisSeason = 'deltaG2BdvConvertedThisSeason', - DeltaG2BonusStalkPerBdv = 'deltaG2BonusStalkPerBdv', - DeltaG2IsActive = 'deltaG2IsActive', - DeltaG2MaxConvertCapacity = 'deltaG2MaxConvertCapacity', - DeltaG2MaxTwaDeltaB = 'deltaG2MaxTwaDeltaB', - G0CultivationFactor = 'g0CultivationFactor', - G0IsActive = 'g0IsActive', - G1BlightFactor = 'g1BlightFactor', - G1ConvertDownPenalty = 'g1ConvertDownPenalty', - G1IsActive = 'g1IsActive', - G2BdvConvertedThisSeason = 'g2BdvConvertedThisSeason', - G2BonusStalkPerBdv = 'g2BonusStalkPerBdv', - G2IsActive = 'g2IsActive', - G2MaxConvertCapacity = 'g2MaxConvertCapacity', - G2MaxTwaDeltaB = 'g2MaxTwaDeltaB', - GaugesInfo = 'gaugesInfo', - GaugesInfoG0CultivationFactor = 'gaugesInfo__g0CultivationFactor', - GaugesInfoG0IsActive = 'gaugesInfo__g0IsActive', - GaugesInfoG1BlightFactor = 'gaugesInfo__g1BlightFactor', - GaugesInfoG1ConvertDownPenalty = 'gaugesInfo__g1ConvertDownPenalty', - GaugesInfoG1IsActive = 'gaugesInfo__g1IsActive', - GaugesInfoG2BdvConvertedThisSeason = 'gaugesInfo__g2BdvConvertedThisSeason', - GaugesInfoG2BonusStalkPerBdv = 'gaugesInfo__g2BonusStalkPerBdv', - GaugesInfoG2IsActive = 'gaugesInfo__g2IsActive', - GaugesInfoG2MaxConvertCapacity = 'gaugesInfo__g2MaxConvertCapacity', - GaugesInfoG2MaxTwaDeltaB = 'gaugesInfo__g2MaxTwaDeltaB', - GaugesInfoId = 'gaugesInfo__id', - GaugesInfoLastDailySnapshotDay = 'gaugesInfo__lastDailySnapshotDay', - GaugesInfoLastHourlySnapshotSeason = 'gaugesInfo__lastHourlySnapshotSeason', - Id = 'id', - Season = 'season', - UpdatedAt = 'updatedAt' +export enum GaugesInfoHourlySnapshotOrderBy { + createdAt = 'createdAt', + deltaG0CultivationFactor = 'deltaG0CultivationFactor', + deltaG0IsActive = 'deltaG0IsActive', + deltaG1BlightFactor = 'deltaG1BlightFactor', + deltaG1ConvertDownPenalty = 'deltaG1ConvertDownPenalty', + deltaG1IsActive = 'deltaG1IsActive', + deltaG2BdvConvertedThisSeason = 'deltaG2BdvConvertedThisSeason', + deltaG2BonusStalkPerBdv = 'deltaG2BonusStalkPerBdv', + deltaG2IsActive = 'deltaG2IsActive', + deltaG2MaxConvertCapacity = 'deltaG2MaxConvertCapacity', + deltaG2MaxTwaDeltaB = 'deltaG2MaxTwaDeltaB', + g0CultivationFactor = 'g0CultivationFactor', + g0IsActive = 'g0IsActive', + g1BlightFactor = 'g1BlightFactor', + g1ConvertDownPenalty = 'g1ConvertDownPenalty', + g1IsActive = 'g1IsActive', + g2BdvConvertedThisSeason = 'g2BdvConvertedThisSeason', + g2BonusStalkPerBdv = 'g2BonusStalkPerBdv', + g2IsActive = 'g2IsActive', + g2MaxConvertCapacity = 'g2MaxConvertCapacity', + g2MaxTwaDeltaB = 'g2MaxTwaDeltaB', + gaugesInfo = 'gaugesInfo', + gaugesInfo__g0CultivationFactor = 'gaugesInfo__g0CultivationFactor', + gaugesInfo__g0IsActive = 'gaugesInfo__g0IsActive', + gaugesInfo__g1BlightFactor = 'gaugesInfo__g1BlightFactor', + gaugesInfo__g1ConvertDownPenalty = 'gaugesInfo__g1ConvertDownPenalty', + gaugesInfo__g1IsActive = 'gaugesInfo__g1IsActive', + gaugesInfo__g2BdvConvertedThisSeason = 'gaugesInfo__g2BdvConvertedThisSeason', + gaugesInfo__g2BonusStalkPerBdv = 'gaugesInfo__g2BonusStalkPerBdv', + gaugesInfo__g2IsActive = 'gaugesInfo__g2IsActive', + gaugesInfo__g2MaxConvertCapacity = 'gaugesInfo__g2MaxConvertCapacity', + gaugesInfo__g2MaxTwaDeltaB = 'gaugesInfo__g2MaxTwaDeltaB', + gaugesInfo__id = 'gaugesInfo__id', + gaugesInfo__lastDailySnapshotDay = 'gaugesInfo__lastDailySnapshotDay', + gaugesInfo__lastHourlySnapshotSeason = 'gaugesInfo__lastHourlySnapshotSeason', + id = 'id', + season = 'season', + updatedAt = 'updatedAt' } -export type GaugesInfo_Filter = { +export type GaugesInfoFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - and?: InputMaybe>>; - dailySnapshots_?: InputMaybe; + and?: InputMaybe>>; + dailySnapshots_?: InputMaybe; g0CultivationFactor?: InputMaybe; g0CultivationFactor_gt?: InputMaybe; g0CultivationFactor_gte?: InputMaybe; @@ -2857,7 +2920,7 @@ export type GaugesInfo_Filter = { g2MaxTwaDeltaB_lte?: InputMaybe; g2MaxTwaDeltaB_not?: InputMaybe; g2MaxTwaDeltaB_not_in?: InputMaybe>; - hourlySnapshots_?: InputMaybe; + hourlySnapshots_?: InputMaybe; id?: InputMaybe; id_gt?: InputMaybe; id_gte?: InputMaybe; @@ -2882,25 +2945,25 @@ export type GaugesInfo_Filter = { lastHourlySnapshotSeason_lte?: InputMaybe; lastHourlySnapshotSeason_not?: InputMaybe; lastHourlySnapshotSeason_not_in?: InputMaybe>; - or?: InputMaybe>>; -}; - -export enum GaugesInfo_OrderBy { - DailySnapshots = 'dailySnapshots', - G0CultivationFactor = 'g0CultivationFactor', - G0IsActive = 'g0IsActive', - G1BlightFactor = 'g1BlightFactor', - G1ConvertDownPenalty = 'g1ConvertDownPenalty', - G1IsActive = 'g1IsActive', - G2BdvConvertedThisSeason = 'g2BdvConvertedThisSeason', - G2BonusStalkPerBdv = 'g2BonusStalkPerBdv', - G2IsActive = 'g2IsActive', - G2MaxConvertCapacity = 'g2MaxConvertCapacity', - G2MaxTwaDeltaB = 'g2MaxTwaDeltaB', - HourlySnapshots = 'hourlySnapshots', - Id = 'id', - LastDailySnapshotDay = 'lastDailySnapshotDay', - LastHourlySnapshotSeason = 'lastHourlySnapshotSeason' + or?: InputMaybe>>; +}; + +export enum GaugesInfoOrderBy { + dailySnapshots = 'dailySnapshots', + g0CultivationFactor = 'g0CultivationFactor', + g0IsActive = 'g0IsActive', + g1BlightFactor = 'g1BlightFactor', + g1ConvertDownPenalty = 'g1ConvertDownPenalty', + g1IsActive = 'g1IsActive', + g2BdvConvertedThisSeason = 'g2BdvConvertedThisSeason', + g2BonusStalkPerBdv = 'g2BonusStalkPerBdv', + g2IsActive = 'g2IsActive', + g2MaxConvertCapacity = 'g2MaxConvertCapacity', + g2MaxTwaDeltaB = 'g2MaxTwaDeltaB', + hourlySnapshots = 'hourlySnapshots', + id = 'id', + lastDailySnapshotDay = 'lastDailySnapshotDay', + lastHourlySnapshotSeason = 'lastHourlySnapshotSeason' } export type Germinating = { @@ -2923,7 +2986,7 @@ export type Germinating = { type: Scalars['String']['output']; }; -export type Germinating_Filter = { +export type GerminatingFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; address?: InputMaybe; @@ -2936,7 +2999,7 @@ export type Germinating_Filter = { address_not?: InputMaybe; address_not_contains?: InputMaybe; address_not_in?: InputMaybe>; - and?: InputMaybe>>; + and?: InputMaybe>>; bdv?: InputMaybe; bdv_gt?: InputMaybe; bdv_gte?: InputMaybe; @@ -2957,7 +3020,7 @@ export type Germinating_Filter = { isFarmer_in?: InputMaybe>; isFarmer_not?: InputMaybe; isFarmer_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; season?: InputMaybe; season_gt?: InputMaybe; season_gte?: InputMaybe; @@ -3004,15 +3067,15 @@ export type Germinating_Filter = { type_starts_with_nocase?: InputMaybe; }; -export enum Germinating_OrderBy { - Address = 'address', - Bdv = 'bdv', - Id = 'id', - IsFarmer = 'isFarmer', - Season = 'season', - Stalk = 'stalk', - TokenAmount = 'tokenAmount', - Type = 'type' +export enum GerminatingOrderBy { + address = 'address', + bdv = 'bdv', + id = 'id', + isFarmer = 'isFarmer', + season = 'season', + stalk = 'stalk', + tokenAmount = 'tokenAmount', + type = 'type' } export type MarketPerformanceSeasonal = { @@ -3057,10 +3120,10 @@ export type MarketPerformanceSeasonal = { valid: Scalars['Boolean']['output']; }; -export type MarketPerformanceSeasonal_Filter = { +export type MarketPerformanceSeasonalFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe>>; cumulativePercentChange?: InputMaybe>; cumulativePercentChange_contains?: InputMaybe>; cumulativePercentChange_contains_nocase?: InputMaybe>; @@ -3097,7 +3160,7 @@ export type MarketPerformanceSeasonal_Filter = { id_lte?: InputMaybe; id_not?: InputMaybe; id_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; percentChange?: InputMaybe>; percentChange_contains?: InputMaybe>; percentChange_contains_nocase?: InputMaybe>; @@ -3139,7 +3202,7 @@ export type MarketPerformanceSeasonal_Filter = { season_not?: InputMaybe; season_not_in?: InputMaybe>; silo?: InputMaybe; - silo_?: InputMaybe; + silo_?: InputMaybe; silo_contains?: InputMaybe; silo_contains_nocase?: InputMaybe; silo_ends_with?: InputMaybe; @@ -3215,59 +3278,59 @@ export type MarketPerformanceSeasonal_Filter = { valid_not_in?: InputMaybe>; }; -export enum MarketPerformanceSeasonal_OrderBy { - CumulativePercentChange = 'cumulativePercentChange', - CumulativeTotalPercentChange = 'cumulativeTotalPercentChange', - CumulativeTotalUsdChange = 'cumulativeTotalUsdChange', - CumulativeUsdChange = 'cumulativeUsdChange', - Id = 'id', - PercentChange = 'percentChange', - PrevSeasonTokenBalances = 'prevSeasonTokenBalances', - PrevSeasonTokenUsdPrices = 'prevSeasonTokenUsdPrices', - PrevSeasonTokenUsdValues = 'prevSeasonTokenUsdValues', - PrevSeasonTotalUsd = 'prevSeasonTotalUsd', - Season = 'season', - Silo = 'silo', - SiloActiveFarmers = 'silo__activeFarmers', - SiloAvgConvertDownPenalty = 'silo__avgConvertDownPenalty', - SiloAvgGrownStalkPerBdvPerSeason = 'silo__avgGrownStalkPerBdvPerSeason', - SiloBeanMints = 'silo__beanMints', - SiloBeanToMaxLpGpPerBdvRatio = 'silo__beanToMaxLpGpPerBdvRatio', - SiloBonusStalkConvertUp = 'silo__bonusStalkConvertUp', - SiloConvertDownPenalty = 'silo__convertDownPenalty', - SiloCropRatio = 'silo__cropRatio', - SiloDepositedBdv = 'silo__depositedBDV', - SiloGerminatingStalk = 'silo__germinatingStalk', - SiloGrownStalkPerSeason = 'silo__grownStalkPerSeason', - SiloId = 'silo__id', - SiloLastDailySnapshotDay = 'silo__lastDailySnapshotDay', - SiloLastHourlySnapshotSeason = 'silo__lastHourlySnapshotSeason', - SiloPenalizedStalkConvertDown = 'silo__penalizedStalkConvertDown', - SiloPlantableStalk = 'silo__plantableStalk', - SiloPlantedBeans = 'silo__plantedBeans', - SiloRoots = 'silo__roots', - SiloStalk = 'silo__stalk', - SiloTotalBdvConvertUp = 'silo__totalBdvConvertUp', - SiloTotalBdvConvertUpBonus = 'silo__totalBdvConvertUpBonus', - SiloUnmigratedL1DepositedBdv = 'silo__unmigratedL1DepositedBdv', - SiloUnpenalizedStalkConvertDown = 'silo__unpenalizedStalkConvertDown', - ThisSeasonTokenUsdPrices = 'thisSeasonTokenUsdPrices', - ThisSeasonTokenUsdValues = 'thisSeasonTokenUsdValues', - ThisSeasonTotalUsd = 'thisSeasonTotalUsd', - Timestamp = 'timestamp', - TotalPercentChange = 'totalPercentChange', - TotalUsdChange = 'totalUsdChange', - UsdChange = 'usdChange', - Valid = 'valid' +export enum MarketPerformanceSeasonalOrderBy { + cumulativePercentChange = 'cumulativePercentChange', + cumulativeTotalPercentChange = 'cumulativeTotalPercentChange', + cumulativeTotalUsdChange = 'cumulativeTotalUsdChange', + cumulativeUsdChange = 'cumulativeUsdChange', + id = 'id', + percentChange = 'percentChange', + prevSeasonTokenBalances = 'prevSeasonTokenBalances', + prevSeasonTokenUsdPrices = 'prevSeasonTokenUsdPrices', + prevSeasonTokenUsdValues = 'prevSeasonTokenUsdValues', + prevSeasonTotalUsd = 'prevSeasonTotalUsd', + season = 'season', + silo = 'silo', + silo__activeFarmers = 'silo__activeFarmers', + silo__avgConvertDownPenalty = 'silo__avgConvertDownPenalty', + silo__avgGrownStalkPerBdvPerSeason = 'silo__avgGrownStalkPerBdvPerSeason', + silo__beanMints = 'silo__beanMints', + silo__beanToMaxLpGpPerBdvRatio = 'silo__beanToMaxLpGpPerBdvRatio', + silo__bonusStalkConvertUp = 'silo__bonusStalkConvertUp', + silo__convertDownPenalty = 'silo__convertDownPenalty', + silo__cropRatio = 'silo__cropRatio', + silo__depositedBDV = 'silo__depositedBDV', + silo__germinatingStalk = 'silo__germinatingStalk', + silo__grownStalkPerSeason = 'silo__grownStalkPerSeason', + silo__id = 'silo__id', + silo__lastDailySnapshotDay = 'silo__lastDailySnapshotDay', + silo__lastHourlySnapshotSeason = 'silo__lastHourlySnapshotSeason', + silo__penalizedStalkConvertDown = 'silo__penalizedStalkConvertDown', + silo__plantableStalk = 'silo__plantableStalk', + silo__plantedBeans = 'silo__plantedBeans', + silo__roots = 'silo__roots', + silo__stalk = 'silo__stalk', + silo__totalBdvConvertUp = 'silo__totalBdvConvertUp', + silo__totalBdvConvertUpBonus = 'silo__totalBdvConvertUpBonus', + silo__unmigratedL1DepositedBdv = 'silo__unmigratedL1DepositedBdv', + silo__unpenalizedStalkConvertDown = 'silo__unpenalizedStalkConvertDown', + thisSeasonTokenUsdPrices = 'thisSeasonTokenUsdPrices', + thisSeasonTokenUsdValues = 'thisSeasonTokenUsdValues', + thisSeasonTotalUsd = 'thisSeasonTotalUsd', + timestamp = 'timestamp', + totalPercentChange = 'totalPercentChange', + totalUsdChange = 'totalUsdChange', + usdChange = 'usdChange', + valid = 'valid' } export enum MarketStatus { - Active = 'ACTIVE', - Cancelled = 'CANCELLED', - CancelledPartial = 'CANCELLED_PARTIAL', - Expired = 'EXPIRED', - Filled = 'FILLED', - FilledPartial = 'FILLED_PARTIAL' + ACTIVE = 'ACTIVE', + CANCELLED = 'CANCELLED', + CANCELLED_PARTIAL = 'CANCELLED_PARTIAL', + EXPIRED = 'EXPIRED', + FILLED = 'FILLED', + FILLED_PARTIAL = 'FILLED_PARTIAL' } export type MarketplaceEvent = { @@ -3283,10 +3346,10 @@ export type MarketplaceEvent = { logIndex: Scalars['Int']['output']; }; -export type MarketplaceEvent_Filter = { +export type MarketplaceEventFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe>>; blockNumber?: InputMaybe; blockNumber_gt?: InputMaybe; blockNumber_gte?: InputMaybe; @@ -3329,21 +3392,21 @@ export type MarketplaceEvent_Filter = { logIndex_lte?: InputMaybe; logIndex_not?: InputMaybe; logIndex_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; }; -export enum MarketplaceEvent_OrderBy { - BlockNumber = 'blockNumber', - CreatedAt = 'createdAt', - Hash = 'hash', - Id = 'id', - LogIndex = 'logIndex' +export enum MarketplaceEventOrderBy { + blockNumber = 'blockNumber', + createdAt = 'createdAt', + hash = 'hash', + id = 'id', + logIndex = 'logIndex' } /** Defines the order direction, either ascending or descending */ export enum OrderDirection { - Asc = 'asc', - Desc = 'desc' + asc = 'asc', + desc = 'desc' } export type Plot = { @@ -3358,6 +3421,8 @@ export type Plot = { farmer: Farmer; /** Field to which this plot belongs */ field: Field; + /** Numeric identifier of the field */ + fieldId: Scalars['BigInt']['output']; /** Flag for if plot is fully harvested */ fullyHarvested: Scalars['Boolean']['output']; /** Timestamp of plot harvest, if it has harvested */ @@ -3368,12 +3433,14 @@ export type Plot = { harvestablePods: Scalars['BigInt']['output']; /** Number of pods harvested */ harvestedPods: Scalars['BigInt']['output']; - /** Plot index */ + /** Plot index when fieldId is 0, otherwise plotIndex:fieldId */ id: Scalars['ID']['output']; /** Plot Index */ index: Scalars['BigInt']['output']; /** The harvestable index at the time the plot was sown or exchanged on the marketplace */ initialHarvestableIndex: Scalars['BigInt']['output']; + /** True if this plot was sown during the morning auction */ + isMorning: Scalars['Boolean']['output']; /** Associated plot listing */ listing?: Maybe; /** Total pods in plot */ @@ -3382,6 +3449,10 @@ export type Plot = { preTransferOwner?: Maybe; /** If `source === 'TRANSFER'`: Source SOW/MARKET of the farmer who acquired the plot. Cannot be TRANSFER. */ preTransferSource?: Maybe; + /** If source === 'REFERRAL': The referee who was referred. */ + referee?: Maybe; + /** If source === 'REFERRAL': The referrer who referred the farmer. */ + referrer?: Maybe; /** Season on entity creation (not sown) */ season: Scalars['Int']['output']; /** Source for this plot */ @@ -3405,17 +3476,18 @@ export type Plot = { }; export enum PlotSource { - ContractReceiverMigrated = 'CONTRACT_RECEIVER_MIGRATED', - Market = 'MARKET', - ReseedMigrated = 'RESEED_MIGRATED', - Sow = 'SOW', - Transfer = 'TRANSFER' + CONTRACT_RECEIVER_MIGRATED = 'CONTRACT_RECEIVER_MIGRATED', + MARKET = 'MARKET', + REFERRAL = 'REFERRAL', + RESEED_MIGRATED = 'RESEED_MIGRATED', + SOW = 'SOW', + TRANSFER = 'TRANSFER' } -export type Plot_Filter = { +export type PlotFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe>>; beansPerPod?: InputMaybe; beansPerPod_gt?: InputMaybe; beansPerPod_gte?: InputMaybe; @@ -3443,7 +3515,7 @@ export type Plot_Filter = { creationHash_not_contains?: InputMaybe; creationHash_not_in?: InputMaybe>; farmer?: InputMaybe; - farmer_?: InputMaybe; + farmer_?: InputMaybe; farmer_contains?: InputMaybe; farmer_contains_nocase?: InputMaybe; farmer_ends_with?: InputMaybe; @@ -3464,7 +3536,15 @@ export type Plot_Filter = { farmer_starts_with?: InputMaybe; farmer_starts_with_nocase?: InputMaybe; field?: InputMaybe; - field_?: InputMaybe; + fieldId?: InputMaybe; + fieldId_gt?: InputMaybe; + fieldId_gte?: InputMaybe; + fieldId_in?: InputMaybe>; + fieldId_lt?: InputMaybe; + fieldId_lte?: InputMaybe; + fieldId_not?: InputMaybe; + fieldId_not_in?: InputMaybe>; + field_?: InputMaybe; field_contains?: InputMaybe; field_contains_nocase?: InputMaybe; field_ends_with?: InputMaybe; @@ -3546,8 +3626,12 @@ export type Plot_Filter = { initialHarvestableIndex_lte?: InputMaybe; initialHarvestableIndex_not?: InputMaybe; initialHarvestableIndex_not_in?: InputMaybe>; + isMorning?: InputMaybe; + isMorning_in?: InputMaybe>; + isMorning_not?: InputMaybe; + isMorning_not_in?: InputMaybe>; listing?: InputMaybe; - listing_?: InputMaybe; + listing_?: InputMaybe; listing_contains?: InputMaybe; listing_contains_nocase?: InputMaybe; listing_ends_with?: InputMaybe; @@ -3567,7 +3651,7 @@ export type Plot_Filter = { listing_not_starts_with_nocase?: InputMaybe; listing_starts_with?: InputMaybe; listing_starts_with_nocase?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe>>; pods?: InputMaybe; pods_gt?: InputMaybe; pods_gte?: InputMaybe; @@ -3577,7 +3661,7 @@ export type Plot_Filter = { pods_not?: InputMaybe; pods_not_in?: InputMaybe>; preTransferOwner?: InputMaybe; - preTransferOwner_?: InputMaybe; + preTransferOwner_?: InputMaybe; preTransferOwner_contains?: InputMaybe; preTransferOwner_contains_nocase?: InputMaybe; preTransferOwner_ends_with?: InputMaybe; @@ -3601,6 +3685,48 @@ export type Plot_Filter = { preTransferSource_in?: InputMaybe>; preTransferSource_not?: InputMaybe; preTransferSource_not_in?: InputMaybe>; + referee?: InputMaybe; + referee_?: InputMaybe; + referee_contains?: InputMaybe; + referee_contains_nocase?: InputMaybe; + referee_ends_with?: InputMaybe; + referee_ends_with_nocase?: InputMaybe; + referee_gt?: InputMaybe; + referee_gte?: InputMaybe; + referee_in?: InputMaybe>; + referee_lt?: InputMaybe; + referee_lte?: InputMaybe; + referee_not?: InputMaybe; + referee_not_contains?: InputMaybe; + referee_not_contains_nocase?: InputMaybe; + referee_not_ends_with?: InputMaybe; + referee_not_ends_with_nocase?: InputMaybe; + referee_not_in?: InputMaybe>; + referee_not_starts_with?: InputMaybe; + referee_not_starts_with_nocase?: InputMaybe; + referee_starts_with?: InputMaybe; + referee_starts_with_nocase?: InputMaybe; + referrer?: InputMaybe; + referrer_?: InputMaybe; + referrer_contains?: InputMaybe; + referrer_contains_nocase?: InputMaybe; + referrer_ends_with?: InputMaybe; + referrer_ends_with_nocase?: InputMaybe; + referrer_gt?: InputMaybe; + referrer_gte?: InputMaybe; + referrer_in?: InputMaybe>; + referrer_lt?: InputMaybe; + referrer_lte?: InputMaybe; + referrer_not?: InputMaybe; + referrer_not_contains?: InputMaybe; + referrer_not_contains_nocase?: InputMaybe; + referrer_not_ends_with?: InputMaybe; + referrer_not_ends_with_nocase?: InputMaybe; + referrer_not_in?: InputMaybe>; + referrer_not_starts_with?: InputMaybe; + referrer_not_starts_with_nocase?: InputMaybe; + referrer_starts_with?: InputMaybe; + referrer_starts_with_nocase?: InputMaybe; season?: InputMaybe; season_gt?: InputMaybe; season_gte?: InputMaybe; @@ -3683,78 +3809,96 @@ export type Plot_Filter = { updatedAt_not_in?: InputMaybe>; }; -export enum Plot_OrderBy { - BeansPerPod = 'beansPerPod', - CreatedAt = 'createdAt', - CreationHash = 'creationHash', - Farmer = 'farmer', - FarmerCreationBlock = 'farmer__creationBlock', - FarmerId = 'farmer__id', - Field = 'field', - FieldCultivationFactor = 'field__cultivationFactor', - FieldCultivationTemperature = 'field__cultivationTemperature', - FieldHarvestableIndex = 'field__harvestableIndex', - FieldHarvestablePods = 'field__harvestablePods', - FieldHarvestedPods = 'field__harvestedPods', - FieldId = 'field__id', - FieldLastDailySnapshotDay = 'field__lastDailySnapshotDay', - FieldLastHourlySnapshotSeason = 'field__lastHourlySnapshotSeason', - FieldNumberOfSowers = 'field__numberOfSowers', - FieldNumberOfSows = 'field__numberOfSows', - FieldPodIndex = 'field__podIndex', - FieldPodRate = 'field__podRate', - FieldRealRateOfReturn = 'field__realRateOfReturn', - FieldSeason = 'field__season', - FieldSoil = 'field__soil', - FieldSownBeans = 'field__sownBeans', - FieldTemperature = 'field__temperature', - FieldUnharvestablePods = 'field__unharvestablePods', - FieldUnmigratedL1Pods = 'field__unmigratedL1Pods', - FullyHarvested = 'fullyHarvested', - HarvestAt = 'harvestAt', - HarvestHash = 'harvestHash', - HarvestablePods = 'harvestablePods', - HarvestedPods = 'harvestedPods', - Id = 'id', - Index = 'index', - InitialHarvestableIndex = 'initialHarvestableIndex', - Listing = 'listing', - ListingAmount = 'listing__amount', - ListingCreatedAt = 'listing__createdAt', - ListingCreationHash = 'listing__creationHash', - ListingFilled = 'listing__filled', - ListingFilledAmount = 'listing__filledAmount', - ListingHistoryId = 'listing__historyID', - ListingId = 'listing__id', - ListingIndex = 'listing__index', - ListingMaxHarvestableIndex = 'listing__maxHarvestableIndex', - ListingMinFillAmount = 'listing__minFillAmount', - ListingMode = 'listing__mode', - ListingOriginalAmount = 'listing__originalAmount', - ListingOriginalIndex = 'listing__originalIndex', - ListingOriginalPlaceInLine = 'listing__originalPlaceInLine', - ListingPricePerPod = 'listing__pricePerPod', - ListingPricingFunction = 'listing__pricingFunction', - ListingPricingType = 'listing__pricingType', - ListingRemainingAmount = 'listing__remainingAmount', - ListingStart = 'listing__start', - ListingStatus = 'listing__status', - ListingUpdatedAt = 'listing__updatedAt', - Pods = 'pods', - PreTransferOwner = 'preTransferOwner', - PreTransferOwnerCreationBlock = 'preTransferOwner__creationBlock', - PreTransferOwnerId = 'preTransferOwner__id', - PreTransferSource = 'preTransferSource', - Season = 'season', - Source = 'source', - SourceHash = 'sourceHash', - SowHash = 'sowHash', - SowSeason = 'sowSeason', - SowTimestamp = 'sowTimestamp', - SownBeansPerPod = 'sownBeansPerPod', - SownInitialHarvestableIndex = 'sownInitialHarvestableIndex', - UpdatedAt = 'updatedAt', - UpdatedAtBlock = 'updatedAtBlock' +export enum PlotOrderBy { + beansPerPod = 'beansPerPod', + createdAt = 'createdAt', + creationHash = 'creationHash', + farmer = 'farmer', + farmer__creationBlock = 'farmer__creationBlock', + farmer__id = 'farmer__id', + farmer__refereeCount = 'farmer__refereeCount', + farmer__totalReferralRewardPodsReceived = 'farmer__totalReferralRewardPodsReceived', + field = 'field', + fieldId = 'fieldId', + field__cultivationFactor = 'field__cultivationFactor', + field__cultivationTemperature = 'field__cultivationTemperature', + field__fieldId = 'field__fieldId', + field__harvestableIndex = 'field__harvestableIndex', + field__harvestablePods = 'field__harvestablePods', + field__harvestedPods = 'field__harvestedPods', + field__id = 'field__id', + field__lastDailySnapshotDay = 'field__lastDailySnapshotDay', + field__lastHourlySnapshotSeason = 'field__lastHourlySnapshotSeason', + field__numberOfSowers = 'field__numberOfSowers', + field__numberOfSows = 'field__numberOfSows', + field__podIndex = 'field__podIndex', + field__podRate = 'field__podRate', + field__realRateOfReturn = 'field__realRateOfReturn', + field__season = 'field__season', + field__soil = 'field__soil', + field__sownBeans = 'field__sownBeans', + field__temperature = 'field__temperature', + field__unharvestablePods = 'field__unharvestablePods', + field__unmigratedL1Pods = 'field__unmigratedL1Pods', + fullyHarvested = 'fullyHarvested', + harvestAt = 'harvestAt', + harvestHash = 'harvestHash', + harvestablePods = 'harvestablePods', + harvestedPods = 'harvestedPods', + id = 'id', + index = 'index', + initialHarvestableIndex = 'initialHarvestableIndex', + isMorning = 'isMorning', + listing = 'listing', + listing__amount = 'listing__amount', + listing__createdAt = 'listing__createdAt', + listing__creationHash = 'listing__creationHash', + listing__fieldId = 'listing__fieldId', + listing__filled = 'listing__filled', + listing__filledAmount = 'listing__filledAmount', + listing__historyID = 'listing__historyID', + listing__id = 'listing__id', + listing__index = 'listing__index', + listing__maxHarvestableIndex = 'listing__maxHarvestableIndex', + listing__minFillAmount = 'listing__minFillAmount', + listing__mode = 'listing__mode', + listing__originalAmount = 'listing__originalAmount', + listing__originalIndex = 'listing__originalIndex', + listing__originalPlaceInLine = 'listing__originalPlaceInLine', + listing__pricePerPod = 'listing__pricePerPod', + listing__pricingFunction = 'listing__pricingFunction', + listing__pricingType = 'listing__pricingType', + listing__remainingAmount = 'listing__remainingAmount', + listing__start = 'listing__start', + listing__status = 'listing__status', + listing__updatedAt = 'listing__updatedAt', + pods = 'pods', + preTransferOwner = 'preTransferOwner', + preTransferOwner__creationBlock = 'preTransferOwner__creationBlock', + preTransferOwner__id = 'preTransferOwner__id', + preTransferOwner__refereeCount = 'preTransferOwner__refereeCount', + preTransferOwner__totalReferralRewardPodsReceived = 'preTransferOwner__totalReferralRewardPodsReceived', + preTransferSource = 'preTransferSource', + referee = 'referee', + referee__creationBlock = 'referee__creationBlock', + referee__id = 'referee__id', + referee__refereeCount = 'referee__refereeCount', + referee__totalReferralRewardPodsReceived = 'referee__totalReferralRewardPodsReceived', + referrer = 'referrer', + referrer__creationBlock = 'referrer__creationBlock', + referrer__id = 'referrer__id', + referrer__refereeCount = 'referrer__refereeCount', + referrer__totalReferralRewardPodsReceived = 'referrer__totalReferralRewardPodsReceived', + season = 'season', + source = 'source', + sourceHash = 'sourceHash', + sowHash = 'sowHash', + sowSeason = 'sowSeason', + sowTimestamp = 'sowTimestamp', + sownBeansPerPod = 'sownBeansPerPod', + sownInitialHarvestableIndex = 'sownInitialHarvestableIndex', + updatedAt = 'updatedAt', + updatedAtBlock = 'updatedAtBlock' } export type PodFill = { @@ -3785,7 +3929,7 @@ export type PodFill = { toFarmer: Farmer; }; -export type PodFill_Filter = { +export type PodFillFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; amount?: InputMaybe; @@ -3796,7 +3940,7 @@ export type PodFill_Filter = { amount_lte?: InputMaybe; amount_not?: InputMaybe; amount_not_in?: InputMaybe>; - and?: InputMaybe>>; + and?: InputMaybe>>; costInBeans?: InputMaybe; costInBeans_gt?: InputMaybe; costInBeans_gte?: InputMaybe; @@ -3814,7 +3958,7 @@ export type PodFill_Filter = { createdAt_not?: InputMaybe; createdAt_not_in?: InputMaybe>; fromFarmer?: InputMaybe; - fromFarmer_?: InputMaybe; + fromFarmer_?: InputMaybe; fromFarmer_contains?: InputMaybe; fromFarmer_contains_nocase?: InputMaybe; fromFarmer_ends_with?: InputMaybe; @@ -3851,7 +3995,7 @@ export type PodFill_Filter = { index_not?: InputMaybe; index_not_in?: InputMaybe>; listing?: InputMaybe; - listing_?: InputMaybe; + listing_?: InputMaybe; listing_contains?: InputMaybe; listing_contains_nocase?: InputMaybe; listing_ends_with?: InputMaybe; @@ -3871,9 +4015,9 @@ export type PodFill_Filter = { listing_not_starts_with_nocase?: InputMaybe; listing_starts_with?: InputMaybe; listing_starts_with_nocase?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe>>; order?: InputMaybe; - order_?: InputMaybe; + order_?: InputMaybe; order_contains?: InputMaybe; order_contains_nocase?: InputMaybe; order_ends_with?: InputMaybe; @@ -3902,7 +4046,7 @@ export type PodFill_Filter = { placeInLine_not?: InputMaybe; placeInLine_not_in?: InputMaybe>; podMarketplace?: InputMaybe; - podMarketplace_?: InputMaybe; + podMarketplace_?: InputMaybe; podMarketplace_contains?: InputMaybe; podMarketplace_contains_nocase?: InputMaybe; podMarketplace_ends_with?: InputMaybe; @@ -3931,7 +4075,7 @@ export type PodFill_Filter = { start_not?: InputMaybe; start_not_in?: InputMaybe>; toFarmer?: InputMaybe; - toFarmer_?: InputMaybe; + toFarmer_?: InputMaybe; toFarmer_contains?: InputMaybe; toFarmer_contains_nocase?: InputMaybe; toFarmer_ends_with?: InputMaybe; @@ -3953,74 +4097,80 @@ export type PodFill_Filter = { toFarmer_starts_with_nocase?: InputMaybe; }; -export enum PodFill_OrderBy { - Amount = 'amount', - CostInBeans = 'costInBeans', - CreatedAt = 'createdAt', - FromFarmer = 'fromFarmer', - FromFarmerCreationBlock = 'fromFarmer__creationBlock', - FromFarmerId = 'fromFarmer__id', - Id = 'id', - Index = 'index', - Listing = 'listing', - ListingAmount = 'listing__amount', - ListingCreatedAt = 'listing__createdAt', - ListingCreationHash = 'listing__creationHash', - ListingFilled = 'listing__filled', - ListingFilledAmount = 'listing__filledAmount', - ListingHistoryId = 'listing__historyID', - ListingId = 'listing__id', - ListingIndex = 'listing__index', - ListingMaxHarvestableIndex = 'listing__maxHarvestableIndex', - ListingMinFillAmount = 'listing__minFillAmount', - ListingMode = 'listing__mode', - ListingOriginalAmount = 'listing__originalAmount', - ListingOriginalIndex = 'listing__originalIndex', - ListingOriginalPlaceInLine = 'listing__originalPlaceInLine', - ListingPricePerPod = 'listing__pricePerPod', - ListingPricingFunction = 'listing__pricingFunction', - ListingPricingType = 'listing__pricingType', - ListingRemainingAmount = 'listing__remainingAmount', - ListingStart = 'listing__start', - ListingStatus = 'listing__status', - ListingUpdatedAt = 'listing__updatedAt', - Order = 'order', - OrderBeanAmount = 'order__beanAmount', - OrderBeanAmountFilled = 'order__beanAmountFilled', - OrderCreatedAt = 'order__createdAt', - OrderCreationHash = 'order__creationHash', - OrderHistoryId = 'order__historyID', - OrderId = 'order__id', - OrderMaxPlaceInLine = 'order__maxPlaceInLine', - OrderMinFillAmount = 'order__minFillAmount', - OrderPodAmountFilled = 'order__podAmountFilled', - OrderPricePerPod = 'order__pricePerPod', - OrderPricingFunction = 'order__pricingFunction', - OrderPricingType = 'order__pricingType', - OrderStatus = 'order__status', - OrderUpdatedAt = 'order__updatedAt', - PlaceInLine = 'placeInLine', - PodMarketplace = 'podMarketplace', - PodMarketplaceAvailableListedPods = 'podMarketplace__availableListedPods', - PodMarketplaceAvailableOrderBeans = 'podMarketplace__availableOrderBeans', - PodMarketplaceBeanVolume = 'podMarketplace__beanVolume', - PodMarketplaceCancelledListedPods = 'podMarketplace__cancelledListedPods', - PodMarketplaceCancelledOrderBeans = 'podMarketplace__cancelledOrderBeans', - PodMarketplaceExpiredListedPods = 'podMarketplace__expiredListedPods', - PodMarketplaceFilledListedPods = 'podMarketplace__filledListedPods', - PodMarketplaceFilledOrderBeans = 'podMarketplace__filledOrderBeans', - PodMarketplaceFilledOrderedPods = 'podMarketplace__filledOrderedPods', - PodMarketplaceId = 'podMarketplace__id', - PodMarketplaceLastDailySnapshotDay = 'podMarketplace__lastDailySnapshotDay', - PodMarketplaceLastHourlySnapshotSeason = 'podMarketplace__lastHourlySnapshotSeason', - PodMarketplaceListedPods = 'podMarketplace__listedPods', - PodMarketplaceOrderBeans = 'podMarketplace__orderBeans', - PodMarketplacePodVolume = 'podMarketplace__podVolume', - PodMarketplaceSeason = 'podMarketplace__season', - Start = 'start', - ToFarmer = 'toFarmer', - ToFarmerCreationBlock = 'toFarmer__creationBlock', - ToFarmerId = 'toFarmer__id' +export enum PodFillOrderBy { + amount = 'amount', + costInBeans = 'costInBeans', + createdAt = 'createdAt', + fromFarmer = 'fromFarmer', + fromFarmer__creationBlock = 'fromFarmer__creationBlock', + fromFarmer__id = 'fromFarmer__id', + fromFarmer__refereeCount = 'fromFarmer__refereeCount', + fromFarmer__totalReferralRewardPodsReceived = 'fromFarmer__totalReferralRewardPodsReceived', + id = 'id', + index = 'index', + listing = 'listing', + listing__amount = 'listing__amount', + listing__createdAt = 'listing__createdAt', + listing__creationHash = 'listing__creationHash', + listing__fieldId = 'listing__fieldId', + listing__filled = 'listing__filled', + listing__filledAmount = 'listing__filledAmount', + listing__historyID = 'listing__historyID', + listing__id = 'listing__id', + listing__index = 'listing__index', + listing__maxHarvestableIndex = 'listing__maxHarvestableIndex', + listing__minFillAmount = 'listing__minFillAmount', + listing__mode = 'listing__mode', + listing__originalAmount = 'listing__originalAmount', + listing__originalIndex = 'listing__originalIndex', + listing__originalPlaceInLine = 'listing__originalPlaceInLine', + listing__pricePerPod = 'listing__pricePerPod', + listing__pricingFunction = 'listing__pricingFunction', + listing__pricingType = 'listing__pricingType', + listing__remainingAmount = 'listing__remainingAmount', + listing__start = 'listing__start', + listing__status = 'listing__status', + listing__updatedAt = 'listing__updatedAt', + order = 'order', + order__beanAmount = 'order__beanAmount', + order__beanAmountFilled = 'order__beanAmountFilled', + order__createdAt = 'order__createdAt', + order__creationHash = 'order__creationHash', + order__fieldId = 'order__fieldId', + order__historyID = 'order__historyID', + order__id = 'order__id', + order__maxPlaceInLine = 'order__maxPlaceInLine', + order__minFillAmount = 'order__minFillAmount', + order__podAmountFilled = 'order__podAmountFilled', + order__pricePerPod = 'order__pricePerPod', + order__pricingFunction = 'order__pricingFunction', + order__pricingType = 'order__pricingType', + order__status = 'order__status', + order__updatedAt = 'order__updatedAt', + placeInLine = 'placeInLine', + podMarketplace = 'podMarketplace', + podMarketplace__availableListedPods = 'podMarketplace__availableListedPods', + podMarketplace__availableOrderBeans = 'podMarketplace__availableOrderBeans', + podMarketplace__beanVolume = 'podMarketplace__beanVolume', + podMarketplace__cancelledListedPods = 'podMarketplace__cancelledListedPods', + podMarketplace__cancelledOrderBeans = 'podMarketplace__cancelledOrderBeans', + podMarketplace__expiredListedPods = 'podMarketplace__expiredListedPods', + podMarketplace__filledListedPods = 'podMarketplace__filledListedPods', + podMarketplace__filledOrderBeans = 'podMarketplace__filledOrderBeans', + podMarketplace__filledOrderedPods = 'podMarketplace__filledOrderedPods', + podMarketplace__id = 'podMarketplace__id', + podMarketplace__lastDailySnapshotDay = 'podMarketplace__lastDailySnapshotDay', + podMarketplace__lastHourlySnapshotSeason = 'podMarketplace__lastHourlySnapshotSeason', + podMarketplace__listedPods = 'podMarketplace__listedPods', + podMarketplace__orderBeans = 'podMarketplace__orderBeans', + podMarketplace__podVolume = 'podMarketplace__podVolume', + podMarketplace__season = 'podMarketplace__season', + start = 'start', + toFarmer = 'toFarmer', + toFarmer__creationBlock = 'toFarmer__creationBlock', + toFarmer__id = 'toFarmer__id', + toFarmer__refereeCount = 'toFarmer__refereeCount', + toFarmer__totalReferralRewardPodsReceived = 'toFarmer__totalReferralRewardPodsReceived' } export type PodListing = { @@ -4038,6 +4188,8 @@ export type PodListing = { creationHash: Scalars['Bytes']['output']; /** The Farmer that created the PodListing. */ farmer: Farmer; + /** Numeric identifier of the field for this listing */ + fieldId: Scalars['BigInt']['output']; /** Any Fills associated with this PodListing. */ fill?: Maybe; /** @@ -4057,7 +4209,7 @@ export type PodListing = { /** Historical ID for joins */ historyID: Scalars['String']['output']; /** - * The PodListing ID is a unique subgraph ID: `{account}-{index}" + * The PodListing ID is a unique subgraph ID; if fieldId is 0: `{account}-{index}`, if fieldId isn't 0: `{account}-{index}:{fieldId}` * * The on-chain identifier for a PodListing is the `index`. * @@ -4177,7 +4329,7 @@ export type PodListingCancelled = MarketplaceEvent & { placeInLine: Scalars['BigInt']['output']; }; -export type PodListingCancelled_Filter = { +export type PodListingCancelledFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; account?: InputMaybe; @@ -4190,7 +4342,7 @@ export type PodListingCancelled_Filter = { account_not?: InputMaybe; account_not_contains?: InputMaybe; account_not_in?: InputMaybe>; - and?: InputMaybe>>; + and?: InputMaybe>>; blockNumber?: InputMaybe; blockNumber_gt?: InputMaybe; blockNumber_gte?: InputMaybe; @@ -4261,7 +4413,7 @@ export type PodListingCancelled_Filter = { logIndex_lte?: InputMaybe; logIndex_not?: InputMaybe; logIndex_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; placeInLine?: InputMaybe; placeInLine_gt?: InputMaybe; placeInLine_gte?: InputMaybe; @@ -4272,16 +4424,16 @@ export type PodListingCancelled_Filter = { placeInLine_not_in?: InputMaybe>; }; -export enum PodListingCancelled_OrderBy { - Account = 'account', - BlockNumber = 'blockNumber', - CreatedAt = 'createdAt', - Hash = 'hash', - HistoryId = 'historyID', - Id = 'id', - Index = 'index', - LogIndex = 'logIndex', - PlaceInLine = 'placeInLine' +export enum PodListingCancelledOrderBy { + account = 'account', + blockNumber = 'blockNumber', + createdAt = 'createdAt', + hash = 'hash', + historyID = 'historyID', + id = 'id', + index = 'index', + logIndex = 'logIndex', + placeInLine = 'placeInLine' } export type PodListingCreated = MarketplaceEvent & { @@ -4322,7 +4474,7 @@ export type PodListingCreated = MarketplaceEvent & { start: Scalars['BigInt']['output']; }; -export type PodListingCreated_Filter = { +export type PodListingCreatedFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; account?: InputMaybe; @@ -4343,7 +4495,7 @@ export type PodListingCreated_Filter = { amount_lte?: InputMaybe; amount_not?: InputMaybe; amount_not_in?: InputMaybe>; - and?: InputMaybe>>; + and?: InputMaybe>>; blockNumber?: InputMaybe; blockNumber_gt?: InputMaybe; blockNumber_gte?: InputMaybe; @@ -4438,7 +4590,7 @@ export type PodListingCreated_Filter = { mode_lte?: InputMaybe; mode_not?: InputMaybe; mode_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; placeInLine?: InputMaybe; placeInLine_gt?: InputMaybe; placeInLine_gte?: InputMaybe; @@ -4483,24 +4635,24 @@ export type PodListingCreated_Filter = { start_not_in?: InputMaybe>; }; -export enum PodListingCreated_OrderBy { - Account = 'account', - Amount = 'amount', - BlockNumber = 'blockNumber', - CreatedAt = 'createdAt', - Hash = 'hash', - HistoryId = 'historyID', - Id = 'id', - Index = 'index', - LogIndex = 'logIndex', - MaxHarvestableIndex = 'maxHarvestableIndex', - MinFillAmount = 'minFillAmount', - Mode = 'mode', - PlaceInLine = 'placeInLine', - PricePerPod = 'pricePerPod', - PricingFunction = 'pricingFunction', - PricingType = 'pricingType', - Start = 'start' +export enum PodListingCreatedOrderBy { + account = 'account', + amount = 'amount', + blockNumber = 'blockNumber', + createdAt = 'createdAt', + hash = 'hash', + historyID = 'historyID', + id = 'id', + index = 'index', + logIndex = 'logIndex', + maxHarvestableIndex = 'maxHarvestableIndex', + minFillAmount = 'minFillAmount', + mode = 'mode', + placeInLine = 'placeInLine', + pricePerPod = 'pricePerPod', + pricingFunction = 'pricingFunction', + pricingType = 'pricingType', + start = 'start' } export type PodListingFilled = MarketplaceEvent & { @@ -4533,7 +4685,7 @@ export type PodListingFilled = MarketplaceEvent & { toFarmer: Scalars['Bytes']['output']; }; -export type PodListingFilled_Filter = { +export type PodListingFilledFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; amount?: InputMaybe; @@ -4544,7 +4696,7 @@ export type PodListingFilled_Filter = { amount_lte?: InputMaybe; amount_not?: InputMaybe; amount_not_in?: InputMaybe>; - and?: InputMaybe>>; + and?: InputMaybe>>; blockNumber?: InputMaybe; blockNumber_gt?: InputMaybe; blockNumber_gte?: InputMaybe; @@ -4633,7 +4785,7 @@ export type PodListingFilled_Filter = { logIndex_lte?: InputMaybe; logIndex_not?: InputMaybe; logIndex_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; placeInLine?: InputMaybe; placeInLine_gt?: InputMaybe; placeInLine_gte?: InputMaybe; @@ -4662,23 +4814,23 @@ export type PodListingFilled_Filter = { toFarmer_not_in?: InputMaybe>; }; -export enum PodListingFilled_OrderBy { - Amount = 'amount', - BlockNumber = 'blockNumber', - CostInBeans = 'costInBeans', - CreatedAt = 'createdAt', - FromFarmer = 'fromFarmer', - Hash = 'hash', - HistoryId = 'historyID', - Id = 'id', - Index = 'index', - LogIndex = 'logIndex', - PlaceInLine = 'placeInLine', - Start = 'start', - ToFarmer = 'toFarmer' +export enum PodListingFilledOrderBy { + amount = 'amount', + blockNumber = 'blockNumber', + costInBeans = 'costInBeans', + createdAt = 'createdAt', + fromFarmer = 'fromFarmer', + hash = 'hash', + historyID = 'historyID', + id = 'id', + index = 'index', + logIndex = 'logIndex', + placeInLine = 'placeInLine', + start = 'start', + toFarmer = 'toFarmer' } -export type PodListing_Filter = { +export type PodListingFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; amount?: InputMaybe; @@ -4689,7 +4841,7 @@ export type PodListing_Filter = { amount_lte?: InputMaybe; amount_not?: InputMaybe; amount_not_in?: InputMaybe>; - and?: InputMaybe>>; + and?: InputMaybe>>; createdAt?: InputMaybe; createdAt_gt?: InputMaybe; createdAt_gte?: InputMaybe; @@ -4709,7 +4861,7 @@ export type PodListing_Filter = { creationHash_not_contains?: InputMaybe; creationHash_not_in?: InputMaybe>; farmer?: InputMaybe; - farmer_?: InputMaybe; + farmer_?: InputMaybe; farmer_contains?: InputMaybe; farmer_contains_nocase?: InputMaybe; farmer_ends_with?: InputMaybe; @@ -4729,8 +4881,16 @@ export type PodListing_Filter = { farmer_not_starts_with_nocase?: InputMaybe; farmer_starts_with?: InputMaybe; farmer_starts_with_nocase?: InputMaybe; + fieldId?: InputMaybe; + fieldId_gt?: InputMaybe; + fieldId_gte?: InputMaybe; + fieldId_in?: InputMaybe>; + fieldId_lt?: InputMaybe; + fieldId_lte?: InputMaybe; + fieldId_not?: InputMaybe; + fieldId_not_in?: InputMaybe>; fill?: InputMaybe; - fill_?: InputMaybe; + fill_?: InputMaybe; fill_contains?: InputMaybe; fill_contains_nocase?: InputMaybe; fill_ends_with?: InputMaybe; @@ -4826,7 +4986,7 @@ export type PodListing_Filter = { mode_lte?: InputMaybe; mode_not?: InputMaybe; mode_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; originalAmount?: InputMaybe; originalAmount_gt?: InputMaybe; originalAmount_gte?: InputMaybe; @@ -4852,7 +5012,7 @@ export type PodListing_Filter = { originalPlaceInLine_not?: InputMaybe; originalPlaceInLine_not_in?: InputMaybe>; plot?: InputMaybe; - plot_?: InputMaybe; + plot_?: InputMaybe; plot_contains?: InputMaybe; plot_contains_nocase?: InputMaybe; plot_ends_with?: InputMaybe; @@ -4873,7 +5033,7 @@ export type PodListing_Filter = { plot_starts_with?: InputMaybe; plot_starts_with_nocase?: InputMaybe; podMarketplace?: InputMaybe; - podMarketplace_?: InputMaybe; + podMarketplace_?: InputMaybe; podMarketplace_contains?: InputMaybe; podMarketplace_contains_nocase?: InputMaybe; podMarketplace_ends_with?: InputMaybe; @@ -4949,80 +5109,85 @@ export type PodListing_Filter = { updatedAt_not_in?: InputMaybe>; }; -export enum PodListing_OrderBy { - Amount = 'amount', - CreatedAt = 'createdAt', - CreationHash = 'creationHash', - Farmer = 'farmer', - FarmerCreationBlock = 'farmer__creationBlock', - FarmerId = 'farmer__id', - Fill = 'fill', - FillAmount = 'fill__amount', - FillCostInBeans = 'fill__costInBeans', - FillCreatedAt = 'fill__createdAt', - FillId = 'fill__id', - FillIndex = 'fill__index', - FillPlaceInLine = 'fill__placeInLine', - FillStart = 'fill__start', - Filled = 'filled', - FilledAmount = 'filledAmount', - HistoryId = 'historyID', - Id = 'id', - Index = 'index', - MaxHarvestableIndex = 'maxHarvestableIndex', - MinFillAmount = 'minFillAmount', - Mode = 'mode', - OriginalAmount = 'originalAmount', - OriginalIndex = 'originalIndex', - OriginalPlaceInLine = 'originalPlaceInLine', - Plot = 'plot', - PlotBeansPerPod = 'plot__beansPerPod', - PlotCreatedAt = 'plot__createdAt', - PlotCreationHash = 'plot__creationHash', - PlotFullyHarvested = 'plot__fullyHarvested', - PlotHarvestAt = 'plot__harvestAt', - PlotHarvestHash = 'plot__harvestHash', - PlotHarvestablePods = 'plot__harvestablePods', - PlotHarvestedPods = 'plot__harvestedPods', - PlotId = 'plot__id', - PlotIndex = 'plot__index', - PlotInitialHarvestableIndex = 'plot__initialHarvestableIndex', - PlotPods = 'plot__pods', - PlotPreTransferSource = 'plot__preTransferSource', - PlotSeason = 'plot__season', - PlotSource = 'plot__source', - PlotSourceHash = 'plot__sourceHash', - PlotSowHash = 'plot__sowHash', - PlotSowSeason = 'plot__sowSeason', - PlotSowTimestamp = 'plot__sowTimestamp', - PlotSownBeansPerPod = 'plot__sownBeansPerPod', - PlotSownInitialHarvestableIndex = 'plot__sownInitialHarvestableIndex', - PlotUpdatedAt = 'plot__updatedAt', - PlotUpdatedAtBlock = 'plot__updatedAtBlock', - PodMarketplace = 'podMarketplace', - PodMarketplaceAvailableListedPods = 'podMarketplace__availableListedPods', - PodMarketplaceAvailableOrderBeans = 'podMarketplace__availableOrderBeans', - PodMarketplaceBeanVolume = 'podMarketplace__beanVolume', - PodMarketplaceCancelledListedPods = 'podMarketplace__cancelledListedPods', - PodMarketplaceCancelledOrderBeans = 'podMarketplace__cancelledOrderBeans', - PodMarketplaceExpiredListedPods = 'podMarketplace__expiredListedPods', - PodMarketplaceFilledListedPods = 'podMarketplace__filledListedPods', - PodMarketplaceFilledOrderBeans = 'podMarketplace__filledOrderBeans', - PodMarketplaceFilledOrderedPods = 'podMarketplace__filledOrderedPods', - PodMarketplaceId = 'podMarketplace__id', - PodMarketplaceLastDailySnapshotDay = 'podMarketplace__lastDailySnapshotDay', - PodMarketplaceLastHourlySnapshotSeason = 'podMarketplace__lastHourlySnapshotSeason', - PodMarketplaceListedPods = 'podMarketplace__listedPods', - PodMarketplaceOrderBeans = 'podMarketplace__orderBeans', - PodMarketplacePodVolume = 'podMarketplace__podVolume', - PodMarketplaceSeason = 'podMarketplace__season', - PricePerPod = 'pricePerPod', - PricingFunction = 'pricingFunction', - PricingType = 'pricingType', - RemainingAmount = 'remainingAmount', - Start = 'start', - Status = 'status', - UpdatedAt = 'updatedAt' +export enum PodListingOrderBy { + amount = 'amount', + createdAt = 'createdAt', + creationHash = 'creationHash', + farmer = 'farmer', + farmer__creationBlock = 'farmer__creationBlock', + farmer__id = 'farmer__id', + farmer__refereeCount = 'farmer__refereeCount', + farmer__totalReferralRewardPodsReceived = 'farmer__totalReferralRewardPodsReceived', + fieldId = 'fieldId', + fill = 'fill', + fill__amount = 'fill__amount', + fill__costInBeans = 'fill__costInBeans', + fill__createdAt = 'fill__createdAt', + fill__id = 'fill__id', + fill__index = 'fill__index', + fill__placeInLine = 'fill__placeInLine', + fill__start = 'fill__start', + filled = 'filled', + filledAmount = 'filledAmount', + historyID = 'historyID', + id = 'id', + index = 'index', + maxHarvestableIndex = 'maxHarvestableIndex', + minFillAmount = 'minFillAmount', + mode = 'mode', + originalAmount = 'originalAmount', + originalIndex = 'originalIndex', + originalPlaceInLine = 'originalPlaceInLine', + plot = 'plot', + plot__beansPerPod = 'plot__beansPerPod', + plot__createdAt = 'plot__createdAt', + plot__creationHash = 'plot__creationHash', + plot__fieldId = 'plot__fieldId', + plot__fullyHarvested = 'plot__fullyHarvested', + plot__harvestAt = 'plot__harvestAt', + plot__harvestHash = 'plot__harvestHash', + plot__harvestablePods = 'plot__harvestablePods', + plot__harvestedPods = 'plot__harvestedPods', + plot__id = 'plot__id', + plot__index = 'plot__index', + plot__initialHarvestableIndex = 'plot__initialHarvestableIndex', + plot__isMorning = 'plot__isMorning', + plot__pods = 'plot__pods', + plot__preTransferSource = 'plot__preTransferSource', + plot__season = 'plot__season', + plot__source = 'plot__source', + plot__sourceHash = 'plot__sourceHash', + plot__sowHash = 'plot__sowHash', + plot__sowSeason = 'plot__sowSeason', + plot__sowTimestamp = 'plot__sowTimestamp', + plot__sownBeansPerPod = 'plot__sownBeansPerPod', + plot__sownInitialHarvestableIndex = 'plot__sownInitialHarvestableIndex', + plot__updatedAt = 'plot__updatedAt', + plot__updatedAtBlock = 'plot__updatedAtBlock', + podMarketplace = 'podMarketplace', + podMarketplace__availableListedPods = 'podMarketplace__availableListedPods', + podMarketplace__availableOrderBeans = 'podMarketplace__availableOrderBeans', + podMarketplace__beanVolume = 'podMarketplace__beanVolume', + podMarketplace__cancelledListedPods = 'podMarketplace__cancelledListedPods', + podMarketplace__cancelledOrderBeans = 'podMarketplace__cancelledOrderBeans', + podMarketplace__expiredListedPods = 'podMarketplace__expiredListedPods', + podMarketplace__filledListedPods = 'podMarketplace__filledListedPods', + podMarketplace__filledOrderBeans = 'podMarketplace__filledOrderBeans', + podMarketplace__filledOrderedPods = 'podMarketplace__filledOrderedPods', + podMarketplace__id = 'podMarketplace__id', + podMarketplace__lastDailySnapshotDay = 'podMarketplace__lastDailySnapshotDay', + podMarketplace__lastHourlySnapshotSeason = 'podMarketplace__lastHourlySnapshotSeason', + podMarketplace__listedPods = 'podMarketplace__listedPods', + podMarketplace__orderBeans = 'podMarketplace__orderBeans', + podMarketplace__podVolume = 'podMarketplace__podVolume', + podMarketplace__season = 'podMarketplace__season', + pricePerPod = 'pricePerPod', + pricingFunction = 'pricingFunction', + pricingType = 'pricingType', + remainingAmount = 'remainingAmount', + start = 'start', + status = 'status', + updatedAt = 'updatedAt' } export type PodMarketplace = { @@ -5078,46 +5243,46 @@ export type PodMarketplace = { export type PodMarketplaceAllListingsArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; export type PodMarketplaceAllOrdersArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; export type PodMarketplaceDailySnapshotsArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; export type PodMarketplaceFillsArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; export type PodMarketplaceHourlySnapshotsArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; export type PodMarketplaceDailySnapshot = { @@ -5170,10 +5335,10 @@ export type PodMarketplaceDailySnapshot = { updatedAt: Scalars['BigInt']['output']; }; -export type PodMarketplaceDailySnapshot_Filter = { +export type PodMarketplaceDailySnapshotFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe>>; availableListedPods?: InputMaybe; availableListedPods_gt?: InputMaybe; availableListedPods_gte?: InputMaybe; @@ -5366,7 +5531,7 @@ export type PodMarketplaceDailySnapshot_Filter = { listedPods_lte?: InputMaybe; listedPods_not?: InputMaybe; listedPods_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; orderBeans?: InputMaybe; orderBeans_gt?: InputMaybe; orderBeans_gte?: InputMaybe; @@ -5376,7 +5541,7 @@ export type PodMarketplaceDailySnapshot_Filter = { orderBeans_not?: InputMaybe; orderBeans_not_in?: InputMaybe>; podMarketplace?: InputMaybe; - podMarketplace_?: InputMaybe; + podMarketplace_?: InputMaybe; podMarketplace_contains?: InputMaybe; podMarketplace_contains_nocase?: InputMaybe; podMarketplace_ends_with?: InputMaybe; @@ -5422,52 +5587,52 @@ export type PodMarketplaceDailySnapshot_Filter = { updatedAt_not_in?: InputMaybe>; }; -export enum PodMarketplaceDailySnapshot_OrderBy { - AvailableListedPods = 'availableListedPods', - AvailableOrderBeans = 'availableOrderBeans', - BeanVolume = 'beanVolume', - CancelledListedPods = 'cancelledListedPods', - CancelledOrderBeans = 'cancelledOrderBeans', - CreatedAt = 'createdAt', - DeltaAvailableListedPods = 'deltaAvailableListedPods', - DeltaAvailableOrderBeans = 'deltaAvailableOrderBeans', - DeltaBeanVolume = 'deltaBeanVolume', - DeltaCancelledListedPods = 'deltaCancelledListedPods', - DeltaCancelledOrderBeans = 'deltaCancelledOrderBeans', - DeltaExpiredListedPods = 'deltaExpiredListedPods', - DeltaFilledListedPods = 'deltaFilledListedPods', - DeltaFilledOrderBeans = 'deltaFilledOrderBeans', - DeltaFilledOrderedPods = 'deltaFilledOrderedPods', - DeltaListedPods = 'deltaListedPods', - DeltaOrderBeans = 'deltaOrderBeans', - DeltaPodVolume = 'deltaPodVolume', - ExpiredListedPods = 'expiredListedPods', - FilledListedPods = 'filledListedPods', - FilledOrderBeans = 'filledOrderBeans', - FilledOrderedPods = 'filledOrderedPods', - Id = 'id', - ListedPods = 'listedPods', - OrderBeans = 'orderBeans', - PodMarketplace = 'podMarketplace', - PodMarketplaceAvailableListedPods = 'podMarketplace__availableListedPods', - PodMarketplaceAvailableOrderBeans = 'podMarketplace__availableOrderBeans', - PodMarketplaceBeanVolume = 'podMarketplace__beanVolume', - PodMarketplaceCancelledListedPods = 'podMarketplace__cancelledListedPods', - PodMarketplaceCancelledOrderBeans = 'podMarketplace__cancelledOrderBeans', - PodMarketplaceExpiredListedPods = 'podMarketplace__expiredListedPods', - PodMarketplaceFilledListedPods = 'podMarketplace__filledListedPods', - PodMarketplaceFilledOrderBeans = 'podMarketplace__filledOrderBeans', - PodMarketplaceFilledOrderedPods = 'podMarketplace__filledOrderedPods', - PodMarketplaceId = 'podMarketplace__id', - PodMarketplaceLastDailySnapshotDay = 'podMarketplace__lastDailySnapshotDay', - PodMarketplaceLastHourlySnapshotSeason = 'podMarketplace__lastHourlySnapshotSeason', - PodMarketplaceListedPods = 'podMarketplace__listedPods', - PodMarketplaceOrderBeans = 'podMarketplace__orderBeans', - PodMarketplacePodVolume = 'podMarketplace__podVolume', - PodMarketplaceSeason = 'podMarketplace__season', - PodVolume = 'podVolume', - Season = 'season', - UpdatedAt = 'updatedAt' +export enum PodMarketplaceDailySnapshotOrderBy { + availableListedPods = 'availableListedPods', + availableOrderBeans = 'availableOrderBeans', + beanVolume = 'beanVolume', + cancelledListedPods = 'cancelledListedPods', + cancelledOrderBeans = 'cancelledOrderBeans', + createdAt = 'createdAt', + deltaAvailableListedPods = 'deltaAvailableListedPods', + deltaAvailableOrderBeans = 'deltaAvailableOrderBeans', + deltaBeanVolume = 'deltaBeanVolume', + deltaCancelledListedPods = 'deltaCancelledListedPods', + deltaCancelledOrderBeans = 'deltaCancelledOrderBeans', + deltaExpiredListedPods = 'deltaExpiredListedPods', + deltaFilledListedPods = 'deltaFilledListedPods', + deltaFilledOrderBeans = 'deltaFilledOrderBeans', + deltaFilledOrderedPods = 'deltaFilledOrderedPods', + deltaListedPods = 'deltaListedPods', + deltaOrderBeans = 'deltaOrderBeans', + deltaPodVolume = 'deltaPodVolume', + expiredListedPods = 'expiredListedPods', + filledListedPods = 'filledListedPods', + filledOrderBeans = 'filledOrderBeans', + filledOrderedPods = 'filledOrderedPods', + id = 'id', + listedPods = 'listedPods', + orderBeans = 'orderBeans', + podMarketplace = 'podMarketplace', + podMarketplace__availableListedPods = 'podMarketplace__availableListedPods', + podMarketplace__availableOrderBeans = 'podMarketplace__availableOrderBeans', + podMarketplace__beanVolume = 'podMarketplace__beanVolume', + podMarketplace__cancelledListedPods = 'podMarketplace__cancelledListedPods', + podMarketplace__cancelledOrderBeans = 'podMarketplace__cancelledOrderBeans', + podMarketplace__expiredListedPods = 'podMarketplace__expiredListedPods', + podMarketplace__filledListedPods = 'podMarketplace__filledListedPods', + podMarketplace__filledOrderBeans = 'podMarketplace__filledOrderBeans', + podMarketplace__filledOrderedPods = 'podMarketplace__filledOrderedPods', + podMarketplace__id = 'podMarketplace__id', + podMarketplace__lastDailySnapshotDay = 'podMarketplace__lastDailySnapshotDay', + podMarketplace__lastHourlySnapshotSeason = 'podMarketplace__lastHourlySnapshotSeason', + podMarketplace__listedPods = 'podMarketplace__listedPods', + podMarketplace__orderBeans = 'podMarketplace__orderBeans', + podMarketplace__podVolume = 'podMarketplace__podVolume', + podMarketplace__season = 'podMarketplace__season', + podVolume = 'podVolume', + season = 'season', + updatedAt = 'updatedAt' } export type PodMarketplaceHourlySnapshot = { @@ -5520,10 +5685,10 @@ export type PodMarketplaceHourlySnapshot = { updatedAt: Scalars['BigInt']['output']; }; -export type PodMarketplaceHourlySnapshot_Filter = { +export type PodMarketplaceHourlySnapshotFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe>>; availableListedPods?: InputMaybe; availableListedPods_gt?: InputMaybe; availableListedPods_gte?: InputMaybe; @@ -5716,7 +5881,7 @@ export type PodMarketplaceHourlySnapshot_Filter = { listedPods_lte?: InputMaybe; listedPods_not?: InputMaybe; listedPods_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; orderBeans?: InputMaybe; orderBeans_gt?: InputMaybe; orderBeans_gte?: InputMaybe; @@ -5726,7 +5891,7 @@ export type PodMarketplaceHourlySnapshot_Filter = { orderBeans_not?: InputMaybe; orderBeans_not_in?: InputMaybe>; podMarketplace?: InputMaybe; - podMarketplace_?: InputMaybe; + podMarketplace_?: InputMaybe; podMarketplace_contains?: InputMaybe; podMarketplace_contains_nocase?: InputMaybe; podMarketplace_ends_with?: InputMaybe; @@ -5772,55 +5937,55 @@ export type PodMarketplaceHourlySnapshot_Filter = { updatedAt_not_in?: InputMaybe>; }; -export enum PodMarketplaceHourlySnapshot_OrderBy { - AvailableListedPods = 'availableListedPods', - AvailableOrderBeans = 'availableOrderBeans', - BeanVolume = 'beanVolume', - CancelledListedPods = 'cancelledListedPods', - CancelledOrderBeans = 'cancelledOrderBeans', - CreatedAt = 'createdAt', - DeltaAvailableListedPods = 'deltaAvailableListedPods', - DeltaAvailableOrderBeans = 'deltaAvailableOrderBeans', - DeltaBeanVolume = 'deltaBeanVolume', - DeltaCancelledListedPods = 'deltaCancelledListedPods', - DeltaCancelledOrderBeans = 'deltaCancelledOrderBeans', - DeltaExpiredListedPods = 'deltaExpiredListedPods', - DeltaFilledListedPods = 'deltaFilledListedPods', - DeltaFilledOrderBeans = 'deltaFilledOrderBeans', - DeltaFilledOrderedPods = 'deltaFilledOrderedPods', - DeltaListedPods = 'deltaListedPods', - DeltaOrderBeans = 'deltaOrderBeans', - DeltaPodVolume = 'deltaPodVolume', - ExpiredListedPods = 'expiredListedPods', - FilledListedPods = 'filledListedPods', - FilledOrderBeans = 'filledOrderBeans', - FilledOrderedPods = 'filledOrderedPods', - Id = 'id', - ListedPods = 'listedPods', - OrderBeans = 'orderBeans', - PodMarketplace = 'podMarketplace', - PodMarketplaceAvailableListedPods = 'podMarketplace__availableListedPods', - PodMarketplaceAvailableOrderBeans = 'podMarketplace__availableOrderBeans', - PodMarketplaceBeanVolume = 'podMarketplace__beanVolume', - PodMarketplaceCancelledListedPods = 'podMarketplace__cancelledListedPods', - PodMarketplaceCancelledOrderBeans = 'podMarketplace__cancelledOrderBeans', - PodMarketplaceExpiredListedPods = 'podMarketplace__expiredListedPods', - PodMarketplaceFilledListedPods = 'podMarketplace__filledListedPods', - PodMarketplaceFilledOrderBeans = 'podMarketplace__filledOrderBeans', - PodMarketplaceFilledOrderedPods = 'podMarketplace__filledOrderedPods', - PodMarketplaceId = 'podMarketplace__id', - PodMarketplaceLastDailySnapshotDay = 'podMarketplace__lastDailySnapshotDay', - PodMarketplaceLastHourlySnapshotSeason = 'podMarketplace__lastHourlySnapshotSeason', - PodMarketplaceListedPods = 'podMarketplace__listedPods', - PodMarketplaceOrderBeans = 'podMarketplace__orderBeans', - PodMarketplacePodVolume = 'podMarketplace__podVolume', - PodMarketplaceSeason = 'podMarketplace__season', - PodVolume = 'podVolume', - Season = 'season', - UpdatedAt = 'updatedAt' +export enum PodMarketplaceHourlySnapshotOrderBy { + availableListedPods = 'availableListedPods', + availableOrderBeans = 'availableOrderBeans', + beanVolume = 'beanVolume', + cancelledListedPods = 'cancelledListedPods', + cancelledOrderBeans = 'cancelledOrderBeans', + createdAt = 'createdAt', + deltaAvailableListedPods = 'deltaAvailableListedPods', + deltaAvailableOrderBeans = 'deltaAvailableOrderBeans', + deltaBeanVolume = 'deltaBeanVolume', + deltaCancelledListedPods = 'deltaCancelledListedPods', + deltaCancelledOrderBeans = 'deltaCancelledOrderBeans', + deltaExpiredListedPods = 'deltaExpiredListedPods', + deltaFilledListedPods = 'deltaFilledListedPods', + deltaFilledOrderBeans = 'deltaFilledOrderBeans', + deltaFilledOrderedPods = 'deltaFilledOrderedPods', + deltaListedPods = 'deltaListedPods', + deltaOrderBeans = 'deltaOrderBeans', + deltaPodVolume = 'deltaPodVolume', + expiredListedPods = 'expiredListedPods', + filledListedPods = 'filledListedPods', + filledOrderBeans = 'filledOrderBeans', + filledOrderedPods = 'filledOrderedPods', + id = 'id', + listedPods = 'listedPods', + orderBeans = 'orderBeans', + podMarketplace = 'podMarketplace', + podMarketplace__availableListedPods = 'podMarketplace__availableListedPods', + podMarketplace__availableOrderBeans = 'podMarketplace__availableOrderBeans', + podMarketplace__beanVolume = 'podMarketplace__beanVolume', + podMarketplace__cancelledListedPods = 'podMarketplace__cancelledListedPods', + podMarketplace__cancelledOrderBeans = 'podMarketplace__cancelledOrderBeans', + podMarketplace__expiredListedPods = 'podMarketplace__expiredListedPods', + podMarketplace__filledListedPods = 'podMarketplace__filledListedPods', + podMarketplace__filledOrderBeans = 'podMarketplace__filledOrderBeans', + podMarketplace__filledOrderedPods = 'podMarketplace__filledOrderedPods', + podMarketplace__id = 'podMarketplace__id', + podMarketplace__lastDailySnapshotDay = 'podMarketplace__lastDailySnapshotDay', + podMarketplace__lastHourlySnapshotSeason = 'podMarketplace__lastHourlySnapshotSeason', + podMarketplace__listedPods = 'podMarketplace__listedPods', + podMarketplace__orderBeans = 'podMarketplace__orderBeans', + podMarketplace__podVolume = 'podMarketplace__podVolume', + podMarketplace__season = 'podMarketplace__season', + podVolume = 'podVolume', + season = 'season', + updatedAt = 'updatedAt' } -export type PodMarketplace_Filter = { +export type PodMarketplaceFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; activeListings?: InputMaybe>; @@ -5835,9 +6000,9 @@ export type PodMarketplace_Filter = { activeOrders_not?: InputMaybe>; activeOrders_not_contains?: InputMaybe>; activeOrders_not_contains_nocase?: InputMaybe>; - allListings_?: InputMaybe; - allOrders_?: InputMaybe; - and?: InputMaybe>>; + allListings_?: InputMaybe; + allOrders_?: InputMaybe; + and?: InputMaybe>>; availableListedPods?: InputMaybe; availableListedPods_gt?: InputMaybe; availableListedPods_gte?: InputMaybe; @@ -5878,7 +6043,7 @@ export type PodMarketplace_Filter = { cancelledOrderBeans_lte?: InputMaybe; cancelledOrderBeans_not?: InputMaybe; cancelledOrderBeans_not_in?: InputMaybe>; - dailySnapshots_?: InputMaybe; + dailySnapshots_?: InputMaybe; expiredListedPods?: InputMaybe; expiredListedPods_gt?: InputMaybe; expiredListedPods_gte?: InputMaybe; @@ -5911,8 +6076,8 @@ export type PodMarketplace_Filter = { filledOrderedPods_lte?: InputMaybe; filledOrderedPods_not?: InputMaybe; filledOrderedPods_not_in?: InputMaybe>; - fills_?: InputMaybe; - hourlySnapshots_?: InputMaybe; + fills_?: InputMaybe; + hourlySnapshots_?: InputMaybe; id?: InputMaybe; id_gt?: InputMaybe; id_gte?: InputMaybe; @@ -5945,7 +6110,7 @@ export type PodMarketplace_Filter = { listedPods_lte?: InputMaybe; listedPods_not?: InputMaybe; listedPods_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; orderBeans?: InputMaybe; orderBeans_gt?: InputMaybe; orderBeans_gte?: InputMaybe; @@ -5972,30 +6137,30 @@ export type PodMarketplace_Filter = { season_not_in?: InputMaybe>; }; -export enum PodMarketplace_OrderBy { - ActiveListings = 'activeListings', - ActiveOrders = 'activeOrders', - AllListings = 'allListings', - AllOrders = 'allOrders', - AvailableListedPods = 'availableListedPods', - AvailableOrderBeans = 'availableOrderBeans', - BeanVolume = 'beanVolume', - CancelledListedPods = 'cancelledListedPods', - CancelledOrderBeans = 'cancelledOrderBeans', - DailySnapshots = 'dailySnapshots', - ExpiredListedPods = 'expiredListedPods', - FilledListedPods = 'filledListedPods', - FilledOrderBeans = 'filledOrderBeans', - FilledOrderedPods = 'filledOrderedPods', - Fills = 'fills', - HourlySnapshots = 'hourlySnapshots', - Id = 'id', - LastDailySnapshotDay = 'lastDailySnapshotDay', - LastHourlySnapshotSeason = 'lastHourlySnapshotSeason', - ListedPods = 'listedPods', - OrderBeans = 'orderBeans', - PodVolume = 'podVolume', - Season = 'season' +export enum PodMarketplaceOrderBy { + activeListings = 'activeListings', + activeOrders = 'activeOrders', + allListings = 'allListings', + allOrders = 'allOrders', + availableListedPods = 'availableListedPods', + availableOrderBeans = 'availableOrderBeans', + beanVolume = 'beanVolume', + cancelledListedPods = 'cancelledListedPods', + cancelledOrderBeans = 'cancelledOrderBeans', + dailySnapshots = 'dailySnapshots', + expiredListedPods = 'expiredListedPods', + filledListedPods = 'filledListedPods', + filledOrderBeans = 'filledOrderBeans', + filledOrderedPods = 'filledOrderedPods', + fills = 'fills', + hourlySnapshots = 'hourlySnapshots', + id = 'id', + lastDailySnapshotDay = 'lastDailySnapshotDay', + lastHourlySnapshotSeason = 'lastHourlySnapshotSeason', + listedPods = 'listedPods', + orderBeans = 'orderBeans', + podVolume = 'podVolume', + season = 'season' } export type PodOrder = { @@ -6028,6 +6193,8 @@ export type PodOrder = { creationHash: Scalars['Bytes']['output']; /** The Farmer that created the Pod Order. */ farmer: Farmer; + /** Numeric identifier of the field for this order */ + fieldId: Scalars['BigInt']['output']; /** All Fills associated with this PodOrder. */ fills: Array; /** @@ -6101,10 +6268,10 @@ export type PodOrder = { export type PodOrderFillsArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; export type PodOrderCancelled = MarketplaceEvent & { @@ -6127,7 +6294,7 @@ export type PodOrderCancelled = MarketplaceEvent & { orderId: Scalars['String']['output']; }; -export type PodOrderCancelled_Filter = { +export type PodOrderCancelledFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; account?: InputMaybe; @@ -6140,7 +6307,7 @@ export type PodOrderCancelled_Filter = { account_not?: InputMaybe; account_not_contains?: InputMaybe; account_not_in?: InputMaybe>; - and?: InputMaybe>>; + and?: InputMaybe>>; blockNumber?: InputMaybe; blockNumber_gt?: InputMaybe; blockNumber_gte?: InputMaybe; @@ -6203,7 +6370,7 @@ export type PodOrderCancelled_Filter = { logIndex_lte?: InputMaybe; logIndex_not?: InputMaybe; logIndex_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; orderId?: InputMaybe; orderId_contains?: InputMaybe; orderId_contains_nocase?: InputMaybe; @@ -6226,15 +6393,15 @@ export type PodOrderCancelled_Filter = { orderId_starts_with_nocase?: InputMaybe; }; -export enum PodOrderCancelled_OrderBy { - Account = 'account', - BlockNumber = 'blockNumber', - CreatedAt = 'createdAt', - Hash = 'hash', - HistoryId = 'historyID', - Id = 'id', - LogIndex = 'logIndex', - OrderId = 'orderId' +export enum PodOrderCancelledOrderBy { + account = 'account', + blockNumber = 'blockNumber', + createdAt = 'createdAt', + hash = 'hash', + historyID = 'historyID', + id = 'id', + logIndex = 'logIndex', + orderId = 'orderId' } export type PodOrderCreated = MarketplaceEvent & { @@ -6272,7 +6439,7 @@ export type PodOrderCreated = MarketplaceEvent & { pricingType?: Maybe; }; -export type PodOrderCreated_Filter = { +export type PodOrderCreatedFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; account?: InputMaybe; @@ -6293,7 +6460,7 @@ export type PodOrderCreated_Filter = { amount_lte?: InputMaybe; amount_not?: InputMaybe; amount_not_in?: InputMaybe>; - and?: InputMaybe>>; + and?: InputMaybe>>; blockNumber?: InputMaybe; blockNumber_gt?: InputMaybe; blockNumber_gte?: InputMaybe; @@ -6364,7 +6531,7 @@ export type PodOrderCreated_Filter = { maxPlaceInLine_lte?: InputMaybe; maxPlaceInLine_not?: InputMaybe; maxPlaceInLine_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; orderId?: InputMaybe; orderId_contains?: InputMaybe; orderId_contains_nocase?: InputMaybe; @@ -6413,20 +6580,20 @@ export type PodOrderCreated_Filter = { pricingType_not_in?: InputMaybe>; }; -export enum PodOrderCreated_OrderBy { - Account = 'account', - Amount = 'amount', - BlockNumber = 'blockNumber', - CreatedAt = 'createdAt', - Hash = 'hash', - HistoryId = 'historyID', - Id = 'id', - LogIndex = 'logIndex', - MaxPlaceInLine = 'maxPlaceInLine', - OrderId = 'orderId', - PricePerPod = 'pricePerPod', - PricingFunction = 'pricingFunction', - PricingType = 'pricingType' +export enum PodOrderCreatedOrderBy { + account = 'account', + amount = 'amount', + blockNumber = 'blockNumber', + createdAt = 'createdAt', + hash = 'hash', + historyID = 'historyID', + id = 'id', + logIndex = 'logIndex', + maxPlaceInLine = 'maxPlaceInLine', + orderId = 'orderId', + pricePerPod = 'pricePerPod', + pricingFunction = 'pricingFunction', + pricingType = 'pricingType' } export type PodOrderFilled = MarketplaceEvent & { @@ -6459,7 +6626,7 @@ export type PodOrderFilled = MarketplaceEvent & { toFarmer: Scalars['Bytes']['output']; }; -export type PodOrderFilled_Filter = { +export type PodOrderFilledFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; amount?: InputMaybe; @@ -6470,7 +6637,7 @@ export type PodOrderFilled_Filter = { amount_lte?: InputMaybe; amount_not?: InputMaybe; amount_not_in?: InputMaybe>; - and?: InputMaybe>>; + and?: InputMaybe>>; blockNumber?: InputMaybe; blockNumber_gt?: InputMaybe; blockNumber_gte?: InputMaybe; @@ -6559,7 +6726,7 @@ export type PodOrderFilled_Filter = { logIndex_lte?: InputMaybe; logIndex_not?: InputMaybe; logIndex_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; placeInLine?: InputMaybe; placeInLine_gt?: InputMaybe; placeInLine_gte?: InputMaybe; @@ -6588,26 +6755,26 @@ export type PodOrderFilled_Filter = { toFarmer_not_in?: InputMaybe>; }; -export enum PodOrderFilled_OrderBy { - Amount = 'amount', - BlockNumber = 'blockNumber', - CostInBeans = 'costInBeans', - CreatedAt = 'createdAt', - FromFarmer = 'fromFarmer', - Hash = 'hash', - HistoryId = 'historyID', - Id = 'id', - Index = 'index', - LogIndex = 'logIndex', - PlaceInLine = 'placeInLine', - Start = 'start', - ToFarmer = 'toFarmer' +export enum PodOrderFilledOrderBy { + amount = 'amount', + blockNumber = 'blockNumber', + costInBeans = 'costInBeans', + createdAt = 'createdAt', + fromFarmer = 'fromFarmer', + hash = 'hash', + historyID = 'historyID', + id = 'id', + index = 'index', + logIndex = 'logIndex', + placeInLine = 'placeInLine', + start = 'start', + toFarmer = 'toFarmer' } -export type PodOrder_Filter = { +export type PodOrderFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe>>; beanAmount?: InputMaybe; beanAmountFilled?: InputMaybe; beanAmountFilled_gt?: InputMaybe; @@ -6643,7 +6810,7 @@ export type PodOrder_Filter = { creationHash_not_contains?: InputMaybe; creationHash_not_in?: InputMaybe>; farmer?: InputMaybe; - farmer_?: InputMaybe; + farmer_?: InputMaybe; farmer_contains?: InputMaybe; farmer_contains_nocase?: InputMaybe; farmer_ends_with?: InputMaybe; @@ -6663,8 +6830,16 @@ export type PodOrder_Filter = { farmer_not_starts_with_nocase?: InputMaybe; farmer_starts_with?: InputMaybe; farmer_starts_with_nocase?: InputMaybe; + fieldId?: InputMaybe; + fieldId_gt?: InputMaybe; + fieldId_gte?: InputMaybe; + fieldId_in?: InputMaybe>; + fieldId_lt?: InputMaybe; + fieldId_lte?: InputMaybe; + fieldId_not?: InputMaybe; + fieldId_not_in?: InputMaybe>; fills?: InputMaybe>; - fills_?: InputMaybe; + fills_?: InputMaybe; fills_contains?: InputMaybe>; fills_contains_nocase?: InputMaybe>; fills_not?: InputMaybe>; @@ -6714,7 +6889,7 @@ export type PodOrder_Filter = { minFillAmount_lte?: InputMaybe; minFillAmount_not?: InputMaybe; minFillAmount_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; podAmountFilled?: InputMaybe; podAmountFilled_gt?: InputMaybe; podAmountFilled_gte?: InputMaybe; @@ -6724,7 +6899,7 @@ export type PodOrder_Filter = { podAmountFilled_not?: InputMaybe; podAmountFilled_not_in?: InputMaybe>; podMarketplace?: InputMaybe; - podMarketplace_?: InputMaybe; + podMarketplace_?: InputMaybe; podMarketplace_contains?: InputMaybe; podMarketplace_contains_nocase?: InputMaybe; podMarketplace_ends_with?: InputMaybe; @@ -6784,42 +6959,45 @@ export type PodOrder_Filter = { updatedAt_not_in?: InputMaybe>; }; -export enum PodOrder_OrderBy { - BeanAmount = 'beanAmount', - BeanAmountFilled = 'beanAmountFilled', - CreatedAt = 'createdAt', - CreationHash = 'creationHash', - Farmer = 'farmer', - FarmerCreationBlock = 'farmer__creationBlock', - FarmerId = 'farmer__id', - Fills = 'fills', - HistoryId = 'historyID', - Id = 'id', - MaxPlaceInLine = 'maxPlaceInLine', - MinFillAmount = 'minFillAmount', - PodAmountFilled = 'podAmountFilled', - PodMarketplace = 'podMarketplace', - PodMarketplaceAvailableListedPods = 'podMarketplace__availableListedPods', - PodMarketplaceAvailableOrderBeans = 'podMarketplace__availableOrderBeans', - PodMarketplaceBeanVolume = 'podMarketplace__beanVolume', - PodMarketplaceCancelledListedPods = 'podMarketplace__cancelledListedPods', - PodMarketplaceCancelledOrderBeans = 'podMarketplace__cancelledOrderBeans', - PodMarketplaceExpiredListedPods = 'podMarketplace__expiredListedPods', - PodMarketplaceFilledListedPods = 'podMarketplace__filledListedPods', - PodMarketplaceFilledOrderBeans = 'podMarketplace__filledOrderBeans', - PodMarketplaceFilledOrderedPods = 'podMarketplace__filledOrderedPods', - PodMarketplaceId = 'podMarketplace__id', - PodMarketplaceLastDailySnapshotDay = 'podMarketplace__lastDailySnapshotDay', - PodMarketplaceLastHourlySnapshotSeason = 'podMarketplace__lastHourlySnapshotSeason', - PodMarketplaceListedPods = 'podMarketplace__listedPods', - PodMarketplaceOrderBeans = 'podMarketplace__orderBeans', - PodMarketplacePodVolume = 'podMarketplace__podVolume', - PodMarketplaceSeason = 'podMarketplace__season', - PricePerPod = 'pricePerPod', - PricingFunction = 'pricingFunction', - PricingType = 'pricingType', - Status = 'status', - UpdatedAt = 'updatedAt' +export enum PodOrderOrderBy { + beanAmount = 'beanAmount', + beanAmountFilled = 'beanAmountFilled', + createdAt = 'createdAt', + creationHash = 'creationHash', + farmer = 'farmer', + farmer__creationBlock = 'farmer__creationBlock', + farmer__id = 'farmer__id', + farmer__refereeCount = 'farmer__refereeCount', + farmer__totalReferralRewardPodsReceived = 'farmer__totalReferralRewardPodsReceived', + fieldId = 'fieldId', + fills = 'fills', + historyID = 'historyID', + id = 'id', + maxPlaceInLine = 'maxPlaceInLine', + minFillAmount = 'minFillAmount', + podAmountFilled = 'podAmountFilled', + podMarketplace = 'podMarketplace', + podMarketplace__availableListedPods = 'podMarketplace__availableListedPods', + podMarketplace__availableOrderBeans = 'podMarketplace__availableOrderBeans', + podMarketplace__beanVolume = 'podMarketplace__beanVolume', + podMarketplace__cancelledListedPods = 'podMarketplace__cancelledListedPods', + podMarketplace__cancelledOrderBeans = 'podMarketplace__cancelledOrderBeans', + podMarketplace__expiredListedPods = 'podMarketplace__expiredListedPods', + podMarketplace__filledListedPods = 'podMarketplace__filledListedPods', + podMarketplace__filledOrderBeans = 'podMarketplace__filledOrderBeans', + podMarketplace__filledOrderedPods = 'podMarketplace__filledOrderedPods', + podMarketplace__id = 'podMarketplace__id', + podMarketplace__lastDailySnapshotDay = 'podMarketplace__lastDailySnapshotDay', + podMarketplace__lastHourlySnapshotSeason = 'podMarketplace__lastHourlySnapshotSeason', + podMarketplace__listedPods = 'podMarketplace__listedPods', + podMarketplace__orderBeans = 'podMarketplace__orderBeans', + podMarketplace__podVolume = 'podMarketplace__podVolume', + podMarketplace__season = 'podMarketplace__season', + pricePerPod = 'pricePerPod', + pricingFunction = 'pricingFunction', + pricingType = 'pricingType', + status = 'status', + updatedAt = 'updatedAt' } export type PrevFarmerGerminatingEvent = { @@ -6834,10 +7012,10 @@ export type PrevFarmerGerminatingEvent = { logIndex: Scalars['BigInt']['output']; }; -export type PrevFarmerGerminatingEvent_Filter = { +export type PrevFarmerGerminatingEventFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe>>; deltaGerminatingStalk?: InputMaybe; deltaGerminatingStalk_gt?: InputMaybe; deltaGerminatingStalk_gte?: InputMaybe; @@ -6872,20 +7050,20 @@ export type PrevFarmerGerminatingEvent_Filter = { logIndex_lte?: InputMaybe; logIndex_not?: InputMaybe; logIndex_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; }; -export enum PrevFarmerGerminatingEvent_OrderBy { - DeltaGerminatingStalk = 'deltaGerminatingStalk', - EventBlock = 'eventBlock', - Id = 'id', - LogIndex = 'logIndex' +export enum PrevFarmerGerminatingEventOrderBy { + deltaGerminatingStalk = 'deltaGerminatingStalk', + eventBlock = 'eventBlock', + id = 'id', + logIndex = 'logIndex' } export type Query = { __typename?: 'Query'; /** Access to subgraph metadata */ - _meta?: Maybe<_Meta_>; + _meta?: Maybe; beanstalk?: Maybe; beanstalks: Array; chop?: Maybe; @@ -7001,1016 +7179,1016 @@ export type Query = { }; -export type Query_MetaArgs = { - block?: InputMaybe; +export type QueryMetaArgs = { + block?: InputMaybe; }; export type QueryBeanstalkArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryBeanstalksArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryChopArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryChopsArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryFarmerArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryFarmersArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryFertilizerArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryFertilizerBalanceArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryFertilizerBalancesArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryFertilizerTokenArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryFertilizerTokensArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryFertilizerYieldArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryFertilizerYieldsArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryFertilizersArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryFieldArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryFieldDailySnapshotArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryFieldDailySnapshotsArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryFieldHourlySnapshotArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryFieldHourlySnapshotsArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryFieldsArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryGaugesInfoArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryGaugesInfoDailySnapshotArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryGaugesInfoDailySnapshotsArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryGaugesInfoHourlySnapshotArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryGaugesInfoHourlySnapshotsArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryGaugesInfosArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryGerminatingArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryGerminatingsArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryMarketPerformanceSeasonalArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryMarketPerformanceSeasonalsArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryMarketplaceEventArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryMarketplaceEventsArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryPlotArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryPlotsArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryPodFillArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryPodFillsArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryPodListingArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryPodListingCancelledArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryPodListingCancelledsArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryPodListingCreatedArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryPodListingCreatedsArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryPodListingFilledArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryPodListingFilledsArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryPodListingsArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryPodMarketplaceArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryPodMarketplaceDailySnapshotArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryPodMarketplaceDailySnapshotsArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryPodMarketplaceHourlySnapshotArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryPodMarketplaceHourlySnapshotsArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryPodMarketplacesArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryPodOrderArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryPodOrderCancelledArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryPodOrderCancelledsArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryPodOrderCreatedArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryPodOrderCreatedsArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryPodOrderFilledArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryPodOrderFilledsArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryPodOrdersArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryPrevFarmerGerminatingEventArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryPrevFarmerGerminatingEventsArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QuerySeasonArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QuerySeasonsArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QuerySiloArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QuerySiloAssetArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QuerySiloAssetDailySnapshotArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QuerySiloAssetDailySnapshotsArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QuerySiloAssetHourlySnapshotArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QuerySiloAssetHourlySnapshotsArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QuerySiloAssetsArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QuerySiloDailySnapshotArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QuerySiloDailySnapshotsArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QuerySiloDepositArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QuerySiloDepositsArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QuerySiloHourlySnapshotArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QuerySiloHourlySnapshotsArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QuerySiloWithdrawArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QuerySiloWithdrawsArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QuerySiloYieldArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QuerySiloYieldsArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QuerySilosArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryTokenYieldArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryTokenYieldsArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryTractorArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryTractorDailySnapshotArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryTractorDailySnapshotsArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryTractorHourlySnapshotArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryTractorHourlySnapshotsArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryTractorRewardArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryTractorRewardsArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryTractorsArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryUnripeTokenArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryUnripeTokenDailySnapshotArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryUnripeTokenDailySnapshotsArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryUnripeTokenHourlySnapshotArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryUnripeTokenHourlySnapshotsArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryUnripeTokensArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryVersionArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryVersionsArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryWellPlentiesArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryWellPlentyArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryWhitelistTokenDailySnapshotArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryWhitelistTokenDailySnapshotsArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryWhitelistTokenHourlySnapshotArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryWhitelistTokenHourlySnapshotsArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryWhitelistTokenSettingArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryWhitelistTokenSettingsArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryWrappedDepositErc20Args = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryWrappedDepositErc20DailySnapshotArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryWrappedDepositErc20DailySnapshotsArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryWrappedDepositErc20HourlySnapshotArgs = { - block?: InputMaybe; + block?: InputMaybe; id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + subgraphError?: SubgraphErrorPolicy; }; export type QueryWrappedDepositErc20HourlySnapshotsArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type QueryWrappedDepositErc20SArgs = { - block?: InputMaybe; + block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + subgraphError?: SubgraphErrorPolicy; + where?: InputMaybe; }; export type Season = { @@ -8049,10 +8227,10 @@ export type Season = { unmigratedL1Beans?: Maybe; }; -export type Season_Filter = { +export type SeasonFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe>>; beans?: InputMaybe; beans_gt?: InputMaybe; beans_gte?: InputMaybe; @@ -8062,7 +8240,7 @@ export type Season_Filter = { beans_not?: InputMaybe; beans_not_in?: InputMaybe>; beanstalk?: InputMaybe; - beanstalk_?: InputMaybe; + beanstalk_?: InputMaybe; beanstalk_contains?: InputMaybe; beanstalk_contains_nocase?: InputMaybe; beanstalk_ends_with?: InputMaybe; @@ -8146,7 +8324,7 @@ export type Season_Filter = { marketCap_lte?: InputMaybe; marketCap_not?: InputMaybe; marketCap_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; price?: InputMaybe; price_gt?: InputMaybe; price_gte?: InputMaybe; @@ -8193,27 +8371,27 @@ export type Season_Filter = { unmigratedL1Beans_not_in?: InputMaybe>; }; -export enum Season_OrderBy { - Beans = 'beans', - Beanstalk = 'beanstalk', - BeanstalkFertilizer1155 = 'beanstalk__fertilizer1155', - BeanstalkId = 'beanstalk__id', - BeanstalkLastSeason = 'beanstalk__lastSeason', - BeanstalkToken = 'beanstalk__token', - CreatedAt = 'createdAt', - DeltaB = 'deltaB', - DeltaBeans = 'deltaBeans', - FloodFieldBeans = 'floodFieldBeans', - FloodSiloBeans = 'floodSiloBeans', - Id = 'id', - IncentiveBeans = 'incentiveBeans', - MarketCap = 'marketCap', - Price = 'price', - Raining = 'raining', - RewardBeans = 'rewardBeans', - Season = 'season', - SunriseBlock = 'sunriseBlock', - UnmigratedL1Beans = 'unmigratedL1Beans' +export enum SeasonOrderBy { + beans = 'beans', + beanstalk = 'beanstalk', + beanstalk__fertilizer1155 = 'beanstalk__fertilizer1155', + beanstalk__id = 'beanstalk__id', + beanstalk__lastSeason = 'beanstalk__lastSeason', + beanstalk__token = 'beanstalk__token', + createdAt = 'createdAt', + deltaB = 'deltaB', + deltaBeans = 'deltaBeans', + floodFieldBeans = 'floodFieldBeans', + floodSiloBeans = 'floodSiloBeans', + id = 'id', + incentiveBeans = 'incentiveBeans', + marketCap = 'marketCap', + price = 'price', + raining = 'raining', + rewardBeans = 'rewardBeans', + season = 'season', + sunriseBlock = 'sunriseBlock', + unmigratedL1Beans = 'unmigratedL1Beans' } export type Silo = { @@ -8287,37 +8465,37 @@ export type Silo = { export type SiloAssetsArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; export type SiloDailySnapshotsArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; export type SiloHourlySnapshotsArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; export type SiloMarketPerformanceSeasonalsArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; export type SiloAsset = { @@ -8347,19 +8525,19 @@ export type SiloAsset = { export type SiloAssetDailySnapshotsArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; export type SiloAssetHourlySnapshotsArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; export type SiloAssetDailySnapshot = { @@ -8385,10 +8563,10 @@ export type SiloAssetDailySnapshot = { withdrawnAmount: Scalars['BigInt']['output']; }; -export type SiloAssetDailySnapshot_Filter = { +export type SiloAssetDailySnapshotFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe>>; createdAt?: InputMaybe; createdAt_gt?: InputMaybe; createdAt_gte?: InputMaybe; @@ -8445,7 +8623,7 @@ export type SiloAssetDailySnapshot_Filter = { id_lte?: InputMaybe; id_not?: InputMaybe; id_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; season?: InputMaybe; season_gt?: InputMaybe; season_gte?: InputMaybe; @@ -8455,7 +8633,7 @@ export type SiloAssetDailySnapshot_Filter = { season_not?: InputMaybe; season_not_in?: InputMaybe>; siloAsset?: InputMaybe; - siloAsset_?: InputMaybe; + siloAsset_?: InputMaybe; siloAsset_contains?: InputMaybe; siloAsset_contains_nocase?: InputMaybe; siloAsset_ends_with?: InputMaybe; @@ -8493,25 +8671,25 @@ export type SiloAssetDailySnapshot_Filter = { withdrawnAmount_not_in?: InputMaybe>; }; -export enum SiloAssetDailySnapshot_OrderBy { - CreatedAt = 'createdAt', - DeltaDepositedAmount = 'deltaDepositedAmount', - DeltaDepositedBdv = 'deltaDepositedBDV', - DeltaWithdrawnAmount = 'deltaWithdrawnAmount', - DepositedAmount = 'depositedAmount', - DepositedBdv = 'depositedBDV', - Id = 'id', - Season = 'season', - SiloAsset = 'siloAsset', - SiloAssetDepositedAmount = 'siloAsset__depositedAmount', - SiloAssetDepositedBdv = 'siloAsset__depositedBDV', - SiloAssetId = 'siloAsset__id', - SiloAssetLastDailySnapshotDay = 'siloAsset__lastDailySnapshotDay', - SiloAssetLastHourlySnapshotSeason = 'siloAsset__lastHourlySnapshotSeason', - SiloAssetToken = 'siloAsset__token', - SiloAssetWithdrawnAmount = 'siloAsset__withdrawnAmount', - UpdatedAt = 'updatedAt', - WithdrawnAmount = 'withdrawnAmount' +export enum SiloAssetDailySnapshotOrderBy { + createdAt = 'createdAt', + deltaDepositedAmount = 'deltaDepositedAmount', + deltaDepositedBDV = 'deltaDepositedBDV', + deltaWithdrawnAmount = 'deltaWithdrawnAmount', + depositedAmount = 'depositedAmount', + depositedBDV = 'depositedBDV', + id = 'id', + season = 'season', + siloAsset = 'siloAsset', + siloAsset__depositedAmount = 'siloAsset__depositedAmount', + siloAsset__depositedBDV = 'siloAsset__depositedBDV', + siloAsset__id = 'siloAsset__id', + siloAsset__lastDailySnapshotDay = 'siloAsset__lastDailySnapshotDay', + siloAsset__lastHourlySnapshotSeason = 'siloAsset__lastHourlySnapshotSeason', + siloAsset__token = 'siloAsset__token', + siloAsset__withdrawnAmount = 'siloAsset__withdrawnAmount', + updatedAt = 'updatedAt', + withdrawnAmount = 'withdrawnAmount' } export type SiloAssetHourlySnapshot = { @@ -8537,10 +8715,10 @@ export type SiloAssetHourlySnapshot = { withdrawnAmount: Scalars['BigInt']['output']; }; -export type SiloAssetHourlySnapshot_Filter = { +export type SiloAssetHourlySnapshotFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe>>; createdAt?: InputMaybe; createdAt_gt?: InputMaybe; createdAt_gte?: InputMaybe; @@ -8597,7 +8775,7 @@ export type SiloAssetHourlySnapshot_Filter = { id_lte?: InputMaybe; id_not?: InputMaybe; id_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; season?: InputMaybe; season_gt?: InputMaybe; season_gte?: InputMaybe; @@ -8607,7 +8785,7 @@ export type SiloAssetHourlySnapshot_Filter = { season_not?: InputMaybe; season_not_in?: InputMaybe>; siloAsset?: InputMaybe; - siloAsset_?: InputMaybe; + siloAsset_?: InputMaybe; siloAsset_contains?: InputMaybe; siloAsset_contains_nocase?: InputMaybe; siloAsset_ends_with?: InputMaybe; @@ -8645,32 +8823,32 @@ export type SiloAssetHourlySnapshot_Filter = { withdrawnAmount_not_in?: InputMaybe>; }; -export enum SiloAssetHourlySnapshot_OrderBy { - CreatedAt = 'createdAt', - DeltaDepositedAmount = 'deltaDepositedAmount', - DeltaDepositedBdv = 'deltaDepositedBDV', - DeltaWithdrawnAmount = 'deltaWithdrawnAmount', - DepositedAmount = 'depositedAmount', - DepositedBdv = 'depositedBDV', - Id = 'id', - Season = 'season', - SiloAsset = 'siloAsset', - SiloAssetDepositedAmount = 'siloAsset__depositedAmount', - SiloAssetDepositedBdv = 'siloAsset__depositedBDV', - SiloAssetId = 'siloAsset__id', - SiloAssetLastDailySnapshotDay = 'siloAsset__lastDailySnapshotDay', - SiloAssetLastHourlySnapshotSeason = 'siloAsset__lastHourlySnapshotSeason', - SiloAssetToken = 'siloAsset__token', - SiloAssetWithdrawnAmount = 'siloAsset__withdrawnAmount', - UpdatedAt = 'updatedAt', - WithdrawnAmount = 'withdrawnAmount' +export enum SiloAssetHourlySnapshotOrderBy { + createdAt = 'createdAt', + deltaDepositedAmount = 'deltaDepositedAmount', + deltaDepositedBDV = 'deltaDepositedBDV', + deltaWithdrawnAmount = 'deltaWithdrawnAmount', + depositedAmount = 'depositedAmount', + depositedBDV = 'depositedBDV', + id = 'id', + season = 'season', + siloAsset = 'siloAsset', + siloAsset__depositedAmount = 'siloAsset__depositedAmount', + siloAsset__depositedBDV = 'siloAsset__depositedBDV', + siloAsset__id = 'siloAsset__id', + siloAsset__lastDailySnapshotDay = 'siloAsset__lastDailySnapshotDay', + siloAsset__lastHourlySnapshotSeason = 'siloAsset__lastHourlySnapshotSeason', + siloAsset__token = 'siloAsset__token', + siloAsset__withdrawnAmount = 'siloAsset__withdrawnAmount', + updatedAt = 'updatedAt', + withdrawnAmount = 'withdrawnAmount' } -export type SiloAsset_Filter = { +export type SiloAssetFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - and?: InputMaybe>>; - dailySnapshots_?: InputMaybe; + and?: InputMaybe>>; + dailySnapshots_?: InputMaybe; depositedAmount?: InputMaybe; depositedAmount_gt?: InputMaybe; depositedAmount_gte?: InputMaybe; @@ -8687,7 +8865,7 @@ export type SiloAsset_Filter = { depositedBDV_lte?: InputMaybe; depositedBDV_not?: InputMaybe; depositedBDV_not_in?: InputMaybe>; - hourlySnapshots_?: InputMaybe; + hourlySnapshots_?: InputMaybe; id?: InputMaybe; id_gt?: InputMaybe; id_gte?: InputMaybe; @@ -8712,9 +8890,9 @@ export type SiloAsset_Filter = { lastHourlySnapshotSeason_lte?: InputMaybe; lastHourlySnapshotSeason_not?: InputMaybe; lastHourlySnapshotSeason_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; silo?: InputMaybe; - silo_?: InputMaybe; + silo_?: InputMaybe; silo_contains?: InputMaybe; silo_contains_nocase?: InputMaybe; silo_ends_with?: InputMaybe; @@ -8754,40 +8932,40 @@ export type SiloAsset_Filter = { withdrawnAmount_not_in?: InputMaybe>; }; -export enum SiloAsset_OrderBy { - DailySnapshots = 'dailySnapshots', - DepositedAmount = 'depositedAmount', - DepositedBdv = 'depositedBDV', - HourlySnapshots = 'hourlySnapshots', - Id = 'id', - LastDailySnapshotDay = 'lastDailySnapshotDay', - LastHourlySnapshotSeason = 'lastHourlySnapshotSeason', - Silo = 'silo', - SiloActiveFarmers = 'silo__activeFarmers', - SiloAvgConvertDownPenalty = 'silo__avgConvertDownPenalty', - SiloAvgGrownStalkPerBdvPerSeason = 'silo__avgGrownStalkPerBdvPerSeason', - SiloBeanMints = 'silo__beanMints', - SiloBeanToMaxLpGpPerBdvRatio = 'silo__beanToMaxLpGpPerBdvRatio', - SiloBonusStalkConvertUp = 'silo__bonusStalkConvertUp', - SiloConvertDownPenalty = 'silo__convertDownPenalty', - SiloCropRatio = 'silo__cropRatio', - SiloDepositedBdv = 'silo__depositedBDV', - SiloGerminatingStalk = 'silo__germinatingStalk', - SiloGrownStalkPerSeason = 'silo__grownStalkPerSeason', - SiloId = 'silo__id', - SiloLastDailySnapshotDay = 'silo__lastDailySnapshotDay', - SiloLastHourlySnapshotSeason = 'silo__lastHourlySnapshotSeason', - SiloPenalizedStalkConvertDown = 'silo__penalizedStalkConvertDown', - SiloPlantableStalk = 'silo__plantableStalk', - SiloPlantedBeans = 'silo__plantedBeans', - SiloRoots = 'silo__roots', - SiloStalk = 'silo__stalk', - SiloTotalBdvConvertUp = 'silo__totalBdvConvertUp', - SiloTotalBdvConvertUpBonus = 'silo__totalBdvConvertUpBonus', - SiloUnmigratedL1DepositedBdv = 'silo__unmigratedL1DepositedBdv', - SiloUnpenalizedStalkConvertDown = 'silo__unpenalizedStalkConvertDown', - Token = 'token', - WithdrawnAmount = 'withdrawnAmount' +export enum SiloAssetOrderBy { + dailySnapshots = 'dailySnapshots', + depositedAmount = 'depositedAmount', + depositedBDV = 'depositedBDV', + hourlySnapshots = 'hourlySnapshots', + id = 'id', + lastDailySnapshotDay = 'lastDailySnapshotDay', + lastHourlySnapshotSeason = 'lastHourlySnapshotSeason', + silo = 'silo', + silo__activeFarmers = 'silo__activeFarmers', + silo__avgConvertDownPenalty = 'silo__avgConvertDownPenalty', + silo__avgGrownStalkPerBdvPerSeason = 'silo__avgGrownStalkPerBdvPerSeason', + silo__beanMints = 'silo__beanMints', + silo__beanToMaxLpGpPerBdvRatio = 'silo__beanToMaxLpGpPerBdvRatio', + silo__bonusStalkConvertUp = 'silo__bonusStalkConvertUp', + silo__convertDownPenalty = 'silo__convertDownPenalty', + silo__cropRatio = 'silo__cropRatio', + silo__depositedBDV = 'silo__depositedBDV', + silo__germinatingStalk = 'silo__germinatingStalk', + silo__grownStalkPerSeason = 'silo__grownStalkPerSeason', + silo__id = 'silo__id', + silo__lastDailySnapshotDay = 'silo__lastDailySnapshotDay', + silo__lastHourlySnapshotSeason = 'silo__lastHourlySnapshotSeason', + silo__penalizedStalkConvertDown = 'silo__penalizedStalkConvertDown', + silo__plantableStalk = 'silo__plantableStalk', + silo__plantedBeans = 'silo__plantedBeans', + silo__roots = 'silo__roots', + silo__stalk = 'silo__stalk', + silo__totalBdvConvertUp = 'silo__totalBdvConvertUp', + silo__totalBdvConvertUpBonus = 'silo__totalBdvConvertUpBonus', + silo__unmigratedL1DepositedBdv = 'silo__unmigratedL1DepositedBdv', + silo__unpenalizedStalkConvertDown = 'silo__unpenalizedStalkConvertDown', + token = 'token', + withdrawnAmount = 'withdrawnAmount' } export type SiloDailySnapshot = { @@ -8861,7 +9039,7 @@ export type SiloDailySnapshot = { updatedAt: Scalars['BigInt']['output']; }; -export type SiloDailySnapshot_Filter = { +export type SiloDailySnapshotFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; activeFarmers?: InputMaybe; @@ -8872,7 +9050,7 @@ export type SiloDailySnapshot_Filter = { activeFarmers_lte?: InputMaybe; activeFarmers_not?: InputMaybe; activeFarmers_not_in?: InputMaybe>; - and?: InputMaybe>>; + and?: InputMaybe>>; avgConvertDownPenalty?: InputMaybe; avgConvertDownPenalty_gt?: InputMaybe; avgConvertDownPenalty_gte?: InputMaybe; @@ -9121,7 +9299,7 @@ export type SiloDailySnapshot_Filter = { id_lte?: InputMaybe; id_not?: InputMaybe; id_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; penalizedStalkConvertDown?: InputMaybe; penalizedStalkConvertDown_gt?: InputMaybe; penalizedStalkConvertDown_gte?: InputMaybe; @@ -9163,7 +9341,7 @@ export type SiloDailySnapshot_Filter = { season_not?: InputMaybe; season_not_in?: InputMaybe>; silo?: InputMaybe; - silo_?: InputMaybe; + silo_?: InputMaybe; silo_contains?: InputMaybe; silo_contains_nocase?: InputMaybe; silo_ends_with?: InputMaybe; @@ -9225,73 +9403,73 @@ export type SiloDailySnapshot_Filter = { updatedAt_not_in?: InputMaybe>; }; -export enum SiloDailySnapshot_OrderBy { - ActiveFarmers = 'activeFarmers', - AvgConvertDownPenalty = 'avgConvertDownPenalty', - AvgGrownStalkPerBdvPerSeason = 'avgGrownStalkPerBdvPerSeason', - BeanMints = 'beanMints', - BeanToMaxLpGpPerBdvRatio = 'beanToMaxLpGpPerBdvRatio', - BonusStalkConvertUp = 'bonusStalkConvertUp', - ConvertDownPenalty = 'convertDownPenalty', - CreatedAt = 'createdAt', - CropRatio = 'cropRatio', - DeltaActiveFarmers = 'deltaActiveFarmers', - DeltaAvgConvertDownPenalty = 'deltaAvgConvertDownPenalty', - DeltaAvgGrownStalkPerBdvPerSeason = 'deltaAvgGrownStalkPerBdvPerSeason', - DeltaBeanMints = 'deltaBeanMints', - DeltaBeanToMaxLpGpPerBdvRatio = 'deltaBeanToMaxLpGpPerBdvRatio', - DeltaBonusStalkConvertUp = 'deltaBonusStalkConvertUp', - DeltaConvertDownPenalty = 'deltaConvertDownPenalty', - DeltaCropRatio = 'deltaCropRatio', - DeltaDepositedBdv = 'deltaDepositedBDV', - DeltaGerminatingStalk = 'deltaGerminatingStalk', - DeltaGrownStalkPerSeason = 'deltaGrownStalkPerSeason', - DeltaPenalizedStalkConvertDown = 'deltaPenalizedStalkConvertDown', - DeltaPlantableStalk = 'deltaPlantableStalk', - DeltaPlantedBeans = 'deltaPlantedBeans', - DeltaRoots = 'deltaRoots', - DeltaStalk = 'deltaStalk', - DeltaTotalBdvConvertUp = 'deltaTotalBdvConvertUp', - DeltaTotalBdvConvertUpBonus = 'deltaTotalBdvConvertUpBonus', - DeltaUnpenalizedStalkConvertDown = 'deltaUnpenalizedStalkConvertDown', - DepositedBdv = 'depositedBDV', - GerminatingStalk = 'germinatingStalk', - GrownStalkPerSeason = 'grownStalkPerSeason', - Id = 'id', - PenalizedStalkConvertDown = 'penalizedStalkConvertDown', - PlantableStalk = 'plantableStalk', - PlantedBeans = 'plantedBeans', - Roots = 'roots', - Season = 'season', - Silo = 'silo', - SiloActiveFarmers = 'silo__activeFarmers', - SiloAvgConvertDownPenalty = 'silo__avgConvertDownPenalty', - SiloAvgGrownStalkPerBdvPerSeason = 'silo__avgGrownStalkPerBdvPerSeason', - SiloBeanMints = 'silo__beanMints', - SiloBeanToMaxLpGpPerBdvRatio = 'silo__beanToMaxLpGpPerBdvRatio', - SiloBonusStalkConvertUp = 'silo__bonusStalkConvertUp', - SiloConvertDownPenalty = 'silo__convertDownPenalty', - SiloCropRatio = 'silo__cropRatio', - SiloDepositedBdv = 'silo__depositedBDV', - SiloGerminatingStalk = 'silo__germinatingStalk', - SiloGrownStalkPerSeason = 'silo__grownStalkPerSeason', - SiloId = 'silo__id', - SiloLastDailySnapshotDay = 'silo__lastDailySnapshotDay', - SiloLastHourlySnapshotSeason = 'silo__lastHourlySnapshotSeason', - SiloPenalizedStalkConvertDown = 'silo__penalizedStalkConvertDown', - SiloPlantableStalk = 'silo__plantableStalk', - SiloPlantedBeans = 'silo__plantedBeans', - SiloRoots = 'silo__roots', - SiloStalk = 'silo__stalk', - SiloTotalBdvConvertUp = 'silo__totalBdvConvertUp', - SiloTotalBdvConvertUpBonus = 'silo__totalBdvConvertUpBonus', - SiloUnmigratedL1DepositedBdv = 'silo__unmigratedL1DepositedBdv', - SiloUnpenalizedStalkConvertDown = 'silo__unpenalizedStalkConvertDown', - Stalk = 'stalk', - TotalBdvConvertUp = 'totalBdvConvertUp', - TotalBdvConvertUpBonus = 'totalBdvConvertUpBonus', - UnpenalizedStalkConvertDown = 'unpenalizedStalkConvertDown', - UpdatedAt = 'updatedAt' +export enum SiloDailySnapshotOrderBy { + activeFarmers = 'activeFarmers', + avgConvertDownPenalty = 'avgConvertDownPenalty', + avgGrownStalkPerBdvPerSeason = 'avgGrownStalkPerBdvPerSeason', + beanMints = 'beanMints', + beanToMaxLpGpPerBdvRatio = 'beanToMaxLpGpPerBdvRatio', + bonusStalkConvertUp = 'bonusStalkConvertUp', + convertDownPenalty = 'convertDownPenalty', + createdAt = 'createdAt', + cropRatio = 'cropRatio', + deltaActiveFarmers = 'deltaActiveFarmers', + deltaAvgConvertDownPenalty = 'deltaAvgConvertDownPenalty', + deltaAvgGrownStalkPerBdvPerSeason = 'deltaAvgGrownStalkPerBdvPerSeason', + deltaBeanMints = 'deltaBeanMints', + deltaBeanToMaxLpGpPerBdvRatio = 'deltaBeanToMaxLpGpPerBdvRatio', + deltaBonusStalkConvertUp = 'deltaBonusStalkConvertUp', + deltaConvertDownPenalty = 'deltaConvertDownPenalty', + deltaCropRatio = 'deltaCropRatio', + deltaDepositedBDV = 'deltaDepositedBDV', + deltaGerminatingStalk = 'deltaGerminatingStalk', + deltaGrownStalkPerSeason = 'deltaGrownStalkPerSeason', + deltaPenalizedStalkConvertDown = 'deltaPenalizedStalkConvertDown', + deltaPlantableStalk = 'deltaPlantableStalk', + deltaPlantedBeans = 'deltaPlantedBeans', + deltaRoots = 'deltaRoots', + deltaStalk = 'deltaStalk', + deltaTotalBdvConvertUp = 'deltaTotalBdvConvertUp', + deltaTotalBdvConvertUpBonus = 'deltaTotalBdvConvertUpBonus', + deltaUnpenalizedStalkConvertDown = 'deltaUnpenalizedStalkConvertDown', + depositedBDV = 'depositedBDV', + germinatingStalk = 'germinatingStalk', + grownStalkPerSeason = 'grownStalkPerSeason', + id = 'id', + penalizedStalkConvertDown = 'penalizedStalkConvertDown', + plantableStalk = 'plantableStalk', + plantedBeans = 'plantedBeans', + roots = 'roots', + season = 'season', + silo = 'silo', + silo__activeFarmers = 'silo__activeFarmers', + silo__avgConvertDownPenalty = 'silo__avgConvertDownPenalty', + silo__avgGrownStalkPerBdvPerSeason = 'silo__avgGrownStalkPerBdvPerSeason', + silo__beanMints = 'silo__beanMints', + silo__beanToMaxLpGpPerBdvRatio = 'silo__beanToMaxLpGpPerBdvRatio', + silo__bonusStalkConvertUp = 'silo__bonusStalkConvertUp', + silo__convertDownPenalty = 'silo__convertDownPenalty', + silo__cropRatio = 'silo__cropRatio', + silo__depositedBDV = 'silo__depositedBDV', + silo__germinatingStalk = 'silo__germinatingStalk', + silo__grownStalkPerSeason = 'silo__grownStalkPerSeason', + silo__id = 'silo__id', + silo__lastDailySnapshotDay = 'silo__lastDailySnapshotDay', + silo__lastHourlySnapshotSeason = 'silo__lastHourlySnapshotSeason', + silo__penalizedStalkConvertDown = 'silo__penalizedStalkConvertDown', + silo__plantableStalk = 'silo__plantableStalk', + silo__plantedBeans = 'silo__plantedBeans', + silo__roots = 'silo__roots', + silo__stalk = 'silo__stalk', + silo__totalBdvConvertUp = 'silo__totalBdvConvertUp', + silo__totalBdvConvertUpBonus = 'silo__totalBdvConvertUpBonus', + silo__unmigratedL1DepositedBdv = 'silo__unmigratedL1DepositedBdv', + silo__unpenalizedStalkConvertDown = 'silo__unpenalizedStalkConvertDown', + stalk = 'stalk', + totalBdvConvertUp = 'totalBdvConvertUp', + totalBdvConvertUpBonus = 'totalBdvConvertUpBonus', + unpenalizedStalkConvertDown = 'unpenalizedStalkConvertDown', + updatedAt = 'updatedAt' } export type SiloDeposit = { @@ -9329,10 +9507,10 @@ export type SiloDeposit = { updatedBlock: Scalars['BigInt']['output']; }; -export type SiloDeposit_Filter = { +export type SiloDepositFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe>>; createdAt?: InputMaybe; createdAt_gt?: InputMaybe; createdAt_gte?: InputMaybe; @@ -9386,7 +9564,7 @@ export type SiloDeposit_Filter = { depositedBDV_not?: InputMaybe; depositedBDV_not_in?: InputMaybe>; farmer?: InputMaybe; - farmer_?: InputMaybe; + farmer_?: InputMaybe; farmer_contains?: InputMaybe; farmer_contains_nocase?: InputMaybe; farmer_ends_with?: InputMaybe; @@ -9420,7 +9598,7 @@ export type SiloDeposit_Filter = { id_lte?: InputMaybe; id_not?: InputMaybe; id_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; season?: InputMaybe; season_gt?: InputMaybe; season_gte?: InputMaybe; @@ -9473,23 +9651,25 @@ export type SiloDeposit_Filter = { updatedBlock_not_in?: InputMaybe>; }; -export enum SiloDeposit_OrderBy { - CreatedAt = 'createdAt', - CreatedBlock = 'createdBlock', - DepositVersion = 'depositVersion', - DepositedAmount = 'depositedAmount', - DepositedBdv = 'depositedBDV', - Farmer = 'farmer', - FarmerCreationBlock = 'farmer__creationBlock', - FarmerId = 'farmer__id', - Hashes = 'hashes', - Id = 'id', - Season = 'season', - Stem = 'stem', - StemV31 = 'stemV31', - Token = 'token', - UpdatedAt = 'updatedAt', - UpdatedBlock = 'updatedBlock' +export enum SiloDepositOrderBy { + createdAt = 'createdAt', + createdBlock = 'createdBlock', + depositVersion = 'depositVersion', + depositedAmount = 'depositedAmount', + depositedBDV = 'depositedBDV', + farmer = 'farmer', + farmer__creationBlock = 'farmer__creationBlock', + farmer__id = 'farmer__id', + farmer__refereeCount = 'farmer__refereeCount', + farmer__totalReferralRewardPodsReceived = 'farmer__totalReferralRewardPodsReceived', + hashes = 'hashes', + id = 'id', + season = 'season', + stem = 'stem', + stemV31 = 'stemV31', + token = 'token', + updatedAt = 'updatedAt', + updatedBlock = 'updatedBlock' } export type SiloHourlySnapshot = { @@ -9565,7 +9745,7 @@ export type SiloHourlySnapshot = { updatedAt: Scalars['BigInt']['output']; }; -export type SiloHourlySnapshot_Filter = { +export type SiloHourlySnapshotFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; activeFarmers?: InputMaybe; @@ -9576,7 +9756,7 @@ export type SiloHourlySnapshot_Filter = { activeFarmers_lte?: InputMaybe; activeFarmers_not?: InputMaybe; activeFarmers_not_in?: InputMaybe>; - and?: InputMaybe>>; + and?: InputMaybe>>; avgConvertDownPenalty?: InputMaybe; avgConvertDownPenalty_gt?: InputMaybe; avgConvertDownPenalty_gte?: InputMaybe; @@ -9833,7 +10013,7 @@ export type SiloHourlySnapshot_Filter = { id_lte?: InputMaybe; id_not?: InputMaybe; id_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; penalizedStalkConvertDown?: InputMaybe; penalizedStalkConvertDown_gt?: InputMaybe; penalizedStalkConvertDown_gte?: InputMaybe; @@ -9875,7 +10055,7 @@ export type SiloHourlySnapshot_Filter = { season_not?: InputMaybe; season_not_in?: InputMaybe>; silo?: InputMaybe; - silo_?: InputMaybe; + silo_?: InputMaybe; silo_contains?: InputMaybe; silo_contains_nocase?: InputMaybe; silo_ends_with?: InputMaybe; @@ -9937,74 +10117,74 @@ export type SiloHourlySnapshot_Filter = { updatedAt_not_in?: InputMaybe>; }; -export enum SiloHourlySnapshot_OrderBy { - ActiveFarmers = 'activeFarmers', - AvgConvertDownPenalty = 'avgConvertDownPenalty', - AvgGrownStalkPerBdvPerSeason = 'avgGrownStalkPerBdvPerSeason', - BeanMints = 'beanMints', - BeanToMaxLpGpPerBdvRatio = 'beanToMaxLpGpPerBdvRatio', - BonusStalkConvertUp = 'bonusStalkConvertUp', - CaseId = 'caseId', - ConvertDownPenalty = 'convertDownPenalty', - CreatedAt = 'createdAt', - CropRatio = 'cropRatio', - DeltaActiveFarmers = 'deltaActiveFarmers', - DeltaAvgConvertDownPenalty = 'deltaAvgConvertDownPenalty', - DeltaAvgGrownStalkPerBdvPerSeason = 'deltaAvgGrownStalkPerBdvPerSeason', - DeltaBeanMints = 'deltaBeanMints', - DeltaBeanToMaxLpGpPerBdvRatio = 'deltaBeanToMaxLpGpPerBdvRatio', - DeltaBonusStalkConvertUp = 'deltaBonusStalkConvertUp', - DeltaConvertDownPenalty = 'deltaConvertDownPenalty', - DeltaCropRatio = 'deltaCropRatio', - DeltaDepositedBdv = 'deltaDepositedBDV', - DeltaGerminatingStalk = 'deltaGerminatingStalk', - DeltaGrownStalkPerSeason = 'deltaGrownStalkPerSeason', - DeltaPenalizedStalkConvertDown = 'deltaPenalizedStalkConvertDown', - DeltaPlantableStalk = 'deltaPlantableStalk', - DeltaPlantedBeans = 'deltaPlantedBeans', - DeltaRoots = 'deltaRoots', - DeltaStalk = 'deltaStalk', - DeltaTotalBdvConvertUp = 'deltaTotalBdvConvertUp', - DeltaTotalBdvConvertUpBonus = 'deltaTotalBdvConvertUpBonus', - DeltaUnpenalizedStalkConvertDown = 'deltaUnpenalizedStalkConvertDown', - DepositedBdv = 'depositedBDV', - GerminatingStalk = 'germinatingStalk', - GrownStalkPerSeason = 'grownStalkPerSeason', - Id = 'id', - PenalizedStalkConvertDown = 'penalizedStalkConvertDown', - PlantableStalk = 'plantableStalk', - PlantedBeans = 'plantedBeans', - Roots = 'roots', - Season = 'season', - Silo = 'silo', - SiloActiveFarmers = 'silo__activeFarmers', - SiloAvgConvertDownPenalty = 'silo__avgConvertDownPenalty', - SiloAvgGrownStalkPerBdvPerSeason = 'silo__avgGrownStalkPerBdvPerSeason', - SiloBeanMints = 'silo__beanMints', - SiloBeanToMaxLpGpPerBdvRatio = 'silo__beanToMaxLpGpPerBdvRatio', - SiloBonusStalkConvertUp = 'silo__bonusStalkConvertUp', - SiloConvertDownPenalty = 'silo__convertDownPenalty', - SiloCropRatio = 'silo__cropRatio', - SiloDepositedBdv = 'silo__depositedBDV', - SiloGerminatingStalk = 'silo__germinatingStalk', - SiloGrownStalkPerSeason = 'silo__grownStalkPerSeason', - SiloId = 'silo__id', - SiloLastDailySnapshotDay = 'silo__lastDailySnapshotDay', - SiloLastHourlySnapshotSeason = 'silo__lastHourlySnapshotSeason', - SiloPenalizedStalkConvertDown = 'silo__penalizedStalkConvertDown', - SiloPlantableStalk = 'silo__plantableStalk', - SiloPlantedBeans = 'silo__plantedBeans', - SiloRoots = 'silo__roots', - SiloStalk = 'silo__stalk', - SiloTotalBdvConvertUp = 'silo__totalBdvConvertUp', - SiloTotalBdvConvertUpBonus = 'silo__totalBdvConvertUpBonus', - SiloUnmigratedL1DepositedBdv = 'silo__unmigratedL1DepositedBdv', - SiloUnpenalizedStalkConvertDown = 'silo__unpenalizedStalkConvertDown', - Stalk = 'stalk', - TotalBdvConvertUp = 'totalBdvConvertUp', - TotalBdvConvertUpBonus = 'totalBdvConvertUpBonus', - UnpenalizedStalkConvertDown = 'unpenalizedStalkConvertDown', - UpdatedAt = 'updatedAt' +export enum SiloHourlySnapshotOrderBy { + activeFarmers = 'activeFarmers', + avgConvertDownPenalty = 'avgConvertDownPenalty', + avgGrownStalkPerBdvPerSeason = 'avgGrownStalkPerBdvPerSeason', + beanMints = 'beanMints', + beanToMaxLpGpPerBdvRatio = 'beanToMaxLpGpPerBdvRatio', + bonusStalkConvertUp = 'bonusStalkConvertUp', + caseId = 'caseId', + convertDownPenalty = 'convertDownPenalty', + createdAt = 'createdAt', + cropRatio = 'cropRatio', + deltaActiveFarmers = 'deltaActiveFarmers', + deltaAvgConvertDownPenalty = 'deltaAvgConvertDownPenalty', + deltaAvgGrownStalkPerBdvPerSeason = 'deltaAvgGrownStalkPerBdvPerSeason', + deltaBeanMints = 'deltaBeanMints', + deltaBeanToMaxLpGpPerBdvRatio = 'deltaBeanToMaxLpGpPerBdvRatio', + deltaBonusStalkConvertUp = 'deltaBonusStalkConvertUp', + deltaConvertDownPenalty = 'deltaConvertDownPenalty', + deltaCropRatio = 'deltaCropRatio', + deltaDepositedBDV = 'deltaDepositedBDV', + deltaGerminatingStalk = 'deltaGerminatingStalk', + deltaGrownStalkPerSeason = 'deltaGrownStalkPerSeason', + deltaPenalizedStalkConvertDown = 'deltaPenalizedStalkConvertDown', + deltaPlantableStalk = 'deltaPlantableStalk', + deltaPlantedBeans = 'deltaPlantedBeans', + deltaRoots = 'deltaRoots', + deltaStalk = 'deltaStalk', + deltaTotalBdvConvertUp = 'deltaTotalBdvConvertUp', + deltaTotalBdvConvertUpBonus = 'deltaTotalBdvConvertUpBonus', + deltaUnpenalizedStalkConvertDown = 'deltaUnpenalizedStalkConvertDown', + depositedBDV = 'depositedBDV', + germinatingStalk = 'germinatingStalk', + grownStalkPerSeason = 'grownStalkPerSeason', + id = 'id', + penalizedStalkConvertDown = 'penalizedStalkConvertDown', + plantableStalk = 'plantableStalk', + plantedBeans = 'plantedBeans', + roots = 'roots', + season = 'season', + silo = 'silo', + silo__activeFarmers = 'silo__activeFarmers', + silo__avgConvertDownPenalty = 'silo__avgConvertDownPenalty', + silo__avgGrownStalkPerBdvPerSeason = 'silo__avgGrownStalkPerBdvPerSeason', + silo__beanMints = 'silo__beanMints', + silo__beanToMaxLpGpPerBdvRatio = 'silo__beanToMaxLpGpPerBdvRatio', + silo__bonusStalkConvertUp = 'silo__bonusStalkConvertUp', + silo__convertDownPenalty = 'silo__convertDownPenalty', + silo__cropRatio = 'silo__cropRatio', + silo__depositedBDV = 'silo__depositedBDV', + silo__germinatingStalk = 'silo__germinatingStalk', + silo__grownStalkPerSeason = 'silo__grownStalkPerSeason', + silo__id = 'silo__id', + silo__lastDailySnapshotDay = 'silo__lastDailySnapshotDay', + silo__lastHourlySnapshotSeason = 'silo__lastHourlySnapshotSeason', + silo__penalizedStalkConvertDown = 'silo__penalizedStalkConvertDown', + silo__plantableStalk = 'silo__plantableStalk', + silo__plantedBeans = 'silo__plantedBeans', + silo__roots = 'silo__roots', + silo__stalk = 'silo__stalk', + silo__totalBdvConvertUp = 'silo__totalBdvConvertUp', + silo__totalBdvConvertUpBonus = 'silo__totalBdvConvertUpBonus', + silo__unmigratedL1DepositedBdv = 'silo__unmigratedL1DepositedBdv', + silo__unpenalizedStalkConvertDown = 'silo__unpenalizedStalkConvertDown', + stalk = 'stalk', + totalBdvConvertUp = 'totalBdvConvertUp', + totalBdvConvertUpBonus = 'totalBdvConvertUpBonus', + unpenalizedStalkConvertDown = 'unpenalizedStalkConvertDown', + updatedAt = 'updatedAt' } export type SiloWithdraw = { @@ -10027,7 +10207,7 @@ export type SiloWithdraw = { withdrawSeason: Scalars['Int']['output']; }; -export type SiloWithdraw_Filter = { +export type SiloWithdrawFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; amount?: InputMaybe; @@ -10038,7 +10218,7 @@ export type SiloWithdraw_Filter = { amount_lte?: InputMaybe; amount_not?: InputMaybe; amount_not_in?: InputMaybe>; - and?: InputMaybe>>; + and?: InputMaybe>>; claimableSeason?: InputMaybe; claimableSeason_gt?: InputMaybe; claimableSeason_gte?: InputMaybe; @@ -10060,7 +10240,7 @@ export type SiloWithdraw_Filter = { createdAt_not?: InputMaybe; createdAt_not_in?: InputMaybe>; farmer?: InputMaybe; - farmer_?: InputMaybe; + farmer_?: InputMaybe; farmer_contains?: InputMaybe; farmer_contains_nocase?: InputMaybe; farmer_ends_with?: InputMaybe; @@ -10088,7 +10268,7 @@ export type SiloWithdraw_Filter = { id_lte?: InputMaybe; id_not?: InputMaybe; id_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; token?: InputMaybe; token_contains?: InputMaybe; token_gt?: InputMaybe; @@ -10109,17 +10289,19 @@ export type SiloWithdraw_Filter = { withdrawSeason_not_in?: InputMaybe>; }; -export enum SiloWithdraw_OrderBy { - Amount = 'amount', - ClaimableSeason = 'claimableSeason', - Claimed = 'claimed', - CreatedAt = 'createdAt', - Farmer = 'farmer', - FarmerCreationBlock = 'farmer__creationBlock', - FarmerId = 'farmer__id', - Id = 'id', - Token = 'token', - WithdrawSeason = 'withdrawSeason' +export enum SiloWithdrawOrderBy { + amount = 'amount', + claimableSeason = 'claimableSeason', + claimed = 'claimed', + createdAt = 'createdAt', + farmer = 'farmer', + farmer__creationBlock = 'farmer__creationBlock', + farmer__id = 'farmer__id', + farmer__refereeCount = 'farmer__refereeCount', + farmer__totalReferralRewardPodsReceived = 'farmer__totalReferralRewardPodsReceived', + id = 'id', + token = 'token', + withdrawSeason = 'withdrawSeason' } export type SiloYield = { @@ -10147,16 +10329,16 @@ export type SiloYield = { export type SiloYieldTokenApysArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; -export type SiloYield_Filter = { +export type SiloYieldFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe>>; beansPerSeasonEMA?: InputMaybe; beansPerSeasonEMA_gt?: InputMaybe; beansPerSeasonEMA_gte?: InputMaybe; @@ -10193,7 +10375,7 @@ export type SiloYield_Filter = { id_lte?: InputMaybe; id_not?: InputMaybe; id_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; season?: InputMaybe; season_gt?: InputMaybe; season_gte?: InputMaybe; @@ -10202,7 +10384,7 @@ export type SiloYield_Filter = { season_lte?: InputMaybe; season_not?: InputMaybe; season_not_in?: InputMaybe>; - tokenAPYS_?: InputMaybe; + tokenAPYS_?: InputMaybe; u?: InputMaybe; u_gt?: InputMaybe; u_gte?: InputMaybe; @@ -10219,19 +10401,19 @@ export type SiloYield_Filter = { whitelistedTokens_not_contains_nocase?: InputMaybe>; }; -export enum SiloYield_OrderBy { - BeansPerSeasonEma = 'beansPerSeasonEMA', - Beta = 'beta', - CreatedAt = 'createdAt', - EmaWindow = 'emaWindow', - Id = 'id', - Season = 'season', - TokenApys = 'tokenAPYS', - U = 'u', - WhitelistedTokens = 'whitelistedTokens' +export enum SiloYieldOrderBy { + beansPerSeasonEMA = 'beansPerSeasonEMA', + beta = 'beta', + createdAt = 'createdAt', + emaWindow = 'emaWindow', + id = 'id', + season = 'season', + tokenAPYS = 'tokenAPYS', + u = 'u', + whitelistedTokens = 'whitelistedTokens' } -export type Silo_Filter = { +export type SiloFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; activeFarmers?: InputMaybe; @@ -10248,8 +10430,8 @@ export type Silo_Filter = { allWhitelistedTokens_not?: InputMaybe>; allWhitelistedTokens_not_contains?: InputMaybe>; allWhitelistedTokens_not_contains_nocase?: InputMaybe>; - and?: InputMaybe>>; - assets_?: InputMaybe; + and?: InputMaybe>>; + assets_?: InputMaybe; avgConvertDownPenalty?: InputMaybe; avgConvertDownPenalty_gt?: InputMaybe; avgConvertDownPenalty_gte?: InputMaybe; @@ -10283,7 +10465,7 @@ export type Silo_Filter = { beanToMaxLpGpPerBdvRatio_not?: InputMaybe; beanToMaxLpGpPerBdvRatio_not_in?: InputMaybe>; beanstalk?: InputMaybe; - beanstalk_?: InputMaybe; + beanstalk_?: InputMaybe; beanstalk_contains?: InputMaybe; beanstalk_contains_nocase?: InputMaybe; beanstalk_ends_with?: InputMaybe; @@ -10327,7 +10509,7 @@ export type Silo_Filter = { cropRatio_lte?: InputMaybe; cropRatio_not?: InputMaybe; cropRatio_not_in?: InputMaybe>; - dailySnapshots_?: InputMaybe; + dailySnapshots_?: InputMaybe; depositedBDV?: InputMaybe; depositedBDV_gt?: InputMaybe; depositedBDV_gte?: InputMaybe; @@ -10343,7 +10525,7 @@ export type Silo_Filter = { dewhitelistedTokens_not_contains?: InputMaybe>; dewhitelistedTokens_not_contains_nocase?: InputMaybe>; farmer?: InputMaybe; - farmer_?: InputMaybe; + farmer_?: InputMaybe; farmer_contains?: InputMaybe; farmer_contains_nocase?: InputMaybe; farmer_ends_with?: InputMaybe; @@ -10379,7 +10561,7 @@ export type Silo_Filter = { grownStalkPerSeason_lte?: InputMaybe; grownStalkPerSeason_not?: InputMaybe; grownStalkPerSeason_not_in?: InputMaybe>; - hourlySnapshots_?: InputMaybe; + hourlySnapshots_?: InputMaybe; id?: InputMaybe; id_contains?: InputMaybe; id_gt?: InputMaybe; @@ -10406,8 +10588,8 @@ export type Silo_Filter = { lastHourlySnapshotSeason_lte?: InputMaybe; lastHourlySnapshotSeason_not?: InputMaybe; lastHourlySnapshotSeason_not_in?: InputMaybe>; - marketPerformanceSeasonals_?: InputMaybe; - or?: InputMaybe>>; + marketPerformanceSeasonals_?: InputMaybe; + or?: InputMaybe>>; penalizedStalkConvertDown?: InputMaybe; penalizedStalkConvertDown_gt?: InputMaybe; penalizedStalkConvertDown_gte?: InputMaybe; @@ -10488,1178 +10670,49 @@ export type Silo_Filter = { whitelistedTokens_not_contains_nocase?: InputMaybe>; }; -export enum Silo_OrderBy { - ActiveFarmers = 'activeFarmers', - AllWhitelistedTokens = 'allWhitelistedTokens', - Assets = 'assets', - AvgConvertDownPenalty = 'avgConvertDownPenalty', - AvgGrownStalkPerBdvPerSeason = 'avgGrownStalkPerBdvPerSeason', - BeanMints = 'beanMints', - BeanToMaxLpGpPerBdvRatio = 'beanToMaxLpGpPerBdvRatio', - Beanstalk = 'beanstalk', - BeanstalkFertilizer1155 = 'beanstalk__fertilizer1155', - BeanstalkId = 'beanstalk__id', - BeanstalkLastSeason = 'beanstalk__lastSeason', - BeanstalkToken = 'beanstalk__token', - BonusStalkConvertUp = 'bonusStalkConvertUp', - ConvertDownPenalty = 'convertDownPenalty', - CropRatio = 'cropRatio', - DailySnapshots = 'dailySnapshots', - DepositedBdv = 'depositedBDV', - DewhitelistedTokens = 'dewhitelistedTokens', - Farmer = 'farmer', - FarmerCreationBlock = 'farmer__creationBlock', - FarmerId = 'farmer__id', - GerminatingStalk = 'germinatingStalk', - GrownStalkPerSeason = 'grownStalkPerSeason', - HourlySnapshots = 'hourlySnapshots', - Id = 'id', - LastDailySnapshotDay = 'lastDailySnapshotDay', - LastHourlySnapshotSeason = 'lastHourlySnapshotSeason', - MarketPerformanceSeasonals = 'marketPerformanceSeasonals', - PenalizedStalkConvertDown = 'penalizedStalkConvertDown', - PlantableStalk = 'plantableStalk', - PlantedBeans = 'plantedBeans', - Roots = 'roots', - Stalk = 'stalk', - TotalBdvConvertUp = 'totalBdvConvertUp', - TotalBdvConvertUpBonus = 'totalBdvConvertUpBonus', - UnmigratedL1DepositedBdv = 'unmigratedL1DepositedBdv', - UnpenalizedStalkConvertDown = 'unpenalizedStalkConvertDown', - WhitelistedTokens = 'whitelistedTokens' +export enum SiloOrderBy { + activeFarmers = 'activeFarmers', + allWhitelistedTokens = 'allWhitelistedTokens', + assets = 'assets', + avgConvertDownPenalty = 'avgConvertDownPenalty', + avgGrownStalkPerBdvPerSeason = 'avgGrownStalkPerBdvPerSeason', + beanMints = 'beanMints', + beanToMaxLpGpPerBdvRatio = 'beanToMaxLpGpPerBdvRatio', + beanstalk = 'beanstalk', + beanstalk__fertilizer1155 = 'beanstalk__fertilizer1155', + beanstalk__id = 'beanstalk__id', + beanstalk__lastSeason = 'beanstalk__lastSeason', + beanstalk__token = 'beanstalk__token', + bonusStalkConvertUp = 'bonusStalkConvertUp', + convertDownPenalty = 'convertDownPenalty', + cropRatio = 'cropRatio', + dailySnapshots = 'dailySnapshots', + depositedBDV = 'depositedBDV', + dewhitelistedTokens = 'dewhitelistedTokens', + farmer = 'farmer', + farmer__creationBlock = 'farmer__creationBlock', + farmer__id = 'farmer__id', + farmer__refereeCount = 'farmer__refereeCount', + farmer__totalReferralRewardPodsReceived = 'farmer__totalReferralRewardPodsReceived', + germinatingStalk = 'germinatingStalk', + grownStalkPerSeason = 'grownStalkPerSeason', + hourlySnapshots = 'hourlySnapshots', + id = 'id', + lastDailySnapshotDay = 'lastDailySnapshotDay', + lastHourlySnapshotSeason = 'lastHourlySnapshotSeason', + marketPerformanceSeasonals = 'marketPerformanceSeasonals', + penalizedStalkConvertDown = 'penalizedStalkConvertDown', + plantableStalk = 'plantableStalk', + plantedBeans = 'plantedBeans', + roots = 'roots', + stalk = 'stalk', + totalBdvConvertUp = 'totalBdvConvertUp', + totalBdvConvertUpBonus = 'totalBdvConvertUpBonus', + unmigratedL1DepositedBdv = 'unmigratedL1DepositedBdv', + unpenalizedStalkConvertDown = 'unpenalizedStalkConvertDown', + whitelistedTokens = 'whitelistedTokens' } -export type Subscription = { - __typename?: 'Subscription'; - /** Access to subgraph metadata */ - _meta?: Maybe<_Meta_>; - beanstalk?: Maybe; - beanstalks: Array; - chop?: Maybe; - chops: Array; - farmer?: Maybe; - farmers: Array; - fertilizer?: Maybe; - fertilizerBalance?: Maybe; - fertilizerBalances: Array; - fertilizerToken?: Maybe; - fertilizerTokens: Array; - fertilizerYield?: Maybe; - fertilizerYields: Array; - fertilizers: Array; - field?: Maybe; - fieldDailySnapshot?: Maybe; - fieldDailySnapshots: Array; - fieldHourlySnapshot?: Maybe; - fieldHourlySnapshots: Array; - fields: Array; - gaugesInfo?: Maybe; - gaugesInfoDailySnapshot?: Maybe; - gaugesInfoDailySnapshots: Array; - gaugesInfoHourlySnapshot?: Maybe; - gaugesInfoHourlySnapshots: Array; - gaugesInfos: Array; - germinating?: Maybe; - germinatings: Array; - marketPerformanceSeasonal?: Maybe; - marketPerformanceSeasonals: Array; - marketplaceEvent?: Maybe; - marketplaceEvents: Array; - plot?: Maybe; - plots: Array; - podFill?: Maybe; - podFills: Array; - podListing?: Maybe; - podListingCancelled?: Maybe; - podListingCancelleds: Array; - podListingCreated?: Maybe; - podListingCreateds: Array; - podListingFilled?: Maybe; - podListingFilleds: Array; - podListings: Array; - podMarketplace?: Maybe; - podMarketplaceDailySnapshot?: Maybe; - podMarketplaceDailySnapshots: Array; - podMarketplaceHourlySnapshot?: Maybe; - podMarketplaceHourlySnapshots: Array; - podMarketplaces: Array; - podOrder?: Maybe; - podOrderCancelled?: Maybe; - podOrderCancelleds: Array; - podOrderCreated?: Maybe; - podOrderCreateds: Array; - podOrderFilled?: Maybe; - podOrderFilleds: Array; - podOrders: Array; - prevFarmerGerminatingEvent?: Maybe; - prevFarmerGerminatingEvents: Array; - season?: Maybe; - seasons: Array; - silo?: Maybe; - siloAsset?: Maybe; - siloAssetDailySnapshot?: Maybe; - siloAssetDailySnapshots: Array; - siloAssetHourlySnapshot?: Maybe; - siloAssetHourlySnapshots: Array; - siloAssets: Array; - siloDailySnapshot?: Maybe; - siloDailySnapshots: Array; - siloDeposit?: Maybe; - siloDeposits: Array; - siloHourlySnapshot?: Maybe; - siloHourlySnapshots: Array; - siloWithdraw?: Maybe; - siloWithdraws: Array; - siloYield?: Maybe; - siloYields: Array; - silos: Array; - tokenYield?: Maybe; - tokenYields: Array; - tractor?: Maybe; - tractorDailySnapshot?: Maybe; - tractorDailySnapshots: Array; - tractorHourlySnapshot?: Maybe; - tractorHourlySnapshots: Array; - tractorReward?: Maybe; - tractorRewards: Array; - tractors: Array; - unripeToken?: Maybe; - unripeTokenDailySnapshot?: Maybe; - unripeTokenDailySnapshots: Array; - unripeTokenHourlySnapshot?: Maybe; - unripeTokenHourlySnapshots: Array; - unripeTokens: Array; - version?: Maybe; - versions: Array; - wellPlenties: Array; - wellPlenty?: Maybe; - whitelistTokenDailySnapshot?: Maybe; - whitelistTokenDailySnapshots: Array; - whitelistTokenHourlySnapshot?: Maybe; - whitelistTokenHourlySnapshots: Array; - whitelistTokenSetting?: Maybe; - whitelistTokenSettings: Array; - wrappedDepositERC20?: Maybe; - wrappedDepositERC20DailySnapshot?: Maybe; - wrappedDepositERC20DailySnapshots: Array; - wrappedDepositERC20HourlySnapshot?: Maybe; - wrappedDepositERC20HourlySnapshots: Array; - wrappedDepositERC20S: Array; -}; - - -export type Subscription_MetaArgs = { - block?: InputMaybe; -}; - - -export type SubscriptionBeanstalkArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionBeanstalksArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionChopArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionChopsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionFarmerArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionFarmersArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionFertilizerArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionFertilizerBalanceArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionFertilizerBalancesArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionFertilizerTokenArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionFertilizerTokensArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionFertilizerYieldArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionFertilizerYieldsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionFertilizersArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionFieldArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionFieldDailySnapshotArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionFieldDailySnapshotsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionFieldHourlySnapshotArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionFieldHourlySnapshotsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionFieldsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionGaugesInfoArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionGaugesInfoDailySnapshotArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionGaugesInfoDailySnapshotsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionGaugesInfoHourlySnapshotArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionGaugesInfoHourlySnapshotsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionGaugesInfosArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionGerminatingArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionGerminatingsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionMarketPerformanceSeasonalArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionMarketPerformanceSeasonalsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionMarketplaceEventArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionMarketplaceEventsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionPlotArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionPlotsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionPodFillArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionPodFillsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionPodListingArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionPodListingCancelledArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionPodListingCancelledsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionPodListingCreatedArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionPodListingCreatedsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionPodListingFilledArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionPodListingFilledsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionPodListingsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionPodMarketplaceArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionPodMarketplaceDailySnapshotArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionPodMarketplaceDailySnapshotsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionPodMarketplaceHourlySnapshotArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionPodMarketplaceHourlySnapshotsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionPodMarketplacesArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionPodOrderArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionPodOrderCancelledArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionPodOrderCancelledsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionPodOrderCreatedArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionPodOrderCreatedsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionPodOrderFilledArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionPodOrderFilledsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionPodOrdersArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionPrevFarmerGerminatingEventArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionPrevFarmerGerminatingEventsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionSeasonArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionSeasonsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionSiloArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionSiloAssetArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionSiloAssetDailySnapshotArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionSiloAssetDailySnapshotsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionSiloAssetHourlySnapshotArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionSiloAssetHourlySnapshotsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionSiloAssetsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionSiloDailySnapshotArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionSiloDailySnapshotsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionSiloDepositArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionSiloDepositsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionSiloHourlySnapshotArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionSiloHourlySnapshotsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionSiloWithdrawArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionSiloWithdrawsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionSiloYieldArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionSiloYieldsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionSilosArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionTokenYieldArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionTokenYieldsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionTractorArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionTractorDailySnapshotArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionTractorDailySnapshotsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionTractorHourlySnapshotArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionTractorHourlySnapshotsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionTractorRewardArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionTractorRewardsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionTractorsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionUnripeTokenArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionUnripeTokenDailySnapshotArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionUnripeTokenDailySnapshotsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionUnripeTokenHourlySnapshotArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionUnripeTokenHourlySnapshotsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionUnripeTokensArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionVersionArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionVersionsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionWellPlentiesArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionWellPlentyArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionWhitelistTokenDailySnapshotArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionWhitelistTokenDailySnapshotsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionWhitelistTokenHourlySnapshotArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionWhitelistTokenHourlySnapshotsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionWhitelistTokenSettingArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionWhitelistTokenSettingsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionWrappedDepositErc20Args = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionWrappedDepositErc20DailySnapshotArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionWrappedDepositErc20DailySnapshotsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionWrappedDepositErc20HourlySnapshotArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionWrappedDepositErc20HourlySnapshotsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionWrappedDepositErc20SArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - export type TokenYield = { __typename?: 'TokenYield'; /** Bean APY for season */ @@ -11678,10 +10731,10 @@ export type TokenYield = { token: Scalars['Bytes']['output']; }; -export type TokenYield_Filter = { +export type TokenYieldFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe>>; beanAPY?: InputMaybe; beanAPY_gt?: InputMaybe; beanAPY_gte?: InputMaybe; @@ -11708,7 +10761,7 @@ export type TokenYield_Filter = { id_not?: InputMaybe; id_not_contains?: InputMaybe; id_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; season?: InputMaybe; season_gt?: InputMaybe; season_gte?: InputMaybe; @@ -11718,7 +10771,7 @@ export type TokenYield_Filter = { season_not?: InputMaybe; season_not_in?: InputMaybe>; siloYield?: InputMaybe; - siloYield_?: InputMaybe; + siloYield_?: InputMaybe; siloYield_contains?: InputMaybe; siloYield_contains_nocase?: InputMaybe; siloYield_ends_with?: InputMaybe; @@ -11758,21 +10811,21 @@ export type TokenYield_Filter = { token_not_in?: InputMaybe>; }; -export enum TokenYield_OrderBy { - BeanApy = 'beanAPY', - CreatedAt = 'createdAt', - Id = 'id', - Season = 'season', - SiloYield = 'siloYield', - SiloYieldBeansPerSeasonEma = 'siloYield__beansPerSeasonEMA', - SiloYieldBeta = 'siloYield__beta', - SiloYieldCreatedAt = 'siloYield__createdAt', - SiloYieldEmaWindow = 'siloYield__emaWindow', - SiloYieldId = 'siloYield__id', - SiloYieldSeason = 'siloYield__season', - SiloYieldU = 'siloYield__u', - StalkApy = 'stalkAPY', - Token = 'token' +export enum TokenYieldOrderBy { + beanAPY = 'beanAPY', + createdAt = 'createdAt', + id = 'id', + season = 'season', + siloYield = 'siloYield', + siloYield__beansPerSeasonEMA = 'siloYield__beansPerSeasonEMA', + siloYield__beta = 'siloYield__beta', + siloYield__createdAt = 'siloYield__createdAt', + siloYield__emaWindow = 'siloYield__emaWindow', + siloYield__id = 'siloYield__id', + siloYield__season = 'siloYield__season', + siloYield__u = 'siloYield__u', + stalkAPY = 'stalkAPY', + token = 'token' } export type Tractor = { @@ -11798,19 +10851,19 @@ export type Tractor = { export type TractorDailySnapshotsArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; export type TractorHourlySnapshotsArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; export type TractorDailySnapshot = { @@ -11836,10 +10889,10 @@ export type TractorDailySnapshot = { updatedAt: Scalars['BigInt']['output']; }; -export type TractorDailySnapshot_Filter = { +export type TractorDailySnapshotFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe>>; createdAt?: InputMaybe; createdAt_gt?: InputMaybe; createdAt_gte?: InputMaybe; @@ -11880,7 +10933,7 @@ export type TractorDailySnapshot_Filter = { id_lte?: InputMaybe; id_not?: InputMaybe; id_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; season?: InputMaybe; season_gt?: InputMaybe; season_gte?: InputMaybe; @@ -11914,7 +10967,7 @@ export type TractorDailySnapshot_Filter = { totalPosBeanTips_not?: InputMaybe; totalPosBeanTips_not_in?: InputMaybe>; tractor?: InputMaybe; - tractor_?: InputMaybe; + tractor_?: InputMaybe; tractor_contains?: InputMaybe; tractor_contains_nocase?: InputMaybe; tractor_ends_with?: InputMaybe; @@ -11944,24 +10997,24 @@ export type TractorDailySnapshot_Filter = { updatedAt_not_in?: InputMaybe>; }; -export enum TractorDailySnapshot_OrderBy { - CreatedAt = 'createdAt', - DeltaTotalExecutions = 'deltaTotalExecutions', - DeltaTotalNegBeanTips = 'deltaTotalNegBeanTips', - DeltaTotalPosBeanTips = 'deltaTotalPosBeanTips', - Id = 'id', - Season = 'season', - TotalExecutions = 'totalExecutions', - TotalNegBeanTips = 'totalNegBeanTips', - TotalPosBeanTips = 'totalPosBeanTips', - Tractor = 'tractor', - TractorId = 'tractor__id', - TractorLastDailySnapshotDay = 'tractor__lastDailySnapshotDay', - TractorLastHourlySnapshotSeason = 'tractor__lastHourlySnapshotSeason', - TractorTotalExecutions = 'tractor__totalExecutions', - TractorTotalNegBeanTips = 'tractor__totalNegBeanTips', - TractorTotalPosBeanTips = 'tractor__totalPosBeanTips', - UpdatedAt = 'updatedAt' +export enum TractorDailySnapshotOrderBy { + createdAt = 'createdAt', + deltaTotalExecutions = 'deltaTotalExecutions', + deltaTotalNegBeanTips = 'deltaTotalNegBeanTips', + deltaTotalPosBeanTips = 'deltaTotalPosBeanTips', + id = 'id', + season = 'season', + totalExecutions = 'totalExecutions', + totalNegBeanTips = 'totalNegBeanTips', + totalPosBeanTips = 'totalPosBeanTips', + tractor = 'tractor', + tractor__id = 'tractor__id', + tractor__lastDailySnapshotDay = 'tractor__lastDailySnapshotDay', + tractor__lastHourlySnapshotSeason = 'tractor__lastHourlySnapshotSeason', + tractor__totalExecutions = 'tractor__totalExecutions', + tractor__totalNegBeanTips = 'tractor__totalNegBeanTips', + tractor__totalPosBeanTips = 'tractor__totalPosBeanTips', + updatedAt = 'updatedAt' } export type TractorHourlySnapshot = { @@ -11987,10 +11040,10 @@ export type TractorHourlySnapshot = { updatedAt: Scalars['BigInt']['output']; }; -export type TractorHourlySnapshot_Filter = { +export type TractorHourlySnapshotFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe>>; createdAt?: InputMaybe; createdAt_gt?: InputMaybe; createdAt_gte?: InputMaybe; @@ -12031,7 +11084,7 @@ export type TractorHourlySnapshot_Filter = { id_lte?: InputMaybe; id_not?: InputMaybe; id_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; season?: InputMaybe; season_gt?: InputMaybe; season_gte?: InputMaybe; @@ -12065,7 +11118,7 @@ export type TractorHourlySnapshot_Filter = { totalPosBeanTips_not?: InputMaybe; totalPosBeanTips_not_in?: InputMaybe>; tractor?: InputMaybe; - tractor_?: InputMaybe; + tractor_?: InputMaybe; tractor_contains?: InputMaybe; tractor_contains_nocase?: InputMaybe; tractor_ends_with?: InputMaybe; @@ -12095,24 +11148,24 @@ export type TractorHourlySnapshot_Filter = { updatedAt_not_in?: InputMaybe>; }; -export enum TractorHourlySnapshot_OrderBy { - CreatedAt = 'createdAt', - DeltaTotalExecutions = 'deltaTotalExecutions', - DeltaTotalNegBeanTips = 'deltaTotalNegBeanTips', - DeltaTotalPosBeanTips = 'deltaTotalPosBeanTips', - Id = 'id', - Season = 'season', - TotalExecutions = 'totalExecutions', - TotalNegBeanTips = 'totalNegBeanTips', - TotalPosBeanTips = 'totalPosBeanTips', - Tractor = 'tractor', - TractorId = 'tractor__id', - TractorLastDailySnapshotDay = 'tractor__lastDailySnapshotDay', - TractorLastHourlySnapshotSeason = 'tractor__lastHourlySnapshotSeason', - TractorTotalExecutions = 'tractor__totalExecutions', - TractorTotalNegBeanTips = 'tractor__totalNegBeanTips', - TractorTotalPosBeanTips = 'tractor__totalPosBeanTips', - UpdatedAt = 'updatedAt' +export enum TractorHourlySnapshotOrderBy { + createdAt = 'createdAt', + deltaTotalExecutions = 'deltaTotalExecutions', + deltaTotalNegBeanTips = 'deltaTotalNegBeanTips', + deltaTotalPosBeanTips = 'deltaTotalPosBeanTips', + id = 'id', + season = 'season', + totalExecutions = 'totalExecutions', + totalNegBeanTips = 'totalNegBeanTips', + totalPosBeanTips = 'totalPosBeanTips', + tractor = 'tractor', + tractor__id = 'tractor__id', + tractor__lastDailySnapshotDay = 'tractor__lastDailySnapshotDay', + tractor__lastHourlySnapshotSeason = 'tractor__lastHourlySnapshotSeason', + tractor__totalExecutions = 'tractor__totalExecutions', + tractor__totalNegBeanTips = 'tractor__totalNegBeanTips', + tractor__totalPosBeanTips = 'tractor__totalPosBeanTips', + updatedAt = 'updatedAt' } export type TractorReward = { @@ -12139,12 +11192,12 @@ export type TractorReward = { rewardType: Scalars['Int']['output']; }; -export type TractorReward_Filter = { +export type TractorRewardFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe>>; farmer?: InputMaybe; - farmer_?: InputMaybe; + farmer_?: InputMaybe; farmer_contains?: InputMaybe; farmer_contains_nocase?: InputMaybe; farmer_ends_with?: InputMaybe; @@ -12196,7 +11249,7 @@ export type TractorReward_Filter = { operatorPosAmount_lte?: InputMaybe; operatorPosAmount_not?: InputMaybe; operatorPosAmount_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; publisherExecutions?: InputMaybe; publisherExecutions_gt?: InputMaybe; publisherExecutions_gte?: InputMaybe; @@ -12241,27 +11294,29 @@ export type TractorReward_Filter = { rewardType_not_in?: InputMaybe>; }; -export enum TractorReward_OrderBy { - Farmer = 'farmer', - FarmerCreationBlock = 'farmer__creationBlock', - FarmerId = 'farmer__id', - Id = 'id', - OperatorExecutions = 'operatorExecutions', - OperatorNegAmount = 'operatorNegAmount', - OperatorPosAmount = 'operatorPosAmount', - PublisherExecutions = 'publisherExecutions', - PublisherNegAmount = 'publisherNegAmount', - PublisherPosAmount = 'publisherPosAmount', - RewardToken = 'rewardToken', - RewardType = 'rewardType' +export enum TractorRewardOrderBy { + farmer = 'farmer', + farmer__creationBlock = 'farmer__creationBlock', + farmer__id = 'farmer__id', + farmer__refereeCount = 'farmer__refereeCount', + farmer__totalReferralRewardPodsReceived = 'farmer__totalReferralRewardPodsReceived', + id = 'id', + operatorExecutions = 'operatorExecutions', + operatorNegAmount = 'operatorNegAmount', + operatorPosAmount = 'operatorPosAmount', + publisherExecutions = 'publisherExecutions', + publisherNegAmount = 'publisherNegAmount', + publisherPosAmount = 'publisherPosAmount', + rewardToken = 'rewardToken', + rewardType = 'rewardType' } -export type Tractor_Filter = { +export type TractorFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - and?: InputMaybe>>; - dailySnapshots_?: InputMaybe; - hourlySnapshots_?: InputMaybe; + and?: InputMaybe>>; + dailySnapshots_?: InputMaybe; + hourlySnapshots_?: InputMaybe; id?: InputMaybe; id_gt?: InputMaybe; id_gte?: InputMaybe; @@ -12286,7 +11341,7 @@ export type Tractor_Filter = { lastHourlySnapshotSeason_lte?: InputMaybe; lastHourlySnapshotSeason_not?: InputMaybe; lastHourlySnapshotSeason_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; totalExecutions?: InputMaybe; totalExecutions_gt?: InputMaybe; totalExecutions_gte?: InputMaybe; @@ -12313,15 +11368,15 @@ export type Tractor_Filter = { totalPosBeanTips_not_in?: InputMaybe>; }; -export enum Tractor_OrderBy { - DailySnapshots = 'dailySnapshots', - HourlySnapshots = 'hourlySnapshots', - Id = 'id', - LastDailySnapshotDay = 'lastDailySnapshotDay', - LastHourlySnapshotSeason = 'lastHourlySnapshotSeason', - TotalExecutions = 'totalExecutions', - TotalNegBeanTips = 'totalNegBeanTips', - TotalPosBeanTips = 'totalPosBeanTips' +export enum TractorOrderBy { + dailySnapshots = 'dailySnapshots', + hourlySnapshots = 'hourlySnapshots', + id = 'id', + lastDailySnapshotDay = 'lastDailySnapshotDay', + lastHourlySnapshotSeason = 'lastHourlySnapshotSeason', + totalExecutions = 'totalExecutions', + totalNegBeanTips = 'totalNegBeanTips', + totalPosBeanTips = 'totalPosBeanTips' } export type UnripeToken = { @@ -12363,19 +11418,19 @@ export type UnripeToken = { export type UnripeTokenDailySnapshotsArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; export type UnripeTokenHourlySnapshotsArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; export type UnripeTokenDailySnapshot = { @@ -12428,7 +11483,7 @@ export type UnripeTokenDailySnapshot = { updatedAt: Scalars['BigInt']['output']; }; -export type UnripeTokenDailySnapshot_Filter = { +export type UnripeTokenDailySnapshotFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; amountUnderlyingOne?: InputMaybe; @@ -12439,7 +11494,7 @@ export type UnripeTokenDailySnapshot_Filter = { amountUnderlyingOne_lte?: InputMaybe; amountUnderlyingOne_not?: InputMaybe; amountUnderlyingOne_not_in?: InputMaybe>; - and?: InputMaybe>>; + and?: InputMaybe>>; bdvUnderlyingOne?: InputMaybe; bdvUnderlyingOne_gt?: InputMaybe; bdvUnderlyingOne_gte?: InputMaybe; @@ -12572,7 +11627,7 @@ export type UnripeTokenDailySnapshot_Filter = { id_lte?: InputMaybe; id_not?: InputMaybe; id_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; recapPercent?: InputMaybe; recapPercent_gt?: InputMaybe; recapPercent_gte?: InputMaybe; @@ -12622,7 +11677,7 @@ export type UnripeTokenDailySnapshot_Filter = { totalUnderlying_not?: InputMaybe; totalUnderlying_not_in?: InputMaybe>; underlyingToken?: InputMaybe; - underlyingToken_?: InputMaybe; + underlyingToken_?: InputMaybe; underlyingToken_contains?: InputMaybe; underlyingToken_contains_nocase?: InputMaybe; underlyingToken_ends_with?: InputMaybe; @@ -12643,7 +11698,7 @@ export type UnripeTokenDailySnapshot_Filter = { underlyingToken_starts_with?: InputMaybe; underlyingToken_starts_with_nocase?: InputMaybe; unripeToken?: InputMaybe; - unripeToken_?: InputMaybe; + unripeToken_?: InputMaybe; unripeToken_contains?: InputMaybe; unripeToken_contains_nocase?: InputMaybe; unripeToken_ends_with?: InputMaybe; @@ -12673,60 +11728,60 @@ export type UnripeTokenDailySnapshot_Filter = { updatedAt_not_in?: InputMaybe>; }; -export enum UnripeTokenDailySnapshot_OrderBy { - AmountUnderlyingOne = 'amountUnderlyingOne', - BdvUnderlyingOne = 'bdvUnderlyingOne', - ChopRate = 'chopRate', - ChoppableAmountOne = 'choppableAmountOne', - ChoppableBdvOne = 'choppableBdvOne', - CreatedAt = 'createdAt', - DeltaAmountUnderlyingOne = 'deltaAmountUnderlyingOne', - DeltaBdvUnderlyingOne = 'deltaBdvUnderlyingOne', - DeltaChopRate = 'deltaChopRate', - DeltaChoppableAmountOne = 'deltaChoppableAmountOne', - DeltaChoppableBdvOne = 'deltaChoppableBdvOne', - DeltaRecapPercent = 'deltaRecapPercent', - DeltaTotalChoppedAmount = 'deltaTotalChoppedAmount', - DeltaTotalChoppedBdv = 'deltaTotalChoppedBdv', - DeltaTotalChoppedBdvReceived = 'deltaTotalChoppedBdvReceived', - DeltaTotalUnderlying = 'deltaTotalUnderlying', - DeltaUnderlyingToken = 'deltaUnderlyingToken', - Id = 'id', - RecapPercent = 'recapPercent', - Season = 'season', - TotalChoppedAmount = 'totalChoppedAmount', - TotalChoppedBdv = 'totalChoppedBdv', - TotalChoppedBdvReceived = 'totalChoppedBdvReceived', - TotalUnderlying = 'totalUnderlying', - UnderlyingToken = 'underlyingToken', - UnderlyingTokenDecimals = 'underlyingToken__decimals', - UnderlyingTokenGaugePoints = 'underlyingToken__gaugePoints', - UnderlyingTokenId = 'underlyingToken__id', - UnderlyingTokenIsGaugeEnabled = 'underlyingToken__isGaugeEnabled', - UnderlyingTokenLastDailySnapshotDay = 'underlyingToken__lastDailySnapshotDay', - UnderlyingTokenLastHourlySnapshotSeason = 'underlyingToken__lastHourlySnapshotSeason', - UnderlyingTokenMilestoneSeason = 'underlyingToken__milestoneSeason', - UnderlyingTokenOptimalPercentDepositedBdv = 'underlyingToken__optimalPercentDepositedBdv', - UnderlyingTokenSelector = 'underlyingToken__selector', - UnderlyingTokenStalkEarnedPerSeason = 'underlyingToken__stalkEarnedPerSeason', - UnderlyingTokenStalkIssuedPerBdv = 'underlyingToken__stalkIssuedPerBdv', - UnderlyingTokenStemTip = 'underlyingToken__stemTip', - UnderlyingTokenUpdatedAt = 'underlyingToken__updatedAt', - UnripeToken = 'unripeToken', - UnripeTokenAmountUnderlyingOne = 'unripeToken__amountUnderlyingOne', - UnripeTokenBdvUnderlyingOne = 'unripeToken__bdvUnderlyingOne', - UnripeTokenChopRate = 'unripeToken__chopRate', - UnripeTokenChoppableAmountOne = 'unripeToken__choppableAmountOne', - UnripeTokenChoppableBdvOne = 'unripeToken__choppableBdvOne', - UnripeTokenId = 'unripeToken__id', - UnripeTokenLastDailySnapshotDay = 'unripeToken__lastDailySnapshotDay', - UnripeTokenLastHourlySnapshotSeason = 'unripeToken__lastHourlySnapshotSeason', - UnripeTokenRecapPercent = 'unripeToken__recapPercent', - UnripeTokenTotalChoppedAmount = 'unripeToken__totalChoppedAmount', - UnripeTokenTotalChoppedBdv = 'unripeToken__totalChoppedBdv', - UnripeTokenTotalChoppedBdvReceived = 'unripeToken__totalChoppedBdvReceived', - UnripeTokenTotalUnderlying = 'unripeToken__totalUnderlying', - UpdatedAt = 'updatedAt' +export enum UnripeTokenDailySnapshotOrderBy { + amountUnderlyingOne = 'amountUnderlyingOne', + bdvUnderlyingOne = 'bdvUnderlyingOne', + chopRate = 'chopRate', + choppableAmountOne = 'choppableAmountOne', + choppableBdvOne = 'choppableBdvOne', + createdAt = 'createdAt', + deltaAmountUnderlyingOne = 'deltaAmountUnderlyingOne', + deltaBdvUnderlyingOne = 'deltaBdvUnderlyingOne', + deltaChopRate = 'deltaChopRate', + deltaChoppableAmountOne = 'deltaChoppableAmountOne', + deltaChoppableBdvOne = 'deltaChoppableBdvOne', + deltaRecapPercent = 'deltaRecapPercent', + deltaTotalChoppedAmount = 'deltaTotalChoppedAmount', + deltaTotalChoppedBdv = 'deltaTotalChoppedBdv', + deltaTotalChoppedBdvReceived = 'deltaTotalChoppedBdvReceived', + deltaTotalUnderlying = 'deltaTotalUnderlying', + deltaUnderlyingToken = 'deltaUnderlyingToken', + id = 'id', + recapPercent = 'recapPercent', + season = 'season', + totalChoppedAmount = 'totalChoppedAmount', + totalChoppedBdv = 'totalChoppedBdv', + totalChoppedBdvReceived = 'totalChoppedBdvReceived', + totalUnderlying = 'totalUnderlying', + underlyingToken = 'underlyingToken', + underlyingToken__decimals = 'underlyingToken__decimals', + underlyingToken__gaugePoints = 'underlyingToken__gaugePoints', + underlyingToken__id = 'underlyingToken__id', + underlyingToken__isGaugeEnabled = 'underlyingToken__isGaugeEnabled', + underlyingToken__lastDailySnapshotDay = 'underlyingToken__lastDailySnapshotDay', + underlyingToken__lastHourlySnapshotSeason = 'underlyingToken__lastHourlySnapshotSeason', + underlyingToken__milestoneSeason = 'underlyingToken__milestoneSeason', + underlyingToken__optimalPercentDepositedBdv = 'underlyingToken__optimalPercentDepositedBdv', + underlyingToken__selector = 'underlyingToken__selector', + underlyingToken__stalkEarnedPerSeason = 'underlyingToken__stalkEarnedPerSeason', + underlyingToken__stalkIssuedPerBdv = 'underlyingToken__stalkIssuedPerBdv', + underlyingToken__stemTip = 'underlyingToken__stemTip', + underlyingToken__updatedAt = 'underlyingToken__updatedAt', + unripeToken = 'unripeToken', + unripeToken__amountUnderlyingOne = 'unripeToken__amountUnderlyingOne', + unripeToken__bdvUnderlyingOne = 'unripeToken__bdvUnderlyingOne', + unripeToken__chopRate = 'unripeToken__chopRate', + unripeToken__choppableAmountOne = 'unripeToken__choppableAmountOne', + unripeToken__choppableBdvOne = 'unripeToken__choppableBdvOne', + unripeToken__id = 'unripeToken__id', + unripeToken__lastDailySnapshotDay = 'unripeToken__lastDailySnapshotDay', + unripeToken__lastHourlySnapshotSeason = 'unripeToken__lastHourlySnapshotSeason', + unripeToken__recapPercent = 'unripeToken__recapPercent', + unripeToken__totalChoppedAmount = 'unripeToken__totalChoppedAmount', + unripeToken__totalChoppedBdv = 'unripeToken__totalChoppedBdv', + unripeToken__totalChoppedBdvReceived = 'unripeToken__totalChoppedBdvReceived', + unripeToken__totalUnderlying = 'unripeToken__totalUnderlying', + updatedAt = 'updatedAt' } export type UnripeTokenHourlySnapshot = { @@ -12779,7 +11834,7 @@ export type UnripeTokenHourlySnapshot = { updatedAt: Scalars['BigInt']['output']; }; -export type UnripeTokenHourlySnapshot_Filter = { +export type UnripeTokenHourlySnapshotFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; amountUnderlyingOne?: InputMaybe; @@ -12790,7 +11845,7 @@ export type UnripeTokenHourlySnapshot_Filter = { amountUnderlyingOne_lte?: InputMaybe; amountUnderlyingOne_not?: InputMaybe; amountUnderlyingOne_not_in?: InputMaybe>; - and?: InputMaybe>>; + and?: InputMaybe>>; bdvUnderlyingOne?: InputMaybe; bdvUnderlyingOne_gt?: InputMaybe; bdvUnderlyingOne_gte?: InputMaybe; @@ -12923,7 +11978,7 @@ export type UnripeTokenHourlySnapshot_Filter = { id_lte?: InputMaybe; id_not?: InputMaybe; id_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; recapPercent?: InputMaybe; recapPercent_gt?: InputMaybe; recapPercent_gte?: InputMaybe; @@ -12973,7 +12028,7 @@ export type UnripeTokenHourlySnapshot_Filter = { totalUnderlying_not?: InputMaybe; totalUnderlying_not_in?: InputMaybe>; underlyingToken?: InputMaybe; - underlyingToken_?: InputMaybe; + underlyingToken_?: InputMaybe; underlyingToken_contains?: InputMaybe; underlyingToken_contains_nocase?: InputMaybe; underlyingToken_ends_with?: InputMaybe; @@ -12994,7 +12049,7 @@ export type UnripeTokenHourlySnapshot_Filter = { underlyingToken_starts_with?: InputMaybe; underlyingToken_starts_with_nocase?: InputMaybe; unripeToken?: InputMaybe; - unripeToken_?: InputMaybe; + unripeToken_?: InputMaybe; unripeToken_contains?: InputMaybe; unripeToken_contains_nocase?: InputMaybe; unripeToken_ends_with?: InputMaybe; @@ -13024,63 +12079,63 @@ export type UnripeTokenHourlySnapshot_Filter = { updatedAt_not_in?: InputMaybe>; }; -export enum UnripeTokenHourlySnapshot_OrderBy { - AmountUnderlyingOne = 'amountUnderlyingOne', - BdvUnderlyingOne = 'bdvUnderlyingOne', - ChopRate = 'chopRate', - ChoppableAmountOne = 'choppableAmountOne', - ChoppableBdvOne = 'choppableBdvOne', - CreatedAt = 'createdAt', - DeltaAmountUnderlyingOne = 'deltaAmountUnderlyingOne', - DeltaBdvUnderlyingOne = 'deltaBdvUnderlyingOne', - DeltaChopRate = 'deltaChopRate', - DeltaChoppableAmountOne = 'deltaChoppableAmountOne', - DeltaChoppableBdvOne = 'deltaChoppableBdvOne', - DeltaRecapPercent = 'deltaRecapPercent', - DeltaTotalChoppedAmount = 'deltaTotalChoppedAmount', - DeltaTotalChoppedBdv = 'deltaTotalChoppedBdv', - DeltaTotalChoppedBdvReceived = 'deltaTotalChoppedBdvReceived', - DeltaTotalUnderlying = 'deltaTotalUnderlying', - DeltaUnderlyingToken = 'deltaUnderlyingToken', - Id = 'id', - RecapPercent = 'recapPercent', - Season = 'season', - TotalChoppedAmount = 'totalChoppedAmount', - TotalChoppedBdv = 'totalChoppedBdv', - TotalChoppedBdvReceived = 'totalChoppedBdvReceived', - TotalUnderlying = 'totalUnderlying', - UnderlyingToken = 'underlyingToken', - UnderlyingTokenDecimals = 'underlyingToken__decimals', - UnderlyingTokenGaugePoints = 'underlyingToken__gaugePoints', - UnderlyingTokenId = 'underlyingToken__id', - UnderlyingTokenIsGaugeEnabled = 'underlyingToken__isGaugeEnabled', - UnderlyingTokenLastDailySnapshotDay = 'underlyingToken__lastDailySnapshotDay', - UnderlyingTokenLastHourlySnapshotSeason = 'underlyingToken__lastHourlySnapshotSeason', - UnderlyingTokenMilestoneSeason = 'underlyingToken__milestoneSeason', - UnderlyingTokenOptimalPercentDepositedBdv = 'underlyingToken__optimalPercentDepositedBdv', - UnderlyingTokenSelector = 'underlyingToken__selector', - UnderlyingTokenStalkEarnedPerSeason = 'underlyingToken__stalkEarnedPerSeason', - UnderlyingTokenStalkIssuedPerBdv = 'underlyingToken__stalkIssuedPerBdv', - UnderlyingTokenStemTip = 'underlyingToken__stemTip', - UnderlyingTokenUpdatedAt = 'underlyingToken__updatedAt', - UnripeToken = 'unripeToken', - UnripeTokenAmountUnderlyingOne = 'unripeToken__amountUnderlyingOne', - UnripeTokenBdvUnderlyingOne = 'unripeToken__bdvUnderlyingOne', - UnripeTokenChopRate = 'unripeToken__chopRate', - UnripeTokenChoppableAmountOne = 'unripeToken__choppableAmountOne', - UnripeTokenChoppableBdvOne = 'unripeToken__choppableBdvOne', - UnripeTokenId = 'unripeToken__id', - UnripeTokenLastDailySnapshotDay = 'unripeToken__lastDailySnapshotDay', - UnripeTokenLastHourlySnapshotSeason = 'unripeToken__lastHourlySnapshotSeason', - UnripeTokenRecapPercent = 'unripeToken__recapPercent', - UnripeTokenTotalChoppedAmount = 'unripeToken__totalChoppedAmount', - UnripeTokenTotalChoppedBdv = 'unripeToken__totalChoppedBdv', - UnripeTokenTotalChoppedBdvReceived = 'unripeToken__totalChoppedBdvReceived', - UnripeTokenTotalUnderlying = 'unripeToken__totalUnderlying', - UpdatedAt = 'updatedAt' +export enum UnripeTokenHourlySnapshotOrderBy { + amountUnderlyingOne = 'amountUnderlyingOne', + bdvUnderlyingOne = 'bdvUnderlyingOne', + chopRate = 'chopRate', + choppableAmountOne = 'choppableAmountOne', + choppableBdvOne = 'choppableBdvOne', + createdAt = 'createdAt', + deltaAmountUnderlyingOne = 'deltaAmountUnderlyingOne', + deltaBdvUnderlyingOne = 'deltaBdvUnderlyingOne', + deltaChopRate = 'deltaChopRate', + deltaChoppableAmountOne = 'deltaChoppableAmountOne', + deltaChoppableBdvOne = 'deltaChoppableBdvOne', + deltaRecapPercent = 'deltaRecapPercent', + deltaTotalChoppedAmount = 'deltaTotalChoppedAmount', + deltaTotalChoppedBdv = 'deltaTotalChoppedBdv', + deltaTotalChoppedBdvReceived = 'deltaTotalChoppedBdvReceived', + deltaTotalUnderlying = 'deltaTotalUnderlying', + deltaUnderlyingToken = 'deltaUnderlyingToken', + id = 'id', + recapPercent = 'recapPercent', + season = 'season', + totalChoppedAmount = 'totalChoppedAmount', + totalChoppedBdv = 'totalChoppedBdv', + totalChoppedBdvReceived = 'totalChoppedBdvReceived', + totalUnderlying = 'totalUnderlying', + underlyingToken = 'underlyingToken', + underlyingToken__decimals = 'underlyingToken__decimals', + underlyingToken__gaugePoints = 'underlyingToken__gaugePoints', + underlyingToken__id = 'underlyingToken__id', + underlyingToken__isGaugeEnabled = 'underlyingToken__isGaugeEnabled', + underlyingToken__lastDailySnapshotDay = 'underlyingToken__lastDailySnapshotDay', + underlyingToken__lastHourlySnapshotSeason = 'underlyingToken__lastHourlySnapshotSeason', + underlyingToken__milestoneSeason = 'underlyingToken__milestoneSeason', + underlyingToken__optimalPercentDepositedBdv = 'underlyingToken__optimalPercentDepositedBdv', + underlyingToken__selector = 'underlyingToken__selector', + underlyingToken__stalkEarnedPerSeason = 'underlyingToken__stalkEarnedPerSeason', + underlyingToken__stalkIssuedPerBdv = 'underlyingToken__stalkIssuedPerBdv', + underlyingToken__stemTip = 'underlyingToken__stemTip', + underlyingToken__updatedAt = 'underlyingToken__updatedAt', + unripeToken = 'unripeToken', + unripeToken__amountUnderlyingOne = 'unripeToken__amountUnderlyingOne', + unripeToken__bdvUnderlyingOne = 'unripeToken__bdvUnderlyingOne', + unripeToken__chopRate = 'unripeToken__chopRate', + unripeToken__choppableAmountOne = 'unripeToken__choppableAmountOne', + unripeToken__choppableBdvOne = 'unripeToken__choppableBdvOne', + unripeToken__id = 'unripeToken__id', + unripeToken__lastDailySnapshotDay = 'unripeToken__lastDailySnapshotDay', + unripeToken__lastHourlySnapshotSeason = 'unripeToken__lastHourlySnapshotSeason', + unripeToken__recapPercent = 'unripeToken__recapPercent', + unripeToken__totalChoppedAmount = 'unripeToken__totalChoppedAmount', + unripeToken__totalChoppedBdv = 'unripeToken__totalChoppedBdv', + unripeToken__totalChoppedBdvReceived = 'unripeToken__totalChoppedBdvReceived', + unripeToken__totalUnderlying = 'unripeToken__totalUnderlying', + updatedAt = 'updatedAt' } -export type UnripeToken_Filter = { +export type UnripeTokenFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; amountUnderlyingOne?: InputMaybe; @@ -13091,7 +12146,7 @@ export type UnripeToken_Filter = { amountUnderlyingOne_lte?: InputMaybe; amountUnderlyingOne_not?: InputMaybe; amountUnderlyingOne_not_in?: InputMaybe>; - and?: InputMaybe>>; + and?: InputMaybe>>; bdvUnderlyingOne?: InputMaybe; bdvUnderlyingOne_gt?: InputMaybe; bdvUnderlyingOne_gte?: InputMaybe; @@ -13124,8 +12179,8 @@ export type UnripeToken_Filter = { choppableBdvOne_lte?: InputMaybe; choppableBdvOne_not?: InputMaybe; choppableBdvOne_not_in?: InputMaybe>; - dailySnapshots_?: InputMaybe; - hourlySnapshots_?: InputMaybe; + dailySnapshots_?: InputMaybe; + hourlySnapshots_?: InputMaybe; id?: InputMaybe; id_contains?: InputMaybe; id_gt?: InputMaybe; @@ -13152,7 +12207,7 @@ export type UnripeToken_Filter = { lastHourlySnapshotSeason_lte?: InputMaybe; lastHourlySnapshotSeason_not?: InputMaybe; lastHourlySnapshotSeason_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; recapPercent?: InputMaybe; recapPercent_gt?: InputMaybe; recapPercent_gte?: InputMaybe; @@ -13194,7 +12249,7 @@ export type UnripeToken_Filter = { totalUnderlying_not?: InputMaybe; totalUnderlying_not_in?: InputMaybe>; underlyingToken?: InputMaybe; - underlyingToken_?: InputMaybe; + underlyingToken_?: InputMaybe; underlyingToken_contains?: InputMaybe; underlyingToken_contains_nocase?: InputMaybe; underlyingToken_ends_with?: InputMaybe; @@ -13216,36 +12271,36 @@ export type UnripeToken_Filter = { underlyingToken_starts_with_nocase?: InputMaybe; }; -export enum UnripeToken_OrderBy { - AmountUnderlyingOne = 'amountUnderlyingOne', - BdvUnderlyingOne = 'bdvUnderlyingOne', - ChopRate = 'chopRate', - ChoppableAmountOne = 'choppableAmountOne', - ChoppableBdvOne = 'choppableBdvOne', - DailySnapshots = 'dailySnapshots', - HourlySnapshots = 'hourlySnapshots', - Id = 'id', - LastDailySnapshotDay = 'lastDailySnapshotDay', - LastHourlySnapshotSeason = 'lastHourlySnapshotSeason', - RecapPercent = 'recapPercent', - TotalChoppedAmount = 'totalChoppedAmount', - TotalChoppedBdv = 'totalChoppedBdv', - TotalChoppedBdvReceived = 'totalChoppedBdvReceived', - TotalUnderlying = 'totalUnderlying', - UnderlyingToken = 'underlyingToken', - UnderlyingTokenDecimals = 'underlyingToken__decimals', - UnderlyingTokenGaugePoints = 'underlyingToken__gaugePoints', - UnderlyingTokenId = 'underlyingToken__id', - UnderlyingTokenIsGaugeEnabled = 'underlyingToken__isGaugeEnabled', - UnderlyingTokenLastDailySnapshotDay = 'underlyingToken__lastDailySnapshotDay', - UnderlyingTokenLastHourlySnapshotSeason = 'underlyingToken__lastHourlySnapshotSeason', - UnderlyingTokenMilestoneSeason = 'underlyingToken__milestoneSeason', - UnderlyingTokenOptimalPercentDepositedBdv = 'underlyingToken__optimalPercentDepositedBdv', - UnderlyingTokenSelector = 'underlyingToken__selector', - UnderlyingTokenStalkEarnedPerSeason = 'underlyingToken__stalkEarnedPerSeason', - UnderlyingTokenStalkIssuedPerBdv = 'underlyingToken__stalkIssuedPerBdv', - UnderlyingTokenStemTip = 'underlyingToken__stemTip', - UnderlyingTokenUpdatedAt = 'underlyingToken__updatedAt' +export enum UnripeTokenOrderBy { + amountUnderlyingOne = 'amountUnderlyingOne', + bdvUnderlyingOne = 'bdvUnderlyingOne', + chopRate = 'chopRate', + choppableAmountOne = 'choppableAmountOne', + choppableBdvOne = 'choppableBdvOne', + dailySnapshots = 'dailySnapshots', + hourlySnapshots = 'hourlySnapshots', + id = 'id', + lastDailySnapshotDay = 'lastDailySnapshotDay', + lastHourlySnapshotSeason = 'lastHourlySnapshotSeason', + recapPercent = 'recapPercent', + totalChoppedAmount = 'totalChoppedAmount', + totalChoppedBdv = 'totalChoppedBdv', + totalChoppedBdvReceived = 'totalChoppedBdvReceived', + totalUnderlying = 'totalUnderlying', + underlyingToken = 'underlyingToken', + underlyingToken__decimals = 'underlyingToken__decimals', + underlyingToken__gaugePoints = 'underlyingToken__gaugePoints', + underlyingToken__id = 'underlyingToken__id', + underlyingToken__isGaugeEnabled = 'underlyingToken__isGaugeEnabled', + underlyingToken__lastDailySnapshotDay = 'underlyingToken__lastDailySnapshotDay', + underlyingToken__lastHourlySnapshotSeason = 'underlyingToken__lastHourlySnapshotSeason', + underlyingToken__milestoneSeason = 'underlyingToken__milestoneSeason', + underlyingToken__optimalPercentDepositedBdv = 'underlyingToken__optimalPercentDepositedBdv', + underlyingToken__selector = 'underlyingToken__selector', + underlyingToken__stalkEarnedPerSeason = 'underlyingToken__stalkEarnedPerSeason', + underlyingToken__stalkIssuedPerBdv = 'underlyingToken__stalkIssuedPerBdv', + underlyingToken__stemTip = 'underlyingToken__stemTip', + underlyingToken__updatedAt = 'underlyingToken__updatedAt' } export type Version = { @@ -13262,10 +12317,10 @@ export type Version = { versionNumber: Scalars['String']['output']; }; -export type Version_Filter = { +export type VersionFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe>>; chain?: InputMaybe; chain_contains?: InputMaybe; chain_contains_nocase?: InputMaybe; @@ -13294,7 +12349,7 @@ export type Version_Filter = { id_lte?: InputMaybe; id_not?: InputMaybe; id_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; protocolAddress?: InputMaybe; protocolAddress_contains?: InputMaybe; protocolAddress_gt?: InputMaybe; @@ -13347,12 +12402,12 @@ export type Version_Filter = { versionNumber_starts_with_nocase?: InputMaybe; }; -export enum Version_OrderBy { - Chain = 'chain', - Id = 'id', - ProtocolAddress = 'protocolAddress', - SubgraphName = 'subgraphName', - VersionNumber = 'versionNumber' +export enum VersionOrderBy { + chain = 'chain', + id = 'id', + protocolAddress = 'protocolAddress', + subgraphName = 'subgraphName', + versionNumber = 'versionNumber' } export type WellPlenty = { @@ -13369,10 +12424,10 @@ export type WellPlenty = { unclaimedAmount: Scalars['BigInt']['output']; }; -export type WellPlenty_Filter = { +export type WellPlentyFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe>>; claimedAmount?: InputMaybe; claimedAmount_gt?: InputMaybe; claimedAmount_gte?: InputMaybe; @@ -13389,9 +12444,9 @@ export type WellPlenty_Filter = { id_lte?: InputMaybe; id_not?: InputMaybe; id_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; silo?: InputMaybe; - silo_?: InputMaybe; + silo_?: InputMaybe; silo_contains?: InputMaybe; silo_contains_nocase?: InputMaybe; silo_ends_with?: InputMaybe; @@ -13431,35 +12486,35 @@ export type WellPlenty_Filter = { unclaimedAmount_not_in?: InputMaybe>; }; -export enum WellPlenty_OrderBy { - ClaimedAmount = 'claimedAmount', - Id = 'id', - Silo = 'silo', - SiloActiveFarmers = 'silo__activeFarmers', - SiloAvgConvertDownPenalty = 'silo__avgConvertDownPenalty', - SiloAvgGrownStalkPerBdvPerSeason = 'silo__avgGrownStalkPerBdvPerSeason', - SiloBeanMints = 'silo__beanMints', - SiloBeanToMaxLpGpPerBdvRatio = 'silo__beanToMaxLpGpPerBdvRatio', - SiloBonusStalkConvertUp = 'silo__bonusStalkConvertUp', - SiloConvertDownPenalty = 'silo__convertDownPenalty', - SiloCropRatio = 'silo__cropRatio', - SiloDepositedBdv = 'silo__depositedBDV', - SiloGerminatingStalk = 'silo__germinatingStalk', - SiloGrownStalkPerSeason = 'silo__grownStalkPerSeason', - SiloId = 'silo__id', - SiloLastDailySnapshotDay = 'silo__lastDailySnapshotDay', - SiloLastHourlySnapshotSeason = 'silo__lastHourlySnapshotSeason', - SiloPenalizedStalkConvertDown = 'silo__penalizedStalkConvertDown', - SiloPlantableStalk = 'silo__plantableStalk', - SiloPlantedBeans = 'silo__plantedBeans', - SiloRoots = 'silo__roots', - SiloStalk = 'silo__stalk', - SiloTotalBdvConvertUp = 'silo__totalBdvConvertUp', - SiloTotalBdvConvertUpBonus = 'silo__totalBdvConvertUpBonus', - SiloUnmigratedL1DepositedBdv = 'silo__unmigratedL1DepositedBdv', - SiloUnpenalizedStalkConvertDown = 'silo__unpenalizedStalkConvertDown', - Token = 'token', - UnclaimedAmount = 'unclaimedAmount' +export enum WellPlentyOrderBy { + claimedAmount = 'claimedAmount', + id = 'id', + silo = 'silo', + silo__activeFarmers = 'silo__activeFarmers', + silo__avgConvertDownPenalty = 'silo__avgConvertDownPenalty', + silo__avgGrownStalkPerBdvPerSeason = 'silo__avgGrownStalkPerBdvPerSeason', + silo__beanMints = 'silo__beanMints', + silo__beanToMaxLpGpPerBdvRatio = 'silo__beanToMaxLpGpPerBdvRatio', + silo__bonusStalkConvertUp = 'silo__bonusStalkConvertUp', + silo__convertDownPenalty = 'silo__convertDownPenalty', + silo__cropRatio = 'silo__cropRatio', + silo__depositedBDV = 'silo__depositedBDV', + silo__germinatingStalk = 'silo__germinatingStalk', + silo__grownStalkPerSeason = 'silo__grownStalkPerSeason', + silo__id = 'silo__id', + silo__lastDailySnapshotDay = 'silo__lastDailySnapshotDay', + silo__lastHourlySnapshotSeason = 'silo__lastHourlySnapshotSeason', + silo__penalizedStalkConvertDown = 'silo__penalizedStalkConvertDown', + silo__plantableStalk = 'silo__plantableStalk', + silo__plantedBeans = 'silo__plantedBeans', + silo__roots = 'silo__roots', + silo__stalk = 'silo__stalk', + silo__totalBdvConvertUp = 'silo__totalBdvConvertUp', + silo__totalBdvConvertUpBonus = 'silo__totalBdvConvertUpBonus', + silo__unmigratedL1DepositedBdv = 'silo__unmigratedL1DepositedBdv', + silo__unpenalizedStalkConvertDown = 'silo__unpenalizedStalkConvertDown', + token = 'token', + unclaimedAmount = 'unclaimedAmount' } export type WhitelistTokenDailySnapshot = { @@ -13502,10 +12557,10 @@ export type WhitelistTokenDailySnapshot = { updatedAt: Scalars['BigInt']['output']; }; -export type WhitelistTokenDailySnapshot_Filter = { +export type WhitelistTokenDailySnapshotFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe>>; bdv?: InputMaybe; bdv_gt?: InputMaybe; bdv_gte?: InputMaybe; @@ -13618,7 +12673,7 @@ export type WhitelistTokenDailySnapshot_Filter = { optimalPercentDepositedBdv_lte?: InputMaybe; optimalPercentDepositedBdv_not?: InputMaybe; optimalPercentDepositedBdv_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; season?: InputMaybe; season_gt?: InputMaybe; season_gte?: InputMaybe; @@ -13662,7 +12717,7 @@ export type WhitelistTokenDailySnapshot_Filter = { stemTip_not?: InputMaybe; stemTip_not_in?: InputMaybe>; token?: InputMaybe; - token_?: InputMaybe; + token_?: InputMaybe; token_contains?: InputMaybe; token_contains_nocase?: InputMaybe; token_ends_with?: InputMaybe; @@ -13692,42 +12747,42 @@ export type WhitelistTokenDailySnapshot_Filter = { updatedAt_not_in?: InputMaybe>; }; -export enum WhitelistTokenDailySnapshot_OrderBy { - Bdv = 'bdv', - CreatedAt = 'createdAt', - DeltaBdv = 'deltaBdv', - DeltaGaugePoints = 'deltaGaugePoints', - DeltaIsGaugeEnabled = 'deltaIsGaugeEnabled', - DeltaMilestoneSeason = 'deltaMilestoneSeason', - DeltaOptimalPercentDepositedBdv = 'deltaOptimalPercentDepositedBdv', - DeltaStalkEarnedPerSeason = 'deltaStalkEarnedPerSeason', - DeltaStalkIssuedPerBdv = 'deltaStalkIssuedPerBdv', - DeltaStemTip = 'deltaStemTip', - GaugePoints = 'gaugePoints', - Id = 'id', - IsGaugeEnabled = 'isGaugeEnabled', - MilestoneSeason = 'milestoneSeason', - OptimalPercentDepositedBdv = 'optimalPercentDepositedBdv', - Season = 'season', - Selector = 'selector', - StalkEarnedPerSeason = 'stalkEarnedPerSeason', - StalkIssuedPerBdv = 'stalkIssuedPerBdv', - StemTip = 'stemTip', - Token = 'token', - TokenDecimals = 'token__decimals', - TokenGaugePoints = 'token__gaugePoints', - TokenId = 'token__id', - TokenIsGaugeEnabled = 'token__isGaugeEnabled', - TokenLastDailySnapshotDay = 'token__lastDailySnapshotDay', - TokenLastHourlySnapshotSeason = 'token__lastHourlySnapshotSeason', - TokenMilestoneSeason = 'token__milestoneSeason', - TokenOptimalPercentDepositedBdv = 'token__optimalPercentDepositedBdv', - TokenSelector = 'token__selector', - TokenStalkEarnedPerSeason = 'token__stalkEarnedPerSeason', - TokenStalkIssuedPerBdv = 'token__stalkIssuedPerBdv', - TokenStemTip = 'token__stemTip', - TokenUpdatedAt = 'token__updatedAt', - UpdatedAt = 'updatedAt' +export enum WhitelistTokenDailySnapshotOrderBy { + bdv = 'bdv', + createdAt = 'createdAt', + deltaBdv = 'deltaBdv', + deltaGaugePoints = 'deltaGaugePoints', + deltaIsGaugeEnabled = 'deltaIsGaugeEnabled', + deltaMilestoneSeason = 'deltaMilestoneSeason', + deltaOptimalPercentDepositedBdv = 'deltaOptimalPercentDepositedBdv', + deltaStalkEarnedPerSeason = 'deltaStalkEarnedPerSeason', + deltaStalkIssuedPerBdv = 'deltaStalkIssuedPerBdv', + deltaStemTip = 'deltaStemTip', + gaugePoints = 'gaugePoints', + id = 'id', + isGaugeEnabled = 'isGaugeEnabled', + milestoneSeason = 'milestoneSeason', + optimalPercentDepositedBdv = 'optimalPercentDepositedBdv', + season = 'season', + selector = 'selector', + stalkEarnedPerSeason = 'stalkEarnedPerSeason', + stalkIssuedPerBdv = 'stalkIssuedPerBdv', + stemTip = 'stemTip', + token = 'token', + token__decimals = 'token__decimals', + token__gaugePoints = 'token__gaugePoints', + token__id = 'token__id', + token__isGaugeEnabled = 'token__isGaugeEnabled', + token__lastDailySnapshotDay = 'token__lastDailySnapshotDay', + token__lastHourlySnapshotSeason = 'token__lastHourlySnapshotSeason', + token__milestoneSeason = 'token__milestoneSeason', + token__optimalPercentDepositedBdv = 'token__optimalPercentDepositedBdv', + token__selector = 'token__selector', + token__stalkEarnedPerSeason = 'token__stalkEarnedPerSeason', + token__stalkIssuedPerBdv = 'token__stalkIssuedPerBdv', + token__stemTip = 'token__stemTip', + token__updatedAt = 'token__updatedAt', + updatedAt = 'updatedAt' } export type WhitelistTokenHourlySnapshot = { @@ -13770,10 +12825,10 @@ export type WhitelistTokenHourlySnapshot = { updatedAt: Scalars['BigInt']['output']; }; -export type WhitelistTokenHourlySnapshot_Filter = { +export type WhitelistTokenHourlySnapshotFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe>>; bdv?: InputMaybe; bdv_gt?: InputMaybe; bdv_gte?: InputMaybe; @@ -13886,7 +12941,7 @@ export type WhitelistTokenHourlySnapshot_Filter = { optimalPercentDepositedBdv_lte?: InputMaybe; optimalPercentDepositedBdv_not?: InputMaybe; optimalPercentDepositedBdv_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; season?: InputMaybe; season_gt?: InputMaybe; season_gte?: InputMaybe; @@ -13930,7 +12985,7 @@ export type WhitelistTokenHourlySnapshot_Filter = { stemTip_not?: InputMaybe; stemTip_not_in?: InputMaybe>; token?: InputMaybe; - token_?: InputMaybe; + token_?: InputMaybe; token_contains?: InputMaybe; token_contains_nocase?: InputMaybe; token_ends_with?: InputMaybe; @@ -13960,42 +13015,42 @@ export type WhitelistTokenHourlySnapshot_Filter = { updatedAt_not_in?: InputMaybe>; }; -export enum WhitelistTokenHourlySnapshot_OrderBy { - Bdv = 'bdv', - CreatedAt = 'createdAt', - DeltaBdv = 'deltaBdv', - DeltaGaugePoints = 'deltaGaugePoints', - DeltaIsGaugeEnabled = 'deltaIsGaugeEnabled', - DeltaMilestoneSeason = 'deltaMilestoneSeason', - DeltaOptimalPercentDepositedBdv = 'deltaOptimalPercentDepositedBdv', - DeltaStalkEarnedPerSeason = 'deltaStalkEarnedPerSeason', - DeltaStalkIssuedPerBdv = 'deltaStalkIssuedPerBdv', - DeltaStemTip = 'deltaStemTip', - GaugePoints = 'gaugePoints', - Id = 'id', - IsGaugeEnabled = 'isGaugeEnabled', - MilestoneSeason = 'milestoneSeason', - OptimalPercentDepositedBdv = 'optimalPercentDepositedBdv', - Season = 'season', - Selector = 'selector', - StalkEarnedPerSeason = 'stalkEarnedPerSeason', - StalkIssuedPerBdv = 'stalkIssuedPerBdv', - StemTip = 'stemTip', - Token = 'token', - TokenDecimals = 'token__decimals', - TokenGaugePoints = 'token__gaugePoints', - TokenId = 'token__id', - TokenIsGaugeEnabled = 'token__isGaugeEnabled', - TokenLastDailySnapshotDay = 'token__lastDailySnapshotDay', - TokenLastHourlySnapshotSeason = 'token__lastHourlySnapshotSeason', - TokenMilestoneSeason = 'token__milestoneSeason', - TokenOptimalPercentDepositedBdv = 'token__optimalPercentDepositedBdv', - TokenSelector = 'token__selector', - TokenStalkEarnedPerSeason = 'token__stalkEarnedPerSeason', - TokenStalkIssuedPerBdv = 'token__stalkIssuedPerBdv', - TokenStemTip = 'token__stemTip', - TokenUpdatedAt = 'token__updatedAt', - UpdatedAt = 'updatedAt' +export enum WhitelistTokenHourlySnapshotOrderBy { + bdv = 'bdv', + createdAt = 'createdAt', + deltaBdv = 'deltaBdv', + deltaGaugePoints = 'deltaGaugePoints', + deltaIsGaugeEnabled = 'deltaIsGaugeEnabled', + deltaMilestoneSeason = 'deltaMilestoneSeason', + deltaOptimalPercentDepositedBdv = 'deltaOptimalPercentDepositedBdv', + deltaStalkEarnedPerSeason = 'deltaStalkEarnedPerSeason', + deltaStalkIssuedPerBdv = 'deltaStalkIssuedPerBdv', + deltaStemTip = 'deltaStemTip', + gaugePoints = 'gaugePoints', + id = 'id', + isGaugeEnabled = 'isGaugeEnabled', + milestoneSeason = 'milestoneSeason', + optimalPercentDepositedBdv = 'optimalPercentDepositedBdv', + season = 'season', + selector = 'selector', + stalkEarnedPerSeason = 'stalkEarnedPerSeason', + stalkIssuedPerBdv = 'stalkIssuedPerBdv', + stemTip = 'stemTip', + token = 'token', + token__decimals = 'token__decimals', + token__gaugePoints = 'token__gaugePoints', + token__id = 'token__id', + token__isGaugeEnabled = 'token__isGaugeEnabled', + token__lastDailySnapshotDay = 'token__lastDailySnapshotDay', + token__lastHourlySnapshotSeason = 'token__lastHourlySnapshotSeason', + token__milestoneSeason = 'token__milestoneSeason', + token__optimalPercentDepositedBdv = 'token__optimalPercentDepositedBdv', + token__selector = 'token__selector', + token__stalkEarnedPerSeason = 'token__stalkEarnedPerSeason', + token__stalkIssuedPerBdv = 'token__stalkIssuedPerBdv', + token__stemTip = 'token__stemTip', + token__updatedAt = 'token__updatedAt', + updatedAt = 'updatedAt' } export type WhitelistTokenSetting = { @@ -14035,26 +13090,26 @@ export type WhitelistTokenSetting = { export type WhitelistTokenSettingDailySnapshotsArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; export type WhitelistTokenSettingHourlySnapshotsArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; -export type WhitelistTokenSetting_Filter = { +export type WhitelistTokenSettingFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - and?: InputMaybe>>; - dailySnapshots_?: InputMaybe; + and?: InputMaybe>>; + dailySnapshots_?: InputMaybe; decimals?: InputMaybe; decimals_gt?: InputMaybe; decimals_gte?: InputMaybe; @@ -14071,7 +13126,7 @@ export type WhitelistTokenSetting_Filter = { gaugePoints_lte?: InputMaybe; gaugePoints_not?: InputMaybe; gaugePoints_not_in?: InputMaybe>; - hourlySnapshots_?: InputMaybe; + hourlySnapshots_?: InputMaybe; id?: InputMaybe; id_contains?: InputMaybe; id_gt?: InputMaybe; @@ -14118,7 +13173,7 @@ export type WhitelistTokenSetting_Filter = { optimalPercentDepositedBdv_lte?: InputMaybe; optimalPercentDepositedBdv_not?: InputMaybe; optimalPercentDepositedBdv_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; selector?: InputMaybe; selector_contains?: InputMaybe; selector_gt?: InputMaybe; @@ -14163,22 +13218,22 @@ export type WhitelistTokenSetting_Filter = { updatedAt_not_in?: InputMaybe>; }; -export enum WhitelistTokenSetting_OrderBy { - DailySnapshots = 'dailySnapshots', - Decimals = 'decimals', - GaugePoints = 'gaugePoints', - HourlySnapshots = 'hourlySnapshots', - Id = 'id', - IsGaugeEnabled = 'isGaugeEnabled', - LastDailySnapshotDay = 'lastDailySnapshotDay', - LastHourlySnapshotSeason = 'lastHourlySnapshotSeason', - MilestoneSeason = 'milestoneSeason', - OptimalPercentDepositedBdv = 'optimalPercentDepositedBdv', - Selector = 'selector', - StalkEarnedPerSeason = 'stalkEarnedPerSeason', - StalkIssuedPerBdv = 'stalkIssuedPerBdv', - StemTip = 'stemTip', - UpdatedAt = 'updatedAt' +export enum WhitelistTokenSettingOrderBy { + dailySnapshots = 'dailySnapshots', + decimals = 'decimals', + gaugePoints = 'gaugePoints', + hourlySnapshots = 'hourlySnapshots', + id = 'id', + isGaugeEnabled = 'isGaugeEnabled', + lastDailySnapshotDay = 'lastDailySnapshotDay', + lastHourlySnapshotSeason = 'lastHourlySnapshotSeason', + milestoneSeason = 'milestoneSeason', + optimalPercentDepositedBdv = 'optimalPercentDepositedBdv', + selector = 'selector', + stalkEarnedPerSeason = 'stalkEarnedPerSeason', + stalkIssuedPerBdv = 'stalkIssuedPerBdv', + stemTip = 'stemTip', + updatedAt = 'updatedAt' } export type WrappedDepositErc20 = { @@ -14218,19 +13273,19 @@ export type WrappedDepositErc20 = { export type WrappedDepositErc20DailySnapshotsArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; export type WrappedDepositErc20HourlySnapshotsArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; export type WrappedDepositErc20DailySnapshot = { @@ -14265,10 +13320,10 @@ export type WrappedDepositErc20DailySnapshot = { updatedAt: Scalars['BigInt']['output']; }; -export type WrappedDepositErc20DailySnapshot_Filter = { +export type WrappedDepositErc20DailySnapshotFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe>>; apy7d?: InputMaybe; apy7d_gt?: InputMaybe; apy7d_gte?: InputMaybe; @@ -14333,7 +13388,7 @@ export type WrappedDepositErc20DailySnapshot_Filter = { id_lte?: InputMaybe; id_not?: InputMaybe; id_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; redeemRate?: InputMaybe; redeemRate_gt?: InputMaybe; redeemRate_gte?: InputMaybe; @@ -14351,7 +13406,7 @@ export type WrappedDepositErc20DailySnapshot_Filter = { season_not?: InputMaybe; season_not_in?: InputMaybe>; siloDailySnapshot?: InputMaybe; - siloDailySnapshot_?: InputMaybe; + siloDailySnapshot_?: InputMaybe; siloDailySnapshot_contains?: InputMaybe; siloDailySnapshot_contains_nocase?: InputMaybe; siloDailySnapshot_ends_with?: InputMaybe; @@ -14380,7 +13435,7 @@ export type WrappedDepositErc20DailySnapshot_Filter = { supply_not?: InputMaybe; supply_not_in?: InputMaybe>; token?: InputMaybe; - token_?: InputMaybe; + token_?: InputMaybe; token_contains?: InputMaybe; token_contains_nocase?: InputMaybe; token_ends_with?: InputMaybe; @@ -14410,74 +13465,74 @@ export type WrappedDepositErc20DailySnapshot_Filter = { updatedAt_not_in?: InputMaybe>; }; -export enum WrappedDepositErc20DailySnapshot_OrderBy { - Apy7d = 'apy7d', - Apy24h = 'apy24h', - Apy30d = 'apy30d', - Apy90d = 'apy90d', - CreatedAt = 'createdAt', - DeltaRedeemRate = 'deltaRedeemRate', - DeltaSupply = 'deltaSupply', - Id = 'id', - RedeemRate = 'redeemRate', - Season = 'season', - SiloDailySnapshot = 'siloDailySnapshot', - SiloDailySnapshotActiveFarmers = 'siloDailySnapshot__activeFarmers', - SiloDailySnapshotAvgConvertDownPenalty = 'siloDailySnapshot__avgConvertDownPenalty', - SiloDailySnapshotAvgGrownStalkPerBdvPerSeason = 'siloDailySnapshot__avgGrownStalkPerBdvPerSeason', - SiloDailySnapshotBeanMints = 'siloDailySnapshot__beanMints', - SiloDailySnapshotBeanToMaxLpGpPerBdvRatio = 'siloDailySnapshot__beanToMaxLpGpPerBdvRatio', - SiloDailySnapshotBonusStalkConvertUp = 'siloDailySnapshot__bonusStalkConvertUp', - SiloDailySnapshotCaseId = 'siloDailySnapshot__caseId', - SiloDailySnapshotConvertDownPenalty = 'siloDailySnapshot__convertDownPenalty', - SiloDailySnapshotCreatedAt = 'siloDailySnapshot__createdAt', - SiloDailySnapshotCropRatio = 'siloDailySnapshot__cropRatio', - SiloDailySnapshotDeltaActiveFarmers = 'siloDailySnapshot__deltaActiveFarmers', - SiloDailySnapshotDeltaAvgConvertDownPenalty = 'siloDailySnapshot__deltaAvgConvertDownPenalty', - SiloDailySnapshotDeltaAvgGrownStalkPerBdvPerSeason = 'siloDailySnapshot__deltaAvgGrownStalkPerBdvPerSeason', - SiloDailySnapshotDeltaBeanMints = 'siloDailySnapshot__deltaBeanMints', - SiloDailySnapshotDeltaBeanToMaxLpGpPerBdvRatio = 'siloDailySnapshot__deltaBeanToMaxLpGpPerBdvRatio', - SiloDailySnapshotDeltaBonusStalkConvertUp = 'siloDailySnapshot__deltaBonusStalkConvertUp', - SiloDailySnapshotDeltaConvertDownPenalty = 'siloDailySnapshot__deltaConvertDownPenalty', - SiloDailySnapshotDeltaCropRatio = 'siloDailySnapshot__deltaCropRatio', - SiloDailySnapshotDeltaDepositedBdv = 'siloDailySnapshot__deltaDepositedBDV', - SiloDailySnapshotDeltaGerminatingStalk = 'siloDailySnapshot__deltaGerminatingStalk', - SiloDailySnapshotDeltaGrownStalkPerSeason = 'siloDailySnapshot__deltaGrownStalkPerSeason', - SiloDailySnapshotDeltaPenalizedStalkConvertDown = 'siloDailySnapshot__deltaPenalizedStalkConvertDown', - SiloDailySnapshotDeltaPlantableStalk = 'siloDailySnapshot__deltaPlantableStalk', - SiloDailySnapshotDeltaPlantedBeans = 'siloDailySnapshot__deltaPlantedBeans', - SiloDailySnapshotDeltaRoots = 'siloDailySnapshot__deltaRoots', - SiloDailySnapshotDeltaStalk = 'siloDailySnapshot__deltaStalk', - SiloDailySnapshotDeltaTotalBdvConvertUp = 'siloDailySnapshot__deltaTotalBdvConvertUp', - SiloDailySnapshotDeltaTotalBdvConvertUpBonus = 'siloDailySnapshot__deltaTotalBdvConvertUpBonus', - SiloDailySnapshotDeltaUnpenalizedStalkConvertDown = 'siloDailySnapshot__deltaUnpenalizedStalkConvertDown', - SiloDailySnapshotDepositedBdv = 'siloDailySnapshot__depositedBDV', - SiloDailySnapshotGerminatingStalk = 'siloDailySnapshot__germinatingStalk', - SiloDailySnapshotGrownStalkPerSeason = 'siloDailySnapshot__grownStalkPerSeason', - SiloDailySnapshotId = 'siloDailySnapshot__id', - SiloDailySnapshotPenalizedStalkConvertDown = 'siloDailySnapshot__penalizedStalkConvertDown', - SiloDailySnapshotPlantableStalk = 'siloDailySnapshot__plantableStalk', - SiloDailySnapshotPlantedBeans = 'siloDailySnapshot__plantedBeans', - SiloDailySnapshotRoots = 'siloDailySnapshot__roots', - SiloDailySnapshotSeason = 'siloDailySnapshot__season', - SiloDailySnapshotStalk = 'siloDailySnapshot__stalk', - SiloDailySnapshotTotalBdvConvertUp = 'siloDailySnapshot__totalBdvConvertUp', - SiloDailySnapshotTotalBdvConvertUpBonus = 'siloDailySnapshot__totalBdvConvertUpBonus', - SiloDailySnapshotUnpenalizedStalkConvertDown = 'siloDailySnapshot__unpenalizedStalkConvertDown', - SiloDailySnapshotUpdatedAt = 'siloDailySnapshot__updatedAt', - Supply = 'supply', - Token = 'token', - TokenApy7d = 'token__apy7d', - TokenApy24h = 'token__apy24h', - TokenApy30d = 'token__apy30d', - TokenApy90d = 'token__apy90d', - TokenDecimals = 'token__decimals', - TokenId = 'token__id', - TokenLastDailySnapshotDay = 'token__lastDailySnapshotDay', - TokenLastHourlySnapshotSeason = 'token__lastHourlySnapshotSeason', - TokenRedeemRate = 'token__redeemRate', - TokenSupply = 'token__supply', - UpdatedAt = 'updatedAt' +export enum WrappedDepositErc20DailySnapshotOrderBy { + apy7d = 'apy7d', + apy24h = 'apy24h', + apy30d = 'apy30d', + apy90d = 'apy90d', + createdAt = 'createdAt', + deltaRedeemRate = 'deltaRedeemRate', + deltaSupply = 'deltaSupply', + id = 'id', + redeemRate = 'redeemRate', + season = 'season', + siloDailySnapshot = 'siloDailySnapshot', + siloDailySnapshot__activeFarmers = 'siloDailySnapshot__activeFarmers', + siloDailySnapshot__avgConvertDownPenalty = 'siloDailySnapshot__avgConvertDownPenalty', + siloDailySnapshot__avgGrownStalkPerBdvPerSeason = 'siloDailySnapshot__avgGrownStalkPerBdvPerSeason', + siloDailySnapshot__beanMints = 'siloDailySnapshot__beanMints', + siloDailySnapshot__beanToMaxLpGpPerBdvRatio = 'siloDailySnapshot__beanToMaxLpGpPerBdvRatio', + siloDailySnapshot__bonusStalkConvertUp = 'siloDailySnapshot__bonusStalkConvertUp', + siloDailySnapshot__caseId = 'siloDailySnapshot__caseId', + siloDailySnapshot__convertDownPenalty = 'siloDailySnapshot__convertDownPenalty', + siloDailySnapshot__createdAt = 'siloDailySnapshot__createdAt', + siloDailySnapshot__cropRatio = 'siloDailySnapshot__cropRatio', + siloDailySnapshot__deltaActiveFarmers = 'siloDailySnapshot__deltaActiveFarmers', + siloDailySnapshot__deltaAvgConvertDownPenalty = 'siloDailySnapshot__deltaAvgConvertDownPenalty', + siloDailySnapshot__deltaAvgGrownStalkPerBdvPerSeason = 'siloDailySnapshot__deltaAvgGrownStalkPerBdvPerSeason', + siloDailySnapshot__deltaBeanMints = 'siloDailySnapshot__deltaBeanMints', + siloDailySnapshot__deltaBeanToMaxLpGpPerBdvRatio = 'siloDailySnapshot__deltaBeanToMaxLpGpPerBdvRatio', + siloDailySnapshot__deltaBonusStalkConvertUp = 'siloDailySnapshot__deltaBonusStalkConvertUp', + siloDailySnapshot__deltaConvertDownPenalty = 'siloDailySnapshot__deltaConvertDownPenalty', + siloDailySnapshot__deltaCropRatio = 'siloDailySnapshot__deltaCropRatio', + siloDailySnapshot__deltaDepositedBDV = 'siloDailySnapshot__deltaDepositedBDV', + siloDailySnapshot__deltaGerminatingStalk = 'siloDailySnapshot__deltaGerminatingStalk', + siloDailySnapshot__deltaGrownStalkPerSeason = 'siloDailySnapshot__deltaGrownStalkPerSeason', + siloDailySnapshot__deltaPenalizedStalkConvertDown = 'siloDailySnapshot__deltaPenalizedStalkConvertDown', + siloDailySnapshot__deltaPlantableStalk = 'siloDailySnapshot__deltaPlantableStalk', + siloDailySnapshot__deltaPlantedBeans = 'siloDailySnapshot__deltaPlantedBeans', + siloDailySnapshot__deltaRoots = 'siloDailySnapshot__deltaRoots', + siloDailySnapshot__deltaStalk = 'siloDailySnapshot__deltaStalk', + siloDailySnapshot__deltaTotalBdvConvertUp = 'siloDailySnapshot__deltaTotalBdvConvertUp', + siloDailySnapshot__deltaTotalBdvConvertUpBonus = 'siloDailySnapshot__deltaTotalBdvConvertUpBonus', + siloDailySnapshot__deltaUnpenalizedStalkConvertDown = 'siloDailySnapshot__deltaUnpenalizedStalkConvertDown', + siloDailySnapshot__depositedBDV = 'siloDailySnapshot__depositedBDV', + siloDailySnapshot__germinatingStalk = 'siloDailySnapshot__germinatingStalk', + siloDailySnapshot__grownStalkPerSeason = 'siloDailySnapshot__grownStalkPerSeason', + siloDailySnapshot__id = 'siloDailySnapshot__id', + siloDailySnapshot__penalizedStalkConvertDown = 'siloDailySnapshot__penalizedStalkConvertDown', + siloDailySnapshot__plantableStalk = 'siloDailySnapshot__plantableStalk', + siloDailySnapshot__plantedBeans = 'siloDailySnapshot__plantedBeans', + siloDailySnapshot__roots = 'siloDailySnapshot__roots', + siloDailySnapshot__season = 'siloDailySnapshot__season', + siloDailySnapshot__stalk = 'siloDailySnapshot__stalk', + siloDailySnapshot__totalBdvConvertUp = 'siloDailySnapshot__totalBdvConvertUp', + siloDailySnapshot__totalBdvConvertUpBonus = 'siloDailySnapshot__totalBdvConvertUpBonus', + siloDailySnapshot__unpenalizedStalkConvertDown = 'siloDailySnapshot__unpenalizedStalkConvertDown', + siloDailySnapshot__updatedAt = 'siloDailySnapshot__updatedAt', + supply = 'supply', + token = 'token', + token__apy7d = 'token__apy7d', + token__apy24h = 'token__apy24h', + token__apy30d = 'token__apy30d', + token__apy90d = 'token__apy90d', + token__decimals = 'token__decimals', + token__id = 'token__id', + token__lastDailySnapshotDay = 'token__lastDailySnapshotDay', + token__lastHourlySnapshotSeason = 'token__lastHourlySnapshotSeason', + token__redeemRate = 'token__redeemRate', + token__supply = 'token__supply', + updatedAt = 'updatedAt' } export type WrappedDepositErc20HourlySnapshot = { @@ -14512,10 +13567,10 @@ export type WrappedDepositErc20HourlySnapshot = { updatedAt: Scalars['BigInt']['output']; }; -export type WrappedDepositErc20HourlySnapshot_Filter = { +export type WrappedDepositErc20HourlySnapshotFilter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe>>; apy7d?: InputMaybe; apy7d_gt?: InputMaybe; apy7d_gte?: InputMaybe; @@ -14580,7 +13635,7 @@ export type WrappedDepositErc20HourlySnapshot_Filter = { id_lte?: InputMaybe; id_not?: InputMaybe; id_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; redeemRate?: InputMaybe; redeemRate_gt?: InputMaybe; redeemRate_gte?: InputMaybe; @@ -14598,7 +13653,7 @@ export type WrappedDepositErc20HourlySnapshot_Filter = { season_not?: InputMaybe; season_not_in?: InputMaybe>; siloHourlySnapshot?: InputMaybe; - siloHourlySnapshot_?: InputMaybe; + siloHourlySnapshot_?: InputMaybe; siloHourlySnapshot_contains?: InputMaybe; siloHourlySnapshot_contains_nocase?: InputMaybe; siloHourlySnapshot_ends_with?: InputMaybe; @@ -14627,7 +13682,7 @@ export type WrappedDepositErc20HourlySnapshot_Filter = { supply_not?: InputMaybe; supply_not_in?: InputMaybe>; token?: InputMaybe; - token_?: InputMaybe; + token_?: InputMaybe; token_contains?: InputMaybe; token_contains_nocase?: InputMaybe; token_ends_with?: InputMaybe; @@ -14657,80 +13712,80 @@ export type WrappedDepositErc20HourlySnapshot_Filter = { updatedAt_not_in?: InputMaybe>; }; -export enum WrappedDepositErc20HourlySnapshot_OrderBy { - Apy7d = 'apy7d', - Apy24h = 'apy24h', - Apy30d = 'apy30d', - Apy90d = 'apy90d', - CreatedAt = 'createdAt', - DeltaRedeemRate = 'deltaRedeemRate', - DeltaSupply = 'deltaSupply', - Id = 'id', - RedeemRate = 'redeemRate', - Season = 'season', - SiloHourlySnapshot = 'siloHourlySnapshot', - SiloHourlySnapshotActiveFarmers = 'siloHourlySnapshot__activeFarmers', - SiloHourlySnapshotAvgConvertDownPenalty = 'siloHourlySnapshot__avgConvertDownPenalty', - SiloHourlySnapshotAvgGrownStalkPerBdvPerSeason = 'siloHourlySnapshot__avgGrownStalkPerBdvPerSeason', - SiloHourlySnapshotBeanMints = 'siloHourlySnapshot__beanMints', - SiloHourlySnapshotBeanToMaxLpGpPerBdvRatio = 'siloHourlySnapshot__beanToMaxLpGpPerBdvRatio', - SiloHourlySnapshotBonusStalkConvertUp = 'siloHourlySnapshot__bonusStalkConvertUp', - SiloHourlySnapshotCaseId = 'siloHourlySnapshot__caseId', - SiloHourlySnapshotConvertDownPenalty = 'siloHourlySnapshot__convertDownPenalty', - SiloHourlySnapshotCreatedAt = 'siloHourlySnapshot__createdAt', - SiloHourlySnapshotCropRatio = 'siloHourlySnapshot__cropRatio', - SiloHourlySnapshotDeltaActiveFarmers = 'siloHourlySnapshot__deltaActiveFarmers', - SiloHourlySnapshotDeltaAvgConvertDownPenalty = 'siloHourlySnapshot__deltaAvgConvertDownPenalty', - SiloHourlySnapshotDeltaAvgGrownStalkPerBdvPerSeason = 'siloHourlySnapshot__deltaAvgGrownStalkPerBdvPerSeason', - SiloHourlySnapshotDeltaBeanMints = 'siloHourlySnapshot__deltaBeanMints', - SiloHourlySnapshotDeltaBeanToMaxLpGpPerBdvRatio = 'siloHourlySnapshot__deltaBeanToMaxLpGpPerBdvRatio', - SiloHourlySnapshotDeltaBonusStalkConvertUp = 'siloHourlySnapshot__deltaBonusStalkConvertUp', - SiloHourlySnapshotDeltaConvertDownPenalty = 'siloHourlySnapshot__deltaConvertDownPenalty', - SiloHourlySnapshotDeltaCropRatio = 'siloHourlySnapshot__deltaCropRatio', - SiloHourlySnapshotDeltaDepositedBdv = 'siloHourlySnapshot__deltaDepositedBDV', - SiloHourlySnapshotDeltaGerminatingStalk = 'siloHourlySnapshot__deltaGerminatingStalk', - SiloHourlySnapshotDeltaGrownStalkPerSeason = 'siloHourlySnapshot__deltaGrownStalkPerSeason', - SiloHourlySnapshotDeltaPenalizedStalkConvertDown = 'siloHourlySnapshot__deltaPenalizedStalkConvertDown', - SiloHourlySnapshotDeltaPlantableStalk = 'siloHourlySnapshot__deltaPlantableStalk', - SiloHourlySnapshotDeltaPlantedBeans = 'siloHourlySnapshot__deltaPlantedBeans', - SiloHourlySnapshotDeltaRoots = 'siloHourlySnapshot__deltaRoots', - SiloHourlySnapshotDeltaStalk = 'siloHourlySnapshot__deltaStalk', - SiloHourlySnapshotDeltaTotalBdvConvertUp = 'siloHourlySnapshot__deltaTotalBdvConvertUp', - SiloHourlySnapshotDeltaTotalBdvConvertUpBonus = 'siloHourlySnapshot__deltaTotalBdvConvertUpBonus', - SiloHourlySnapshotDeltaUnpenalizedStalkConvertDown = 'siloHourlySnapshot__deltaUnpenalizedStalkConvertDown', - SiloHourlySnapshotDepositedBdv = 'siloHourlySnapshot__depositedBDV', - SiloHourlySnapshotGerminatingStalk = 'siloHourlySnapshot__germinatingStalk', - SiloHourlySnapshotGrownStalkPerSeason = 'siloHourlySnapshot__grownStalkPerSeason', - SiloHourlySnapshotId = 'siloHourlySnapshot__id', - SiloHourlySnapshotPenalizedStalkConvertDown = 'siloHourlySnapshot__penalizedStalkConvertDown', - SiloHourlySnapshotPlantableStalk = 'siloHourlySnapshot__plantableStalk', - SiloHourlySnapshotPlantedBeans = 'siloHourlySnapshot__plantedBeans', - SiloHourlySnapshotRoots = 'siloHourlySnapshot__roots', - SiloHourlySnapshotSeason = 'siloHourlySnapshot__season', - SiloHourlySnapshotStalk = 'siloHourlySnapshot__stalk', - SiloHourlySnapshotTotalBdvConvertUp = 'siloHourlySnapshot__totalBdvConvertUp', - SiloHourlySnapshotTotalBdvConvertUpBonus = 'siloHourlySnapshot__totalBdvConvertUpBonus', - SiloHourlySnapshotUnpenalizedStalkConvertDown = 'siloHourlySnapshot__unpenalizedStalkConvertDown', - SiloHourlySnapshotUpdatedAt = 'siloHourlySnapshot__updatedAt', - Supply = 'supply', - Token = 'token', - TokenApy7d = 'token__apy7d', - TokenApy24h = 'token__apy24h', - TokenApy30d = 'token__apy30d', - TokenApy90d = 'token__apy90d', - TokenDecimals = 'token__decimals', - TokenId = 'token__id', - TokenLastDailySnapshotDay = 'token__lastDailySnapshotDay', - TokenLastHourlySnapshotSeason = 'token__lastHourlySnapshotSeason', - TokenRedeemRate = 'token__redeemRate', - TokenSupply = 'token__supply', - UpdatedAt = 'updatedAt' +export enum WrappedDepositErc20HourlySnapshotOrderBy { + apy7d = 'apy7d', + apy24h = 'apy24h', + apy30d = 'apy30d', + apy90d = 'apy90d', + createdAt = 'createdAt', + deltaRedeemRate = 'deltaRedeemRate', + deltaSupply = 'deltaSupply', + id = 'id', + redeemRate = 'redeemRate', + season = 'season', + siloHourlySnapshot = 'siloHourlySnapshot', + siloHourlySnapshot__activeFarmers = 'siloHourlySnapshot__activeFarmers', + siloHourlySnapshot__avgConvertDownPenalty = 'siloHourlySnapshot__avgConvertDownPenalty', + siloHourlySnapshot__avgGrownStalkPerBdvPerSeason = 'siloHourlySnapshot__avgGrownStalkPerBdvPerSeason', + siloHourlySnapshot__beanMints = 'siloHourlySnapshot__beanMints', + siloHourlySnapshot__beanToMaxLpGpPerBdvRatio = 'siloHourlySnapshot__beanToMaxLpGpPerBdvRatio', + siloHourlySnapshot__bonusStalkConvertUp = 'siloHourlySnapshot__bonusStalkConvertUp', + siloHourlySnapshot__caseId = 'siloHourlySnapshot__caseId', + siloHourlySnapshot__convertDownPenalty = 'siloHourlySnapshot__convertDownPenalty', + siloHourlySnapshot__createdAt = 'siloHourlySnapshot__createdAt', + siloHourlySnapshot__cropRatio = 'siloHourlySnapshot__cropRatio', + siloHourlySnapshot__deltaActiveFarmers = 'siloHourlySnapshot__deltaActiveFarmers', + siloHourlySnapshot__deltaAvgConvertDownPenalty = 'siloHourlySnapshot__deltaAvgConvertDownPenalty', + siloHourlySnapshot__deltaAvgGrownStalkPerBdvPerSeason = 'siloHourlySnapshot__deltaAvgGrownStalkPerBdvPerSeason', + siloHourlySnapshot__deltaBeanMints = 'siloHourlySnapshot__deltaBeanMints', + siloHourlySnapshot__deltaBeanToMaxLpGpPerBdvRatio = 'siloHourlySnapshot__deltaBeanToMaxLpGpPerBdvRatio', + siloHourlySnapshot__deltaBonusStalkConvertUp = 'siloHourlySnapshot__deltaBonusStalkConvertUp', + siloHourlySnapshot__deltaConvertDownPenalty = 'siloHourlySnapshot__deltaConvertDownPenalty', + siloHourlySnapshot__deltaCropRatio = 'siloHourlySnapshot__deltaCropRatio', + siloHourlySnapshot__deltaDepositedBDV = 'siloHourlySnapshot__deltaDepositedBDV', + siloHourlySnapshot__deltaGerminatingStalk = 'siloHourlySnapshot__deltaGerminatingStalk', + siloHourlySnapshot__deltaGrownStalkPerSeason = 'siloHourlySnapshot__deltaGrownStalkPerSeason', + siloHourlySnapshot__deltaPenalizedStalkConvertDown = 'siloHourlySnapshot__deltaPenalizedStalkConvertDown', + siloHourlySnapshot__deltaPlantableStalk = 'siloHourlySnapshot__deltaPlantableStalk', + siloHourlySnapshot__deltaPlantedBeans = 'siloHourlySnapshot__deltaPlantedBeans', + siloHourlySnapshot__deltaRoots = 'siloHourlySnapshot__deltaRoots', + siloHourlySnapshot__deltaStalk = 'siloHourlySnapshot__deltaStalk', + siloHourlySnapshot__deltaTotalBdvConvertUp = 'siloHourlySnapshot__deltaTotalBdvConvertUp', + siloHourlySnapshot__deltaTotalBdvConvertUpBonus = 'siloHourlySnapshot__deltaTotalBdvConvertUpBonus', + siloHourlySnapshot__deltaUnpenalizedStalkConvertDown = 'siloHourlySnapshot__deltaUnpenalizedStalkConvertDown', + siloHourlySnapshot__depositedBDV = 'siloHourlySnapshot__depositedBDV', + siloHourlySnapshot__germinatingStalk = 'siloHourlySnapshot__germinatingStalk', + siloHourlySnapshot__grownStalkPerSeason = 'siloHourlySnapshot__grownStalkPerSeason', + siloHourlySnapshot__id = 'siloHourlySnapshot__id', + siloHourlySnapshot__penalizedStalkConvertDown = 'siloHourlySnapshot__penalizedStalkConvertDown', + siloHourlySnapshot__plantableStalk = 'siloHourlySnapshot__plantableStalk', + siloHourlySnapshot__plantedBeans = 'siloHourlySnapshot__plantedBeans', + siloHourlySnapshot__roots = 'siloHourlySnapshot__roots', + siloHourlySnapshot__season = 'siloHourlySnapshot__season', + siloHourlySnapshot__stalk = 'siloHourlySnapshot__stalk', + siloHourlySnapshot__totalBdvConvertUp = 'siloHourlySnapshot__totalBdvConvertUp', + siloHourlySnapshot__totalBdvConvertUpBonus = 'siloHourlySnapshot__totalBdvConvertUpBonus', + siloHourlySnapshot__unpenalizedStalkConvertDown = 'siloHourlySnapshot__unpenalizedStalkConvertDown', + siloHourlySnapshot__updatedAt = 'siloHourlySnapshot__updatedAt', + supply = 'supply', + token = 'token', + token__apy7d = 'token__apy7d', + token__apy24h = 'token__apy24h', + token__apy30d = 'token__apy30d', + token__apy90d = 'token__apy90d', + token__decimals = 'token__decimals', + token__id = 'token__id', + token__lastDailySnapshotDay = 'token__lastDailySnapshotDay', + token__lastHourlySnapshotSeason = 'token__lastHourlySnapshotSeason', + token__redeemRate = 'token__redeemRate', + token__supply = 'token__supply', + updatedAt = 'updatedAt' } -export type WrappedDepositErc20_Filter = { +export type WrappedDepositErc20Filter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe>>; apy7d?: InputMaybe; apy7d_gt?: InputMaybe; apy7d_gte?: InputMaybe; @@ -14764,7 +13819,7 @@ export type WrappedDepositErc20_Filter = { apy90d_not?: InputMaybe; apy90d_not_in?: InputMaybe>; beanstalk?: InputMaybe; - beanstalk_?: InputMaybe; + beanstalk_?: InputMaybe; beanstalk_contains?: InputMaybe; beanstalk_contains_nocase?: InputMaybe; beanstalk_ends_with?: InputMaybe; @@ -14784,7 +13839,7 @@ export type WrappedDepositErc20_Filter = { beanstalk_not_starts_with_nocase?: InputMaybe; beanstalk_starts_with?: InputMaybe; beanstalk_starts_with_nocase?: InputMaybe; - dailySnapshots_?: InputMaybe; + dailySnapshots_?: InputMaybe; decimals?: InputMaybe; decimals_gt?: InputMaybe; decimals_gte?: InputMaybe; @@ -14793,7 +13848,7 @@ export type WrappedDepositErc20_Filter = { decimals_lte?: InputMaybe; decimals_not?: InputMaybe; decimals_not_in?: InputMaybe>; - hourlySnapshots_?: InputMaybe; + hourlySnapshots_?: InputMaybe; id?: InputMaybe; id_contains?: InputMaybe; id_gt?: InputMaybe; @@ -14820,7 +13875,7 @@ export type WrappedDepositErc20_Filter = { lastHourlySnapshotSeason_lte?: InputMaybe; lastHourlySnapshotSeason_not?: InputMaybe; lastHourlySnapshotSeason_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; redeemRate?: InputMaybe; redeemRate_gt?: InputMaybe; redeemRate_gte?: InputMaybe; @@ -14830,7 +13885,7 @@ export type WrappedDepositErc20_Filter = { redeemRate_not?: InputMaybe; redeemRate_not_in?: InputMaybe>; silo?: InputMaybe; - silo_?: InputMaybe; + silo_?: InputMaybe; silo_contains?: InputMaybe; silo_contains_nocase?: InputMaybe; silo_ends_with?: InputMaybe; @@ -14859,7 +13914,7 @@ export type WrappedDepositErc20_Filter = { supply_not?: InputMaybe; supply_not_in?: InputMaybe>; underlyingAsset?: InputMaybe; - underlyingAsset_?: InputMaybe; + underlyingAsset_?: InputMaybe; underlyingAsset_contains?: InputMaybe; underlyingAsset_contains_nocase?: InputMaybe; underlyingAsset_ends_with?: InputMaybe; @@ -14881,65 +13936,65 @@ export type WrappedDepositErc20_Filter = { underlyingAsset_starts_with_nocase?: InputMaybe; }; -export enum WrappedDepositErc20_OrderBy { - Apy7d = 'apy7d', - Apy24h = 'apy24h', - Apy30d = 'apy30d', - Apy90d = 'apy90d', - Beanstalk = 'beanstalk', - BeanstalkFertilizer1155 = 'beanstalk__fertilizer1155', - BeanstalkId = 'beanstalk__id', - BeanstalkLastSeason = 'beanstalk__lastSeason', - BeanstalkToken = 'beanstalk__token', - DailySnapshots = 'dailySnapshots', - Decimals = 'decimals', - HourlySnapshots = 'hourlySnapshots', - Id = 'id', - LastDailySnapshotDay = 'lastDailySnapshotDay', - LastHourlySnapshotSeason = 'lastHourlySnapshotSeason', - RedeemRate = 'redeemRate', - Silo = 'silo', - SiloActiveFarmers = 'silo__activeFarmers', - SiloAvgConvertDownPenalty = 'silo__avgConvertDownPenalty', - SiloAvgGrownStalkPerBdvPerSeason = 'silo__avgGrownStalkPerBdvPerSeason', - SiloBeanMints = 'silo__beanMints', - SiloBeanToMaxLpGpPerBdvRatio = 'silo__beanToMaxLpGpPerBdvRatio', - SiloBonusStalkConvertUp = 'silo__bonusStalkConvertUp', - SiloConvertDownPenalty = 'silo__convertDownPenalty', - SiloCropRatio = 'silo__cropRatio', - SiloDepositedBdv = 'silo__depositedBDV', - SiloGerminatingStalk = 'silo__germinatingStalk', - SiloGrownStalkPerSeason = 'silo__grownStalkPerSeason', - SiloId = 'silo__id', - SiloLastDailySnapshotDay = 'silo__lastDailySnapshotDay', - SiloLastHourlySnapshotSeason = 'silo__lastHourlySnapshotSeason', - SiloPenalizedStalkConvertDown = 'silo__penalizedStalkConvertDown', - SiloPlantableStalk = 'silo__plantableStalk', - SiloPlantedBeans = 'silo__plantedBeans', - SiloRoots = 'silo__roots', - SiloStalk = 'silo__stalk', - SiloTotalBdvConvertUp = 'silo__totalBdvConvertUp', - SiloTotalBdvConvertUpBonus = 'silo__totalBdvConvertUpBonus', - SiloUnmigratedL1DepositedBdv = 'silo__unmigratedL1DepositedBdv', - SiloUnpenalizedStalkConvertDown = 'silo__unpenalizedStalkConvertDown', - Supply = 'supply', - UnderlyingAsset = 'underlyingAsset', - UnderlyingAssetDecimals = 'underlyingAsset__decimals', - UnderlyingAssetGaugePoints = 'underlyingAsset__gaugePoints', - UnderlyingAssetId = 'underlyingAsset__id', - UnderlyingAssetIsGaugeEnabled = 'underlyingAsset__isGaugeEnabled', - UnderlyingAssetLastDailySnapshotDay = 'underlyingAsset__lastDailySnapshotDay', - UnderlyingAssetLastHourlySnapshotSeason = 'underlyingAsset__lastHourlySnapshotSeason', - UnderlyingAssetMilestoneSeason = 'underlyingAsset__milestoneSeason', - UnderlyingAssetOptimalPercentDepositedBdv = 'underlyingAsset__optimalPercentDepositedBdv', - UnderlyingAssetSelector = 'underlyingAsset__selector', - UnderlyingAssetStalkEarnedPerSeason = 'underlyingAsset__stalkEarnedPerSeason', - UnderlyingAssetStalkIssuedPerBdv = 'underlyingAsset__stalkIssuedPerBdv', - UnderlyingAssetStemTip = 'underlyingAsset__stemTip', - UnderlyingAssetUpdatedAt = 'underlyingAsset__updatedAt' +export enum WrappedDepositErc20OrderBy { + apy7d = 'apy7d', + apy24h = 'apy24h', + apy30d = 'apy30d', + apy90d = 'apy90d', + beanstalk = 'beanstalk', + beanstalk__fertilizer1155 = 'beanstalk__fertilizer1155', + beanstalk__id = 'beanstalk__id', + beanstalk__lastSeason = 'beanstalk__lastSeason', + beanstalk__token = 'beanstalk__token', + dailySnapshots = 'dailySnapshots', + decimals = 'decimals', + hourlySnapshots = 'hourlySnapshots', + id = 'id', + lastDailySnapshotDay = 'lastDailySnapshotDay', + lastHourlySnapshotSeason = 'lastHourlySnapshotSeason', + redeemRate = 'redeemRate', + silo = 'silo', + silo__activeFarmers = 'silo__activeFarmers', + silo__avgConvertDownPenalty = 'silo__avgConvertDownPenalty', + silo__avgGrownStalkPerBdvPerSeason = 'silo__avgGrownStalkPerBdvPerSeason', + silo__beanMints = 'silo__beanMints', + silo__beanToMaxLpGpPerBdvRatio = 'silo__beanToMaxLpGpPerBdvRatio', + silo__bonusStalkConvertUp = 'silo__bonusStalkConvertUp', + silo__convertDownPenalty = 'silo__convertDownPenalty', + silo__cropRatio = 'silo__cropRatio', + silo__depositedBDV = 'silo__depositedBDV', + silo__germinatingStalk = 'silo__germinatingStalk', + silo__grownStalkPerSeason = 'silo__grownStalkPerSeason', + silo__id = 'silo__id', + silo__lastDailySnapshotDay = 'silo__lastDailySnapshotDay', + silo__lastHourlySnapshotSeason = 'silo__lastHourlySnapshotSeason', + silo__penalizedStalkConvertDown = 'silo__penalizedStalkConvertDown', + silo__plantableStalk = 'silo__plantableStalk', + silo__plantedBeans = 'silo__plantedBeans', + silo__roots = 'silo__roots', + silo__stalk = 'silo__stalk', + silo__totalBdvConvertUp = 'silo__totalBdvConvertUp', + silo__totalBdvConvertUpBonus = 'silo__totalBdvConvertUpBonus', + silo__unmigratedL1DepositedBdv = 'silo__unmigratedL1DepositedBdv', + silo__unpenalizedStalkConvertDown = 'silo__unpenalizedStalkConvertDown', + supply = 'supply', + underlyingAsset = 'underlyingAsset', + underlyingAsset__decimals = 'underlyingAsset__decimals', + underlyingAsset__gaugePoints = 'underlyingAsset__gaugePoints', + underlyingAsset__id = 'underlyingAsset__id', + underlyingAsset__isGaugeEnabled = 'underlyingAsset__isGaugeEnabled', + underlyingAsset__lastDailySnapshotDay = 'underlyingAsset__lastDailySnapshotDay', + underlyingAsset__lastHourlySnapshotSeason = 'underlyingAsset__lastHourlySnapshotSeason', + underlyingAsset__milestoneSeason = 'underlyingAsset__milestoneSeason', + underlyingAsset__optimalPercentDepositedBdv = 'underlyingAsset__optimalPercentDepositedBdv', + underlyingAsset__selector = 'underlyingAsset__selector', + underlyingAsset__stalkEarnedPerSeason = 'underlyingAsset__stalkEarnedPerSeason', + underlyingAsset__stalkIssuedPerBdv = 'underlyingAsset__stalkIssuedPerBdv', + underlyingAsset__stemTip = 'underlyingAsset__stemTip', + underlyingAsset__updatedAt = 'underlyingAsset__updatedAt' } -export type _Block_ = { +export type Block = { __typename?: '_Block_'; /** The hash of the block */ hash?: Maybe; @@ -14952,7 +14007,7 @@ export type _Block_ = { }; /** The type for the top-level _meta field */ -export type _Meta_ = { +export type Meta = { __typename?: '_Meta_'; /** * Information about a specific subgraph block. The hash of the block @@ -14961,18 +14016,18 @@ export type _Meta_ = { * and therefore asks for the latest block * */ - block: _Block_; + block: Block; /** The deployment ID */ deployment: Scalars['String']['output']; /** If `true`, the subgraph encountered indexing errors at some past block */ hasIndexingErrors: Scalars['Boolean']['output']; }; -export enum _SubgraphErrorPolicy_ { +export enum SubgraphErrorPolicy { /** Data will be returned even if the subgraph has indexing errors */ - Allow = 'allow', + allow = 'allow', /** If the subgraph has indexing errors, data will be omitted. The default. */ - Deny = 'deny' + deny = 'deny' } export type BeanstalkAdvancedChartQueryVariables = Exact<{ @@ -14981,7 +14036,7 @@ export type BeanstalkAdvancedChartQueryVariables = Exact<{ }>; -export type BeanstalkAdvancedChartQuery = { __typename?: 'Query', seasons: Array<{ __typename?: 'Season', id: string, sunriseBlock: any, rewardBeans: any, price: any, deltaBeans: any, raining: boolean, season: number, createdAt: any }>, fieldHourlySnapshots: Array<{ __typename?: 'FieldHourlySnapshot', id: string, caseId?: any | null, issuedSoil: any, deltaSownBeans: any, sownBeans: any, deltaPodDemand: any, blocksToSoldOutSoil?: any | null, podRate: any, temperature: any, deltaTemperature: any, season: number, cultivationFactor?: any | null, cultivationTemperature?: any | null, harvestableIndex: any, harvestablePods: any, harvestedPods: any, numberOfSowers: number, numberOfSows: number, podIndex: any, realRateOfReturn: any, seasonBlock: any, soil: any, soilSoldOut: boolean, unharvestablePods: any }>, siloHourlySnapshots: Array<{ __typename?: 'SiloHourlySnapshot', id: string, beanToMaxLpGpPerBdvRatio: any, deltaBeanToMaxLpGpPerBdvRatio: any, season: number, stalk: any }> }; +export type BeanstalkAdvancedChartQuery = { __typename?: 'Query', seasons: Array<{ __typename?: 'Season', id: string, sunriseBlock: any, rewardBeans: any, price: any, deltaBeans: any, raining: boolean, season: number, createdAt: any }>, fieldHourlySnapshots: Array<{ __typename?: 'FieldHourlySnapshot', id: string, caseId?: any | null, issuedSoil: any, deltaSownBeans: any, sownBeans: any, deltaPodDemand: any, blocksToSoldOutSoil?: any | null, podRate: any, temperature: any, deltaTemperature: any, season: number, cultivationTemperature?: any | null, harvestableIndex: any, harvestablePods: any, harvestedPods: any, numberOfSowers: number, numberOfSows: number, podIndex: any, realRateOfReturn: any, seasonBlock: any, soil: any, soilSoldOut: boolean, unharvestablePods: any }>, siloHourlySnapshots: Array<{ __typename?: 'SiloHourlySnapshot', id: string, beanToMaxLpGpPerBdvRatio: any, deltaBeanToMaxLpGpPerBdvRatio: any, season: number, stalk: any, cropRatio: any, deltaCropRatio: any }>, gaugesInfoHourlySnapshots: Array<{ __typename?: 'GaugesInfoHourlySnapshot', id: string, g0CultivationFactor?: any | null, g1BlightFactor?: any | null, g1ConvertDownPenalty?: any | null, g2BdvConvertedThisSeason?: any | null, g2BonusStalkPerBdv?: any | null, g2MaxConvertCapacity?: any | null }> }; export type FarmerPlotsQueryVariables = Exact<{ account: Scalars['ID']['input']; @@ -15007,7 +14062,7 @@ export type FieldIssuedSoilQueryVariables = Exact<{ export type FieldIssuedSoilQuery = { __typename?: 'Query', fieldHourlySnapshots: Array<{ __typename?: 'FieldHourlySnapshot', issuedSoil: any, season: number, soil: any }> }; export type FieldSnapshotsQueryVariables = Exact<{ - fieldId: Scalars['Bytes']['input']; + fieldId: Scalars['ID']['input']; first: Scalars['Int']['input']; }>; @@ -15160,11 +14215,11 @@ export type BeanstalkSeasonalWrappedDepositErc20Query = { __typename?: 'Query', export const PodFillFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PodFill"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PodFill"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"placeInLine"}},{"kind":"Field","name":{"kind":"Name","value":"amount"}},{"kind":"Field","name":{"kind":"Name","value":"index"}},{"kind":"Field","name":{"kind":"Name","value":"start"}},{"kind":"Field","name":{"kind":"Name","value":"costInBeans"}},{"kind":"Field","name":{"kind":"Name","value":"fromFarmer"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"toFarmer"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"listing"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"originalAmount"}}]}},{"kind":"Field","name":{"kind":"Name","value":"order"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"beanAmount"}}]}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}}]}}]} as unknown as DocumentNode; export const PodListingFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PodListing"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PodListing"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"farmer"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"historyID"}},{"kind":"Field","name":{"kind":"Name","value":"index"}},{"kind":"Field","name":{"kind":"Name","value":"start"}},{"kind":"Field","name":{"kind":"Name","value":"mode"}},{"kind":"Field","name":{"kind":"Name","value":"pricingType"}},{"kind":"Field","name":{"kind":"Name","value":"pricePerPod"}},{"kind":"Field","name":{"kind":"Name","value":"pricingFunction"}},{"kind":"Field","name":{"kind":"Name","value":"maxHarvestableIndex"}},{"kind":"Field","name":{"kind":"Name","value":"minFillAmount"}},{"kind":"Field","name":{"kind":"Name","value":"originalIndex"}},{"kind":"Field","name":{"kind":"Name","value":"originalPlaceInLine"}},{"kind":"Field","name":{"kind":"Name","value":"originalAmount"}},{"kind":"Field","name":{"kind":"Name","value":"filled"}},{"kind":"Field","name":{"kind":"Name","value":"amount"}},{"kind":"Field","name":{"kind":"Name","value":"remainingAmount"}},{"kind":"Field","name":{"kind":"Name","value":"filledAmount"}},{"kind":"Field","name":{"kind":"Name","value":"fill"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"placeInLine"}}]}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"creationHash"}}]}}]} as unknown as DocumentNode; export const PodOrderFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PodOrder"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PodOrder"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"farmer"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"historyID"}},{"kind":"Field","name":{"kind":"Name","value":"pricingType"}},{"kind":"Field","name":{"kind":"Name","value":"pricePerPod"}},{"kind":"Field","name":{"kind":"Name","value":"pricingFunction"}},{"kind":"Field","name":{"kind":"Name","value":"maxPlaceInLine"}},{"kind":"Field","name":{"kind":"Name","value":"minFillAmount"}},{"kind":"Field","name":{"kind":"Name","value":"beanAmount"}},{"kind":"Field","name":{"kind":"Name","value":"podAmountFilled"}},{"kind":"Field","name":{"kind":"Name","value":"beanAmountFilled"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"creationHash"}}]}}]} as unknown as DocumentNode; -export const BeanstalkAdvancedChartDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"BeanstalkAdvancedChart"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"from"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"to"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"seasons"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"first"},"value":{"kind":"IntValue","value":"1000"}},{"kind":"Argument","name":{"kind":"Name","value":"orderBy"},"value":{"kind":"EnumValue","value":"season"}},{"kind":"Argument","name":{"kind":"Name","value":"orderDirection"},"value":{"kind":"EnumValue","value":"desc"}},{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"season_gte"},"value":{"kind":"Variable","name":{"kind":"Name","value":"from"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"season_lte"},"value":{"kind":"Variable","name":{"kind":"Name","value":"to"}}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"sunriseBlock"}},{"kind":"Field","name":{"kind":"Name","value":"rewardBeans"}},{"kind":"Field","name":{"kind":"Name","value":"price"}},{"kind":"Field","name":{"kind":"Name","value":"deltaBeans"}},{"kind":"Field","name":{"kind":"Name","value":"raining"}},{"kind":"Field","name":{"kind":"Name","value":"season"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"fieldHourlySnapshots"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"first"},"value":{"kind":"IntValue","value":"1000"}},{"kind":"Argument","name":{"kind":"Name","value":"orderBy"},"value":{"kind":"EnumValue","value":"season"}},{"kind":"Argument","name":{"kind":"Name","value":"orderDirection"},"value":{"kind":"EnumValue","value":"desc"}},{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"field"},"value":{"kind":"StringValue","value":"0xd1a0d188e861ed9d15773a2f3574a2e94134ba8f","block":false}},{"kind":"ObjectField","name":{"kind":"Name","value":"season_gte"},"value":{"kind":"Variable","name":{"kind":"Name","value":"from"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"season_lte"},"value":{"kind":"Variable","name":{"kind":"Name","value":"to"}}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"caseId"}},{"kind":"Field","name":{"kind":"Name","value":"issuedSoil"}},{"kind":"Field","name":{"kind":"Name","value":"deltaSownBeans"}},{"kind":"Field","name":{"kind":"Name","value":"sownBeans"}},{"kind":"Field","name":{"kind":"Name","value":"deltaPodDemand"}},{"kind":"Field","name":{"kind":"Name","value":"blocksToSoldOutSoil"}},{"kind":"Field","name":{"kind":"Name","value":"podRate"}},{"kind":"Field","name":{"kind":"Name","value":"temperature"}},{"kind":"Field","name":{"kind":"Name","value":"deltaTemperature"}},{"kind":"Field","name":{"kind":"Name","value":"season"}},{"kind":"Field","name":{"kind":"Name","value":"cultivationFactor"}},{"kind":"Field","name":{"kind":"Name","value":"cultivationTemperature"}},{"kind":"Field","name":{"kind":"Name","value":"harvestableIndex"}},{"kind":"Field","name":{"kind":"Name","value":"harvestablePods"}},{"kind":"Field","name":{"kind":"Name","value":"harvestedPods"}},{"kind":"Field","name":{"kind":"Name","value":"numberOfSowers"}},{"kind":"Field","name":{"kind":"Name","value":"numberOfSows"}},{"kind":"Field","name":{"kind":"Name","value":"podIndex"}},{"kind":"Field","name":{"kind":"Name","value":"realRateOfReturn"}},{"kind":"Field","name":{"kind":"Name","value":"seasonBlock"}},{"kind":"Field","name":{"kind":"Name","value":"soil"}},{"kind":"Field","name":{"kind":"Name","value":"soilSoldOut"}},{"kind":"Field","name":{"kind":"Name","value":"unharvestablePods"}}]}},{"kind":"Field","name":{"kind":"Name","value":"siloHourlySnapshots"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"first"},"value":{"kind":"IntValue","value":"1000"}},{"kind":"Argument","name":{"kind":"Name","value":"orderBy"},"value":{"kind":"EnumValue","value":"season"}},{"kind":"Argument","name":{"kind":"Name","value":"orderDirection"},"value":{"kind":"EnumValue","value":"desc"}},{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"silo"},"value":{"kind":"StringValue","value":"0xd1a0d188e861ed9d15773a2f3574a2e94134ba8f","block":false}},{"kind":"ObjectField","name":{"kind":"Name","value":"season_gte"},"value":{"kind":"Variable","name":{"kind":"Name","value":"from"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"season_lte"},"value":{"kind":"Variable","name":{"kind":"Name","value":"to"}}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"beanToMaxLpGpPerBdvRatio"}},{"kind":"Field","name":{"kind":"Name","value":"deltaBeanToMaxLpGpPerBdvRatio"}},{"kind":"Field","name":{"kind":"Name","value":"season"}},{"kind":"Field","name":{"kind":"Name","value":"stalk"}}]}}]}}]} as unknown as DocumentNode; +export const BeanstalkAdvancedChartDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"BeanstalkAdvancedChart"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"from"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"to"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"seasons"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"first"},"value":{"kind":"IntValue","value":"1000"}},{"kind":"Argument","name":{"kind":"Name","value":"orderBy"},"value":{"kind":"EnumValue","value":"season"}},{"kind":"Argument","name":{"kind":"Name","value":"orderDirection"},"value":{"kind":"EnumValue","value":"desc"}},{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"season_gte"},"value":{"kind":"Variable","name":{"kind":"Name","value":"from"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"season_lte"},"value":{"kind":"Variable","name":{"kind":"Name","value":"to"}}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"sunriseBlock"}},{"kind":"Field","name":{"kind":"Name","value":"rewardBeans"}},{"kind":"Field","name":{"kind":"Name","value":"price"}},{"kind":"Field","name":{"kind":"Name","value":"deltaBeans"}},{"kind":"Field","name":{"kind":"Name","value":"raining"}},{"kind":"Field","name":{"kind":"Name","value":"season"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"fieldHourlySnapshots"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"first"},"value":{"kind":"IntValue","value":"1000"}},{"kind":"Argument","name":{"kind":"Name","value":"orderBy"},"value":{"kind":"EnumValue","value":"season"}},{"kind":"Argument","name":{"kind":"Name","value":"orderDirection"},"value":{"kind":"EnumValue","value":"desc"}},{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"field"},"value":{"kind":"StringValue","value":"0xd1a0d188e861ed9d15773a2f3574a2e94134ba8f","block":false}},{"kind":"ObjectField","name":{"kind":"Name","value":"season_gte"},"value":{"kind":"Variable","name":{"kind":"Name","value":"from"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"season_lte"},"value":{"kind":"Variable","name":{"kind":"Name","value":"to"}}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"caseId"}},{"kind":"Field","name":{"kind":"Name","value":"issuedSoil"}},{"kind":"Field","name":{"kind":"Name","value":"deltaSownBeans"}},{"kind":"Field","name":{"kind":"Name","value":"sownBeans"}},{"kind":"Field","name":{"kind":"Name","value":"deltaPodDemand"}},{"kind":"Field","name":{"kind":"Name","value":"blocksToSoldOutSoil"}},{"kind":"Field","name":{"kind":"Name","value":"podRate"}},{"kind":"Field","name":{"kind":"Name","value":"temperature"}},{"kind":"Field","name":{"kind":"Name","value":"deltaTemperature"}},{"kind":"Field","name":{"kind":"Name","value":"season"}},{"kind":"Field","name":{"kind":"Name","value":"cultivationTemperature"}},{"kind":"Field","name":{"kind":"Name","value":"harvestableIndex"}},{"kind":"Field","name":{"kind":"Name","value":"harvestablePods"}},{"kind":"Field","name":{"kind":"Name","value":"harvestedPods"}},{"kind":"Field","name":{"kind":"Name","value":"numberOfSowers"}},{"kind":"Field","name":{"kind":"Name","value":"numberOfSows"}},{"kind":"Field","name":{"kind":"Name","value":"podIndex"}},{"kind":"Field","name":{"kind":"Name","value":"realRateOfReturn"}},{"kind":"Field","name":{"kind":"Name","value":"seasonBlock"}},{"kind":"Field","name":{"kind":"Name","value":"soil"}},{"kind":"Field","name":{"kind":"Name","value":"soilSoldOut"}},{"kind":"Field","name":{"kind":"Name","value":"unharvestablePods"}}]}},{"kind":"Field","name":{"kind":"Name","value":"siloHourlySnapshots"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"first"},"value":{"kind":"IntValue","value":"1000"}},{"kind":"Argument","name":{"kind":"Name","value":"orderBy"},"value":{"kind":"EnumValue","value":"season"}},{"kind":"Argument","name":{"kind":"Name","value":"orderDirection"},"value":{"kind":"EnumValue","value":"desc"}},{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"silo"},"value":{"kind":"StringValue","value":"0xd1a0d188e861ed9d15773a2f3574a2e94134ba8f","block":false}},{"kind":"ObjectField","name":{"kind":"Name","value":"season_gte"},"value":{"kind":"Variable","name":{"kind":"Name","value":"from"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"season_lte"},"value":{"kind":"Variable","name":{"kind":"Name","value":"to"}}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"beanToMaxLpGpPerBdvRatio"}},{"kind":"Field","name":{"kind":"Name","value":"deltaBeanToMaxLpGpPerBdvRatio"}},{"kind":"Field","name":{"kind":"Name","value":"season"}},{"kind":"Field","name":{"kind":"Name","value":"stalk"}},{"kind":"Field","name":{"kind":"Name","value":"cropRatio"}},{"kind":"Field","name":{"kind":"Name","value":"deltaCropRatio"}}]}},{"kind":"Field","name":{"kind":"Name","value":"gaugesInfoHourlySnapshots"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"first"},"value":{"kind":"IntValue","value":"1000"}},{"kind":"Argument","name":{"kind":"Name","value":"orderBy"},"value":{"kind":"EnumValue","value":"season"}},{"kind":"Argument","name":{"kind":"Name","value":"orderDirection"},"value":{"kind":"EnumValue","value":"desc"}},{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"season_gte"},"value":{"kind":"Variable","name":{"kind":"Name","value":"from"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"season_lte"},"value":{"kind":"Variable","name":{"kind":"Name","value":"to"}}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"g0CultivationFactor"}},{"kind":"Field","name":{"kind":"Name","value":"g1BlightFactor"}},{"kind":"Field","name":{"kind":"Name","value":"g1ConvertDownPenalty"}},{"kind":"Field","name":{"kind":"Name","value":"g2BdvConvertedThisSeason"}},{"kind":"Field","name":{"kind":"Name","value":"g2BonusStalkPerBdv"}},{"kind":"Field","name":{"kind":"Name","value":"g2MaxConvertCapacity"}}]}}]}}]} as unknown as DocumentNode; export const FarmerPlotsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FarmerPlots"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"account"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"farmer"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"account"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"plots"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"first"},"value":{"kind":"IntValue","value":"1000"}},{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"pods_gt"},"value":{"kind":"StringValue","value":"50","block":false}},{"kind":"ObjectField","name":{"kind":"Name","value":"fullyHarvested"},"value":{"kind":"BooleanValue","value":false}}]}},{"kind":"Argument","name":{"kind":"Name","value":"orderBy"},"value":{"kind":"EnumValue","value":"index"}},{"kind":"Argument","name":{"kind":"Name","value":"orderDirection"},"value":{"kind":"EnumValue","value":"asc"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"beansPerPod"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"creationHash"}},{"kind":"Field","name":{"kind":"Name","value":"fullyHarvested"}},{"kind":"Field","name":{"kind":"Name","value":"harvestablePods"}},{"kind":"Field","name":{"kind":"Name","value":"harvestedPods"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"index"}},{"kind":"Field","name":{"kind":"Name","value":"pods"}},{"kind":"Field","name":{"kind":"Name","value":"season"}},{"kind":"Field","name":{"kind":"Name","value":"source"}},{"kind":"Field","name":{"kind":"Name","value":"sourceHash"}},{"kind":"Field","name":{"kind":"Name","value":"preTransferSource"}},{"kind":"Field","name":{"kind":"Name","value":"preTransferOwner"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAtBlock"}},{"kind":"Field","name":{"kind":"Name","value":"listing"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]}}]}}]} as unknown as DocumentNode; export const FarmerSiloBalancesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FarmerSiloBalances"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"account"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"season"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"farmer"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"account"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"deposited"},"name":{"kind":"Name","value":"deposits"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"orderBy"},"value":{"kind":"EnumValue","value":"season"}},{"kind":"Argument","name":{"kind":"Name","value":"orderDirection"},"value":{"kind":"EnumValue","value":"asc"}},{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"depositedAmount_gt"},"value":{"kind":"IntValue","value":"0"}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"season"}},{"kind":"Field","name":{"kind":"Name","value":"stem"}},{"kind":"Field","name":{"kind":"Name","value":"token"}},{"kind":"Field","name":{"kind":"Name","value":"depositedAmount"}},{"kind":"Field","name":{"kind":"Name","value":"depositedBDV"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"withdrawn"},"name":{"kind":"Name","value":"withdraws"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"orderBy"},"value":{"kind":"EnumValue","value":"withdrawSeason"}},{"kind":"Argument","name":{"kind":"Name","value":"orderDirection"},"value":{"kind":"EnumValue","value":"asc"}},{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"claimableSeason_gt"},"value":{"kind":"Variable","name":{"kind":"Name","value":"season"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"claimed"},"value":{"kind":"BooleanValue","value":false}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"season"},"name":{"kind":"Name","value":"withdrawSeason"}},{"kind":"Field","name":{"kind":"Name","value":"token"}},{"kind":"Field","name":{"kind":"Name","value":"amount"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"claimable"},"name":{"kind":"Name","value":"withdraws"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"orderBy"},"value":{"kind":"EnumValue","value":"withdrawSeason"}},{"kind":"Argument","name":{"kind":"Name","value":"orderDirection"},"value":{"kind":"EnumValue","value":"asc"}},{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"claimableSeason_lte"},"value":{"kind":"Variable","name":{"kind":"Name","value":"season"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"claimed"},"value":{"kind":"BooleanValue","value":false}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"season"},"name":{"kind":"Name","value":"withdrawSeason"}},{"kind":"Field","name":{"kind":"Name","value":"token"}},{"kind":"Field","name":{"kind":"Name","value":"amount"}}]}}]}}]}}]} as unknown as DocumentNode; export const FieldIssuedSoilDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"fieldIssuedSoil"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"season"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"field_contains_nocase"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fieldHourlySnapshots"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"first"},"value":{"kind":"IntValue","value":"1"}},{"kind":"Argument","name":{"kind":"Name","value":"orderBy"},"value":{"kind":"EnumValue","value":"season"}},{"kind":"Argument","name":{"kind":"Name","value":"orderDirection"},"value":{"kind":"EnumValue","value":"desc"}},{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"season"},"value":{"kind":"Variable","name":{"kind":"Name","value":"season"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"field_contains_nocase"},"value":{"kind":"Variable","name":{"kind":"Name","value":"field_contains_nocase"}}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"issuedSoil"}},{"kind":"Field","name":{"kind":"Name","value":"season"}},{"kind":"Field","name":{"kind":"Name","value":"soil"}}]}}]}}]} as unknown as DocumentNode; -export const FieldSnapshotsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FieldSnapshots"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fieldId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Bytes"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"first"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fieldHourlySnapshots"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"first"},"value":{"kind":"Variable","name":{"kind":"Name","value":"first"}}},{"kind":"Argument","name":{"kind":"Name","value":"orderBy"},"value":{"kind":"EnumValue","value":"season"}},{"kind":"Argument","name":{"kind":"Name","value":"orderDirection"},"value":{"kind":"EnumValue","value":"desc"}},{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"field_"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fieldId"}}}]}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"blocksToSoldOutSoil"}},{"kind":"Field","name":{"kind":"Name","value":"caseId"}},{"kind":"Field","name":{"kind":"Name","value":"deltaHarvestablePods"}},{"kind":"Field","name":{"kind":"Name","value":"deltaHarvestedPods"}},{"kind":"Field","name":{"kind":"Name","value":"deltaIssuedSoil"}},{"kind":"Field","name":{"kind":"Name","value":"deltaNumberOfSowers"}},{"kind":"Field","name":{"kind":"Name","value":"deltaNumberOfSows"}},{"kind":"Field","name":{"kind":"Name","value":"deltaPodIndex"}},{"kind":"Field","name":{"kind":"Name","value":"deltaPodRate"}},{"kind":"Field","name":{"kind":"Name","value":"deltaRealRateOfReturn"}},{"kind":"Field","name":{"kind":"Name","value":"deltaSoil"}},{"kind":"Field","name":{"kind":"Name","value":"deltaSownBeans"}},{"kind":"Field","name":{"kind":"Name","value":"deltaTemperature"}},{"kind":"Field","name":{"kind":"Name","value":"deltaUnharvestablePods"}},{"kind":"Field","name":{"kind":"Name","value":"harvestablePods"}},{"kind":"Field","name":{"kind":"Name","value":"harvestedPods"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"issuedSoil"}},{"kind":"Field","name":{"kind":"Name","value":"numberOfSowers"}},{"kind":"Field","name":{"kind":"Name","value":"numberOfSows"}},{"kind":"Field","name":{"kind":"Name","value":"podIndex"}},{"kind":"Field","name":{"kind":"Name","value":"podRate"}},{"kind":"Field","name":{"kind":"Name","value":"realRateOfReturn"}},{"kind":"Field","name":{"kind":"Name","value":"season"}},{"kind":"Field","name":{"kind":"Name","value":"seasonBlock"}},{"kind":"Field","name":{"kind":"Name","value":"soil"}},{"kind":"Field","name":{"kind":"Name","value":"soilSoldOut"}},{"kind":"Field","name":{"kind":"Name","value":"sownBeans"}},{"kind":"Field","name":{"kind":"Name","value":"temperature"}},{"kind":"Field","name":{"kind":"Name","value":"unharvestablePods"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]}}]} as unknown as DocumentNode; +export const FieldSnapshotsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FieldSnapshots"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fieldId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"first"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fieldHourlySnapshots"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"first"},"value":{"kind":"Variable","name":{"kind":"Name","value":"first"}}},{"kind":"Argument","name":{"kind":"Name","value":"orderBy"},"value":{"kind":"EnumValue","value":"season"}},{"kind":"Argument","name":{"kind":"Name","value":"orderDirection"},"value":{"kind":"EnumValue","value":"desc"}},{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"field_"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fieldId"}}}]}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"blocksToSoldOutSoil"}},{"kind":"Field","name":{"kind":"Name","value":"caseId"}},{"kind":"Field","name":{"kind":"Name","value":"deltaHarvestablePods"}},{"kind":"Field","name":{"kind":"Name","value":"deltaHarvestedPods"}},{"kind":"Field","name":{"kind":"Name","value":"deltaIssuedSoil"}},{"kind":"Field","name":{"kind":"Name","value":"deltaNumberOfSowers"}},{"kind":"Field","name":{"kind":"Name","value":"deltaNumberOfSows"}},{"kind":"Field","name":{"kind":"Name","value":"deltaPodIndex"}},{"kind":"Field","name":{"kind":"Name","value":"deltaPodRate"}},{"kind":"Field","name":{"kind":"Name","value":"deltaRealRateOfReturn"}},{"kind":"Field","name":{"kind":"Name","value":"deltaSoil"}},{"kind":"Field","name":{"kind":"Name","value":"deltaSownBeans"}},{"kind":"Field","name":{"kind":"Name","value":"deltaTemperature"}},{"kind":"Field","name":{"kind":"Name","value":"deltaUnharvestablePods"}},{"kind":"Field","name":{"kind":"Name","value":"harvestablePods"}},{"kind":"Field","name":{"kind":"Name","value":"harvestedPods"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"issuedSoil"}},{"kind":"Field","name":{"kind":"Name","value":"numberOfSowers"}},{"kind":"Field","name":{"kind":"Name","value":"numberOfSows"}},{"kind":"Field","name":{"kind":"Name","value":"podIndex"}},{"kind":"Field","name":{"kind":"Name","value":"podRate"}},{"kind":"Field","name":{"kind":"Name","value":"realRateOfReturn"}},{"kind":"Field","name":{"kind":"Name","value":"season"}},{"kind":"Field","name":{"kind":"Name","value":"seasonBlock"}},{"kind":"Field","name":{"kind":"Name","value":"soil"}},{"kind":"Field","name":{"kind":"Name","value":"soilSoldOut"}},{"kind":"Field","name":{"kind":"Name","value":"sownBeans"}},{"kind":"Field","name":{"kind":"Name","value":"temperature"}},{"kind":"Field","name":{"kind":"Name","value":"unharvestablePods"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]}}]} as unknown as DocumentNode; export const BeanstalkSeasonsTableDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"BeanstalkSeasonsTable"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"from"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"to"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"seasons"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"first"},"value":{"kind":"IntValue","value":"1000"}},{"kind":"Argument","name":{"kind":"Name","value":"orderBy"},"value":{"kind":"EnumValue","value":"season"}},{"kind":"Argument","name":{"kind":"Name","value":"orderDirection"},"value":{"kind":"EnumValue","value":"desc"}},{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"season_gte"},"value":{"kind":"Variable","name":{"kind":"Name","value":"from"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"season_lte"},"value":{"kind":"Variable","name":{"kind":"Name","value":"to"}}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"sunriseBlock"}},{"kind":"Field","name":{"kind":"Name","value":"rewardBeans"}},{"kind":"Field","name":{"kind":"Name","value":"price"}},{"kind":"Field","name":{"kind":"Name","value":"deltaBeans"}},{"kind":"Field","name":{"kind":"Name","value":"raining"}},{"kind":"Field","name":{"kind":"Name","value":"season"}}]}},{"kind":"Field","name":{"kind":"Name","value":"fieldHourlySnapshots"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"first"},"value":{"kind":"IntValue","value":"1000"}},{"kind":"Argument","name":{"kind":"Name","value":"orderBy"},"value":{"kind":"EnumValue","value":"season"}},{"kind":"Argument","name":{"kind":"Name","value":"orderDirection"},"value":{"kind":"EnumValue","value":"desc"}},{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"field"},"value":{"kind":"StringValue","value":"0xd1a0d188e861ed9d15773a2f3574a2e94134ba8f","block":false}},{"kind":"ObjectField","name":{"kind":"Name","value":"season_gte"},"value":{"kind":"Variable","name":{"kind":"Name","value":"from"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"season_lte"},"value":{"kind":"Variable","name":{"kind":"Name","value":"to"}}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"caseId"}},{"kind":"Field","name":{"kind":"Name","value":"issuedSoil"}},{"kind":"Field","name":{"kind":"Name","value":"deltaSownBeans"}},{"kind":"Field","name":{"kind":"Name","value":"sownBeans"}},{"kind":"Field","name":{"kind":"Name","value":"deltaPodDemand"}},{"kind":"Field","name":{"kind":"Name","value":"blocksToSoldOutSoil"}},{"kind":"Field","name":{"kind":"Name","value":"podRate"}},{"kind":"Field","name":{"kind":"Name","value":"temperature"}},{"kind":"Field","name":{"kind":"Name","value":"deltaTemperature"}},{"kind":"Field","name":{"kind":"Name","value":"season"}}]}},{"kind":"Field","name":{"kind":"Name","value":"siloHourlySnapshots"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"first"},"value":{"kind":"IntValue","value":"1000"}},{"kind":"Argument","name":{"kind":"Name","value":"orderBy"},"value":{"kind":"EnumValue","value":"season"}},{"kind":"Argument","name":{"kind":"Name","value":"orderDirection"},"value":{"kind":"EnumValue","value":"desc"}},{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"silo"},"value":{"kind":"StringValue","value":"0xd1a0d188e861ed9d15773a2f3574a2e94134ba8f","block":false}},{"kind":"ObjectField","name":{"kind":"Name","value":"season_gte"},"value":{"kind":"Variable","name":{"kind":"Name","value":"from"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"season_lte"},"value":{"kind":"Variable","name":{"kind":"Name","value":"to"}}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"beanToMaxLpGpPerBdvRatio"}},{"kind":"Field","name":{"kind":"Name","value":"deltaBeanToMaxLpGpPerBdvRatio"}},{"kind":"Field","name":{"kind":"Name","value":"season"}}]}}]}}]} as unknown as DocumentNode; export const SiloSnapshotsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"SiloSnapshots"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"first"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Bytes"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"siloHourlySnapshots"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"first"},"value":{"kind":"Variable","name":{"kind":"Name","value":"first"}}},{"kind":"Argument","name":{"kind":"Name","value":"orderBy"},"value":{"kind":"EnumValue","value":"season"}},{"kind":"Argument","name":{"kind":"Name","value":"orderDirection"},"value":{"kind":"EnumValue","value":"desc"}},{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"silo_"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}]}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"beanToMaxLpGpPerBdvRatio"}},{"kind":"Field","name":{"kind":"Name","value":"deltaBeanMints"}},{"kind":"Field","name":{"kind":"Name","value":"season"}}]}}]}}]} as unknown as DocumentNode; export const SiloYieldsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"SiloYields"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"siloYields"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"orderBy"},"value":{"kind":"EnumValue","value":"season"}},{"kind":"Argument","name":{"kind":"Name","value":"orderDirection"},"value":{"kind":"EnumValue","value":"desc"}},{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"emaWindow"},"value":{"kind":"EnumValue","value":"ROLLING_30_DAY"}}]}},{"kind":"Argument","name":{"kind":"Name","value":"first"},"value":{"kind":"IntValue","value":"1"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"beansPerSeasonEMA"}},{"kind":"Field","name":{"kind":"Name","value":"beta"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"season"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"u"}},{"kind":"Field","name":{"kind":"Name","value":"whitelistedTokens"}},{"kind":"Field","name":{"kind":"Name","value":"emaWindow"}},{"kind":"Field","name":{"kind":"Name","value":"tokenAPYS"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"beanAPY"}},{"kind":"Field","name":{"kind":"Name","value":"stalkAPY"}},{"kind":"Field","name":{"kind":"Name","value":"season"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"token"}}]}}]}}]}}]} as unknown as DocumentNode; diff --git a/src/hooks/silo/useSiloConvert.ts b/src/hooks/silo/useSiloConvert.ts index 0f39c89a6..698902c47 100644 --- a/src/hooks/silo/useSiloConvert.ts +++ b/src/hooks/silo/useSiloConvert.ts @@ -171,6 +171,7 @@ export function useSiloConvertQuote( target?.address, amountIn, options.isPairWithdrawal ?? false, + options.secondaryAmount?.gt(0) ?? false, slippage, ), [account.address, source.address, target?.address, amountIn, options.isPairWithdrawal, slippage], diff --git a/src/hooks/useWalletImage.ts b/src/hooks/useWalletImage.ts new file mode 100644 index 000000000..507205954 --- /dev/null +++ b/src/hooks/useWalletImage.ts @@ -0,0 +1,45 @@ +import { useEffect, useState } from "react"; + +export interface UseWalletImageReturn { + imageError: boolean; + retryAttempt: number; + handleImageError: () => void; +} + +/** + * Hook for managing wallet/profile image loading with error handling and retry logic + * + * Features: + * - Tracks image loading errors + * - Implements single retry on error + * - Resets state when image URL changes + * + * @param imageUrl - The URL of the image to load (can be string, null, or undefined) + * @returns Image error state, retry attempt count, and error handler + */ +export function useWalletImage(imageUrl?: string | null): UseWalletImageReturn { + const [imageError, setImageError] = useState(false); + const [retryAttempt, setRetryAttempt] = useState(0); + + // Reset error state when image URL changes + useEffect(() => { + setImageError(false); + setRetryAttempt(0); + }, [imageUrl]); + + const handleImageError = () => { + if (retryAttempt === 0) { + // Try once more + setRetryAttempt(1); + } else { + // Give up after one retry + setImageError(true); + } + }; + + return { + imageError, + retryAttempt, + handleImageError, + }; +} diff --git a/src/hooks/wallet/useAutoReconnect.ts b/src/hooks/wallet/useAutoReconnect.ts new file mode 100644 index 000000000..df398eb70 --- /dev/null +++ b/src/hooks/wallet/useAutoReconnect.ts @@ -0,0 +1,90 @@ +import { useEffect, useRef } from "react"; +import { useAccount, useConnect, useConnections } from "wagmi"; + +/** + * Automatically reconnects to previously connected wallets on page refresh + * + * This hook: + * 1. Checks for saved connections from previous session + * 2. Attempts to reconnect to non-Privy connectors + * 3. Checks injected wallets for authorization + * 4. Only attempts reconnection once per session + * + * Must be used inside WagmiProvider + */ +export function useAutoReconnect(): void { + const { isConnected } = useAccount(); + const { connectors, connectAsync, status } = useConnect(); + const connections = useConnections(); + const hasAttemptedReconnect = useRef(false); + + useEffect(() => { + if (hasAttemptedReconnect.current || isConnected || status !== "idle") { + return; + } + + const timeoutId = setTimeout(async () => { + // Double check connection status before attempting + if (isConnected) { + hasAttemptedReconnect.current = true; + return; + } + + // Try to reconnect to saved connection first + if (connections.length > 0) { + const savedConnection = connections[0]; + const connector = connectors.find((c) => c.id === savedConnection.connector.id); + + // Only reconnect to non-Privy connectors (Privy is handled by usePrivySync) + if (connector && connector.id !== "privy" && !connector.id.includes("privy")) { + hasAttemptedReconnect.current = true; + try { + await connectAsync({ connector }); + } catch (error) { + // Ignore "already connected" errors + if (error instanceof Error && error.message.includes("already connected")) { + console.log("useAutoReconnect - Connector already connected, skipping"); + } else { + console.error("useAutoReconnect - Failed to reconnect:", error); + hasAttemptedReconnect.current = false; + } + } + return; + } + } + + // If no saved connection, check for authorized injected wallets + if (typeof window !== "undefined" && window.ethereum) { + const injectedConnectors = connectors.filter((c) => c.type === "injected" && !c.id.includes("privy")); + + for (const connector of injectedConnectors) { + try { + const isAuthorized = await connector.isAuthorized(); + + if (isAuthorized && !hasAttemptedReconnect.current) { + hasAttemptedReconnect.current = true; + try { + await connectAsync({ connector }); + return; + } catch (error) { + // Ignore "already connected" errors + if (error instanceof Error && error.message.includes("already connected")) { + console.log(`useAutoReconnect - ${connector.id} already connected, skipping`); + return; + } + console.error(`useAutoReconnect - Failed to reconnect to ${connector.id}:`, error); + hasAttemptedReconnect.current = false; + } + } + } catch (error) { + console.error(`useAutoReconnect - Error checking authorization for ${connector.id}:`, error); + } + } + } + + hasAttemptedReconnect.current = true; + }, 500); + + return () => clearTimeout(timeoutId); + }, [isConnected, status, connectors, connectAsync, connections]); +} diff --git a/src/hooks/wallet/useChainSelection.ts b/src/hooks/wallet/useChainSelection.ts new file mode 100644 index 000000000..6976db3c0 --- /dev/null +++ b/src/hooks/wallet/useChainSelection.ts @@ -0,0 +1,75 @@ +import { isDev } from "@/utils/utils"; +import { useEffect, useRef, useState } from "react"; +import { useAccount } from "wagmi"; + +export interface UseChainSelectionReturn { + isOpen: boolean; + setIsOpen: (open: boolean) => void; +} + +/** + * Hook for managing chain selection modal state in development mode + * + * Features: + * - Shows chain selection modal after wallet connection in dev mode + * - Tracks connection state to detect new connections + * - Prevents showing modal multiple times for same connection + * - Automatically closes wallet modal when chain selection opens + * + * @param walletModalOpen - Whether the wallet connection modal is currently open + * @param onWalletModalClose - Callback to close the wallet connection modal + * @returns Chain selection state and handlers + */ +export function useChainSelection( + walletModalOpen: boolean, + onWalletModalClose: (open: boolean) => void, +): UseChainSelectionReturn { + const { address, isConnected } = useAccount(); + const [isOpen, setIsOpen] = useState(false); + + const prevAddressRef = useRef<`0x${string}` | undefined>(undefined); + const hasShownForConnectionRef = useRef(false); + + // Reset flag when modal closes or wallet disconnects + useEffect(() => { + if (!walletModalOpen || !address) { + hasShownForConnectionRef.current = false; + } + }, [walletModalOpen, address]); + + // Show chain selection modal after new connection in dev mode + useEffect(() => { + const addressChanged = address && address !== prevAddressRef.current; + const shouldShowChainSelection = + isDev() && walletModalOpen && addressChanged && address && isConnected && !hasShownForConnectionRef.current; + + if (shouldShowChainSelection) { + hasShownForConnectionRef.current = true; + prevAddressRef.current = address; + + setIsOpen(true); + + const timer = setTimeout(() => { + onWalletModalClose(false); + }, 500); + + return () => clearTimeout(timer); + } else if (walletModalOpen && address && isConnected && !isDev()) { + // In production, just close wallet modal + prevAddressRef.current = address; + + const timer = setTimeout(() => { + onWalletModalClose(false); + }, 300); + + return () => clearTimeout(timer); + } else { + prevAddressRef.current = address; + } + }, [address, walletModalOpen, isConnected, onWalletModalClose]); + + return { + isOpen, + setIsOpen, + }; +} diff --git a/src/hooks/wallet/usePrivySync.ts b/src/hooks/wallet/usePrivySync.ts new file mode 100644 index 000000000..e6ba5fad6 --- /dev/null +++ b/src/hooks/wallet/usePrivySync.ts @@ -0,0 +1,90 @@ +import { ANALYTICS_EVENTS } from "@/constants/analytics-events"; +import { trackSimpleEvent } from "@/utils/analytics"; +import { updatePrivyRefs } from "@/utils/privy/privyRefs"; +import { usePrivy, useWallets } from "@privy-io/react-auth"; +import { useEffect, useRef } from "react"; +import { useAccount, useConnect } from "wagmi"; + +/** + * Synchronizes Privy embedded wallet with wagmi connection + * + * This hook: + * 1. Updates global Privy refs when authentication state changes + * 2. Auto-connects Privy embedded wallet to wagmi when authenticated + * 3. Handles connection state synchronization + * + * Must be used inside both PrivyProvider and WagmiProvider + */ +export function usePrivySync(): void { + const wallets = useWallets(); + const { connectors, connectAsync, status } = useConnect(); + const { address: wagmiAddress } = useAccount(); + const { ready: privyReady, authenticated: privyAuthenticated, logout: privyLogout } = usePrivy(); + const hasAttemptedConnect = useRef(false); + + // Normalize wallets array (useWallets can return array or object with wallets property) + const walletsArray = Array.isArray(wallets) ? wallets : wallets?.wallets || []; + const embeddedWallet = walletsArray.find((w) => w.walletClientType === "privy"); + + // Update global Privy refs when wallet or logout state changes + useEffect(() => { + if (embeddedWallet && privyLogout) { + updatePrivyRefs(embeddedWallet, privyLogout); + } else { + updatePrivyRefs(undefined, undefined); + } + }, [embeddedWallet, privyLogout]); + + // Auto-connect Privy embedded wallet to wagmi when authenticated + useEffect(() => { + if (!privyReady || !privyAuthenticated) { + return; + } + + if (!embeddedWallet) { + hasAttemptedConnect.current = false; + return; + } + + // Check if already connected to the same address + if (wagmiAddress) { + if (wagmiAddress.toLowerCase() === embeddedWallet.address.toLowerCase()) { + hasAttemptedConnect.current = true; + return; + } + hasAttemptedConnect.current = false; + } + + if (connectors.length === 0) { + return; + } + + const privyConnector = connectors.find((c) => c.id === "privy"); + + if (!privyConnector) { + hasAttemptedConnect.current = false; + return; + } + + if (status !== "idle" || hasAttemptedConnect.current) { + return; + } + + hasAttemptedConnect.current = true; + + connectAsync({ connector: privyConnector }) + .then(() => { + // Track successful Privy wallet connection + trackSimpleEvent(ANALYTICS_EVENTS.WALLET.CONNECT_SUCCESS, { + wallet_type: "privy", + wallet_name: "Privy Embedded Wallet", + connection_method: "email_social", + source: "auto_sync", + }); + }) + .catch((error) => { + console.error("usePrivySync - Failed to connect:", error); + hasAttemptedConnect.current = false; + }); + }, [embeddedWallet, wagmiAddress, connectAsync, connectors, status, privyReady, privyAuthenticated]); +} diff --git a/src/hooks/wallet/useWalletConnection.ts b/src/hooks/wallet/useWalletConnection.ts new file mode 100644 index 000000000..f635def6f --- /dev/null +++ b/src/hooks/wallet/useWalletConnection.ts @@ -0,0 +1,164 @@ +import { ANALYTICS_EVENTS } from "@/constants/analytics-events"; +import { withTracking } from "@/utils/analytics"; +import { isDev, isLocalhost, isNetlifyPreview, isProd } from "@/utils/utils"; +import { TENDERLY_RPC_URL, baseNetwork as base, tenderlyTestnetNetwork as testnet } from "@/utils/wagmi/chains"; +import { /* isCoinbaseWalletConnector, */ isWalletConnectConnector } from "@/utils/wagmi/connectorFilters"; +import { useCallback, useEffect, useRef, useState } from "react"; +import { useAccount, useConnect } from "wagmi"; +import type { Connector } from "wagmi"; + +export interface UseWalletConnectionOptions { + onSuccess?: () => void; + onError?: (error: Error) => void; +} + +export interface UseWalletConnectionReturn { + connect: (connectorId: string) => Promise; + isPending: boolean; + connectingWalletId: string | null; +} + +//TODO: Fix the Coinbase Wallet reconnect issue and add it as a connector. For reference: https://github.com/wevm/wagmi/issues/4375 + +/** + * Hook for managing wallet connections with analytics and error handling + * + * Features: + * - Connects to wallets with proper chain selection based on environment + * - Tracks analytics events for connections + * - Handles WalletConnect special cases (Coinbase Wallet disabled) + * - Waits for account sync when needed + * - Provides error handling with callbacks + * + * @param options - Configuration options for connection behavior + * @returns Connection function, pending state, and currently connecting wallet ID + */ +export function useWalletConnection(options?: UseWalletConnectionOptions): UseWalletConnectionReturn { + const { onSuccess, onError } = options || {}; + const { connectors, connectAsync, isPending } = useConnect(); + const { address, isConnected, status: accountStatus, chainId } = useAccount(); + const [connectingWalletId, setConnectingWalletId] = useState(null); + + // Use refs to access latest account state in async callbacks + const accountStateRef = useRef({ address, isConnected, accountStatus, chainId }); + + useEffect(() => { + accountStateRef.current = { address, isConnected, accountStatus, chainId }; + }, [address, isConnected, accountStatus, chainId]); + + const connect = useCallback( + async (connectorId: string) => { + const connector = connectors.find((c) => c.id === connectorId); + + if (!connector) { + const error = new Error(`Connector not found: ${connectorId}`); + console.error(error.message); + onError?.(error); + return; + } + + const isWalletConnect = isWalletConnectConnector(connector); + // const isCoinbaseWallet = isCoinbaseWalletConnector(connector); + + setConnectingWalletId(connectorId); + + try { + await withTracking( + ANALYTICS_EVENTS.WALLET.CONNECT_BUTTON_CLICK, + async () => { + // Determine chain ID based on environment + let connectChainId: number | undefined = undefined; + + if (isProd()) { + connectChainId = base.id; + } else if (isNetlifyPreview()) { + connectChainId = !!TENDERLY_RPC_URL ? testnet.id : base.id; + } else if (!isLocalhost()) { + connectChainId = base.id; + } + + // Connect to wallet + await connectAsync({ + connector, + ...(connectChainId ? { chainId: connectChainId } : {}), + }); + + // Wait for account sync if needed (Coinbase Wallet disabled) + const shouldWaitForAccountSync = /* isCoinbaseWallet || */ isDev(); + if (shouldWaitForAccountSync) { + await waitForAccountSync(accountStateRef, connector.name); + } + + // Track successful connection + withTracking(ANALYTICS_EVENTS.WALLET.CONNECT_SUCCESS, () => {}, { + wallet_type: connectorId, + wallet_name: connector.name, + connection_method: isWalletConnect ? "qr_code" : "browser_extension", + source: "wallet_connection_modal", + })(); + }, + { + wallet_type: connectorId, + wallet_name: connector.name, + source: "wallet_connection_modal", + }, + )(); + + onSuccess?.(); + } catch (error) { + const err = error instanceof Error ? error : new Error(String(error)); + console.error(`Connection error for ${connector.name}:`, error); + + // if (isCoinbaseWallet) { + // console.warn("Coinbase Wallet connection failed. Possible reasons:"); + // console.warn("1. Extension not installed"); + // console.warn("2. QR modal couldn't open"); + // console.warn("3. User cancelled connection"); + // } + + onError?.(err); + } finally { + setConnectingWalletId(null); + } + }, + [connectors, connectAsync, onSuccess, onError], + ); + + return { + connect, + isPending, + connectingWalletId, + }; +} + +/** + * Waits for account to be available after connection + * Polls account state with timeout + */ +async function waitForAccountSync( + accountStateRef: React.MutableRefObject<{ + address: `0x${string}` | undefined; + isConnected: boolean; + accountStatus: string; + chainId: number | undefined; + }>, + connectorName: string, +): Promise { + const maxWaitTime = 5000; + const pollInterval = 100; + const startTime = Date.now(); + + while (Date.now() - startTime < maxWaitTime) { + const currentState = accountStateRef.current; + if (currentState.isConnected && currentState.address) { + return; + } + await new Promise((resolve) => setTimeout(resolve, pollInterval)); + } + + const finalState = accountStateRef.current; + if (!finalState.isConnected || !finalState.address) { + console.warn(`${connectorName} account did not sync within timeout`); + console.warn("Current state:", finalState); + } +} diff --git a/src/lib/siloConvert/SiloConvert.ts b/src/lib/siloConvert/SiloConvert.ts index 9173560c8..50c6c9bce 100644 --- a/src/lib/siloConvert/SiloConvert.ts +++ b/src/lib/siloConvert/SiloConvert.ts @@ -6,11 +6,11 @@ import encoders from "@/encoders"; import { PriceContractPriceResult } from "@/encoders/ecosystem/price"; import junctionGte from "@/encoders/junction/junctionGte"; import { AdvancedFarmWorkflow, AdvancedPipeWorkflow } from "@/lib/farm/workflow"; -import { getChainConstant } from "@/utils/chain"; +import { getChainConstant, getOverrideAllowanceStateOverride } from "@/utils/chain"; import { pickCratesMultiple } from "@/utils/convert"; -import { DepositData, Token } from "@/utils/types"; +import { DepositData, FarmFromMode, Token } from "@/utils/types"; import { HashString } from "@/utils/types.generic"; -import { throwIfAborted } from "@/utils/utils"; +import { arrayify, throwIfAborted } from "@/utils/utils"; import { Config } from "@wagmi/core"; import { Address } from "viem"; import { SiloConvertPriceCache } from "./SiloConvert.cache"; @@ -18,7 +18,11 @@ import { MaxConvertResult, SiloConvertMaxConvertQuoter } from "./SiloConvert.max import { SiloConvertRoute, SiloConvertStrategizer } from "./siloConvert.strategizer"; import { ConvertStrategyQuote } from "./strategies/core"; import { SiloConvertType } from "./strategies/core"; -import { DefaultConvertStrategy, SiloConvertLP2MainWithdrawPairStrategy } from "./strategies/implementations"; +import { + DefaultConvertStrategy, + SiloConvertLP2MainWithdrawPairStrategy, + SiloConvertMain2LPDepositPairStrategy, +} from "./strategies/implementations"; import { ConversionQuotationError, SiloConvertError, SimulationError } from "./strategies/validation/SiloConvertErrors"; import { SiloConvertContext } from "./types"; import { decodeConvertResults } from "./utils"; @@ -109,6 +113,8 @@ export interface ConvertResultStruct { export type SiloConvertQuoteOptions = { isPairWithdrawal?: boolean; + secondaryAmount?: TV; + fromMode?: FarmFromMode; }; export interface SiloConvertSummary { @@ -251,21 +257,54 @@ export class SiloConvert { const routes = await this.strategizer.strategize(source, target, amountIn, options).catch((e) => { logError("[SiloConvert/quote] FAILED to strategize: ", e); - throw new ConversionQuotationError(e instanceof Error ? e.message : "Failed to strategize", { - source, - target, - }); + throw e; }); + throwIfAborted(signal); - // Check if aborted after async operation + const quotedRoutes = await this.handleQuoteRoutes(routes, farmerDeposits, slippage, signal).catch((e) => { + logError("[SiloConvert/quote] FAILED to quote routes: ", e); + throw e; + }); throwIfAborted(signal); - const quotedRoutes = await Promise.all( + const simulationsRawResults = await this.handleSimulateQuotedRoutes(quotedRoutes); + throwIfAborted(signal); + + console.debug("[SiloConvert/quote] post simulation results: ", { + quotedRoutes, + simulationsRawResults, + }); + + const datas = this.handleDecodeRouteAndPriceResults(quotedRoutes, simulationsRawResults); + + console.debug("[SiloConvert/quote] ------------------"); + console.debug("[SiloConvert/quote] quoting finished!!!", datas, "\n"); + console.debug("[SiloConvert/quote] ------------------"); + + return datas; + } + + /** + * Handles the quoting of the routes. + * @param routes - The routes to quote + * @param farmerDeposits - The farmer deposits to select crates from + * @param slippage - The slippage to use for the quote + * @param signal - The signal to abort the quote + * @returns The decoded quoted routes + */ + private async handleQuoteRoutes( + routes: SiloConvertRoute[], + farmerDeposits: DepositData[], + slippage: number, + signal?: AbortSignal, + ) { + return Promise.all( routes.map(async (route, routeIndex) => { const advFarm = new AdvancedFarmWorkflow(this.context.chainId, this.context.wagmiConfig); const quotes: ConvertStrategyQuote[] = []; const crates = this.selectCratesFromRoute(route, farmerDeposits); + const decodeIndicies: number[] = []; // Has to be run sequentially. for (const [i, strategy] of route.strategies.entries()) { @@ -279,11 +318,21 @@ export class SiloConvert { logError(`[SiloConvert/quote${i}] FAILED: `, e); throw e; } - advFarm.add(strategy.strategy.encodeFromQuote(quote)); + + // Get the current length of the advanced farm workflow + const len = advFarm.length; + // Encode the quote into calls and get the decode index + const { calls, decodeIndex } = strategy.strategy.encodeFromQuote(quote); + // Add the calls to the advanced farm workflow + advFarm.add(calls); + // Push the decode index to the decode indicies array + decodeIndicies.push(len + decodeIndex); + // Push the quote to the quotes array quotes.push(quote); } return { + decodeIndicies, route, routeIndex, quotes, @@ -294,33 +343,56 @@ export class SiloConvert { logError("[SiloConvert/quote] FAILED to quote routes: ", e); throw e; }); + } - const simulationsRawResults = await Promise.all( - quotedRoutes.map((route) => - route.workflow + /** + * + * @param quotedRoutes - The decoded quoted routes from the handleQuoteRoutes function + * @returns The raw simulation results + */ + private async handleSimulateQuotedRoutes( + // The decoded quoted routes from the handleQuoteRoutes function + quotedRoutes: Awaited>, + ) { + const data = await Promise.all( + quotedRoutes.map((route) => { + // get all the approval tokens from the strategies + const approvalTokens = route.route.strategies + .flatMap((s) => s.strategy.getApprovalTokens()) + .filter((t) => t !== undefined); + + return route.workflow .simulate({ account: this.context.account, after: this.priceCache.constructPriceAdvPipe({ noTokenPrices: true }), + // Add any state overrides that require approval tokens + stateOverrides: getOverrideAllowanceStateOverride( + this.context.chainId, + approvalTokens, + this.context.account, + ), }) .catch((e) => { logError("[SiloConvert/quote] FAILED to simulate routes : ", e); throw new SimulationError("quote", e instanceof Error ? e.message : "Unknown error", { - routes, + routes: route.route, quotedRoutes, }); }) .then((r) => { console.debug("[SiloConvert/quote] simulated route!: ", route, r); return r; - }), - ), + }); + }), ); - console.debug("[SiloConvert/quote] post simulation results: ", { - quotedRoutes, - simulationsRawResults, - }); + return data; + } + private handleDecodeRouteAndPriceResults( + quotedRoutes: Awaited>, + simulationsRawResults: Awaited>, + ) { const datas = quotedRoutes.map((route, i): SiloConvertSummary => { const rawResponse = simulationsRawResults[i]; @@ -333,7 +405,7 @@ export class SiloConvert { let decoded: ReturnType; try { - decoded = this.decodeRouteAndPriceResults(staticCallResult, route.route); + decoded = this.decodeRouteAndPriceResults(staticCallResult, route.route, route.decodeIndicies); } catch (e) { logError("[SiloConvert/quote] FAILED to decode route and price results: ", e); throw new ConversionQuotationError("Failed to decode route and price results", { @@ -351,10 +423,6 @@ export class SiloConvert { }; }); - console.debug("[SiloConvert/quote] ------------------"); - console.debug("[SiloConvert/quote] quoting finished!!!", datas, "\n"); - console.debug("[SiloConvert/quote] ------------------"); - return datas; } @@ -389,15 +457,19 @@ export class SiloConvert { private decodeRouteAndPriceResults( rawResponse: HashString[], route: SiloConvertRoute, + decodeIndicies: number[], ): Pick, "results" | "reducedResults" | "postPriceData"> { const mainToken = getChainConstant(this.context.chainId, MAIN_TOKEN); + try { + // Create a copy of the raw response const staticCallResult = [...rawResponse]; - // price result is the last element in the static call result const priceResult = staticCallResult.pop(); - const decodedConvertResults = decodeConvertResults(staticCallResult, route.convertType); + const decodeResults = decodeIndicies.map((decodeIdx) => staticCallResult[decodeIdx]); + + const decodedConvertResults = decodeConvertResults(decodeResults, route.convertType); const decodedPriceCalls = priceResult ? AdvancedPipeWorkflow.decodeResult(priceResult) : undefined; const postPriceData = decodedPriceCalls?.length diff --git a/src/lib/siloConvert/siloConvert.strategizer.ts b/src/lib/siloConvert/siloConvert.strategizer.ts index 8b1e98791..05cd6bbb6 100644 --- a/src/lib/siloConvert/siloConvert.strategizer.ts +++ b/src/lib/siloConvert/siloConvert.strategizer.ts @@ -2,6 +2,7 @@ import { TV } from "@/classes/TokenValue"; import { CONVERT_DOWN_PENALTY_RATE } from "@/constants/silo"; import { FarmToMode, Token } from "@/utils/types"; import { Prettify } from "@/utils/types.generic"; +import { exists } from "@/utils/utils"; import { SiloConvertQuoteOptions } from "./SiloConvert"; import { ExtendedPoolData, SiloConvertPriceCache } from "./SiloConvert.cache"; import { SiloConvertMaxConvertQuoter } from "./SiloConvert.maxConvertQuoter"; @@ -14,6 +15,7 @@ import { SiloConvertLP2LPSingleSidedPairTokenStrategy as LP2LPSingleSidedPair, SiloConvertLP2MainPipelineConvertStrategy as LP2MainPipeline, SiloConvertLP2MainWithdrawPairStrategy as LP2MainWithdrawPair, + SiloConvertMain2LPDepositPairStrategy as Main2LPDepositPair, } from "./strategies/implementations"; import { ErrorHandlerFactory } from "./strategies/validation/ErrorHandlerFactory"; import { @@ -88,7 +90,7 @@ export class Strategizer { } if (!isLP2LP) { - return this.strategizeLPAndMain(source, target, amountIn); + return this.strategizeLPAndMain(source, target, amountIn, options); } return this.strategizeLP2LP(source, target, amountIn); @@ -102,7 +104,12 @@ export class Strategizer { * @param amountIn * @returns */ - async strategizeLPAndMain(source: Token, target: Token, amountIn: TV): Promise[]> { + async strategizeLPAndMain( + source: Token, + target: Token, + amountIn: TV, + options: SiloConvertQuoteOptions = {}, + ): Promise[]> { const eh = ErrorHandlerFactory.createStrategizerHandler(source, target); return eh.wrapAsync(async () => { @@ -115,6 +122,11 @@ export class Strategizer { eh.validateConversionTokens("default", source, target); if (source.isMain && target.isLP) { + // If user provided secondaryAmount and fromMode, only return the Main2LPDeposit route + if (options.secondaryAmount?.gt(0) && exists(options.fromMode)) { + return this.strategizeMain2LPDeposit(source, target, amountIn, options); + } + // Otherwise, use the original down convert behavior return this.strategizeLPAndMainDownConvert(source, target, amountIn); } @@ -201,6 +213,59 @@ export class Strategizer { }, "strategizeLP2MainWithdrawPair"); } + /** + * Main2LPDeposit + * + * This strategy is used to convert from Main Token (PINTO) to LP Token while depositing pair token from external wallet. + * + * @param source + * @param target + * @param amountIn + * @returns + */ + async strategizeMain2LPDeposit( + source: Token, + target: Token, + amountIn: TV, + options: SiloConvertQuoteOptions, + ): Promise[]> { + const eh = ErrorHandlerFactory.createStrategizerHandler(source, target); + + return eh.wrapAsync(async () => { + await eh.wrapAsync(async () => this.cache.update(), "strategizeMain2LPDeposit_cache_update", { + source: source.symbol, + target: target.symbol, + amountIn: amountIn.toHuman(), + }); + + eh.validateConversionTokens("Main2LP", source, target); + + const targetWell = target.isLP ? this.cache.getWell(target.address) : undefined; + + const tw = eh.assertDefined(targetWell, "Target well must be defined for Main2LPDeposit"); + + const secondaryAmount = eh.assertDefined( + options.secondaryAmount, + "Secondary amount is required for Main2LPDeposit strategy", + ); + const fromMode = eh.assertDefined(options.fromMode, "From mode is required for Main2LPDeposit strategy"); + + return [ + { + source, + target, + strategies: [ + { + strategy: new Main2LPDepositPair(source, tw, this.context, secondaryAmount, fromMode), + amount: amountIn, + }, + ], + convertType: "Main2LPDeposit", + }, + ]; + }, "strategizeMain2LPDeposit"); + } + async strategizeLP2LP(source: Token, target: Token, amountIn: TV) { try { await this.cache.update(); diff --git a/src/lib/siloConvert/strategies/core/ConvertStrategy.ts b/src/lib/siloConvert/strategies/core/ConvertStrategy.ts index 9ec571c31..50b2cdcb2 100644 --- a/src/lib/siloConvert/strategies/core/ConvertStrategy.ts +++ b/src/lib/siloConvert/strategies/core/ConvertStrategy.ts @@ -34,7 +34,18 @@ export abstract class SiloConvertStrategy { // ------------------------------ Validation Methods ------------------------------ // - abstract encodeFromQuote(quote: ConvertStrategyQuote): AdvancedFarmCall; + abstract encodeFromQuote(quote: ConvertStrategyQuote): { + // the calls to add to the advanced farm workflow + calls: AdvancedFarmCall | AdvancedFarmCall[]; + /** + * The index of the pipeline convert call in the Array of Advanced Farm Calls. + * There are cases where the pipeline convert call is not the first call in the array, + * so we need to know the index to decode the result correctly. + */ + decodeIndex: number; + }; + + abstract getApprovalTokens(): Token | Token[] | undefined; protected validateSlippage(slippage: number) { this.errorHandler.validateAmount(slippage, "slippage"); diff --git a/src/lib/siloConvert/strategies/core/PipelineConvertStrategy.ts b/src/lib/siloConvert/strategies/core/PipelineConvertStrategy.ts index 455439de9..99fce5b2e 100644 --- a/src/lib/siloConvert/strategies/core/PipelineConvertStrategy.ts +++ b/src/lib/siloConvert/strategies/core/PipelineConvertStrategy.ts @@ -41,7 +41,7 @@ export abstract class PipelineConvertStrategy extends /// ------------------------------ Protected Methods ------------------------------ /// - encodeFromQuote(quote: ConvertStrategyQuote): AdvancedFarmCall { + encodeFromQuote(quote: ConvertStrategyQuote) { const stems: bigint[] = []; const amounts: bigint[] = []; @@ -60,31 +60,20 @@ export abstract class PipelineConvertStrategy extends advPipeCalls: quote.advPipeCalls?.getSteps() ?? [], }; - return encoders.silo.pipelineConvert(this.sourceToken, this.targetToken, args); - } - - encodeQuoteToAdvancedFarmStruct(quote: ConvertStrategyQuote): AdvancedFarmCall { - const stems: bigint[] = []; - const amounts: bigint[] = []; - - quote.pickedCrates.crates.forEach((crate) => { - stems.push(crate.stem.toBigInt()); - amounts.push(crate.amount.toBigInt()); - }); + const call = encoders.silo.pipelineConvert(this.sourceToken, this.targetToken, args); - if (!quote.advPipeCalls) { - throw new Error("No advanced pipe calls provided"); - } - - const args = { - stems, - amounts, - advPipeCalls: quote.advPipeCalls?.getSteps() ?? [], + return { + calls: [call] as AdvancedFarmCall[], + decodeIndex: 0, }; + } - return encoders.silo.pipelineConvert(this.sourceToken, this.targetToken, args); + getApprovalTokens(): Token | Token[] | undefined { + return undefined; } + // unpack + /** * Snippets for the advanced pipe calls. */ diff --git a/src/lib/siloConvert/strategies/core/types.ts b/src/lib/siloConvert/strategies/core/types.ts index 20b814a9a..3c9648643 100644 --- a/src/lib/siloConvert/strategies/core/types.ts +++ b/src/lib/siloConvert/strategies/core/types.ts @@ -10,7 +10,7 @@ import { ExtendedPickedCratesDetails } from "@/utils/convert"; import { Token } from "@/utils/types"; import { HashString, Prettify } from "@/utils/types.generic"; -export type SiloConvertType = "LP2LP" | "LPAndMain" | "LP2MainPipeline" | "LP2MainWithdrawPair"; +export type SiloConvertType = "LP2LP" | "LPAndMain" | "LP2MainPipeline" | "LP2MainWithdrawPair" | "Main2LPDeposit"; type ISourceAndTarget = IConvertQuoteMaySwap & { source: T; @@ -45,11 +45,17 @@ interface LP2MainWithdrawPairTargetSummary extends BaseConvertTargetSummary { withdrawalAmount: TV; } +interface Main2LPDepositTargetSummary extends BaseConvertSourceSummary { + pairToken: Token; + pairAmountIn: TV; +} + export type ConvertSummariesLookup = { LP2LP: ISourceAndTarget; LPAndMain: ISourceAndTarget; LP2MainPipeline: ISourceAndTarget; LP2MainWithdrawPair: ISourceAndTarget; + Main2LPDeposit: ISourceAndTarget; }; export type ConvertQuoteSummary = Prettify<{ diff --git a/src/lib/siloConvert/strategies/implementations/DefaultConvertStrategy.ts b/src/lib/siloConvert/strategies/implementations/DefaultConvertStrategy.ts index c0f4ff84b..62d62c194 100644 --- a/src/lib/siloConvert/strategies/implementations/DefaultConvertStrategy.ts +++ b/src/lib/siloConvert/strategies/implementations/DefaultConvertStrategy.ts @@ -100,7 +100,7 @@ export class DefaultConvertStrategy extends SiloConvertStrategy<"LPAndMain"> { }; } - encodeFromQuote(quote: ConvertStrategyQuote<"LPAndMain">): AdvancedFarmCall { + encodeFromQuote(quote: ConvertStrategyQuote<"LPAndMain">) { // Validation const convertData = this.errorHandler.assertDefined(quote.convertData, "Missing convert data in quote"); this.errorHandler.assert(!!quote.pickedCrates?.crates.length, "Missing picked crates in quote", { @@ -111,7 +111,12 @@ export class DefaultConvertStrategy extends SiloConvertStrategy<"LPAndMain"> { () => { const stems = quote.pickedCrates.crates.map((crate) => crate.stem.toBigInt()); const amounts = quote.pickedCrates.crates.map((crate) => crate.amount.toBigInt()); - return encoders.silo.convert(convertData, stems, amounts); + const call = encoders.silo.convert(convertData, stems, amounts); + + return { + calls: [call], + decodeIndex: 0, + }; }, "encode from quote", { cratesCount: quote.pickedCrates.crates.length }, @@ -192,4 +197,8 @@ export class DefaultConvertStrategy extends SiloConvertStrategy<"LPAndMain"> { { dataLength: data.length }, ); } + + getApprovalTokens() { + return undefined; + } } diff --git a/src/lib/siloConvert/strategies/implementations/LP2MainWithdrawPairStrategy.ts b/src/lib/siloConvert/strategies/implementations/LP2MainWithdrawPairStrategy.ts index 75ee0f4f7..d3ffaeaa4 100644 --- a/src/lib/siloConvert/strategies/implementations/LP2MainWithdrawPairStrategy.ts +++ b/src/lib/siloConvert/strategies/implementations/LP2MainWithdrawPairStrategy.ts @@ -162,7 +162,7 @@ class LP2MainWithdrawPairStrategy extends PipelineConvertStrategy<"LP2MainWithdr }; const farmCalls: AdvancedFarmCall[] = []; - farmCalls.push(reStrategy.encodeFromQuote(newQuote)); + farmCalls.push(...reStrategy.encodeFromQuote(newQuote).calls); // Only add additional transfer calls for INTERNAL mode if (mode === FarmToMode.INTERNAL) { diff --git a/src/lib/siloConvert/strategies/implementations/Main2LPDepositPairStrategy.ts b/src/lib/siloConvert/strategies/implementations/Main2LPDepositPairStrategy.ts new file mode 100644 index 000000000..5a3a191a5 --- /dev/null +++ b/src/lib/siloConvert/strategies/implementations/Main2LPDepositPairStrategy.ts @@ -0,0 +1,305 @@ +import { Clipboard } from "@/classes/Clipboard"; +import { TV } from "@/classes/TokenValue"; +import { abiSnippets } from "@/constants/abiSnippets"; +import { PIPELINE_ADDRESS } from "@/constants/address"; +import encoders from "@/encoders"; +import { AdvancedFarmWorkflow, AdvancedPipeWorkflow } from "@/lib/farm/workflow"; +import { ExtendedPoolData } from "@/lib/siloConvert/SiloConvert.cache"; +import { ConvertQuoteSummary, ConvertStrategyQuote, PipelineConvertStrategy } from "@/lib/siloConvert/strategies/core"; +import { SiloConvertContext } from "@/lib/siloConvert/types"; +import { ExtendedPickedCratesDetails } from "@/utils/convert"; +import { AdvancedFarmCall, FarmFromMode, FarmToMode, Token } from "@/utils/types"; +import { exists, throwIfAborted } from "@/utils/utils"; +import { decodeFunctionResult, encodeFunctionData } from "viem"; + +/** + * Strategy for converting from Main Token (PINTO) -> LP Token while depositing pair token from wallet + * + * Uses PipelineConvert to convert from Main Token -> LP Token + * + * Strategy: + * -> take PINTO from silo deposits + * -> transfer pair token (e.g., USDC) from external wallet to pipeline + * -> add liquidity in equal proportions + * -> deposit LP token back to silo + */ + +class Main2LPDepositPairStrategy extends PipelineConvertStrategy<"Main2LPDeposit"> { + readonly name = "Main2LPDeposit_Pipeline"; + + readonly targetWell: ExtendedPoolData; + readonly secondaryAmount: TV; + readonly fromMode: FarmFromMode; + + constructor( + source: Token, + targetWell: ExtendedPoolData, + context: SiloConvertContext, + wellUnderlyingPairTokenAmount: TV, + fromMode: FarmFromMode, + ) { + super(source, targetWell.pool, context); + + if (!exists(fromMode)) { + throw new Error("[Main2LPDepositPairStrategy] Farm from mode is required"); + } + + this.initErrorHandlerCtx(); + + this.errorHandler.validateConversionTokens("Main2LP", source, targetWell.pool); + this.errorHandler.validateAmount(wellUnderlyingPairTokenAmount, "secondary amount"); + this.targetWell = targetWell; + this.secondaryAmount = wellUnderlyingPairTokenAmount; + this.fromMode = fromMode; + } + + get targetIndexes() { + const pairIndex = this.targetWell.pair.index; + return { + pair: pairIndex, + main: pairIndex === 1 ? 0 : 1, + }; + } + + private get pairToken() { + return this.targetWell.tokens[this.targetIndexes.pair]; + } + + private get mainToken() { + return this.targetWell.tokens[this.targetIndexes.main]; + } + + async quote( + deposits: ExtendedPickedCratesDetails, + advancedFarm: AdvancedFarmWorkflow, + slippage: number, + signal?: AbortSignal, + ): Promise> { + // Check if already aborted + throwIfAborted(signal); + + // Validation + this.validateQuoteArgs(deposits, slippage); + + const mainAmount = deposits.totalAmount; + const pairAmount = this.secondaryAmount; + + // Check if aborted after calculation + throwIfAborted(signal); + + // Get add liquidity output + const amountsIn = [TV.ZERO, TV.ZERO]; + amountsIn[this.targetIndexes.main] = mainAmount; + amountsIn[this.targetIndexes.pair] = pairAmount; + + const lpAmountOut = await this.getAddLiquidityOut(amountsIn, advancedFarm); + + // Check if aborted after async operation + throwIfAborted(signal); + + const summary: ConvertQuoteSummary<"Main2LPDeposit"> = { + source: { + token: this.sourceToken, + amountIn: mainAmount, + pairToken: this.pairToken, + pairAmountIn: pairAmount, + }, + target: { + token: this.targetToken, + amountOut: lpAmountOut.subSlippage(slippage), + }, + }; + + // build advanced pipe calls + const advPipeCalls = this.errorHandler.wrap( + () => this.buildAdvancedPipeCalls(summary), + "build advanced pipe calls", + { + targetWell: this.targetWell.pool.symbol, + sourceToken: this.sourceToken.symbol, + pairToken: this.pairToken.symbol, + pairAmount: pairAmount.toHuman(), + fromMode: this.fromMode, + }, + ); + + return { + pickedCrates: deposits, + summary, + advPipeCalls, + amountOut: lpAmountOut, + convertData: undefined, + needsRebuild: false, + }; + } + + /** + * Gets the LP amount out for adding liquidity with given amounts + */ + private async getAddLiquidityOut(amountsIn: TV[], advFarm: AdvancedFarmWorkflow): Promise { + // Validation + this.errorHandler.assert(amountsIn.length === 2, "Add liquidity amounts array must have 2 elements", { + amountsInLength: amountsIn.length, + }); + amountsIn.forEach((amount, index) => { + this.errorHandler.validateAmount(amount, `add liquidity amount[${index}]`, { index }); + }); + + const pipe = new AdvancedPipeWorkflow(this.context.chainId, this.context.wagmiConfig); + + const callData = this.errorHandler.wrap( + () => + encodeFunctionData({ + abi: abiSnippets.wells.getAddLiquidityOut, + functionName: "getAddLiquidityOut", + args: [amountsIn.map((v) => BigInt(v.blockchainString))], + }), + "encode add liquidity call data", + { amountsIn: amountsIn.map((v) => v.toHuman()) }, + ); + + pipe.add({ + target: this.targetWell.pool.address, + callData, + clipboard: Clipboard.encode([]), + }); + + const simulate = await this.errorHandler.wrapAsync( + () => + advFarm.simulate({ + after: pipe, + account: this.context.account, + }), + "add liquidity simulation", + { amountsIn: amountsIn.map((v) => v.toHuman()), account: this.context.account }, + ); + + // Validate simulation results + this.errorHandler.validateSimulation(simulate, "add liquidity simulation"); + + const decoded = this.errorHandler.wrap( + () => AdvancedPipeWorkflow.decodeResult(simulate.result[simulate.result.length - 1]), + "decode advanced pipe result for add liquidity", + { resultLength: simulate.result.length }, + ); + + this.errorHandler.assert(decoded.length > 0, "Decoded advanced pipe result is empty for add liquidity", { + decodedLength: decoded.length, + }); + + const addLiquidityResult = this.errorHandler.wrap( + () => + decodeFunctionResult({ + abi: abiSnippets.wells.getAddLiquidityOut, + functionName: "getAddLiquidityOut", + data: decoded[decoded.length - 1], + }), + "decode add liquidity result", + { decodedLength: decoded.length }, + ); + + const amountOut = this.errorHandler.wrap( + () => TV.fromBlockchain(addLiquidityResult, this.targetWell.pool.decimals), + "convert add liquidity amount out", + { decodedAmountOut: addLiquidityResult.toString(), decimals: this.targetWell.pool.decimals }, + ); + + console.debug("[Main2LPDepositPairStrategy] getAddLiquidityOut: ", { + well: this.targetWell.pool.name, + amountsIn, + amountOut, + }); + + return amountOut; + } + + /** + * Builds the advanced pipe calls for the convert. + * + * For the Main2LPDeposit strategy, the advanced pipe calls are: + * 1. Get external balance of pair token (for validation/clipboard) + * 2. Approve pair token for diamond to spend + * 3. Transfer pair token from external wallet to pipeline + * 4. Transfer main token (PINTO) from silo to pipeline (handled by pipelineConvert) + * 5. Transfer both tokens to well address + * 6. Call wellSync to add liquidity in equal proportions + * 7. LP token is automatically deposited to silo via pipelineConvert + * + * @param summary - The summary of the convert. + */ + buildAdvancedPipeCalls({ source, target }: ConvertStrategyQuote<"Main2LPDeposit">["summary"]): AdvancedPipeWorkflow { + // Validation + this.errorHandler.validateAmount(source.amountIn, "source amount in"); + this.errorHandler.validateAmount(target.amountOut, "target amount out"); + this.errorHandler.validateAmount(this.secondaryAmount, "secondary amount"); + + const pipe = new AdvancedPipeWorkflow(this.context.chainId, this.context.wagmiConfig); + + // 0. Transfer the underlying pair token to the well + pipe.add( + Main2LPDepositPairStrategy.snippets.erc20Transfer( + this.pairToken, + this.targetWell.pool.address, + this.secondaryAmount, + ), + ); + // 1. Transfer the main token to the well + pipe.add( + Main2LPDepositPairStrategy.snippets.erc20Transfer(this.mainToken, this.targetWell.pool.address, source.amountIn), + ); + + // 2. Call wellSync to add liquidity in equal proportions + pipe.add( + Main2LPDepositPairStrategy.snippets.wellSync( + this.targetWell, + PIPELINE_ADDRESS, // recipient (pipeline, which will then deposit to silo via pipelineConvert) + target.amountOut, // min LP amount out (already has slippage applied in summary) + ), + ); + + return pipe; + } + + override encodeFromQuote(quote: ConvertStrategyQuote<"Main2LPDeposit">) { + const stems: bigint[] = []; + const amounts: bigint[] = []; + + quote.pickedCrates.crates.forEach((crate) => { + stems.push(crate.stem.toBigInt()); + amounts.push(crate.amount.toBigInt()); + }); + + if (!quote.advPipeCalls) { + throw new Error("No advanced pipe calls provided"); + } + + const args = { + stems, + amounts, + advPipeCalls: quote.advPipeCalls?.getSteps() ?? [], + }; + + const transfer = Main2LPDepositPairStrategy.snippets.diamondTransferToken( + this.pairToken, + PIPELINE_ADDRESS, + this.secondaryAmount, + this.fromMode, + FarmToMode.EXTERNAL, // to pipeline (external) + this.context.diamond, + Clipboard.encode([]), + ); + + const calls: AdvancedFarmCall[] = [transfer, encoders.silo.pipelineConvert(this.mainToken, this.targetToken, args)]; + + return { + calls, + decodeIndex: 1, + }; + } + + override getApprovalTokens() { + return this.pairToken; + } +} + +export { Main2LPDepositPairStrategy as SiloConvertMain2LPDepositPairStrategy }; diff --git a/src/lib/siloConvert/strategies/implementations/index.ts b/src/lib/siloConvert/strategies/implementations/index.ts index 5741d7c3a..444be5f62 100644 --- a/src/lib/siloConvert/strategies/implementations/index.ts +++ b/src/lib/siloConvert/strategies/implementations/index.ts @@ -4,3 +4,4 @@ export * from "./Lp2lpSingleSidedMainToken"; export * from "./Lp2lpSingleSidedPairToken"; export * from "./LP2MainPipelineConvertStrategy"; export * from "./LP2MainWithdrawPairStrategy"; +export * from "./Main2LPDepositPairStrategy"; diff --git a/src/lib/siloConvert/utils.ts b/src/lib/siloConvert/utils.ts index dc7393bca..3de9417d1 100644 --- a/src/lib/siloConvert/utils.ts +++ b/src/lib/siloConvert/utils.ts @@ -20,6 +20,7 @@ const decoderMap: Record = { LP2MainPipeline: decodePipelineConvert, LPAndMain: decodeConvert, LP2MainWithdrawPair: decodePipelineConvert, + Main2LPDeposit: decodePipelineConvert, } as const; export const decodeConvertResults = ( diff --git a/src/pages/explorer/PintoExplorer.tsx b/src/pages/explorer/PintoExplorer.tsx index e823abef1..33d837445 100644 --- a/src/pages/explorer/PintoExplorer.tsx +++ b/src/pages/explorer/PintoExplorer.tsx @@ -32,7 +32,9 @@ const PintoExplorer = () => {
- +
+

Liquidity chart temporarily unavailable

+
diff --git a/src/pages/explorer/SiloExplorer.tsx b/src/pages/explorer/SiloExplorer.tsx index 495ed85dd..85ef02df3 100644 --- a/src/pages/explorer/SiloExplorer.tsx +++ b/src/pages/explorer/SiloExplorer.tsx @@ -24,7 +24,9 @@ const SiloExplorer = () => { {/* For debugging, cant double comment out with the comment in the middle */}
- +
+

Liquidity chart temporarily unavailable

+
diff --git a/src/pages/overview/NewUserView.tsx b/src/pages/overview/NewUserView.tsx index 8e8cea941..4afe6e132 100644 --- a/src/pages/overview/NewUserView.tsx +++ b/src/pages/overview/NewUserView.tsx @@ -1,5 +1,6 @@ import { TV } from "@/classes/TokenValue"; import InlineStats, { InlineStat } from "@/components/InlineStats"; +import WalletConnectionModal from "@/components/WalletConnectionModal"; import { Button } from "@/components/ui/Button"; import { Card } from "@/components/ui/Card"; import GradientCard from "@/components/ui/GradientCard"; @@ -20,35 +21,38 @@ import { formatter, numberAbbr } from "@/utils/format"; import { normalizeTV } from "@/utils/number"; import { cn } from "@/utils/utils"; import { Separator } from "@radix-ui/react-separator"; -import { useModal } from "connectkit"; import { atom, useAtom, useAtomValue, useSetAtom } from "jotai"; import { atomWithImmer } from "jotai-immer"; import { throttle } from "lodash"; -import React, { useCallback, useEffect, useMemo, useRef } from "react"; +import React, { useCallback, useEffect, useMemo, useRef, useState } from "react"; import { Link } from "react-router-dom"; /// ------------ BANNERS ------------ /// const ConnectWalletBanner = () => { - const modal = useModal(); + const [isModalOpen, setIsModalOpen] = useState(false); + return ( - -
-
Connect your wallet to see your Deposits and Plots
- -
-
+ <> + +
+
Connect your wallet to see your Deposits and Plots
+ +
+
+ + ); }; diff --git a/src/pages/silo/actions/Deposit.tsx b/src/pages/silo/actions/Deposit.tsx index 1b6fc96d3..862c2d05f 100644 --- a/src/pages/silo/actions/Deposit.tsx +++ b/src/pages/silo/actions/Deposit.tsx @@ -1,14 +1,32 @@ -import { TokenValue } from "@/classes/TokenValue"; +import arrowDown from "@/assets/misc/ChevronDown.svg"; +import { TV, TokenValue } from "@/classes/TokenValue"; import { ComboInputField } from "@/components/ComboInputField"; +import { Row } from "@/components/Container"; import FrameAnimator from "@/components/LoadingSpinner"; import MobileActionBar from "@/components/MobileActionBar"; import RoutingAndSlippageInfo, { useRoutingAndSlippageWarning } from "@/components/RoutingAndSlippageInfo"; import SiloOutputDisplay from "@/components/SiloOutputDisplay"; import SlippageButton from "@/components/SlippageButton"; import SmartSubmitButton from "@/components/SmartSubmitButton"; +import SourceBalanceSelect from "@/components/SourceBalanceSelect"; +import TooltipSimple from "@/components/TooltipSimple"; +import { Button } from "@/components/ui/Button"; +import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogTrigger } from "@/components/ui/Dialog"; +import IconImage from "@/components/ui/IconImage"; +import { Label } from "@/components/ui/Label"; +import { ScrollArea } from "@/components/ui/ScrollArea"; +import { Separator } from "@/components/ui/Separator"; +import { Skeleton } from "@/components/ui/Skeleton"; +import VerticalAccordion from "@/components/ui/VerticalAccordion"; +import { diamondABI } from "@/constants/abi/diamondABI"; import { ANALYTICS_EVENTS } from "@/constants/analytics-events"; +import { MAIN_TOKEN } from "@/constants/tokens"; import deposit from "@/encoders/deposit"; +import { beanstalkAbi } from "@/generated/contractHooks"; import { useProtocolAddress } from "@/hooks/pinto/useProtocolAddress"; +import { useLPTokenToNonPintoUnderlyingMap, useTokenMap } from "@/hooks/pinto/useTokenMap"; +import useSiloConvert, { useSiloConvertQuote } from "@/hooks/silo/useSiloConvert"; +import { useSiloConvertResult } from "@/hooks/silo/useSiloConvertResult"; import useBuildSwapQuote from "@/hooks/swap/useBuildSwapQuote"; import useSwap from "@/hooks/swap/useSwap"; import useSwapSummary from "@/hooks/swap/useSwapSummary"; @@ -21,15 +39,18 @@ import { useFarmerSilo } from "@/state/useFarmerSilo"; import { usePriceData } from "@/state/usePriceData"; import { useSiloData } from "@/state/useSiloData"; import { useInvalidateSun } from "@/state/useSunData"; +import useTokenData from "@/state/useTokenData"; import { trackSimpleEvent } from "@/utils/analytics"; +import { getChainConstant, useChainConstant } from "@/utils/chain"; +import { formatter } from "@/utils/format"; import { getSiloLabels } from "@/utils/silo"; import { stringEq, stringToNumber } from "@/utils/string"; -import { tokensEqual } from "@/utils/token"; +import { getTokenIndex, tokensEqual } from "@/utils/token"; import { FarmFromMode, FarmToMode, Token } from "@/utils/types"; -import { cn, getBalanceFromMode } from "@/utils/utils"; +import { cn, exists, getBalanceFromMode, noop } from "@/utils/utils"; import { useQueryClient } from "@tanstack/react-query"; import { AnimatePresence, motion } from "framer-motion"; -import { useCallback, useEffect, useMemo, useState } from "react"; +import { Dispatch, SetStateAction, useCallback, useEffect, useMemo, useState } from "react"; import { toast } from "sonner"; import { useAccount } from "wagmi"; @@ -61,8 +82,12 @@ function Deposit({ siloToken }: { siloToken: Token }) { const farmerSilo = useFarmerSilo(); const invalidateSun = useInvalidateSun(); const { filterSet, filterPreferred } = useFilterTokens(siloToken, farmerBalances.balances); - const { queryKeys: priceQueryKeys } = usePriceData(); + const { queryKeys: priceQueryKeys, pools } = usePriceData(); const account = useAccount(); + const tokenMap = useTokenMap(); + const underlyingMap = useLPTokenToNonPintoUnderlyingMap(); + const mainToken = useChainConstant(MAIN_TOKEN); + const siloConvert = useSiloConvert(); const { preferredToken, loading: preferredLoading } = usePreferredInputToken({ filterLP: true, @@ -77,8 +102,12 @@ function Deposit({ siloToken }: { siloToken: Token }) { const [tokenIn, setTokenIn] = useState(preferredToken); const [balanceFrom, setBalanceFrom] = useState(FarmFromMode.INTERNAL_EXTERNAL); const [slippage, setSlippage] = useState(0.5); + const [shouldConvertDeposit, setShouldConvertDeposit] = useState(false); const qc = useQueryClient(); + // Get underlying pair token for LP tokens + const underlyingPairToken = siloToken.isLP ? underlyingMap[getTokenIndex(siloToken)] : undefined; + useEffect(() => { // If we are still calculating the preferred token, set the token to the preferred token once it's been set. if (preferredLoading) return; @@ -88,7 +117,7 @@ function Deposit({ siloToken }: { siloToken: Token }) { } }, [preferredToken, preferredLoading, didSetPreferred]); - const shouldSwap = !tokensEqual(tokenIn, siloToken); + const shouldSwap = !tokensEqual(tokenIn, siloToken) && !shouldConvertDeposit; const amountInTV = useSafeTokenValue(amountIn, tokenIn); @@ -96,6 +125,90 @@ function Deposit({ siloToken }: { siloToken: Token }) { const balanceFromMode = getBalanceFromMode(tokenInBalance, balanceFrom); const exceedsBalance = balanceFromMode.lt(amountInTV); + // Get farmer deposits for main token (for convert deposit) + const farmerDepositData = shouldConvertDeposit ? farmerSilo.deposits.get(mainToken) : undefined; + const convertibleDeposits = farmerDepositData?.convertibleDeposits; + const convertibleAmount = farmerDepositData?.convertibleAmount; + + const pintosPerUnderlying = useMemo(() => { + const poolData = pools.find((pool) => stringEq(pool.pool.address, siloToken.address)); + + if (!poolData) return undefined; + + const mainIndex = poolData.tokens[0].isMain ? 0 : 1; + const underlyingIndex = poolData.tokens[0].isMain ? 1 : 0; + + const mainTokenBalance = poolData.balances[mainIndex]; + const underlyingTokenBalance = poolData.balances[underlyingIndex]; + + const ratio = mainTokenBalance.div(underlyingTokenBalance); + return ratio; + }, [pools, siloToken]); + + const secondaryAmountInTV = pintosPerUnderlying?.gt(0) ? amountInTV.mul(pintosPerUnderlying) : TokenValue.ZERO; + + const maxes = useMemo(() => { + if (!shouldConvertDeposit) + return { + in: balanceFromMode, + other: TV.ZERO, + }; + + if (!convertibleAmount || !balanceFromMode || !pintosPerUnderlying) { + return { + in: TV.ZERO, + other: TV.ZERO, + }; + } + + // Gives max underlying given we are not limited by deposited PINTO + const uncappedMaxUnderlying = convertibleAmount.div(pintosPerUnderlying); + + // Gives max main token given we are not limited by deposited underlying + const uncappedMaxMainToken = uncappedMaxUnderlying.mul(pintosPerUnderlying); + + return { + in: TV.min(uncappedMaxUnderlying, balanceFromMode), + other: TV.min(uncappedMaxMainToken, convertibleAmount), + }; + }, [shouldConvertDeposit, convertibleAmount, balanceFromMode, pintosPerUnderlying]); + + // Convert deposit quote + const convertQuoteEnabled = + shouldConvertDeposit && + convertibleAmount?.gt(0) && + amountInTV.gt(0) && + secondaryAmountInTV.gt(0) && + !!account.address; + + const { data: convertQuote, ...convertQuery } = useSiloConvertQuote( + siloConvert, + mainToken, + siloToken, + secondaryAmountInTV.toHuman(), + convertibleDeposits, + slippage, + { + secondaryAmount: amountInTV, + fromMode: balanceFrom, + }, + convertQuoteEnabled, + ); + + const { results: convertResults, sortedIndexes } = useSiloConvertResult(mainToken, siloToken, convertQuote); + const [convertRouteIndex, setConvertRouteIndex] = useState(undefined); + + const convertResult = + exists(convertRouteIndex) && exists(convertResults) ? convertResults?.[convertRouteIndex] : undefined; + + // Initialize the route index to the first sorted index + useEffect(() => { + if (!sortedIndexes?.length || convertRouteIndex !== undefined) { + return; + } + setConvertRouteIndex(sortedIndexes[0]); + }, [sortedIndexes, convertRouteIndex]); + const { data: swapData, resetSwap, @@ -131,6 +244,7 @@ function Deposit({ siloToken }: { siloToken: Token }) { invalidateSun("all", { refetchType: "active" }); resetSwap(); priceImpactQuery.clear(); + siloConvert.clear(); }, [ farmerSilo.queryKeys, farmerBalances.queryKeys, @@ -139,6 +253,7 @@ function Deposit({ siloToken }: { siloToken: Token }) { qc.invalidateQueries, resetSwap, priceImpactQuery.clear, + siloConvert, ]); const { isConfirming, writeWithEstimateGas, submitting, setSubmitting } = useTransaction({ @@ -160,11 +275,34 @@ function Deposit({ siloToken }: { siloToken: Token }) { setAmountIn(""); setTokenIn(newToken); + setShouldConvertDeposit(false); }, [tokenIn, siloToken], ); + const handleConvertDepositSelect = useCallback(() => { + if (underlyingPairToken) { + setShouldConvertDeposit(true); + setTokenIn(underlyingPairToken); + setAmountIn(""); + } + }, [underlyingPairToken, mainToken]); + const depositOutput = useMemo(() => { + if (shouldConvertDeposit) { + // For convert deposits, use convert result + if (convertResult) { + const sData = siloData.tokenData.get(siloToken); + if (!sData) return undefined; + return { + amount: convertResult.totalAmountOut, + stalkGain: convertResult.totalAmountOut.mul(sData.rewards.stalk).mul(sData.tokenBDV), + seedGain: convertResult.totalAmountOut.mul(sData.rewards.seeds).mul(sData.tokenBDV), + }; + } + return undefined; + } + const sData = siloData.tokenData.get(siloToken); if (amountInTV.lte(0) || !sData) return undefined; if (tokensEqual(siloToken, tokenIn)) { @@ -182,7 +320,37 @@ function Deposit({ siloToken }: { siloToken: Token }) { } return undefined; - }, [siloData, swapData, siloToken, tokenIn, amountInTV]); + }, [siloData, swapData, siloToken, tokenIn, amountInTV, shouldConvertDeposit, convertResult]); + + const handleDepositConvert = async (convQuote: ReturnType["data"]) => { + if (!convQuote) { + throw new Error("Quote required"); + } + + try { + const selectedQuote = exists(convertRouteIndex) ? convQuote[convertRouteIndex] : undefined; + + if (!selectedQuote) { + throw new Error("No quote found"); + } + + // Extract the advancedFarm workflow from the quote + const advFarmCalls = selectedQuote.workflow.getSteps(); + + return writeWithEstimateGas({ + address: diamondAddress, + abi: beanstalkAbi, + functionName: "advancedFarm", + args: [advFarmCalls], + }); + } catch (e) { + console.error("Error in handleDepositConvert: ", e); + setSubmitting(false); + toast.dismiss(); + toast.error("Convert deposit failed"); + throw e; + } + }; const onSubmit = useCallback(async () => { try { @@ -190,22 +358,27 @@ function Deposit({ siloToken }: { siloToken: Token }) { throw new Error("No account connected"); } - const buyAmount = shouldSwap ? swapData?.buyAmount : amountInTV; - // Track deposit submission trackSimpleEvent(ANALYTICS_EVENTS.SILO.DEPOSIT_SUBMIT, { input_token: tokenIn.symbol, output_token: siloToken.symbol, + convert_deposit: shouldConvertDeposit, }); + if (shouldConvertDeposit) { + return handleDepositConvert(convertQuote); + } + + const buyAmount = shouldSwap ? swapData?.buyAmount : amountInTV; + if (!shouldSwap && buyAmount) { setSubmitting(true); toast.loading(`Depositing...`); return writeWithEstimateGas({ address: diamondAddress, - abi: depositABI, - functionName: "deposit", + abi: diamondABI, + functionName: "deposit" as const, args: [siloToken.address, buyAmount.blockchainString, Number(balanceFrom)], }); } @@ -253,18 +426,39 @@ function Deposit({ siloToken }: { siloToken: Token }) { balanceFrom, swapData, shouldSwap, + shouldConvertDeposit, + convertQuote, + convertRouteIndex, ]); const isWellUnderlying = siloToken.tokens?.some((tk) => stringEq(tk, tokenIn.address)); const swapDataNotReady = (shouldSwap && (!swapData || !swapBuild)) || !!swapQuery.error; + const convertDataNotReady = shouldConvertDeposit && (!convertQuote || !convertResult); - // need to define types for routers + // Check pair token balance for convert deposits + const pairTokenBalance = underlyingPairToken ? farmerBalances.balances.get(underlyingPairToken) : undefined; + const pairTokenBalanceFromMode = pairTokenBalance + ? getBalanceFromMode(pairTokenBalance, balanceFrom) + : TokenValue.ZERO; + const exceedsPairTokenBalance = shouldConvertDeposit && pairTokenBalanceFromMode.lt(secondaryAmountInTV); - const disabled = - !stringToNumber(amountIn) || !account.address || submitting || isConfirming || swapDataNotReady || exceedsBalance; + // Check main token balance in silo for convert deposits + const exceedsConvertibleAmount = shouldConvertDeposit && convertibleAmount && convertibleAmount.lt(amountInTV); - const buttonText = exceedsBalance ? "Insufficient Funds" : "Deposit"; + const disabled = + !stringToNumber(amountIn) || + !account.address || + submitting || + isConfirming || + swapDataNotReady || + convertDataNotReady || + exceedsBalance || + exceedsPairTokenBalance || + exceedsConvertibleAmount; + + const buttonText = + exceedsBalance || exceedsPairTokenBalance || exceedsConvertibleAmount ? "Insufficient Funds" : "Deposit"; return (
@@ -280,14 +474,71 @@ function Deposit({ siloToken }: { siloToken: Token }) { setAmount={setAmountIn} setToken={handleSetTokenIn} setBalanceFrom={setBalanceFrom} - selectedToken={tokenIn} + selectedToken={shouldConvertDeposit && underlyingPairToken ? underlyingPairToken : tokenIn} balanceFrom={balanceFrom} tokenSelectLoading={!didSetPreferred || preferredLoading} filterTokens={filterSet} disableClamping={true} + customTokenSelector={ + siloToken.isLP && underlyingPairToken ? ( + + ) : undefined + } + tokenAndBalanceMap={ + shouldConvertDeposit && farmerDepositData ? new Map([[mainToken, farmerDepositData.amount]]) : undefined + } + customMaxAmount={maxes.in} /> + {shouldConvertDeposit && underlyingPairToken && ( +
+ + + + + +
+ )} - {((!depositOutput && amountInTV.gt(0)) || swapQuery.isLoading || depositOutput) && ( + {((!depositOutput && amountInTV.gt(0)) || + swapQuery.isLoading || + (shouldConvertDeposit && convertQuery.isLoading) || + depositOutput) && ( - {(!depositOutput && amountInTV.gt(0)) || swapQuery.isLoading ? ( + {(!depositOutput && amountInTV.gt(0)) || + swapQuery.isLoading || + (shouldConvertDeposit && convertQuery.isLoading) ? (
@@ -317,7 +570,7 @@ function Deposit({ siloToken }: { siloToken: Token }) {
)}
- {!depositingSiloToken && amountInTV.gt(0) && ( + {!depositingSiloToken && amountInTV.gt(0) && !shouldConvertDeposit && ( void; +}) => { + return ( +
+
+ {token.name} +
+
+ {token.symbol} +
+
+ {token.name} +
+
+
+
+
+ {formatter.token(balanceAmount, token)} +
+
+ {formatter.usd(price.mul(balanceAmount))} +
+
+
+ ); +}; + +const DepositTokenSelect = ({ + selected, + filterTokens, + selectToken, + setShouldConvertDeposit, + onConvertSelect, + underlyingPairToken, + siloToken, + disableOpen = false, + farmerBalances, + balanceFrom, + setBalanceFrom, + balancesToShow, + isLoading, + disabled, +}: { + selected: Token | undefined; + filterTokens: Set; + selectToken: (t: Token) => void; + shouldConvertDeposit: boolean; + setShouldConvertDeposit: (value: boolean) => void; + onConvertSelect: () => void; + underlyingPairToken?: Token; + siloToken: Token; + disableOpen?: boolean; + farmerBalances: ReturnType["balances"]; + balanceFrom?: FarmFromMode; + setBalanceFrom?: Dispatch>; + balancesToShow?: FarmFromMode[]; + isLoading?: boolean; + disabled?: boolean; +}) => { + const [open, setOpen] = useState(false); + const [showOtherOptions, setShowOtherOptions] = useState(false); + const priceData = usePriceData(); + + const handleOpenChange = (open: boolean) => { + if (disableOpen) return; + setOpen(open); + if (!open) { + setShowOtherOptions(false); + } + }; + + const { mainToken } = useTokenData(); + + const handleConvertDepositSelect = () => { + onConvertSelect(); + setOpen(false); + setShowOtherOptions(false); + }; + + const handleStandardTokenSelect = (token: Token) => { + setShouldConvertDeposit(false); + selectToken(token); + setOpen(false); + setShowOtherOptions(false); + }; + + return ( + + + + + +
+
+ + + Select Token + {balanceFrom && setBalanceFrom && ( +
+ +
+ )} +
+
+
+ + +
+ {[...farmerBalances.keys()].map((token) => { + const balance = farmerBalances.get(token); + if (!balance || filterTokens.has(token)) return null; + if (token.isNative && balanceFrom === FarmFromMode.INTERNAL) { + return null; + } + const tokenPrice = priceData.tokenPrices.get(token); + const price = tokenPrice?.instant ?? TokenValue.ZERO; + let balanceAmount: TokenValue; + switch (balanceFrom) { + case FarmFromMode.EXTERNAL: + balanceAmount = balance.external; + break; + case FarmFromMode.INTERNAL: + balanceAmount = balance.internal; + break; + default: + balanceAmount = balance.total; + } + return ( + handleStandardTokenSelect(token)} + /> + ); + })} + {underlyingPairToken && ( +
+ +
+
Other
+
+
+ +
+
+ +
+
+
+ {underlyingPairToken.symbol} + DEP.{mainToken.symbol} +
+
+ Deposit {underlyingPairToken.symbol} from wallet and convert Pinto from Silo to{" "} + {siloToken.symbol} +
+
+
+
+
+
+ )} +
+
+
+
+
+ ); +}; diff --git a/src/state/farmer/status/farmerStatus.updater.ts b/src/state/farmer/status/farmerStatus.updater.ts index 870f41326..abcc06798 100644 --- a/src/state/farmer/status/farmerStatus.updater.ts +++ b/src/state/farmer/status/farmerStatus.updater.ts @@ -43,10 +43,7 @@ export default function useUpdateFarmerStatus() { const balances = useFarmerBalances(); const account = useAccount(); - const hasBalanceOnBase = - Array.from(balances.balances.entries()).findIndex((data) => { - data[1].total.gt(0); - }) > -1; + const hasBalanceOnBase = Array.from(balances.balances.entries()).findIndex((data) => data[1].total.gt(0)) > -1; const setStatus = useSetAtom(farmerStatusAtom); diff --git a/src/state/queryKeys.ts b/src/state/queryKeys.ts index f84cab9ad..85846e6b2 100644 --- a/src/state/queryKeys.ts +++ b/src/state/queryKeys.ts @@ -114,6 +114,7 @@ const siloQueryKeys = { target: HashString | undefined, amountIn: string, isPairWithdrawal: boolean, + isConvertDeposit: boolean, slippage: number, ) => { return [ diff --git a/src/state/useChartSetupData.ts b/src/state/useChartSetupData.ts index ff1855a96..71104443d 100644 --- a/src/state/useChartSetupData.ts +++ b/src/state/useChartSetupData.ts @@ -1334,7 +1334,6 @@ export function useChartSetupData() { const pintoCharts = createPintoCharts(mainToken); const siloCharts = createSiloCharts(mainToken); const fieldCharts = createFieldCharts(mainToken); - const exchangeCharts = createExchangeCharts(mainToken); const tractorCharts = createTractorCharts(mainToken); const inflowCharts = createInflowCharts(mainToken); const marketCharts = createMarketCharts(mainToken); @@ -1343,7 +1342,6 @@ export function useChartSetupData() { ...pintoCharts, ...siloCharts, ...fieldCharts, - ...exchangeCharts, ...tractorCharts, ...inflowCharts, ...marketCharts, diff --git a/src/state/useSeasonsData.ts b/src/state/useSeasonsData.ts index 7841ed50a..c883ab0b9 100644 --- a/src/state/useSeasonsData.ts +++ b/src/state/useSeasonsData.ts @@ -73,26 +73,6 @@ export interface SeasonsTableData { convertUpBonusStalkPerBdv: TokenValue; convertUpBonusMaxCapacity: TokenValue; convertUpBonusCapacityUsedThisSeason: TokenValue; - cumulativeVolumeNet: number; - cumulativeBuyVolumeUSD: number; - cumulativeSellVolumeUSD: number; - cumulativeVolumeUSD: number; - deltaVolumeNet: number; - deltaBuyVolumeUSD: number; - deltaSellVolumeUSD: number; - deltaVolumeUSD: number; - cumulativeConvertVolumeNet: number; - cumulativeConvertUpVolumeUSD: number; - cumulativeConvertDownVolumeUSD: number; - cumulativeConvertVolumeUSD: number; - cumulativeConvertNeutralTransferVolumeUSD: number; - deltaConvertVolumeNet: number; - deltaConvertUpVolumeUSD: number; - deltaConvertDownVolumeUSD: number; - deltaConvertVolumeUSD: number; - deltaConvertNeutralTransferVolumeUSD: number; - liquidityUSD: number; - deltaLiquidityUSD: number; pinto30d: number; pinto7d: number; pinto24h: number; @@ -262,13 +242,6 @@ export default function useSeasonsData( [chainId], ); - const basinQueryFnFactory = useCallback( - (vars: SeasonalQueryVars) => async () => { - return paginateSubgraph(basinPaginateSettings, subgraphs[chainId].basin, BasinAdvancedChartDocument, vars); - }, - [chainId], - ); - const useStalkQuery = useMultiSeasonalQueries("all_seasonsTableStalk", { fromSeason: fromSeason - syncOffset, toSeason, @@ -301,22 +274,6 @@ export default function useSeasonsData( enabled: beanData, }); - const useBasinQuery = useSeasonalQueries("all_seasonsTableBasin", { - fromSeason: fromSeason - syncOffset, - toSeason, - queryVars: {}, - historicalQueryFnFactory: basinQueryFnFactory, - currentQueryFnFactory: basinQueryFnFactory, - resultTimestamp: (entry) => { - return new Date(Number(entry.createdTimestamp) * 1000); - }, - convertResult: (entry: any) => { - return entry; - }, - orderBy: "desc", - enabled: basinData, - }); - const useAPYQuery = useSeasonalAPYs(tokenData.mainToken.address, fromSeason, toSeason, { enabled: apyData }); const useTractorQuery = useSeasonalTractorSnapshots("SOW_V0", fromSeason, toSeason, (e: any) => e, { @@ -368,7 +325,6 @@ export default function useSeasonsData( if ( (beanstalkData && Object.keys(useStalkQuery.data || {}).length === 0) || (beanData && (useBeanQuery.data?.length ?? 0) === 0) || - (basinData && (useBasinQuery.data?.length ?? 0) === 0) || (apyData && Object.keys(useAPYQuery.data || {}).length === 0) || (tractorData && (useTractorQuery.data?.length ?? 0) === 0) || (inflowData && (useInflowQuery.data?.length ?? 0) === 0) || @@ -378,7 +334,6 @@ export default function useSeasonsData( } const stalkResults = useStalkQuery?.data || { fieldHourlySnapshots: [], siloHourlySnapshots: [], stalkSeasons: [] }; const beanResults = useBeanQuery?.data || ([] as any); - const basinResults = useBasinQuery?.data || ([] as any); const { [APYWindow.MONTHLY]: apy30d, [APYWindow.WEEKLY]: apy7d, @@ -391,7 +346,6 @@ export default function useSeasonsData( let maxLength = Math.max( beanResults.length - syncOffset, stalkResults.fieldHourlySnapshots.length - syncOffset, - basinResults.length - syncOffset, apy24h?.length || 0, tractorSnapshots.length, inflowSnapshots.length, @@ -519,41 +473,6 @@ export default function useSeasonsData( } } - if (basinData && idx + syncOffset < countSubgraphSeasons) { - const currBasinSeason = basinResults[idx + syncOffset]; - allData.cumulativeVolumeNet = - Number(currBasinSeason.cumulativeBuyVolumeUSD) - Number(currBasinSeason.cumulativeSellVolumeUSD); - allData.cumulativeBuyVolumeUSD = Number(currBasinSeason.cumulativeBuyVolumeUSD); - allData.cumulativeSellVolumeUSD = Number(currBasinSeason.cumulativeSellVolumeUSD); - allData.cumulativeVolumeUSD = Number(currBasinSeason.cumulativeTradeVolumeUSD); - allData.deltaVolumeNet = Number(currBasinSeason.deltaBuyVolumeUSD) - Number(currBasinSeason.deltaSellVolumeUSD); - allData.deltaBuyVolumeUSD = Number(currBasinSeason.deltaBuyVolumeUSD); - allData.deltaSellVolumeUSD = Number(currBasinSeason.deltaSellVolumeUSD); - allData.deltaVolumeUSD = Number(currBasinSeason.deltaTradeVolumeUSD); - allData.cumulativeConvertVolumeNet = - Number(currBasinSeason.cumulativeConvertUpVolumeUSD) - Number(currBasinSeason.cumulativeConvertDownVolumeUSD); - allData.cumulativeConvertUpVolumeUSD = Number(currBasinSeason.cumulativeConvertUpVolumeUSD); - allData.cumulativeConvertDownVolumeUSD = Number(currBasinSeason.cumulativeConvertDownVolumeUSD); - allData.cumulativeConvertVolumeUSD = Number(currBasinSeason.cumulativeConvertVolumeUSD); - allData.cumulativeConvertNeutralTransferVolumeUSD = Number( - currBasinSeason.cumulativeConvertNeutralTransferVolumeUSD, - ); - allData.deltaConvertVolumeNet = - Number(currBasinSeason.deltaConvertUpVolumeUSD) - Number(currBasinSeason.deltaConvertDownVolumeUSD); - allData.deltaConvertUpVolumeUSD = Number(currBasinSeason.deltaConvertUpVolumeUSD); - allData.deltaConvertDownVolumeUSD = Number(currBasinSeason.deltaConvertDownVolumeUSD); - allData.deltaConvertVolumeUSD = Number(currBasinSeason.deltaConvertVolumeUSD); - allData.deltaConvertNeutralTransferVolumeUSD = Number(currBasinSeason.deltaConvertNeutralTransferVolumeUSD); - allData.liquidityUSD = Number(currBasinSeason.totalLiquidityUSD); - allData.deltaLiquidityUSD = Number(currBasinSeason.deltaLiquidityUSD); - - if (!allData.season) { - const season = basinResults[idx].season; - allData.season = season.season; - allData.timestamp = Number(season.createdTimestamp); - } - } - if (apyData) { allData.pinto30d = apy30d?.[idx]?.value || 0; allData.pinto7d = apy7d?.[idx]?.value || 0; @@ -696,7 +615,6 @@ export default function useSeasonsData( }, [ useBeanQuery.data, useStalkQuery.data, - useBasinQuery.data, useAPYQuery.data, useTractorQuery.data, useInflowQuery.data, diff --git a/src/utils/chain.ts b/src/utils/chain.ts index 4cc9a73f0..8edcdbfc6 100644 --- a/src/utils/chain.ts +++ b/src/utils/chain.ts @@ -8,7 +8,7 @@ import { stringEq } from "./string"; import { getTokenIndex } from "./token"; import { Token } from "./types"; import { ChainLookup } from "./types.generic"; -import { exists } from "./utils"; +import { arrayify, exists } from "./utils"; export function getChainConstant(chainId: number, item: ChainLookup) { return item[resolveChainId(chainId)]; @@ -43,24 +43,36 @@ export const computeAllowanceStorageSlot = (owner: Address, spender: Address, ba export const getOverrideAllowanceStateOverride = ( chainId: number, - approvalToken: Token | undefined, + approvalToken: Token | Token[] | undefined, account: Address | undefined, ): StateOverride | undefined => { - if (!account || !approvalToken || approvalToken.isNative) return undefined; - const slot = addressAllowanceSlotMap[resolveChainId(chainId)]?.[getTokenIndex(approvalToken)]; - if (!exists(slot)) return undefined; + const tokens = arrayify(approvalToken ?? []).filter((t) => !t.isNative); - return [ - { - address: approvalToken.address, + if (!account || !tokens.length) { + return undefined; + } + + const stateOverrides: StateOverride = []; + + for (const token of tokens) { + const slot = addressAllowanceSlotMap[resolveChainId(chainId)]?.[getTokenIndex(token)]; + + if (!exists(slot)) { + continue; + } + + stateOverrides.push({ + address: token.address, stateDiff: [ { slot: computeAllowanceStorageSlot(account, beanstalkAddress[resolveChainId(chainId)], slot), value: numberToHex(maxUint256), }, ], - }, - ]; + }); + } + + return stateOverrides; }; // in the future a local blockchain explorer link can be added here if chainId is not Base diff --git a/src/utils/privy/privy.config.ts b/src/utils/privy/privy.config.ts new file mode 100644 index 000000000..71cef1cf8 --- /dev/null +++ b/src/utils/privy/privy.config.ts @@ -0,0 +1,31 @@ +/** + * Privy configuration for email/social login and embedded wallets + * This config is separate from wagmi connectors - Privy handles email/social auth, + * while wagmi handles external EOA wallets (MetaMask, Rabby, WalletConnect, etc.) + */ + +export const privyConfig = { + // Login methods: email and social providers + loginMethods: ["email"] as Array<"email" | "google" | "twitter" | "github">, + + // Appearance configuration + appearance: { + theme: "light" as const, + accentColor: "#246645" as `#${string}`, // pinto-green-4 + logo: "https://pinto.money/pinto-logo.png", // Update with actual logo URL if needed + }, + + // Embedded wallets configuration (for email/social users) + embeddedWallets: { + ethereum: { + createOnLogin: "users-without-wallets" as const, + }, + // Optional: configure embedded wallet behavior + // noPromptOnSignature: false, + }, + + // Legal and privacy + legal: { + termsAndConditionsUrl: "https://docs.pinto.money/appendix/disclosures", // Update if needed + }, +}; diff --git a/src/utils/privy/privyRefs.ts b/src/utils/privy/privyRefs.ts new file mode 100644 index 000000000..663989f17 --- /dev/null +++ b/src/utils/privy/privyRefs.ts @@ -0,0 +1,61 @@ +import type { ConnectedWallet } from "@privy-io/react-auth"; + +/** + * Global references for Privy connector state + * These refs allow the Privy connector to access current wallet state + * without recreating the wagmi config (which would break reconnection) + */ +export interface PrivyRefs { + embeddedWallet: ConnectedWallet | undefined; + logout: (() => Promise) | null; +} + +/** + * Global Privy refs object + * Updated when Privy authentication state changes + */ +export const privyRefs: PrivyRefs = { + embeddedWallet: undefined, + logout: null, +}; + +/** + * Updates the global Privy refs with current wallet and logout function + * Called when Privy authentication state changes + * + * @param wallet - The current Privy embedded wallet (if authenticated) + * @param logout - The Privy logout function + */ +export function updatePrivyRefs(wallet?: ConnectedWallet, logout?: () => Promise): void { + privyRefs.embeddedWallet = wallet; + privyRefs.logout = logout || null; +} + +/** + * Gets the current Privy embedded wallet + * Used by the Privy connector to access wallet state + * + * @returns The current embedded wallet, or undefined if not authenticated + */ +export function getPrivyEmbeddedWallet(): ConnectedWallet | undefined { + return privyRefs.embeddedWallet; +} + +/** + * Gets the current Privy logout function + * Used by the Privy connector to handle disconnection + * + * @returns The logout function, or null if not available + */ +export function getPrivyLogout(): (() => Promise) | null { + return privyRefs.logout; +} + +/** + * Clears the Privy refs (sets to undefined/null) + * Called when user disconnects or Privy authentication is lost + */ +export function clearPrivyRefs(): void { + privyRefs.embeddedWallet = undefined; + privyRefs.logout = null; +} diff --git a/src/utils/wagmi/config.ts b/src/utils/wagmi/config.ts index dc1b969f0..70c3db020 100644 --- a/src/utils/wagmi/config.ts +++ b/src/utils/wagmi/config.ts @@ -1,8 +1,9 @@ import PintoIcon from "@/assets/tokens/PINTO.png"; import { getEnvEnabledChains, localhostNetwork as localhost } from "@/utils/wagmi/chains"; -import { getDefaultConfig } from "connectkit"; import { Chain, Transport, createTestClient } from "viem"; -import { http, createConfig } from "wagmi"; +import { http, createStorage } from "wagmi"; +import type { CreateConnectorFn } from "wagmi"; +import { /* coinbaseWallet, */ injected, walletConnect } from "wagmi/connectors"; export const anvilTestClient = createTestClient({ mode: "anvil", chain: localhost, transport: http() }); @@ -10,12 +11,12 @@ type ChainsConfig = readonly [Chain, ...Chain[]]; type TransportsConfig = Record; -const getChainConfig = (): ChainsConfig => { +export const getChainConfig = (): ChainsConfig => { const chains = [...getEnvEnabledChains()] as const; return chains as ChainsConfig; }; -const getTransportsConfig = (): TransportsConfig => { +export const getTransportsConfig = (): TransportsConfig => { const config: TransportsConfig = {}; for (const chain of getEnvEnabledChains()) { @@ -30,25 +31,80 @@ const getTransportsConfig = (): TransportsConfig => { return config; }; -const config = createConfig( - getDefaultConfig({ +const getWalletConnectMetadataUrl = () => { + if (typeof window !== "undefined") { + return window.location.origin; + } + + return import.meta.env.VITE_SITE_URL || "https://pinto.money/"; +}; + +export const getBaseConnectors = (): CreateConnectorFn[] => { + const connectors: CreateConnectorFn[] = [ + injected({ + shimDisconnect: true, + }), + ]; + + if (import.meta.env.VITE_WALLET_CONNECT_PROJECT_ID) { + connectors.push( + walletConnect({ + projectId: import.meta.env.VITE_WALLET_CONNECT_PROJECT_ID, + showQrModal: true, + metadata: { + name: "Pinto", + description: "A decentralized stablecoin protocol", + url: getWalletConnectMetadataUrl(), + icons: [PintoIcon], + }, + }), + ); + } + + // connectors.push( + // coinbaseWallet({ + // appName: "Pinto", + // appLogoUrl: PintoIcon, + // }) as CreateConnectorFn, + // ); + + return connectors; +}; + +const resolveStorage = (provided?: Storage | null) => { + if (typeof provided !== "undefined") { + return provided ?? undefined; + } + + if (typeof window !== "undefined") { + return window.localStorage; + } + + return undefined; +}; + +interface BuildBaseConfigParamsOptions { + additionalConnectors?: CreateConnectorFn[]; + storage?: Storage | null; + ssr?: boolean; + batchWait?: number; +} + +export const buildBaseConfigParams = (options: BuildBaseConfigParamsOptions = {}) => { + const { additionalConnectors = [], storage, ssr = false, batchWait = 200 } = options; + + return { chains: getChainConfig(), transports: getTransportsConfig(), + connectors: [...getBaseConnectors(), ...additionalConnectors], + storage: createStorage({ + storage: resolveStorage(storage), + }), + ssr, batch: { multicall: { - wait: 200, + wait: batchWait, }, }, - // Required API Keys - walletConnectProjectId: import.meta.env.VITE_WALLET_CONNECT_PROJECT_ID, - // Required App Info - appName: "Pinto", - // Optional App Info - appDescription: "A decentralized stablecoin protocol", - appUrl: "https://pinto.money/", // your app's url - appIcon: PintoIcon, // your app's icon, no bigger than 1024x1024px (max. 1MB) - enableFamily: false, - }), -); - -export default config; + }; +}; diff --git a/src/utils/wagmi/connectorFilters.ts b/src/utils/wagmi/connectorFilters.ts new file mode 100644 index 000000000..d92f08c9b --- /dev/null +++ b/src/utils/wagmi/connectorFilters.ts @@ -0,0 +1,66 @@ +import type { Connector } from "wagmi"; + +/** + * Filters wagmi connectors to return only EOA (externally owned account) wallets + * Excludes Privy connectors and generic injected connectors + * Removes duplicate connectors based on ID + * + * @param connectors - Array of wagmi connectors + * @returns Filtered array of EOA connectors + */ +export function filterEOAConnectors(connectors: Connector[]): Connector[] { + const seen = new Set(); + + return connectors.filter((connector) => { + if (!connector) return false; + + const id = connector.id.toLowerCase(); + + // Exclude Privy connectors + if (id.includes("privy")) { + return false; + } + + // Exclude generic "injected" connector (we want specific wallets only) + if (id === "injected" || connector.name.toLowerCase() === "injected") { + return false; + } + + // Remove duplicates + if (seen.has(id)) { + return false; + } + + seen.add(id); + return true; + }); +} + +/** + * Checks if a connector is WalletConnect based on type or ID + * @param connector - The wagmi connector to check + * @returns True if connector is WalletConnect + */ +export function isWalletConnectConnector(connector: Connector): boolean { + const connectorId = connector.id.toLowerCase(); + + return ( + connector.type === "walletConnect" || + connector.type === "wallet_connect" || + connectorId === "walletconnect" || + connectorId === "wallet_connect" || + connectorId.includes("walletconnect") + ); +} + +/** + * Checks if a connector is Coinbase Wallet based on type, ID, or name + * @param connector - The wagmi connector to check + * @returns True if connector is Coinbase Wallet + */ +// export function isCoinbaseWalletConnector(connector: Connector): boolean { +// const connectorId = connector.id.toLowerCase(); +// const connectorName = connector.name.toLowerCase(); + +// return connector.type === "coinbaseWallet" || connectorId.includes("coinbase") || connectorName.includes("coinbase"); +// } diff --git a/src/utils/wagmi/connectors/privy.ts b/src/utils/wagmi/connectors/privy.ts new file mode 100644 index 000000000..c3b746a41 --- /dev/null +++ b/src/utils/wagmi/connectors/privy.ts @@ -0,0 +1,150 @@ +import type { ConnectedWallet } from "@privy-io/react-auth"; +import type { Account, Chain, Transport, WalletClient } from "viem"; +import { createConnector } from "wagmi"; + +interface PrivyConnectorOptions { + getEmbeddedWallet: () => ConnectedWallet | undefined; + logout: () => Promise; +} + +/** + * Custom Privy connector for wagmi v2 + * Connects Privy's embedded wallet to wagmi + * + * @param options - Options for the Privy connector + * @param options.getEmbeddedWallet - Function that returns the current Privy embedded wallet + * @param options.logout - Function to logout from Privy + * + * Returns a connector factory function that can be added to wagmi's connectors array + */ +export function privy({ getEmbeddedWallet, logout }: PrivyConnectorOptions) { + // Return a function that creates the connector (wagmi expects functions in connectors array) + return createConnector((config) => ({ + id: "privy", + name: "Privy", + type: "privy" as const, + async setup() { + // Setup is called when connector is initialized + }, + async connect({ chainId: requestedChainId }: { chainId?: number; isReconnecting?: boolean } = {}) { + const wallet = getEmbeddedWallet(); + if (!wallet) { + throw new Error("Privy embedded wallet not found"); + } + + // Get provider from Privy wallet + const provider = await wallet.getEthereumProvider(); + const accounts = await provider.request({ method: "eth_accounts" }); + const account = accounts[0] as `0x${string}`; + + // Get chain ID + const chainIdHex = await provider.request({ method: "eth_chainId" }); + const currentChainId = Number.parseInt(chainIdHex as string, 16); + + // If chainId is specified and different, switch chain + if (requestedChainId && requestedChainId !== currentChainId) { + await provider.request({ + method: "wallet_switchEthereumChain", + params: [{ chainId: `0x${requestedChainId.toString(16)}` }], + }); + } + + return { + accounts: [account], + chainId: requestedChainId || currentChainId, + }; + }, + async disconnect() { + // Disconnect is handled by Privy's logout + await logout(); + }, + async getAccounts() { + const wallet = getEmbeddedWallet(); + if (!wallet) { + return []; + } + + const provider = await wallet.getEthereumProvider(); + const accounts = await provider.request({ method: "eth_accounts" }); + return accounts as `0x${string}`[]; + }, + async getChainId() { + const wallet = getEmbeddedWallet(); + if (!wallet) { + throw new Error("Privy embedded wallet not found"); + } + + const provider = await wallet.getEthereumProvider(); + const chainIdHex = await provider.request({ method: "eth_chainId" }); + return Number.parseInt(chainIdHex as string, 16); + }, + async isAuthorized() { + const wallet = getEmbeddedWallet(); + return !!wallet; + }, + async switchChain({ chainId }) { + const wallet = getEmbeddedWallet(); + if (!wallet) { + throw new Error("Privy embedded wallet not found"); + } + + const provider = await wallet.getEthereumProvider(); + await provider.request({ + method: "wallet_switchEthereumChain", + params: [{ chainId: `0x${chainId.toString(16)}` }], + }); + + return config.chains.find((c) => c.id === chainId) || config.chains[0]; + }, + onAccountsChanged(accounts) { + if (accounts.length === 0) { + config.emitter.emit("disconnect"); + } else { + config.emitter.emit("change", { accounts: accounts as `0x${string}`[] }); + } + }, + onChainChanged(chainId) { + const id = Number.parseInt(chainId as string, 16); + config.emitter.emit("change", { chainId: id }); + }, + onDisconnect() { + config.emitter.emit("disconnect"); + }, + async getProvider() { + const wallet = getEmbeddedWallet(); + if (!wallet) { + throw new Error("Privy embedded wallet not found"); + } + + const provider = await wallet.getEthereumProvider(); + + // Return provider in the format wagmi expects + return { + config: { + request: provider.request.bind(provider), + }, + request: provider.request.bind(provider), + } as any; + }, + async getWalletClient({ chainId }: { chainId?: number }) { + const wallet = getEmbeddedWallet(); + if (!wallet) { + throw new Error("Privy embedded wallet not found"); + } + + const provider = await wallet.getEthereumProvider(); + const accounts = await provider.request({ method: "eth_accounts" }); + const account = accounts[0] as `0x${string}`; + + const chain = config.chains.find((c) => c.id === chainId) || config.chains[0]; + const transport = config.transports?.[chain.id] as Transport; + + return { + account: account as unknown as Account, + chain, + transport: transport || (config.transports?.[chain.id] as Transport), + request: provider.request.bind(provider), + } as unknown as WalletClient; + }, + })); +} diff --git a/yarn.lock b/yarn.lock index d92755654..747473e95 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5,14 +5,7 @@ __metadata: version: 8 cacheKey: 10c0 -"@adraffy/ens-normalize@npm:1.10.0": - version: 1.10.0 - resolution: "@adraffy/ens-normalize@npm:1.10.0" - checksum: 10c0/78ae700847a2516d5a0ae12c4e23d09392a40c67e73b137eb7189f51afb1601c8d18784aeda2ed288a278997824dc924d1f398852c21d41ee2c4c564f2fb4d26 - languageName: node - linkType: hard - -"@adraffy/ens-normalize@npm:^1.10.1, @adraffy/ens-normalize@npm:^1.11.0": +"@adraffy/ens-normalize@npm:^1.11.0": version: 1.11.0 resolution: "@adraffy/ens-normalize@npm:1.11.0" checksum: 10c0/5111d0f1a273468cb5661ed3cf46ee58de8f32f84e2ebc2365652e66c1ead82649df94c736804e2b9cfa831d30ef24e1cc3575d970dbda583416d3a98d8870a6 @@ -931,6 +924,22 @@ __metadata: languageName: node linkType: hard +"@base-org/account@npm:^1.1.0": + version: 1.1.1 + resolution: "@base-org/account@npm:1.1.1" + dependencies: + "@noble/hashes": "npm:1.4.0" + clsx: "npm:1.2.1" + eventemitter3: "npm:5.0.1" + idb-keyval: "npm:6.2.1" + ox: "npm:0.6.9" + preact: "npm:10.24.2" + viem: "npm:^2.31.7" + zustand: "npm:5.0.3" + checksum: 10c0/36912a6c8e22582f42dd6fe5139c8eb89b1b5523d966f50ce06d56221893d563acdeeb3a70bed71a109b8de3ca935a13ec9138eda348d57eed766e7861c51fe6 + languageName: node + linkType: hard + "@biomejs/biome@npm:^1.8.0": version: 1.8.3 resolution: "@biomejs/biome@npm:1.8.3" @@ -1022,6 +1031,18 @@ __metadata: languageName: node linkType: hard +"@coinbase/wallet-sdk@npm:4.3.2": + version: 4.3.2 + resolution: "@coinbase/wallet-sdk@npm:4.3.2" + dependencies: + "@noble/hashes": "npm:^1.4.0" + clsx: "npm:^1.2.1" + eventemitter3: "npm:^5.0.1" + preact: "npm:^10.24.2" + checksum: 10c0/b1170d135d7384fa8b45bc6723decdd94b44b614280c0da4c38d9a484123f23ef5aace16ade2286f81c0d18d9420db50d077b93a1b7a3bbed8c60581f6a6f5ed + languageName: node + linkType: hard + "@coinbase/wallet-sdk@npm:4.3.6": version: 4.3.6 resolution: "@coinbase/wallet-sdk@npm:4.3.6" @@ -1063,6 +1084,15 @@ __metadata: languageName: node linkType: hard +"@emotion/is-prop-valid@npm:1.2.2": + version: 1.2.2 + resolution: "@emotion/is-prop-valid@npm:1.2.2" + dependencies: + "@emotion/memoize": "npm:^0.8.1" + checksum: 10c0/bb1530dcb4e0e5a4fabb219279f2d0bc35796baf66f6241f98b0d03db1985c890a8cafbea268e0edefd5eeda143dbd5c09a54b5fba74cee8c69b98b13194af50 + languageName: node + linkType: hard + "@emotion/is-prop-valid@npm:^0.8.2": version: 0.8.8 resolution: "@emotion/is-prop-valid@npm:0.8.8" @@ -1088,6 +1118,13 @@ __metadata: languageName: node linkType: hard +"@emotion/memoize@npm:^0.8.1": + version: 0.8.1 + resolution: "@emotion/memoize@npm:0.8.1" + checksum: 10c0/dffed372fc3b9fa2ba411e76af22b6bb686fb0cb07694fdfaa6dd2baeb0d5e4968c1a7caa472bfcf06a5997d5e7c7d16b90e993f9a6ffae79a2c3dbdc76dfe78 + languageName: node + linkType: hard + "@emotion/memoize@npm:^0.9.0": version: 0.9.0 resolution: "@emotion/memoize@npm:0.9.0" @@ -1102,6 +1139,13 @@ __metadata: languageName: node linkType: hard +"@emotion/unitless@npm:0.8.1": + version: 0.8.1 + resolution: "@emotion/unitless@npm:0.8.1" + checksum: 10c0/a1ed508628288f40bfe6dd17d431ed899c067a899fa293a13afe3aed1d70fac0412b8a215fafab0b42829360db687fecd763e5f01a64ddc4a4b58ec3112ff548 + languageName: node + linkType: hard + "@emotion/unitless@npm:^0.7.4": version: 0.7.5 resolution: "@emotion/unitless@npm:0.7.5" @@ -1678,6 +1722,15 @@ __metadata: languageName: node linkType: hard +"@floating-ui/core@npm:^1.7.3": + version: 1.7.3 + resolution: "@floating-ui/core@npm:1.7.3" + dependencies: + "@floating-ui/utils": "npm:^0.2.10" + checksum: 10c0/edfc23800122d81df0df0fb780b7328ae6c5f00efbb55bd48ea340f4af8c5b3b121ceb4bb81220966ab0f87b443204d37105abdd93d94846468be3243984144c + languageName: node + linkType: hard + "@floating-ui/dom@npm:^1.0.0": version: 1.6.8 resolution: "@floating-ui/dom@npm:1.6.8" @@ -1688,6 +1741,16 @@ __metadata: languageName: node linkType: hard +"@floating-ui/dom@npm:^1.7.4": + version: 1.7.4 + resolution: "@floating-ui/dom@npm:1.7.4" + dependencies: + "@floating-ui/core": "npm:^1.7.3" + "@floating-ui/utils": "npm:^0.2.10" + checksum: 10c0/da6166c25f9b0729caa9f498685a73a0e28251613b35d27db8de8014bc9d045158a23c092b405321a3d67c2064909b6e2a7e6c1c9cc0f62967dca5779f5aef30 + languageName: node + linkType: hard + "@floating-ui/react-dom@npm:^2.0.0": version: 2.1.1 resolution: "@floating-ui/react-dom@npm:2.1.1" @@ -1700,6 +1763,39 @@ __metadata: languageName: node linkType: hard +"@floating-ui/react-dom@npm:^2.1.2": + version: 2.1.6 + resolution: "@floating-ui/react-dom@npm:2.1.6" + dependencies: + "@floating-ui/dom": "npm:^1.7.4" + peerDependencies: + react: ">=16.8.0" + react-dom: ">=16.8.0" + checksum: 10c0/6654834a8e73ecbdbc6cad2ad8f7abc698ac7c1800ded4d61113525c591c03d2e3b59d3cf9205859221465ea38c87af4f9e6e204703c5b7a7e85332d1eef2e18 + languageName: node + linkType: hard + +"@floating-ui/react@npm:^0.26.16, @floating-ui/react@npm:^0.26.22": + version: 0.26.28 + resolution: "@floating-ui/react@npm:0.26.28" + dependencies: + "@floating-ui/react-dom": "npm:^2.1.2" + "@floating-ui/utils": "npm:^0.2.8" + tabbable: "npm:^6.0.0" + peerDependencies: + react: ">=16.8.0" + react-dom: ">=16.8.0" + checksum: 10c0/a42df129e1e976fe8ba3f4c8efdda265a0196c1b66b83f2b9b27423d08dcc765406f893aeff9d830e70e3f14a9d4c490867eb4c32983317cbaa33863b0fae6f6 + languageName: node + linkType: hard + +"@floating-ui/utils@npm:^0.2.10, @floating-ui/utils@npm:^0.2.8": + version: 0.2.10 + resolution: "@floating-ui/utils@npm:0.2.10" + checksum: 10c0/e9bc2a1730ede1ee25843937e911ab6e846a733a4488623cd353f94721b05ec2c9ec6437613a2ac9379a94c2fd40c797a2ba6fa1df2716f5ce4aa6ddb1cf9ea4 + languageName: node + linkType: hard + "@floating-ui/utils@npm:^0.2.5": version: 0.2.5 resolution: "@floating-ui/utils@npm:0.2.5" @@ -2360,6 +2456,31 @@ __metadata: languageName: node linkType: hard +"@headlessui/react@npm:^2.2.0": + version: 2.2.9 + resolution: "@headlessui/react@npm:2.2.9" + dependencies: + "@floating-ui/react": "npm:^0.26.16" + "@react-aria/focus": "npm:^3.20.2" + "@react-aria/interactions": "npm:^3.25.0" + "@tanstack/react-virtual": "npm:^3.13.9" + use-sync-external-store: "npm:^1.5.0" + peerDependencies: + react: ^18 || ^19 || ^19.0.0-rc + react-dom: ^18 || ^19 || ^19.0.0-rc + checksum: 10c0/a1bc4c473d4f58757e2bbc3b4302704030d9d56427a101bbe698b33b6b379885dd0177e5c0862d801117afa3b0a0b858be7685f1cfda5fb3ed3ede53eb24e987 + languageName: node + linkType: hard + +"@heroicons/react@npm:^2.1.1": + version: 2.2.0 + resolution: "@heroicons/react@npm:2.2.0" + peerDependencies: + react: ">= 16 || ^19.0.0-rc" + checksum: 10c0/f8d3cf689b56716339c91df3542f3948115042d1e70e6bc940a3f3e347c0bc78b56aa563917fbd7ce097fe2f38ebb21bffb0db39be914cbc545a754bddae9ab4 + languageName: node + linkType: hard + "@hookform/resolvers@npm:^3.9.0": version: 3.9.0 resolution: "@hookform/resolvers@npm:3.9.0" @@ -2456,6 +2577,15 @@ __metadata: languageName: node linkType: hard +"@lit/react@npm:1.0.8": + version: 1.0.8 + resolution: "@lit/react@npm:1.0.8" + peerDependencies: + "@types/react": 17 || 18 || 19 + checksum: 10c0/18bf3eb6584fa989e0ad40988b349a4401da1cecd5bf1c6edfc1c5caed80037852a4ebe5685b04941e5b28ccf93e740676dae32773d7ae44b1479b96538392b1 + languageName: node + linkType: hard + "@lit/reactive-element@npm:^2.1.0": version: 2.1.0 resolution: "@lit/reactive-element@npm:2.1.0" @@ -2465,6 +2595,16 @@ __metadata: languageName: node linkType: hard +"@marsidev/react-turnstile@npm:^1.3.1": + version: 1.3.1 + resolution: "@marsidev/react-turnstile@npm:1.3.1" + peerDependencies: + react: ^17.0.2 || ^18.0.0 || ^19.0 + react-dom: ^17.0.2 || ^18.0.0 || ^19.0 + checksum: 10c0/467e7bc9f1f2328a805d144b19db5d45fa2bb91c2801499c60095d37635899a67821cc909b0adefeafec249e8c10d9c7f8cc4a0b6252081177d38458968e4319 + languageName: node + linkType: hard + "@mediapipe/tasks-vision@npm:0.10.17": version: 0.10.17 resolution: "@mediapipe/tasks-vision@npm:0.10.17" @@ -2793,6 +2933,13 @@ __metadata: languageName: node linkType: hard +"@msgpack/msgpack@npm:3.1.2": + version: 3.1.2 + resolution: "@msgpack/msgpack@npm:3.1.2" + checksum: 10c0/4fee6dbea70a485d3a787ac76dd43687f489d662f22919237db1f2abbc3c88070c1d3ad78417ce6e764bcd041051680284654021f52068e0aff82d570cb942d5 + languageName: node + linkType: hard + "@netlify/functions@npm:^2.8.1": version: 2.8.1 resolution: "@netlify/functions@npm:2.8.1" @@ -2826,30 +2973,21 @@ __metadata: languageName: node linkType: hard -"@noble/ciphers@npm:^1.0.0": - version: 1.1.2 - resolution: "@noble/ciphers@npm:1.1.2" - checksum: 10c0/33fd65b5022633f912537a9ab0c6a86476f9c77b0aab04ba5ce08295eb1d8c5eccfd5c4bf7a4cdb96cac4bf7f7426eeb9f010103edcb6b7db9463902271a5c68 - languageName: node - linkType: hard - -"@noble/ciphers@npm:^1.3.0": +"@noble/ciphers@npm:1.3.0, @noble/ciphers@npm:^1.3.0": version: 1.3.0 resolution: "@noble/ciphers@npm:1.3.0" checksum: 10c0/3ba6da645ce45e2f35e3b2e5c87ceba86b21dfa62b9466ede9edfb397f8116dae284f06652c0cd81d99445a2262b606632e868103d54ecc99fd946ae1af8cd37 languageName: node linkType: hard -"@noble/curves@npm:1.4.0": - version: 1.4.0 - resolution: "@noble/curves@npm:1.4.0" - dependencies: - "@noble/hashes": "npm:1.4.0" - checksum: 10c0/31fbc370df91bcc5a920ca3f2ce69c8cf26dc94775a36124ed8a5a3faf0453badafd2ee4337061ffea1b43c623a90ee8b286a5a81604aaf9563bdad7ff795d18 +"@noble/ciphers@npm:^1.0.0": + version: 1.1.2 + resolution: "@noble/ciphers@npm:1.1.2" + checksum: 10c0/33fd65b5022633f912537a9ab0c6a86476f9c77b0aab04ba5ce08295eb1d8c5eccfd5c4bf7a4cdb96cac4bf7f7426eeb9f010103edcb6b7db9463902271a5c68 languageName: node linkType: hard -"@noble/curves@npm:1.4.2, @noble/curves@npm:^1.4.0, @noble/curves@npm:~1.4.0": +"@noble/curves@npm:1.4.2, @noble/curves@npm:~1.4.0": version: 1.4.2 resolution: "@noble/curves@npm:1.4.2" dependencies: @@ -2885,21 +3023,21 @@ __metadata: languageName: node linkType: hard -"@noble/curves@npm:^1.6.0, @noble/curves@npm:~1.7.0": - version: 1.7.0 - resolution: "@noble/curves@npm:1.7.0" +"@noble/curves@npm:1.9.7": + version: 1.9.7 + resolution: "@noble/curves@npm:1.9.7" dependencies: - "@noble/hashes": "npm:1.6.0" - checksum: 10c0/3317ec9b7699d2476707a89ceb3ddce60e69bac287561a31dd533669408633e093860fea5067eb9c54e5a7ced0705da1cba8859b6b1e0c48d3afff55fe2e77d0 + "@noble/hashes": "npm:1.8.0" + checksum: 10c0/150014751ebe8ca06a8654ca2525108452ea9ee0be23430332769f06808cddabfe84f248b6dbf836916bc869c27c2092957eec62c7506d68a1ed0a624017c2a3 languageName: node linkType: hard -"@noble/curves@npm:~1.8.1": - version: 1.8.2 - resolution: "@noble/curves@npm:1.8.2" +"@noble/curves@npm:^1.6.0": + version: 1.7.0 + resolution: "@noble/curves@npm:1.7.0" dependencies: - "@noble/hashes": "npm:1.7.2" - checksum: 10c0/e7ef119b114681d6b7530b29a21f9bbea6fa6973bc369167da2158d05054cc6e6dbfb636ba89fad7707abacc150de30188b33192f94513911b24bdb87af50bbd + "@noble/hashes": "npm:1.6.0" + checksum: 10c0/3317ec9b7699d2476707a89ceb3ddce60e69bac287561a31dd533669408633e093860fea5067eb9c54e5a7ced0705da1cba8859b6b1e0c48d3afff55fe2e77d0 languageName: node linkType: hard @@ -2931,13 +3069,6 @@ __metadata: languageName: node linkType: hard -"@noble/hashes@npm:1.7.2, @noble/hashes@npm:~1.7.1": - version: 1.7.2 - resolution: "@noble/hashes@npm:1.7.2" - checksum: 10c0/b1411eab3c0b6691d847e9394fe7f1fcd45eeb037547c8f97e7d03c5068a499b4aef188e8e717eee67389dca4fee17d69d7e0f58af6c092567b0b76359b114b2 - languageName: node - linkType: hard - "@noble/hashes@npm:1.8.0, @noble/hashes@npm:^1.8.0, @noble/hashes@npm:~1.8.0": version: 1.8.0 resolution: "@noble/hashes@npm:1.8.0" @@ -2945,7 +3076,7 @@ __metadata: languageName: node linkType: hard -"@noble/hashes@npm:^1.5.0, @noble/hashes@npm:~1.6.0": +"@noble/hashes@npm:^1.5.0": version: 1.6.1 resolution: "@noble/hashes@npm:1.6.1" checksum: 10c0/27643cd8b551bc933b57cc29aa8c8763d586552fc4c3e06ecf7897f55be3463c0c9dff7f6ebacd88e5ce6d0cdb5415ca4874d0cf4359b5ea4a85be21ada03aab @@ -3310,6 +3441,15 @@ __metadata: languageName: node linkType: hard +"@phosphor-icons/webcomponents@npm:2.1.5": + version: 2.1.5 + resolution: "@phosphor-icons/webcomponents@npm:2.1.5" + dependencies: + lit: "npm:^3" + checksum: 10c0/547c0e3e18b0203e8b432fdbc5aa075219a4e19cffa8582e6da35f0d67ac85441f67a1bb005cadeb3601e5ecda760339fca3fbb729be66ae6ec0c9d3e4d36d38 + languageName: node + linkType: hard + "@pkgjs/parseargs@npm:^0.11.0": version: 0.11.0 resolution: "@pkgjs/parseargs@npm:0.11.0" @@ -3317,6 +3457,173 @@ __metadata: languageName: node linkType: hard +"@privy-io/api-base@npm:1.7.1": + version: 1.7.1 + resolution: "@privy-io/api-base@npm:1.7.1" + dependencies: + zod: "npm:^3.24.3" + checksum: 10c0/1665517a35bca175eac05ff8f3f2d21fd909d17ce85f6683e7f43f9ef00dbceed74a8d21de9c5223c442573b0e99bc965e232d95fc3cf71f047d568bdae757d0 + languageName: node + linkType: hard + +"@privy-io/api-types@npm:0.1.1": + version: 0.1.1 + resolution: "@privy-io/api-types@npm:0.1.1" + checksum: 10c0/2d48d697c2663c47f57fab59be6185f06cb2df903fc52ccac187701fa249460839d3bd7c5ee0dd13d08bd122b725307681b332469fa30bfa8a5d12b51b23658f + languageName: node + linkType: hard + +"@privy-io/chains@npm:0.0.4": + version: 0.0.4 + resolution: "@privy-io/chains@npm:0.0.4" + checksum: 10c0/d98695926ac148b8adc98347b456cf3d66f0a3aa0e7a4becf75ad163a31eedf14a27e03bfcea8c0545d13c25b8aafb0b011efa19fea2321ccb278561733b5ab3 + languageName: node + linkType: hard + +"@privy-io/ethereum@npm:0.0.2": + version: 0.0.2 + resolution: "@privy-io/ethereum@npm:0.0.2" + peerDependencies: + viem: ^2.21.36 + checksum: 10c0/c38dbc312e6a850691b5707045528632a57c3a90a12270c55a8390a89032104d1e73f8949c2fb715cd8e66a13cf0de7bc1c3141dddd2c21b088cae395e8cceaa + languageName: node + linkType: hard + +"@privy-io/js-sdk-core@npm:0.57.0": + version: 0.57.0 + resolution: "@privy-io/js-sdk-core@npm:0.57.0" + dependencies: + "@privy-io/api-base": "npm:1.7.1" + "@privy-io/chains": "npm:0.0.4" + "@privy-io/ethereum": "npm:0.0.2" + "@privy-io/routes": "npm:0.0.1" + canonicalize: "npm:^2.0.0" + eventemitter3: "npm:^5.0.1" + fetch-retry: "npm:^6.0.0" + jose: "npm:^4.15.5" + js-cookie: "npm:^3.0.5" + libphonenumber-js: "npm:^1.10.44" + set-cookie-parser: "npm:^2.6.0" + uuid: "npm:>=8 <10" + peerDependencies: + permissionless: ^0.2.47 + viem: ^2.30.6 + peerDependenciesMeta: + permissionless: + optional: true + viem: + optional: true + checksum: 10c0/5546f6e22ed9448cf71bc3de08a285d9adf872c6ff7b9ce11d588d49b5ff43b9452d66c98d5749b80c3f495699c31e61373704860c59c5b338067b1042dd5fa2 + languageName: node + linkType: hard + +"@privy-io/react-auth@npm:^3.6.0": + version: 3.6.0 + resolution: "@privy-io/react-auth@npm:3.6.0" + dependencies: + "@base-org/account": "npm:^1.1.0" + "@coinbase/wallet-sdk": "npm:4.3.2" + "@floating-ui/react": "npm:^0.26.22" + "@headlessui/react": "npm:^2.2.0" + "@heroicons/react": "npm:^2.1.1" + "@marsidev/react-turnstile": "npm:^1.3.1" + "@privy-io/api-base": "npm:1.7.1" + "@privy-io/api-types": "npm:0.1.1" + "@privy-io/chains": "npm:0.0.4" + "@privy-io/ethereum": "npm:0.0.2" + "@privy-io/js-sdk-core": "npm:0.57.0" + "@privy-io/routes": "npm:0.0.1" + "@privy-io/urls": "npm:*" + "@scure/base": "npm:^1.2.5" + "@simplewebauthn/browser": "npm:^13.2.2" + "@tanstack/react-virtual": "npm:^3.13.10" + "@wallet-standard/app": "npm:^1.0.1" + "@walletconnect/ethereum-provider": "npm:2.22.4" + "@walletconnect/universal-provider": "npm:2.22.4" + eventemitter3: "npm:^5.0.1" + fast-password-entropy: "npm:^1.1.1" + jose: "npm:^4.15.5" + js-cookie: "npm:^3.0.5" + lucide-react: "npm:^0.383.0" + mipd: "npm:^0.0.7" + ofetch: "npm:^1.3.4" + pino-pretty: "npm:^10.0.0" + qrcode: "npm:^1.5.1" + react-device-detect: "npm:^2.2.2" + secure-password-utilities: "npm:^0.2.1" + styled-components: "npm:^6.1.13" + stylis: "npm:^4.3.4" + tinycolor2: "npm:^1.6.0" + uuid: "npm:>=8 <10" + viem: "npm:^2.32.0" + zustand: "npm:^5.0.0" + peerDependencies: + "@abstract-foundation/agw-client": ^1.0.0 + "@solana-program/memo": ^0.8.0 + "@solana-program/system": ^0.8.0 + "@solana-program/token": ^0.6.0 + "@solana/kit": ^3.0.3 + permissionless: ^0.2.47 + react: ^18 || ^19 + react-dom: ^18 || ^19 + peerDependenciesMeta: + "@abstract-foundation/agw-client": + optional: true + "@solana-program/memo": + optional: true + "@solana-program/system": + optional: true + "@solana-program/token": + optional: true + "@solana/kit": + optional: true + permissionless: + optional: true + checksum: 10c0/90e4f267351aa1f0d6018292359355d5419607379538733b53be7b3e01e791e0b07c7fbc20b1f0e2d4e4e8822ccac1d7ce806d4243a834f7ddef52d3e392a61a + languageName: node + linkType: hard + +"@privy-io/routes@npm:0.0.1": + version: 0.0.1 + resolution: "@privy-io/routes@npm:0.0.1" + dependencies: + "@privy-io/api-types": "npm:0.1.1" + checksum: 10c0/cec44eb5602aa8983a4caef1303ab8837ed53c585e678d02a3f0a0baa89f4d0416d7ecb6fa0142a828dcb9192342c15605817c1de81644393de918dd8bfaa4c6 + languageName: node + linkType: hard + +"@privy-io/urls@npm:*": + version: 0.0.2 + resolution: "@privy-io/urls@npm:0.0.2" + checksum: 10c0/961c1b364d3373dcbca6433a95bb057bf75dbdb4d1e1a4b77e28635cd15f6591a68ec53d158266649aca4e73700ef8249b0df125853a7e3759174f47cf0c036e + languageName: node + linkType: hard + +"@privy-io/wagmi-connector@npm:^0.1.13": + version: 0.1.13 + resolution: "@privy-io/wagmi-connector@npm:0.1.13" + peerDependencies: + "@privy-io/react-auth": ^1.33.0 + react: ^18 + react-dom: ^18 + viem: ">=0.3.35" + wagmi: ">=1.4.12 <2" + checksum: 10c0/18696030be07b8eda820d76e01d69c80281e97d962018494be2f5b195b23dd9721aa82af2df47b5918eb2afe8ef372ff2153e08c41f2c19f676086dccbadbfc6 + languageName: node + linkType: hard + +"@privy-io/wagmi@npm:^2.0.2": + version: 2.0.2 + resolution: "@privy-io/wagmi@npm:2.0.2" + peerDependencies: + "@privy-io/react-auth": ^3.0.0 + react: ">=18" + viem: ^2.30.6 + wagmi: ^2.15.5 + checksum: 10c0/83c6266054c3918ca7dc5ba483270cad12454be0b08cd458fa0e08a5df01cb63f379e94ec599eac62f4bf1d4be1805a1db382808f0f7e0b1f51a5a3e6dec16f7 + languageName: node + linkType: hard + "@radix-ui/number@npm:1.1.0": version: 1.1.0 resolution: "@radix-ui/number@npm:1.1.0" @@ -4895,6 +5202,66 @@ __metadata: languageName: node linkType: hard +"@react-aria/focus@npm:^3.20.2": + version: 3.21.2 + resolution: "@react-aria/focus@npm:3.21.2" + dependencies: + "@react-aria/interactions": "npm:^3.25.6" + "@react-aria/utils": "npm:^3.31.0" + "@react-types/shared": "npm:^3.32.1" + "@swc/helpers": "npm:^0.5.0" + clsx: "npm:^2.0.0" + peerDependencies: + react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1 + react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1 + checksum: 10c0/bfcdbb8d47bf038c035b025df6b9c292eeea9a2af7c77ec2ac27c302cb64dc481cfe80bb6575b399301ad1516feba134dec01e3c112ca2cf912ca13b47965917 + languageName: node + linkType: hard + +"@react-aria/interactions@npm:^3.25.0, @react-aria/interactions@npm:^3.25.6": + version: 3.25.6 + resolution: "@react-aria/interactions@npm:3.25.6" + dependencies: + "@react-aria/ssr": "npm:^3.9.10" + "@react-aria/utils": "npm:^3.31.0" + "@react-stately/flags": "npm:^3.1.2" + "@react-types/shared": "npm:^3.32.1" + "@swc/helpers": "npm:^0.5.0" + peerDependencies: + react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1 + react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1 + checksum: 10c0/000300ee3cfab724228c89f7261e94e1357f91f746256c352466a014ab6e1e907a3e6c6a2c0e73a6dd7efc97c1a608c96462de5b41a3eebda22cbc97550a797d + languageName: node + linkType: hard + +"@react-aria/ssr@npm:^3.9.10": + version: 3.9.10 + resolution: "@react-aria/ssr@npm:3.9.10" + dependencies: + "@swc/helpers": "npm:^0.5.0" + peerDependencies: + react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1 + checksum: 10c0/44acb4c441d9c5d65aab94aa81fd8368413cf2958ab458582296dd78f6ba4783583f2311fa986120060e5c26b54b1f01e8910ffd17e4f41ccc5fc8c357d84089 + languageName: node + linkType: hard + +"@react-aria/utils@npm:^3.31.0": + version: 3.31.0 + resolution: "@react-aria/utils@npm:3.31.0" + dependencies: + "@react-aria/ssr": "npm:^3.9.10" + "@react-stately/flags": "npm:^3.1.2" + "@react-stately/utils": "npm:^3.10.8" + "@react-types/shared": "npm:^3.32.1" + "@swc/helpers": "npm:^0.5.0" + clsx: "npm:^2.0.0" + peerDependencies: + react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1 + react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1 + checksum: 10c0/a6b5c6b85a51fa9ca204f045f70d36a55e16b56b85141d556eaacb7b74c4c0915189f6d2baea06df59bdd2926dcca08c2313c98478dbb50ed8e59f9b6754735c + languageName: node + linkType: hard + "@react-spring/animated@npm:~9.7.5": version: 9.7.5 resolution: "@react-spring/animated@npm:9.7.5" @@ -4962,6 +5329,26 @@ __metadata: languageName: node linkType: hard +"@react-stately/flags@npm:^3.1.2": + version: 3.1.2 + resolution: "@react-stately/flags@npm:3.1.2" + dependencies: + "@swc/helpers": "npm:^0.5.0" + checksum: 10c0/d86890ce662f04c7d8984e9560527f46c9779b97757abded9e1bf7e230a6900a0ea7a3e7c22534de8d2ff278abae194e4e4ad962d710f3b04c52a4e1011c2e5b + languageName: node + linkType: hard + +"@react-stately/utils@npm:^3.10.8": + version: 3.10.8 + resolution: "@react-stately/utils@npm:3.10.8" + dependencies: + "@swc/helpers": "npm:^0.5.0" + peerDependencies: + react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1 + checksum: 10c0/a97cc292986e3eeb2ceb1626671ce60e8342a3ff35ab92bcfcb94bd6b28729836cc592e3fe4df2fba603e5fdd26291be77b7f60441920298c282bb93f424feba + languageName: node + linkType: hard + "@react-three/drei@npm:^9.122.0": version: 9.122.0 resolution: "@react-three/drei@npm:9.122.0" @@ -5041,6 +5428,15 @@ __metadata: languageName: node linkType: hard +"@react-types/shared@npm:^3.32.1": + version: 3.32.1 + resolution: "@react-types/shared@npm:3.32.1" + peerDependencies: + react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1 + checksum: 10c0/0a67a34e791c598c5819beb9aa5c11e67db06c9fccc9c5304453147b877fdfc7e73d520e92fcdde8b743e2f155b4cb6a50a15792001a776151191af73d60e24c + languageName: node + linkType: hard + "@remix-run/router@npm:1.18.0": version: 1.18.0 resolution: "@remix-run/router@npm:1.18.0" @@ -5059,6 +5455,17 @@ __metadata: languageName: node linkType: hard +"@reown/appkit-common@npm:1.8.9": + version: 1.8.9 + resolution: "@reown/appkit-common@npm:1.8.9" + dependencies: + big.js: "npm:6.2.2" + dayjs: "npm:1.11.13" + viem: "npm:>=2.37.9" + checksum: 10c0/e34464127d60cf3696fd22dc603d5336d7317d62825db200c68c406e949ab8cc1193a44d6a975f09c193de3087f33f988af1bc3abf01ea73dfec80cdf8b19e72 + languageName: node + linkType: hard + "@reown/appkit-controllers@npm:1.7.8": version: 1.7.8 resolution: "@reown/appkit-controllers@npm:1.7.8" @@ -5072,6 +5479,19 @@ __metadata: languageName: node linkType: hard +"@reown/appkit-controllers@npm:1.8.9": + version: 1.8.9 + resolution: "@reown/appkit-controllers@npm:1.8.9" + dependencies: + "@reown/appkit-common": "npm:1.8.9" + "@reown/appkit-wallet": "npm:1.8.9" + "@walletconnect/universal-provider": "npm:2.21.9" + valtio: "npm:2.1.7" + viem: "npm:>=2.37.9" + checksum: 10c0/2c15fef48e6d59b87857f571a3c7a2b1e5d047351a18facb04b3abc2f657405b7057830b881a5e1d69adc53d7eb725d4bcd753f9f83ffbda8ef663632ee84a23 + languageName: node + linkType: hard + "@reown/appkit-pay@npm:1.7.8": version: 1.7.8 resolution: "@reown/appkit-pay@npm:1.7.8" @@ -5086,6 +5506,20 @@ __metadata: languageName: node linkType: hard +"@reown/appkit-pay@npm:1.8.9": + version: 1.8.9 + resolution: "@reown/appkit-pay@npm:1.8.9" + dependencies: + "@reown/appkit-common": "npm:1.8.9" + "@reown/appkit-controllers": "npm:1.8.9" + "@reown/appkit-ui": "npm:1.8.9" + "@reown/appkit-utils": "npm:1.8.9" + lit: "npm:3.3.0" + valtio: "npm:2.1.7" + checksum: 10c0/359a20d7f62c42bbdab57a7a9ccf32b3a37919393e6b8a70c239f56397a04088dac703864eeb6e5b50a6f63c3a1622ebe4d0282bc59b78896cc6e48e3fa03c9c + languageName: node + linkType: hard + "@reown/appkit-polyfills@npm:1.7.8": version: 1.7.8 resolution: "@reown/appkit-polyfills@npm:1.7.8" @@ -5095,6 +5529,15 @@ __metadata: languageName: node linkType: hard +"@reown/appkit-polyfills@npm:1.8.9": + version: 1.8.9 + resolution: "@reown/appkit-polyfills@npm:1.8.9" + dependencies: + buffer: "npm:6.0.3" + checksum: 10c0/e0269f9b1c13da1ba1b9a386f60a41f793bcee6161a92e44580ce1a421aa8e0209526922c07682a44df62211c8a3a8a05da349a7b84c5c06ceaf69fa3a6752c1 + languageName: node + linkType: hard + "@reown/appkit-scaffold-ui@npm:1.7.8": version: 1.7.8 resolution: "@reown/appkit-scaffold-ui@npm:1.7.8" @@ -5109,6 +5552,20 @@ __metadata: languageName: node linkType: hard +"@reown/appkit-scaffold-ui@npm:1.8.9": + version: 1.8.9 + resolution: "@reown/appkit-scaffold-ui@npm:1.8.9" + dependencies: + "@reown/appkit-common": "npm:1.8.9" + "@reown/appkit-controllers": "npm:1.8.9" + "@reown/appkit-ui": "npm:1.8.9" + "@reown/appkit-utils": "npm:1.8.9" + "@reown/appkit-wallet": "npm:1.8.9" + lit: "npm:3.3.0" + checksum: 10c0/67905c821c8c72c01598f8f90e30a37005f830456b17a7cd01ea9323a9860bf959be92cb57bd013d9a27dc20b1c0df4cdc6aa13cbf6a9d2d8d0984a7b969bcee + languageName: node + linkType: hard + "@reown/appkit-ui@npm:1.7.8": version: 1.7.8 resolution: "@reown/appkit-ui@npm:1.7.8" @@ -5122,6 +5579,20 @@ __metadata: languageName: node linkType: hard +"@reown/appkit-ui@npm:1.8.9": + version: 1.8.9 + resolution: "@reown/appkit-ui@npm:1.8.9" + dependencies: + "@phosphor-icons/webcomponents": "npm:2.1.5" + "@reown/appkit-common": "npm:1.8.9" + "@reown/appkit-controllers": "npm:1.8.9" + "@reown/appkit-wallet": "npm:1.8.9" + lit: "npm:3.3.0" + qrcode: "npm:1.5.3" + checksum: 10c0/020ac68655ad5027e477aa2fe2e6d85e7adf04f7e593c21d34713bead56d09da4aa8cb18063d1adfc9a2dd4a7f0f1a64663e1da30fe4394d739d61c55ff657ca + languageName: node + linkType: hard + "@reown/appkit-utils@npm:1.7.8": version: 1.7.8 resolution: "@reown/appkit-utils@npm:1.7.8" @@ -5140,6 +5611,25 @@ __metadata: languageName: node linkType: hard +"@reown/appkit-utils@npm:1.8.9": + version: 1.8.9 + resolution: "@reown/appkit-utils@npm:1.8.9" + dependencies: + "@reown/appkit-common": "npm:1.8.9" + "@reown/appkit-controllers": "npm:1.8.9" + "@reown/appkit-polyfills": "npm:1.8.9" + "@reown/appkit-wallet": "npm:1.8.9" + "@wallet-standard/wallet": "npm:1.1.0" + "@walletconnect/logger": "npm:2.1.2" + "@walletconnect/universal-provider": "npm:2.21.9" + valtio: "npm:2.1.7" + viem: "npm:>=2.37.9" + peerDependencies: + valtio: 2.1.7 + checksum: 10c0/7d9831376b7ee91c99d20bac2a4530264dc44203e1a47c831d3a223cd85e69ddab512aa39d0a64418cdcb8a86e328bceb008ee8a46a6e1f7b501f753ddb29c1f + languageName: node + linkType: hard + "@reown/appkit-wallet@npm:1.7.8": version: 1.7.8 resolution: "@reown/appkit-wallet@npm:1.7.8" @@ -5152,8 +5642,20 @@ __metadata: languageName: node linkType: hard -"@reown/appkit@npm:1.7.8": - version: 1.7.8 +"@reown/appkit-wallet@npm:1.8.9": + version: 1.8.9 + resolution: "@reown/appkit-wallet@npm:1.8.9" + dependencies: + "@reown/appkit-common": "npm:1.8.9" + "@reown/appkit-polyfills": "npm:1.8.9" + "@walletconnect/logger": "npm:2.1.2" + zod: "npm:3.22.4" + checksum: 10c0/2e7b6b6ce791b0c4d20f7ca36868ab46b0f05bb483fe203003f3a7b8325232364933c2d4b5c8ef1b223c1d88388a92c389d6373c8007773e1b5ef45bddf94323 + languageName: node + linkType: hard + +"@reown/appkit@npm:1.7.8": + version: 1.7.8 resolution: "@reown/appkit@npm:1.7.8" dependencies: "@reown/appkit-common": "npm:1.7.8" @@ -5173,6 +5675,31 @@ __metadata: languageName: node linkType: hard +"@reown/appkit@npm:1.8.9": + version: 1.8.9 + resolution: "@reown/appkit@npm:1.8.9" + dependencies: + "@lit/react": "npm:1.0.8" + "@reown/appkit-common": "npm:1.8.9" + "@reown/appkit-controllers": "npm:1.8.9" + "@reown/appkit-pay": "npm:1.8.9" + "@reown/appkit-polyfills": "npm:1.8.9" + "@reown/appkit-scaffold-ui": "npm:1.8.9" + "@reown/appkit-ui": "npm:1.8.9" + "@reown/appkit-utils": "npm:1.8.9" + "@reown/appkit-wallet": "npm:1.8.9" + "@walletconnect/universal-provider": "npm:2.21.9" + bs58: "npm:6.0.0" + semver: "npm:7.7.2" + valtio: "npm:2.1.7" + viem: "npm:>=2.37.9" + dependenciesMeta: + "@lit/react": + optional: true + checksum: 10c0/96e4c3f6255aebbac01bb7c6864dee92bd3b55ec06dbbb5d993eb0f19ab391ffec46a55f65fb7157f61eb80cc1b7f111a0e71804258930126a2d9f290362046e + languageName: node + linkType: hard + "@repeaterjs/repeater@npm:^3.0.4": version: 3.0.6 resolution: "@repeaterjs/repeater@npm:3.0.6" @@ -5386,6 +5913,13 @@ __metadata: languageName: node linkType: hard +"@scure/base@npm:1.2.6, @scure/base@npm:^1.2.5, @scure/base@npm:~1.2.5": + version: 1.2.6 + resolution: "@scure/base@npm:1.2.6" + checksum: 10c0/49bd5293371c4e062cb6ba689c8fe3ea3981b7bb9c000400dc4eafa29f56814cdcdd27c04311c2fec34de26bc373c593a1d6ca6d754398a488d587943b7c128a + languageName: node + linkType: hard + "@scure/base@npm:^1.1.3, @scure/base@npm:~1.1.6": version: 1.1.7 resolution: "@scure/base@npm:1.1.7" @@ -5393,20 +5927,6 @@ __metadata: languageName: node linkType: hard -"@scure/base@npm:~1.2.1": - version: 1.2.1 - resolution: "@scure/base@npm:1.2.1" - checksum: 10c0/e61068854370855b89c50c28fa4092ea6780f1e0db64ea94075ab574ebcc964f719a3120dc708db324991f4b3e652d92ebda03fce2bf6a4900ceeacf9c0ff933 - languageName: node - linkType: hard - -"@scure/base@npm:~1.2.2, @scure/base@npm:~1.2.4, @scure/base@npm:~1.2.5": - version: 1.2.6 - resolution: "@scure/base@npm:1.2.6" - checksum: 10c0/49bd5293371c4e062cb6ba689c8fe3ea3981b7bb9c000400dc4eafa29f56814cdcdd27c04311c2fec34de26bc373c593a1d6ca6d754398a488d587943b7c128a - languageName: node - linkType: hard - "@scure/bip32@npm:1.4.0": version: 1.4.0 resolution: "@scure/bip32@npm:1.4.0" @@ -5418,17 +5938,6 @@ __metadata: languageName: node linkType: hard -"@scure/bip32@npm:1.6.2": - version: 1.6.2 - resolution: "@scure/bip32@npm:1.6.2" - dependencies: - "@noble/curves": "npm:~1.8.1" - "@noble/hashes": "npm:~1.7.1" - "@scure/base": "npm:~1.2.2" - checksum: 10c0/a0abd62d1fe34b4d90b84feb25fa064ad452fd51be9fd7ea3dcd376059c0e8d08d4fe454099030f43fb91a1bee85cd955f093f221bbc522178919f779fbe565c - languageName: node - linkType: hard - "@scure/bip32@npm:1.7.0, @scure/bip32@npm:^1.7.0": version: 1.7.0 resolution: "@scure/bip32@npm:1.7.0" @@ -5440,17 +5949,6 @@ __metadata: languageName: node linkType: hard -"@scure/bip32@npm:^1.5.0": - version: 1.6.0 - resolution: "@scure/bip32@npm:1.6.0" - dependencies: - "@noble/curves": "npm:~1.7.0" - "@noble/hashes": "npm:~1.6.0" - "@scure/base": "npm:~1.2.1" - checksum: 10c0/5a5eff8c0bc0b53d70528c5eda6efa7ed6d186a5c9ba0a339edf9c150ee3f331d837ffe29d2c6c6336b1f88ad90aa8b6e596a4950217343f36916d8024f79bdf - languageName: node - linkType: hard - "@scure/bip39@npm:1.3.0": version: 1.3.0 resolution: "@scure/bip39@npm:1.3.0" @@ -5461,16 +5959,6 @@ __metadata: languageName: node linkType: hard -"@scure/bip39@npm:1.5.4": - version: 1.5.4 - resolution: "@scure/bip39@npm:1.5.4" - dependencies: - "@noble/hashes": "npm:~1.7.1" - "@scure/base": "npm:~1.2.4" - checksum: 10c0/0b398b8335b624c16dfb0d81b0e79f80f098bb98e327f1d68ace56636e0c56cc09a240ed3ba9c1187573758242ade7000260d65c15d3a6bcd95ac9cb284b450a - languageName: node - linkType: hard - "@scure/bip39@npm:1.6.0, @scure/bip39@npm:^1.6.0": version: 1.6.0 resolution: "@scure/bip39@npm:1.6.0" @@ -5481,13 +5969,10 @@ __metadata: languageName: node linkType: hard -"@scure/bip39@npm:^1.4.0": - version: 1.5.0 - resolution: "@scure/bip39@npm:1.5.0" - dependencies: - "@noble/hashes": "npm:~1.6.0" - "@scure/base": "npm:~1.2.1" - checksum: 10c0/114ab88fb00269d17a73d5c39a2cade47403e05f6df5a8d6f5da6e7f2b071966fe8f656a740dc3399acd006163f234e82b680544c38004703dbb60f8a29daf73 +"@simplewebauthn/browser@npm:^13.2.2": + version: 13.2.2 + resolution: "@simplewebauthn/browser@npm:13.2.2" + checksum: 10c0/07cd7b71fbe975504c2de2d81b5e3d0174ce495e51795af002ff0f38cc55fd58d023abd914c35477d4bb28952de385d9948b7e2d872343ebadcbcdb9ddc05e1c languageName: node linkType: hard @@ -5498,6 +5983,15 @@ __metadata: languageName: node linkType: hard +"@swc/helpers@npm:^0.5.0": + version: 0.5.17 + resolution: "@swc/helpers@npm:0.5.17" + dependencies: + tslib: "npm:^2.8.0" + checksum: 10c0/fe1f33ebb968558c5a0c595e54f2e479e4609bff844f9ca9a2d1ffd8dd8504c26f862a11b031f48f75c95b0381c2966c3dd156e25942f90089badd24341e7dbb + languageName: node + linkType: hard + "@tailwindcss/typography@npm:^0.5.16": version: 0.5.16 resolution: "@tailwindcss/typography@npm:0.5.16" @@ -5580,6 +6074,25 @@ __metadata: languageName: node linkType: hard +"@tanstack/react-virtual@npm:^3.13.10, @tanstack/react-virtual@npm:^3.13.9": + version: 3.13.12 + resolution: "@tanstack/react-virtual@npm:3.13.12" + dependencies: + "@tanstack/virtual-core": "npm:3.13.12" + peerDependencies: + react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 + react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 + checksum: 10c0/0eda3d5691ec3bf93a1cdaa955f4972c7aa9a5026179622824bb52ff8c47e59ee4634208e52d77f43ffb3ce435ee39a0899d6a81f6316918ce89d68122490371 + languageName: node + linkType: hard + +"@tanstack/virtual-core@npm:3.13.12": + version: 3.13.12 + resolution: "@tanstack/virtual-core@npm:3.13.12" + checksum: 10c0/483f38761b73db05c181c10181f0781c1051be3350ae5c378e65057e5f1fdd6606e06e17dbaad8a5e36c04b208ea1a1344cacd4eca0dcde60f335cf398e4d698 + languageName: node + linkType: hard + "@tsconfig/node10@npm:^1.0.7": version: 1.0.11 resolution: "@tsconfig/node10@npm:1.0.11" @@ -6297,6 +6810,13 @@ __metadata: languageName: node linkType: hard +"@types/stylis@npm:4.2.5": + version: 4.2.5 + resolution: "@types/stylis@npm:4.2.5" + checksum: 10c0/23f5b35a3a04f6bb31a29d404fa1bc8e0035fcaff2356b4047743a057e0c37b2eba7efe14d57dd2b95b398cea3bac294d9c6cd93ed307d8c0b7f5d282224b469 + languageName: node + linkType: hard + "@types/three@npm:*": version: 0.170.0 resolution: "@types/three@npm:0.170.0" @@ -6561,6 +7081,31 @@ __metadata: languageName: node linkType: hard +"@wallet-standard/app@npm:^1.0.1": + version: 1.1.0 + resolution: "@wallet-standard/app@npm:1.1.0" + dependencies: + "@wallet-standard/base": "npm:^1.1.0" + checksum: 10c0/04650f92d512493f4556cbf48e49626745a0fe55633b03a96d99698e415d5e66114733ba3cff25867b9f89ef607f5755b0ad964a914e8b43f94df508be6998d0 + languageName: node + linkType: hard + +"@wallet-standard/base@npm:^1.1.0": + version: 1.1.0 + resolution: "@wallet-standard/base@npm:1.1.0" + checksum: 10c0/4cae344d5a74ba4b7d063b649b191f2267bd11ea9573ebb9e78874163c03b58e3ec531bb296d0a8d7941bc09231761d97afb4c6ca8c0dc399c81d39884b4e408 + languageName: node + linkType: hard + +"@wallet-standard/wallet@npm:1.1.0": + version: 1.1.0 + resolution: "@wallet-standard/wallet@npm:1.1.0" + dependencies: + "@wallet-standard/base": "npm:^1.1.0" + checksum: 10c0/aa53460568f209d4e38030ee5e98d4f6ea6fec159a1e7fb5a3ee81cf8d91c89f0be86b7188dbf0bb9803d10608bf88bd824f73cd6800823279738827304038e5 + languageName: node + linkType: hard + "@walletconnect/core@npm:2.21.0": version: 2.21.0 resolution: "@walletconnect/core@npm:2.21.0" @@ -6611,6 +7156,56 @@ __metadata: languageName: node linkType: hard +"@walletconnect/core@npm:2.21.9": + version: 2.21.9 + resolution: "@walletconnect/core@npm:2.21.9" + dependencies: + "@walletconnect/heartbeat": "npm:1.2.2" + "@walletconnect/jsonrpc-provider": "npm:1.0.14" + "@walletconnect/jsonrpc-types": "npm:1.0.4" + "@walletconnect/jsonrpc-utils": "npm:1.0.8" + "@walletconnect/jsonrpc-ws-connection": "npm:1.0.16" + "@walletconnect/keyvaluestorage": "npm:1.1.1" + "@walletconnect/logger": "npm:2.1.2" + "@walletconnect/relay-api": "npm:1.0.11" + "@walletconnect/relay-auth": "npm:1.1.0" + "@walletconnect/safe-json": "npm:1.0.2" + "@walletconnect/time": "npm:1.0.2" + "@walletconnect/types": "npm:2.21.9" + "@walletconnect/utils": "npm:2.21.9" + "@walletconnect/window-getters": "npm:1.0.1" + es-toolkit: "npm:1.39.3" + events: "npm:3.3.0" + uint8arrays: "npm:3.1.1" + checksum: 10c0/ebea147d187ffdce47623ce4a377f81d266c4aceb8261e22ef35e9ad629f58797afd2d1be1e5675b205b5ba661ba1515eeacb35844c770dea7999f4376e32607 + languageName: node + linkType: hard + +"@walletconnect/core@npm:2.22.4": + version: 2.22.4 + resolution: "@walletconnect/core@npm:2.22.4" + dependencies: + "@walletconnect/heartbeat": "npm:1.2.2" + "@walletconnect/jsonrpc-provider": "npm:1.0.14" + "@walletconnect/jsonrpc-types": "npm:1.0.4" + "@walletconnect/jsonrpc-utils": "npm:1.0.8" + "@walletconnect/jsonrpc-ws-connection": "npm:1.0.16" + "@walletconnect/keyvaluestorage": "npm:1.1.1" + "@walletconnect/logger": "npm:3.0.0" + "@walletconnect/relay-api": "npm:1.0.11" + "@walletconnect/relay-auth": "npm:1.1.0" + "@walletconnect/safe-json": "npm:1.0.2" + "@walletconnect/time": "npm:1.0.2" + "@walletconnect/types": "npm:2.22.4" + "@walletconnect/utils": "npm:2.22.4" + "@walletconnect/window-getters": "npm:1.0.1" + es-toolkit: "npm:1.39.3" + events: "npm:3.3.0" + uint8arrays: "npm:3.1.1" + checksum: 10c0/e4d98b0845988e4618ea29711e1cf4cdbee13b4cfc81658d31dc93ff922a4ae2249e20f76eb4c8dac65806be08288ffe2679699a623f5aba753053b62b11976d + languageName: node + linkType: hard + "@walletconnect/environment@npm:^1.0.1": version: 1.0.1 resolution: "@walletconnect/environment@npm:1.0.1" @@ -6639,6 +7234,26 @@ __metadata: languageName: node linkType: hard +"@walletconnect/ethereum-provider@npm:2.22.4": + version: 2.22.4 + resolution: "@walletconnect/ethereum-provider@npm:2.22.4" + dependencies: + "@reown/appkit": "npm:1.8.9" + "@walletconnect/jsonrpc-http-connection": "npm:1.0.8" + "@walletconnect/jsonrpc-provider": "npm:1.0.14" + "@walletconnect/jsonrpc-types": "npm:1.0.4" + "@walletconnect/jsonrpc-utils": "npm:1.0.8" + "@walletconnect/keyvaluestorage": "npm:1.1.1" + "@walletconnect/logger": "npm:3.0.0" + "@walletconnect/sign-client": "npm:2.22.4" + "@walletconnect/types": "npm:2.22.4" + "@walletconnect/universal-provider": "npm:2.22.4" + "@walletconnect/utils": "npm:2.22.4" + events: "npm:3.3.0" + checksum: 10c0/e756b920a87066e7b9cc2c99967d00153bc25f049fd491e17b8876985a5043e6259a3c7f29ed19d2c99f222ffd0f7e4fe37b6ac82198975c83e2a81bb7e0eb11 + languageName: node + linkType: hard + "@walletconnect/events@npm:1.0.1, @walletconnect/events@npm:^1.0.1": version: 1.0.1 resolution: "@walletconnect/events@npm:1.0.1" @@ -6742,6 +7357,16 @@ __metadata: languageName: node linkType: hard +"@walletconnect/logger@npm:3.0.0": + version: 3.0.0 + resolution: "@walletconnect/logger@npm:3.0.0" + dependencies: + "@walletconnect/safe-json": "npm:^1.0.2" + pino: "npm:10.0.0" + checksum: 10c0/d8666a3074ed1d2b3afd04b76990e6552ed230381949c19dd19115a5e306314e4aede3492b1f715a3f9e49f45269d2ab58cc6f3de101ad4367ea8b617a23233b + languageName: node + linkType: hard + "@walletconnect/relay-api@npm:1.0.11": version: 1.0.11 resolution: "@walletconnect/relay-api@npm:1.0.11" @@ -6807,6 +7432,40 @@ __metadata: languageName: node linkType: hard +"@walletconnect/sign-client@npm:2.21.9": + version: 2.21.9 + resolution: "@walletconnect/sign-client@npm:2.21.9" + dependencies: + "@walletconnect/core": "npm:2.21.9" + "@walletconnect/events": "npm:1.0.1" + "@walletconnect/heartbeat": "npm:1.2.2" + "@walletconnect/jsonrpc-utils": "npm:1.0.8" + "@walletconnect/logger": "npm:2.1.2" + "@walletconnect/time": "npm:1.0.2" + "@walletconnect/types": "npm:2.21.9" + "@walletconnect/utils": "npm:2.21.9" + events: "npm:3.3.0" + checksum: 10c0/ec8492cac0a5957da677b0de836e2fdad1941db951d158b33e0e485e6d0756d7b92a1c26c62b80ae70124ec63aa55d8af65db9610a18c02966b4eefac57a4753 + languageName: node + linkType: hard + +"@walletconnect/sign-client@npm:2.22.4": + version: 2.22.4 + resolution: "@walletconnect/sign-client@npm:2.22.4" + dependencies: + "@walletconnect/core": "npm:2.22.4" + "@walletconnect/events": "npm:1.0.1" + "@walletconnect/heartbeat": "npm:1.2.2" + "@walletconnect/jsonrpc-utils": "npm:1.0.8" + "@walletconnect/logger": "npm:3.0.0" + "@walletconnect/time": "npm:1.0.2" + "@walletconnect/types": "npm:2.22.4" + "@walletconnect/utils": "npm:2.22.4" + events: "npm:3.3.0" + checksum: 10c0/4fe41594f06ad8226d87e6b643c1a356f3c4f173988b317b74e5d504c375937e0a6029f30e13152e728cb43c431f4e5d1c4043f080e579f4e3072791ceccbc83 + languageName: node + linkType: hard + "@walletconnect/time@npm:1.0.2, @walletconnect/time@npm:^1.0.2": version: 1.0.2 resolution: "@walletconnect/time@npm:1.0.2" @@ -6844,6 +7503,34 @@ __metadata: languageName: node linkType: hard +"@walletconnect/types@npm:2.21.9": + version: 2.21.9 + resolution: "@walletconnect/types@npm:2.21.9" + dependencies: + "@walletconnect/events": "npm:1.0.1" + "@walletconnect/heartbeat": "npm:1.2.2" + "@walletconnect/jsonrpc-types": "npm:1.0.4" + "@walletconnect/keyvaluestorage": "npm:1.1.1" + "@walletconnect/logger": "npm:2.1.2" + events: "npm:3.3.0" + checksum: 10c0/2cebcc7f7900286c9c8df5baa226278815762066fe521d88de4a7c00d27f4edc00a6a79bae61bfcb4b9de4bc16c97bee64b4eb6e949d21c39b3697d92b7e5b52 + languageName: node + linkType: hard + +"@walletconnect/types@npm:2.22.4": + version: 2.22.4 + resolution: "@walletconnect/types@npm:2.22.4" + dependencies: + "@walletconnect/events": "npm:1.0.1" + "@walletconnect/heartbeat": "npm:1.2.2" + "@walletconnect/jsonrpc-types": "npm:1.0.4" + "@walletconnect/keyvaluestorage": "npm:1.1.1" + "@walletconnect/logger": "npm:3.0.0" + events: "npm:3.3.0" + checksum: 10c0/546b25aa116ea073c3e4b82fa3a3edd92e1c431ceff008d183054a1d63f912d2c5ddb2d2af497f7df2ab5801dc20b1ebae4f8ab65e39f7e89d41e65c9dda7c2d + languageName: node + linkType: hard + "@walletconnect/universal-provider@npm:2.21.0": version: 2.21.0 resolution: "@walletconnect/universal-provider@npm:2.21.0" @@ -6884,6 +7571,46 @@ __metadata: languageName: node linkType: hard +"@walletconnect/universal-provider@npm:2.21.9": + version: 2.21.9 + resolution: "@walletconnect/universal-provider@npm:2.21.9" + dependencies: + "@walletconnect/events": "npm:1.0.1" + "@walletconnect/jsonrpc-http-connection": "npm:1.0.8" + "@walletconnect/jsonrpc-provider": "npm:1.0.14" + "@walletconnect/jsonrpc-types": "npm:1.0.4" + "@walletconnect/jsonrpc-utils": "npm:1.0.8" + "@walletconnect/keyvaluestorage": "npm:1.1.1" + "@walletconnect/logger": "npm:2.1.2" + "@walletconnect/sign-client": "npm:2.21.9" + "@walletconnect/types": "npm:2.21.9" + "@walletconnect/utils": "npm:2.21.9" + es-toolkit: "npm:1.39.3" + events: "npm:3.3.0" + checksum: 10c0/db547c9f97bd9a0a55945240a210b1502bf23afab35edd282dec02d38c3e9a38796330d65e1efd7aa6014016cc50bb7ff2b5584e068a7da21ba040c1f31f3317 + languageName: node + linkType: hard + +"@walletconnect/universal-provider@npm:2.22.4": + version: 2.22.4 + resolution: "@walletconnect/universal-provider@npm:2.22.4" + dependencies: + "@walletconnect/events": "npm:1.0.1" + "@walletconnect/jsonrpc-http-connection": "npm:1.0.8" + "@walletconnect/jsonrpc-provider": "npm:1.0.14" + "@walletconnect/jsonrpc-types": "npm:1.0.4" + "@walletconnect/jsonrpc-utils": "npm:1.0.8" + "@walletconnect/keyvaluestorage": "npm:1.1.1" + "@walletconnect/logger": "npm:3.0.0" + "@walletconnect/sign-client": "npm:2.22.4" + "@walletconnect/types": "npm:2.22.4" + "@walletconnect/utils": "npm:2.22.4" + es-toolkit: "npm:1.39.3" + events: "npm:3.3.0" + checksum: 10c0/979823c2933bf907ff1664677a589a165c13fb32d0d037355d9f3939a4400a0e12aefe54f54ac5e1eaeb5cdff5e71b9e56e891390d3e247588f311dc65780255 + languageName: node + linkType: hard + "@walletconnect/utils@npm:2.21.0": version: 2.21.0 resolution: "@walletconnect/utils@npm:2.21.0" @@ -6934,6 +7661,61 @@ __metadata: languageName: node linkType: hard +"@walletconnect/utils@npm:2.21.9": + version: 2.21.9 + resolution: "@walletconnect/utils@npm:2.21.9" + dependencies: + "@msgpack/msgpack": "npm:3.1.2" + "@noble/ciphers": "npm:1.3.0" + "@noble/curves": "npm:1.9.7" + "@noble/hashes": "npm:1.8.0" + "@scure/base": "npm:1.2.6" + "@walletconnect/jsonrpc-utils": "npm:1.0.8" + "@walletconnect/keyvaluestorage": "npm:1.1.1" + "@walletconnect/relay-api": "npm:1.0.11" + "@walletconnect/relay-auth": "npm:1.1.0" + "@walletconnect/safe-json": "npm:1.0.2" + "@walletconnect/time": "npm:1.0.2" + "@walletconnect/types": "npm:2.21.9" + "@walletconnect/window-getters": "npm:1.0.1" + "@walletconnect/window-metadata": "npm:1.0.1" + blakejs: "npm:1.2.1" + bs58: "npm:6.0.0" + detect-browser: "npm:5.3.0" + uint8arrays: "npm:3.1.1" + viem: "npm:2.36.0" + checksum: 10c0/18938edacc1482e8ac7c48f03bf0918738474555a1dfe4ebaa908c30f3ea8071c4bc7ac3833eb89ce74ebf2a529887590c7efc891cbc42fbf0f29b3b81533fc4 + languageName: node + linkType: hard + +"@walletconnect/utils@npm:2.22.4": + version: 2.22.4 + resolution: "@walletconnect/utils@npm:2.22.4" + dependencies: + "@msgpack/msgpack": "npm:3.1.2" + "@noble/ciphers": "npm:1.3.0" + "@noble/curves": "npm:1.9.7" + "@noble/hashes": "npm:1.8.0" + "@scure/base": "npm:1.2.6" + "@walletconnect/jsonrpc-utils": "npm:1.0.8" + "@walletconnect/keyvaluestorage": "npm:1.1.1" + "@walletconnect/logger": "npm:3.0.0" + "@walletconnect/relay-api": "npm:1.0.11" + "@walletconnect/relay-auth": "npm:1.1.0" + "@walletconnect/safe-json": "npm:1.0.2" + "@walletconnect/time": "npm:1.0.2" + "@walletconnect/types": "npm:2.22.4" + "@walletconnect/window-getters": "npm:1.0.1" + "@walletconnect/window-metadata": "npm:1.0.1" + blakejs: "npm:1.2.1" + bs58: "npm:6.0.0" + detect-browser: "npm:5.3.0" + ox: "npm:0.9.3" + uint8arrays: "npm:3.1.1" + checksum: 10c0/1b29d591bf4473cbb4561bb99e55836d818d71e827c4022075f6c624e9e45118894fa898ead7fa131677f346448f474e10512e40ccbb15c2acaaed90f0fa4e6b + languageName: node + linkType: hard + "@walletconnect/window-getters@npm:1.0.1, @walletconnect/window-getters@npm:^1.0.1": version: 1.0.1 resolution: "@walletconnect/window-getters@npm:1.0.1" @@ -7038,21 +7820,6 @@ __metadata: languageName: node linkType: hard -"abitype@npm:1.0.5, abitype@npm:^1.0.4": - version: 1.0.5 - resolution: "abitype@npm:1.0.5" - peerDependencies: - typescript: ">=5.0.4" - zod: ^3 >=3.22.0 - peerDependenciesMeta: - typescript: - optional: true - zod: - optional: true - checksum: 10c0/dc954877fba19e2b7a70f1025807d69fa5aabec8bd58ce94e68d1a5ec1697fff3fe5214b4392508db7191762150f19a2396cf66ffb1d3ba8c1f37a89fd25e598 - languageName: node - linkType: hard - "abitype@npm:1.0.8, abitype@npm:^1.0.8": version: 1.0.8 resolution: "abitype@npm:1.0.8" @@ -7068,9 +7835,9 @@ __metadata: languageName: node linkType: hard -"abitype@npm:^1.0.6": - version: 1.0.6 - resolution: "abitype@npm:1.0.6" +"abitype@npm:^1.0.4": + version: 1.0.5 + resolution: "abitype@npm:1.0.5" peerDependencies: typescript: ">=5.0.4" zod: ^3 >=3.22.0 @@ -7079,7 +7846,7 @@ __metadata: optional: true zod: optional: true - checksum: 10c0/30ca97010bbf34b9aaed401858eeb6bc30419f7ff11eb34adcb243522dd56c9d8a9d3d406aa5d4f60a7c263902f5136043005698e3f073ea882a4922d43a2929 + checksum: 10c0/dc954877fba19e2b7a70f1025807d69fa5aabec8bd58ce94e68d1a5ec1697fff3fe5214b4392508db7191762150f19a2396cf66ffb1d3ba8c1f37a89fd25e598 languageName: node linkType: hard @@ -7435,6 +8202,13 @@ __metadata: languageName: node linkType: hard +"blakejs@npm:1.2.1": + version: 1.2.1 + resolution: "blakejs@npm:1.2.1" + checksum: 10c0/c284557ce55b9c70203f59d381f1b85372ef08ee616a90162174d1291a45d3e5e809fdf9edab6e998740012538515152471dc4f1f9dbfa974ba2b9c1f7b9aad7 + languageName: node + linkType: hard + "bn.js@npm:^5.2.1": version: 5.2.1 resolution: "bn.js@npm:5.2.1" @@ -7671,6 +8445,15 @@ __metadata: languageName: node linkType: hard +"canonicalize@npm:^2.0.0": + version: 2.1.0 + resolution: "canonicalize@npm:2.1.0" + bin: + canonicalize: bin/canonicalize.js + checksum: 10c0/3b1ec612765851e71eeff2868f5ccbf0a06ffd8db8deef36efda89167527f96803b555c4ca8b5f5230f0a13badeeac5541c9244c8996fea97d00cee8dca2bf35 + languageName: node + linkType: hard + "canvas-confetti@npm:^1.9.3": version: 1.9.3 resolution: "canvas-confetti@npm:1.9.3" @@ -7997,7 +8780,7 @@ __metadata: languageName: node linkType: hard -"clsx@npm:2.1.1": +"clsx@npm:2.1.1, clsx@npm:^2.0.0": version: 2.1.1 resolution: "clsx@npm:2.1.1" checksum: 10c0/c4c8eb865f8c82baab07e71bfa8897c73454881c4f99d6bc81585aecd7c441746c1399d08363dc096c550cceaf97bd4ce1e8854e1771e9998d9f94c4fe075839 @@ -8036,7 +8819,7 @@ __metadata: languageName: node linkType: hard -"colorette@npm:^2.0.16": +"colorette@npm:^2.0.16, colorette@npm:^2.0.7": version: 2.0.20 resolution: "colorette@npm:2.0.20" checksum: 10c0/e94116ff33b0ff56f3b83b9ace895e5bf87c2a7a47b3401b8c3f3226e050d5ef76cf4072fb3325f9dc24d1698f9b730baf4e05eeaf861d74a1883073f4c98a40 @@ -8244,7 +9027,7 @@ __metadata: languageName: node linkType: hard -"css-to-react-native@npm:^3.0.0": +"css-to-react-native@npm:3.2.0, css-to-react-native@npm:^3.0.0": version: 3.2.0 resolution: "css-to-react-native@npm:3.2.0" dependencies: @@ -8264,7 +9047,7 @@ __metadata: languageName: node linkType: hard -"csstype@npm:^3.0.2": +"csstype@npm:3.1.3, csstype@npm:^3.0.2": version: 3.1.3 resolution: "csstype@npm:3.1.3" checksum: 10c0/80c089d6f7e0c5b2bd83cf0539ab41474198579584fa10d86d0cafe0642202343cbc119e076a0b1aece191989477081415d66c9fefbf3c957fc2fc4b7009f248 @@ -8301,6 +9084,13 @@ __metadata: languageName: node linkType: hard +"dateformat@npm:^4.6.3": + version: 4.6.3 + resolution: "dateformat@npm:4.6.3" + checksum: 10c0/e2023b905e8cfe2eb8444fb558562b524807a51cdfe712570f360f873271600b5c94aebffaf11efb285e2c072264a7cf243eadb68f3eba0f8cc85fb86cd25df6 + languageName: node + linkType: hard + "dayjs@npm:1.11.13": version: 1.11.13 resolution: "dayjs@npm:1.11.13" @@ -8433,6 +9223,13 @@ __metadata: languageName: node linkType: hard +"destr@npm:^2.0.5": + version: 2.0.5 + resolution: "destr@npm:2.0.5" + checksum: 10c0/efabffe7312a45ad90d79975376be958c50069f1156b94c181199763a7f971e113bd92227c26b94a169c71ca7dbc13583b7e96e5164743969fc79e1ff153e646 + languageName: node + linkType: hard + "detect-browser@npm:5.3.0, detect-browser@npm:^5.2.0, detect-browser@npm:^5.3.0": version: 5.3.0 resolution: "detect-browser@npm:5.3.0" @@ -8782,11 +9579,23 @@ __metadata: languageName: node linkType: hard -"esbuild@npm:^0.21.3": - version: 0.21.5 - resolution: "esbuild@npm:0.21.5" - dependencies: - "@esbuild/aix-ppc64": "npm:0.21.5" +"es-toolkit@npm:1.39.3": + version: 1.39.3 + resolution: "es-toolkit@npm:1.39.3" + dependenciesMeta: + "@trivago/prettier-plugin-sort-imports@4.3.0": + unplugged: true + prettier-plugin-sort-re-exports@0.0.1: + unplugged: true + checksum: 10c0/1c85e518b1d129d38fdc5796af353f45e8dcb8a20968ff25da1ae1749fc4a36f914570fcd992df33b47c7bca9f3866d53e4e6fa6411c21eb424e99a3e479c96e + languageName: node + linkType: hard + +"esbuild@npm:^0.21.3": + version: 0.21.5 + resolution: "esbuild@npm:0.21.5" + dependencies: + "@esbuild/aix-ppc64": "npm:0.21.5" "@esbuild/android-arm": "npm:0.21.5" "@esbuild/android-arm64": "npm:0.21.5" "@esbuild/android-x64": "npm:0.21.5" @@ -9264,6 +10073,13 @@ __metadata: languageName: node linkType: hard +"fast-copy@npm:^3.0.0": + version: 3.0.2 + resolution: "fast-copy@npm:3.0.2" + checksum: 10c0/02e8b9fd03c8c024d2987760ce126456a0e17470850b51e11a1c3254eed6832e4733ded2d93316c82bc0b36aeb991ad1ff48d1ba95effe7add7c3ab8d8eb554a + languageName: node + linkType: hard + "fast-decode-uri-component@npm:^1.0.1": version: 1.0.1 resolution: "fast-decode-uri-component@npm:1.0.1" @@ -9304,6 +10120,13 @@ __metadata: languageName: node linkType: hard +"fast-password-entropy@npm:^1.1.1": + version: 1.1.1 + resolution: "fast-password-entropy@npm:1.1.1" + checksum: 10c0/4929007327613322354da36d44523785648f2f8565bb286c653cc7c4f10c5d0d9b0fe4f1b4993e20b5a928cc11526800e51e3627ef2f80d46fb9f3f8844b0738 + languageName: node + linkType: hard + "fast-querystring@npm:^1.1.1": version: 1.1.2 resolution: "fast-querystring@npm:1.1.2" @@ -9320,7 +10143,7 @@ __metadata: languageName: node linkType: hard -"fast-safe-stringify@npm:^2.0.6": +"fast-safe-stringify@npm:^2.0.6, fast-safe-stringify@npm:^2.1.1": version: 2.1.1 resolution: "fast-safe-stringify@npm:2.1.1" checksum: 10c0/d90ec1c963394919828872f21edaa3ad6f1dddd288d2bd4e977027afff09f5db40f94e39536d4646f7e01761d704d72d51dce5af1b93717f3489ef808f5f4e4d @@ -9391,6 +10214,13 @@ __metadata: languageName: node linkType: hard +"fetch-retry@npm:^6.0.0": + version: 6.0.0 + resolution: "fetch-retry@npm:6.0.0" + checksum: 10c0/8e275b042ff98041236d30b71966f24c34ff19f957bb0f00e664754bd63d0dfb5122d091e7d5bca21f6370d88a1713d22421b33471305d7b86d6799427278802 + languageName: node + linkType: hard + "fflate@npm:^0.6.9": version: 0.6.10 resolution: "fflate@npm:0.6.10" @@ -9913,6 +10743,13 @@ __metadata: languageName: node linkType: hard +"help-me@npm:^5.0.0": + version: 5.0.0 + resolution: "help-me@npm:5.0.0" + checksum: 10c0/054c0e2e9ae2231c85ab5e04f75109b9d068ffcc54e58fb22079822a5ace8ff3d02c66fd45379c902ad5ab825e5d2e1451fcc2f7eab1eb49e7d488133ba4cacb + languageName: node + linkType: hard + "hey-listen@npm:^1.0.8": version: 1.0.8 resolution: "hey-listen@npm:1.0.8" @@ -10142,6 +10979,9 @@ __metadata: "@netlify/functions": "npm:^2.8.1" "@number-flow/react": "npm:^0.5.9" "@parcel/watcher": "npm:2.5.1" + "@privy-io/react-auth": "npm:^3.6.0" + "@privy-io/wagmi": "npm:^2.0.2" + "@privy-io/wagmi-connector": "npm:^0.1.13" "@radix-ui/react-accordion": "npm:^1.2.3" "@radix-ui/react-checkbox": "npm:^1.1.2" "@radix-ui/react-collapsible": "npm:^1.1.1" @@ -10557,24 +11397,6 @@ __metadata: languageName: node linkType: hard -"isows@npm:1.0.4": - version: 1.0.4 - resolution: "isows@npm:1.0.4" - peerDependencies: - ws: "*" - checksum: 10c0/46f43b07edcf148acba735ddfc6ed985e1e124446043ea32b71023e67671e46619c8818eda8c34a9ac91cb37c475af12a3aeeee676a88a0aceb5d67a3082313f - languageName: node - linkType: hard - -"isows@npm:1.0.6": - version: 1.0.6 - resolution: "isows@npm:1.0.6" - peerDependencies: - ws: "*" - checksum: 10c0/f89338f63ce2f497d6cd0f86e42c634209328ebb43b3bdfdc85d8f1589ee75f02b7e6d9e1ba274101d0f6f513b1b8cbe6985e6542b4aaa1f0c5fd50d9c1be95c - languageName: node - linkType: hard - "isows@npm:1.0.7": version: 1.0.7 resolution: "isows@npm:1.0.7" @@ -10635,6 +11457,13 @@ __metadata: languageName: node linkType: hard +"jose@npm:^4.15.5": + version: 4.15.9 + resolution: "jose@npm:4.15.9" + checksum: 10c0/4ed4ddf4a029db04bd167f2215f65d7245e4dc5f36d7ac3c0126aab38d66309a9e692f52df88975d99429e357e5fd8bab340ff20baab544d17684dd1d940a0f4 + languageName: node + linkType: hard + "jose@npm:^5.0.0": version: 5.6.3 resolution: "jose@npm:5.6.3" @@ -10667,6 +11496,20 @@ __metadata: languageName: node linkType: hard +"joycon@npm:^3.1.1": + version: 3.1.1 + resolution: "joycon@npm:3.1.1" + checksum: 10c0/131fb1e98c9065d067fd49b6e685487ac4ad4d254191d7aa2c9e3b90f4e9ca70430c43cad001602bdbdabcf58717d3b5c5b7461c1bd8e39478c8de706b3fe6ae + languageName: node + linkType: hard + +"js-cookie@npm:^3.0.5": + version: 3.0.5 + resolution: "js-cookie@npm:3.0.5" + checksum: 10c0/04a0e560407b4489daac3a63e231d35f4e86f78bff9d792011391b49c59f721b513411cd75714c418049c8dc9750b20fcddad1ca5a2ca616c3aca4874cce5b3a + languageName: node + linkType: hard + "js-tokens@npm:^3.0.0 || ^4.0.0, js-tokens@npm:^4.0.0": version: 4.0.0 resolution: "js-tokens@npm:4.0.0" @@ -10779,6 +11622,13 @@ __metadata: languageName: node linkType: hard +"libphonenumber-js@npm:^1.10.44": + version: 1.12.25 + resolution: "libphonenumber-js@npm:1.12.25" + checksum: 10c0/071c942e34e32d7883fb08a3c6f53003eca7067d06d19511c8ba7312fefe5420b998479afd078a5be6958bac163481072ba2560b4ccb5c680b7c6aa67b6810c2 + languageName: node + linkType: hard + "lie@npm:^3.0.2": version: 3.3.0 resolution: "lie@npm:3.3.0" @@ -10899,6 +11749,17 @@ __metadata: languageName: node linkType: hard +"lit@npm:^3": + version: 3.3.1 + resolution: "lit@npm:3.3.1" + dependencies: + "@lit/reactive-element": "npm:^2.1.0" + lit-element: "npm:^4.2.0" + lit-html: "npm:^3.3.0" + checksum: 10c0/9f3e171e211be7cd3e01693eac4ba4752fc7bafebc8298fc5b9cb70ff279dd4dc292f1cb425ca42f61c3767a75b7557295c2f6b16335719bc8cf1ca6f3622fb7 + languageName: node + linkType: hard + "load-tsconfig@npm:^0.2.3": version: 0.2.5 resolution: "load-tsconfig@npm:0.2.5" @@ -11059,6 +11920,15 @@ __metadata: languageName: node linkType: hard +"lucide-react@npm:^0.383.0": + version: 0.383.0 + resolution: "lucide-react@npm:0.383.0" + peerDependencies: + react: ^16.5.1 || ^17.0.0 || ^18.0.0 + checksum: 10c0/241814c4a12b7f1e946a18d60fff4d35ab25ece77dcd6eb99dd7cf3a31d1578b2263aa5339a67c0a84646fdcd16cee47f9f53f0c5aff8cfc6601f2e001052cde + languageName: node + linkType: hard + "luxon@npm:^3.5.0": version: 3.5.0 resolution: "luxon@npm:3.5.0" @@ -11592,6 +12462,13 @@ __metadata: languageName: node linkType: hard +"minimist@npm:^1.2.6": + version: 1.2.8 + resolution: "minimist@npm:1.2.8" + checksum: 10c0/19d3fcdca050087b84c2029841a093691a91259a47def2f18222f41e7645a0b7c44ef4b40e88a1e58a40c84d2ef0ee6047c55594d298146d0eb3f6b737c20ce6 + languageName: node + linkType: hard + "minipass-collect@npm:^2.0.1": version: 2.0.1 resolution: "minipass-collect@npm:2.0.1" @@ -11676,7 +12553,7 @@ __metadata: languageName: node linkType: hard -"mipd@npm:0.0.7": +"mipd@npm:0.0.7, mipd@npm:^0.0.7": version: 0.0.7 resolution: "mipd@npm:0.0.7" peerDependencies: @@ -11847,6 +12724,13 @@ __metadata: languageName: node linkType: hard +"node-fetch-native@npm:^1.6.7": + version: 1.6.7 + resolution: "node-fetch-native@npm:1.6.7" + checksum: 10c0/8b748300fb053d21ca4d3db9c3ff52593d5e8f8a2d9fe90cbfad159676e324b954fdaefab46aeca007b5b9edab3d150021c4846444e4e8ab1f4e44cd3807be87 + languageName: node + linkType: hard + "node-fetch@npm:^2.6.1, node-fetch@npm:^2.6.12": version: 2.7.0 resolution: "node-fetch@npm:2.7.0" @@ -12015,6 +12899,17 @@ __metadata: languageName: node linkType: hard +"ofetch@npm:^1.3.4": + version: 1.5.1 + resolution: "ofetch@npm:1.5.1" + dependencies: + destr: "npm:^2.0.5" + node-fetch-native: "npm:^1.6.7" + ufo: "npm:^1.6.1" + checksum: 10c0/97ebc600512ea0ab401e97c73313218cc53c9b530b32ec8c995c347b0c68887129993168d1753f527761a64c6f93a5d823ce1378ccec95fc65a606f323a79a6c + languageName: node + linkType: hard + "ohash@npm:^1.1.3": version: 1.1.3 resolution: "ohash@npm:1.1.3" @@ -12029,6 +12924,13 @@ __metadata: languageName: node linkType: hard +"on-exit-leak-free@npm:^2.1.0": + version: 2.1.2 + resolution: "on-exit-leak-free@npm:2.1.2" + checksum: 10c0/faea2e1c9d696ecee919026c32be8d6a633a7ac1240b3b87e944a380e8a11dc9c95c4a1f8fb0568de7ab8db3823e790f12bda45296b1d111e341aad3922a0570 + languageName: node + linkType: hard + "once@npm:^1.3.0, once@npm:^1.3.1, once@npm:^1.4.0": version: 1.4.0 resolution: "once@npm:1.4.0" @@ -12080,49 +12982,9 @@ __metadata: languageName: node linkType: hard -"ox@npm:0.6.7": - version: 0.6.7 - resolution: "ox@npm:0.6.7" - dependencies: - "@adraffy/ens-normalize": "npm:^1.10.1" - "@noble/curves": "npm:^1.6.0" - "@noble/hashes": "npm:^1.5.0" - "@scure/bip32": "npm:^1.5.0" - "@scure/bip39": "npm:^1.4.0" - abitype: "npm:^1.0.6" - eventemitter3: "npm:5.0.1" - peerDependencies: - typescript: ">=5.4.0" - peerDependenciesMeta: - typescript: - optional: true - checksum: 10c0/f556804e7246cc8aa56e43c6bb91302a792649638afe086a86ed3a71a5a583c05d3ad4318b212835cb8167fe561024db1625253c118018380393e161af3c3edf - languageName: node - linkType: hard - -"ox@npm:0.6.9": - version: 0.6.9 - resolution: "ox@npm:0.6.9" - dependencies: - "@adraffy/ens-normalize": "npm:^1.10.1" - "@noble/curves": "npm:^1.6.0" - "@noble/hashes": "npm:^1.5.0" - "@scure/bip32": "npm:^1.5.0" - "@scure/bip39": "npm:^1.4.0" - abitype: "npm:^1.0.6" - eventemitter3: "npm:5.0.1" - peerDependencies: - typescript: ">=5.4.0" - peerDependenciesMeta: - typescript: - optional: true - checksum: 10c0/02a7ea9795eaac0a7a672e983094f62ae6f19b7d0c786e6d7ef4584683faf535b5b133e42452dd3abb77115382e16b2cb5c0f629d5a0f2b80832c47756e0ecd1 - languageName: node - linkType: hard - -"ox@npm:0.8.1": - version: 0.8.1 - resolution: "ox@npm:0.8.1" +"ox@npm:^0.8.1": + version: 0.8.9 + resolution: "ox@npm:0.8.9" dependencies: "@adraffy/ens-normalize": "npm:^1.11.0" "@noble/ciphers": "npm:^1.3.0" @@ -12137,7 +12999,7 @@ __metadata: peerDependenciesMeta: typescript: optional: true - checksum: 10c0/3d04df384a35c94b21a29d867ee3735acf9a975d46ffb0a26cc438b92f1e4952b2b3cddb74b4213e88d2988e82687db9b85c1018c5d4b24737b1c3d7cb7c809e + checksum: 10c0/d3a0c4e3f908e0d18914f17d9c832e777de6caf7d8395bf35978d9cca196e540fe63c230a40bfe462eb3a320c1aba0749e0bede0a5fc4e8501b20d4e784c64ad languageName: node linkType: hard @@ -12413,6 +13275,25 @@ __metadata: languageName: node linkType: hard +"pino-abstract-transport@npm:^1.0.0": + version: 1.2.0 + resolution: "pino-abstract-transport@npm:1.2.0" + dependencies: + readable-stream: "npm:^4.0.0" + split2: "npm:^4.0.0" + checksum: 10c0/b4ab59529b7a91f488440147fc58ee0827a6c1c5ca3627292339354b1381072c1a6bfa9b46d03ad27872589e8477ecf74da12cf286e1e6b665ac64a3b806bf07 + languageName: node + linkType: hard + +"pino-abstract-transport@npm:^2.0.0": + version: 2.0.0 + resolution: "pino-abstract-transport@npm:2.0.0" + dependencies: + split2: "npm:^4.0.0" + checksum: 10c0/02c05b8f2ffce0d7c774c8e588f61e8b77de8ccb5f8125afd4a7325c9ea0e6af7fb78168999657712ae843e4462bb70ac550dfd6284f930ee57f17f486f25a9f + languageName: node + linkType: hard + "pino-abstract-transport@npm:v0.5.0": version: 0.5.0 resolution: "pino-abstract-transport@npm:0.5.0" @@ -12423,6 +13304,30 @@ __metadata: languageName: node linkType: hard +"pino-pretty@npm:^10.0.0": + version: 10.3.1 + resolution: "pino-pretty@npm:10.3.1" + dependencies: + colorette: "npm:^2.0.7" + dateformat: "npm:^4.6.3" + fast-copy: "npm:^3.0.0" + fast-safe-stringify: "npm:^2.1.1" + help-me: "npm:^5.0.0" + joycon: "npm:^3.1.1" + minimist: "npm:^1.2.6" + on-exit-leak-free: "npm:^2.1.0" + pino-abstract-transport: "npm:^1.0.0" + pump: "npm:^3.0.0" + readable-stream: "npm:^4.0.0" + secure-json-parse: "npm:^2.4.0" + sonic-boom: "npm:^3.0.0" + strip-json-comments: "npm:^3.1.1" + bin: + pino-pretty: bin.js + checksum: 10c0/6964fba5acc7a9f112e4c6738d602e123daf16cb5f6ddc56ab4b6bb05059f28876d51da8f72358cf1172e95fa12496b70465431a0836df693c462986d050686b + languageName: node + linkType: hard + "pino-std-serializers@npm:^4.0.0": version: 4.0.0 resolution: "pino-std-serializers@npm:4.0.0" @@ -12430,6 +13335,34 @@ __metadata: languageName: node linkType: hard +"pino-std-serializers@npm:^7.0.0": + version: 7.0.0 + resolution: "pino-std-serializers@npm:7.0.0" + checksum: 10c0/73e694d542e8de94445a03a98396cf383306de41fd75ecc07085d57ed7a57896198508a0dec6eefad8d701044af21eb27253ccc352586a03cf0d4a0bd25b4133 + languageName: node + linkType: hard + +"pino@npm:10.0.0": + version: 10.0.0 + resolution: "pino@npm:10.0.0" + dependencies: + atomic-sleep: "npm:^1.0.0" + on-exit-leak-free: "npm:^2.1.0" + pino-abstract-transport: "npm:^2.0.0" + pino-std-serializers: "npm:^7.0.0" + process-warning: "npm:^5.0.0" + quick-format-unescaped: "npm:^4.0.3" + real-require: "npm:^0.2.0" + safe-stable-stringify: "npm:^2.3.1" + slow-redact: "npm:^0.3.0" + sonic-boom: "npm:^4.0.1" + thread-stream: "npm:^3.0.0" + bin: + pino: bin.js + checksum: 10c0/f95fcc51523310e9ece1822f8ef4d8e6c2b35f67eca9805fe18fdef21dfac81fa128f1ebaa3c9a11571120854391b10b3b339f2e5836f805edaf6936781c6e6f + languageName: node + linkType: hard + "pino@npm:7.11.0": version: 7.11.0 resolution: "pino@npm:7.11.0" @@ -12603,6 +13536,17 @@ __metadata: languageName: node linkType: hard +"postcss@npm:8.4.49": + version: 8.4.49 + resolution: "postcss@npm:8.4.49" + dependencies: + nanoid: "npm:^3.3.7" + picocolors: "npm:^1.1.1" + source-map-js: "npm:^1.2.1" + checksum: 10c0/f1b3f17aaf36d136f59ec373459f18129908235e65dbdc3aee5eef8eba0756106f52de5ec4682e29a2eab53eb25170e7e871b3e4b52a8f1de3d344a514306be3 + languageName: node + linkType: hard + "postcss@npm:^8.4.43, postcss@npm:^8.4.47, postcss@npm:^8.5.6": version: 8.5.6 resolution: "postcss@npm:8.5.6" @@ -12635,6 +13579,13 @@ __metadata: languageName: node linkType: hard +"preact@npm:^10.24.2": + version: 10.27.2 + resolution: "preact@npm:10.27.2" + checksum: 10c0/951b708f7afa34391e054b0f1026430e8f5f6d5de24020beef70288e17067e473b9ee5503a994e0a80ced014826f56708fea5902f80346432c22dfcf3dff4be7 + languageName: node + linkType: hard + "prettier@npm:^3.0.3": version: 3.3.3 resolution: "prettier@npm:3.3.3" @@ -12665,6 +13616,13 @@ __metadata: languageName: node linkType: hard +"process-warning@npm:^5.0.0": + version: 5.0.0 + resolution: "process-warning@npm:5.0.0" + checksum: 10c0/941f48863d368ec161e0b5890ba0c6af94170078f3d6b5e915c19b36fb59edb0dc2f8e834d25e0d375a8bf368a49d490f080508842168832b93489d17843ec29 + languageName: node + linkType: hard + "process@npm:^0.11.10": version: 0.11.10 resolution: "process@npm:0.11.10" @@ -12726,6 +13684,13 @@ __metadata: languageName: node linkType: hard +"proxy-compare@npm:^3.0.1": + version: 3.0.1 + resolution: "proxy-compare@npm:3.0.1" + checksum: 10c0/1e3631ef32603d4de263860ce02d84b48384dce9b62238b2148b3c58a4e4ec5b06644615dcc196a339f73b9695443317099d55a9173e02ce8492088c9330c00b + languageName: node + linkType: hard + "pump@npm:^3.0.0": version: 3.0.0 resolution: "pump@npm:3.0.0" @@ -12750,7 +13715,7 @@ __metadata: languageName: node linkType: hard -"qrcode@npm:^1.5.0": +"qrcode@npm:^1.5.0, qrcode@npm:^1.5.1": version: 1.5.4 resolution: "qrcode@npm:1.5.4" dependencies: @@ -12820,6 +13785,18 @@ __metadata: languageName: node linkType: hard +"react-device-detect@npm:^2.2.2": + version: 2.2.3 + resolution: "react-device-detect@npm:2.2.3" + dependencies: + ua-parser-js: "npm:^1.0.33" + peerDependencies: + react: ">= 0.14.0" + react-dom: ">= 0.14.0" + checksum: 10c0/396bbeeab0cb21da084c67434d204c9cf502fad6c683903313084d3f6487950a36a34f9bf67ccf5c1772a1bb5b79a2a4403fcfe6b51d93877db4c2d9f3a3a925 + languageName: node + linkType: hard + "react-dom@npm:^18.3.1": version: 18.3.1 resolution: "react-dom@npm:18.3.1" @@ -13160,6 +14137,19 @@ __metadata: languageName: node linkType: hard +"readable-stream@npm:^4.0.0": + version: 4.7.0 + resolution: "readable-stream@npm:4.7.0" + dependencies: + abort-controller: "npm:^3.0.0" + buffer: "npm:^6.0.3" + events: "npm:^3.3.0" + process: "npm:^0.11.10" + string_decoder: "npm:^1.3.0" + checksum: 10c0/fd86d068da21cfdb10f7a4479f2e47d9c0a9b0c862fc0c840a7e5360201580a55ac399c764b12a4f6fa291f8cee74d9c4b7562e0d53b3c4b2769f2c98155d957 + languageName: node + linkType: hard + "readdirp@npm:^4.0.1": version: 4.1.2 resolution: "readdirp@npm:4.1.2" @@ -13190,6 +14180,13 @@ __metadata: languageName: node linkType: hard +"real-require@npm:^0.2.0": + version: 0.2.0 + resolution: "real-require@npm:0.2.0" + checksum: 10c0/23eea5623642f0477412ef8b91acd3969015a1501ed34992ada0e3af521d3c865bb2fe4cdbfec5fe4b505f6d1ef6a03e5c3652520837a8c3b53decff7e74b6a0 + languageName: node + linkType: hard + "relay-runtime@npm:12.0.0": version: 12.0.0 resolution: "relay-runtime@npm:12.0.0" @@ -13500,6 +14497,13 @@ __metadata: languageName: node linkType: hard +"safe-stable-stringify@npm:^2.3.1": + version: 2.5.0 + resolution: "safe-stable-stringify@npm:2.5.0" + checksum: 10c0/baea14971858cadd65df23894a40588ed791769db21bafb7fd7608397dbdce9c5aac60748abae9995e0fc37e15f2061980501e012cd48859740796bea2987f49 + languageName: node + linkType: hard + "safer-buffer@npm:>= 2.1.2 < 3, safer-buffer@npm:>= 2.1.2 < 3.0.0": version: 2.1.2 resolution: "safer-buffer@npm:2.1.2" @@ -13532,6 +14536,29 @@ __metadata: languageName: node linkType: hard +"secure-json-parse@npm:^2.4.0": + version: 2.7.0 + resolution: "secure-json-parse@npm:2.7.0" + checksum: 10c0/f57eb6a44a38a3eeaf3548228585d769d788f59007454214fab9ed7f01fbf2e0f1929111da6db28cf0bcc1a2e89db5219a59e83eeaec3a54e413a0197ce879e4 + languageName: node + linkType: hard + +"secure-password-utilities@npm:^0.2.1": + version: 0.2.1 + resolution: "secure-password-utilities@npm:0.2.1" + checksum: 10c0/922b4b34056785fc197170f18122f57d2bd08dfa35ddf1195cd37ec1bedc7bb6b4486b46e7c521243789f15ebf61dd0acadf6ffc974d4f01b224081baaec9b7e + languageName: node + linkType: hard + +"semver@npm:7.7.2": + version: 7.7.2 + resolution: "semver@npm:7.7.2" + bin: + semver: bin/semver.js + checksum: 10c0/aca305edfbf2383c22571cb7714f48cadc7ac95371b4b52362fb8eeffdfbc0de0669368b82b2b15978f8848f01d7114da65697e56cd8c37b0dab8c58e543f9ea + languageName: node + linkType: hard + "semver@npm:^6.3.1": version: 6.3.1 resolution: "semver@npm:6.3.1" @@ -13568,6 +14595,13 @@ __metadata: languageName: node linkType: hard +"set-cookie-parser@npm:^2.6.0": + version: 2.7.2 + resolution: "set-cookie-parser@npm:2.7.2" + checksum: 10c0/4381a9eb7ee951dfe393fe7aacf76b9a3b4e93a684d2162ab35594fa4053cc82a4d7d7582bf397718012c9adcf839b8cd8f57c6c42901ea9effe33c752da4a45 + languageName: node + linkType: hard + "set-function-length@npm:^1.2.1": version: 1.2.2 resolution: "set-function-length@npm:1.2.2" @@ -13601,7 +14635,7 @@ __metadata: languageName: node linkType: hard -"shallowequal@npm:^1.1.0": +"shallowequal@npm:1.1.0, shallowequal@npm:^1.1.0": version: 1.1.0 resolution: "shallowequal@npm:1.1.0" checksum: 10c0/b926efb51cd0f47aa9bc061add788a4a650550bbe50647962113a4579b60af2abe7b62f9b02314acc6f97151d4cf87033a2b15fc20852fae306d1a095215396c @@ -13688,6 +14722,13 @@ __metadata: languageName: node linkType: hard +"slow-redact@npm:^0.3.0": + version: 0.3.2 + resolution: "slow-redact@npm:0.3.2" + checksum: 10c0/d6611e518461d918eda9a77903100e097870035c8ef8ce95eec7d7a2eafc6c0cdfc37476a1fecf9d70e0b6b36eb9d862f4ac58e931c305b3fc010939226fa803 + languageName: node + linkType: hard + "smart-buffer@npm:^4.2.0": version: 4.2.0 resolution: "smart-buffer@npm:4.2.0" @@ -13757,6 +14798,24 @@ __metadata: languageName: node linkType: hard +"sonic-boom@npm:^3.0.0": + version: 3.8.1 + resolution: "sonic-boom@npm:3.8.1" + dependencies: + atomic-sleep: "npm:^1.0.0" + checksum: 10c0/9bf338f86147db50e116484f74f2e29a321a12733e0cefab3087c80dd32bf4df3d7407dbcafc13bc39ac269d9dd61dd6ef952354b9503392d4e1e7414f8e360e + languageName: node + linkType: hard + +"sonic-boom@npm:^4.0.1": + version: 4.2.0 + resolution: "sonic-boom@npm:4.2.0" + dependencies: + atomic-sleep: "npm:^1.0.0" + checksum: 10c0/ae897e6c2cd6d3cb7cdcf608bc182393b19c61c9413a85ce33ffd25891485589f39bece0db1de24381d0a38fc03d08c9862ded0c60f184f1b852f51f97af9684 + languageName: node + linkType: hard + "sonner@npm:^1.5.0": version: 1.5.0 resolution: "sonner@npm:1.5.0" @@ -13980,6 +15039,13 @@ __metadata: languageName: node linkType: hard +"strip-json-comments@npm:^3.1.1": + version: 3.1.1 + resolution: "strip-json-comments@npm:3.1.1" + checksum: 10c0/9681a6257b925a7fa0f285851c0e613cc934a50661fa7bb41ca9cbbff89686bb4a0ee366e6ecedc4daafd01e83eee0720111ab294366fe7c185e935475ebcecd + languageName: node + linkType: hard + "strip-literal@npm:^3.0.0": version: 3.0.0 resolution: "strip-literal@npm:3.0.0" @@ -14039,6 +15105,40 @@ __metadata: languageName: node linkType: hard +"styled-components@npm:^6.1.13": + version: 6.1.19 + resolution: "styled-components@npm:6.1.19" + dependencies: + "@emotion/is-prop-valid": "npm:1.2.2" + "@emotion/unitless": "npm:0.8.1" + "@types/stylis": "npm:4.2.5" + css-to-react-native: "npm:3.2.0" + csstype: "npm:3.1.3" + postcss: "npm:8.4.49" + shallowequal: "npm:1.1.0" + stylis: "npm:4.3.2" + tslib: "npm:2.6.2" + peerDependencies: + react: ">= 16.8.0" + react-dom: ">= 16.8.0" + checksum: 10c0/8d20427a5debe54bfa3b55f79af2a3577551ed7f1d1cd34df986b73fd01ac519f9081b7737cc1f76e12fbc483fa50551e55be0bc984296e623cc6a2364697cd8 + languageName: node + linkType: hard + +"stylis@npm:4.3.2": + version: 4.3.2 + resolution: "stylis@npm:4.3.2" + checksum: 10c0/0410e1404cbeee3388a9e17587875211ce2f014c8379af0d1e24ca55878867c9f1ccc7b0ce9a156ca53f5d6e301391a82b0645522a604674a378b3189a4a1994 + languageName: node + linkType: hard + +"stylis@npm:^4.3.4": + version: 4.3.6 + resolution: "stylis@npm:4.3.6" + checksum: 10c0/e736d484983a34f7c65d362c67dc79b7bce388054b261c2b7b23d02eaaf280617033f65d44b1ea341854f4331a5074b885668ac8741f98c13a6cfd6443ae85d0 + languageName: node + linkType: hard + "sucrase@npm:^3.35.0": version: 3.35.0 resolution: "sucrase@npm:3.35.0" @@ -14114,6 +15214,13 @@ __metadata: languageName: node linkType: hard +"tabbable@npm:^6.0.0": + version: 6.3.0 + resolution: "tabbable@npm:6.3.0" + checksum: 10c0/57ba019d29b5cfa0c862248883bcec0e6d29d8f156ba52a1f425e7cfeca4a0fc701ab8d035c4c86ddf74ecdbd0e9f454a88d9b55d924a51f444038e9cd14d7a0 + languageName: node + linkType: hard + "tailwind-merge@npm:2.6.0": version: 2.6.0 resolution: "tailwind-merge@npm:2.6.0" @@ -14204,6 +15311,15 @@ __metadata: languageName: node linkType: hard +"thread-stream@npm:^3.0.0": + version: 3.1.0 + resolution: "thread-stream@npm:3.1.0" + dependencies: + real-require: "npm:^0.2.0" + checksum: 10c0/c36118379940b77a6ef3e6f4d5dd31e97b8210c3f7b9a54eb8fe6358ab173f6d0acfaf69b9c3db024b948c0c5fd2a7df93e2e49151af02076b35ada3205ec9a6 + languageName: node + linkType: hard + "three-mesh-bvh@npm:^0.7.8": version: 0.7.8 resolution: "three-mesh-bvh@npm:0.7.8" @@ -14250,6 +15366,13 @@ __metadata: languageName: node linkType: hard +"tinycolor2@npm:^1.6.0": + version: 1.6.0 + resolution: "tinycolor2@npm:1.6.0" + checksum: 10c0/9aa79a36ba2c2a87cb221453465cabacd04b9e35f9694373e846fdc78b1c768110f81e581ea41440106c0f24d9a023891d0887e8075885e790ac40eb0e74a5c1 + languageName: node + linkType: hard + "tinyexec@npm:^0.3.2": version: 0.3.2 resolution: "tinyexec@npm:0.3.2" @@ -14439,6 +15562,13 @@ __metadata: languageName: node linkType: hard +"tslib@npm:2.6.2": + version: 2.6.2 + resolution: "tslib@npm:2.6.2" + checksum: 10c0/e03a8a4271152c8b26604ed45535954c0a45296e32445b4b87f8a5abdb2421f40b59b4ca437c4346af0f28179780d604094eb64546bee2019d903d01c6c19bdb + languageName: node + linkType: hard + "tslib@npm:^2.0.0, tslib@npm:^2.0.3, tslib@npm:^2.1.0, tslib@npm:^2.3.1, tslib@npm:^2.4.0, tslib@npm:^2.5.0, tslib@npm:^2.6.3, tslib@npm:~2.6.0": version: 2.6.3 resolution: "tslib@npm:2.6.3" @@ -14446,7 +15576,7 @@ __metadata: languageName: node linkType: hard -"tslib@npm:^2.6.0": +"tslib@npm:^2.6.0, tslib@npm:^2.8.0": version: 2.8.1 resolution: "tslib@npm:2.8.1" checksum: 10c0/9c4759110a19c53f992d9aae23aac5ced636e99887b51b9e61def52611732872ff7668757d4e4c61f19691e36f4da981cd9485e869b4a7408d689f6bf1f14e62 @@ -14517,6 +15647,15 @@ __metadata: languageName: node linkType: hard +"ua-parser-js@npm:^1.0.33": + version: 1.0.41 + resolution: "ua-parser-js@npm:1.0.41" + bin: + ua-parser-js: script/cli.js + checksum: 10c0/45dc1f7f3ce8248e0e64640d2e29c65c0ea1fc9cb105594de84af80e2a57bba4f718b9376098ca7a5b0ffe240f8995b0fa3714afa9d36861c41370a378f1a274 + languageName: node + linkType: hard + "ua-parser-js@npm:^1.0.35": version: 1.0.38 resolution: "ua-parser-js@npm:1.0.38" @@ -14531,6 +15670,13 @@ __metadata: languageName: node linkType: hard +"ufo@npm:^1.6.1": + version: 1.6.1 + resolution: "ufo@npm:1.6.1" + checksum: 10c0/5a9f041e5945fba7c189d5410508cbcbefef80b253ed29aa2e1f8a2b86f4bd51af44ee18d4485e6d3468c92be9bf4a42e3a2b72dcaf27ce39ce947ec994f1e6b + languageName: node + linkType: hard + "uint8arrays@npm:3.1.0": version: 3.1.0 resolution: "uint8arrays@npm:3.1.0" @@ -14540,7 +15686,7 @@ __metadata: languageName: node linkType: hard -"uint8arrays@npm:^3.0.0": +"uint8arrays@npm:3.1.1, uint8arrays@npm:^3.0.0": version: 3.1.1 resolution: "uint8arrays@npm:3.1.1" dependencies: @@ -14908,6 +16054,15 @@ __metadata: languageName: node linkType: hard +"use-sync-external-store@npm:^1.5.0": + version: 1.6.0 + resolution: "use-sync-external-store@npm:1.6.0" + peerDependencies: + react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 + checksum: 10c0/35e1179f872a53227bdf8a827f7911da4c37c0f4091c29b76b1e32473d1670ebe7bcd880b808b7549ba9a5605c233350f800ffab963ee4a4ee346ee983b6019b + languageName: node + linkType: hard + "utf-8-validate@npm:^5.0.2": version: 5.0.10 resolution: "utf-8-validate@npm:5.0.10" @@ -14945,21 +16100,21 @@ __metadata: languageName: node linkType: hard -"uuid@npm:^8.3.2": - version: 8.3.2 - resolution: "uuid@npm:8.3.2" +"uuid@npm:>=8 <10, uuid@npm:^9.0.1": + version: 9.0.1 + resolution: "uuid@npm:9.0.1" bin: uuid: dist/bin/uuid - checksum: 10c0/bcbb807a917d374a49f475fae2e87fdca7da5e5530820ef53f65ba1d12131bd81a92ecf259cc7ce317cbe0f289e7d79fdfebcef9bfa3087c8c8a2fa304c9be54 + checksum: 10c0/1607dd32ac7fc22f2d8f77051e6a64845c9bce5cd3dd8aa0070c074ec73e666a1f63c7b4e0f4bf2bc8b9d59dc85a15e17807446d9d2b17c8485fbc2147b27f9b languageName: node linkType: hard -"uuid@npm:^9.0.1": - version: 9.0.1 - resolution: "uuid@npm:9.0.1" +"uuid@npm:^8.3.2": + version: 8.3.2 + resolution: "uuid@npm:8.3.2" bin: uuid: dist/bin/uuid - checksum: 10c0/1607dd32ac7fc22f2d8f77051e6a64845c9bce5cd3dd8aa0070c074ec73e666a1f63c7b4e0f4bf2bc8b9d59dc85a15e17807446d9d2b17c8485fbc2147b27f9b + checksum: 10c0/bcbb807a917d374a49f475fae2e87fdca7da5e5530820ef53f65ba1d12131bd81a92ecf259cc7ce317cbe0f289e7d79fdfebcef9bfa3087c8c8a2fa304c9be54 languageName: node linkType: hard @@ -14989,6 +16144,23 @@ __metadata: languageName: node linkType: hard +"valtio@npm:2.1.7": + version: 2.1.7 + resolution: "valtio@npm:2.1.7" + dependencies: + proxy-compare: "npm:^3.0.1" + peerDependencies: + "@types/react": ">=18.0.0" + react: ">=18.0.0" + peerDependenciesMeta: + "@types/react": + optional: true + react: + optional: true + checksum: 10c0/727976e35c7b8853b37cfc5ab14dd5be46ddf572482aa2d888c7e41e9b2d54bb5962c8dd7e26bd9ae69687c818464daf0a814098c3bc64b47e1363f0f7109423 + languageName: node + linkType: hard + "value-or-promise@npm:^1.0.11, value-or-promise@npm:^1.0.12": version: 1.0.12 resolution: "value-or-promise@npm:1.0.12" @@ -15028,93 +16200,7 @@ __metadata: languageName: node linkType: hard -"viem@npm:2.23.2": - version: 2.23.2 - resolution: "viem@npm:2.23.2" - dependencies: - "@noble/curves": "npm:1.8.1" - "@noble/hashes": "npm:1.7.1" - "@scure/bip32": "npm:1.6.2" - "@scure/bip39": "npm:1.5.4" - abitype: "npm:1.0.8" - isows: "npm:1.0.6" - ox: "npm:0.6.7" - ws: "npm:8.18.0" - peerDependencies: - typescript: ">=5.0.4" - peerDependenciesMeta: - typescript: - optional: true - checksum: 10c0/39332d008d2ab0700aa57f541bb199350daecdfb722ae1b262404b02944e11205368fcc696cc0ab8327b9f90bf7172014687ae3e5d9091978e9d174885ccff2d - languageName: node - linkType: hard - -"viem@npm:2.x": - version: 2.18.2 - resolution: "viem@npm:2.18.2" - dependencies: - "@adraffy/ens-normalize": "npm:1.10.0" - "@noble/curves": "npm:1.4.0" - "@noble/hashes": "npm:1.4.0" - "@scure/bip32": "npm:1.4.0" - "@scure/bip39": "npm:1.3.0" - abitype: "npm:1.0.5" - isows: "npm:1.0.4" - webauthn-p256: "npm:0.0.5" - ws: "npm:8.17.1" - peerDependencies: - typescript: ">=5.0.4" - peerDependenciesMeta: - typescript: - optional: true - checksum: 10c0/1d5514d2d40b16a01447d0bd75a0115f04e2ddb5af11dea526df8b48580ed11e8171674de93fbc526219551243da6cbe5ec66f15be97a3c9b5c5200122cb88f7 - languageName: node - linkType: hard - -"viem@npm:>=2.29.0": - version: 2.31.4 - resolution: "viem@npm:2.31.4" - dependencies: - "@noble/curves": "npm:1.9.2" - "@noble/hashes": "npm:1.8.0" - "@scure/bip32": "npm:1.7.0" - "@scure/bip39": "npm:1.6.0" - abitype: "npm:1.0.8" - isows: "npm:1.0.7" - ox: "npm:0.8.1" - ws: "npm:8.18.2" - peerDependencies: - typescript: ">=5.0.4" - peerDependenciesMeta: - typescript: - optional: true - checksum: 10c0/cffc1c91b322a683758877c8a39916e984809847082343a297d3d637474b711c30e69fad2547f8e4617e6961797811a628d0fd6c3b4d105a7669d89e205edebc - languageName: node - linkType: hard - -"viem@npm:^2.1.1": - version: 2.21.1 - resolution: "viem@npm:2.21.1" - dependencies: - "@adraffy/ens-normalize": "npm:1.10.0" - "@noble/curves": "npm:1.4.0" - "@noble/hashes": "npm:1.4.0" - "@scure/bip32": "npm:1.4.0" - "@scure/bip39": "npm:1.3.0" - abitype: "npm:1.0.5" - isows: "npm:1.0.4" - webauthn-p256: "npm:0.0.5" - ws: "npm:8.17.1" - peerDependencies: - typescript: ">=5.0.4" - peerDependenciesMeta: - typescript: - optional: true - checksum: 10c0/04b9581831c58c831426bb90bcd4c262c91c466668303bfde24ec133e2e63bed5860e1941dbb0179db70bf48db48e9395ef2242e78a7fe394cf867e509833429 - languageName: node - linkType: hard - -"viem@npm:^2.27.2, viem@npm:^2.31.7, viem@npm:^2.33.1": +"viem@npm:^2.33.1": version: 2.33.1 resolution: "viem@npm:2.33.1" dependencies: @@ -15332,16 +16418,6 @@ __metadata: languageName: node linkType: hard -"webauthn-p256@npm:0.0.5": - version: 0.0.5 - resolution: "webauthn-p256@npm:0.0.5" - dependencies: - "@noble/curves": "npm:^1.4.0" - "@noble/hashes": "npm:^1.4.0" - checksum: 10c0/8a445dddaf0e699363a0a7bca51742f672dbbec427c1a97618465bfc418df0eff10d3f1cf5e43bcd0cd0dc5abcdaad7914916c06c84107eaf226f5a1d0690c13 - languageName: node - linkType: hard - "webextension-polyfill@npm:>=0.10.0 <1.0": version: 0.12.0 resolution: "webextension-polyfill@npm:0.12.0" @@ -15488,9 +16564,9 @@ __metadata: languageName: node linkType: hard -"ws@npm:8.17.1, ws@npm:~8.17.1": - version: 8.17.1 - resolution: "ws@npm:8.17.1" +"ws@npm:8.18.2": + version: 8.18.2 + resolution: "ws@npm:8.18.2" peerDependencies: bufferutil: ^4.0.1 utf-8-validate: ">=5.0.2" @@ -15499,28 +16575,28 @@ __metadata: optional: true utf-8-validate: optional: true - checksum: 10c0/f4a49064afae4500be772abdc2211c8518f39e1c959640457dcee15d4488628620625c783902a52af2dd02f68558da2868fd06e6fd0e67ebcd09e6881b1b5bfe + checksum: 10c0/4b50f67931b8c6943c893f59c524f0e4905bbd183016cfb0f2b8653aa7f28dad4e456b9d99d285bbb67cca4fedd9ce90dfdfaa82b898a11414ebd66ee99141e4 languageName: node linkType: hard -"ws@npm:8.18.0, ws@npm:^8.12.0, ws@npm:^8.17.1": - version: 8.18.0 - resolution: "ws@npm:8.18.0" +"ws@npm:^7.5.1": + version: 7.5.10 + resolution: "ws@npm:7.5.10" peerDependencies: bufferutil: ^4.0.1 - utf-8-validate: ">=5.0.2" + utf-8-validate: ^5.0.2 peerDependenciesMeta: bufferutil: optional: true utf-8-validate: optional: true - checksum: 10c0/25eb33aff17edcb90721ed6b0eb250976328533ad3cd1a28a274bd263682e7296a6591ff1436d6cbc50fa67463158b062f9d1122013b361cec99a05f84680e06 + checksum: 10c0/bd7d5f4aaf04fae7960c23dcb6c6375d525e00f795dd20b9385902bd008c40a94d3db3ce97d878acc7573df852056ca546328b27b39f47609f80fb22a0a9b61d languageName: node linkType: hard -"ws@npm:8.18.2": - version: 8.18.2 - resolution: "ws@npm:8.18.2" +"ws@npm:^8.12.0, ws@npm:^8.17.1": + version: 8.18.0 + resolution: "ws@npm:8.18.0" peerDependencies: bufferutil: ^4.0.1 utf-8-validate: ">=5.0.2" @@ -15529,22 +16605,22 @@ __metadata: optional: true utf-8-validate: optional: true - checksum: 10c0/4b50f67931b8c6943c893f59c524f0e4905bbd183016cfb0f2b8653aa7f28dad4e456b9d99d285bbb67cca4fedd9ce90dfdfaa82b898a11414ebd66ee99141e4 + checksum: 10c0/25eb33aff17edcb90721ed6b0eb250976328533ad3cd1a28a274bd263682e7296a6591ff1436d6cbc50fa67463158b062f9d1122013b361cec99a05f84680e06 languageName: node linkType: hard -"ws@npm:^7.5.1": - version: 7.5.10 - resolution: "ws@npm:7.5.10" +"ws@npm:~8.17.1": + version: 8.17.1 + resolution: "ws@npm:8.17.1" peerDependencies: bufferutil: ^4.0.1 - utf-8-validate: ^5.0.2 + utf-8-validate: ">=5.0.2" peerDependenciesMeta: bufferutil: optional: true utf-8-validate: optional: true - checksum: 10c0/bd7d5f4aaf04fae7960c23dcb6c6375d525e00f795dd20b9385902bd008c40a94d3db3ce97d878acc7573df852056ca546328b27b39f47609f80fb22a0a9b61d + checksum: 10c0/f4a49064afae4500be772abdc2211c8518f39e1c959640457dcee15d4488628620625c783902a52af2dd02f68558da2868fd06e6fd0e67ebcd09e6881b1b5bfe languageName: node linkType: hard @@ -15685,6 +16761,13 @@ __metadata: languageName: node linkType: hard +"zod@npm:^3.24.3": + version: 3.25.76 + resolution: "zod@npm:3.25.76" + checksum: 10c0/5718ec35e3c40b600316c5b4c5e4976f7fee68151bc8f8d90ec18a469be9571f072e1bbaace10f1e85cf8892ea12d90821b200e980ab46916a6166a4260a983c + languageName: node + linkType: hard + "zustand@npm:5.0.0": version: 5.0.0 resolution: "zustand@npm:5.0.0" @@ -15759,6 +16842,27 @@ __metadata: languageName: node linkType: hard +"zustand@npm:^5.0.0": + version: 5.0.8 + resolution: "zustand@npm:5.0.8" + peerDependencies: + "@types/react": ">=18.0.0" + immer: ">=9.0.6" + react: ">=18.0.0" + use-sync-external-store: ">=1.2.0" + peerDependenciesMeta: + "@types/react": + optional: true + immer: + optional: true + react: + optional: true + use-sync-external-store: + optional: true + checksum: 10c0/e865a6f7f1c0e03571701db5904151aaa7acefd6f85541a117085e129bf16e8f60b11f8cc82f277472de5c7ad5dcb201e1b0a89035ea0b40c9d9aab3cd24c8ad + languageName: node + linkType: hard + "zustand@npm:^5.0.1": version: 5.0.5 resolution: "zustand@npm:5.0.5"