From 978baa393222746d4e205c733e05f025e15ddbe4 Mon Sep 17 00:00:00 2001 From: debuggingfuture Date: Tue, 24 Dec 2024 11:18:55 +0800 Subject: [PATCH 1/4] add: domain tests --- .github/workflows/check.yml | 4 +- packages/domain/package.json | 4 +- packages/domain/tsconfig.json | 2 +- packages/domain/vite.config.ts | 23 + .../src/components/identity/address-badge.tsx | 2 +- .../hooks/eas/get-attestation-with-uid.tsx | 2 +- .../eas/sdk/offchain/typed-data-handler.ts | 2 +- .../ui-react/src/lib/eas/test-helpers/eas.ts | 563 ------------------ 8 files changed, 33 insertions(+), 569 deletions(-) create mode 100644 packages/domain/vite.config.ts delete mode 100644 packages/ui-react/src/lib/eas/test-helpers/eas.ts diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index feecf107..ffcf32e2 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -57,7 +57,9 @@ jobs: run: pnpm install --frozen-lockfile - name: Run Tests - Unit - run: pnpm --filter ui-react run test:unit + run: | + pnpm --filter ui-react run test:unit + pnpm --filter domain run test:unit - name: Run Check run: pnpm exec turbo run check diff --git a/packages/domain/package.json b/packages/domain/package.json index f89924ad..4caf7fa8 100644 --- a/packages/domain/package.json +++ b/packages/domain/package.json @@ -8,7 +8,9 @@ "./*": ["./src/*", "./src/*.tsx", "./src/*.ts"] }, "scripts": { - "test": "vitest" + "test": "vitest", + "test:unit": "VITEST_SUITES=unit vitest", + "test:int": "VITEST_SUITES=int vitest" }, "imports": { "#*": ["./src/*", "./src/*.tsx"] diff --git a/packages/domain/tsconfig.json b/packages/domain/tsconfig.json index 1b30a49b..4c48eee6 100644 --- a/packages/domain/tsconfig.json +++ b/packages/domain/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "@geist/typescript-config/react-library.json", + "extends": "@geist/typescript-config/base.json", "compilerOptions": { "baseUrl": ".", "module": "esnext", diff --git a/packages/domain/vite.config.ts b/packages/domain/vite.config.ts new file mode 100644 index 00000000..36f217ce --- /dev/null +++ b/packages/domain/vite.config.ts @@ -0,0 +1,23 @@ +import viteConfig from "../../vite.config"; + +/// +import { defineConfig, loadEnv } from "vite"; + +// https://vitejs.dev/config/ +export default defineConfig(({ mode }: { mode: string }) => { + const env = loadEnv(mode, process.cwd(), ""); + + const config = viteConfig(mode); + + return { + resolve: {}, + test: { + env: loadEnv(mode, process.cwd(), ""), + exclude: config.test!.exclude, + }, + plugins: [], + define: { + "process.env": process.env, + }, + }; +}); diff --git a/packages/ui-react/src/components/identity/address-badge.tsx b/packages/ui-react/src/components/identity/address-badge.tsx index 56520bcb..be472905 100644 --- a/packages/ui-react/src/components/identity/address-badge.tsx +++ b/packages/ui-react/src/components/identity/address-badge.tsx @@ -9,7 +9,7 @@ import { TooltipProvider, TooltipTrigger, } from "#components/shadcn/tooltip"; -import { getShortAddress } from "../../lib/utils/address"; +import { getShortAddress } from "#lib/utils/address"; export const AddressBadge = ({ address, diff --git a/packages/ui-react/src/hooks/eas/get-attestation-with-uid.tsx b/packages/ui-react/src/hooks/eas/get-attestation-with-uid.tsx index 8a28bd2a..4b67f7b0 100644 --- a/packages/ui-react/src/hooks/eas/get-attestation-with-uid.tsx +++ b/packages/ui-react/src/hooks/eas/get-attestation-with-uid.tsx @@ -1,6 +1,6 @@ import { QueryClient, useQuery } from "@tanstack/react-query"; import { gql, rawRequest } from "graphql-request"; -import { getEasscanEndpoint } from "../../lib/eas/easscan"; +import { getEasscanEndpoint } from "#lib/eas/easscan"; export type AttestationByIdResponse = { attestation: { diff --git a/packages/ui-react/src/lib/eas/sdk/offchain/typed-data-handler.ts b/packages/ui-react/src/lib/eas/sdk/offchain/typed-data-handler.ts index 288a7847..157d1dca 100644 --- a/packages/ui-react/src/lib/eas/sdk/offchain/typed-data-handler.ts +++ b/packages/ui-react/src/lib/eas/sdk/offchain/typed-data-handler.ts @@ -18,7 +18,7 @@ import { keccak256, parseAbiParameters, } from "viem"; -import { EIP712_NAME } from "../../versions"; +import { EIP712_NAME } from "#lib/eas/versions"; import { DelegatedConfig } from "./delegated"; export interface Signature { diff --git a/packages/ui-react/src/lib/eas/test-helpers/eas.ts b/packages/ui-react/src/lib/eas/test-helpers/eas.ts deleted file mode 100644 index 90086214..00000000 --- a/packages/ui-react/src/lib/eas/test-helpers/eas.ts +++ /dev/null @@ -1,563 +0,0 @@ -// import { expect } from 'chai'; -// import { encodeBytes32String, Signer } from 'ethers'; -// import { -// AttestationRequestData, -// EAS, -// MultiAttestationRequest, -// MultiDelegatedAttestationRequest, -// MultiDelegatedProxyAttestationRequest, -// MultiDelegatedProxyRevocationRequest, -// MultiDelegatedRevocationRequest, -// MultiRevocationRequest, -// NO_EXPIRATION, -// RevocationRequestData -// } from '../../../src/eas'; -// import { -// EIP712AttestationParams, -// EIP712AttestationProxyParams, -// EIP712MessageTypes, -// EIP712Response, -// EIP712RevocationParams, -// EIP712RevocationProxyParams, -// OffchainAttestationVersion -// } from '../../../src/offchain'; -// import { Transaction } from '../../../src/transaction'; -// import { getOffchainUID } from '../../../src/utils'; -// import { ZERO_BYTES, ZERO_BYTES32 } from '../../utils/Constants'; -// import { latest } from './time'; - -// export enum SignatureType { -// Direct = 'direct', -// Delegated = 'delegated', -// DelegatedProxy = 'delegated-proxy', -// Offchain = 'offchain' -// } - -// interface RequestOptions { -// signatureType?: SignatureType; -// deadline?: bigint; -// from: Signer; -// value?: bigint; -// maxPriorityFeePerGas?: bigint | Promise; -// maxFeePerGas?: bigint | Promise; -// } - -// export interface AttestationOptions extends RequestOptions { -// bump?: number; -// } - -// // eslint-disable-next-line @typescript-eslint/no-empty-interface -// export interface RevocationOptions extends RequestOptions {} - -// export const expectAttestation = async ( -// eas: EAS, -// schema: string, -// request: AttestationRequestData, -// options: AttestationOptions -// ) => { -// const { -// recipient, -// expirationTime = NO_EXPIRATION, -// revocable = true, -// refUID = ZERO_BYTES32, -// data = ZERO_BYTES, -// value = 0n -// } = request; -// const { -// from: txSender, -// signatureType = SignatureType.Direct, -// deadline = NO_EXPIRATION, -// maxPriorityFeePerGas, -// maxFeePerGas -// } = options; - -// let uid; - -// const overrides = -// maxPriorityFeePerGas && maxFeePerGas -// ? { maxPriorityFeePerGas: maxPriorityFeePerGas?.toString(), maxFeePerGas: maxFeePerGas?.toString() } -// : undefined; -// let tx: Transaction | undefined; - -// switch (signatureType) { -// case SignatureType.Direct: { -// uid = await ( -// await eas -// .connect(txSender) -// .attest({ schema, data: { recipient, expirationTime, revocable, refUID, data, value } }, overrides) -// ).wait(); - -// break; -// } - -// case SignatureType.Delegated: { -// const delegated = await eas.getDelegated(); -// const response = await delegated.signDelegatedAttestation( -// { -// schema, -// recipient, -// expirationTime, -// revocable, -// refUID, -// data, -// value, -// nonce: await eas.getNonce(await txSender.getAddress()), -// deadline -// }, -// txSender -// ); - -// expect(await delegated.verifyDelegatedAttestationSignature(await txSender.getAddress(), response)).to.be.true; - -// tx = await eas.connect(txSender).attestByDelegation( -// { -// schema, -// data: { recipient, expirationTime, revocable, refUID, data, value }, -// signature: response.signature, -// attester: await txSender.getAddress(), -// deadline -// }, -// overrides -// ); -// uid = await tx.wait(); - -// break; -// } - -// case SignatureType.DelegatedProxy: { -// const proxy = await eas.getEIP712Proxy(); -// if (!proxy) { -// throw new Error('Invalid proxy'); -// } -// const delegated = await proxy?.getDelegated(); - -// const response = await delegated.signDelegatedProxyAttestation( -// { -// schema, -// recipient, -// expirationTime, -// revocable, -// refUID, -// data, -// value, -// deadline -// }, -// txSender -// ); - -// expect(await delegated.verifyDelegatedProxyAttestationSignature(await txSender.getAddress(), response)).to.be -// .true; - -// tx = await eas.connect(txSender).attestByDelegationProxy( -// { -// schema, -// data: { recipient, expirationTime, revocable, refUID, data, value }, -// signature: response.signature, -// attester: await txSender.getAddress(), -// deadline -// }, -// overrides -// ); - -// uid = await tx.wait(); - -// expect(await eas.getEIP712Proxy()?.getAttester(uid)).to.equal(await txSender.getAddress()); - -// break; -// } - -// case SignatureType.Offchain: { -// const offchain = await eas.getOffchain(); - -// const now = await latest(); -// const salt = encodeBytes32String('SALT'); -// const uid = getOffchainUID( -// OffchainAttestationVersion.Version2, -// schema, -// recipient, -// now, -// expirationTime, -// revocable, -// refUID, -// data, -// salt -// ); - -// const attestation = await offchain.signOffchainAttestation( -// { -// schema, -// recipient, -// time: now, -// expirationTime, -// revocable, -// refUID, -// data, -// salt -// }, -// txSender -// ); - -// expect(attestation.uid).to.equal(uid); -// expect(await offchain.verifyOffchainAttestationSignature(await txSender.getAddress(), attestation)).to.be.true; - -// return uid; -// } -// } - -// expect(await eas.isAttestationValid(uid)).to.be.true; - -// if (maxPriorityFeePerGas && maxFeePerGas && tx) { -// expect(tx.data.maxPriorityFeePerGas).to.equal(maxPriorityFeePerGas); -// expect(tx.data.maxFeePerGas).to.equal(maxFeePerGas); -// } - -// return uid; -// }; - -// export const expectMultiAttestations = async ( -// eas: EAS, -// requests: MultiAttestationRequest[], -// options: AttestationOptions -// ) => { -// const { -// from: txSender, -// signatureType = SignatureType.Direct, -// deadline = NO_EXPIRATION, -// maxPriorityFeePerGas, -// maxFeePerGas -// } = options; - -// const overrides = -// maxPriorityFeePerGas && maxFeePerGas -// ? { maxPriorityFeePerGas: maxPriorityFeePerGas?.toString(), maxFeePerGas: maxFeePerGas?.toString() } -// : undefined; - -// let tx: Transaction | undefined; -// let uids: string[] = []; - -// switch (signatureType) { -// case SignatureType.Direct: { -// const tx = await eas.connect(txSender).multiAttest(requests); -// uids = await tx.wait(); - -// break; -// } - -// case SignatureType.Delegated: { -// const multiDelegatedAttestationRequests: MultiDelegatedAttestationRequest[] = []; - -// let nonce = await eas.getNonce(await txSender.getAddress()); - -// for (const { schema, data } of requests) { -// const responses: EIP712Response[] = []; - -// for (const request of data) { -// const delegated = await eas.getDelegated(); -// const response = await delegated.signDelegatedAttestation( -// { -// schema, -// recipient: request.recipient, -// expirationTime: request.expirationTime ?? NO_EXPIRATION, -// revocable: request.revocable ?? true, -// refUID: request.refUID ?? ZERO_BYTES32, -// data: request.data, -// value: request.value ?? 0n, -// nonce, -// deadline -// }, -// txSender -// ); - -// expect(await delegated.verifyDelegatedAttestationSignature(await txSender.getAddress(), response)).to.be.true; - -// responses.push(response); - -// nonce++; -// } - -// multiDelegatedAttestationRequests.push({ -// schema, -// data, -// signatures: responses.map((r) => r.signature), -// attester: await txSender.getAddress(), -// deadline -// }); -// } - -// tx = await eas.connect(txSender).multiAttestByDelegation(multiDelegatedAttestationRequests, overrides); -// uids = await tx.wait(); - -// break; -// } - -// case SignatureType.DelegatedProxy: { -// const proxy = await eas.getEIP712Proxy(); -// if (!proxy) { -// throw new Error('Invalid proxy'); -// } -// const delegated = await proxy?.getDelegated(); - -// const multiDelegatedProxyAttestationRequests: MultiDelegatedProxyAttestationRequest[] = []; - -// for (const { schema, data } of requests) { -// const responses: EIP712Response[] = []; - -// for (const request of data) { -// const response = await delegated.signDelegatedProxyAttestation( -// { -// schema, -// recipient: request.recipient, -// expirationTime: request.expirationTime ?? NO_EXPIRATION, -// revocable: request.revocable ?? true, -// refUID: request.refUID ?? ZERO_BYTES32, -// value: request.value ?? 0n, -// data: request.data, -// deadline -// }, -// txSender -// ); - -// expect(await delegated.verifyDelegatedProxyAttestationSignature(await txSender.getAddress(), response)).to.be -// .true; - -// responses.push(response); -// } - -// multiDelegatedProxyAttestationRequests.push({ -// schema, -// data, -// signatures: responses.map((r) => r.signature), -// attester: await txSender.getAddress(), -// deadline -// }); -// } - -// tx = await eas.connect(txSender).multiAttestByDelegationProxy(multiDelegatedProxyAttestationRequests, overrides); -// uids = await tx.wait(); - -// for (const uid of uids) { -// expect(await eas.getEIP712Proxy()?.getAttester(uid)).to.equal(await txSender.getAddress()); -// } - -// break; -// } - -// case SignatureType.Offchain: { -// throw new Error('Offchain batch attestations are unsupported'); -// } -// } - -// for (const uid of uids) { -// expect(await eas.isAttestationValid(uid)).to.be.true; -// } - -// if (maxPriorityFeePerGas && maxFeePerGas && tx) { -// expect(tx.data.maxPriorityFeePerGas).to.equal(maxPriorityFeePerGas); -// expect(tx.data.maxFeePerGas).to.equal(maxFeePerGas); -// } -// }; - -// export const expectRevocation = async ( -// eas: EAS, -// schema: string, -// request: RevocationRequestData, -// options: RevocationOptions -// ) => { -// const { uid, value = 0n } = request; -// const { -// from: txSender, -// signatureType = SignatureType.Direct, -// deadline = NO_EXPIRATION, -// maxPriorityFeePerGas, -// maxFeePerGas -// } = options; - -// const overrides = -// maxPriorityFeePerGas && maxFeePerGas -// ? { maxPriorityFeePerGas: maxPriorityFeePerGas?.toString(), maxFeePerGas: maxFeePerGas?.toString() } -// : undefined; -// let tx: Transaction | undefined; - -// switch (signatureType) { -// case SignatureType.Direct: { -// tx = await eas.connect(txSender).revoke({ schema, data: { uid, value } }, overrides); -// await tx.wait(); - -// break; -// } - -// case SignatureType.Delegated: { -// const delegated = await eas.getDelegated(); -// const response = await delegated.signDelegatedRevocation( -// { schema, uid, value, deadline, nonce: await eas.getNonce(await txSender.getAddress()) }, -// txSender -// ); - -// expect(await delegated.verifyDelegatedRevocationSignature(await txSender.getAddress(), response)).to.be.true; - -// tx = await eas.connect(txSender).revokeByDelegation( -// { -// schema, -// data: { uid, value }, -// signature: response.signature, -// revoker: await txSender.getAddress(), -// deadline -// }, -// overrides -// ); -// await tx.wait(); - -// break; -// } - -// case SignatureType.DelegatedProxy: { -// const proxy = await eas.getEIP712Proxy(); -// if (!proxy) { -// throw new Error('Invalid proxy'); -// } -// const delegated = await proxy?.getDelegated(); - -// const response = await delegated.signDelegatedProxyRevocation({ schema, uid, value, deadline }, txSender); - -// expect(await delegated.verifyDelegatedProxyRevocationSignature(await txSender.getAddress(), response)).to.be.true; - -// tx = await eas.connect(txSender).revokeByDelegationProxy( -// { -// schema, -// data: { uid, value }, -// signature: response.signature, -// revoker: await txSender.getAddress(), -// deadline -// }, -// overrides -// ); -// await tx.wait(); - -// break; -// } -// } - -// expect(await eas.isAttestationRevoked(uid)).to.be.true; - -// if (maxPriorityFeePerGas && maxFeePerGas && tx) { -// expect(tx.data.maxPriorityFeePerGas).to.equal(maxPriorityFeePerGas); -// expect(tx.data.maxFeePerGas).to.equal(maxFeePerGas); -// } -// }; - -// export const expectMultiRevocations = async ( -// eas: EAS, -// requests: MultiRevocationRequest[], -// options: RevocationOptions -// ) => { -// const { -// from: txSender, -// signatureType = SignatureType.Direct, -// deadline = NO_EXPIRATION, -// maxPriorityFeePerGas, -// maxFeePerGas -// } = options; - -// const overrides = -// maxPriorityFeePerGas && maxFeePerGas -// ? { maxPriorityFeePerGas: maxPriorityFeePerGas?.toString(), maxFeePerGas: maxFeePerGas?.toString() } -// : undefined; -// let tx: Transaction | undefined; - -// switch (signatureType) { -// case SignatureType.Direct: { -// tx = await eas.connect(txSender).multiRevoke(requests, overrides); -// await tx.wait(); - -// break; -// } - -// case SignatureType.Delegated: { -// const multiDelegatedRevocationRequests: MultiDelegatedRevocationRequest[] = []; - -// let nonce = await eas.getNonce(await txSender.getAddress()); - -// for (const { schema, data } of requests) { -// const responses: EIP712Response[] = []; - -// for (const request of data) { -// const delegated = await eas.getDelegated(); -// const response = await delegated.signDelegatedRevocation( -// { schema, uid: request.uid, value: request.value ?? 0n, nonce, deadline }, -// txSender -// ); - -// expect(await delegated.verifyDelegatedRevocationSignature(await txSender.getAddress(), response)).to.be.true; - -// responses.push(response); - -// nonce++; -// } - -// multiDelegatedRevocationRequests.push({ -// schema, -// data, -// signatures: responses.map((r) => r.signature), -// revoker: await txSender.getAddress(), -// deadline -// }); -// } - -// tx = await eas.connect(txSender).multiRevokeByDelegation(multiDelegatedRevocationRequests, overrides); -// await tx.wait(); - -// break; -// } - -// case SignatureType.DelegatedProxy: { -// const proxy = await eas.getEIP712Proxy(); -// if (!proxy) { -// throw new Error('Invalid proxy'); -// } -// const delegated = await proxy?.getDelegated(); - -// const multiDelegatedProxyRevocationRequests: MultiDelegatedProxyRevocationRequest[] = []; - -// for (const { schema, data } of requests) { -// const responses: EIP712Response[] = []; - -// for (const request of data) { -// const response = await delegated.signDelegatedProxyRevocation( -// { schema, uid: request.uid, value: request.value ?? 0n, deadline }, -// txSender -// ); - -// expect(await delegated.verifyDelegatedProxyRevocationSignature(await txSender.getAddress(), response)).to.be -// .true; - -// responses.push(response); -// } - -// multiDelegatedProxyRevocationRequests.push({ -// schema, -// data, -// signatures: responses.map((r) => r.signature), -// revoker: await txSender.getAddress(), -// deadline -// }); -// } - -// tx = await eas.connect(txSender).multiRevokeByDelegationProxy(multiDelegatedProxyRevocationRequests, overrides); -// await tx.wait(); - -// break; -// } -// } - -// for (const data of requests) { -// for (const { uid } of data.data) { -// expect(await eas.isAttestationValid(uid)).to.be.true; -// expect(await eas.isAttestationRevoked(uid)).to.be.true; -// } -// } - -// if (maxPriorityFeePerGas && maxFeePerGas && tx) { -// expect(tx.data.maxPriorityFeePerGas).to.equal(maxPriorityFeePerGas); -// expect(tx.data.maxFeePerGas).to.equal(maxFeePerGas); -// } -// }; From 723c87a2e9771ea2f632a57ada8e141c2a05a2b8 Mon Sep 17 00:00:00 2001 From: debuggingfuture Date: Tue, 24 Dec 2024 11:29:52 +0800 Subject: [PATCH 2/4] fix: gql gen --- .github/workflows/ci.yml | 4 + biome.json | 2 +- packages/gql/codegen.ts | 15 +- packages/gql/package.json | 3 +- .../gql/src/graphql/eas/fragment-masking.ts | 108 +- packages/gql/src/graphql/eas/gql.ts | 25 +- packages/gql/src/graphql/eas/graphql.ts | 3777 ++++++------- packages/gql/src/graphql/eas/index.ts | 2 +- .../gql/src/graphql/ens/fragment-masking.ts | 83 + packages/gql/src/graphql/ens/gql.ts | 9 + packages/gql/src/graphql/ens/graphql.ts | 4683 +++++++++++++++++ packages/gql/src/graphql/ens/index.ts | 2 + 12 files changed, 6736 insertions(+), 1977 deletions(-) create mode 100644 packages/gql/src/graphql/ens/fragment-masking.ts create mode 100644 packages/gql/src/graphql/ens/gql.ts create mode 100644 packages/gql/src/graphql/ens/graphql.ts create mode 100644 packages/gql/src/graphql/ens/index.ts diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fc0661fa..739d7202 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -64,6 +64,10 @@ jobs: name: storybook-build path: apps/storybook/storybook-static + # smoke test, disabled for now + # - name: Build gql + # run: pnpm --filter graphql build:gql + deploy-storybook: needs: [build-storybook] if: github.ref == 'refs/heads/main' diff --git a/biome.json b/biome.json index 814b8dc4..012750ab 100644 --- a/biome.json +++ b/biome.json @@ -8,7 +8,7 @@ }, "files": { "ignoreUnknown": false, - "ignore": [] + "ignore": ["packages/gql/src/graphql/**/*.ts"] }, "formatter": { "enabled": true, diff --git a/packages/gql/codegen.ts b/packages/gql/codegen.ts index e16ef60e..080ee147 100644 --- a/packages/gql/codegen.ts +++ b/packages/gql/codegen.ts @@ -12,7 +12,7 @@ const config: CodegenConfig = { generates: { "./src/graphql/eas/": { preset: "client", - documents: ["../../apps/storybook/src/lib/eas/**/*.ts"], + documents: ["../../packages/ui-react/src/lib/eas/**/*.ts"], schema: "https://easscan.org/graphql", presetConfig: { gqlTagName: "gql", @@ -21,10 +21,13 @@ const config: CodegenConfig = { documentMode: "string", }, }, + // note new endpoint for mainnet + // https://discuss.ens.domains/t/ens-subgraph-migration-to-the-decentralised-version/19183 "./src/graphql/ens/": { preset: "client", - documents: ["../../apps/storybook/src/lib/ens/**/*.ts"], - schema: "https://api.thegraph.com/subgraphs/name/ensdomains/ens", + documents: ["../../packages/ui-react/src/lib/ens/**/*.ts"], + schema: + "https://api.studio.thegraph.com/query/49574/enssepolia/version/latest", presetConfig: { gqlTagName: "gql", }, @@ -32,12 +35,6 @@ const config: CodegenConfig = { documentMode: "string", }, }, - // './schema.graphql': { - // plugins: ['schema-ast'], - // config: { - // includeDirectives: true - // } - // } }, }; diff --git a/packages/gql/package.json b/packages/gql/package.json index 6229b4f8..f1602a2a 100644 --- a/packages/gql/package.json +++ b/packages/gql/package.json @@ -8,8 +8,7 @@ ".": "./src/graphql/index.ts" }, "scripts": { - "build:gql": "graphql-codegen --config codegen.ts", - "test": "echo \"Error: no test specified\" && exit 1" + "build:gql": "graphql-codegen --config codegen.ts" }, "devDependencies": { "@graphprotocol/graph-cli": "^0.67.2", diff --git a/packages/gql/src/graphql/eas/fragment-masking.ts b/packages/gql/src/graphql/eas/fragment-masking.ts index 501b3b77..f347f50e 100644 --- a/packages/gql/src/graphql/eas/fragment-masking.ts +++ b/packages/gql/src/graphql/eas/fragment-masking.ts @@ -1,103 +1,83 @@ /* eslint-disable */ -import { - DocumentTypeDecoration, - ResultOf, -} from "@graphql-typed-document-node/core"; -import { Incremental, TypedDocumentString } from "./graphql"; +import { ResultOf, DocumentTypeDecoration } from '@graphql-typed-document-node/core'; +import { Incremental, TypedDocumentString } from './graphql'; -export type FragmentType< - TDocumentType extends DocumentTypeDecoration, -> = TDocumentType extends DocumentTypeDecoration - ? [TType] extends [{ " $fragmentName"?: infer TKey }] - ? TKey extends string - ? { " $fragmentRefs"?: { [key in TKey]: TType } } - : never - : never - : never; + +export type FragmentType> = TDocumentType extends DocumentTypeDecoration< + infer TType, + any +> + ? [TType] extends [{ ' $fragmentName'?: infer TKey }] + ? TKey extends string + ? { ' $fragmentRefs'?: { [key in TKey]: TType } } + : never + : never + : never; // return non-nullable if `fragmentType` is non-nullable export function useFragment( - _documentNode: DocumentTypeDecoration, - fragmentType: FragmentType>, + _documentNode: DocumentTypeDecoration, + fragmentType: FragmentType> ): TType; // return nullable if `fragmentType` is undefined export function useFragment( - _documentNode: DocumentTypeDecoration, - fragmentType: FragmentType> | undefined, + _documentNode: DocumentTypeDecoration, + fragmentType: FragmentType> | undefined ): TType | undefined; // return nullable if `fragmentType` is nullable export function useFragment( - _documentNode: DocumentTypeDecoration, - fragmentType: FragmentType> | null, + _documentNode: DocumentTypeDecoration, + fragmentType: FragmentType> | null ): TType | null; // return nullable if `fragmentType` is nullable or undefined export function useFragment( - _documentNode: DocumentTypeDecoration, - fragmentType: - | FragmentType> - | null - | undefined, + _documentNode: DocumentTypeDecoration, + fragmentType: FragmentType> | null | undefined ): TType | null | undefined; // return array of non-nullable if `fragmentType` is array of non-nullable export function useFragment( - _documentNode: DocumentTypeDecoration, - fragmentType: Array>>, + _documentNode: DocumentTypeDecoration, + fragmentType: Array>> ): Array; // return array of nullable if `fragmentType` is array of nullable export function useFragment( - _documentNode: DocumentTypeDecoration, - fragmentType: - | Array>> - | null - | undefined, + _documentNode: DocumentTypeDecoration, + fragmentType: Array>> | null | undefined ): Array | null | undefined; // return readonly array of non-nullable if `fragmentType` is array of non-nullable export function useFragment( - _documentNode: DocumentTypeDecoration, - fragmentType: ReadonlyArray>>, + _documentNode: DocumentTypeDecoration, + fragmentType: ReadonlyArray>> ): ReadonlyArray; // return readonly array of nullable if `fragmentType` is array of nullable export function useFragment( - _documentNode: DocumentTypeDecoration, - fragmentType: - | ReadonlyArray>> - | null - | undefined, + _documentNode: DocumentTypeDecoration, + fragmentType: ReadonlyArray>> | null | undefined ): ReadonlyArray | null | undefined; export function useFragment( - _documentNode: DocumentTypeDecoration, - fragmentType: - | FragmentType> - | Array>> - | ReadonlyArray>> - | null - | undefined, + _documentNode: DocumentTypeDecoration, + fragmentType: FragmentType> | Array>> | ReadonlyArray>> | null | undefined ): TType | Array | ReadonlyArray | null | undefined { - return fragmentType as any; + return fragmentType as any; } + export function makeFragmentData< - F extends DocumentTypeDecoration, - FT extends ResultOf, + F extends DocumentTypeDecoration, + FT extends ResultOf >(data: FT, _fragment: F): FragmentType { - return data as FragmentType; + return data as FragmentType; } export function isFragmentReady( - queryNode: TypedDocumentString, - fragmentNode: TypedDocumentString, - data: - | FragmentType, any>> - | null - | undefined, + queryNode: TypedDocumentString, + fragmentNode: TypedDocumentString, + data: FragmentType, any>> | null | undefined ): data is FragmentType { - const deferredFields = queryNode.__meta__?.deferredFields as Record< - string, - (keyof TFrag)[] - >; - const fragName = fragmentNode.__meta__?.fragmentName as string | undefined; + const deferredFields = queryNode.__meta__?.deferredFields as Record; + const fragName = fragmentNode.__meta__?.fragmentName as string | undefined; - if (!deferredFields || !fragName) return true; + if (!deferredFields || !fragName) return true; - const fields = deferredFields[fragName] ?? []; - return fields.length > 0 && fields.every((field) => data && field in data); + const fields = deferredFields[fragName] ?? []; + return fields.length > 0 && fields.every(field => data && field in data); } diff --git a/packages/gql/src/graphql/eas/gql.ts b/packages/gql/src/graphql/eas/gql.ts index dd8ddc33..8f8a1cf4 100644 --- a/packages/gql/src/graphql/eas/gql.ts +++ b/packages/gql/src/graphql/eas/gql.ts @@ -1,28 +1,9 @@ /* eslint-disable */ -import * as types from "./graphql"; +import * as types from './graphql'; -/** - * Map of all GraphQL operations in the project. - * - * This map has several performance disadvantages: - * 1. It is not tree-shakeable, so it will include all operations in the project. - * 2. It is not minifiable, so the string of a GraphQL query will be multiple times inside the bundle. - * 3. It does not support dead code elimination, so it will add unused operations. - * - * Therefore it is highly recommended to use the babel or swc plugin for production. - */ -const documents = { - "\n query allAttestationsBy(\n $where: AttestationWhereInput\n ) {\n attestations(where: $where) {\n id\n txid\n recipient\n schema {\n index\n schemaNames {\n name\n }\n }\n time\n isOffchain\n schemaId\n attester\n }\n }\n": - types.AllAttestationsByDocument, -}; -/** - * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. - */ -export function gql( - source: "\n query allAttestationsBy(\n $where: AttestationWhereInput\n ) {\n attestations(where: $where) {\n id\n txid\n recipient\n schema {\n index\n schemaNames {\n name\n }\n }\n time\n isOffchain\n schemaId\n attester\n }\n }\n", -): typeof import("./graphql").AllAttestationsByDocument; +const documents = {} export function gql(source: string) { - return (documents as any)[source] ?? {}; + return (documents as any)[source] ?? {}; } diff --git a/packages/gql/src/graphql/eas/graphql.ts b/packages/gql/src/graphql/eas/graphql.ts index a3eb7161..3fd6403e 100644 --- a/packages/gql/src/graphql/eas/graphql.ts +++ b/packages/gql/src/graphql/eas/graphql.ts @@ -1,2844 +1,2865 @@ /* eslint-disable */ -import { DocumentTypeDecoration } from "@graphql-typed-document-node/core"; 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 MakeEmpty< - T extends { [key: string]: unknown }, - K extends keyof T, -> = { [_ in K]?: never }; -export type Incremental = - | T - | { - [P in keyof T]?: P extends " $fragmentName" | "__typename" ? T[P] : never; - }; +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 MakeEmpty = { [_ in K]?: never }; +export type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { - ID: { input: string; output: string }; - String: { input: string; output: string }; - Boolean: { input: boolean; output: boolean }; - Int: { input: number; output: number }; - Float: { input: number; output: number }; + ID: { input: string; output: string; } + String: { input: string; output: string; } + Boolean: { input: boolean; output: boolean; } + Int: { input: number; output: number; } + Float: { input: number; output: number; } }; export type AffectedRowsOutput = { - __typename?: "AffectedRowsOutput"; - count: Scalars["Int"]["output"]; + __typename?: 'AffectedRowsOutput'; + count: Scalars['Int']['output']; }; export type AggregateAttestation = { - __typename?: "AggregateAttestation"; - _avg?: Maybe; - _count?: Maybe; - _max?: Maybe; - _min?: Maybe; - _sum?: Maybe; + __typename?: 'AggregateAttestation'; + _avg?: Maybe; + _count?: Maybe; + _max?: Maybe; + _min?: Maybe; + _sum?: Maybe; }; export type AggregateEnsName = { - __typename?: "AggregateEnsName"; - _avg?: Maybe; - _count?: Maybe; - _max?: Maybe; - _min?: Maybe; - _sum?: Maybe; + __typename?: 'AggregateEnsName'; + _avg?: Maybe; + _count?: Maybe; + _max?: Maybe; + _min?: Maybe; + _sum?: Maybe; }; export type AggregateOffchainRevocation = { - __typename?: "AggregateOffchainRevocation"; - _avg?: Maybe; - _count?: Maybe; - _max?: Maybe; - _min?: Maybe; - _sum?: Maybe; + __typename?: 'AggregateOffchainRevocation'; + _avg?: Maybe; + _count?: Maybe; + _max?: Maybe; + _min?: Maybe; + _sum?: Maybe; }; export type AggregateSchema = { - __typename?: "AggregateSchema"; - _avg?: Maybe; - _count?: Maybe; - _max?: Maybe; - _min?: Maybe; - _sum?: Maybe; + __typename?: 'AggregateSchema'; + _avg?: Maybe; + _count?: Maybe; + _max?: Maybe; + _min?: Maybe; + _sum?: Maybe; }; export type AggregateSchemaName = { - __typename?: "AggregateSchemaName"; - _avg?: Maybe; - _count?: Maybe; - _max?: Maybe; - _min?: Maybe; - _sum?: Maybe; + __typename?: 'AggregateSchemaName'; + _avg?: Maybe; + _count?: Maybe; + _max?: Maybe; + _min?: Maybe; + _sum?: Maybe; }; export type AggregateServiceStat = { - __typename?: "AggregateServiceStat"; - _count?: Maybe; - _max?: Maybe; - _min?: Maybe; + __typename?: 'AggregateServiceStat'; + _count?: Maybe; + _max?: Maybe; + _min?: Maybe; }; export type AggregateTimestamp = { - __typename?: "AggregateTimestamp"; - _avg?: Maybe; - _count?: Maybe; - _max?: Maybe; - _min?: Maybe; - _sum?: Maybe; + __typename?: 'AggregateTimestamp'; + _avg?: Maybe; + _count?: Maybe; + _max?: Maybe; + _min?: Maybe; + _sum?: Maybe; }; export type Attestation = { - __typename?: "Attestation"; - attester: Scalars["String"]["output"]; - data: Scalars["String"]["output"]; - decodedDataJson: Scalars["String"]["output"]; - expirationTime: Scalars["Int"]["output"]; - id: Scalars["String"]["output"]; - ipfsHash: Scalars["String"]["output"]; - isOffchain: Scalars["Boolean"]["output"]; - recipient: Scalars["String"]["output"]; - refUID: Scalars["String"]["output"]; - revocable: Scalars["Boolean"]["output"]; - revocationTime: Scalars["Int"]["output"]; - revoked: Scalars["Boolean"]["output"]; - schema: Schema; - schemaId: Scalars["String"]["output"]; - time: Scalars["Int"]["output"]; - timeCreated: Scalars["Int"]["output"]; - txid: Scalars["String"]["output"]; + __typename?: 'Attestation'; + attester: Scalars['String']['output']; + data: Scalars['String']['output']; + decodedDataJson: Scalars['String']['output']; + expirationTime: Scalars['Int']['output']; + id: Scalars['String']['output']; + ipfsHash: Scalars['String']['output']; + isOffchain: Scalars['Boolean']['output']; + recipient: Scalars['String']['output']; + refUID: Scalars['String']['output']; + revocable: Scalars['Boolean']['output']; + revocationTime: Scalars['Int']['output']; + revoked: Scalars['Boolean']['output']; + schema: Schema; + schemaId: Scalars['String']['output']; + time: Scalars['Int']['output']; + timeCreated: Scalars['Int']['output']; + txid: Scalars['String']['output']; }; export type AttestationAvgAggregate = { - __typename?: "AttestationAvgAggregate"; - expirationTime?: Maybe; - revocationTime?: Maybe; - time?: Maybe; - timeCreated?: Maybe; + __typename?: 'AttestationAvgAggregate'; + expirationTime?: Maybe; + revocationTime?: Maybe; + time?: Maybe; + timeCreated?: Maybe; }; export type AttestationAvgOrderByAggregateInput = { - expirationTime?: InputMaybe; - revocationTime?: InputMaybe; - time?: InputMaybe; - timeCreated?: InputMaybe; + expirationTime?: InputMaybe; + revocationTime?: InputMaybe; + time?: InputMaybe; + timeCreated?: InputMaybe; }; export type AttestationCountAggregate = { - __typename?: "AttestationCountAggregate"; - _all: Scalars["Int"]["output"]; - attester: Scalars["Int"]["output"]; - data: Scalars["Int"]["output"]; - decodedDataJson: Scalars["Int"]["output"]; - expirationTime: Scalars["Int"]["output"]; - id: Scalars["Int"]["output"]; - ipfsHash: Scalars["Int"]["output"]; - isOffchain: Scalars["Int"]["output"]; - recipient: Scalars["Int"]["output"]; - refUID: Scalars["Int"]["output"]; - revocable: Scalars["Int"]["output"]; - revocationTime: Scalars["Int"]["output"]; - revoked: Scalars["Int"]["output"]; - schemaId: Scalars["Int"]["output"]; - time: Scalars["Int"]["output"]; - timeCreated: Scalars["Int"]["output"]; - txid: Scalars["Int"]["output"]; + __typename?: 'AttestationCountAggregate'; + _all: Scalars['Int']['output']; + attester: Scalars['Int']['output']; + data: Scalars['Int']['output']; + decodedDataJson: Scalars['Int']['output']; + expirationTime: Scalars['Int']['output']; + id: Scalars['Int']['output']; + ipfsHash: Scalars['Int']['output']; + isOffchain: Scalars['Int']['output']; + recipient: Scalars['Int']['output']; + refUID: Scalars['Int']['output']; + revocable: Scalars['Int']['output']; + revocationTime: Scalars['Int']['output']; + revoked: Scalars['Int']['output']; + schemaId: Scalars['Int']['output']; + time: Scalars['Int']['output']; + timeCreated: Scalars['Int']['output']; + txid: Scalars['Int']['output']; }; export type AttestationCountOrderByAggregateInput = { - attester?: InputMaybe; - data?: InputMaybe; - decodedDataJson?: InputMaybe; - expirationTime?: InputMaybe; - id?: InputMaybe; - ipfsHash?: InputMaybe; - isOffchain?: InputMaybe; - recipient?: InputMaybe; - refUID?: InputMaybe; - revocable?: InputMaybe; - revocationTime?: InputMaybe; - revoked?: InputMaybe; - schemaId?: InputMaybe; - time?: InputMaybe; - timeCreated?: InputMaybe; - txid?: InputMaybe; + attester?: InputMaybe; + data?: InputMaybe; + decodedDataJson?: InputMaybe; + expirationTime?: InputMaybe; + id?: InputMaybe; + ipfsHash?: InputMaybe; + isOffchain?: InputMaybe; + recipient?: InputMaybe; + refUID?: InputMaybe; + revocable?: InputMaybe; + revocationTime?: InputMaybe; + revoked?: InputMaybe; + schemaId?: InputMaybe; + time?: InputMaybe; + timeCreated?: InputMaybe; + txid?: InputMaybe; }; export type AttestationCreateInput = { - attester: Scalars["String"]["input"]; - data: Scalars["String"]["input"]; - decodedDataJson?: InputMaybe; - expirationTime: Scalars["Int"]["input"]; - id: Scalars["String"]["input"]; - ipfsHash: Scalars["String"]["input"]; - isOffchain: Scalars["Boolean"]["input"]; - recipient: Scalars["String"]["input"]; - refUID: Scalars["String"]["input"]; - revocable: Scalars["Boolean"]["input"]; - revocationTime: Scalars["Int"]["input"]; - revoked: Scalars["Boolean"]["input"]; - schema: SchemaCreateNestedOneWithoutAttestationsInput; - time: Scalars["Int"]["input"]; - timeCreated: Scalars["Int"]["input"]; - txid: Scalars["String"]["input"]; + attester: Scalars['String']['input']; + data: Scalars['String']['input']; + decodedDataJson?: InputMaybe; + expirationTime: Scalars['Int']['input']; + id: Scalars['String']['input']; + ipfsHash: Scalars['String']['input']; + isOffchain: Scalars['Boolean']['input']; + recipient: Scalars['String']['input']; + refUID: Scalars['String']['input']; + revocable: Scalars['Boolean']['input']; + revocationTime: Scalars['Int']['input']; + revoked: Scalars['Boolean']['input']; + schema: SchemaCreateNestedOneWithoutAttestationsInput; + time: Scalars['Int']['input']; + timeCreated: Scalars['Int']['input']; + txid: Scalars['String']['input']; }; export type AttestationCreateManyInput = { - attester: Scalars["String"]["input"]; - data: Scalars["String"]["input"]; - decodedDataJson?: InputMaybe; - expirationTime: Scalars["Int"]["input"]; - id: Scalars["String"]["input"]; - ipfsHash: Scalars["String"]["input"]; - isOffchain: Scalars["Boolean"]["input"]; - recipient: Scalars["String"]["input"]; - refUID: Scalars["String"]["input"]; - revocable: Scalars["Boolean"]["input"]; - revocationTime: Scalars["Int"]["input"]; - revoked: Scalars["Boolean"]["input"]; - schemaId: Scalars["String"]["input"]; - time: Scalars["Int"]["input"]; - timeCreated: Scalars["Int"]["input"]; - txid: Scalars["String"]["input"]; + attester: Scalars['String']['input']; + data: Scalars['String']['input']; + decodedDataJson?: InputMaybe; + expirationTime: Scalars['Int']['input']; + id: Scalars['String']['input']; + ipfsHash: Scalars['String']['input']; + isOffchain: Scalars['Boolean']['input']; + recipient: Scalars['String']['input']; + refUID: Scalars['String']['input']; + revocable: Scalars['Boolean']['input']; + revocationTime: Scalars['Int']['input']; + revoked: Scalars['Boolean']['input']; + schemaId: Scalars['String']['input']; + time: Scalars['Int']['input']; + timeCreated: Scalars['Int']['input']; + txid: Scalars['String']['input']; }; export type AttestationCreateManySchemaInput = { - attester: Scalars["String"]["input"]; - data: Scalars["String"]["input"]; - decodedDataJson?: InputMaybe; - expirationTime: Scalars["Int"]["input"]; - id: Scalars["String"]["input"]; - ipfsHash: Scalars["String"]["input"]; - isOffchain: Scalars["Boolean"]["input"]; - recipient: Scalars["String"]["input"]; - refUID: Scalars["String"]["input"]; - revocable: Scalars["Boolean"]["input"]; - revocationTime: Scalars["Int"]["input"]; - revoked: Scalars["Boolean"]["input"]; - time: Scalars["Int"]["input"]; - timeCreated: Scalars["Int"]["input"]; - txid: Scalars["String"]["input"]; + attester: Scalars['String']['input']; + data: Scalars['String']['input']; + decodedDataJson?: InputMaybe; + expirationTime: Scalars['Int']['input']; + id: Scalars['String']['input']; + ipfsHash: Scalars['String']['input']; + isOffchain: Scalars['Boolean']['input']; + recipient: Scalars['String']['input']; + refUID: Scalars['String']['input']; + revocable: Scalars['Boolean']['input']; + revocationTime: Scalars['Int']['input']; + revoked: Scalars['Boolean']['input']; + time: Scalars['Int']['input']; + timeCreated: Scalars['Int']['input']; + txid: Scalars['String']['input']; }; export type AttestationCreateManySchemaInputEnvelope = { - data: Array; - skipDuplicates?: InputMaybe; + data: Array; + skipDuplicates?: InputMaybe; }; export type AttestationCreateNestedManyWithoutSchemaInput = { - connect?: InputMaybe>; - connectOrCreate?: InputMaybe< - Array - >; - create?: InputMaybe>; - createMany?: InputMaybe; + connect?: InputMaybe>; + connectOrCreate?: InputMaybe>; + create?: InputMaybe>; + createMany?: InputMaybe; }; export type AttestationCreateOrConnectWithoutSchemaInput = { - create: AttestationCreateWithoutSchemaInput; - where: AttestationWhereUniqueInput; + create: AttestationCreateWithoutSchemaInput; + where: AttestationWhereUniqueInput; }; export type AttestationCreateWithoutSchemaInput = { - attester: Scalars["String"]["input"]; - data: Scalars["String"]["input"]; - decodedDataJson?: InputMaybe; - expirationTime: Scalars["Int"]["input"]; - id: Scalars["String"]["input"]; - ipfsHash: Scalars["String"]["input"]; - isOffchain: Scalars["Boolean"]["input"]; - recipient: Scalars["String"]["input"]; - refUID: Scalars["String"]["input"]; - revocable: Scalars["Boolean"]["input"]; - revocationTime: Scalars["Int"]["input"]; - revoked: Scalars["Boolean"]["input"]; - time: Scalars["Int"]["input"]; - timeCreated: Scalars["Int"]["input"]; - txid: Scalars["String"]["input"]; + attester: Scalars['String']['input']; + data: Scalars['String']['input']; + decodedDataJson?: InputMaybe; + expirationTime: Scalars['Int']['input']; + id: Scalars['String']['input']; + ipfsHash: Scalars['String']['input']; + isOffchain: Scalars['Boolean']['input']; + recipient: Scalars['String']['input']; + refUID: Scalars['String']['input']; + revocable: Scalars['Boolean']['input']; + revocationTime: Scalars['Int']['input']; + revoked: Scalars['Boolean']['input']; + time: Scalars['Int']['input']; + timeCreated: Scalars['Int']['input']; + txid: Scalars['String']['input']; }; export type AttestationGroupBy = { - __typename?: "AttestationGroupBy"; - _avg?: Maybe; - _count?: Maybe; - _max?: Maybe; - _min?: Maybe; - _sum?: Maybe; - attester: Scalars["String"]["output"]; - data: Scalars["String"]["output"]; - decodedDataJson: Scalars["String"]["output"]; - expirationTime: Scalars["Int"]["output"]; - id: Scalars["String"]["output"]; - ipfsHash: Scalars["String"]["output"]; - isOffchain: Scalars["Boolean"]["output"]; - recipient: Scalars["String"]["output"]; - refUID: Scalars["String"]["output"]; - revocable: Scalars["Boolean"]["output"]; - revocationTime: Scalars["Int"]["output"]; - revoked: Scalars["Boolean"]["output"]; - schemaId: Scalars["String"]["output"]; - time: Scalars["Int"]["output"]; - timeCreated: Scalars["Int"]["output"]; - txid: Scalars["String"]["output"]; + __typename?: 'AttestationGroupBy'; + _avg?: Maybe; + _count?: Maybe; + _max?: Maybe; + _min?: Maybe; + _sum?: Maybe; + attester: Scalars['String']['output']; + data: Scalars['String']['output']; + decodedDataJson: Scalars['String']['output']; + expirationTime: Scalars['Int']['output']; + id: Scalars['String']['output']; + ipfsHash: Scalars['String']['output']; + isOffchain: Scalars['Boolean']['output']; + recipient: Scalars['String']['output']; + refUID: Scalars['String']['output']; + revocable: Scalars['Boolean']['output']; + revocationTime: Scalars['Int']['output']; + revoked: Scalars['Boolean']['output']; + schemaId: Scalars['String']['output']; + time: Scalars['Int']['output']; + timeCreated: Scalars['Int']['output']; + txid: Scalars['String']['output']; }; export type AttestationListRelationFilter = { - every?: InputMaybe; - none?: InputMaybe; - some?: InputMaybe; + every?: InputMaybe; + none?: InputMaybe; + some?: InputMaybe; }; export type AttestationMaxAggregate = { - __typename?: "AttestationMaxAggregate"; - attester?: Maybe; - data?: Maybe; - decodedDataJson?: Maybe; - expirationTime?: Maybe; - id?: Maybe; - ipfsHash?: Maybe; - isOffchain?: Maybe; - recipient?: Maybe; - refUID?: Maybe; - revocable?: Maybe; - revocationTime?: Maybe; - revoked?: Maybe; - schemaId?: Maybe; - time?: Maybe; - timeCreated?: Maybe; - txid?: Maybe; + __typename?: 'AttestationMaxAggregate'; + attester?: Maybe; + data?: Maybe; + decodedDataJson?: Maybe; + expirationTime?: Maybe; + id?: Maybe; + ipfsHash?: Maybe; + isOffchain?: Maybe; + recipient?: Maybe; + refUID?: Maybe; + revocable?: Maybe; + revocationTime?: Maybe; + revoked?: Maybe; + schemaId?: Maybe; + time?: Maybe; + timeCreated?: Maybe; + txid?: Maybe; }; export type AttestationMaxOrderByAggregateInput = { - attester?: InputMaybe; - data?: InputMaybe; - decodedDataJson?: InputMaybe; - expirationTime?: InputMaybe; - id?: InputMaybe; - ipfsHash?: InputMaybe; - isOffchain?: InputMaybe; - recipient?: InputMaybe; - refUID?: InputMaybe; - revocable?: InputMaybe; - revocationTime?: InputMaybe; - revoked?: InputMaybe; - schemaId?: InputMaybe; - time?: InputMaybe; - timeCreated?: InputMaybe; - txid?: InputMaybe; + attester?: InputMaybe; + data?: InputMaybe; + decodedDataJson?: InputMaybe; + expirationTime?: InputMaybe; + id?: InputMaybe; + ipfsHash?: InputMaybe; + isOffchain?: InputMaybe; + recipient?: InputMaybe; + refUID?: InputMaybe; + revocable?: InputMaybe; + revocationTime?: InputMaybe; + revoked?: InputMaybe; + schemaId?: InputMaybe; + time?: InputMaybe; + timeCreated?: InputMaybe; + txid?: InputMaybe; }; export type AttestationMinAggregate = { - __typename?: "AttestationMinAggregate"; - attester?: Maybe; - data?: Maybe; - decodedDataJson?: Maybe; - expirationTime?: Maybe; - id?: Maybe; - ipfsHash?: Maybe; - isOffchain?: Maybe; - recipient?: Maybe; - refUID?: Maybe; - revocable?: Maybe; - revocationTime?: Maybe; - revoked?: Maybe; - schemaId?: Maybe; - time?: Maybe; - timeCreated?: Maybe; - txid?: Maybe; + __typename?: 'AttestationMinAggregate'; + attester?: Maybe; + data?: Maybe; + decodedDataJson?: Maybe; + expirationTime?: Maybe; + id?: Maybe; + ipfsHash?: Maybe; + isOffchain?: Maybe; + recipient?: Maybe; + refUID?: Maybe; + revocable?: Maybe; + revocationTime?: Maybe; + revoked?: Maybe; + schemaId?: Maybe; + time?: Maybe; + timeCreated?: Maybe; + txid?: Maybe; }; export type AttestationMinOrderByAggregateInput = { - attester?: InputMaybe; - data?: InputMaybe; - decodedDataJson?: InputMaybe; - expirationTime?: InputMaybe; - id?: InputMaybe; - ipfsHash?: InputMaybe; - isOffchain?: InputMaybe; - recipient?: InputMaybe; - refUID?: InputMaybe; - revocable?: InputMaybe; - revocationTime?: InputMaybe; - revoked?: InputMaybe; - schemaId?: InputMaybe; - time?: InputMaybe; - timeCreated?: InputMaybe; - txid?: InputMaybe; + attester?: InputMaybe; + data?: InputMaybe; + decodedDataJson?: InputMaybe; + expirationTime?: InputMaybe; + id?: InputMaybe; + ipfsHash?: InputMaybe; + isOffchain?: InputMaybe; + recipient?: InputMaybe; + refUID?: InputMaybe; + revocable?: InputMaybe; + revocationTime?: InputMaybe; + revoked?: InputMaybe; + schemaId?: InputMaybe; + time?: InputMaybe; + timeCreated?: InputMaybe; + txid?: InputMaybe; }; export type AttestationOrderByRelationAggregateInput = { - _count?: InputMaybe; + _count?: InputMaybe; }; export type AttestationOrderByWithAggregationInput = { - _avg?: InputMaybe; - _count?: InputMaybe; - _max?: InputMaybe; - _min?: InputMaybe; - _sum?: InputMaybe; - attester?: InputMaybe; - data?: InputMaybe; - decodedDataJson?: InputMaybe; - expirationTime?: InputMaybe; - id?: InputMaybe; - ipfsHash?: InputMaybe; - isOffchain?: InputMaybe; - recipient?: InputMaybe; - refUID?: InputMaybe; - revocable?: InputMaybe; - revocationTime?: InputMaybe; - revoked?: InputMaybe; - schemaId?: InputMaybe; - time?: InputMaybe; - timeCreated?: InputMaybe; - txid?: InputMaybe; + _avg?: InputMaybe; + _count?: InputMaybe; + _max?: InputMaybe; + _min?: InputMaybe; + _sum?: InputMaybe; + attester?: InputMaybe; + data?: InputMaybe; + decodedDataJson?: InputMaybe; + expirationTime?: InputMaybe; + id?: InputMaybe; + ipfsHash?: InputMaybe; + isOffchain?: InputMaybe; + recipient?: InputMaybe; + refUID?: InputMaybe; + revocable?: InputMaybe; + revocationTime?: InputMaybe; + revoked?: InputMaybe; + schemaId?: InputMaybe; + time?: InputMaybe; + timeCreated?: InputMaybe; + txid?: InputMaybe; }; export type AttestationOrderByWithRelationInput = { - attester?: InputMaybe; - data?: InputMaybe; - decodedDataJson?: InputMaybe; - expirationTime?: InputMaybe; - id?: InputMaybe; - ipfsHash?: InputMaybe; - isOffchain?: InputMaybe; - recipient?: InputMaybe; - refUID?: InputMaybe; - revocable?: InputMaybe; - revocationTime?: InputMaybe; - revoked?: InputMaybe; - schema?: InputMaybe; - schemaId?: InputMaybe; - time?: InputMaybe; - timeCreated?: InputMaybe; - txid?: InputMaybe; + attester?: InputMaybe; + data?: InputMaybe; + decodedDataJson?: InputMaybe; + expirationTime?: InputMaybe; + id?: InputMaybe; + ipfsHash?: InputMaybe; + isOffchain?: InputMaybe; + recipient?: InputMaybe; + refUID?: InputMaybe; + revocable?: InputMaybe; + revocationTime?: InputMaybe; + revoked?: InputMaybe; + schema?: InputMaybe; + schemaId?: InputMaybe; + time?: InputMaybe; + timeCreated?: InputMaybe; + txid?: InputMaybe; }; export enum AttestationScalarFieldEnum { - Attester = "attester", - Data = "data", - DecodedDataJson = "decodedDataJson", - ExpirationTime = "expirationTime", - Id = "id", - IpfsHash = "ipfsHash", - IsOffchain = "isOffchain", - Recipient = "recipient", - RefUid = "refUID", - Revocable = "revocable", - RevocationTime = "revocationTime", - Revoked = "revoked", - SchemaId = "schemaId", - Time = "time", - TimeCreated = "timeCreated", - Txid = "txid", + Attester = 'attester', + Data = 'data', + DecodedDataJson = 'decodedDataJson', + ExpirationTime = 'expirationTime', + Id = 'id', + IpfsHash = 'ipfsHash', + IsOffchain = 'isOffchain', + Recipient = 'recipient', + RefUid = 'refUID', + Revocable = 'revocable', + RevocationTime = 'revocationTime', + Revoked = 'revoked', + SchemaId = 'schemaId', + Time = 'time', + TimeCreated = 'timeCreated', + Txid = 'txid' } export type AttestationScalarWhereInput = { - AND?: InputMaybe>; - NOT?: InputMaybe>; - OR?: InputMaybe>; - attester?: InputMaybe; - data?: InputMaybe; - decodedDataJson?: InputMaybe; - expirationTime?: InputMaybe; - id?: InputMaybe; - ipfsHash?: InputMaybe; - isOffchain?: InputMaybe; - recipient?: InputMaybe; - refUID?: InputMaybe; - revocable?: InputMaybe; - revocationTime?: InputMaybe; - revoked?: InputMaybe; - schemaId?: InputMaybe; - time?: InputMaybe; - timeCreated?: InputMaybe; - txid?: InputMaybe; + AND?: InputMaybe>; + NOT?: InputMaybe>; + OR?: InputMaybe>; + attester?: InputMaybe; + data?: InputMaybe; + decodedDataJson?: InputMaybe; + expirationTime?: InputMaybe; + id?: InputMaybe; + ipfsHash?: InputMaybe; + isOffchain?: InputMaybe; + recipient?: InputMaybe; + refUID?: InputMaybe; + revocable?: InputMaybe; + revocationTime?: InputMaybe; + revoked?: InputMaybe; + schemaId?: InputMaybe; + time?: InputMaybe; + timeCreated?: InputMaybe; + txid?: InputMaybe; }; export type AttestationScalarWhereWithAggregatesInput = { - AND?: InputMaybe>; - NOT?: InputMaybe>; - OR?: InputMaybe>; - attester?: InputMaybe; - data?: InputMaybe; - decodedDataJson?: InputMaybe; - expirationTime?: InputMaybe; - id?: InputMaybe; - ipfsHash?: InputMaybe; - isOffchain?: InputMaybe; - recipient?: InputMaybe; - refUID?: InputMaybe; - revocable?: InputMaybe; - revocationTime?: InputMaybe; - revoked?: InputMaybe; - schemaId?: InputMaybe; - time?: InputMaybe; - timeCreated?: InputMaybe; - txid?: InputMaybe; + AND?: InputMaybe>; + NOT?: InputMaybe>; + OR?: InputMaybe>; + attester?: InputMaybe; + data?: InputMaybe; + decodedDataJson?: InputMaybe; + expirationTime?: InputMaybe; + id?: InputMaybe; + ipfsHash?: InputMaybe; + isOffchain?: InputMaybe; + recipient?: InputMaybe; + refUID?: InputMaybe; + revocable?: InputMaybe; + revocationTime?: InputMaybe; + revoked?: InputMaybe; + schemaId?: InputMaybe; + time?: InputMaybe; + timeCreated?: InputMaybe; + txid?: InputMaybe; }; export type AttestationSumAggregate = { - __typename?: "AttestationSumAggregate"; - expirationTime?: Maybe; - revocationTime?: Maybe; - time?: Maybe; - timeCreated?: Maybe; + __typename?: 'AttestationSumAggregate'; + expirationTime?: Maybe; + revocationTime?: Maybe; + time?: Maybe; + timeCreated?: Maybe; }; export type AttestationSumOrderByAggregateInput = { - expirationTime?: InputMaybe; - revocationTime?: InputMaybe; - time?: InputMaybe; - timeCreated?: InputMaybe; + expirationTime?: InputMaybe; + revocationTime?: InputMaybe; + time?: InputMaybe; + timeCreated?: InputMaybe; }; export type AttestationUpdateInput = { - attester?: InputMaybe; - data?: InputMaybe; - decodedDataJson?: InputMaybe; - expirationTime?: InputMaybe; - id?: InputMaybe; - ipfsHash?: InputMaybe; - isOffchain?: InputMaybe; - recipient?: InputMaybe; - refUID?: InputMaybe; - revocable?: InputMaybe; - revocationTime?: InputMaybe; - revoked?: InputMaybe; - schema?: InputMaybe; - time?: InputMaybe; - timeCreated?: InputMaybe; - txid?: InputMaybe; + attester?: InputMaybe; + data?: InputMaybe; + decodedDataJson?: InputMaybe; + expirationTime?: InputMaybe; + id?: InputMaybe; + ipfsHash?: InputMaybe; + isOffchain?: InputMaybe; + recipient?: InputMaybe; + refUID?: InputMaybe; + revocable?: InputMaybe; + revocationTime?: InputMaybe; + revoked?: InputMaybe; + schema?: InputMaybe; + time?: InputMaybe; + timeCreated?: InputMaybe; + txid?: InputMaybe; }; export type AttestationUpdateManyMutationInput = { - attester?: InputMaybe; - data?: InputMaybe; - decodedDataJson?: InputMaybe; - expirationTime?: InputMaybe; - id?: InputMaybe; - ipfsHash?: InputMaybe; - isOffchain?: InputMaybe; - recipient?: InputMaybe; - refUID?: InputMaybe; - revocable?: InputMaybe; - revocationTime?: InputMaybe; - revoked?: InputMaybe; - time?: InputMaybe; - timeCreated?: InputMaybe; - txid?: InputMaybe; + attester?: InputMaybe; + data?: InputMaybe; + decodedDataJson?: InputMaybe; + expirationTime?: InputMaybe; + id?: InputMaybe; + ipfsHash?: InputMaybe; + isOffchain?: InputMaybe; + recipient?: InputMaybe; + refUID?: InputMaybe; + revocable?: InputMaybe; + revocationTime?: InputMaybe; + revoked?: InputMaybe; + time?: InputMaybe; + timeCreated?: InputMaybe; + txid?: InputMaybe; }; export type AttestationUpdateManyWithWhereWithoutSchemaInput = { - data: AttestationUpdateManyMutationInput; - where: AttestationScalarWhereInput; + data: AttestationUpdateManyMutationInput; + where: AttestationScalarWhereInput; }; export type AttestationUpdateManyWithoutSchemaNestedInput = { - connect?: InputMaybe>; - connectOrCreate?: InputMaybe< - Array - >; - create?: InputMaybe>; - createMany?: InputMaybe; - delete?: InputMaybe>; - deleteMany?: InputMaybe>; - disconnect?: InputMaybe>; - set?: InputMaybe>; - update?: InputMaybe< - Array - >; - updateMany?: InputMaybe< - Array - >; - upsert?: InputMaybe< - Array - >; + connect?: InputMaybe>; + connectOrCreate?: InputMaybe>; + create?: InputMaybe>; + createMany?: InputMaybe; + delete?: InputMaybe>; + deleteMany?: InputMaybe>; + disconnect?: InputMaybe>; + set?: InputMaybe>; + update?: InputMaybe>; + updateMany?: InputMaybe>; + upsert?: InputMaybe>; }; export type AttestationUpdateWithWhereUniqueWithoutSchemaInput = { - data: AttestationUpdateWithoutSchemaInput; - where: AttestationWhereUniqueInput; + data: AttestationUpdateWithoutSchemaInput; + where: AttestationWhereUniqueInput; }; export type AttestationUpdateWithoutSchemaInput = { - attester?: InputMaybe; - data?: InputMaybe; - decodedDataJson?: InputMaybe; - expirationTime?: InputMaybe; - id?: InputMaybe; - ipfsHash?: InputMaybe; - isOffchain?: InputMaybe; - recipient?: InputMaybe; - refUID?: InputMaybe; - revocable?: InputMaybe; - revocationTime?: InputMaybe; - revoked?: InputMaybe; - time?: InputMaybe; - timeCreated?: InputMaybe; - txid?: InputMaybe; + attester?: InputMaybe; + data?: InputMaybe; + decodedDataJson?: InputMaybe; + expirationTime?: InputMaybe; + id?: InputMaybe; + ipfsHash?: InputMaybe; + isOffchain?: InputMaybe; + recipient?: InputMaybe; + refUID?: InputMaybe; + revocable?: InputMaybe; + revocationTime?: InputMaybe; + revoked?: InputMaybe; + time?: InputMaybe; + timeCreated?: InputMaybe; + txid?: InputMaybe; }; export type AttestationUpsertWithWhereUniqueWithoutSchemaInput = { - create: AttestationCreateWithoutSchemaInput; - update: AttestationUpdateWithoutSchemaInput; - where: AttestationWhereUniqueInput; + create: AttestationCreateWithoutSchemaInput; + update: AttestationUpdateWithoutSchemaInput; + where: AttestationWhereUniqueInput; }; export type AttestationWhereInput = { - AND?: InputMaybe>; - NOT?: InputMaybe>; - OR?: InputMaybe>; - attester?: InputMaybe; - data?: InputMaybe; - decodedDataJson?: InputMaybe; - expirationTime?: InputMaybe; - id?: InputMaybe; - ipfsHash?: InputMaybe; - isOffchain?: InputMaybe; - recipient?: InputMaybe; - refUID?: InputMaybe; - revocable?: InputMaybe; - revocationTime?: InputMaybe; - revoked?: InputMaybe; - schema?: InputMaybe; - schemaId?: InputMaybe; - time?: InputMaybe; - timeCreated?: InputMaybe; - txid?: InputMaybe; + AND?: InputMaybe>; + NOT?: InputMaybe>; + OR?: InputMaybe>; + attester?: InputMaybe; + data?: InputMaybe; + decodedDataJson?: InputMaybe; + expirationTime?: InputMaybe; + id?: InputMaybe; + ipfsHash?: InputMaybe; + isOffchain?: InputMaybe; + recipient?: InputMaybe; + refUID?: InputMaybe; + revocable?: InputMaybe; + revocationTime?: InputMaybe; + revoked?: InputMaybe; + schema?: InputMaybe; + schemaId?: InputMaybe; + time?: InputMaybe; + timeCreated?: InputMaybe; + txid?: InputMaybe; }; export type AttestationWhereUniqueInput = { - id?: InputMaybe; + id?: InputMaybe; }; export type BoolFieldUpdateOperationsInput = { - set?: InputMaybe; + set?: InputMaybe; }; export type BoolFilter = { - equals?: InputMaybe; - not?: InputMaybe; + equals?: InputMaybe; + not?: InputMaybe; }; export type BoolWithAggregatesFilter = { - _count?: InputMaybe; - _max?: InputMaybe; - _min?: InputMaybe; - equals?: InputMaybe; - not?: InputMaybe; + _count?: InputMaybe; + _max?: InputMaybe; + _min?: InputMaybe; + equals?: InputMaybe; + not?: InputMaybe; }; export type EnsName = { - __typename?: "EnsName"; - id: Scalars["String"]["output"]; - name: Scalars["String"]["output"]; - timestamp: Scalars["Int"]["output"]; + __typename?: 'EnsName'; + id: Scalars['String']['output']; + name: Scalars['String']['output']; + timestamp: Scalars['Int']['output']; }; export type EnsNameAvgAggregate = { - __typename?: "EnsNameAvgAggregate"; - timestamp?: Maybe; + __typename?: 'EnsNameAvgAggregate'; + timestamp?: Maybe; }; export type EnsNameAvgOrderByAggregateInput = { - timestamp?: InputMaybe; + timestamp?: InputMaybe; }; export type EnsNameCountAggregate = { - __typename?: "EnsNameCountAggregate"; - _all: Scalars["Int"]["output"]; - id: Scalars["Int"]["output"]; - name: Scalars["Int"]["output"]; - timestamp: Scalars["Int"]["output"]; + __typename?: 'EnsNameCountAggregate'; + _all: Scalars['Int']['output']; + id: Scalars['Int']['output']; + name: Scalars['Int']['output']; + timestamp: Scalars['Int']['output']; }; export type EnsNameCountOrderByAggregateInput = { - id?: InputMaybe; - name?: InputMaybe; - timestamp?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + timestamp?: InputMaybe; }; export type EnsNameCreateInput = { - id: Scalars["String"]["input"]; - name: Scalars["String"]["input"]; - timestamp: Scalars["Int"]["input"]; + id: Scalars['String']['input']; + name: Scalars['String']['input']; + timestamp: Scalars['Int']['input']; }; export type EnsNameCreateManyInput = { - id: Scalars["String"]["input"]; - name: Scalars["String"]["input"]; - timestamp: Scalars["Int"]["input"]; + id: Scalars['String']['input']; + name: Scalars['String']['input']; + timestamp: Scalars['Int']['input']; }; export type EnsNameGroupBy = { - __typename?: "EnsNameGroupBy"; - _avg?: Maybe; - _count?: Maybe; - _max?: Maybe; - _min?: Maybe; - _sum?: Maybe; - id: Scalars["String"]["output"]; - name: Scalars["String"]["output"]; - timestamp: Scalars["Int"]["output"]; + __typename?: 'EnsNameGroupBy'; + _avg?: Maybe; + _count?: Maybe; + _max?: Maybe; + _min?: Maybe; + _sum?: Maybe; + id: Scalars['String']['output']; + name: Scalars['String']['output']; + timestamp: Scalars['Int']['output']; }; export type EnsNameMaxAggregate = { - __typename?: "EnsNameMaxAggregate"; - id?: Maybe; - name?: Maybe; - timestamp?: Maybe; + __typename?: 'EnsNameMaxAggregate'; + id?: Maybe; + name?: Maybe; + timestamp?: Maybe; }; export type EnsNameMaxOrderByAggregateInput = { - id?: InputMaybe; - name?: InputMaybe; - timestamp?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + timestamp?: InputMaybe; }; export type EnsNameMinAggregate = { - __typename?: "EnsNameMinAggregate"; - id?: Maybe; - name?: Maybe; - timestamp?: Maybe; + __typename?: 'EnsNameMinAggregate'; + id?: Maybe; + name?: Maybe; + timestamp?: Maybe; }; export type EnsNameMinOrderByAggregateInput = { - id?: InputMaybe; - name?: InputMaybe; - timestamp?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + timestamp?: InputMaybe; }; export type EnsNameOrderByWithAggregationInput = { - _avg?: InputMaybe; - _count?: InputMaybe; - _max?: InputMaybe; - _min?: InputMaybe; - _sum?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - timestamp?: InputMaybe; + _avg?: InputMaybe; + _count?: InputMaybe; + _max?: InputMaybe; + _min?: InputMaybe; + _sum?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + timestamp?: InputMaybe; }; export type EnsNameOrderByWithRelationInput = { - id?: InputMaybe; - name?: InputMaybe; - timestamp?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + timestamp?: InputMaybe; }; export enum EnsNameScalarFieldEnum { - Id = "id", - Name = "name", - Timestamp = "timestamp", + Id = 'id', + Name = 'name', + Timestamp = 'timestamp' } export type EnsNameScalarWhereWithAggregatesInput = { - AND?: InputMaybe>; - NOT?: InputMaybe>; - OR?: InputMaybe>; - id?: InputMaybe; - name?: InputMaybe; - timestamp?: InputMaybe; + AND?: InputMaybe>; + NOT?: InputMaybe>; + OR?: InputMaybe>; + id?: InputMaybe; + name?: InputMaybe; + timestamp?: InputMaybe; }; export type EnsNameSumAggregate = { - __typename?: "EnsNameSumAggregate"; - timestamp?: Maybe; + __typename?: 'EnsNameSumAggregate'; + timestamp?: Maybe; }; export type EnsNameSumOrderByAggregateInput = { - timestamp?: InputMaybe; + timestamp?: InputMaybe; }; export type EnsNameUpdateInput = { - id?: InputMaybe; - name?: InputMaybe; - timestamp?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + timestamp?: InputMaybe; }; export type EnsNameUpdateManyMutationInput = { - id?: InputMaybe; - name?: InputMaybe; - timestamp?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + timestamp?: InputMaybe; }; export type EnsNameWhereInput = { - AND?: InputMaybe>; - NOT?: InputMaybe>; - OR?: InputMaybe>; - id?: InputMaybe; - name?: InputMaybe; - timestamp?: InputMaybe; + AND?: InputMaybe>; + NOT?: InputMaybe>; + OR?: InputMaybe>; + id?: InputMaybe; + name?: InputMaybe; + timestamp?: InputMaybe; }; export type EnsNameWhereUniqueInput = { - id?: InputMaybe; + id?: InputMaybe; }; export type IntFieldUpdateOperationsInput = { - decrement?: InputMaybe; - divide?: InputMaybe; - increment?: InputMaybe; - multiply?: InputMaybe; - set?: InputMaybe; + decrement?: InputMaybe; + divide?: InputMaybe; + increment?: InputMaybe; + multiply?: InputMaybe; + set?: InputMaybe; }; export type IntFilter = { - equals?: InputMaybe; - gt?: InputMaybe; - gte?: InputMaybe; - in?: InputMaybe>; - lt?: InputMaybe; - lte?: InputMaybe; - not?: InputMaybe; - notIn?: InputMaybe>; + equals?: InputMaybe; + gt?: InputMaybe; + gte?: InputMaybe; + in?: InputMaybe>; + lt?: InputMaybe; + lte?: InputMaybe; + not?: InputMaybe; + notIn?: InputMaybe>; }; export type IntWithAggregatesFilter = { - _avg?: InputMaybe; - _count?: InputMaybe; - _max?: InputMaybe; - _min?: InputMaybe; - _sum?: InputMaybe; - equals?: InputMaybe; - gt?: InputMaybe; - gte?: InputMaybe; - in?: InputMaybe>; - lt?: InputMaybe; - lte?: InputMaybe; - not?: InputMaybe; - notIn?: InputMaybe>; + _avg?: InputMaybe; + _count?: InputMaybe; + _max?: InputMaybe; + _min?: InputMaybe; + _sum?: InputMaybe; + equals?: InputMaybe; + gt?: InputMaybe; + gte?: InputMaybe; + in?: InputMaybe>; + lt?: InputMaybe; + lte?: InputMaybe; + not?: InputMaybe; + notIn?: InputMaybe>; }; export type Mutation = { - __typename?: "Mutation"; - createManyAttestation: AffectedRowsOutput; - createManyEnsName: AffectedRowsOutput; - createManyOffchainRevocation: AffectedRowsOutput; - createManySchema: AffectedRowsOutput; - createManySchemaName: AffectedRowsOutput; - createManyServiceStat: AffectedRowsOutput; - createManyTimestamp: AffectedRowsOutput; - createOneAttestation: Attestation; - createOneEnsName: EnsName; - createOneOffchainRevocation: OffchainRevocation; - createOneSchema: Schema; - createOneSchemaName: SchemaName; - createOneServiceStat: ServiceStat; - createOneTimestamp: Timestamp; - deleteManyAttestation: AffectedRowsOutput; - deleteManyEnsName: AffectedRowsOutput; - deleteManyOffchainRevocation: AffectedRowsOutput; - deleteManySchema: AffectedRowsOutput; - deleteManySchemaName: AffectedRowsOutput; - deleteManyServiceStat: AffectedRowsOutput; - deleteManyTimestamp: AffectedRowsOutput; - deleteOneAttestation?: Maybe; - deleteOneEnsName?: Maybe; - deleteOneOffchainRevocation?: Maybe; - deleteOneSchema?: Maybe; - deleteOneSchemaName?: Maybe; - deleteOneServiceStat?: Maybe; - deleteOneTimestamp?: Maybe; - updateManyAttestation: AffectedRowsOutput; - updateManyEnsName: AffectedRowsOutput; - updateManyOffchainRevocation: AffectedRowsOutput; - updateManySchema: AffectedRowsOutput; - updateManySchemaName: AffectedRowsOutput; - updateManyServiceStat: AffectedRowsOutput; - updateManyTimestamp: AffectedRowsOutput; - updateOneAttestation?: Maybe; - updateOneEnsName?: Maybe; - updateOneOffchainRevocation?: Maybe; - updateOneSchema?: Maybe; - updateOneSchemaName?: Maybe; - updateOneServiceStat?: Maybe; - updateOneTimestamp?: Maybe; - upsertOneAttestation: Attestation; - upsertOneEnsName: EnsName; - upsertOneOffchainRevocation: OffchainRevocation; - upsertOneSchema: Schema; - upsertOneSchemaName: SchemaName; - upsertOneServiceStat: ServiceStat; - upsertOneTimestamp: Timestamp; + __typename?: 'Mutation'; + createManyAttestation: AffectedRowsOutput; + createManyEnsName: AffectedRowsOutput; + createManyOffchainRevocation: AffectedRowsOutput; + createManySchema: AffectedRowsOutput; + createManySchemaName: AffectedRowsOutput; + createManyServiceStat: AffectedRowsOutput; + createManyTimestamp: AffectedRowsOutput; + createOneAttestation: Attestation; + createOneEnsName: EnsName; + createOneOffchainRevocation: OffchainRevocation; + createOneSchema: Schema; + createOneSchemaName: SchemaName; + createOneServiceStat: ServiceStat; + createOneTimestamp: Timestamp; + deleteManyAttestation: AffectedRowsOutput; + deleteManyEnsName: AffectedRowsOutput; + deleteManyOffchainRevocation: AffectedRowsOutput; + deleteManySchema: AffectedRowsOutput; + deleteManySchemaName: AffectedRowsOutput; + deleteManyServiceStat: AffectedRowsOutput; + deleteManyTimestamp: AffectedRowsOutput; + deleteOneAttestation?: Maybe; + deleteOneEnsName?: Maybe; + deleteOneOffchainRevocation?: Maybe; + deleteOneSchema?: Maybe; + deleteOneSchemaName?: Maybe; + deleteOneServiceStat?: Maybe; + deleteOneTimestamp?: Maybe; + updateManyAttestation: AffectedRowsOutput; + updateManyEnsName: AffectedRowsOutput; + updateManyOffchainRevocation: AffectedRowsOutput; + updateManySchema: AffectedRowsOutput; + updateManySchemaName: AffectedRowsOutput; + updateManyServiceStat: AffectedRowsOutput; + updateManyTimestamp: AffectedRowsOutput; + updateOneAttestation?: Maybe; + updateOneEnsName?: Maybe; + updateOneOffchainRevocation?: Maybe; + updateOneSchema?: Maybe; + updateOneSchemaName?: Maybe; + updateOneServiceStat?: Maybe; + updateOneTimestamp?: Maybe; + upsertOneAttestation: Attestation; + upsertOneEnsName: EnsName; + upsertOneOffchainRevocation: OffchainRevocation; + upsertOneSchema: Schema; + upsertOneSchemaName: SchemaName; + upsertOneServiceStat: ServiceStat; + upsertOneTimestamp: Timestamp; }; + export type MutationCreateManyAttestationArgs = { - data: Array; - skipDuplicates?: InputMaybe; + data: Array; + skipDuplicates?: InputMaybe; }; + export type MutationCreateManyEnsNameArgs = { - data: Array; - skipDuplicates?: InputMaybe; + data: Array; + skipDuplicates?: InputMaybe; }; + export type MutationCreateManyOffchainRevocationArgs = { - data: Array; - skipDuplicates?: InputMaybe; + data: Array; + skipDuplicates?: InputMaybe; }; + export type MutationCreateManySchemaArgs = { - data: Array; - skipDuplicates?: InputMaybe; + data: Array; + skipDuplicates?: InputMaybe; }; + export type MutationCreateManySchemaNameArgs = { - data: Array; - skipDuplicates?: InputMaybe; + data: Array; + skipDuplicates?: InputMaybe; }; + export type MutationCreateManyServiceStatArgs = { - data: Array; - skipDuplicates?: InputMaybe; + data: Array; + skipDuplicates?: InputMaybe; }; + export type MutationCreateManyTimestampArgs = { - data: Array; - skipDuplicates?: InputMaybe; + data: Array; + skipDuplicates?: InputMaybe; }; + export type MutationCreateOneAttestationArgs = { - data: AttestationCreateInput; + data: AttestationCreateInput; }; + export type MutationCreateOneEnsNameArgs = { - data: EnsNameCreateInput; + data: EnsNameCreateInput; }; + export type MutationCreateOneOffchainRevocationArgs = { - data: OffchainRevocationCreateInput; + data: OffchainRevocationCreateInput; }; + export type MutationCreateOneSchemaArgs = { - data: SchemaCreateInput; + data: SchemaCreateInput; }; + export type MutationCreateOneSchemaNameArgs = { - data: SchemaNameCreateInput; + data: SchemaNameCreateInput; }; + export type MutationCreateOneServiceStatArgs = { - data: ServiceStatCreateInput; + data: ServiceStatCreateInput; }; + export type MutationCreateOneTimestampArgs = { - data: TimestampCreateInput; + data: TimestampCreateInput; }; + export type MutationDeleteManyAttestationArgs = { - where?: InputMaybe; + where?: InputMaybe; }; + export type MutationDeleteManyEnsNameArgs = { - where?: InputMaybe; + where?: InputMaybe; }; + export type MutationDeleteManyOffchainRevocationArgs = { - where?: InputMaybe; + where?: InputMaybe; }; + export type MutationDeleteManySchemaArgs = { - where?: InputMaybe; + where?: InputMaybe; }; + export type MutationDeleteManySchemaNameArgs = { - where?: InputMaybe; + where?: InputMaybe; }; + export type MutationDeleteManyServiceStatArgs = { - where?: InputMaybe; + where?: InputMaybe; }; + export type MutationDeleteManyTimestampArgs = { - where?: InputMaybe; + where?: InputMaybe; }; + export type MutationDeleteOneAttestationArgs = { - where: AttestationWhereUniqueInput; + where: AttestationWhereUniqueInput; }; + export type MutationDeleteOneEnsNameArgs = { - where: EnsNameWhereUniqueInput; + where: EnsNameWhereUniqueInput; }; + export type MutationDeleteOneOffchainRevocationArgs = { - where: OffchainRevocationWhereUniqueInput; + where: OffchainRevocationWhereUniqueInput; }; + export type MutationDeleteOneSchemaArgs = { - where: SchemaWhereUniqueInput; + where: SchemaWhereUniqueInput; }; + export type MutationDeleteOneSchemaNameArgs = { - where: SchemaNameWhereUniqueInput; + where: SchemaNameWhereUniqueInput; }; + export type MutationDeleteOneServiceStatArgs = { - where: ServiceStatWhereUniqueInput; + where: ServiceStatWhereUniqueInput; }; + export type MutationDeleteOneTimestampArgs = { - where: TimestampWhereUniqueInput; + where: TimestampWhereUniqueInput; }; + export type MutationUpdateManyAttestationArgs = { - data: AttestationUpdateManyMutationInput; - where?: InputMaybe; + data: AttestationUpdateManyMutationInput; + where?: InputMaybe; }; + export type MutationUpdateManyEnsNameArgs = { - data: EnsNameUpdateManyMutationInput; - where?: InputMaybe; + data: EnsNameUpdateManyMutationInput; + where?: InputMaybe; }; + export type MutationUpdateManyOffchainRevocationArgs = { - data: OffchainRevocationUpdateManyMutationInput; - where?: InputMaybe; + data: OffchainRevocationUpdateManyMutationInput; + where?: InputMaybe; }; + export type MutationUpdateManySchemaArgs = { - data: SchemaUpdateManyMutationInput; - where?: InputMaybe; + data: SchemaUpdateManyMutationInput; + where?: InputMaybe; }; + export type MutationUpdateManySchemaNameArgs = { - data: SchemaNameUpdateManyMutationInput; - where?: InputMaybe; + data: SchemaNameUpdateManyMutationInput; + where?: InputMaybe; }; + export type MutationUpdateManyServiceStatArgs = { - data: ServiceStatUpdateManyMutationInput; - where?: InputMaybe; + data: ServiceStatUpdateManyMutationInput; + where?: InputMaybe; }; + export type MutationUpdateManyTimestampArgs = { - data: TimestampUpdateManyMutationInput; - where?: InputMaybe; + data: TimestampUpdateManyMutationInput; + where?: InputMaybe; }; + export type MutationUpdateOneAttestationArgs = { - data: AttestationUpdateInput; - where: AttestationWhereUniqueInput; + data: AttestationUpdateInput; + where: AttestationWhereUniqueInput; }; + export type MutationUpdateOneEnsNameArgs = { - data: EnsNameUpdateInput; - where: EnsNameWhereUniqueInput; + data: EnsNameUpdateInput; + where: EnsNameWhereUniqueInput; }; + export type MutationUpdateOneOffchainRevocationArgs = { - data: OffchainRevocationUpdateInput; - where: OffchainRevocationWhereUniqueInput; + data: OffchainRevocationUpdateInput; + where: OffchainRevocationWhereUniqueInput; }; + export type MutationUpdateOneSchemaArgs = { - data: SchemaUpdateInput; - where: SchemaWhereUniqueInput; + data: SchemaUpdateInput; + where: SchemaWhereUniqueInput; }; + export type MutationUpdateOneSchemaNameArgs = { - data: SchemaNameUpdateInput; - where: SchemaNameWhereUniqueInput; + data: SchemaNameUpdateInput; + where: SchemaNameWhereUniqueInput; }; + export type MutationUpdateOneServiceStatArgs = { - data: ServiceStatUpdateInput; - where: ServiceStatWhereUniqueInput; + data: ServiceStatUpdateInput; + where: ServiceStatWhereUniqueInput; }; + export type MutationUpdateOneTimestampArgs = { - data: TimestampUpdateInput; - where: TimestampWhereUniqueInput; + data: TimestampUpdateInput; + where: TimestampWhereUniqueInput; }; + export type MutationUpsertOneAttestationArgs = { - create: AttestationCreateInput; - update: AttestationUpdateInput; - where: AttestationWhereUniqueInput; + create: AttestationCreateInput; + update: AttestationUpdateInput; + where: AttestationWhereUniqueInput; }; + export type MutationUpsertOneEnsNameArgs = { - create: EnsNameCreateInput; - update: EnsNameUpdateInput; - where: EnsNameWhereUniqueInput; + create: EnsNameCreateInput; + update: EnsNameUpdateInput; + where: EnsNameWhereUniqueInput; }; + export type MutationUpsertOneOffchainRevocationArgs = { - create: OffchainRevocationCreateInput; - update: OffchainRevocationUpdateInput; - where: OffchainRevocationWhereUniqueInput; + create: OffchainRevocationCreateInput; + update: OffchainRevocationUpdateInput; + where: OffchainRevocationWhereUniqueInput; }; + export type MutationUpsertOneSchemaArgs = { - create: SchemaCreateInput; - update: SchemaUpdateInput; - where: SchemaWhereUniqueInput; + create: SchemaCreateInput; + update: SchemaUpdateInput; + where: SchemaWhereUniqueInput; }; + export type MutationUpsertOneSchemaNameArgs = { - create: SchemaNameCreateInput; - update: SchemaNameUpdateInput; - where: SchemaNameWhereUniqueInput; + create: SchemaNameCreateInput; + update: SchemaNameUpdateInput; + where: SchemaNameWhereUniqueInput; }; + export type MutationUpsertOneServiceStatArgs = { - create: ServiceStatCreateInput; - update: ServiceStatUpdateInput; - where: ServiceStatWhereUniqueInput; + create: ServiceStatCreateInput; + update: ServiceStatUpdateInput; + where: ServiceStatWhereUniqueInput; }; + export type MutationUpsertOneTimestampArgs = { - create: TimestampCreateInput; - update: TimestampUpdateInput; - where: TimestampWhereUniqueInput; + create: TimestampCreateInput; + update: TimestampUpdateInput; + where: TimestampWhereUniqueInput; }; export type NestedBoolFilter = { - equals?: InputMaybe; - not?: InputMaybe; + equals?: InputMaybe; + not?: InputMaybe; }; export type NestedBoolWithAggregatesFilter = { - _count?: InputMaybe; - _max?: InputMaybe; - _min?: InputMaybe; - equals?: InputMaybe; - not?: InputMaybe; + _count?: InputMaybe; + _max?: InputMaybe; + _min?: InputMaybe; + equals?: InputMaybe; + not?: InputMaybe; }; export type NestedFloatFilter = { - equals?: InputMaybe; - gt?: InputMaybe; - gte?: InputMaybe; - in?: InputMaybe>; - lt?: InputMaybe; - lte?: InputMaybe; - not?: InputMaybe; - notIn?: InputMaybe>; + equals?: InputMaybe; + gt?: InputMaybe; + gte?: InputMaybe; + in?: InputMaybe>; + lt?: InputMaybe; + lte?: InputMaybe; + not?: InputMaybe; + notIn?: InputMaybe>; }; export type NestedIntFilter = { - equals?: InputMaybe; - gt?: InputMaybe; - gte?: InputMaybe; - in?: InputMaybe>; - lt?: InputMaybe; - lte?: InputMaybe; - not?: InputMaybe; - notIn?: InputMaybe>; + equals?: InputMaybe; + gt?: InputMaybe; + gte?: InputMaybe; + in?: InputMaybe>; + lt?: InputMaybe; + lte?: InputMaybe; + not?: InputMaybe; + notIn?: InputMaybe>; }; export type NestedIntWithAggregatesFilter = { - _avg?: InputMaybe; - _count?: InputMaybe; - _max?: InputMaybe; - _min?: InputMaybe; - _sum?: InputMaybe; - equals?: InputMaybe; - gt?: InputMaybe; - gte?: InputMaybe; - in?: InputMaybe>; - lt?: InputMaybe; - lte?: InputMaybe; - not?: InputMaybe; - notIn?: InputMaybe>; + _avg?: InputMaybe; + _count?: InputMaybe; + _max?: InputMaybe; + _min?: InputMaybe; + _sum?: InputMaybe; + equals?: InputMaybe; + gt?: InputMaybe; + gte?: InputMaybe; + in?: InputMaybe>; + lt?: InputMaybe; + lte?: InputMaybe; + not?: InputMaybe; + notIn?: InputMaybe>; }; export type NestedStringFilter = { - contains?: InputMaybe; - endsWith?: InputMaybe; - equals?: InputMaybe; - gt?: InputMaybe; - gte?: InputMaybe; - in?: InputMaybe>; - lt?: InputMaybe; - lte?: InputMaybe; - not?: InputMaybe; - notIn?: InputMaybe>; - startsWith?: InputMaybe; + contains?: InputMaybe; + endsWith?: InputMaybe; + equals?: InputMaybe; + gt?: InputMaybe; + gte?: InputMaybe; + in?: InputMaybe>; + lt?: InputMaybe; + lte?: InputMaybe; + not?: InputMaybe; + notIn?: InputMaybe>; + startsWith?: InputMaybe; }; export type NestedStringWithAggregatesFilter = { - _count?: InputMaybe; - _max?: InputMaybe; - _min?: InputMaybe; - contains?: InputMaybe; - endsWith?: InputMaybe; - equals?: InputMaybe; - gt?: InputMaybe; - gte?: InputMaybe; - in?: InputMaybe>; - lt?: InputMaybe; - lte?: InputMaybe; - not?: InputMaybe; - notIn?: InputMaybe>; - startsWith?: InputMaybe; + _count?: InputMaybe; + _max?: InputMaybe; + _min?: InputMaybe; + contains?: InputMaybe; + endsWith?: InputMaybe; + equals?: InputMaybe; + gt?: InputMaybe; + gte?: InputMaybe; + in?: InputMaybe>; + lt?: InputMaybe; + lte?: InputMaybe; + not?: InputMaybe; + notIn?: InputMaybe>; + startsWith?: InputMaybe; }; export type OffchainRevocation = { - __typename?: "OffchainRevocation"; - from: Scalars["String"]["output"]; - id: Scalars["String"]["output"]; - timestamp: Scalars["Int"]["output"]; - txid: Scalars["String"]["output"]; - uid: Scalars["String"]["output"]; + __typename?: 'OffchainRevocation'; + from: Scalars['String']['output']; + id: Scalars['String']['output']; + timestamp: Scalars['Int']['output']; + txid: Scalars['String']['output']; + uid: Scalars['String']['output']; }; export type OffchainRevocationAvgAggregate = { - __typename?: "OffchainRevocationAvgAggregate"; - timestamp?: Maybe; + __typename?: 'OffchainRevocationAvgAggregate'; + timestamp?: Maybe; }; export type OffchainRevocationAvgOrderByAggregateInput = { - timestamp?: InputMaybe; + timestamp?: InputMaybe; }; export type OffchainRevocationCountAggregate = { - __typename?: "OffchainRevocationCountAggregate"; - _all: Scalars["Int"]["output"]; - from: Scalars["Int"]["output"]; - id: Scalars["Int"]["output"]; - timestamp: Scalars["Int"]["output"]; - txid: Scalars["Int"]["output"]; - uid: Scalars["Int"]["output"]; + __typename?: 'OffchainRevocationCountAggregate'; + _all: Scalars['Int']['output']; + from: Scalars['Int']['output']; + id: Scalars['Int']['output']; + timestamp: Scalars['Int']['output']; + txid: Scalars['Int']['output']; + uid: Scalars['Int']['output']; }; export type OffchainRevocationCountOrderByAggregateInput = { - from?: InputMaybe; - id?: InputMaybe; - timestamp?: InputMaybe; - txid?: InputMaybe; - uid?: InputMaybe; + from?: InputMaybe; + id?: InputMaybe; + timestamp?: InputMaybe; + txid?: InputMaybe; + uid?: InputMaybe; }; export type OffchainRevocationCreateInput = { - from: Scalars["String"]["input"]; - id?: InputMaybe; - timestamp: Scalars["Int"]["input"]; - txid: Scalars["String"]["input"]; - uid: Scalars["String"]["input"]; + from: Scalars['String']['input']; + id?: InputMaybe; + timestamp: Scalars['Int']['input']; + txid: Scalars['String']['input']; + uid: Scalars['String']['input']; }; export type OffchainRevocationCreateManyInput = { - from: Scalars["String"]["input"]; - id?: InputMaybe; - timestamp: Scalars["Int"]["input"]; - txid: Scalars["String"]["input"]; - uid: Scalars["String"]["input"]; + from: Scalars['String']['input']; + id?: InputMaybe; + timestamp: Scalars['Int']['input']; + txid: Scalars['String']['input']; + uid: Scalars['String']['input']; }; export type OffchainRevocationGroupBy = { - __typename?: "OffchainRevocationGroupBy"; - _avg?: Maybe; - _count?: Maybe; - _max?: Maybe; - _min?: Maybe; - _sum?: Maybe; - from: Scalars["String"]["output"]; - id: Scalars["String"]["output"]; - timestamp: Scalars["Int"]["output"]; - txid: Scalars["String"]["output"]; - uid: Scalars["String"]["output"]; + __typename?: 'OffchainRevocationGroupBy'; + _avg?: Maybe; + _count?: Maybe; + _max?: Maybe; + _min?: Maybe; + _sum?: Maybe; + from: Scalars['String']['output']; + id: Scalars['String']['output']; + timestamp: Scalars['Int']['output']; + txid: Scalars['String']['output']; + uid: Scalars['String']['output']; }; export type OffchainRevocationMaxAggregate = { - __typename?: "OffchainRevocationMaxAggregate"; - from?: Maybe; - id?: Maybe; - timestamp?: Maybe; - txid?: Maybe; - uid?: Maybe; + __typename?: 'OffchainRevocationMaxAggregate'; + from?: Maybe; + id?: Maybe; + timestamp?: Maybe; + txid?: Maybe; + uid?: Maybe; }; export type OffchainRevocationMaxOrderByAggregateInput = { - from?: InputMaybe; - id?: InputMaybe; - timestamp?: InputMaybe; - txid?: InputMaybe; - uid?: InputMaybe; + from?: InputMaybe; + id?: InputMaybe; + timestamp?: InputMaybe; + txid?: InputMaybe; + uid?: InputMaybe; }; export type OffchainRevocationMinAggregate = { - __typename?: "OffchainRevocationMinAggregate"; - from?: Maybe; - id?: Maybe; - timestamp?: Maybe; - txid?: Maybe; - uid?: Maybe; + __typename?: 'OffchainRevocationMinAggregate'; + from?: Maybe; + id?: Maybe; + timestamp?: Maybe; + txid?: Maybe; + uid?: Maybe; }; export type OffchainRevocationMinOrderByAggregateInput = { - from?: InputMaybe; - id?: InputMaybe; - timestamp?: InputMaybe; - txid?: InputMaybe; - uid?: InputMaybe; + from?: InputMaybe; + id?: InputMaybe; + timestamp?: InputMaybe; + txid?: InputMaybe; + uid?: InputMaybe; }; export type OffchainRevocationOrderByWithAggregationInput = { - _avg?: InputMaybe; - _count?: InputMaybe; - _max?: InputMaybe; - _min?: InputMaybe; - _sum?: InputMaybe; - from?: InputMaybe; - id?: InputMaybe; - timestamp?: InputMaybe; - txid?: InputMaybe; - uid?: InputMaybe; + _avg?: InputMaybe; + _count?: InputMaybe; + _max?: InputMaybe; + _min?: InputMaybe; + _sum?: InputMaybe; + from?: InputMaybe; + id?: InputMaybe; + timestamp?: InputMaybe; + txid?: InputMaybe; + uid?: InputMaybe; }; export type OffchainRevocationOrderByWithRelationInput = { - from?: InputMaybe; - id?: InputMaybe; - timestamp?: InputMaybe; - txid?: InputMaybe; - uid?: InputMaybe; + from?: InputMaybe; + id?: InputMaybe; + timestamp?: InputMaybe; + txid?: InputMaybe; + uid?: InputMaybe; }; export enum OffchainRevocationScalarFieldEnum { - From = "from", - Id = "id", - Timestamp = "timestamp", - Txid = "txid", - Uid = "uid", + From = 'from', + Id = 'id', + Timestamp = 'timestamp', + Txid = 'txid', + Uid = 'uid' } export type OffchainRevocationScalarWhereWithAggregatesInput = { - AND?: InputMaybe>; - NOT?: InputMaybe>; - OR?: InputMaybe>; - from?: InputMaybe; - id?: InputMaybe; - timestamp?: InputMaybe; - txid?: InputMaybe; - uid?: InputMaybe; + AND?: InputMaybe>; + NOT?: InputMaybe>; + OR?: InputMaybe>; + from?: InputMaybe; + id?: InputMaybe; + timestamp?: InputMaybe; + txid?: InputMaybe; + uid?: InputMaybe; }; export type OffchainRevocationSumAggregate = { - __typename?: "OffchainRevocationSumAggregate"; - timestamp?: Maybe; + __typename?: 'OffchainRevocationSumAggregate'; + timestamp?: Maybe; }; export type OffchainRevocationSumOrderByAggregateInput = { - timestamp?: InputMaybe; + timestamp?: InputMaybe; }; export type OffchainRevocationUpdateInput = { - from?: InputMaybe; - id?: InputMaybe; - timestamp?: InputMaybe; - txid?: InputMaybe; - uid?: InputMaybe; + from?: InputMaybe; + id?: InputMaybe; + timestamp?: InputMaybe; + txid?: InputMaybe; + uid?: InputMaybe; }; export type OffchainRevocationUpdateManyMutationInput = { - from?: InputMaybe; - id?: InputMaybe; - timestamp?: InputMaybe; - txid?: InputMaybe; - uid?: InputMaybe; + from?: InputMaybe; + id?: InputMaybe; + timestamp?: InputMaybe; + txid?: InputMaybe; + uid?: InputMaybe; }; export type OffchainRevocationWhereInput = { - AND?: InputMaybe>; - NOT?: InputMaybe>; - OR?: InputMaybe>; - from?: InputMaybe; - id?: InputMaybe; - timestamp?: InputMaybe; - txid?: InputMaybe; - uid?: InputMaybe; + AND?: InputMaybe>; + NOT?: InputMaybe>; + OR?: InputMaybe>; + from?: InputMaybe; + id?: InputMaybe; + timestamp?: InputMaybe; + txid?: InputMaybe; + uid?: InputMaybe; }; export type OffchainRevocationWhereUniqueInput = { - id?: InputMaybe; + id?: InputMaybe; }; export type Query = { - __typename?: "Query"; - aggregateAttestation: AggregateAttestation; - aggregateEnsName: AggregateEnsName; - aggregateOffchainRevocation: AggregateOffchainRevocation; - aggregateSchema: AggregateSchema; - aggregateSchemaName: AggregateSchemaName; - aggregateServiceStat: AggregateServiceStat; - aggregateTimestamp: AggregateTimestamp; - attestation?: Maybe; - attestations: Array; - ensName?: Maybe; - ensNames: Array; - findFirstAttestation?: Maybe; - findFirstAttestationOrThrow?: Maybe; - findFirstEnsName?: Maybe; - findFirstEnsNameOrThrow?: Maybe; - findFirstOffchainRevocation?: Maybe; - findFirstOffchainRevocationOrThrow?: Maybe; - findFirstSchema?: Maybe; - findFirstSchemaName?: Maybe; - findFirstSchemaNameOrThrow?: Maybe; - findFirstSchemaOrThrow?: Maybe; - findFirstServiceStat?: Maybe; - findFirstServiceStatOrThrow?: Maybe; - findFirstTimestamp?: Maybe; - findFirstTimestampOrThrow?: Maybe; - getAttestation?: Maybe; - getEnsName?: Maybe; - getOffchainRevocation?: Maybe; - getSchema?: Maybe; - getSchemaName?: Maybe; - getServiceStat?: Maybe; - getTimestamp?: Maybe; - groupByAttestation: Array; - groupByEnsName: Array; - groupByOffchainRevocation: Array; - groupBySchema: Array; - groupBySchemaName: Array; - groupByServiceStat: Array; - groupByTimestamp: Array; - offchainRevocation?: Maybe; - offchainRevocations: Array; - schema?: Maybe; - schemaName?: Maybe; - schemaNames: Array; - schemata: Array; - serviceStat?: Maybe; - serviceStats: Array; - timestamp?: Maybe; - timestamps: Array; + __typename?: 'Query'; + aggregateAttestation: AggregateAttestation; + aggregateEnsName: AggregateEnsName; + aggregateOffchainRevocation: AggregateOffchainRevocation; + aggregateSchema: AggregateSchema; + aggregateSchemaName: AggregateSchemaName; + aggregateServiceStat: AggregateServiceStat; + aggregateTimestamp: AggregateTimestamp; + attestation?: Maybe; + attestations: Array; + ensName?: Maybe; + ensNames: Array; + findFirstAttestation?: Maybe; + findFirstAttestationOrThrow?: Maybe; + findFirstEnsName?: Maybe; + findFirstEnsNameOrThrow?: Maybe; + findFirstOffchainRevocation?: Maybe; + findFirstOffchainRevocationOrThrow?: Maybe; + findFirstSchema?: Maybe; + findFirstSchemaName?: Maybe; + findFirstSchemaNameOrThrow?: Maybe; + findFirstSchemaOrThrow?: Maybe; + findFirstServiceStat?: Maybe; + findFirstServiceStatOrThrow?: Maybe; + findFirstTimestamp?: Maybe; + findFirstTimestampOrThrow?: Maybe; + getAttestation?: Maybe; + getEnsName?: Maybe; + getOffchainRevocation?: Maybe; + getSchema?: Maybe; + getSchemaName?: Maybe; + getServiceStat?: Maybe; + getTimestamp?: Maybe; + groupByAttestation: Array; + groupByEnsName: Array; + groupByOffchainRevocation: Array; + groupBySchema: Array; + groupBySchemaName: Array; + groupByServiceStat: Array; + groupByTimestamp: Array; + offchainRevocation?: Maybe; + offchainRevocations: Array; + schema?: Maybe; + schemaName?: Maybe; + schemaNames: Array; + schemata: Array; + serviceStat?: Maybe; + serviceStats: Array; + timestamp?: Maybe; + timestamps: Array; }; + export type QueryAggregateAttestationArgs = { - cursor?: InputMaybe; - orderBy?: InputMaybe>; - skip?: InputMaybe; - take?: InputMaybe; - where?: InputMaybe; + cursor?: InputMaybe; + orderBy?: InputMaybe>; + skip?: InputMaybe; + take?: InputMaybe; + where?: InputMaybe; }; + export type QueryAggregateEnsNameArgs = { - cursor?: InputMaybe; - orderBy?: InputMaybe>; - skip?: InputMaybe; - take?: InputMaybe; - where?: InputMaybe; + cursor?: InputMaybe; + orderBy?: InputMaybe>; + skip?: InputMaybe; + take?: InputMaybe; + where?: InputMaybe; }; + export type QueryAggregateOffchainRevocationArgs = { - cursor?: InputMaybe; - orderBy?: InputMaybe>; - skip?: InputMaybe; - take?: InputMaybe; - where?: InputMaybe; + cursor?: InputMaybe; + orderBy?: InputMaybe>; + skip?: InputMaybe; + take?: InputMaybe; + where?: InputMaybe; }; + export type QueryAggregateSchemaArgs = { - cursor?: InputMaybe; - orderBy?: InputMaybe>; - skip?: InputMaybe; - take?: InputMaybe; - where?: InputMaybe; + cursor?: InputMaybe; + orderBy?: InputMaybe>; + skip?: InputMaybe; + take?: InputMaybe; + where?: InputMaybe; }; + export type QueryAggregateSchemaNameArgs = { - cursor?: InputMaybe; - orderBy?: InputMaybe>; - skip?: InputMaybe; - take?: InputMaybe; - where?: InputMaybe; + cursor?: InputMaybe; + orderBy?: InputMaybe>; + skip?: InputMaybe; + take?: InputMaybe; + where?: InputMaybe; }; + export type QueryAggregateServiceStatArgs = { - cursor?: InputMaybe; - orderBy?: InputMaybe>; - skip?: InputMaybe; - take?: InputMaybe; - where?: InputMaybe; + cursor?: InputMaybe; + orderBy?: InputMaybe>; + skip?: InputMaybe; + take?: InputMaybe; + where?: InputMaybe; }; + export type QueryAggregateTimestampArgs = { - cursor?: InputMaybe; - orderBy?: InputMaybe>; - skip?: InputMaybe; - take?: InputMaybe; - where?: InputMaybe; + cursor?: InputMaybe; + orderBy?: InputMaybe>; + skip?: InputMaybe; + take?: InputMaybe; + where?: InputMaybe; }; + export type QueryAttestationArgs = { - where: AttestationWhereUniqueInput; + where: AttestationWhereUniqueInput; }; + export type QueryAttestationsArgs = { - cursor?: InputMaybe; - distinct?: InputMaybe>; - orderBy?: InputMaybe>; - skip?: InputMaybe; - take?: InputMaybe; - where?: InputMaybe; + cursor?: InputMaybe; + distinct?: InputMaybe>; + orderBy?: InputMaybe>; + skip?: InputMaybe; + take?: InputMaybe; + where?: InputMaybe; }; + export type QueryEnsNameArgs = { - where: EnsNameWhereUniqueInput; + where: EnsNameWhereUniqueInput; }; + export type QueryEnsNamesArgs = { - cursor?: InputMaybe; - distinct?: InputMaybe>; - orderBy?: InputMaybe>; - skip?: InputMaybe; - take?: InputMaybe; - where?: InputMaybe; + cursor?: InputMaybe; + distinct?: InputMaybe>; + orderBy?: InputMaybe>; + skip?: InputMaybe; + take?: InputMaybe; + where?: InputMaybe; }; + export type QueryFindFirstAttestationArgs = { - cursor?: InputMaybe; - distinct?: InputMaybe>; - orderBy?: InputMaybe>; - skip?: InputMaybe; - take?: InputMaybe; - where?: InputMaybe; + cursor?: InputMaybe; + distinct?: InputMaybe>; + orderBy?: InputMaybe>; + skip?: InputMaybe; + take?: InputMaybe; + where?: InputMaybe; }; + export type QueryFindFirstAttestationOrThrowArgs = { - cursor?: InputMaybe; - distinct?: InputMaybe>; - orderBy?: InputMaybe>; - skip?: InputMaybe; - take?: InputMaybe; - where?: InputMaybe; + cursor?: InputMaybe; + distinct?: InputMaybe>; + orderBy?: InputMaybe>; + skip?: InputMaybe; + take?: InputMaybe; + where?: InputMaybe; }; + export type QueryFindFirstEnsNameArgs = { - cursor?: InputMaybe; - distinct?: InputMaybe>; - orderBy?: InputMaybe>; - skip?: InputMaybe; - take?: InputMaybe; - where?: InputMaybe; + cursor?: InputMaybe; + distinct?: InputMaybe>; + orderBy?: InputMaybe>; + skip?: InputMaybe; + take?: InputMaybe; + where?: InputMaybe; }; + export type QueryFindFirstEnsNameOrThrowArgs = { - cursor?: InputMaybe; - distinct?: InputMaybe>; - orderBy?: InputMaybe>; - skip?: InputMaybe; - take?: InputMaybe; - where?: InputMaybe; + cursor?: InputMaybe; + distinct?: InputMaybe>; + orderBy?: InputMaybe>; + skip?: InputMaybe; + take?: InputMaybe; + where?: InputMaybe; }; + export type QueryFindFirstOffchainRevocationArgs = { - cursor?: InputMaybe; - distinct?: InputMaybe>; - orderBy?: InputMaybe>; - skip?: InputMaybe; - take?: InputMaybe; - where?: InputMaybe; + cursor?: InputMaybe; + distinct?: InputMaybe>; + orderBy?: InputMaybe>; + skip?: InputMaybe; + take?: InputMaybe; + where?: InputMaybe; }; + export type QueryFindFirstOffchainRevocationOrThrowArgs = { - cursor?: InputMaybe; - distinct?: InputMaybe>; - orderBy?: InputMaybe>; - skip?: InputMaybe; - take?: InputMaybe; - where?: InputMaybe; + cursor?: InputMaybe; + distinct?: InputMaybe>; + orderBy?: InputMaybe>; + skip?: InputMaybe; + take?: InputMaybe; + where?: InputMaybe; }; + export type QueryFindFirstSchemaArgs = { - cursor?: InputMaybe; - distinct?: InputMaybe>; - orderBy?: InputMaybe>; - skip?: InputMaybe; - take?: InputMaybe; - where?: InputMaybe; + cursor?: InputMaybe; + distinct?: InputMaybe>; + orderBy?: InputMaybe>; + skip?: InputMaybe; + take?: InputMaybe; + where?: InputMaybe; }; + export type QueryFindFirstSchemaNameArgs = { - cursor?: InputMaybe; - distinct?: InputMaybe>; - orderBy?: InputMaybe>; - skip?: InputMaybe; - take?: InputMaybe; - where?: InputMaybe; + cursor?: InputMaybe; + distinct?: InputMaybe>; + orderBy?: InputMaybe>; + skip?: InputMaybe; + take?: InputMaybe; + where?: InputMaybe; }; + export type QueryFindFirstSchemaNameOrThrowArgs = { - cursor?: InputMaybe; - distinct?: InputMaybe>; - orderBy?: InputMaybe>; - skip?: InputMaybe; - take?: InputMaybe; - where?: InputMaybe; + cursor?: InputMaybe; + distinct?: InputMaybe>; + orderBy?: InputMaybe>; + skip?: InputMaybe; + take?: InputMaybe; + where?: InputMaybe; }; + export type QueryFindFirstSchemaOrThrowArgs = { - cursor?: InputMaybe; - distinct?: InputMaybe>; - orderBy?: InputMaybe>; - skip?: InputMaybe; - take?: InputMaybe; - where?: InputMaybe; + cursor?: InputMaybe; + distinct?: InputMaybe>; + orderBy?: InputMaybe>; + skip?: InputMaybe; + take?: InputMaybe; + where?: InputMaybe; }; + export type QueryFindFirstServiceStatArgs = { - cursor?: InputMaybe; - distinct?: InputMaybe>; - orderBy?: InputMaybe>; - skip?: InputMaybe; - take?: InputMaybe; - where?: InputMaybe; + cursor?: InputMaybe; + distinct?: InputMaybe>; + orderBy?: InputMaybe>; + skip?: InputMaybe; + take?: InputMaybe; + where?: InputMaybe; }; + export type QueryFindFirstServiceStatOrThrowArgs = { - cursor?: InputMaybe; - distinct?: InputMaybe>; - orderBy?: InputMaybe>; - skip?: InputMaybe; - take?: InputMaybe; - where?: InputMaybe; + cursor?: InputMaybe; + distinct?: InputMaybe>; + orderBy?: InputMaybe>; + skip?: InputMaybe; + take?: InputMaybe; + where?: InputMaybe; }; + export type QueryFindFirstTimestampArgs = { - cursor?: InputMaybe; - distinct?: InputMaybe>; - orderBy?: InputMaybe>; - skip?: InputMaybe; - take?: InputMaybe; - where?: InputMaybe; + cursor?: InputMaybe; + distinct?: InputMaybe>; + orderBy?: InputMaybe>; + skip?: InputMaybe; + take?: InputMaybe; + where?: InputMaybe; }; + export type QueryFindFirstTimestampOrThrowArgs = { - cursor?: InputMaybe; - distinct?: InputMaybe>; - orderBy?: InputMaybe>; - skip?: InputMaybe; - take?: InputMaybe; - where?: InputMaybe; + cursor?: InputMaybe; + distinct?: InputMaybe>; + orderBy?: InputMaybe>; + skip?: InputMaybe; + take?: InputMaybe; + where?: InputMaybe; }; + export type QueryGetAttestationArgs = { - where: AttestationWhereUniqueInput; + where: AttestationWhereUniqueInput; }; + export type QueryGetEnsNameArgs = { - where: EnsNameWhereUniqueInput; + where: EnsNameWhereUniqueInput; }; + export type QueryGetOffchainRevocationArgs = { - where: OffchainRevocationWhereUniqueInput; + where: OffchainRevocationWhereUniqueInput; }; + export type QueryGetSchemaArgs = { - where: SchemaWhereUniqueInput; + where: SchemaWhereUniqueInput; }; + export type QueryGetSchemaNameArgs = { - where: SchemaNameWhereUniqueInput; + where: SchemaNameWhereUniqueInput; }; + export type QueryGetServiceStatArgs = { - where: ServiceStatWhereUniqueInput; + where: ServiceStatWhereUniqueInput; }; + export type QueryGetTimestampArgs = { - where: TimestampWhereUniqueInput; + where: TimestampWhereUniqueInput; }; + export type QueryGroupByAttestationArgs = { - by: Array; - having?: InputMaybe; - orderBy?: InputMaybe>; - skip?: InputMaybe; - take?: InputMaybe; - where?: InputMaybe; + by: Array; + having?: InputMaybe; + orderBy?: InputMaybe>; + skip?: InputMaybe; + take?: InputMaybe; + where?: InputMaybe; }; + export type QueryGroupByEnsNameArgs = { - by: Array; - having?: InputMaybe; - orderBy?: InputMaybe>; - skip?: InputMaybe; - take?: InputMaybe; - where?: InputMaybe; + by: Array; + having?: InputMaybe; + orderBy?: InputMaybe>; + skip?: InputMaybe; + take?: InputMaybe; + where?: InputMaybe; }; + export type QueryGroupByOffchainRevocationArgs = { - by: Array; - having?: InputMaybe; - orderBy?: InputMaybe>; - skip?: InputMaybe; - take?: InputMaybe; - where?: InputMaybe; + by: Array; + having?: InputMaybe; + orderBy?: InputMaybe>; + skip?: InputMaybe; + take?: InputMaybe; + where?: InputMaybe; }; + export type QueryGroupBySchemaArgs = { - by: Array; - having?: InputMaybe; - orderBy?: InputMaybe>; - skip?: InputMaybe; - take?: InputMaybe; - where?: InputMaybe; + by: Array; + having?: InputMaybe; + orderBy?: InputMaybe>; + skip?: InputMaybe; + take?: InputMaybe; + where?: InputMaybe; }; + export type QueryGroupBySchemaNameArgs = { - by: Array; - having?: InputMaybe; - orderBy?: InputMaybe>; - skip?: InputMaybe; - take?: InputMaybe; - where?: InputMaybe; + by: Array; + having?: InputMaybe; + orderBy?: InputMaybe>; + skip?: InputMaybe; + take?: InputMaybe; + where?: InputMaybe; }; + export type QueryGroupByServiceStatArgs = { - by: Array; - having?: InputMaybe; - orderBy?: InputMaybe>; - skip?: InputMaybe; - take?: InputMaybe; - where?: InputMaybe; + by: Array; + having?: InputMaybe; + orderBy?: InputMaybe>; + skip?: InputMaybe; + take?: InputMaybe; + where?: InputMaybe; }; + export type QueryGroupByTimestampArgs = { - by: Array; - having?: InputMaybe; - orderBy?: InputMaybe>; - skip?: InputMaybe; - take?: InputMaybe; - where?: InputMaybe; + by: Array; + having?: InputMaybe; + orderBy?: InputMaybe>; + skip?: InputMaybe; + take?: InputMaybe; + where?: InputMaybe; }; + export type QueryOffchainRevocationArgs = { - where: OffchainRevocationWhereUniqueInput; + where: OffchainRevocationWhereUniqueInput; }; + export type QueryOffchainRevocationsArgs = { - cursor?: InputMaybe; - distinct?: InputMaybe>; - orderBy?: InputMaybe>; - skip?: InputMaybe; - take?: InputMaybe; - where?: InputMaybe; + cursor?: InputMaybe; + distinct?: InputMaybe>; + orderBy?: InputMaybe>; + skip?: InputMaybe; + take?: InputMaybe; + where?: InputMaybe; }; + export type QuerySchemaArgs = { - where: SchemaWhereUniqueInput; + where: SchemaWhereUniqueInput; }; + export type QuerySchemaNameArgs = { - where: SchemaNameWhereUniqueInput; + where: SchemaNameWhereUniqueInput; }; + export type QuerySchemaNamesArgs = { - cursor?: InputMaybe; - distinct?: InputMaybe>; - orderBy?: InputMaybe>; - skip?: InputMaybe; - take?: InputMaybe; - where?: InputMaybe; + cursor?: InputMaybe; + distinct?: InputMaybe>; + orderBy?: InputMaybe>; + skip?: InputMaybe; + take?: InputMaybe; + where?: InputMaybe; }; + export type QuerySchemataArgs = { - cursor?: InputMaybe; - distinct?: InputMaybe>; - orderBy?: InputMaybe>; - skip?: InputMaybe; - take?: InputMaybe; - where?: InputMaybe; + cursor?: InputMaybe; + distinct?: InputMaybe>; + orderBy?: InputMaybe>; + skip?: InputMaybe; + take?: InputMaybe; + where?: InputMaybe; }; + export type QueryServiceStatArgs = { - where: ServiceStatWhereUniqueInput; + where: ServiceStatWhereUniqueInput; }; + export type QueryServiceStatsArgs = { - cursor?: InputMaybe; - distinct?: InputMaybe>; - orderBy?: InputMaybe>; - skip?: InputMaybe; - take?: InputMaybe; - where?: InputMaybe; + cursor?: InputMaybe; + distinct?: InputMaybe>; + orderBy?: InputMaybe>; + skip?: InputMaybe; + take?: InputMaybe; + where?: InputMaybe; }; + export type QueryTimestampArgs = { - where: TimestampWhereUniqueInput; + where: TimestampWhereUniqueInput; }; + export type QueryTimestampsArgs = { - cursor?: InputMaybe; - distinct?: InputMaybe>; - orderBy?: InputMaybe>; - skip?: InputMaybe; - take?: InputMaybe; - where?: InputMaybe; + cursor?: InputMaybe; + distinct?: InputMaybe>; + orderBy?: InputMaybe>; + skip?: InputMaybe; + take?: InputMaybe; + where?: InputMaybe; }; export enum QueryMode { - Default = "default", - Insensitive = "insensitive", + Default = 'default', + Insensitive = 'insensitive' } export type Schema = { - __typename?: "Schema"; - _count?: Maybe; - attestations: Array; - creator: Scalars["String"]["output"]; - id: Scalars["String"]["output"]; - index: Scalars["String"]["output"]; - resolver: Scalars["String"]["output"]; - revocable: Scalars["Boolean"]["output"]; - schema: Scalars["String"]["output"]; - schemaNames: Array; - time: Scalars["Int"]["output"]; - txid: Scalars["String"]["output"]; + __typename?: 'Schema'; + _count?: Maybe; + attestations: Array; + creator: Scalars['String']['output']; + id: Scalars['String']['output']; + index: Scalars['String']['output']; + resolver: Scalars['String']['output']; + revocable: Scalars['Boolean']['output']; + schema: Scalars['String']['output']; + schemaNames: Array; + time: Scalars['Int']['output']; + txid: Scalars['String']['output']; }; + export type SchemaAttestationsArgs = { - cursor?: InputMaybe; - distinct?: InputMaybe>; - orderBy?: InputMaybe>; - skip?: InputMaybe; - take?: InputMaybe; - where?: InputMaybe; + cursor?: InputMaybe; + distinct?: InputMaybe>; + orderBy?: InputMaybe>; + skip?: InputMaybe; + take?: InputMaybe; + where?: InputMaybe; }; + export type SchemaSchemaNamesArgs = { - cursor?: InputMaybe; - distinct?: InputMaybe>; - orderBy?: InputMaybe>; - skip?: InputMaybe; - take?: InputMaybe; - where?: InputMaybe; + cursor?: InputMaybe; + distinct?: InputMaybe>; + orderBy?: InputMaybe>; + skip?: InputMaybe; + take?: InputMaybe; + where?: InputMaybe; }; export type SchemaAvgAggregate = { - __typename?: "SchemaAvgAggregate"; - time?: Maybe; + __typename?: 'SchemaAvgAggregate'; + time?: Maybe; }; export type SchemaAvgOrderByAggregateInput = { - time?: InputMaybe; + time?: InputMaybe; }; export type SchemaCount = { - __typename?: "SchemaCount"; - attestations: Scalars["Int"]["output"]; - schemaNames: Scalars["Int"]["output"]; + __typename?: 'SchemaCount'; + attestations: Scalars['Int']['output']; + schemaNames: Scalars['Int']['output']; }; export type SchemaCountAggregate = { - __typename?: "SchemaCountAggregate"; - _all: Scalars["Int"]["output"]; - creator: Scalars["Int"]["output"]; - id: Scalars["Int"]["output"]; - index: Scalars["Int"]["output"]; - resolver: Scalars["Int"]["output"]; - revocable: Scalars["Int"]["output"]; - schema: Scalars["Int"]["output"]; - time: Scalars["Int"]["output"]; - txid: Scalars["Int"]["output"]; + __typename?: 'SchemaCountAggregate'; + _all: Scalars['Int']['output']; + creator: Scalars['Int']['output']; + id: Scalars['Int']['output']; + index: Scalars['Int']['output']; + resolver: Scalars['Int']['output']; + revocable: Scalars['Int']['output']; + schema: Scalars['Int']['output']; + time: Scalars['Int']['output']; + txid: Scalars['Int']['output']; }; export type SchemaCountOrderByAggregateInput = { - creator?: InputMaybe; - id?: InputMaybe; - index?: InputMaybe; - resolver?: InputMaybe; - revocable?: InputMaybe; - schema?: InputMaybe; - time?: InputMaybe; - txid?: InputMaybe; + creator?: InputMaybe; + id?: InputMaybe; + index?: InputMaybe; + resolver?: InputMaybe; + revocable?: InputMaybe; + schema?: InputMaybe; + time?: InputMaybe; + txid?: InputMaybe; }; export type SchemaCreateInput = { - attestations?: InputMaybe; - creator: Scalars["String"]["input"]; - id: Scalars["String"]["input"]; - index: Scalars["String"]["input"]; - resolver: Scalars["String"]["input"]; - revocable: Scalars["Boolean"]["input"]; - schema: Scalars["String"]["input"]; - schemaNames?: InputMaybe; - time: Scalars["Int"]["input"]; - txid: Scalars["String"]["input"]; + attestations?: InputMaybe; + creator: Scalars['String']['input']; + id: Scalars['String']['input']; + index: Scalars['String']['input']; + resolver: Scalars['String']['input']; + revocable: Scalars['Boolean']['input']; + schema: Scalars['String']['input']; + schemaNames?: InputMaybe; + time: Scalars['Int']['input']; + txid: Scalars['String']['input']; }; export type SchemaCreateManyInput = { - creator: Scalars["String"]["input"]; - id: Scalars["String"]["input"]; - index: Scalars["String"]["input"]; - resolver: Scalars["String"]["input"]; - revocable: Scalars["Boolean"]["input"]; - schema: Scalars["String"]["input"]; - time: Scalars["Int"]["input"]; - txid: Scalars["String"]["input"]; + creator: Scalars['String']['input']; + id: Scalars['String']['input']; + index: Scalars['String']['input']; + resolver: Scalars['String']['input']; + revocable: Scalars['Boolean']['input']; + schema: Scalars['String']['input']; + time: Scalars['Int']['input']; + txid: Scalars['String']['input']; }; export type SchemaCreateNestedOneWithoutAttestationsInput = { - connect?: InputMaybe; - connectOrCreate?: InputMaybe; - create?: InputMaybe; + connect?: InputMaybe; + connectOrCreate?: InputMaybe; + create?: InputMaybe; }; export type SchemaCreateNestedOneWithoutSchemaNamesInput = { - connect?: InputMaybe; - connectOrCreate?: InputMaybe; - create?: InputMaybe; + connect?: InputMaybe; + connectOrCreate?: InputMaybe; + create?: InputMaybe; }; export type SchemaCreateOrConnectWithoutAttestationsInput = { - create: SchemaCreateWithoutAttestationsInput; - where: SchemaWhereUniqueInput; + create: SchemaCreateWithoutAttestationsInput; + where: SchemaWhereUniqueInput; }; export type SchemaCreateOrConnectWithoutSchemaNamesInput = { - create: SchemaCreateWithoutSchemaNamesInput; - where: SchemaWhereUniqueInput; + create: SchemaCreateWithoutSchemaNamesInput; + where: SchemaWhereUniqueInput; }; export type SchemaCreateWithoutAttestationsInput = { - creator: Scalars["String"]["input"]; - id: Scalars["String"]["input"]; - index: Scalars["String"]["input"]; - resolver: Scalars["String"]["input"]; - revocable: Scalars["Boolean"]["input"]; - schema: Scalars["String"]["input"]; - schemaNames?: InputMaybe; - time: Scalars["Int"]["input"]; - txid: Scalars["String"]["input"]; + creator: Scalars['String']['input']; + id: Scalars['String']['input']; + index: Scalars['String']['input']; + resolver: Scalars['String']['input']; + revocable: Scalars['Boolean']['input']; + schema: Scalars['String']['input']; + schemaNames?: InputMaybe; + time: Scalars['Int']['input']; + txid: Scalars['String']['input']; }; export type SchemaCreateWithoutSchemaNamesInput = { - attestations?: InputMaybe; - creator: Scalars["String"]["input"]; - id: Scalars["String"]["input"]; - index: Scalars["String"]["input"]; - resolver: Scalars["String"]["input"]; - revocable: Scalars["Boolean"]["input"]; - schema: Scalars["String"]["input"]; - time: Scalars["Int"]["input"]; - txid: Scalars["String"]["input"]; + attestations?: InputMaybe; + creator: Scalars['String']['input']; + id: Scalars['String']['input']; + index: Scalars['String']['input']; + resolver: Scalars['String']['input']; + revocable: Scalars['Boolean']['input']; + schema: Scalars['String']['input']; + time: Scalars['Int']['input']; + txid: Scalars['String']['input']; }; export type SchemaGroupBy = { - __typename?: "SchemaGroupBy"; - _avg?: Maybe; - _count?: Maybe; - _max?: Maybe; - _min?: Maybe; - _sum?: Maybe; - creator: Scalars["String"]["output"]; - id: Scalars["String"]["output"]; - index: Scalars["String"]["output"]; - resolver: Scalars["String"]["output"]; - revocable: Scalars["Boolean"]["output"]; - schema: Scalars["String"]["output"]; - time: Scalars["Int"]["output"]; - txid: Scalars["String"]["output"]; + __typename?: 'SchemaGroupBy'; + _avg?: Maybe; + _count?: Maybe; + _max?: Maybe; + _min?: Maybe; + _sum?: Maybe; + creator: Scalars['String']['output']; + id: Scalars['String']['output']; + index: Scalars['String']['output']; + resolver: Scalars['String']['output']; + revocable: Scalars['Boolean']['output']; + schema: Scalars['String']['output']; + time: Scalars['Int']['output']; + txid: Scalars['String']['output']; }; export type SchemaMaxAggregate = { - __typename?: "SchemaMaxAggregate"; - creator?: Maybe; - id?: Maybe; - index?: Maybe; - resolver?: Maybe; - revocable?: Maybe; - schema?: Maybe; - time?: Maybe; - txid?: Maybe; + __typename?: 'SchemaMaxAggregate'; + creator?: Maybe; + id?: Maybe; + index?: Maybe; + resolver?: Maybe; + revocable?: Maybe; + schema?: Maybe; + time?: Maybe; + txid?: Maybe; }; export type SchemaMaxOrderByAggregateInput = { - creator?: InputMaybe; - id?: InputMaybe; - index?: InputMaybe; - resolver?: InputMaybe; - revocable?: InputMaybe; - schema?: InputMaybe; - time?: InputMaybe; - txid?: InputMaybe; + creator?: InputMaybe; + id?: InputMaybe; + index?: InputMaybe; + resolver?: InputMaybe; + revocable?: InputMaybe; + schema?: InputMaybe; + time?: InputMaybe; + txid?: InputMaybe; }; export type SchemaMinAggregate = { - __typename?: "SchemaMinAggregate"; - creator?: Maybe; - id?: Maybe; - index?: Maybe; - resolver?: Maybe; - revocable?: Maybe; - schema?: Maybe; - time?: Maybe; - txid?: Maybe; + __typename?: 'SchemaMinAggregate'; + creator?: Maybe; + id?: Maybe; + index?: Maybe; + resolver?: Maybe; + revocable?: Maybe; + schema?: Maybe; + time?: Maybe; + txid?: Maybe; }; export type SchemaMinOrderByAggregateInput = { - creator?: InputMaybe; - id?: InputMaybe; - index?: InputMaybe; - resolver?: InputMaybe; - revocable?: InputMaybe; - schema?: InputMaybe; - time?: InputMaybe; - txid?: InputMaybe; + creator?: InputMaybe; + id?: InputMaybe; + index?: InputMaybe; + resolver?: InputMaybe; + revocable?: InputMaybe; + schema?: InputMaybe; + time?: InputMaybe; + txid?: InputMaybe; }; export type SchemaName = { - __typename?: "SchemaName"; - attesterAddress: Scalars["String"]["output"]; - id: Scalars["String"]["output"]; - isCreator: Scalars["Boolean"]["output"]; - name: Scalars["String"]["output"]; - schema: Schema; - schemaId: Scalars["String"]["output"]; - time: Scalars["Int"]["output"]; + __typename?: 'SchemaName'; + attesterAddress: Scalars['String']['output']; + id: Scalars['String']['output']; + isCreator: Scalars['Boolean']['output']; + name: Scalars['String']['output']; + schema: Schema; + schemaId: Scalars['String']['output']; + time: Scalars['Int']['output']; }; export type SchemaNameAvgAggregate = { - __typename?: "SchemaNameAvgAggregate"; - time?: Maybe; + __typename?: 'SchemaNameAvgAggregate'; + time?: Maybe; }; export type SchemaNameAvgOrderByAggregateInput = { - time?: InputMaybe; + time?: InputMaybe; }; export type SchemaNameCountAggregate = { - __typename?: "SchemaNameCountAggregate"; - _all: Scalars["Int"]["output"]; - attesterAddress: Scalars["Int"]["output"]; - id: Scalars["Int"]["output"]; - isCreator: Scalars["Int"]["output"]; - name: Scalars["Int"]["output"]; - schemaId: Scalars["Int"]["output"]; - time: Scalars["Int"]["output"]; + __typename?: 'SchemaNameCountAggregate'; + _all: Scalars['Int']['output']; + attesterAddress: Scalars['Int']['output']; + id: Scalars['Int']['output']; + isCreator: Scalars['Int']['output']; + name: Scalars['Int']['output']; + schemaId: Scalars['Int']['output']; + time: Scalars['Int']['output']; }; export type SchemaNameCountOrderByAggregateInput = { - attesterAddress?: InputMaybe; - id?: InputMaybe; - isCreator?: InputMaybe; - name?: InputMaybe; - schemaId?: InputMaybe; - time?: InputMaybe; + attesterAddress?: InputMaybe; + id?: InputMaybe; + isCreator?: InputMaybe; + name?: InputMaybe; + schemaId?: InputMaybe; + time?: InputMaybe; }; export type SchemaNameCreateInput = { - attesterAddress: Scalars["String"]["input"]; - id?: InputMaybe; - isCreator: Scalars["Boolean"]["input"]; - name: Scalars["String"]["input"]; - schema: SchemaCreateNestedOneWithoutSchemaNamesInput; - time: Scalars["Int"]["input"]; + attesterAddress: Scalars['String']['input']; + id?: InputMaybe; + isCreator: Scalars['Boolean']['input']; + name: Scalars['String']['input']; + schema: SchemaCreateNestedOneWithoutSchemaNamesInput; + time: Scalars['Int']['input']; }; export type SchemaNameCreateManyInput = { - attesterAddress: Scalars["String"]["input"]; - id?: InputMaybe; - isCreator: Scalars["Boolean"]["input"]; - name: Scalars["String"]["input"]; - schemaId: Scalars["String"]["input"]; - time: Scalars["Int"]["input"]; + attesterAddress: Scalars['String']['input']; + id?: InputMaybe; + isCreator: Scalars['Boolean']['input']; + name: Scalars['String']['input']; + schemaId: Scalars['String']['input']; + time: Scalars['Int']['input']; }; export type SchemaNameCreateManySchemaInput = { - attesterAddress: Scalars["String"]["input"]; - id?: InputMaybe; - isCreator: Scalars["Boolean"]["input"]; - name: Scalars["String"]["input"]; - time: Scalars["Int"]["input"]; + attesterAddress: Scalars['String']['input']; + id?: InputMaybe; + isCreator: Scalars['Boolean']['input']; + name: Scalars['String']['input']; + time: Scalars['Int']['input']; }; export type SchemaNameCreateManySchemaInputEnvelope = { - data: Array; - skipDuplicates?: InputMaybe; + data: Array; + skipDuplicates?: InputMaybe; }; export type SchemaNameCreateNestedManyWithoutSchemaInput = { - connect?: InputMaybe>; - connectOrCreate?: InputMaybe< - Array - >; - create?: InputMaybe>; - createMany?: InputMaybe; + connect?: InputMaybe>; + connectOrCreate?: InputMaybe>; + create?: InputMaybe>; + createMany?: InputMaybe; }; export type SchemaNameCreateOrConnectWithoutSchemaInput = { - create: SchemaNameCreateWithoutSchemaInput; - where: SchemaNameWhereUniqueInput; + create: SchemaNameCreateWithoutSchemaInput; + where: SchemaNameWhereUniqueInput; }; export type SchemaNameCreateWithoutSchemaInput = { - attesterAddress: Scalars["String"]["input"]; - id?: InputMaybe; - isCreator: Scalars["Boolean"]["input"]; - name: Scalars["String"]["input"]; - time: Scalars["Int"]["input"]; + attesterAddress: Scalars['String']['input']; + id?: InputMaybe; + isCreator: Scalars['Boolean']['input']; + name: Scalars['String']['input']; + time: Scalars['Int']['input']; }; export type SchemaNameGroupBy = { - __typename?: "SchemaNameGroupBy"; - _avg?: Maybe; - _count?: Maybe; - _max?: Maybe; - _min?: Maybe; - _sum?: Maybe; - attesterAddress: Scalars["String"]["output"]; - id: Scalars["String"]["output"]; - isCreator: Scalars["Boolean"]["output"]; - name: Scalars["String"]["output"]; - schemaId: Scalars["String"]["output"]; - time: Scalars["Int"]["output"]; + __typename?: 'SchemaNameGroupBy'; + _avg?: Maybe; + _count?: Maybe; + _max?: Maybe; + _min?: Maybe; + _sum?: Maybe; + attesterAddress: Scalars['String']['output']; + id: Scalars['String']['output']; + isCreator: Scalars['Boolean']['output']; + name: Scalars['String']['output']; + schemaId: Scalars['String']['output']; + time: Scalars['Int']['output']; }; export type SchemaNameListRelationFilter = { - every?: InputMaybe; - none?: InputMaybe; - some?: InputMaybe; + every?: InputMaybe; + none?: InputMaybe; + some?: InputMaybe; }; export type SchemaNameMaxAggregate = { - __typename?: "SchemaNameMaxAggregate"; - attesterAddress?: Maybe; - id?: Maybe; - isCreator?: Maybe; - name?: Maybe; - schemaId?: Maybe; - time?: Maybe; + __typename?: 'SchemaNameMaxAggregate'; + attesterAddress?: Maybe; + id?: Maybe; + isCreator?: Maybe; + name?: Maybe; + schemaId?: Maybe; + time?: Maybe; }; export type SchemaNameMaxOrderByAggregateInput = { - attesterAddress?: InputMaybe; - id?: InputMaybe; - isCreator?: InputMaybe; - name?: InputMaybe; - schemaId?: InputMaybe; - time?: InputMaybe; + attesterAddress?: InputMaybe; + id?: InputMaybe; + isCreator?: InputMaybe; + name?: InputMaybe; + schemaId?: InputMaybe; + time?: InputMaybe; }; export type SchemaNameMinAggregate = { - __typename?: "SchemaNameMinAggregate"; - attesterAddress?: Maybe; - id?: Maybe; - isCreator?: Maybe; - name?: Maybe; - schemaId?: Maybe; - time?: Maybe; + __typename?: 'SchemaNameMinAggregate'; + attesterAddress?: Maybe; + id?: Maybe; + isCreator?: Maybe; + name?: Maybe; + schemaId?: Maybe; + time?: Maybe; }; export type SchemaNameMinOrderByAggregateInput = { - attesterAddress?: InputMaybe; - id?: InputMaybe; - isCreator?: InputMaybe; - name?: InputMaybe; - schemaId?: InputMaybe; - time?: InputMaybe; + attesterAddress?: InputMaybe; + id?: InputMaybe; + isCreator?: InputMaybe; + name?: InputMaybe; + schemaId?: InputMaybe; + time?: InputMaybe; }; export type SchemaNameOrderByRelationAggregateInput = { - _count?: InputMaybe; + _count?: InputMaybe; }; export type SchemaNameOrderByWithAggregationInput = { - _avg?: InputMaybe; - _count?: InputMaybe; - _max?: InputMaybe; - _min?: InputMaybe; - _sum?: InputMaybe; - attesterAddress?: InputMaybe; - id?: InputMaybe; - isCreator?: InputMaybe; - name?: InputMaybe; - schemaId?: InputMaybe; - time?: InputMaybe; + _avg?: InputMaybe; + _count?: InputMaybe; + _max?: InputMaybe; + _min?: InputMaybe; + _sum?: InputMaybe; + attesterAddress?: InputMaybe; + id?: InputMaybe; + isCreator?: InputMaybe; + name?: InputMaybe; + schemaId?: InputMaybe; + time?: InputMaybe; }; export type SchemaNameOrderByWithRelationInput = { - attesterAddress?: InputMaybe; - id?: InputMaybe; - isCreator?: InputMaybe; - name?: InputMaybe; - schema?: InputMaybe; - schemaId?: InputMaybe; - time?: InputMaybe; + attesterAddress?: InputMaybe; + id?: InputMaybe; + isCreator?: InputMaybe; + name?: InputMaybe; + schema?: InputMaybe; + schemaId?: InputMaybe; + time?: InputMaybe; }; export enum SchemaNameScalarFieldEnum { - AttesterAddress = "attesterAddress", - Id = "id", - IsCreator = "isCreator", - Name = "name", - SchemaId = "schemaId", - Time = "time", + AttesterAddress = 'attesterAddress', + Id = 'id', + IsCreator = 'isCreator', + Name = 'name', + SchemaId = 'schemaId', + Time = 'time' } export type SchemaNameScalarWhereInput = { - AND?: InputMaybe>; - NOT?: InputMaybe>; - OR?: InputMaybe>; - attesterAddress?: InputMaybe; - id?: InputMaybe; - isCreator?: InputMaybe; - name?: InputMaybe; - schemaId?: InputMaybe; - time?: InputMaybe; + AND?: InputMaybe>; + NOT?: InputMaybe>; + OR?: InputMaybe>; + attesterAddress?: InputMaybe; + id?: InputMaybe; + isCreator?: InputMaybe; + name?: InputMaybe; + schemaId?: InputMaybe; + time?: InputMaybe; }; export type SchemaNameScalarWhereWithAggregatesInput = { - AND?: InputMaybe>; - NOT?: InputMaybe>; - OR?: InputMaybe>; - attesterAddress?: InputMaybe; - id?: InputMaybe; - isCreator?: InputMaybe; - name?: InputMaybe; - schemaId?: InputMaybe; - time?: InputMaybe; + AND?: InputMaybe>; + NOT?: InputMaybe>; + OR?: InputMaybe>; + attesterAddress?: InputMaybe; + id?: InputMaybe; + isCreator?: InputMaybe; + name?: InputMaybe; + schemaId?: InputMaybe; + time?: InputMaybe; }; export type SchemaNameSumAggregate = { - __typename?: "SchemaNameSumAggregate"; - time?: Maybe; + __typename?: 'SchemaNameSumAggregate'; + time?: Maybe; }; export type SchemaNameSumOrderByAggregateInput = { - time?: InputMaybe; + time?: InputMaybe; }; export type SchemaNameUpdateInput = { - attesterAddress?: InputMaybe; - id?: InputMaybe; - isCreator?: InputMaybe; - name?: InputMaybe; - schema?: InputMaybe; - time?: InputMaybe; + attesterAddress?: InputMaybe; + id?: InputMaybe; + isCreator?: InputMaybe; + name?: InputMaybe; + schema?: InputMaybe; + time?: InputMaybe; }; export type SchemaNameUpdateManyMutationInput = { - attesterAddress?: InputMaybe; - id?: InputMaybe; - isCreator?: InputMaybe; - name?: InputMaybe; - time?: InputMaybe; + attesterAddress?: InputMaybe; + id?: InputMaybe; + isCreator?: InputMaybe; + name?: InputMaybe; + time?: InputMaybe; }; export type SchemaNameUpdateManyWithWhereWithoutSchemaInput = { - data: SchemaNameUpdateManyMutationInput; - where: SchemaNameScalarWhereInput; + data: SchemaNameUpdateManyMutationInput; + where: SchemaNameScalarWhereInput; }; export type SchemaNameUpdateManyWithoutSchemaNestedInput = { - connect?: InputMaybe>; - connectOrCreate?: InputMaybe< - Array - >; - create?: InputMaybe>; - createMany?: InputMaybe; - delete?: InputMaybe>; - deleteMany?: InputMaybe>; - disconnect?: InputMaybe>; - set?: InputMaybe>; - update?: InputMaybe>; - updateMany?: InputMaybe< - Array - >; - upsert?: InputMaybe>; + connect?: InputMaybe>; + connectOrCreate?: InputMaybe>; + create?: InputMaybe>; + createMany?: InputMaybe; + delete?: InputMaybe>; + deleteMany?: InputMaybe>; + disconnect?: InputMaybe>; + set?: InputMaybe>; + update?: InputMaybe>; + updateMany?: InputMaybe>; + upsert?: InputMaybe>; }; export type SchemaNameUpdateWithWhereUniqueWithoutSchemaInput = { - data: SchemaNameUpdateWithoutSchemaInput; - where: SchemaNameWhereUniqueInput; + data: SchemaNameUpdateWithoutSchemaInput; + where: SchemaNameWhereUniqueInput; }; export type SchemaNameUpdateWithoutSchemaInput = { - attesterAddress?: InputMaybe; - id?: InputMaybe; - isCreator?: InputMaybe; - name?: InputMaybe; - time?: InputMaybe; + attesterAddress?: InputMaybe; + id?: InputMaybe; + isCreator?: InputMaybe; + name?: InputMaybe; + time?: InputMaybe; }; export type SchemaNameUpsertWithWhereUniqueWithoutSchemaInput = { - create: SchemaNameCreateWithoutSchemaInput; - update: SchemaNameUpdateWithoutSchemaInput; - where: SchemaNameWhereUniqueInput; + create: SchemaNameCreateWithoutSchemaInput; + update: SchemaNameUpdateWithoutSchemaInput; + where: SchemaNameWhereUniqueInput; }; export type SchemaNameWhereInput = { - AND?: InputMaybe>; - NOT?: InputMaybe>; - OR?: InputMaybe>; - attesterAddress?: InputMaybe; - id?: InputMaybe; - isCreator?: InputMaybe; - name?: InputMaybe; - schema?: InputMaybe; - schemaId?: InputMaybe; - time?: InputMaybe; + AND?: InputMaybe>; + NOT?: InputMaybe>; + OR?: InputMaybe>; + attesterAddress?: InputMaybe; + id?: InputMaybe; + isCreator?: InputMaybe; + name?: InputMaybe; + schema?: InputMaybe; + schemaId?: InputMaybe; + time?: InputMaybe; }; export type SchemaNameWhereUniqueInput = { - id?: InputMaybe; + id?: InputMaybe; }; export type SchemaOrderByWithAggregationInput = { - _avg?: InputMaybe; - _count?: InputMaybe; - _max?: InputMaybe; - _min?: InputMaybe; - _sum?: InputMaybe; - creator?: InputMaybe; - id?: InputMaybe; - index?: InputMaybe; - resolver?: InputMaybe; - revocable?: InputMaybe; - schema?: InputMaybe; - time?: InputMaybe; - txid?: InputMaybe; + _avg?: InputMaybe; + _count?: InputMaybe; + _max?: InputMaybe; + _min?: InputMaybe; + _sum?: InputMaybe; + creator?: InputMaybe; + id?: InputMaybe; + index?: InputMaybe; + resolver?: InputMaybe; + revocable?: InputMaybe; + schema?: InputMaybe; + time?: InputMaybe; + txid?: InputMaybe; }; export type SchemaOrderByWithRelationInput = { - attestations?: InputMaybe; - creator?: InputMaybe; - id?: InputMaybe; - index?: InputMaybe; - resolver?: InputMaybe; - revocable?: InputMaybe; - schema?: InputMaybe; - schemaNames?: InputMaybe; - time?: InputMaybe; - txid?: InputMaybe; + attestations?: InputMaybe; + creator?: InputMaybe; + id?: InputMaybe; + index?: InputMaybe; + resolver?: InputMaybe; + revocable?: InputMaybe; + schema?: InputMaybe; + schemaNames?: InputMaybe; + time?: InputMaybe; + txid?: InputMaybe; }; export type SchemaRelationFilter = { - is?: InputMaybe; - isNot?: InputMaybe; + is?: InputMaybe; + isNot?: InputMaybe; }; export enum SchemaScalarFieldEnum { - Creator = "creator", - Id = "id", - Index = "index", - Resolver = "resolver", - Revocable = "revocable", - Schema = "schema", - Time = "time", - Txid = "txid", + Creator = 'creator', + Id = 'id', + Index = 'index', + Resolver = 'resolver', + Revocable = 'revocable', + Schema = 'schema', + Time = 'time', + Txid = 'txid' } export type SchemaScalarWhereWithAggregatesInput = { - AND?: InputMaybe>; - NOT?: InputMaybe>; - OR?: InputMaybe>; - creator?: InputMaybe; - id?: InputMaybe; - index?: InputMaybe; - resolver?: InputMaybe; - revocable?: InputMaybe; - schema?: InputMaybe; - time?: InputMaybe; - txid?: InputMaybe; + AND?: InputMaybe>; + NOT?: InputMaybe>; + OR?: InputMaybe>; + creator?: InputMaybe; + id?: InputMaybe; + index?: InputMaybe; + resolver?: InputMaybe; + revocable?: InputMaybe; + schema?: InputMaybe; + time?: InputMaybe; + txid?: InputMaybe; }; export type SchemaSumAggregate = { - __typename?: "SchemaSumAggregate"; - time?: Maybe; + __typename?: 'SchemaSumAggregate'; + time?: Maybe; }; export type SchemaSumOrderByAggregateInput = { - time?: InputMaybe; + time?: InputMaybe; }; export type SchemaUpdateInput = { - attestations?: InputMaybe; - creator?: InputMaybe; - id?: InputMaybe; - index?: InputMaybe; - resolver?: InputMaybe; - revocable?: InputMaybe; - schema?: InputMaybe; - schemaNames?: InputMaybe; - time?: InputMaybe; - txid?: InputMaybe; + attestations?: InputMaybe; + creator?: InputMaybe; + id?: InputMaybe; + index?: InputMaybe; + resolver?: InputMaybe; + revocable?: InputMaybe; + schema?: InputMaybe; + schemaNames?: InputMaybe; + time?: InputMaybe; + txid?: InputMaybe; }; export type SchemaUpdateManyMutationInput = { - creator?: InputMaybe; - id?: InputMaybe; - index?: InputMaybe; - resolver?: InputMaybe; - revocable?: InputMaybe; - schema?: InputMaybe; - time?: InputMaybe; - txid?: InputMaybe; + creator?: InputMaybe; + id?: InputMaybe; + index?: InputMaybe; + resolver?: InputMaybe; + revocable?: InputMaybe; + schema?: InputMaybe; + time?: InputMaybe; + txid?: InputMaybe; }; export type SchemaUpdateOneRequiredWithoutAttestationsNestedInput = { - connect?: InputMaybe; - connectOrCreate?: InputMaybe; - create?: InputMaybe; - update?: InputMaybe; - upsert?: InputMaybe; + connect?: InputMaybe; + connectOrCreate?: InputMaybe; + create?: InputMaybe; + update?: InputMaybe; + upsert?: InputMaybe; }; export type SchemaUpdateOneRequiredWithoutSchemaNamesNestedInput = { - connect?: InputMaybe; - connectOrCreate?: InputMaybe; - create?: InputMaybe; - update?: InputMaybe; - upsert?: InputMaybe; + connect?: InputMaybe; + connectOrCreate?: InputMaybe; + create?: InputMaybe; + update?: InputMaybe; + upsert?: InputMaybe; }; export type SchemaUpdateWithoutAttestationsInput = { - creator?: InputMaybe; - id?: InputMaybe; - index?: InputMaybe; - resolver?: InputMaybe; - revocable?: InputMaybe; - schema?: InputMaybe; - schemaNames?: InputMaybe; - time?: InputMaybe; - txid?: InputMaybe; + creator?: InputMaybe; + id?: InputMaybe; + index?: InputMaybe; + resolver?: InputMaybe; + revocable?: InputMaybe; + schema?: InputMaybe; + schemaNames?: InputMaybe; + time?: InputMaybe; + txid?: InputMaybe; }; export type SchemaUpdateWithoutSchemaNamesInput = { - attestations?: InputMaybe; - creator?: InputMaybe; - id?: InputMaybe; - index?: InputMaybe; - resolver?: InputMaybe; - revocable?: InputMaybe; - schema?: InputMaybe; - time?: InputMaybe; - txid?: InputMaybe; + attestations?: InputMaybe; + creator?: InputMaybe; + id?: InputMaybe; + index?: InputMaybe; + resolver?: InputMaybe; + revocable?: InputMaybe; + schema?: InputMaybe; + time?: InputMaybe; + txid?: InputMaybe; }; export type SchemaUpsertWithoutAttestationsInput = { - create: SchemaCreateWithoutAttestationsInput; - update: SchemaUpdateWithoutAttestationsInput; + create: SchemaCreateWithoutAttestationsInput; + update: SchemaUpdateWithoutAttestationsInput; }; export type SchemaUpsertWithoutSchemaNamesInput = { - create: SchemaCreateWithoutSchemaNamesInput; - update: SchemaUpdateWithoutSchemaNamesInput; + create: SchemaCreateWithoutSchemaNamesInput; + update: SchemaUpdateWithoutSchemaNamesInput; }; export type SchemaWhereInput = { - AND?: InputMaybe>; - NOT?: InputMaybe>; - OR?: InputMaybe>; - attestations?: InputMaybe; - creator?: InputMaybe; - id?: InputMaybe; - index?: InputMaybe; - resolver?: InputMaybe; - revocable?: InputMaybe; - schema?: InputMaybe; - schemaNames?: InputMaybe; - time?: InputMaybe; - txid?: InputMaybe; + AND?: InputMaybe>; + NOT?: InputMaybe>; + OR?: InputMaybe>; + attestations?: InputMaybe; + creator?: InputMaybe; + id?: InputMaybe; + index?: InputMaybe; + resolver?: InputMaybe; + revocable?: InputMaybe; + schema?: InputMaybe; + schemaNames?: InputMaybe; + time?: InputMaybe; + txid?: InputMaybe; }; export type SchemaWhereUniqueInput = { - id?: InputMaybe; + id?: InputMaybe; }; export type ServiceStat = { - __typename?: "ServiceStat"; - name: Scalars["String"]["output"]; - value: Scalars["String"]["output"]; + __typename?: 'ServiceStat'; + name: Scalars['String']['output']; + value: Scalars['String']['output']; }; export type ServiceStatCountAggregate = { - __typename?: "ServiceStatCountAggregate"; - _all: Scalars["Int"]["output"]; - name: Scalars["Int"]["output"]; - value: Scalars["Int"]["output"]; + __typename?: 'ServiceStatCountAggregate'; + _all: Scalars['Int']['output']; + name: Scalars['Int']['output']; + value: Scalars['Int']['output']; }; export type ServiceStatCountOrderByAggregateInput = { - name?: InputMaybe; - value?: InputMaybe; + name?: InputMaybe; + value?: InputMaybe; }; export type ServiceStatCreateInput = { - name: Scalars["String"]["input"]; - value: Scalars["String"]["input"]; + name: Scalars['String']['input']; + value: Scalars['String']['input']; }; export type ServiceStatCreateManyInput = { - name: Scalars["String"]["input"]; - value: Scalars["String"]["input"]; + name: Scalars['String']['input']; + value: Scalars['String']['input']; }; export type ServiceStatGroupBy = { - __typename?: "ServiceStatGroupBy"; - _count?: Maybe; - _max?: Maybe; - _min?: Maybe; - name: Scalars["String"]["output"]; - value: Scalars["String"]["output"]; + __typename?: 'ServiceStatGroupBy'; + _count?: Maybe; + _max?: Maybe; + _min?: Maybe; + name: Scalars['String']['output']; + value: Scalars['String']['output']; }; export type ServiceStatMaxAggregate = { - __typename?: "ServiceStatMaxAggregate"; - name?: Maybe; - value?: Maybe; + __typename?: 'ServiceStatMaxAggregate'; + name?: Maybe; + value?: Maybe; }; export type ServiceStatMaxOrderByAggregateInput = { - name?: InputMaybe; - value?: InputMaybe; + name?: InputMaybe; + value?: InputMaybe; }; export type ServiceStatMinAggregate = { - __typename?: "ServiceStatMinAggregate"; - name?: Maybe; - value?: Maybe; + __typename?: 'ServiceStatMinAggregate'; + name?: Maybe; + value?: Maybe; }; export type ServiceStatMinOrderByAggregateInput = { - name?: InputMaybe; - value?: InputMaybe; + name?: InputMaybe; + value?: InputMaybe; }; export type ServiceStatOrderByWithAggregationInput = { - _count?: InputMaybe; - _max?: InputMaybe; - _min?: InputMaybe; - name?: InputMaybe; - value?: InputMaybe; + _count?: InputMaybe; + _max?: InputMaybe; + _min?: InputMaybe; + name?: InputMaybe; + value?: InputMaybe; }; export type ServiceStatOrderByWithRelationInput = { - name?: InputMaybe; - value?: InputMaybe; + name?: InputMaybe; + value?: InputMaybe; }; export enum ServiceStatScalarFieldEnum { - Name = "name", - Value = "value", + Name = 'name', + Value = 'value' } export type ServiceStatScalarWhereWithAggregatesInput = { - AND?: InputMaybe>; - NOT?: InputMaybe>; - OR?: InputMaybe>; - name?: InputMaybe; - value?: InputMaybe; + AND?: InputMaybe>; + NOT?: InputMaybe>; + OR?: InputMaybe>; + name?: InputMaybe; + value?: InputMaybe; }; export type ServiceStatUpdateInput = { - name?: InputMaybe; - value?: InputMaybe; + name?: InputMaybe; + value?: InputMaybe; }; export type ServiceStatUpdateManyMutationInput = { - name?: InputMaybe; - value?: InputMaybe; + name?: InputMaybe; + value?: InputMaybe; }; export type ServiceStatWhereInput = { - AND?: InputMaybe>; - NOT?: InputMaybe>; - OR?: InputMaybe>; - name?: InputMaybe; - value?: InputMaybe; + AND?: InputMaybe>; + NOT?: InputMaybe>; + OR?: InputMaybe>; + name?: InputMaybe; + value?: InputMaybe; }; export type ServiceStatWhereUniqueInput = { - name?: InputMaybe; + name?: InputMaybe; }; export enum SortOrder { - Asc = "asc", - Desc = "desc", + Asc = 'asc', + Desc = 'desc' } export type StringFieldUpdateOperationsInput = { - set?: InputMaybe; + set?: InputMaybe; }; export type StringFilter = { - contains?: InputMaybe; - endsWith?: InputMaybe; - equals?: InputMaybe; - gt?: InputMaybe; - gte?: InputMaybe; - in?: InputMaybe>; - lt?: InputMaybe; - lte?: InputMaybe; - mode?: InputMaybe; - not?: InputMaybe; - notIn?: InputMaybe>; - startsWith?: InputMaybe; + contains?: InputMaybe; + endsWith?: InputMaybe; + equals?: InputMaybe; + gt?: InputMaybe; + gte?: InputMaybe; + in?: InputMaybe>; + lt?: InputMaybe; + lte?: InputMaybe; + mode?: InputMaybe; + not?: InputMaybe; + notIn?: InputMaybe>; + startsWith?: InputMaybe; }; export type StringWithAggregatesFilter = { - _count?: InputMaybe; - _max?: InputMaybe; - _min?: InputMaybe; - contains?: InputMaybe; - endsWith?: InputMaybe; - equals?: InputMaybe; - gt?: InputMaybe; - gte?: InputMaybe; - in?: InputMaybe>; - lt?: InputMaybe; - lte?: InputMaybe; - mode?: InputMaybe; - not?: InputMaybe; - notIn?: InputMaybe>; - startsWith?: InputMaybe; + _count?: InputMaybe; + _max?: InputMaybe; + _min?: InputMaybe; + contains?: InputMaybe; + endsWith?: InputMaybe; + equals?: InputMaybe; + gt?: InputMaybe; + gte?: InputMaybe; + in?: InputMaybe>; + lt?: InputMaybe; + lte?: InputMaybe; + mode?: InputMaybe; + not?: InputMaybe; + notIn?: InputMaybe>; + startsWith?: InputMaybe; }; export type Timestamp = { - __typename?: "Timestamp"; - from: Scalars["String"]["output"]; - id: Scalars["String"]["output"]; - timestamp: Scalars["Int"]["output"]; - tree: Scalars["String"]["output"]; - txid: Scalars["String"]["output"]; + __typename?: 'Timestamp'; + from: Scalars['String']['output']; + id: Scalars['String']['output']; + timestamp: Scalars['Int']['output']; + tree: Scalars['String']['output']; + txid: Scalars['String']['output']; }; export type TimestampAvgAggregate = { - __typename?: "TimestampAvgAggregate"; - timestamp?: Maybe; + __typename?: 'TimestampAvgAggregate'; + timestamp?: Maybe; }; export type TimestampAvgOrderByAggregateInput = { - timestamp?: InputMaybe; + timestamp?: InputMaybe; }; export type TimestampCountAggregate = { - __typename?: "TimestampCountAggregate"; - _all: Scalars["Int"]["output"]; - from: Scalars["Int"]["output"]; - id: Scalars["Int"]["output"]; - timestamp: Scalars["Int"]["output"]; - tree: Scalars["Int"]["output"]; - txid: Scalars["Int"]["output"]; + __typename?: 'TimestampCountAggregate'; + _all: Scalars['Int']['output']; + from: Scalars['Int']['output']; + id: Scalars['Int']['output']; + timestamp: Scalars['Int']['output']; + tree: Scalars['Int']['output']; + txid: Scalars['Int']['output']; }; export type TimestampCountOrderByAggregateInput = { - from?: InputMaybe; - id?: InputMaybe; - timestamp?: InputMaybe; - tree?: InputMaybe; - txid?: InputMaybe; + from?: InputMaybe; + id?: InputMaybe; + timestamp?: InputMaybe; + tree?: InputMaybe; + txid?: InputMaybe; }; export type TimestampCreateInput = { - from: Scalars["String"]["input"]; - id: Scalars["String"]["input"]; - timestamp: Scalars["Int"]["input"]; - tree?: InputMaybe; - txid: Scalars["String"]["input"]; + from: Scalars['String']['input']; + id: Scalars['String']['input']; + timestamp: Scalars['Int']['input']; + tree?: InputMaybe; + txid: Scalars['String']['input']; }; export type TimestampCreateManyInput = { - from: Scalars["String"]["input"]; - id: Scalars["String"]["input"]; - timestamp: Scalars["Int"]["input"]; - tree?: InputMaybe; - txid: Scalars["String"]["input"]; + from: Scalars['String']['input']; + id: Scalars['String']['input']; + timestamp: Scalars['Int']['input']; + tree?: InputMaybe; + txid: Scalars['String']['input']; }; export type TimestampGroupBy = { - __typename?: "TimestampGroupBy"; - _avg?: Maybe; - _count?: Maybe; - _max?: Maybe; - _min?: Maybe; - _sum?: Maybe; - from: Scalars["String"]["output"]; - id: Scalars["String"]["output"]; - timestamp: Scalars["Int"]["output"]; - tree: Scalars["String"]["output"]; - txid: Scalars["String"]["output"]; + __typename?: 'TimestampGroupBy'; + _avg?: Maybe; + _count?: Maybe; + _max?: Maybe; + _min?: Maybe; + _sum?: Maybe; + from: Scalars['String']['output']; + id: Scalars['String']['output']; + timestamp: Scalars['Int']['output']; + tree: Scalars['String']['output']; + txid: Scalars['String']['output']; }; export type TimestampMaxAggregate = { - __typename?: "TimestampMaxAggregate"; - from?: Maybe; - id?: Maybe; - timestamp?: Maybe; - tree?: Maybe; - txid?: Maybe; + __typename?: 'TimestampMaxAggregate'; + from?: Maybe; + id?: Maybe; + timestamp?: Maybe; + tree?: Maybe; + txid?: Maybe; }; export type TimestampMaxOrderByAggregateInput = { - from?: InputMaybe; - id?: InputMaybe; - timestamp?: InputMaybe; - tree?: InputMaybe; - txid?: InputMaybe; + from?: InputMaybe; + id?: InputMaybe; + timestamp?: InputMaybe; + tree?: InputMaybe; + txid?: InputMaybe; }; export type TimestampMinAggregate = { - __typename?: "TimestampMinAggregate"; - from?: Maybe; - id?: Maybe; - timestamp?: Maybe; - tree?: Maybe; - txid?: Maybe; + __typename?: 'TimestampMinAggregate'; + from?: Maybe; + id?: Maybe; + timestamp?: Maybe; + tree?: Maybe; + txid?: Maybe; }; export type TimestampMinOrderByAggregateInput = { - from?: InputMaybe; - id?: InputMaybe; - timestamp?: InputMaybe; - tree?: InputMaybe; - txid?: InputMaybe; + from?: InputMaybe; + id?: InputMaybe; + timestamp?: InputMaybe; + tree?: InputMaybe; + txid?: InputMaybe; }; export type TimestampOrderByWithAggregationInput = { - _avg?: InputMaybe; - _count?: InputMaybe; - _max?: InputMaybe; - _min?: InputMaybe; - _sum?: InputMaybe; - from?: InputMaybe; - id?: InputMaybe; - timestamp?: InputMaybe; - tree?: InputMaybe; - txid?: InputMaybe; + _avg?: InputMaybe; + _count?: InputMaybe; + _max?: InputMaybe; + _min?: InputMaybe; + _sum?: InputMaybe; + from?: InputMaybe; + id?: InputMaybe; + timestamp?: InputMaybe; + tree?: InputMaybe; + txid?: InputMaybe; }; export type TimestampOrderByWithRelationInput = { - from?: InputMaybe; - id?: InputMaybe; - timestamp?: InputMaybe; - tree?: InputMaybe; - txid?: InputMaybe; + from?: InputMaybe; + id?: InputMaybe; + timestamp?: InputMaybe; + tree?: InputMaybe; + txid?: InputMaybe; }; export enum TimestampScalarFieldEnum { - From = "from", - Id = "id", - Timestamp = "timestamp", - Tree = "tree", - Txid = "txid", + From = 'from', + Id = 'id', + Timestamp = 'timestamp', + Tree = 'tree', + Txid = 'txid' } export type TimestampScalarWhereWithAggregatesInput = { - AND?: InputMaybe>; - NOT?: InputMaybe>; - OR?: InputMaybe>; - from?: InputMaybe; - id?: InputMaybe; - timestamp?: InputMaybe; - tree?: InputMaybe; - txid?: InputMaybe; + AND?: InputMaybe>; + NOT?: InputMaybe>; + OR?: InputMaybe>; + from?: InputMaybe; + id?: InputMaybe; + timestamp?: InputMaybe; + tree?: InputMaybe; + txid?: InputMaybe; }; export type TimestampSumAggregate = { - __typename?: "TimestampSumAggregate"; - timestamp?: Maybe; + __typename?: 'TimestampSumAggregate'; + timestamp?: Maybe; }; export type TimestampSumOrderByAggregateInput = { - timestamp?: InputMaybe; + timestamp?: InputMaybe; }; export type TimestampUpdateInput = { - from?: InputMaybe; - id?: InputMaybe; - timestamp?: InputMaybe; - tree?: InputMaybe; - txid?: InputMaybe; + from?: InputMaybe; + id?: InputMaybe; + timestamp?: InputMaybe; + tree?: InputMaybe; + txid?: InputMaybe; }; export type TimestampUpdateManyMutationInput = { - from?: InputMaybe; - id?: InputMaybe; - timestamp?: InputMaybe; - tree?: InputMaybe; - txid?: InputMaybe; + from?: InputMaybe; + id?: InputMaybe; + timestamp?: InputMaybe; + tree?: InputMaybe; + txid?: InputMaybe; }; export type TimestampWhereInput = { - AND?: InputMaybe>; - NOT?: InputMaybe>; - OR?: InputMaybe>; - from?: InputMaybe; - id?: InputMaybe; - timestamp?: InputMaybe; - tree?: InputMaybe; - txid?: InputMaybe; + AND?: InputMaybe>; + NOT?: InputMaybe>; + OR?: InputMaybe>; + from?: InputMaybe; + id?: InputMaybe; + timestamp?: InputMaybe; + tree?: InputMaybe; + txid?: InputMaybe; }; export type TimestampWhereUniqueInput = { - id?: InputMaybe; -}; - -export type AllAttestationsByQueryVariables = Exact<{ - where?: InputMaybe; -}>; - -export type AllAttestationsByQuery = { - __typename?: "Query"; - attestations: Array<{ - __typename?: "Attestation"; - id: string; - txid: string; - recipient: string; - time: number; - isOffchain: boolean; - schemaId: string; - attester: string; - schema: { - __typename?: "Schema"; - index: string; - schemaNames: Array<{ __typename?: "SchemaName"; name: string }>; - }; - }>; + id?: InputMaybe; }; export class TypedDocumentString - extends String - implements DocumentTypeDecoration + extends String + implements DocumentTypeDecoration { - __apiType?: DocumentTypeDecoration["__apiType"]; - - constructor( - private value: string, - public __meta__?: Record, - ) { - super(value); - } - - toString(): string & DocumentTypeDecoration { - return this.value; - } -} + __apiType?: DocumentTypeDecoration['__apiType']; + + constructor(private value: string, public __meta__?: Record) { + super(value); + } -export const AllAttestationsByDocument = new TypedDocumentString(` - query allAttestationsBy($where: AttestationWhereInput) { - attestations(where: $where) { - id - txid - recipient - schema { - index - schemaNames { - name - } - } - time - isOffchain - schemaId - attester + toString(): string & DocumentTypeDecoration { + return this.value; } } - `) as unknown as TypedDocumentString< - AllAttestationsByQuery, - AllAttestationsByQueryVariables ->; diff --git a/packages/gql/src/graphql/eas/index.ts b/packages/gql/src/graphql/eas/index.ts index 0ea4a91c..f5159916 100644 --- a/packages/gql/src/graphql/eas/index.ts +++ b/packages/gql/src/graphql/eas/index.ts @@ -1,2 +1,2 @@ export * from "./fragment-masking"; -export * from "./gql"; +export * from "./gql"; \ No newline at end of file diff --git a/packages/gql/src/graphql/ens/fragment-masking.ts b/packages/gql/src/graphql/ens/fragment-masking.ts new file mode 100644 index 00000000..f347f50e --- /dev/null +++ b/packages/gql/src/graphql/ens/fragment-masking.ts @@ -0,0 +1,83 @@ +/* eslint-disable */ +import { ResultOf, DocumentTypeDecoration } from '@graphql-typed-document-node/core'; +import { Incremental, TypedDocumentString } from './graphql'; + + +export type FragmentType> = TDocumentType extends DocumentTypeDecoration< + infer TType, + any +> + ? [TType] extends [{ ' $fragmentName'?: infer TKey }] + ? TKey extends string + ? { ' $fragmentRefs'?: { [key in TKey]: TType } } + : never + : never + : never; + +// return non-nullable if `fragmentType` is non-nullable +export function useFragment( + _documentNode: DocumentTypeDecoration, + fragmentType: FragmentType> +): TType; +// return nullable if `fragmentType` is undefined +export function useFragment( + _documentNode: DocumentTypeDecoration, + fragmentType: FragmentType> | undefined +): TType | undefined; +// return nullable if `fragmentType` is nullable +export function useFragment( + _documentNode: DocumentTypeDecoration, + fragmentType: FragmentType> | null +): TType | null; +// return nullable if `fragmentType` is nullable or undefined +export function useFragment( + _documentNode: DocumentTypeDecoration, + fragmentType: FragmentType> | null | undefined +): TType | null | undefined; +// return array of non-nullable if `fragmentType` is array of non-nullable +export function useFragment( + _documentNode: DocumentTypeDecoration, + fragmentType: Array>> +): Array; +// return array of nullable if `fragmentType` is array of nullable +export function useFragment( + _documentNode: DocumentTypeDecoration, + fragmentType: Array>> | null | undefined +): Array | null | undefined; +// return readonly array of non-nullable if `fragmentType` is array of non-nullable +export function useFragment( + _documentNode: DocumentTypeDecoration, + fragmentType: ReadonlyArray>> +): ReadonlyArray; +// return readonly array of nullable if `fragmentType` is array of nullable +export function useFragment( + _documentNode: DocumentTypeDecoration, + fragmentType: ReadonlyArray>> | null | undefined +): ReadonlyArray | null | undefined; +export function useFragment( + _documentNode: DocumentTypeDecoration, + fragmentType: FragmentType> | Array>> | ReadonlyArray>> | null | undefined +): TType | Array | ReadonlyArray | null | undefined { + return fragmentType as any; +} + + +export function makeFragmentData< + F extends DocumentTypeDecoration, + FT extends ResultOf +>(data: FT, _fragment: F): FragmentType { + return data as FragmentType; +} +export function isFragmentReady( + queryNode: TypedDocumentString, + fragmentNode: TypedDocumentString, + data: FragmentType, any>> | null | undefined +): data is FragmentType { + const deferredFields = queryNode.__meta__?.deferredFields as Record; + const fragName = fragmentNode.__meta__?.fragmentName as string | undefined; + + if (!deferredFields || !fragName) return true; + + const fields = deferredFields[fragName] ?? []; + return fields.length > 0 && fields.every(field => data && field in data); +} diff --git a/packages/gql/src/graphql/ens/gql.ts b/packages/gql/src/graphql/ens/gql.ts new file mode 100644 index 00000000..8f8a1cf4 --- /dev/null +++ b/packages/gql/src/graphql/ens/gql.ts @@ -0,0 +1,9 @@ +/* eslint-disable */ +import * as types from './graphql'; + + + +const documents = {} +export function gql(source: string) { + return (documents as any)[source] ?? {}; +} diff --git a/packages/gql/src/graphql/ens/graphql.ts b/packages/gql/src/graphql/ens/graphql.ts new file mode 100644 index 00000000..c5b9f9f8 --- /dev/null +++ b/packages/gql/src/graphql/ens/graphql.ts @@ -0,0 +1,4683 @@ +/* eslint-disable */ +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 MakeEmpty = { [_ in K]?: never }; +export type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }; +/** All built-in and custom scalars, mapped to their actual values */ +export type Scalars = { + ID: { input: string; output: string; } + String: { input: string; output: string; } + Boolean: { input: boolean; output: boolean; } + Int: { input: number; output: number; } + Float: { input: number; output: number; } + BigDecimal: { input: any; output: any; } + BigInt: { input: any; output: any; } + Bytes: { input: any; output: any; } + /** + * 8 bytes signed integer + * + */ + Int8: { input: any; output: any; } + /** + * A string representation of microseconds UNIX timestamp (16 digits) + * + */ + Timestamp: { input: any; output: any; } +}; + +export type AbiChanged = ResolverEvent & { + __typename?: 'AbiChanged'; + /** The block number at which the event was emitted */ + blockNumber: Scalars['Int']['output']; + /** The content type of the ABI change */ + contentType: Scalars['BigInt']['output']; + /** Concatenation of block number and log ID */ + id: Scalars['ID']['output']; + /** Used to derive relationships to Resolvers */ + resolver: Resolver; + /** The transaction hash of the transaction in which the event was emitted */ + transactionID: Scalars['Bytes']['output']; +}; + +export type AbiChanged_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + and?: InputMaybe>>; + blockNumber?: InputMaybe; + blockNumber_gt?: InputMaybe; + blockNumber_gte?: InputMaybe; + blockNumber_in?: InputMaybe>; + blockNumber_lt?: InputMaybe; + blockNumber_lte?: InputMaybe; + blockNumber_not?: InputMaybe; + blockNumber_not_in?: InputMaybe>; + contentType?: InputMaybe; + contentType_gt?: InputMaybe; + contentType_gte?: InputMaybe; + contentType_in?: InputMaybe>; + contentType_lt?: InputMaybe; + contentType_lte?: InputMaybe; + contentType_not?: InputMaybe; + contentType_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + or?: InputMaybe>>; + resolver?: InputMaybe; + resolver_?: InputMaybe; + resolver_contains?: InputMaybe; + resolver_contains_nocase?: InputMaybe; + resolver_ends_with?: InputMaybe; + resolver_ends_with_nocase?: InputMaybe; + resolver_gt?: InputMaybe; + resolver_gte?: InputMaybe; + resolver_in?: InputMaybe>; + resolver_lt?: InputMaybe; + resolver_lte?: InputMaybe; + resolver_not?: InputMaybe; + resolver_not_contains?: InputMaybe; + resolver_not_contains_nocase?: InputMaybe; + resolver_not_ends_with?: InputMaybe; + resolver_not_ends_with_nocase?: InputMaybe; + resolver_not_in?: InputMaybe>; + resolver_not_starts_with?: InputMaybe; + resolver_not_starts_with_nocase?: InputMaybe; + resolver_starts_with?: InputMaybe; + resolver_starts_with_nocase?: InputMaybe; + transactionID?: InputMaybe; + transactionID_contains?: InputMaybe; + transactionID_gt?: InputMaybe; + transactionID_gte?: InputMaybe; + transactionID_in?: InputMaybe>; + transactionID_lt?: InputMaybe; + transactionID_lte?: InputMaybe; + transactionID_not?: InputMaybe; + transactionID_not_contains?: InputMaybe; + transactionID_not_in?: InputMaybe>; +}; + +export enum AbiChanged_OrderBy { + BlockNumber = 'blockNumber', + ContentType = 'contentType', + Id = 'id', + Resolver = 'resolver', + ResolverAddress = 'resolver__address', + ResolverContentHash = 'resolver__contentHash', + ResolverId = 'resolver__id', + TransactionId = 'transactionID' +} + +export type Account = { + __typename?: 'Account'; + /** The domains owned by the account */ + domains: Array; + /** The unique identifier for the account */ + id: Scalars['ID']['output']; + /** The Registrations made by the account */ + registrations?: Maybe>; + /** The WrappedDomains owned by the account */ + wrappedDomains?: Maybe>; +}; + + +export type AccountDomainsArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + + +export type AccountRegistrationsArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + + +export type AccountWrappedDomainsArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +export type Account_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + and?: InputMaybe>>; + domains_?: InputMaybe; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + or?: InputMaybe>>; + registrations_?: InputMaybe; + wrappedDomains_?: InputMaybe; +}; + +export enum Account_OrderBy { + Domains = 'domains', + Id = 'id', + Registrations = 'registrations', + WrappedDomains = 'wrappedDomains' +} + +export type AddrChanged = ResolverEvent & { + __typename?: 'AddrChanged'; + /** The new address associated with the resolver */ + addr: Account; + /** The block number at which this event occurred */ + blockNumber: Scalars['Int']['output']; + /** Unique identifier for this event */ + id: Scalars['ID']['output']; + /** The resolver associated with this event */ + resolver: Resolver; + /** The transaction ID for the transaction in which this event occurred */ + transactionID: Scalars['Bytes']['output']; +}; + +export type AddrChanged_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + addr?: InputMaybe; + addr_?: InputMaybe; + addr_contains?: InputMaybe; + addr_contains_nocase?: InputMaybe; + addr_ends_with?: InputMaybe; + addr_ends_with_nocase?: InputMaybe; + addr_gt?: InputMaybe; + addr_gte?: InputMaybe; + addr_in?: InputMaybe>; + addr_lt?: InputMaybe; + addr_lte?: InputMaybe; + addr_not?: InputMaybe; + addr_not_contains?: InputMaybe; + addr_not_contains_nocase?: InputMaybe; + addr_not_ends_with?: InputMaybe; + addr_not_ends_with_nocase?: InputMaybe; + addr_not_in?: InputMaybe>; + addr_not_starts_with?: InputMaybe; + addr_not_starts_with_nocase?: InputMaybe; + addr_starts_with?: InputMaybe; + addr_starts_with_nocase?: InputMaybe; + and?: InputMaybe>>; + blockNumber?: InputMaybe; + blockNumber_gt?: InputMaybe; + blockNumber_gte?: InputMaybe; + blockNumber_in?: InputMaybe>; + blockNumber_lt?: InputMaybe; + blockNumber_lte?: InputMaybe; + blockNumber_not?: InputMaybe; + blockNumber_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + or?: InputMaybe>>; + resolver?: InputMaybe; + resolver_?: InputMaybe; + resolver_contains?: InputMaybe; + resolver_contains_nocase?: InputMaybe; + resolver_ends_with?: InputMaybe; + resolver_ends_with_nocase?: InputMaybe; + resolver_gt?: InputMaybe; + resolver_gte?: InputMaybe; + resolver_in?: InputMaybe>; + resolver_lt?: InputMaybe; + resolver_lte?: InputMaybe; + resolver_not?: InputMaybe; + resolver_not_contains?: InputMaybe; + resolver_not_contains_nocase?: InputMaybe; + resolver_not_ends_with?: InputMaybe; + resolver_not_ends_with_nocase?: InputMaybe; + resolver_not_in?: InputMaybe>; + resolver_not_starts_with?: InputMaybe; + resolver_not_starts_with_nocase?: InputMaybe; + resolver_starts_with?: InputMaybe; + resolver_starts_with_nocase?: InputMaybe; + transactionID?: InputMaybe; + transactionID_contains?: InputMaybe; + transactionID_gt?: InputMaybe; + transactionID_gte?: InputMaybe; + transactionID_in?: InputMaybe>; + transactionID_lt?: InputMaybe; + transactionID_lte?: InputMaybe; + transactionID_not?: InputMaybe; + transactionID_not_contains?: InputMaybe; + transactionID_not_in?: InputMaybe>; +}; + +export enum AddrChanged_OrderBy { + Addr = 'addr', + AddrId = 'addr__id', + BlockNumber = 'blockNumber', + Id = 'id', + Resolver = 'resolver', + ResolverAddress = 'resolver__address', + ResolverContentHash = 'resolver__contentHash', + ResolverId = 'resolver__id', + TransactionId = 'transactionID' +} + +export enum Aggregation_Interval { + Day = 'day', + Hour = 'hour' +} + +export type AuthorisationChanged = ResolverEvent & { + __typename?: 'AuthorisationChanged'; + /** The block number at which the event occurred */ + blockNumber: Scalars['Int']['output']; + /** Unique identifier for this event */ + id: Scalars['ID']['output']; + /** Whether the authorisation was added or removed */ + isAuthorized: Scalars['Boolean']['output']; + /** The owner of the authorisation */ + owner: Scalars['Bytes']['output']; + /** The resolver associated with this event */ + resolver: Resolver; + /** The target of the authorisation */ + target: Scalars['Bytes']['output']; + /** The transaction hash associated with the event */ + transactionID: Scalars['Bytes']['output']; +}; + +export type AuthorisationChanged_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + and?: InputMaybe>>; + blockNumber?: InputMaybe; + blockNumber_gt?: InputMaybe; + blockNumber_gte?: InputMaybe; + blockNumber_in?: InputMaybe>; + blockNumber_lt?: InputMaybe; + blockNumber_lte?: InputMaybe; + blockNumber_not?: InputMaybe; + blockNumber_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + isAuthorized?: InputMaybe; + isAuthorized_in?: InputMaybe>; + isAuthorized_not?: InputMaybe; + isAuthorized_not_in?: InputMaybe>; + or?: InputMaybe>>; + owner?: InputMaybe; + owner_contains?: InputMaybe; + owner_gt?: InputMaybe; + owner_gte?: InputMaybe; + owner_in?: InputMaybe>; + owner_lt?: InputMaybe; + owner_lte?: InputMaybe; + owner_not?: InputMaybe; + owner_not_contains?: InputMaybe; + owner_not_in?: InputMaybe>; + resolver?: InputMaybe; + resolver_?: InputMaybe; + resolver_contains?: InputMaybe; + resolver_contains_nocase?: InputMaybe; + resolver_ends_with?: InputMaybe; + resolver_ends_with_nocase?: InputMaybe; + resolver_gt?: InputMaybe; + resolver_gte?: InputMaybe; + resolver_in?: InputMaybe>; + resolver_lt?: InputMaybe; + resolver_lte?: InputMaybe; + resolver_not?: InputMaybe; + resolver_not_contains?: InputMaybe; + resolver_not_contains_nocase?: InputMaybe; + resolver_not_ends_with?: InputMaybe; + resolver_not_ends_with_nocase?: InputMaybe; + resolver_not_in?: InputMaybe>; + resolver_not_starts_with?: InputMaybe; + resolver_not_starts_with_nocase?: InputMaybe; + resolver_starts_with?: InputMaybe; + resolver_starts_with_nocase?: InputMaybe; + target?: InputMaybe; + target_contains?: InputMaybe; + target_gt?: InputMaybe; + target_gte?: InputMaybe; + target_in?: InputMaybe>; + target_lt?: InputMaybe; + target_lte?: InputMaybe; + target_not?: InputMaybe; + target_not_contains?: InputMaybe; + target_not_in?: InputMaybe>; + transactionID?: InputMaybe; + transactionID_contains?: InputMaybe; + transactionID_gt?: InputMaybe; + transactionID_gte?: InputMaybe; + transactionID_in?: InputMaybe>; + transactionID_lt?: InputMaybe; + transactionID_lte?: InputMaybe; + transactionID_not?: InputMaybe; + transactionID_not_contains?: InputMaybe; + transactionID_not_in?: InputMaybe>; +}; + +export enum AuthorisationChanged_OrderBy { + BlockNumber = 'blockNumber', + Id = 'id', + IsAuthorized = 'isAuthorized', + Owner = 'owner', + Resolver = 'resolver', + ResolverAddress = 'resolver__address', + ResolverContentHash = 'resolver__contentHash', + ResolverId = 'resolver__id', + Target = 'target', + TransactionId = 'transactionID' +} + +export type BlockChangedFilter = { + number_gte: Scalars['Int']['input']; +}; + +export type Block_Height = { + hash?: InputMaybe; + number?: InputMaybe; + number_gte?: InputMaybe; +}; + +export type ContenthashChanged = ResolverEvent & { + __typename?: 'ContenthashChanged'; + /** The block number where the event occurred */ + blockNumber: Scalars['Int']['output']; + /** The new content hash for the domain */ + hash: Scalars['Bytes']['output']; + /** Concatenation of block number and log ID */ + id: Scalars['ID']['output']; + /** Used to derive relationships to Resolvers */ + resolver: Resolver; + /** The ID of the transaction where the event occurred */ + transactionID: Scalars['Bytes']['output']; +}; + +export type ContenthashChanged_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + and?: InputMaybe>>; + blockNumber?: InputMaybe; + blockNumber_gt?: InputMaybe; + blockNumber_gte?: InputMaybe; + blockNumber_in?: InputMaybe>; + blockNumber_lt?: InputMaybe; + blockNumber_lte?: InputMaybe; + blockNumber_not?: InputMaybe; + blockNumber_not_in?: InputMaybe>; + hash?: InputMaybe; + hash_contains?: InputMaybe; + hash_gt?: InputMaybe; + hash_gte?: InputMaybe; + hash_in?: InputMaybe>; + hash_lt?: InputMaybe; + hash_lte?: InputMaybe; + hash_not?: InputMaybe; + hash_not_contains?: InputMaybe; + hash_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + or?: InputMaybe>>; + resolver?: InputMaybe; + resolver_?: InputMaybe; + resolver_contains?: InputMaybe; + resolver_contains_nocase?: InputMaybe; + resolver_ends_with?: InputMaybe; + resolver_ends_with_nocase?: InputMaybe; + resolver_gt?: InputMaybe; + resolver_gte?: InputMaybe; + resolver_in?: InputMaybe>; + resolver_lt?: InputMaybe; + resolver_lte?: InputMaybe; + resolver_not?: InputMaybe; + resolver_not_contains?: InputMaybe; + resolver_not_contains_nocase?: InputMaybe; + resolver_not_ends_with?: InputMaybe; + resolver_not_ends_with_nocase?: InputMaybe; + resolver_not_in?: InputMaybe>; + resolver_not_starts_with?: InputMaybe; + resolver_not_starts_with_nocase?: InputMaybe; + resolver_starts_with?: InputMaybe; + resolver_starts_with_nocase?: InputMaybe; + transactionID?: InputMaybe; + transactionID_contains?: InputMaybe; + transactionID_gt?: InputMaybe; + transactionID_gte?: InputMaybe; + transactionID_in?: InputMaybe>; + transactionID_lt?: InputMaybe; + transactionID_lte?: InputMaybe; + transactionID_not?: InputMaybe; + transactionID_not_contains?: InputMaybe; + transactionID_not_in?: InputMaybe>; +}; + +export enum ContenthashChanged_OrderBy { + BlockNumber = 'blockNumber', + Hash = 'hash', + Id = 'id', + Resolver = 'resolver', + ResolverAddress = 'resolver__address', + ResolverContentHash = 'resolver__contentHash', + ResolverId = 'resolver__id', + TransactionId = 'transactionID' +} + +export type Domain = { + __typename?: 'Domain'; + /** The time when the domain was created */ + createdAt: Scalars['BigInt']['output']; + /** The events associated with the domain */ + events: Array; + /** The expiry date for the domain, from either the registration, or the wrapped domain if PCC is burned */ + expiryDate?: Maybe; + /** The namehash of the name */ + id: Scalars['ID']['output']; + /** Indicates whether the domain has been migrated to a new registrar */ + isMigrated: Scalars['Boolean']['output']; + /** The human readable label name (imported from CSV), if known */ + labelName?: Maybe; + /** keccak256(labelName) */ + labelhash?: Maybe; + /** The human readable name, if known. Unknown portions replaced with hash in square brackets (eg, foo.[1234].eth) */ + name?: Maybe; + /** The account that owns the domain */ + owner: Account; + /** The namehash (id) of the parent name */ + parent?: Maybe; + /** The account that owns the ERC721 NFT for the domain */ + registrant?: Maybe; + /** The registration associated with the domain */ + registration?: Maybe; + /** Address logged from current resolver, if any */ + resolvedAddress?: Maybe; + /** The resolver that controls the domain's settings */ + resolver?: Maybe; + /** The number of subdomains */ + subdomainCount: Scalars['Int']['output']; + /** Can count domains from length of array */ + subdomains: Array; + /** The time-to-live (TTL) value of the domain's records */ + ttl?: Maybe; + /** The wrapped domain associated with the domain */ + wrappedDomain?: Maybe; + /** The account that owns the wrapped domain */ + wrappedOwner?: Maybe; +}; + + +export type DomainEventsArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + + +export type DomainSubdomainsArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +export type DomainEvent = { + /** The block number at which the event occurred */ + blockNumber: Scalars['Int']['output']; + /** The domain name associated with the event */ + domain: Domain; + /** The unique identifier of the event */ + id: Scalars['ID']['output']; + /** The transaction hash of the transaction that triggered the event */ + transactionID: Scalars['Bytes']['output']; +}; + +export type DomainEvent_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + and?: InputMaybe>>; + blockNumber?: InputMaybe; + blockNumber_gt?: InputMaybe; + blockNumber_gte?: InputMaybe; + blockNumber_in?: InputMaybe>; + blockNumber_lt?: InputMaybe; + blockNumber_lte?: InputMaybe; + blockNumber_not?: InputMaybe; + blockNumber_not_in?: InputMaybe>; + domain?: InputMaybe; + domain_?: InputMaybe; + domain_contains?: InputMaybe; + domain_contains_nocase?: InputMaybe; + domain_ends_with?: InputMaybe; + domain_ends_with_nocase?: InputMaybe; + domain_gt?: InputMaybe; + domain_gte?: InputMaybe; + domain_in?: InputMaybe>; + domain_lt?: InputMaybe; + domain_lte?: InputMaybe; + domain_not?: InputMaybe; + domain_not_contains?: InputMaybe; + domain_not_contains_nocase?: InputMaybe; + domain_not_ends_with?: InputMaybe; + domain_not_ends_with_nocase?: InputMaybe; + domain_not_in?: InputMaybe>; + domain_not_starts_with?: InputMaybe; + domain_not_starts_with_nocase?: InputMaybe; + domain_starts_with?: InputMaybe; + domain_starts_with_nocase?: InputMaybe; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + or?: InputMaybe>>; + transactionID?: InputMaybe; + transactionID_contains?: InputMaybe; + transactionID_gt?: InputMaybe; + transactionID_gte?: InputMaybe; + transactionID_in?: InputMaybe>; + transactionID_lt?: InputMaybe; + transactionID_lte?: InputMaybe; + transactionID_not?: InputMaybe; + transactionID_not_contains?: InputMaybe; + transactionID_not_in?: InputMaybe>; +}; + +export enum DomainEvent_OrderBy { + BlockNumber = 'blockNumber', + Domain = 'domain', + DomainCreatedAt = 'domain__createdAt', + DomainExpiryDate = 'domain__expiryDate', + DomainId = 'domain__id', + DomainIsMigrated = 'domain__isMigrated', + DomainLabelName = 'domain__labelName', + DomainLabelhash = 'domain__labelhash', + DomainName = 'domain__name', + DomainSubdomainCount = 'domain__subdomainCount', + DomainTtl = 'domain__ttl', + Id = 'id', + TransactionId = 'transactionID' +} + +export type Domain_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + and?: InputMaybe>>; + createdAt?: InputMaybe; + createdAt_gt?: InputMaybe; + createdAt_gte?: InputMaybe; + createdAt_in?: InputMaybe>; + createdAt_lt?: InputMaybe; + createdAt_lte?: InputMaybe; + createdAt_not?: InputMaybe; + createdAt_not_in?: InputMaybe>; + events_?: InputMaybe; + expiryDate?: InputMaybe; + expiryDate_gt?: InputMaybe; + expiryDate_gte?: InputMaybe; + expiryDate_in?: InputMaybe>; + expiryDate_lt?: InputMaybe; + expiryDate_lte?: InputMaybe; + expiryDate_not?: InputMaybe; + expiryDate_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + isMigrated?: InputMaybe; + isMigrated_in?: InputMaybe>; + isMigrated_not?: InputMaybe; + isMigrated_not_in?: InputMaybe>; + labelName?: InputMaybe; + labelName_contains?: InputMaybe; + labelName_contains_nocase?: InputMaybe; + labelName_ends_with?: InputMaybe; + labelName_ends_with_nocase?: InputMaybe; + labelName_gt?: InputMaybe; + labelName_gte?: InputMaybe; + labelName_in?: InputMaybe>; + labelName_lt?: InputMaybe; + labelName_lte?: InputMaybe; + labelName_not?: InputMaybe; + labelName_not_contains?: InputMaybe; + labelName_not_contains_nocase?: InputMaybe; + labelName_not_ends_with?: InputMaybe; + labelName_not_ends_with_nocase?: InputMaybe; + labelName_not_in?: InputMaybe>; + labelName_not_starts_with?: InputMaybe; + labelName_not_starts_with_nocase?: InputMaybe; + labelName_starts_with?: InputMaybe; + labelName_starts_with_nocase?: InputMaybe; + labelhash?: InputMaybe; + labelhash_contains?: InputMaybe; + labelhash_gt?: InputMaybe; + labelhash_gte?: InputMaybe; + labelhash_in?: InputMaybe>; + labelhash_lt?: InputMaybe; + labelhash_lte?: InputMaybe; + labelhash_not?: InputMaybe; + labelhash_not_contains?: InputMaybe; + labelhash_not_in?: InputMaybe>; + name?: InputMaybe; + name_contains?: InputMaybe; + name_contains_nocase?: InputMaybe; + name_ends_with?: InputMaybe; + name_ends_with_nocase?: InputMaybe; + name_gt?: InputMaybe; + name_gte?: InputMaybe; + name_in?: InputMaybe>; + name_lt?: InputMaybe; + name_lte?: InputMaybe; + name_not?: InputMaybe; + name_not_contains?: InputMaybe; + name_not_contains_nocase?: InputMaybe; + name_not_ends_with?: InputMaybe; + name_not_ends_with_nocase?: InputMaybe; + name_not_in?: InputMaybe>; + name_not_starts_with?: InputMaybe; + name_not_starts_with_nocase?: InputMaybe; + name_starts_with?: InputMaybe; + name_starts_with_nocase?: InputMaybe; + or?: InputMaybe>>; + owner?: InputMaybe; + owner_?: InputMaybe; + owner_contains?: InputMaybe; + owner_contains_nocase?: InputMaybe; + owner_ends_with?: InputMaybe; + owner_ends_with_nocase?: InputMaybe; + owner_gt?: InputMaybe; + owner_gte?: InputMaybe; + owner_in?: InputMaybe>; + owner_lt?: InputMaybe; + owner_lte?: InputMaybe; + owner_not?: InputMaybe; + owner_not_contains?: InputMaybe; + owner_not_contains_nocase?: InputMaybe; + owner_not_ends_with?: InputMaybe; + owner_not_ends_with_nocase?: InputMaybe; + owner_not_in?: InputMaybe>; + owner_not_starts_with?: InputMaybe; + owner_not_starts_with_nocase?: InputMaybe; + owner_starts_with?: InputMaybe; + owner_starts_with_nocase?: InputMaybe; + parent?: InputMaybe; + parent_?: InputMaybe; + parent_contains?: InputMaybe; + parent_contains_nocase?: InputMaybe; + parent_ends_with?: InputMaybe; + parent_ends_with_nocase?: InputMaybe; + parent_gt?: InputMaybe; + parent_gte?: InputMaybe; + parent_in?: InputMaybe>; + parent_lt?: InputMaybe; + parent_lte?: InputMaybe; + parent_not?: InputMaybe; + parent_not_contains?: InputMaybe; + parent_not_contains_nocase?: InputMaybe; + parent_not_ends_with?: InputMaybe; + parent_not_ends_with_nocase?: InputMaybe; + parent_not_in?: InputMaybe>; + parent_not_starts_with?: InputMaybe; + parent_not_starts_with_nocase?: InputMaybe; + parent_starts_with?: InputMaybe; + parent_starts_with_nocase?: InputMaybe; + registrant?: InputMaybe; + registrant_?: InputMaybe; + registrant_contains?: InputMaybe; + registrant_contains_nocase?: InputMaybe; + registrant_ends_with?: InputMaybe; + registrant_ends_with_nocase?: InputMaybe; + registrant_gt?: InputMaybe; + registrant_gte?: InputMaybe; + registrant_in?: InputMaybe>; + registrant_lt?: InputMaybe; + registrant_lte?: InputMaybe; + registrant_not?: InputMaybe; + registrant_not_contains?: InputMaybe; + registrant_not_contains_nocase?: InputMaybe; + registrant_not_ends_with?: InputMaybe; + registrant_not_ends_with_nocase?: InputMaybe; + registrant_not_in?: InputMaybe>; + registrant_not_starts_with?: InputMaybe; + registrant_not_starts_with_nocase?: InputMaybe; + registrant_starts_with?: InputMaybe; + registrant_starts_with_nocase?: InputMaybe; + registration_?: InputMaybe; + resolvedAddress?: InputMaybe; + resolvedAddress_?: InputMaybe; + resolvedAddress_contains?: InputMaybe; + resolvedAddress_contains_nocase?: InputMaybe; + resolvedAddress_ends_with?: InputMaybe; + resolvedAddress_ends_with_nocase?: InputMaybe; + resolvedAddress_gt?: InputMaybe; + resolvedAddress_gte?: InputMaybe; + resolvedAddress_in?: InputMaybe>; + resolvedAddress_lt?: InputMaybe; + resolvedAddress_lte?: InputMaybe; + resolvedAddress_not?: InputMaybe; + resolvedAddress_not_contains?: InputMaybe; + resolvedAddress_not_contains_nocase?: InputMaybe; + resolvedAddress_not_ends_with?: InputMaybe; + resolvedAddress_not_ends_with_nocase?: InputMaybe; + resolvedAddress_not_in?: InputMaybe>; + resolvedAddress_not_starts_with?: InputMaybe; + resolvedAddress_not_starts_with_nocase?: InputMaybe; + resolvedAddress_starts_with?: InputMaybe; + resolvedAddress_starts_with_nocase?: InputMaybe; + resolver?: InputMaybe; + resolver_?: InputMaybe; + resolver_contains?: InputMaybe; + resolver_contains_nocase?: InputMaybe; + resolver_ends_with?: InputMaybe; + resolver_ends_with_nocase?: InputMaybe; + resolver_gt?: InputMaybe; + resolver_gte?: InputMaybe; + resolver_in?: InputMaybe>; + resolver_lt?: InputMaybe; + resolver_lte?: InputMaybe; + resolver_not?: InputMaybe; + resolver_not_contains?: InputMaybe; + resolver_not_contains_nocase?: InputMaybe; + resolver_not_ends_with?: InputMaybe; + resolver_not_ends_with_nocase?: InputMaybe; + resolver_not_in?: InputMaybe>; + resolver_not_starts_with?: InputMaybe; + resolver_not_starts_with_nocase?: InputMaybe; + resolver_starts_with?: InputMaybe; + resolver_starts_with_nocase?: InputMaybe; + subdomainCount?: InputMaybe; + subdomainCount_gt?: InputMaybe; + subdomainCount_gte?: InputMaybe; + subdomainCount_in?: InputMaybe>; + subdomainCount_lt?: InputMaybe; + subdomainCount_lte?: InputMaybe; + subdomainCount_not?: InputMaybe; + subdomainCount_not_in?: InputMaybe>; + subdomains_?: InputMaybe; + ttl?: InputMaybe; + ttl_gt?: InputMaybe; + ttl_gte?: InputMaybe; + ttl_in?: InputMaybe>; + ttl_lt?: InputMaybe; + ttl_lte?: InputMaybe; + ttl_not?: InputMaybe; + ttl_not_in?: InputMaybe>; + wrappedDomain_?: InputMaybe; + wrappedOwner?: InputMaybe; + wrappedOwner_?: InputMaybe; + wrappedOwner_contains?: InputMaybe; + wrappedOwner_contains_nocase?: InputMaybe; + wrappedOwner_ends_with?: InputMaybe; + wrappedOwner_ends_with_nocase?: InputMaybe; + wrappedOwner_gt?: InputMaybe; + wrappedOwner_gte?: InputMaybe; + wrappedOwner_in?: InputMaybe>; + wrappedOwner_lt?: InputMaybe; + wrappedOwner_lte?: InputMaybe; + wrappedOwner_not?: InputMaybe; + wrappedOwner_not_contains?: InputMaybe; + wrappedOwner_not_contains_nocase?: InputMaybe; + wrappedOwner_not_ends_with?: InputMaybe; + wrappedOwner_not_ends_with_nocase?: InputMaybe; + wrappedOwner_not_in?: InputMaybe>; + wrappedOwner_not_starts_with?: InputMaybe; + wrappedOwner_not_starts_with_nocase?: InputMaybe; + wrappedOwner_starts_with?: InputMaybe; + wrappedOwner_starts_with_nocase?: InputMaybe; +}; + +export enum Domain_OrderBy { + CreatedAt = 'createdAt', + Events = 'events', + ExpiryDate = 'expiryDate', + Id = 'id', + IsMigrated = 'isMigrated', + LabelName = 'labelName', + Labelhash = 'labelhash', + Name = 'name', + Owner = 'owner', + OwnerId = 'owner__id', + Parent = 'parent', + ParentCreatedAt = 'parent__createdAt', + ParentExpiryDate = 'parent__expiryDate', + ParentId = 'parent__id', + ParentIsMigrated = 'parent__isMigrated', + ParentLabelName = 'parent__labelName', + ParentLabelhash = 'parent__labelhash', + ParentName = 'parent__name', + ParentSubdomainCount = 'parent__subdomainCount', + ParentTtl = 'parent__ttl', + Registrant = 'registrant', + RegistrantId = 'registrant__id', + Registration = 'registration', + RegistrationCost = 'registration__cost', + RegistrationExpiryDate = 'registration__expiryDate', + RegistrationId = 'registration__id', + RegistrationLabelName = 'registration__labelName', + RegistrationRegistrationDate = 'registration__registrationDate', + ResolvedAddress = 'resolvedAddress', + ResolvedAddressId = 'resolvedAddress__id', + Resolver = 'resolver', + ResolverAddress = 'resolver__address', + ResolverContentHash = 'resolver__contentHash', + ResolverId = 'resolver__id', + SubdomainCount = 'subdomainCount', + Subdomains = 'subdomains', + Ttl = 'ttl', + WrappedDomain = 'wrappedDomain', + WrappedDomainExpiryDate = 'wrappedDomain__expiryDate', + WrappedDomainFuses = 'wrappedDomain__fuses', + WrappedDomainId = 'wrappedDomain__id', + WrappedDomainName = 'wrappedDomain__name', + WrappedOwner = 'wrappedOwner', + WrappedOwnerId = 'wrappedOwner__id' +} + +export type ExpiryExtended = DomainEvent & { + __typename?: 'ExpiryExtended'; + /** The block number at which the event occurred */ + blockNumber: Scalars['Int']['output']; + /** The domain name associated with the event */ + domain: Domain; + /** The new expiry date associated with the domain after the extension event */ + expiryDate: Scalars['BigInt']['output']; + /** The unique identifier of the event */ + id: Scalars['ID']['output']; + /** The transaction hash of the transaction that triggered the event */ + transactionID: Scalars['Bytes']['output']; +}; + +export type ExpiryExtended_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + and?: InputMaybe>>; + blockNumber?: InputMaybe; + blockNumber_gt?: InputMaybe; + blockNumber_gte?: InputMaybe; + blockNumber_in?: InputMaybe>; + blockNumber_lt?: InputMaybe; + blockNumber_lte?: InputMaybe; + blockNumber_not?: InputMaybe; + blockNumber_not_in?: InputMaybe>; + domain?: InputMaybe; + domain_?: InputMaybe; + domain_contains?: InputMaybe; + domain_contains_nocase?: InputMaybe; + domain_ends_with?: InputMaybe; + domain_ends_with_nocase?: InputMaybe; + domain_gt?: InputMaybe; + domain_gte?: InputMaybe; + domain_in?: InputMaybe>; + domain_lt?: InputMaybe; + domain_lte?: InputMaybe; + domain_not?: InputMaybe; + domain_not_contains?: InputMaybe; + domain_not_contains_nocase?: InputMaybe; + domain_not_ends_with?: InputMaybe; + domain_not_ends_with_nocase?: InputMaybe; + domain_not_in?: InputMaybe>; + domain_not_starts_with?: InputMaybe; + domain_not_starts_with_nocase?: InputMaybe; + domain_starts_with?: InputMaybe; + domain_starts_with_nocase?: InputMaybe; + expiryDate?: InputMaybe; + expiryDate_gt?: InputMaybe; + expiryDate_gte?: InputMaybe; + expiryDate_in?: InputMaybe>; + expiryDate_lt?: InputMaybe; + expiryDate_lte?: InputMaybe; + expiryDate_not?: InputMaybe; + expiryDate_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + or?: InputMaybe>>; + transactionID?: InputMaybe; + transactionID_contains?: InputMaybe; + transactionID_gt?: InputMaybe; + transactionID_gte?: InputMaybe; + transactionID_in?: InputMaybe>; + transactionID_lt?: InputMaybe; + transactionID_lte?: InputMaybe; + transactionID_not?: InputMaybe; + transactionID_not_contains?: InputMaybe; + transactionID_not_in?: InputMaybe>; +}; + +export enum ExpiryExtended_OrderBy { + BlockNumber = 'blockNumber', + Domain = 'domain', + DomainCreatedAt = 'domain__createdAt', + DomainExpiryDate = 'domain__expiryDate', + DomainId = 'domain__id', + DomainIsMigrated = 'domain__isMigrated', + DomainLabelName = 'domain__labelName', + DomainLabelhash = 'domain__labelhash', + DomainName = 'domain__name', + DomainSubdomainCount = 'domain__subdomainCount', + DomainTtl = 'domain__ttl', + ExpiryDate = 'expiryDate', + Id = 'id', + TransactionId = 'transactionID' +} + +export type FusesSet = DomainEvent & { + __typename?: 'FusesSet'; + /** The block number at which the event occurred */ + blockNumber: Scalars['Int']['output']; + /** The domain name associated with the event */ + domain: Domain; + /** The number of fuses associated with the domain after the set event */ + fuses: Scalars['Int']['output']; + /** The unique identifier of the event */ + id: Scalars['ID']['output']; + /** The transaction hash of the transaction that triggered the event */ + transactionID: Scalars['Bytes']['output']; +}; + +export type FusesSet_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + and?: InputMaybe>>; + blockNumber?: InputMaybe; + blockNumber_gt?: InputMaybe; + blockNumber_gte?: InputMaybe; + blockNumber_in?: InputMaybe>; + blockNumber_lt?: InputMaybe; + blockNumber_lte?: InputMaybe; + blockNumber_not?: InputMaybe; + blockNumber_not_in?: InputMaybe>; + domain?: InputMaybe; + domain_?: InputMaybe; + domain_contains?: InputMaybe; + domain_contains_nocase?: InputMaybe; + domain_ends_with?: InputMaybe; + domain_ends_with_nocase?: InputMaybe; + domain_gt?: InputMaybe; + domain_gte?: InputMaybe; + domain_in?: InputMaybe>; + domain_lt?: InputMaybe; + domain_lte?: InputMaybe; + domain_not?: InputMaybe; + domain_not_contains?: InputMaybe; + domain_not_contains_nocase?: InputMaybe; + domain_not_ends_with?: InputMaybe; + domain_not_ends_with_nocase?: InputMaybe; + domain_not_in?: InputMaybe>; + domain_not_starts_with?: InputMaybe; + domain_not_starts_with_nocase?: InputMaybe; + domain_starts_with?: InputMaybe; + domain_starts_with_nocase?: InputMaybe; + fuses?: InputMaybe; + fuses_gt?: InputMaybe; + fuses_gte?: InputMaybe; + fuses_in?: InputMaybe>; + fuses_lt?: InputMaybe; + fuses_lte?: InputMaybe; + fuses_not?: InputMaybe; + fuses_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + or?: InputMaybe>>; + transactionID?: InputMaybe; + transactionID_contains?: InputMaybe; + transactionID_gt?: InputMaybe; + transactionID_gte?: InputMaybe; + transactionID_in?: InputMaybe>; + transactionID_lt?: InputMaybe; + transactionID_lte?: InputMaybe; + transactionID_not?: InputMaybe; + transactionID_not_contains?: InputMaybe; + transactionID_not_in?: InputMaybe>; +}; + +export enum FusesSet_OrderBy { + BlockNumber = 'blockNumber', + Domain = 'domain', + DomainCreatedAt = 'domain__createdAt', + DomainExpiryDate = 'domain__expiryDate', + DomainId = 'domain__id', + DomainIsMigrated = 'domain__isMigrated', + DomainLabelName = 'domain__labelName', + DomainLabelhash = 'domain__labelhash', + DomainName = 'domain__name', + DomainSubdomainCount = 'domain__subdomainCount', + DomainTtl = 'domain__ttl', + Fuses = 'fuses', + Id = 'id', + TransactionId = 'transactionID' +} + +export type InterfaceChanged = ResolverEvent & { + __typename?: 'InterfaceChanged'; + /** The block number in which the event occurred */ + blockNumber: Scalars['Int']['output']; + /** Concatenation of block number and log ID */ + id: Scalars['ID']['output']; + /** The address of the contract that implements the interface */ + implementer: Scalars['Bytes']['output']; + /** The ID of the EIP-1820 interface that was changed */ + interfaceID: Scalars['Bytes']['output']; + /** Used to derive relationships to Resolvers */ + resolver: Resolver; + /** The transaction ID for the transaction in which the event occurred */ + transactionID: Scalars['Bytes']['output']; +}; + +export type InterfaceChanged_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + and?: InputMaybe>>; + blockNumber?: InputMaybe; + blockNumber_gt?: InputMaybe; + blockNumber_gte?: InputMaybe; + blockNumber_in?: InputMaybe>; + blockNumber_lt?: InputMaybe; + blockNumber_lte?: InputMaybe; + blockNumber_not?: InputMaybe; + blockNumber_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + implementer?: InputMaybe; + implementer_contains?: InputMaybe; + implementer_gt?: InputMaybe; + implementer_gte?: InputMaybe; + implementer_in?: InputMaybe>; + implementer_lt?: InputMaybe; + implementer_lte?: InputMaybe; + implementer_not?: InputMaybe; + implementer_not_contains?: InputMaybe; + implementer_not_in?: InputMaybe>; + interfaceID?: InputMaybe; + interfaceID_contains?: InputMaybe; + interfaceID_gt?: InputMaybe; + interfaceID_gte?: InputMaybe; + interfaceID_in?: InputMaybe>; + interfaceID_lt?: InputMaybe; + interfaceID_lte?: InputMaybe; + interfaceID_not?: InputMaybe; + interfaceID_not_contains?: InputMaybe; + interfaceID_not_in?: InputMaybe>; + or?: InputMaybe>>; + resolver?: InputMaybe; + resolver_?: InputMaybe; + resolver_contains?: InputMaybe; + resolver_contains_nocase?: InputMaybe; + resolver_ends_with?: InputMaybe; + resolver_ends_with_nocase?: InputMaybe; + resolver_gt?: InputMaybe; + resolver_gte?: InputMaybe; + resolver_in?: InputMaybe>; + resolver_lt?: InputMaybe; + resolver_lte?: InputMaybe; + resolver_not?: InputMaybe; + resolver_not_contains?: InputMaybe; + resolver_not_contains_nocase?: InputMaybe; + resolver_not_ends_with?: InputMaybe; + resolver_not_ends_with_nocase?: InputMaybe; + resolver_not_in?: InputMaybe>; + resolver_not_starts_with?: InputMaybe; + resolver_not_starts_with_nocase?: InputMaybe; + resolver_starts_with?: InputMaybe; + resolver_starts_with_nocase?: InputMaybe; + transactionID?: InputMaybe; + transactionID_contains?: InputMaybe; + transactionID_gt?: InputMaybe; + transactionID_gte?: InputMaybe; + transactionID_in?: InputMaybe>; + transactionID_lt?: InputMaybe; + transactionID_lte?: InputMaybe; + transactionID_not?: InputMaybe; + transactionID_not_contains?: InputMaybe; + transactionID_not_in?: InputMaybe>; +}; + +export enum InterfaceChanged_OrderBy { + BlockNumber = 'blockNumber', + Id = 'id', + Implementer = 'implementer', + InterfaceId = 'interfaceID', + Resolver = 'resolver', + ResolverAddress = 'resolver__address', + ResolverContentHash = 'resolver__contentHash', + ResolverId = 'resolver__id', + TransactionId = 'transactionID' +} + +export type MulticoinAddrChanged = ResolverEvent & { + __typename?: 'MulticoinAddrChanged'; + /** The new address value for the given coin type */ + addr: Scalars['Bytes']['output']; + /** Block number in which this event was emitted */ + blockNumber: Scalars['Int']['output']; + /** The coin type of the changed address */ + coinType: Scalars['BigInt']['output']; + /** Unique identifier for the event */ + id: Scalars['ID']['output']; + /** Resolver associated with this event */ + resolver: Resolver; + /** Transaction ID in which this event was emitted */ + transactionID: Scalars['Bytes']['output']; +}; + +export type MulticoinAddrChanged_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + addr?: InputMaybe; + addr_contains?: InputMaybe; + addr_gt?: InputMaybe; + addr_gte?: InputMaybe; + addr_in?: InputMaybe>; + addr_lt?: InputMaybe; + addr_lte?: InputMaybe; + addr_not?: InputMaybe; + addr_not_contains?: InputMaybe; + addr_not_in?: InputMaybe>; + and?: InputMaybe>>; + blockNumber?: InputMaybe; + blockNumber_gt?: InputMaybe; + blockNumber_gte?: InputMaybe; + blockNumber_in?: InputMaybe>; + blockNumber_lt?: InputMaybe; + blockNumber_lte?: InputMaybe; + blockNumber_not?: InputMaybe; + blockNumber_not_in?: InputMaybe>; + coinType?: InputMaybe; + coinType_gt?: InputMaybe; + coinType_gte?: InputMaybe; + coinType_in?: InputMaybe>; + coinType_lt?: InputMaybe; + coinType_lte?: InputMaybe; + coinType_not?: InputMaybe; + coinType_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + or?: InputMaybe>>; + resolver?: InputMaybe; + resolver_?: InputMaybe; + resolver_contains?: InputMaybe; + resolver_contains_nocase?: InputMaybe; + resolver_ends_with?: InputMaybe; + resolver_ends_with_nocase?: InputMaybe; + resolver_gt?: InputMaybe; + resolver_gte?: InputMaybe; + resolver_in?: InputMaybe>; + resolver_lt?: InputMaybe; + resolver_lte?: InputMaybe; + resolver_not?: InputMaybe; + resolver_not_contains?: InputMaybe; + resolver_not_contains_nocase?: InputMaybe; + resolver_not_ends_with?: InputMaybe; + resolver_not_ends_with_nocase?: InputMaybe; + resolver_not_in?: InputMaybe>; + resolver_not_starts_with?: InputMaybe; + resolver_not_starts_with_nocase?: InputMaybe; + resolver_starts_with?: InputMaybe; + resolver_starts_with_nocase?: InputMaybe; + transactionID?: InputMaybe; + transactionID_contains?: InputMaybe; + transactionID_gt?: InputMaybe; + transactionID_gte?: InputMaybe; + transactionID_in?: InputMaybe>; + transactionID_lt?: InputMaybe; + transactionID_lte?: InputMaybe; + transactionID_not?: InputMaybe; + transactionID_not_contains?: InputMaybe; + transactionID_not_in?: InputMaybe>; +}; + +export enum MulticoinAddrChanged_OrderBy { + Addr = 'addr', + BlockNumber = 'blockNumber', + CoinType = 'coinType', + Id = 'id', + Resolver = 'resolver', + ResolverAddress = 'resolver__address', + ResolverContentHash = 'resolver__contentHash', + ResolverId = 'resolver__id', + TransactionId = 'transactionID' +} + +export type NameChanged = ResolverEvent & { + __typename?: 'NameChanged'; + /** Block number where event occurred */ + blockNumber: Scalars['Int']['output']; + /** Concatenation of block number and log ID */ + id: Scalars['ID']['output']; + /** New ENS name value */ + name: Scalars['String']['output']; + /** Used to derive relationships to Resolvers */ + resolver: Resolver; + /** Unique transaction ID where event occurred */ + transactionID: Scalars['Bytes']['output']; +}; + +export type NameChanged_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + and?: InputMaybe>>; + blockNumber?: InputMaybe; + blockNumber_gt?: InputMaybe; + blockNumber_gte?: InputMaybe; + blockNumber_in?: InputMaybe>; + blockNumber_lt?: InputMaybe; + blockNumber_lte?: InputMaybe; + blockNumber_not?: InputMaybe; + blockNumber_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + name?: InputMaybe; + name_contains?: InputMaybe; + name_contains_nocase?: InputMaybe; + name_ends_with?: InputMaybe; + name_ends_with_nocase?: InputMaybe; + name_gt?: InputMaybe; + name_gte?: InputMaybe; + name_in?: InputMaybe>; + name_lt?: InputMaybe; + name_lte?: InputMaybe; + name_not?: InputMaybe; + name_not_contains?: InputMaybe; + name_not_contains_nocase?: InputMaybe; + name_not_ends_with?: InputMaybe; + name_not_ends_with_nocase?: InputMaybe; + name_not_in?: InputMaybe>; + name_not_starts_with?: InputMaybe; + name_not_starts_with_nocase?: InputMaybe; + name_starts_with?: InputMaybe; + name_starts_with_nocase?: InputMaybe; + or?: InputMaybe>>; + resolver?: InputMaybe; + resolver_?: InputMaybe; + resolver_contains?: InputMaybe; + resolver_contains_nocase?: InputMaybe; + resolver_ends_with?: InputMaybe; + resolver_ends_with_nocase?: InputMaybe; + resolver_gt?: InputMaybe; + resolver_gte?: InputMaybe; + resolver_in?: InputMaybe>; + resolver_lt?: InputMaybe; + resolver_lte?: InputMaybe; + resolver_not?: InputMaybe; + resolver_not_contains?: InputMaybe; + resolver_not_contains_nocase?: InputMaybe; + resolver_not_ends_with?: InputMaybe; + resolver_not_ends_with_nocase?: InputMaybe; + resolver_not_in?: InputMaybe>; + resolver_not_starts_with?: InputMaybe; + resolver_not_starts_with_nocase?: InputMaybe; + resolver_starts_with?: InputMaybe; + resolver_starts_with_nocase?: InputMaybe; + transactionID?: InputMaybe; + transactionID_contains?: InputMaybe; + transactionID_gt?: InputMaybe; + transactionID_gte?: InputMaybe; + transactionID_in?: InputMaybe>; + transactionID_lt?: InputMaybe; + transactionID_lte?: InputMaybe; + transactionID_not?: InputMaybe; + transactionID_not_contains?: InputMaybe; + transactionID_not_in?: InputMaybe>; +}; + +export enum NameChanged_OrderBy { + BlockNumber = 'blockNumber', + Id = 'id', + Name = 'name', + Resolver = 'resolver', + ResolverAddress = 'resolver__address', + ResolverContentHash = 'resolver__contentHash', + ResolverId = 'resolver__id', + TransactionId = 'transactionID' +} + +export type NameRegistered = RegistrationEvent & { + __typename?: 'NameRegistered'; + /** The block number of the event */ + blockNumber: Scalars['Int']['output']; + /** The expiry date of the registration */ + expiryDate: Scalars['BigInt']['output']; + /** The unique identifier of the NameRegistered event */ + id: Scalars['ID']['output']; + /** The account that registered the name */ + registrant: Account; + /** The registration associated with the event */ + registration: Registration; + /** The transaction ID associated with the event */ + transactionID: Scalars['Bytes']['output']; +}; + +export type NameRegistered_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + and?: InputMaybe>>; + blockNumber?: InputMaybe; + blockNumber_gt?: InputMaybe; + blockNumber_gte?: InputMaybe; + blockNumber_in?: InputMaybe>; + blockNumber_lt?: InputMaybe; + blockNumber_lte?: InputMaybe; + blockNumber_not?: InputMaybe; + blockNumber_not_in?: InputMaybe>; + expiryDate?: InputMaybe; + expiryDate_gt?: InputMaybe; + expiryDate_gte?: InputMaybe; + expiryDate_in?: InputMaybe>; + expiryDate_lt?: InputMaybe; + expiryDate_lte?: InputMaybe; + expiryDate_not?: InputMaybe; + expiryDate_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + or?: InputMaybe>>; + registrant?: InputMaybe; + registrant_?: InputMaybe; + registrant_contains?: InputMaybe; + registrant_contains_nocase?: InputMaybe; + registrant_ends_with?: InputMaybe; + registrant_ends_with_nocase?: InputMaybe; + registrant_gt?: InputMaybe; + registrant_gte?: InputMaybe; + registrant_in?: InputMaybe>; + registrant_lt?: InputMaybe; + registrant_lte?: InputMaybe; + registrant_not?: InputMaybe; + registrant_not_contains?: InputMaybe; + registrant_not_contains_nocase?: InputMaybe; + registrant_not_ends_with?: InputMaybe; + registrant_not_ends_with_nocase?: InputMaybe; + registrant_not_in?: InputMaybe>; + registrant_not_starts_with?: InputMaybe; + registrant_not_starts_with_nocase?: InputMaybe; + registrant_starts_with?: InputMaybe; + registrant_starts_with_nocase?: InputMaybe; + registration?: InputMaybe; + registration_?: InputMaybe; + registration_contains?: InputMaybe; + registration_contains_nocase?: InputMaybe; + registration_ends_with?: InputMaybe; + registration_ends_with_nocase?: InputMaybe; + registration_gt?: InputMaybe; + registration_gte?: InputMaybe; + registration_in?: InputMaybe>; + registration_lt?: InputMaybe; + registration_lte?: InputMaybe; + registration_not?: InputMaybe; + registration_not_contains?: InputMaybe; + registration_not_contains_nocase?: InputMaybe; + registration_not_ends_with?: InputMaybe; + registration_not_ends_with_nocase?: InputMaybe; + registration_not_in?: InputMaybe>; + registration_not_starts_with?: InputMaybe; + registration_not_starts_with_nocase?: InputMaybe; + registration_starts_with?: InputMaybe; + registration_starts_with_nocase?: InputMaybe; + transactionID?: InputMaybe; + transactionID_contains?: InputMaybe; + transactionID_gt?: InputMaybe; + transactionID_gte?: InputMaybe; + transactionID_in?: InputMaybe>; + transactionID_lt?: InputMaybe; + transactionID_lte?: InputMaybe; + transactionID_not?: InputMaybe; + transactionID_not_contains?: InputMaybe; + transactionID_not_in?: InputMaybe>; +}; + +export enum NameRegistered_OrderBy { + BlockNumber = 'blockNumber', + ExpiryDate = 'expiryDate', + Id = 'id', + Registrant = 'registrant', + RegistrantId = 'registrant__id', + Registration = 'registration', + RegistrationCost = 'registration__cost', + RegistrationExpiryDate = 'registration__expiryDate', + RegistrationId = 'registration__id', + RegistrationLabelName = 'registration__labelName', + RegistrationRegistrationDate = 'registration__registrationDate', + TransactionId = 'transactionID' +} + +export type NameRenewed = RegistrationEvent & { + __typename?: 'NameRenewed'; + /** The block number of the event */ + blockNumber: Scalars['Int']['output']; + /** The new expiry date of the registration */ + expiryDate: Scalars['BigInt']['output']; + /** The unique identifier of the NameRenewed event */ + id: Scalars['ID']['output']; + /** The registration associated with the event */ + registration: Registration; + /** The transaction ID associated with the event */ + transactionID: Scalars['Bytes']['output']; +}; + +export type NameRenewed_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + and?: InputMaybe>>; + blockNumber?: InputMaybe; + blockNumber_gt?: InputMaybe; + blockNumber_gte?: InputMaybe; + blockNumber_in?: InputMaybe>; + blockNumber_lt?: InputMaybe; + blockNumber_lte?: InputMaybe; + blockNumber_not?: InputMaybe; + blockNumber_not_in?: InputMaybe>; + expiryDate?: InputMaybe; + expiryDate_gt?: InputMaybe; + expiryDate_gte?: InputMaybe; + expiryDate_in?: InputMaybe>; + expiryDate_lt?: InputMaybe; + expiryDate_lte?: InputMaybe; + expiryDate_not?: InputMaybe; + expiryDate_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + or?: InputMaybe>>; + registration?: InputMaybe; + registration_?: InputMaybe; + registration_contains?: InputMaybe; + registration_contains_nocase?: InputMaybe; + registration_ends_with?: InputMaybe; + registration_ends_with_nocase?: InputMaybe; + registration_gt?: InputMaybe; + registration_gte?: InputMaybe; + registration_in?: InputMaybe>; + registration_lt?: InputMaybe; + registration_lte?: InputMaybe; + registration_not?: InputMaybe; + registration_not_contains?: InputMaybe; + registration_not_contains_nocase?: InputMaybe; + registration_not_ends_with?: InputMaybe; + registration_not_ends_with_nocase?: InputMaybe; + registration_not_in?: InputMaybe>; + registration_not_starts_with?: InputMaybe; + registration_not_starts_with_nocase?: InputMaybe; + registration_starts_with?: InputMaybe; + registration_starts_with_nocase?: InputMaybe; + transactionID?: InputMaybe; + transactionID_contains?: InputMaybe; + transactionID_gt?: InputMaybe; + transactionID_gte?: InputMaybe; + transactionID_in?: InputMaybe>; + transactionID_lt?: InputMaybe; + transactionID_lte?: InputMaybe; + transactionID_not?: InputMaybe; + transactionID_not_contains?: InputMaybe; + transactionID_not_in?: InputMaybe>; +}; + +export enum NameRenewed_OrderBy { + BlockNumber = 'blockNumber', + ExpiryDate = 'expiryDate', + Id = 'id', + Registration = 'registration', + RegistrationCost = 'registration__cost', + RegistrationExpiryDate = 'registration__expiryDate', + RegistrationId = 'registration__id', + RegistrationLabelName = 'registration__labelName', + RegistrationRegistrationDate = 'registration__registrationDate', + TransactionId = 'transactionID' +} + +export type NameTransferred = RegistrationEvent & { + __typename?: 'NameTransferred'; + /** The block number of the event */ + blockNumber: Scalars['Int']['output']; + /** The ID of the event */ + id: Scalars['ID']['output']; + /** The new owner of the domain */ + newOwner: Account; + /** The registration associated with the event */ + registration: Registration; + /** The transaction ID of the event */ + transactionID: Scalars['Bytes']['output']; +}; + +export type NameTransferred_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + and?: InputMaybe>>; + blockNumber?: InputMaybe; + blockNumber_gt?: InputMaybe; + blockNumber_gte?: InputMaybe; + blockNumber_in?: InputMaybe>; + blockNumber_lt?: InputMaybe; + blockNumber_lte?: InputMaybe; + blockNumber_not?: InputMaybe; + blockNumber_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + newOwner?: InputMaybe; + newOwner_?: InputMaybe; + newOwner_contains?: InputMaybe; + newOwner_contains_nocase?: InputMaybe; + newOwner_ends_with?: InputMaybe; + newOwner_ends_with_nocase?: InputMaybe; + newOwner_gt?: InputMaybe; + newOwner_gte?: InputMaybe; + newOwner_in?: InputMaybe>; + newOwner_lt?: InputMaybe; + newOwner_lte?: InputMaybe; + newOwner_not?: InputMaybe; + newOwner_not_contains?: InputMaybe; + newOwner_not_contains_nocase?: InputMaybe; + newOwner_not_ends_with?: InputMaybe; + newOwner_not_ends_with_nocase?: InputMaybe; + newOwner_not_in?: InputMaybe>; + newOwner_not_starts_with?: InputMaybe; + newOwner_not_starts_with_nocase?: InputMaybe; + newOwner_starts_with?: InputMaybe; + newOwner_starts_with_nocase?: InputMaybe; + or?: InputMaybe>>; + registration?: InputMaybe; + registration_?: InputMaybe; + registration_contains?: InputMaybe; + registration_contains_nocase?: InputMaybe; + registration_ends_with?: InputMaybe; + registration_ends_with_nocase?: InputMaybe; + registration_gt?: InputMaybe; + registration_gte?: InputMaybe; + registration_in?: InputMaybe>; + registration_lt?: InputMaybe; + registration_lte?: InputMaybe; + registration_not?: InputMaybe; + registration_not_contains?: InputMaybe; + registration_not_contains_nocase?: InputMaybe; + registration_not_ends_with?: InputMaybe; + registration_not_ends_with_nocase?: InputMaybe; + registration_not_in?: InputMaybe>; + registration_not_starts_with?: InputMaybe; + registration_not_starts_with_nocase?: InputMaybe; + registration_starts_with?: InputMaybe; + registration_starts_with_nocase?: InputMaybe; + transactionID?: InputMaybe; + transactionID_contains?: InputMaybe; + transactionID_gt?: InputMaybe; + transactionID_gte?: InputMaybe; + transactionID_in?: InputMaybe>; + transactionID_lt?: InputMaybe; + transactionID_lte?: InputMaybe; + transactionID_not?: InputMaybe; + transactionID_not_contains?: InputMaybe; + transactionID_not_in?: InputMaybe>; +}; + +export enum NameTransferred_OrderBy { + BlockNumber = 'blockNumber', + Id = 'id', + NewOwner = 'newOwner', + NewOwnerId = 'newOwner__id', + Registration = 'registration', + RegistrationCost = 'registration__cost', + RegistrationExpiryDate = 'registration__expiryDate', + RegistrationId = 'registration__id', + RegistrationLabelName = 'registration__labelName', + RegistrationRegistrationDate = 'registration__registrationDate', + TransactionId = 'transactionID' +} + +export type NameUnwrapped = DomainEvent & { + __typename?: 'NameUnwrapped'; + /** The block number at which the event occurred */ + blockNumber: Scalars['Int']['output']; + /** The domain name associated with the event */ + domain: Domain; + /** The unique identifier of the event */ + id: Scalars['ID']['output']; + /** The account that owns the domain after it was unwrapped */ + owner: Account; + /** The transaction hash of the transaction that triggered the event */ + transactionID: Scalars['Bytes']['output']; +}; + +export type NameUnwrapped_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + and?: InputMaybe>>; + blockNumber?: InputMaybe; + blockNumber_gt?: InputMaybe; + blockNumber_gte?: InputMaybe; + blockNumber_in?: InputMaybe>; + blockNumber_lt?: InputMaybe; + blockNumber_lte?: InputMaybe; + blockNumber_not?: InputMaybe; + blockNumber_not_in?: InputMaybe>; + domain?: InputMaybe; + domain_?: InputMaybe; + domain_contains?: InputMaybe; + domain_contains_nocase?: InputMaybe; + domain_ends_with?: InputMaybe; + domain_ends_with_nocase?: InputMaybe; + domain_gt?: InputMaybe; + domain_gte?: InputMaybe; + domain_in?: InputMaybe>; + domain_lt?: InputMaybe; + domain_lte?: InputMaybe; + domain_not?: InputMaybe; + domain_not_contains?: InputMaybe; + domain_not_contains_nocase?: InputMaybe; + domain_not_ends_with?: InputMaybe; + domain_not_ends_with_nocase?: InputMaybe; + domain_not_in?: InputMaybe>; + domain_not_starts_with?: InputMaybe; + domain_not_starts_with_nocase?: InputMaybe; + domain_starts_with?: InputMaybe; + domain_starts_with_nocase?: InputMaybe; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + or?: InputMaybe>>; + owner?: InputMaybe; + owner_?: InputMaybe; + owner_contains?: InputMaybe; + owner_contains_nocase?: InputMaybe; + owner_ends_with?: InputMaybe; + owner_ends_with_nocase?: InputMaybe; + owner_gt?: InputMaybe; + owner_gte?: InputMaybe; + owner_in?: InputMaybe>; + owner_lt?: InputMaybe; + owner_lte?: InputMaybe; + owner_not?: InputMaybe; + owner_not_contains?: InputMaybe; + owner_not_contains_nocase?: InputMaybe; + owner_not_ends_with?: InputMaybe; + owner_not_ends_with_nocase?: InputMaybe; + owner_not_in?: InputMaybe>; + owner_not_starts_with?: InputMaybe; + owner_not_starts_with_nocase?: InputMaybe; + owner_starts_with?: InputMaybe; + owner_starts_with_nocase?: InputMaybe; + transactionID?: InputMaybe; + transactionID_contains?: InputMaybe; + transactionID_gt?: InputMaybe; + transactionID_gte?: InputMaybe; + transactionID_in?: InputMaybe>; + transactionID_lt?: InputMaybe; + transactionID_lte?: InputMaybe; + transactionID_not?: InputMaybe; + transactionID_not_contains?: InputMaybe; + transactionID_not_in?: InputMaybe>; +}; + +export enum NameUnwrapped_OrderBy { + BlockNumber = 'blockNumber', + Domain = 'domain', + DomainCreatedAt = 'domain__createdAt', + DomainExpiryDate = 'domain__expiryDate', + DomainId = 'domain__id', + DomainIsMigrated = 'domain__isMigrated', + DomainLabelName = 'domain__labelName', + DomainLabelhash = 'domain__labelhash', + DomainName = 'domain__name', + DomainSubdomainCount = 'domain__subdomainCount', + DomainTtl = 'domain__ttl', + Id = 'id', + Owner = 'owner', + OwnerId = 'owner__id', + TransactionId = 'transactionID' +} + +export type NameWrapped = DomainEvent & { + __typename?: 'NameWrapped'; + /** The block number at which the wrapped domain was wrapped */ + blockNumber: Scalars['Int']['output']; + /** The domain name associated with the wrapped domain */ + domain: Domain; + /** The expiry date of the wrapped domain registration */ + expiryDate: Scalars['BigInt']['output']; + /** The number of fuses associated with the wrapped domain */ + fuses: Scalars['Int']['output']; + /** The unique identifier of the wrapped domain */ + id: Scalars['ID']['output']; + /** The human-readable name of the wrapped domain */ + name?: Maybe; + /** The account that owns the wrapped domain */ + owner: Account; + /** The transaction hash of the transaction that wrapped the domain */ + transactionID: Scalars['Bytes']['output']; +}; + +export type NameWrapped_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + and?: InputMaybe>>; + blockNumber?: InputMaybe; + blockNumber_gt?: InputMaybe; + blockNumber_gte?: InputMaybe; + blockNumber_in?: InputMaybe>; + blockNumber_lt?: InputMaybe; + blockNumber_lte?: InputMaybe; + blockNumber_not?: InputMaybe; + blockNumber_not_in?: InputMaybe>; + domain?: InputMaybe; + domain_?: InputMaybe; + domain_contains?: InputMaybe; + domain_contains_nocase?: InputMaybe; + domain_ends_with?: InputMaybe; + domain_ends_with_nocase?: InputMaybe; + domain_gt?: InputMaybe; + domain_gte?: InputMaybe; + domain_in?: InputMaybe>; + domain_lt?: InputMaybe; + domain_lte?: InputMaybe; + domain_not?: InputMaybe; + domain_not_contains?: InputMaybe; + domain_not_contains_nocase?: InputMaybe; + domain_not_ends_with?: InputMaybe; + domain_not_ends_with_nocase?: InputMaybe; + domain_not_in?: InputMaybe>; + domain_not_starts_with?: InputMaybe; + domain_not_starts_with_nocase?: InputMaybe; + domain_starts_with?: InputMaybe; + domain_starts_with_nocase?: InputMaybe; + expiryDate?: InputMaybe; + expiryDate_gt?: InputMaybe; + expiryDate_gte?: InputMaybe; + expiryDate_in?: InputMaybe>; + expiryDate_lt?: InputMaybe; + expiryDate_lte?: InputMaybe; + expiryDate_not?: InputMaybe; + expiryDate_not_in?: InputMaybe>; + fuses?: InputMaybe; + fuses_gt?: InputMaybe; + fuses_gte?: InputMaybe; + fuses_in?: InputMaybe>; + fuses_lt?: InputMaybe; + fuses_lte?: InputMaybe; + fuses_not?: InputMaybe; + fuses_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + name?: InputMaybe; + name_contains?: InputMaybe; + name_contains_nocase?: InputMaybe; + name_ends_with?: InputMaybe; + name_ends_with_nocase?: InputMaybe; + name_gt?: InputMaybe; + name_gte?: InputMaybe; + name_in?: InputMaybe>; + name_lt?: InputMaybe; + name_lte?: InputMaybe; + name_not?: InputMaybe; + name_not_contains?: InputMaybe; + name_not_contains_nocase?: InputMaybe; + name_not_ends_with?: InputMaybe; + name_not_ends_with_nocase?: InputMaybe; + name_not_in?: InputMaybe>; + name_not_starts_with?: InputMaybe; + name_not_starts_with_nocase?: InputMaybe; + name_starts_with?: InputMaybe; + name_starts_with_nocase?: InputMaybe; + or?: InputMaybe>>; + owner?: InputMaybe; + owner_?: InputMaybe; + owner_contains?: InputMaybe; + owner_contains_nocase?: InputMaybe; + owner_ends_with?: InputMaybe; + owner_ends_with_nocase?: InputMaybe; + owner_gt?: InputMaybe; + owner_gte?: InputMaybe; + owner_in?: InputMaybe>; + owner_lt?: InputMaybe; + owner_lte?: InputMaybe; + owner_not?: InputMaybe; + owner_not_contains?: InputMaybe; + owner_not_contains_nocase?: InputMaybe; + owner_not_ends_with?: InputMaybe; + owner_not_ends_with_nocase?: InputMaybe; + owner_not_in?: InputMaybe>; + owner_not_starts_with?: InputMaybe; + owner_not_starts_with_nocase?: InputMaybe; + owner_starts_with?: InputMaybe; + owner_starts_with_nocase?: InputMaybe; + transactionID?: InputMaybe; + transactionID_contains?: InputMaybe; + transactionID_gt?: InputMaybe; + transactionID_gte?: InputMaybe; + transactionID_in?: InputMaybe>; + transactionID_lt?: InputMaybe; + transactionID_lte?: InputMaybe; + transactionID_not?: InputMaybe; + transactionID_not_contains?: InputMaybe; + transactionID_not_in?: InputMaybe>; +}; + +export enum NameWrapped_OrderBy { + BlockNumber = 'blockNumber', + Domain = 'domain', + DomainCreatedAt = 'domain__createdAt', + DomainExpiryDate = 'domain__expiryDate', + DomainId = 'domain__id', + DomainIsMigrated = 'domain__isMigrated', + DomainLabelName = 'domain__labelName', + DomainLabelhash = 'domain__labelhash', + DomainName = 'domain__name', + DomainSubdomainCount = 'domain__subdomainCount', + DomainTtl = 'domain__ttl', + ExpiryDate = 'expiryDate', + Fuses = 'fuses', + Id = 'id', + Name = 'name', + Owner = 'owner', + OwnerId = 'owner__id', + TransactionId = 'transactionID' +} + +export type NewOwner = DomainEvent & { + __typename?: 'NewOwner'; + /** The block number at which the event occurred */ + blockNumber: Scalars['Int']['output']; + /** The domain name associated with the event */ + domain: Domain; + /** The unique identifier of the event */ + id: Scalars['ID']['output']; + /** The new account that owns the domain */ + owner: Account; + /** The parent domain of the domain name associated with the event */ + parentDomain: Domain; + /** The transaction hash of the transaction that triggered the event */ + transactionID: Scalars['Bytes']['output']; +}; + +export type NewOwner_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + and?: InputMaybe>>; + blockNumber?: InputMaybe; + blockNumber_gt?: InputMaybe; + blockNumber_gte?: InputMaybe; + blockNumber_in?: InputMaybe>; + blockNumber_lt?: InputMaybe; + blockNumber_lte?: InputMaybe; + blockNumber_not?: InputMaybe; + blockNumber_not_in?: InputMaybe>; + domain?: InputMaybe; + domain_?: InputMaybe; + domain_contains?: InputMaybe; + domain_contains_nocase?: InputMaybe; + domain_ends_with?: InputMaybe; + domain_ends_with_nocase?: InputMaybe; + domain_gt?: InputMaybe; + domain_gte?: InputMaybe; + domain_in?: InputMaybe>; + domain_lt?: InputMaybe; + domain_lte?: InputMaybe; + domain_not?: InputMaybe; + domain_not_contains?: InputMaybe; + domain_not_contains_nocase?: InputMaybe; + domain_not_ends_with?: InputMaybe; + domain_not_ends_with_nocase?: InputMaybe; + domain_not_in?: InputMaybe>; + domain_not_starts_with?: InputMaybe; + domain_not_starts_with_nocase?: InputMaybe; + domain_starts_with?: InputMaybe; + domain_starts_with_nocase?: InputMaybe; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + or?: InputMaybe>>; + owner?: InputMaybe; + owner_?: InputMaybe; + owner_contains?: InputMaybe; + owner_contains_nocase?: InputMaybe; + owner_ends_with?: InputMaybe; + owner_ends_with_nocase?: InputMaybe; + owner_gt?: InputMaybe; + owner_gte?: InputMaybe; + owner_in?: InputMaybe>; + owner_lt?: InputMaybe; + owner_lte?: InputMaybe; + owner_not?: InputMaybe; + owner_not_contains?: InputMaybe; + owner_not_contains_nocase?: InputMaybe; + owner_not_ends_with?: InputMaybe; + owner_not_ends_with_nocase?: InputMaybe; + owner_not_in?: InputMaybe>; + owner_not_starts_with?: InputMaybe; + owner_not_starts_with_nocase?: InputMaybe; + owner_starts_with?: InputMaybe; + owner_starts_with_nocase?: InputMaybe; + parentDomain?: InputMaybe; + parentDomain_?: InputMaybe; + parentDomain_contains?: InputMaybe; + parentDomain_contains_nocase?: InputMaybe; + parentDomain_ends_with?: InputMaybe; + parentDomain_ends_with_nocase?: InputMaybe; + parentDomain_gt?: InputMaybe; + parentDomain_gte?: InputMaybe; + parentDomain_in?: InputMaybe>; + parentDomain_lt?: InputMaybe; + parentDomain_lte?: InputMaybe; + parentDomain_not?: InputMaybe; + parentDomain_not_contains?: InputMaybe; + parentDomain_not_contains_nocase?: InputMaybe; + parentDomain_not_ends_with?: InputMaybe; + parentDomain_not_ends_with_nocase?: InputMaybe; + parentDomain_not_in?: InputMaybe>; + parentDomain_not_starts_with?: InputMaybe; + parentDomain_not_starts_with_nocase?: InputMaybe; + parentDomain_starts_with?: InputMaybe; + parentDomain_starts_with_nocase?: InputMaybe; + transactionID?: InputMaybe; + transactionID_contains?: InputMaybe; + transactionID_gt?: InputMaybe; + transactionID_gte?: InputMaybe; + transactionID_in?: InputMaybe>; + transactionID_lt?: InputMaybe; + transactionID_lte?: InputMaybe; + transactionID_not?: InputMaybe; + transactionID_not_contains?: InputMaybe; + transactionID_not_in?: InputMaybe>; +}; + +export enum NewOwner_OrderBy { + BlockNumber = 'blockNumber', + Domain = 'domain', + DomainCreatedAt = 'domain__createdAt', + DomainExpiryDate = 'domain__expiryDate', + DomainId = 'domain__id', + DomainIsMigrated = 'domain__isMigrated', + DomainLabelName = 'domain__labelName', + DomainLabelhash = 'domain__labelhash', + DomainName = 'domain__name', + DomainSubdomainCount = 'domain__subdomainCount', + DomainTtl = 'domain__ttl', + Id = 'id', + Owner = 'owner', + OwnerId = 'owner__id', + ParentDomain = 'parentDomain', + ParentDomainCreatedAt = 'parentDomain__createdAt', + ParentDomainExpiryDate = 'parentDomain__expiryDate', + ParentDomainId = 'parentDomain__id', + ParentDomainIsMigrated = 'parentDomain__isMigrated', + ParentDomainLabelName = 'parentDomain__labelName', + ParentDomainLabelhash = 'parentDomain__labelhash', + ParentDomainName = 'parentDomain__name', + ParentDomainSubdomainCount = 'parentDomain__subdomainCount', + ParentDomainTtl = 'parentDomain__ttl', + TransactionId = 'transactionID' +} + +export type NewResolver = DomainEvent & { + __typename?: 'NewResolver'; + /** The block number at which the event occurred */ + blockNumber: Scalars['Int']['output']; + /** The domain name associated with the event */ + domain: Domain; + /** The unique identifier of the event */ + id: Scalars['ID']['output']; + /** The new resolver contract address associated with the domain */ + resolver: Resolver; + /** The transaction hash of the transaction that triggered the event */ + transactionID: Scalars['Bytes']['output']; +}; + +export type NewResolver_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + and?: InputMaybe>>; + blockNumber?: InputMaybe; + blockNumber_gt?: InputMaybe; + blockNumber_gte?: InputMaybe; + blockNumber_in?: InputMaybe>; + blockNumber_lt?: InputMaybe; + blockNumber_lte?: InputMaybe; + blockNumber_not?: InputMaybe; + blockNumber_not_in?: InputMaybe>; + domain?: InputMaybe; + domain_?: InputMaybe; + domain_contains?: InputMaybe; + domain_contains_nocase?: InputMaybe; + domain_ends_with?: InputMaybe; + domain_ends_with_nocase?: InputMaybe; + domain_gt?: InputMaybe; + domain_gte?: InputMaybe; + domain_in?: InputMaybe>; + domain_lt?: InputMaybe; + domain_lte?: InputMaybe; + domain_not?: InputMaybe; + domain_not_contains?: InputMaybe; + domain_not_contains_nocase?: InputMaybe; + domain_not_ends_with?: InputMaybe; + domain_not_ends_with_nocase?: InputMaybe; + domain_not_in?: InputMaybe>; + domain_not_starts_with?: InputMaybe; + domain_not_starts_with_nocase?: InputMaybe; + domain_starts_with?: InputMaybe; + domain_starts_with_nocase?: InputMaybe; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + or?: InputMaybe>>; + resolver?: InputMaybe; + resolver_?: InputMaybe; + resolver_contains?: InputMaybe; + resolver_contains_nocase?: InputMaybe; + resolver_ends_with?: InputMaybe; + resolver_ends_with_nocase?: InputMaybe; + resolver_gt?: InputMaybe; + resolver_gte?: InputMaybe; + resolver_in?: InputMaybe>; + resolver_lt?: InputMaybe; + resolver_lte?: InputMaybe; + resolver_not?: InputMaybe; + resolver_not_contains?: InputMaybe; + resolver_not_contains_nocase?: InputMaybe; + resolver_not_ends_with?: InputMaybe; + resolver_not_ends_with_nocase?: InputMaybe; + resolver_not_in?: InputMaybe>; + resolver_not_starts_with?: InputMaybe; + resolver_not_starts_with_nocase?: InputMaybe; + resolver_starts_with?: InputMaybe; + resolver_starts_with_nocase?: InputMaybe; + transactionID?: InputMaybe; + transactionID_contains?: InputMaybe; + transactionID_gt?: InputMaybe; + transactionID_gte?: InputMaybe; + transactionID_in?: InputMaybe>; + transactionID_lt?: InputMaybe; + transactionID_lte?: InputMaybe; + transactionID_not?: InputMaybe; + transactionID_not_contains?: InputMaybe; + transactionID_not_in?: InputMaybe>; +}; + +export enum NewResolver_OrderBy { + BlockNumber = 'blockNumber', + Domain = 'domain', + DomainCreatedAt = 'domain__createdAt', + DomainExpiryDate = 'domain__expiryDate', + DomainId = 'domain__id', + DomainIsMigrated = 'domain__isMigrated', + DomainLabelName = 'domain__labelName', + DomainLabelhash = 'domain__labelhash', + DomainName = 'domain__name', + DomainSubdomainCount = 'domain__subdomainCount', + DomainTtl = 'domain__ttl', + Id = 'id', + Resolver = 'resolver', + ResolverAddress = 'resolver__address', + ResolverContentHash = 'resolver__contentHash', + ResolverId = 'resolver__id', + TransactionId = 'transactionID' +} + +export type NewTtl = DomainEvent & { + __typename?: 'NewTTL'; + /** The block number at which the event occurred */ + blockNumber: Scalars['Int']['output']; + /** The domain name associated with the event */ + domain: Domain; + /** The unique identifier of the event */ + id: Scalars['ID']['output']; + /** The transaction hash of the transaction that triggered the event */ + transactionID: Scalars['Bytes']['output']; + /** The new TTL value (in seconds) associated with the domain */ + ttl: Scalars['BigInt']['output']; +}; + +export type NewTtl_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + and?: InputMaybe>>; + blockNumber?: InputMaybe; + blockNumber_gt?: InputMaybe; + blockNumber_gte?: InputMaybe; + blockNumber_in?: InputMaybe>; + blockNumber_lt?: InputMaybe; + blockNumber_lte?: InputMaybe; + blockNumber_not?: InputMaybe; + blockNumber_not_in?: InputMaybe>; + domain?: InputMaybe; + domain_?: InputMaybe; + domain_contains?: InputMaybe; + domain_contains_nocase?: InputMaybe; + domain_ends_with?: InputMaybe; + domain_ends_with_nocase?: InputMaybe; + domain_gt?: InputMaybe; + domain_gte?: InputMaybe; + domain_in?: InputMaybe>; + domain_lt?: InputMaybe; + domain_lte?: InputMaybe; + domain_not?: InputMaybe; + domain_not_contains?: InputMaybe; + domain_not_contains_nocase?: InputMaybe; + domain_not_ends_with?: InputMaybe; + domain_not_ends_with_nocase?: InputMaybe; + domain_not_in?: InputMaybe>; + domain_not_starts_with?: InputMaybe; + domain_not_starts_with_nocase?: InputMaybe; + domain_starts_with?: InputMaybe; + domain_starts_with_nocase?: InputMaybe; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + or?: InputMaybe>>; + transactionID?: InputMaybe; + transactionID_contains?: InputMaybe; + transactionID_gt?: InputMaybe; + transactionID_gte?: InputMaybe; + transactionID_in?: InputMaybe>; + transactionID_lt?: InputMaybe; + transactionID_lte?: InputMaybe; + transactionID_not?: InputMaybe; + transactionID_not_contains?: InputMaybe; + transactionID_not_in?: InputMaybe>; + ttl?: InputMaybe; + ttl_gt?: InputMaybe; + ttl_gte?: InputMaybe; + ttl_in?: InputMaybe>; + ttl_lt?: InputMaybe; + ttl_lte?: InputMaybe; + ttl_not?: InputMaybe; + ttl_not_in?: InputMaybe>; +}; + +export enum NewTtl_OrderBy { + BlockNumber = 'blockNumber', + Domain = 'domain', + DomainCreatedAt = 'domain__createdAt', + DomainExpiryDate = 'domain__expiryDate', + DomainId = 'domain__id', + DomainIsMigrated = 'domain__isMigrated', + DomainLabelName = 'domain__labelName', + DomainLabelhash = 'domain__labelhash', + DomainName = 'domain__name', + DomainSubdomainCount = 'domain__subdomainCount', + DomainTtl = 'domain__ttl', + Id = 'id', + TransactionId = 'transactionID', + Ttl = 'ttl' +} + +/** Defines the order direction, either ascending or descending */ +export enum OrderDirection { + Asc = 'asc', + Desc = 'desc' +} + +export type PubkeyChanged = ResolverEvent & { + __typename?: 'PubkeyChanged'; + /** Block number of the Ethereum block where the event occurred */ + blockNumber: Scalars['Int']['output']; + /** Concatenation of block number and log ID */ + id: Scalars['ID']['output']; + /** Used to derive relationships to Resolvers */ + resolver: Resolver; + /** Transaction hash of the Ethereum transaction where the event occurred */ + transactionID: Scalars['Bytes']['output']; + /** The x-coordinate of the new public key */ + x: Scalars['Bytes']['output']; + /** The y-coordinate of the new public key */ + y: Scalars['Bytes']['output']; +}; + +export type PubkeyChanged_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + and?: InputMaybe>>; + blockNumber?: InputMaybe; + blockNumber_gt?: InputMaybe; + blockNumber_gte?: InputMaybe; + blockNumber_in?: InputMaybe>; + blockNumber_lt?: InputMaybe; + blockNumber_lte?: InputMaybe; + blockNumber_not?: InputMaybe; + blockNumber_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + or?: InputMaybe>>; + resolver?: InputMaybe; + resolver_?: InputMaybe; + resolver_contains?: InputMaybe; + resolver_contains_nocase?: InputMaybe; + resolver_ends_with?: InputMaybe; + resolver_ends_with_nocase?: InputMaybe; + resolver_gt?: InputMaybe; + resolver_gte?: InputMaybe; + resolver_in?: InputMaybe>; + resolver_lt?: InputMaybe; + resolver_lte?: InputMaybe; + resolver_not?: InputMaybe; + resolver_not_contains?: InputMaybe; + resolver_not_contains_nocase?: InputMaybe; + resolver_not_ends_with?: InputMaybe; + resolver_not_ends_with_nocase?: InputMaybe; + resolver_not_in?: InputMaybe>; + resolver_not_starts_with?: InputMaybe; + resolver_not_starts_with_nocase?: InputMaybe; + resolver_starts_with?: InputMaybe; + resolver_starts_with_nocase?: InputMaybe; + transactionID?: InputMaybe; + transactionID_contains?: InputMaybe; + transactionID_gt?: InputMaybe; + transactionID_gte?: InputMaybe; + transactionID_in?: InputMaybe>; + transactionID_lt?: InputMaybe; + transactionID_lte?: InputMaybe; + transactionID_not?: InputMaybe; + transactionID_not_contains?: InputMaybe; + transactionID_not_in?: InputMaybe>; + x?: InputMaybe; + x_contains?: InputMaybe; + x_gt?: InputMaybe; + x_gte?: InputMaybe; + x_in?: InputMaybe>; + x_lt?: InputMaybe; + x_lte?: InputMaybe; + x_not?: InputMaybe; + x_not_contains?: InputMaybe; + x_not_in?: InputMaybe>; + y?: InputMaybe; + y_contains?: InputMaybe; + y_gt?: InputMaybe; + y_gte?: InputMaybe; + y_in?: InputMaybe>; + y_lt?: InputMaybe; + y_lte?: InputMaybe; + y_not?: InputMaybe; + y_not_contains?: InputMaybe; + y_not_in?: InputMaybe>; +}; + +export enum PubkeyChanged_OrderBy { + BlockNumber = 'blockNumber', + Id = 'id', + Resolver = 'resolver', + ResolverAddress = 'resolver__address', + ResolverContentHash = 'resolver__contentHash', + ResolverId = 'resolver__id', + TransactionId = 'transactionID', + X = 'x', + Y = 'y' +} + +export type Query = { + __typename?: 'Query'; + /** Access to subgraph metadata */ + _meta?: Maybe<_Meta_>; + abiChanged?: Maybe; + abiChangeds: Array; + account?: Maybe; + accounts: Array; + addrChanged?: Maybe; + addrChangeds: Array; + authorisationChanged?: Maybe; + authorisationChangeds: Array; + contenthashChanged?: Maybe; + contenthashChangeds: Array; + domain?: Maybe; + domainEvent?: Maybe; + domainEvents: Array; + domains: Array; + expiryExtended?: Maybe; + expiryExtendeds: Array; + fusesSet?: Maybe; + fusesSets: Array; + interfaceChanged?: Maybe; + interfaceChangeds: Array; + multicoinAddrChanged?: Maybe; + multicoinAddrChangeds: Array; + nameChanged?: Maybe; + nameChangeds: Array; + nameRegistered?: Maybe; + nameRegistereds: Array; + nameRenewed?: Maybe; + nameReneweds: Array; + nameTransferred?: Maybe; + nameTransferreds: Array; + nameUnwrapped?: Maybe; + nameUnwrappeds: Array; + nameWrapped?: Maybe; + nameWrappeds: Array; + newOwner?: Maybe; + newOwners: Array; + newResolver?: Maybe; + newResolvers: Array; + newTTL?: Maybe; + newTTLs: Array; + pubkeyChanged?: Maybe; + pubkeyChangeds: Array; + registration?: Maybe; + registrationEvent?: Maybe; + registrationEvents: Array; + registrations: Array; + resolver?: Maybe; + resolverEvent?: Maybe; + resolverEvents: Array; + resolvers: Array; + textChanged?: Maybe; + textChangeds: Array; + transfer?: Maybe; + transfers: Array; + versionChanged?: Maybe; + versionChangeds: Array; + wrappedDomain?: Maybe; + wrappedDomains: Array; + wrappedTransfer?: Maybe; + wrappedTransfers: Array; +}; + + +export type Query_MetaArgs = { + block?: InputMaybe; +}; + + +export type QueryAbiChangedArgs = { + block?: InputMaybe; + id: Scalars['ID']['input']; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type QueryAbiChangedsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + + +export type QueryAccountArgs = { + block?: InputMaybe; + id: Scalars['ID']['input']; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type QueryAccountsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + + +export type QueryAddrChangedArgs = { + block?: InputMaybe; + id: Scalars['ID']['input']; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type QueryAddrChangedsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + + +export type QueryAuthorisationChangedArgs = { + block?: InputMaybe; + id: Scalars['ID']['input']; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type QueryAuthorisationChangedsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + + +export type QueryContenthashChangedArgs = { + block?: InputMaybe; + id: Scalars['ID']['input']; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type QueryContenthashChangedsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + + +export type QueryDomainArgs = { + block?: InputMaybe; + id: Scalars['ID']['input']; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type QueryDomainEventArgs = { + block?: InputMaybe; + id: Scalars['ID']['input']; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type QueryDomainEventsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + + +export type QueryDomainsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + + +export type QueryExpiryExtendedArgs = { + block?: InputMaybe; + id: Scalars['ID']['input']; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type QueryExpiryExtendedsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + + +export type QueryFusesSetArgs = { + block?: InputMaybe; + id: Scalars['ID']['input']; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type QueryFusesSetsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + + +export type QueryInterfaceChangedArgs = { + block?: InputMaybe; + id: Scalars['ID']['input']; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type QueryInterfaceChangedsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + + +export type QueryMulticoinAddrChangedArgs = { + block?: InputMaybe; + id: Scalars['ID']['input']; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type QueryMulticoinAddrChangedsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + + +export type QueryNameChangedArgs = { + block?: InputMaybe; + id: Scalars['ID']['input']; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type QueryNameChangedsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + + +export type QueryNameRegisteredArgs = { + block?: InputMaybe; + id: Scalars['ID']['input']; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type QueryNameRegisteredsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + + +export type QueryNameRenewedArgs = { + block?: InputMaybe; + id: Scalars['ID']['input']; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type QueryNameRenewedsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + + +export type QueryNameTransferredArgs = { + block?: InputMaybe; + id: Scalars['ID']['input']; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type QueryNameTransferredsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + + +export type QueryNameUnwrappedArgs = { + block?: InputMaybe; + id: Scalars['ID']['input']; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type QueryNameUnwrappedsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + + +export type QueryNameWrappedArgs = { + block?: InputMaybe; + id: Scalars['ID']['input']; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type QueryNameWrappedsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + + +export type QueryNewOwnerArgs = { + block?: InputMaybe; + id: Scalars['ID']['input']; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type QueryNewOwnersArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + + +export type QueryNewResolverArgs = { + block?: InputMaybe; + id: Scalars['ID']['input']; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type QueryNewResolversArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + + +export type QueryNewTtlArgs = { + block?: InputMaybe; + id: Scalars['ID']['input']; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type QueryNewTtLsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + + +export type QueryPubkeyChangedArgs = { + block?: InputMaybe; + id: Scalars['ID']['input']; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type QueryPubkeyChangedsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + + +export type QueryRegistrationArgs = { + block?: InputMaybe; + id: Scalars['ID']['input']; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type QueryRegistrationEventArgs = { + block?: InputMaybe; + id: Scalars['ID']['input']; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type QueryRegistrationEventsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + + +export type QueryRegistrationsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + + +export type QueryResolverArgs = { + block?: InputMaybe; + id: Scalars['ID']['input']; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type QueryResolverEventArgs = { + block?: InputMaybe; + id: Scalars['ID']['input']; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type QueryResolverEventsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + + +export type QueryResolversArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + + +export type QueryTextChangedArgs = { + block?: InputMaybe; + id: Scalars['ID']['input']; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type QueryTextChangedsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + + +export type QueryTransferArgs = { + block?: InputMaybe; + id: Scalars['ID']['input']; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type QueryTransfersArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + + +export type QueryVersionChangedArgs = { + block?: InputMaybe; + id: Scalars['ID']['input']; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type QueryVersionChangedsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + + +export type QueryWrappedDomainArgs = { + block?: InputMaybe; + id: Scalars['ID']['input']; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type QueryWrappedDomainsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + + +export type QueryWrappedTransferArgs = { + block?: InputMaybe; + id: Scalars['ID']['input']; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type QueryWrappedTransfersArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type Registration = { + __typename?: 'Registration'; + /** The cost associated with the domain registration */ + cost?: Maybe; + /** The domain name associated with the registration */ + domain: Domain; + /** The events associated with the domain registration */ + events: Array; + /** The expiry date of the domain */ + expiryDate: Scalars['BigInt']['output']; + /** The unique identifier of the registration */ + id: Scalars['ID']['output']; + /** The human-readable label name associated with the domain registration */ + labelName?: Maybe; + /** The account that registered the domain */ + registrant: Account; + /** The registration date of the domain */ + registrationDate: Scalars['BigInt']['output']; +}; + + +export type RegistrationEventsArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +export type RegistrationEvent = { + /** The block number of the event */ + blockNumber: Scalars['Int']['output']; + /** The unique identifier of the registration event */ + id: Scalars['ID']['output']; + /** The registration associated with the event */ + registration: Registration; + /** The transaction ID associated with the event */ + transactionID: Scalars['Bytes']['output']; +}; + +export type RegistrationEvent_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + and?: InputMaybe>>; + blockNumber?: InputMaybe; + blockNumber_gt?: InputMaybe; + blockNumber_gte?: InputMaybe; + blockNumber_in?: InputMaybe>; + blockNumber_lt?: InputMaybe; + blockNumber_lte?: InputMaybe; + blockNumber_not?: InputMaybe; + blockNumber_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + or?: InputMaybe>>; + registration?: InputMaybe; + registration_?: InputMaybe; + registration_contains?: InputMaybe; + registration_contains_nocase?: InputMaybe; + registration_ends_with?: InputMaybe; + registration_ends_with_nocase?: InputMaybe; + registration_gt?: InputMaybe; + registration_gte?: InputMaybe; + registration_in?: InputMaybe>; + registration_lt?: InputMaybe; + registration_lte?: InputMaybe; + registration_not?: InputMaybe; + registration_not_contains?: InputMaybe; + registration_not_contains_nocase?: InputMaybe; + registration_not_ends_with?: InputMaybe; + registration_not_ends_with_nocase?: InputMaybe; + registration_not_in?: InputMaybe>; + registration_not_starts_with?: InputMaybe; + registration_not_starts_with_nocase?: InputMaybe; + registration_starts_with?: InputMaybe; + registration_starts_with_nocase?: InputMaybe; + transactionID?: InputMaybe; + transactionID_contains?: InputMaybe; + transactionID_gt?: InputMaybe; + transactionID_gte?: InputMaybe; + transactionID_in?: InputMaybe>; + transactionID_lt?: InputMaybe; + transactionID_lte?: InputMaybe; + transactionID_not?: InputMaybe; + transactionID_not_contains?: InputMaybe; + transactionID_not_in?: InputMaybe>; +}; + +export enum RegistrationEvent_OrderBy { + BlockNumber = 'blockNumber', + Id = 'id', + Registration = 'registration', + RegistrationCost = 'registration__cost', + RegistrationExpiryDate = 'registration__expiryDate', + RegistrationId = 'registration__id', + RegistrationLabelName = 'registration__labelName', + RegistrationRegistrationDate = 'registration__registrationDate', + TransactionId = 'transactionID' +} + +export type Registration_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + and?: InputMaybe>>; + cost?: InputMaybe; + cost_gt?: InputMaybe; + cost_gte?: InputMaybe; + cost_in?: InputMaybe>; + cost_lt?: InputMaybe; + cost_lte?: InputMaybe; + cost_not?: InputMaybe; + cost_not_in?: InputMaybe>; + domain?: InputMaybe; + domain_?: InputMaybe; + domain_contains?: InputMaybe; + domain_contains_nocase?: InputMaybe; + domain_ends_with?: InputMaybe; + domain_ends_with_nocase?: InputMaybe; + domain_gt?: InputMaybe; + domain_gte?: InputMaybe; + domain_in?: InputMaybe>; + domain_lt?: InputMaybe; + domain_lte?: InputMaybe; + domain_not?: InputMaybe; + domain_not_contains?: InputMaybe; + domain_not_contains_nocase?: InputMaybe; + domain_not_ends_with?: InputMaybe; + domain_not_ends_with_nocase?: InputMaybe; + domain_not_in?: InputMaybe>; + domain_not_starts_with?: InputMaybe; + domain_not_starts_with_nocase?: InputMaybe; + domain_starts_with?: InputMaybe; + domain_starts_with_nocase?: InputMaybe; + events_?: InputMaybe; + expiryDate?: InputMaybe; + expiryDate_gt?: InputMaybe; + expiryDate_gte?: InputMaybe; + expiryDate_in?: InputMaybe>; + expiryDate_lt?: InputMaybe; + expiryDate_lte?: InputMaybe; + expiryDate_not?: InputMaybe; + expiryDate_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + labelName?: InputMaybe; + labelName_contains?: InputMaybe; + labelName_contains_nocase?: InputMaybe; + labelName_ends_with?: InputMaybe; + labelName_ends_with_nocase?: InputMaybe; + labelName_gt?: InputMaybe; + labelName_gte?: InputMaybe; + labelName_in?: InputMaybe>; + labelName_lt?: InputMaybe; + labelName_lte?: InputMaybe; + labelName_not?: InputMaybe; + labelName_not_contains?: InputMaybe; + labelName_not_contains_nocase?: InputMaybe; + labelName_not_ends_with?: InputMaybe; + labelName_not_ends_with_nocase?: InputMaybe; + labelName_not_in?: InputMaybe>; + labelName_not_starts_with?: InputMaybe; + labelName_not_starts_with_nocase?: InputMaybe; + labelName_starts_with?: InputMaybe; + labelName_starts_with_nocase?: InputMaybe; + or?: InputMaybe>>; + registrant?: InputMaybe; + registrant_?: InputMaybe; + registrant_contains?: InputMaybe; + registrant_contains_nocase?: InputMaybe; + registrant_ends_with?: InputMaybe; + registrant_ends_with_nocase?: InputMaybe; + registrant_gt?: InputMaybe; + registrant_gte?: InputMaybe; + registrant_in?: InputMaybe>; + registrant_lt?: InputMaybe; + registrant_lte?: InputMaybe; + registrant_not?: InputMaybe; + registrant_not_contains?: InputMaybe; + registrant_not_contains_nocase?: InputMaybe; + registrant_not_ends_with?: InputMaybe; + registrant_not_ends_with_nocase?: InputMaybe; + registrant_not_in?: InputMaybe>; + registrant_not_starts_with?: InputMaybe; + registrant_not_starts_with_nocase?: InputMaybe; + registrant_starts_with?: InputMaybe; + registrant_starts_with_nocase?: InputMaybe; + registrationDate?: InputMaybe; + registrationDate_gt?: InputMaybe; + registrationDate_gte?: InputMaybe; + registrationDate_in?: InputMaybe>; + registrationDate_lt?: InputMaybe; + registrationDate_lte?: InputMaybe; + registrationDate_not?: InputMaybe; + registrationDate_not_in?: InputMaybe>; +}; + +export enum Registration_OrderBy { + Cost = 'cost', + Domain = 'domain', + DomainCreatedAt = 'domain__createdAt', + DomainExpiryDate = 'domain__expiryDate', + DomainId = 'domain__id', + DomainIsMigrated = 'domain__isMigrated', + DomainLabelName = 'domain__labelName', + DomainLabelhash = 'domain__labelhash', + DomainName = 'domain__name', + DomainSubdomainCount = 'domain__subdomainCount', + DomainTtl = 'domain__ttl', + Events = 'events', + ExpiryDate = 'expiryDate', + Id = 'id', + LabelName = 'labelName', + Registrant = 'registrant', + RegistrantId = 'registrant__id', + RegistrationDate = 'registrationDate' +} + +export type Resolver = { + __typename?: 'Resolver'; + /** The current value of the 'addr' record for this resolver, as determined by the associated events */ + addr?: Maybe; + /** The address of the resolver contract */ + address: Scalars['Bytes']['output']; + /** The set of observed SLIP-44 coin types for this resolver */ + coinTypes?: Maybe>; + /** The content hash for this resolver, in binary format */ + contentHash?: Maybe; + /** The domain that this resolver is associated with */ + domain?: Maybe; + /** The events associated with this resolver */ + events: Array; + /** The unique identifier for this resolver, which is a concatenation of the resolver address and the domain namehash */ + id: Scalars['ID']['output']; + /** The set of observed text record keys for this resolver */ + texts?: Maybe>; +}; + + +export type ResolverEventsArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +export type ResolverEvent = { + /** The block number that the event occurred on */ + blockNumber: Scalars['Int']['output']; + /** Concatenation of block number and log ID */ + id: Scalars['ID']['output']; + /** Used to derive relationships to Resolvers */ + resolver: Resolver; + /** The transaction hash of the event */ + transactionID: Scalars['Bytes']['output']; +}; + +export type ResolverEvent_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + and?: InputMaybe>>; + blockNumber?: InputMaybe; + blockNumber_gt?: InputMaybe; + blockNumber_gte?: InputMaybe; + blockNumber_in?: InputMaybe>; + blockNumber_lt?: InputMaybe; + blockNumber_lte?: InputMaybe; + blockNumber_not?: InputMaybe; + blockNumber_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + or?: InputMaybe>>; + resolver?: InputMaybe; + resolver_?: InputMaybe; + resolver_contains?: InputMaybe; + resolver_contains_nocase?: InputMaybe; + resolver_ends_with?: InputMaybe; + resolver_ends_with_nocase?: InputMaybe; + resolver_gt?: InputMaybe; + resolver_gte?: InputMaybe; + resolver_in?: InputMaybe>; + resolver_lt?: InputMaybe; + resolver_lte?: InputMaybe; + resolver_not?: InputMaybe; + resolver_not_contains?: InputMaybe; + resolver_not_contains_nocase?: InputMaybe; + resolver_not_ends_with?: InputMaybe; + resolver_not_ends_with_nocase?: InputMaybe; + resolver_not_in?: InputMaybe>; + resolver_not_starts_with?: InputMaybe; + resolver_not_starts_with_nocase?: InputMaybe; + resolver_starts_with?: InputMaybe; + resolver_starts_with_nocase?: InputMaybe; + transactionID?: InputMaybe; + transactionID_contains?: InputMaybe; + transactionID_gt?: InputMaybe; + transactionID_gte?: InputMaybe; + transactionID_in?: InputMaybe>; + transactionID_lt?: InputMaybe; + transactionID_lte?: InputMaybe; + transactionID_not?: InputMaybe; + transactionID_not_contains?: InputMaybe; + transactionID_not_in?: InputMaybe>; +}; + +export enum ResolverEvent_OrderBy { + BlockNumber = 'blockNumber', + Id = 'id', + Resolver = 'resolver', + ResolverAddress = 'resolver__address', + ResolverContentHash = 'resolver__contentHash', + ResolverId = 'resolver__id', + TransactionId = 'transactionID' +} + +export type Resolver_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + addr?: InputMaybe; + addr_?: InputMaybe; + addr_contains?: InputMaybe; + addr_contains_nocase?: InputMaybe; + addr_ends_with?: InputMaybe; + addr_ends_with_nocase?: InputMaybe; + addr_gt?: InputMaybe; + addr_gte?: InputMaybe; + addr_in?: InputMaybe>; + addr_lt?: InputMaybe; + addr_lte?: InputMaybe; + addr_not?: InputMaybe; + addr_not_contains?: InputMaybe; + addr_not_contains_nocase?: InputMaybe; + addr_not_ends_with?: InputMaybe; + addr_not_ends_with_nocase?: InputMaybe; + addr_not_in?: InputMaybe>; + addr_not_starts_with?: InputMaybe; + addr_not_starts_with_nocase?: InputMaybe; + addr_starts_with?: InputMaybe; + addr_starts_with_nocase?: InputMaybe; + address?: InputMaybe; + address_contains?: InputMaybe; + address_gt?: InputMaybe; + address_gte?: InputMaybe; + address_in?: InputMaybe>; + address_lt?: InputMaybe; + address_lte?: InputMaybe; + address_not?: InputMaybe; + address_not_contains?: InputMaybe; + address_not_in?: InputMaybe>; + and?: InputMaybe>>; + coinTypes?: InputMaybe>; + coinTypes_contains?: InputMaybe>; + coinTypes_contains_nocase?: InputMaybe>; + coinTypes_not?: InputMaybe>; + coinTypes_not_contains?: InputMaybe>; + coinTypes_not_contains_nocase?: InputMaybe>; + contentHash?: InputMaybe; + contentHash_contains?: InputMaybe; + contentHash_gt?: InputMaybe; + contentHash_gte?: InputMaybe; + contentHash_in?: InputMaybe>; + contentHash_lt?: InputMaybe; + contentHash_lte?: InputMaybe; + contentHash_not?: InputMaybe; + contentHash_not_contains?: InputMaybe; + contentHash_not_in?: InputMaybe>; + domain?: InputMaybe; + domain_?: InputMaybe; + domain_contains?: InputMaybe; + domain_contains_nocase?: InputMaybe; + domain_ends_with?: InputMaybe; + domain_ends_with_nocase?: InputMaybe; + domain_gt?: InputMaybe; + domain_gte?: InputMaybe; + domain_in?: InputMaybe>; + domain_lt?: InputMaybe; + domain_lte?: InputMaybe; + domain_not?: InputMaybe; + domain_not_contains?: InputMaybe; + domain_not_contains_nocase?: InputMaybe; + domain_not_ends_with?: InputMaybe; + domain_not_ends_with_nocase?: InputMaybe; + domain_not_in?: InputMaybe>; + domain_not_starts_with?: InputMaybe; + domain_not_starts_with_nocase?: InputMaybe; + domain_starts_with?: InputMaybe; + domain_starts_with_nocase?: InputMaybe; + events_?: InputMaybe; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + or?: InputMaybe>>; + texts?: InputMaybe>; + texts_contains?: InputMaybe>; + texts_contains_nocase?: InputMaybe>; + texts_not?: InputMaybe>; + texts_not_contains?: InputMaybe>; + texts_not_contains_nocase?: InputMaybe>; +}; + +export enum Resolver_OrderBy { + Addr = 'addr', + AddrId = 'addr__id', + Address = 'address', + CoinTypes = 'coinTypes', + ContentHash = 'contentHash', + Domain = 'domain', + DomainCreatedAt = 'domain__createdAt', + DomainExpiryDate = 'domain__expiryDate', + DomainId = 'domain__id', + DomainIsMigrated = 'domain__isMigrated', + DomainLabelName = 'domain__labelName', + DomainLabelhash = 'domain__labelhash', + DomainName = 'domain__name', + DomainSubdomainCount = 'domain__subdomainCount', + DomainTtl = 'domain__ttl', + Events = 'events', + Id = 'id', + Texts = 'texts' +} + +export type Subscription = { + __typename?: 'Subscription'; + /** Access to subgraph metadata */ + _meta?: Maybe<_Meta_>; + abiChanged?: Maybe; + abiChangeds: Array; + account?: Maybe; + accounts: Array; + addrChanged?: Maybe; + addrChangeds: Array; + authorisationChanged?: Maybe; + authorisationChangeds: Array; + contenthashChanged?: Maybe; + contenthashChangeds: Array; + domain?: Maybe; + domainEvent?: Maybe; + domainEvents: Array; + domains: Array; + expiryExtended?: Maybe; + expiryExtendeds: Array; + fusesSet?: Maybe; + fusesSets: Array; + interfaceChanged?: Maybe; + interfaceChangeds: Array; + multicoinAddrChanged?: Maybe; + multicoinAddrChangeds: Array; + nameChanged?: Maybe; + nameChangeds: Array; + nameRegistered?: Maybe; + nameRegistereds: Array; + nameRenewed?: Maybe; + nameReneweds: Array; + nameTransferred?: Maybe; + nameTransferreds: Array; + nameUnwrapped?: Maybe; + nameUnwrappeds: Array; + nameWrapped?: Maybe; + nameWrappeds: Array; + newOwner?: Maybe; + newOwners: Array; + newResolver?: Maybe; + newResolvers: Array; + newTTL?: Maybe; + newTTLs: Array; + pubkeyChanged?: Maybe; + pubkeyChangeds: Array; + registration?: Maybe; + registrationEvent?: Maybe; + registrationEvents: Array; + registrations: Array; + resolver?: Maybe; + resolverEvent?: Maybe; + resolverEvents: Array; + resolvers: Array; + textChanged?: Maybe; + textChangeds: Array; + transfer?: Maybe; + transfers: Array; + versionChanged?: Maybe; + versionChangeds: Array; + wrappedDomain?: Maybe; + wrappedDomains: Array; + wrappedTransfer?: Maybe; + wrappedTransfers: Array; +}; + + +export type Subscription_MetaArgs = { + block?: InputMaybe; +}; + + +export type SubscriptionAbiChangedArgs = { + block?: InputMaybe; + id: Scalars['ID']['input']; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type SubscriptionAbiChangedsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + + +export type SubscriptionAccountArgs = { + block?: InputMaybe; + id: Scalars['ID']['input']; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type SubscriptionAccountsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + + +export type SubscriptionAddrChangedArgs = { + block?: InputMaybe; + id: Scalars['ID']['input']; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type SubscriptionAddrChangedsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + + +export type SubscriptionAuthorisationChangedArgs = { + block?: InputMaybe; + id: Scalars['ID']['input']; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type SubscriptionAuthorisationChangedsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + + +export type SubscriptionContenthashChangedArgs = { + block?: InputMaybe; + id: Scalars['ID']['input']; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type SubscriptionContenthashChangedsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + + +export type SubscriptionDomainArgs = { + block?: InputMaybe; + id: Scalars['ID']['input']; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type SubscriptionDomainEventArgs = { + block?: InputMaybe; + id: Scalars['ID']['input']; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type SubscriptionDomainEventsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + + +export type SubscriptionDomainsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + + +export type SubscriptionExpiryExtendedArgs = { + block?: InputMaybe; + id: Scalars['ID']['input']; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type SubscriptionExpiryExtendedsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + + +export type SubscriptionFusesSetArgs = { + block?: InputMaybe; + id: Scalars['ID']['input']; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type SubscriptionFusesSetsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + + +export type SubscriptionInterfaceChangedArgs = { + block?: InputMaybe; + id: Scalars['ID']['input']; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type SubscriptionInterfaceChangedsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + + +export type SubscriptionMulticoinAddrChangedArgs = { + block?: InputMaybe; + id: Scalars['ID']['input']; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type SubscriptionMulticoinAddrChangedsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + + +export type SubscriptionNameChangedArgs = { + block?: InputMaybe; + id: Scalars['ID']['input']; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type SubscriptionNameChangedsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + + +export type SubscriptionNameRegisteredArgs = { + block?: InputMaybe; + id: Scalars['ID']['input']; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type SubscriptionNameRegisteredsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + + +export type SubscriptionNameRenewedArgs = { + block?: InputMaybe; + id: Scalars['ID']['input']; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type SubscriptionNameRenewedsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + + +export type SubscriptionNameTransferredArgs = { + block?: InputMaybe; + id: Scalars['ID']['input']; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type SubscriptionNameTransferredsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + + +export type SubscriptionNameUnwrappedArgs = { + block?: InputMaybe; + id: Scalars['ID']['input']; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type SubscriptionNameUnwrappedsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + + +export type SubscriptionNameWrappedArgs = { + block?: InputMaybe; + id: Scalars['ID']['input']; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type SubscriptionNameWrappedsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + + +export type SubscriptionNewOwnerArgs = { + block?: InputMaybe; + id: Scalars['ID']['input']; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type SubscriptionNewOwnersArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + + +export type SubscriptionNewResolverArgs = { + block?: InputMaybe; + id: Scalars['ID']['input']; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type SubscriptionNewResolversArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + + +export type SubscriptionNewTtlArgs = { + block?: InputMaybe; + id: Scalars['ID']['input']; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type SubscriptionNewTtLsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + + +export type SubscriptionPubkeyChangedArgs = { + block?: InputMaybe; + id: Scalars['ID']['input']; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type SubscriptionPubkeyChangedsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + + +export type SubscriptionRegistrationArgs = { + block?: InputMaybe; + id: Scalars['ID']['input']; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type SubscriptionRegistrationEventArgs = { + block?: InputMaybe; + id: Scalars['ID']['input']; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type SubscriptionRegistrationEventsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + + +export type SubscriptionRegistrationsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + + +export type SubscriptionResolverArgs = { + block?: InputMaybe; + id: Scalars['ID']['input']; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type SubscriptionResolverEventArgs = { + block?: InputMaybe; + id: Scalars['ID']['input']; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type SubscriptionResolverEventsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + + +export type SubscriptionResolversArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + + +export type SubscriptionTextChangedArgs = { + block?: InputMaybe; + id: Scalars['ID']['input']; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type SubscriptionTextChangedsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + + +export type SubscriptionTransferArgs = { + block?: InputMaybe; + id: Scalars['ID']['input']; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type SubscriptionTransfersArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + + +export type SubscriptionVersionChangedArgs = { + block?: InputMaybe; + id: Scalars['ID']['input']; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type SubscriptionVersionChangedsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + + +export type SubscriptionWrappedDomainArgs = { + block?: InputMaybe; + id: Scalars['ID']['input']; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type SubscriptionWrappedDomainsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + + +export type SubscriptionWrappedTransferArgs = { + block?: InputMaybe; + id: Scalars['ID']['input']; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type SubscriptionWrappedTransfersArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type TextChanged = ResolverEvent & { + __typename?: 'TextChanged'; + /** Block number of the Ethereum block in which the event occurred */ + blockNumber: Scalars['Int']['output']; + /** Concatenation of block number and log ID */ + id: Scalars['ID']['output']; + /** The key of the text record that was changed */ + key: Scalars['String']['output']; + /** Used to derive relationships to Resolvers */ + resolver: Resolver; + /** Hash of the Ethereum transaction in which the event occurred */ + transactionID: Scalars['Bytes']['output']; + /** The new value of the text record that was changed */ + value?: Maybe; +}; + +export type TextChanged_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + and?: InputMaybe>>; + blockNumber?: InputMaybe; + blockNumber_gt?: InputMaybe; + blockNumber_gte?: InputMaybe; + blockNumber_in?: InputMaybe>; + blockNumber_lt?: InputMaybe; + blockNumber_lte?: InputMaybe; + blockNumber_not?: InputMaybe; + blockNumber_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + key?: InputMaybe; + key_contains?: InputMaybe; + key_contains_nocase?: InputMaybe; + key_ends_with?: InputMaybe; + key_ends_with_nocase?: InputMaybe; + key_gt?: InputMaybe; + key_gte?: InputMaybe; + key_in?: InputMaybe>; + key_lt?: InputMaybe; + key_lte?: InputMaybe; + key_not?: InputMaybe; + key_not_contains?: InputMaybe; + key_not_contains_nocase?: InputMaybe; + key_not_ends_with?: InputMaybe; + key_not_ends_with_nocase?: InputMaybe; + key_not_in?: InputMaybe>; + key_not_starts_with?: InputMaybe; + key_not_starts_with_nocase?: InputMaybe; + key_starts_with?: InputMaybe; + key_starts_with_nocase?: InputMaybe; + or?: InputMaybe>>; + resolver?: InputMaybe; + resolver_?: InputMaybe; + resolver_contains?: InputMaybe; + resolver_contains_nocase?: InputMaybe; + resolver_ends_with?: InputMaybe; + resolver_ends_with_nocase?: InputMaybe; + resolver_gt?: InputMaybe; + resolver_gte?: InputMaybe; + resolver_in?: InputMaybe>; + resolver_lt?: InputMaybe; + resolver_lte?: InputMaybe; + resolver_not?: InputMaybe; + resolver_not_contains?: InputMaybe; + resolver_not_contains_nocase?: InputMaybe; + resolver_not_ends_with?: InputMaybe; + resolver_not_ends_with_nocase?: InputMaybe; + resolver_not_in?: InputMaybe>; + resolver_not_starts_with?: InputMaybe; + resolver_not_starts_with_nocase?: InputMaybe; + resolver_starts_with?: InputMaybe; + resolver_starts_with_nocase?: InputMaybe; + transactionID?: InputMaybe; + transactionID_contains?: InputMaybe; + transactionID_gt?: InputMaybe; + transactionID_gte?: InputMaybe; + transactionID_in?: InputMaybe>; + transactionID_lt?: InputMaybe; + transactionID_lte?: InputMaybe; + transactionID_not?: InputMaybe; + transactionID_not_contains?: InputMaybe; + transactionID_not_in?: InputMaybe>; + value?: InputMaybe; + value_contains?: InputMaybe; + value_contains_nocase?: InputMaybe; + value_ends_with?: InputMaybe; + value_ends_with_nocase?: InputMaybe; + value_gt?: InputMaybe; + value_gte?: InputMaybe; + value_in?: InputMaybe>; + value_lt?: InputMaybe; + value_lte?: InputMaybe; + value_not?: InputMaybe; + value_not_contains?: InputMaybe; + value_not_contains_nocase?: InputMaybe; + value_not_ends_with?: InputMaybe; + value_not_ends_with_nocase?: InputMaybe; + value_not_in?: InputMaybe>; + value_not_starts_with?: InputMaybe; + value_not_starts_with_nocase?: InputMaybe; + value_starts_with?: InputMaybe; + value_starts_with_nocase?: InputMaybe; +}; + +export enum TextChanged_OrderBy { + BlockNumber = 'blockNumber', + Id = 'id', + Key = 'key', + Resolver = 'resolver', + ResolverAddress = 'resolver__address', + ResolverContentHash = 'resolver__contentHash', + ResolverId = 'resolver__id', + TransactionId = 'transactionID', + Value = 'value' +} + +export type Transfer = DomainEvent & { + __typename?: 'Transfer'; + /** The block number at which the event occurred */ + blockNumber: Scalars['Int']['output']; + /** The domain name associated with the event */ + domain: Domain; + /** The unique identifier of the event */ + id: Scalars['ID']['output']; + /** The account that owns the domain after the transfer */ + owner: Account; + /** The transaction hash of the transaction that triggered the event */ + transactionID: Scalars['Bytes']['output']; +}; + +export type Transfer_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + and?: InputMaybe>>; + blockNumber?: InputMaybe; + blockNumber_gt?: InputMaybe; + blockNumber_gte?: InputMaybe; + blockNumber_in?: InputMaybe>; + blockNumber_lt?: InputMaybe; + blockNumber_lte?: InputMaybe; + blockNumber_not?: InputMaybe; + blockNumber_not_in?: InputMaybe>; + domain?: InputMaybe; + domain_?: InputMaybe; + domain_contains?: InputMaybe; + domain_contains_nocase?: InputMaybe; + domain_ends_with?: InputMaybe; + domain_ends_with_nocase?: InputMaybe; + domain_gt?: InputMaybe; + domain_gte?: InputMaybe; + domain_in?: InputMaybe>; + domain_lt?: InputMaybe; + domain_lte?: InputMaybe; + domain_not?: InputMaybe; + domain_not_contains?: InputMaybe; + domain_not_contains_nocase?: InputMaybe; + domain_not_ends_with?: InputMaybe; + domain_not_ends_with_nocase?: InputMaybe; + domain_not_in?: InputMaybe>; + domain_not_starts_with?: InputMaybe; + domain_not_starts_with_nocase?: InputMaybe; + domain_starts_with?: InputMaybe; + domain_starts_with_nocase?: InputMaybe; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + or?: InputMaybe>>; + owner?: InputMaybe; + owner_?: InputMaybe; + owner_contains?: InputMaybe; + owner_contains_nocase?: InputMaybe; + owner_ends_with?: InputMaybe; + owner_ends_with_nocase?: InputMaybe; + owner_gt?: InputMaybe; + owner_gte?: InputMaybe; + owner_in?: InputMaybe>; + owner_lt?: InputMaybe; + owner_lte?: InputMaybe; + owner_not?: InputMaybe; + owner_not_contains?: InputMaybe; + owner_not_contains_nocase?: InputMaybe; + owner_not_ends_with?: InputMaybe; + owner_not_ends_with_nocase?: InputMaybe; + owner_not_in?: InputMaybe>; + owner_not_starts_with?: InputMaybe; + owner_not_starts_with_nocase?: InputMaybe; + owner_starts_with?: InputMaybe; + owner_starts_with_nocase?: InputMaybe; + transactionID?: InputMaybe; + transactionID_contains?: InputMaybe; + transactionID_gt?: InputMaybe; + transactionID_gte?: InputMaybe; + transactionID_in?: InputMaybe>; + transactionID_lt?: InputMaybe; + transactionID_lte?: InputMaybe; + transactionID_not?: InputMaybe; + transactionID_not_contains?: InputMaybe; + transactionID_not_in?: InputMaybe>; +}; + +export enum Transfer_OrderBy { + BlockNumber = 'blockNumber', + Domain = 'domain', + DomainCreatedAt = 'domain__createdAt', + DomainExpiryDate = 'domain__expiryDate', + DomainId = 'domain__id', + DomainIsMigrated = 'domain__isMigrated', + DomainLabelName = 'domain__labelName', + DomainLabelhash = 'domain__labelhash', + DomainName = 'domain__name', + DomainSubdomainCount = 'domain__subdomainCount', + DomainTtl = 'domain__ttl', + Id = 'id', + Owner = 'owner', + OwnerId = 'owner__id', + TransactionId = 'transactionID' +} + +export type VersionChanged = ResolverEvent & { + __typename?: 'VersionChanged'; + /** The block number at which the event occurred */ + blockNumber: Scalars['Int']['output']; + /** Unique identifier for this event */ + id: Scalars['ID']['output']; + /** The resolver associated with this event */ + resolver: Resolver; + /** The transaction hash associated with the event */ + transactionID: Scalars['Bytes']['output']; + /** The new version number of the resolver */ + version: Scalars['BigInt']['output']; +}; + +export type VersionChanged_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + and?: InputMaybe>>; + blockNumber?: InputMaybe; + blockNumber_gt?: InputMaybe; + blockNumber_gte?: InputMaybe; + blockNumber_in?: InputMaybe>; + blockNumber_lt?: InputMaybe; + blockNumber_lte?: InputMaybe; + blockNumber_not?: InputMaybe; + blockNumber_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + or?: InputMaybe>>; + resolver?: InputMaybe; + resolver_?: InputMaybe; + resolver_contains?: InputMaybe; + resolver_contains_nocase?: InputMaybe; + resolver_ends_with?: InputMaybe; + resolver_ends_with_nocase?: InputMaybe; + resolver_gt?: InputMaybe; + resolver_gte?: InputMaybe; + resolver_in?: InputMaybe>; + resolver_lt?: InputMaybe; + resolver_lte?: InputMaybe; + resolver_not?: InputMaybe; + resolver_not_contains?: InputMaybe; + resolver_not_contains_nocase?: InputMaybe; + resolver_not_ends_with?: InputMaybe; + resolver_not_ends_with_nocase?: InputMaybe; + resolver_not_in?: InputMaybe>; + resolver_not_starts_with?: InputMaybe; + resolver_not_starts_with_nocase?: InputMaybe; + resolver_starts_with?: InputMaybe; + resolver_starts_with_nocase?: InputMaybe; + transactionID?: InputMaybe; + transactionID_contains?: InputMaybe; + transactionID_gt?: InputMaybe; + transactionID_gte?: InputMaybe; + transactionID_in?: InputMaybe>; + transactionID_lt?: InputMaybe; + transactionID_lte?: InputMaybe; + transactionID_not?: InputMaybe; + transactionID_not_contains?: InputMaybe; + transactionID_not_in?: InputMaybe>; + version?: InputMaybe; + version_gt?: InputMaybe; + version_gte?: InputMaybe; + version_in?: InputMaybe>; + version_lt?: InputMaybe; + version_lte?: InputMaybe; + version_not?: InputMaybe; + version_not_in?: InputMaybe>; +}; + +export enum VersionChanged_OrderBy { + BlockNumber = 'blockNumber', + Id = 'id', + Resolver = 'resolver', + ResolverAddress = 'resolver__address', + ResolverContentHash = 'resolver__contentHash', + ResolverId = 'resolver__id', + TransactionId = 'transactionID', + Version = 'version' +} + +export type WrappedDomain = { + __typename?: 'WrappedDomain'; + /** The domain that is wrapped by this WrappedDomain */ + domain: Domain; + /** The expiry date of the wrapped domain */ + expiryDate: Scalars['BigInt']['output']; + /** The number of fuses remaining on the wrapped domain */ + fuses: Scalars['Int']['output']; + /** unique identifier for each instance of the WrappedDomain entity */ + id: Scalars['ID']['output']; + /** The name of the wrapped domain */ + name?: Maybe; + /** The account that owns this WrappedDomain */ + owner: Account; +}; + +export type WrappedDomain_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + and?: InputMaybe>>; + domain?: InputMaybe; + domain_?: InputMaybe; + domain_contains?: InputMaybe; + domain_contains_nocase?: InputMaybe; + domain_ends_with?: InputMaybe; + domain_ends_with_nocase?: InputMaybe; + domain_gt?: InputMaybe; + domain_gte?: InputMaybe; + domain_in?: InputMaybe>; + domain_lt?: InputMaybe; + domain_lte?: InputMaybe; + domain_not?: InputMaybe; + domain_not_contains?: InputMaybe; + domain_not_contains_nocase?: InputMaybe; + domain_not_ends_with?: InputMaybe; + domain_not_ends_with_nocase?: InputMaybe; + domain_not_in?: InputMaybe>; + domain_not_starts_with?: InputMaybe; + domain_not_starts_with_nocase?: InputMaybe; + domain_starts_with?: InputMaybe; + domain_starts_with_nocase?: InputMaybe; + expiryDate?: InputMaybe; + expiryDate_gt?: InputMaybe; + expiryDate_gte?: InputMaybe; + expiryDate_in?: InputMaybe>; + expiryDate_lt?: InputMaybe; + expiryDate_lte?: InputMaybe; + expiryDate_not?: InputMaybe; + expiryDate_not_in?: InputMaybe>; + fuses?: InputMaybe; + fuses_gt?: InputMaybe; + fuses_gte?: InputMaybe; + fuses_in?: InputMaybe>; + fuses_lt?: InputMaybe; + fuses_lte?: InputMaybe; + fuses_not?: InputMaybe; + fuses_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + name?: InputMaybe; + name_contains?: InputMaybe; + name_contains_nocase?: InputMaybe; + name_ends_with?: InputMaybe; + name_ends_with_nocase?: InputMaybe; + name_gt?: InputMaybe; + name_gte?: InputMaybe; + name_in?: InputMaybe>; + name_lt?: InputMaybe; + name_lte?: InputMaybe; + name_not?: InputMaybe; + name_not_contains?: InputMaybe; + name_not_contains_nocase?: InputMaybe; + name_not_ends_with?: InputMaybe; + name_not_ends_with_nocase?: InputMaybe; + name_not_in?: InputMaybe>; + name_not_starts_with?: InputMaybe; + name_not_starts_with_nocase?: InputMaybe; + name_starts_with?: InputMaybe; + name_starts_with_nocase?: InputMaybe; + or?: InputMaybe>>; + owner?: InputMaybe; + owner_?: InputMaybe; + owner_contains?: InputMaybe; + owner_contains_nocase?: InputMaybe; + owner_ends_with?: InputMaybe; + owner_ends_with_nocase?: InputMaybe; + owner_gt?: InputMaybe; + owner_gte?: InputMaybe; + owner_in?: InputMaybe>; + owner_lt?: InputMaybe; + owner_lte?: InputMaybe; + owner_not?: InputMaybe; + owner_not_contains?: InputMaybe; + owner_not_contains_nocase?: InputMaybe; + owner_not_ends_with?: InputMaybe; + owner_not_ends_with_nocase?: InputMaybe; + owner_not_in?: InputMaybe>; + owner_not_starts_with?: InputMaybe; + owner_not_starts_with_nocase?: InputMaybe; + owner_starts_with?: InputMaybe; + owner_starts_with_nocase?: InputMaybe; +}; + +export enum WrappedDomain_OrderBy { + Domain = 'domain', + DomainCreatedAt = 'domain__createdAt', + DomainExpiryDate = 'domain__expiryDate', + DomainId = 'domain__id', + DomainIsMigrated = 'domain__isMigrated', + DomainLabelName = 'domain__labelName', + DomainLabelhash = 'domain__labelhash', + DomainName = 'domain__name', + DomainSubdomainCount = 'domain__subdomainCount', + DomainTtl = 'domain__ttl', + ExpiryDate = 'expiryDate', + Fuses = 'fuses', + Id = 'id', + Name = 'name', + Owner = 'owner', + OwnerId = 'owner__id' +} + +export type WrappedTransfer = DomainEvent & { + __typename?: 'WrappedTransfer'; + /** The block number at which the event occurred */ + blockNumber: Scalars['Int']['output']; + /** The domain name associated with the event */ + domain: Domain; + /** The unique identifier of the event */ + id: Scalars['ID']['output']; + /** The account that owns the wrapped domain after the transfer */ + owner: Account; + /** The transaction hash of the transaction that triggered the event */ + transactionID: Scalars['Bytes']['output']; +}; + +export type WrappedTransfer_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + and?: InputMaybe>>; + blockNumber?: InputMaybe; + blockNumber_gt?: InputMaybe; + blockNumber_gte?: InputMaybe; + blockNumber_in?: InputMaybe>; + blockNumber_lt?: InputMaybe; + blockNumber_lte?: InputMaybe; + blockNumber_not?: InputMaybe; + blockNumber_not_in?: InputMaybe>; + domain?: InputMaybe; + domain_?: InputMaybe; + domain_contains?: InputMaybe; + domain_contains_nocase?: InputMaybe; + domain_ends_with?: InputMaybe; + domain_ends_with_nocase?: InputMaybe; + domain_gt?: InputMaybe; + domain_gte?: InputMaybe; + domain_in?: InputMaybe>; + domain_lt?: InputMaybe; + domain_lte?: InputMaybe; + domain_not?: InputMaybe; + domain_not_contains?: InputMaybe; + domain_not_contains_nocase?: InputMaybe; + domain_not_ends_with?: InputMaybe; + domain_not_ends_with_nocase?: InputMaybe; + domain_not_in?: InputMaybe>; + domain_not_starts_with?: InputMaybe; + domain_not_starts_with_nocase?: InputMaybe; + domain_starts_with?: InputMaybe; + domain_starts_with_nocase?: InputMaybe; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + or?: InputMaybe>>; + owner?: InputMaybe; + owner_?: InputMaybe; + owner_contains?: InputMaybe; + owner_contains_nocase?: InputMaybe; + owner_ends_with?: InputMaybe; + owner_ends_with_nocase?: InputMaybe; + owner_gt?: InputMaybe; + owner_gte?: InputMaybe; + owner_in?: InputMaybe>; + owner_lt?: InputMaybe; + owner_lte?: InputMaybe; + owner_not?: InputMaybe; + owner_not_contains?: InputMaybe; + owner_not_contains_nocase?: InputMaybe; + owner_not_ends_with?: InputMaybe; + owner_not_ends_with_nocase?: InputMaybe; + owner_not_in?: InputMaybe>; + owner_not_starts_with?: InputMaybe; + owner_not_starts_with_nocase?: InputMaybe; + owner_starts_with?: InputMaybe; + owner_starts_with_nocase?: InputMaybe; + transactionID?: InputMaybe; + transactionID_contains?: InputMaybe; + transactionID_gt?: InputMaybe; + transactionID_gte?: InputMaybe; + transactionID_in?: InputMaybe>; + transactionID_lt?: InputMaybe; + transactionID_lte?: InputMaybe; + transactionID_not?: InputMaybe; + transactionID_not_contains?: InputMaybe; + transactionID_not_in?: InputMaybe>; +}; + +export enum WrappedTransfer_OrderBy { + BlockNumber = 'blockNumber', + Domain = 'domain', + DomainCreatedAt = 'domain__createdAt', + DomainExpiryDate = 'domain__expiryDate', + DomainId = 'domain__id', + DomainIsMigrated = 'domain__isMigrated', + DomainLabelName = 'domain__labelName', + DomainLabelhash = 'domain__labelhash', + DomainName = 'domain__name', + DomainSubdomainCount = 'domain__subdomainCount', + DomainTtl = 'domain__ttl', + Id = 'id', + Owner = 'owner', + OwnerId = 'owner__id', + TransactionId = 'transactionID' +} + +export type _Block_ = { + __typename?: '_Block_'; + /** The hash of the block */ + hash?: Maybe; + /** The block number */ + number: Scalars['Int']['output']; + /** The hash of the parent block */ + parentHash?: Maybe; + /** Integer representation of the timestamp stored in blocks for the chain */ + timestamp?: Maybe; +}; + +/** The type for the top-level _meta field */ +export type _Meta_ = { + __typename?: '_Meta_'; + /** + * Information about a specific subgraph block. The hash of the block + * will be null if the _meta field has a block constraint that asks for + * a block number. It will be filled if the _meta field has no block constraint + * and therefore asks for the latest block + * + */ + block: _Block_; + /** The deployment ID */ + deployment: Scalars['String']['output']; + /** If `true`, the subgraph encountered indexing errors at some past block */ + hasIndexingErrors: Scalars['Boolean']['output']; +}; + +export enum _SubgraphErrorPolicy_ { + /** Data will be returned even if the subgraph has indexing errors */ + Allow = 'allow', + /** If the subgraph has indexing errors, data will be omitted. The default. */ + Deny = 'deny' +} + +export class TypedDocumentString + extends String + implements DocumentTypeDecoration +{ + __apiType?: DocumentTypeDecoration['__apiType']; + + constructor(private value: string, public __meta__?: Record) { + super(value); + } + + toString(): string & DocumentTypeDecoration { + return this.value; + } +} diff --git a/packages/gql/src/graphql/ens/index.ts b/packages/gql/src/graphql/ens/index.ts new file mode 100644 index 00000000..f5159916 --- /dev/null +++ b/packages/gql/src/graphql/ens/index.ts @@ -0,0 +1,2 @@ +export * from "./fragment-masking"; +export * from "./gql"; \ No newline at end of file From 6ef22badf49f0b9a225d24261e8d150fd32159e2 Mon Sep 17 00:00:00 2001 From: debuggingfuture Date: Tue, 24 Dec 2024 11:44:53 +0800 Subject: [PATCH 3/4] fix: path --- .../src/components/file/file-input-field.tsx | 2 +- .../components/signature/signature-verify-badge.tsx | 2 +- .../transactions/transaction-card-with-details.tsx | 2 +- .../src/hooks/eas/use-upload-attestation.ts | 2 +- .../ui-react/src/hooks/identity/use-identity.ts | 3 ++- packages/ui-react/src/lib/blockscout/api.ts | 6 +++--- packages/ui-react/src/lib/blockscout/url.ts | 4 ++-- .../ui-react/src/lib/eas/sdk/offchain/delegated.ts | 4 +--- .../ui-react/src/lib/eas/sdk/offchain/offchain.ts | 2 +- .../src/lib/eas/sdk/offchain/typed-data-handler.ts | 3 +-- .../ui-react/src/lib/eas/viem/offchain.int.test.ts | 13 ++++++------- packages/ui-react/src/lib/eas/viem/offchain.ts | 5 ++--- .../ui-react/src/lib/eas/viem/onchain.e2e.test.ts | 6 +++--- .../ui-react/src/lib/eas/viem/onchain.int.test.ts | 1 - packages/ui-react/src/lib/eas/viem/onchain.ts | 8 ++++---- packages/ui-react/src/lib/explorer/url.test.ts | 10 +++++++--- packages/ui-react/src/lib/explorer/url.ts | 2 -- .../src/lib/filecoin/akave/client.int.test.ts | 2 +- packages/ui-react/src/lib/filecoin/gateway.ts | 4 ++-- .../src/lib/filecoin/lighthouse.int.test.ts | 2 +- .../src/lib/filecoin/lighthouse/browser.test.ts | 2 +- .../src/lib/filecoin/lighthouse/isomorphic.ts | 4 ++-- .../src/lib/filecoin/storacha/client.int.test.ts | 2 -- packages/ui-react/src/lib/filecoin/url.ts | 2 +- packages/ui-react/src/lib/utils/address.test.ts | 2 +- packages/ui-react/src/lib/utils/address.ts | 2 +- 26 files changed, 46 insertions(+), 51 deletions(-) diff --git a/packages/ui-react/src/components/file/file-input-field.tsx b/packages/ui-react/src/components/file/file-input-field.tsx index 400d8e09..faa37af5 100644 --- a/packages/ui-react/src/components/file/file-input-field.tsx +++ b/packages/ui-react/src/components/file/file-input-field.tsx @@ -3,7 +3,7 @@ */ import type { ControllerRenderProps, FieldValues } from "react-hook-form"; -import { Input } from "../shadcn/input"; +import { Input } from "#components/shadcn/input"; export const FileInputField = ({ field, diff --git a/packages/ui-react/src/components/signature/signature-verify-badge.tsx b/packages/ui-react/src/components/signature/signature-verify-badge.tsx index 8073cab7..031b4def 100644 --- a/packages/ui-react/src/components/signature/signature-verify-badge.tsx +++ b/packages/ui-react/src/components/signature/signature-verify-badge.tsx @@ -1,8 +1,8 @@ import { Flex } from "@radix-ui/themes"; import { useEffect, useState } from "react"; import { Address, Hex } from "viem"; +import { AddressBadge } from "#components/identity/address-badge"; import { Label } from "#components/shadcn/label"; -import { AddressBadge } from "../identity/address-badge"; export const SignatureVerifyBadge = ({ signature, message, diff --git a/packages/ui-react/src/components/transactions/transaction-card-with-details.tsx b/packages/ui-react/src/components/transactions/transaction-card-with-details.tsx index 77989e69..40e27e48 100644 --- a/packages/ui-react/src/components/transactions/transaction-card-with-details.tsx +++ b/packages/ui-react/src/components/transactions/transaction-card-with-details.tsx @@ -12,8 +12,8 @@ import { import { Separator } from "#components/shadcn/separator"; import { Skeleton } from "#components/shadcn/skeleton"; import { TokenChipWithInfo } from "#components/token/token-chip-with-info"; +import { Token } from "#lib/token/token"; import { getShortHex } from "#lib/utils/hex"; -import { Token } from "../token/token"; export const TransactionSummary = ({ transaction, diff --git a/packages/ui-react/src/hooks/eas/use-upload-attestation.ts b/packages/ui-react/src/hooks/eas/use-upload-attestation.ts index 0a4eeb79..8b9513df 100644 --- a/packages/ui-react/src/hooks/eas/use-upload-attestation.ts +++ b/packages/ui-react/src/hooks/eas/use-upload-attestation.ts @@ -1,6 +1,7 @@ import { useMutation, useQueryClient } from "@tanstack/react-query"; import { useWalletClient } from "wagmi"; import { UploadAttestationParams } from "#components/attestations/attestations"; +import { useToast } from "#components/shadcn/use-toast"; import { createGetAttestationWithUidQueryOptions } from "#hooks/eas/get-attestation-with-uid"; import { createLighthouseParams, @@ -8,7 +9,6 @@ import { uploadEncryptedFileWithText, uploadText, } from "#lib/filecoin/lighthouse/isomorphic"; -import { useToast } from "../shadcn/use-toast"; export function useUploadAttestationWithLighthouse({ lighthouseApiKey, diff --git a/packages/ui-react/src/hooks/identity/use-identity.ts b/packages/ui-react/src/hooks/identity/use-identity.ts index abd2a13d..0f305311 100644 --- a/packages/ui-react/src/hooks/identity/use-identity.ts +++ b/packages/ui-react/src/hooks/identity/use-identity.ts @@ -1,4 +1,5 @@ -import { AddressOrEns, useEnsData } from "../ens/use-efp-api"; +import { AddressOrEns } from "#hooks/ens/efp.js"; +import { useEnsData } from "#hooks/ens/use-efp-api"; export enum MetadataService { Efp = "efp", diff --git a/packages/ui-react/src/lib/blockscout/api.ts b/packages/ui-react/src/lib/blockscout/api.ts index b9f8b72e..974682c0 100644 --- a/packages/ui-react/src/lib/blockscout/api.ts +++ b/packages/ui-react/src/lib/blockscout/api.ts @@ -1,9 +1,9 @@ -import { Address, parseUnits } from "viem"; -import * as chains from "viem/chains"; import { TokenTransfer, TransactionMeta, -} from "../domain/transaction/transaction"; +} from "@geist/domain/transaction/transaction"; +import { Address, parseUnits } from "viem"; +import * as chains from "viem/chains"; const chainIdToApiRoot: any = { [chains.mainnet.id]: "https://eth.blockscout.com/api/", diff --git a/packages/ui-react/src/lib/blockscout/url.ts b/packages/ui-react/src/lib/blockscout/url.ts index 669c2bf6..e0f62baf 100644 --- a/packages/ui-react/src/lib/blockscout/url.ts +++ b/packages/ui-react/src/lib/blockscout/url.ts @@ -1,8 +1,8 @@ -import { getBlockscoutChainEndpoint } from "../blockscout/chain"; +import { getBlockscoutChainEndpoint } from "#lib/blockscout/chain"; import { CreateBlockExplorerUrlArgs, createBlockExplorerUrlWithEip3091, -} from "../explorer/url"; +} from "#lib/explorer/url"; // For overrideBlockExplorers export const createOverrideStrategies = () => { diff --git a/packages/ui-react/src/lib/eas/sdk/offchain/delegated.ts b/packages/ui-react/src/lib/eas/sdk/offchain/delegated.ts index 1ff64e8a..c05ee4ab 100644 --- a/packages/ui-react/src/lib/eas/sdk/offchain/delegated.ts +++ b/packages/ui-react/src/lib/eas/sdk/offchain/delegated.ts @@ -1,5 +1,4 @@ import omit from "lodash/omit"; -import semver from "semver"; import { EIP712MessageTypes, EIP712Params, @@ -7,8 +6,7 @@ import { EIP712Types, TypeDataSigner, // TypedDataHandler, -} from "./typed-data-handler"; -import { EIP712_NAME, EIP712_VERSIONS } from "./versions"; +} from "#lib/eas/sdk/offchain/typed-data-handler"; enum DelegatedAttestationVersion { Legacy = 0, diff --git a/packages/ui-react/src/lib/eas/sdk/offchain/offchain.ts b/packages/ui-react/src/lib/eas/sdk/offchain/offchain.ts index d7fadcdc..801b98da 100644 --- a/packages/ui-react/src/lib/eas/sdk/offchain/offchain.ts +++ b/packages/ui-react/src/lib/eas/sdk/offchain/offchain.ts @@ -6,8 +6,8 @@ import type { } from "@ethereum-attestation-service/eas-sdk"; import { ZERO_ADDRESS } from "@geist/ui-react/lib/constants"; import { Address, verifyMessage, verifyTypedData } from "viem"; +import { getOffchainUID } from "#lib/eas/sdk/offchain/offchain-utils"; import { isDeepEqual } from "#lib/shadcn/utils"; -import { getOffchainUID } from "./offchain-utils"; import { InvalidAddress, InvalidPrimaryType, diff --git a/packages/ui-react/src/lib/eas/sdk/offchain/typed-data-handler.ts b/packages/ui-react/src/lib/eas/sdk/offchain/typed-data-handler.ts index 157d1dca..03435006 100644 --- a/packages/ui-react/src/lib/eas/sdk/offchain/typed-data-handler.ts +++ b/packages/ui-react/src/lib/eas/sdk/offchain/typed-data-handler.ts @@ -10,7 +10,6 @@ import { toUtf8Bytes, verifyTypedData, } from "ethers"; -import isEqual from "lodash/isEqual"; import { Hex, encodeAbiParameters, @@ -18,8 +17,8 @@ import { keccak256, parseAbiParameters, } from "viem"; +import { DelegatedConfig } from "#lib/eas/sdk/offchain/delegated"; import { EIP712_NAME } from "#lib/eas/versions"; -import { DelegatedConfig } from "./delegated"; export interface Signature { r: string; diff --git a/packages/ui-react/src/lib/eas/viem/offchain.int.test.ts b/packages/ui-react/src/lib/eas/viem/offchain.int.test.ts index 62d0c548..8def80ca 100644 --- a/packages/ui-react/src/lib/eas/viem/offchain.int.test.ts +++ b/packages/ui-react/src/lib/eas/viem/offchain.int.test.ts @@ -16,16 +16,15 @@ import { Hex } from "viem"; import { privateKeyToAccount } from "viem/accounts"; import { optimismSepolia, sepolia } from "viem/chains"; import { beforeEach, describe, expect, test } from "vitest"; -import { createTestEthersSigner } from "#lib/test-utils-isomorphic"; -import { SCHEMA_BY_NAME } from "../attest.fixture"; -import { createEAS } from "../sdk/eas"; +import { SCHEMA_BY_NAME } from "#lib/eas/attest.fixture"; +import { createEAS } from "#lib/eas/sdk/eas"; import { OFFCHAIN_ATTESTATION_TYPES, verifyOffchainAttestationSignature, -} from "../sdk/offchain/offchain"; -import { getOffchainUID } from "../sdk/offchain/offchain-utils"; -import { EIP712_NAME } from "../versions"; -import { signOffchainAttestation } from "./offchain"; +} from "#lib/eas/sdk/offchain/offchain"; +import { getOffchainUID } from "#lib/eas/sdk/offchain/offchain-utils"; +import { signOffchainAttestation } from "#lib/eas/viem/offchain"; +import { createTestEthersSigner } from "#lib/test-utils-isomorphic"; const chain = sepolia; export const EASContractAddress = "0xC2679fBD37d54388Ce493F1DB75320D236e1815e"; // Sepolia v0.26 diff --git a/packages/ui-react/src/lib/eas/viem/offchain.ts b/packages/ui-react/src/lib/eas/viem/offchain.ts index e97cf905..ead277fd 100644 --- a/packages/ui-react/src/lib/eas/viem/offchain.ts +++ b/packages/ui-react/src/lib/eas/viem/offchain.ts @@ -1,11 +1,10 @@ import { http, Account, Address, Chain, Hex, createWalletClient } from "viem"; -import { sepolia } from "viem/chains"; import { OFFCHAIN_ATTESTATION_TYPES, OffchainAttestationTypedData, OffchainAttestationVersion, -} from "../sdk/offchain/offchain"; -import { getOffchainUID } from "../sdk/offchain/offchain-utils"; +} from "#lib/eas/sdk/offchain/offchain"; +import { getOffchainUID } from "#lib/eas/sdk/offchain/offchain-utils"; export interface OffchainAttestationParams { schema: string; diff --git a/packages/ui-react/src/lib/eas/viem/onchain.e2e.test.ts b/packages/ui-react/src/lib/eas/viem/onchain.e2e.test.ts index 099fd593..0970c555 100644 --- a/packages/ui-react/src/lib/eas/viem/onchain.e2e.test.ts +++ b/packages/ui-react/src/lib/eas/viem/onchain.e2e.test.ts @@ -9,9 +9,9 @@ import { http, Hex, createWalletClient, zeroHash } from "viem"; import { privateKeyToAccount } from "viem/accounts"; import { sepolia } from "viem/chains"; import { beforeEach, describe, expect, it, test } from "vitest"; -import { SCHEMA_FIXTURE_IS_A_FRIEND } from "../attest.fixture"; -import { createEAS } from "../sdk/eas"; -import { makeOnchainAttestation, revoke } from "./onchain"; +import { SCHEMA_FIXTURE_IS_A_FRIEND } from "#lib/eas/attest.fixture"; +import { createEAS } from "#lib/eas/sdk/eas"; +import { makeOnchainAttestation, revoke } from "#lib/eas/viem/onchain"; const chain = sepolia; export const EASContractAddress = "0xC2679fBD37d54388Ce493F1DB75320D236e1815e"; // Sepolia v0.26 diff --git a/packages/ui-react/src/lib/eas/viem/onchain.int.test.ts b/packages/ui-react/src/lib/eas/viem/onchain.int.test.ts index 54a081a8..7978a85a 100644 --- a/packages/ui-react/src/lib/eas/viem/onchain.int.test.ts +++ b/packages/ui-react/src/lib/eas/viem/onchain.int.test.ts @@ -1,5 +1,4 @@ import { beforeEach, describe, expect, it, test } from "vitest"; -import { makeOnchainAttestation } from "./onchain"; // TODO get latest block timestamp with anvil diff --git a/packages/ui-react/src/lib/eas/viem/onchain.ts b/packages/ui-react/src/lib/eas/viem/onchain.ts index 78452605..67c4102f 100644 --- a/packages/ui-react/src/lib/eas/viem/onchain.ts +++ b/packages/ui-react/src/lib/eas/viem/onchain.ts @@ -19,10 +19,10 @@ import { writeContract, } from "viem/actions"; import { sepolia } from "viem/chains"; -import { EAS_ABI, EAS_CONTRACT_ADDRESS } from "../abi"; -import { getUIDsFromAttestReceipt } from "../events"; -import { RevocationRequest } from "../request"; -import type { SchemaItem } from "../sdk/eas"; +import { EAS_ABI, EAS_CONTRACT_ADDRESS } from "#lib/eas/abi"; +import { getUIDsFromAttestReceipt } from "#lib/eas/events"; +import { RevocationRequest } from "#lib/eas/request"; +import type { SchemaItem } from "#lib/eas/sdk/eas"; // TODO align on offchain export interface AttestationRequestData { diff --git a/packages/ui-react/src/lib/explorer/url.test.ts b/packages/ui-react/src/lib/explorer/url.test.ts index 06a098cc..231c719a 100644 --- a/packages/ui-react/src/lib/explorer/url.test.ts +++ b/packages/ui-react/src/lib/explorer/url.test.ts @@ -1,9 +1,13 @@ import { BY_USER, TRANSACTION } from "@geist/domain/user.fixture"; import { filecoin, filecoinCalibration, mainnet, sepolia } from "viem/chains"; import { describe, expect, test } from "vitest"; -import { createOverrideStrategies as createBlockscoutOverrideStrategies } from "../blockscout/url"; -import { createOverrideStrategies as createFilecoinOverrideStrategies } from "../filecoin/url"; -import { Explorer, ExplorerEntity, blockExplorerUrlFactory } from "./url"; +import { createOverrideStrategies as createBlockscoutOverrideStrategies } from "#lib/blockscout/url"; +import { + Explorer, + ExplorerEntity, + blockExplorerUrlFactory, +} from "#lib/explorer/url"; +import { createOverrideStrategies as createFilecoinOverrideStrategies } from "#lib/filecoin/url"; describe("BlockExplorer", () => { test.each([ diff --git a/packages/ui-react/src/lib/explorer/url.ts b/packages/ui-react/src/lib/explorer/url.ts index 8543e2f3..40f1047b 100644 --- a/packages/ui-react/src/lib/explorer/url.ts +++ b/packages/ui-react/src/lib/explorer/url.ts @@ -1,7 +1,5 @@ -import { Args } from "@storybook/react"; import { getBlock } from "viem/actions"; import { Chain, filecoin, filecoinCalibration, mainnet } from "viem/chains"; -import { getBlockscoutChainEndpoint } from "../blockscout/chain"; export enum Explorer { Blockscout = "blockscout", diff --git a/packages/ui-react/src/lib/filecoin/akave/client.int.test.ts b/packages/ui-react/src/lib/filecoin/akave/client.int.test.ts index e9659321..f2257bca 100644 --- a/packages/ui-react/src/lib/filecoin/akave/client.int.test.ts +++ b/packages/ui-react/src/lib/filecoin/akave/client.int.test.ts @@ -12,7 +12,7 @@ import { listBuckets, uploadFileObject, uploadFileWithFormData, -} from "./client"; +} from "#lib/filecoin/akave/client"; describe( "with file", diff --git a/packages/ui-react/src/lib/filecoin/gateway.ts b/packages/ui-react/src/lib/filecoin/gateway.ts index 9176b2b2..576f942c 100644 --- a/packages/ui-react/src/lib/filecoin/gateway.ts +++ b/packages/ui-react/src/lib/filecoin/gateway.ts @@ -1,5 +1,5 @@ -import { GatewayStrategy } from "./gateway-strategy"; -import { getLighthouseGatewayUrl } from "./lighthouse/isomorphic"; +import { GatewayStrategy } from "#lib/filecoin/gateway-strategy"; +import { getLighthouseGatewayUrl } from "#lib/filecoin/lighthouse/isomorphic"; export enum IpfsGateway { Lighthouse = "lighthouse", diff --git a/packages/ui-react/src/lib/filecoin/lighthouse.int.test.ts b/packages/ui-react/src/lib/filecoin/lighthouse.int.test.ts index b358a3ae..de662948 100644 --- a/packages/ui-react/src/lib/filecoin/lighthouse.int.test.ts +++ b/packages/ui-react/src/lib/filecoin/lighthouse.int.test.ts @@ -7,7 +7,7 @@ import { uploadEncryptedFileWithText, uploadFiles, uploadText, -} from "./lighthouse/isomorphic"; +} from "#lib/filecoin/lighthouse/isomorphic"; import config from "@geist/domain/config"; import { BY_USER } from "@geist/domain/user.fixture"; diff --git a/packages/ui-react/src/lib/filecoin/lighthouse/browser.test.ts b/packages/ui-react/src/lib/filecoin/lighthouse/browser.test.ts index b87feec5..1c59fd7d 100644 --- a/packages/ui-react/src/lib/filecoin/lighthouse/browser.test.ts +++ b/packages/ui-react/src/lib/filecoin/lighthouse/browser.test.ts @@ -2,7 +2,7 @@ import config from "@geist/domain/config"; import { describe, expect, test } from "vitest"; -import uploadFilesBrowser from "./browser"; +import uploadFilesBrowser from "#lib/filecoin/lighthouse/browser"; export const createFileForm = (files: File[], isDirectory = false) => { // Create a form element const form = document.createElement("form"); diff --git a/packages/ui-react/src/lib/filecoin/lighthouse/isomorphic.ts b/packages/ui-react/src/lib/filecoin/lighthouse/isomorphic.ts index 50d040a0..f2f8a032 100644 --- a/packages/ui-react/src/lib/filecoin/lighthouse/isomorphic.ts +++ b/packages/ui-react/src/lib/filecoin/lighthouse/isomorphic.ts @@ -4,8 +4,8 @@ import { IUploadProgressCallback } from "@lighthouse-web3/sdk/dist/types"; import ky, { DownloadProgress } from "ky"; import { http, Account, createWalletClient } from "viem"; import { sepolia } from "viem/chains"; -import { GatewayStrategy } from "../gateway-strategy"; -import { uploadFiles as uploadFilesLighthouse } from "./browser"; +import { GatewayStrategy } from "#lib/filecoin/gateway-strategy"; +import { uploadFiles as uploadFilesLighthouse } from "#lib/filecoin/lighthouse/browser"; // import { CID } from 'multiformats/cid' // Supposedly lighthouse can be treeshake for node/browser, to be validated diff --git a/packages/ui-react/src/lib/filecoin/storacha/client.int.test.ts b/packages/ui-react/src/lib/filecoin/storacha/client.int.test.ts index dca10be0..d2bbff22 100644 --- a/packages/ui-react/src/lib/filecoin/storacha/client.int.test.ts +++ b/packages/ui-react/src/lib/filecoin/storacha/client.int.test.ts @@ -7,9 +7,7 @@ import * as Proof from "@web3-storage/w3up-client/proof"; import { StoreMemory } from "@web3-storage/w3up-client/stores/memory"; import { base32 } from "multiformats/bases/base32"; import * as Link from "multiformats/link"; -import { createPendingTransactionFilter } from "viem/actions"; import { beforeAll, describe, expect, test } from "vitest"; -import { authWithEmail } from "./isomorphic"; // https://github.com/storacha/w3up/issues/1591 // required at nodejs, no issue at browser diff --git a/packages/ui-react/src/lib/filecoin/url.ts b/packages/ui-react/src/lib/filecoin/url.ts index 30b64bc0..b0d82a21 100644 --- a/packages/ui-react/src/lib/filecoin/url.ts +++ b/packages/ui-react/src/lib/filecoin/url.ts @@ -7,7 +7,7 @@ import { ExplorerEntity, ExplorerParams, createBlockExplorerUrlWithEip3091, -} from "../explorer/url"; +} from "#lib/explorer/url"; export const createFilfoxEndpoint = ( chainId: number, diff --git a/packages/ui-react/src/lib/utils/address.test.ts b/packages/ui-react/src/lib/utils/address.test.ts index 97a8c2e9..b6c4ce27 100644 --- a/packages/ui-react/src/lib/utils/address.test.ts +++ b/packages/ui-react/src/lib/utils/address.test.ts @@ -1,5 +1,5 @@ import { describe, expect, it } from "vitest"; -import { getShortAddress } from "./address"; +import { getShortAddress } from "#lib/utils/address"; describe("utils", () => { it("getShortAddress", () => { diff --git a/packages/ui-react/src/lib/utils/address.ts b/packages/ui-react/src/lib/utils/address.ts index 43092a22..1bcddc5d 100644 --- a/packages/ui-react/src/lib/utils/address.ts +++ b/packages/ui-react/src/lib/utils/address.ts @@ -4,7 +4,7 @@ // checksum encoded import { Address, getAddress, isHex } from "viem"; -import { getShortHex } from "./hex"; +import { getShortHex } from "#lib/utils/hex"; export type GetShortAddressReturnType = string | null; From 43c46b3c0cc918c04f1a97ad52668d51aeaff9a3 Mon Sep 17 00:00:00 2001 From: debuggingfuture Date: Fri, 3 Jan 2025 14:11:06 +0800 Subject: [PATCH 4/4] fix: use toast --- apps/storybook/src/components/ui/toaster.tsx | 2 +- apps/storybook/src/hooks/use-toast.ts | 188 ------------------ .../src/stories/filecoin/UploadForm.tsx | 2 +- .../src/stories/filecoin/upload-toast.tsx | 2 +- .../src/hooks/eas/use-upload-attestation.ts | 2 +- 5 files changed, 4 insertions(+), 192 deletions(-) delete mode 100644 apps/storybook/src/hooks/use-toast.ts diff --git a/apps/storybook/src/components/ui/toaster.tsx b/apps/storybook/src/components/ui/toaster.tsx index 3c80f58e..fcd00e6d 100644 --- a/apps/storybook/src/components/ui/toaster.tsx +++ b/apps/storybook/src/components/ui/toaster.tsx @@ -1,3 +1,4 @@ +import { useToast } from "@geist/ui-react/hooks/shadcn/use-toast"; import { Toast, ToastClose, @@ -6,7 +7,6 @@ import { ToastTitle, ToastViewport, } from "#components/ui/toast"; -import { useToast } from "#hooks/use-toast"; export function Toaster({ className, diff --git a/apps/storybook/src/hooks/use-toast.ts b/apps/storybook/src/hooks/use-toast.ts deleted file mode 100644 index b6d930a6..00000000 --- a/apps/storybook/src/hooks/use-toast.ts +++ /dev/null @@ -1,188 +0,0 @@ -import * as React from "react"; - -import type { ToastActionElement, ToastProps } from "#components/ui/toast"; - -const TOAST_LIMIT = 1; -const TOAST_REMOVE_DELAY = 1000000; - -type ToasterToast = ToastProps & { - id: string; - title?: React.ReactNode; - description?: React.ReactNode; - action?: ToastActionElement; -}; - -const actionTypes = { - ADD_TOAST: "ADD_TOAST", - UPDATE_TOAST: "UPDATE_TOAST", - DISMISS_TOAST: "DISMISS_TOAST", - REMOVE_TOAST: "REMOVE_TOAST", -} as const; - -let count = 0; - -function genId() { - count = (count + 1) % Number.MAX_SAFE_INTEGER; - return count.toString(); -} - -type ActionType = typeof actionTypes; - -type Action = - | { - type: ActionType["ADD_TOAST"]; - toast: ToasterToast; - } - | { - type: ActionType["UPDATE_TOAST"]; - toast: Partial; - } - | { - type: ActionType["DISMISS_TOAST"]; - toastId?: ToasterToast["id"]; - } - | { - type: ActionType["REMOVE_TOAST"]; - toastId?: ToasterToast["id"]; - }; - -interface State { - toasts: ToasterToast[]; -} - -const toastTimeouts = new Map>(); - -const addToRemoveQueue = (toastId: string) => { - if (toastTimeouts.has(toastId)) { - return; - } - - const timeout = setTimeout(() => { - toastTimeouts.delete(toastId); - dispatch({ - type: "REMOVE_TOAST", - toastId: toastId, - }); - }, TOAST_REMOVE_DELAY); - - toastTimeouts.set(toastId, timeout); -}; - -export const reducer = (state: State, action: Action): State => { - switch (action.type) { - case "ADD_TOAST": - return { - ...state, - toasts: [action.toast, ...state.toasts].slice(0, TOAST_LIMIT), - }; - - case "UPDATE_TOAST": - return { - ...state, - toasts: state.toasts.map((t) => - t.id === action.toast.id ? { ...t, ...action.toast } : t, - ), - }; - - case "DISMISS_TOAST": { - const { toastId } = action; - - // ! Side effects ! - This could be extracted into a dismissToast() action, - // but I'll keep it here for simplicity - if (toastId) { - addToRemoveQueue(toastId); - } else { - state.toasts.forEach((toast) => { - addToRemoveQueue(toast.id); - }); - } - - return { - ...state, - toasts: state.toasts.map((t) => - t.id === toastId || toastId === undefined - ? { - ...t, - open: false, - } - : t, - ), - }; - } - case "REMOVE_TOAST": - if (action.toastId === undefined) { - return { - ...state, - toasts: [], - }; - } - return { - ...state, - toasts: state.toasts.filter((t) => t.id !== action.toastId), - }; - } -}; - -const listeners: Array<(state: State) => void> = []; - -let memoryState: State = { toasts: [] }; - -function dispatch(action: Action) { - memoryState = reducer(memoryState, action); - listeners.forEach((listener) => { - listener(memoryState); - }); -} - -type Toast = Omit; - -function toast({ ...props }: Toast) { - const id = genId(); - - const update = (props: ToasterToast) => - dispatch({ - type: "UPDATE_TOAST", - toast: { ...props, id }, - }); - const dismiss = () => dispatch({ type: "DISMISS_TOAST", toastId: id }); - - dispatch({ - type: "ADD_TOAST", - toast: { - ...props, - id, - open: true, - onOpenChange: (open) => { - if (!open) dismiss(); - }, - }, - }); - - return { - id: id, - dismiss, - update, - }; -} - -function useToast() { - const [state, setState] = React.useState(memoryState); - - React.useEffect(() => { - listeners.push(setState); - return () => { - const index = listeners.indexOf(setState); - if (index > -1) { - listeners.splice(index, 1); - } - }; - }, [state]); - - return { - ...state, - toast, - dismiss: (toastId?: string) => dispatch({ type: "DISMISS_TOAST", toastId }), - }; -} - -export { useToast, toast }; diff --git a/apps/storybook/src/stories/filecoin/UploadForm.tsx b/apps/storybook/src/stories/filecoin/UploadForm.tsx index 41d22f0f..a7398c39 100644 --- a/apps/storybook/src/stories/filecoin/UploadForm.tsx +++ b/apps/storybook/src/stories/filecoin/UploadForm.tsx @@ -3,6 +3,7 @@ import { useForm } from "react-hook-form"; import { ZodType, z } from "zod"; import { FileInputField } from "@geist/ui-react/components/file/file-input-field"; +import { toast } from "@geist/ui-react/hooks/shadcn/use-toast"; import type { DownloadProgress } from "ky"; import React from "react"; import { Button } from "#components/ui/button"; @@ -17,7 +18,6 @@ import { } from "#components/ui/form"; import { Progress } from "#components/ui/progress"; import { Textarea } from "#components/ui/textarea"; -import { toast } from "#hooks/use-toast"; const lorem = `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque semper porttitor massa, non placerat dolor rutrum vel. Morbi eu elit vitae odio hendrerit mollis. Proin at nibh auctor, laoreet ante vel, commodo leo. Sed viverra neque id lectus dictum, non accumsan tortor rhoncus. Fusce consectetur est vitae viverra pellentesque. Nunc pharetra felis libero, at rhoncus est euismod et. Morbi ac ultrices lectus, quis commodo eros. Etiam vestibulum finibus imperdiet. Nulla dictum tempor neque ac varius. Duis sed malesuada odio. Aenean fermentum tristique nunc a dictum. Donec posuere varius pharetra. Sed vitae nisi leo. Nam eget velit id erat sagittis molestie. Fusce feugiat turpis nec neque sodales, sit amet lobortis velit tempus. Curabitur nisi quam, consectetur in velit ac, gravida convallis ante. Etiam condimentum, ligula ut pharetra vehicula, odio ligula laoreet sem, et convallis metus mauris ut tellus. Fusce libero risus, vulputate a suscipit commodo, tincidunt vel ex. Duis quis ultrices ex, in feugiat dolor. Nullam ultrices lorem augue, ac pellentesque velit finibus vel. diff --git a/apps/storybook/src/stories/filecoin/upload-toast.tsx b/apps/storybook/src/stories/filecoin/upload-toast.tsx index ef634cfb..c48d4a50 100644 --- a/apps/storybook/src/stories/filecoin/upload-toast.tsx +++ b/apps/storybook/src/stories/filecoin/upload-toast.tsx @@ -1,8 +1,8 @@ +import { toast } from "@geist/ui-react/hooks/shadcn/use-toast"; import { IpfsGateway, getGatewayUrlWithCid, } from "@geist/ui-react/lib/filecoin/gateway"; -import { toast } from "#hooks/use-toast"; export const uploadSuccessToast = ({ cid, diff --git a/packages/ui-react/src/hooks/eas/use-upload-attestation.ts b/packages/ui-react/src/hooks/eas/use-upload-attestation.ts index 8b9513df..140133f4 100644 --- a/packages/ui-react/src/hooks/eas/use-upload-attestation.ts +++ b/packages/ui-react/src/hooks/eas/use-upload-attestation.ts @@ -1,8 +1,8 @@ import { useMutation, useQueryClient } from "@tanstack/react-query"; import { useWalletClient } from "wagmi"; import { UploadAttestationParams } from "#components/attestations/attestations"; -import { useToast } from "#components/shadcn/use-toast"; import { createGetAttestationWithUidQueryOptions } from "#hooks/eas/get-attestation-with-uid"; +import { useToast } from "#hooks/shadcn/use-toast"; import { createLighthouseParams, getLighthouseGatewayUrl,