/** * TO UPDATE: * 1. Find all places that are "MODIFIED", move them into the new built index.ts (in .graphclient) * 2. add these comments (including eslint disables) * 3. move the modified index file to quick-sync/graphql/ */ // @ts-nocheck /* eslint-disable @typescript-eslint/no-unused-vars */ /* eslint-disable @typescript-eslint/no-explicit-any */ /* eslint-disable @typescript-eslint/no-unsafe-call */ /* eslint-disable @typescript-eslint/no-unsafe-assignment */ /* eslint-disable import/no-duplicates */ /* eslint-disable @typescript-eslint/ban-types */ /* eslint-disable @typescript-eslint/no-unnecessary-type-assertion */ /* eslint-disable import/newline-after-import */ /* eslint-disable prefer-template */ /* eslint-disable @typescript-eslint/no-unsafe-return */ import { GraphQLResolveInfo, SelectionSetNode, FieldNode, GraphQLScalarType, GraphQLScalarTypeConfig } from 'graphql'; import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core'; import { gql } from '@graphql-mesh/utils'; import type { GetMeshOptions } from '@graphql-mesh/runtime'; import type { YamlConfig } from '@graphql-mesh/types'; import { PubSub } from '@graphql-mesh/utils'; import { DefaultLogger } from '@graphql-mesh/utils'; import MeshCache from "@graphql-mesh/cache-localforage"; import { fetch as fetchFn } from '@whatwg-node/fetch'; import { MeshResolvedSource } from '@graphql-mesh/runtime'; import { MeshTransform, MeshPlugin } from '@graphql-mesh/types'; import GraphqlHandler from "@graphql-mesh/graphql" import StitchingMerger from "@graphql-mesh/merger-stitching"; import { printWithCache } from '@graphql-mesh/utils'; import { createMeshHTTPHandler, MeshHTTPHandler } from '@graphql-mesh/http'; import { getMesh, ExecuteMeshFn, SubscribeMeshFn, MeshContext as BaseMeshContext, MeshInstance } from '@graphql-mesh/runtime'; import { MeshStore, FsStoreStorageAdapter } from '@graphql-mesh/store'; import { path as pathModule } from '@graphql-mesh/cross-helpers'; import { ImportFn } from '@graphql-mesh/types'; import type { ArbitrumOneTypes } from './.graphclient/sources/arbitrum-one/types'; import type { SepoliaTypes } from './.graphclient/sources/sepolia/types'; import type { BscTypes } from './.graphclient/sources/bsc/types'; import type { EthereumTypes } from './.graphclient/sources/ethereum/types'; import type { MaticTypes } from './.graphclient/sources/matic/types'; export type Maybe = T | null; export type InputMaybe = Maybe; export type Exact = { [K in keyof T]: T[K] }; export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; export type RequireFields = Omit & { [P in K]-?: NonNullable }; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { ID: string; String: string; Boolean: boolean; Int: number; Float: number; Bytes: string; // MODIFIED BigInt: string; // MODIFIED }; export type Query = { tokens: Array; tokenById?: Maybe; /** @deprecated Use tokenById */ tokenByUniqueInput?: Maybe; tokensConnection: TokensConnection; commitmentPreimages: Array; commitmentPreimageById?: Maybe; /** @deprecated Use commitmentPreimageById */ commitmentPreimageByUniqueInput?: Maybe; commitmentPreimagesConnection: CommitmentPreimagesConnection; ciphertexts: Array; ciphertextById?: Maybe; /** @deprecated Use ciphertextById */ ciphertextByUniqueInput?: Maybe; ciphertextsConnection: CiphertextsConnection; legacyCommitmentCiphertexts: Array; legacyCommitmentCiphertextById?: Maybe; /** @deprecated Use legacyCommitmentCiphertextById */ legacyCommitmentCiphertextByUniqueInput?: Maybe; legacyCommitmentCiphertextsConnection: LegacyCommitmentCiphertextsConnection; commitmentCiphertexts: Array; commitmentCiphertextById?: Maybe; /** @deprecated Use commitmentCiphertextById */ commitmentCiphertextByUniqueInput?: Maybe; commitmentCiphertextsConnection: CommitmentCiphertextsConnection; legacyGeneratedCommitments: Array; legacyGeneratedCommitmentById?: Maybe; /** @deprecated Use legacyGeneratedCommitmentById */ legacyGeneratedCommitmentByUniqueInput?: Maybe; legacyGeneratedCommitmentsConnection: LegacyGeneratedCommitmentsConnection; commitments: Array; commitmentsConnection: CommitmentsConnection; legacyEncryptedCommitments: Array; legacyEncryptedCommitmentById?: Maybe; /** @deprecated Use legacyEncryptedCommitmentById */ legacyEncryptedCommitmentByUniqueInput?: Maybe; legacyEncryptedCommitmentsConnection: LegacyEncryptedCommitmentsConnection; shieldCommitments: Array; shieldCommitmentById?: Maybe; /** @deprecated Use shieldCommitmentById */ shieldCommitmentByUniqueInput?: Maybe; shieldCommitmentsConnection: ShieldCommitmentsConnection; transactCommitments: Array; transactCommitmentById?: Maybe; /** @deprecated Use transactCommitmentById */ transactCommitmentByUniqueInput?: Maybe; transactCommitmentsConnection: TransactCommitmentsConnection; unshields: Array; unshieldById?: Maybe; /** @deprecated Use unshieldById */ unshieldByUniqueInput?: Maybe; unshieldsConnection: UnshieldsConnection; nullifiers: Array; nullifierById?: Maybe; /** @deprecated Use nullifierById */ nullifierByUniqueInput?: Maybe; nullifiersConnection: NullifiersConnection; transactions: Array; transactionById?: Maybe; /** @deprecated Use transactionById */ transactionByUniqueInput?: Maybe; transactionsConnection: TransactionsConnection; verificationHashes: Array; verificationHashById?: Maybe; /** @deprecated Use verificationHashById */ verificationHashByUniqueInput?: Maybe; verificationHashesConnection: VerificationHashesConnection; commitmentBatchEventNews: Array; commitmentBatchEventNewById?: Maybe; /** @deprecated Use commitmentBatchEventNewById */ commitmentBatchEventNewByUniqueInput?: Maybe; commitmentBatchEventNewsConnection: CommitmentBatchEventNewsConnection; squidStatus?: Maybe; }; export type QuerytokensArgs = { where?: InputMaybe; orderBy?: InputMaybe>; offset?: InputMaybe; limit?: InputMaybe; }; export type QuerytokenByIdArgs = { id: Scalars['String']; }; export type QuerytokenByUniqueInputArgs = { where: WhereIdInput; }; export type QuerytokensConnectionArgs = { orderBy: Array; after?: InputMaybe; first?: InputMaybe; where?: InputMaybe; }; export type QuerycommitmentPreimagesArgs = { where?: InputMaybe; orderBy?: InputMaybe>; offset?: InputMaybe; limit?: InputMaybe; }; export type QuerycommitmentPreimageByIdArgs = { id: Scalars['String']; }; export type QuerycommitmentPreimageByUniqueInputArgs = { where: WhereIdInput; }; export type QuerycommitmentPreimagesConnectionArgs = { orderBy: Array; after?: InputMaybe; first?: InputMaybe; where?: InputMaybe; }; export type QueryciphertextsArgs = { where?: InputMaybe; orderBy?: InputMaybe>; offset?: InputMaybe; limit?: InputMaybe; }; export type QueryciphertextByIdArgs = { id: Scalars['String']; }; export type QueryciphertextByUniqueInputArgs = { where: WhereIdInput; }; export type QueryciphertextsConnectionArgs = { orderBy: Array; after?: InputMaybe; first?: InputMaybe; where?: InputMaybe; }; export type QuerylegacyCommitmentCiphertextsArgs = { where?: InputMaybe; orderBy?: InputMaybe>; offset?: InputMaybe; limit?: InputMaybe; }; export type QuerylegacyCommitmentCiphertextByIdArgs = { id: Scalars['String']; }; export type QuerylegacyCommitmentCiphertextByUniqueInputArgs = { where: WhereIdInput; }; export type QuerylegacyCommitmentCiphertextsConnectionArgs = { orderBy: Array; after?: InputMaybe; first?: InputMaybe; where?: InputMaybe; }; export type QuerycommitmentCiphertextsArgs = { where?: InputMaybe; orderBy?: InputMaybe>; offset?: InputMaybe; limit?: InputMaybe; }; export type QuerycommitmentCiphertextByIdArgs = { id: Scalars['String']; }; export type QuerycommitmentCiphertextByUniqueInputArgs = { where: WhereIdInput; }; export type QuerycommitmentCiphertextsConnectionArgs = { orderBy: Array; after?: InputMaybe; first?: InputMaybe; where?: InputMaybe; }; export type QuerylegacyGeneratedCommitmentsArgs = { where?: InputMaybe; orderBy?: InputMaybe>; offset?: InputMaybe; limit?: InputMaybe; }; export type QuerylegacyGeneratedCommitmentByIdArgs = { id: Scalars['String']; }; export type QuerylegacyGeneratedCommitmentByUniqueInputArgs = { where: WhereIdInput; }; export type QuerylegacyGeneratedCommitmentsConnectionArgs = { orderBy: Array; after?: InputMaybe; first?: InputMaybe; where?: InputMaybe; }; export type QuerycommitmentsArgs = { where?: InputMaybe; orderBy?: InputMaybe>; offset?: InputMaybe; limit?: InputMaybe; }; export type QuerycommitmentsConnectionArgs = { orderBy: Array; after?: InputMaybe; first?: InputMaybe; where?: InputMaybe; }; export type QuerylegacyEncryptedCommitmentsArgs = { where?: InputMaybe; orderBy?: InputMaybe>; offset?: InputMaybe; limit?: InputMaybe; }; export type QuerylegacyEncryptedCommitmentByIdArgs = { id: Scalars['String']; }; export type QuerylegacyEncryptedCommitmentByUniqueInputArgs = { where: WhereIdInput; }; export type QuerylegacyEncryptedCommitmentsConnectionArgs = { orderBy: Array; after?: InputMaybe; first?: InputMaybe; where?: InputMaybe; }; export type QueryshieldCommitmentsArgs = { where?: InputMaybe; orderBy?: InputMaybe>; offset?: InputMaybe; limit?: InputMaybe; }; export type QueryshieldCommitmentByIdArgs = { id: Scalars['String']; }; export type QueryshieldCommitmentByUniqueInputArgs = { where: WhereIdInput; }; export type QueryshieldCommitmentsConnectionArgs = { orderBy: Array; after?: InputMaybe; first?: InputMaybe; where?: InputMaybe; }; export type QuerytransactCommitmentsArgs = { where?: InputMaybe; orderBy?: InputMaybe>; offset?: InputMaybe; limit?: InputMaybe; }; export type QuerytransactCommitmentByIdArgs = { id: Scalars['String']; }; export type QuerytransactCommitmentByUniqueInputArgs = { where: WhereIdInput; }; export type QuerytransactCommitmentsConnectionArgs = { orderBy: Array; after?: InputMaybe; first?: InputMaybe; where?: InputMaybe; }; export type QueryunshieldsArgs = { where?: InputMaybe; orderBy?: InputMaybe>; offset?: InputMaybe; limit?: InputMaybe; }; export type QueryunshieldByIdArgs = { id: Scalars['String']; }; export type QueryunshieldByUniqueInputArgs = { where: WhereIdInput; }; export type QueryunshieldsConnectionArgs = { orderBy: Array; after?: InputMaybe; first?: InputMaybe; where?: InputMaybe; }; export type QuerynullifiersArgs = { where?: InputMaybe; orderBy?: InputMaybe>; offset?: InputMaybe; limit?: InputMaybe; }; export type QuerynullifierByIdArgs = { id: Scalars['String']; }; export type QuerynullifierByUniqueInputArgs = { where: WhereIdInput; }; export type QuerynullifiersConnectionArgs = { orderBy: Array; after?: InputMaybe; first?: InputMaybe; where?: InputMaybe; }; export type QuerytransactionsArgs = { where?: InputMaybe; orderBy?: InputMaybe>; offset?: InputMaybe; limit?: InputMaybe; }; export type QuerytransactionByIdArgs = { id: Scalars['String']; }; export type QuerytransactionByUniqueInputArgs = { where: WhereIdInput; }; export type QuerytransactionsConnectionArgs = { orderBy: Array; after?: InputMaybe; first?: InputMaybe; where?: InputMaybe; }; export type QueryverificationHashesArgs = { where?: InputMaybe; orderBy?: InputMaybe>; offset?: InputMaybe; limit?: InputMaybe; }; export type QueryverificationHashByIdArgs = { id: Scalars['String']; }; export type QueryverificationHashByUniqueInputArgs = { where: WhereIdInput; }; export type QueryverificationHashesConnectionArgs = { orderBy: Array; after?: InputMaybe; first?: InputMaybe; where?: InputMaybe; }; export type QuerycommitmentBatchEventNewsArgs = { where?: InputMaybe; orderBy?: InputMaybe>; offset?: InputMaybe; limit?: InputMaybe; }; export type QuerycommitmentBatchEventNewByIdArgs = { id: Scalars['String']; }; export type QuerycommitmentBatchEventNewByUniqueInputArgs = { where: WhereIdInput; }; export type QuerycommitmentBatchEventNewsConnectionArgs = { orderBy: Array; after?: InputMaybe; first?: InputMaybe; where?: InputMaybe; }; export type Token = { id: Scalars['String']; tokenType: TokenType; tokenAddress: Scalars['Bytes']; tokenSubID: Scalars['String']; }; export type TokenType = | 'ERC20' | 'ERC721' | 'ERC1155'; export type TokenWhereInput = { id_isNull?: InputMaybe; id_eq?: InputMaybe; id_not_eq?: InputMaybe; id_gt?: InputMaybe; id_gte?: InputMaybe; id_lt?: InputMaybe; id_lte?: InputMaybe; id_in?: InputMaybe>; id_not_in?: InputMaybe>; id_contains?: InputMaybe; id_not_contains?: InputMaybe; id_containsInsensitive?: InputMaybe; id_not_containsInsensitive?: InputMaybe; id_startsWith?: InputMaybe; id_not_startsWith?: InputMaybe; id_endsWith?: InputMaybe; id_not_endsWith?: InputMaybe; tokenType_isNull?: InputMaybe; tokenType_eq?: InputMaybe; tokenType_not_eq?: InputMaybe; tokenType_in?: InputMaybe>; tokenType_not_in?: InputMaybe>; tokenAddress_isNull?: InputMaybe; tokenAddress_eq?: InputMaybe; tokenAddress_not_eq?: InputMaybe; tokenSubID_isNull?: InputMaybe; tokenSubID_eq?: InputMaybe; tokenSubID_not_eq?: InputMaybe; tokenSubID_gt?: InputMaybe; tokenSubID_gte?: InputMaybe; tokenSubID_lt?: InputMaybe; tokenSubID_lte?: InputMaybe; tokenSubID_in?: InputMaybe>; tokenSubID_not_in?: InputMaybe>; tokenSubID_contains?: InputMaybe; tokenSubID_not_contains?: InputMaybe; tokenSubID_containsInsensitive?: InputMaybe; tokenSubID_not_containsInsensitive?: InputMaybe; tokenSubID_startsWith?: InputMaybe; tokenSubID_not_startsWith?: InputMaybe; tokenSubID_endsWith?: InputMaybe; tokenSubID_not_endsWith?: InputMaybe; AND?: InputMaybe>; OR?: InputMaybe>; }; export type TokenOrderByInput = | 'id_ASC' | 'id_DESC' | 'id_ASC_NULLS_FIRST' | 'id_DESC_NULLS_LAST' | 'tokenType_ASC' | 'tokenType_DESC' | 'tokenType_ASC_NULLS_FIRST' | 'tokenType_DESC_NULLS_LAST' | 'tokenAddress_ASC' | 'tokenAddress_DESC' | 'tokenAddress_ASC_NULLS_FIRST' | 'tokenAddress_DESC_NULLS_LAST' | 'tokenSubID_ASC' | 'tokenSubID_DESC' | 'tokenSubID_ASC_NULLS_FIRST' | 'tokenSubID_DESC_NULLS_LAST'; export type WhereIdInput = { id: Scalars['String']; }; export type TokensConnection = { edges: Array; pageInfo: PageInfo; totalCount: Scalars['Int']; }; export type TokenEdge = { node: Token; cursor: Scalars['String']; }; export type PageInfo = { hasNextPage: Scalars['Boolean']; hasPreviousPage: Scalars['Boolean']; startCursor: Scalars['String']; endCursor: Scalars['String']; }; export type CommitmentPreimage = { id: Scalars['String']; npk: Scalars['Bytes']; token: Token; value: Scalars['BigInt']; }; export type CommitmentPreimageWhereInput = { id_isNull?: InputMaybe; id_eq?: InputMaybe; id_not_eq?: InputMaybe; id_gt?: InputMaybe; id_gte?: InputMaybe; id_lt?: InputMaybe; id_lte?: InputMaybe; id_in?: InputMaybe>; id_not_in?: InputMaybe>; id_contains?: InputMaybe; id_not_contains?: InputMaybe; id_containsInsensitive?: InputMaybe; id_not_containsInsensitive?: InputMaybe; id_startsWith?: InputMaybe; id_not_startsWith?: InputMaybe; id_endsWith?: InputMaybe; id_not_endsWith?: InputMaybe; npk_isNull?: InputMaybe; npk_eq?: InputMaybe; npk_not_eq?: InputMaybe; token_isNull?: InputMaybe; token?: InputMaybe; value_isNull?: InputMaybe; value_eq?: InputMaybe; value_not_eq?: InputMaybe; value_gt?: InputMaybe; value_gte?: InputMaybe; value_lt?: InputMaybe; value_lte?: InputMaybe; value_in?: InputMaybe>; value_not_in?: InputMaybe>; AND?: InputMaybe>; OR?: InputMaybe>; }; export type CommitmentPreimageOrderByInput = | 'id_ASC' | 'id_DESC' | 'id_ASC_NULLS_FIRST' | 'id_DESC_NULLS_LAST' | 'npk_ASC' | 'npk_DESC' | 'npk_ASC_NULLS_FIRST' | 'npk_DESC_NULLS_LAST' | 'token_id_ASC' | 'token_id_DESC' | 'token_id_ASC_NULLS_FIRST' | 'token_id_DESC_NULLS_LAST' | 'token_tokenType_ASC' | 'token_tokenType_DESC' | 'token_tokenType_ASC_NULLS_FIRST' | 'token_tokenType_DESC_NULLS_LAST' | 'token_tokenAddress_ASC' | 'token_tokenAddress_DESC' | 'token_tokenAddress_ASC_NULLS_FIRST' | 'token_tokenAddress_DESC_NULLS_LAST' | 'token_tokenSubID_ASC' | 'token_tokenSubID_DESC' | 'token_tokenSubID_ASC_NULLS_FIRST' | 'token_tokenSubID_DESC_NULLS_LAST' | 'value_ASC' | 'value_DESC' | 'value_ASC_NULLS_FIRST' | 'value_DESC_NULLS_LAST'; export type CommitmentPreimagesConnection = { edges: Array; pageInfo: PageInfo; totalCount: Scalars['Int']; }; export type CommitmentPreimageEdge = { node: CommitmentPreimage; cursor: Scalars['String']; }; export type Ciphertext = { id: Scalars['String']; iv: Scalars['Bytes']; tag: Scalars['Bytes']; data: Array; }; export type CiphertextWhereInput = { id_isNull?: InputMaybe; id_eq?: InputMaybe; id_not_eq?: InputMaybe; id_gt?: InputMaybe; id_gte?: InputMaybe; id_lt?: InputMaybe; id_lte?: InputMaybe; id_in?: InputMaybe>; id_not_in?: InputMaybe>; id_contains?: InputMaybe; id_not_contains?: InputMaybe; id_containsInsensitive?: InputMaybe; id_not_containsInsensitive?: InputMaybe; id_startsWith?: InputMaybe; id_not_startsWith?: InputMaybe; id_endsWith?: InputMaybe; id_not_endsWith?: InputMaybe; iv_isNull?: InputMaybe; iv_eq?: InputMaybe; iv_not_eq?: InputMaybe; tag_isNull?: InputMaybe; tag_eq?: InputMaybe; tag_not_eq?: InputMaybe; data_isNull?: InputMaybe; data_containsAll?: InputMaybe>; data_containsAny?: InputMaybe>; data_containsNone?: InputMaybe>; AND?: InputMaybe>; OR?: InputMaybe>; }; export type CiphertextOrderByInput = | 'id_ASC' | 'id_DESC' | 'id_ASC_NULLS_FIRST' | 'id_DESC_NULLS_LAST' | 'iv_ASC' | 'iv_DESC' | 'iv_ASC_NULLS_FIRST' | 'iv_DESC_NULLS_LAST' | 'tag_ASC' | 'tag_DESC' | 'tag_ASC_NULLS_FIRST' | 'tag_DESC_NULLS_LAST'; export type CiphertextsConnection = { edges: Array; pageInfo: PageInfo; totalCount: Scalars['Int']; }; export type CiphertextEdge = { node: Ciphertext; cursor: Scalars['String']; }; export type LegacyCommitmentCiphertext = { id: Scalars['String']; ciphertext: Ciphertext; ephemeralKeys: Array; memo: Array; }; export type LegacyCommitmentCiphertextWhereInput = { id_isNull?: InputMaybe; id_eq?: InputMaybe; id_not_eq?: InputMaybe; id_gt?: InputMaybe; id_gte?: InputMaybe; id_lt?: InputMaybe; id_lte?: InputMaybe; id_in?: InputMaybe>; id_not_in?: InputMaybe>; id_contains?: InputMaybe; id_not_contains?: InputMaybe; id_containsInsensitive?: InputMaybe; id_not_containsInsensitive?: InputMaybe; id_startsWith?: InputMaybe; id_not_startsWith?: InputMaybe; id_endsWith?: InputMaybe; id_not_endsWith?: InputMaybe; ciphertext_isNull?: InputMaybe; ciphertext?: InputMaybe; ephemeralKeys_isNull?: InputMaybe; ephemeralKeys_containsAll?: InputMaybe>; ephemeralKeys_containsAny?: InputMaybe>; ephemeralKeys_containsNone?: InputMaybe>; memo_isNull?: InputMaybe; memo_containsAll?: InputMaybe>; memo_containsAny?: InputMaybe>; memo_containsNone?: InputMaybe>; AND?: InputMaybe>; OR?: InputMaybe>; }; export type LegacyCommitmentCiphertextOrderByInput = | 'id_ASC' | 'id_DESC' | 'id_ASC_NULLS_FIRST' | 'id_DESC_NULLS_LAST' | 'ciphertext_id_ASC' | 'ciphertext_id_DESC' | 'ciphertext_id_ASC_NULLS_FIRST' | 'ciphertext_id_DESC_NULLS_LAST' | 'ciphertext_iv_ASC' | 'ciphertext_iv_DESC' | 'ciphertext_iv_ASC_NULLS_FIRST' | 'ciphertext_iv_DESC_NULLS_LAST' | 'ciphertext_tag_ASC' | 'ciphertext_tag_DESC' | 'ciphertext_tag_ASC_NULLS_FIRST' | 'ciphertext_tag_DESC_NULLS_LAST'; export type LegacyCommitmentCiphertextsConnection = { edges: Array; pageInfo: PageInfo; totalCount: Scalars['Int']; }; export type LegacyCommitmentCiphertextEdge = { node: LegacyCommitmentCiphertext; cursor: Scalars['String']; }; export type CommitmentCiphertext = { id: Scalars['String']; ciphertext: Ciphertext; blindedSenderViewingKey: Scalars['Bytes']; blindedReceiverViewingKey: Scalars['Bytes']; annotationData: Scalars['Bytes']; memo: Scalars['Bytes']; }; export type CommitmentCiphertextWhereInput = { id_isNull?: InputMaybe; id_eq?: InputMaybe; id_not_eq?: InputMaybe; id_gt?: InputMaybe; id_gte?: InputMaybe; id_lt?: InputMaybe; id_lte?: InputMaybe; id_in?: InputMaybe>; id_not_in?: InputMaybe>; id_contains?: InputMaybe; id_not_contains?: InputMaybe; id_containsInsensitive?: InputMaybe; id_not_containsInsensitive?: InputMaybe; id_startsWith?: InputMaybe; id_not_startsWith?: InputMaybe; id_endsWith?: InputMaybe; id_not_endsWith?: InputMaybe; ciphertext_isNull?: InputMaybe; ciphertext?: InputMaybe; blindedSenderViewingKey_isNull?: InputMaybe; blindedSenderViewingKey_eq?: InputMaybe; blindedSenderViewingKey_not_eq?: InputMaybe; blindedReceiverViewingKey_isNull?: InputMaybe; blindedReceiverViewingKey_eq?: InputMaybe; blindedReceiverViewingKey_not_eq?: InputMaybe; annotationData_isNull?: InputMaybe; annotationData_eq?: InputMaybe; annotationData_not_eq?: InputMaybe; memo_isNull?: InputMaybe; memo_eq?: InputMaybe; memo_not_eq?: InputMaybe; AND?: InputMaybe>; OR?: InputMaybe>; }; export type CommitmentCiphertextOrderByInput = | 'id_ASC' | 'id_DESC' | 'id_ASC_NULLS_FIRST' | 'id_DESC_NULLS_LAST' | 'ciphertext_id_ASC' | 'ciphertext_id_DESC' | 'ciphertext_id_ASC_NULLS_FIRST' | 'ciphertext_id_DESC_NULLS_LAST' | 'ciphertext_iv_ASC' | 'ciphertext_iv_DESC' | 'ciphertext_iv_ASC_NULLS_FIRST' | 'ciphertext_iv_DESC_NULLS_LAST' | 'ciphertext_tag_ASC' | 'ciphertext_tag_DESC' | 'ciphertext_tag_ASC_NULLS_FIRST' | 'ciphertext_tag_DESC_NULLS_LAST' | 'blindedSenderViewingKey_ASC' | 'blindedSenderViewingKey_DESC' | 'blindedSenderViewingKey_ASC_NULLS_FIRST' | 'blindedSenderViewingKey_DESC_NULLS_LAST' | 'blindedReceiverViewingKey_ASC' | 'blindedReceiverViewingKey_DESC' | 'blindedReceiverViewingKey_ASC_NULLS_FIRST' | 'blindedReceiverViewingKey_DESC_NULLS_LAST' | 'annotationData_ASC' | 'annotationData_DESC' | 'annotationData_ASC_NULLS_FIRST' | 'annotationData_DESC_NULLS_LAST' | 'memo_ASC' | 'memo_DESC' | 'memo_ASC_NULLS_FIRST' | 'memo_DESC_NULLS_LAST'; export type CommitmentCiphertextsConnection = { edges: Array; pageInfo: PageInfo; totalCount: Scalars['Int']; }; export type CommitmentCiphertextEdge = { node: CommitmentCiphertext; cursor: Scalars['String']; }; export type LegacyGeneratedCommitment = Commitment & { id: Scalars['String']; blockNumber: Scalars['BigInt']; blockTimestamp: Scalars['BigInt']; transactionHash: Scalars['Bytes']; treeNumber: Scalars['Int']; batchStartTreePosition: Scalars['Int']; treePosition: Scalars['Int']; commitmentType: CommitmentType; hash: Scalars['BigInt']; preimage: CommitmentPreimage; encryptedRandom: Array; }; export type Commitment = { id: Scalars['String']; blockNumber: Scalars['BigInt']; blockTimestamp: Scalars['BigInt']; transactionHash: Scalars['Bytes']; treeNumber: Scalars['Int']; batchStartTreePosition: Scalars['Int']; treePosition: Scalars['Int']; commitmentType: CommitmentType; hash: Scalars['BigInt']; }; export type CommitmentType = | 'ShieldCommitment' | 'TransactCommitment' | 'LegacyGeneratedCommitment' | 'LegacyEncryptedCommitment'; export type LegacyGeneratedCommitmentWhereInput = { id_isNull?: InputMaybe; id_eq?: InputMaybe; id_not_eq?: InputMaybe; id_gt?: InputMaybe; id_gte?: InputMaybe; id_lt?: InputMaybe; id_lte?: InputMaybe; id_in?: InputMaybe>; id_not_in?: InputMaybe>; id_contains?: InputMaybe; id_not_contains?: InputMaybe; id_containsInsensitive?: InputMaybe; id_not_containsInsensitive?: InputMaybe; id_startsWith?: InputMaybe; id_not_startsWith?: InputMaybe; id_endsWith?: InputMaybe; id_not_endsWith?: InputMaybe; blockNumber_isNull?: InputMaybe; blockNumber_eq?: InputMaybe; blockNumber_not_eq?: InputMaybe; blockNumber_gt?: InputMaybe; blockNumber_gte?: InputMaybe; blockNumber_lt?: InputMaybe; blockNumber_lte?: InputMaybe; blockNumber_in?: InputMaybe>; blockNumber_not_in?: InputMaybe>; blockTimestamp_isNull?: InputMaybe; blockTimestamp_eq?: InputMaybe; blockTimestamp_not_eq?: InputMaybe; blockTimestamp_gt?: InputMaybe; blockTimestamp_gte?: InputMaybe; blockTimestamp_lt?: InputMaybe; blockTimestamp_lte?: InputMaybe; blockTimestamp_in?: InputMaybe>; blockTimestamp_not_in?: InputMaybe>; transactionHash_isNull?: InputMaybe; transactionHash_eq?: InputMaybe; transactionHash_not_eq?: InputMaybe; treeNumber_isNull?: InputMaybe; treeNumber_eq?: InputMaybe; treeNumber_not_eq?: InputMaybe; treeNumber_gt?: InputMaybe; treeNumber_gte?: InputMaybe; treeNumber_lt?: InputMaybe; treeNumber_lte?: InputMaybe; treeNumber_in?: InputMaybe>; treeNumber_not_in?: InputMaybe>; batchStartTreePosition_isNull?: InputMaybe; batchStartTreePosition_eq?: InputMaybe; batchStartTreePosition_not_eq?: InputMaybe; batchStartTreePosition_gt?: InputMaybe; batchStartTreePosition_gte?: InputMaybe; batchStartTreePosition_lt?: InputMaybe; batchStartTreePosition_lte?: InputMaybe; batchStartTreePosition_in?: InputMaybe>; batchStartTreePosition_not_in?: InputMaybe>; treePosition_isNull?: InputMaybe; treePosition_eq?: InputMaybe; treePosition_not_eq?: InputMaybe; treePosition_gt?: InputMaybe; treePosition_gte?: InputMaybe; treePosition_lt?: InputMaybe; treePosition_lte?: InputMaybe; treePosition_in?: InputMaybe>; treePosition_not_in?: InputMaybe>; commitmentType_isNull?: InputMaybe; commitmentType_eq?: InputMaybe; commitmentType_not_eq?: InputMaybe; commitmentType_in?: InputMaybe>; commitmentType_not_in?: InputMaybe>; hash_isNull?: InputMaybe; hash_eq?: InputMaybe; hash_not_eq?: InputMaybe; hash_gt?: InputMaybe; hash_gte?: InputMaybe; hash_lt?: InputMaybe; hash_lte?: InputMaybe; hash_in?: InputMaybe>; hash_not_in?: InputMaybe>; preimage_isNull?: InputMaybe; preimage?: InputMaybe; encryptedRandom_isNull?: InputMaybe; encryptedRandom_containsAll?: InputMaybe>; encryptedRandom_containsAny?: InputMaybe>; encryptedRandom_containsNone?: InputMaybe>; AND?: InputMaybe>; OR?: InputMaybe>; }; export type LegacyGeneratedCommitmentOrderByInput = | 'id_ASC' | 'id_DESC' | 'id_ASC_NULLS_FIRST' | 'id_DESC_NULLS_LAST' | 'blockNumber_ASC' | 'blockNumber_DESC' | 'blockNumber_ASC_NULLS_FIRST' | 'blockNumber_DESC_NULLS_LAST' | 'blockTimestamp_ASC' | 'blockTimestamp_DESC' | 'blockTimestamp_ASC_NULLS_FIRST' | 'blockTimestamp_DESC_NULLS_LAST' | 'transactionHash_ASC' | 'transactionHash_DESC' | 'transactionHash_ASC_NULLS_FIRST' | 'transactionHash_DESC_NULLS_LAST' | 'treeNumber_ASC' | 'treeNumber_DESC' | 'treeNumber_ASC_NULLS_FIRST' | 'treeNumber_DESC_NULLS_LAST' | 'batchStartTreePosition_ASC' | 'batchStartTreePosition_DESC' | 'batchStartTreePosition_ASC_NULLS_FIRST' | 'batchStartTreePosition_DESC_NULLS_LAST' | 'treePosition_ASC' | 'treePosition_DESC' | 'treePosition_ASC_NULLS_FIRST' | 'treePosition_DESC_NULLS_LAST' | 'commitmentType_ASC' | 'commitmentType_DESC' | 'commitmentType_ASC_NULLS_FIRST' | 'commitmentType_DESC_NULLS_LAST' | 'hash_ASC' | 'hash_DESC' | 'hash_ASC_NULLS_FIRST' | 'hash_DESC_NULLS_LAST' | 'preimage_id_ASC' | 'preimage_id_DESC' | 'preimage_id_ASC_NULLS_FIRST' | 'preimage_id_DESC_NULLS_LAST' | 'preimage_npk_ASC' | 'preimage_npk_DESC' | 'preimage_npk_ASC_NULLS_FIRST' | 'preimage_npk_DESC_NULLS_LAST' | 'preimage_value_ASC' | 'preimage_value_DESC' | 'preimage_value_ASC_NULLS_FIRST' | 'preimage_value_DESC_NULLS_LAST'; export type LegacyGeneratedCommitmentsConnection = { edges: Array; pageInfo: PageInfo; totalCount: Scalars['Int']; }; export type LegacyGeneratedCommitmentEdge = { node: LegacyGeneratedCommitment; cursor: Scalars['String']; }; export type CommitmentWhereInput = { id_isNull?: InputMaybe; id_eq?: InputMaybe; id_not_eq?: InputMaybe; id_gt?: InputMaybe; id_gte?: InputMaybe; id_lt?: InputMaybe; id_lte?: InputMaybe; id_in?: InputMaybe>; id_not_in?: InputMaybe>; id_contains?: InputMaybe; id_not_contains?: InputMaybe; id_containsInsensitive?: InputMaybe; id_not_containsInsensitive?: InputMaybe; id_startsWith?: InputMaybe; id_not_startsWith?: InputMaybe; id_endsWith?: InputMaybe; id_not_endsWith?: InputMaybe; blockNumber_isNull?: InputMaybe; blockNumber_eq?: InputMaybe; blockNumber_not_eq?: InputMaybe; blockNumber_gt?: InputMaybe; blockNumber_gte?: InputMaybe; blockNumber_lt?: InputMaybe; blockNumber_lte?: InputMaybe; blockNumber_in?: InputMaybe>; blockNumber_not_in?: InputMaybe>; blockTimestamp_isNull?: InputMaybe; blockTimestamp_eq?: InputMaybe; blockTimestamp_not_eq?: InputMaybe; blockTimestamp_gt?: InputMaybe; blockTimestamp_gte?: InputMaybe; blockTimestamp_lt?: InputMaybe; blockTimestamp_lte?: InputMaybe; blockTimestamp_in?: InputMaybe>; blockTimestamp_not_in?: InputMaybe>; transactionHash_isNull?: InputMaybe; transactionHash_eq?: InputMaybe; transactionHash_not_eq?: InputMaybe; treeNumber_isNull?: InputMaybe; treeNumber_eq?: InputMaybe; treeNumber_not_eq?: InputMaybe; treeNumber_gt?: InputMaybe; treeNumber_gte?: InputMaybe; treeNumber_lt?: InputMaybe; treeNumber_lte?: InputMaybe; treeNumber_in?: InputMaybe>; treeNumber_not_in?: InputMaybe>; batchStartTreePosition_isNull?: InputMaybe; batchStartTreePosition_eq?: InputMaybe; batchStartTreePosition_not_eq?: InputMaybe; batchStartTreePosition_gt?: InputMaybe; batchStartTreePosition_gte?: InputMaybe; batchStartTreePosition_lt?: InputMaybe; batchStartTreePosition_lte?: InputMaybe; batchStartTreePosition_in?: InputMaybe>; batchStartTreePosition_not_in?: InputMaybe>; treePosition_isNull?: InputMaybe; treePosition_eq?: InputMaybe; treePosition_not_eq?: InputMaybe; treePosition_gt?: InputMaybe; treePosition_gte?: InputMaybe; treePosition_lt?: InputMaybe; treePosition_lte?: InputMaybe; treePosition_in?: InputMaybe>; treePosition_not_in?: InputMaybe>; commitmentType_isNull?: InputMaybe; commitmentType_eq?: InputMaybe; commitmentType_not_eq?: InputMaybe; commitmentType_in?: InputMaybe>; commitmentType_not_in?: InputMaybe>; hash_isNull?: InputMaybe; hash_eq?: InputMaybe; hash_not_eq?: InputMaybe; hash_gt?: InputMaybe; hash_gte?: InputMaybe; hash_lt?: InputMaybe; hash_lte?: InputMaybe; hash_in?: InputMaybe>; hash_not_in?: InputMaybe>; AND?: InputMaybe>; OR?: InputMaybe>; }; export type CommitmentOrderByInput = | 'id_ASC' | 'id_DESC' | 'id_ASC_NULLS_FIRST' | 'id_DESC_NULLS_LAST' | 'blockNumber_ASC' | 'blockNumber_DESC' | 'blockNumber_ASC_NULLS_FIRST' | 'blockNumber_DESC_NULLS_LAST' | 'blockTimestamp_ASC' | 'blockTimestamp_DESC' | 'blockTimestamp_ASC_NULLS_FIRST' | 'blockTimestamp_DESC_NULLS_LAST' | 'transactionHash_ASC' | 'transactionHash_DESC' | 'transactionHash_ASC_NULLS_FIRST' | 'transactionHash_DESC_NULLS_LAST' | 'treeNumber_ASC' | 'treeNumber_DESC' | 'treeNumber_ASC_NULLS_FIRST' | 'treeNumber_DESC_NULLS_LAST' | 'batchStartTreePosition_ASC' | 'batchStartTreePosition_DESC' | 'batchStartTreePosition_ASC_NULLS_FIRST' | 'batchStartTreePosition_DESC_NULLS_LAST' | 'treePosition_ASC' | 'treePosition_DESC' | 'treePosition_ASC_NULLS_FIRST' | 'treePosition_DESC_NULLS_LAST' | 'commitmentType_ASC' | 'commitmentType_DESC' | 'commitmentType_ASC_NULLS_FIRST' | 'commitmentType_DESC_NULLS_LAST' | 'hash_ASC' | 'hash_DESC' | 'hash_ASC_NULLS_FIRST' | 'hash_DESC_NULLS_LAST' | '_type_ASC' | '_type_DESC'; export type CommitmentsConnection = { edges: Array; pageInfo: PageInfo; totalCount: Scalars['Int']; }; export type CommitmentEdge = { node: Commitment; cursor: Scalars['String']; }; export type LegacyEncryptedCommitment = Commitment & { id: Scalars['String']; blockNumber: Scalars['BigInt']; blockTimestamp: Scalars['BigInt']; transactionHash: Scalars['Bytes']; treeNumber: Scalars['Int']; batchStartTreePosition: Scalars['Int']; treePosition: Scalars['Int']; commitmentType: CommitmentType; hash: Scalars['BigInt']; legacyCiphertext: LegacyCommitmentCiphertext; // MODIFIED }; export type LegacyEncryptedCommitmentWhereInput = { id_isNull?: InputMaybe; id_eq?: InputMaybe; id_not_eq?: InputMaybe; id_gt?: InputMaybe; id_gte?: InputMaybe; id_lt?: InputMaybe; id_lte?: InputMaybe; id_in?: InputMaybe>; id_not_in?: InputMaybe>; id_contains?: InputMaybe; id_not_contains?: InputMaybe; id_containsInsensitive?: InputMaybe; id_not_containsInsensitive?: InputMaybe; id_startsWith?: InputMaybe; id_not_startsWith?: InputMaybe; id_endsWith?: InputMaybe; id_not_endsWith?: InputMaybe; blockNumber_isNull?: InputMaybe; blockNumber_eq?: InputMaybe; blockNumber_not_eq?: InputMaybe; blockNumber_gt?: InputMaybe; blockNumber_gte?: InputMaybe; blockNumber_lt?: InputMaybe; blockNumber_lte?: InputMaybe; blockNumber_in?: InputMaybe>; blockNumber_not_in?: InputMaybe>; blockTimestamp_isNull?: InputMaybe; blockTimestamp_eq?: InputMaybe; blockTimestamp_not_eq?: InputMaybe; blockTimestamp_gt?: InputMaybe; blockTimestamp_gte?: InputMaybe; blockTimestamp_lt?: InputMaybe; blockTimestamp_lte?: InputMaybe; blockTimestamp_in?: InputMaybe>; blockTimestamp_not_in?: InputMaybe>; transactionHash_isNull?: InputMaybe; transactionHash_eq?: InputMaybe; transactionHash_not_eq?: InputMaybe; treeNumber_isNull?: InputMaybe; treeNumber_eq?: InputMaybe; treeNumber_not_eq?: InputMaybe; treeNumber_gt?: InputMaybe; treeNumber_gte?: InputMaybe; treeNumber_lt?: InputMaybe; treeNumber_lte?: InputMaybe; treeNumber_in?: InputMaybe>; treeNumber_not_in?: InputMaybe>; batchStartTreePosition_isNull?: InputMaybe; batchStartTreePosition_eq?: InputMaybe; batchStartTreePosition_not_eq?: InputMaybe; batchStartTreePosition_gt?: InputMaybe; batchStartTreePosition_gte?: InputMaybe; batchStartTreePosition_lt?: InputMaybe; batchStartTreePosition_lte?: InputMaybe; batchStartTreePosition_in?: InputMaybe>; batchStartTreePosition_not_in?: InputMaybe>; treePosition_isNull?: InputMaybe; treePosition_eq?: InputMaybe; treePosition_not_eq?: InputMaybe; treePosition_gt?: InputMaybe; treePosition_gte?: InputMaybe; treePosition_lt?: InputMaybe; treePosition_lte?: InputMaybe; treePosition_in?: InputMaybe>; treePosition_not_in?: InputMaybe>; commitmentType_isNull?: InputMaybe; commitmentType_eq?: InputMaybe; commitmentType_not_eq?: InputMaybe; commitmentType_in?: InputMaybe>; commitmentType_not_in?: InputMaybe>; hash_isNull?: InputMaybe; hash_eq?: InputMaybe; hash_not_eq?: InputMaybe; hash_gt?: InputMaybe; hash_gte?: InputMaybe; hash_lt?: InputMaybe; hash_lte?: InputMaybe; hash_in?: InputMaybe>; hash_not_in?: InputMaybe>; ciphertext_isNull?: InputMaybe; ciphertext?: InputMaybe; AND?: InputMaybe>; OR?: InputMaybe>; }; export type LegacyEncryptedCommitmentOrderByInput = | 'id_ASC' | 'id_DESC' | 'id_ASC_NULLS_FIRST' | 'id_DESC_NULLS_LAST' | 'blockNumber_ASC' | 'blockNumber_DESC' | 'blockNumber_ASC_NULLS_FIRST' | 'blockNumber_DESC_NULLS_LAST' | 'blockTimestamp_ASC' | 'blockTimestamp_DESC' | 'blockTimestamp_ASC_NULLS_FIRST' | 'blockTimestamp_DESC_NULLS_LAST' | 'transactionHash_ASC' | 'transactionHash_DESC' | 'transactionHash_ASC_NULLS_FIRST' | 'transactionHash_DESC_NULLS_LAST' | 'treeNumber_ASC' | 'treeNumber_DESC' | 'treeNumber_ASC_NULLS_FIRST' | 'treeNumber_DESC_NULLS_LAST' | 'batchStartTreePosition_ASC' | 'batchStartTreePosition_DESC' | 'batchStartTreePosition_ASC_NULLS_FIRST' | 'batchStartTreePosition_DESC_NULLS_LAST' | 'treePosition_ASC' | 'treePosition_DESC' | 'treePosition_ASC_NULLS_FIRST' | 'treePosition_DESC_NULLS_LAST' | 'commitmentType_ASC' | 'commitmentType_DESC' | 'commitmentType_ASC_NULLS_FIRST' | 'commitmentType_DESC_NULLS_LAST' | 'hash_ASC' | 'hash_DESC' | 'hash_ASC_NULLS_FIRST' | 'hash_DESC_NULLS_LAST' | 'ciphertext_id_ASC' | 'ciphertext_id_DESC' | 'ciphertext_id_ASC_NULLS_FIRST' | 'ciphertext_id_DESC_NULLS_LAST'; export type LegacyEncryptedCommitmentsConnection = { edges: Array; pageInfo: PageInfo; totalCount: Scalars['Int']; }; export type LegacyEncryptedCommitmentEdge = { node: LegacyEncryptedCommitment; cursor: Scalars['String']; }; export type ShieldCommitment = Commitment & { id: Scalars['String']; blockNumber: Scalars['BigInt']; blockTimestamp: Scalars['BigInt']; transactionHash: Scalars['Bytes']; treeNumber: Scalars['Int']; batchStartTreePosition: Scalars['Int']; treePosition: Scalars['Int']; commitmentType: CommitmentType; hash: Scalars['BigInt']; preimage: CommitmentPreimage; encryptedBundle: Array; shieldKey: Scalars['Bytes']; fee?: Maybe; }; export type ShieldCommitmentWhereInput = { id_isNull?: InputMaybe; id_eq?: InputMaybe; id_not_eq?: InputMaybe; id_gt?: InputMaybe; id_gte?: InputMaybe; id_lt?: InputMaybe; id_lte?: InputMaybe; id_in?: InputMaybe>; id_not_in?: InputMaybe>; id_contains?: InputMaybe; id_not_contains?: InputMaybe; id_containsInsensitive?: InputMaybe; id_not_containsInsensitive?: InputMaybe; id_startsWith?: InputMaybe; id_not_startsWith?: InputMaybe; id_endsWith?: InputMaybe; id_not_endsWith?: InputMaybe; blockNumber_isNull?: InputMaybe; blockNumber_eq?: InputMaybe; blockNumber_not_eq?: InputMaybe; blockNumber_gt?: InputMaybe; blockNumber_gte?: InputMaybe; blockNumber_lt?: InputMaybe; blockNumber_lte?: InputMaybe; blockNumber_in?: InputMaybe>; blockNumber_not_in?: InputMaybe>; blockTimestamp_isNull?: InputMaybe; blockTimestamp_eq?: InputMaybe; blockTimestamp_not_eq?: InputMaybe; blockTimestamp_gt?: InputMaybe; blockTimestamp_gte?: InputMaybe; blockTimestamp_lt?: InputMaybe; blockTimestamp_lte?: InputMaybe; blockTimestamp_in?: InputMaybe>; blockTimestamp_not_in?: InputMaybe>; transactionHash_isNull?: InputMaybe; transactionHash_eq?: InputMaybe; transactionHash_not_eq?: InputMaybe; treeNumber_isNull?: InputMaybe; treeNumber_eq?: InputMaybe; treeNumber_not_eq?: InputMaybe; treeNumber_gt?: InputMaybe; treeNumber_gte?: InputMaybe; treeNumber_lt?: InputMaybe; treeNumber_lte?: InputMaybe; treeNumber_in?: InputMaybe>; treeNumber_not_in?: InputMaybe>; batchStartTreePosition_isNull?: InputMaybe; batchStartTreePosition_eq?: InputMaybe; batchStartTreePosition_not_eq?: InputMaybe; batchStartTreePosition_gt?: InputMaybe; batchStartTreePosition_gte?: InputMaybe; batchStartTreePosition_lt?: InputMaybe; batchStartTreePosition_lte?: InputMaybe; batchStartTreePosition_in?: InputMaybe>; batchStartTreePosition_not_in?: InputMaybe>; treePosition_isNull?: InputMaybe; treePosition_eq?: InputMaybe; treePosition_not_eq?: InputMaybe; treePosition_gt?: InputMaybe; treePosition_gte?: InputMaybe; treePosition_lt?: InputMaybe; treePosition_lte?: InputMaybe; treePosition_in?: InputMaybe>; treePosition_not_in?: InputMaybe>; commitmentType_isNull?: InputMaybe; commitmentType_eq?: InputMaybe; commitmentType_not_eq?: InputMaybe; commitmentType_in?: InputMaybe>; commitmentType_not_in?: InputMaybe>; hash_isNull?: InputMaybe; hash_eq?: InputMaybe; hash_not_eq?: InputMaybe; hash_gt?: InputMaybe; hash_gte?: InputMaybe; hash_lt?: InputMaybe; hash_lte?: InputMaybe; hash_in?: InputMaybe>; hash_not_in?: InputMaybe>; preimage_isNull?: InputMaybe; preimage?: InputMaybe; encryptedBundle_isNull?: InputMaybe; encryptedBundle_containsAll?: InputMaybe>; encryptedBundle_containsAny?: InputMaybe>; encryptedBundle_containsNone?: InputMaybe>; shieldKey_isNull?: InputMaybe; shieldKey_eq?: InputMaybe; shieldKey_not_eq?: InputMaybe; fee_isNull?: InputMaybe; fee_eq?: InputMaybe; fee_not_eq?: InputMaybe; fee_gt?: InputMaybe; fee_gte?: InputMaybe; fee_lt?: InputMaybe; fee_lte?: InputMaybe; fee_in?: InputMaybe>; fee_not_in?: InputMaybe>; AND?: InputMaybe>; OR?: InputMaybe>; }; export type ShieldCommitmentOrderByInput = | 'id_ASC' | 'id_DESC' | 'id_ASC_NULLS_FIRST' | 'id_DESC_NULLS_LAST' | 'blockNumber_ASC' | 'blockNumber_DESC' | 'blockNumber_ASC_NULLS_FIRST' | 'blockNumber_DESC_NULLS_LAST' | 'blockTimestamp_ASC' | 'blockTimestamp_DESC' | 'blockTimestamp_ASC_NULLS_FIRST' | 'blockTimestamp_DESC_NULLS_LAST' | 'transactionHash_ASC' | 'transactionHash_DESC' | 'transactionHash_ASC_NULLS_FIRST' | 'transactionHash_DESC_NULLS_LAST' | 'treeNumber_ASC' | 'treeNumber_DESC' | 'treeNumber_ASC_NULLS_FIRST' | 'treeNumber_DESC_NULLS_LAST' | 'batchStartTreePosition_ASC' | 'batchStartTreePosition_DESC' | 'batchStartTreePosition_ASC_NULLS_FIRST' | 'batchStartTreePosition_DESC_NULLS_LAST' | 'treePosition_ASC' | 'treePosition_DESC' | 'treePosition_ASC_NULLS_FIRST' | 'treePosition_DESC_NULLS_LAST' | 'commitmentType_ASC' | 'commitmentType_DESC' | 'commitmentType_ASC_NULLS_FIRST' | 'commitmentType_DESC_NULLS_LAST' | 'hash_ASC' | 'hash_DESC' | 'hash_ASC_NULLS_FIRST' | 'hash_DESC_NULLS_LAST' | 'preimage_id_ASC' | 'preimage_id_DESC' | 'preimage_id_ASC_NULLS_FIRST' | 'preimage_id_DESC_NULLS_LAST' | 'preimage_npk_ASC' | 'preimage_npk_DESC' | 'preimage_npk_ASC_NULLS_FIRST' | 'preimage_npk_DESC_NULLS_LAST' | 'preimage_value_ASC' | 'preimage_value_DESC' | 'preimage_value_ASC_NULLS_FIRST' | 'preimage_value_DESC_NULLS_LAST' | 'shieldKey_ASC' | 'shieldKey_DESC' | 'shieldKey_ASC_NULLS_FIRST' | 'shieldKey_DESC_NULLS_LAST' | 'fee_ASC' | 'fee_DESC' | 'fee_ASC_NULLS_FIRST' | 'fee_DESC_NULLS_LAST'; export type ShieldCommitmentsConnection = { edges: Array; pageInfo: PageInfo; totalCount: Scalars['Int']; }; export type ShieldCommitmentEdge = { node: ShieldCommitment; cursor: Scalars['String']; }; export type TransactCommitment = Commitment & { id: Scalars['String']; blockNumber: Scalars['BigInt']; blockTimestamp: Scalars['BigInt']; transactionHash: Scalars['Bytes']; treeNumber: Scalars['Int']; batchStartTreePosition: Scalars['Int']; treePosition: Scalars['Int']; commitmentType: CommitmentType; hash: Scalars['BigInt']; ciphertext: CommitmentCiphertext; }; export type TransactCommitmentWhereInput = { id_isNull?: InputMaybe; id_eq?: InputMaybe; id_not_eq?: InputMaybe; id_gt?: InputMaybe; id_gte?: InputMaybe; id_lt?: InputMaybe; id_lte?: InputMaybe; id_in?: InputMaybe>; id_not_in?: InputMaybe>; id_contains?: InputMaybe; id_not_contains?: InputMaybe; id_containsInsensitive?: InputMaybe; id_not_containsInsensitive?: InputMaybe; id_startsWith?: InputMaybe; id_not_startsWith?: InputMaybe; id_endsWith?: InputMaybe; id_not_endsWith?: InputMaybe; blockNumber_isNull?: InputMaybe; blockNumber_eq?: InputMaybe; blockNumber_not_eq?: InputMaybe; blockNumber_gt?: InputMaybe; blockNumber_gte?: InputMaybe; blockNumber_lt?: InputMaybe; blockNumber_lte?: InputMaybe; blockNumber_in?: InputMaybe>; blockNumber_not_in?: InputMaybe>; blockTimestamp_isNull?: InputMaybe; blockTimestamp_eq?: InputMaybe; blockTimestamp_not_eq?: InputMaybe; blockTimestamp_gt?: InputMaybe; blockTimestamp_gte?: InputMaybe; blockTimestamp_lt?: InputMaybe; blockTimestamp_lte?: InputMaybe; blockTimestamp_in?: InputMaybe>; blockTimestamp_not_in?: InputMaybe>; transactionHash_isNull?: InputMaybe; transactionHash_eq?: InputMaybe; transactionHash_not_eq?: InputMaybe; treeNumber_isNull?: InputMaybe; treeNumber_eq?: InputMaybe; treeNumber_not_eq?: InputMaybe; treeNumber_gt?: InputMaybe; treeNumber_gte?: InputMaybe; treeNumber_lt?: InputMaybe; treeNumber_lte?: InputMaybe; treeNumber_in?: InputMaybe>; treeNumber_not_in?: InputMaybe>; batchStartTreePosition_isNull?: InputMaybe; batchStartTreePosition_eq?: InputMaybe; batchStartTreePosition_not_eq?: InputMaybe; batchStartTreePosition_gt?: InputMaybe; batchStartTreePosition_gte?: InputMaybe; batchStartTreePosition_lt?: InputMaybe; batchStartTreePosition_lte?: InputMaybe; batchStartTreePosition_in?: InputMaybe>; batchStartTreePosition_not_in?: InputMaybe>; treePosition_isNull?: InputMaybe; treePosition_eq?: InputMaybe; treePosition_not_eq?: InputMaybe; treePosition_gt?: InputMaybe; treePosition_gte?: InputMaybe; treePosition_lt?: InputMaybe; treePosition_lte?: InputMaybe; treePosition_in?: InputMaybe>; treePosition_not_in?: InputMaybe>; commitmentType_isNull?: InputMaybe; commitmentType_eq?: InputMaybe; commitmentType_not_eq?: InputMaybe; commitmentType_in?: InputMaybe>; commitmentType_not_in?: InputMaybe>; hash_isNull?: InputMaybe; hash_eq?: InputMaybe; hash_not_eq?: InputMaybe; hash_gt?: InputMaybe; hash_gte?: InputMaybe; hash_lt?: InputMaybe; hash_lte?: InputMaybe; hash_in?: InputMaybe>; hash_not_in?: InputMaybe>; ciphertext_isNull?: InputMaybe; ciphertext?: InputMaybe; AND?: InputMaybe>; OR?: InputMaybe>; }; export type TransactCommitmentOrderByInput = | 'id_ASC' | 'id_DESC' | 'id_ASC_NULLS_FIRST' | 'id_DESC_NULLS_LAST' | 'blockNumber_ASC' | 'blockNumber_DESC' | 'blockNumber_ASC_NULLS_FIRST' | 'blockNumber_DESC_NULLS_LAST' | 'blockTimestamp_ASC' | 'blockTimestamp_DESC' | 'blockTimestamp_ASC_NULLS_FIRST' | 'blockTimestamp_DESC_NULLS_LAST' | 'transactionHash_ASC' | 'transactionHash_DESC' | 'transactionHash_ASC_NULLS_FIRST' | 'transactionHash_DESC_NULLS_LAST' | 'treeNumber_ASC' | 'treeNumber_DESC' | 'treeNumber_ASC_NULLS_FIRST' | 'treeNumber_DESC_NULLS_LAST' | 'batchStartTreePosition_ASC' | 'batchStartTreePosition_DESC' | 'batchStartTreePosition_ASC_NULLS_FIRST' | 'batchStartTreePosition_DESC_NULLS_LAST' | 'treePosition_ASC' | 'treePosition_DESC' | 'treePosition_ASC_NULLS_FIRST' | 'treePosition_DESC_NULLS_LAST' | 'commitmentType_ASC' | 'commitmentType_DESC' | 'commitmentType_ASC_NULLS_FIRST' | 'commitmentType_DESC_NULLS_LAST' | 'hash_ASC' | 'hash_DESC' | 'hash_ASC_NULLS_FIRST' | 'hash_DESC_NULLS_LAST' | 'ciphertext_id_ASC' | 'ciphertext_id_DESC' | 'ciphertext_id_ASC_NULLS_FIRST' | 'ciphertext_id_DESC_NULLS_LAST' | 'ciphertext_blindedSenderViewingKey_ASC' | 'ciphertext_blindedSenderViewingKey_DESC' | 'ciphertext_blindedSenderViewingKey_ASC_NULLS_FIRST' | 'ciphertext_blindedSenderViewingKey_DESC_NULLS_LAST' | 'ciphertext_blindedReceiverViewingKey_ASC' | 'ciphertext_blindedReceiverViewingKey_DESC' | 'ciphertext_blindedReceiverViewingKey_ASC_NULLS_FIRST' | 'ciphertext_blindedReceiverViewingKey_DESC_NULLS_LAST' | 'ciphertext_annotationData_ASC' | 'ciphertext_annotationData_DESC' | 'ciphertext_annotationData_ASC_NULLS_FIRST' | 'ciphertext_annotationData_DESC_NULLS_LAST' | 'ciphertext_memo_ASC' | 'ciphertext_memo_DESC' | 'ciphertext_memo_ASC_NULLS_FIRST' | 'ciphertext_memo_DESC_NULLS_LAST'; export type TransactCommitmentsConnection = { edges: Array; pageInfo: PageInfo; totalCount: Scalars['Int']; }; export type TransactCommitmentEdge = { node: TransactCommitment; cursor: Scalars['String']; }; export type Unshield = { id: Scalars['String']; blockNumber: Scalars['BigInt']; blockTimestamp: Scalars['BigInt']; transactionHash: Scalars['Bytes']; to: Scalars['Bytes']; token: Token; amount: Scalars['BigInt']; fee: Scalars['BigInt']; eventLogIndex: Scalars['BigInt']; }; export type UnshieldWhereInput = { id_isNull?: InputMaybe; id_eq?: InputMaybe; id_not_eq?: InputMaybe; id_gt?: InputMaybe; id_gte?: InputMaybe; id_lt?: InputMaybe; id_lte?: InputMaybe; id_in?: InputMaybe>; id_not_in?: InputMaybe>; id_contains?: InputMaybe; id_not_contains?: InputMaybe; id_containsInsensitive?: InputMaybe; id_not_containsInsensitive?: InputMaybe; id_startsWith?: InputMaybe; id_not_startsWith?: InputMaybe; id_endsWith?: InputMaybe; id_not_endsWith?: InputMaybe; blockNumber_isNull?: InputMaybe; blockNumber_eq?: InputMaybe; blockNumber_not_eq?: InputMaybe; blockNumber_gt?: InputMaybe; blockNumber_gte?: InputMaybe; blockNumber_lt?: InputMaybe; blockNumber_lte?: InputMaybe; blockNumber_in?: InputMaybe>; blockNumber_not_in?: InputMaybe>; blockTimestamp_isNull?: InputMaybe; blockTimestamp_eq?: InputMaybe; blockTimestamp_not_eq?: InputMaybe; blockTimestamp_gt?: InputMaybe; blockTimestamp_gte?: InputMaybe; blockTimestamp_lt?: InputMaybe; blockTimestamp_lte?: InputMaybe; blockTimestamp_in?: InputMaybe>; blockTimestamp_not_in?: InputMaybe>; transactionHash_isNull?: InputMaybe; transactionHash_eq?: InputMaybe; transactionHash_not_eq?: InputMaybe; to_isNull?: InputMaybe; to_eq?: InputMaybe; to_not_eq?: InputMaybe; token_isNull?: InputMaybe; token?: InputMaybe; amount_isNull?: InputMaybe; amount_eq?: InputMaybe; amount_not_eq?: InputMaybe; amount_gt?: InputMaybe; amount_gte?: InputMaybe; amount_lt?: InputMaybe; amount_lte?: InputMaybe; amount_in?: InputMaybe>; amount_not_in?: InputMaybe>; fee_isNull?: InputMaybe; fee_eq?: InputMaybe; fee_not_eq?: InputMaybe; fee_gt?: InputMaybe; fee_gte?: InputMaybe; fee_lt?: InputMaybe; fee_lte?: InputMaybe; fee_in?: InputMaybe>; fee_not_in?: InputMaybe>; eventLogIndex_isNull?: InputMaybe; eventLogIndex_eq?: InputMaybe; eventLogIndex_not_eq?: InputMaybe; eventLogIndex_gt?: InputMaybe; eventLogIndex_gte?: InputMaybe; eventLogIndex_lt?: InputMaybe; eventLogIndex_lte?: InputMaybe; eventLogIndex_in?: InputMaybe>; eventLogIndex_not_in?: InputMaybe>; AND?: InputMaybe>; OR?: InputMaybe>; }; export type UnshieldOrderByInput = | 'id_ASC' | 'id_DESC' | 'id_ASC_NULLS_FIRST' | 'id_DESC_NULLS_LAST' | 'blockNumber_ASC' | 'blockNumber_DESC' | 'blockNumber_ASC_NULLS_FIRST' | 'blockNumber_DESC_NULLS_LAST' | 'blockTimestamp_ASC' | 'blockTimestamp_DESC' | 'blockTimestamp_ASC_NULLS_FIRST' | 'blockTimestamp_DESC_NULLS_LAST' | 'transactionHash_ASC' | 'transactionHash_DESC' | 'transactionHash_ASC_NULLS_FIRST' | 'transactionHash_DESC_NULLS_LAST' | 'to_ASC' | 'to_DESC' | 'to_ASC_NULLS_FIRST' | 'to_DESC_NULLS_LAST' | 'token_id_ASC' | 'token_id_DESC' | 'token_id_ASC_NULLS_FIRST' | 'token_id_DESC_NULLS_LAST' | 'token_tokenType_ASC' | 'token_tokenType_DESC' | 'token_tokenType_ASC_NULLS_FIRST' | 'token_tokenType_DESC_NULLS_LAST' | 'token_tokenAddress_ASC' | 'token_tokenAddress_DESC' | 'token_tokenAddress_ASC_NULLS_FIRST' | 'token_tokenAddress_DESC_NULLS_LAST' | 'token_tokenSubID_ASC' | 'token_tokenSubID_DESC' | 'token_tokenSubID_ASC_NULLS_FIRST' | 'token_tokenSubID_DESC_NULLS_LAST' | 'amount_ASC' | 'amount_DESC' | 'amount_ASC_NULLS_FIRST' | 'amount_DESC_NULLS_LAST' | 'fee_ASC' | 'fee_DESC' | 'fee_ASC_NULLS_FIRST' | 'fee_DESC_NULLS_LAST' | 'eventLogIndex_ASC' | 'eventLogIndex_DESC' | 'eventLogIndex_ASC_NULLS_FIRST' | 'eventLogIndex_DESC_NULLS_LAST'; export type UnshieldsConnection = { edges: Array; pageInfo: PageInfo; totalCount: Scalars['Int']; }; export type UnshieldEdge = { node: Unshield; cursor: Scalars['String']; }; export type Nullifier = { id: Scalars['String']; blockNumber: Scalars['BigInt']; blockTimestamp: Scalars['BigInt']; transactionHash: Scalars['Bytes']; treeNumber: Scalars['Int']; nullifier: Scalars['Bytes']; }; export type NullifierWhereInput = { id_isNull?: InputMaybe; id_eq?: InputMaybe; id_not_eq?: InputMaybe; id_gt?: InputMaybe; id_gte?: InputMaybe; id_lt?: InputMaybe; id_lte?: InputMaybe; id_in?: InputMaybe>; id_not_in?: InputMaybe>; id_contains?: InputMaybe; id_not_contains?: InputMaybe; id_containsInsensitive?: InputMaybe; id_not_containsInsensitive?: InputMaybe; id_startsWith?: InputMaybe; id_not_startsWith?: InputMaybe; id_endsWith?: InputMaybe; id_not_endsWith?: InputMaybe; blockNumber_isNull?: InputMaybe; blockNumber_eq?: InputMaybe; blockNumber_not_eq?: InputMaybe; blockNumber_gt?: InputMaybe; blockNumber_gte?: InputMaybe; blockNumber_lt?: InputMaybe; blockNumber_lte?: InputMaybe; blockNumber_in?: InputMaybe>; blockNumber_not_in?: InputMaybe>; blockTimestamp_isNull?: InputMaybe; blockTimestamp_eq?: InputMaybe; blockTimestamp_not_eq?: InputMaybe; blockTimestamp_gt?: InputMaybe; blockTimestamp_gte?: InputMaybe; blockTimestamp_lt?: InputMaybe; blockTimestamp_lte?: InputMaybe; blockTimestamp_in?: InputMaybe>; blockTimestamp_not_in?: InputMaybe>; transactionHash_isNull?: InputMaybe; transactionHash_eq?: InputMaybe; transactionHash_not_eq?: InputMaybe; treeNumber_isNull?: InputMaybe; treeNumber_eq?: InputMaybe; treeNumber_not_eq?: InputMaybe; treeNumber_gt?: InputMaybe; treeNumber_gte?: InputMaybe; treeNumber_lt?: InputMaybe; treeNumber_lte?: InputMaybe; treeNumber_in?: InputMaybe>; treeNumber_not_in?: InputMaybe>; nullifier_isNull?: InputMaybe; nullifier_eq?: InputMaybe; nullifier_not_eq?: InputMaybe; AND?: InputMaybe>; OR?: InputMaybe>; }; export type NullifierOrderByInput = | 'id_ASC' | 'id_DESC' | 'id_ASC_NULLS_FIRST' | 'id_DESC_NULLS_LAST' | 'blockNumber_ASC' | 'blockNumber_DESC' | 'blockNumber_ASC_NULLS_FIRST' | 'blockNumber_DESC_NULLS_LAST' | 'blockTimestamp_ASC' | 'blockTimestamp_DESC' | 'blockTimestamp_ASC_NULLS_FIRST' | 'blockTimestamp_DESC_NULLS_LAST' | 'transactionHash_ASC' | 'transactionHash_DESC' | 'transactionHash_ASC_NULLS_FIRST' | 'transactionHash_DESC_NULLS_LAST' | 'treeNumber_ASC' | 'treeNumber_DESC' | 'treeNumber_ASC_NULLS_FIRST' | 'treeNumber_DESC_NULLS_LAST' | 'nullifier_ASC' | 'nullifier_DESC' | 'nullifier_ASC_NULLS_FIRST' | 'nullifier_DESC_NULLS_LAST'; export type NullifiersConnection = { edges: Array; pageInfo: PageInfo; totalCount: Scalars['Int']; }; export type NullifierEdge = { node: Nullifier; cursor: Scalars['String']; }; export type Transaction = TransactionInterface & { id: Scalars['String']; blockNumber: Scalars['BigInt']; transactionHash: Scalars['Bytes']; merkleRoot: Scalars['Bytes']; nullifiers: Array; commitments: Array; boundParamsHash: Scalars['Bytes']; hasUnshield: Scalars['Boolean']; utxoTreeIn: Scalars['BigInt']; utxoTreeOut: Scalars['BigInt']; utxoBatchStartPositionOut: Scalars['BigInt']; unshieldToken: Token; unshieldToAddress: Scalars['Bytes']; unshieldValue: Scalars['BigInt']; blockTimestamp: Scalars['BigInt']; verificationHash: Scalars['Bytes']; }; export type TransactionInterface = { id: Scalars['String']; blockNumber: Scalars['BigInt']; transactionHash: Scalars['Bytes']; merkleRoot: Scalars['Bytes']; nullifiers: Array; commitments: Array; boundParamsHash: Scalars['Bytes']; hasUnshield: Scalars['Boolean']; utxoTreeIn: Scalars['BigInt']; utxoTreeOut: Scalars['BigInt']; utxoBatchStartPositionOut: Scalars['BigInt']; unshieldToken: Token; unshieldToAddress: Scalars['Bytes']; unshieldValue: Scalars['BigInt']; blockTimestamp: Scalars['BigInt']; verificationHash: Scalars['Bytes']; }; export type TransactionWhereInput = { id_isNull?: InputMaybe; id_eq?: InputMaybe; id_not_eq?: InputMaybe; id_gt?: InputMaybe; id_gte?: InputMaybe; id_lt?: InputMaybe; id_lte?: InputMaybe; id_in?: InputMaybe>; id_not_in?: InputMaybe>; id_contains?: InputMaybe; id_not_contains?: InputMaybe; id_containsInsensitive?: InputMaybe; id_not_containsInsensitive?: InputMaybe; id_startsWith?: InputMaybe; id_not_startsWith?: InputMaybe; id_endsWith?: InputMaybe; id_not_endsWith?: InputMaybe; blockNumber_isNull?: InputMaybe; blockNumber_eq?: InputMaybe; blockNumber_not_eq?: InputMaybe; blockNumber_gt?: InputMaybe; blockNumber_gte?: InputMaybe; blockNumber_lt?: InputMaybe; blockNumber_lte?: InputMaybe; blockNumber_in?: InputMaybe>; blockNumber_not_in?: InputMaybe>; transactionHash_isNull?: InputMaybe; transactionHash_eq?: InputMaybe; transactionHash_not_eq?: InputMaybe; merkleRoot_isNull?: InputMaybe; merkleRoot_eq?: InputMaybe; merkleRoot_not_eq?: InputMaybe; nullifiers_isNull?: InputMaybe; nullifiers_containsAll?: InputMaybe>; nullifiers_containsAny?: InputMaybe>; nullifiers_containsNone?: InputMaybe>; commitments_isNull?: InputMaybe; commitments_containsAll?: InputMaybe>; commitments_containsAny?: InputMaybe>; commitments_containsNone?: InputMaybe>; boundParamsHash_isNull?: InputMaybe; boundParamsHash_eq?: InputMaybe; boundParamsHash_not_eq?: InputMaybe; hasUnshield_isNull?: InputMaybe; hasUnshield_eq?: InputMaybe; hasUnshield_not_eq?: InputMaybe; utxoTreeIn_isNull?: InputMaybe; utxoTreeIn_eq?: InputMaybe; utxoTreeIn_not_eq?: InputMaybe; utxoTreeIn_gt?: InputMaybe; utxoTreeIn_gte?: InputMaybe; utxoTreeIn_lt?: InputMaybe; utxoTreeIn_lte?: InputMaybe; utxoTreeIn_in?: InputMaybe>; utxoTreeIn_not_in?: InputMaybe>; utxoTreeOut_isNull?: InputMaybe; utxoTreeOut_eq?: InputMaybe; utxoTreeOut_not_eq?: InputMaybe; utxoTreeOut_gt?: InputMaybe; utxoTreeOut_gte?: InputMaybe; utxoTreeOut_lt?: InputMaybe; utxoTreeOut_lte?: InputMaybe; utxoTreeOut_in?: InputMaybe>; utxoTreeOut_not_in?: InputMaybe>; utxoBatchStartPositionOut_isNull?: InputMaybe; utxoBatchStartPositionOut_eq?: InputMaybe; utxoBatchStartPositionOut_not_eq?: InputMaybe; utxoBatchStartPositionOut_gt?: InputMaybe; utxoBatchStartPositionOut_gte?: InputMaybe; utxoBatchStartPositionOut_lt?: InputMaybe; utxoBatchStartPositionOut_lte?: InputMaybe; utxoBatchStartPositionOut_in?: InputMaybe>; utxoBatchStartPositionOut_not_in?: InputMaybe>; unshieldToken_isNull?: InputMaybe; unshieldToken?: InputMaybe; unshieldToAddress_isNull?: InputMaybe; unshieldToAddress_eq?: InputMaybe; unshieldToAddress_not_eq?: InputMaybe; unshieldValue_isNull?: InputMaybe; unshieldValue_eq?: InputMaybe; unshieldValue_not_eq?: InputMaybe; unshieldValue_gt?: InputMaybe; unshieldValue_gte?: InputMaybe; unshieldValue_lt?: InputMaybe; unshieldValue_lte?: InputMaybe; unshieldValue_in?: InputMaybe>; unshieldValue_not_in?: InputMaybe>; blockTimestamp_isNull?: InputMaybe; blockTimestamp_eq?: InputMaybe; blockTimestamp_not_eq?: InputMaybe; blockTimestamp_gt?: InputMaybe; blockTimestamp_gte?: InputMaybe; blockTimestamp_lt?: InputMaybe; blockTimestamp_lte?: InputMaybe; blockTimestamp_in?: InputMaybe>; blockTimestamp_not_in?: InputMaybe>; verificationHash_isNull?: InputMaybe; verificationHash_eq?: InputMaybe; verificationHash_not_eq?: InputMaybe; AND?: InputMaybe>; OR?: InputMaybe>; }; export type TransactionOrderByInput = | 'id_ASC' | 'id_DESC' | 'id_ASC_NULLS_FIRST' | 'id_DESC_NULLS_LAST' | 'blockNumber_ASC' | 'blockNumber_DESC' | 'blockNumber_ASC_NULLS_FIRST' | 'blockNumber_DESC_NULLS_LAST' | 'transactionHash_ASC' | 'transactionHash_DESC' | 'transactionHash_ASC_NULLS_FIRST' | 'transactionHash_DESC_NULLS_LAST' | 'merkleRoot_ASC' | 'merkleRoot_DESC' | 'merkleRoot_ASC_NULLS_FIRST' | 'merkleRoot_DESC_NULLS_LAST' | 'boundParamsHash_ASC' | 'boundParamsHash_DESC' | 'boundParamsHash_ASC_NULLS_FIRST' | 'boundParamsHash_DESC_NULLS_LAST' | 'hasUnshield_ASC' | 'hasUnshield_DESC' | 'hasUnshield_ASC_NULLS_FIRST' | 'hasUnshield_DESC_NULLS_LAST' | 'utxoTreeIn_ASC' | 'utxoTreeIn_DESC' | 'utxoTreeIn_ASC_NULLS_FIRST' | 'utxoTreeIn_DESC_NULLS_LAST' | 'utxoTreeOut_ASC' | 'utxoTreeOut_DESC' | 'utxoTreeOut_ASC_NULLS_FIRST' | 'utxoTreeOut_DESC_NULLS_LAST' | 'utxoBatchStartPositionOut_ASC' | 'utxoBatchStartPositionOut_DESC' | 'utxoBatchStartPositionOut_ASC_NULLS_FIRST' | 'utxoBatchStartPositionOut_DESC_NULLS_LAST' | 'unshieldToken_id_ASC' | 'unshieldToken_id_DESC' | 'unshieldToken_id_ASC_NULLS_FIRST' | 'unshieldToken_id_DESC_NULLS_LAST' | 'unshieldToken_tokenType_ASC' | 'unshieldToken_tokenType_DESC' | 'unshieldToken_tokenType_ASC_NULLS_FIRST' | 'unshieldToken_tokenType_DESC_NULLS_LAST' | 'unshieldToken_tokenAddress_ASC' | 'unshieldToken_tokenAddress_DESC' | 'unshieldToken_tokenAddress_ASC_NULLS_FIRST' | 'unshieldToken_tokenAddress_DESC_NULLS_LAST' | 'unshieldToken_tokenSubID_ASC' | 'unshieldToken_tokenSubID_DESC' | 'unshieldToken_tokenSubID_ASC_NULLS_FIRST' | 'unshieldToken_tokenSubID_DESC_NULLS_LAST' | 'unshieldToAddress_ASC' | 'unshieldToAddress_DESC' | 'unshieldToAddress_ASC_NULLS_FIRST' | 'unshieldToAddress_DESC_NULLS_LAST' | 'unshieldValue_ASC' | 'unshieldValue_DESC' | 'unshieldValue_ASC_NULLS_FIRST' | 'unshieldValue_DESC_NULLS_LAST' | 'blockTimestamp_ASC' | 'blockTimestamp_DESC' | 'blockTimestamp_ASC_NULLS_FIRST' | 'blockTimestamp_DESC_NULLS_LAST' | 'verificationHash_ASC' | 'verificationHash_DESC' | 'verificationHash_ASC_NULLS_FIRST' | 'verificationHash_DESC_NULLS_LAST'; export type TransactionsConnection = { edges: Array; pageInfo: PageInfo; totalCount: Scalars['Int']; }; export type TransactionEdge = { node: Transaction; cursor: Scalars['String']; }; export type VerificationHash = { id: Scalars['String']; verificationHash: Scalars['Bytes']; }; export type VerificationHashWhereInput = { id_isNull?: InputMaybe; id_eq?: InputMaybe; id_not_eq?: InputMaybe; id_gt?: InputMaybe; id_gte?: InputMaybe; id_lt?: InputMaybe; id_lte?: InputMaybe; id_in?: InputMaybe>; id_not_in?: InputMaybe>; id_contains?: InputMaybe; id_not_contains?: InputMaybe; id_containsInsensitive?: InputMaybe; id_not_containsInsensitive?: InputMaybe; id_startsWith?: InputMaybe; id_not_startsWith?: InputMaybe; id_endsWith?: InputMaybe; id_not_endsWith?: InputMaybe; verificationHash_isNull?: InputMaybe; verificationHash_eq?: InputMaybe; verificationHash_not_eq?: InputMaybe; AND?: InputMaybe>; OR?: InputMaybe>; }; export type VerificationHashOrderByInput = | 'id_ASC' | 'id_DESC' | 'id_ASC_NULLS_FIRST' | 'id_DESC_NULLS_LAST' | 'verificationHash_ASC' | 'verificationHash_DESC' | 'verificationHash_ASC_NULLS_FIRST' | 'verificationHash_DESC_NULLS_LAST'; export type VerificationHashesConnection = { edges: Array; pageInfo: PageInfo; totalCount: Scalars['Int']; }; export type VerificationHashEdge = { node: VerificationHash; cursor: Scalars['String']; }; export type CommitmentBatchEventNew = { id: Scalars['String']; treeNumber: Scalars['BigInt']; batchStartTreePosition: Scalars['BigInt']; }; export type CommitmentBatchEventNewWhereInput = { id_isNull?: InputMaybe; id_eq?: InputMaybe; id_not_eq?: InputMaybe; id_gt?: InputMaybe; id_gte?: InputMaybe; id_lt?: InputMaybe; id_lte?: InputMaybe; id_in?: InputMaybe>; id_not_in?: InputMaybe>; id_contains?: InputMaybe; id_not_contains?: InputMaybe; id_containsInsensitive?: InputMaybe; id_not_containsInsensitive?: InputMaybe; id_startsWith?: InputMaybe; id_not_startsWith?: InputMaybe; id_endsWith?: InputMaybe; id_not_endsWith?: InputMaybe; treeNumber_isNull?: InputMaybe; treeNumber_eq?: InputMaybe; treeNumber_not_eq?: InputMaybe; treeNumber_gt?: InputMaybe; treeNumber_gte?: InputMaybe; treeNumber_lt?: InputMaybe; treeNumber_lte?: InputMaybe; treeNumber_in?: InputMaybe>; treeNumber_not_in?: InputMaybe>; batchStartTreePosition_isNull?: InputMaybe; batchStartTreePosition_eq?: InputMaybe; batchStartTreePosition_not_eq?: InputMaybe; batchStartTreePosition_gt?: InputMaybe; batchStartTreePosition_gte?: InputMaybe; batchStartTreePosition_lt?: InputMaybe; batchStartTreePosition_lte?: InputMaybe; batchStartTreePosition_in?: InputMaybe>; batchStartTreePosition_not_in?: InputMaybe>; AND?: InputMaybe>; OR?: InputMaybe>; }; export type CommitmentBatchEventNewOrderByInput = | 'id_ASC' | 'id_DESC' | 'id_ASC_NULLS_FIRST' | 'id_DESC_NULLS_LAST' | 'treeNumber_ASC' | 'treeNumber_DESC' | 'treeNumber_ASC_NULLS_FIRST' | 'treeNumber_DESC_NULLS_LAST' | 'batchStartTreePosition_ASC' | 'batchStartTreePosition_DESC' | 'batchStartTreePosition_ASC_NULLS_FIRST' | 'batchStartTreePosition_DESC_NULLS_LAST'; export type CommitmentBatchEventNewsConnection = { edges: Array; pageInfo: PageInfo; totalCount: Scalars['Int']; }; export type CommitmentBatchEventNewEdge = { node: CommitmentBatchEventNew; cursor: Scalars['String']; }; export type SquidStatus = { /** The height of the processed part of the chain */ height?: Maybe; }; export type WithIndex = TObject & Record; export type ResolversObject = WithIndex; export type ResolverTypeWrapper = Promise | T; export type ResolverWithResolve = { resolve: ResolverFn; }; export type LegacyStitchingResolver = { fragment: string; resolve: ResolverFn; }; export type NewStitchingResolver = { selectionSet: string | ((fieldNode: FieldNode) => SelectionSetNode); resolve: ResolverFn; }; export type StitchingResolver = LegacyStitchingResolver | NewStitchingResolver; export type Resolver = | ResolverFn | ResolverWithResolve | StitchingResolver; export type ResolverFn = ( parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo ) => Promise | TResult; export type SubscriptionSubscribeFn = ( parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo ) => AsyncIterable | Promise>; export type SubscriptionResolveFn = ( parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo ) => TResult | Promise; export interface SubscriptionSubscriberObject { subscribe: SubscriptionSubscribeFn<{ [key in TKey]: TResult }, TParent, TContext, TArgs>; resolve?: SubscriptionResolveFn; } export interface SubscriptionResolverObject { subscribe: SubscriptionSubscribeFn; resolve: SubscriptionResolveFn; } export type SubscriptionObject = | SubscriptionSubscriberObject | SubscriptionResolverObject; export type SubscriptionResolver = | ((...args: any[]) => SubscriptionObject) | SubscriptionObject; export type TypeResolveFn = ( parent: TParent, context: TContext, info: GraphQLResolveInfo ) => Maybe | Promise>; export type IsTypeOfResolverFn = (obj: T, context: TContext, info: GraphQLResolveInfo) => boolean | Promise; export type NextResolverFn = () => Promise; export type DirectiveResolverFn = ( next: NextResolverFn, parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo ) => TResult | Promise; /** Mapping between all available schema types and the resolvers types */ export type ResolversTypes = ResolversObject<{ Query: ResolverTypeWrapper<{}>; Int: ResolverTypeWrapper; String: ResolverTypeWrapper; Token: ResolverTypeWrapper; TokenType: TokenType; Bytes: ResolverTypeWrapper; TokenWhereInput: TokenWhereInput; Boolean: ResolverTypeWrapper; TokenOrderByInput: TokenOrderByInput; WhereIdInput: WhereIdInput; TokensConnection: ResolverTypeWrapper; TokenEdge: ResolverTypeWrapper; PageInfo: ResolverTypeWrapper; CommitmentPreimage: ResolverTypeWrapper; BigInt: ResolverTypeWrapper; CommitmentPreimageWhereInput: CommitmentPreimageWhereInput; CommitmentPreimageOrderByInput: CommitmentPreimageOrderByInput; CommitmentPreimagesConnection: ResolverTypeWrapper; CommitmentPreimageEdge: ResolverTypeWrapper; Ciphertext: ResolverTypeWrapper; CiphertextWhereInput: CiphertextWhereInput; CiphertextOrderByInput: CiphertextOrderByInput; CiphertextsConnection: ResolverTypeWrapper; CiphertextEdge: ResolverTypeWrapper; LegacyCommitmentCiphertext: ResolverTypeWrapper; LegacyCommitmentCiphertextWhereInput: LegacyCommitmentCiphertextWhereInput; LegacyCommitmentCiphertextOrderByInput: LegacyCommitmentCiphertextOrderByInput; LegacyCommitmentCiphertextsConnection: ResolverTypeWrapper; LegacyCommitmentCiphertextEdge: ResolverTypeWrapper; CommitmentCiphertext: ResolverTypeWrapper; CommitmentCiphertextWhereInput: CommitmentCiphertextWhereInput; CommitmentCiphertextOrderByInput: CommitmentCiphertextOrderByInput; CommitmentCiphertextsConnection: ResolverTypeWrapper; CommitmentCiphertextEdge: ResolverTypeWrapper; LegacyGeneratedCommitment: ResolverTypeWrapper; Commitment: ResolversTypes['LegacyGeneratedCommitment'] | ResolversTypes['LegacyEncryptedCommitment'] | ResolversTypes['ShieldCommitment'] | ResolversTypes['TransactCommitment']; CommitmentType: CommitmentType; LegacyGeneratedCommitmentWhereInput: LegacyGeneratedCommitmentWhereInput; LegacyGeneratedCommitmentOrderByInput: LegacyGeneratedCommitmentOrderByInput; LegacyGeneratedCommitmentsConnection: ResolverTypeWrapper; LegacyGeneratedCommitmentEdge: ResolverTypeWrapper; CommitmentWhereInput: CommitmentWhereInput; CommitmentOrderByInput: CommitmentOrderByInput; CommitmentsConnection: ResolverTypeWrapper; CommitmentEdge: ResolverTypeWrapper; LegacyEncryptedCommitment: ResolverTypeWrapper; LegacyEncryptedCommitmentWhereInput: LegacyEncryptedCommitmentWhereInput; LegacyEncryptedCommitmentOrderByInput: LegacyEncryptedCommitmentOrderByInput; LegacyEncryptedCommitmentsConnection: ResolverTypeWrapper; LegacyEncryptedCommitmentEdge: ResolverTypeWrapper; ShieldCommitment: ResolverTypeWrapper; ShieldCommitmentWhereInput: ShieldCommitmentWhereInput; ShieldCommitmentOrderByInput: ShieldCommitmentOrderByInput; ShieldCommitmentsConnection: ResolverTypeWrapper; ShieldCommitmentEdge: ResolverTypeWrapper; TransactCommitment: ResolverTypeWrapper; TransactCommitmentWhereInput: TransactCommitmentWhereInput; TransactCommitmentOrderByInput: TransactCommitmentOrderByInput; TransactCommitmentsConnection: ResolverTypeWrapper; TransactCommitmentEdge: ResolverTypeWrapper; Unshield: ResolverTypeWrapper; UnshieldWhereInput: UnshieldWhereInput; UnshieldOrderByInput: UnshieldOrderByInput; UnshieldsConnection: ResolverTypeWrapper; UnshieldEdge: ResolverTypeWrapper; Nullifier: ResolverTypeWrapper; NullifierWhereInput: NullifierWhereInput; NullifierOrderByInput: NullifierOrderByInput; NullifiersConnection: ResolverTypeWrapper; NullifierEdge: ResolverTypeWrapper; Transaction: ResolverTypeWrapper; TransactionInterface: ResolversTypes['Transaction']; TransactionWhereInput: TransactionWhereInput; TransactionOrderByInput: TransactionOrderByInput; TransactionsConnection: ResolverTypeWrapper; TransactionEdge: ResolverTypeWrapper; VerificationHash: ResolverTypeWrapper; VerificationHashWhereInput: VerificationHashWhereInput; VerificationHashOrderByInput: VerificationHashOrderByInput; VerificationHashesConnection: ResolverTypeWrapper; VerificationHashEdge: ResolverTypeWrapper; CommitmentBatchEventNew: ResolverTypeWrapper; CommitmentBatchEventNewWhereInput: CommitmentBatchEventNewWhereInput; CommitmentBatchEventNewOrderByInput: CommitmentBatchEventNewOrderByInput; CommitmentBatchEventNewsConnection: ResolverTypeWrapper; CommitmentBatchEventNewEdge: ResolverTypeWrapper; SquidStatus: ResolverTypeWrapper; }>; /** Mapping between all available schema types and the resolvers parents */ export type ResolversParentTypes = ResolversObject<{ Query: {}; Int: Scalars['Int']; String: Scalars['String']; Token: Token; Bytes: Scalars['Bytes']; TokenWhereInput: TokenWhereInput; Boolean: Scalars['Boolean']; WhereIdInput: WhereIdInput; TokensConnection: TokensConnection; TokenEdge: TokenEdge; PageInfo: PageInfo; CommitmentPreimage: CommitmentPreimage; BigInt: Scalars['BigInt']; CommitmentPreimageWhereInput: CommitmentPreimageWhereInput; CommitmentPreimagesConnection: CommitmentPreimagesConnection; CommitmentPreimageEdge: CommitmentPreimageEdge; Ciphertext: Ciphertext; CiphertextWhereInput: CiphertextWhereInput; CiphertextsConnection: CiphertextsConnection; CiphertextEdge: CiphertextEdge; LegacyCommitmentCiphertext: LegacyCommitmentCiphertext; LegacyCommitmentCiphertextWhereInput: LegacyCommitmentCiphertextWhereInput; LegacyCommitmentCiphertextsConnection: LegacyCommitmentCiphertextsConnection; LegacyCommitmentCiphertextEdge: LegacyCommitmentCiphertextEdge; CommitmentCiphertext: CommitmentCiphertext; CommitmentCiphertextWhereInput: CommitmentCiphertextWhereInput; CommitmentCiphertextsConnection: CommitmentCiphertextsConnection; CommitmentCiphertextEdge: CommitmentCiphertextEdge; LegacyGeneratedCommitment: LegacyGeneratedCommitment; Commitment: ResolversParentTypes['LegacyGeneratedCommitment'] | ResolversParentTypes['LegacyEncryptedCommitment'] | ResolversParentTypes['ShieldCommitment'] | ResolversParentTypes['TransactCommitment']; LegacyGeneratedCommitmentWhereInput: LegacyGeneratedCommitmentWhereInput; LegacyGeneratedCommitmentsConnection: LegacyGeneratedCommitmentsConnection; LegacyGeneratedCommitmentEdge: LegacyGeneratedCommitmentEdge; CommitmentWhereInput: CommitmentWhereInput; CommitmentsConnection: CommitmentsConnection; CommitmentEdge: CommitmentEdge; LegacyEncryptedCommitment: LegacyEncryptedCommitment; LegacyEncryptedCommitmentWhereInput: LegacyEncryptedCommitmentWhereInput; LegacyEncryptedCommitmentsConnection: LegacyEncryptedCommitmentsConnection; LegacyEncryptedCommitmentEdge: LegacyEncryptedCommitmentEdge; ShieldCommitment: ShieldCommitment; ShieldCommitmentWhereInput: ShieldCommitmentWhereInput; ShieldCommitmentsConnection: ShieldCommitmentsConnection; ShieldCommitmentEdge: ShieldCommitmentEdge; TransactCommitment: TransactCommitment; TransactCommitmentWhereInput: TransactCommitmentWhereInput; TransactCommitmentsConnection: TransactCommitmentsConnection; TransactCommitmentEdge: TransactCommitmentEdge; Unshield: Unshield; UnshieldWhereInput: UnshieldWhereInput; UnshieldsConnection: UnshieldsConnection; UnshieldEdge: UnshieldEdge; Nullifier: Nullifier; NullifierWhereInput: NullifierWhereInput; NullifiersConnection: NullifiersConnection; NullifierEdge: NullifierEdge; Transaction: Transaction; TransactionInterface: ResolversParentTypes['Transaction']; TransactionWhereInput: TransactionWhereInput; TransactionsConnection: TransactionsConnection; TransactionEdge: TransactionEdge; VerificationHash: VerificationHash; VerificationHashWhereInput: VerificationHashWhereInput; VerificationHashesConnection: VerificationHashesConnection; VerificationHashEdge: VerificationHashEdge; CommitmentBatchEventNew: CommitmentBatchEventNew; CommitmentBatchEventNewWhereInput: CommitmentBatchEventNewWhereInput; CommitmentBatchEventNewsConnection: CommitmentBatchEventNewsConnection; CommitmentBatchEventNewEdge: CommitmentBatchEventNewEdge; SquidStatus: SquidStatus; }>; export type QueryResolvers = ResolversObject<{ tokens?: Resolver, ParentType, ContextType, Partial>; tokenById?: Resolver, ParentType, ContextType, RequireFields>; tokenByUniqueInput?: Resolver, ParentType, ContextType, RequireFields>; tokensConnection?: Resolver>; commitmentPreimages?: Resolver, ParentType, ContextType, Partial>; commitmentPreimageById?: Resolver, ParentType, ContextType, RequireFields>; commitmentPreimageByUniqueInput?: Resolver, ParentType, ContextType, RequireFields>; commitmentPreimagesConnection?: Resolver>; ciphertexts?: Resolver, ParentType, ContextType, Partial>; ciphertextById?: Resolver, ParentType, ContextType, RequireFields>; ciphertextByUniqueInput?: Resolver, ParentType, ContextType, RequireFields>; ciphertextsConnection?: Resolver>; legacyCommitmentCiphertexts?: Resolver, ParentType, ContextType, Partial>; legacyCommitmentCiphertextById?: Resolver, ParentType, ContextType, RequireFields>; legacyCommitmentCiphertextByUniqueInput?: Resolver, ParentType, ContextType, RequireFields>; legacyCommitmentCiphertextsConnection?: Resolver>; commitmentCiphertexts?: Resolver, ParentType, ContextType, Partial>; commitmentCiphertextById?: Resolver, ParentType, ContextType, RequireFields>; commitmentCiphertextByUniqueInput?: Resolver, ParentType, ContextType, RequireFields>; commitmentCiphertextsConnection?: Resolver>; legacyGeneratedCommitments?: Resolver, ParentType, ContextType, Partial>; legacyGeneratedCommitmentById?: Resolver, ParentType, ContextType, RequireFields>; legacyGeneratedCommitmentByUniqueInput?: Resolver, ParentType, ContextType, RequireFields>; legacyGeneratedCommitmentsConnection?: Resolver>; commitments?: Resolver, ParentType, ContextType, Partial>; commitmentsConnection?: Resolver>; legacyEncryptedCommitments?: Resolver, ParentType, ContextType, Partial>; legacyEncryptedCommitmentById?: Resolver, ParentType, ContextType, RequireFields>; legacyEncryptedCommitmentByUniqueInput?: Resolver, ParentType, ContextType, RequireFields>; legacyEncryptedCommitmentsConnection?: Resolver>; shieldCommitments?: Resolver, ParentType, ContextType, Partial>; shieldCommitmentById?: Resolver, ParentType, ContextType, RequireFields>; shieldCommitmentByUniqueInput?: Resolver, ParentType, ContextType, RequireFields>; shieldCommitmentsConnection?: Resolver>; transactCommitments?: Resolver, ParentType, ContextType, Partial>; transactCommitmentById?: Resolver, ParentType, ContextType, RequireFields>; transactCommitmentByUniqueInput?: Resolver, ParentType, ContextType, RequireFields>; transactCommitmentsConnection?: Resolver>; unshields?: Resolver, ParentType, ContextType, Partial>; unshieldById?: Resolver, ParentType, ContextType, RequireFields>; unshieldByUniqueInput?: Resolver, ParentType, ContextType, RequireFields>; unshieldsConnection?: Resolver>; nullifiers?: Resolver, ParentType, ContextType, Partial>; nullifierById?: Resolver, ParentType, ContextType, RequireFields>; nullifierByUniqueInput?: Resolver, ParentType, ContextType, RequireFields>; nullifiersConnection?: Resolver>; transactions?: Resolver, ParentType, ContextType, Partial>; transactionById?: Resolver, ParentType, ContextType, RequireFields>; transactionByUniqueInput?: Resolver, ParentType, ContextType, RequireFields>; transactionsConnection?: Resolver>; verificationHashes?: Resolver, ParentType, ContextType, Partial>; verificationHashById?: Resolver, ParentType, ContextType, RequireFields>; verificationHashByUniqueInput?: Resolver, ParentType, ContextType, RequireFields>; verificationHashesConnection?: Resolver>; commitmentBatchEventNews?: Resolver, ParentType, ContextType, Partial>; commitmentBatchEventNewById?: Resolver, ParentType, ContextType, RequireFields>; commitmentBatchEventNewByUniqueInput?: Resolver, ParentType, ContextType, RequireFields>; commitmentBatchEventNewsConnection?: Resolver>; squidStatus?: Resolver, ParentType, ContextType>; }>; export type TokenResolvers = ResolversObject<{ id?: Resolver; tokenType?: Resolver; tokenAddress?: Resolver; tokenSubID?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; export interface BytesScalarConfig extends GraphQLScalarTypeConfig { name: 'Bytes'; } export type TokensConnectionResolvers = ResolversObject<{ edges?: Resolver, ParentType, ContextType>; pageInfo?: Resolver; totalCount?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; export type TokenEdgeResolvers = ResolversObject<{ node?: Resolver; cursor?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; export type PageInfoResolvers = ResolversObject<{ hasNextPage?: Resolver; hasPreviousPage?: Resolver; startCursor?: Resolver; endCursor?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; export type CommitmentPreimageResolvers = ResolversObject<{ id?: Resolver; npk?: Resolver; token?: Resolver; value?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; export interface BigIntScalarConfig extends GraphQLScalarTypeConfig { name: 'BigInt'; } export type CommitmentPreimagesConnectionResolvers = ResolversObject<{ edges?: Resolver, ParentType, ContextType>; pageInfo?: Resolver; totalCount?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; export type CommitmentPreimageEdgeResolvers = ResolversObject<{ node?: Resolver; cursor?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; export type CiphertextResolvers = ResolversObject<{ id?: Resolver; iv?: Resolver; tag?: Resolver; data?: Resolver, ParentType, ContextType>; __isTypeOf?: IsTypeOfResolverFn; }>; export type CiphertextsConnectionResolvers = ResolversObject<{ edges?: Resolver, ParentType, ContextType>; pageInfo?: Resolver; totalCount?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; export type CiphertextEdgeResolvers = ResolversObject<{ node?: Resolver; cursor?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; export type LegacyCommitmentCiphertextResolvers = ResolversObject<{ id?: Resolver; ciphertext?: Resolver; ephemeralKeys?: Resolver, ParentType, ContextType>; memo?: Resolver, ParentType, ContextType>; __isTypeOf?: IsTypeOfResolverFn; }>; export type LegacyCommitmentCiphertextsConnectionResolvers = ResolversObject<{ edges?: Resolver, ParentType, ContextType>; pageInfo?: Resolver; totalCount?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; export type LegacyCommitmentCiphertextEdgeResolvers = ResolversObject<{ node?: Resolver; cursor?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; export type CommitmentCiphertextResolvers = ResolversObject<{ id?: Resolver; ciphertext?: Resolver; blindedSenderViewingKey?: Resolver; blindedReceiverViewingKey?: Resolver; annotationData?: Resolver; memo?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; export type CommitmentCiphertextsConnectionResolvers = ResolversObject<{ edges?: Resolver, ParentType, ContextType>; pageInfo?: Resolver; totalCount?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; export type CommitmentCiphertextEdgeResolvers = ResolversObject<{ node?: Resolver; cursor?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; export type LegacyGeneratedCommitmentResolvers = ResolversObject<{ id?: Resolver; blockNumber?: Resolver; blockTimestamp?: Resolver; transactionHash?: Resolver; treeNumber?: Resolver; batchStartTreePosition?: Resolver; treePosition?: Resolver; commitmentType?: Resolver; hash?: Resolver; preimage?: Resolver; encryptedRandom?: Resolver, ParentType, ContextType>; __isTypeOf?: IsTypeOfResolverFn; }>; export type CommitmentResolvers = ResolversObject<{ __resolveType: TypeResolveFn<'LegacyGeneratedCommitment' | 'LegacyEncryptedCommitment' | 'ShieldCommitment' | 'TransactCommitment', ParentType, ContextType>; id?: Resolver; blockNumber?: Resolver; blockTimestamp?: Resolver; transactionHash?: Resolver; treeNumber?: Resolver; batchStartTreePosition?: Resolver; treePosition?: Resolver; commitmentType?: Resolver; hash?: Resolver; }>; export type LegacyGeneratedCommitmentsConnectionResolvers = ResolversObject<{ edges?: Resolver, ParentType, ContextType>; pageInfo?: Resolver; totalCount?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; export type LegacyGeneratedCommitmentEdgeResolvers = ResolversObject<{ node?: Resolver; cursor?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; export type CommitmentsConnectionResolvers = ResolversObject<{ edges?: Resolver, ParentType, ContextType>; pageInfo?: Resolver; totalCount?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; export type CommitmentEdgeResolvers = ResolversObject<{ node?: Resolver; cursor?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; export type LegacyEncryptedCommitmentResolvers = ResolversObject<{ id?: Resolver; blockNumber?: Resolver; blockTimestamp?: Resolver; transactionHash?: Resolver; treeNumber?: Resolver; batchStartTreePosition?: Resolver; treePosition?: Resolver; commitmentType?: Resolver; hash?: Resolver; ciphertext?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; export type LegacyEncryptedCommitmentsConnectionResolvers = ResolversObject<{ edges?: Resolver, ParentType, ContextType>; pageInfo?: Resolver; totalCount?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; export type LegacyEncryptedCommitmentEdgeResolvers = ResolversObject<{ node?: Resolver; cursor?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; export type ShieldCommitmentResolvers = ResolversObject<{ id?: Resolver; blockNumber?: Resolver; blockTimestamp?: Resolver; transactionHash?: Resolver; treeNumber?: Resolver; batchStartTreePosition?: Resolver; treePosition?: Resolver; commitmentType?: Resolver; hash?: Resolver; preimage?: Resolver; encryptedBundle?: Resolver, ParentType, ContextType>; shieldKey?: Resolver; fee?: Resolver, ParentType, ContextType>; __isTypeOf?: IsTypeOfResolverFn; }>; export type ShieldCommitmentsConnectionResolvers = ResolversObject<{ edges?: Resolver, ParentType, ContextType>; pageInfo?: Resolver; totalCount?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; export type ShieldCommitmentEdgeResolvers = ResolversObject<{ node?: Resolver; cursor?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; export type TransactCommitmentResolvers = ResolversObject<{ id?: Resolver; blockNumber?: Resolver; blockTimestamp?: Resolver; transactionHash?: Resolver; treeNumber?: Resolver; batchStartTreePosition?: Resolver; treePosition?: Resolver; commitmentType?: Resolver; hash?: Resolver; ciphertext?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; export type TransactCommitmentsConnectionResolvers = ResolversObject<{ edges?: Resolver, ParentType, ContextType>; pageInfo?: Resolver; totalCount?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; export type TransactCommitmentEdgeResolvers = ResolversObject<{ node?: Resolver; cursor?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; export type UnshieldResolvers = ResolversObject<{ id?: Resolver; blockNumber?: Resolver; blockTimestamp?: Resolver; transactionHash?: Resolver; to?: Resolver; token?: Resolver; amount?: Resolver; fee?: Resolver; eventLogIndex?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; export type UnshieldsConnectionResolvers = ResolversObject<{ edges?: Resolver, ParentType, ContextType>; pageInfo?: Resolver; totalCount?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; export type UnshieldEdgeResolvers = ResolversObject<{ node?: Resolver; cursor?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; export type NullifierResolvers = ResolversObject<{ id?: Resolver; blockNumber?: Resolver; blockTimestamp?: Resolver; transactionHash?: Resolver; treeNumber?: Resolver; nullifier?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; export type NullifiersConnectionResolvers = ResolversObject<{ edges?: Resolver, ParentType, ContextType>; pageInfo?: Resolver; totalCount?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; export type NullifierEdgeResolvers = ResolversObject<{ node?: Resolver; cursor?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; export type TransactionResolvers = ResolversObject<{ id?: Resolver; blockNumber?: Resolver; transactionHash?: Resolver; merkleRoot?: Resolver; nullifiers?: Resolver, ParentType, ContextType>; commitments?: Resolver, ParentType, ContextType>; boundParamsHash?: Resolver; hasUnshield?: Resolver; utxoTreeIn?: Resolver; utxoTreeOut?: Resolver; utxoBatchStartPositionOut?: Resolver; unshieldToken?: Resolver; unshieldToAddress?: Resolver; unshieldValue?: Resolver; blockTimestamp?: Resolver; verificationHash?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; export type TransactionInterfaceResolvers = ResolversObject<{ __resolveType: TypeResolveFn<'Transaction', ParentType, ContextType>; id?: Resolver; blockNumber?: Resolver; transactionHash?: Resolver; merkleRoot?: Resolver; nullifiers?: Resolver, ParentType, ContextType>; commitments?: Resolver, ParentType, ContextType>; boundParamsHash?: Resolver; hasUnshield?: Resolver; utxoTreeIn?: Resolver; utxoTreeOut?: Resolver; utxoBatchStartPositionOut?: Resolver; unshieldToken?: Resolver; unshieldToAddress?: Resolver; unshieldValue?: Resolver; blockTimestamp?: Resolver; verificationHash?: Resolver; }>; export type TransactionsConnectionResolvers = ResolversObject<{ edges?: Resolver, ParentType, ContextType>; pageInfo?: Resolver; totalCount?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; export type TransactionEdgeResolvers = ResolversObject<{ node?: Resolver; cursor?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; export type VerificationHashResolvers = ResolversObject<{ id?: Resolver; verificationHash?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; export type VerificationHashesConnectionResolvers = ResolversObject<{ edges?: Resolver, ParentType, ContextType>; pageInfo?: Resolver; totalCount?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; export type VerificationHashEdgeResolvers = ResolversObject<{ node?: Resolver; cursor?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; export type CommitmentBatchEventNewResolvers = ResolversObject<{ id?: Resolver; treeNumber?: Resolver; batchStartTreePosition?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; export type CommitmentBatchEventNewsConnectionResolvers = ResolversObject<{ edges?: Resolver, ParentType, ContextType>; pageInfo?: Resolver; totalCount?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; export type CommitmentBatchEventNewEdgeResolvers = ResolversObject<{ node?: Resolver; cursor?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; export type SquidStatusResolvers = ResolversObject<{ height?: Resolver, ParentType, ContextType>; __isTypeOf?: IsTypeOfResolverFn; }>; export type Resolvers = ResolversObject<{ Query?: QueryResolvers; Token?: TokenResolvers; Bytes?: GraphQLScalarType; TokensConnection?: TokensConnectionResolvers; TokenEdge?: TokenEdgeResolvers; PageInfo?: PageInfoResolvers; CommitmentPreimage?: CommitmentPreimageResolvers; BigInt?: GraphQLScalarType; CommitmentPreimagesConnection?: CommitmentPreimagesConnectionResolvers; CommitmentPreimageEdge?: CommitmentPreimageEdgeResolvers; Ciphertext?: CiphertextResolvers; CiphertextsConnection?: CiphertextsConnectionResolvers; CiphertextEdge?: CiphertextEdgeResolvers; LegacyCommitmentCiphertext?: LegacyCommitmentCiphertextResolvers; LegacyCommitmentCiphertextsConnection?: LegacyCommitmentCiphertextsConnectionResolvers; LegacyCommitmentCiphertextEdge?: LegacyCommitmentCiphertextEdgeResolvers; CommitmentCiphertext?: CommitmentCiphertextResolvers; CommitmentCiphertextsConnection?: CommitmentCiphertextsConnectionResolvers; CommitmentCiphertextEdge?: CommitmentCiphertextEdgeResolvers; LegacyGeneratedCommitment?: LegacyGeneratedCommitmentResolvers; Commitment?: CommitmentResolvers; LegacyGeneratedCommitmentsConnection?: LegacyGeneratedCommitmentsConnectionResolvers; LegacyGeneratedCommitmentEdge?: LegacyGeneratedCommitmentEdgeResolvers; CommitmentsConnection?: CommitmentsConnectionResolvers; CommitmentEdge?: CommitmentEdgeResolvers; LegacyEncryptedCommitment?: LegacyEncryptedCommitmentResolvers; LegacyEncryptedCommitmentsConnection?: LegacyEncryptedCommitmentsConnectionResolvers; LegacyEncryptedCommitmentEdge?: LegacyEncryptedCommitmentEdgeResolvers; ShieldCommitment?: ShieldCommitmentResolvers; ShieldCommitmentsConnection?: ShieldCommitmentsConnectionResolvers; ShieldCommitmentEdge?: ShieldCommitmentEdgeResolvers; TransactCommitment?: TransactCommitmentResolvers; TransactCommitmentsConnection?: TransactCommitmentsConnectionResolvers; TransactCommitmentEdge?: TransactCommitmentEdgeResolvers; Unshield?: UnshieldResolvers; UnshieldsConnection?: UnshieldsConnectionResolvers; UnshieldEdge?: UnshieldEdgeResolvers; Nullifier?: NullifierResolvers; NullifiersConnection?: NullifiersConnectionResolvers; NullifierEdge?: NullifierEdgeResolvers; Transaction?: TransactionResolvers; TransactionInterface?: TransactionInterfaceResolvers; TransactionsConnection?: TransactionsConnectionResolvers; TransactionEdge?: TransactionEdgeResolvers; VerificationHash?: VerificationHashResolvers; VerificationHashesConnection?: VerificationHashesConnectionResolvers; VerificationHashEdge?: VerificationHashEdgeResolvers; CommitmentBatchEventNew?: CommitmentBatchEventNewResolvers; CommitmentBatchEventNewsConnection?: CommitmentBatchEventNewsConnectionResolvers; CommitmentBatchEventNewEdge?: CommitmentBatchEventNewEdgeResolvers; SquidStatus?: SquidStatusResolvers; }>; export type MeshContext = ArbitrumOneTypes.Context & SepoliaTypes.Context & BscTypes.Context & EthereumTypes.Context & MaticTypes.Context & BaseMeshContext; const baseDir = pathModule.join(typeof __dirname === 'string' ? __dirname : '/', '..'); const importFn: ImportFn = (moduleId: string) => { const relativeModuleId = (pathModule.isAbsolute(moduleId) ? pathModule.relative(baseDir, moduleId) : moduleId).split('\\').join('/').replace(baseDir + '/', ''); switch(relativeModuleId) { case ".graphclient/sources/arbitrum-one/introspectionSchema": return import("./.graphclient/sources/arbitrum-one/introspectionSchema") as T; case ".graphclient/sources/sepolia/introspectionSchema": return import("./.graphclient/sources/sepolia/introspectionSchema") as T; case ".graphclient/sources/bsc/introspectionSchema": return import("./.graphclient/sources/bsc/introspectionSchema") as T; case ".graphclient/sources/ethereum/introspectionSchema": return import("./.graphclient/sources/ethereum/introspectionSchema") as T; case ".graphclient/sources/matic/introspectionSchema": return import("./.graphclient/sources/matic/introspectionSchema") as T; default: return Promise.reject(new Error(`Cannot find module '${relativeModuleId}'.`)); } }; const rootStore = new MeshStore('.graphclient', new FsStoreStorageAdapter({ cwd: baseDir, importFn, fileType: "ts", }), { readonly: true, validate: false }); export const rawServeConfig: YamlConfig.Config['serve'] = undefined as any export async function getMeshOptions(): Promise { const pubsub = new PubSub(); const sourcesStore = rootStore.child('sources'); const logger = new DefaultLogger("GraphClient"); const cache = new (MeshCache as any)({ ...({} as any), importFn, store: rootStore.child('cache'), pubsub, logger, } as any) const sources: MeshResolvedSource[] = []; const transforms: MeshTransform[] = []; const additionalEnvelopPlugins: MeshPlugin[] = []; const ethereumTransforms = []; const bscTransforms = []; const maticTransforms = []; const arbitrumOneTransforms = []; const sepoliaTransforms = []; const additionalTypeDefs = [] as any[]; const ethereumHandler = new GraphqlHandler({ name: "ethereum", config: {"endpoint":"https://rail-squid.squids.live/squid-railgun-ethereum-v2/graphql"}, baseDir, cache, pubsub, store: sourcesStore.child("ethereum"), logger: logger.child("ethereum"), importFn, }); const bscHandler = new GraphqlHandler({ name: "bsc", config: {"endpoint":"https://rail-squid.squids.live/squid-railgun-bsc-v2/graphql"}, baseDir, cache, pubsub, store: sourcesStore.child("bsc"), logger: logger.child("bsc"), importFn, }); const maticHandler = new GraphqlHandler({ name: "matic", config: {"endpoint":"https://rail-squid.squids.live/squid-railgun-polygon-v2/graphql"}, baseDir, cache, pubsub, store: sourcesStore.child("matic"), logger: logger.child("matic"), importFn, }); const arbitrumOneHandler = new GraphqlHandler({ name: "arbitrum-one", config: {"endpoint":"https://rail-squid.squids.live/squid-railgun-arbitrum-v2/graphql"}, baseDir, cache, pubsub, store: sourcesStore.child("arbitrum-one"), logger: logger.child("arbitrum-one"), importFn, }); const sepoliaHandler = new GraphqlHandler({ name: "sepolia", config: {"endpoint":"https://rail-squid.squids.live/squid-railgun-eth-sepolia-v2/graphql"}, baseDir, cache, pubsub, store: sourcesStore.child("sepolia"), logger: logger.child("sepolia"), importFn, }); sources[0] = { name: 'ethereum', handler: ethereumHandler, transforms: ethereumTransforms } sources[1] = { name: 'bsc', handler: bscHandler, transforms: bscTransforms } sources[2] = { name: 'matic', handler: maticHandler, transforms: maticTransforms } sources[3] = { name: 'arbitrum-one', handler: arbitrumOneHandler, transforms: arbitrumOneTransforms } sources[4] = { name: 'sepolia', handler: sepoliaHandler, transforms: sepoliaTransforms } const additionalResolvers = [] as any[] const merger = new(StitchingMerger as any)({ cache, pubsub, logger: logger.child('stitchingMerger'), store: rootStore.child('stitchingMerger') }) return { sources, transforms, additionalTypeDefs, additionalResolvers, cache, pubsub, merger, logger, additionalEnvelopPlugins, get documents() { return [ { document: NullifiersDocument, get rawSDL() { return printWithCache(NullifiersDocument); }, location: 'NullifiersDocument.graphql' },{ document: UnshieldsDocument, get rawSDL() { return printWithCache(UnshieldsDocument); }, location: 'UnshieldsDocument.graphql' },{ document: CommitmentsDocument, get rawSDL() { return printWithCache(CommitmentsDocument); }, location: 'CommitmentsDocument.graphql' } ]; }, fetchFn, }; } export function createBuiltMeshHTTPHandler(): MeshHTTPHandler { return createMeshHTTPHandler({ baseDir, getBuiltMesh: getBuiltGraphClient, rawServeConfig: undefined, }) } let meshInstance$: Promise | undefined; export function getBuiltGraphClient(): Promise { if (meshInstance$ == null) { meshInstance$ = getMeshOptions().then(meshOptions => getMesh(meshOptions)).then(mesh => { const id = mesh.pubsub.subscribe('destroy', () => { meshInstance$ = undefined; mesh.pubsub.unsubscribe(id); }); return mesh; }); } return meshInstance$; } export const execute: ExecuteMeshFn = (...args) => getBuiltGraphClient().then(({ execute }) => execute(...args)); export const subscribe: SubscribeMeshFn = (...args) => getBuiltGraphClient().then(({ subscribe }) => subscribe(...args)); export function getBuiltGraphSDK(globalContext?: TGlobalContext) { const sdkRequester$ = getBuiltGraphClient().then(({ sdkRequesterFactory }) => sdkRequesterFactory(globalContext)); return getSdk((...args) => sdkRequester$.then(sdkRequester => sdkRequester(...args))); } export type NullifiersQueryVariables = Exact<{ blockNumber?: InputMaybe; }>; export type NullifiersQuery = { nullifiers: Array> }; export type UnshieldsQueryVariables = Exact<{ blockNumber?: InputMaybe; }>; export type UnshieldsQuery = { unshields: Array<( Pick & { token: Pick } )> }; export type CommitmentsQueryVariables = Exact<{ blockNumber?: InputMaybe; }>; export type CommitmentsQuery = { commitments: Array<( Pick & { preimage: ( Pick & { token: Pick } ) } ) | ( Pick & { legacyCiphertext: ( Pick & { ciphertext: Pick } ) } ) | ( Pick & { preimage: ( Pick & { token: Pick } ) } ) | ( Pick & { ciphertext: ( Pick & { ciphertext: Pick } ) } )> }; export const NullifiersDocument = gql` query Nullifiers($blockNumber: BigInt = 0) { nullifiers( orderBy: [blockNumber_ASC, nullifier_DESC] where: {blockNumber_gte: $blockNumber} limit: 10000 ) { id blockNumber nullifier transactionHash blockTimestamp treeNumber } } ` as unknown as DocumentNode; export const UnshieldsDocument = gql` query Unshields($blockNumber: BigInt = 0) { unshields( orderBy: [blockNumber_ASC, eventLogIndex_ASC] where: {blockNumber_gte: $blockNumber} limit: 10000 ) { id blockNumber to transactionHash fee blockTimestamp amount eventLogIndex token { id tokenType tokenSubID tokenAddress } } } ` as unknown as DocumentNode; export const CommitmentsDocument = gql` query Commitments($blockNumber: BigInt = 0) { commitments( orderBy: [blockNumber_ASC, treePosition_ASC] where: {blockNumber_gte: $blockNumber} limit: 10000 ) { id treeNumber batchStartTreePosition treePosition blockNumber transactionHash blockTimestamp commitmentType hash ... on LegacyGeneratedCommitment { id treeNumber batchStartTreePosition treePosition blockNumber transactionHash blockTimestamp commitmentType hash encryptedRandom preimage { id npk value token { id tokenType tokenSubID tokenAddress } } } ... on LegacyEncryptedCommitment { id blockNumber blockTimestamp transactionHash treeNumber batchStartTreePosition treePosition commitmentType hash legacyCiphertext: ciphertext { id ciphertext { id iv tag data } ephemeralKeys memo } } ... on ShieldCommitment { id blockNumber blockTimestamp transactionHash treeNumber batchStartTreePosition treePosition commitmentType hash shieldKey fee encryptedBundle preimage { id npk value token { id tokenType tokenSubID tokenAddress } } } ... on TransactCommitment { id blockNumber blockTimestamp transactionHash treeNumber batchStartTreePosition treePosition commitmentType hash ciphertext { id ciphertext { id iv tag data } blindedSenderViewingKey blindedReceiverViewingKey annotationData memo } } } } ` as unknown as DocumentNode; export type Requester = (doc: DocumentNode, vars?: V, options?: C) => Promise | AsyncIterable export function getSdk(requester: Requester) { return { Nullifiers(variables?: NullifiersQueryVariables, options?: C): Promise { return requester(NullifiersDocument, variables, options) as Promise; }, Unshields(variables?: UnshieldsQueryVariables, options?: C): Promise { return requester(UnshieldsDocument, variables, options) as Promise; }, Commitments(variables?: CommitmentsQueryVariables, options?: C): Promise { return requester(CommitmentsDocument, variables, options) as Promise; } }; } export type Sdk = ReturnType;