From 6d749f168a8f205b2f9b7ae0ae6c378670d09660 Mon Sep 17 00:00:00 2001 From: Maayan Date: Thu, 28 Sep 2023 00:29:23 -0700 Subject: [PATCH] [TS SDK V2] Add Indexer account queries (#10216) * implement account indexer queries * add indexer account api queries * address feedback --- ecosystem/typescript/sdk_v2/.eslintrc.js | 4 +- ecosystem/typescript/sdk_v2/.npmignore | 1 + ecosystem/typescript/sdk_v2/.prettierignore | 3 +- ecosystem/typescript/sdk_v2/jest.config.js | 2 +- ecosystem/typescript/sdk_v2/package.json | 34 +- ecosystem/typescript/sdk_v2/pnpm-lock.yaml | 1088 +- .../typescript/sdk_v2/src/api/account.ts | 160 +- .../typescript/sdk_v2/src/api/aptos_config.ts | 4 + .../typescript/sdk_v2/src/api/general.ts | 35 +- .../typescript/sdk_v2/src/client/core.ts | 18 +- ecosystem/typescript/sdk_v2/src/client/get.ts | 12 +- .../typescript/sdk_v2/src/client/post.ts | 12 +- ecosystem/typescript/sdk_v2/src/index.ts | 1 + .../typescript/sdk_v2/src/internal/account.ts | 395 +- .../typescript/sdk_v2/src/internal/general.ts | 104 +- ...urrentTokenOwnershipFieldsFragment.graphql | 45 + .../queries/getAccountCoinCount.graphql | 7 + .../queries/getAccountCoinsData.graphql | 32 + ...tAccountCollectionsWithOwnedTokens.graphql | 33 + .../queries/getAccountOwnedObjects.graphql | 16 + .../queries/getAccountOwnedTokens.graphql | 11 + .../getAccountOwnedTokensByTokenData.graphql | 11 + ...ntOwnedTokensFromCollectionAddress.graphql | 11 + .../queries/getAccountTokensCount.graphql | 7 + .../getAccountTransactionsCount.graphql | 7 + .../typescript/sdk_v2/src/types/codegen.yaml | 33 + .../sdk_v2/src/types/generated/operations.ts | 86 + .../sdk_v2/src/types/generated/queries.ts | 245 + .../sdk_v2/src/types/generated/types.ts | 10603 ++++++++++++++++ .../typescript/sdk_v2/src/types/index.ts | 4 +- .../typescript/sdk_v2/src/types/indexer.ts | 83 + .../sdk_v2/src/utils/paginate_with_cursor.ts | 32 +- .../sdk_v2/tests/e2e/api/general.test.ts | 27 +- 33 files changed, 12476 insertions(+), 690 deletions(-) create mode 100644 ecosystem/typescript/sdk_v2/src/internal/queries/CurrentTokenOwnershipFieldsFragment.graphql create mode 100644 ecosystem/typescript/sdk_v2/src/internal/queries/getAccountCoinCount.graphql create mode 100644 ecosystem/typescript/sdk_v2/src/internal/queries/getAccountCoinsData.graphql create mode 100644 ecosystem/typescript/sdk_v2/src/internal/queries/getAccountCollectionsWithOwnedTokens.graphql create mode 100644 ecosystem/typescript/sdk_v2/src/internal/queries/getAccountOwnedObjects.graphql create mode 100644 ecosystem/typescript/sdk_v2/src/internal/queries/getAccountOwnedTokens.graphql create mode 100644 ecosystem/typescript/sdk_v2/src/internal/queries/getAccountOwnedTokensByTokenData.graphql create mode 100644 ecosystem/typescript/sdk_v2/src/internal/queries/getAccountOwnedTokensFromCollectionAddress.graphql create mode 100644 ecosystem/typescript/sdk_v2/src/internal/queries/getAccountTokensCount.graphql create mode 100644 ecosystem/typescript/sdk_v2/src/internal/queries/getAccountTransactionsCount.graphql create mode 100644 ecosystem/typescript/sdk_v2/src/types/codegen.yaml create mode 100644 ecosystem/typescript/sdk_v2/src/types/generated/operations.ts create mode 100644 ecosystem/typescript/sdk_v2/src/types/generated/queries.ts create mode 100644 ecosystem/typescript/sdk_v2/src/types/generated/types.ts create mode 100644 ecosystem/typescript/sdk_v2/src/types/indexer.ts diff --git a/ecosystem/typescript/sdk_v2/.eslintrc.js b/ecosystem/typescript/sdk_v2/.eslintrc.js index 86745e95fa5c8..e2f882a377a39 100644 --- a/ecosystem/typescript/sdk_v2/.eslintrc.js +++ b/ecosystem/typescript/sdk_v2/.eslintrc.js @@ -4,7 +4,7 @@ module.exports = { es2021: true, node: true, }, - ignorePatterns: ["*.js", "examples/*", "src/indexer/generated/**", "scripts/publish_ans_contract.ts"], + ignorePatterns: ["*.js", "examples/*", "scripts/publish_ans_contract.ts", "src/types/generated/**"], extends: ["airbnb-base", "airbnb-typescript/base", "prettier"], parser: "@typescript-eslint/parser", parserOptions: { @@ -16,7 +16,7 @@ module.exports = { plugins: ["@typescript-eslint"], rules: { quotes: ["error", "double"], - "max-len": ["error", 120], + "max-len": ["error", 130], "import/extensions": ["error", "never"], "max-classes-per-file": ["error", 10], "import/prefer-default-export": "off", diff --git a/ecosystem/typescript/sdk_v2/.npmignore b/ecosystem/typescript/sdk_v2/.npmignore index 74dad3b85ec33..16d66813f070b 100644 --- a/ecosystem/typescript/sdk_v2/.npmignore +++ b/ecosystem/typescript/sdk_v2/.npmignore @@ -3,3 +3,4 @@ node_modules .aptos .env examples/ +src/types/generated/types.ts \ No newline at end of file diff --git a/ecosystem/typescript/sdk_v2/.prettierignore b/ecosystem/typescript/sdk_v2/.prettierignore index 9543bddf671d8..849ddff3b7ec9 100644 --- a/ecosystem/typescript/sdk_v2/.prettierignore +++ b/ecosystem/typescript/sdk_v2/.prettierignore @@ -1,2 +1 @@ -src/generated/* -src/indexer/generated/** +dist/ diff --git a/ecosystem/typescript/sdk_v2/jest.config.js b/ecosystem/typescript/sdk_v2/jest.config.js index 9e6f66f3b676f..94a56fe9a739e 100644 --- a/ecosystem/typescript/sdk_v2/jest.config.js +++ b/ecosystem/typescript/sdk_v2/jest.config.js @@ -5,7 +5,7 @@ module.exports = { "^(\\.{1,2}/.*)\\.js$": "$1", }, testEnvironment: "node", - coveragePathIgnorePatterns: ["./types/*", "./utils/memoize-decorator.ts", "./utils/hd-key.ts"], + coveragePathIgnorePatterns: ["./src/internal/queries/", "./src/types/generated"], testPathIgnorePatterns: ["dist/*"], collectCoverage: true, setupFiles: ["dotenv/config"], diff --git a/ecosystem/typescript/sdk_v2/package.json b/ecosystem/typescript/sdk_v2/package.json index 9e621a3cfe851..db6eda81100f4 100644 --- a/ecosystem/typescript/sdk_v2/package.json +++ b/ecosystem/typescript/sdk_v2/package.json @@ -6,29 +6,26 @@ "engines": { "node": ">=11.0.0" }, - "main": "dist/cjs/index.js", - "module": "dist/esm/index.mjs", + "main": "dist/node/index.js", + "module": "dist/node/index.mjs", "exports": { - "node": { - "types": "./dist/src/index.d.ts", - "require": "./dist/cjs/index.js", - "import": "./dist/cjs/index.js" - }, - "types": "./dist/types/index.d.ts", - "default": "./dist/esm/index.mjs" + ".": { + "import": "./dist/node/index.mjs", + "require": "./dist/node/index.js", + "types": "./dist/types/index.d.ts" + } }, "scripts": { "build:clean": "rm -rf dist", - "build": "pnpm build:clean && pnpm run _build:types && pnpm _build:esm && pnpm _build:cjs && pnpm _build:browser", + "build": "pnpm build:clean && pnpm run _build:types && pnpm _build:node && pnpm _build:browser", "_build:browser": "tsup src/index.ts --platform browser --format iife --global-name aptosSDK --minify --out-dir dist/browser", - "_build:esm": "tsup src/index.ts --format esm --dts --out-dir dist/esm", - "_build:cjs": "tsup src/index.ts --format cjs --dts --out-dir dist/cjs", + "_build:node": "tsup src/index.ts --platform node --format esm,cjs --dts --out-dir dist/node", "_build:types": "tsup src/types/index.ts --dts --out-dir dist/types", - "generate-openapi-response-types": "openapi -i ../../../../api/doc/spec.yaml -o ./src/types/generated --exportCore=false --exportServices=false", "_fmt": "prettier 'src/**/*.ts' 'tests/**/*.ts' '.eslintrc.js'", "fmt": "pnpm _fmt --write", "lint": "eslint \"**/*.ts\"", - "test": "pnpm jest" + "test": "pnpm jest", + "indexer-codegen": "graphql-codegen --config ./src/types/codegen.yaml" }, "dependencies": { "@aptos-labs/aptos-client": "^0.0.2", @@ -38,25 +35,24 @@ "tweetnacl": "1.0.3" }, "devDependencies": { + "@types/jest": "28.1.8", + "@types/node": "18.6.2", "@graphql-codegen/cli": "^2.13.5", "@graphql-codegen/import-types-preset": "^2.2.3", "@graphql-codegen/typescript": "^2.7.3", "@graphql-codegen/typescript-graphql-request": "^4.5.8", "@graphql-codegen/typescript-operations": "^2.5.3", - "@types/jest": "28.1.8", - "@types/node": "18.6.2", "@typescript-eslint/eslint-plugin": "5.36.2", "@typescript-eslint/parser": "5.36.2", + "graphql": "^16.5.0", + "graphql-request": "5.1.0", "dotenv": "16.0.2", "eslint": "8.23.0", "eslint-config-airbnb-base": "15.0.0", "eslint-config-airbnb-typescript": "17.0.0", "eslint-config-prettier": "8.5.0", "eslint-plugin-import": "2.26.0", - "graphql": "^16.5.0", - "graphql-request": "5.1.0", "jest": "28.1.3", - "openapi-typescript-codegen": "https://github.com/aptos-labs/openapi-typescript-codegen/releases/download/v0.24.0-p1/openapi-typescript-codegen-v0.24.0-p1.tgz", "prettier": "2.6.2", "ts-jest": "28.0.8", "ts-loader": "9.3.1", diff --git a/ecosystem/typescript/sdk_v2/pnpm-lock.yaml b/ecosystem/typescript/sdk_v2/pnpm-lock.yaml index 7cb3ac587113d..e06042e73e810 100644 --- a/ecosystem/typescript/sdk_v2/pnpm-lock.yaml +++ b/ecosystem/typescript/sdk_v2/pnpm-lock.yaml @@ -24,19 +24,19 @@ dependencies: devDependencies: '@graphql-codegen/cli': specifier: ^2.13.5 - version: 2.16.5(@babel/core@7.22.5)(@types/node@18.6.2)(graphql@16.7.1)(typescript@4.8.2) + version: 2.13.5(@babel/core@7.22.5)(@types/node@18.6.2)(graphql@16.8.1)(ts-node@10.9.1)(typescript@4.8.2) '@graphql-codegen/import-types-preset': specifier: ^2.2.3 - version: 2.2.6(graphql@16.7.1) + version: 2.2.3(graphql@16.8.1) '@graphql-codegen/typescript': specifier: ^2.7.3 - version: 2.8.8(graphql@16.7.1) + version: 2.7.3(graphql@16.8.1) '@graphql-codegen/typescript-graphql-request': specifier: ^4.5.8 - version: 4.5.9(graphql-request@5.1.0)(graphql-tag@2.12.6)(graphql@16.7.1) + version: 4.5.8(graphql-request@5.1.0)(graphql-tag@2.12.6)(graphql@16.8.1) '@graphql-codegen/typescript-operations': specifier: ^2.5.3 - version: 2.5.13(graphql@16.7.1) + version: 2.5.3(graphql@16.8.1) '@types/jest': specifier: 28.1.8 version: 28.1.8 @@ -69,16 +69,13 @@ devDependencies: version: 2.26.0(@typescript-eslint/parser@5.36.2)(eslint@8.23.0) graphql: specifier: ^16.5.0 - version: 16.7.1 + version: 16.8.1 graphql-request: specifier: 5.1.0 - version: 5.1.0(graphql@16.7.1) + version: 5.1.0(graphql@16.8.1) jest: specifier: 28.1.3 version: 28.1.3(@types/node@18.6.2)(ts-node@10.9.1) - openapi-typescript-codegen: - specifier: https://github.com/aptos-labs/openapi-typescript-codegen/releases/download/v0.24.0-p1/openapi-typescript-codegen-v0.24.0-p1.tgz - version: '@github.com/aptos-labs/openapi-typescript-codegen/releases/download/v0.24.0-p1/openapi-typescript-codegen-v0.24.0-p1.tgz' prettier: specifier: 2.6.2 version: 2.6.2 @@ -116,15 +113,6 @@ packages: '@jridgewell/trace-mapping': 0.3.18 dev: true - /@apidevtools/json-schema-ref-parser@9.0.9: - resolution: {integrity: sha512-GBD2Le9w2+lVFoc4vswGI/TjkNIZSVp7+9xPf+X3uidBfWnAeUWmquteSyt0+VCrhNMWj/FTABISQrD3Z/YA+w==} - dependencies: - '@jsdevtools/ono': 7.1.3 - '@types/json-schema': 7.0.12 - call-me-maybe: 1.0.2 - js-yaml: 4.1.0 - dev: true - /@aptos-labs/aptos-client@0.0.2: resolution: {integrity: sha512-FgKZb5zDPz8MmAcVxXzYhxP6OkzuIPoDRJp48YJ8+vrZ9EOZ35HaWGN2M3u+GPdnFE9mODFqkxw3azh3kHGZjQ==} engines: {node: '>=15.10.0'} @@ -135,7 +123,7 @@ packages: - debug dev: false - /@ardatan/relay-compiler@12.0.0(graphql@16.7.1): + /@ardatan/relay-compiler@12.0.0(graphql@16.8.1): resolution: {integrity: sha512-9anThAaj1dQr6IGmzBMcfzOQKTa5artjuPmw8NYK/fiGEMjADbSguBY2FMDykt+QhilR3wc9VA/3yVju7JHg7Q==} hasBin: true peerDependencies: @@ -144,15 +132,15 @@ packages: '@babel/core': 7.22.5 '@babel/generator': 7.22.5 '@babel/parser': 7.22.5 - '@babel/runtime': 7.22.6 + '@babel/runtime': 7.23.1 '@babel/traverse': 7.22.5 - '@babel/types': 7.22.5 + '@babel/types': 7.23.0 babel-preset-fbjs: 3.4.0(@babel/core@7.22.5) chalk: 4.1.2 fb-watchman: 2.0.2 fbjs: 3.0.5 glob: 7.2.3 - graphql: 16.7.1 + graphql: 16.8.1 immutable: 3.7.6 invariant: 2.2.4 nullthrows: 1.1.1 @@ -168,7 +156,7 @@ packages: resolution: {integrity: sha512-xhlTqH0m31mnsG0tIP4ETgfSB6gXDaYYsUWTrlUV93fFQPI9dd8hE0Ot6MHLCtqgB32hwJAC3YZMWlXZw7AleA==} engines: {node: '>=14'} dependencies: - node-fetch: 2.6.12 + node-fetch: 2.7.0 transitivePeerDependencies: - encoding dev: true @@ -180,11 +168,6 @@ packages: '@babel/highlight': 7.22.5 dev: true - /@babel/compat-data@7.22.5: - resolution: {integrity: sha512-4Jc/YuIaYqKnDDz892kPIledykKg12Aw1PYX5i/TY28anJtacvM1Rrr8wbieB9GfEJwlzqT0hUEao0CxEebiDA==} - engines: {node: '>=6.9.0'} - dev: true - /@babel/compat-data@7.22.9: resolution: {integrity: sha512-5UamI7xkUcJ3i9qVDS+KFDEK8/7oJ55/sJMB1Ge7IEapr7KfdfV/HErR+koZwOfd+SgtFKOKRhRakdg++DcJpQ==} engines: {node: '>=6.9.0'} @@ -197,7 +180,7 @@ packages: '@ampproject/remapping': 2.2.1 '@babel/code-frame': 7.22.5 '@babel/generator': 7.22.5 - '@babel/helper-compilation-targets': 7.22.5(@babel/core@7.22.5) + '@babel/helper-compilation-targets': 7.22.9(@babel/core@7.22.5) '@babel/helper-module-transforms': 7.22.5 '@babel/helpers': 7.22.5 '@babel/parser': 7.22.5 @@ -208,7 +191,7 @@ packages: debug: 4.3.4 gensync: 1.0.0-beta.2 json5: 2.2.3 - semver: 6.3.0 + semver: 6.3.1 transitivePeerDependencies: - supports-color dev: true @@ -227,21 +210,18 @@ packages: resolution: {integrity: sha512-LvBTxu8bQSQkcyKOU+a1btnNFQ1dMAd0R6PyW3arXes06F6QLWLIrd681bxRPIXlrMGR3XYnW9JyML7dP3qgxg==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.22.5 + '@babel/types': 7.23.0 dev: true - /@babel/helper-compilation-targets@7.22.5(@babel/core@7.22.5): - resolution: {integrity: sha512-Ji+ywpHeuqxB8WDxraCiqR0xfhYjiDE/e6k7FuIaANnoOFxAHskHChz4vA1mJC9Lbm01s1PVAGhQY4FUKSkGZw==} + /@babel/helper-compilation-targets@7.22.15: + resolution: {integrity: sha512-y6EEzULok0Qvz8yyLkCvVX+02ic+By2UdOhylwUOvOn9dvYc9mKICJuuU1n1XBI02YWsNsnrY1kc6DVbjcXbtw==} engines: {node: '>=6.9.0'} - peerDependencies: - '@babel/core': ^7.0.0 dependencies: - '@babel/compat-data': 7.22.5 - '@babel/core': 7.22.5 - '@babel/helper-validator-option': 7.22.5 - browserslist: 4.21.7 + '@babel/compat-data': 7.22.9 + '@babel/helper-validator-option': 7.22.15 + browserslist: 4.21.9 lru-cache: 5.1.1 - semver: 6.3.0 + semver: 6.3.1 dev: true /@babel/helper-compilation-targets@7.22.9(@babel/core@7.22.5): @@ -258,24 +238,29 @@ packages: semver: 6.3.1 dev: true - /@babel/helper-create-class-features-plugin@7.22.9(@babel/core@7.22.5): - resolution: {integrity: sha512-Pwyi89uO4YrGKxL/eNJ8lfEH55DnRloGPOseaA8NFNL6jAUnn+KccaISiFazCj5IolPPDjGSdzQzXVzODVRqUQ==} + /@babel/helper-create-class-features-plugin@7.22.15(@babel/core@7.22.5): + resolution: {integrity: sha512-jKkwA59IXcvSaiK2UN45kKwSC9o+KuoXsBDvHvU/7BecYIp8GQ2UwrVvFgJASUT+hBnwJx6MhvMCuMzwZZ7jlg==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0 dependencies: '@babel/core': 7.22.5 '@babel/helper-annotate-as-pure': 7.22.5 - '@babel/helper-environment-visitor': 7.22.5 + '@babel/helper-environment-visitor': 7.22.20 '@babel/helper-function-name': 7.22.5 - '@babel/helper-member-expression-to-functions': 7.22.5 + '@babel/helper-member-expression-to-functions': 7.23.0 '@babel/helper-optimise-call-expression': 7.22.5 - '@babel/helper-replace-supers': 7.22.9(@babel/core@7.22.5) + '@babel/helper-replace-supers': 7.22.20(@babel/core@7.22.5) '@babel/helper-skip-transparent-expression-wrappers': 7.22.5 '@babel/helper-split-export-declaration': 7.22.6 semver: 6.3.1 dev: true + /@babel/helper-environment-visitor@7.22.20: + resolution: {integrity: sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA==} + engines: {node: '>=6.9.0'} + dev: true + /@babel/helper-environment-visitor@7.22.5: resolution: {integrity: sha512-XGmhECfVA/5sAt+H+xpSg0mfrHq6FzNr9Oxh7PSEBBRUb/mL7Kz3NICXb194rCqAEdxkhPT1a88teizAFyvk8Q==} engines: {node: '>=6.9.0'} @@ -296,11 +281,18 @@ packages: '@babel/types': 7.22.5 dev: true - /@babel/helper-member-expression-to-functions@7.22.5: - resolution: {integrity: sha512-aBiH1NKMG0H2cGZqspNvsaBe6wNGjbJjuLy29aU+eDZjSbbN53BaxlpB02xm9v34pLTZ1nIQPFYn2qMZoa5BQQ==} + /@babel/helper-member-expression-to-functions@7.23.0: + resolution: {integrity: sha512-6gfrPwh7OuT6gZyJZvd6WbTfrqAo7vm4xCzAXOusKqq/vWdKXphTpj5klHKNmRUU6/QRGlBsyU9mAIPaWHlqJA==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.22.5 + '@babel/types': 7.23.0 + dev: true + + /@babel/helper-module-imports@7.22.15: + resolution: {integrity: sha512-0pYVBnDKZO2fnSPCrgM/6WMc7eS20Fbok+0r88fp+YtWVLZrp4CkafFGIp+W0VKw4a22sgebPT99y+FDNMdP4w==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/types': 7.23.0 dev: true /@babel/helper-module-imports@7.22.5: @@ -317,7 +309,7 @@ packages: '@babel/helper-environment-visitor': 7.22.5 '@babel/helper-module-imports': 7.22.5 '@babel/helper-simple-access': 7.22.5 - '@babel/helper-split-export-declaration': 7.22.5 + '@babel/helper-split-export-declaration': 7.22.6 '@babel/helper-validator-identifier': 7.22.5 '@babel/template': 7.22.5 '@babel/traverse': 7.22.5 @@ -326,11 +318,25 @@ packages: - supports-color dev: true + /@babel/helper-module-transforms@7.23.0(@babel/core@7.22.5): + resolution: {integrity: sha512-WhDWw1tdrlT0gMgUJSlX0IQvoO1eN279zrAUbVB+KpV2c3Tylz8+GnKOLllCS6Z/iZQEyVYxhZVUdPTqs2YYPw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + dependencies: + '@babel/core': 7.22.5 + '@babel/helper-environment-visitor': 7.22.20 + '@babel/helper-module-imports': 7.22.15 + '@babel/helper-simple-access': 7.22.5 + '@babel/helper-split-export-declaration': 7.22.6 + '@babel/helper-validator-identifier': 7.22.20 + dev: true + /@babel/helper-optimise-call-expression@7.22.5: resolution: {integrity: sha512-HBwaojN0xFRx4yIvpwGqxiV2tUfl7401jlok564NgB9EHS1y6QT17FmKWm4ztqjeVdXLuC4fSvHc5ePpQjoTbw==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.22.5 + '@babel/types': 7.23.0 dev: true /@babel/helper-plugin-utils@7.22.5: @@ -338,15 +344,15 @@ packages: engines: {node: '>=6.9.0'} dev: true - /@babel/helper-replace-supers@7.22.9(@babel/core@7.22.5): - resolution: {integrity: sha512-LJIKvvpgPOPUThdYqcX6IXRuIcTkcAub0IaDRGCZH0p5GPUp7PhRU9QVgFcDDd51BaPkk77ZjqFwh6DZTAEmGg==} + /@babel/helper-replace-supers@7.22.20(@babel/core@7.22.5): + resolution: {integrity: sha512-qsW0In3dbwQUbK8kejJ4R7IHVGwHJlV6lpG6UA7a9hSa2YEiAib+N1T2kr6PEeUT+Fl7najmSOS6SmAwCHK6Tw==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0 dependencies: '@babel/core': 7.22.5 - '@babel/helper-environment-visitor': 7.22.5 - '@babel/helper-member-expression-to-functions': 7.22.5 + '@babel/helper-environment-visitor': 7.22.20 + '@babel/helper-member-expression-to-functions': 7.23.0 '@babel/helper-optimise-call-expression': 7.22.5 dev: true @@ -361,14 +367,7 @@ packages: resolution: {integrity: sha512-tK14r66JZKiC43p8Ki33yLBVJKlQDFoA8GYN67lWCDCqoL6EMMSuM9b+Iff2jHaM/RRFYl7K+iiru7hbRqNx8Q==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.22.5 - dev: true - - /@babel/helper-split-export-declaration@7.22.5: - resolution: {integrity: sha512-thqK5QFghPKWLhAV321lxF95yCg2K3Ob5yw+M3VHWfdia0IkPXUtoLH8x/6Fh486QUvzhb8YOWHChTVen2/PoQ==} - engines: {node: '>=6.9.0'} - dependencies: - '@babel/types': 7.22.5 + '@babel/types': 7.23.0 dev: true /@babel/helper-split-export-declaration@7.22.6: @@ -383,11 +382,21 @@ packages: engines: {node: '>=6.9.0'} dev: true + /@babel/helper-validator-identifier@7.22.20: + resolution: {integrity: sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==} + engines: {node: '>=6.9.0'} + dev: true + /@babel/helper-validator-identifier@7.22.5: resolution: {integrity: sha512-aJXu+6lErq8ltp+JhkJUfk1MTGyuA4v7f3pA+BJ5HLfNC6nAQ0Cpi9uOquUj8Hehg0aUiHzWQbOVJGao6ztBAQ==} engines: {node: '>=6.9.0'} dev: true + /@babel/helper-validator-option@7.22.15: + resolution: {integrity: sha512-bMn7RmyFjY/mdECUbgn9eoSY4vqvacUnS9i9vGAGttgFWesO6B4CYWA7XlpbWgBt71iv/hfbPlynohStqnu5hA==} + engines: {node: '>=6.9.0'} + dev: true + /@babel/helper-validator-option@7.22.5: resolution: {integrity: sha512-R3oB6xlIVKUnxNUxbmgq7pKjxpru24zlimpE8WK47fACIlM0II/Hm1RS8IaOI7NgCr6LNS+jl5l75m20npAziw==} engines: {node: '>=6.9.0'} @@ -424,26 +433,28 @@ packages: /@babel/plugin-proposal-class-properties@7.18.6(@babel/core@7.22.5): resolution: {integrity: sha512-cumfXOF0+nzZrrN8Rf0t7M+tF6sZc7vhQwYQck9q1/5w2OExlD+b4v4RpMJFaV1Z7WcDRgO6FqvxqxGlwo+RHQ==} engines: {node: '>=6.9.0'} + deprecated: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead. peerDependencies: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.22.5 - '@babel/helper-create-class-features-plugin': 7.22.9(@babel/core@7.22.5) + '@babel/helper-create-class-features-plugin': 7.22.15(@babel/core@7.22.5) '@babel/helper-plugin-utils': 7.22.5 dev: true /@babel/plugin-proposal-object-rest-spread@7.20.7(@babel/core@7.22.5): resolution: {integrity: sha512-d2S98yCiLxDVmBmE8UjGcfPvNEUbA1U5q5WxaWFUGRzJSVAZqm5W6MbPct0jxnegUZ0niLeNX+IOzEs7wYg9Dg==} engines: {node: '>=6.9.0'} + deprecated: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-object-rest-spread instead. peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/compat-data': 7.22.5 + '@babel/compat-data': 7.22.9 '@babel/core': 7.22.5 - '@babel/helper-compilation-targets': 7.22.5(@babel/core@7.22.5) + '@babel/helper-compilation-targets': 7.22.15 '@babel/helper-plugin-utils': 7.22.5 '@babel/plugin-syntax-object-rest-spread': 7.8.3(@babel/core@7.22.5) - '@babel/plugin-transform-parameters': 7.22.5(@babel/core@7.22.5) + '@babel/plugin-transform-parameters': 7.22.15(@babel/core@7.22.5) dev: true /@babel/plugin-syntax-async-generators@7.8.4(@babel/core@7.22.5): @@ -615,8 +626,8 @@ packages: '@babel/helper-plugin-utils': 7.22.5 dev: true - /@babel/plugin-transform-block-scoping@7.22.5(@babel/core@7.22.5): - resolution: {integrity: sha512-EcACl1i5fSQ6bt+YGuU/XGCeZKStLmyVGytWkpyhCLeQVA0eu6Wtiw92V+I1T/hnezUv7j74dA/Ro69gWcU+hg==} + /@babel/plugin-transform-block-scoping@7.23.0(@babel/core@7.22.5): + resolution: {integrity: sha512-cOsrbmIOXmf+5YbL99/S49Y3j46k/T16b9ml8bm9lP6N9US5iQ2yBK7gpui1pg0V/WMcXdkfKbTb7HXq9u+v4g==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 @@ -625,20 +636,20 @@ packages: '@babel/helper-plugin-utils': 7.22.5 dev: true - /@babel/plugin-transform-classes@7.22.6(@babel/core@7.22.5): - resolution: {integrity: sha512-58EgM6nuPNG6Py4Z3zSuu0xWu2VfodiMi72Jt5Kj2FECmaYk1RrTXA45z6KBFsu9tRgwQDwIiY4FXTt+YsSFAQ==} + /@babel/plugin-transform-classes@7.22.15(@babel/core@7.22.5): + resolution: {integrity: sha512-VbbC3PGjBdE0wAWDdHM9G8Gm977pnYI0XpqMd6LrKISj8/DJXEsWqgRuTYaNE9Bv0JGhTZUzHDlMk18IpOuoqw==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.22.5 '@babel/helper-annotate-as-pure': 7.22.5 - '@babel/helper-compilation-targets': 7.22.9(@babel/core@7.22.5) - '@babel/helper-environment-visitor': 7.22.5 + '@babel/helper-compilation-targets': 7.22.15 + '@babel/helper-environment-visitor': 7.22.20 '@babel/helper-function-name': 7.22.5 '@babel/helper-optimise-call-expression': 7.22.5 '@babel/helper-plugin-utils': 7.22.5 - '@babel/helper-replace-supers': 7.22.9(@babel/core@7.22.5) + '@babel/helper-replace-supers': 7.22.20(@babel/core@7.22.5) '@babel/helper-split-export-declaration': 7.22.6 globals: 11.12.0 dev: true @@ -654,8 +665,8 @@ packages: '@babel/template': 7.22.5 dev: true - /@babel/plugin-transform-destructuring@7.22.5(@babel/core@7.22.5): - resolution: {integrity: sha512-GfqcFuGW8vnEqTUBM7UtPd5A4q797LTvvwKxXTgRsFjoqaJiEg9deBG6kWeQYkVEL569NpnmpC0Pkr/8BLKGnQ==} + /@babel/plugin-transform-destructuring@7.23.0(@babel/core@7.22.5): + resolution: {integrity: sha512-vaMdgNXFkYrB+8lbgniSYWHsgqK5gjaMNcc84bMIOMRLH0L9AqYq3hwMdvnyqj1OPqea8UtjPEuS/DCenah1wg==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 @@ -675,8 +686,8 @@ packages: '@babel/plugin-syntax-flow': 7.22.5(@babel/core@7.22.5) dev: true - /@babel/plugin-transform-for-of@7.22.5(@babel/core@7.22.5): - resolution: {integrity: sha512-3kxQjX1dU9uudwSshyLeEipvrLjBCVthCgeTp6CzE/9JYrlAIaeekVxRpCWsDDfYTfRZRoCeZatCQvwo+wvK8A==} + /@babel/plugin-transform-for-of@7.22.15(@babel/core@7.22.5): + resolution: {integrity: sha512-me6VGeHsx30+xh9fbDLLPi0J1HzmeIIyenoOQHuw2D4m2SAU3NrspX5XxJLBpqn5yrLzrlw2Iy3RA//Bx27iOA==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 @@ -692,7 +703,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.22.5 - '@babel/helper-compilation-targets': 7.22.5(@babel/core@7.22.5) + '@babel/helper-compilation-targets': 7.22.15 '@babel/helper-function-name': 7.22.5 '@babel/helper-plugin-utils': 7.22.5 dev: true @@ -717,18 +728,16 @@ packages: '@babel/helper-plugin-utils': 7.22.5 dev: true - /@babel/plugin-transform-modules-commonjs@7.22.5(@babel/core@7.22.5): - resolution: {integrity: sha512-B4pzOXj+ONRmuaQTg05b3y/4DuFz3WcCNAXPLb2Q0GT0TrGKGxNKV4jwsXts+StaM0LQczZbOpj8o1DLPDJIiA==} + /@babel/plugin-transform-modules-commonjs@7.23.0(@babel/core@7.22.5): + resolution: {integrity: sha512-32Xzss14/UVc7k9g775yMIvkVK8xwKE0DPdP5JTapr3+Z9w4tzeOuLNY6BXDQR6BdnzIlXnCGAzsk/ICHBLVWQ==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.22.5 - '@babel/helper-module-transforms': 7.22.5 + '@babel/helper-module-transforms': 7.23.0(@babel/core@7.22.5) '@babel/helper-plugin-utils': 7.22.5 '@babel/helper-simple-access': 7.22.5 - transitivePeerDependencies: - - supports-color dev: true /@babel/plugin-transform-object-super@7.22.5(@babel/core@7.22.5): @@ -739,11 +748,11 @@ packages: dependencies: '@babel/core': 7.22.5 '@babel/helper-plugin-utils': 7.22.5 - '@babel/helper-replace-supers': 7.22.9(@babel/core@7.22.5) + '@babel/helper-replace-supers': 7.22.20(@babel/core@7.22.5) dev: true - /@babel/plugin-transform-parameters@7.22.5(@babel/core@7.22.5): - resolution: {integrity: sha512-AVkFUBurORBREOmHRKo06FjHYgjrabpdqRSwq6+C7R5iTCZOsM4QbcB27St0a4U6fffyAOqh3s/qEfybAhfivg==} + /@babel/plugin-transform-parameters@7.22.15(@babel/core@7.22.5): + resolution: {integrity: sha512-hjk7qKIqhyzhhUvRT683TYQOFa/4cQKwQy7ALvTpODswN40MljzNDa0YldevS6tGbxwaEKVn502JmY0dP7qEtQ==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 @@ -772,18 +781,18 @@ packages: '@babel/helper-plugin-utils': 7.22.5 dev: true - /@babel/plugin-transform-react-jsx@7.22.5(@babel/core@7.22.5): - resolution: {integrity: sha512-rog5gZaVbUip5iWDMTYbVM15XQq+RkUKhET/IHR6oizR+JEoN6CAfTTuHcK4vwUyzca30qqHqEpzBOnaRMWYMA==} + /@babel/plugin-transform-react-jsx@7.22.15(@babel/core@7.22.5): + resolution: {integrity: sha512-oKckg2eZFa8771O/5vi7XeTvmM6+O9cxZu+kanTU7tD4sin5nO/G8jGJhq8Hvt2Z0kUoEDRayuZLaUlYl8QuGA==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.22.5 '@babel/helper-annotate-as-pure': 7.22.5 - '@babel/helper-module-imports': 7.22.5 + '@babel/helper-module-imports': 7.22.15 '@babel/helper-plugin-utils': 7.22.5 '@babel/plugin-syntax-jsx': 7.22.5(@babel/core@7.22.5) - '@babel/types': 7.22.5 + '@babel/types': 7.23.0 dev: true /@babel/plugin-transform-shorthand-properties@7.22.5(@babel/core@7.22.5): @@ -817,11 +826,11 @@ packages: '@babel/helper-plugin-utils': 7.22.5 dev: true - /@babel/runtime@7.22.6: - resolution: {integrity: sha512-wDb5pWm4WDdF6LFUde3Jl8WzPA+3ZbxYqkC6xAXuD3irdEHN1k0NfTRrJD8ZD378SJ61miMLCqIOXYhd8x+AJQ==} + /@babel/runtime@7.23.1: + resolution: {integrity: sha512-hC2v6p8ZSI/W0HUzh3V8C5g+NwSKzKPtJwSpTjwl0o297GP9+ZLQSkdvHz46CM3LqyoXxq+5G9komY+eSqSO0g==} engines: {node: '>=6.9.0'} dependencies: - regenerator-runtime: 0.13.11 + regenerator-runtime: 0.14.0 dev: true /@babel/template@7.22.5: @@ -842,7 +851,7 @@ packages: '@babel/helper-environment-visitor': 7.22.5 '@babel/helper-function-name': 7.22.5 '@babel/helper-hoist-variables': 7.22.5 - '@babel/helper-split-export-declaration': 7.22.5 + '@babel/helper-split-export-declaration': 7.22.6 '@babel/parser': 7.22.5 '@babel/types': 7.22.5 debug: 4.3.4 @@ -860,6 +869,15 @@ packages: to-fast-properties: 2.0.0 dev: true + /@babel/types@7.23.0: + resolution: {integrity: sha512-0oIyUfKoI3mSqMvsxBdclDwxXKXAUA8v/apZbc+iSyARYou1o8ZGDxbUYyLFoW2arqS2jDGqJuZvv1d/io1axg==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/helper-string-parser': 7.22.5 + '@babel/helper-validator-identifier': 7.22.20 + to-fast-properties: 2.0.0 + dev: true + /@bcoe/v8-coverage@0.2.3: resolution: {integrity: sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==} dev: true @@ -906,18 +924,18 @@ packages: - supports-color dev: true - /@graphql-codegen/add@3.2.3(graphql@16.7.1): + /@graphql-codegen/add@3.2.3(graphql@16.8.1): resolution: {integrity: sha512-sQOnWpMko4JLeykwyjFTxnhqjd/3NOG2OyMuvK76Wnnwh8DRrNf2VEs2kmSvLl7MndMlOj7Kh5U154dVcvhmKQ==} peerDependencies: graphql: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 dependencies: - '@graphql-codegen/plugin-helpers': 3.1.2(graphql@16.7.1) - graphql: 16.7.1 + '@graphql-codegen/plugin-helpers': 3.1.2(graphql@16.8.1) + graphql: 16.8.1 tslib: 2.4.1 dev: true - /@graphql-codegen/cli@2.16.5(@babel/core@7.22.5)(@types/node@18.6.2)(graphql@16.7.1)(typescript@4.8.2): - resolution: {integrity: sha512-XYPIp+q7fB0xAGSAoRykiTe4oY80VU+z+dw5nuv4mLY0+pv7+pa2C6Nwhdw7a65lXOhFviBApWCCZeqd54SMnA==} + /@graphql-codegen/cli@2.13.5(@babel/core@7.22.5)(@types/node@18.6.2)(graphql@16.8.1)(ts-node@10.9.1)(typescript@4.8.2): + resolution: {integrity: sha512-qqkQxd+9jBdZDjUSCsH3rTHKmFY9KNQwvwXXEMpRSz+oByYTxGZ0ZE5Lxt0hRXFkGOe8BaVkfPiwa2qSUfA5vw==} hasBin: true peerDependencies: graphql: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 @@ -925,37 +943,37 @@ packages: '@babel/generator': 7.22.5 '@babel/template': 7.22.5 '@babel/types': 7.22.5 - '@graphql-codegen/core': 2.6.8(graphql@16.7.1) - '@graphql-codegen/plugin-helpers': 3.1.2(graphql@16.7.1) - '@graphql-tools/apollo-engine-loader': 7.3.26(graphql@16.7.1) - '@graphql-tools/code-file-loader': 7.3.23(@babel/core@7.22.5)(graphql@16.7.1) - '@graphql-tools/git-loader': 7.3.0(@babel/core@7.22.5)(graphql@16.7.1) - '@graphql-tools/github-loader': 7.3.28(@babel/core@7.22.5)(@types/node@18.6.2)(graphql@16.7.1) - '@graphql-tools/graphql-file-loader': 7.5.17(graphql@16.7.1) - '@graphql-tools/json-file-loader': 7.4.18(graphql@16.7.1) - '@graphql-tools/load': 7.8.14(graphql@16.7.1) - '@graphql-tools/prisma-loader': 7.2.72(@types/node@18.6.2)(graphql@16.7.1) - '@graphql-tools/url-loader': 7.17.18(@types/node@18.6.2)(graphql@16.7.1) - '@graphql-tools/utils': 9.2.1(graphql@16.7.1) - '@whatwg-node/fetch': 0.6.9(@types/node@18.6.2) + '@graphql-codegen/core': 2.6.2(graphql@16.8.1) + '@graphql-codegen/plugin-helpers': 2.7.2(graphql@16.8.1) + '@graphql-tools/apollo-engine-loader': 7.3.26(graphql@16.8.1) + '@graphql-tools/code-file-loader': 7.3.23(@babel/core@7.22.5)(graphql@16.8.1) + '@graphql-tools/git-loader': 7.3.0(@babel/core@7.22.5)(graphql@16.8.1) + '@graphql-tools/github-loader': 7.3.28(@babel/core@7.22.5)(@types/node@18.6.2)(graphql@16.8.1) + '@graphql-tools/graphql-file-loader': 7.5.17(graphql@16.8.1) + '@graphql-tools/json-file-loader': 7.4.18(graphql@16.8.1) + '@graphql-tools/load': 7.8.14(graphql@16.8.1) + '@graphql-tools/prisma-loader': 7.2.72(@types/node@18.6.2)(graphql@16.8.1) + '@graphql-tools/url-loader': 7.17.18(@types/node@18.6.2)(graphql@16.8.1) + '@graphql-tools/utils': 8.13.1(graphql@16.8.1) + '@whatwg-node/fetch': 0.3.2 + ansi-escapes: 4.3.2 chalk: 4.1.2 chokidar: 3.5.3 cosmiconfig: 7.1.0 - cosmiconfig-typescript-loader: 4.3.0(@types/node@18.6.2)(cosmiconfig@7.1.0)(ts-node@10.9.1)(typescript@4.8.2) + cosmiconfig-typescript-loader: 4.1.1(@types/node@18.6.2)(cosmiconfig@7.1.0)(ts-node@10.9.1)(typescript@4.8.2) debounce: 1.2.1 detect-indent: 6.1.0 - graphql: 16.7.1 - graphql-config: 4.5.0(@types/node@18.6.2)(graphql@16.7.1) - inquirer: 8.2.5 + graphql: 16.8.1 + graphql-config: 4.3.6(@types/node@18.6.2)(graphql@16.8.1)(typescript@4.8.2) + inquirer: 8.2.6 is-glob: 4.0.3 json-to-pretty-yaml: 1.2.2 listr2: 4.0.5 log-symbols: 4.1.0 - shell-quote: 1.8.1 + mkdirp: 1.0.4 string-env-interpolation: 1.0.1 ts-log: 2.2.5 - ts-node: 10.9.1(@types/node@18.6.2)(typescript@4.8.2) - tslib: 2.6.0 + tslib: 2.6.2 yaml: 1.10.2 yargs: 17.7.2 transitivePeerDependencies: @@ -964,145 +982,145 @@ packages: - '@swc/wasm' - '@types/node' - bufferutil - - cosmiconfig-toml-loader - encoding - enquirer - supports-color + - ts-node - typescript - utf-8-validate dev: true - /@graphql-codegen/core@2.6.8(graphql@16.7.1): - resolution: {integrity: sha512-JKllNIipPrheRgl+/Hm/xuWMw9++xNQ12XJR/OHHgFopOg4zmN3TdlRSyYcv/K90hCFkkIwhlHFUQTfKrm8rxQ==} + /@graphql-codegen/core@2.6.2(graphql@16.8.1): + resolution: {integrity: sha512-58T5yf9nEfAhDwN1Vz1hImqpdJ/gGpCGUaroQ5tqskZPf7eZYYVkEXbtqRZZLx1MCCKwjWX4hMtTPpHhwKCkng==} peerDependencies: graphql: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 dependencies: - '@graphql-codegen/plugin-helpers': 3.1.2(graphql@16.7.1) - '@graphql-tools/schema': 9.0.19(graphql@16.7.1) - '@graphql-tools/utils': 9.2.1(graphql@16.7.1) - graphql: 16.7.1 + '@graphql-codegen/plugin-helpers': 2.7.2(graphql@16.8.1) + '@graphql-tools/schema': 9.0.19(graphql@16.8.1) + '@graphql-tools/utils': 8.13.1(graphql@16.8.1) + graphql: 16.8.1 tslib: 2.4.1 dev: true - /@graphql-codegen/import-types-preset@2.2.6(graphql@16.7.1): - resolution: {integrity: sha512-Lo2ITOln3UVdyyEPiijj8bVhVg0Ghp/JzHXA2LXxrJVCRbXizQhVC2vjiaWTjMskPt9Zub0yIoce4+RrbsXKcg==} + /@graphql-codegen/import-types-preset@2.2.3(graphql@16.8.1): + resolution: {integrity: sha512-G0Fb/P+w/1aCFd89pqfLLX7VrvCICyS8pcmDWxNLmrD77z7Qxlw22ZyNeIdtAF+F3B99r5tpp7j+OAN3qP8eMA==} peerDependencies: graphql: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 dependencies: - '@graphql-codegen/add': 3.2.3(graphql@16.7.1) - '@graphql-codegen/plugin-helpers': 2.7.2(graphql@16.7.1) - '@graphql-codegen/visitor-plugin-common': 2.13.1(graphql@16.7.1) - graphql: 16.7.1 + '@graphql-codegen/add': 3.2.3(graphql@16.8.1) + '@graphql-codegen/plugin-helpers': 2.7.2(graphql@16.8.1) + '@graphql-codegen/visitor-plugin-common': 2.12.1(graphql@16.8.1) + graphql: 16.8.1 tslib: 2.4.1 transitivePeerDependencies: - encoding - supports-color dev: true - /@graphql-codegen/plugin-helpers@2.7.2(graphql@16.7.1): + /@graphql-codegen/plugin-helpers@2.7.2(graphql@16.8.1): resolution: {integrity: sha512-kln2AZ12uii6U59OQXdjLk5nOlh1pHis1R98cDZGFnfaiAbX9V3fxcZ1MMJkB7qFUymTALzyjZoXXdyVmPMfRg==} peerDependencies: graphql: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 dependencies: - '@graphql-tools/utils': 8.13.1(graphql@16.7.1) + '@graphql-tools/utils': 8.13.1(graphql@16.8.1) change-case-all: 1.0.14 common-tags: 1.8.2 - graphql: 16.7.1 + graphql: 16.8.1 import-from: 4.0.0 lodash: 4.17.21 tslib: 2.4.1 dev: true - /@graphql-codegen/plugin-helpers@3.1.2(graphql@16.7.1): + /@graphql-codegen/plugin-helpers@3.1.2(graphql@16.8.1): resolution: {integrity: sha512-emOQiHyIliVOIjKVKdsI5MXj312zmRDwmHpyUTZMjfpvxq/UVAHUJIVdVf+lnjjrI+LXBTgMlTWTgHQfmICxjg==} peerDependencies: graphql: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 dependencies: - '@graphql-tools/utils': 9.2.1(graphql@16.7.1) + '@graphql-tools/utils': 9.2.1(graphql@16.8.1) change-case-all: 1.0.15 common-tags: 1.8.2 - graphql: 16.7.1 + graphql: 16.8.1 import-from: 4.0.0 lodash: 4.17.21 tslib: 2.4.1 dev: true - /@graphql-codegen/schema-ast@2.6.1(graphql@16.7.1): + /@graphql-codegen/schema-ast@2.6.1(graphql@16.8.1): resolution: {integrity: sha512-5TNW3b1IHJjCh07D2yQNGDQzUpUl2AD+GVe1Dzjqyx/d2Fn0TPMxLsHsKPS4Plg4saO8FK/QO70wLsP7fdbQ1w==} peerDependencies: graphql: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 dependencies: - '@graphql-codegen/plugin-helpers': 3.1.2(graphql@16.7.1) - '@graphql-tools/utils': 9.2.1(graphql@16.7.1) - graphql: 16.7.1 + '@graphql-codegen/plugin-helpers': 3.1.2(graphql@16.8.1) + '@graphql-tools/utils': 9.2.1(graphql@16.8.1) + graphql: 16.8.1 tslib: 2.4.1 dev: true - /@graphql-codegen/typescript-graphql-request@4.5.9(graphql-request@5.1.0)(graphql-tag@2.12.6)(graphql@16.7.1): - resolution: {integrity: sha512-Vtv5qymUXcR4UFdHOlJHzK5TN+CZUwMwFDGb3n4Gjcr4yln1BWbUb7DXgD0GHzpXwDIj5G2XmJnFtr0jihBfrg==} + /@graphql-codegen/typescript-graphql-request@4.5.8(graphql-request@5.1.0)(graphql-tag@2.12.6)(graphql@16.8.1): + resolution: {integrity: sha512-XsuAA35Ou03LsklNgnIWXZ5HOHsJ5w1dBuDKtvqM9rD0cAI8x0f4TY0n6O1EraSBSvyHLP3npb1lOTPZzG2TjA==} peerDependencies: graphql: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 - graphql-request: ^3.4.0 || ^4.0.0 || ~5.0.0 || ~5.1.0 + graphql-request: ^3.4.0 || ^4.0.0 || ^5.0.0 graphql-tag: ^2.0.0 dependencies: - '@graphql-codegen/plugin-helpers': 3.1.2(graphql@16.7.1) - '@graphql-codegen/visitor-plugin-common': 2.13.1(graphql@16.7.1) + '@graphql-codegen/plugin-helpers': 2.7.2(graphql@16.8.1) + '@graphql-codegen/visitor-plugin-common': 2.13.1(graphql@16.8.1) auto-bind: 4.0.0 - graphql: 16.7.1 - graphql-request: 5.1.0(graphql@16.7.1) - graphql-tag: 2.12.6(graphql@16.7.1) + graphql: 16.8.1 + graphql-request: 5.1.0(graphql@16.8.1) + graphql-tag: 2.12.6(graphql@16.8.1) tslib: 2.4.1 transitivePeerDependencies: - encoding - supports-color dev: true - /@graphql-codegen/typescript-operations@2.5.13(graphql@16.7.1): - resolution: {integrity: sha512-3vfR6Rx6iZU0JRt29GBkFlrSNTM6t+MSLF86ChvL4d/Jfo/JYAGuB3zNzPhirHYzJPCvLOAx2gy9ID1ltrpYiw==} + /@graphql-codegen/typescript-operations@2.5.3(graphql@16.8.1): + resolution: {integrity: sha512-s+pA+Erm0HeBb/D5cNrflwRM5KWhkiA5cbz4uA99l3fzFPveoQBPfRCBu0XAlJLP/kBDy64+o4B8Nfc7wdRtmA==} peerDependencies: graphql: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 dependencies: - '@graphql-codegen/plugin-helpers': 3.1.2(graphql@16.7.1) - '@graphql-codegen/typescript': 2.8.8(graphql@16.7.1) - '@graphql-codegen/visitor-plugin-common': 2.13.8(graphql@16.7.1) + '@graphql-codegen/plugin-helpers': 2.7.2(graphql@16.8.1) + '@graphql-codegen/typescript': 2.7.3(graphql@16.8.1) + '@graphql-codegen/visitor-plugin-common': 2.12.1(graphql@16.8.1) auto-bind: 4.0.0 - graphql: 16.7.1 + graphql: 16.8.1 tslib: 2.4.1 transitivePeerDependencies: - encoding - supports-color dev: true - /@graphql-codegen/typescript@2.8.8(graphql@16.7.1): - resolution: {integrity: sha512-A0oUi3Oy6+DormOlrTC4orxT9OBZkIglhbJBcDmk34jAKKUgesukXRd4yOhmTrnbchpXz2T8IAOFB3FWIaK4Rw==} + /@graphql-codegen/typescript@2.7.3(graphql@16.8.1): + resolution: {integrity: sha512-EzX/acijXtbG/AwPzho2ZZWaNo00+xAbsRDP+vnT2PwQV3AYq3/5bFvjq1XfAGWbTntdmlYlIwC9hf5bI85WVA==} peerDependencies: graphql: ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 dependencies: - '@graphql-codegen/plugin-helpers': 3.1.2(graphql@16.7.1) - '@graphql-codegen/schema-ast': 2.6.1(graphql@16.7.1) - '@graphql-codegen/visitor-plugin-common': 2.13.8(graphql@16.7.1) + '@graphql-codegen/plugin-helpers': 2.7.2(graphql@16.8.1) + '@graphql-codegen/schema-ast': 2.6.1(graphql@16.8.1) + '@graphql-codegen/visitor-plugin-common': 2.12.1(graphql@16.8.1) auto-bind: 4.0.0 - graphql: 16.7.1 + graphql: 16.8.1 tslib: 2.4.1 transitivePeerDependencies: - encoding - supports-color dev: true - /@graphql-codegen/visitor-plugin-common@2.13.1(graphql@16.7.1): - resolution: {integrity: sha512-mD9ufZhDGhyrSaWQGrU1Q1c5f01TeWtSWy/cDwXYjJcHIj1Y/DG2x0tOflEfCvh5WcnmHNIw4lzDsg1W7iFJEg==} + /@graphql-codegen/visitor-plugin-common@2.12.1(graphql@16.8.1): + resolution: {integrity: sha512-dIUrX4+i/uazyPQqXyQ8cqykgNFe1lknjnfDWFo0gnk2W8+ruuL2JpSrj/7efzFHxbYGMQrCABDCUTVLi3DcVA==} peerDependencies: graphql: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 dependencies: - '@graphql-codegen/plugin-helpers': 2.7.2(graphql@16.7.1) - '@graphql-tools/optimize': 1.4.0(graphql@16.7.1) - '@graphql-tools/relay-operation-optimizer': 6.5.18(graphql@16.7.1) - '@graphql-tools/utils': 8.13.1(graphql@16.7.1) + '@graphql-codegen/plugin-helpers': 2.7.2(graphql@16.8.1) + '@graphql-tools/optimize': 1.4.0(graphql@16.8.1) + '@graphql-tools/relay-operation-optimizer': 6.5.18(graphql@16.8.1) + '@graphql-tools/utils': 8.13.1(graphql@16.8.1) auto-bind: 4.0.0 change-case-all: 1.0.14 dependency-graph: 0.11.0 - graphql: 16.7.1 - graphql-tag: 2.12.6(graphql@16.7.1) + graphql: 16.8.1 + graphql-tag: 2.12.6(graphql@16.8.1) parse-filepath: 1.0.2 tslib: 2.4.1 transitivePeerDependencies: @@ -1110,20 +1128,20 @@ packages: - supports-color dev: true - /@graphql-codegen/visitor-plugin-common@2.13.8(graphql@16.7.1): - resolution: {integrity: sha512-IQWu99YV4wt8hGxIbBQPtqRuaWZhkQRG2IZKbMoSvh0vGeWb3dB0n0hSgKaOOxDY+tljtOf9MTcUYvJslQucMQ==} + /@graphql-codegen/visitor-plugin-common@2.13.1(graphql@16.8.1): + resolution: {integrity: sha512-mD9ufZhDGhyrSaWQGrU1Q1c5f01TeWtSWy/cDwXYjJcHIj1Y/DG2x0tOflEfCvh5WcnmHNIw4lzDsg1W7iFJEg==} peerDependencies: graphql: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 dependencies: - '@graphql-codegen/plugin-helpers': 3.1.2(graphql@16.7.1) - '@graphql-tools/optimize': 1.4.0(graphql@16.7.1) - '@graphql-tools/relay-operation-optimizer': 6.5.18(graphql@16.7.1) - '@graphql-tools/utils': 9.2.1(graphql@16.7.1) + '@graphql-codegen/plugin-helpers': 2.7.2(graphql@16.8.1) + '@graphql-tools/optimize': 1.4.0(graphql@16.8.1) + '@graphql-tools/relay-operation-optimizer': 6.5.18(graphql@16.8.1) + '@graphql-tools/utils': 8.13.1(graphql@16.8.1) auto-bind: 4.0.0 - change-case-all: 1.0.15 + change-case-all: 1.0.14 dependency-graph: 0.11.0 - graphql: 16.7.1 - graphql-tag: 2.12.6(graphql@16.7.1) + graphql: 16.8.1 + graphql-tag: 2.12.6(graphql@16.8.1) parse-filepath: 1.0.2 tslib: 2.4.1 transitivePeerDependencies: @@ -1131,157 +1149,157 @@ packages: - supports-color dev: true - /@graphql-tools/apollo-engine-loader@7.3.26(graphql@16.7.1): + /@graphql-tools/apollo-engine-loader@7.3.26(graphql@16.8.1): resolution: {integrity: sha512-h1vfhdJFjnCYn9b5EY1Z91JTF0KB3hHVJNQIsiUV2mpQXZdeOXQoaWeYEKaiI5R6kwBw5PP9B0fv3jfUIG8LyQ==} peerDependencies: graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 dependencies: '@ardatan/sync-fetch': 0.0.1 - '@graphql-tools/utils': 9.2.1(graphql@16.7.1) + '@graphql-tools/utils': 9.2.1(graphql@16.8.1) '@whatwg-node/fetch': 0.8.8 - graphql: 16.7.1 - tslib: 2.6.0 + graphql: 16.8.1 + tslib: 2.6.2 transitivePeerDependencies: - encoding dev: true - /@graphql-tools/batch-execute@8.5.22(graphql@16.7.1): + /@graphql-tools/batch-execute@8.5.22(graphql@16.8.1): resolution: {integrity: sha512-hcV1JaY6NJQFQEwCKrYhpfLK8frSXDbtNMoTur98u10Cmecy1zrqNKSqhEyGetpgHxaJRqszGzKeI3RuroDN6A==} peerDependencies: graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 dependencies: - '@graphql-tools/utils': 9.2.1(graphql@16.7.1) + '@graphql-tools/utils': 9.2.1(graphql@16.8.1) dataloader: 2.2.2 - graphql: 16.7.1 - tslib: 2.6.0 + graphql: 16.8.1 + tslib: 2.6.2 value-or-promise: 1.0.12 dev: true - /@graphql-tools/code-file-loader@7.3.23(@babel/core@7.22.5)(graphql@16.7.1): + /@graphql-tools/code-file-loader@7.3.23(@babel/core@7.22.5)(graphql@16.8.1): resolution: {integrity: sha512-8Wt1rTtyTEs0p47uzsPJ1vAtfAx0jmxPifiNdmo9EOCuUPyQGEbMaik/YkqZ7QUFIEYEQu+Vgfo8tElwOPtx5Q==} peerDependencies: graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 dependencies: - '@graphql-tools/graphql-tag-pluck': 7.5.2(@babel/core@7.22.5)(graphql@16.7.1) - '@graphql-tools/utils': 9.2.1(graphql@16.7.1) + '@graphql-tools/graphql-tag-pluck': 7.5.2(@babel/core@7.22.5)(graphql@16.8.1) + '@graphql-tools/utils': 9.2.1(graphql@16.8.1) globby: 11.1.0 - graphql: 16.7.1 - tslib: 2.6.0 + graphql: 16.8.1 + tslib: 2.6.2 unixify: 1.0.0 transitivePeerDependencies: - '@babel/core' - supports-color dev: true - /@graphql-tools/delegate@9.0.35(graphql@16.7.1): + /@graphql-tools/delegate@9.0.35(graphql@16.8.1): resolution: {integrity: sha512-jwPu8NJbzRRMqi4Vp/5QX1vIUeUPpWmlQpOkXQD2r1X45YsVceyUUBnktCrlJlDB4jPRVy7JQGwmYo3KFiOBMA==} peerDependencies: graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 dependencies: - '@graphql-tools/batch-execute': 8.5.22(graphql@16.7.1) - '@graphql-tools/executor': 0.0.20(graphql@16.7.1) - '@graphql-tools/schema': 9.0.19(graphql@16.7.1) - '@graphql-tools/utils': 9.2.1(graphql@16.7.1) + '@graphql-tools/batch-execute': 8.5.22(graphql@16.8.1) + '@graphql-tools/executor': 0.0.20(graphql@16.8.1) + '@graphql-tools/schema': 9.0.19(graphql@16.8.1) + '@graphql-tools/utils': 9.2.1(graphql@16.8.1) dataloader: 2.2.2 - graphql: 16.7.1 - tslib: 2.6.0 + graphql: 16.8.1 + tslib: 2.6.2 value-or-promise: 1.0.12 dev: true - /@graphql-tools/executor-graphql-ws@0.0.14(graphql@16.7.1): + /@graphql-tools/executor-graphql-ws@0.0.14(graphql@16.8.1): resolution: {integrity: sha512-P2nlkAsPZKLIXImFhj0YTtny5NQVGSsKnhi7PzXiaHSXc6KkzqbWZHKvikD4PObanqg+7IO58rKFpGXP7eeO+w==} peerDependencies: graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 dependencies: - '@graphql-tools/utils': 9.2.1(graphql@16.7.1) + '@graphql-tools/utils': 9.2.1(graphql@16.8.1) '@repeaterjs/repeater': 3.0.4 - '@types/ws': 8.5.5 - graphql: 16.7.1 - graphql-ws: 5.12.1(graphql@16.7.1) + '@types/ws': 8.5.6 + graphql: 16.8.1 + graphql-ws: 5.12.1(graphql@16.8.1) isomorphic-ws: 5.0.0(ws@8.13.0) - tslib: 2.6.0 + tslib: 2.6.2 ws: 8.13.0 transitivePeerDependencies: - bufferutil - utf-8-validate dev: true - /@graphql-tools/executor-http@0.1.10(@types/node@18.6.2)(graphql@16.7.1): + /@graphql-tools/executor-http@0.1.10(@types/node@18.6.2)(graphql@16.8.1): resolution: {integrity: sha512-hnAfbKv0/lb9s31LhWzawQ5hghBfHS+gYWtqxME6Rl0Aufq9GltiiLBcl7OVVOnkLF0KhwgbYP1mB5VKmgTGpg==} peerDependencies: graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 dependencies: - '@graphql-tools/utils': 9.2.1(graphql@16.7.1) + '@graphql-tools/utils': 9.2.1(graphql@16.8.1) '@repeaterjs/repeater': 3.0.4 '@whatwg-node/fetch': 0.8.8 dset: 3.1.2 extract-files: 11.0.0 - graphql: 16.7.1 + graphql: 16.8.1 meros: 1.3.0(@types/node@18.6.2) - tslib: 2.6.0 + tslib: 2.6.2 value-or-promise: 1.0.12 transitivePeerDependencies: - '@types/node' dev: true - /@graphql-tools/executor-legacy-ws@0.0.11(graphql@16.7.1): + /@graphql-tools/executor-legacy-ws@0.0.11(graphql@16.8.1): resolution: {integrity: sha512-4ai+NnxlNfvIQ4c70hWFvOZlSUN8lt7yc+ZsrwtNFbFPH/EroIzFMapAxM9zwyv9bH38AdO3TQxZ5zNxgBdvUw==} peerDependencies: graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 dependencies: - '@graphql-tools/utils': 9.2.1(graphql@16.7.1) - '@types/ws': 8.5.5 - graphql: 16.7.1 + '@graphql-tools/utils': 9.2.1(graphql@16.8.1) + '@types/ws': 8.5.6 + graphql: 16.8.1 isomorphic-ws: 5.0.0(ws@8.13.0) - tslib: 2.6.0 + tslib: 2.6.2 ws: 8.13.0 transitivePeerDependencies: - bufferutil - utf-8-validate dev: true - /@graphql-tools/executor@0.0.20(graphql@16.7.1): + /@graphql-tools/executor@0.0.20(graphql@16.8.1): resolution: {integrity: sha512-GdvNc4vszmfeGvUqlcaH1FjBoguvMYzxAfT6tDd4/LgwymepHhinqLNA5otqwVLW+JETcDaK7xGENzFomuE6TA==} peerDependencies: graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 dependencies: - '@graphql-tools/utils': 9.2.1(graphql@16.7.1) - '@graphql-typed-document-node/core': 3.2.0(graphql@16.7.1) + '@graphql-tools/utils': 9.2.1(graphql@16.8.1) + '@graphql-typed-document-node/core': 3.2.0(graphql@16.8.1) '@repeaterjs/repeater': 3.0.4 - graphql: 16.7.1 - tslib: 2.6.0 + graphql: 16.8.1 + tslib: 2.6.2 value-or-promise: 1.0.12 dev: true - /@graphql-tools/git-loader@7.3.0(@babel/core@7.22.5)(graphql@16.7.1): + /@graphql-tools/git-loader@7.3.0(@babel/core@7.22.5)(graphql@16.8.1): resolution: {integrity: sha512-gcGAK+u16eHkwsMYqqghZbmDquh8QaO24Scsxq+cVR+vx1ekRlsEiXvu+yXVDbZdcJ6PBIbeLcQbEu+xhDLmvQ==} peerDependencies: graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 dependencies: - '@graphql-tools/graphql-tag-pluck': 7.5.2(@babel/core@7.22.5)(graphql@16.7.1) - '@graphql-tools/utils': 9.2.1(graphql@16.7.1) - graphql: 16.7.1 + '@graphql-tools/graphql-tag-pluck': 7.5.2(@babel/core@7.22.5)(graphql@16.8.1) + '@graphql-tools/utils': 9.2.1(graphql@16.8.1) + graphql: 16.8.1 is-glob: 4.0.3 micromatch: 4.0.5 - tslib: 2.6.0 + tslib: 2.6.2 unixify: 1.0.0 transitivePeerDependencies: - '@babel/core' - supports-color dev: true - /@graphql-tools/github-loader@7.3.28(@babel/core@7.22.5)(@types/node@18.6.2)(graphql@16.7.1): + /@graphql-tools/github-loader@7.3.28(@babel/core@7.22.5)(@types/node@18.6.2)(graphql@16.8.1): resolution: {integrity: sha512-OK92Lf9pmxPQvjUNv05b3tnVhw0JRfPqOf15jZjyQ8BfdEUrJoP32b4dRQQem/wyRL24KY4wOfArJNqzpsbwCA==} peerDependencies: graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 dependencies: '@ardatan/sync-fetch': 0.0.1 - '@graphql-tools/executor-http': 0.1.10(@types/node@18.6.2)(graphql@16.7.1) - '@graphql-tools/graphql-tag-pluck': 7.5.2(@babel/core@7.22.5)(graphql@16.7.1) - '@graphql-tools/utils': 9.2.1(graphql@16.7.1) + '@graphql-tools/executor-http': 0.1.10(@types/node@18.6.2)(graphql@16.8.1) + '@graphql-tools/graphql-tag-pluck': 7.5.2(@babel/core@7.22.5)(graphql@16.8.1) + '@graphql-tools/utils': 9.2.1(graphql@16.8.1) '@whatwg-node/fetch': 0.8.8 - graphql: 16.7.1 - tslib: 2.6.0 + graphql: 16.8.1 + tslib: 2.6.2 value-or-promise: 1.0.12 transitivePeerDependencies: - '@babel/core' @@ -1290,20 +1308,20 @@ packages: - supports-color dev: true - /@graphql-tools/graphql-file-loader@7.5.17(graphql@16.7.1): + /@graphql-tools/graphql-file-loader@7.5.17(graphql@16.8.1): resolution: {integrity: sha512-hVwwxPf41zOYgm4gdaZILCYnKB9Zap7Ys9OhY1hbwuAuC4MMNY9GpUjoTU3CQc3zUiPoYStyRtUGkHSJZ3HxBw==} peerDependencies: graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 dependencies: - '@graphql-tools/import': 6.7.18(graphql@16.7.1) - '@graphql-tools/utils': 9.2.1(graphql@16.7.1) + '@graphql-tools/import': 6.7.18(graphql@16.8.1) + '@graphql-tools/utils': 9.2.1(graphql@16.8.1) globby: 11.1.0 - graphql: 16.7.1 - tslib: 2.6.0 + graphql: 16.8.1 + tslib: 2.6.2 unixify: 1.0.0 dev: true - /@graphql-tools/graphql-tag-pluck@7.5.2(@babel/core@7.22.5)(graphql@16.7.1): + /@graphql-tools/graphql-tag-pluck@7.5.2(@babel/core@7.22.5)(graphql@16.8.1): resolution: {integrity: sha512-RW+H8FqOOLQw0BPXaahYepVSRjuOHw+7IL8Opaa5G5uYGOBxoXR7DceyQ7BcpMgktAOOmpDNQ2WtcboChOJSRA==} peerDependencies: graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 @@ -1312,91 +1330,91 @@ packages: '@babel/plugin-syntax-import-assertions': 7.22.5(@babel/core@7.22.5) '@babel/traverse': 7.22.5 '@babel/types': 7.22.5 - '@graphql-tools/utils': 9.2.1(graphql@16.7.1) - graphql: 16.7.1 - tslib: 2.6.0 + '@graphql-tools/utils': 9.2.1(graphql@16.8.1) + graphql: 16.8.1 + tslib: 2.6.2 transitivePeerDependencies: - '@babel/core' - supports-color dev: true - /@graphql-tools/import@6.7.18(graphql@16.7.1): + /@graphql-tools/import@6.7.18(graphql@16.8.1): resolution: {integrity: sha512-XQDdyZTp+FYmT7as3xRWH/x8dx0QZA2WZqfMF5EWb36a0PiH7WwlRQYIdyYXj8YCLpiWkeBXgBRHmMnwEYR8iQ==} peerDependencies: graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 dependencies: - '@graphql-tools/utils': 9.2.1(graphql@16.7.1) - graphql: 16.7.1 + '@graphql-tools/utils': 9.2.1(graphql@16.8.1) + graphql: 16.8.1 resolve-from: 5.0.0 - tslib: 2.6.0 + tslib: 2.6.2 dev: true - /@graphql-tools/json-file-loader@7.4.18(graphql@16.7.1): + /@graphql-tools/json-file-loader@7.4.18(graphql@16.8.1): resolution: {integrity: sha512-AJ1b6Y1wiVgkwsxT5dELXhIVUPs/u3VZ8/0/oOtpcoyO/vAeM5rOvvWegzicOOnQw8G45fgBRMkkRfeuwVt6+w==} peerDependencies: graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 dependencies: - '@graphql-tools/utils': 9.2.1(graphql@16.7.1) + '@graphql-tools/utils': 9.2.1(graphql@16.8.1) globby: 11.1.0 - graphql: 16.7.1 - tslib: 2.6.0 + graphql: 16.8.1 + tslib: 2.6.2 unixify: 1.0.0 dev: true - /@graphql-tools/load@7.8.14(graphql@16.7.1): + /@graphql-tools/load@7.8.14(graphql@16.8.1): resolution: {integrity: sha512-ASQvP+snHMYm+FhIaLxxFgVdRaM0vrN9wW2BKInQpktwWTXVyk+yP5nQUCEGmn0RTdlPKrffBaigxepkEAJPrg==} peerDependencies: graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 dependencies: - '@graphql-tools/schema': 9.0.19(graphql@16.7.1) - '@graphql-tools/utils': 9.2.1(graphql@16.7.1) - graphql: 16.7.1 + '@graphql-tools/schema': 9.0.19(graphql@16.8.1) + '@graphql-tools/utils': 9.2.1(graphql@16.8.1) + graphql: 16.8.1 p-limit: 3.1.0 - tslib: 2.6.0 + tslib: 2.6.2 dev: true - /@graphql-tools/merge@8.4.2(graphql@16.7.1): + /@graphql-tools/merge@8.4.2(graphql@16.8.1): resolution: {integrity: sha512-XbrHAaj8yDuINph+sAfuq3QCZ/tKblrTLOpirK0+CAgNlZUCHs0Fa+xtMUURgwCVThLle1AF7svJCxFizygLsw==} peerDependencies: graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 dependencies: - '@graphql-tools/utils': 9.2.1(graphql@16.7.1) - graphql: 16.7.1 - tslib: 2.6.0 + '@graphql-tools/utils': 9.2.1(graphql@16.8.1) + graphql: 16.8.1 + tslib: 2.6.2 dev: true - /@graphql-tools/optimize@1.4.0(graphql@16.7.1): + /@graphql-tools/optimize@1.4.0(graphql@16.8.1): resolution: {integrity: sha512-dJs/2XvZp+wgHH8T5J2TqptT9/6uVzIYvA6uFACha+ufvdMBedkfR4b4GbT8jAKLRARiqRTxy3dctnwkTM2tdw==} peerDependencies: graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 dependencies: - graphql: 16.7.1 - tslib: 2.4.1 + graphql: 16.8.1 + tslib: 2.6.2 dev: true - /@graphql-tools/prisma-loader@7.2.72(@types/node@18.6.2)(graphql@16.7.1): + /@graphql-tools/prisma-loader@7.2.72(@types/node@18.6.2)(graphql@16.8.1): resolution: {integrity: sha512-0a7uV7Fky6yDqd0tI9+XMuvgIo6GAqiVzzzFV4OSLry4AwiQlI3igYseBV7ZVOGhedOTqj/URxjpiv07hRcwag==} peerDependencies: graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 dependencies: - '@graphql-tools/url-loader': 7.17.18(@types/node@18.6.2)(graphql@16.7.1) - '@graphql-tools/utils': 9.2.1(graphql@16.7.1) - '@types/js-yaml': 4.0.5 + '@graphql-tools/url-loader': 7.17.18(@types/node@18.6.2)(graphql@16.8.1) + '@graphql-tools/utils': 9.2.1(graphql@16.8.1) + '@types/js-yaml': 4.0.6 '@types/json-stable-stringify': 1.0.34 '@whatwg-node/fetch': 0.8.8 chalk: 4.1.2 debug: 4.3.4 dotenv: 16.0.2 - graphql: 16.7.1 - graphql-request: 6.1.0(graphql@16.7.1) + graphql: 16.8.1 + graphql-request: 6.1.0(graphql@16.8.1) http-proxy-agent: 6.1.1 https-proxy-agent: 6.2.1 - jose: 4.14.4 + jose: 4.14.6 js-yaml: 4.1.0 json-stable-stringify: 1.0.2 lodash: 4.17.21 scuid: 1.1.0 - tslib: 2.6.0 + tslib: 2.6.2 yaml-ast-parser: 0.0.43 transitivePeerDependencies: - '@types/node' @@ -1406,51 +1424,51 @@ packages: - utf-8-validate dev: true - /@graphql-tools/relay-operation-optimizer@6.5.18(graphql@16.7.1): + /@graphql-tools/relay-operation-optimizer@6.5.18(graphql@16.8.1): resolution: {integrity: sha512-mc5VPyTeV+LwiM+DNvoDQfPqwQYhPV/cl5jOBjTgSniyaq8/86aODfMkrE2OduhQ5E00hqrkuL2Fdrgk0w1QJg==} peerDependencies: graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 dependencies: - '@ardatan/relay-compiler': 12.0.0(graphql@16.7.1) - '@graphql-tools/utils': 9.2.1(graphql@16.7.1) - graphql: 16.7.1 - tslib: 2.4.1 + '@ardatan/relay-compiler': 12.0.0(graphql@16.8.1) + '@graphql-tools/utils': 9.2.1(graphql@16.8.1) + graphql: 16.8.1 + tslib: 2.6.2 transitivePeerDependencies: - encoding - supports-color dev: true - /@graphql-tools/schema@9.0.19(graphql@16.7.1): + /@graphql-tools/schema@9.0.19(graphql@16.8.1): resolution: {integrity: sha512-oBRPoNBtCkk0zbUsyP4GaIzCt8C0aCI4ycIRUL67KK5pOHljKLBBtGT+Jr6hkzA74C8Gco8bpZPe7aWFjiaK2w==} peerDependencies: graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 dependencies: - '@graphql-tools/merge': 8.4.2(graphql@16.7.1) - '@graphql-tools/utils': 9.2.1(graphql@16.7.1) - graphql: 16.7.1 - tslib: 2.6.0 + '@graphql-tools/merge': 8.4.2(graphql@16.8.1) + '@graphql-tools/utils': 9.2.1(graphql@16.8.1) + graphql: 16.8.1 + tslib: 2.6.2 value-or-promise: 1.0.12 dev: true - /@graphql-tools/url-loader@7.17.18(@types/node@18.6.2)(graphql@16.7.1): + /@graphql-tools/url-loader@7.17.18(@types/node@18.6.2)(graphql@16.8.1): resolution: {integrity: sha512-ear0CiyTj04jCVAxi7TvgbnGDIN2HgqzXzwsfcqiVg9cvjT40NcMlZ2P1lZDgqMkZ9oyLTV8Bw6j+SyG6A+xPw==} peerDependencies: graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 dependencies: '@ardatan/sync-fetch': 0.0.1 - '@graphql-tools/delegate': 9.0.35(graphql@16.7.1) - '@graphql-tools/executor-graphql-ws': 0.0.14(graphql@16.7.1) - '@graphql-tools/executor-http': 0.1.10(@types/node@18.6.2)(graphql@16.7.1) - '@graphql-tools/executor-legacy-ws': 0.0.11(graphql@16.7.1) - '@graphql-tools/utils': 9.2.1(graphql@16.7.1) - '@graphql-tools/wrap': 9.4.2(graphql@16.7.1) - '@types/ws': 8.5.5 + '@graphql-tools/delegate': 9.0.35(graphql@16.8.1) + '@graphql-tools/executor-graphql-ws': 0.0.14(graphql@16.8.1) + '@graphql-tools/executor-http': 0.1.10(@types/node@18.6.2)(graphql@16.8.1) + '@graphql-tools/executor-legacy-ws': 0.0.11(graphql@16.8.1) + '@graphql-tools/utils': 9.2.1(graphql@16.8.1) + '@graphql-tools/wrap': 9.4.2(graphql@16.8.1) + '@types/ws': 8.5.6 '@whatwg-node/fetch': 0.8.8 - graphql: 16.7.1 - isomorphic-ws: 5.0.0(ws@8.13.0) - tslib: 2.6.0 + graphql: 16.8.1 + isomorphic-ws: 5.0.0(ws@8.14.2) + tslib: 2.6.2 value-or-promise: 1.0.12 - ws: 8.13.0 + ws: 8.14.2 transitivePeerDependencies: - '@types/node' - bufferutil @@ -1458,44 +1476,44 @@ packages: - utf-8-validate dev: true - /@graphql-tools/utils@8.13.1(graphql@16.7.1): + /@graphql-tools/utils@8.13.1(graphql@16.8.1): resolution: {integrity: sha512-qIh9yYpdUFmctVqovwMdheVNJqFh+DQNWIhX87FJStfXYnmweBUDATok9fWPleKeFwxnW8IapKmY8m8toJEkAw==} peerDependencies: graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 dependencies: - graphql: 16.7.1 - tslib: 2.4.1 + graphql: 16.8.1 + tslib: 2.6.2 dev: true - /@graphql-tools/utils@9.2.1(graphql@16.7.1): + /@graphql-tools/utils@9.2.1(graphql@16.8.1): resolution: {integrity: sha512-WUw506Ql6xzmOORlriNrD6Ugx+HjVgYxt9KCXD9mHAak+eaXSwuGGPyE60hy9xaDEoXKBsG7SkG69ybitaVl6A==} peerDependencies: graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 dependencies: - '@graphql-typed-document-node/core': 3.2.0(graphql@16.7.1) - graphql: 16.7.1 - tslib: 2.6.0 + '@graphql-typed-document-node/core': 3.2.0(graphql@16.8.1) + graphql: 16.8.1 + tslib: 2.4.1 dev: true - /@graphql-tools/wrap@9.4.2(graphql@16.7.1): + /@graphql-tools/wrap@9.4.2(graphql@16.8.1): resolution: {integrity: sha512-DFcd9r51lmcEKn0JW43CWkkI2D6T9XI1juW/Yo86i04v43O9w2/k4/nx2XTJv4Yv+iXwUw7Ok81PGltwGJSDSA==} peerDependencies: graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 dependencies: - '@graphql-tools/delegate': 9.0.35(graphql@16.7.1) - '@graphql-tools/schema': 9.0.19(graphql@16.7.1) - '@graphql-tools/utils': 9.2.1(graphql@16.7.1) - graphql: 16.7.1 - tslib: 2.6.0 + '@graphql-tools/delegate': 9.0.35(graphql@16.8.1) + '@graphql-tools/schema': 9.0.19(graphql@16.8.1) + '@graphql-tools/utils': 9.2.1(graphql@16.8.1) + graphql: 16.8.1 + tslib: 2.6.2 value-or-promise: 1.0.12 dev: true - /@graphql-typed-document-node/core@3.2.0(graphql@16.7.1): + /@graphql-typed-document-node/core@3.2.0(graphql@16.8.1): resolution: {integrity: sha512-mB9oAsNCm9aM3/SOv4YtBMqZbYj10R7dkq8byBqxGY/ncFwhf2oQzMV+LCRlWoDSEBJ3COiR1yeDvMtsoOsuFQ==} peerDependencies: graphql: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 dependencies: - graphql: 16.7.1 + graphql: 16.8.1 dev: true /@humanwhocodes/config-array@0.10.7: @@ -1522,6 +1540,10 @@ packages: resolution: {integrity: sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==} dev: true + /@iarna/toml@2.2.5: + resolution: {integrity: sha512-trnsAYxU3xnS1gPHPyU961coFyLkh4gAD/0zQ5mymY4yOZ+CYvsPqUbOFSw0aDM4y0tV7tiFxL/1XfXPNC6IPg==} + dev: true + /@istanbuljs/load-nyc-config@1.1.0: resolution: {integrity: sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==} engines: {node: '>=8'} @@ -1805,10 +1827,6 @@ packages: '@jridgewell/sourcemap-codec': 1.4.15 dev: true - /@jsdevtools/ono@7.1.3: - resolution: {integrity: sha512-4JQNk+3mVzK3xh2rqd6RB4J46qUR19azEHBneZyTZM+c456qOrbbM/5xcR8huNCCcbVt7+UmizG6GuUvPvKUYg==} - dev: true - /@noble/hashes@1.1.3: resolution: {integrity: sha512-CE0FCR57H2acVI5UOzIGSSIYxZ6v/HOhDR0Ro9VLyhnzLwx0o8W1mmgaqlEUx4049qJDlIBRztv5k+MM8vbO3A==} dev: false @@ -1838,15 +1856,15 @@ packages: resolution: {integrity: sha512-izNRxPoaeJeg/AyH8hER6s+H7p4itk+03QCa4sbxI3lNdseQYCuxzgsuNK8bTXChtLTjpJz6NmXKA73qLa3rCA==} dependencies: asn1js: 3.0.5 - pvtsutils: 1.3.2 - tslib: 2.6.0 + pvtsutils: 1.3.5 + tslib: 2.6.2 dev: true /@peculiar/json-schema@1.1.12: resolution: {integrity: sha512-coUfuoMeIB7B8/NMekxaDzLhaYmp0HZNPEjYRm9goRou8UZIC3z21s0sL9AWoCw4EG876QyO3kYrc61WNF9B/w==} engines: {node: '>=8.0.0'} dependencies: - tslib: 2.6.0 + tslib: 2.6.2 dev: true /@peculiar/webcrypto@1.4.3: @@ -1855,8 +1873,8 @@ packages: dependencies: '@peculiar/asn1-schema': 2.3.6 '@peculiar/json-schema': 1.1.12 - pvtsutils: 1.3.2 - tslib: 2.6.0 + pvtsutils: 1.3.5 + tslib: 2.6.2 webcrypto-core: 1.7.7 dev: true @@ -2008,8 +2026,8 @@ packages: pretty-format: 28.1.3 dev: true - /@types/js-yaml@4.0.5: - resolution: {integrity: sha512-FhpRzf927MNQdRZP0J5DLIdTXhjLYzeUTmLAu69mnVksLH9CJY3IuSeEgbKUki7GQZm0WqDkGzyxju2EZGD2wA==} + /@types/js-yaml@4.0.6: + resolution: {integrity: sha512-ACTuifTSIIbyksx2HTon3aFtCKWcID7/h3XEmRpDYdMCXxPbl+m9GteOJeaAkiAta/NJaSFuA7ahZ0NkwajDSw==} dev: true /@types/json-schema@7.0.12: @@ -2051,8 +2069,8 @@ packages: resolution: {integrity: sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw==} dev: true - /@types/ws@8.5.5: - resolution: {integrity: sha512-lwhs8hktwxSjf9UaZ9tG5M03PGogvFaH8gUgLNbN9HKIg0dvv6q+gkSuJ8HN4/VbyxkuLzCjlN7GquQ0gUJfIg==} + /@types/ws@8.5.6: + resolution: {integrity: sha512-8B5EO9jLVCy+B58PLHvLDuOD8DRVMgQzq8d55SjLCOn9kqGyqOvy27exVaTio1q1nX5zLu8/6N0n2ThSxOM6tg==} dependencies: '@types/node': 18.6.2 dev: true @@ -2300,24 +2318,24 @@ packages: '@xtuc/long': 4.2.2 dev: true - /@whatwg-node/events@0.0.2: - resolution: {integrity: sha512-WKj/lI4QjnLuPrim0cfO7i+HsDSXHxNv1y0CrJhdntuO3hxWZmnXCwNDnwOvry11OjRin6cgWNF+j/9Pn8TN4w==} - dev: true - /@whatwg-node/events@0.0.3: resolution: {integrity: sha512-IqnKIDWfXBJkvy/k6tzskWTc2NK3LcqHlb+KHGCrjOCH4jfQckRX0NAiIcC/vIqQkzLYw2r2CTSwAxcrtcD6lA==} dev: true - /@whatwg-node/fetch@0.6.9(@types/node@18.6.2): - resolution: {integrity: sha512-JfrBCJdMu9n9OARc0e/hPHcD98/8Nz1CKSdGYDg6VbObDkV/Ys30xe5i/wPOatYbxuvatj1kfWeHf7iNX3i17w==} + /@whatwg-node/fetch@0.3.2: + resolution: {integrity: sha512-Bs5zAWQs0tXsLa4mRmLw7Psps1EN78vPtgcLpw3qPY8s6UYPUM67zFZ9cy+7tZ64PXhfwzxJn+m7RH2Lq48RNQ==} dependencies: '@peculiar/webcrypto': 1.4.3 - '@whatwg-node/node-fetch': 0.0.5(@types/node@18.6.2) + abort-controller: 3.0.0 busboy: 1.6.0 - urlpattern-polyfill: 6.0.2 + event-target-polyfill: 0.0.3 + form-data-encoder: 1.9.0 + formdata-node: 4.4.1 + node-fetch: 2.7.0 + undici: 5.25.2 web-streams-polyfill: 3.2.1 transitivePeerDependencies: - - '@types/node' + - encoding dev: true /@whatwg-node/fetch@0.8.8: @@ -2330,17 +2348,6 @@ packages: web-streams-polyfill: 3.2.1 dev: true - /@whatwg-node/node-fetch@0.0.5(@types/node@18.6.2): - resolution: {integrity: sha512-hbccmaSZaItdsRuBKBEEhLoO+5oXJPxiyd0kG2xXd0Dh3Rt+vZn4pADHxuSiSHLd9CM+S2z4+IxlEGbWUgiz9g==} - peerDependencies: - '@types/node': ^18.0.6 - dependencies: - '@types/node': 18.6.2 - '@whatwg-node/events': 0.0.2 - busboy: 1.6.0 - tslib: 2.6.0 - dev: true - /@whatwg-node/node-fetch@0.3.6: resolution: {integrity: sha512-w9wKgDO4C95qnXZRwZTfCmLWqyRnooGjcIwG0wADWjw9/HN0p7dtvtgSvItZtUyNteEvgTrd8QojNEqV6DAGTA==} dependencies: @@ -2348,7 +2355,7 @@ packages: busboy: 1.6.0 fast-querystring: 1.1.2 fast-url-parser: 1.1.3 - tslib: 2.6.0 + tslib: 2.6.2 dev: true /@xtuc/ieee754@1.2.0: @@ -2359,6 +2366,13 @@ packages: resolution: {integrity: sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==} dev: true + /abort-controller@3.0.0: + resolution: {integrity: sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==} + engines: {node: '>=6.5'} + dependencies: + event-target-shim: 5.0.1 + dev: true + /acorn-import-assertions@1.9.0(acorn@8.10.0): resolution: {integrity: sha512-cmMwop9x+8KFhxvKrKfPYmN6/pKTYYHBqLa0DfvVZcKMJWNyWLnaqND7dx/qn66R7ewM1UX5XMaDVP5wlVTaVA==} peerDependencies: @@ -2540,9 +2554,9 @@ packages: resolution: {integrity: sha512-FVnvrKJwpt9LP2lAMl8qZswRNm3T4q9CON+bxldk2iwk3FFpuwhx2FfinyitizWHsVYyaY+y5JzDR0rCMV5yTQ==} engines: {node: '>=12.0.0'} dependencies: - pvtsutils: 1.3.2 + pvtsutils: 1.3.5 pvutils: 1.1.3 - tslib: 2.6.0 + tslib: 2.6.2 dev: true /astral-regex@2.0.0: @@ -2651,27 +2665,25 @@ packages: '@babel/plugin-syntax-object-rest-spread': 7.8.3(@babel/core@7.22.5) '@babel/plugin-transform-arrow-functions': 7.22.5(@babel/core@7.22.5) '@babel/plugin-transform-block-scoped-functions': 7.22.5(@babel/core@7.22.5) - '@babel/plugin-transform-block-scoping': 7.22.5(@babel/core@7.22.5) - '@babel/plugin-transform-classes': 7.22.6(@babel/core@7.22.5) + '@babel/plugin-transform-block-scoping': 7.23.0(@babel/core@7.22.5) + '@babel/plugin-transform-classes': 7.22.15(@babel/core@7.22.5) '@babel/plugin-transform-computed-properties': 7.22.5(@babel/core@7.22.5) - '@babel/plugin-transform-destructuring': 7.22.5(@babel/core@7.22.5) + '@babel/plugin-transform-destructuring': 7.23.0(@babel/core@7.22.5) '@babel/plugin-transform-flow-strip-types': 7.22.5(@babel/core@7.22.5) - '@babel/plugin-transform-for-of': 7.22.5(@babel/core@7.22.5) + '@babel/plugin-transform-for-of': 7.22.15(@babel/core@7.22.5) '@babel/plugin-transform-function-name': 7.22.5(@babel/core@7.22.5) '@babel/plugin-transform-literals': 7.22.5(@babel/core@7.22.5) '@babel/plugin-transform-member-expression-literals': 7.22.5(@babel/core@7.22.5) - '@babel/plugin-transform-modules-commonjs': 7.22.5(@babel/core@7.22.5) + '@babel/plugin-transform-modules-commonjs': 7.23.0(@babel/core@7.22.5) '@babel/plugin-transform-object-super': 7.22.5(@babel/core@7.22.5) - '@babel/plugin-transform-parameters': 7.22.5(@babel/core@7.22.5) + '@babel/plugin-transform-parameters': 7.22.15(@babel/core@7.22.5) '@babel/plugin-transform-property-literals': 7.22.5(@babel/core@7.22.5) '@babel/plugin-transform-react-display-name': 7.22.5(@babel/core@7.22.5) - '@babel/plugin-transform-react-jsx': 7.22.5(@babel/core@7.22.5) + '@babel/plugin-transform-react-jsx': 7.22.15(@babel/core@7.22.5) '@babel/plugin-transform-shorthand-properties': 7.22.5(@babel/core@7.22.5) '@babel/plugin-transform-spread': 7.22.5(@babel/core@7.22.5) '@babel/plugin-transform-template-literals': 7.22.5(@babel/core@7.22.5) babel-plugin-syntax-trailing-function-commas: 7.0.0-beta.0 - transitivePeerDependencies: - - supports-color dev: true /babel-preset-jest@28.1.3(@babel/core@7.22.5): @@ -2726,17 +2738,6 @@ packages: fill-range: 7.0.1 dev: true - /browserslist@4.21.7: - resolution: {integrity: sha512-BauCXrQ7I2ftSqd2mvKHGo85XR0u7Ru3C/Hxsy/0TkfCtjrmAbPdzLGasmoiBxplpDXlPvdjX9u7srIMfgasNA==} - engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} - hasBin: true - dependencies: - caniuse-lite: 1.0.30001497 - electron-to-chromium: 1.4.426 - node-releases: 2.0.12 - update-browserslist-db: 1.0.11(browserslist@4.21.7) - dev: true - /browserslist@4.21.9: resolution: {integrity: sha512-M0MFoZzbUrRU4KNfCrDLnvyE7gub+peetoTid3TBIqtunaDJyXlwhakT+/VkvSXcfIzFfK/nkCs4nmyTmxdNSg==} engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} @@ -2819,10 +2820,6 @@ packages: get-intrinsic: 1.2.1 dev: true - /call-me-maybe@1.0.2: - resolution: {integrity: sha512-HpX65o1Hnr9HH25ojC1YGs7HCQLq0GCOibSaWER0eNpgJ/Z1MZv2mTc7+xh6WOPxbRVcmgbv4hGU+uSQ/2xFZQ==} - dev: true - /callsites@3.1.0: resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==} engines: {node: '>=6'} @@ -2832,7 +2829,7 @@ packages: resolution: {integrity: sha512-gxGWBrTT1JuMx6R+o5PTXMmUnhnVzLQ9SNutD4YqKtI6ap897t3tKECYla6gCWEkplXnlNybEkZg9GEGxKFCgw==} dependencies: pascal-case: 3.1.2 - tslib: 2.4.1 + tslib: 2.6.2 dev: true /camelcase@5.3.1: @@ -2845,10 +2842,6 @@ packages: engines: {node: '>=10'} dev: true - /caniuse-lite@1.0.30001497: - resolution: {integrity: sha512-I4/duVK4wL6rAK/aKZl3HXB4g+lIZvaT4VLAn2rCgJ38jVLb0lv2Xug6QuqmxXFVRJMF74SPPWPJ/1Sdm3vCzw==} - dev: true - /caniuse-lite@1.0.30001517: resolution: {integrity: sha512-Vdhm5S11DaFVLlyiKu4hiUTkpZu+y1KA/rZZqVQfOD5YdDT/eQKlkt7NaE0WGOFgX32diqt9MiP9CAiFeRklaA==} dev: true @@ -2857,7 +2850,7 @@ packages: resolution: {integrity: sha512-ds37W8CytHgwnhGGTi88pcPyR15qoNkOpYwmMMfnWqqWgESapLqvDx6huFjQ5vqWSn2Z06173XNA7LtMOeUh1A==} dependencies: no-case: 3.0.4 - tslib: 2.4.1 + tslib: 2.6.2 upper-case-first: 2.0.2 dev: true @@ -2922,7 +2915,7 @@ packages: path-case: 3.0.4 sentence-case: 3.0.4 snake-case: 3.0.4 - tslib: 2.4.1 + tslib: 2.6.2 dev: true /char-regex@1.0.2: @@ -2975,8 +2968,8 @@ packages: restore-cursor: 3.1.0 dev: true - /cli-spinners@2.9.0: - resolution: {integrity: sha512-4/aL9X3Wh0yiMQlE+eeRhWP6vclO3QRtw1JHKIT0FFUs5FjpFmESqtMvYZ0+lbzBw900b95mS0hohy+qn2VK/g==} + /cli-spinners@2.9.1: + resolution: {integrity: sha512-jHgecW0pxkonBJdrKsqxgRX9AcG+u/5k0Q7WPDfi8AogLAdwxEkyYYNWwZ5GvVFoFx2uiY1eNcSK00fh+1+FyQ==} engines: {node: '>=6'} dev: true @@ -3070,11 +3063,6 @@ packages: engines: {node: '>= 6'} dev: true - /commander@9.5.0: - resolution: {integrity: sha512-KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ==} - engines: {node: ^12.20.0 || >=14} - dev: true - /common-tags@1.8.2: resolution: {integrity: sha512-gk/Z852D2Wtb//0I+kRFNKKE9dIIVirjoqPoA1wJU+XePVXZfGeBpk45+A1rKO4Q43prqWBNY/MiIeRLbPWUaA==} engines: {node: '>=4.0.0'} @@ -3092,7 +3080,7 @@ packages: resolution: {integrity: sha512-I2hSBi7Vvs7BEuJDr5dDHfzb/Ruj3FyvFyh7KLilAjNQw3Be+xgqUBA2W6scVEcL0hL1dwPRtIqEPVUCKkSsyQ==} dependencies: no-case: 3.0.4 - tslib: 2.4.1 + tslib: 2.6.2 upper-case: 2.0.2 dev: true @@ -3100,8 +3088,29 @@ packages: resolution: {integrity: sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==} dev: true - /cosmiconfig-typescript-loader@4.3.0(@types/node@18.6.2)(cosmiconfig@7.1.0)(ts-node@10.9.1)(typescript@4.8.2): - resolution: {integrity: sha512-NTxV1MFfZDLPiBMjxbHRwSh5LaLcPMwNdCutmnHJCKoVnlvldPWlllonKwrsRJ5pYZBIBGRWWU2tfvzxgeSW5Q==} + /cosmiconfig-toml-loader@1.0.0: + resolution: {integrity: sha512-H/2gurFWVi7xXvCyvsWRLCMekl4tITJcX0QEsDMpzxtuxDyM59xLatYNg4s/k9AA/HdtCYfj2su8mgA0GSDLDA==} + dependencies: + '@iarna/toml': 2.2.5 + dev: true + + /cosmiconfig-typescript-loader@4.1.1(@types/node@18.6.2)(cosmiconfig@7.0.1)(ts-node@10.9.1)(typescript@4.8.2): + resolution: {integrity: sha512-9DHpa379Gp0o0Zefii35fcmuuin6q92FnLDffzdZ0l9tVd3nEobG3O+MZ06+kuBvFTSVScvNb/oHA13Nd4iipg==} + engines: {node: '>=12', npm: '>=6'} + peerDependencies: + '@types/node': '*' + cosmiconfig: '>=7' + ts-node: '>=10' + typescript: '>=3' + dependencies: + '@types/node': 18.6.2 + cosmiconfig: 7.0.1 + ts-node: 10.9.1(@types/node@18.6.2)(typescript@4.8.2) + typescript: 4.8.2 + dev: true + + /cosmiconfig-typescript-loader@4.1.1(@types/node@18.6.2)(cosmiconfig@7.1.0)(ts-node@10.9.1)(typescript@4.8.2): + resolution: {integrity: sha512-9DHpa379Gp0o0Zefii35fcmuuin6q92FnLDffzdZ0l9tVd3nEobG3O+MZ06+kuBvFTSVScvNb/oHA13Nd4iipg==} engines: {node: '>=12', npm: '>=6'} peerDependencies: '@types/node': '*' @@ -3115,8 +3124,8 @@ packages: typescript: 4.8.2 dev: true - /cosmiconfig@7.1.0: - resolution: {integrity: sha512-AdmX6xUzdNASswsFtmwSt7Vj8po9IuqXm0UXz7QKPuEUmPB4XyjGfaAr2PSuELMwkRMVH1EpIkX5bTZGRB3eCA==} + /cosmiconfig@7.0.1: + resolution: {integrity: sha512-a1YWNUV2HwGimB7dU2s1wUMurNKjpx60HxBB6xUM8Re+2s1g1IIfJvFR0/iCF+XHdE0GMTKTuLR32UQff4TEyQ==} engines: {node: '>=10'} dependencies: '@types/parse-json': 4.0.0 @@ -3126,14 +3135,15 @@ packages: yaml: 1.10.2 dev: true - /cosmiconfig@8.0.0: - resolution: {integrity: sha512-da1EafcpH6b/TD8vDRaWV7xFINlHlF6zKsGwS1TsuVJTZRkquaS5HTMq7uq6h31619QjbsYl21gVDOm32KM1vQ==} - engines: {node: '>=14'} + /cosmiconfig@7.1.0: + resolution: {integrity: sha512-AdmX6xUzdNASswsFtmwSt7Vj8po9IuqXm0UXz7QKPuEUmPB4XyjGfaAr2PSuELMwkRMVH1EpIkX5bTZGRB3eCA==} + engines: {node: '>=10'} dependencies: + '@types/parse-json': 4.0.0 import-fresh: 3.3.0 - js-yaml: 4.1.0 parse-json: 5.2.0 path-type: 4.0.0 + yaml: 1.10.2 dev: true /create-require@1.1.1: @@ -3143,7 +3153,7 @@ packages: /cross-fetch@3.1.8: resolution: {integrity: sha512-cvA+JwZoU0Xq+h6WkMvAUqPEYy92Obet6UdKLfW60qn99ftItKjB5T+BkyWOFWe2pUyfQ+IJHmpOTznqk1M6Kg==} dependencies: - node-fetch: 2.6.12 + node-fetch: 2.7.0 transitivePeerDependencies: - encoding dev: true @@ -3297,7 +3307,7 @@ packages: resolution: {integrity: sha512-Kv5nKlh6yRrdrGvxeJ2e5y2eRUpkUosIW4A2AS38zwSz27zu7ufDwQPi5Jhs3XAlGNetl3bmnGhQsMtkKJnj3w==} dependencies: no-case: 3.0.4 - tslib: 2.4.1 + tslib: 2.6.2 dev: true /dotenv@16.0.2: @@ -3310,10 +3320,6 @@ packages: engines: {node: '>=4'} dev: true - /electron-to-chromium@1.4.426: - resolution: {integrity: sha512-dWuNH+XUT9hdFHASfMpcZGW5kUyJvllumJkXaXiswuCkoaFIFI89aykBPuHEi1YUWQGRCqvIO0BUdmeFJ4W4Ww==} - dev: true - /electron-to-chromium@1.4.467: resolution: {integrity: sha512-2qI70O+rR4poYeF2grcuS/bCps5KJh6y1jtZMDDEteyKJQrzLOEhFyXCLcHW6DTBjKjWkk26JhWoAi+Ux9A0fg==} dev: true @@ -3895,6 +3901,15 @@ packages: engines: {node: '>=0.10.0'} dev: true + /event-target-polyfill@0.0.3: + resolution: {integrity: sha512-ZMc6UuvmbinrCk4RzGyVmRyIsAyxMRlp4CqSrcQRO8Dy0A9ldbiRy5kdtBj4OtP7EClGdqGfIqo9JmOClMsGLQ==} + dev: true + + /event-target-shim@5.0.1: + resolution: {integrity: sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==} + engines: {node: '>=6'} + dev: true + /events@3.3.0: resolution: {integrity: sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==} engines: {node: '>=0.8.x'} @@ -4014,7 +4029,7 @@ packages: object-assign: 4.1.1 promise: 7.3.1 setimmediate: 1.0.5 - ua-parser-js: 1.0.35 + ua-parser-js: 1.0.36 transitivePeerDependencies: - encoding dev: true @@ -4084,6 +4099,10 @@ packages: is-callable: 1.2.7 dev: true + /form-data-encoder@1.9.0: + resolution: {integrity: sha512-rahaRMkN8P8d/tgK/BLPX+WBVM27NbvdXBxqQujBtkDAIFspaRqN7Od7lfdGQA6KAD+f82fYCLBq1ipvcu8qLw==} + dev: true + /form-data@3.0.1: resolution: {integrity: sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==} engines: {node: '>= 6'} @@ -4102,13 +4121,12 @@ packages: mime-types: 2.1.35 dev: false - /fs-extra@10.1.0: - resolution: {integrity: sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==} - engines: {node: '>=12'} + /formdata-node@4.4.1: + resolution: {integrity: sha512-0iirZp3uVDjVGt9p49aTaqjk84TrglENEDuqfdlZQ1roC9CWlPk6Avf8EEnZNcAqPonwkG35x4n3ww/1THYAeQ==} + engines: {node: '>= 12.20'} dependencies: - graceful-fs: 4.2.11 - jsonfile: 6.1.0 - universalify: 2.0.0 + node-domexception: 1.0.0 + web-streams-polyfill: 4.0.0-beta.3 dev: true /fs.realpath@1.0.0: @@ -4291,98 +4309,86 @@ packages: resolution: {integrity: sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==} dev: true - /graphql-config@4.5.0(@types/node@18.6.2)(graphql@16.7.1): - resolution: {integrity: sha512-x6D0/cftpLUJ0Ch1e5sj1TZn6Wcxx4oMfmhaG9shM0DKajA9iR+j1z86GSTQ19fShbGvrSSvbIQsHku6aQ6BBw==} + /graphql-config@4.3.6(@types/node@18.6.2)(graphql@16.8.1)(typescript@4.8.2): + resolution: {integrity: sha512-i7mAPwc0LAZPnYu2bI8B6yXU5820Wy/ArvmOseDLZIu0OU1UTULEuexHo6ZcHXeT9NvGGaUPQZm8NV3z79YydA==} engines: {node: '>= 10.0.0'} peerDependencies: - cosmiconfig-toml-loader: ^1.0.0 graphql: ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 - peerDependenciesMeta: - cosmiconfig-toml-loader: - optional: true dependencies: - '@graphql-tools/graphql-file-loader': 7.5.17(graphql@16.7.1) - '@graphql-tools/json-file-loader': 7.4.18(graphql@16.7.1) - '@graphql-tools/load': 7.8.14(graphql@16.7.1) - '@graphql-tools/merge': 8.4.2(graphql@16.7.1) - '@graphql-tools/url-loader': 7.17.18(@types/node@18.6.2)(graphql@16.7.1) - '@graphql-tools/utils': 9.2.1(graphql@16.7.1) - cosmiconfig: 8.0.0 - graphql: 16.7.1 - jiti: 1.17.1 - minimatch: 4.2.3 + '@graphql-tools/graphql-file-loader': 7.5.17(graphql@16.8.1) + '@graphql-tools/json-file-loader': 7.4.18(graphql@16.8.1) + '@graphql-tools/load': 7.8.14(graphql@16.8.1) + '@graphql-tools/merge': 8.4.2(graphql@16.8.1) + '@graphql-tools/url-loader': 7.17.18(@types/node@18.6.2)(graphql@16.8.1) + '@graphql-tools/utils': 8.13.1(graphql@16.8.1) + cosmiconfig: 7.0.1 + cosmiconfig-toml-loader: 1.0.0 + cosmiconfig-typescript-loader: 4.1.1(@types/node@18.6.2)(cosmiconfig@7.0.1)(ts-node@10.9.1)(typescript@4.8.2) + graphql: 16.8.1 + minimatch: 4.2.1 string-env-interpolation: 1.0.1 - tslib: 2.6.0 + ts-node: 10.9.1(@types/node@18.6.2)(typescript@4.8.2) + tslib: 2.6.2 transitivePeerDependencies: + - '@swc/core' + - '@swc/wasm' - '@types/node' - bufferutil - encoding + - typescript - utf-8-validate dev: true - /graphql-request@5.1.0(graphql@16.7.1): + /graphql-request@5.1.0(graphql@16.8.1): resolution: {integrity: sha512-0OeRVYigVwIiXhNmqnPDt+JhMzsjinxHE7TVy3Lm6jUzav0guVcL0lfSbi6jVTRAxcbwgyr6yrZioSHxf9gHzw==} peerDependencies: graphql: 14 - 16 dependencies: - '@graphql-typed-document-node/core': 3.2.0(graphql@16.7.1) + '@graphql-typed-document-node/core': 3.2.0(graphql@16.8.1) cross-fetch: 3.1.8 extract-files: 9.0.0 form-data: 3.0.1 - graphql: 16.7.1 + graphql: 16.8.1 transitivePeerDependencies: - encoding dev: true - /graphql-request@6.1.0(graphql@16.7.1): + /graphql-request@6.1.0(graphql@16.8.1): resolution: {integrity: sha512-p+XPfS4q7aIpKVcgmnZKhMNqhltk20hfXtkaIkTfjjmiKMJ5xrt5c743cL03y/K7y1rg3WrIC49xGiEQ4mxdNw==} peerDependencies: graphql: 14 - 16 dependencies: - '@graphql-typed-document-node/core': 3.2.0(graphql@16.7.1) + '@graphql-typed-document-node/core': 3.2.0(graphql@16.8.1) cross-fetch: 3.1.8 - graphql: 16.7.1 + graphql: 16.8.1 transitivePeerDependencies: - encoding dev: true - /graphql-tag@2.12.6(graphql@16.7.1): + /graphql-tag@2.12.6(graphql@16.8.1): resolution: {integrity: sha512-FdSNcu2QQcWnM2VNvSCCDCVS5PpPqpzgFT8+GXzqJuoDd0CBncxCY278u4mhRO7tMgo2JjgJA5aZ+nWSQ/Z+xg==} engines: {node: '>=10'} peerDependencies: graphql: ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 dependencies: - graphql: 16.7.1 - tslib: 2.4.1 + graphql: 16.8.1 + tslib: 2.6.2 dev: true - /graphql-ws@5.12.1(graphql@16.7.1): + /graphql-ws@5.12.1(graphql@16.8.1): resolution: {integrity: sha512-umt4f5NnMK46ChM2coO36PTFhHouBrK9stWWBczERguwYrGnPNxJ9dimU6IyOBfOkC6Izhkg4H8+F51W/8CYDg==} engines: {node: '>=10'} peerDependencies: graphql: '>=0.11 <=16' dependencies: - graphql: 16.7.1 + graphql: 16.8.1 dev: true - /graphql@16.7.1: - resolution: {integrity: sha512-DRYR9tf+UGU0KOsMcKAlXeFfX89UiiIZ0dRU3mR0yJfu6OjZqUcp68NnFLnqQU5RexygFoDy1EW+ccOYcPfmHg==} + /graphql@16.8.1: + resolution: {integrity: sha512-59LZHPdGZVh695Ud9lRzPBVTtlX9ZCV150Er2W43ro37wVof0ctenSaskPPjN7lVTIN8mSZt8PHUNKZuNQUuxw==} engines: {node: ^12.22.0 || ^14.16.0 || ^16.0.0 || >=17.0.0} dev: true - /handlebars@4.7.7: - resolution: {integrity: sha512-aAcXm5OAfE/8IXkcZvCepKU3VzW1/39Fb5ZuqMtgI/hT8X2YgoMvBY5dLhq/cpOvw7Lk1nK/UF71aLG/ZnVYRA==} - engines: {node: '>=0.4.7'} - hasBin: true - dependencies: - minimist: 1.2.8 - neo-async: 2.6.2 - source-map: 0.6.1 - wordwrap: 1.0.0 - optionalDependencies: - uglify-js: 3.17.4 - dev: true - /has-bigints@1.0.2: resolution: {integrity: sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==} dev: true @@ -4431,7 +4437,7 @@ packages: resolution: {integrity: sha512-H/vuk5TEEVZwrR0lp2zed9OCo1uAILMlx0JEMgC26rzyJJ3N1v6XkwHHXJQdR2doSjcGPM6OKPYoJgf0plJ11Q==} dependencies: capital-case: 1.0.4 - tslib: 2.4.1 + tslib: 2.6.2 dev: true /html-escaper@2.0.2: @@ -4539,8 +4545,8 @@ packages: resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==} dev: true - /inquirer@8.2.5: - resolution: {integrity: sha512-QAgPDQMEgrDssk1XiwwHoOGYF9BAbUcc1+j+FhEvaOt8/cKRqyLn0U5qA6F74fGhTMGxf92pOvPBeh29jQJDTQ==} + /inquirer@8.2.6: + resolution: {integrity: sha512-M1WuAmb7pn9zdFRtQYk26ZBoY043Sse0wVDdk4Bppr+JOXyQYybdtvK+l9wUibhtjdjvtoiNy8tk+EgsYIUqKg==} engines: {node: '>=12.0.0'} dependencies: ansi-escapes: 4.3.2 @@ -4557,7 +4563,7 @@ packages: string-width: 4.2.3 strip-ansi: 6.0.1 through: 2.3.8 - wrap-ansi: 7.0.0 + wrap-ansi: 6.2.0 dev: true /internal-slot@1.0.5: @@ -4664,7 +4670,7 @@ packages: /is-lower-case@2.0.2: resolution: {integrity: sha512-bVcMJy4X5Og6VZfdOZstSexlEy20Sr0k/p/b2IlQJlfdKAQuMpiv5w2Ccxb8sKdRUNAG1PnHVHjFSdRDVS6NlQ==} dependencies: - tslib: 2.4.1 + tslib: 2.6.2 dev: true /is-negative-zero@2.0.2: @@ -4746,7 +4752,7 @@ packages: /is-upper-case@2.0.2: resolution: {integrity: sha512-44pxmxAvnnAOwBg4tHPnkfvgjPwbc5QIsSstNU+YcJ1ovxVzCWpSGosPJOZh/a1tdl81fbgnLc9LLv+x2ywbPQ==} dependencies: - tslib: 2.4.1 + tslib: 2.6.2 dev: true /is-weakref@1.0.2: @@ -4776,6 +4782,14 @@ packages: ws: 8.13.0 dev: true + /isomorphic-ws@5.0.0(ws@8.14.2): + resolution: {integrity: sha512-muId7Zzn9ywDsyXgTIafTry2sV3nySZeUDe6YedVd1Hvuuep5AsIlqK+XefWpYTyJG5e503F2xIuT2lcU6rCSw==} + peerDependencies: + ws: '*' + dependencies: + ws: 8.14.2 + dev: true + /istanbul-lib-coverage@3.2.0: resolution: {integrity: sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw==} engines: {node: '>=8'} @@ -4789,7 +4803,7 @@ packages: '@babel/parser': 7.22.5 '@istanbuljs/schema': 0.1.3 istanbul-lib-coverage: 3.2.0 - semver: 6.3.0 + semver: 6.3.1 transitivePeerDependencies: - supports-color dev: true @@ -5238,13 +5252,8 @@ packages: - ts-node dev: true - /jiti@1.17.1: - resolution: {integrity: sha512-NZIITw8uZQFuzQimqjUxIrIcEdxYDFIe/0xYfIlVXTkiBjjyBEvgasj5bb0/cHtPRD/NziPbT312sFrkI5ALpw==} - hasBin: true - dev: true - - /jose@4.14.4: - resolution: {integrity: sha512-j8GhLiKmUAh+dsFXlX1aJCbt5KMibuKb+d7j1JaOJG6s2UjX1PQlW+OKB/sD4a/5ZYF4RcmYmLSndOoU3Lt/3g==} + /jose@4.14.6: + resolution: {integrity: sha512-EqJPEUlZD0/CSUMubKtMaYUOtWe91tZXTWMJZoKSbLk+KtdhNdcvppH8lA9XwVu2V4Ailvsj0GBZJ2ZwDjfesQ==} dev: true /joycon@3.1.1: @@ -5285,14 +5294,6 @@ packages: resolution: {integrity: sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==} dev: true - /json-schema-ref-parser@9.0.9: - resolution: {integrity: sha512-qcP2lmGy+JUoQJ4DOQeLaZDqH9qSkeGCK3suKWxJXS82dg728Mn3j97azDMaOUmJAN4uCq91LdPx4K7E8F1a7Q==} - engines: {node: '>=10'} - deprecated: Please switch to @apidevtools/json-schema-ref-parser - dependencies: - '@apidevtools/json-schema-ref-parser': 9.0.9 - dev: true - /json-schema-traverse@0.4.1: resolution: {integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==} dev: true @@ -5332,14 +5333,6 @@ packages: resolution: {integrity: sha512-gfFQZrcTc8CnKXp6Y4/CBT3fTc0OVuDofpre4aEeEpSBPV5X5v4+Vmx+8snU7RLPrNHPKSgLxGo9YuQzz20o+w==} dev: true - /jsonfile@6.1.0: - resolution: {integrity: sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==} - dependencies: - universalify: 2.0.0 - optionalDependencies: - graceful-fs: 4.2.11 - dev: true - /jsonify@0.0.1: resolution: {integrity: sha512-2/Ki0GcmuqSrgFyelQq9M05y7PS0mEwuIzrf3f1fPqkVDVRvZrPZtVSMHxdgo8Aq0sxAOb/cr2aqqA3LeWHVPg==} dev: true @@ -5464,13 +5457,13 @@ packages: /lower-case-first@2.0.2: resolution: {integrity: sha512-EVm/rR94FJTZi3zefZ82fLWab+GX14LJN4HrWBcuo6Evmsl9hEfnqxgcHCKb9q+mNf6EVdsjx/qucYFIIB84pg==} dependencies: - tslib: 2.4.1 + tslib: 2.6.2 dev: true /lower-case@2.0.2: resolution: {integrity: sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==} dependencies: - tslib: 2.4.1 + tslib: 2.6.2 dev: true /lowercase-keys@2.0.0: @@ -5499,7 +5492,7 @@ packages: resolution: {integrity: sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==} engines: {node: '>=8'} dependencies: - semver: 6.3.0 + semver: 6.3.1 dev: true /make-error@1.3.6: @@ -5583,8 +5576,8 @@ packages: brace-expansion: 1.1.11 dev: true - /minimatch@4.2.3: - resolution: {integrity: sha512-lIUdtK5hdofgCTu3aT0sOaHsYR37viUuIc0rwnnDXImbwFRcumyLMeZaM0t0I/fgxS6s6JMfu0rLD1Wz9pv1ng==} + /minimatch@4.2.1: + resolution: {integrity: sha512-9Uq1ChtSZO+Mxa/CL1eGizn2vRn3MlLgzhT0Iz8zaY8NdvxvB0d5QdPFmCKf7JKA9Lerx5vRrnwO03jsSfGG9g==} engines: {node: '>=10'} dependencies: brace-expansion: 1.1.11 @@ -5601,6 +5594,12 @@ packages: resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==} dev: true + /mkdirp@1.0.4: + resolution: {integrity: sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==} + engines: {node: '>=10'} + hasBin: true + dev: true + /ms@2.0.0: resolution: {integrity: sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==} dev: true @@ -5633,11 +5632,16 @@ packages: resolution: {integrity: sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg==} dependencies: lower-case: 2.0.2 - tslib: 2.4.1 + tslib: 2.6.2 + dev: true + + /node-domexception@1.0.0: + resolution: {integrity: sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==} + engines: {node: '>=10.5.0'} dev: true - /node-fetch@2.6.12: - resolution: {integrity: sha512-C/fGU2E8ToujUivIO0H+tpQ6HWo4eEmchoPIoXtxCrVghxdKq+QOHqEZW7tuP3KlV3bC8FRMO5nMCC7Zm1VP6g==} + /node-fetch@2.7.0: + resolution: {integrity: sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==} engines: {node: 4.x || >=6.0.0} peerDependencies: encoding: ^0.1.0 @@ -5757,7 +5761,7 @@ packages: bl: 4.1.0 chalk: 4.1.2 cli-cursor: 3.1.0 - cli-spinners: 2.9.0 + cli-spinners: 2.9.1 is-interactive: 1.0.0 is-unicode-supported: 0.1.0 log-symbols: 4.1.0 @@ -5819,7 +5823,7 @@ packages: resolution: {integrity: sha512-RXlj7zCYokReqWpOPH9oYivUzLYZ5vAPIfEmCTNViosC78F8F0H9y7T7gG2M39ymgutxF5gcFEsyZQSph9Bp3A==} dependencies: dot-case: 3.0.4 - tslib: 2.4.1 + tslib: 2.6.2 dev: true /parent-module@1.0.1: @@ -5852,14 +5856,14 @@ packages: resolution: {integrity: sha512-uWlGT3YSnK9x3BQJaOdcZwrnV6hPpd8jFH1/ucpiLRPh/2zCVJKS19E4GvYHvaCcACn3foXZ0cLB9Wrx1KGe5g==} dependencies: no-case: 3.0.4 - tslib: 2.4.1 + tslib: 2.6.2 dev: true /path-case@3.0.4: resolution: {integrity: sha512-qO4qCFjXqVTrcbPt/hQfhTQ+VhFsqNKOPtytgNKkKxSoEp3XPUQ8ObFuePylOIok5gjn69ry8XiULxCwot3Wfg==} dependencies: dot-case: 3.0.4 - tslib: 2.4.1 + tslib: 2.6.2 dev: true /path-exists@4.0.0: @@ -5987,10 +5991,10 @@ packages: engines: {node: '>=6'} dev: true - /pvtsutils@1.3.2: - resolution: {integrity: sha512-+Ipe2iNUyrZz+8K/2IOo+kKikdtfhRKzNpQbruF2URmqPtoqAs8g3xS7TJvFF2GcPXjh7DkqMnpVveRFq4PgEQ==} + /pvtsutils@1.3.5: + resolution: {integrity: sha512-ARvb14YB9Nm2Xi6nBq1ZX6dAM0FsJnuk+31aUp4TrcZEdKUlSqOqsxJHUPJDNE3qiIp+iUPEIeR6Je/tgV7zsA==} dependencies: - tslib: 2.6.0 + tslib: 2.6.2 dev: true /pvutils@1.1.3: @@ -6033,8 +6037,8 @@ packages: picomatch: 2.3.1 dev: true - /regenerator-runtime@0.13.11: - resolution: {integrity: sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==} + /regenerator-runtime@0.14.0: + resolution: {integrity: sha512-srw17NI0TUWHuGa5CFGGmhfNIeja30WMBfbslPNhf6JrqQlLN5gcrvig1oqPxiVaXb0oW0XRKtH6Nngs5lKCIA==} dev: true /regexp.prototype.flags@1.5.0: @@ -6054,7 +6058,7 @@ packages: /relay-runtime@12.0.0: resolution: {integrity: sha512-QU6JKr1tMsry22DXNy9Whsq5rmvwr3LSZiiWV/9+DFpuTWvp+WFhobWMc8TC4OjKFfNhEZy7mOiqUAn5atQtug==} dependencies: - '@babel/runtime': 7.22.6 + '@babel/runtime': 7.23.1 fbjs: 3.0.5 invariant: 2.2.4 transitivePeerDependencies: @@ -6169,7 +6173,7 @@ packages: /rxjs@7.8.1: resolution: {integrity: sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==} dependencies: - tslib: 2.6.0 + tslib: 2.6.2 dev: true /safe-array-concat@1.0.0: @@ -6233,7 +6237,7 @@ packages: resolution: {integrity: sha512-8LS0JInaQMCRoQ7YUytAo/xUu5W2XnQxV2HI/6uM6U7CITS1RqPElr30V6uIqyMKM9lJGRVFy5/4CuzcixNYSg==} dependencies: no-case: 3.0.4 - tslib: 2.4.1 + tslib: 2.6.2 upper-case-first: 2.0.2 dev: true @@ -6263,10 +6267,6 @@ packages: engines: {node: '>=8'} dev: true - /shell-quote@1.8.1: - resolution: {integrity: sha512-6j1W9l1iAs/4xYBI1SYOVZyFcCis9b4KCLQ8fgAGG07QvzaRLVVRQvAy85yNmmZSjYjg4MWh4gNvlPujU/5LpA==} - dev: true - /shiki@0.14.3: resolution: {integrity: sha512-U3S/a+b0KS+UkTyMjoNojvTgrBHjgp7L6ovhFVZsXmBGnVdQ4K4U9oK0z63w538S91ATngv1vXigHCSWOwnr+g==} dependencies: @@ -6323,7 +6323,7 @@ packages: resolution: {integrity: sha512-LAOh4z89bGQvl9pFfNF8V146i7o7/CqFPbqzYgP+yYzDIDeS9HaNFtXABamRW+AQzEVODcvE79ljJ+8a9YSdMg==} dependencies: dot-case: 3.0.4 - tslib: 2.4.1 + tslib: 2.6.2 dev: true /source-map-support@0.5.13: @@ -6355,7 +6355,7 @@ packages: /sponge-case@1.0.1: resolution: {integrity: sha512-dblb9Et4DAtiZ5YSUZHLl4XhH4uK80GhAZrVXdN4O2P4gQ40Wa5UIOPUHlA/nFd2PLblBZWUioLMMAVrgpoYcA==} dependencies: - tslib: 2.4.1 + tslib: 2.6.2 dev: true /sprintf-js@1.0.3: @@ -6504,7 +6504,7 @@ packages: /swap-case@2.0.2: resolution: {integrity: sha512-kc6S2YS/2yXbtkSMunBtKdah4VFETZ8Oh6ONSmSd9bRxhqTrtARUCBUiWXH3xVPpvR7tz2CSnkuXVE42EcGnMw==} dependencies: - tslib: 2.4.1 + tslib: 2.6.2 dev: true /tapable@2.2.1: @@ -6589,7 +6589,7 @@ packages: /title-case@3.0.3: resolution: {integrity: sha512-e1zGYRvbffpcHIrnuqT0Dh+gEJtDaxDSoG4JAIpq4oDFyooziLBIiYQv0GBT4FUAnUop5uZ1hiIAj7oAF6sOCA==} dependencies: - tslib: 2.4.1 + tslib: 2.6.2 dev: true /tmp@0.0.33: @@ -6736,8 +6736,8 @@ packages: resolution: {integrity: sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA==} dev: true - /tslib@2.6.0: - resolution: {integrity: sha512-7At1WUettjcSRHXCyYtTselblcHl9PJFFVKiCAy/bY97+BPZXSQ2wbq0P9s8tK2G7dFQfNnlJnPAiArVBVBsfA==} + /tslib@2.6.2: + resolution: {integrity: sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==} dev: true /tsup@6.2.3(ts-node@10.9.1)(typescript@4.8.2): @@ -6870,17 +6870,9 @@ packages: hasBin: true dev: true - /ua-parser-js@1.0.35: - resolution: {integrity: sha512-fKnGuqmTBnIE+/KXSzCn4db8RTigUzw1AN0DmdU6hJovUTbYJKyqj+8Mt1c4VfRDnOVJnENmfYkIPZ946UrSAA==} - dev: true - - /uglify-js@3.17.4: - resolution: {integrity: sha512-T9q82TJI9e/C1TAxYvfb16xO120tMVFZrGA3f9/P4424DNu6ypK103y0GPFVa17yotwSyZW5iYXgjYHkGrJW/g==} - engines: {node: '>=0.8.0'} - hasBin: true - requiresBuild: true + /ua-parser-js@1.0.36: + resolution: {integrity: sha512-znuyCIXzl8ciS3+y3fHJI/2OhQIXbXw9MWC/o3qwyR+RGppjZHrM27CGFSKCJXi2Kctiz537iOu2KnXs1lMQhw==} dev: true - optional: true /unbox-primitive@1.0.2: resolution: {integrity: sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==} @@ -6896,9 +6888,11 @@ packages: engines: {node: '>=0.10.0'} dev: true - /universalify@2.0.0: - resolution: {integrity: sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==} - engines: {node: '>= 10.0.0'} + /undici@5.25.2: + resolution: {integrity: sha512-tch8RbCfn1UUH1PeVCXva4V8gDpGAud/w0WubD6sHC46vYQ3KDxL+xv1A2UxK0N6jrVedutuPHxe1XIoqerwMw==} + engines: {node: '>=14.0'} + dependencies: + busboy: 1.6.0 dev: true /unixify@1.0.0: @@ -6908,17 +6902,6 @@ packages: normalize-path: 2.1.1 dev: true - /update-browserslist-db@1.0.11(browserslist@4.21.7): - resolution: {integrity: sha512-dCwEFf0/oT85M1fHBg4F0jtLwJrutGoHSQXCh7u4o2t1drG+c0a9Flnqww6XUKSfQMPpJBRjU8d4RXB09qtvaA==} - hasBin: true - peerDependencies: - browserslist: '>= 4.21.0' - dependencies: - browserslist: 4.21.7 - escalade: 3.1.1 - picocolors: 1.0.0 - dev: true - /update-browserslist-db@1.0.11(browserslist@4.21.9): resolution: {integrity: sha512-dCwEFf0/oT85M1fHBg4F0jtLwJrutGoHSQXCh7u4o2t1drG+c0a9Flnqww6XUKSfQMPpJBRjU8d4RXB09qtvaA==} hasBin: true @@ -6933,13 +6916,13 @@ packages: /upper-case-first@2.0.2: resolution: {integrity: sha512-514ppYHBaKwfJRK/pNC6c/OxfGa0obSnAl106u97Ed0I625Nin96KAjttZF6ZL3e1XLtphxnqrOi9iWgm+u+bg==} dependencies: - tslib: 2.4.1 + tslib: 2.6.2 dev: true /upper-case@2.0.2: resolution: {integrity: sha512-KgdgDGJt2TpuwBUIjgG6lzw2GWFRCW9Qkfkiv0DxqHHLYJHmtmdUIKcZd8rHgFSjopVTlw6ggzCm1b8MFQwikg==} dependencies: - tslib: 2.4.1 + tslib: 2.6.2 dev: true /uri-js@4.4.1: @@ -6948,12 +6931,6 @@ packages: punycode: 2.3.0 dev: true - /urlpattern-polyfill@6.0.2: - resolution: {integrity: sha512-5vZjFlH9ofROmuWmXM9yj2wljYKgWstGwe8YTyiqM7hVum/g9LyCizPZtb3UqsuppVwety9QJmfc42VggLpTgg==} - dependencies: - braces: 3.0.2 - dev: true - /urlpattern-polyfill@8.0.2: resolution: {integrity: sha512-Qp95D4TPJl1kC9SKigDcqgyM2VDVO4RiJc2d4qe5GrYm+zbIQCWWKAFaJNQ4BhdFeDGwBmAxqJBwWSJDb9T3BQ==} dev: true @@ -7013,14 +6990,19 @@ packages: engines: {node: '>= 8'} dev: true + /web-streams-polyfill@4.0.0-beta.3: + resolution: {integrity: sha512-QW95TCTaHmsYfHDybGMwO5IJIM93I/6vTRk+daHTWFPhwh+C8Cg7j7XyKrwrj8Ib6vYXe0ocYNrmzY4xAAN6ug==} + engines: {node: '>= 14'} + dev: true + /webcrypto-core@1.7.7: resolution: {integrity: sha512-7FjigXNsBfopEj+5DV2nhNpfic2vumtjjgPmeDKk45z+MJwXKKfhPB7118Pfzrmh4jqOMST6Ch37iPAHoImg5g==} dependencies: '@peculiar/asn1-schema': 2.3.6 '@peculiar/json-schema': 1.1.12 asn1js: 3.0.5 - pvtsutils: 1.3.2 - tslib: 2.6.0 + pvtsutils: 1.3.5 + tslib: 2.6.2 dev: true /webidl-conversions@3.0.1: @@ -7124,10 +7106,6 @@ packages: isexe: 2.0.0 dev: true - /wordwrap@1.0.0: - resolution: {integrity: sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==} - dev: true - /wrap-ansi@6.2.0: resolution: {integrity: sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==} engines: {node: '>=8'} @@ -7170,6 +7148,19 @@ packages: optional: true dev: true + /ws@8.14.2: + resolution: {integrity: sha512-wEBG1ftX4jcglPxgFCMJmZ2PLtSbJ2Peg6TmpJFTbe9GZYOQCDPdMYu/Tm0/bGZkw8paZnJY45J4K2PZrLYq8g==} + engines: {node: '>=10.0.0'} + peerDependencies: + bufferutil: ^4.0.1 + utf-8-validate: '>=5.0.2' + peerDependenciesMeta: + bufferutil: + optional: true + utf-8-validate: + optional: true + dev: true + /y18n@4.0.3: resolution: {integrity: sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==} dev: true @@ -7248,16 +7239,3 @@ packages: resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==} engines: {node: '>=10'} dev: true - - '@github.com/aptos-labs/openapi-typescript-codegen/releases/download/v0.24.0-p1/openapi-typescript-codegen-v0.24.0-p1.tgz': - resolution: {tarball: https://github.com/aptos-labs/openapi-typescript-codegen/releases/download/v0.24.0-p1/openapi-typescript-codegen-v0.24.0-p1.tgz} - name: openapi-typescript-codegen - version: 0.24.0 - hasBin: true - dependencies: - camelcase: 6.3.0 - commander: 9.5.0 - fs-extra: 10.1.0 - handlebars: 4.7.7 - json-schema-ref-parser: 9.0.9 - dev: true diff --git a/ecosystem/typescript/sdk_v2/src/api/account.ts b/ecosystem/typescript/sdk_v2/src/api/account.ts index 7033ef51577e7..28e0c99192d59 100644 --- a/ecosystem/typescript/sdk_v2/src/api/account.ts +++ b/ecosystem/typescript/sdk_v2/src/api/account.ts @@ -8,8 +8,34 @@ import { PaginationArgs, TransactionResponse, HexInput, + IndexerPaginationArgs, + GetAccountTokensCountQueryResponse, + TokenStandard, + OrderBy, + GetAccountOwnedTokensQueryResponse, + GetAccountCollectionsWithOwnedTokenResponse, + GetAccountTransactionsCountResponse, + GetAccountCoinsDataResponse, + GetAccountCoinsCountResponse, + GetAccountOwnedObjectsResponse, + GetAccountOwnedTokensFromCollectionResponse, } from "../types"; -import { getInfo, getModule, getModules, getResource, getResources, getTransactions } from "../internal/account"; +import { + getAccountCoinsCount, + getAccountCoinsData, + getAccountCollectionsWithOwnedTokens, + getAccountOwnedObjects, + getAccountOwnedTokens, + getAccountOwnedTokensFromCollectionAddress, + getAccountTokensCount, + getAccountTransactionsCount, + getInfo, + getModule, + getModules, + getResource, + getResources, + getTransactions, +} from "../internal/account"; /** * A class to query all `Account` related queries on Aptos. @@ -143,4 +169,136 @@ export class Account { const resource = await getResource({ aptosConfig: this.config, ...args }); return resource; } + + /** + * Queries the count of tokens owned by an account + * + * @param accountAddress The account address + * @returns An object { count : number } + */ + async getAccountTokensCount(args: { accountAddress: HexInput }): Promise { + const count = await getAccountTokensCount({ aptosConfig: this.config, ...args }); + return count; + } + + /** + * Queries the account's current owned tokens. + * + * This query returns all tokens (v1 and v2 standards) an account owns, including NFTs, fungible, soulbound, etc. + * If you want to get only the token from a specific standrd, you can pass an optional tokenStandard param + * + * @param accountAddress The account address we want to get the tokens for + * @returns Tokens array with the token data + */ + async getAccountOwnedTokens(args: { + accountAddress: HexInput; + options?: { + tokenStandard?: TokenStandard; + pagination?: IndexerPaginationArgs; + orderBy?: OrderBy; + }; + }): Promise { + const tokens = await getAccountOwnedTokens({ aptosConfig: this.config, ...args }); + return tokens; + } + + /** + * Queries all tokens of a specific collection that an account owns by the collection address + * + * This query returns all tokens (v1 and v2 standards) an account owns, including NFTs, fungible, soulbound, etc. + * If you want to get only the token from a specific standrd, you can pass an optional tokenStandard param + * + * @param ownerAddress The account address we want to get the tokens for + * @param collectionAddress The address of the collection being queried + * @returns Tokens array with the token data + */ + async getAccountOwnedTokensFromCollectionAddress(args: { + ownerAddress: HexInput; + collectionAddress: HexInput; + options?: { + tokenStandard?: TokenStandard; + pagination?: IndexerPaginationArgs; + orderBy?: OrderBy; + }; + }): Promise { + const tokens = await getAccountOwnedTokensFromCollectionAddress({ aptosConfig: this.config, ...args }); + return tokens; + } + + /** + * Queries for all collections that an account has tokens for. + * + * This query returns all tokens (v1 and v2 standards) an account owns, including NFTs, fungible, soulbound, etc. + * If you want to get only the token from a specific standrd, you can pass an optional tokenStandard param + * + * @param accountAddress The account address we want to get the collections for + * @returns Collections array with the collections data + */ + async getAccountCollectionsWithOwnedTokens(args: { + accountAddress: HexInput; + options?: { + tokenStandard?: TokenStandard; + pagination?: IndexerPaginationArgs; + orderBy?: OrderBy; + }; + }): Promise { + const collections = await getAccountCollectionsWithOwnedTokens({ aptosConfig: this.config, ...args }); + return collections; + } + + /** + * Queries the count of transactions submitted by an account + * + * @param accountAddress The account address we want to get the total count for + * @returns An object { count : number } + */ + async getAccountTransactionsCount(args: { accountAddress: HexInput }): Promise { + const count = getAccountTransactionsCount({ aptosConfig: this.config, ...args }); + return count; + } + + /** + * Queries an account's coins data + * + * @param accountAddress The account address we want to get the coins data for + * @returns Array with the coins data + */ + async getAccountCoinsData(args: { + accountAddress: HexInput; + options?: { + pagination?: IndexerPaginationArgs; + orderBy?: OrderBy; + }; + }): Promise { + const data = await getAccountCoinsData({ aptosConfig: this.config, ...args }); + return data; + } + + /** + * Queries the count of an account's coins + * + * @param accountAddress The account address we want to get the total count for + * @returns An object { count : number } + */ + async getAccountCoinsCount(args: { accountAddress: HexInput }): Promise { + const count = getAccountCoinsCount({ aptosConfig: this.config, ...args }); + return count; + } + + /** + * Queries an account's owned objects + * + * @param ownerAddress The account address we want to get the objects for + * @returns Objects array with the object data + */ + async getAccountOwnedObjects(args: { + ownerAddress: HexInput; + options?: { + pagination?: IndexerPaginationArgs; + orderBy?: OrderBy; + }; + }): Promise { + const objects = getAccountOwnedObjects({ aptosConfig: this.config, ...args }); + return objects; + } } diff --git a/ecosystem/typescript/sdk_v2/src/api/aptos_config.ts b/ecosystem/typescript/sdk_v2/src/api/aptos_config.ts index 8b292e3feae8d..1747306ad649c 100644 --- a/ecosystem/typescript/sdk_v2/src/api/aptos_config.ts +++ b/ecosystem/typescript/sdk_v2/src/api/aptos_config.ts @@ -67,4 +67,8 @@ export class AptosConfig { throw Error(`apiType ${apiType} is not supported`); } } + + isIndexerRequest(url: string): boolean { + return NetworkToIndexerAPI[this.network] === url; + } } diff --git a/ecosystem/typescript/sdk_v2/src/api/general.ts b/ecosystem/typescript/sdk_v2/src/api/general.ts index d2fad89d6707d..648fec9a29a81 100644 --- a/ecosystem/typescript/sdk_v2/src/api/general.ts +++ b/ecosystem/typescript/sdk_v2/src/api/general.ts @@ -1,5 +1,12 @@ -import { getBlockByHeight, getBlockByVersion, getLedgerInfo, getTableItem, view } from "../internal/general"; -import { Block, LedgerInfo, LedgerVersion, MoveValue, TableItemRequest, ViewRequest } from "../types"; +import { + getBlockByHeight, + getBlockByVersion, + getLedgerInfo, + getTableItem, + queryIndexer, + view, +} from "../internal/general"; +import { Block, GraphqlQuery, LedgerInfo, LedgerVersion, MoveValue, TableItemRequest, ViewRequest } from "../types"; import { AptosConfig } from "./aptos_config"; /** @@ -111,4 +118,28 @@ export class General { const data = await view({ aptosConfig: this.config, ...args }); return data[0]; } + + /** + * A generic function for retrieving data from Aptos Indexer. + * For more detailed queries specification see + * {@link https://cloud.hasura.io/public/graphiql?endpoint=https://indexer.mainnet.aptoslabs.com/v1/graphql} + * + * @param query A GraphQL query + * @example + * ``` + * { + * query: `query MyQuery { + ledger_infos { + chain_id + } + }`; + * } + * ``` + * + * @return The provided T type + */ + async queryIndexer(args: { query: GraphqlQuery }): Promise { + const response = await queryIndexer({ aptosConfig: this.config, ...args }); + return response; + } } diff --git a/ecosystem/typescript/sdk_v2/src/client/core.ts b/ecosystem/typescript/sdk_v2/src/client/core.ts index f0a46e00983c8..5003fd5381f41 100644 --- a/ecosystem/typescript/sdk_v2/src/client/core.ts +++ b/ecosystem/typescript/sdk_v2/src/client/core.ts @@ -2,6 +2,7 @@ import aptosClient from "@aptos-labs/aptos-client"; import { AptosApiError, AptosResponse } from "./types"; import { VERSION } from "../version"; import { ClientConfig, AptosRequest } from "../types"; +import { AptosConfig } from "../api/aptos_config"; /** * Meaningful errors map @@ -51,9 +52,13 @@ async function request( * The main function to use when doing an API request. * * @param options AptosRequest + * @param aptosConfig The config information for the SDK client instance * @returns the response or AptosApiError */ -export async function aptosRequest(options: AptosRequest): Promise> { +export async function aptosRequest( + options: AptosRequest, + aptosConfig: AptosConfig, +): Promise> { const { url, endpoint, method, body, contentType, params, overrides } = options; const fullEndpoint = `${url}/${endpoint ?? ""}`; const response = await request(fullEndpoint, method, body, contentType, params, overrides); @@ -67,10 +72,19 @@ export async function aptosRequest(options: AptosRequest): Promise= 200 && result.status < 300) { return result; } - const errorMessage = errors[result.status]; throw new AptosApiError(options, result, errorMessage ?? "Generic Error"); } diff --git a/ecosystem/typescript/sdk_v2/src/client/get.ts b/ecosystem/typescript/sdk_v2/src/client/get.ts index 7049909b8697d..64d2d57d37a3f 100644 --- a/ecosystem/typescript/sdk_v2/src/client/get.ts +++ b/ecosystem/typescript/sdk_v2/src/client/get.ts @@ -1,6 +1,7 @@ import { AptosResponse } from "./types"; import { aptosRequest } from "./core"; import { AptosRequest } from "../types"; +import { AptosConfig } from "../api/aptos_config"; export type GetRequestOptions = Omit; @@ -8,9 +9,16 @@ export type GetRequestOptions = Omit; * Main function to do a Get request * * @param options GetRequestOptions + * @param aptosConfig The config information for the SDK client instance * @returns */ -export async function get(options: GetRequestOptions): Promise> { - const response: AptosResponse = await aptosRequest({ ...options, method: "GET" }); +export async function get( + options: GetRequestOptions, + aptosConfig: AptosConfig, +): Promise> { + const response: AptosResponse = await aptosRequest( + { ...options, method: "GET", overrides: { ...aptosConfig.clientConfig, ...options.overrides } }, + aptosConfig, + ); return response; } diff --git a/ecosystem/typescript/sdk_v2/src/client/post.ts b/ecosystem/typescript/sdk_v2/src/client/post.ts index ba7f5cde79c4a..2d6dea2ba7a75 100644 --- a/ecosystem/typescript/sdk_v2/src/client/post.ts +++ b/ecosystem/typescript/sdk_v2/src/client/post.ts @@ -1,3 +1,4 @@ +import { AptosConfig } from "../api/aptos_config"; import { AptosRequest } from "../types"; import { aptosRequest } from "./core"; import { AptosResponse } from "./types"; @@ -8,9 +9,16 @@ export type PostRequestOptions = Omit; * Main function to do a Post request * * @param options PostRequestOptions + * @param aptosConfig The config information for the SDK client instance * @returns */ -export async function post(options: PostRequestOptions): Promise> { - const response: AptosResponse = await aptosRequest({ ...options, method: "POST" }); +export async function post( + options: PostRequestOptions, + aptosConfig: AptosConfig, +): Promise> { + const response: AptosResponse = await aptosRequest( + { ...options, method: "POST", overrides: { ...aptosConfig.clientConfig, ...options.overrides } }, + aptosConfig, + ); return response; } diff --git a/ecosystem/typescript/sdk_v2/src/index.ts b/ecosystem/typescript/sdk_v2/src/index.ts index fd1a71add0df2..3232888321ae0 100644 --- a/ecosystem/typescript/sdk_v2/src/index.ts +++ b/ecosystem/typescript/sdk_v2/src/index.ts @@ -3,3 +3,4 @@ export * from "./api"; export * from "./client"; +export * from "./utils/api-endpoints"; diff --git a/ecosystem/typescript/sdk_v2/src/internal/account.ts b/ecosystem/typescript/sdk_v2/src/internal/account.ts index 9b95b4e124281..79bbad6bc7a95 100644 --- a/ecosystem/typescript/sdk_v2/src/internal/account.ts +++ b/ecosystem/typescript/sdk_v2/src/internal/account.ts @@ -6,6 +6,11 @@ */ import { AptosConfig } from "../api/aptos_config"; +import { get } from "../client"; +import { paginateWithCursor } from "../utils/paginate_with_cursor"; +import { AccountAddress, Hex } from "../core"; +import { AptosApiType } from "../utils/const"; +import { queryIndexer } from "./general"; import { AccountData, LedgerVersion, @@ -15,20 +20,49 @@ import { PaginationArgs, TransactionResponse, HexInput, + GetAccountTokensCountQueryResponse, + TokenStandard, + OrderBy, + GetAccountOwnedTokensQueryResponse, + IndexerPaginationArgs, + GetAccountOwnedTokensFromCollectionResponse, + GetAccountCollectionsWithOwnedTokenResponse, + GetAccountTransactionsCountResponse, + GetAccountCoinsDataResponse, + GetAccountCoinsCountResponse, + GetAccountOwnedObjectsResponse, } from "../types"; -import { get } from "../client"; -import { paginateWithCursor } from "../utils/paginate_with_cursor"; -import { AccountAddress } from "../core"; -import { AptosApiType } from "../utils/const"; +import { + GetAccountOwnedObjectsQuery, + GetAccountTokensCountQuery, + GetAccountOwnedTokensFromCollectionQuery, + GetAccountOwnedTokensQuery, + GetAccountCollectionsWithOwnedTokensQuery, + GetAccountCoinsDataQuery, + GetAccountCoinsCountQuery, + GetAccountTransactionsCountQuery, +} from "../types/generated/operations"; +import { + GetAccountCoinsCount, + GetAccountCoinsData, + GetAccountCollectionsWithOwnedTokens, + GetAccountOwnedObjects, + GetAccountOwnedTokens, + GetAccountOwnedTokensFromCollection, + GetAccountTokensCount, + GetAccountTransactionsCount, +} from "../types/generated/queries"; export async function getInfo(args: { aptosConfig: AptosConfig; accountAddress: HexInput }): Promise { const { aptosConfig, accountAddress } = args; - const { data } = await get<{}, AccountData>({ - url: aptosConfig.getRequestUrl(AptosApiType.FULLNODE), - endpoint: `accounts/${AccountAddress.fromHexInput({ input: accountAddress }).toString()}`, - originMethod: "getInfo", - overrides: { ...aptosConfig.clientConfig }, - }); + const { data } = await get<{}, AccountData>( + { + url: aptosConfig.getRequestUrl(AptosApiType.FULLNODE), + endpoint: `accounts/${AccountAddress.fromHexInput({ input: accountAddress }).toString()}`, + originMethod: "getInfo", + }, + aptosConfig, + ); return data; } @@ -38,13 +72,15 @@ export async function getModules(args: { options?: PaginationArgs & LedgerVersion; }): Promise { const { aptosConfig, accountAddress, options } = args; - const data = await paginateWithCursor<{}, MoveModuleBytecode[]>({ - url: aptosConfig.getRequestUrl(AptosApiType.FULLNODE), - endpoint: `accounts/${AccountAddress.fromHexInput({ input: accountAddress }).toString()}/modules`, - params: { ledger_version: options?.ledgerVersion, start: options?.start, limit: options?.limit ?? 1000 }, - originMethod: "getModules", - overrides: { ...aptosConfig.clientConfig }, - }); + const data = await paginateWithCursor<{}, MoveModuleBytecode[]>( + { + url: aptosConfig.getRequestUrl(AptosApiType.FULLNODE), + endpoint: `accounts/${AccountAddress.fromHexInput({ input: accountAddress }).toString()}/modules`, + params: { ledger_version: options?.ledgerVersion, start: options?.start, limit: options?.limit ?? 1000 }, + originMethod: "getModules", + }, + aptosConfig, + ); return data; } @@ -63,13 +99,15 @@ export async function getModule(args: { options?: LedgerVersion; }): Promise { const { aptosConfig, accountAddress, moduleName, options } = args; - const { data } = await get<{}, MoveModuleBytecode>({ - url: aptosConfig.getRequestUrl(AptosApiType.FULLNODE), - endpoint: `accounts/${AccountAddress.fromHexInput({ input: accountAddress }).toString()}/module/${moduleName}`, - originMethod: "getModule", - params: { ledger_version: options?.ledgerVersion }, - overrides: { ...aptosConfig.clientConfig }, - }); + const { data } = await get<{}, MoveModuleBytecode>( + { + url: aptosConfig.getRequestUrl(AptosApiType.FULLNODE), + endpoint: `accounts/${AccountAddress.fromHexInput({ input: accountAddress }).toString()}/module/${moduleName}`, + originMethod: "getModule", + params: { ledger_version: options?.ledgerVersion }, + }, + aptosConfig, + ); return data; } @@ -79,13 +117,15 @@ export async function getTransactions(args: { options?: PaginationArgs; }): Promise { const { aptosConfig, accountAddress, options } = args; - const data = await paginateWithCursor<{}, TransactionResponse[]>({ - url: aptosConfig.getRequestUrl(AptosApiType.FULLNODE), - endpoint: `accounts/${AccountAddress.fromHexInput({ input: accountAddress }).toString()}/transactions`, - originMethod: "getTransactions", - params: { start: options?.start, limit: options?.limit }, - overrides: { ...aptosConfig.clientConfig }, - }); + const data = await paginateWithCursor<{}, TransactionResponse[]>( + { + url: aptosConfig.getRequestUrl(AptosApiType.FULLNODE), + endpoint: `accounts/${AccountAddress.fromHexInput({ input: accountAddress }).toString()}/transactions`, + originMethod: "getTransactions", + params: { start: options?.start, limit: options?.limit }, + }, + aptosConfig, + ); return data; } @@ -95,13 +135,15 @@ export async function getResources(args: { options?: PaginationArgs & LedgerVersion; }): Promise { const { aptosConfig, accountAddress, options } = args; - const data = await paginateWithCursor<{}, MoveResource[]>({ - url: aptosConfig.getRequestUrl(AptosApiType.FULLNODE), - endpoint: `accounts/${AccountAddress.fromHexInput({ input: accountAddress }).toString()}/resources`, - params: { ledger_version: options?.ledgerVersion, start: options?.start, limit: options?.limit ?? 999 }, - originMethod: "getResources", - overrides: { ...aptosConfig.clientConfig }, - }); + const data = await paginateWithCursor<{}, MoveResource[]>( + { + url: aptosConfig.getRequestUrl(AptosApiType.FULLNODE), + endpoint: `accounts/${AccountAddress.fromHexInput({ input: accountAddress }).toString()}/resources`, + params: { ledger_version: options?.ledgerVersion, start: options?.start, limit: options?.limit ?? 999 }, + originMethod: "getResources", + }, + aptosConfig, + ); return data; } @@ -112,12 +154,275 @@ export async function getResource(args: { options?: LedgerVersion; }): Promise { const { aptosConfig, accountAddress, resourceType, options } = args; - const { data } = await get<{}, MoveResource>({ - url: aptosConfig.getRequestUrl(AptosApiType.FULLNODE), - endpoint: `accounts/${AccountAddress.fromHexInput({ input: accountAddress }).toString()}/resource/${resourceType}`, - originMethod: "getResource", - params: { ledger_version: options?.ledgerVersion }, - overrides: { ...aptosConfig.clientConfig }, - }); + const { data } = await get<{}, MoveResource>( + { + url: aptosConfig.getRequestUrl(AptosApiType.FULLNODE), + endpoint: `accounts/${AccountAddress.fromHexInput({ + input: accountAddress, + }).toString()}/resource/${resourceType}`, + originMethod: "getResource", + params: { ledger_version: options?.ledgerVersion }, + }, + aptosConfig, + ); return data; } + +export async function getAccountTokensCount(args: { + aptosConfig: AptosConfig; + accountAddress: HexInput; +}): Promise { + const { aptosConfig, accountAddress } = args; + + const address = AccountAddress.fromHexInput({ input: accountAddress }).toString(); + + const whereCondition: any = { + owner_address: { _eq: address }, + amount: { _gt: "0" }, + }; + + const graphqlQuery = { + query: GetAccountTokensCount, + variables: { where_condition: whereCondition }, + }; + + const data = await queryIndexer({ + aptosConfig, + query: graphqlQuery, + originMethod: "getAccountTokensCount", + }); + + return data.current_token_ownerships_v2_aggregate.aggregate; +} + +export async function getAccountOwnedTokens(args: { + aptosConfig: AptosConfig; + accountAddress: HexInput; + options?: { + tokenStandard?: TokenStandard; + pagination?: IndexerPaginationArgs; + orderBy?: OrderBy; + }; +}): Promise { + const { aptosConfig, accountAddress, options } = args; + const address = AccountAddress.fromHexInput({ input: accountAddress }).toString(); + + const whereCondition: any = { + owner_address: { _eq: address }, + amount: { _gt: 0 }, + }; + + if (options?.tokenStandard) { + whereCondition.token_standard = { _eq: options?.tokenStandard }; + } + + const graphqlQuery = { + query: GetAccountOwnedTokens, + variables: { + where_condition: whereCondition, + offset: options?.pagination?.offset, + limit: options?.pagination?.limit, + order_by: options?.orderBy, + }, + }; + + const data = await queryIndexer({ + aptosConfig, + query: graphqlQuery, + originMethod: "getAccountOwnedTokens", + }); + + return data.current_token_ownerships_v2; +} + +export async function getAccountOwnedTokensFromCollectionAddress(args: { + aptosConfig: AptosConfig; + ownerAddress: HexInput; + collectionAddress: HexInput; + options?: { + tokenStandard?: TokenStandard; + pagination?: IndexerPaginationArgs; + orderBy?: OrderBy; + }; +}): Promise { + const { aptosConfig, ownerAddress, collectionAddress, options } = args; + const accountAddress = AccountAddress.fromHexInput({ input: ownerAddress }).toString(); + const collAddress = Hex.fromHexInput({ hexInput: collectionAddress }).toString(); + + const whereCondition: any = { + owner_address: { _eq: accountAddress }, + current_token_data: { collection_id: { _eq: collAddress } }, + amount: { _gt: 0 }, + }; + + if (options?.tokenStandard) { + whereCondition.token_standard = { _eq: options?.tokenStandard }; + } + + const graphqlQuery = { + query: GetAccountOwnedTokensFromCollection, + variables: { + where_condition: whereCondition, + offset: options?.pagination?.offset, + limit: options?.pagination?.limit, + order_by: options?.orderBy, + }, + }; + + const data = await queryIndexer({ + aptosConfig, + query: graphqlQuery, + originMethod: "getAccountOwnedTokensFromCollectionAddress", + }); + + return data.current_token_ownerships_v2; +} + +export async function getAccountCollectionsWithOwnedTokens(args: { + aptosConfig: AptosConfig; + accountAddress: HexInput; + options?: { + tokenStandard?: TokenStandard; + pagination?: IndexerPaginationArgs; + orderBy?: OrderBy; + }; +}): Promise { + const { aptosConfig, accountAddress, options } = args; + const address = AccountAddress.fromHexInput({ input: accountAddress }).toString(); + + const whereCondition: any = { + owner_address: { _eq: address }, + amount: { _gt: 0 }, + }; + + if (options?.tokenStandard) { + whereCondition.current_collection = { token_standard: { _eq: options?.tokenStandard } }; + } + + const graphqlQuery = { + query: GetAccountCollectionsWithOwnedTokens, + variables: { + where_condition: whereCondition, + offset: options?.pagination?.offset, + limit: options?.pagination?.limit, + order_by: options?.orderBy, + }, + }; + + const data = await queryIndexer({ + aptosConfig, + query: graphqlQuery, + originMethod: "getAccountCollectionsWithOwnedTokens", + }); + + return data.current_collection_ownership_v2_view; +} + +export async function getAccountTransactionsCount(args: { + aptosConfig: AptosConfig; + accountAddress: HexInput; +}): Promise { + const { aptosConfig, accountAddress } = args; + + const address = AccountAddress.fromHexInput({ input: accountAddress }).toString(); + + const graphqlQuery = { + query: GetAccountTransactionsCount, + variables: { address }, + }; + + const data = await queryIndexer({ + aptosConfig, + query: graphqlQuery, + originMethod: "getAccountTransactionsCount", + }); + + return data.account_transactions_aggregate.aggregate; +} + +export async function getAccountCoinsData(args: { + aptosConfig: AptosConfig; + accountAddress: HexInput; + options?: { + pagination?: IndexerPaginationArgs; + orderBy?: OrderBy; + }; +}): Promise { + const { aptosConfig, accountAddress, options } = args; + const address = AccountAddress.fromHexInput({ input: accountAddress }).toString(); + + const whereCondition: any = { + owner_address: { _eq: address }, + }; + + const graphqlQuery = { + query: GetAccountCoinsData, + variables: { + where_condition: whereCondition, + offset: options?.pagination?.offset, + limit: options?.pagination?.limit, + order_by: options?.orderBy, + }, + }; + + const data = await queryIndexer({ + aptosConfig, + query: graphqlQuery, + originMethod: "getAccountCoinsData", + }); + + return data.current_fungible_asset_balances; +} + +export async function getAccountCoinsCount(args: { + aptosConfig: AptosConfig; + accountAddress: HexInput; +}): Promise { + const { aptosConfig, accountAddress } = args; + const address = AccountAddress.fromHexInput({ input: accountAddress }).toString(); + + const graphqlQuery = { + query: GetAccountCoinsCount, + variables: { address }, + }; + + const data = await queryIndexer({ + aptosConfig, + query: graphqlQuery, + originMethod: "getAccountCoinsCount", + }); + + return data.current_fungible_asset_balances_aggregate.aggregate; +} + +export async function getAccountOwnedObjects(args: { + aptosConfig: AptosConfig; + ownerAddress: HexInput; + options?: { + pagination?: IndexerPaginationArgs; + orderBy?: OrderBy; + }; +}): Promise { + const { aptosConfig, ownerAddress, options } = args; + const address = AccountAddress.fromHexInput({ input: ownerAddress }).toString(); + + const whereCondition: any = { + owner_address: { _eq: address }, + }; + const graphqlQuery = { + query: GetAccountOwnedObjects, + variables: { + where_condition: whereCondition, + offset: options?.pagination?.offset, + limit: options?.pagination?.limit, + order_by: options?.orderBy, + }, + }; + const data = await queryIndexer({ + aptosConfig, + query: graphqlQuery, + originMethod: "getAccountOwnedObjects", + }); + + return data.current_objects; +} diff --git a/ecosystem/typescript/sdk_v2/src/internal/general.ts b/ecosystem/typescript/sdk_v2/src/internal/general.ts index 8bd521d129d5f..422ec519b8195 100644 --- a/ecosystem/typescript/sdk_v2/src/internal/general.ts +++ b/ecosystem/typescript/sdk_v2/src/internal/general.ts @@ -5,19 +5,21 @@ * general namespace and without having a dependency cycle error. */ -import { AptosConfig } from "../api"; +import { AptosConfig } from "../api/aptos_config"; import { get, post } from "../client"; -import { Block, LedgerInfo, LedgerVersion, MoveValue, TableItemRequest, ViewRequest } from "../types"; +import { Block, GraphqlQuery, LedgerInfo, LedgerVersion, MoveValue, TableItemRequest, ViewRequest } from "../types"; import { AptosApiType } from "../utils/const"; export async function getLedgerInfo(args: { aptosConfig: AptosConfig }): Promise { const { aptosConfig } = args; - const { data } = await get<{}, LedgerInfo>({ - url: aptosConfig.getRequestUrl(AptosApiType.FULLNODE), - endpoint: "", - originMethod: "getLedgerInfo", - overrides: { ...aptosConfig.clientConfig }, - }); + const { data } = await get<{}, LedgerInfo>( + { + url: aptosConfig.getRequestUrl(AptosApiType.FULLNODE), + endpoint: "", + originMethod: "getLedgerInfo", + }, + aptosConfig, + ); return data; } @@ -27,13 +29,15 @@ export async function getBlockByVersion(args: { options?: { withTransactions?: boolean }; }): Promise { const { aptosConfig, blockVersion, options } = args; - const { data } = await get<{}, Block>({ - url: aptosConfig.getRequestUrl(AptosApiType.FULLNODE), - endpoint: `blocks/by_version/${blockVersion}`, - originMethod: "getBlockByVersion", - params: { with_transactions: options?.withTransactions }, - overrides: { ...aptosConfig.clientConfig }, - }); + const { data } = await get<{}, Block>( + { + url: aptosConfig.getRequestUrl(AptosApiType.FULLNODE), + endpoint: `blocks/by_version/${blockVersion}`, + originMethod: "getBlockByVersion", + params: { with_transactions: options?.withTransactions }, + }, + aptosConfig, + ); return data; } @@ -43,13 +47,15 @@ export async function getBlockByHeight(args: { options?: { withTransactions?: boolean }; }): Promise { const { aptosConfig, blockHeight, options } = args; - const { data } = await get<{}, Block>({ - url: aptosConfig.getRequestUrl(AptosApiType.FULLNODE), - endpoint: `blocks/by_height/${blockHeight}`, - originMethod: "getBlockByHeight", - params: { with_transactions: options?.withTransactions }, - overrides: { ...aptosConfig.clientConfig }, - }); + const { data } = await get<{}, Block>( + { + url: aptosConfig.getRequestUrl(AptosApiType.FULLNODE), + endpoint: `blocks/by_height/${blockHeight}`, + originMethod: "getBlockByHeight", + params: { with_transactions: options?.withTransactions }, + }, + aptosConfig, + ); return data; } @@ -60,14 +66,16 @@ export async function getTableItem(args: { options?: LedgerVersion; }): Promise { const { aptosConfig, handle, data, options } = args; - const response = await post({ - url: aptosConfig.getRequestUrl(AptosApiType.FULLNODE), - body: data, - endpoint: `tables/${handle}/item`, - originMethod: "getTableItem", - params: { ledger_version: options?.ledgerVersion }, - overrides: { ...aptosConfig.clientConfig }, - }); + const response = await post( + { + url: aptosConfig.getRequestUrl(AptosApiType.FULLNODE), + body: data, + endpoint: `tables/${handle}/item`, + originMethod: "getTableItem", + params: { ledger_version: options?.ledgerVersion }, + }, + aptosConfig, + ); return response.data; } @@ -77,13 +85,33 @@ export async function view(args: { options?: LedgerVersion; }): Promise { const { aptosConfig, payload, options } = args; - const { data } = await post({ - url: aptosConfig.getRequestUrl(AptosApiType.FULLNODE), - body: payload, - endpoint: "view", - originMethod: "view", - params: { ledger_version: options?.ledgerVersion }, - overrides: { ...aptosConfig.clientConfig }, - }); + const { data } = await post( + { + url: aptosConfig.getRequestUrl(AptosApiType.FULLNODE), + body: payload, + endpoint: "view", + originMethod: "view", + params: { ledger_version: options?.ledgerVersion }, + }, + aptosConfig, + ); + return data; +} + +export async function queryIndexer(args: { + aptosConfig: AptosConfig; + query: GraphqlQuery; + originMethod?: string; +}): Promise { + const { aptosConfig, query, originMethod } = args; + const { data } = await post( + { + url: aptosConfig.getRequestUrl(AptosApiType.INDEXER), + body: query, + originMethod: originMethod ?? "queryIndexer", + overrides: { WITH_CREDENTIALS: false }, + }, + aptosConfig, + ); return data; } diff --git a/ecosystem/typescript/sdk_v2/src/internal/queries/CurrentTokenOwnershipFieldsFragment.graphql b/ecosystem/typescript/sdk_v2/src/internal/queries/CurrentTokenOwnershipFieldsFragment.graphql new file mode 100644 index 0000000000000..bdf67d3604a3e --- /dev/null +++ b/ecosystem/typescript/sdk_v2/src/internal/queries/CurrentTokenOwnershipFieldsFragment.graphql @@ -0,0 +1,45 @@ +fragment CurrentTokenOwnershipFields on current_token_ownerships_v2 { + token_standard + token_properties_mutated_v1 + token_data_id + table_type_v1 + storage_id + property_version_v1 + owner_address + last_transaction_version + last_transaction_timestamp + is_soulbound_v2 + is_fungible_v2 + amount + current_token_data { + collection_id + description + is_fungible_v2 + largest_property_version_v1 + last_transaction_timestamp + last_transaction_version + maximum + supply + token_data_id + token_name + token_properties + token_standard + token_uri + current_collection { + collection_id + collection_name + creator_address + current_supply + description + last_transaction_timestamp + last_transaction_version + max_supply + mutable_description + mutable_uri + table_handle_v1 + token_standard + total_minted_v2 + uri + } + } +} diff --git a/ecosystem/typescript/sdk_v2/src/internal/queries/getAccountCoinCount.graphql b/ecosystem/typescript/sdk_v2/src/internal/queries/getAccountCoinCount.graphql new file mode 100644 index 0000000000000..6bcc3d803506f --- /dev/null +++ b/ecosystem/typescript/sdk_v2/src/internal/queries/getAccountCoinCount.graphql @@ -0,0 +1,7 @@ +query getAccountCoinsCount($address: String) { + current_fungible_asset_balances_aggregate(where: { owner_address: { _eq: $address } }) { + aggregate { + count + } + } +} diff --git a/ecosystem/typescript/sdk_v2/src/internal/queries/getAccountCoinsData.graphql b/ecosystem/typescript/sdk_v2/src/internal/queries/getAccountCoinsData.graphql new file mode 100644 index 0000000000000..48fb5b1e6f806 --- /dev/null +++ b/ecosystem/typescript/sdk_v2/src/internal/queries/getAccountCoinsData.graphql @@ -0,0 +1,32 @@ +query getAccountCoinsData( + $where_condition: current_fungible_asset_balances_bool_exp! + $offset: Int + $limit: Int + $order_by: [current_fungible_asset_balances_order_by!] +) { + current_fungible_asset_balances(where: $where_condition, offset: $offset, limit: $limit, order_by: $order_by) { + amount + asset_type + is_frozen + is_primary + last_transaction_timestamp + last_transaction_version + owner_address + storage_id + token_standard + metadata { + token_standard + symbol + supply_aggregator_table_key_v1 + supply_aggregator_table_handle_v1 + project_uri + name + last_transaction_version + last_transaction_timestamp + icon_uri + decimals + creator_address + asset_type + } + } +} diff --git a/ecosystem/typescript/sdk_v2/src/internal/queries/getAccountCollectionsWithOwnedTokens.graphql b/ecosystem/typescript/sdk_v2/src/internal/queries/getAccountCollectionsWithOwnedTokens.graphql new file mode 100644 index 0000000000000..2e88f60c45d29 --- /dev/null +++ b/ecosystem/typescript/sdk_v2/src/internal/queries/getAccountCollectionsWithOwnedTokens.graphql @@ -0,0 +1,33 @@ +query getAccountCollectionsWithOwnedTokens( + $where_condition: current_collection_ownership_v2_view_bool_exp! + $offset: Int + $limit: Int + $order_by: [current_collection_ownership_v2_view_order_by!] +) { + current_collection_ownership_v2_view(where: $where_condition, offset: $offset, limit: $limit, order_by: $order_by) { + current_collection { + collection_id + collection_name + creator_address + current_supply + description + last_transaction_timestamp + last_transaction_version + mutable_description + max_supply + mutable_uri + table_handle_v1 + token_standard + total_minted_v2 + uri + } + collection_id + collection_name + collection_uri + creator_address + distinct_tokens + last_transaction_version + owner_address + single_token_uri + } +} diff --git a/ecosystem/typescript/sdk_v2/src/internal/queries/getAccountOwnedObjects.graphql b/ecosystem/typescript/sdk_v2/src/internal/queries/getAccountOwnedObjects.graphql new file mode 100644 index 0000000000000..23db747e89158 --- /dev/null +++ b/ecosystem/typescript/sdk_v2/src/internal/queries/getAccountOwnedObjects.graphql @@ -0,0 +1,16 @@ +query getAccountOwnedObjects( + $where_condition: current_objects_bool_exp + $offset: Int + $limit: Int + $order_by: [current_objects_order_by!] +) { + current_objects(where: $where_condition, offset: $offset, limit: $limit, order_by: $order_by) { + allow_ungated_transfer + state_key_hash + owner_address + object_address + last_transaction_version + last_guid_creation_num + is_deleted + } +} diff --git a/ecosystem/typescript/sdk_v2/src/internal/queries/getAccountOwnedTokens.graphql b/ecosystem/typescript/sdk_v2/src/internal/queries/getAccountOwnedTokens.graphql new file mode 100644 index 0000000000000..c4d90dd3ae8d4 --- /dev/null +++ b/ecosystem/typescript/sdk_v2/src/internal/queries/getAccountOwnedTokens.graphql @@ -0,0 +1,11 @@ +#import "./CurrentTokenOwnershipFieldsFragment"; +query getAccountOwnedTokens( + $where_condition: current_token_ownerships_v2_bool_exp! + $offset: Int + $limit: Int + $order_by: [current_token_ownerships_v2_order_by!] +) { + current_token_ownerships_v2(where: $where_condition, offset: $offset, limit: $limit, order_by: $order_by) { + ...CurrentTokenOwnershipFields + } +} diff --git a/ecosystem/typescript/sdk_v2/src/internal/queries/getAccountOwnedTokensByTokenData.graphql b/ecosystem/typescript/sdk_v2/src/internal/queries/getAccountOwnedTokensByTokenData.graphql new file mode 100644 index 0000000000000..da657c174cdde --- /dev/null +++ b/ecosystem/typescript/sdk_v2/src/internal/queries/getAccountOwnedTokensByTokenData.graphql @@ -0,0 +1,11 @@ +#import "./CurrentTokenOwnershipFieldsFragment"; +query getAccountOwnedTokensByTokenData( + $where_condition: current_token_ownerships_v2_bool_exp! + $offset: Int + $limit: Int + $order_by: [current_token_ownerships_v2_order_by!] +) { + current_token_ownerships_v2(where: $where_condition, offset: $offset, limit: $limit, order_by: $order_by) { + ...CurrentTokenOwnershipFields + } +} diff --git a/ecosystem/typescript/sdk_v2/src/internal/queries/getAccountOwnedTokensFromCollectionAddress.graphql b/ecosystem/typescript/sdk_v2/src/internal/queries/getAccountOwnedTokensFromCollectionAddress.graphql new file mode 100644 index 0000000000000..ce95cc9a0c3f6 --- /dev/null +++ b/ecosystem/typescript/sdk_v2/src/internal/queries/getAccountOwnedTokensFromCollectionAddress.graphql @@ -0,0 +1,11 @@ +#import "./CurrentTokenOwnershipFieldsFragment"; +query getAccountOwnedTokensFromCollection( + $where_condition: current_token_ownerships_v2_bool_exp! + $offset: Int + $limit: Int + $order_by: [current_token_ownerships_v2_order_by!] +) { + current_token_ownerships_v2(where: $where_condition, offset: $offset, limit: $limit, order_by: $order_by) { + ...CurrentTokenOwnershipFields + } +} diff --git a/ecosystem/typescript/sdk_v2/src/internal/queries/getAccountTokensCount.graphql b/ecosystem/typescript/sdk_v2/src/internal/queries/getAccountTokensCount.graphql new file mode 100644 index 0000000000000..c1032400cd0ac --- /dev/null +++ b/ecosystem/typescript/sdk_v2/src/internal/queries/getAccountTokensCount.graphql @@ -0,0 +1,7 @@ +query getAccountTokensCount($where_condition: current_token_ownerships_v2_bool_exp, $offset: Int, $limit: Int) { + current_token_ownerships_v2_aggregate(where: $where_condition, offset: $offset, limit: $limit) { + aggregate { + count + } + } +} diff --git a/ecosystem/typescript/sdk_v2/src/internal/queries/getAccountTransactionsCount.graphql b/ecosystem/typescript/sdk_v2/src/internal/queries/getAccountTransactionsCount.graphql new file mode 100644 index 0000000000000..009d559dd5d7f --- /dev/null +++ b/ecosystem/typescript/sdk_v2/src/internal/queries/getAccountTransactionsCount.graphql @@ -0,0 +1,7 @@ +query getAccountTransactionsCount($address: String) { + account_transactions_aggregate(where: { account_address: { _eq: $address } }) { + aggregate { + count + } + } +} diff --git a/ecosystem/typescript/sdk_v2/src/types/codegen.yaml b/ecosystem/typescript/sdk_v2/src/types/codegen.yaml new file mode 100644 index 0000000000000..3db1dba5f5a99 --- /dev/null +++ b/ecosystem/typescript/sdk_v2/src/types/codegen.yaml @@ -0,0 +1,33 @@ +overwrite: true +documents: src/internal/queries/**/*.graphql +schema: https://indexer.mainnet.aptoslabs.com/v1/graphql +generates: + src/types/generated/types.ts: + plugins: + - typescript + config: + skipTypename: true + namingConvention: + transformUnderscore: true + src/types/generated/operations.ts: + preset: import-types-preset + presetConfig: + typesPath: ./types + plugins: + - typescript-operations + config: + skipTypename: true + namingConvention: + transformUnderscore: true + src/types/generated/queries.ts: + preset: import-types-preset + presetConfig: + typesPath: ./operations + plugins: + - typescript-graphql-request + config: + documentMode: string + documentVariableSuffix: "" + skipTypename: true + namingConvention: + transformUnderscore: true diff --git a/ecosystem/typescript/sdk_v2/src/types/generated/operations.ts b/ecosystem/typescript/sdk_v2/src/types/generated/operations.ts new file mode 100644 index 0000000000000..6f5df552dcdd1 --- /dev/null +++ b/ecosystem/typescript/sdk_v2/src/types/generated/operations.ts @@ -0,0 +1,86 @@ +import * as Types from './types'; + +export type CurrentTokenOwnershipFieldsFragment = { token_standard: string, token_properties_mutated_v1?: any | null, token_data_id: string, table_type_v1?: string | null, storage_id: string, property_version_v1: any, owner_address: string, last_transaction_version: any, last_transaction_timestamp: any, is_soulbound_v2?: boolean | null, is_fungible_v2?: boolean | null, amount: any, current_token_data?: { collection_id: string, description: string, is_fungible_v2?: boolean | null, largest_property_version_v1?: any | null, last_transaction_timestamp: any, last_transaction_version: any, maximum?: any | null, supply: any, token_data_id: string, token_name: string, token_properties: any, token_standard: string, token_uri: string, current_collection?: { collection_id: string, collection_name: string, creator_address: string, current_supply: any, description: string, last_transaction_timestamp: any, last_transaction_version: any, max_supply?: any | null, mutable_description?: boolean | null, mutable_uri?: boolean | null, table_handle_v1?: string | null, token_standard: string, total_minted_v2?: any | null, uri: string } | null } | null }; + +export type GetAccountCoinsCountQueryVariables = Types.Exact<{ + address?: Types.InputMaybe; +}>; + + +export type GetAccountCoinsCountQuery = { current_fungible_asset_balances_aggregate: { aggregate?: { count: number } | null } }; + +export type GetAccountCoinsDataQueryVariables = Types.Exact<{ + where_condition: Types.CurrentFungibleAssetBalancesBoolExp; + offset?: Types.InputMaybe; + limit?: Types.InputMaybe; + order_by?: Types.InputMaybe | Types.CurrentFungibleAssetBalancesOrderBy>; +}>; + + +export type GetAccountCoinsDataQuery = { current_fungible_asset_balances: Array<{ amount: any, asset_type: string, is_frozen: boolean, is_primary: boolean, last_transaction_timestamp: any, last_transaction_version: any, owner_address: string, storage_id: string, token_standard: string, metadata?: { token_standard: string, symbol: string, supply_aggregator_table_key_v1?: string | null, supply_aggregator_table_handle_v1?: string | null, project_uri?: string | null, name: string, last_transaction_version: any, last_transaction_timestamp: any, icon_uri?: string | null, decimals: number, creator_address: string, asset_type: string } | null }> }; + +export type GetAccountCollectionsWithOwnedTokensQueryVariables = Types.Exact<{ + where_condition: Types.CurrentCollectionOwnershipV2ViewBoolExp; + offset?: Types.InputMaybe; + limit?: Types.InputMaybe; + order_by?: Types.InputMaybe | Types.CurrentCollectionOwnershipV2ViewOrderBy>; +}>; + + +export type GetAccountCollectionsWithOwnedTokensQuery = { current_collection_ownership_v2_view: Array<{ collection_id?: string | null, collection_name?: string | null, collection_uri?: string | null, creator_address?: string | null, distinct_tokens?: any | null, last_transaction_version?: any | null, owner_address?: string | null, single_token_uri?: string | null, current_collection?: { collection_id: string, collection_name: string, creator_address: string, current_supply: any, description: string, last_transaction_timestamp: any, last_transaction_version: any, mutable_description?: boolean | null, max_supply?: any | null, mutable_uri?: boolean | null, table_handle_v1?: string | null, token_standard: string, total_minted_v2?: any | null, uri: string } | null }> }; + +export type GetAccountOwnedObjectsQueryVariables = Types.Exact<{ + where_condition?: Types.InputMaybe; + offset?: Types.InputMaybe; + limit?: Types.InputMaybe; + order_by?: Types.InputMaybe | Types.CurrentObjectsOrderBy>; +}>; + + +export type GetAccountOwnedObjectsQuery = { current_objects: Array<{ allow_ungated_transfer: boolean, state_key_hash: string, owner_address: string, object_address: string, last_transaction_version: any, last_guid_creation_num: any, is_deleted: boolean }> }; + +export type GetAccountOwnedTokensQueryVariables = Types.Exact<{ + where_condition: Types.CurrentTokenOwnershipsV2BoolExp; + offset?: Types.InputMaybe; + limit?: Types.InputMaybe; + order_by?: Types.InputMaybe | Types.CurrentTokenOwnershipsV2OrderBy>; +}>; + + +export type GetAccountOwnedTokensQuery = { current_token_ownerships_v2: Array<{ token_standard: string, token_properties_mutated_v1?: any | null, token_data_id: string, table_type_v1?: string | null, storage_id: string, property_version_v1: any, owner_address: string, last_transaction_version: any, last_transaction_timestamp: any, is_soulbound_v2?: boolean | null, is_fungible_v2?: boolean | null, amount: any, current_token_data?: { collection_id: string, description: string, is_fungible_v2?: boolean | null, largest_property_version_v1?: any | null, last_transaction_timestamp: any, last_transaction_version: any, maximum?: any | null, supply: any, token_data_id: string, token_name: string, token_properties: any, token_standard: string, token_uri: string, current_collection?: { collection_id: string, collection_name: string, creator_address: string, current_supply: any, description: string, last_transaction_timestamp: any, last_transaction_version: any, max_supply?: any | null, mutable_description?: boolean | null, mutable_uri?: boolean | null, table_handle_v1?: string | null, token_standard: string, total_minted_v2?: any | null, uri: string } | null } | null }> }; + +export type GetAccountOwnedTokensByTokenDataQueryVariables = Types.Exact<{ + where_condition: Types.CurrentTokenOwnershipsV2BoolExp; + offset?: Types.InputMaybe; + limit?: Types.InputMaybe; + order_by?: Types.InputMaybe | Types.CurrentTokenOwnershipsV2OrderBy>; +}>; + + +export type GetAccountOwnedTokensByTokenDataQuery = { current_token_ownerships_v2: Array<{ token_standard: string, token_properties_mutated_v1?: any | null, token_data_id: string, table_type_v1?: string | null, storage_id: string, property_version_v1: any, owner_address: string, last_transaction_version: any, last_transaction_timestamp: any, is_soulbound_v2?: boolean | null, is_fungible_v2?: boolean | null, amount: any, current_token_data?: { collection_id: string, description: string, is_fungible_v2?: boolean | null, largest_property_version_v1?: any | null, last_transaction_timestamp: any, last_transaction_version: any, maximum?: any | null, supply: any, token_data_id: string, token_name: string, token_properties: any, token_standard: string, token_uri: string, current_collection?: { collection_id: string, collection_name: string, creator_address: string, current_supply: any, description: string, last_transaction_timestamp: any, last_transaction_version: any, max_supply?: any | null, mutable_description?: boolean | null, mutable_uri?: boolean | null, table_handle_v1?: string | null, token_standard: string, total_minted_v2?: any | null, uri: string } | null } | null }> }; + +export type GetAccountOwnedTokensFromCollectionQueryVariables = Types.Exact<{ + where_condition: Types.CurrentTokenOwnershipsV2BoolExp; + offset?: Types.InputMaybe; + limit?: Types.InputMaybe; + order_by?: Types.InputMaybe | Types.CurrentTokenOwnershipsV2OrderBy>; +}>; + + +export type GetAccountOwnedTokensFromCollectionQuery = { current_token_ownerships_v2: Array<{ token_standard: string, token_properties_mutated_v1?: any | null, token_data_id: string, table_type_v1?: string | null, storage_id: string, property_version_v1: any, owner_address: string, last_transaction_version: any, last_transaction_timestamp: any, is_soulbound_v2?: boolean | null, is_fungible_v2?: boolean | null, amount: any, current_token_data?: { collection_id: string, description: string, is_fungible_v2?: boolean | null, largest_property_version_v1?: any | null, last_transaction_timestamp: any, last_transaction_version: any, maximum?: any | null, supply: any, token_data_id: string, token_name: string, token_properties: any, token_standard: string, token_uri: string, current_collection?: { collection_id: string, collection_name: string, creator_address: string, current_supply: any, description: string, last_transaction_timestamp: any, last_transaction_version: any, max_supply?: any | null, mutable_description?: boolean | null, mutable_uri?: boolean | null, table_handle_v1?: string | null, token_standard: string, total_minted_v2?: any | null, uri: string } | null } | null }> }; + +export type GetAccountTokensCountQueryVariables = Types.Exact<{ + where_condition?: Types.InputMaybe; + offset?: Types.InputMaybe; + limit?: Types.InputMaybe; +}>; + + +export type GetAccountTokensCountQuery = { current_token_ownerships_v2_aggregate: { aggregate?: { count: number } | null } }; + +export type GetAccountTransactionsCountQueryVariables = Types.Exact<{ + address?: Types.InputMaybe; +}>; + + +export type GetAccountTransactionsCountQuery = { account_transactions_aggregate: { aggregate?: { count: number } | null } }; diff --git a/ecosystem/typescript/sdk_v2/src/types/generated/queries.ts b/ecosystem/typescript/sdk_v2/src/types/generated/queries.ts new file mode 100644 index 0000000000000..1cd64e4a8b358 --- /dev/null +++ b/ecosystem/typescript/sdk_v2/src/types/generated/queries.ts @@ -0,0 +1,245 @@ +import * as Types from './operations'; + +import { GraphQLClient } from 'graphql-request'; +import * as Dom from 'graphql-request/dist/types.dom'; +export const CurrentTokenOwnershipFieldsFragmentDoc = ` + fragment CurrentTokenOwnershipFields on current_token_ownerships_v2 { + token_standard + token_properties_mutated_v1 + token_data_id + table_type_v1 + storage_id + property_version_v1 + owner_address + last_transaction_version + last_transaction_timestamp + is_soulbound_v2 + is_fungible_v2 + amount + current_token_data { + collection_id + description + is_fungible_v2 + largest_property_version_v1 + last_transaction_timestamp + last_transaction_version + maximum + supply + token_data_id + token_name + token_properties + token_standard + token_uri + current_collection { + collection_id + collection_name + creator_address + current_supply + description + last_transaction_timestamp + last_transaction_version + max_supply + mutable_description + mutable_uri + table_handle_v1 + token_standard + total_minted_v2 + uri + } + } +} + `; +export const GetAccountCoinsCount = ` + query getAccountCoinsCount($address: String) { + current_fungible_asset_balances_aggregate( + where: {owner_address: {_eq: $address}} + ) { + aggregate { + count + } + } +} + `; +export const GetAccountCoinsData = ` + query getAccountCoinsData($where_condition: current_fungible_asset_balances_bool_exp!, $offset: Int, $limit: Int, $order_by: [current_fungible_asset_balances_order_by!]) { + current_fungible_asset_balances( + where: $where_condition + offset: $offset + limit: $limit + order_by: $order_by + ) { + amount + asset_type + is_frozen + is_primary + last_transaction_timestamp + last_transaction_version + owner_address + storage_id + token_standard + metadata { + token_standard + symbol + supply_aggregator_table_key_v1 + supply_aggregator_table_handle_v1 + project_uri + name + last_transaction_version + last_transaction_timestamp + icon_uri + decimals + creator_address + asset_type + } + } +} + `; +export const GetAccountCollectionsWithOwnedTokens = ` + query getAccountCollectionsWithOwnedTokens($where_condition: current_collection_ownership_v2_view_bool_exp!, $offset: Int, $limit: Int, $order_by: [current_collection_ownership_v2_view_order_by!]) { + current_collection_ownership_v2_view( + where: $where_condition + offset: $offset + limit: $limit + order_by: $order_by + ) { + current_collection { + collection_id + collection_name + creator_address + current_supply + description + last_transaction_timestamp + last_transaction_version + mutable_description + max_supply + mutable_uri + table_handle_v1 + token_standard + total_minted_v2 + uri + } + collection_id + collection_name + collection_uri + creator_address + distinct_tokens + last_transaction_version + owner_address + single_token_uri + } +} + `; +export const GetAccountOwnedObjects = ` + query getAccountOwnedObjects($where_condition: current_objects_bool_exp, $offset: Int, $limit: Int, $order_by: [current_objects_order_by!]) { + current_objects( + where: $where_condition + offset: $offset + limit: $limit + order_by: $order_by + ) { + allow_ungated_transfer + state_key_hash + owner_address + object_address + last_transaction_version + last_guid_creation_num + is_deleted + } +} + `; +export const GetAccountOwnedTokens = ` + query getAccountOwnedTokens($where_condition: current_token_ownerships_v2_bool_exp!, $offset: Int, $limit: Int, $order_by: [current_token_ownerships_v2_order_by!]) { + current_token_ownerships_v2( + where: $where_condition + offset: $offset + limit: $limit + order_by: $order_by + ) { + ...CurrentTokenOwnershipFields + } +} + ${CurrentTokenOwnershipFieldsFragmentDoc}`; +export const GetAccountOwnedTokensByTokenData = ` + query getAccountOwnedTokensByTokenData($where_condition: current_token_ownerships_v2_bool_exp!, $offset: Int, $limit: Int, $order_by: [current_token_ownerships_v2_order_by!]) { + current_token_ownerships_v2( + where: $where_condition + offset: $offset + limit: $limit + order_by: $order_by + ) { + ...CurrentTokenOwnershipFields + } +} + ${CurrentTokenOwnershipFieldsFragmentDoc}`; +export const GetAccountOwnedTokensFromCollection = ` + query getAccountOwnedTokensFromCollection($where_condition: current_token_ownerships_v2_bool_exp!, $offset: Int, $limit: Int, $order_by: [current_token_ownerships_v2_order_by!]) { + current_token_ownerships_v2( + where: $where_condition + offset: $offset + limit: $limit + order_by: $order_by + ) { + ...CurrentTokenOwnershipFields + } +} + ${CurrentTokenOwnershipFieldsFragmentDoc}`; +export const GetAccountTokensCount = ` + query getAccountTokensCount($where_condition: current_token_ownerships_v2_bool_exp, $offset: Int, $limit: Int) { + current_token_ownerships_v2_aggregate( + where: $where_condition + offset: $offset + limit: $limit + ) { + aggregate { + count + } + } +} + `; +export const GetAccountTransactionsCount = ` + query getAccountTransactionsCount($address: String) { + account_transactions_aggregate(where: {account_address: {_eq: $address}}) { + aggregate { + count + } + } +} + `; + +export type SdkFunctionWrapper = (action: (requestHeaders?:Record) => Promise, operationName: string, operationType?: string) => Promise; + + +const defaultWrapper: SdkFunctionWrapper = (action, _operationName, _operationType) => action(); + +export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = defaultWrapper) { + return { + getAccountCoinsCount(variables?: Types.GetAccountCoinsCountQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise { + return withWrapper((wrappedRequestHeaders) => client.request(GetAccountCoinsCount, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'getAccountCoinsCount', 'query'); + }, + getAccountCoinsData(variables: Types.GetAccountCoinsDataQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise { + return withWrapper((wrappedRequestHeaders) => client.request(GetAccountCoinsData, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'getAccountCoinsData', 'query'); + }, + getAccountCollectionsWithOwnedTokens(variables: Types.GetAccountCollectionsWithOwnedTokensQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise { + return withWrapper((wrappedRequestHeaders) => client.request(GetAccountCollectionsWithOwnedTokens, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'getAccountCollectionsWithOwnedTokens', 'query'); + }, + getAccountOwnedObjects(variables?: Types.GetAccountOwnedObjectsQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise { + return withWrapper((wrappedRequestHeaders) => client.request(GetAccountOwnedObjects, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'getAccountOwnedObjects', 'query'); + }, + getAccountOwnedTokens(variables: Types.GetAccountOwnedTokensQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise { + return withWrapper((wrappedRequestHeaders) => client.request(GetAccountOwnedTokens, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'getAccountOwnedTokens', 'query'); + }, + getAccountOwnedTokensByTokenData(variables: Types.GetAccountOwnedTokensByTokenDataQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise { + return withWrapper((wrappedRequestHeaders) => client.request(GetAccountOwnedTokensByTokenData, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'getAccountOwnedTokensByTokenData', 'query'); + }, + getAccountOwnedTokensFromCollection(variables: Types.GetAccountOwnedTokensFromCollectionQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise { + return withWrapper((wrappedRequestHeaders) => client.request(GetAccountOwnedTokensFromCollection, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'getAccountOwnedTokensFromCollection', 'query'); + }, + getAccountTokensCount(variables?: Types.GetAccountTokensCountQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise { + return withWrapper((wrappedRequestHeaders) => client.request(GetAccountTokensCount, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'getAccountTokensCount', 'query'); + }, + getAccountTransactionsCount(variables?: Types.GetAccountTransactionsCountQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise { + return withWrapper((wrappedRequestHeaders) => client.request(GetAccountTransactionsCount, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'getAccountTransactionsCount', 'query'); + } + }; +} +export type Sdk = ReturnType; \ No newline at end of file diff --git a/ecosystem/typescript/sdk_v2/src/types/generated/types.ts b/ecosystem/typescript/sdk_v2/src/types/generated/types.ts new file mode 100644 index 0000000000000..bb63441fa32f9 --- /dev/null +++ b/ecosystem/typescript/sdk_v2/src/types/generated/types.ts @@ -0,0 +1,10603 @@ +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 }; +/** All built-in and custom scalars, mapped to their actual values */ +export type Scalars = { + ID: string; + String: string; + Boolean: boolean; + Int: number; + Float: number; + bigint: any; + jsonb: any; + numeric: any; + timestamp: any; + timestamptz: any; +}; + +/** Boolean expression to compare columns of type "Boolean". All fields are combined with logical 'AND'. */ +export type BooleanComparisonExp = { + _eq?: InputMaybe; + _gt?: InputMaybe; + _gte?: InputMaybe; + _in?: InputMaybe>; + _is_null?: InputMaybe; + _lt?: InputMaybe; + _lte?: InputMaybe; + _neq?: InputMaybe; + _nin?: InputMaybe>; +}; + +/** Boolean expression to compare columns of type "Int". All fields are combined with logical 'AND'. */ +export type IntComparisonExp = { + _eq?: InputMaybe; + _gt?: InputMaybe; + _gte?: InputMaybe; + _in?: InputMaybe>; + _is_null?: InputMaybe; + _lt?: InputMaybe; + _lte?: InputMaybe; + _neq?: InputMaybe; + _nin?: InputMaybe>; +}; + +/** Boolean expression to compare columns of type "String". All fields are combined with logical 'AND'. */ +export type StringComparisonExp = { + _eq?: InputMaybe; + _gt?: InputMaybe; + _gte?: InputMaybe; + /** does the column match the given case-insensitive pattern */ + _ilike?: InputMaybe; + _in?: InputMaybe>; + /** does the column match the given POSIX regular expression, case insensitive */ + _iregex?: InputMaybe; + _is_null?: InputMaybe; + /** does the column match the given pattern */ + _like?: InputMaybe; + _lt?: InputMaybe; + _lte?: InputMaybe; + _neq?: InputMaybe; + /** does the column NOT match the given case-insensitive pattern */ + _nilike?: InputMaybe; + _nin?: InputMaybe>; + /** does the column NOT match the given POSIX regular expression, case insensitive */ + _niregex?: InputMaybe; + /** does the column NOT match the given pattern */ + _nlike?: InputMaybe; + /** does the column NOT match the given POSIX regular expression, case sensitive */ + _nregex?: InputMaybe; + /** does the column NOT match the given SQL regular expression */ + _nsimilar?: InputMaybe; + /** does the column match the given POSIX regular expression, case sensitive */ + _regex?: InputMaybe; + /** does the column match the given SQL regular expression */ + _similar?: InputMaybe; +}; + +/** columns and relationships of "account_transactions" */ +export type AccountTransactions = { + account_address: Scalars['String']; + /** An array relationship */ + coin_activities: Array; + /** An aggregate relationship */ + coin_activities_aggregate: CoinActivitiesAggregate; + /** An array relationship */ + delegated_staking_activities: Array; + /** An array relationship */ + fungible_asset_activities: Array; + /** An array relationship */ + token_activities: Array; + /** An aggregate relationship */ + token_activities_aggregate: TokenActivitiesAggregate; + /** An array relationship */ + token_activities_v2: Array; + /** An aggregate relationship */ + token_activities_v2_aggregate: TokenActivitiesV2Aggregate; + transaction_version: Scalars['bigint']; +}; + + +/** columns and relationships of "account_transactions" */ +export type AccountTransactionsCoinActivitiesArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "account_transactions" */ +export type AccountTransactionsCoinActivitiesAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "account_transactions" */ +export type AccountTransactionsDelegatedStakingActivitiesArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "account_transactions" */ +export type AccountTransactionsFungibleAssetActivitiesArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "account_transactions" */ +export type AccountTransactionsTokenActivitiesArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "account_transactions" */ +export type AccountTransactionsTokenActivitiesAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "account_transactions" */ +export type AccountTransactionsTokenActivitiesV2Args = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "account_transactions" */ +export type AccountTransactionsTokenActivitiesV2AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + +/** aggregated selection of "account_transactions" */ +export type AccountTransactionsAggregate = { + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "account_transactions" */ +export type AccountTransactionsAggregateFields = { + avg?: Maybe; + count: Scalars['Int']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "account_transactions" */ +export type AccountTransactionsAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type AccountTransactionsAvgFields = { + transaction_version?: Maybe; +}; + +/** Boolean expression to filter rows from the table "account_transactions". All fields are combined with a logical 'AND'. */ +export type AccountTransactionsBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + account_address?: InputMaybe; + coin_activities?: InputMaybe; + delegated_staking_activities?: InputMaybe; + fungible_asset_activities?: InputMaybe; + token_activities?: InputMaybe; + token_activities_v2?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** aggregate max on columns */ +export type AccountTransactionsMaxFields = { + account_address?: Maybe; + transaction_version?: Maybe; +}; + +/** aggregate min on columns */ +export type AccountTransactionsMinFields = { + account_address?: Maybe; + transaction_version?: Maybe; +}; + +/** Ordering options when selecting data from "account_transactions". */ +export type AccountTransactionsOrderBy = { + account_address?: InputMaybe; + coin_activities_aggregate?: InputMaybe; + delegated_staking_activities_aggregate?: InputMaybe; + fungible_asset_activities_aggregate?: InputMaybe; + token_activities_aggregate?: InputMaybe; + token_activities_v2_aggregate?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** select columns of table "account_transactions" */ +export enum AccountTransactionsSelectColumn { + /** column name */ + AccountAddress = 'account_address', + /** column name */ + TransactionVersion = 'transaction_version' +} + +/** aggregate stddev on columns */ +export type AccountTransactionsStddevFields = { + transaction_version?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type AccountTransactionsStddevPopFields = { + transaction_version?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type AccountTransactionsStddevSampFields = { + transaction_version?: Maybe; +}; + +/** Streaming cursor of the table "account_transactions" */ +export type AccountTransactionsStreamCursorInput = { + /** Stream column input with initial value */ + initial_value: AccountTransactionsStreamCursorValueInput; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type AccountTransactionsStreamCursorValueInput = { + account_address?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** aggregate sum on columns */ +export type AccountTransactionsSumFields = { + transaction_version?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type AccountTransactionsVarPopFields = { + transaction_version?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type AccountTransactionsVarSampFields = { + transaction_version?: Maybe; +}; + +/** aggregate variance on columns */ +export type AccountTransactionsVarianceFields = { + transaction_version?: Maybe; +}; + +/** columns and relationships of "address_events_summary" */ +export type AddressEventsSummary = { + account_address?: Maybe; + /** An object relationship */ + block_metadata?: Maybe; + min_block_height?: Maybe; + num_distinct_versions?: Maybe; +}; + +/** Boolean expression to filter rows from the table "address_events_summary". All fields are combined with a logical 'AND'. */ +export type AddressEventsSummaryBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + account_address?: InputMaybe; + block_metadata?: InputMaybe; + min_block_height?: InputMaybe; + num_distinct_versions?: InputMaybe; +}; + +/** Ordering options when selecting data from "address_events_summary". */ +export type AddressEventsSummaryOrderBy = { + account_address?: InputMaybe; + block_metadata?: InputMaybe; + min_block_height?: InputMaybe; + num_distinct_versions?: InputMaybe; +}; + +/** select columns of table "address_events_summary" */ +export enum AddressEventsSummarySelectColumn { + /** column name */ + AccountAddress = 'account_address', + /** column name */ + MinBlockHeight = 'min_block_height', + /** column name */ + NumDistinctVersions = 'num_distinct_versions' +} + +/** Streaming cursor of the table "address_events_summary" */ +export type AddressEventsSummaryStreamCursorInput = { + /** Stream column input with initial value */ + initial_value: AddressEventsSummaryStreamCursorValueInput; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type AddressEventsSummaryStreamCursorValueInput = { + account_address?: InputMaybe; + min_block_height?: InputMaybe; + num_distinct_versions?: InputMaybe; +}; + +/** columns and relationships of "address_version_from_events" */ +export type AddressVersionFromEvents = { + account_address?: Maybe; + /** An array relationship */ + coin_activities: Array; + /** An aggregate relationship */ + coin_activities_aggregate: CoinActivitiesAggregate; + /** An array relationship */ + delegated_staking_activities: Array; + /** An array relationship */ + token_activities: Array; + /** An aggregate relationship */ + token_activities_aggregate: TokenActivitiesAggregate; + /** An array relationship */ + token_activities_v2: Array; + /** An aggregate relationship */ + token_activities_v2_aggregate: TokenActivitiesV2Aggregate; + transaction_version?: Maybe; +}; + + +/** columns and relationships of "address_version_from_events" */ +export type AddressVersionFromEventsCoinActivitiesArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "address_version_from_events" */ +export type AddressVersionFromEventsCoinActivitiesAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "address_version_from_events" */ +export type AddressVersionFromEventsDelegatedStakingActivitiesArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "address_version_from_events" */ +export type AddressVersionFromEventsTokenActivitiesArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "address_version_from_events" */ +export type AddressVersionFromEventsTokenActivitiesAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "address_version_from_events" */ +export type AddressVersionFromEventsTokenActivitiesV2Args = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "address_version_from_events" */ +export type AddressVersionFromEventsTokenActivitiesV2AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + +/** aggregated selection of "address_version_from_events" */ +export type AddressVersionFromEventsAggregate = { + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "address_version_from_events" */ +export type AddressVersionFromEventsAggregateFields = { + avg?: Maybe; + count: Scalars['Int']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "address_version_from_events" */ +export type AddressVersionFromEventsAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type AddressVersionFromEventsAvgFields = { + transaction_version?: Maybe; +}; + +/** Boolean expression to filter rows from the table "address_version_from_events". All fields are combined with a logical 'AND'. */ +export type AddressVersionFromEventsBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + account_address?: InputMaybe; + coin_activities?: InputMaybe; + delegated_staking_activities?: InputMaybe; + token_activities?: InputMaybe; + token_activities_v2?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** aggregate max on columns */ +export type AddressVersionFromEventsMaxFields = { + account_address?: Maybe; + transaction_version?: Maybe; +}; + +/** aggregate min on columns */ +export type AddressVersionFromEventsMinFields = { + account_address?: Maybe; + transaction_version?: Maybe; +}; + +/** Ordering options when selecting data from "address_version_from_events". */ +export type AddressVersionFromEventsOrderBy = { + account_address?: InputMaybe; + coin_activities_aggregate?: InputMaybe; + delegated_staking_activities_aggregate?: InputMaybe; + token_activities_aggregate?: InputMaybe; + token_activities_v2_aggregate?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** select columns of table "address_version_from_events" */ +export enum AddressVersionFromEventsSelectColumn { + /** column name */ + AccountAddress = 'account_address', + /** column name */ + TransactionVersion = 'transaction_version' +} + +/** aggregate stddev on columns */ +export type AddressVersionFromEventsStddevFields = { + transaction_version?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type AddressVersionFromEventsStddevPopFields = { + transaction_version?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type AddressVersionFromEventsStddevSampFields = { + transaction_version?: Maybe; +}; + +/** Streaming cursor of the table "address_version_from_events" */ +export type AddressVersionFromEventsStreamCursorInput = { + /** Stream column input with initial value */ + initial_value: AddressVersionFromEventsStreamCursorValueInput; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type AddressVersionFromEventsStreamCursorValueInput = { + account_address?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** aggregate sum on columns */ +export type AddressVersionFromEventsSumFields = { + transaction_version?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type AddressVersionFromEventsVarPopFields = { + transaction_version?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type AddressVersionFromEventsVarSampFields = { + transaction_version?: Maybe; +}; + +/** aggregate variance on columns */ +export type AddressVersionFromEventsVarianceFields = { + transaction_version?: Maybe; +}; + +/** columns and relationships of "address_version_from_move_resources" */ +export type AddressVersionFromMoveResources = { + address?: Maybe; + /** An array relationship */ + coin_activities: Array; + /** An aggregate relationship */ + coin_activities_aggregate: CoinActivitiesAggregate; + /** An array relationship */ + delegated_staking_activities: Array; + /** An array relationship */ + token_activities: Array; + /** An aggregate relationship */ + token_activities_aggregate: TokenActivitiesAggregate; + /** An array relationship */ + token_activities_v2: Array; + /** An aggregate relationship */ + token_activities_v2_aggregate: TokenActivitiesV2Aggregate; + transaction_version?: Maybe; +}; + + +/** columns and relationships of "address_version_from_move_resources" */ +export type AddressVersionFromMoveResourcesCoinActivitiesArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "address_version_from_move_resources" */ +export type AddressVersionFromMoveResourcesCoinActivitiesAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "address_version_from_move_resources" */ +export type AddressVersionFromMoveResourcesDelegatedStakingActivitiesArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "address_version_from_move_resources" */ +export type AddressVersionFromMoveResourcesTokenActivitiesArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "address_version_from_move_resources" */ +export type AddressVersionFromMoveResourcesTokenActivitiesAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "address_version_from_move_resources" */ +export type AddressVersionFromMoveResourcesTokenActivitiesV2Args = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "address_version_from_move_resources" */ +export type AddressVersionFromMoveResourcesTokenActivitiesV2AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + +/** aggregated selection of "address_version_from_move_resources" */ +export type AddressVersionFromMoveResourcesAggregate = { + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "address_version_from_move_resources" */ +export type AddressVersionFromMoveResourcesAggregateFields = { + avg?: Maybe; + count: Scalars['Int']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "address_version_from_move_resources" */ +export type AddressVersionFromMoveResourcesAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type AddressVersionFromMoveResourcesAvgFields = { + transaction_version?: Maybe; +}; + +/** Boolean expression to filter rows from the table "address_version_from_move_resources". All fields are combined with a logical 'AND'. */ +export type AddressVersionFromMoveResourcesBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + address?: InputMaybe; + coin_activities?: InputMaybe; + delegated_staking_activities?: InputMaybe; + token_activities?: InputMaybe; + token_activities_v2?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** aggregate max on columns */ +export type AddressVersionFromMoveResourcesMaxFields = { + address?: Maybe; + transaction_version?: Maybe; +}; + +/** aggregate min on columns */ +export type AddressVersionFromMoveResourcesMinFields = { + address?: Maybe; + transaction_version?: Maybe; +}; + +/** Ordering options when selecting data from "address_version_from_move_resources". */ +export type AddressVersionFromMoveResourcesOrderBy = { + address?: InputMaybe; + coin_activities_aggregate?: InputMaybe; + delegated_staking_activities_aggregate?: InputMaybe; + token_activities_aggregate?: InputMaybe; + token_activities_v2_aggregate?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** select columns of table "address_version_from_move_resources" */ +export enum AddressVersionFromMoveResourcesSelectColumn { + /** column name */ + Address = 'address', + /** column name */ + TransactionVersion = 'transaction_version' +} + +/** aggregate stddev on columns */ +export type AddressVersionFromMoveResourcesStddevFields = { + transaction_version?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type AddressVersionFromMoveResourcesStddevPopFields = { + transaction_version?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type AddressVersionFromMoveResourcesStddevSampFields = { + transaction_version?: Maybe; +}; + +/** Streaming cursor of the table "address_version_from_move_resources" */ +export type AddressVersionFromMoveResourcesStreamCursorInput = { + /** Stream column input with initial value */ + initial_value: AddressVersionFromMoveResourcesStreamCursorValueInput; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type AddressVersionFromMoveResourcesStreamCursorValueInput = { + address?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** aggregate sum on columns */ +export type AddressVersionFromMoveResourcesSumFields = { + transaction_version?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type AddressVersionFromMoveResourcesVarPopFields = { + transaction_version?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type AddressVersionFromMoveResourcesVarSampFields = { + transaction_version?: Maybe; +}; + +/** aggregate variance on columns */ +export type AddressVersionFromMoveResourcesVarianceFields = { + transaction_version?: Maybe; +}; + +/** Boolean expression to compare columns of type "bigint". All fields are combined with logical 'AND'. */ +export type BigintComparisonExp = { + _eq?: InputMaybe; + _gt?: InputMaybe; + _gte?: InputMaybe; + _in?: InputMaybe>; + _is_null?: InputMaybe; + _lt?: InputMaybe; + _lte?: InputMaybe; + _neq?: InputMaybe; + _nin?: InputMaybe>; +}; + +/** columns and relationships of "block_metadata_transactions" */ +export type BlockMetadataTransactions = { + block_height: Scalars['bigint']; + epoch: Scalars['bigint']; + failed_proposer_indices: Scalars['jsonb']; + id: Scalars['String']; + previous_block_votes_bitvec: Scalars['jsonb']; + proposer: Scalars['String']; + round: Scalars['bigint']; + timestamp: Scalars['timestamp']; + version: Scalars['bigint']; +}; + + +/** columns and relationships of "block_metadata_transactions" */ +export type BlockMetadataTransactionsFailedProposerIndicesArgs = { + path?: InputMaybe; +}; + + +/** columns and relationships of "block_metadata_transactions" */ +export type BlockMetadataTransactionsPreviousBlockVotesBitvecArgs = { + path?: InputMaybe; +}; + +/** Boolean expression to filter rows from the table "block_metadata_transactions". All fields are combined with a logical 'AND'. */ +export type BlockMetadataTransactionsBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + block_height?: InputMaybe; + epoch?: InputMaybe; + failed_proposer_indices?: InputMaybe; + id?: InputMaybe; + previous_block_votes_bitvec?: InputMaybe; + proposer?: InputMaybe; + round?: InputMaybe; + timestamp?: InputMaybe; + version?: InputMaybe; +}; + +/** Ordering options when selecting data from "block_metadata_transactions". */ +export type BlockMetadataTransactionsOrderBy = { + block_height?: InputMaybe; + epoch?: InputMaybe; + failed_proposer_indices?: InputMaybe; + id?: InputMaybe; + previous_block_votes_bitvec?: InputMaybe; + proposer?: InputMaybe; + round?: InputMaybe; + timestamp?: InputMaybe; + version?: InputMaybe; +}; + +/** select columns of table "block_metadata_transactions" */ +export enum BlockMetadataTransactionsSelectColumn { + /** column name */ + BlockHeight = 'block_height', + /** column name */ + Epoch = 'epoch', + /** column name */ + FailedProposerIndices = 'failed_proposer_indices', + /** column name */ + Id = 'id', + /** column name */ + PreviousBlockVotesBitvec = 'previous_block_votes_bitvec', + /** column name */ + Proposer = 'proposer', + /** column name */ + Round = 'round', + /** column name */ + Timestamp = 'timestamp', + /** column name */ + Version = 'version' +} + +/** Streaming cursor of the table "block_metadata_transactions" */ +export type BlockMetadataTransactionsStreamCursorInput = { + /** Stream column input with initial value */ + initial_value: BlockMetadataTransactionsStreamCursorValueInput; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type BlockMetadataTransactionsStreamCursorValueInput = { + block_height?: InputMaybe; + epoch?: InputMaybe; + failed_proposer_indices?: InputMaybe; + id?: InputMaybe; + previous_block_votes_bitvec?: InputMaybe; + proposer?: InputMaybe; + round?: InputMaybe; + timestamp?: InputMaybe; + version?: InputMaybe; +}; + +/** columns and relationships of "coin_activities" */ +export type CoinActivities = { + activity_type: Scalars['String']; + amount: Scalars['numeric']; + /** An array relationship */ + aptos_names: Array; + /** An aggregate relationship */ + aptos_names_aggregate: CurrentAptosNamesAggregate; + block_height: Scalars['bigint']; + /** An object relationship */ + coin_info?: Maybe; + coin_type: Scalars['String']; + entry_function_id_str?: Maybe; + event_account_address: Scalars['String']; + event_creation_number: Scalars['bigint']; + event_index?: Maybe; + event_sequence_number: Scalars['bigint']; + is_gas_fee: Scalars['Boolean']; + is_transaction_success: Scalars['Boolean']; + owner_address: Scalars['String']; + storage_refund_amount: Scalars['numeric']; + transaction_timestamp: Scalars['timestamp']; + transaction_version: Scalars['bigint']; +}; + + +/** columns and relationships of "coin_activities" */ +export type CoinActivitiesAptosNamesArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "coin_activities" */ +export type CoinActivitiesAptosNamesAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + +/** aggregated selection of "coin_activities" */ +export type CoinActivitiesAggregate = { + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "coin_activities" */ +export type CoinActivitiesAggregateFields = { + avg?: Maybe; + count: Scalars['Int']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "coin_activities" */ +export type CoinActivitiesAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** order by aggregate values of table "coin_activities" */ +export type CoinActivitiesAggregateOrderBy = { + avg?: InputMaybe; + count?: InputMaybe; + max?: InputMaybe; + min?: InputMaybe; + stddev?: InputMaybe; + stddev_pop?: InputMaybe; + stddev_samp?: InputMaybe; + sum?: InputMaybe; + var_pop?: InputMaybe; + var_samp?: InputMaybe; + variance?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type CoinActivitiesAvgFields = { + amount?: Maybe; + block_height?: Maybe; + event_creation_number?: Maybe; + event_index?: Maybe; + event_sequence_number?: Maybe; + storage_refund_amount?: Maybe; + transaction_version?: Maybe; +}; + +/** order by avg() on columns of table "coin_activities" */ +export type CoinActivitiesAvgOrderBy = { + amount?: InputMaybe; + block_height?: InputMaybe; + event_creation_number?: InputMaybe; + event_index?: InputMaybe; + event_sequence_number?: InputMaybe; + storage_refund_amount?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** Boolean expression to filter rows from the table "coin_activities". All fields are combined with a logical 'AND'. */ +export type CoinActivitiesBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + activity_type?: InputMaybe; + amount?: InputMaybe; + aptos_names?: InputMaybe; + block_height?: InputMaybe; + coin_info?: InputMaybe; + coin_type?: InputMaybe; + entry_function_id_str?: InputMaybe; + event_account_address?: InputMaybe; + event_creation_number?: InputMaybe; + event_index?: InputMaybe; + event_sequence_number?: InputMaybe; + is_gas_fee?: InputMaybe; + is_transaction_success?: InputMaybe; + owner_address?: InputMaybe; + storage_refund_amount?: InputMaybe; + transaction_timestamp?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** aggregate max on columns */ +export type CoinActivitiesMaxFields = { + activity_type?: Maybe; + amount?: Maybe; + block_height?: Maybe; + coin_type?: Maybe; + entry_function_id_str?: Maybe; + event_account_address?: Maybe; + event_creation_number?: Maybe; + event_index?: Maybe; + event_sequence_number?: Maybe; + owner_address?: Maybe; + storage_refund_amount?: Maybe; + transaction_timestamp?: Maybe; + transaction_version?: Maybe; +}; + +/** order by max() on columns of table "coin_activities" */ +export type CoinActivitiesMaxOrderBy = { + activity_type?: InputMaybe; + amount?: InputMaybe; + block_height?: InputMaybe; + coin_type?: InputMaybe; + entry_function_id_str?: InputMaybe; + event_account_address?: InputMaybe; + event_creation_number?: InputMaybe; + event_index?: InputMaybe; + event_sequence_number?: InputMaybe; + owner_address?: InputMaybe; + storage_refund_amount?: InputMaybe; + transaction_timestamp?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** aggregate min on columns */ +export type CoinActivitiesMinFields = { + activity_type?: Maybe; + amount?: Maybe; + block_height?: Maybe; + coin_type?: Maybe; + entry_function_id_str?: Maybe; + event_account_address?: Maybe; + event_creation_number?: Maybe; + event_index?: Maybe; + event_sequence_number?: Maybe; + owner_address?: Maybe; + storage_refund_amount?: Maybe; + transaction_timestamp?: Maybe; + transaction_version?: Maybe; +}; + +/** order by min() on columns of table "coin_activities" */ +export type CoinActivitiesMinOrderBy = { + activity_type?: InputMaybe; + amount?: InputMaybe; + block_height?: InputMaybe; + coin_type?: InputMaybe; + entry_function_id_str?: InputMaybe; + event_account_address?: InputMaybe; + event_creation_number?: InputMaybe; + event_index?: InputMaybe; + event_sequence_number?: InputMaybe; + owner_address?: InputMaybe; + storage_refund_amount?: InputMaybe; + transaction_timestamp?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** Ordering options when selecting data from "coin_activities". */ +export type CoinActivitiesOrderBy = { + activity_type?: InputMaybe; + amount?: InputMaybe; + aptos_names_aggregate?: InputMaybe; + block_height?: InputMaybe; + coin_info?: InputMaybe; + coin_type?: InputMaybe; + entry_function_id_str?: InputMaybe; + event_account_address?: InputMaybe; + event_creation_number?: InputMaybe; + event_index?: InputMaybe; + event_sequence_number?: InputMaybe; + is_gas_fee?: InputMaybe; + is_transaction_success?: InputMaybe; + owner_address?: InputMaybe; + storage_refund_amount?: InputMaybe; + transaction_timestamp?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** select columns of table "coin_activities" */ +export enum CoinActivitiesSelectColumn { + /** column name */ + ActivityType = 'activity_type', + /** column name */ + Amount = 'amount', + /** column name */ + BlockHeight = 'block_height', + /** column name */ + CoinType = 'coin_type', + /** column name */ + EntryFunctionIdStr = 'entry_function_id_str', + /** column name */ + EventAccountAddress = 'event_account_address', + /** column name */ + EventCreationNumber = 'event_creation_number', + /** column name */ + EventIndex = 'event_index', + /** column name */ + EventSequenceNumber = 'event_sequence_number', + /** column name */ + IsGasFee = 'is_gas_fee', + /** column name */ + IsTransactionSuccess = 'is_transaction_success', + /** column name */ + OwnerAddress = 'owner_address', + /** column name */ + StorageRefundAmount = 'storage_refund_amount', + /** column name */ + TransactionTimestamp = 'transaction_timestamp', + /** column name */ + TransactionVersion = 'transaction_version' +} + +/** aggregate stddev on columns */ +export type CoinActivitiesStddevFields = { + amount?: Maybe; + block_height?: Maybe; + event_creation_number?: Maybe; + event_index?: Maybe; + event_sequence_number?: Maybe; + storage_refund_amount?: Maybe; + transaction_version?: Maybe; +}; + +/** order by stddev() on columns of table "coin_activities" */ +export type CoinActivitiesStddevOrderBy = { + amount?: InputMaybe; + block_height?: InputMaybe; + event_creation_number?: InputMaybe; + event_index?: InputMaybe; + event_sequence_number?: InputMaybe; + storage_refund_amount?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** aggregate stddev_pop on columns */ +export type CoinActivitiesStddevPopFields = { + amount?: Maybe; + block_height?: Maybe; + event_creation_number?: Maybe; + event_index?: Maybe; + event_sequence_number?: Maybe; + storage_refund_amount?: Maybe; + transaction_version?: Maybe; +}; + +/** order by stddev_pop() on columns of table "coin_activities" */ +export type CoinActivitiesStddevPopOrderBy = { + amount?: InputMaybe; + block_height?: InputMaybe; + event_creation_number?: InputMaybe; + event_index?: InputMaybe; + event_sequence_number?: InputMaybe; + storage_refund_amount?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** aggregate stddev_samp on columns */ +export type CoinActivitiesStddevSampFields = { + amount?: Maybe; + block_height?: Maybe; + event_creation_number?: Maybe; + event_index?: Maybe; + event_sequence_number?: Maybe; + storage_refund_amount?: Maybe; + transaction_version?: Maybe; +}; + +/** order by stddev_samp() on columns of table "coin_activities" */ +export type CoinActivitiesStddevSampOrderBy = { + amount?: InputMaybe; + block_height?: InputMaybe; + event_creation_number?: InputMaybe; + event_index?: InputMaybe; + event_sequence_number?: InputMaybe; + storage_refund_amount?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** Streaming cursor of the table "coin_activities" */ +export type CoinActivitiesStreamCursorInput = { + /** Stream column input with initial value */ + initial_value: CoinActivitiesStreamCursorValueInput; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type CoinActivitiesStreamCursorValueInput = { + activity_type?: InputMaybe; + amount?: InputMaybe; + block_height?: InputMaybe; + coin_type?: InputMaybe; + entry_function_id_str?: InputMaybe; + event_account_address?: InputMaybe; + event_creation_number?: InputMaybe; + event_index?: InputMaybe; + event_sequence_number?: InputMaybe; + is_gas_fee?: InputMaybe; + is_transaction_success?: InputMaybe; + owner_address?: InputMaybe; + storage_refund_amount?: InputMaybe; + transaction_timestamp?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** aggregate sum on columns */ +export type CoinActivitiesSumFields = { + amount?: Maybe; + block_height?: Maybe; + event_creation_number?: Maybe; + event_index?: Maybe; + event_sequence_number?: Maybe; + storage_refund_amount?: Maybe; + transaction_version?: Maybe; +}; + +/** order by sum() on columns of table "coin_activities" */ +export type CoinActivitiesSumOrderBy = { + amount?: InputMaybe; + block_height?: InputMaybe; + event_creation_number?: InputMaybe; + event_index?: InputMaybe; + event_sequence_number?: InputMaybe; + storage_refund_amount?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** aggregate var_pop on columns */ +export type CoinActivitiesVarPopFields = { + amount?: Maybe; + block_height?: Maybe; + event_creation_number?: Maybe; + event_index?: Maybe; + event_sequence_number?: Maybe; + storage_refund_amount?: Maybe; + transaction_version?: Maybe; +}; + +/** order by var_pop() on columns of table "coin_activities" */ +export type CoinActivitiesVarPopOrderBy = { + amount?: InputMaybe; + block_height?: InputMaybe; + event_creation_number?: InputMaybe; + event_index?: InputMaybe; + event_sequence_number?: InputMaybe; + storage_refund_amount?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** aggregate var_samp on columns */ +export type CoinActivitiesVarSampFields = { + amount?: Maybe; + block_height?: Maybe; + event_creation_number?: Maybe; + event_index?: Maybe; + event_sequence_number?: Maybe; + storage_refund_amount?: Maybe; + transaction_version?: Maybe; +}; + +/** order by var_samp() on columns of table "coin_activities" */ +export type CoinActivitiesVarSampOrderBy = { + amount?: InputMaybe; + block_height?: InputMaybe; + event_creation_number?: InputMaybe; + event_index?: InputMaybe; + event_sequence_number?: InputMaybe; + storage_refund_amount?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** aggregate variance on columns */ +export type CoinActivitiesVarianceFields = { + amount?: Maybe; + block_height?: Maybe; + event_creation_number?: Maybe; + event_index?: Maybe; + event_sequence_number?: Maybe; + storage_refund_amount?: Maybe; + transaction_version?: Maybe; +}; + +/** order by variance() on columns of table "coin_activities" */ +export type CoinActivitiesVarianceOrderBy = { + amount?: InputMaybe; + block_height?: InputMaybe; + event_creation_number?: InputMaybe; + event_index?: InputMaybe; + event_sequence_number?: InputMaybe; + storage_refund_amount?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** columns and relationships of "coin_balances" */ +export type CoinBalances = { + amount: Scalars['numeric']; + coin_type: Scalars['String']; + coin_type_hash: Scalars['String']; + owner_address: Scalars['String']; + transaction_timestamp: Scalars['timestamp']; + transaction_version: Scalars['bigint']; +}; + +/** Boolean expression to filter rows from the table "coin_balances". All fields are combined with a logical 'AND'. */ +export type CoinBalancesBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + amount?: InputMaybe; + coin_type?: InputMaybe; + coin_type_hash?: InputMaybe; + owner_address?: InputMaybe; + transaction_timestamp?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** Ordering options when selecting data from "coin_balances". */ +export type CoinBalancesOrderBy = { + amount?: InputMaybe; + coin_type?: InputMaybe; + coin_type_hash?: InputMaybe; + owner_address?: InputMaybe; + transaction_timestamp?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** select columns of table "coin_balances" */ +export enum CoinBalancesSelectColumn { + /** column name */ + Amount = 'amount', + /** column name */ + CoinType = 'coin_type', + /** column name */ + CoinTypeHash = 'coin_type_hash', + /** column name */ + OwnerAddress = 'owner_address', + /** column name */ + TransactionTimestamp = 'transaction_timestamp', + /** column name */ + TransactionVersion = 'transaction_version' +} + +/** Streaming cursor of the table "coin_balances" */ +export type CoinBalancesStreamCursorInput = { + /** Stream column input with initial value */ + initial_value: CoinBalancesStreamCursorValueInput; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type CoinBalancesStreamCursorValueInput = { + amount?: InputMaybe; + coin_type?: InputMaybe; + coin_type_hash?: InputMaybe; + owner_address?: InputMaybe; + transaction_timestamp?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** columns and relationships of "coin_infos" */ +export type CoinInfos = { + coin_type: Scalars['String']; + coin_type_hash: Scalars['String']; + creator_address: Scalars['String']; + decimals: Scalars['Int']; + name: Scalars['String']; + supply_aggregator_table_handle?: Maybe; + supply_aggregator_table_key?: Maybe; + symbol: Scalars['String']; + transaction_created_timestamp: Scalars['timestamp']; + transaction_version_created: Scalars['bigint']; +}; + +/** Boolean expression to filter rows from the table "coin_infos". All fields are combined with a logical 'AND'. */ +export type CoinInfosBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + coin_type?: InputMaybe; + coin_type_hash?: InputMaybe; + creator_address?: InputMaybe; + decimals?: InputMaybe; + name?: InputMaybe; + supply_aggregator_table_handle?: InputMaybe; + supply_aggregator_table_key?: InputMaybe; + symbol?: InputMaybe; + transaction_created_timestamp?: InputMaybe; + transaction_version_created?: InputMaybe; +}; + +/** Ordering options when selecting data from "coin_infos". */ +export type CoinInfosOrderBy = { + coin_type?: InputMaybe; + coin_type_hash?: InputMaybe; + creator_address?: InputMaybe; + decimals?: InputMaybe; + name?: InputMaybe; + supply_aggregator_table_handle?: InputMaybe; + supply_aggregator_table_key?: InputMaybe; + symbol?: InputMaybe; + transaction_created_timestamp?: InputMaybe; + transaction_version_created?: InputMaybe; +}; + +/** select columns of table "coin_infos" */ +export enum CoinInfosSelectColumn { + /** column name */ + CoinType = 'coin_type', + /** column name */ + CoinTypeHash = 'coin_type_hash', + /** column name */ + CreatorAddress = 'creator_address', + /** column name */ + Decimals = 'decimals', + /** column name */ + Name = 'name', + /** column name */ + SupplyAggregatorTableHandle = 'supply_aggregator_table_handle', + /** column name */ + SupplyAggregatorTableKey = 'supply_aggregator_table_key', + /** column name */ + Symbol = 'symbol', + /** column name */ + TransactionCreatedTimestamp = 'transaction_created_timestamp', + /** column name */ + TransactionVersionCreated = 'transaction_version_created' +} + +/** Streaming cursor of the table "coin_infos" */ +export type CoinInfosStreamCursorInput = { + /** Stream column input with initial value */ + initial_value: CoinInfosStreamCursorValueInput; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type CoinInfosStreamCursorValueInput = { + coin_type?: InputMaybe; + coin_type_hash?: InputMaybe; + creator_address?: InputMaybe; + decimals?: InputMaybe; + name?: InputMaybe; + supply_aggregator_table_handle?: InputMaybe; + supply_aggregator_table_key?: InputMaybe; + symbol?: InputMaybe; + transaction_created_timestamp?: InputMaybe; + transaction_version_created?: InputMaybe; +}; + +/** columns and relationships of "coin_supply" */ +export type CoinSupply = { + coin_type: Scalars['String']; + coin_type_hash: Scalars['String']; + supply: Scalars['numeric']; + transaction_epoch: Scalars['bigint']; + transaction_timestamp: Scalars['timestamp']; + transaction_version: Scalars['bigint']; +}; + +/** Boolean expression to filter rows from the table "coin_supply". All fields are combined with a logical 'AND'. */ +export type CoinSupplyBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + coin_type?: InputMaybe; + coin_type_hash?: InputMaybe; + supply?: InputMaybe; + transaction_epoch?: InputMaybe; + transaction_timestamp?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** Ordering options when selecting data from "coin_supply". */ +export type CoinSupplyOrderBy = { + coin_type?: InputMaybe; + coin_type_hash?: InputMaybe; + supply?: InputMaybe; + transaction_epoch?: InputMaybe; + transaction_timestamp?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** select columns of table "coin_supply" */ +export enum CoinSupplySelectColumn { + /** column name */ + CoinType = 'coin_type', + /** column name */ + CoinTypeHash = 'coin_type_hash', + /** column name */ + Supply = 'supply', + /** column name */ + TransactionEpoch = 'transaction_epoch', + /** column name */ + TransactionTimestamp = 'transaction_timestamp', + /** column name */ + TransactionVersion = 'transaction_version' +} + +/** Streaming cursor of the table "coin_supply" */ +export type CoinSupplyStreamCursorInput = { + /** Stream column input with initial value */ + initial_value: CoinSupplyStreamCursorValueInput; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type CoinSupplyStreamCursorValueInput = { + coin_type?: InputMaybe; + coin_type_hash?: InputMaybe; + supply?: InputMaybe; + transaction_epoch?: InputMaybe; + transaction_timestamp?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** columns and relationships of "collection_datas" */ +export type CollectionDatas = { + collection_data_id_hash: Scalars['String']; + collection_name: Scalars['String']; + creator_address: Scalars['String']; + description: Scalars['String']; + description_mutable: Scalars['Boolean']; + maximum: Scalars['numeric']; + maximum_mutable: Scalars['Boolean']; + metadata_uri: Scalars['String']; + supply: Scalars['numeric']; + table_handle: Scalars['String']; + transaction_timestamp: Scalars['timestamp']; + transaction_version: Scalars['bigint']; + uri_mutable: Scalars['Boolean']; +}; + +/** Boolean expression to filter rows from the table "collection_datas". All fields are combined with a logical 'AND'. */ +export type CollectionDatasBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + collection_data_id_hash?: InputMaybe; + collection_name?: InputMaybe; + creator_address?: InputMaybe; + description?: InputMaybe; + description_mutable?: InputMaybe; + maximum?: InputMaybe; + maximum_mutable?: InputMaybe; + metadata_uri?: InputMaybe; + supply?: InputMaybe; + table_handle?: InputMaybe; + transaction_timestamp?: InputMaybe; + transaction_version?: InputMaybe; + uri_mutable?: InputMaybe; +}; + +/** Ordering options when selecting data from "collection_datas". */ +export type CollectionDatasOrderBy = { + collection_data_id_hash?: InputMaybe; + collection_name?: InputMaybe; + creator_address?: InputMaybe; + description?: InputMaybe; + description_mutable?: InputMaybe; + maximum?: InputMaybe; + maximum_mutable?: InputMaybe; + metadata_uri?: InputMaybe; + supply?: InputMaybe; + table_handle?: InputMaybe; + transaction_timestamp?: InputMaybe; + transaction_version?: InputMaybe; + uri_mutable?: InputMaybe; +}; + +/** select columns of table "collection_datas" */ +export enum CollectionDatasSelectColumn { + /** column name */ + CollectionDataIdHash = 'collection_data_id_hash', + /** column name */ + CollectionName = 'collection_name', + /** column name */ + CreatorAddress = 'creator_address', + /** column name */ + Description = 'description', + /** column name */ + DescriptionMutable = 'description_mutable', + /** column name */ + Maximum = 'maximum', + /** column name */ + MaximumMutable = 'maximum_mutable', + /** column name */ + MetadataUri = 'metadata_uri', + /** column name */ + Supply = 'supply', + /** column name */ + TableHandle = 'table_handle', + /** column name */ + TransactionTimestamp = 'transaction_timestamp', + /** column name */ + TransactionVersion = 'transaction_version', + /** column name */ + UriMutable = 'uri_mutable' +} + +/** Streaming cursor of the table "collection_datas" */ +export type CollectionDatasStreamCursorInput = { + /** Stream column input with initial value */ + initial_value: CollectionDatasStreamCursorValueInput; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type CollectionDatasStreamCursorValueInput = { + collection_data_id_hash?: InputMaybe; + collection_name?: InputMaybe; + creator_address?: InputMaybe; + description?: InputMaybe; + description_mutable?: InputMaybe; + maximum?: InputMaybe; + maximum_mutable?: InputMaybe; + metadata_uri?: InputMaybe; + supply?: InputMaybe; + table_handle?: InputMaybe; + transaction_timestamp?: InputMaybe; + transaction_version?: InputMaybe; + uri_mutable?: InputMaybe; +}; + +/** columns and relationships of "current_ans_lookup" */ +export type CurrentAnsLookup = { + /** An array relationship */ + all_token_ownerships: Array; + /** An aggregate relationship */ + all_token_ownerships_aggregate: CurrentTokenOwnershipsAggregate; + domain: Scalars['String']; + expiration_timestamp: Scalars['timestamp']; + is_deleted: Scalars['Boolean']; + last_transaction_version: Scalars['bigint']; + registered_address?: Maybe; + subdomain: Scalars['String']; + token_name: Scalars['String']; +}; + + +/** columns and relationships of "current_ans_lookup" */ +export type CurrentAnsLookupAllTokenOwnershipsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "current_ans_lookup" */ +export type CurrentAnsLookupAllTokenOwnershipsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + +/** Boolean expression to filter rows from the table "current_ans_lookup". All fields are combined with a logical 'AND'. */ +export type CurrentAnsLookupBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + all_token_ownerships?: InputMaybe; + domain?: InputMaybe; + expiration_timestamp?: InputMaybe; + is_deleted?: InputMaybe; + last_transaction_version?: InputMaybe; + registered_address?: InputMaybe; + subdomain?: InputMaybe; + token_name?: InputMaybe; +}; + +/** Ordering options when selecting data from "current_ans_lookup". */ +export type CurrentAnsLookupOrderBy = { + all_token_ownerships_aggregate?: InputMaybe; + domain?: InputMaybe; + expiration_timestamp?: InputMaybe; + is_deleted?: InputMaybe; + last_transaction_version?: InputMaybe; + registered_address?: InputMaybe; + subdomain?: InputMaybe; + token_name?: InputMaybe; +}; + +/** select columns of table "current_ans_lookup" */ +export enum CurrentAnsLookupSelectColumn { + /** column name */ + Domain = 'domain', + /** column name */ + ExpirationTimestamp = 'expiration_timestamp', + /** column name */ + IsDeleted = 'is_deleted', + /** column name */ + LastTransactionVersion = 'last_transaction_version', + /** column name */ + RegisteredAddress = 'registered_address', + /** column name */ + Subdomain = 'subdomain', + /** column name */ + TokenName = 'token_name' +} + +/** Streaming cursor of the table "current_ans_lookup" */ +export type CurrentAnsLookupStreamCursorInput = { + /** Stream column input with initial value */ + initial_value: CurrentAnsLookupStreamCursorValueInput; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type CurrentAnsLookupStreamCursorValueInput = { + domain?: InputMaybe; + expiration_timestamp?: InputMaybe; + is_deleted?: InputMaybe; + last_transaction_version?: InputMaybe; + registered_address?: InputMaybe; + subdomain?: InputMaybe; + token_name?: InputMaybe; +}; + +/** columns and relationships of "current_ans_lookup_v2" */ +export type CurrentAnsLookupV2 = { + domain: Scalars['String']; + expiration_timestamp: Scalars['timestamp']; + is_deleted: Scalars['Boolean']; + last_transaction_version: Scalars['bigint']; + registered_address?: Maybe; + subdomain: Scalars['String']; + token_name?: Maybe; + token_standard: Scalars['String']; +}; + +/** Boolean expression to filter rows from the table "current_ans_lookup_v2". All fields are combined with a logical 'AND'. */ +export type CurrentAnsLookupV2BoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + domain?: InputMaybe; + expiration_timestamp?: InputMaybe; + is_deleted?: InputMaybe; + last_transaction_version?: InputMaybe; + registered_address?: InputMaybe; + subdomain?: InputMaybe; + token_name?: InputMaybe; + token_standard?: InputMaybe; +}; + +/** Ordering options when selecting data from "current_ans_lookup_v2". */ +export type CurrentAnsLookupV2OrderBy = { + domain?: InputMaybe; + expiration_timestamp?: InputMaybe; + is_deleted?: InputMaybe; + last_transaction_version?: InputMaybe; + registered_address?: InputMaybe; + subdomain?: InputMaybe; + token_name?: InputMaybe; + token_standard?: InputMaybe; +}; + +/** select columns of table "current_ans_lookup_v2" */ +export enum CurrentAnsLookupV2SelectColumn { + /** column name */ + Domain = 'domain', + /** column name */ + ExpirationTimestamp = 'expiration_timestamp', + /** column name */ + IsDeleted = 'is_deleted', + /** column name */ + LastTransactionVersion = 'last_transaction_version', + /** column name */ + RegisteredAddress = 'registered_address', + /** column name */ + Subdomain = 'subdomain', + /** column name */ + TokenName = 'token_name', + /** column name */ + TokenStandard = 'token_standard' +} + +/** Streaming cursor of the table "current_ans_lookup_v2" */ +export type CurrentAnsLookupV2StreamCursorInput = { + /** Stream column input with initial value */ + initial_value: CurrentAnsLookupV2StreamCursorValueInput; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type CurrentAnsLookupV2StreamCursorValueInput = { + domain?: InputMaybe; + expiration_timestamp?: InputMaybe; + is_deleted?: InputMaybe; + last_transaction_version?: InputMaybe; + registered_address?: InputMaybe; + subdomain?: InputMaybe; + token_name?: InputMaybe; + token_standard?: InputMaybe; +}; + +/** columns and relationships of "current_aptos_names" */ +export type CurrentAptosNames = { + domain?: Maybe; + domain_with_suffix?: Maybe; + expiration_timestamp?: Maybe; + is_active?: Maybe; + /** An object relationship */ + is_domain_owner?: Maybe; + is_primary?: Maybe; + last_transaction_version?: Maybe; + owner_address?: Maybe; + registered_address?: Maybe; + subdomain?: Maybe; + token_name?: Maybe; + token_standard?: Maybe; +}; + +/** aggregated selection of "current_aptos_names" */ +export type CurrentAptosNamesAggregate = { + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "current_aptos_names" */ +export type CurrentAptosNamesAggregateFields = { + avg?: Maybe; + count: Scalars['Int']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "current_aptos_names" */ +export type CurrentAptosNamesAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** order by aggregate values of table "current_aptos_names" */ +export type CurrentAptosNamesAggregateOrderBy = { + avg?: InputMaybe; + count?: InputMaybe; + max?: InputMaybe; + min?: InputMaybe; + stddev?: InputMaybe; + stddev_pop?: InputMaybe; + stddev_samp?: InputMaybe; + sum?: InputMaybe; + var_pop?: InputMaybe; + var_samp?: InputMaybe; + variance?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type CurrentAptosNamesAvgFields = { + last_transaction_version?: Maybe; +}; + +/** order by avg() on columns of table "current_aptos_names" */ +export type CurrentAptosNamesAvgOrderBy = { + last_transaction_version?: InputMaybe; +}; + +/** Boolean expression to filter rows from the table "current_aptos_names". All fields are combined with a logical 'AND'. */ +export type CurrentAptosNamesBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + domain?: InputMaybe; + domain_with_suffix?: InputMaybe; + expiration_timestamp?: InputMaybe; + is_active?: InputMaybe; + is_domain_owner?: InputMaybe; + is_primary?: InputMaybe; + last_transaction_version?: InputMaybe; + owner_address?: InputMaybe; + registered_address?: InputMaybe; + subdomain?: InputMaybe; + token_name?: InputMaybe; + token_standard?: InputMaybe; +}; + +/** aggregate max on columns */ +export type CurrentAptosNamesMaxFields = { + domain?: Maybe; + domain_with_suffix?: Maybe; + expiration_timestamp?: Maybe; + last_transaction_version?: Maybe; + owner_address?: Maybe; + registered_address?: Maybe; + subdomain?: Maybe; + token_name?: Maybe; + token_standard?: Maybe; +}; + +/** order by max() on columns of table "current_aptos_names" */ +export type CurrentAptosNamesMaxOrderBy = { + domain?: InputMaybe; + domain_with_suffix?: InputMaybe; + expiration_timestamp?: InputMaybe; + last_transaction_version?: InputMaybe; + owner_address?: InputMaybe; + registered_address?: InputMaybe; + subdomain?: InputMaybe; + token_name?: InputMaybe; + token_standard?: InputMaybe; +}; + +/** aggregate min on columns */ +export type CurrentAptosNamesMinFields = { + domain?: Maybe; + domain_with_suffix?: Maybe; + expiration_timestamp?: Maybe; + last_transaction_version?: Maybe; + owner_address?: Maybe; + registered_address?: Maybe; + subdomain?: Maybe; + token_name?: Maybe; + token_standard?: Maybe; +}; + +/** order by min() on columns of table "current_aptos_names" */ +export type CurrentAptosNamesMinOrderBy = { + domain?: InputMaybe; + domain_with_suffix?: InputMaybe; + expiration_timestamp?: InputMaybe; + last_transaction_version?: InputMaybe; + owner_address?: InputMaybe; + registered_address?: InputMaybe; + subdomain?: InputMaybe; + token_name?: InputMaybe; + token_standard?: InputMaybe; +}; + +/** Ordering options when selecting data from "current_aptos_names". */ +export type CurrentAptosNamesOrderBy = { + domain?: InputMaybe; + domain_with_suffix?: InputMaybe; + expiration_timestamp?: InputMaybe; + is_active?: InputMaybe; + is_domain_owner?: InputMaybe; + is_primary?: InputMaybe; + last_transaction_version?: InputMaybe; + owner_address?: InputMaybe; + registered_address?: InputMaybe; + subdomain?: InputMaybe; + token_name?: InputMaybe; + token_standard?: InputMaybe; +}; + +/** select columns of table "current_aptos_names" */ +export enum CurrentAptosNamesSelectColumn { + /** column name */ + Domain = 'domain', + /** column name */ + DomainWithSuffix = 'domain_with_suffix', + /** column name */ + ExpirationTimestamp = 'expiration_timestamp', + /** column name */ + IsActive = 'is_active', + /** column name */ + IsPrimary = 'is_primary', + /** column name */ + LastTransactionVersion = 'last_transaction_version', + /** column name */ + OwnerAddress = 'owner_address', + /** column name */ + RegisteredAddress = 'registered_address', + /** column name */ + Subdomain = 'subdomain', + /** column name */ + TokenName = 'token_name', + /** column name */ + TokenStandard = 'token_standard' +} + +/** aggregate stddev on columns */ +export type CurrentAptosNamesStddevFields = { + last_transaction_version?: Maybe; +}; + +/** order by stddev() on columns of table "current_aptos_names" */ +export type CurrentAptosNamesStddevOrderBy = { + last_transaction_version?: InputMaybe; +}; + +/** aggregate stddev_pop on columns */ +export type CurrentAptosNamesStddevPopFields = { + last_transaction_version?: Maybe; +}; + +/** order by stddev_pop() on columns of table "current_aptos_names" */ +export type CurrentAptosNamesStddevPopOrderBy = { + last_transaction_version?: InputMaybe; +}; + +/** aggregate stddev_samp on columns */ +export type CurrentAptosNamesStddevSampFields = { + last_transaction_version?: Maybe; +}; + +/** order by stddev_samp() on columns of table "current_aptos_names" */ +export type CurrentAptosNamesStddevSampOrderBy = { + last_transaction_version?: InputMaybe; +}; + +/** Streaming cursor of the table "current_aptos_names" */ +export type CurrentAptosNamesStreamCursorInput = { + /** Stream column input with initial value */ + initial_value: CurrentAptosNamesStreamCursorValueInput; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type CurrentAptosNamesStreamCursorValueInput = { + domain?: InputMaybe; + domain_with_suffix?: InputMaybe; + expiration_timestamp?: InputMaybe; + is_active?: InputMaybe; + is_primary?: InputMaybe; + last_transaction_version?: InputMaybe; + owner_address?: InputMaybe; + registered_address?: InputMaybe; + subdomain?: InputMaybe; + token_name?: InputMaybe; + token_standard?: InputMaybe; +}; + +/** aggregate sum on columns */ +export type CurrentAptosNamesSumFields = { + last_transaction_version?: Maybe; +}; + +/** order by sum() on columns of table "current_aptos_names" */ +export type CurrentAptosNamesSumOrderBy = { + last_transaction_version?: InputMaybe; +}; + +/** aggregate var_pop on columns */ +export type CurrentAptosNamesVarPopFields = { + last_transaction_version?: Maybe; +}; + +/** order by var_pop() on columns of table "current_aptos_names" */ +export type CurrentAptosNamesVarPopOrderBy = { + last_transaction_version?: InputMaybe; +}; + +/** aggregate var_samp on columns */ +export type CurrentAptosNamesVarSampFields = { + last_transaction_version?: Maybe; +}; + +/** order by var_samp() on columns of table "current_aptos_names" */ +export type CurrentAptosNamesVarSampOrderBy = { + last_transaction_version?: InputMaybe; +}; + +/** aggregate variance on columns */ +export type CurrentAptosNamesVarianceFields = { + last_transaction_version?: Maybe; +}; + +/** order by variance() on columns of table "current_aptos_names" */ +export type CurrentAptosNamesVarianceOrderBy = { + last_transaction_version?: InputMaybe; +}; + +/** columns and relationships of "current_coin_balances" */ +export type CurrentCoinBalances = { + amount: Scalars['numeric']; + /** An object relationship */ + coin_info?: Maybe; + coin_type: Scalars['String']; + coin_type_hash: Scalars['String']; + last_transaction_timestamp: Scalars['timestamp']; + last_transaction_version: Scalars['bigint']; + owner_address: Scalars['String']; +}; + +/** Boolean expression to filter rows from the table "current_coin_balances". All fields are combined with a logical 'AND'. */ +export type CurrentCoinBalancesBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + amount?: InputMaybe; + coin_info?: InputMaybe; + coin_type?: InputMaybe; + coin_type_hash?: InputMaybe; + last_transaction_timestamp?: InputMaybe; + last_transaction_version?: InputMaybe; + owner_address?: InputMaybe; +}; + +/** Ordering options when selecting data from "current_coin_balances". */ +export type CurrentCoinBalancesOrderBy = { + amount?: InputMaybe; + coin_info?: InputMaybe; + coin_type?: InputMaybe; + coin_type_hash?: InputMaybe; + last_transaction_timestamp?: InputMaybe; + last_transaction_version?: InputMaybe; + owner_address?: InputMaybe; +}; + +/** select columns of table "current_coin_balances" */ +export enum CurrentCoinBalancesSelectColumn { + /** column name */ + Amount = 'amount', + /** column name */ + CoinType = 'coin_type', + /** column name */ + CoinTypeHash = 'coin_type_hash', + /** column name */ + LastTransactionTimestamp = 'last_transaction_timestamp', + /** column name */ + LastTransactionVersion = 'last_transaction_version', + /** column name */ + OwnerAddress = 'owner_address' +} + +/** Streaming cursor of the table "current_coin_balances" */ +export type CurrentCoinBalancesStreamCursorInput = { + /** Stream column input with initial value */ + initial_value: CurrentCoinBalancesStreamCursorValueInput; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type CurrentCoinBalancesStreamCursorValueInput = { + amount?: InputMaybe; + coin_type?: InputMaybe; + coin_type_hash?: InputMaybe; + last_transaction_timestamp?: InputMaybe; + last_transaction_version?: InputMaybe; + owner_address?: InputMaybe; +}; + +/** columns and relationships of "current_collection_datas" */ +export type CurrentCollectionDatas = { + collection_data_id_hash: Scalars['String']; + collection_name: Scalars['String']; + creator_address: Scalars['String']; + description: Scalars['String']; + description_mutable: Scalars['Boolean']; + last_transaction_timestamp: Scalars['timestamp']; + last_transaction_version: Scalars['bigint']; + maximum: Scalars['numeric']; + maximum_mutable: Scalars['Boolean']; + metadata_uri: Scalars['String']; + supply: Scalars['numeric']; + table_handle: Scalars['String']; + uri_mutable: Scalars['Boolean']; +}; + +/** Boolean expression to filter rows from the table "current_collection_datas". All fields are combined with a logical 'AND'. */ +export type CurrentCollectionDatasBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + collection_data_id_hash?: InputMaybe; + collection_name?: InputMaybe; + creator_address?: InputMaybe; + description?: InputMaybe; + description_mutable?: InputMaybe; + last_transaction_timestamp?: InputMaybe; + last_transaction_version?: InputMaybe; + maximum?: InputMaybe; + maximum_mutable?: InputMaybe; + metadata_uri?: InputMaybe; + supply?: InputMaybe; + table_handle?: InputMaybe; + uri_mutable?: InputMaybe; +}; + +/** Ordering options when selecting data from "current_collection_datas". */ +export type CurrentCollectionDatasOrderBy = { + collection_data_id_hash?: InputMaybe; + collection_name?: InputMaybe; + creator_address?: InputMaybe; + description?: InputMaybe; + description_mutable?: InputMaybe; + last_transaction_timestamp?: InputMaybe; + last_transaction_version?: InputMaybe; + maximum?: InputMaybe; + maximum_mutable?: InputMaybe; + metadata_uri?: InputMaybe; + supply?: InputMaybe; + table_handle?: InputMaybe; + uri_mutable?: InputMaybe; +}; + +/** select columns of table "current_collection_datas" */ +export enum CurrentCollectionDatasSelectColumn { + /** column name */ + CollectionDataIdHash = 'collection_data_id_hash', + /** column name */ + CollectionName = 'collection_name', + /** column name */ + CreatorAddress = 'creator_address', + /** column name */ + Description = 'description', + /** column name */ + DescriptionMutable = 'description_mutable', + /** column name */ + LastTransactionTimestamp = 'last_transaction_timestamp', + /** column name */ + LastTransactionVersion = 'last_transaction_version', + /** column name */ + Maximum = 'maximum', + /** column name */ + MaximumMutable = 'maximum_mutable', + /** column name */ + MetadataUri = 'metadata_uri', + /** column name */ + Supply = 'supply', + /** column name */ + TableHandle = 'table_handle', + /** column name */ + UriMutable = 'uri_mutable' +} + +/** Streaming cursor of the table "current_collection_datas" */ +export type CurrentCollectionDatasStreamCursorInput = { + /** Stream column input with initial value */ + initial_value: CurrentCollectionDatasStreamCursorValueInput; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type CurrentCollectionDatasStreamCursorValueInput = { + collection_data_id_hash?: InputMaybe; + collection_name?: InputMaybe; + creator_address?: InputMaybe; + description?: InputMaybe; + description_mutable?: InputMaybe; + last_transaction_timestamp?: InputMaybe; + last_transaction_version?: InputMaybe; + maximum?: InputMaybe; + maximum_mutable?: InputMaybe; + metadata_uri?: InputMaybe; + supply?: InputMaybe; + table_handle?: InputMaybe; + uri_mutable?: InputMaybe; +}; + +/** columns and relationships of "current_collection_ownership_v2_view" */ +export type CurrentCollectionOwnershipV2View = { + collection_id?: Maybe; + collection_name?: Maybe; + collection_uri?: Maybe; + creator_address?: Maybe; + /** An object relationship */ + current_collection?: Maybe; + distinct_tokens?: Maybe; + last_transaction_version?: Maybe; + owner_address?: Maybe; + single_token_uri?: Maybe; +}; + +/** aggregated selection of "current_collection_ownership_v2_view" */ +export type CurrentCollectionOwnershipV2ViewAggregate = { + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "current_collection_ownership_v2_view" */ +export type CurrentCollectionOwnershipV2ViewAggregateFields = { + avg?: Maybe; + count: Scalars['Int']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "current_collection_ownership_v2_view" */ +export type CurrentCollectionOwnershipV2ViewAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type CurrentCollectionOwnershipV2ViewAvgFields = { + distinct_tokens?: Maybe; + last_transaction_version?: Maybe; +}; + +/** Boolean expression to filter rows from the table "current_collection_ownership_v2_view". All fields are combined with a logical 'AND'. */ +export type CurrentCollectionOwnershipV2ViewBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + collection_id?: InputMaybe; + collection_name?: InputMaybe; + collection_uri?: InputMaybe; + creator_address?: InputMaybe; + current_collection?: InputMaybe; + distinct_tokens?: InputMaybe; + last_transaction_version?: InputMaybe; + owner_address?: InputMaybe; + single_token_uri?: InputMaybe; +}; + +/** aggregate max on columns */ +export type CurrentCollectionOwnershipV2ViewMaxFields = { + collection_id?: Maybe; + collection_name?: Maybe; + collection_uri?: Maybe; + creator_address?: Maybe; + distinct_tokens?: Maybe; + last_transaction_version?: Maybe; + owner_address?: Maybe; + single_token_uri?: Maybe; +}; + +/** aggregate min on columns */ +export type CurrentCollectionOwnershipV2ViewMinFields = { + collection_id?: Maybe; + collection_name?: Maybe; + collection_uri?: Maybe; + creator_address?: Maybe; + distinct_tokens?: Maybe; + last_transaction_version?: Maybe; + owner_address?: Maybe; + single_token_uri?: Maybe; +}; + +/** Ordering options when selecting data from "current_collection_ownership_v2_view". */ +export type CurrentCollectionOwnershipV2ViewOrderBy = { + collection_id?: InputMaybe; + collection_name?: InputMaybe; + collection_uri?: InputMaybe; + creator_address?: InputMaybe; + current_collection?: InputMaybe; + distinct_tokens?: InputMaybe; + last_transaction_version?: InputMaybe; + owner_address?: InputMaybe; + single_token_uri?: InputMaybe; +}; + +/** select columns of table "current_collection_ownership_v2_view" */ +export enum CurrentCollectionOwnershipV2ViewSelectColumn { + /** column name */ + CollectionId = 'collection_id', + /** column name */ + CollectionName = 'collection_name', + /** column name */ + CollectionUri = 'collection_uri', + /** column name */ + CreatorAddress = 'creator_address', + /** column name */ + DistinctTokens = 'distinct_tokens', + /** column name */ + LastTransactionVersion = 'last_transaction_version', + /** column name */ + OwnerAddress = 'owner_address', + /** column name */ + SingleTokenUri = 'single_token_uri' +} + +/** aggregate stddev on columns */ +export type CurrentCollectionOwnershipV2ViewStddevFields = { + distinct_tokens?: Maybe; + last_transaction_version?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type CurrentCollectionOwnershipV2ViewStddevPopFields = { + distinct_tokens?: Maybe; + last_transaction_version?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type CurrentCollectionOwnershipV2ViewStddevSampFields = { + distinct_tokens?: Maybe; + last_transaction_version?: Maybe; +}; + +/** Streaming cursor of the table "current_collection_ownership_v2_view" */ +export type CurrentCollectionOwnershipV2ViewStreamCursorInput = { + /** Stream column input with initial value */ + initial_value: CurrentCollectionOwnershipV2ViewStreamCursorValueInput; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type CurrentCollectionOwnershipV2ViewStreamCursorValueInput = { + collection_id?: InputMaybe; + collection_name?: InputMaybe; + collection_uri?: InputMaybe; + creator_address?: InputMaybe; + distinct_tokens?: InputMaybe; + last_transaction_version?: InputMaybe; + owner_address?: InputMaybe; + single_token_uri?: InputMaybe; +}; + +/** aggregate sum on columns */ +export type CurrentCollectionOwnershipV2ViewSumFields = { + distinct_tokens?: Maybe; + last_transaction_version?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type CurrentCollectionOwnershipV2ViewVarPopFields = { + distinct_tokens?: Maybe; + last_transaction_version?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type CurrentCollectionOwnershipV2ViewVarSampFields = { + distinct_tokens?: Maybe; + last_transaction_version?: Maybe; +}; + +/** aggregate variance on columns */ +export type CurrentCollectionOwnershipV2ViewVarianceFields = { + distinct_tokens?: Maybe; + last_transaction_version?: Maybe; +}; + +/** columns and relationships of "current_collections_v2" */ +export type CurrentCollectionsV2 = { + collection_id: Scalars['String']; + collection_name: Scalars['String']; + creator_address: Scalars['String']; + current_supply: Scalars['numeric']; + description: Scalars['String']; + last_transaction_timestamp: Scalars['timestamp']; + last_transaction_version: Scalars['bigint']; + max_supply?: Maybe; + mutable_description?: Maybe; + mutable_uri?: Maybe; + table_handle_v1?: Maybe; + token_standard: Scalars['String']; + total_minted_v2?: Maybe; + uri: Scalars['String']; +}; + +/** Boolean expression to filter rows from the table "current_collections_v2". All fields are combined with a logical 'AND'. */ +export type CurrentCollectionsV2BoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + collection_id?: InputMaybe; + collection_name?: InputMaybe; + creator_address?: InputMaybe; + current_supply?: InputMaybe; + description?: InputMaybe; + last_transaction_timestamp?: InputMaybe; + last_transaction_version?: InputMaybe; + max_supply?: InputMaybe; + mutable_description?: InputMaybe; + mutable_uri?: InputMaybe; + table_handle_v1?: InputMaybe; + token_standard?: InputMaybe; + total_minted_v2?: InputMaybe; + uri?: InputMaybe; +}; + +/** Ordering options when selecting data from "current_collections_v2". */ +export type CurrentCollectionsV2OrderBy = { + collection_id?: InputMaybe; + collection_name?: InputMaybe; + creator_address?: InputMaybe; + current_supply?: InputMaybe; + description?: InputMaybe; + last_transaction_timestamp?: InputMaybe; + last_transaction_version?: InputMaybe; + max_supply?: InputMaybe; + mutable_description?: InputMaybe; + mutable_uri?: InputMaybe; + table_handle_v1?: InputMaybe; + token_standard?: InputMaybe; + total_minted_v2?: InputMaybe; + uri?: InputMaybe; +}; + +/** select columns of table "current_collections_v2" */ +export enum CurrentCollectionsV2SelectColumn { + /** column name */ + CollectionId = 'collection_id', + /** column name */ + CollectionName = 'collection_name', + /** column name */ + CreatorAddress = 'creator_address', + /** column name */ + CurrentSupply = 'current_supply', + /** column name */ + Description = 'description', + /** column name */ + LastTransactionTimestamp = 'last_transaction_timestamp', + /** column name */ + LastTransactionVersion = 'last_transaction_version', + /** column name */ + MaxSupply = 'max_supply', + /** column name */ + MutableDescription = 'mutable_description', + /** column name */ + MutableUri = 'mutable_uri', + /** column name */ + TableHandleV1 = 'table_handle_v1', + /** column name */ + TokenStandard = 'token_standard', + /** column name */ + TotalMintedV2 = 'total_minted_v2', + /** column name */ + Uri = 'uri' +} + +/** Streaming cursor of the table "current_collections_v2" */ +export type CurrentCollectionsV2StreamCursorInput = { + /** Stream column input with initial value */ + initial_value: CurrentCollectionsV2StreamCursorValueInput; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type CurrentCollectionsV2StreamCursorValueInput = { + collection_id?: InputMaybe; + collection_name?: InputMaybe; + creator_address?: InputMaybe; + current_supply?: InputMaybe; + description?: InputMaybe; + last_transaction_timestamp?: InputMaybe; + last_transaction_version?: InputMaybe; + max_supply?: InputMaybe; + mutable_description?: InputMaybe; + mutable_uri?: InputMaybe; + table_handle_v1?: InputMaybe; + token_standard?: InputMaybe; + total_minted_v2?: InputMaybe; + uri?: InputMaybe; +}; + +/** columns and relationships of "current_delegated_staking_pool_balances" */ +export type CurrentDelegatedStakingPoolBalances = { + active_table_handle: Scalars['String']; + inactive_table_handle: Scalars['String']; + last_transaction_version: Scalars['bigint']; + operator_commission_percentage: Scalars['numeric']; + staking_pool_address: Scalars['String']; + total_coins: Scalars['numeric']; + total_shares: Scalars['numeric']; +}; + +/** Boolean expression to filter rows from the table "current_delegated_staking_pool_balances". All fields are combined with a logical 'AND'. */ +export type CurrentDelegatedStakingPoolBalancesBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + active_table_handle?: InputMaybe; + inactive_table_handle?: InputMaybe; + last_transaction_version?: InputMaybe; + operator_commission_percentage?: InputMaybe; + staking_pool_address?: InputMaybe; + total_coins?: InputMaybe; + total_shares?: InputMaybe; +}; + +/** Ordering options when selecting data from "current_delegated_staking_pool_balances". */ +export type CurrentDelegatedStakingPoolBalancesOrderBy = { + active_table_handle?: InputMaybe; + inactive_table_handle?: InputMaybe; + last_transaction_version?: InputMaybe; + operator_commission_percentage?: InputMaybe; + staking_pool_address?: InputMaybe; + total_coins?: InputMaybe; + total_shares?: InputMaybe; +}; + +/** select columns of table "current_delegated_staking_pool_balances" */ +export enum CurrentDelegatedStakingPoolBalancesSelectColumn { + /** column name */ + ActiveTableHandle = 'active_table_handle', + /** column name */ + InactiveTableHandle = 'inactive_table_handle', + /** column name */ + LastTransactionVersion = 'last_transaction_version', + /** column name */ + OperatorCommissionPercentage = 'operator_commission_percentage', + /** column name */ + StakingPoolAddress = 'staking_pool_address', + /** column name */ + TotalCoins = 'total_coins', + /** column name */ + TotalShares = 'total_shares' +} + +/** Streaming cursor of the table "current_delegated_staking_pool_balances" */ +export type CurrentDelegatedStakingPoolBalancesStreamCursorInput = { + /** Stream column input with initial value */ + initial_value: CurrentDelegatedStakingPoolBalancesStreamCursorValueInput; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type CurrentDelegatedStakingPoolBalancesStreamCursorValueInput = { + active_table_handle?: InputMaybe; + inactive_table_handle?: InputMaybe; + last_transaction_version?: InputMaybe; + operator_commission_percentage?: InputMaybe; + staking_pool_address?: InputMaybe; + total_coins?: InputMaybe; + total_shares?: InputMaybe; +}; + +/** columns and relationships of "current_delegated_voter" */ +export type CurrentDelegatedVoter = { + delegation_pool_address: Scalars['String']; + delegator_address: Scalars['String']; + last_transaction_timestamp: Scalars['timestamp']; + last_transaction_version: Scalars['bigint']; + pending_voter?: Maybe; + table_handle?: Maybe; + voter?: Maybe; +}; + +/** Boolean expression to filter rows from the table "current_delegated_voter". All fields are combined with a logical 'AND'. */ +export type CurrentDelegatedVoterBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + delegation_pool_address?: InputMaybe; + delegator_address?: InputMaybe; + last_transaction_timestamp?: InputMaybe; + last_transaction_version?: InputMaybe; + pending_voter?: InputMaybe; + table_handle?: InputMaybe; + voter?: InputMaybe; +}; + +/** Ordering options when selecting data from "current_delegated_voter". */ +export type CurrentDelegatedVoterOrderBy = { + delegation_pool_address?: InputMaybe; + delegator_address?: InputMaybe; + last_transaction_timestamp?: InputMaybe; + last_transaction_version?: InputMaybe; + pending_voter?: InputMaybe; + table_handle?: InputMaybe; + voter?: InputMaybe; +}; + +/** select columns of table "current_delegated_voter" */ +export enum CurrentDelegatedVoterSelectColumn { + /** column name */ + DelegationPoolAddress = 'delegation_pool_address', + /** column name */ + DelegatorAddress = 'delegator_address', + /** column name */ + LastTransactionTimestamp = 'last_transaction_timestamp', + /** column name */ + LastTransactionVersion = 'last_transaction_version', + /** column name */ + PendingVoter = 'pending_voter', + /** column name */ + TableHandle = 'table_handle', + /** column name */ + Voter = 'voter' +} + +/** Streaming cursor of the table "current_delegated_voter" */ +export type CurrentDelegatedVoterStreamCursorInput = { + /** Stream column input with initial value */ + initial_value: CurrentDelegatedVoterStreamCursorValueInput; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type CurrentDelegatedVoterStreamCursorValueInput = { + delegation_pool_address?: InputMaybe; + delegator_address?: InputMaybe; + last_transaction_timestamp?: InputMaybe; + last_transaction_version?: InputMaybe; + pending_voter?: InputMaybe; + table_handle?: InputMaybe; + voter?: InputMaybe; +}; + +/** columns and relationships of "current_delegator_balances" */ +export type CurrentDelegatorBalances = { + /** An object relationship */ + current_pool_balance?: Maybe; + delegator_address: Scalars['String']; + last_transaction_version: Scalars['bigint']; + parent_table_handle: Scalars['String']; + pool_address: Scalars['String']; + pool_type: Scalars['String']; + shares: Scalars['numeric']; + /** An object relationship */ + staking_pool_metadata?: Maybe; + table_handle: Scalars['String']; +}; + +/** Boolean expression to filter rows from the table "current_delegator_balances". All fields are combined with a logical 'AND'. */ +export type CurrentDelegatorBalancesBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + current_pool_balance?: InputMaybe; + delegator_address?: InputMaybe; + last_transaction_version?: InputMaybe; + parent_table_handle?: InputMaybe; + pool_address?: InputMaybe; + pool_type?: InputMaybe; + shares?: InputMaybe; + staking_pool_metadata?: InputMaybe; + table_handle?: InputMaybe; +}; + +/** Ordering options when selecting data from "current_delegator_balances". */ +export type CurrentDelegatorBalancesOrderBy = { + current_pool_balance?: InputMaybe; + delegator_address?: InputMaybe; + last_transaction_version?: InputMaybe; + parent_table_handle?: InputMaybe; + pool_address?: InputMaybe; + pool_type?: InputMaybe; + shares?: InputMaybe; + staking_pool_metadata?: InputMaybe; + table_handle?: InputMaybe; +}; + +/** select columns of table "current_delegator_balances" */ +export enum CurrentDelegatorBalancesSelectColumn { + /** column name */ + DelegatorAddress = 'delegator_address', + /** column name */ + LastTransactionVersion = 'last_transaction_version', + /** column name */ + ParentTableHandle = 'parent_table_handle', + /** column name */ + PoolAddress = 'pool_address', + /** column name */ + PoolType = 'pool_type', + /** column name */ + Shares = 'shares', + /** column name */ + TableHandle = 'table_handle' +} + +/** Streaming cursor of the table "current_delegator_balances" */ +export type CurrentDelegatorBalancesStreamCursorInput = { + /** Stream column input with initial value */ + initial_value: CurrentDelegatorBalancesStreamCursorValueInput; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type CurrentDelegatorBalancesStreamCursorValueInput = { + delegator_address?: InputMaybe; + last_transaction_version?: InputMaybe; + parent_table_handle?: InputMaybe; + pool_address?: InputMaybe; + pool_type?: InputMaybe; + shares?: InputMaybe; + table_handle?: InputMaybe; +}; + +/** columns and relationships of "current_fungible_asset_balances" */ +export type CurrentFungibleAssetBalances = { + amount: Scalars['numeric']; + asset_type: Scalars['String']; + is_frozen: Scalars['Boolean']; + is_primary: Scalars['Boolean']; + last_transaction_timestamp: Scalars['timestamp']; + last_transaction_version: Scalars['bigint']; + /** An object relationship */ + metadata?: Maybe; + owner_address: Scalars['String']; + storage_id: Scalars['String']; + token_standard: Scalars['String']; +}; + +/** aggregated selection of "current_fungible_asset_balances" */ +export type CurrentFungibleAssetBalancesAggregate = { + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "current_fungible_asset_balances" */ +export type CurrentFungibleAssetBalancesAggregateFields = { + avg?: Maybe; + count: Scalars['Int']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "current_fungible_asset_balances" */ +export type CurrentFungibleAssetBalancesAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type CurrentFungibleAssetBalancesAvgFields = { + amount?: Maybe; + last_transaction_version?: Maybe; +}; + +/** Boolean expression to filter rows from the table "current_fungible_asset_balances". All fields are combined with a logical 'AND'. */ +export type CurrentFungibleAssetBalancesBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + amount?: InputMaybe; + asset_type?: InputMaybe; + is_frozen?: InputMaybe; + is_primary?: InputMaybe; + last_transaction_timestamp?: InputMaybe; + last_transaction_version?: InputMaybe; + metadata?: InputMaybe; + owner_address?: InputMaybe; + storage_id?: InputMaybe; + token_standard?: InputMaybe; +}; + +/** aggregate max on columns */ +export type CurrentFungibleAssetBalancesMaxFields = { + amount?: Maybe; + asset_type?: Maybe; + last_transaction_timestamp?: Maybe; + last_transaction_version?: Maybe; + owner_address?: Maybe; + storage_id?: Maybe; + token_standard?: Maybe; +}; + +/** aggregate min on columns */ +export type CurrentFungibleAssetBalancesMinFields = { + amount?: Maybe; + asset_type?: Maybe; + last_transaction_timestamp?: Maybe; + last_transaction_version?: Maybe; + owner_address?: Maybe; + storage_id?: Maybe; + token_standard?: Maybe; +}; + +/** Ordering options when selecting data from "current_fungible_asset_balances". */ +export type CurrentFungibleAssetBalancesOrderBy = { + amount?: InputMaybe; + asset_type?: InputMaybe; + is_frozen?: InputMaybe; + is_primary?: InputMaybe; + last_transaction_timestamp?: InputMaybe; + last_transaction_version?: InputMaybe; + metadata?: InputMaybe; + owner_address?: InputMaybe; + storage_id?: InputMaybe; + token_standard?: InputMaybe; +}; + +/** select columns of table "current_fungible_asset_balances" */ +export enum CurrentFungibleAssetBalancesSelectColumn { + /** column name */ + Amount = 'amount', + /** column name */ + AssetType = 'asset_type', + /** column name */ + IsFrozen = 'is_frozen', + /** column name */ + IsPrimary = 'is_primary', + /** column name */ + LastTransactionTimestamp = 'last_transaction_timestamp', + /** column name */ + LastTransactionVersion = 'last_transaction_version', + /** column name */ + OwnerAddress = 'owner_address', + /** column name */ + StorageId = 'storage_id', + /** column name */ + TokenStandard = 'token_standard' +} + +/** aggregate stddev on columns */ +export type CurrentFungibleAssetBalancesStddevFields = { + amount?: Maybe; + last_transaction_version?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type CurrentFungibleAssetBalancesStddevPopFields = { + amount?: Maybe; + last_transaction_version?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type CurrentFungibleAssetBalancesStddevSampFields = { + amount?: Maybe; + last_transaction_version?: Maybe; +}; + +/** Streaming cursor of the table "current_fungible_asset_balances" */ +export type CurrentFungibleAssetBalancesStreamCursorInput = { + /** Stream column input with initial value */ + initial_value: CurrentFungibleAssetBalancesStreamCursorValueInput; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type CurrentFungibleAssetBalancesStreamCursorValueInput = { + amount?: InputMaybe; + asset_type?: InputMaybe; + is_frozen?: InputMaybe; + is_primary?: InputMaybe; + last_transaction_timestamp?: InputMaybe; + last_transaction_version?: InputMaybe; + owner_address?: InputMaybe; + storage_id?: InputMaybe; + token_standard?: InputMaybe; +}; + +/** aggregate sum on columns */ +export type CurrentFungibleAssetBalancesSumFields = { + amount?: Maybe; + last_transaction_version?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type CurrentFungibleAssetBalancesVarPopFields = { + amount?: Maybe; + last_transaction_version?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type CurrentFungibleAssetBalancesVarSampFields = { + amount?: Maybe; + last_transaction_version?: Maybe; +}; + +/** aggregate variance on columns */ +export type CurrentFungibleAssetBalancesVarianceFields = { + amount?: Maybe; + last_transaction_version?: Maybe; +}; + +/** columns and relationships of "current_objects" */ +export type CurrentObjects = { + allow_ungated_transfer: Scalars['Boolean']; + is_deleted: Scalars['Boolean']; + last_guid_creation_num: Scalars['numeric']; + last_transaction_version: Scalars['bigint']; + object_address: Scalars['String']; + owner_address: Scalars['String']; + state_key_hash: Scalars['String']; +}; + +/** Boolean expression to filter rows from the table "current_objects". All fields are combined with a logical 'AND'. */ +export type CurrentObjectsBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + allow_ungated_transfer?: InputMaybe; + is_deleted?: InputMaybe; + last_guid_creation_num?: InputMaybe; + last_transaction_version?: InputMaybe; + object_address?: InputMaybe; + owner_address?: InputMaybe; + state_key_hash?: InputMaybe; +}; + +/** Ordering options when selecting data from "current_objects". */ +export type CurrentObjectsOrderBy = { + allow_ungated_transfer?: InputMaybe; + is_deleted?: InputMaybe; + last_guid_creation_num?: InputMaybe; + last_transaction_version?: InputMaybe; + object_address?: InputMaybe; + owner_address?: InputMaybe; + state_key_hash?: InputMaybe; +}; + +/** select columns of table "current_objects" */ +export enum CurrentObjectsSelectColumn { + /** column name */ + AllowUngatedTransfer = 'allow_ungated_transfer', + /** column name */ + IsDeleted = 'is_deleted', + /** column name */ + LastGuidCreationNum = 'last_guid_creation_num', + /** column name */ + LastTransactionVersion = 'last_transaction_version', + /** column name */ + ObjectAddress = 'object_address', + /** column name */ + OwnerAddress = 'owner_address', + /** column name */ + StateKeyHash = 'state_key_hash' +} + +/** Streaming cursor of the table "current_objects" */ +export type CurrentObjectsStreamCursorInput = { + /** Stream column input with initial value */ + initial_value: CurrentObjectsStreamCursorValueInput; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type CurrentObjectsStreamCursorValueInput = { + allow_ungated_transfer?: InputMaybe; + is_deleted?: InputMaybe; + last_guid_creation_num?: InputMaybe; + last_transaction_version?: InputMaybe; + object_address?: InputMaybe; + owner_address?: InputMaybe; + state_key_hash?: InputMaybe; +}; + +/** columns and relationships of "current_staking_pool_voter" */ +export type CurrentStakingPoolVoter = { + last_transaction_version: Scalars['bigint']; + operator_address: Scalars['String']; + /** An array relationship */ + operator_aptos_name: Array; + /** An aggregate relationship */ + operator_aptos_name_aggregate: CurrentAptosNamesAggregate; + staking_pool_address: Scalars['String']; + voter_address: Scalars['String']; +}; + + +/** columns and relationships of "current_staking_pool_voter" */ +export type CurrentStakingPoolVoterOperatorAptosNameArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "current_staking_pool_voter" */ +export type CurrentStakingPoolVoterOperatorAptosNameAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + +/** Boolean expression to filter rows from the table "current_staking_pool_voter". All fields are combined with a logical 'AND'. */ +export type CurrentStakingPoolVoterBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + last_transaction_version?: InputMaybe; + operator_address?: InputMaybe; + operator_aptos_name?: InputMaybe; + staking_pool_address?: InputMaybe; + voter_address?: InputMaybe; +}; + +/** Ordering options when selecting data from "current_staking_pool_voter". */ +export type CurrentStakingPoolVoterOrderBy = { + last_transaction_version?: InputMaybe; + operator_address?: InputMaybe; + operator_aptos_name_aggregate?: InputMaybe; + staking_pool_address?: InputMaybe; + voter_address?: InputMaybe; +}; + +/** select columns of table "current_staking_pool_voter" */ +export enum CurrentStakingPoolVoterSelectColumn { + /** column name */ + LastTransactionVersion = 'last_transaction_version', + /** column name */ + OperatorAddress = 'operator_address', + /** column name */ + StakingPoolAddress = 'staking_pool_address', + /** column name */ + VoterAddress = 'voter_address' +} + +/** Streaming cursor of the table "current_staking_pool_voter" */ +export type CurrentStakingPoolVoterStreamCursorInput = { + /** Stream column input with initial value */ + initial_value: CurrentStakingPoolVoterStreamCursorValueInput; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type CurrentStakingPoolVoterStreamCursorValueInput = { + last_transaction_version?: InputMaybe; + operator_address?: InputMaybe; + staking_pool_address?: InputMaybe; + voter_address?: InputMaybe; +}; + +/** columns and relationships of "current_table_items" */ +export type CurrentTableItems = { + decoded_key: Scalars['jsonb']; + decoded_value?: Maybe; + is_deleted: Scalars['Boolean']; + key: Scalars['String']; + key_hash: Scalars['String']; + last_transaction_version: Scalars['bigint']; + table_handle: Scalars['String']; +}; + + +/** columns and relationships of "current_table_items" */ +export type CurrentTableItemsDecodedKeyArgs = { + path?: InputMaybe; +}; + + +/** columns and relationships of "current_table_items" */ +export type CurrentTableItemsDecodedValueArgs = { + path?: InputMaybe; +}; + +/** Boolean expression to filter rows from the table "current_table_items". All fields are combined with a logical 'AND'. */ +export type CurrentTableItemsBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + decoded_key?: InputMaybe; + decoded_value?: InputMaybe; + is_deleted?: InputMaybe; + key?: InputMaybe; + key_hash?: InputMaybe; + last_transaction_version?: InputMaybe; + table_handle?: InputMaybe; +}; + +/** Ordering options when selecting data from "current_table_items". */ +export type CurrentTableItemsOrderBy = { + decoded_key?: InputMaybe; + decoded_value?: InputMaybe; + is_deleted?: InputMaybe; + key?: InputMaybe; + key_hash?: InputMaybe; + last_transaction_version?: InputMaybe; + table_handle?: InputMaybe; +}; + +/** select columns of table "current_table_items" */ +export enum CurrentTableItemsSelectColumn { + /** column name */ + DecodedKey = 'decoded_key', + /** column name */ + DecodedValue = 'decoded_value', + /** column name */ + IsDeleted = 'is_deleted', + /** column name */ + Key = 'key', + /** column name */ + KeyHash = 'key_hash', + /** column name */ + LastTransactionVersion = 'last_transaction_version', + /** column name */ + TableHandle = 'table_handle' +} + +/** Streaming cursor of the table "current_table_items" */ +export type CurrentTableItemsStreamCursorInput = { + /** Stream column input with initial value */ + initial_value: CurrentTableItemsStreamCursorValueInput; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type CurrentTableItemsStreamCursorValueInput = { + decoded_key?: InputMaybe; + decoded_value?: InputMaybe; + is_deleted?: InputMaybe; + key?: InputMaybe; + key_hash?: InputMaybe; + last_transaction_version?: InputMaybe; + table_handle?: InputMaybe; +}; + +/** columns and relationships of "current_token_datas" */ +export type CurrentTokenDatas = { + collection_data_id_hash: Scalars['String']; + collection_name: Scalars['String']; + creator_address: Scalars['String']; + /** An object relationship */ + current_collection_data?: Maybe; + default_properties: Scalars['jsonb']; + description: Scalars['String']; + description_mutable: Scalars['Boolean']; + largest_property_version: Scalars['numeric']; + last_transaction_timestamp: Scalars['timestamp']; + last_transaction_version: Scalars['bigint']; + maximum: Scalars['numeric']; + maximum_mutable: Scalars['Boolean']; + metadata_uri: Scalars['String']; + name: Scalars['String']; + payee_address: Scalars['String']; + properties_mutable: Scalars['Boolean']; + royalty_mutable: Scalars['Boolean']; + royalty_points_denominator: Scalars['numeric']; + royalty_points_numerator: Scalars['numeric']; + supply: Scalars['numeric']; + token_data_id_hash: Scalars['String']; + uri_mutable: Scalars['Boolean']; +}; + + +/** columns and relationships of "current_token_datas" */ +export type CurrentTokenDatasDefaultPropertiesArgs = { + path?: InputMaybe; +}; + +/** Boolean expression to filter rows from the table "current_token_datas". All fields are combined with a logical 'AND'. */ +export type CurrentTokenDatasBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + collection_data_id_hash?: InputMaybe; + collection_name?: InputMaybe; + creator_address?: InputMaybe; + current_collection_data?: InputMaybe; + default_properties?: InputMaybe; + description?: InputMaybe; + description_mutable?: InputMaybe; + largest_property_version?: InputMaybe; + last_transaction_timestamp?: InputMaybe; + last_transaction_version?: InputMaybe; + maximum?: InputMaybe; + maximum_mutable?: InputMaybe; + metadata_uri?: InputMaybe; + name?: InputMaybe; + payee_address?: InputMaybe; + properties_mutable?: InputMaybe; + royalty_mutable?: InputMaybe; + royalty_points_denominator?: InputMaybe; + royalty_points_numerator?: InputMaybe; + supply?: InputMaybe; + token_data_id_hash?: InputMaybe; + uri_mutable?: InputMaybe; +}; + +/** Ordering options when selecting data from "current_token_datas". */ +export type CurrentTokenDatasOrderBy = { + collection_data_id_hash?: InputMaybe; + collection_name?: InputMaybe; + creator_address?: InputMaybe; + current_collection_data?: InputMaybe; + default_properties?: InputMaybe; + description?: InputMaybe; + description_mutable?: InputMaybe; + largest_property_version?: InputMaybe; + last_transaction_timestamp?: InputMaybe; + last_transaction_version?: InputMaybe; + maximum?: InputMaybe; + maximum_mutable?: InputMaybe; + metadata_uri?: InputMaybe; + name?: InputMaybe; + payee_address?: InputMaybe; + properties_mutable?: InputMaybe; + royalty_mutable?: InputMaybe; + royalty_points_denominator?: InputMaybe; + royalty_points_numerator?: InputMaybe; + supply?: InputMaybe; + token_data_id_hash?: InputMaybe; + uri_mutable?: InputMaybe; +}; + +/** select columns of table "current_token_datas" */ +export enum CurrentTokenDatasSelectColumn { + /** column name */ + CollectionDataIdHash = 'collection_data_id_hash', + /** column name */ + CollectionName = 'collection_name', + /** column name */ + CreatorAddress = 'creator_address', + /** column name */ + DefaultProperties = 'default_properties', + /** column name */ + Description = 'description', + /** column name */ + DescriptionMutable = 'description_mutable', + /** column name */ + LargestPropertyVersion = 'largest_property_version', + /** column name */ + LastTransactionTimestamp = 'last_transaction_timestamp', + /** column name */ + LastTransactionVersion = 'last_transaction_version', + /** column name */ + Maximum = 'maximum', + /** column name */ + MaximumMutable = 'maximum_mutable', + /** column name */ + MetadataUri = 'metadata_uri', + /** column name */ + Name = 'name', + /** column name */ + PayeeAddress = 'payee_address', + /** column name */ + PropertiesMutable = 'properties_mutable', + /** column name */ + RoyaltyMutable = 'royalty_mutable', + /** column name */ + RoyaltyPointsDenominator = 'royalty_points_denominator', + /** column name */ + RoyaltyPointsNumerator = 'royalty_points_numerator', + /** column name */ + Supply = 'supply', + /** column name */ + TokenDataIdHash = 'token_data_id_hash', + /** column name */ + UriMutable = 'uri_mutable' +} + +/** Streaming cursor of the table "current_token_datas" */ +export type CurrentTokenDatasStreamCursorInput = { + /** Stream column input with initial value */ + initial_value: CurrentTokenDatasStreamCursorValueInput; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type CurrentTokenDatasStreamCursorValueInput = { + collection_data_id_hash?: InputMaybe; + collection_name?: InputMaybe; + creator_address?: InputMaybe; + default_properties?: InputMaybe; + description?: InputMaybe; + description_mutable?: InputMaybe; + largest_property_version?: InputMaybe; + last_transaction_timestamp?: InputMaybe; + last_transaction_version?: InputMaybe; + maximum?: InputMaybe; + maximum_mutable?: InputMaybe; + metadata_uri?: InputMaybe; + name?: InputMaybe; + payee_address?: InputMaybe; + properties_mutable?: InputMaybe; + royalty_mutable?: InputMaybe; + royalty_points_denominator?: InputMaybe; + royalty_points_numerator?: InputMaybe; + supply?: InputMaybe; + token_data_id_hash?: InputMaybe; + uri_mutable?: InputMaybe; +}; + +/** columns and relationships of "current_token_datas_v2" */ +export type CurrentTokenDatasV2 = { + /** An object relationship */ + aptos_name?: Maybe; + collection_id: Scalars['String']; + /** An object relationship */ + current_collection?: Maybe; + /** An object relationship */ + current_token_ownership?: Maybe; + description: Scalars['String']; + is_fungible_v2?: Maybe; + largest_property_version_v1?: Maybe; + last_transaction_timestamp: Scalars['timestamp']; + last_transaction_version: Scalars['bigint']; + maximum?: Maybe; + supply: Scalars['numeric']; + token_data_id: Scalars['String']; + token_name: Scalars['String']; + token_properties: Scalars['jsonb']; + token_standard: Scalars['String']; + token_uri: Scalars['String']; +}; + + +/** columns and relationships of "current_token_datas_v2" */ +export type CurrentTokenDatasV2TokenPropertiesArgs = { + path?: InputMaybe; +}; + +/** Boolean expression to filter rows from the table "current_token_datas_v2". All fields are combined with a logical 'AND'. */ +export type CurrentTokenDatasV2BoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + aptos_name?: InputMaybe; + collection_id?: InputMaybe; + current_collection?: InputMaybe; + current_token_ownership?: InputMaybe; + description?: InputMaybe; + is_fungible_v2?: InputMaybe; + largest_property_version_v1?: InputMaybe; + last_transaction_timestamp?: InputMaybe; + last_transaction_version?: InputMaybe; + maximum?: InputMaybe; + supply?: InputMaybe; + token_data_id?: InputMaybe; + token_name?: InputMaybe; + token_properties?: InputMaybe; + token_standard?: InputMaybe; + token_uri?: InputMaybe; +}; + +/** Ordering options when selecting data from "current_token_datas_v2". */ +export type CurrentTokenDatasV2OrderBy = { + aptos_name?: InputMaybe; + collection_id?: InputMaybe; + current_collection?: InputMaybe; + current_token_ownership?: InputMaybe; + description?: InputMaybe; + is_fungible_v2?: InputMaybe; + largest_property_version_v1?: InputMaybe; + last_transaction_timestamp?: InputMaybe; + last_transaction_version?: InputMaybe; + maximum?: InputMaybe; + supply?: InputMaybe; + token_data_id?: InputMaybe; + token_name?: InputMaybe; + token_properties?: InputMaybe; + token_standard?: InputMaybe; + token_uri?: InputMaybe; +}; + +/** select columns of table "current_token_datas_v2" */ +export enum CurrentTokenDatasV2SelectColumn { + /** column name */ + CollectionId = 'collection_id', + /** column name */ + Description = 'description', + /** column name */ + IsFungibleV2 = 'is_fungible_v2', + /** column name */ + LargestPropertyVersionV1 = 'largest_property_version_v1', + /** column name */ + LastTransactionTimestamp = 'last_transaction_timestamp', + /** column name */ + LastTransactionVersion = 'last_transaction_version', + /** column name */ + Maximum = 'maximum', + /** column name */ + Supply = 'supply', + /** column name */ + TokenDataId = 'token_data_id', + /** column name */ + TokenName = 'token_name', + /** column name */ + TokenProperties = 'token_properties', + /** column name */ + TokenStandard = 'token_standard', + /** column name */ + TokenUri = 'token_uri' +} + +/** Streaming cursor of the table "current_token_datas_v2" */ +export type CurrentTokenDatasV2StreamCursorInput = { + /** Stream column input with initial value */ + initial_value: CurrentTokenDatasV2StreamCursorValueInput; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type CurrentTokenDatasV2StreamCursorValueInput = { + collection_id?: InputMaybe; + description?: InputMaybe; + is_fungible_v2?: InputMaybe; + largest_property_version_v1?: InputMaybe; + last_transaction_timestamp?: InputMaybe; + last_transaction_version?: InputMaybe; + maximum?: InputMaybe; + supply?: InputMaybe; + token_data_id?: InputMaybe; + token_name?: InputMaybe; + token_properties?: InputMaybe; + token_standard?: InputMaybe; + token_uri?: InputMaybe; +}; + +/** columns and relationships of "current_token_ownerships" */ +export type CurrentTokenOwnerships = { + amount: Scalars['numeric']; + /** An object relationship */ + aptos_name?: Maybe; + collection_data_id_hash: Scalars['String']; + collection_name: Scalars['String']; + creator_address: Scalars['String']; + /** An object relationship */ + current_collection_data?: Maybe; + /** An object relationship */ + current_token_data?: Maybe; + last_transaction_timestamp: Scalars['timestamp']; + last_transaction_version: Scalars['bigint']; + name: Scalars['String']; + owner_address: Scalars['String']; + property_version: Scalars['numeric']; + table_type: Scalars['String']; + token_data_id_hash: Scalars['String']; + token_properties: Scalars['jsonb']; +}; + + +/** columns and relationships of "current_token_ownerships" */ +export type CurrentTokenOwnershipsTokenPropertiesArgs = { + path?: InputMaybe; +}; + +/** aggregated selection of "current_token_ownerships" */ +export type CurrentTokenOwnershipsAggregate = { + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "current_token_ownerships" */ +export type CurrentTokenOwnershipsAggregateFields = { + avg?: Maybe; + count: Scalars['Int']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "current_token_ownerships" */ +export type CurrentTokenOwnershipsAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** order by aggregate values of table "current_token_ownerships" */ +export type CurrentTokenOwnershipsAggregateOrderBy = { + avg?: InputMaybe; + count?: InputMaybe; + max?: InputMaybe; + min?: InputMaybe; + stddev?: InputMaybe; + stddev_pop?: InputMaybe; + stddev_samp?: InputMaybe; + sum?: InputMaybe; + var_pop?: InputMaybe; + var_samp?: InputMaybe; + variance?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type CurrentTokenOwnershipsAvgFields = { + amount?: Maybe; + last_transaction_version?: Maybe; + property_version?: Maybe; +}; + +/** order by avg() on columns of table "current_token_ownerships" */ +export type CurrentTokenOwnershipsAvgOrderBy = { + amount?: InputMaybe; + last_transaction_version?: InputMaybe; + property_version?: InputMaybe; +}; + +/** Boolean expression to filter rows from the table "current_token_ownerships". All fields are combined with a logical 'AND'. */ +export type CurrentTokenOwnershipsBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + amount?: InputMaybe; + aptos_name?: InputMaybe; + collection_data_id_hash?: InputMaybe; + collection_name?: InputMaybe; + creator_address?: InputMaybe; + current_collection_data?: InputMaybe; + current_token_data?: InputMaybe; + last_transaction_timestamp?: InputMaybe; + last_transaction_version?: InputMaybe; + name?: InputMaybe; + owner_address?: InputMaybe; + property_version?: InputMaybe; + table_type?: InputMaybe; + token_data_id_hash?: InputMaybe; + token_properties?: InputMaybe; +}; + +/** aggregate max on columns */ +export type CurrentTokenOwnershipsMaxFields = { + amount?: Maybe; + collection_data_id_hash?: Maybe; + collection_name?: Maybe; + creator_address?: Maybe; + last_transaction_timestamp?: Maybe; + last_transaction_version?: Maybe; + name?: Maybe; + owner_address?: Maybe; + property_version?: Maybe; + table_type?: Maybe; + token_data_id_hash?: Maybe; +}; + +/** order by max() on columns of table "current_token_ownerships" */ +export type CurrentTokenOwnershipsMaxOrderBy = { + amount?: InputMaybe; + collection_data_id_hash?: InputMaybe; + collection_name?: InputMaybe; + creator_address?: InputMaybe; + last_transaction_timestamp?: InputMaybe; + last_transaction_version?: InputMaybe; + name?: InputMaybe; + owner_address?: InputMaybe; + property_version?: InputMaybe; + table_type?: InputMaybe; + token_data_id_hash?: InputMaybe; +}; + +/** aggregate min on columns */ +export type CurrentTokenOwnershipsMinFields = { + amount?: Maybe; + collection_data_id_hash?: Maybe; + collection_name?: Maybe; + creator_address?: Maybe; + last_transaction_timestamp?: Maybe; + last_transaction_version?: Maybe; + name?: Maybe; + owner_address?: Maybe; + property_version?: Maybe; + table_type?: Maybe; + token_data_id_hash?: Maybe; +}; + +/** order by min() on columns of table "current_token_ownerships" */ +export type CurrentTokenOwnershipsMinOrderBy = { + amount?: InputMaybe; + collection_data_id_hash?: InputMaybe; + collection_name?: InputMaybe; + creator_address?: InputMaybe; + last_transaction_timestamp?: InputMaybe; + last_transaction_version?: InputMaybe; + name?: InputMaybe; + owner_address?: InputMaybe; + property_version?: InputMaybe; + table_type?: InputMaybe; + token_data_id_hash?: InputMaybe; +}; + +/** Ordering options when selecting data from "current_token_ownerships". */ +export type CurrentTokenOwnershipsOrderBy = { + amount?: InputMaybe; + aptos_name?: InputMaybe; + collection_data_id_hash?: InputMaybe; + collection_name?: InputMaybe; + creator_address?: InputMaybe; + current_collection_data?: InputMaybe; + current_token_data?: InputMaybe; + last_transaction_timestamp?: InputMaybe; + last_transaction_version?: InputMaybe; + name?: InputMaybe; + owner_address?: InputMaybe; + property_version?: InputMaybe; + table_type?: InputMaybe; + token_data_id_hash?: InputMaybe; + token_properties?: InputMaybe; +}; + +/** select columns of table "current_token_ownerships" */ +export enum CurrentTokenOwnershipsSelectColumn { + /** column name */ + Amount = 'amount', + /** column name */ + CollectionDataIdHash = 'collection_data_id_hash', + /** column name */ + CollectionName = 'collection_name', + /** column name */ + CreatorAddress = 'creator_address', + /** column name */ + LastTransactionTimestamp = 'last_transaction_timestamp', + /** column name */ + LastTransactionVersion = 'last_transaction_version', + /** column name */ + Name = 'name', + /** column name */ + OwnerAddress = 'owner_address', + /** column name */ + PropertyVersion = 'property_version', + /** column name */ + TableType = 'table_type', + /** column name */ + TokenDataIdHash = 'token_data_id_hash', + /** column name */ + TokenProperties = 'token_properties' +} + +/** aggregate stddev on columns */ +export type CurrentTokenOwnershipsStddevFields = { + amount?: Maybe; + last_transaction_version?: Maybe; + property_version?: Maybe; +}; + +/** order by stddev() on columns of table "current_token_ownerships" */ +export type CurrentTokenOwnershipsStddevOrderBy = { + amount?: InputMaybe; + last_transaction_version?: InputMaybe; + property_version?: InputMaybe; +}; + +/** aggregate stddev_pop on columns */ +export type CurrentTokenOwnershipsStddevPopFields = { + amount?: Maybe; + last_transaction_version?: Maybe; + property_version?: Maybe; +}; + +/** order by stddev_pop() on columns of table "current_token_ownerships" */ +export type CurrentTokenOwnershipsStddevPopOrderBy = { + amount?: InputMaybe; + last_transaction_version?: InputMaybe; + property_version?: InputMaybe; +}; + +/** aggregate stddev_samp on columns */ +export type CurrentTokenOwnershipsStddevSampFields = { + amount?: Maybe; + last_transaction_version?: Maybe; + property_version?: Maybe; +}; + +/** order by stddev_samp() on columns of table "current_token_ownerships" */ +export type CurrentTokenOwnershipsStddevSampOrderBy = { + amount?: InputMaybe; + last_transaction_version?: InputMaybe; + property_version?: InputMaybe; +}; + +/** Streaming cursor of the table "current_token_ownerships" */ +export type CurrentTokenOwnershipsStreamCursorInput = { + /** Stream column input with initial value */ + initial_value: CurrentTokenOwnershipsStreamCursorValueInput; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type CurrentTokenOwnershipsStreamCursorValueInput = { + amount?: InputMaybe; + collection_data_id_hash?: InputMaybe; + collection_name?: InputMaybe; + creator_address?: InputMaybe; + last_transaction_timestamp?: InputMaybe; + last_transaction_version?: InputMaybe; + name?: InputMaybe; + owner_address?: InputMaybe; + property_version?: InputMaybe; + table_type?: InputMaybe; + token_data_id_hash?: InputMaybe; + token_properties?: InputMaybe; +}; + +/** aggregate sum on columns */ +export type CurrentTokenOwnershipsSumFields = { + amount?: Maybe; + last_transaction_version?: Maybe; + property_version?: Maybe; +}; + +/** order by sum() on columns of table "current_token_ownerships" */ +export type CurrentTokenOwnershipsSumOrderBy = { + amount?: InputMaybe; + last_transaction_version?: InputMaybe; + property_version?: InputMaybe; +}; + +/** columns and relationships of "current_token_ownerships_v2" */ +export type CurrentTokenOwnershipsV2 = { + amount: Scalars['numeric']; + /** An array relationship */ + composed_nfts: Array; + /** An aggregate relationship */ + composed_nfts_aggregate: CurrentTokenOwnershipsV2Aggregate; + /** An object relationship */ + current_token_data?: Maybe; + is_fungible_v2?: Maybe; + is_soulbound_v2?: Maybe; + last_transaction_timestamp: Scalars['timestamp']; + last_transaction_version: Scalars['bigint']; + owner_address: Scalars['String']; + property_version_v1: Scalars['numeric']; + storage_id: Scalars['String']; + table_type_v1?: Maybe; + token_data_id: Scalars['String']; + token_properties_mutated_v1?: Maybe; + token_standard: Scalars['String']; +}; + + +/** columns and relationships of "current_token_ownerships_v2" */ +export type CurrentTokenOwnershipsV2ComposedNftsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "current_token_ownerships_v2" */ +export type CurrentTokenOwnershipsV2ComposedNftsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "current_token_ownerships_v2" */ +export type CurrentTokenOwnershipsV2TokenPropertiesMutatedV1Args = { + path?: InputMaybe; +}; + +/** aggregated selection of "current_token_ownerships_v2" */ +export type CurrentTokenOwnershipsV2Aggregate = { + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "current_token_ownerships_v2" */ +export type CurrentTokenOwnershipsV2AggregateFields = { + avg?: Maybe; + count: Scalars['Int']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "current_token_ownerships_v2" */ +export type CurrentTokenOwnershipsV2AggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** order by aggregate values of table "current_token_ownerships_v2" */ +export type CurrentTokenOwnershipsV2AggregateOrderBy = { + avg?: InputMaybe; + count?: InputMaybe; + max?: InputMaybe; + min?: InputMaybe; + stddev?: InputMaybe; + stddev_pop?: InputMaybe; + stddev_samp?: InputMaybe; + sum?: InputMaybe; + var_pop?: InputMaybe; + var_samp?: InputMaybe; + variance?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type CurrentTokenOwnershipsV2AvgFields = { + amount?: Maybe; + last_transaction_version?: Maybe; + property_version_v1?: Maybe; +}; + +/** order by avg() on columns of table "current_token_ownerships_v2" */ +export type CurrentTokenOwnershipsV2AvgOrderBy = { + amount?: InputMaybe; + last_transaction_version?: InputMaybe; + property_version_v1?: InputMaybe; +}; + +/** Boolean expression to filter rows from the table "current_token_ownerships_v2". All fields are combined with a logical 'AND'. */ +export type CurrentTokenOwnershipsV2BoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + amount?: InputMaybe; + composed_nfts?: InputMaybe; + current_token_data?: InputMaybe; + is_fungible_v2?: InputMaybe; + is_soulbound_v2?: InputMaybe; + last_transaction_timestamp?: InputMaybe; + last_transaction_version?: InputMaybe; + owner_address?: InputMaybe; + property_version_v1?: InputMaybe; + storage_id?: InputMaybe; + table_type_v1?: InputMaybe; + token_data_id?: InputMaybe; + token_properties_mutated_v1?: InputMaybe; + token_standard?: InputMaybe; +}; + +/** aggregate max on columns */ +export type CurrentTokenOwnershipsV2MaxFields = { + amount?: Maybe; + last_transaction_timestamp?: Maybe; + last_transaction_version?: Maybe; + owner_address?: Maybe; + property_version_v1?: Maybe; + storage_id?: Maybe; + table_type_v1?: Maybe; + token_data_id?: Maybe; + token_standard?: Maybe; +}; + +/** order by max() on columns of table "current_token_ownerships_v2" */ +export type CurrentTokenOwnershipsV2MaxOrderBy = { + amount?: InputMaybe; + last_transaction_timestamp?: InputMaybe; + last_transaction_version?: InputMaybe; + owner_address?: InputMaybe; + property_version_v1?: InputMaybe; + storage_id?: InputMaybe; + table_type_v1?: InputMaybe; + token_data_id?: InputMaybe; + token_standard?: InputMaybe; +}; + +/** aggregate min on columns */ +export type CurrentTokenOwnershipsV2MinFields = { + amount?: Maybe; + last_transaction_timestamp?: Maybe; + last_transaction_version?: Maybe; + owner_address?: Maybe; + property_version_v1?: Maybe; + storage_id?: Maybe; + table_type_v1?: Maybe; + token_data_id?: Maybe; + token_standard?: Maybe; +}; + +/** order by min() on columns of table "current_token_ownerships_v2" */ +export type CurrentTokenOwnershipsV2MinOrderBy = { + amount?: InputMaybe; + last_transaction_timestamp?: InputMaybe; + last_transaction_version?: InputMaybe; + owner_address?: InputMaybe; + property_version_v1?: InputMaybe; + storage_id?: InputMaybe; + table_type_v1?: InputMaybe; + token_data_id?: InputMaybe; + token_standard?: InputMaybe; +}; + +/** Ordering options when selecting data from "current_token_ownerships_v2". */ +export type CurrentTokenOwnershipsV2OrderBy = { + amount?: InputMaybe; + composed_nfts_aggregate?: InputMaybe; + current_token_data?: InputMaybe; + is_fungible_v2?: InputMaybe; + is_soulbound_v2?: InputMaybe; + last_transaction_timestamp?: InputMaybe; + last_transaction_version?: InputMaybe; + owner_address?: InputMaybe; + property_version_v1?: InputMaybe; + storage_id?: InputMaybe; + table_type_v1?: InputMaybe; + token_data_id?: InputMaybe; + token_properties_mutated_v1?: InputMaybe; + token_standard?: InputMaybe; +}; + +/** select columns of table "current_token_ownerships_v2" */ +export enum CurrentTokenOwnershipsV2SelectColumn { + /** column name */ + Amount = 'amount', + /** column name */ + IsFungibleV2 = 'is_fungible_v2', + /** column name */ + IsSoulboundV2 = 'is_soulbound_v2', + /** column name */ + LastTransactionTimestamp = 'last_transaction_timestamp', + /** column name */ + LastTransactionVersion = 'last_transaction_version', + /** column name */ + OwnerAddress = 'owner_address', + /** column name */ + PropertyVersionV1 = 'property_version_v1', + /** column name */ + StorageId = 'storage_id', + /** column name */ + TableTypeV1 = 'table_type_v1', + /** column name */ + TokenDataId = 'token_data_id', + /** column name */ + TokenPropertiesMutatedV1 = 'token_properties_mutated_v1', + /** column name */ + TokenStandard = 'token_standard' +} + +/** aggregate stddev on columns */ +export type CurrentTokenOwnershipsV2StddevFields = { + amount?: Maybe; + last_transaction_version?: Maybe; + property_version_v1?: Maybe; +}; + +/** order by stddev() on columns of table "current_token_ownerships_v2" */ +export type CurrentTokenOwnershipsV2StddevOrderBy = { + amount?: InputMaybe; + last_transaction_version?: InputMaybe; + property_version_v1?: InputMaybe; +}; + +/** aggregate stddev_pop on columns */ +export type CurrentTokenOwnershipsV2StddevPopFields = { + amount?: Maybe; + last_transaction_version?: Maybe; + property_version_v1?: Maybe; +}; + +/** order by stddev_pop() on columns of table "current_token_ownerships_v2" */ +export type CurrentTokenOwnershipsV2StddevPopOrderBy = { + amount?: InputMaybe; + last_transaction_version?: InputMaybe; + property_version_v1?: InputMaybe; +}; + +/** aggregate stddev_samp on columns */ +export type CurrentTokenOwnershipsV2StddevSampFields = { + amount?: Maybe; + last_transaction_version?: Maybe; + property_version_v1?: Maybe; +}; + +/** order by stddev_samp() on columns of table "current_token_ownerships_v2" */ +export type CurrentTokenOwnershipsV2StddevSampOrderBy = { + amount?: InputMaybe; + last_transaction_version?: InputMaybe; + property_version_v1?: InputMaybe; +}; + +/** Streaming cursor of the table "current_token_ownerships_v2" */ +export type CurrentTokenOwnershipsV2StreamCursorInput = { + /** Stream column input with initial value */ + initial_value: CurrentTokenOwnershipsV2StreamCursorValueInput; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type CurrentTokenOwnershipsV2StreamCursorValueInput = { + amount?: InputMaybe; + is_fungible_v2?: InputMaybe; + is_soulbound_v2?: InputMaybe; + last_transaction_timestamp?: InputMaybe; + last_transaction_version?: InputMaybe; + owner_address?: InputMaybe; + property_version_v1?: InputMaybe; + storage_id?: InputMaybe; + table_type_v1?: InputMaybe; + token_data_id?: InputMaybe; + token_properties_mutated_v1?: InputMaybe; + token_standard?: InputMaybe; +}; + +/** aggregate sum on columns */ +export type CurrentTokenOwnershipsV2SumFields = { + amount?: Maybe; + last_transaction_version?: Maybe; + property_version_v1?: Maybe; +}; + +/** order by sum() on columns of table "current_token_ownerships_v2" */ +export type CurrentTokenOwnershipsV2SumOrderBy = { + amount?: InputMaybe; + last_transaction_version?: InputMaybe; + property_version_v1?: InputMaybe; +}; + +/** aggregate var_pop on columns */ +export type CurrentTokenOwnershipsV2VarPopFields = { + amount?: Maybe; + last_transaction_version?: Maybe; + property_version_v1?: Maybe; +}; + +/** order by var_pop() on columns of table "current_token_ownerships_v2" */ +export type CurrentTokenOwnershipsV2VarPopOrderBy = { + amount?: InputMaybe; + last_transaction_version?: InputMaybe; + property_version_v1?: InputMaybe; +}; + +/** aggregate var_samp on columns */ +export type CurrentTokenOwnershipsV2VarSampFields = { + amount?: Maybe; + last_transaction_version?: Maybe; + property_version_v1?: Maybe; +}; + +/** order by var_samp() on columns of table "current_token_ownerships_v2" */ +export type CurrentTokenOwnershipsV2VarSampOrderBy = { + amount?: InputMaybe; + last_transaction_version?: InputMaybe; + property_version_v1?: InputMaybe; +}; + +/** aggregate variance on columns */ +export type CurrentTokenOwnershipsV2VarianceFields = { + amount?: Maybe; + last_transaction_version?: Maybe; + property_version_v1?: Maybe; +}; + +/** order by variance() on columns of table "current_token_ownerships_v2" */ +export type CurrentTokenOwnershipsV2VarianceOrderBy = { + amount?: InputMaybe; + last_transaction_version?: InputMaybe; + property_version_v1?: InputMaybe; +}; + +/** aggregate var_pop on columns */ +export type CurrentTokenOwnershipsVarPopFields = { + amount?: Maybe; + last_transaction_version?: Maybe; + property_version?: Maybe; +}; + +/** order by var_pop() on columns of table "current_token_ownerships" */ +export type CurrentTokenOwnershipsVarPopOrderBy = { + amount?: InputMaybe; + last_transaction_version?: InputMaybe; + property_version?: InputMaybe; +}; + +/** aggregate var_samp on columns */ +export type CurrentTokenOwnershipsVarSampFields = { + amount?: Maybe; + last_transaction_version?: Maybe; + property_version?: Maybe; +}; + +/** order by var_samp() on columns of table "current_token_ownerships" */ +export type CurrentTokenOwnershipsVarSampOrderBy = { + amount?: InputMaybe; + last_transaction_version?: InputMaybe; + property_version?: InputMaybe; +}; + +/** aggregate variance on columns */ +export type CurrentTokenOwnershipsVarianceFields = { + amount?: Maybe; + last_transaction_version?: Maybe; + property_version?: Maybe; +}; + +/** order by variance() on columns of table "current_token_ownerships" */ +export type CurrentTokenOwnershipsVarianceOrderBy = { + amount?: InputMaybe; + last_transaction_version?: InputMaybe; + property_version?: InputMaybe; +}; + +/** columns and relationships of "current_token_pending_claims" */ +export type CurrentTokenPendingClaims = { + amount: Scalars['numeric']; + collection_data_id_hash: Scalars['String']; + collection_id: Scalars['String']; + collection_name: Scalars['String']; + creator_address: Scalars['String']; + /** An object relationship */ + current_collection_data?: Maybe; + /** An object relationship */ + current_collection_v2?: Maybe; + /** An object relationship */ + current_token_data?: Maybe; + /** An object relationship */ + current_token_data_v2?: Maybe; + from_address: Scalars['String']; + last_transaction_timestamp: Scalars['timestamp']; + last_transaction_version: Scalars['bigint']; + name: Scalars['String']; + property_version: Scalars['numeric']; + table_handle: Scalars['String']; + to_address: Scalars['String']; + /** An object relationship */ + token?: Maybe; + token_data_id: Scalars['String']; + token_data_id_hash: Scalars['String']; +}; + +/** Boolean expression to filter rows from the table "current_token_pending_claims". All fields are combined with a logical 'AND'. */ +export type CurrentTokenPendingClaimsBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + amount?: InputMaybe; + collection_data_id_hash?: InputMaybe; + collection_id?: InputMaybe; + collection_name?: InputMaybe; + creator_address?: InputMaybe; + current_collection_data?: InputMaybe; + current_collection_v2?: InputMaybe; + current_token_data?: InputMaybe; + current_token_data_v2?: InputMaybe; + from_address?: InputMaybe; + last_transaction_timestamp?: InputMaybe; + last_transaction_version?: InputMaybe; + name?: InputMaybe; + property_version?: InputMaybe; + table_handle?: InputMaybe; + to_address?: InputMaybe; + token?: InputMaybe; + token_data_id?: InputMaybe; + token_data_id_hash?: InputMaybe; +}; + +/** Ordering options when selecting data from "current_token_pending_claims". */ +export type CurrentTokenPendingClaimsOrderBy = { + amount?: InputMaybe; + collection_data_id_hash?: InputMaybe; + collection_id?: InputMaybe; + collection_name?: InputMaybe; + creator_address?: InputMaybe; + current_collection_data?: InputMaybe; + current_collection_v2?: InputMaybe; + current_token_data?: InputMaybe; + current_token_data_v2?: InputMaybe; + from_address?: InputMaybe; + last_transaction_timestamp?: InputMaybe; + last_transaction_version?: InputMaybe; + name?: InputMaybe; + property_version?: InputMaybe; + table_handle?: InputMaybe; + to_address?: InputMaybe; + token?: InputMaybe; + token_data_id?: InputMaybe; + token_data_id_hash?: InputMaybe; +}; + +/** select columns of table "current_token_pending_claims" */ +export enum CurrentTokenPendingClaimsSelectColumn { + /** column name */ + Amount = 'amount', + /** column name */ + CollectionDataIdHash = 'collection_data_id_hash', + /** column name */ + CollectionId = 'collection_id', + /** column name */ + CollectionName = 'collection_name', + /** column name */ + CreatorAddress = 'creator_address', + /** column name */ + FromAddress = 'from_address', + /** column name */ + LastTransactionTimestamp = 'last_transaction_timestamp', + /** column name */ + LastTransactionVersion = 'last_transaction_version', + /** column name */ + Name = 'name', + /** column name */ + PropertyVersion = 'property_version', + /** column name */ + TableHandle = 'table_handle', + /** column name */ + ToAddress = 'to_address', + /** column name */ + TokenDataId = 'token_data_id', + /** column name */ + TokenDataIdHash = 'token_data_id_hash' +} + +/** Streaming cursor of the table "current_token_pending_claims" */ +export type CurrentTokenPendingClaimsStreamCursorInput = { + /** Stream column input with initial value */ + initial_value: CurrentTokenPendingClaimsStreamCursorValueInput; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type CurrentTokenPendingClaimsStreamCursorValueInput = { + amount?: InputMaybe; + collection_data_id_hash?: InputMaybe; + collection_id?: InputMaybe; + collection_name?: InputMaybe; + creator_address?: InputMaybe; + from_address?: InputMaybe; + last_transaction_timestamp?: InputMaybe; + last_transaction_version?: InputMaybe; + name?: InputMaybe; + property_version?: InputMaybe; + table_handle?: InputMaybe; + to_address?: InputMaybe; + token_data_id?: InputMaybe; + token_data_id_hash?: InputMaybe; +}; + +/** ordering argument of a cursor */ +export enum CursorOrdering { + /** ascending ordering of the cursor */ + Asc = 'ASC', + /** descending ordering of the cursor */ + Desc = 'DESC' +} + +/** columns and relationships of "delegated_staking_activities" */ +export type DelegatedStakingActivities = { + amount: Scalars['numeric']; + delegator_address: Scalars['String']; + event_index: Scalars['bigint']; + event_type: Scalars['String']; + pool_address: Scalars['String']; + transaction_version: Scalars['bigint']; +}; + +/** order by aggregate values of table "delegated_staking_activities" */ +export type DelegatedStakingActivitiesAggregateOrderBy = { + avg?: InputMaybe; + count?: InputMaybe; + max?: InputMaybe; + min?: InputMaybe; + stddev?: InputMaybe; + stddev_pop?: InputMaybe; + stddev_samp?: InputMaybe; + sum?: InputMaybe; + var_pop?: InputMaybe; + var_samp?: InputMaybe; + variance?: InputMaybe; +}; + +/** order by avg() on columns of table "delegated_staking_activities" */ +export type DelegatedStakingActivitiesAvgOrderBy = { + amount?: InputMaybe; + event_index?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** Boolean expression to filter rows from the table "delegated_staking_activities". All fields are combined with a logical 'AND'. */ +export type DelegatedStakingActivitiesBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + amount?: InputMaybe; + delegator_address?: InputMaybe; + event_index?: InputMaybe; + event_type?: InputMaybe; + pool_address?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** order by max() on columns of table "delegated_staking_activities" */ +export type DelegatedStakingActivitiesMaxOrderBy = { + amount?: InputMaybe; + delegator_address?: InputMaybe; + event_index?: InputMaybe; + event_type?: InputMaybe; + pool_address?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** order by min() on columns of table "delegated_staking_activities" */ +export type DelegatedStakingActivitiesMinOrderBy = { + amount?: InputMaybe; + delegator_address?: InputMaybe; + event_index?: InputMaybe; + event_type?: InputMaybe; + pool_address?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** Ordering options when selecting data from "delegated_staking_activities". */ +export type DelegatedStakingActivitiesOrderBy = { + amount?: InputMaybe; + delegator_address?: InputMaybe; + event_index?: InputMaybe; + event_type?: InputMaybe; + pool_address?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** select columns of table "delegated_staking_activities" */ +export enum DelegatedStakingActivitiesSelectColumn { + /** column name */ + Amount = 'amount', + /** column name */ + DelegatorAddress = 'delegator_address', + /** column name */ + EventIndex = 'event_index', + /** column name */ + EventType = 'event_type', + /** column name */ + PoolAddress = 'pool_address', + /** column name */ + TransactionVersion = 'transaction_version' +} + +/** order by stddev() on columns of table "delegated_staking_activities" */ +export type DelegatedStakingActivitiesStddevOrderBy = { + amount?: InputMaybe; + event_index?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** order by stddev_pop() on columns of table "delegated_staking_activities" */ +export type DelegatedStakingActivitiesStddevPopOrderBy = { + amount?: InputMaybe; + event_index?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** order by stddev_samp() on columns of table "delegated_staking_activities" */ +export type DelegatedStakingActivitiesStddevSampOrderBy = { + amount?: InputMaybe; + event_index?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** Streaming cursor of the table "delegated_staking_activities" */ +export type DelegatedStakingActivitiesStreamCursorInput = { + /** Stream column input with initial value */ + initial_value: DelegatedStakingActivitiesStreamCursorValueInput; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type DelegatedStakingActivitiesStreamCursorValueInput = { + amount?: InputMaybe; + delegator_address?: InputMaybe; + event_index?: InputMaybe; + event_type?: InputMaybe; + pool_address?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** order by sum() on columns of table "delegated_staking_activities" */ +export type DelegatedStakingActivitiesSumOrderBy = { + amount?: InputMaybe; + event_index?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** order by var_pop() on columns of table "delegated_staking_activities" */ +export type DelegatedStakingActivitiesVarPopOrderBy = { + amount?: InputMaybe; + event_index?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** order by var_samp() on columns of table "delegated_staking_activities" */ +export type DelegatedStakingActivitiesVarSampOrderBy = { + amount?: InputMaybe; + event_index?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** order by variance() on columns of table "delegated_staking_activities" */ +export type DelegatedStakingActivitiesVarianceOrderBy = { + amount?: InputMaybe; + event_index?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** columns and relationships of "delegated_staking_pools" */ +export type DelegatedStakingPools = { + /** An object relationship */ + current_staking_pool?: Maybe; + first_transaction_version: Scalars['bigint']; + staking_pool_address: Scalars['String']; +}; + +/** Boolean expression to filter rows from the table "delegated_staking_pools". All fields are combined with a logical 'AND'. */ +export type DelegatedStakingPoolsBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + current_staking_pool?: InputMaybe; + first_transaction_version?: InputMaybe; + staking_pool_address?: InputMaybe; +}; + +/** Ordering options when selecting data from "delegated_staking_pools". */ +export type DelegatedStakingPoolsOrderBy = { + current_staking_pool?: InputMaybe; + first_transaction_version?: InputMaybe; + staking_pool_address?: InputMaybe; +}; + +/** select columns of table "delegated_staking_pools" */ +export enum DelegatedStakingPoolsSelectColumn { + /** column name */ + FirstTransactionVersion = 'first_transaction_version', + /** column name */ + StakingPoolAddress = 'staking_pool_address' +} + +/** Streaming cursor of the table "delegated_staking_pools" */ +export type DelegatedStakingPoolsStreamCursorInput = { + /** Stream column input with initial value */ + initial_value: DelegatedStakingPoolsStreamCursorValueInput; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type DelegatedStakingPoolsStreamCursorValueInput = { + first_transaction_version?: InputMaybe; + staking_pool_address?: InputMaybe; +}; + +/** columns and relationships of "delegator_distinct_pool" */ +export type DelegatorDistinctPool = { + /** An object relationship */ + current_pool_balance?: Maybe; + delegator_address?: Maybe; + pool_address?: Maybe; + /** An object relationship */ + staking_pool_metadata?: Maybe; +}; + +/** aggregated selection of "delegator_distinct_pool" */ +export type DelegatorDistinctPoolAggregate = { + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "delegator_distinct_pool" */ +export type DelegatorDistinctPoolAggregateFields = { + count: Scalars['Int']; + max?: Maybe; + min?: Maybe; +}; + + +/** aggregate fields of "delegator_distinct_pool" */ +export type DelegatorDistinctPoolAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** Boolean expression to filter rows from the table "delegator_distinct_pool". All fields are combined with a logical 'AND'. */ +export type DelegatorDistinctPoolBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + current_pool_balance?: InputMaybe; + delegator_address?: InputMaybe; + pool_address?: InputMaybe; + staking_pool_metadata?: InputMaybe; +}; + +/** aggregate max on columns */ +export type DelegatorDistinctPoolMaxFields = { + delegator_address?: Maybe; + pool_address?: Maybe; +}; + +/** aggregate min on columns */ +export type DelegatorDistinctPoolMinFields = { + delegator_address?: Maybe; + pool_address?: Maybe; +}; + +/** Ordering options when selecting data from "delegator_distinct_pool". */ +export type DelegatorDistinctPoolOrderBy = { + current_pool_balance?: InputMaybe; + delegator_address?: InputMaybe; + pool_address?: InputMaybe; + staking_pool_metadata?: InputMaybe; +}; + +/** select columns of table "delegator_distinct_pool" */ +export enum DelegatorDistinctPoolSelectColumn { + /** column name */ + DelegatorAddress = 'delegator_address', + /** column name */ + PoolAddress = 'pool_address' +} + +/** Streaming cursor of the table "delegator_distinct_pool" */ +export type DelegatorDistinctPoolStreamCursorInput = { + /** Stream column input with initial value */ + initial_value: DelegatorDistinctPoolStreamCursorValueInput; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type DelegatorDistinctPoolStreamCursorValueInput = { + delegator_address?: InputMaybe; + pool_address?: InputMaybe; +}; + +/** columns and relationships of "events" */ +export type Events = { + account_address: Scalars['String']; + creation_number: Scalars['bigint']; + data: Scalars['jsonb']; + event_index: Scalars['bigint']; + sequence_number: Scalars['bigint']; + transaction_block_height: Scalars['bigint']; + transaction_version: Scalars['bigint']; + type: Scalars['String']; +}; + + +/** columns and relationships of "events" */ +export type EventsDataArgs = { + path?: InputMaybe; +}; + +/** Boolean expression to filter rows from the table "events". All fields are combined with a logical 'AND'. */ +export type EventsBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + account_address?: InputMaybe; + creation_number?: InputMaybe; + data?: InputMaybe; + event_index?: InputMaybe; + sequence_number?: InputMaybe; + transaction_block_height?: InputMaybe; + transaction_version?: InputMaybe; + type?: InputMaybe; +}; + +/** Ordering options when selecting data from "events". */ +export type EventsOrderBy = { + account_address?: InputMaybe; + creation_number?: InputMaybe; + data?: InputMaybe; + event_index?: InputMaybe; + sequence_number?: InputMaybe; + transaction_block_height?: InputMaybe; + transaction_version?: InputMaybe; + type?: InputMaybe; +}; + +/** select columns of table "events" */ +export enum EventsSelectColumn { + /** column name */ + AccountAddress = 'account_address', + /** column name */ + CreationNumber = 'creation_number', + /** column name */ + Data = 'data', + /** column name */ + EventIndex = 'event_index', + /** column name */ + SequenceNumber = 'sequence_number', + /** column name */ + TransactionBlockHeight = 'transaction_block_height', + /** column name */ + TransactionVersion = 'transaction_version', + /** column name */ + Type = 'type' +} + +/** Streaming cursor of the table "events" */ +export type EventsStreamCursorInput = { + /** Stream column input with initial value */ + initial_value: EventsStreamCursorValueInput; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type EventsStreamCursorValueInput = { + account_address?: InputMaybe; + creation_number?: InputMaybe; + data?: InputMaybe; + event_index?: InputMaybe; + sequence_number?: InputMaybe; + transaction_block_height?: InputMaybe; + transaction_version?: InputMaybe; + type?: InputMaybe; +}; + +/** columns and relationships of "fungible_asset_activities" */ +export type FungibleAssetActivities = { + amount?: Maybe; + asset_type: Scalars['String']; + block_height: Scalars['bigint']; + entry_function_id_str?: Maybe; + event_index: Scalars['bigint']; + gas_fee_payer_address?: Maybe; + is_frozen?: Maybe; + is_gas_fee: Scalars['Boolean']; + is_transaction_success: Scalars['Boolean']; + /** An object relationship */ + metadata?: Maybe; + owner_address: Scalars['String']; + /** An array relationship */ + owner_aptos_names: Array; + /** An aggregate relationship */ + owner_aptos_names_aggregate: CurrentAptosNamesAggregate; + storage_id: Scalars['String']; + storage_refund_amount: Scalars['numeric']; + token_standard: Scalars['String']; + transaction_timestamp: Scalars['timestamp']; + transaction_version: Scalars['bigint']; + type: Scalars['String']; +}; + + +/** columns and relationships of "fungible_asset_activities" */ +export type FungibleAssetActivitiesOwnerAptosNamesArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "fungible_asset_activities" */ +export type FungibleAssetActivitiesOwnerAptosNamesAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + +/** order by aggregate values of table "fungible_asset_activities" */ +export type FungibleAssetActivitiesAggregateOrderBy = { + avg?: InputMaybe; + count?: InputMaybe; + max?: InputMaybe; + min?: InputMaybe; + stddev?: InputMaybe; + stddev_pop?: InputMaybe; + stddev_samp?: InputMaybe; + sum?: InputMaybe; + var_pop?: InputMaybe; + var_samp?: InputMaybe; + variance?: InputMaybe; +}; + +/** order by avg() on columns of table "fungible_asset_activities" */ +export type FungibleAssetActivitiesAvgOrderBy = { + amount?: InputMaybe; + block_height?: InputMaybe; + event_index?: InputMaybe; + storage_refund_amount?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** Boolean expression to filter rows from the table "fungible_asset_activities". All fields are combined with a logical 'AND'. */ +export type FungibleAssetActivitiesBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + amount?: InputMaybe; + asset_type?: InputMaybe; + block_height?: InputMaybe; + entry_function_id_str?: InputMaybe; + event_index?: InputMaybe; + gas_fee_payer_address?: InputMaybe; + is_frozen?: InputMaybe; + is_gas_fee?: InputMaybe; + is_transaction_success?: InputMaybe; + metadata?: InputMaybe; + owner_address?: InputMaybe; + owner_aptos_names?: InputMaybe; + storage_id?: InputMaybe; + storage_refund_amount?: InputMaybe; + token_standard?: InputMaybe; + transaction_timestamp?: InputMaybe; + transaction_version?: InputMaybe; + type?: InputMaybe; +}; + +/** order by max() on columns of table "fungible_asset_activities" */ +export type FungibleAssetActivitiesMaxOrderBy = { + amount?: InputMaybe; + asset_type?: InputMaybe; + block_height?: InputMaybe; + entry_function_id_str?: InputMaybe; + event_index?: InputMaybe; + gas_fee_payer_address?: InputMaybe; + owner_address?: InputMaybe; + storage_id?: InputMaybe; + storage_refund_amount?: InputMaybe; + token_standard?: InputMaybe; + transaction_timestamp?: InputMaybe; + transaction_version?: InputMaybe; + type?: InputMaybe; +}; + +/** order by min() on columns of table "fungible_asset_activities" */ +export type FungibleAssetActivitiesMinOrderBy = { + amount?: InputMaybe; + asset_type?: InputMaybe; + block_height?: InputMaybe; + entry_function_id_str?: InputMaybe; + event_index?: InputMaybe; + gas_fee_payer_address?: InputMaybe; + owner_address?: InputMaybe; + storage_id?: InputMaybe; + storage_refund_amount?: InputMaybe; + token_standard?: InputMaybe; + transaction_timestamp?: InputMaybe; + transaction_version?: InputMaybe; + type?: InputMaybe; +}; + +/** Ordering options when selecting data from "fungible_asset_activities". */ +export type FungibleAssetActivitiesOrderBy = { + amount?: InputMaybe; + asset_type?: InputMaybe; + block_height?: InputMaybe; + entry_function_id_str?: InputMaybe; + event_index?: InputMaybe; + gas_fee_payer_address?: InputMaybe; + is_frozen?: InputMaybe; + is_gas_fee?: InputMaybe; + is_transaction_success?: InputMaybe; + metadata?: InputMaybe; + owner_address?: InputMaybe; + owner_aptos_names_aggregate?: InputMaybe; + storage_id?: InputMaybe; + storage_refund_amount?: InputMaybe; + token_standard?: InputMaybe; + transaction_timestamp?: InputMaybe; + transaction_version?: InputMaybe; + type?: InputMaybe; +}; + +/** select columns of table "fungible_asset_activities" */ +export enum FungibleAssetActivitiesSelectColumn { + /** column name */ + Amount = 'amount', + /** column name */ + AssetType = 'asset_type', + /** column name */ + BlockHeight = 'block_height', + /** column name */ + EntryFunctionIdStr = 'entry_function_id_str', + /** column name */ + EventIndex = 'event_index', + /** column name */ + GasFeePayerAddress = 'gas_fee_payer_address', + /** column name */ + IsFrozen = 'is_frozen', + /** column name */ + IsGasFee = 'is_gas_fee', + /** column name */ + IsTransactionSuccess = 'is_transaction_success', + /** column name */ + OwnerAddress = 'owner_address', + /** column name */ + StorageId = 'storage_id', + /** column name */ + StorageRefundAmount = 'storage_refund_amount', + /** column name */ + TokenStandard = 'token_standard', + /** column name */ + TransactionTimestamp = 'transaction_timestamp', + /** column name */ + TransactionVersion = 'transaction_version', + /** column name */ + Type = 'type' +} + +/** order by stddev() on columns of table "fungible_asset_activities" */ +export type FungibleAssetActivitiesStddevOrderBy = { + amount?: InputMaybe; + block_height?: InputMaybe; + event_index?: InputMaybe; + storage_refund_amount?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** order by stddev_pop() on columns of table "fungible_asset_activities" */ +export type FungibleAssetActivitiesStddevPopOrderBy = { + amount?: InputMaybe; + block_height?: InputMaybe; + event_index?: InputMaybe; + storage_refund_amount?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** order by stddev_samp() on columns of table "fungible_asset_activities" */ +export type FungibleAssetActivitiesStddevSampOrderBy = { + amount?: InputMaybe; + block_height?: InputMaybe; + event_index?: InputMaybe; + storage_refund_amount?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** Streaming cursor of the table "fungible_asset_activities" */ +export type FungibleAssetActivitiesStreamCursorInput = { + /** Stream column input with initial value */ + initial_value: FungibleAssetActivitiesStreamCursorValueInput; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type FungibleAssetActivitiesStreamCursorValueInput = { + amount?: InputMaybe; + asset_type?: InputMaybe; + block_height?: InputMaybe; + entry_function_id_str?: InputMaybe; + event_index?: InputMaybe; + gas_fee_payer_address?: InputMaybe; + is_frozen?: InputMaybe; + is_gas_fee?: InputMaybe; + is_transaction_success?: InputMaybe; + owner_address?: InputMaybe; + storage_id?: InputMaybe; + storage_refund_amount?: InputMaybe; + token_standard?: InputMaybe; + transaction_timestamp?: InputMaybe; + transaction_version?: InputMaybe; + type?: InputMaybe; +}; + +/** order by sum() on columns of table "fungible_asset_activities" */ +export type FungibleAssetActivitiesSumOrderBy = { + amount?: InputMaybe; + block_height?: InputMaybe; + event_index?: InputMaybe; + storage_refund_amount?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** order by var_pop() on columns of table "fungible_asset_activities" */ +export type FungibleAssetActivitiesVarPopOrderBy = { + amount?: InputMaybe; + block_height?: InputMaybe; + event_index?: InputMaybe; + storage_refund_amount?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** order by var_samp() on columns of table "fungible_asset_activities" */ +export type FungibleAssetActivitiesVarSampOrderBy = { + amount?: InputMaybe; + block_height?: InputMaybe; + event_index?: InputMaybe; + storage_refund_amount?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** order by variance() on columns of table "fungible_asset_activities" */ +export type FungibleAssetActivitiesVarianceOrderBy = { + amount?: InputMaybe; + block_height?: InputMaybe; + event_index?: InputMaybe; + storage_refund_amount?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** columns and relationships of "fungible_asset_metadata" */ +export type FungibleAssetMetadata = { + asset_type: Scalars['String']; + creator_address: Scalars['String']; + decimals: Scalars['Int']; + icon_uri?: Maybe; + last_transaction_timestamp: Scalars['timestamp']; + last_transaction_version: Scalars['bigint']; + name: Scalars['String']; + project_uri?: Maybe; + supply_aggregator_table_handle_v1?: Maybe; + supply_aggregator_table_key_v1?: Maybe; + symbol: Scalars['String']; + token_standard: Scalars['String']; +}; + +/** Boolean expression to filter rows from the table "fungible_asset_metadata". All fields are combined with a logical 'AND'. */ +export type FungibleAssetMetadataBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + asset_type?: InputMaybe; + creator_address?: InputMaybe; + decimals?: InputMaybe; + icon_uri?: InputMaybe; + last_transaction_timestamp?: InputMaybe; + last_transaction_version?: InputMaybe; + name?: InputMaybe; + project_uri?: InputMaybe; + supply_aggregator_table_handle_v1?: InputMaybe; + supply_aggregator_table_key_v1?: InputMaybe; + symbol?: InputMaybe; + token_standard?: InputMaybe; +}; + +/** Ordering options when selecting data from "fungible_asset_metadata". */ +export type FungibleAssetMetadataOrderBy = { + asset_type?: InputMaybe; + creator_address?: InputMaybe; + decimals?: InputMaybe; + icon_uri?: InputMaybe; + last_transaction_timestamp?: InputMaybe; + last_transaction_version?: InputMaybe; + name?: InputMaybe; + project_uri?: InputMaybe; + supply_aggregator_table_handle_v1?: InputMaybe; + supply_aggregator_table_key_v1?: InputMaybe; + symbol?: InputMaybe; + token_standard?: InputMaybe; +}; + +/** select columns of table "fungible_asset_metadata" */ +export enum FungibleAssetMetadataSelectColumn { + /** column name */ + AssetType = 'asset_type', + /** column name */ + CreatorAddress = 'creator_address', + /** column name */ + Decimals = 'decimals', + /** column name */ + IconUri = 'icon_uri', + /** column name */ + LastTransactionTimestamp = 'last_transaction_timestamp', + /** column name */ + LastTransactionVersion = 'last_transaction_version', + /** column name */ + Name = 'name', + /** column name */ + ProjectUri = 'project_uri', + /** column name */ + SupplyAggregatorTableHandleV1 = 'supply_aggregator_table_handle_v1', + /** column name */ + SupplyAggregatorTableKeyV1 = 'supply_aggregator_table_key_v1', + /** column name */ + Symbol = 'symbol', + /** column name */ + TokenStandard = 'token_standard' +} + +/** Streaming cursor of the table "fungible_asset_metadata" */ +export type FungibleAssetMetadataStreamCursorInput = { + /** Stream column input with initial value */ + initial_value: FungibleAssetMetadataStreamCursorValueInput; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type FungibleAssetMetadataStreamCursorValueInput = { + asset_type?: InputMaybe; + creator_address?: InputMaybe; + decimals?: InputMaybe; + icon_uri?: InputMaybe; + last_transaction_timestamp?: InputMaybe; + last_transaction_version?: InputMaybe; + name?: InputMaybe; + project_uri?: InputMaybe; + supply_aggregator_table_handle_v1?: InputMaybe; + supply_aggregator_table_key_v1?: InputMaybe; + symbol?: InputMaybe; + token_standard?: InputMaybe; +}; + +/** columns and relationships of "indexer_status" */ +export type IndexerStatus = { + db: Scalars['String']; + is_indexer_up: Scalars['Boolean']; +}; + +/** Boolean expression to filter rows from the table "indexer_status". All fields are combined with a logical 'AND'. */ +export type IndexerStatusBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + db?: InputMaybe; + is_indexer_up?: InputMaybe; +}; + +/** Ordering options when selecting data from "indexer_status". */ +export type IndexerStatusOrderBy = { + db?: InputMaybe; + is_indexer_up?: InputMaybe; +}; + +/** select columns of table "indexer_status" */ +export enum IndexerStatusSelectColumn { + /** column name */ + Db = 'db', + /** column name */ + IsIndexerUp = 'is_indexer_up' +} + +/** Streaming cursor of the table "indexer_status" */ +export type IndexerStatusStreamCursorInput = { + /** Stream column input with initial value */ + initial_value: IndexerStatusStreamCursorValueInput; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type IndexerStatusStreamCursorValueInput = { + db?: InputMaybe; + is_indexer_up?: InputMaybe; +}; + +export type JsonbCastExp = { + String?: InputMaybe; +}; + +/** Boolean expression to compare columns of type "jsonb". All fields are combined with logical 'AND'. */ +export type JsonbComparisonExp = { + _cast?: InputMaybe; + /** is the column contained in the given json value */ + _contained_in?: InputMaybe; + /** does the column contain the given json value at the top level */ + _contains?: InputMaybe; + _eq?: InputMaybe; + _gt?: InputMaybe; + _gte?: InputMaybe; + /** does the string exist as a top-level key in the column */ + _has_key?: InputMaybe; + /** do all of these strings exist as top-level keys in the column */ + _has_keys_all?: InputMaybe>; + /** do any of these strings exist as top-level keys in the column */ + _has_keys_any?: InputMaybe>; + _in?: InputMaybe>; + _is_null?: InputMaybe; + _lt?: InputMaybe; + _lte?: InputMaybe; + _neq?: InputMaybe; + _nin?: InputMaybe>; +}; + +/** columns and relationships of "ledger_infos" */ +export type LedgerInfos = { + chain_id: Scalars['bigint']; +}; + +/** Boolean expression to filter rows from the table "ledger_infos". All fields are combined with a logical 'AND'. */ +export type LedgerInfosBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + chain_id?: InputMaybe; +}; + +/** Ordering options when selecting data from "ledger_infos". */ +export type LedgerInfosOrderBy = { + chain_id?: InputMaybe; +}; + +/** select columns of table "ledger_infos" */ +export enum LedgerInfosSelectColumn { + /** column name */ + ChainId = 'chain_id' +} + +/** Streaming cursor of the table "ledger_infos" */ +export type LedgerInfosStreamCursorInput = { + /** Stream column input with initial value */ + initial_value: LedgerInfosStreamCursorValueInput; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type LedgerInfosStreamCursorValueInput = { + chain_id?: InputMaybe; +}; + +/** columns and relationships of "move_resources" */ +export type MoveResources = { + address: Scalars['String']; + transaction_version: Scalars['bigint']; +}; + +/** aggregated selection of "move_resources" */ +export type MoveResourcesAggregate = { + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "move_resources" */ +export type MoveResourcesAggregateFields = { + avg?: Maybe; + count: Scalars['Int']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "move_resources" */ +export type MoveResourcesAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type MoveResourcesAvgFields = { + transaction_version?: Maybe; +}; + +/** Boolean expression to filter rows from the table "move_resources". All fields are combined with a logical 'AND'. */ +export type MoveResourcesBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + address?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** aggregate max on columns */ +export type MoveResourcesMaxFields = { + address?: Maybe; + transaction_version?: Maybe; +}; + +/** aggregate min on columns */ +export type MoveResourcesMinFields = { + address?: Maybe; + transaction_version?: Maybe; +}; + +/** Ordering options when selecting data from "move_resources". */ +export type MoveResourcesOrderBy = { + address?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** select columns of table "move_resources" */ +export enum MoveResourcesSelectColumn { + /** column name */ + Address = 'address', + /** column name */ + TransactionVersion = 'transaction_version' +} + +/** aggregate stddev on columns */ +export type MoveResourcesStddevFields = { + transaction_version?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type MoveResourcesStddevPopFields = { + transaction_version?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type MoveResourcesStddevSampFields = { + transaction_version?: Maybe; +}; + +/** Streaming cursor of the table "move_resources" */ +export type MoveResourcesStreamCursorInput = { + /** Stream column input with initial value */ + initial_value: MoveResourcesStreamCursorValueInput; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type MoveResourcesStreamCursorValueInput = { + address?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** aggregate sum on columns */ +export type MoveResourcesSumFields = { + transaction_version?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type MoveResourcesVarPopFields = { + transaction_version?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type MoveResourcesVarSampFields = { + transaction_version?: Maybe; +}; + +/** aggregate variance on columns */ +export type MoveResourcesVarianceFields = { + transaction_version?: Maybe; +}; + +/** columns and relationships of "nft_marketplace_v2.current_nft_marketplace_auctions" */ +export type NftMarketplaceV2CurrentNftMarketplaceAuctions = { + buy_it_now_price?: Maybe; + coin_type?: Maybe; + collection_id: Scalars['String']; + contract_address: Scalars['String']; + current_bid_price?: Maybe; + current_bidder?: Maybe; + /** An object relationship */ + current_token_data?: Maybe; + entry_function_id_str: Scalars['String']; + expiration_time: Scalars['numeric']; + fee_schedule_id: Scalars['String']; + is_deleted: Scalars['Boolean']; + last_transaction_timestamp: Scalars['timestamptz']; + last_transaction_version: Scalars['bigint']; + listing_id: Scalars['String']; + marketplace: Scalars['String']; + seller: Scalars['String']; + starting_bid_price: Scalars['numeric']; + token_amount: Scalars['numeric']; + token_data_id: Scalars['String']; + token_standard: Scalars['String']; +}; + +/** Boolean expression to filter rows from the table "nft_marketplace_v2.current_nft_marketplace_auctions". All fields are combined with a logical 'AND'. */ +export type NftMarketplaceV2CurrentNftMarketplaceAuctionsBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + buy_it_now_price?: InputMaybe; + coin_type?: InputMaybe; + collection_id?: InputMaybe; + contract_address?: InputMaybe; + current_bid_price?: InputMaybe; + current_bidder?: InputMaybe; + current_token_data?: InputMaybe; + entry_function_id_str?: InputMaybe; + expiration_time?: InputMaybe; + fee_schedule_id?: InputMaybe; + is_deleted?: InputMaybe; + last_transaction_timestamp?: InputMaybe; + last_transaction_version?: InputMaybe; + listing_id?: InputMaybe; + marketplace?: InputMaybe; + seller?: InputMaybe; + starting_bid_price?: InputMaybe; + token_amount?: InputMaybe; + token_data_id?: InputMaybe; + token_standard?: InputMaybe; +}; + +/** Ordering options when selecting data from "nft_marketplace_v2.current_nft_marketplace_auctions". */ +export type NftMarketplaceV2CurrentNftMarketplaceAuctionsOrderBy = { + buy_it_now_price?: InputMaybe; + coin_type?: InputMaybe; + collection_id?: InputMaybe; + contract_address?: InputMaybe; + current_bid_price?: InputMaybe; + current_bidder?: InputMaybe; + current_token_data?: InputMaybe; + entry_function_id_str?: InputMaybe; + expiration_time?: InputMaybe; + fee_schedule_id?: InputMaybe; + is_deleted?: InputMaybe; + last_transaction_timestamp?: InputMaybe; + last_transaction_version?: InputMaybe; + listing_id?: InputMaybe; + marketplace?: InputMaybe; + seller?: InputMaybe; + starting_bid_price?: InputMaybe; + token_amount?: InputMaybe; + token_data_id?: InputMaybe; + token_standard?: InputMaybe; +}; + +/** select columns of table "nft_marketplace_v2.current_nft_marketplace_auctions" */ +export enum NftMarketplaceV2CurrentNftMarketplaceAuctionsSelectColumn { + /** column name */ + BuyItNowPrice = 'buy_it_now_price', + /** column name */ + CoinType = 'coin_type', + /** column name */ + CollectionId = 'collection_id', + /** column name */ + ContractAddress = 'contract_address', + /** column name */ + CurrentBidPrice = 'current_bid_price', + /** column name */ + CurrentBidder = 'current_bidder', + /** column name */ + EntryFunctionIdStr = 'entry_function_id_str', + /** column name */ + ExpirationTime = 'expiration_time', + /** column name */ + FeeScheduleId = 'fee_schedule_id', + /** column name */ + IsDeleted = 'is_deleted', + /** column name */ + LastTransactionTimestamp = 'last_transaction_timestamp', + /** column name */ + LastTransactionVersion = 'last_transaction_version', + /** column name */ + ListingId = 'listing_id', + /** column name */ + Marketplace = 'marketplace', + /** column name */ + Seller = 'seller', + /** column name */ + StartingBidPrice = 'starting_bid_price', + /** column name */ + TokenAmount = 'token_amount', + /** column name */ + TokenDataId = 'token_data_id', + /** column name */ + TokenStandard = 'token_standard' +} + +/** Streaming cursor of the table "nft_marketplace_v2_current_nft_marketplace_auctions" */ +export type NftMarketplaceV2CurrentNftMarketplaceAuctionsStreamCursorInput = { + /** Stream column input with initial value */ + initial_value: NftMarketplaceV2CurrentNftMarketplaceAuctionsStreamCursorValueInput; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type NftMarketplaceV2CurrentNftMarketplaceAuctionsStreamCursorValueInput = { + buy_it_now_price?: InputMaybe; + coin_type?: InputMaybe; + collection_id?: InputMaybe; + contract_address?: InputMaybe; + current_bid_price?: InputMaybe; + current_bidder?: InputMaybe; + entry_function_id_str?: InputMaybe; + expiration_time?: InputMaybe; + fee_schedule_id?: InputMaybe; + is_deleted?: InputMaybe; + last_transaction_timestamp?: InputMaybe; + last_transaction_version?: InputMaybe; + listing_id?: InputMaybe; + marketplace?: InputMaybe; + seller?: InputMaybe; + starting_bid_price?: InputMaybe; + token_amount?: InputMaybe; + token_data_id?: InputMaybe; + token_standard?: InputMaybe; +}; + +/** columns and relationships of "nft_marketplace_v2.current_nft_marketplace_collection_offers" */ +export type NftMarketplaceV2CurrentNftMarketplaceCollectionOffers = { + buyer: Scalars['String']; + coin_type?: Maybe; + collection_id: Scalars['String']; + collection_offer_id: Scalars['String']; + contract_address: Scalars['String']; + /** An object relationship */ + current_collection_v2?: Maybe; + entry_function_id_str: Scalars['String']; + expiration_time: Scalars['numeric']; + fee_schedule_id: Scalars['String']; + is_deleted: Scalars['Boolean']; + item_price: Scalars['numeric']; + last_transaction_timestamp: Scalars['timestamptz']; + last_transaction_version: Scalars['bigint']; + marketplace: Scalars['String']; + remaining_token_amount: Scalars['numeric']; + token_standard: Scalars['String']; +}; + +/** Boolean expression to filter rows from the table "nft_marketplace_v2.current_nft_marketplace_collection_offers". All fields are combined with a logical 'AND'. */ +export type NftMarketplaceV2CurrentNftMarketplaceCollectionOffersBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + buyer?: InputMaybe; + coin_type?: InputMaybe; + collection_id?: InputMaybe; + collection_offer_id?: InputMaybe; + contract_address?: InputMaybe; + current_collection_v2?: InputMaybe; + entry_function_id_str?: InputMaybe; + expiration_time?: InputMaybe; + fee_schedule_id?: InputMaybe; + is_deleted?: InputMaybe; + item_price?: InputMaybe; + last_transaction_timestamp?: InputMaybe; + last_transaction_version?: InputMaybe; + marketplace?: InputMaybe; + remaining_token_amount?: InputMaybe; + token_standard?: InputMaybe; +}; + +/** Ordering options when selecting data from "nft_marketplace_v2.current_nft_marketplace_collection_offers". */ +export type NftMarketplaceV2CurrentNftMarketplaceCollectionOffersOrderBy = { + buyer?: InputMaybe; + coin_type?: InputMaybe; + collection_id?: InputMaybe; + collection_offer_id?: InputMaybe; + contract_address?: InputMaybe; + current_collection_v2?: InputMaybe; + entry_function_id_str?: InputMaybe; + expiration_time?: InputMaybe; + fee_schedule_id?: InputMaybe; + is_deleted?: InputMaybe; + item_price?: InputMaybe; + last_transaction_timestamp?: InputMaybe; + last_transaction_version?: InputMaybe; + marketplace?: InputMaybe; + remaining_token_amount?: InputMaybe; + token_standard?: InputMaybe; +}; + +/** select columns of table "nft_marketplace_v2.current_nft_marketplace_collection_offers" */ +export enum NftMarketplaceV2CurrentNftMarketplaceCollectionOffersSelectColumn { + /** column name */ + Buyer = 'buyer', + /** column name */ + CoinType = 'coin_type', + /** column name */ + CollectionId = 'collection_id', + /** column name */ + CollectionOfferId = 'collection_offer_id', + /** column name */ + ContractAddress = 'contract_address', + /** column name */ + EntryFunctionIdStr = 'entry_function_id_str', + /** column name */ + ExpirationTime = 'expiration_time', + /** column name */ + FeeScheduleId = 'fee_schedule_id', + /** column name */ + IsDeleted = 'is_deleted', + /** column name */ + ItemPrice = 'item_price', + /** column name */ + LastTransactionTimestamp = 'last_transaction_timestamp', + /** column name */ + LastTransactionVersion = 'last_transaction_version', + /** column name */ + Marketplace = 'marketplace', + /** column name */ + RemainingTokenAmount = 'remaining_token_amount', + /** column name */ + TokenStandard = 'token_standard' +} + +/** Streaming cursor of the table "nft_marketplace_v2_current_nft_marketplace_collection_offers" */ +export type NftMarketplaceV2CurrentNftMarketplaceCollectionOffersStreamCursorInput = { + /** Stream column input with initial value */ + initial_value: NftMarketplaceV2CurrentNftMarketplaceCollectionOffersStreamCursorValueInput; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type NftMarketplaceV2CurrentNftMarketplaceCollectionOffersStreamCursorValueInput = { + buyer?: InputMaybe; + coin_type?: InputMaybe; + collection_id?: InputMaybe; + collection_offer_id?: InputMaybe; + contract_address?: InputMaybe; + entry_function_id_str?: InputMaybe; + expiration_time?: InputMaybe; + fee_schedule_id?: InputMaybe; + is_deleted?: InputMaybe; + item_price?: InputMaybe; + last_transaction_timestamp?: InputMaybe; + last_transaction_version?: InputMaybe; + marketplace?: InputMaybe; + remaining_token_amount?: InputMaybe; + token_standard?: InputMaybe; +}; + +/** columns and relationships of "nft_marketplace_v2.current_nft_marketplace_listings" */ +export type NftMarketplaceV2CurrentNftMarketplaceListings = { + coin_type?: Maybe; + collection_id: Scalars['String']; + contract_address: Scalars['String']; + /** An object relationship */ + current_token_data?: Maybe; + entry_function_id_str: Scalars['String']; + fee_schedule_id: Scalars['String']; + is_deleted: Scalars['Boolean']; + last_transaction_timestamp: Scalars['timestamptz']; + last_transaction_version: Scalars['bigint']; + listing_id: Scalars['String']; + marketplace: Scalars['String']; + price: Scalars['numeric']; + seller: Scalars['String']; + token_amount: Scalars['numeric']; + token_data_id: Scalars['String']; + token_standard: Scalars['String']; +}; + +/** Boolean expression to filter rows from the table "nft_marketplace_v2.current_nft_marketplace_listings". All fields are combined with a logical 'AND'. */ +export type NftMarketplaceV2CurrentNftMarketplaceListingsBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + coin_type?: InputMaybe; + collection_id?: InputMaybe; + contract_address?: InputMaybe; + current_token_data?: InputMaybe; + entry_function_id_str?: InputMaybe; + fee_schedule_id?: InputMaybe; + is_deleted?: InputMaybe; + last_transaction_timestamp?: InputMaybe; + last_transaction_version?: InputMaybe; + listing_id?: InputMaybe; + marketplace?: InputMaybe; + price?: InputMaybe; + seller?: InputMaybe; + token_amount?: InputMaybe; + token_data_id?: InputMaybe; + token_standard?: InputMaybe; +}; + +/** Ordering options when selecting data from "nft_marketplace_v2.current_nft_marketplace_listings". */ +export type NftMarketplaceV2CurrentNftMarketplaceListingsOrderBy = { + coin_type?: InputMaybe; + collection_id?: InputMaybe; + contract_address?: InputMaybe; + current_token_data?: InputMaybe; + entry_function_id_str?: InputMaybe; + fee_schedule_id?: InputMaybe; + is_deleted?: InputMaybe; + last_transaction_timestamp?: InputMaybe; + last_transaction_version?: InputMaybe; + listing_id?: InputMaybe; + marketplace?: InputMaybe; + price?: InputMaybe; + seller?: InputMaybe; + token_amount?: InputMaybe; + token_data_id?: InputMaybe; + token_standard?: InputMaybe; +}; + +/** select columns of table "nft_marketplace_v2.current_nft_marketplace_listings" */ +export enum NftMarketplaceV2CurrentNftMarketplaceListingsSelectColumn { + /** column name */ + CoinType = 'coin_type', + /** column name */ + CollectionId = 'collection_id', + /** column name */ + ContractAddress = 'contract_address', + /** column name */ + EntryFunctionIdStr = 'entry_function_id_str', + /** column name */ + FeeScheduleId = 'fee_schedule_id', + /** column name */ + IsDeleted = 'is_deleted', + /** column name */ + LastTransactionTimestamp = 'last_transaction_timestamp', + /** column name */ + LastTransactionVersion = 'last_transaction_version', + /** column name */ + ListingId = 'listing_id', + /** column name */ + Marketplace = 'marketplace', + /** column name */ + Price = 'price', + /** column name */ + Seller = 'seller', + /** column name */ + TokenAmount = 'token_amount', + /** column name */ + TokenDataId = 'token_data_id', + /** column name */ + TokenStandard = 'token_standard' +} + +/** Streaming cursor of the table "nft_marketplace_v2_current_nft_marketplace_listings" */ +export type NftMarketplaceV2CurrentNftMarketplaceListingsStreamCursorInput = { + /** Stream column input with initial value */ + initial_value: NftMarketplaceV2CurrentNftMarketplaceListingsStreamCursorValueInput; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type NftMarketplaceV2CurrentNftMarketplaceListingsStreamCursorValueInput = { + coin_type?: InputMaybe; + collection_id?: InputMaybe; + contract_address?: InputMaybe; + entry_function_id_str?: InputMaybe; + fee_schedule_id?: InputMaybe; + is_deleted?: InputMaybe; + last_transaction_timestamp?: InputMaybe; + last_transaction_version?: InputMaybe; + listing_id?: InputMaybe; + marketplace?: InputMaybe; + price?: InputMaybe; + seller?: InputMaybe; + token_amount?: InputMaybe; + token_data_id?: InputMaybe; + token_standard?: InputMaybe; +}; + +/** columns and relationships of "nft_marketplace_v2.current_nft_marketplace_token_offers" */ +export type NftMarketplaceV2CurrentNftMarketplaceTokenOffers = { + buyer: Scalars['String']; + coin_type?: Maybe; + collection_id: Scalars['String']; + contract_address: Scalars['String']; + /** An object relationship */ + current_token_data?: Maybe; + entry_function_id_str: Scalars['String']; + expiration_time: Scalars['numeric']; + fee_schedule_id: Scalars['String']; + is_deleted: Scalars['Boolean']; + last_transaction_timestamp: Scalars['timestamptz']; + last_transaction_version: Scalars['bigint']; + marketplace: Scalars['String']; + offer_id: Scalars['String']; + price: Scalars['numeric']; + token_amount: Scalars['numeric']; + token_data_id: Scalars['String']; + token_standard: Scalars['String']; +}; + +/** Boolean expression to filter rows from the table "nft_marketplace_v2.current_nft_marketplace_token_offers". All fields are combined with a logical 'AND'. */ +export type NftMarketplaceV2CurrentNftMarketplaceTokenOffersBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + buyer?: InputMaybe; + coin_type?: InputMaybe; + collection_id?: InputMaybe; + contract_address?: InputMaybe; + current_token_data?: InputMaybe; + entry_function_id_str?: InputMaybe; + expiration_time?: InputMaybe; + fee_schedule_id?: InputMaybe; + is_deleted?: InputMaybe; + last_transaction_timestamp?: InputMaybe; + last_transaction_version?: InputMaybe; + marketplace?: InputMaybe; + offer_id?: InputMaybe; + price?: InputMaybe; + token_amount?: InputMaybe; + token_data_id?: InputMaybe; + token_standard?: InputMaybe; +}; + +/** Ordering options when selecting data from "nft_marketplace_v2.current_nft_marketplace_token_offers". */ +export type NftMarketplaceV2CurrentNftMarketplaceTokenOffersOrderBy = { + buyer?: InputMaybe; + coin_type?: InputMaybe; + collection_id?: InputMaybe; + contract_address?: InputMaybe; + current_token_data?: InputMaybe; + entry_function_id_str?: InputMaybe; + expiration_time?: InputMaybe; + fee_schedule_id?: InputMaybe; + is_deleted?: InputMaybe; + last_transaction_timestamp?: InputMaybe; + last_transaction_version?: InputMaybe; + marketplace?: InputMaybe; + offer_id?: InputMaybe; + price?: InputMaybe; + token_amount?: InputMaybe; + token_data_id?: InputMaybe; + token_standard?: InputMaybe; +}; + +/** select columns of table "nft_marketplace_v2.current_nft_marketplace_token_offers" */ +export enum NftMarketplaceV2CurrentNftMarketplaceTokenOffersSelectColumn { + /** column name */ + Buyer = 'buyer', + /** column name */ + CoinType = 'coin_type', + /** column name */ + CollectionId = 'collection_id', + /** column name */ + ContractAddress = 'contract_address', + /** column name */ + EntryFunctionIdStr = 'entry_function_id_str', + /** column name */ + ExpirationTime = 'expiration_time', + /** column name */ + FeeScheduleId = 'fee_schedule_id', + /** column name */ + IsDeleted = 'is_deleted', + /** column name */ + LastTransactionTimestamp = 'last_transaction_timestamp', + /** column name */ + LastTransactionVersion = 'last_transaction_version', + /** column name */ + Marketplace = 'marketplace', + /** column name */ + OfferId = 'offer_id', + /** column name */ + Price = 'price', + /** column name */ + TokenAmount = 'token_amount', + /** column name */ + TokenDataId = 'token_data_id', + /** column name */ + TokenStandard = 'token_standard' +} + +/** Streaming cursor of the table "nft_marketplace_v2_current_nft_marketplace_token_offers" */ +export type NftMarketplaceV2CurrentNftMarketplaceTokenOffersStreamCursorInput = { + /** Stream column input with initial value */ + initial_value: NftMarketplaceV2CurrentNftMarketplaceTokenOffersStreamCursorValueInput; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type NftMarketplaceV2CurrentNftMarketplaceTokenOffersStreamCursorValueInput = { + buyer?: InputMaybe; + coin_type?: InputMaybe; + collection_id?: InputMaybe; + contract_address?: InputMaybe; + entry_function_id_str?: InputMaybe; + expiration_time?: InputMaybe; + fee_schedule_id?: InputMaybe; + is_deleted?: InputMaybe; + last_transaction_timestamp?: InputMaybe; + last_transaction_version?: InputMaybe; + marketplace?: InputMaybe; + offer_id?: InputMaybe; + price?: InputMaybe; + token_amount?: InputMaybe; + token_data_id?: InputMaybe; + token_standard?: InputMaybe; +}; + +/** columns and relationships of "nft_marketplace_v2.nft_marketplace_activities" */ +export type NftMarketplaceV2NftMarketplaceActivities = { + buyer?: Maybe; + coin_type?: Maybe; + collection_id: Scalars['String']; + collection_name: Scalars['String']; + contract_address: Scalars['String']; + creator_address: Scalars['String']; + /** An object relationship */ + current_token_data?: Maybe; + entry_function_id_str: Scalars['String']; + event_index: Scalars['bigint']; + event_type: Scalars['String']; + fee_schedule_id: Scalars['String']; + marketplace: Scalars['String']; + offer_or_listing_id: Scalars['String']; + price: Scalars['numeric']; + property_version?: Maybe; + seller?: Maybe; + token_amount: Scalars['numeric']; + token_data_id?: Maybe; + token_name?: Maybe; + token_standard: Scalars['String']; + transaction_timestamp: Scalars['timestamptz']; + transaction_version: Scalars['bigint']; +}; + +/** Boolean expression to filter rows from the table "nft_marketplace_v2.nft_marketplace_activities". All fields are combined with a logical 'AND'. */ +export type NftMarketplaceV2NftMarketplaceActivitiesBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + buyer?: InputMaybe; + coin_type?: InputMaybe; + collection_id?: InputMaybe; + collection_name?: InputMaybe; + contract_address?: InputMaybe; + creator_address?: InputMaybe; + current_token_data?: InputMaybe; + entry_function_id_str?: InputMaybe; + event_index?: InputMaybe; + event_type?: InputMaybe; + fee_schedule_id?: InputMaybe; + marketplace?: InputMaybe; + offer_or_listing_id?: InputMaybe; + price?: InputMaybe; + property_version?: InputMaybe; + seller?: InputMaybe; + token_amount?: InputMaybe; + token_data_id?: InputMaybe; + token_name?: InputMaybe; + token_standard?: InputMaybe; + transaction_timestamp?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** Ordering options when selecting data from "nft_marketplace_v2.nft_marketplace_activities". */ +export type NftMarketplaceV2NftMarketplaceActivitiesOrderBy = { + buyer?: InputMaybe; + coin_type?: InputMaybe; + collection_id?: InputMaybe; + collection_name?: InputMaybe; + contract_address?: InputMaybe; + creator_address?: InputMaybe; + current_token_data?: InputMaybe; + entry_function_id_str?: InputMaybe; + event_index?: InputMaybe; + event_type?: InputMaybe; + fee_schedule_id?: InputMaybe; + marketplace?: InputMaybe; + offer_or_listing_id?: InputMaybe; + price?: InputMaybe; + property_version?: InputMaybe; + seller?: InputMaybe; + token_amount?: InputMaybe; + token_data_id?: InputMaybe; + token_name?: InputMaybe; + token_standard?: InputMaybe; + transaction_timestamp?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** select columns of table "nft_marketplace_v2.nft_marketplace_activities" */ +export enum NftMarketplaceV2NftMarketplaceActivitiesSelectColumn { + /** column name */ + Buyer = 'buyer', + /** column name */ + CoinType = 'coin_type', + /** column name */ + CollectionId = 'collection_id', + /** column name */ + CollectionName = 'collection_name', + /** column name */ + ContractAddress = 'contract_address', + /** column name */ + CreatorAddress = 'creator_address', + /** column name */ + EntryFunctionIdStr = 'entry_function_id_str', + /** column name */ + EventIndex = 'event_index', + /** column name */ + EventType = 'event_type', + /** column name */ + FeeScheduleId = 'fee_schedule_id', + /** column name */ + Marketplace = 'marketplace', + /** column name */ + OfferOrListingId = 'offer_or_listing_id', + /** column name */ + Price = 'price', + /** column name */ + PropertyVersion = 'property_version', + /** column name */ + Seller = 'seller', + /** column name */ + TokenAmount = 'token_amount', + /** column name */ + TokenDataId = 'token_data_id', + /** column name */ + TokenName = 'token_name', + /** column name */ + TokenStandard = 'token_standard', + /** column name */ + TransactionTimestamp = 'transaction_timestamp', + /** column name */ + TransactionVersion = 'transaction_version' +} + +/** Streaming cursor of the table "nft_marketplace_v2_nft_marketplace_activities" */ +export type NftMarketplaceV2NftMarketplaceActivitiesStreamCursorInput = { + /** Stream column input with initial value */ + initial_value: NftMarketplaceV2NftMarketplaceActivitiesStreamCursorValueInput; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type NftMarketplaceV2NftMarketplaceActivitiesStreamCursorValueInput = { + buyer?: InputMaybe; + coin_type?: InputMaybe; + collection_id?: InputMaybe; + collection_name?: InputMaybe; + contract_address?: InputMaybe; + creator_address?: InputMaybe; + entry_function_id_str?: InputMaybe; + event_index?: InputMaybe; + event_type?: InputMaybe; + fee_schedule_id?: InputMaybe; + marketplace?: InputMaybe; + offer_or_listing_id?: InputMaybe; + price?: InputMaybe; + property_version?: InputMaybe; + seller?: InputMaybe; + token_amount?: InputMaybe; + token_data_id?: InputMaybe; + token_name?: InputMaybe; + token_standard?: InputMaybe; + transaction_timestamp?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** columns and relationships of "num_active_delegator_per_pool" */ +export type NumActiveDelegatorPerPool = { + num_active_delegator?: Maybe; + pool_address?: Maybe; +}; + +/** Boolean expression to filter rows from the table "num_active_delegator_per_pool". All fields are combined with a logical 'AND'. */ +export type NumActiveDelegatorPerPoolBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + num_active_delegator?: InputMaybe; + pool_address?: InputMaybe; +}; + +/** Ordering options when selecting data from "num_active_delegator_per_pool". */ +export type NumActiveDelegatorPerPoolOrderBy = { + num_active_delegator?: InputMaybe; + pool_address?: InputMaybe; +}; + +/** select columns of table "num_active_delegator_per_pool" */ +export enum NumActiveDelegatorPerPoolSelectColumn { + /** column name */ + NumActiveDelegator = 'num_active_delegator', + /** column name */ + PoolAddress = 'pool_address' +} + +/** Streaming cursor of the table "num_active_delegator_per_pool" */ +export type NumActiveDelegatorPerPoolStreamCursorInput = { + /** Stream column input with initial value */ + initial_value: NumActiveDelegatorPerPoolStreamCursorValueInput; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type NumActiveDelegatorPerPoolStreamCursorValueInput = { + num_active_delegator?: InputMaybe; + pool_address?: InputMaybe; +}; + +/** Boolean expression to compare columns of type "numeric". All fields are combined with logical 'AND'. */ +export type NumericComparisonExp = { + _eq?: InputMaybe; + _gt?: InputMaybe; + _gte?: InputMaybe; + _in?: InputMaybe>; + _is_null?: InputMaybe; + _lt?: InputMaybe; + _lte?: InputMaybe; + _neq?: InputMaybe; + _nin?: InputMaybe>; +}; + +/** column ordering options */ +export enum OrderBy { + /** in ascending order, nulls last */ + Asc = 'asc', + /** in ascending order, nulls first */ + AscNullsFirst = 'asc_nulls_first', + /** in ascending order, nulls last */ + AscNullsLast = 'asc_nulls_last', + /** in descending order, nulls first */ + Desc = 'desc', + /** in descending order, nulls first */ + DescNullsFirst = 'desc_nulls_first', + /** in descending order, nulls last */ + DescNullsLast = 'desc_nulls_last' +} + +/** columns and relationships of "processor_status" */ +export type ProcessorStatus = { + last_success_version: Scalars['bigint']; + last_updated: Scalars['timestamp']; + processor: Scalars['String']; +}; + +/** Boolean expression to filter rows from the table "processor_status". All fields are combined with a logical 'AND'. */ +export type ProcessorStatusBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + last_success_version?: InputMaybe; + last_updated?: InputMaybe; + processor?: InputMaybe; +}; + +/** Ordering options when selecting data from "processor_status". */ +export type ProcessorStatusOrderBy = { + last_success_version?: InputMaybe; + last_updated?: InputMaybe; + processor?: InputMaybe; +}; + +/** select columns of table "processor_status" */ +export enum ProcessorStatusSelectColumn { + /** column name */ + LastSuccessVersion = 'last_success_version', + /** column name */ + LastUpdated = 'last_updated', + /** column name */ + Processor = 'processor' +} + +/** Streaming cursor of the table "processor_status" */ +export type ProcessorStatusStreamCursorInput = { + /** Stream column input with initial value */ + initial_value: ProcessorStatusStreamCursorValueInput; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type ProcessorStatusStreamCursorValueInput = { + last_success_version?: InputMaybe; + last_updated?: InputMaybe; + processor?: InputMaybe; +}; + +/** columns and relationships of "proposal_votes" */ +export type ProposalVotes = { + num_votes: Scalars['numeric']; + proposal_id: Scalars['bigint']; + should_pass: Scalars['Boolean']; + staking_pool_address: Scalars['String']; + transaction_timestamp: Scalars['timestamp']; + transaction_version: Scalars['bigint']; + voter_address: Scalars['String']; +}; + +/** aggregated selection of "proposal_votes" */ +export type ProposalVotesAggregate = { + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "proposal_votes" */ +export type ProposalVotesAggregateFields = { + avg?: Maybe; + count: Scalars['Int']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "proposal_votes" */ +export type ProposalVotesAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type ProposalVotesAvgFields = { + num_votes?: Maybe; + proposal_id?: Maybe; + transaction_version?: Maybe; +}; + +/** Boolean expression to filter rows from the table "proposal_votes". All fields are combined with a logical 'AND'. */ +export type ProposalVotesBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + num_votes?: InputMaybe; + proposal_id?: InputMaybe; + should_pass?: InputMaybe; + staking_pool_address?: InputMaybe; + transaction_timestamp?: InputMaybe; + transaction_version?: InputMaybe; + voter_address?: InputMaybe; +}; + +/** aggregate max on columns */ +export type ProposalVotesMaxFields = { + num_votes?: Maybe; + proposal_id?: Maybe; + staking_pool_address?: Maybe; + transaction_timestamp?: Maybe; + transaction_version?: Maybe; + voter_address?: Maybe; +}; + +/** aggregate min on columns */ +export type ProposalVotesMinFields = { + num_votes?: Maybe; + proposal_id?: Maybe; + staking_pool_address?: Maybe; + transaction_timestamp?: Maybe; + transaction_version?: Maybe; + voter_address?: Maybe; +}; + +/** Ordering options when selecting data from "proposal_votes". */ +export type ProposalVotesOrderBy = { + num_votes?: InputMaybe; + proposal_id?: InputMaybe; + should_pass?: InputMaybe; + staking_pool_address?: InputMaybe; + transaction_timestamp?: InputMaybe; + transaction_version?: InputMaybe; + voter_address?: InputMaybe; +}; + +/** select columns of table "proposal_votes" */ +export enum ProposalVotesSelectColumn { + /** column name */ + NumVotes = 'num_votes', + /** column name */ + ProposalId = 'proposal_id', + /** column name */ + ShouldPass = 'should_pass', + /** column name */ + StakingPoolAddress = 'staking_pool_address', + /** column name */ + TransactionTimestamp = 'transaction_timestamp', + /** column name */ + TransactionVersion = 'transaction_version', + /** column name */ + VoterAddress = 'voter_address' +} + +/** aggregate stddev on columns */ +export type ProposalVotesStddevFields = { + num_votes?: Maybe; + proposal_id?: Maybe; + transaction_version?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type ProposalVotesStddevPopFields = { + num_votes?: Maybe; + proposal_id?: Maybe; + transaction_version?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type ProposalVotesStddevSampFields = { + num_votes?: Maybe; + proposal_id?: Maybe; + transaction_version?: Maybe; +}; + +/** Streaming cursor of the table "proposal_votes" */ +export type ProposalVotesStreamCursorInput = { + /** Stream column input with initial value */ + initial_value: ProposalVotesStreamCursorValueInput; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type ProposalVotesStreamCursorValueInput = { + num_votes?: InputMaybe; + proposal_id?: InputMaybe; + should_pass?: InputMaybe; + staking_pool_address?: InputMaybe; + transaction_timestamp?: InputMaybe; + transaction_version?: InputMaybe; + voter_address?: InputMaybe; +}; + +/** aggregate sum on columns */ +export type ProposalVotesSumFields = { + num_votes?: Maybe; + proposal_id?: Maybe; + transaction_version?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type ProposalVotesVarPopFields = { + num_votes?: Maybe; + proposal_id?: Maybe; + transaction_version?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type ProposalVotesVarSampFields = { + num_votes?: Maybe; + proposal_id?: Maybe; + transaction_version?: Maybe; +}; + +/** aggregate variance on columns */ +export type ProposalVotesVarianceFields = { + num_votes?: Maybe; + proposal_id?: Maybe; + transaction_version?: Maybe; +}; + +export type QueryRoot = { + /** fetch data from the table: "account_transactions" */ + account_transactions: Array; + /** fetch aggregated fields from the table: "account_transactions" */ + account_transactions_aggregate: AccountTransactionsAggregate; + /** fetch data from the table: "account_transactions" using primary key columns */ + account_transactions_by_pk?: Maybe; + /** fetch data from the table: "address_events_summary" */ + address_events_summary: Array; + /** fetch data from the table: "address_version_from_events" */ + address_version_from_events: Array; + /** fetch aggregated fields from the table: "address_version_from_events" */ + address_version_from_events_aggregate: AddressVersionFromEventsAggregate; + /** fetch data from the table: "address_version_from_move_resources" */ + address_version_from_move_resources: Array; + /** fetch aggregated fields from the table: "address_version_from_move_resources" */ + address_version_from_move_resources_aggregate: AddressVersionFromMoveResourcesAggregate; + /** fetch data from the table: "block_metadata_transactions" */ + block_metadata_transactions: Array; + /** fetch data from the table: "block_metadata_transactions" using primary key columns */ + block_metadata_transactions_by_pk?: Maybe; + /** An array relationship */ + coin_activities: Array; + /** An aggregate relationship */ + coin_activities_aggregate: CoinActivitiesAggregate; + /** fetch data from the table: "coin_activities" using primary key columns */ + coin_activities_by_pk?: Maybe; + /** fetch data from the table: "coin_balances" */ + coin_balances: Array; + /** fetch data from the table: "coin_balances" using primary key columns */ + coin_balances_by_pk?: Maybe; + /** fetch data from the table: "coin_infos" */ + coin_infos: Array; + /** fetch data from the table: "coin_infos" using primary key columns */ + coin_infos_by_pk?: Maybe; + /** fetch data from the table: "coin_supply" */ + coin_supply: Array; + /** fetch data from the table: "coin_supply" using primary key columns */ + coin_supply_by_pk?: Maybe; + /** fetch data from the table: "collection_datas" */ + collection_datas: Array; + /** fetch data from the table: "collection_datas" using primary key columns */ + collection_datas_by_pk?: Maybe; + /** fetch data from the table: "current_ans_lookup" */ + current_ans_lookup: Array; + /** fetch data from the table: "current_ans_lookup" using primary key columns */ + current_ans_lookup_by_pk?: Maybe; + /** fetch data from the table: "current_ans_lookup_v2" */ + current_ans_lookup_v2: Array; + /** fetch data from the table: "current_ans_lookup_v2" using primary key columns */ + current_ans_lookup_v2_by_pk?: Maybe; + /** fetch data from the table: "current_aptos_names" */ + current_aptos_names: Array; + /** fetch aggregated fields from the table: "current_aptos_names" */ + current_aptos_names_aggregate: CurrentAptosNamesAggregate; + /** fetch data from the table: "current_coin_balances" */ + current_coin_balances: Array; + /** fetch data from the table: "current_coin_balances" using primary key columns */ + current_coin_balances_by_pk?: Maybe; + /** fetch data from the table: "current_collection_datas" */ + current_collection_datas: Array; + /** fetch data from the table: "current_collection_datas" using primary key columns */ + current_collection_datas_by_pk?: Maybe; + /** fetch data from the table: "current_collection_ownership_v2_view" */ + current_collection_ownership_v2_view: Array; + /** fetch aggregated fields from the table: "current_collection_ownership_v2_view" */ + current_collection_ownership_v2_view_aggregate: CurrentCollectionOwnershipV2ViewAggregate; + /** fetch data from the table: "current_collections_v2" */ + current_collections_v2: Array; + /** fetch data from the table: "current_collections_v2" using primary key columns */ + current_collections_v2_by_pk?: Maybe; + /** fetch data from the table: "current_delegated_staking_pool_balances" */ + current_delegated_staking_pool_balances: Array; + /** fetch data from the table: "current_delegated_staking_pool_balances" using primary key columns */ + current_delegated_staking_pool_balances_by_pk?: Maybe; + /** fetch data from the table: "current_delegated_voter" */ + current_delegated_voter: Array; + /** fetch data from the table: "current_delegated_voter" using primary key columns */ + current_delegated_voter_by_pk?: Maybe; + /** fetch data from the table: "current_delegator_balances" */ + current_delegator_balances: Array; + /** fetch data from the table: "current_delegator_balances" using primary key columns */ + current_delegator_balances_by_pk?: Maybe; + /** fetch data from the table: "current_fungible_asset_balances" */ + current_fungible_asset_balances: Array; + /** fetch aggregated fields from the table: "current_fungible_asset_balances" */ + current_fungible_asset_balances_aggregate: CurrentFungibleAssetBalancesAggregate; + /** fetch data from the table: "current_fungible_asset_balances" using primary key columns */ + current_fungible_asset_balances_by_pk?: Maybe; + /** fetch data from the table: "current_objects" */ + current_objects: Array; + /** fetch data from the table: "current_objects" using primary key columns */ + current_objects_by_pk?: Maybe; + /** fetch data from the table: "current_staking_pool_voter" */ + current_staking_pool_voter: Array; + /** fetch data from the table: "current_staking_pool_voter" using primary key columns */ + current_staking_pool_voter_by_pk?: Maybe; + /** fetch data from the table: "current_table_items" */ + current_table_items: Array; + /** fetch data from the table: "current_table_items" using primary key columns */ + current_table_items_by_pk?: Maybe; + /** fetch data from the table: "current_token_datas" */ + current_token_datas: Array; + /** fetch data from the table: "current_token_datas" using primary key columns */ + current_token_datas_by_pk?: Maybe; + /** fetch data from the table: "current_token_datas_v2" */ + current_token_datas_v2: Array; + /** fetch data from the table: "current_token_datas_v2" using primary key columns */ + current_token_datas_v2_by_pk?: Maybe; + /** fetch data from the table: "current_token_ownerships" */ + current_token_ownerships: Array; + /** fetch aggregated fields from the table: "current_token_ownerships" */ + current_token_ownerships_aggregate: CurrentTokenOwnershipsAggregate; + /** fetch data from the table: "current_token_ownerships" using primary key columns */ + current_token_ownerships_by_pk?: Maybe; + /** fetch data from the table: "current_token_ownerships_v2" */ + current_token_ownerships_v2: Array; + /** fetch aggregated fields from the table: "current_token_ownerships_v2" */ + current_token_ownerships_v2_aggregate: CurrentTokenOwnershipsV2Aggregate; + /** fetch data from the table: "current_token_ownerships_v2" using primary key columns */ + current_token_ownerships_v2_by_pk?: Maybe; + /** fetch data from the table: "current_token_pending_claims" */ + current_token_pending_claims: Array; + /** fetch data from the table: "current_token_pending_claims" using primary key columns */ + current_token_pending_claims_by_pk?: Maybe; + /** An array relationship */ + delegated_staking_activities: Array; + /** fetch data from the table: "delegated_staking_activities" using primary key columns */ + delegated_staking_activities_by_pk?: Maybe; + /** fetch data from the table: "delegated_staking_pools" */ + delegated_staking_pools: Array; + /** fetch data from the table: "delegated_staking_pools" using primary key columns */ + delegated_staking_pools_by_pk?: Maybe; + /** fetch data from the table: "delegator_distinct_pool" */ + delegator_distinct_pool: Array; + /** fetch aggregated fields from the table: "delegator_distinct_pool" */ + delegator_distinct_pool_aggregate: DelegatorDistinctPoolAggregate; + /** fetch data from the table: "events" */ + events: Array; + /** fetch data from the table: "events" using primary key columns */ + events_by_pk?: Maybe; + /** An array relationship */ + fungible_asset_activities: Array; + /** fetch data from the table: "fungible_asset_activities" using primary key columns */ + fungible_asset_activities_by_pk?: Maybe; + /** fetch data from the table: "fungible_asset_metadata" */ + fungible_asset_metadata: Array; + /** fetch data from the table: "fungible_asset_metadata" using primary key columns */ + fungible_asset_metadata_by_pk?: Maybe; + /** fetch data from the table: "indexer_status" */ + indexer_status: Array; + /** fetch data from the table: "indexer_status" using primary key columns */ + indexer_status_by_pk?: Maybe; + /** fetch data from the table: "ledger_infos" */ + ledger_infos: Array; + /** fetch data from the table: "ledger_infos" using primary key columns */ + ledger_infos_by_pk?: Maybe; + /** fetch data from the table: "move_resources" */ + move_resources: Array; + /** fetch aggregated fields from the table: "move_resources" */ + move_resources_aggregate: MoveResourcesAggregate; + /** fetch data from the table: "nft_marketplace_v2.current_nft_marketplace_auctions" */ + nft_marketplace_v2_current_nft_marketplace_auctions: Array; + /** fetch data from the table: "nft_marketplace_v2.current_nft_marketplace_auctions" using primary key columns */ + nft_marketplace_v2_current_nft_marketplace_auctions_by_pk?: Maybe; + /** fetch data from the table: "nft_marketplace_v2.current_nft_marketplace_collection_offers" */ + nft_marketplace_v2_current_nft_marketplace_collection_offers: Array; + /** fetch data from the table: "nft_marketplace_v2.current_nft_marketplace_collection_offers" using primary key columns */ + nft_marketplace_v2_current_nft_marketplace_collection_offers_by_pk?: Maybe; + /** fetch data from the table: "nft_marketplace_v2.current_nft_marketplace_listings" */ + nft_marketplace_v2_current_nft_marketplace_listings: Array; + /** fetch data from the table: "nft_marketplace_v2.current_nft_marketplace_listings" using primary key columns */ + nft_marketplace_v2_current_nft_marketplace_listings_by_pk?: Maybe; + /** fetch data from the table: "nft_marketplace_v2.current_nft_marketplace_token_offers" */ + nft_marketplace_v2_current_nft_marketplace_token_offers: Array; + /** fetch data from the table: "nft_marketplace_v2.current_nft_marketplace_token_offers" using primary key columns */ + nft_marketplace_v2_current_nft_marketplace_token_offers_by_pk?: Maybe; + /** fetch data from the table: "nft_marketplace_v2.nft_marketplace_activities" */ + nft_marketplace_v2_nft_marketplace_activities: Array; + /** fetch data from the table: "nft_marketplace_v2.nft_marketplace_activities" using primary key columns */ + nft_marketplace_v2_nft_marketplace_activities_by_pk?: Maybe; + /** fetch data from the table: "num_active_delegator_per_pool" */ + num_active_delegator_per_pool: Array; + /** fetch data from the table: "processor_status" */ + processor_status: Array; + /** fetch data from the table: "processor_status" using primary key columns */ + processor_status_by_pk?: Maybe; + /** fetch data from the table: "proposal_votes" */ + proposal_votes: Array; + /** fetch aggregated fields from the table: "proposal_votes" */ + proposal_votes_aggregate: ProposalVotesAggregate; + /** fetch data from the table: "proposal_votes" using primary key columns */ + proposal_votes_by_pk?: Maybe; + /** fetch data from the table: "table_items" */ + table_items: Array; + /** fetch data from the table: "table_items" using primary key columns */ + table_items_by_pk?: Maybe; + /** fetch data from the table: "table_metadatas" */ + table_metadatas: Array; + /** fetch data from the table: "table_metadatas" using primary key columns */ + table_metadatas_by_pk?: Maybe; + /** An array relationship */ + token_activities: Array; + /** An aggregate relationship */ + token_activities_aggregate: TokenActivitiesAggregate; + /** fetch data from the table: "token_activities" using primary key columns */ + token_activities_by_pk?: Maybe; + /** An array relationship */ + token_activities_v2: Array; + /** An aggregate relationship */ + token_activities_v2_aggregate: TokenActivitiesV2Aggregate; + /** fetch data from the table: "token_activities_v2" using primary key columns */ + token_activities_v2_by_pk?: Maybe; + /** fetch data from the table: "token_datas" */ + token_datas: Array; + /** fetch data from the table: "token_datas" using primary key columns */ + token_datas_by_pk?: Maybe; + /** fetch data from the table: "token_ownerships" */ + token_ownerships: Array; + /** fetch data from the table: "token_ownerships" using primary key columns */ + token_ownerships_by_pk?: Maybe; + /** fetch data from the table: "tokens" */ + tokens: Array; + /** fetch data from the table: "tokens" using primary key columns */ + tokens_by_pk?: Maybe; + /** fetch data from the table: "user_transactions" */ + user_transactions: Array; + /** fetch data from the table: "user_transactions" using primary key columns */ + user_transactions_by_pk?: Maybe; +}; + + +export type QueryRootAccountTransactionsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootAccountTransactionsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootAccountTransactionsByPkArgs = { + account_address: Scalars['String']; + transaction_version: Scalars['bigint']; +}; + + +export type QueryRootAddressEventsSummaryArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootAddressVersionFromEventsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootAddressVersionFromEventsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootAddressVersionFromMoveResourcesArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootAddressVersionFromMoveResourcesAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootBlockMetadataTransactionsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootBlockMetadataTransactionsByPkArgs = { + version: Scalars['bigint']; +}; + + +export type QueryRootCoinActivitiesArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootCoinActivitiesAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootCoinActivitiesByPkArgs = { + event_account_address: Scalars['String']; + event_creation_number: Scalars['bigint']; + event_sequence_number: Scalars['bigint']; + transaction_version: Scalars['bigint']; +}; + + +export type QueryRootCoinBalancesArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootCoinBalancesByPkArgs = { + coin_type_hash: Scalars['String']; + owner_address: Scalars['String']; + transaction_version: Scalars['bigint']; +}; + + +export type QueryRootCoinInfosArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootCoinInfosByPkArgs = { + coin_type_hash: Scalars['String']; +}; + + +export type QueryRootCoinSupplyArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootCoinSupplyByPkArgs = { + coin_type_hash: Scalars['String']; + transaction_version: Scalars['bigint']; +}; + + +export type QueryRootCollectionDatasArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootCollectionDatasByPkArgs = { + collection_data_id_hash: Scalars['String']; + transaction_version: Scalars['bigint']; +}; + + +export type QueryRootCurrentAnsLookupArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootCurrentAnsLookupByPkArgs = { + domain: Scalars['String']; + subdomain: Scalars['String']; +}; + + +export type QueryRootCurrentAnsLookupV2Args = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootCurrentAnsLookupV2ByPkArgs = { + domain: Scalars['String']; + subdomain: Scalars['String']; + token_standard: Scalars['String']; +}; + + +export type QueryRootCurrentAptosNamesArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootCurrentAptosNamesAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootCurrentCoinBalancesArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootCurrentCoinBalancesByPkArgs = { + coin_type_hash: Scalars['String']; + owner_address: Scalars['String']; +}; + + +export type QueryRootCurrentCollectionDatasArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootCurrentCollectionDatasByPkArgs = { + collection_data_id_hash: Scalars['String']; +}; + + +export type QueryRootCurrentCollectionOwnershipV2ViewArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootCurrentCollectionOwnershipV2ViewAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootCurrentCollectionsV2Args = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootCurrentCollectionsV2ByPkArgs = { + collection_id: Scalars['String']; +}; + + +export type QueryRootCurrentDelegatedStakingPoolBalancesArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootCurrentDelegatedStakingPoolBalancesByPkArgs = { + staking_pool_address: Scalars['String']; +}; + + +export type QueryRootCurrentDelegatedVoterArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootCurrentDelegatedVoterByPkArgs = { + delegation_pool_address: Scalars['String']; + delegator_address: Scalars['String']; +}; + + +export type QueryRootCurrentDelegatorBalancesArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootCurrentDelegatorBalancesByPkArgs = { + delegator_address: Scalars['String']; + pool_address: Scalars['String']; + pool_type: Scalars['String']; + table_handle: Scalars['String']; +}; + + +export type QueryRootCurrentFungibleAssetBalancesArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootCurrentFungibleAssetBalancesAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootCurrentFungibleAssetBalancesByPkArgs = { + storage_id: Scalars['String']; +}; + + +export type QueryRootCurrentObjectsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootCurrentObjectsByPkArgs = { + object_address: Scalars['String']; +}; + + +export type QueryRootCurrentStakingPoolVoterArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootCurrentStakingPoolVoterByPkArgs = { + staking_pool_address: Scalars['String']; +}; + + +export type QueryRootCurrentTableItemsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootCurrentTableItemsByPkArgs = { + key_hash: Scalars['String']; + table_handle: Scalars['String']; +}; + + +export type QueryRootCurrentTokenDatasArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootCurrentTokenDatasByPkArgs = { + token_data_id_hash: Scalars['String']; +}; + + +export type QueryRootCurrentTokenDatasV2Args = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootCurrentTokenDatasV2ByPkArgs = { + token_data_id: Scalars['String']; +}; + + +export type QueryRootCurrentTokenOwnershipsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootCurrentTokenOwnershipsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootCurrentTokenOwnershipsByPkArgs = { + owner_address: Scalars['String']; + property_version: Scalars['numeric']; + token_data_id_hash: Scalars['String']; +}; + + +export type QueryRootCurrentTokenOwnershipsV2Args = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootCurrentTokenOwnershipsV2AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootCurrentTokenOwnershipsV2ByPkArgs = { + owner_address: Scalars['String']; + property_version_v1: Scalars['numeric']; + storage_id: Scalars['String']; + token_data_id: Scalars['String']; +}; + + +export type QueryRootCurrentTokenPendingClaimsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootCurrentTokenPendingClaimsByPkArgs = { + from_address: Scalars['String']; + property_version: Scalars['numeric']; + to_address: Scalars['String']; + token_data_id_hash: Scalars['String']; +}; + + +export type QueryRootDelegatedStakingActivitiesArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootDelegatedStakingActivitiesByPkArgs = { + event_index: Scalars['bigint']; + transaction_version: Scalars['bigint']; +}; + + +export type QueryRootDelegatedStakingPoolsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootDelegatedStakingPoolsByPkArgs = { + staking_pool_address: Scalars['String']; +}; + + +export type QueryRootDelegatorDistinctPoolArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootDelegatorDistinctPoolAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootEventsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootEventsByPkArgs = { + event_index: Scalars['bigint']; + transaction_version: Scalars['bigint']; +}; + + +export type QueryRootFungibleAssetActivitiesArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootFungibleAssetActivitiesByPkArgs = { + event_index: Scalars['bigint']; + transaction_version: Scalars['bigint']; +}; + + +export type QueryRootFungibleAssetMetadataArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootFungibleAssetMetadataByPkArgs = { + asset_type: Scalars['String']; +}; + + +export type QueryRootIndexerStatusArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootIndexerStatusByPkArgs = { + db: Scalars['String']; +}; + + +export type QueryRootLedgerInfosArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootLedgerInfosByPkArgs = { + chain_id: Scalars['bigint']; +}; + + +export type QueryRootMoveResourcesArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootMoveResourcesAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootNftMarketplaceV2CurrentNftMarketplaceAuctionsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootNftMarketplaceV2CurrentNftMarketplaceAuctionsByPkArgs = { + listing_id: Scalars['String']; + token_data_id: Scalars['String']; +}; + + +export type QueryRootNftMarketplaceV2CurrentNftMarketplaceCollectionOffersArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootNftMarketplaceV2CurrentNftMarketplaceCollectionOffersByPkArgs = { + collection_id: Scalars['String']; + collection_offer_id: Scalars['String']; +}; + + +export type QueryRootNftMarketplaceV2CurrentNftMarketplaceListingsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootNftMarketplaceV2CurrentNftMarketplaceListingsByPkArgs = { + listing_id: Scalars['String']; + token_data_id: Scalars['String']; +}; + + +export type QueryRootNftMarketplaceV2CurrentNftMarketplaceTokenOffersArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootNftMarketplaceV2CurrentNftMarketplaceTokenOffersByPkArgs = { + offer_id: Scalars['String']; + token_data_id: Scalars['String']; +}; + + +export type QueryRootNftMarketplaceV2NftMarketplaceActivitiesArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootNftMarketplaceV2NftMarketplaceActivitiesByPkArgs = { + event_index: Scalars['bigint']; + transaction_version: Scalars['bigint']; +}; + + +export type QueryRootNumActiveDelegatorPerPoolArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootProcessorStatusArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootProcessorStatusByPkArgs = { + processor: Scalars['String']; +}; + + +export type QueryRootProposalVotesArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootProposalVotesAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootProposalVotesByPkArgs = { + proposal_id: Scalars['bigint']; + transaction_version: Scalars['bigint']; + voter_address: Scalars['String']; +}; + + +export type QueryRootTableItemsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootTableItemsByPkArgs = { + transaction_version: Scalars['bigint']; + write_set_change_index: Scalars['bigint']; +}; + + +export type QueryRootTableMetadatasArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootTableMetadatasByPkArgs = { + handle: Scalars['String']; +}; + + +export type QueryRootTokenActivitiesArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootTokenActivitiesAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootTokenActivitiesByPkArgs = { + event_account_address: Scalars['String']; + event_creation_number: Scalars['bigint']; + event_sequence_number: Scalars['bigint']; + transaction_version: Scalars['bigint']; +}; + + +export type QueryRootTokenActivitiesV2Args = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootTokenActivitiesV2AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootTokenActivitiesV2ByPkArgs = { + event_index: Scalars['bigint']; + transaction_version: Scalars['bigint']; +}; + + +export type QueryRootTokenDatasArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootTokenDatasByPkArgs = { + token_data_id_hash: Scalars['String']; + transaction_version: Scalars['bigint']; +}; + + +export type QueryRootTokenOwnershipsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootTokenOwnershipsByPkArgs = { + property_version: Scalars['numeric']; + table_handle: Scalars['String']; + token_data_id_hash: Scalars['String']; + transaction_version: Scalars['bigint']; +}; + + +export type QueryRootTokensArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootTokensByPkArgs = { + property_version: Scalars['numeric']; + token_data_id_hash: Scalars['String']; + transaction_version: Scalars['bigint']; +}; + + +export type QueryRootUserTransactionsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootUserTransactionsByPkArgs = { + version: Scalars['bigint']; +}; + +export type SubscriptionRoot = { + /** fetch data from the table: "account_transactions" */ + account_transactions: Array; + /** fetch aggregated fields from the table: "account_transactions" */ + account_transactions_aggregate: AccountTransactionsAggregate; + /** fetch data from the table: "account_transactions" using primary key columns */ + account_transactions_by_pk?: Maybe; + /** fetch data from the table in a streaming manner : "account_transactions" */ + account_transactions_stream: Array; + /** fetch data from the table: "address_events_summary" */ + address_events_summary: Array; + /** fetch data from the table in a streaming manner : "address_events_summary" */ + address_events_summary_stream: Array; + /** fetch data from the table: "address_version_from_events" */ + address_version_from_events: Array; + /** fetch aggregated fields from the table: "address_version_from_events" */ + address_version_from_events_aggregate: AddressVersionFromEventsAggregate; + /** fetch data from the table in a streaming manner : "address_version_from_events" */ + address_version_from_events_stream: Array; + /** fetch data from the table: "address_version_from_move_resources" */ + address_version_from_move_resources: Array; + /** fetch aggregated fields from the table: "address_version_from_move_resources" */ + address_version_from_move_resources_aggregate: AddressVersionFromMoveResourcesAggregate; + /** fetch data from the table in a streaming manner : "address_version_from_move_resources" */ + address_version_from_move_resources_stream: Array; + /** fetch data from the table: "block_metadata_transactions" */ + block_metadata_transactions: Array; + /** fetch data from the table: "block_metadata_transactions" using primary key columns */ + block_metadata_transactions_by_pk?: Maybe; + /** fetch data from the table in a streaming manner : "block_metadata_transactions" */ + block_metadata_transactions_stream: Array; + /** An array relationship */ + coin_activities: Array; + /** An aggregate relationship */ + coin_activities_aggregate: CoinActivitiesAggregate; + /** fetch data from the table: "coin_activities" using primary key columns */ + coin_activities_by_pk?: Maybe; + /** fetch data from the table in a streaming manner : "coin_activities" */ + coin_activities_stream: Array; + /** fetch data from the table: "coin_balances" */ + coin_balances: Array; + /** fetch data from the table: "coin_balances" using primary key columns */ + coin_balances_by_pk?: Maybe; + /** fetch data from the table in a streaming manner : "coin_balances" */ + coin_balances_stream: Array; + /** fetch data from the table: "coin_infos" */ + coin_infos: Array; + /** fetch data from the table: "coin_infos" using primary key columns */ + coin_infos_by_pk?: Maybe; + /** fetch data from the table in a streaming manner : "coin_infos" */ + coin_infos_stream: Array; + /** fetch data from the table: "coin_supply" */ + coin_supply: Array; + /** fetch data from the table: "coin_supply" using primary key columns */ + coin_supply_by_pk?: Maybe; + /** fetch data from the table in a streaming manner : "coin_supply" */ + coin_supply_stream: Array; + /** fetch data from the table: "collection_datas" */ + collection_datas: Array; + /** fetch data from the table: "collection_datas" using primary key columns */ + collection_datas_by_pk?: Maybe; + /** fetch data from the table in a streaming manner : "collection_datas" */ + collection_datas_stream: Array; + /** fetch data from the table: "current_ans_lookup" */ + current_ans_lookup: Array; + /** fetch data from the table: "current_ans_lookup" using primary key columns */ + current_ans_lookup_by_pk?: Maybe; + /** fetch data from the table in a streaming manner : "current_ans_lookup" */ + current_ans_lookup_stream: Array; + /** fetch data from the table: "current_ans_lookup_v2" */ + current_ans_lookup_v2: Array; + /** fetch data from the table: "current_ans_lookup_v2" using primary key columns */ + current_ans_lookup_v2_by_pk?: Maybe; + /** fetch data from the table in a streaming manner : "current_ans_lookup_v2" */ + current_ans_lookup_v2_stream: Array; + /** fetch data from the table: "current_aptos_names" */ + current_aptos_names: Array; + /** fetch aggregated fields from the table: "current_aptos_names" */ + current_aptos_names_aggregate: CurrentAptosNamesAggregate; + /** fetch data from the table in a streaming manner : "current_aptos_names" */ + current_aptos_names_stream: Array; + /** fetch data from the table: "current_coin_balances" */ + current_coin_balances: Array; + /** fetch data from the table: "current_coin_balances" using primary key columns */ + current_coin_balances_by_pk?: Maybe; + /** fetch data from the table in a streaming manner : "current_coin_balances" */ + current_coin_balances_stream: Array; + /** fetch data from the table: "current_collection_datas" */ + current_collection_datas: Array; + /** fetch data from the table: "current_collection_datas" using primary key columns */ + current_collection_datas_by_pk?: Maybe; + /** fetch data from the table in a streaming manner : "current_collection_datas" */ + current_collection_datas_stream: Array; + /** fetch data from the table: "current_collection_ownership_v2_view" */ + current_collection_ownership_v2_view: Array; + /** fetch aggregated fields from the table: "current_collection_ownership_v2_view" */ + current_collection_ownership_v2_view_aggregate: CurrentCollectionOwnershipV2ViewAggregate; + /** fetch data from the table in a streaming manner : "current_collection_ownership_v2_view" */ + current_collection_ownership_v2_view_stream: Array; + /** fetch data from the table: "current_collections_v2" */ + current_collections_v2: Array; + /** fetch data from the table: "current_collections_v2" using primary key columns */ + current_collections_v2_by_pk?: Maybe; + /** fetch data from the table in a streaming manner : "current_collections_v2" */ + current_collections_v2_stream: Array; + /** fetch data from the table: "current_delegated_staking_pool_balances" */ + current_delegated_staking_pool_balances: Array; + /** fetch data from the table: "current_delegated_staking_pool_balances" using primary key columns */ + current_delegated_staking_pool_balances_by_pk?: Maybe; + /** fetch data from the table in a streaming manner : "current_delegated_staking_pool_balances" */ + current_delegated_staking_pool_balances_stream: Array; + /** fetch data from the table: "current_delegated_voter" */ + current_delegated_voter: Array; + /** fetch data from the table: "current_delegated_voter" using primary key columns */ + current_delegated_voter_by_pk?: Maybe; + /** fetch data from the table in a streaming manner : "current_delegated_voter" */ + current_delegated_voter_stream: Array; + /** fetch data from the table: "current_delegator_balances" */ + current_delegator_balances: Array; + /** fetch data from the table: "current_delegator_balances" using primary key columns */ + current_delegator_balances_by_pk?: Maybe; + /** fetch data from the table in a streaming manner : "current_delegator_balances" */ + current_delegator_balances_stream: Array; + /** fetch data from the table: "current_fungible_asset_balances" */ + current_fungible_asset_balances: Array; + /** fetch aggregated fields from the table: "current_fungible_asset_balances" */ + current_fungible_asset_balances_aggregate: CurrentFungibleAssetBalancesAggregate; + /** fetch data from the table: "current_fungible_asset_balances" using primary key columns */ + current_fungible_asset_balances_by_pk?: Maybe; + /** fetch data from the table in a streaming manner : "current_fungible_asset_balances" */ + current_fungible_asset_balances_stream: Array; + /** fetch data from the table: "current_objects" */ + current_objects: Array; + /** fetch data from the table: "current_objects" using primary key columns */ + current_objects_by_pk?: Maybe; + /** fetch data from the table in a streaming manner : "current_objects" */ + current_objects_stream: Array; + /** fetch data from the table: "current_staking_pool_voter" */ + current_staking_pool_voter: Array; + /** fetch data from the table: "current_staking_pool_voter" using primary key columns */ + current_staking_pool_voter_by_pk?: Maybe; + /** fetch data from the table in a streaming manner : "current_staking_pool_voter" */ + current_staking_pool_voter_stream: Array; + /** fetch data from the table: "current_table_items" */ + current_table_items: Array; + /** fetch data from the table: "current_table_items" using primary key columns */ + current_table_items_by_pk?: Maybe; + /** fetch data from the table in a streaming manner : "current_table_items" */ + current_table_items_stream: Array; + /** fetch data from the table: "current_token_datas" */ + current_token_datas: Array; + /** fetch data from the table: "current_token_datas" using primary key columns */ + current_token_datas_by_pk?: Maybe; + /** fetch data from the table in a streaming manner : "current_token_datas" */ + current_token_datas_stream: Array; + /** fetch data from the table: "current_token_datas_v2" */ + current_token_datas_v2: Array; + /** fetch data from the table: "current_token_datas_v2" using primary key columns */ + current_token_datas_v2_by_pk?: Maybe; + /** fetch data from the table in a streaming manner : "current_token_datas_v2" */ + current_token_datas_v2_stream: Array; + /** fetch data from the table: "current_token_ownerships" */ + current_token_ownerships: Array; + /** fetch aggregated fields from the table: "current_token_ownerships" */ + current_token_ownerships_aggregate: CurrentTokenOwnershipsAggregate; + /** fetch data from the table: "current_token_ownerships" using primary key columns */ + current_token_ownerships_by_pk?: Maybe; + /** fetch data from the table in a streaming manner : "current_token_ownerships" */ + current_token_ownerships_stream: Array; + /** fetch data from the table: "current_token_ownerships_v2" */ + current_token_ownerships_v2: Array; + /** fetch aggregated fields from the table: "current_token_ownerships_v2" */ + current_token_ownerships_v2_aggregate: CurrentTokenOwnershipsV2Aggregate; + /** fetch data from the table: "current_token_ownerships_v2" using primary key columns */ + current_token_ownerships_v2_by_pk?: Maybe; + /** fetch data from the table in a streaming manner : "current_token_ownerships_v2" */ + current_token_ownerships_v2_stream: Array; + /** fetch data from the table: "current_token_pending_claims" */ + current_token_pending_claims: Array; + /** fetch data from the table: "current_token_pending_claims" using primary key columns */ + current_token_pending_claims_by_pk?: Maybe; + /** fetch data from the table in a streaming manner : "current_token_pending_claims" */ + current_token_pending_claims_stream: Array; + /** An array relationship */ + delegated_staking_activities: Array; + /** fetch data from the table: "delegated_staking_activities" using primary key columns */ + delegated_staking_activities_by_pk?: Maybe; + /** fetch data from the table in a streaming manner : "delegated_staking_activities" */ + delegated_staking_activities_stream: Array; + /** fetch data from the table: "delegated_staking_pools" */ + delegated_staking_pools: Array; + /** fetch data from the table: "delegated_staking_pools" using primary key columns */ + delegated_staking_pools_by_pk?: Maybe; + /** fetch data from the table in a streaming manner : "delegated_staking_pools" */ + delegated_staking_pools_stream: Array; + /** fetch data from the table: "delegator_distinct_pool" */ + delegator_distinct_pool: Array; + /** fetch aggregated fields from the table: "delegator_distinct_pool" */ + delegator_distinct_pool_aggregate: DelegatorDistinctPoolAggregate; + /** fetch data from the table in a streaming manner : "delegator_distinct_pool" */ + delegator_distinct_pool_stream: Array; + /** fetch data from the table: "events" */ + events: Array; + /** fetch data from the table: "events" using primary key columns */ + events_by_pk?: Maybe; + /** fetch data from the table in a streaming manner : "events" */ + events_stream: Array; + /** An array relationship */ + fungible_asset_activities: Array; + /** fetch data from the table: "fungible_asset_activities" using primary key columns */ + fungible_asset_activities_by_pk?: Maybe; + /** fetch data from the table in a streaming manner : "fungible_asset_activities" */ + fungible_asset_activities_stream: Array; + /** fetch data from the table: "fungible_asset_metadata" */ + fungible_asset_metadata: Array; + /** fetch data from the table: "fungible_asset_metadata" using primary key columns */ + fungible_asset_metadata_by_pk?: Maybe; + /** fetch data from the table in a streaming manner : "fungible_asset_metadata" */ + fungible_asset_metadata_stream: Array; + /** fetch data from the table: "indexer_status" */ + indexer_status: Array; + /** fetch data from the table: "indexer_status" using primary key columns */ + indexer_status_by_pk?: Maybe; + /** fetch data from the table in a streaming manner : "indexer_status" */ + indexer_status_stream: Array; + /** fetch data from the table: "ledger_infos" */ + ledger_infos: Array; + /** fetch data from the table: "ledger_infos" using primary key columns */ + ledger_infos_by_pk?: Maybe; + /** fetch data from the table in a streaming manner : "ledger_infos" */ + ledger_infos_stream: Array; + /** fetch data from the table: "move_resources" */ + move_resources: Array; + /** fetch aggregated fields from the table: "move_resources" */ + move_resources_aggregate: MoveResourcesAggregate; + /** fetch data from the table in a streaming manner : "move_resources" */ + move_resources_stream: Array; + /** fetch data from the table: "nft_marketplace_v2.current_nft_marketplace_auctions" */ + nft_marketplace_v2_current_nft_marketplace_auctions: Array; + /** fetch data from the table: "nft_marketplace_v2.current_nft_marketplace_auctions" using primary key columns */ + nft_marketplace_v2_current_nft_marketplace_auctions_by_pk?: Maybe; + /** fetch data from the table in a streaming manner : "nft_marketplace_v2.current_nft_marketplace_auctions" */ + nft_marketplace_v2_current_nft_marketplace_auctions_stream: Array; + /** fetch data from the table: "nft_marketplace_v2.current_nft_marketplace_collection_offers" */ + nft_marketplace_v2_current_nft_marketplace_collection_offers: Array; + /** fetch data from the table: "nft_marketplace_v2.current_nft_marketplace_collection_offers" using primary key columns */ + nft_marketplace_v2_current_nft_marketplace_collection_offers_by_pk?: Maybe; + /** fetch data from the table in a streaming manner : "nft_marketplace_v2.current_nft_marketplace_collection_offers" */ + nft_marketplace_v2_current_nft_marketplace_collection_offers_stream: Array; + /** fetch data from the table: "nft_marketplace_v2.current_nft_marketplace_listings" */ + nft_marketplace_v2_current_nft_marketplace_listings: Array; + /** fetch data from the table: "nft_marketplace_v2.current_nft_marketplace_listings" using primary key columns */ + nft_marketplace_v2_current_nft_marketplace_listings_by_pk?: Maybe; + /** fetch data from the table in a streaming manner : "nft_marketplace_v2.current_nft_marketplace_listings" */ + nft_marketplace_v2_current_nft_marketplace_listings_stream: Array; + /** fetch data from the table: "nft_marketplace_v2.current_nft_marketplace_token_offers" */ + nft_marketplace_v2_current_nft_marketplace_token_offers: Array; + /** fetch data from the table: "nft_marketplace_v2.current_nft_marketplace_token_offers" using primary key columns */ + nft_marketplace_v2_current_nft_marketplace_token_offers_by_pk?: Maybe; + /** fetch data from the table in a streaming manner : "nft_marketplace_v2.current_nft_marketplace_token_offers" */ + nft_marketplace_v2_current_nft_marketplace_token_offers_stream: Array; + /** fetch data from the table: "nft_marketplace_v2.nft_marketplace_activities" */ + nft_marketplace_v2_nft_marketplace_activities: Array; + /** fetch data from the table: "nft_marketplace_v2.nft_marketplace_activities" using primary key columns */ + nft_marketplace_v2_nft_marketplace_activities_by_pk?: Maybe; + /** fetch data from the table in a streaming manner : "nft_marketplace_v2.nft_marketplace_activities" */ + nft_marketplace_v2_nft_marketplace_activities_stream: Array; + /** fetch data from the table: "num_active_delegator_per_pool" */ + num_active_delegator_per_pool: Array; + /** fetch data from the table in a streaming manner : "num_active_delegator_per_pool" */ + num_active_delegator_per_pool_stream: Array; + /** fetch data from the table: "processor_status" */ + processor_status: Array; + /** fetch data from the table: "processor_status" using primary key columns */ + processor_status_by_pk?: Maybe; + /** fetch data from the table in a streaming manner : "processor_status" */ + processor_status_stream: Array; + /** fetch data from the table: "proposal_votes" */ + proposal_votes: Array; + /** fetch aggregated fields from the table: "proposal_votes" */ + proposal_votes_aggregate: ProposalVotesAggregate; + /** fetch data from the table: "proposal_votes" using primary key columns */ + proposal_votes_by_pk?: Maybe; + /** fetch data from the table in a streaming manner : "proposal_votes" */ + proposal_votes_stream: Array; + /** fetch data from the table: "table_items" */ + table_items: Array; + /** fetch data from the table: "table_items" using primary key columns */ + table_items_by_pk?: Maybe; + /** fetch data from the table in a streaming manner : "table_items" */ + table_items_stream: Array; + /** fetch data from the table: "table_metadatas" */ + table_metadatas: Array; + /** fetch data from the table: "table_metadatas" using primary key columns */ + table_metadatas_by_pk?: Maybe; + /** fetch data from the table in a streaming manner : "table_metadatas" */ + table_metadatas_stream: Array; + /** An array relationship */ + token_activities: Array; + /** An aggregate relationship */ + token_activities_aggregate: TokenActivitiesAggregate; + /** fetch data from the table: "token_activities" using primary key columns */ + token_activities_by_pk?: Maybe; + /** fetch data from the table in a streaming manner : "token_activities" */ + token_activities_stream: Array; + /** An array relationship */ + token_activities_v2: Array; + /** An aggregate relationship */ + token_activities_v2_aggregate: TokenActivitiesV2Aggregate; + /** fetch data from the table: "token_activities_v2" using primary key columns */ + token_activities_v2_by_pk?: Maybe; + /** fetch data from the table in a streaming manner : "token_activities_v2" */ + token_activities_v2_stream: Array; + /** fetch data from the table: "token_datas" */ + token_datas: Array; + /** fetch data from the table: "token_datas" using primary key columns */ + token_datas_by_pk?: Maybe; + /** fetch data from the table in a streaming manner : "token_datas" */ + token_datas_stream: Array; + /** fetch data from the table: "token_ownerships" */ + token_ownerships: Array; + /** fetch data from the table: "token_ownerships" using primary key columns */ + token_ownerships_by_pk?: Maybe; + /** fetch data from the table in a streaming manner : "token_ownerships" */ + token_ownerships_stream: Array; + /** fetch data from the table: "tokens" */ + tokens: Array; + /** fetch data from the table: "tokens" using primary key columns */ + tokens_by_pk?: Maybe; + /** fetch data from the table in a streaming manner : "tokens" */ + tokens_stream: Array; + /** fetch data from the table: "user_transactions" */ + user_transactions: Array; + /** fetch data from the table: "user_transactions" using primary key columns */ + user_transactions_by_pk?: Maybe; + /** fetch data from the table in a streaming manner : "user_transactions" */ + user_transactions_stream: Array; +}; + + +export type SubscriptionRootAccountTransactionsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootAccountTransactionsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootAccountTransactionsByPkArgs = { + account_address: Scalars['String']; + transaction_version: Scalars['bigint']; +}; + + +export type SubscriptionRootAccountTransactionsStreamArgs = { + batch_size: Scalars['Int']; + cursor: Array>; + where?: InputMaybe; +}; + + +export type SubscriptionRootAddressEventsSummaryArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootAddressEventsSummaryStreamArgs = { + batch_size: Scalars['Int']; + cursor: Array>; + where?: InputMaybe; +}; + + +export type SubscriptionRootAddressVersionFromEventsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootAddressVersionFromEventsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootAddressVersionFromEventsStreamArgs = { + batch_size: Scalars['Int']; + cursor: Array>; + where?: InputMaybe; +}; + + +export type SubscriptionRootAddressVersionFromMoveResourcesArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootAddressVersionFromMoveResourcesAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootAddressVersionFromMoveResourcesStreamArgs = { + batch_size: Scalars['Int']; + cursor: Array>; + where?: InputMaybe; +}; + + +export type SubscriptionRootBlockMetadataTransactionsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootBlockMetadataTransactionsByPkArgs = { + version: Scalars['bigint']; +}; + + +export type SubscriptionRootBlockMetadataTransactionsStreamArgs = { + batch_size: Scalars['Int']; + cursor: Array>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCoinActivitiesArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCoinActivitiesAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCoinActivitiesByPkArgs = { + event_account_address: Scalars['String']; + event_creation_number: Scalars['bigint']; + event_sequence_number: Scalars['bigint']; + transaction_version: Scalars['bigint']; +}; + + +export type SubscriptionRootCoinActivitiesStreamArgs = { + batch_size: Scalars['Int']; + cursor: Array>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCoinBalancesArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCoinBalancesByPkArgs = { + coin_type_hash: Scalars['String']; + owner_address: Scalars['String']; + transaction_version: Scalars['bigint']; +}; + + +export type SubscriptionRootCoinBalancesStreamArgs = { + batch_size: Scalars['Int']; + cursor: Array>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCoinInfosArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCoinInfosByPkArgs = { + coin_type_hash: Scalars['String']; +}; + + +export type SubscriptionRootCoinInfosStreamArgs = { + batch_size: Scalars['Int']; + cursor: Array>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCoinSupplyArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCoinSupplyByPkArgs = { + coin_type_hash: Scalars['String']; + transaction_version: Scalars['bigint']; +}; + + +export type SubscriptionRootCoinSupplyStreamArgs = { + batch_size: Scalars['Int']; + cursor: Array>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCollectionDatasArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCollectionDatasByPkArgs = { + collection_data_id_hash: Scalars['String']; + transaction_version: Scalars['bigint']; +}; + + +export type SubscriptionRootCollectionDatasStreamArgs = { + batch_size: Scalars['Int']; + cursor: Array>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCurrentAnsLookupArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCurrentAnsLookupByPkArgs = { + domain: Scalars['String']; + subdomain: Scalars['String']; +}; + + +export type SubscriptionRootCurrentAnsLookupStreamArgs = { + batch_size: Scalars['Int']; + cursor: Array>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCurrentAnsLookupV2Args = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCurrentAnsLookupV2ByPkArgs = { + domain: Scalars['String']; + subdomain: Scalars['String']; + token_standard: Scalars['String']; +}; + + +export type SubscriptionRootCurrentAnsLookupV2StreamArgs = { + batch_size: Scalars['Int']; + cursor: Array>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCurrentAptosNamesArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCurrentAptosNamesAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCurrentAptosNamesStreamArgs = { + batch_size: Scalars['Int']; + cursor: Array>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCurrentCoinBalancesArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCurrentCoinBalancesByPkArgs = { + coin_type_hash: Scalars['String']; + owner_address: Scalars['String']; +}; + + +export type SubscriptionRootCurrentCoinBalancesStreamArgs = { + batch_size: Scalars['Int']; + cursor: Array>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCurrentCollectionDatasArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCurrentCollectionDatasByPkArgs = { + collection_data_id_hash: Scalars['String']; +}; + + +export type SubscriptionRootCurrentCollectionDatasStreamArgs = { + batch_size: Scalars['Int']; + cursor: Array>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCurrentCollectionOwnershipV2ViewArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCurrentCollectionOwnershipV2ViewAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCurrentCollectionOwnershipV2ViewStreamArgs = { + batch_size: Scalars['Int']; + cursor: Array>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCurrentCollectionsV2Args = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCurrentCollectionsV2ByPkArgs = { + collection_id: Scalars['String']; +}; + + +export type SubscriptionRootCurrentCollectionsV2StreamArgs = { + batch_size: Scalars['Int']; + cursor: Array>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCurrentDelegatedStakingPoolBalancesArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCurrentDelegatedStakingPoolBalancesByPkArgs = { + staking_pool_address: Scalars['String']; +}; + + +export type SubscriptionRootCurrentDelegatedStakingPoolBalancesStreamArgs = { + batch_size: Scalars['Int']; + cursor: Array>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCurrentDelegatedVoterArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCurrentDelegatedVoterByPkArgs = { + delegation_pool_address: Scalars['String']; + delegator_address: Scalars['String']; +}; + + +export type SubscriptionRootCurrentDelegatedVoterStreamArgs = { + batch_size: Scalars['Int']; + cursor: Array>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCurrentDelegatorBalancesArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCurrentDelegatorBalancesByPkArgs = { + delegator_address: Scalars['String']; + pool_address: Scalars['String']; + pool_type: Scalars['String']; + table_handle: Scalars['String']; +}; + + +export type SubscriptionRootCurrentDelegatorBalancesStreamArgs = { + batch_size: Scalars['Int']; + cursor: Array>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCurrentFungibleAssetBalancesArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCurrentFungibleAssetBalancesAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCurrentFungibleAssetBalancesByPkArgs = { + storage_id: Scalars['String']; +}; + + +export type SubscriptionRootCurrentFungibleAssetBalancesStreamArgs = { + batch_size: Scalars['Int']; + cursor: Array>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCurrentObjectsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCurrentObjectsByPkArgs = { + object_address: Scalars['String']; +}; + + +export type SubscriptionRootCurrentObjectsStreamArgs = { + batch_size: Scalars['Int']; + cursor: Array>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCurrentStakingPoolVoterArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCurrentStakingPoolVoterByPkArgs = { + staking_pool_address: Scalars['String']; +}; + + +export type SubscriptionRootCurrentStakingPoolVoterStreamArgs = { + batch_size: Scalars['Int']; + cursor: Array>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCurrentTableItemsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCurrentTableItemsByPkArgs = { + key_hash: Scalars['String']; + table_handle: Scalars['String']; +}; + + +export type SubscriptionRootCurrentTableItemsStreamArgs = { + batch_size: Scalars['Int']; + cursor: Array>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCurrentTokenDatasArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCurrentTokenDatasByPkArgs = { + token_data_id_hash: Scalars['String']; +}; + + +export type SubscriptionRootCurrentTokenDatasStreamArgs = { + batch_size: Scalars['Int']; + cursor: Array>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCurrentTokenDatasV2Args = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCurrentTokenDatasV2ByPkArgs = { + token_data_id: Scalars['String']; +}; + + +export type SubscriptionRootCurrentTokenDatasV2StreamArgs = { + batch_size: Scalars['Int']; + cursor: Array>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCurrentTokenOwnershipsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCurrentTokenOwnershipsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCurrentTokenOwnershipsByPkArgs = { + owner_address: Scalars['String']; + property_version: Scalars['numeric']; + token_data_id_hash: Scalars['String']; +}; + + +export type SubscriptionRootCurrentTokenOwnershipsStreamArgs = { + batch_size: Scalars['Int']; + cursor: Array>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCurrentTokenOwnershipsV2Args = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCurrentTokenOwnershipsV2AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCurrentTokenOwnershipsV2ByPkArgs = { + owner_address: Scalars['String']; + property_version_v1: Scalars['numeric']; + storage_id: Scalars['String']; + token_data_id: Scalars['String']; +}; + + +export type SubscriptionRootCurrentTokenOwnershipsV2StreamArgs = { + batch_size: Scalars['Int']; + cursor: Array>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCurrentTokenPendingClaimsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCurrentTokenPendingClaimsByPkArgs = { + from_address: Scalars['String']; + property_version: Scalars['numeric']; + to_address: Scalars['String']; + token_data_id_hash: Scalars['String']; +}; + + +export type SubscriptionRootCurrentTokenPendingClaimsStreamArgs = { + batch_size: Scalars['Int']; + cursor: Array>; + where?: InputMaybe; +}; + + +export type SubscriptionRootDelegatedStakingActivitiesArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootDelegatedStakingActivitiesByPkArgs = { + event_index: Scalars['bigint']; + transaction_version: Scalars['bigint']; +}; + + +export type SubscriptionRootDelegatedStakingActivitiesStreamArgs = { + batch_size: Scalars['Int']; + cursor: Array>; + where?: InputMaybe; +}; + + +export type SubscriptionRootDelegatedStakingPoolsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootDelegatedStakingPoolsByPkArgs = { + staking_pool_address: Scalars['String']; +}; + + +export type SubscriptionRootDelegatedStakingPoolsStreamArgs = { + batch_size: Scalars['Int']; + cursor: Array>; + where?: InputMaybe; +}; + + +export type SubscriptionRootDelegatorDistinctPoolArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootDelegatorDistinctPoolAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootDelegatorDistinctPoolStreamArgs = { + batch_size: Scalars['Int']; + cursor: Array>; + where?: InputMaybe; +}; + + +export type SubscriptionRootEventsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootEventsByPkArgs = { + event_index: Scalars['bigint']; + transaction_version: Scalars['bigint']; +}; + + +export type SubscriptionRootEventsStreamArgs = { + batch_size: Scalars['Int']; + cursor: Array>; + where?: InputMaybe; +}; + + +export type SubscriptionRootFungibleAssetActivitiesArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootFungibleAssetActivitiesByPkArgs = { + event_index: Scalars['bigint']; + transaction_version: Scalars['bigint']; +}; + + +export type SubscriptionRootFungibleAssetActivitiesStreamArgs = { + batch_size: Scalars['Int']; + cursor: Array>; + where?: InputMaybe; +}; + + +export type SubscriptionRootFungibleAssetMetadataArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootFungibleAssetMetadataByPkArgs = { + asset_type: Scalars['String']; +}; + + +export type SubscriptionRootFungibleAssetMetadataStreamArgs = { + batch_size: Scalars['Int']; + cursor: Array>; + where?: InputMaybe; +}; + + +export type SubscriptionRootIndexerStatusArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootIndexerStatusByPkArgs = { + db: Scalars['String']; +}; + + +export type SubscriptionRootIndexerStatusStreamArgs = { + batch_size: Scalars['Int']; + cursor: Array>; + where?: InputMaybe; +}; + + +export type SubscriptionRootLedgerInfosArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootLedgerInfosByPkArgs = { + chain_id: Scalars['bigint']; +}; + + +export type SubscriptionRootLedgerInfosStreamArgs = { + batch_size: Scalars['Int']; + cursor: Array>; + where?: InputMaybe; +}; + + +export type SubscriptionRootMoveResourcesArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootMoveResourcesAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootMoveResourcesStreamArgs = { + batch_size: Scalars['Int']; + cursor: Array>; + where?: InputMaybe; +}; + + +export type SubscriptionRootNftMarketplaceV2CurrentNftMarketplaceAuctionsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootNftMarketplaceV2CurrentNftMarketplaceAuctionsByPkArgs = { + listing_id: Scalars['String']; + token_data_id: Scalars['String']; +}; + + +export type SubscriptionRootNftMarketplaceV2CurrentNftMarketplaceAuctionsStreamArgs = { + batch_size: Scalars['Int']; + cursor: Array>; + where?: InputMaybe; +}; + + +export type SubscriptionRootNftMarketplaceV2CurrentNftMarketplaceCollectionOffersArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootNftMarketplaceV2CurrentNftMarketplaceCollectionOffersByPkArgs = { + collection_id: Scalars['String']; + collection_offer_id: Scalars['String']; +}; + + +export type SubscriptionRootNftMarketplaceV2CurrentNftMarketplaceCollectionOffersStreamArgs = { + batch_size: Scalars['Int']; + cursor: Array>; + where?: InputMaybe; +}; + + +export type SubscriptionRootNftMarketplaceV2CurrentNftMarketplaceListingsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootNftMarketplaceV2CurrentNftMarketplaceListingsByPkArgs = { + listing_id: Scalars['String']; + token_data_id: Scalars['String']; +}; + + +export type SubscriptionRootNftMarketplaceV2CurrentNftMarketplaceListingsStreamArgs = { + batch_size: Scalars['Int']; + cursor: Array>; + where?: InputMaybe; +}; + + +export type SubscriptionRootNftMarketplaceV2CurrentNftMarketplaceTokenOffersArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootNftMarketplaceV2CurrentNftMarketplaceTokenOffersByPkArgs = { + offer_id: Scalars['String']; + token_data_id: Scalars['String']; +}; + + +export type SubscriptionRootNftMarketplaceV2CurrentNftMarketplaceTokenOffersStreamArgs = { + batch_size: Scalars['Int']; + cursor: Array>; + where?: InputMaybe; +}; + + +export type SubscriptionRootNftMarketplaceV2NftMarketplaceActivitiesArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootNftMarketplaceV2NftMarketplaceActivitiesByPkArgs = { + event_index: Scalars['bigint']; + transaction_version: Scalars['bigint']; +}; + + +export type SubscriptionRootNftMarketplaceV2NftMarketplaceActivitiesStreamArgs = { + batch_size: Scalars['Int']; + cursor: Array>; + where?: InputMaybe; +}; + + +export type SubscriptionRootNumActiveDelegatorPerPoolArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootNumActiveDelegatorPerPoolStreamArgs = { + batch_size: Scalars['Int']; + cursor: Array>; + where?: InputMaybe; +}; + + +export type SubscriptionRootProcessorStatusArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootProcessorStatusByPkArgs = { + processor: Scalars['String']; +}; + + +export type SubscriptionRootProcessorStatusStreamArgs = { + batch_size: Scalars['Int']; + cursor: Array>; + where?: InputMaybe; +}; + + +export type SubscriptionRootProposalVotesArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootProposalVotesAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootProposalVotesByPkArgs = { + proposal_id: Scalars['bigint']; + transaction_version: Scalars['bigint']; + voter_address: Scalars['String']; +}; + + +export type SubscriptionRootProposalVotesStreamArgs = { + batch_size: Scalars['Int']; + cursor: Array>; + where?: InputMaybe; +}; + + +export type SubscriptionRootTableItemsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootTableItemsByPkArgs = { + transaction_version: Scalars['bigint']; + write_set_change_index: Scalars['bigint']; +}; + + +export type SubscriptionRootTableItemsStreamArgs = { + batch_size: Scalars['Int']; + cursor: Array>; + where?: InputMaybe; +}; + + +export type SubscriptionRootTableMetadatasArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootTableMetadatasByPkArgs = { + handle: Scalars['String']; +}; + + +export type SubscriptionRootTableMetadatasStreamArgs = { + batch_size: Scalars['Int']; + cursor: Array>; + where?: InputMaybe; +}; + + +export type SubscriptionRootTokenActivitiesArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootTokenActivitiesAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootTokenActivitiesByPkArgs = { + event_account_address: Scalars['String']; + event_creation_number: Scalars['bigint']; + event_sequence_number: Scalars['bigint']; + transaction_version: Scalars['bigint']; +}; + + +export type SubscriptionRootTokenActivitiesStreamArgs = { + batch_size: Scalars['Int']; + cursor: Array>; + where?: InputMaybe; +}; + + +export type SubscriptionRootTokenActivitiesV2Args = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootTokenActivitiesV2AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootTokenActivitiesV2ByPkArgs = { + event_index: Scalars['bigint']; + transaction_version: Scalars['bigint']; +}; + + +export type SubscriptionRootTokenActivitiesV2StreamArgs = { + batch_size: Scalars['Int']; + cursor: Array>; + where?: InputMaybe; +}; + + +export type SubscriptionRootTokenDatasArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootTokenDatasByPkArgs = { + token_data_id_hash: Scalars['String']; + transaction_version: Scalars['bigint']; +}; + + +export type SubscriptionRootTokenDatasStreamArgs = { + batch_size: Scalars['Int']; + cursor: Array>; + where?: InputMaybe; +}; + + +export type SubscriptionRootTokenOwnershipsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootTokenOwnershipsByPkArgs = { + property_version: Scalars['numeric']; + table_handle: Scalars['String']; + token_data_id_hash: Scalars['String']; + transaction_version: Scalars['bigint']; +}; + + +export type SubscriptionRootTokenOwnershipsStreamArgs = { + batch_size: Scalars['Int']; + cursor: Array>; + where?: InputMaybe; +}; + + +export type SubscriptionRootTokensArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootTokensByPkArgs = { + property_version: Scalars['numeric']; + token_data_id_hash: Scalars['String']; + transaction_version: Scalars['bigint']; +}; + + +export type SubscriptionRootTokensStreamArgs = { + batch_size: Scalars['Int']; + cursor: Array>; + where?: InputMaybe; +}; + + +export type SubscriptionRootUserTransactionsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootUserTransactionsByPkArgs = { + version: Scalars['bigint']; +}; + + +export type SubscriptionRootUserTransactionsStreamArgs = { + batch_size: Scalars['Int']; + cursor: Array>; + where?: InputMaybe; +}; + +/** columns and relationships of "table_items" */ +export type TableItems = { + decoded_key: Scalars['jsonb']; + decoded_value?: Maybe; + key: Scalars['String']; + table_handle: Scalars['String']; + transaction_version: Scalars['bigint']; + write_set_change_index: Scalars['bigint']; +}; + + +/** columns and relationships of "table_items" */ +export type TableItemsDecodedKeyArgs = { + path?: InputMaybe; +}; + + +/** columns and relationships of "table_items" */ +export type TableItemsDecodedValueArgs = { + path?: InputMaybe; +}; + +/** Boolean expression to filter rows from the table "table_items". All fields are combined with a logical 'AND'. */ +export type TableItemsBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + decoded_key?: InputMaybe; + decoded_value?: InputMaybe; + key?: InputMaybe; + table_handle?: InputMaybe; + transaction_version?: InputMaybe; + write_set_change_index?: InputMaybe; +}; + +/** Ordering options when selecting data from "table_items". */ +export type TableItemsOrderBy = { + decoded_key?: InputMaybe; + decoded_value?: InputMaybe; + key?: InputMaybe; + table_handle?: InputMaybe; + transaction_version?: InputMaybe; + write_set_change_index?: InputMaybe; +}; + +/** select columns of table "table_items" */ +export enum TableItemsSelectColumn { + /** column name */ + DecodedKey = 'decoded_key', + /** column name */ + DecodedValue = 'decoded_value', + /** column name */ + Key = 'key', + /** column name */ + TableHandle = 'table_handle', + /** column name */ + TransactionVersion = 'transaction_version', + /** column name */ + WriteSetChangeIndex = 'write_set_change_index' +} + +/** Streaming cursor of the table "table_items" */ +export type TableItemsStreamCursorInput = { + /** Stream column input with initial value */ + initial_value: TableItemsStreamCursorValueInput; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type TableItemsStreamCursorValueInput = { + decoded_key?: InputMaybe; + decoded_value?: InputMaybe; + key?: InputMaybe; + table_handle?: InputMaybe; + transaction_version?: InputMaybe; + write_set_change_index?: InputMaybe; +}; + +/** columns and relationships of "table_metadatas" */ +export type TableMetadatas = { + handle: Scalars['String']; + key_type: Scalars['String']; + value_type: Scalars['String']; +}; + +/** Boolean expression to filter rows from the table "table_metadatas". All fields are combined with a logical 'AND'. */ +export type TableMetadatasBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + handle?: InputMaybe; + key_type?: InputMaybe; + value_type?: InputMaybe; +}; + +/** Ordering options when selecting data from "table_metadatas". */ +export type TableMetadatasOrderBy = { + handle?: InputMaybe; + key_type?: InputMaybe; + value_type?: InputMaybe; +}; + +/** select columns of table "table_metadatas" */ +export enum TableMetadatasSelectColumn { + /** column name */ + Handle = 'handle', + /** column name */ + KeyType = 'key_type', + /** column name */ + ValueType = 'value_type' +} + +/** Streaming cursor of the table "table_metadatas" */ +export type TableMetadatasStreamCursorInput = { + /** Stream column input with initial value */ + initial_value: TableMetadatasStreamCursorValueInput; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type TableMetadatasStreamCursorValueInput = { + handle?: InputMaybe; + key_type?: InputMaybe; + value_type?: InputMaybe; +}; + +/** Boolean expression to compare columns of type "timestamp". All fields are combined with logical 'AND'. */ +export type TimestampComparisonExp = { + _eq?: InputMaybe; + _gt?: InputMaybe; + _gte?: InputMaybe; + _in?: InputMaybe>; + _is_null?: InputMaybe; + _lt?: InputMaybe; + _lte?: InputMaybe; + _neq?: InputMaybe; + _nin?: InputMaybe>; +}; + +/** Boolean expression to compare columns of type "timestamptz". All fields are combined with logical 'AND'. */ +export type TimestamptzComparisonExp = { + _eq?: InputMaybe; + _gt?: InputMaybe; + _gte?: InputMaybe; + _in?: InputMaybe>; + _is_null?: InputMaybe; + _lt?: InputMaybe; + _lte?: InputMaybe; + _neq?: InputMaybe; + _nin?: InputMaybe>; +}; + +/** columns and relationships of "token_activities" */ +export type TokenActivities = { + /** An array relationship */ + aptos_names_owner: Array; + /** An aggregate relationship */ + aptos_names_owner_aggregate: CurrentAptosNamesAggregate; + /** An array relationship */ + aptos_names_to: Array; + /** An aggregate relationship */ + aptos_names_to_aggregate: CurrentAptosNamesAggregate; + coin_amount?: Maybe; + coin_type?: Maybe; + collection_data_id_hash: Scalars['String']; + collection_name: Scalars['String']; + creator_address: Scalars['String']; + /** An object relationship */ + current_token_data?: Maybe; + event_account_address: Scalars['String']; + event_creation_number: Scalars['bigint']; + event_index?: Maybe; + event_sequence_number: Scalars['bigint']; + from_address?: Maybe; + name: Scalars['String']; + property_version: Scalars['numeric']; + to_address?: Maybe; + token_amount: Scalars['numeric']; + token_data_id_hash: Scalars['String']; + transaction_timestamp: Scalars['timestamp']; + transaction_version: Scalars['bigint']; + transfer_type: Scalars['String']; +}; + + +/** columns and relationships of "token_activities" */ +export type TokenActivitiesAptosNamesOwnerArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "token_activities" */ +export type TokenActivitiesAptosNamesOwnerAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "token_activities" */ +export type TokenActivitiesAptosNamesToArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "token_activities" */ +export type TokenActivitiesAptosNamesToAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + +/** aggregated selection of "token_activities" */ +export type TokenActivitiesAggregate = { + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "token_activities" */ +export type TokenActivitiesAggregateFields = { + avg?: Maybe; + count: Scalars['Int']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "token_activities" */ +export type TokenActivitiesAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** order by aggregate values of table "token_activities" */ +export type TokenActivitiesAggregateOrderBy = { + avg?: InputMaybe; + count?: InputMaybe; + max?: InputMaybe; + min?: InputMaybe; + stddev?: InputMaybe; + stddev_pop?: InputMaybe; + stddev_samp?: InputMaybe; + sum?: InputMaybe; + var_pop?: InputMaybe; + var_samp?: InputMaybe; + variance?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type TokenActivitiesAvgFields = { + coin_amount?: Maybe; + event_creation_number?: Maybe; + event_index?: Maybe; + event_sequence_number?: Maybe; + property_version?: Maybe; + token_amount?: Maybe; + transaction_version?: Maybe; +}; + +/** order by avg() on columns of table "token_activities" */ +export type TokenActivitiesAvgOrderBy = { + coin_amount?: InputMaybe; + event_creation_number?: InputMaybe; + event_index?: InputMaybe; + event_sequence_number?: InputMaybe; + property_version?: InputMaybe; + token_amount?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** Boolean expression to filter rows from the table "token_activities". All fields are combined with a logical 'AND'. */ +export type TokenActivitiesBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + aptos_names_owner?: InputMaybe; + aptos_names_to?: InputMaybe; + coin_amount?: InputMaybe; + coin_type?: InputMaybe; + collection_data_id_hash?: InputMaybe; + collection_name?: InputMaybe; + creator_address?: InputMaybe; + current_token_data?: InputMaybe; + event_account_address?: InputMaybe; + event_creation_number?: InputMaybe; + event_index?: InputMaybe; + event_sequence_number?: InputMaybe; + from_address?: InputMaybe; + name?: InputMaybe; + property_version?: InputMaybe; + to_address?: InputMaybe; + token_amount?: InputMaybe; + token_data_id_hash?: InputMaybe; + transaction_timestamp?: InputMaybe; + transaction_version?: InputMaybe; + transfer_type?: InputMaybe; +}; + +/** aggregate max on columns */ +export type TokenActivitiesMaxFields = { + coin_amount?: Maybe; + coin_type?: Maybe; + collection_data_id_hash?: Maybe; + collection_name?: Maybe; + creator_address?: Maybe; + event_account_address?: Maybe; + event_creation_number?: Maybe; + event_index?: Maybe; + event_sequence_number?: Maybe; + from_address?: Maybe; + name?: Maybe; + property_version?: Maybe; + to_address?: Maybe; + token_amount?: Maybe; + token_data_id_hash?: Maybe; + transaction_timestamp?: Maybe; + transaction_version?: Maybe; + transfer_type?: Maybe; +}; + +/** order by max() on columns of table "token_activities" */ +export type TokenActivitiesMaxOrderBy = { + coin_amount?: InputMaybe; + coin_type?: InputMaybe; + collection_data_id_hash?: InputMaybe; + collection_name?: InputMaybe; + creator_address?: InputMaybe; + event_account_address?: InputMaybe; + event_creation_number?: InputMaybe; + event_index?: InputMaybe; + event_sequence_number?: InputMaybe; + from_address?: InputMaybe; + name?: InputMaybe; + property_version?: InputMaybe; + to_address?: InputMaybe; + token_amount?: InputMaybe; + token_data_id_hash?: InputMaybe; + transaction_timestamp?: InputMaybe; + transaction_version?: InputMaybe; + transfer_type?: InputMaybe; +}; + +/** aggregate min on columns */ +export type TokenActivitiesMinFields = { + coin_amount?: Maybe; + coin_type?: Maybe; + collection_data_id_hash?: Maybe; + collection_name?: Maybe; + creator_address?: Maybe; + event_account_address?: Maybe; + event_creation_number?: Maybe; + event_index?: Maybe; + event_sequence_number?: Maybe; + from_address?: Maybe; + name?: Maybe; + property_version?: Maybe; + to_address?: Maybe; + token_amount?: Maybe; + token_data_id_hash?: Maybe; + transaction_timestamp?: Maybe; + transaction_version?: Maybe; + transfer_type?: Maybe; +}; + +/** order by min() on columns of table "token_activities" */ +export type TokenActivitiesMinOrderBy = { + coin_amount?: InputMaybe; + coin_type?: InputMaybe; + collection_data_id_hash?: InputMaybe; + collection_name?: InputMaybe; + creator_address?: InputMaybe; + event_account_address?: InputMaybe; + event_creation_number?: InputMaybe; + event_index?: InputMaybe; + event_sequence_number?: InputMaybe; + from_address?: InputMaybe; + name?: InputMaybe; + property_version?: InputMaybe; + to_address?: InputMaybe; + token_amount?: InputMaybe; + token_data_id_hash?: InputMaybe; + transaction_timestamp?: InputMaybe; + transaction_version?: InputMaybe; + transfer_type?: InputMaybe; +}; + +/** Ordering options when selecting data from "token_activities". */ +export type TokenActivitiesOrderBy = { + aptos_names_owner_aggregate?: InputMaybe; + aptos_names_to_aggregate?: InputMaybe; + coin_amount?: InputMaybe; + coin_type?: InputMaybe; + collection_data_id_hash?: InputMaybe; + collection_name?: InputMaybe; + creator_address?: InputMaybe; + current_token_data?: InputMaybe; + event_account_address?: InputMaybe; + event_creation_number?: InputMaybe; + event_index?: InputMaybe; + event_sequence_number?: InputMaybe; + from_address?: InputMaybe; + name?: InputMaybe; + property_version?: InputMaybe; + to_address?: InputMaybe; + token_amount?: InputMaybe; + token_data_id_hash?: InputMaybe; + transaction_timestamp?: InputMaybe; + transaction_version?: InputMaybe; + transfer_type?: InputMaybe; +}; + +/** select columns of table "token_activities" */ +export enum TokenActivitiesSelectColumn { + /** column name */ + CoinAmount = 'coin_amount', + /** column name */ + CoinType = 'coin_type', + /** column name */ + CollectionDataIdHash = 'collection_data_id_hash', + /** column name */ + CollectionName = 'collection_name', + /** column name */ + CreatorAddress = 'creator_address', + /** column name */ + EventAccountAddress = 'event_account_address', + /** column name */ + EventCreationNumber = 'event_creation_number', + /** column name */ + EventIndex = 'event_index', + /** column name */ + EventSequenceNumber = 'event_sequence_number', + /** column name */ + FromAddress = 'from_address', + /** column name */ + Name = 'name', + /** column name */ + PropertyVersion = 'property_version', + /** column name */ + ToAddress = 'to_address', + /** column name */ + TokenAmount = 'token_amount', + /** column name */ + TokenDataIdHash = 'token_data_id_hash', + /** column name */ + TransactionTimestamp = 'transaction_timestamp', + /** column name */ + TransactionVersion = 'transaction_version', + /** column name */ + TransferType = 'transfer_type' +} + +/** aggregate stddev on columns */ +export type TokenActivitiesStddevFields = { + coin_amount?: Maybe; + event_creation_number?: Maybe; + event_index?: Maybe; + event_sequence_number?: Maybe; + property_version?: Maybe; + token_amount?: Maybe; + transaction_version?: Maybe; +}; + +/** order by stddev() on columns of table "token_activities" */ +export type TokenActivitiesStddevOrderBy = { + coin_amount?: InputMaybe; + event_creation_number?: InputMaybe; + event_index?: InputMaybe; + event_sequence_number?: InputMaybe; + property_version?: InputMaybe; + token_amount?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** aggregate stddev_pop on columns */ +export type TokenActivitiesStddevPopFields = { + coin_amount?: Maybe; + event_creation_number?: Maybe; + event_index?: Maybe; + event_sequence_number?: Maybe; + property_version?: Maybe; + token_amount?: Maybe; + transaction_version?: Maybe; +}; + +/** order by stddev_pop() on columns of table "token_activities" */ +export type TokenActivitiesStddevPopOrderBy = { + coin_amount?: InputMaybe; + event_creation_number?: InputMaybe; + event_index?: InputMaybe; + event_sequence_number?: InputMaybe; + property_version?: InputMaybe; + token_amount?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** aggregate stddev_samp on columns */ +export type TokenActivitiesStddevSampFields = { + coin_amount?: Maybe; + event_creation_number?: Maybe; + event_index?: Maybe; + event_sequence_number?: Maybe; + property_version?: Maybe; + token_amount?: Maybe; + transaction_version?: Maybe; +}; + +/** order by stddev_samp() on columns of table "token_activities" */ +export type TokenActivitiesStddevSampOrderBy = { + coin_amount?: InputMaybe; + event_creation_number?: InputMaybe; + event_index?: InputMaybe; + event_sequence_number?: InputMaybe; + property_version?: InputMaybe; + token_amount?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** Streaming cursor of the table "token_activities" */ +export type TokenActivitiesStreamCursorInput = { + /** Stream column input with initial value */ + initial_value: TokenActivitiesStreamCursorValueInput; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type TokenActivitiesStreamCursorValueInput = { + coin_amount?: InputMaybe; + coin_type?: InputMaybe; + collection_data_id_hash?: InputMaybe; + collection_name?: InputMaybe; + creator_address?: InputMaybe; + event_account_address?: InputMaybe; + event_creation_number?: InputMaybe; + event_index?: InputMaybe; + event_sequence_number?: InputMaybe; + from_address?: InputMaybe; + name?: InputMaybe; + property_version?: InputMaybe; + to_address?: InputMaybe; + token_amount?: InputMaybe; + token_data_id_hash?: InputMaybe; + transaction_timestamp?: InputMaybe; + transaction_version?: InputMaybe; + transfer_type?: InputMaybe; +}; + +/** aggregate sum on columns */ +export type TokenActivitiesSumFields = { + coin_amount?: Maybe; + event_creation_number?: Maybe; + event_index?: Maybe; + event_sequence_number?: Maybe; + property_version?: Maybe; + token_amount?: Maybe; + transaction_version?: Maybe; +}; + +/** order by sum() on columns of table "token_activities" */ +export type TokenActivitiesSumOrderBy = { + coin_amount?: InputMaybe; + event_creation_number?: InputMaybe; + event_index?: InputMaybe; + event_sequence_number?: InputMaybe; + property_version?: InputMaybe; + token_amount?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** columns and relationships of "token_activities_v2" */ +export type TokenActivitiesV2 = { + after_value?: Maybe; + /** An array relationship */ + aptos_names_from: Array; + /** An aggregate relationship */ + aptos_names_from_aggregate: CurrentAptosNamesAggregate; + /** An array relationship */ + aptos_names_to: Array; + /** An aggregate relationship */ + aptos_names_to_aggregate: CurrentAptosNamesAggregate; + before_value?: Maybe; + /** An object relationship */ + current_token_data?: Maybe; + entry_function_id_str?: Maybe; + event_account_address: Scalars['String']; + event_index: Scalars['bigint']; + from_address?: Maybe; + is_fungible_v2?: Maybe; + property_version_v1: Scalars['numeric']; + to_address?: Maybe; + token_amount: Scalars['numeric']; + token_data_id: Scalars['String']; + token_standard: Scalars['String']; + transaction_timestamp: Scalars['timestamp']; + transaction_version: Scalars['bigint']; + type: Scalars['String']; +}; + + +/** columns and relationships of "token_activities_v2" */ +export type TokenActivitiesV2AptosNamesFromArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "token_activities_v2" */ +export type TokenActivitiesV2AptosNamesFromAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "token_activities_v2" */ +export type TokenActivitiesV2AptosNamesToArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "token_activities_v2" */ +export type TokenActivitiesV2AptosNamesToAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + +/** aggregated selection of "token_activities_v2" */ +export type TokenActivitiesV2Aggregate = { + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "token_activities_v2" */ +export type TokenActivitiesV2AggregateFields = { + avg?: Maybe; + count: Scalars['Int']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "token_activities_v2" */ +export type TokenActivitiesV2AggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** order by aggregate values of table "token_activities_v2" */ +export type TokenActivitiesV2AggregateOrderBy = { + avg?: InputMaybe; + count?: InputMaybe; + max?: InputMaybe; + min?: InputMaybe; + stddev?: InputMaybe; + stddev_pop?: InputMaybe; + stddev_samp?: InputMaybe; + sum?: InputMaybe; + var_pop?: InputMaybe; + var_samp?: InputMaybe; + variance?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type TokenActivitiesV2AvgFields = { + event_index?: Maybe; + property_version_v1?: Maybe; + token_amount?: Maybe; + transaction_version?: Maybe; +}; + +/** order by avg() on columns of table "token_activities_v2" */ +export type TokenActivitiesV2AvgOrderBy = { + event_index?: InputMaybe; + property_version_v1?: InputMaybe; + token_amount?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** Boolean expression to filter rows from the table "token_activities_v2". All fields are combined with a logical 'AND'. */ +export type TokenActivitiesV2BoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + after_value?: InputMaybe; + aptos_names_from?: InputMaybe; + aptos_names_to?: InputMaybe; + before_value?: InputMaybe; + current_token_data?: InputMaybe; + entry_function_id_str?: InputMaybe; + event_account_address?: InputMaybe; + event_index?: InputMaybe; + from_address?: InputMaybe; + is_fungible_v2?: InputMaybe; + property_version_v1?: InputMaybe; + to_address?: InputMaybe; + token_amount?: InputMaybe; + token_data_id?: InputMaybe; + token_standard?: InputMaybe; + transaction_timestamp?: InputMaybe; + transaction_version?: InputMaybe; + type?: InputMaybe; +}; + +/** aggregate max on columns */ +export type TokenActivitiesV2MaxFields = { + after_value?: Maybe; + before_value?: Maybe; + entry_function_id_str?: Maybe; + event_account_address?: Maybe; + event_index?: Maybe; + from_address?: Maybe; + property_version_v1?: Maybe; + to_address?: Maybe; + token_amount?: Maybe; + token_data_id?: Maybe; + token_standard?: Maybe; + transaction_timestamp?: Maybe; + transaction_version?: Maybe; + type?: Maybe; +}; + +/** order by max() on columns of table "token_activities_v2" */ +export type TokenActivitiesV2MaxOrderBy = { + after_value?: InputMaybe; + before_value?: InputMaybe; + entry_function_id_str?: InputMaybe; + event_account_address?: InputMaybe; + event_index?: InputMaybe; + from_address?: InputMaybe; + property_version_v1?: InputMaybe; + to_address?: InputMaybe; + token_amount?: InputMaybe; + token_data_id?: InputMaybe; + token_standard?: InputMaybe; + transaction_timestamp?: InputMaybe; + transaction_version?: InputMaybe; + type?: InputMaybe; +}; + +/** aggregate min on columns */ +export type TokenActivitiesV2MinFields = { + after_value?: Maybe; + before_value?: Maybe; + entry_function_id_str?: Maybe; + event_account_address?: Maybe; + event_index?: Maybe; + from_address?: Maybe; + property_version_v1?: Maybe; + to_address?: Maybe; + token_amount?: Maybe; + token_data_id?: Maybe; + token_standard?: Maybe; + transaction_timestamp?: Maybe; + transaction_version?: Maybe; + type?: Maybe; +}; + +/** order by min() on columns of table "token_activities_v2" */ +export type TokenActivitiesV2MinOrderBy = { + after_value?: InputMaybe; + before_value?: InputMaybe; + entry_function_id_str?: InputMaybe; + event_account_address?: InputMaybe; + event_index?: InputMaybe; + from_address?: InputMaybe; + property_version_v1?: InputMaybe; + to_address?: InputMaybe; + token_amount?: InputMaybe; + token_data_id?: InputMaybe; + token_standard?: InputMaybe; + transaction_timestamp?: InputMaybe; + transaction_version?: InputMaybe; + type?: InputMaybe; +}; + +/** Ordering options when selecting data from "token_activities_v2". */ +export type TokenActivitiesV2OrderBy = { + after_value?: InputMaybe; + aptos_names_from_aggregate?: InputMaybe; + aptos_names_to_aggregate?: InputMaybe; + before_value?: InputMaybe; + current_token_data?: InputMaybe; + entry_function_id_str?: InputMaybe; + event_account_address?: InputMaybe; + event_index?: InputMaybe; + from_address?: InputMaybe; + is_fungible_v2?: InputMaybe; + property_version_v1?: InputMaybe; + to_address?: InputMaybe; + token_amount?: InputMaybe; + token_data_id?: InputMaybe; + token_standard?: InputMaybe; + transaction_timestamp?: InputMaybe; + transaction_version?: InputMaybe; + type?: InputMaybe; +}; + +/** select columns of table "token_activities_v2" */ +export enum TokenActivitiesV2SelectColumn { + /** column name */ + AfterValue = 'after_value', + /** column name */ + BeforeValue = 'before_value', + /** column name */ + EntryFunctionIdStr = 'entry_function_id_str', + /** column name */ + EventAccountAddress = 'event_account_address', + /** column name */ + EventIndex = 'event_index', + /** column name */ + FromAddress = 'from_address', + /** column name */ + IsFungibleV2 = 'is_fungible_v2', + /** column name */ + PropertyVersionV1 = 'property_version_v1', + /** column name */ + ToAddress = 'to_address', + /** column name */ + TokenAmount = 'token_amount', + /** column name */ + TokenDataId = 'token_data_id', + /** column name */ + TokenStandard = 'token_standard', + /** column name */ + TransactionTimestamp = 'transaction_timestamp', + /** column name */ + TransactionVersion = 'transaction_version', + /** column name */ + Type = 'type' +} + +/** aggregate stddev on columns */ +export type TokenActivitiesV2StddevFields = { + event_index?: Maybe; + property_version_v1?: Maybe; + token_amount?: Maybe; + transaction_version?: Maybe; +}; + +/** order by stddev() on columns of table "token_activities_v2" */ +export type TokenActivitiesV2StddevOrderBy = { + event_index?: InputMaybe; + property_version_v1?: InputMaybe; + token_amount?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** aggregate stddev_pop on columns */ +export type TokenActivitiesV2StddevPopFields = { + event_index?: Maybe; + property_version_v1?: Maybe; + token_amount?: Maybe; + transaction_version?: Maybe; +}; + +/** order by stddev_pop() on columns of table "token_activities_v2" */ +export type TokenActivitiesV2StddevPopOrderBy = { + event_index?: InputMaybe; + property_version_v1?: InputMaybe; + token_amount?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** aggregate stddev_samp on columns */ +export type TokenActivitiesV2StddevSampFields = { + event_index?: Maybe; + property_version_v1?: Maybe; + token_amount?: Maybe; + transaction_version?: Maybe; +}; + +/** order by stddev_samp() on columns of table "token_activities_v2" */ +export type TokenActivitiesV2StddevSampOrderBy = { + event_index?: InputMaybe; + property_version_v1?: InputMaybe; + token_amount?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** Streaming cursor of the table "token_activities_v2" */ +export type TokenActivitiesV2StreamCursorInput = { + /** Stream column input with initial value */ + initial_value: TokenActivitiesV2StreamCursorValueInput; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type TokenActivitiesV2StreamCursorValueInput = { + after_value?: InputMaybe; + before_value?: InputMaybe; + entry_function_id_str?: InputMaybe; + event_account_address?: InputMaybe; + event_index?: InputMaybe; + from_address?: InputMaybe; + is_fungible_v2?: InputMaybe; + property_version_v1?: InputMaybe; + to_address?: InputMaybe; + token_amount?: InputMaybe; + token_data_id?: InputMaybe; + token_standard?: InputMaybe; + transaction_timestamp?: InputMaybe; + transaction_version?: InputMaybe; + type?: InputMaybe; +}; + +/** aggregate sum on columns */ +export type TokenActivitiesV2SumFields = { + event_index?: Maybe; + property_version_v1?: Maybe; + token_amount?: Maybe; + transaction_version?: Maybe; +}; + +/** order by sum() on columns of table "token_activities_v2" */ +export type TokenActivitiesV2SumOrderBy = { + event_index?: InputMaybe; + property_version_v1?: InputMaybe; + token_amount?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** aggregate var_pop on columns */ +export type TokenActivitiesV2VarPopFields = { + event_index?: Maybe; + property_version_v1?: Maybe; + token_amount?: Maybe; + transaction_version?: Maybe; +}; + +/** order by var_pop() on columns of table "token_activities_v2" */ +export type TokenActivitiesV2VarPopOrderBy = { + event_index?: InputMaybe; + property_version_v1?: InputMaybe; + token_amount?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** aggregate var_samp on columns */ +export type TokenActivitiesV2VarSampFields = { + event_index?: Maybe; + property_version_v1?: Maybe; + token_amount?: Maybe; + transaction_version?: Maybe; +}; + +/** order by var_samp() on columns of table "token_activities_v2" */ +export type TokenActivitiesV2VarSampOrderBy = { + event_index?: InputMaybe; + property_version_v1?: InputMaybe; + token_amount?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** aggregate variance on columns */ +export type TokenActivitiesV2VarianceFields = { + event_index?: Maybe; + property_version_v1?: Maybe; + token_amount?: Maybe; + transaction_version?: Maybe; +}; + +/** order by variance() on columns of table "token_activities_v2" */ +export type TokenActivitiesV2VarianceOrderBy = { + event_index?: InputMaybe; + property_version_v1?: InputMaybe; + token_amount?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** aggregate var_pop on columns */ +export type TokenActivitiesVarPopFields = { + coin_amount?: Maybe; + event_creation_number?: Maybe; + event_index?: Maybe; + event_sequence_number?: Maybe; + property_version?: Maybe; + token_amount?: Maybe; + transaction_version?: Maybe; +}; + +/** order by var_pop() on columns of table "token_activities" */ +export type TokenActivitiesVarPopOrderBy = { + coin_amount?: InputMaybe; + event_creation_number?: InputMaybe; + event_index?: InputMaybe; + event_sequence_number?: InputMaybe; + property_version?: InputMaybe; + token_amount?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** aggregate var_samp on columns */ +export type TokenActivitiesVarSampFields = { + coin_amount?: Maybe; + event_creation_number?: Maybe; + event_index?: Maybe; + event_sequence_number?: Maybe; + property_version?: Maybe; + token_amount?: Maybe; + transaction_version?: Maybe; +}; + +/** order by var_samp() on columns of table "token_activities" */ +export type TokenActivitiesVarSampOrderBy = { + coin_amount?: InputMaybe; + event_creation_number?: InputMaybe; + event_index?: InputMaybe; + event_sequence_number?: InputMaybe; + property_version?: InputMaybe; + token_amount?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** aggregate variance on columns */ +export type TokenActivitiesVarianceFields = { + coin_amount?: Maybe; + event_creation_number?: Maybe; + event_index?: Maybe; + event_sequence_number?: Maybe; + property_version?: Maybe; + token_amount?: Maybe; + transaction_version?: Maybe; +}; + +/** order by variance() on columns of table "token_activities" */ +export type TokenActivitiesVarianceOrderBy = { + coin_amount?: InputMaybe; + event_creation_number?: InputMaybe; + event_index?: InputMaybe; + event_sequence_number?: InputMaybe; + property_version?: InputMaybe; + token_amount?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** columns and relationships of "token_datas" */ +export type TokenDatas = { + collection_data_id_hash: Scalars['String']; + collection_name: Scalars['String']; + creator_address: Scalars['String']; + default_properties: Scalars['jsonb']; + description: Scalars['String']; + description_mutable: Scalars['Boolean']; + largest_property_version: Scalars['numeric']; + maximum: Scalars['numeric']; + maximum_mutable: Scalars['Boolean']; + metadata_uri: Scalars['String']; + name: Scalars['String']; + payee_address: Scalars['String']; + properties_mutable: Scalars['Boolean']; + royalty_mutable: Scalars['Boolean']; + royalty_points_denominator: Scalars['numeric']; + royalty_points_numerator: Scalars['numeric']; + supply: Scalars['numeric']; + token_data_id_hash: Scalars['String']; + transaction_timestamp: Scalars['timestamp']; + transaction_version: Scalars['bigint']; + uri_mutable: Scalars['Boolean']; +}; + + +/** columns and relationships of "token_datas" */ +export type TokenDatasDefaultPropertiesArgs = { + path?: InputMaybe; +}; + +/** Boolean expression to filter rows from the table "token_datas". All fields are combined with a logical 'AND'. */ +export type TokenDatasBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + collection_data_id_hash?: InputMaybe; + collection_name?: InputMaybe; + creator_address?: InputMaybe; + default_properties?: InputMaybe; + description?: InputMaybe; + description_mutable?: InputMaybe; + largest_property_version?: InputMaybe; + maximum?: InputMaybe; + maximum_mutable?: InputMaybe; + metadata_uri?: InputMaybe; + name?: InputMaybe; + payee_address?: InputMaybe; + properties_mutable?: InputMaybe; + royalty_mutable?: InputMaybe; + royalty_points_denominator?: InputMaybe; + royalty_points_numerator?: InputMaybe; + supply?: InputMaybe; + token_data_id_hash?: InputMaybe; + transaction_timestamp?: InputMaybe; + transaction_version?: InputMaybe; + uri_mutable?: InputMaybe; +}; + +/** Ordering options when selecting data from "token_datas". */ +export type TokenDatasOrderBy = { + collection_data_id_hash?: InputMaybe; + collection_name?: InputMaybe; + creator_address?: InputMaybe; + default_properties?: InputMaybe; + description?: InputMaybe; + description_mutable?: InputMaybe; + largest_property_version?: InputMaybe; + maximum?: InputMaybe; + maximum_mutable?: InputMaybe; + metadata_uri?: InputMaybe; + name?: InputMaybe; + payee_address?: InputMaybe; + properties_mutable?: InputMaybe; + royalty_mutable?: InputMaybe; + royalty_points_denominator?: InputMaybe; + royalty_points_numerator?: InputMaybe; + supply?: InputMaybe; + token_data_id_hash?: InputMaybe; + transaction_timestamp?: InputMaybe; + transaction_version?: InputMaybe; + uri_mutable?: InputMaybe; +}; + +/** select columns of table "token_datas" */ +export enum TokenDatasSelectColumn { + /** column name */ + CollectionDataIdHash = 'collection_data_id_hash', + /** column name */ + CollectionName = 'collection_name', + /** column name */ + CreatorAddress = 'creator_address', + /** column name */ + DefaultProperties = 'default_properties', + /** column name */ + Description = 'description', + /** column name */ + DescriptionMutable = 'description_mutable', + /** column name */ + LargestPropertyVersion = 'largest_property_version', + /** column name */ + Maximum = 'maximum', + /** column name */ + MaximumMutable = 'maximum_mutable', + /** column name */ + MetadataUri = 'metadata_uri', + /** column name */ + Name = 'name', + /** column name */ + PayeeAddress = 'payee_address', + /** column name */ + PropertiesMutable = 'properties_mutable', + /** column name */ + RoyaltyMutable = 'royalty_mutable', + /** column name */ + RoyaltyPointsDenominator = 'royalty_points_denominator', + /** column name */ + RoyaltyPointsNumerator = 'royalty_points_numerator', + /** column name */ + Supply = 'supply', + /** column name */ + TokenDataIdHash = 'token_data_id_hash', + /** column name */ + TransactionTimestamp = 'transaction_timestamp', + /** column name */ + TransactionVersion = 'transaction_version', + /** column name */ + UriMutable = 'uri_mutable' +} + +/** Streaming cursor of the table "token_datas" */ +export type TokenDatasStreamCursorInput = { + /** Stream column input with initial value */ + initial_value: TokenDatasStreamCursorValueInput; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type TokenDatasStreamCursorValueInput = { + collection_data_id_hash?: InputMaybe; + collection_name?: InputMaybe; + creator_address?: InputMaybe; + default_properties?: InputMaybe; + description?: InputMaybe; + description_mutable?: InputMaybe; + largest_property_version?: InputMaybe; + maximum?: InputMaybe; + maximum_mutable?: InputMaybe; + metadata_uri?: InputMaybe; + name?: InputMaybe; + payee_address?: InputMaybe; + properties_mutable?: InputMaybe; + royalty_mutable?: InputMaybe; + royalty_points_denominator?: InputMaybe; + royalty_points_numerator?: InputMaybe; + supply?: InputMaybe; + token_data_id_hash?: InputMaybe; + transaction_timestamp?: InputMaybe; + transaction_version?: InputMaybe; + uri_mutable?: InputMaybe; +}; + +/** columns and relationships of "token_ownerships" */ +export type TokenOwnerships = { + amount: Scalars['numeric']; + collection_data_id_hash: Scalars['String']; + collection_name: Scalars['String']; + creator_address: Scalars['String']; + name: Scalars['String']; + owner_address?: Maybe; + property_version: Scalars['numeric']; + table_handle: Scalars['String']; + table_type?: Maybe; + token_data_id_hash: Scalars['String']; + transaction_timestamp: Scalars['timestamp']; + transaction_version: Scalars['bigint']; +}; + +/** Boolean expression to filter rows from the table "token_ownerships". All fields are combined with a logical 'AND'. */ +export type TokenOwnershipsBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + amount?: InputMaybe; + collection_data_id_hash?: InputMaybe; + collection_name?: InputMaybe; + creator_address?: InputMaybe; + name?: InputMaybe; + owner_address?: InputMaybe; + property_version?: InputMaybe; + table_handle?: InputMaybe; + table_type?: InputMaybe; + token_data_id_hash?: InputMaybe; + transaction_timestamp?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** Ordering options when selecting data from "token_ownerships". */ +export type TokenOwnershipsOrderBy = { + amount?: InputMaybe; + collection_data_id_hash?: InputMaybe; + collection_name?: InputMaybe; + creator_address?: InputMaybe; + name?: InputMaybe; + owner_address?: InputMaybe; + property_version?: InputMaybe; + table_handle?: InputMaybe; + table_type?: InputMaybe; + token_data_id_hash?: InputMaybe; + transaction_timestamp?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** select columns of table "token_ownerships" */ +export enum TokenOwnershipsSelectColumn { + /** column name */ + Amount = 'amount', + /** column name */ + CollectionDataIdHash = 'collection_data_id_hash', + /** column name */ + CollectionName = 'collection_name', + /** column name */ + CreatorAddress = 'creator_address', + /** column name */ + Name = 'name', + /** column name */ + OwnerAddress = 'owner_address', + /** column name */ + PropertyVersion = 'property_version', + /** column name */ + TableHandle = 'table_handle', + /** column name */ + TableType = 'table_type', + /** column name */ + TokenDataIdHash = 'token_data_id_hash', + /** column name */ + TransactionTimestamp = 'transaction_timestamp', + /** column name */ + TransactionVersion = 'transaction_version' +} + +/** Streaming cursor of the table "token_ownerships" */ +export type TokenOwnershipsStreamCursorInput = { + /** Stream column input with initial value */ + initial_value: TokenOwnershipsStreamCursorValueInput; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type TokenOwnershipsStreamCursorValueInput = { + amount?: InputMaybe; + collection_data_id_hash?: InputMaybe; + collection_name?: InputMaybe; + creator_address?: InputMaybe; + name?: InputMaybe; + owner_address?: InputMaybe; + property_version?: InputMaybe; + table_handle?: InputMaybe; + table_type?: InputMaybe; + token_data_id_hash?: InputMaybe; + transaction_timestamp?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** columns and relationships of "tokens" */ +export type Tokens = { + collection_data_id_hash: Scalars['String']; + collection_name: Scalars['String']; + creator_address: Scalars['String']; + name: Scalars['String']; + property_version: Scalars['numeric']; + token_data_id_hash: Scalars['String']; + token_properties: Scalars['jsonb']; + transaction_timestamp: Scalars['timestamp']; + transaction_version: Scalars['bigint']; +}; + + +/** columns and relationships of "tokens" */ +export type TokensTokenPropertiesArgs = { + path?: InputMaybe; +}; + +/** Boolean expression to filter rows from the table "tokens". All fields are combined with a logical 'AND'. */ +export type TokensBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + collection_data_id_hash?: InputMaybe; + collection_name?: InputMaybe; + creator_address?: InputMaybe; + name?: InputMaybe; + property_version?: InputMaybe; + token_data_id_hash?: InputMaybe; + token_properties?: InputMaybe; + transaction_timestamp?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** Ordering options when selecting data from "tokens". */ +export type TokensOrderBy = { + collection_data_id_hash?: InputMaybe; + collection_name?: InputMaybe; + creator_address?: InputMaybe; + name?: InputMaybe; + property_version?: InputMaybe; + token_data_id_hash?: InputMaybe; + token_properties?: InputMaybe; + transaction_timestamp?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** select columns of table "tokens" */ +export enum TokensSelectColumn { + /** column name */ + CollectionDataIdHash = 'collection_data_id_hash', + /** column name */ + CollectionName = 'collection_name', + /** column name */ + CreatorAddress = 'creator_address', + /** column name */ + Name = 'name', + /** column name */ + PropertyVersion = 'property_version', + /** column name */ + TokenDataIdHash = 'token_data_id_hash', + /** column name */ + TokenProperties = 'token_properties', + /** column name */ + TransactionTimestamp = 'transaction_timestamp', + /** column name */ + TransactionVersion = 'transaction_version' +} + +/** Streaming cursor of the table "tokens" */ +export type TokensStreamCursorInput = { + /** Stream column input with initial value */ + initial_value: TokensStreamCursorValueInput; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type TokensStreamCursorValueInput = { + collection_data_id_hash?: InputMaybe; + collection_name?: InputMaybe; + creator_address?: InputMaybe; + name?: InputMaybe; + property_version?: InputMaybe; + token_data_id_hash?: InputMaybe; + token_properties?: InputMaybe; + transaction_timestamp?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** columns and relationships of "user_transactions" */ +export type UserTransactions = { + block_height: Scalars['bigint']; + entry_function_id_str: Scalars['String']; + epoch: Scalars['bigint']; + expiration_timestamp_secs: Scalars['timestamp']; + gas_unit_price: Scalars['numeric']; + max_gas_amount: Scalars['numeric']; + parent_signature_type: Scalars['String']; + sender: Scalars['String']; + sequence_number: Scalars['bigint']; + timestamp: Scalars['timestamp']; + version: Scalars['bigint']; +}; + +/** Boolean expression to filter rows from the table "user_transactions". All fields are combined with a logical 'AND'. */ +export type UserTransactionsBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + block_height?: InputMaybe; + entry_function_id_str?: InputMaybe; + epoch?: InputMaybe; + expiration_timestamp_secs?: InputMaybe; + gas_unit_price?: InputMaybe; + max_gas_amount?: InputMaybe; + parent_signature_type?: InputMaybe; + sender?: InputMaybe; + sequence_number?: InputMaybe; + timestamp?: InputMaybe; + version?: InputMaybe; +}; + +/** Ordering options when selecting data from "user_transactions". */ +export type UserTransactionsOrderBy = { + block_height?: InputMaybe; + entry_function_id_str?: InputMaybe; + epoch?: InputMaybe; + expiration_timestamp_secs?: InputMaybe; + gas_unit_price?: InputMaybe; + max_gas_amount?: InputMaybe; + parent_signature_type?: InputMaybe; + sender?: InputMaybe; + sequence_number?: InputMaybe; + timestamp?: InputMaybe; + version?: InputMaybe; +}; + +/** select columns of table "user_transactions" */ +export enum UserTransactionsSelectColumn { + /** column name */ + BlockHeight = 'block_height', + /** column name */ + EntryFunctionIdStr = 'entry_function_id_str', + /** column name */ + Epoch = 'epoch', + /** column name */ + ExpirationTimestampSecs = 'expiration_timestamp_secs', + /** column name */ + GasUnitPrice = 'gas_unit_price', + /** column name */ + MaxGasAmount = 'max_gas_amount', + /** column name */ + ParentSignatureType = 'parent_signature_type', + /** column name */ + Sender = 'sender', + /** column name */ + SequenceNumber = 'sequence_number', + /** column name */ + Timestamp = 'timestamp', + /** column name */ + Version = 'version' +} + +/** Streaming cursor of the table "user_transactions" */ +export type UserTransactionsStreamCursorInput = { + /** Stream column input with initial value */ + initial_value: UserTransactionsStreamCursorValueInput; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type UserTransactionsStreamCursorValueInput = { + block_height?: InputMaybe; + entry_function_id_str?: InputMaybe; + epoch?: InputMaybe; + expiration_timestamp_secs?: InputMaybe; + gas_unit_price?: InputMaybe; + max_gas_amount?: InputMaybe; + parent_signature_type?: InputMaybe; + sender?: InputMaybe; + sequence_number?: InputMaybe; + timestamp?: InputMaybe; + version?: InputMaybe; +}; diff --git a/ecosystem/typescript/sdk_v2/src/types/index.ts b/ecosystem/typescript/sdk_v2/src/types/index.ts index d7406bf6a869c..75f202d42aaf8 100644 --- a/ecosystem/typescript/sdk_v2/src/types/index.ts +++ b/ecosystem/typescript/sdk_v2/src/types/index.ts @@ -1,5 +1,7 @@ import { Network } from "../utils/api-endpoints"; +export * from "./indexer"; + /** * Hex data as input to a function */ @@ -748,7 +750,7 @@ export type Block = { transactions?: Array; }; -/////// REQUEST TYPES /////// +// REQUEST TYPES /** * View request for the Move view function API diff --git a/ecosystem/typescript/sdk_v2/src/types/indexer.ts b/ecosystem/typescript/sdk_v2/src/types/indexer.ts new file mode 100644 index 0000000000000..582cde31d9369 --- /dev/null +++ b/ecosystem/typescript/sdk_v2/src/types/indexer.ts @@ -0,0 +1,83 @@ +/** + * GENERATED QUERY TYPES FROM GRAPHQL SCHEMA + * + * generated types we generate from graphql schema that match the structure of the + * response type when querying from Hasura schema. + * + * These types are used as the return type when making the actual request (usually + * under the /internal/ folder) + */ + +import { + GetAccountTokensCountQuery, + GetAccountTransactionsCountQuery, + GetAccountCoinsDataQuery, + GetAccountCoinsCountQuery, + GetAccountOwnedObjectsQuery, + GetAccountOwnedTokensQuery, + GetAccountOwnedTokensFromCollectionQuery, + GetAccountCollectionsWithOwnedTokensQuery, +} from "./generated/operations"; + +/** + * CUSTOM RESPONSE TYPES FOR THE END USER + * + * To provide a good dev exp, we build custom types derived from the + * query types to be the response type the end developer/user will + * work with. + * + * These types are used as the return type when calling an sdk api function + * that calls the function that queries the server (usually under the /api/ folder) + */ +export type GetAccountTokensCountQueryResponse = + GetAccountTokensCountQuery["current_token_ownerships_v2_aggregate"]["aggregate"]; +export type GetAccountTransactionsCountResponse = + GetAccountTransactionsCountQuery["account_transactions_aggregate"]["aggregate"]; +export type GetAccountCoinsCountResponse = + GetAccountCoinsCountQuery["current_fungible_asset_balances_aggregate"]["aggregate"]; +export type GetAccountOwnedObjectsResponse = GetAccountOwnedObjectsQuery["current_objects"]; + +export type GetAccountOwnedTokensQueryResponse = GetAccountOwnedTokensQuery["current_token_ownerships_v2"]; + +export type GetAccountOwnedTokensFromCollectionResponse = + GetAccountOwnedTokensFromCollectionQuery["current_token_ownerships_v2"]; +export type GetAccountCollectionsWithOwnedTokenResponse = + GetAccountCollectionsWithOwnedTokensQuery["current_collection_ownership_v2_view"]; +export type GetAccountCoinsDataResponse = GetAccountCoinsDataQuery["current_fungible_asset_balances"]; + +/** + * A generic type that being passed by each function and holds an + * array of properties we can sort the query by + */ +export type OrderBy = Array<{ [K in keyof T]?: OrderByValue }>; +export type OrderByValue = + | "asc" + | "asc_nulls_first" + | "asc_nulls_last" + | "desc" + | "desc_nulls_first" + | "desc_nulls_last"; + +/** + * Refers to the token standard we want to query for + */ +export type TokenStandard = "v1" | "v2"; + +/** + * + * Controls the number of results that are returned and the starting position of those results. + * @param offset parameter specifies the starting position of the query result within the set of data. Default is 0. + * @param limit specifies the maximum number of items or records to return in a query result. Default is 10. + */ +export interface IndexerPaginationArgs { + offset?: number | bigint; + limit?: number; +} + +/** + * The graphql query type to pass into the `queryIndexer` function + */ +export type GraphqlQuery = { + query: string; + variables?: {}; +}; diff --git a/ecosystem/typescript/sdk_v2/src/utils/paginate_with_cursor.ts b/ecosystem/typescript/sdk_v2/src/utils/paginate_with_cursor.ts index 8220f4b36f6b9..91a79ecf4d424 100644 --- a/ecosystem/typescript/sdk_v2/src/utils/paginate_with_cursor.ts +++ b/ecosystem/typescript/sdk_v2/src/utils/paginate_with_cursor.ts @@ -1,15 +1,12 @@ +import { AptosConfig } from "../api/aptos_config"; import { get } from "../client"; -import { ClientConfig } from "../types"; +import { AptosRequest } from "../types"; /// This function is a helper for paginating using a function wrapping an API -export async function paginateWithCursor, Res extends any[]>(options: { - url: string; - endpoint?: string; - body?: any; - params?: Req; - originMethod?: string; - overrides?: ClientConfig; -}): Promise { +export async function paginateWithCursor, Res extends any[]>( + options: Omit, + aptosConfig: AptosConfig, +): Promise { const out = []; let cursor: string | undefined; const requestParams = options.params as Req & { start?: string }; @@ -17,13 +14,16 @@ export async function paginateWithCursor, Res ex while (true) { requestParams.start = cursor; // eslint-disable-next-line no-await-in-loop - const response = await get({ - url: options.url, - endpoint: options.endpoint, - params: requestParams, - originMethod: options.originMethod, - overrides: options.overrides, - }); + const response = await get( + { + url: options.url, + endpoint: options.endpoint, + params: requestParams, + originMethod: options.originMethod, + overrides: options.overrides, + }, + aptosConfig, + ); // eslint-disable-next-line no-underscore-dangle /** * the cursor is a "state key" from the API prespective. Client diff --git a/ecosystem/typescript/sdk_v2/tests/e2e/api/general.test.ts b/ecosystem/typescript/sdk_v2/tests/e2e/api/general.test.ts index 1c1eb4cc88a71..43c96e744afd7 100644 --- a/ecosystem/typescript/sdk_v2/tests/e2e/api/general.test.ts +++ b/ecosystem/typescript/sdk_v2/tests/e2e/api/general.test.ts @@ -1,5 +1,5 @@ import { AptosConfig, Aptos } from "../../../src"; -import { ViewRequest } from "../../../src/types"; +import { GraphqlQuery, ViewRequest } from "../../../src/types"; import { Network } from "../../../src/utils/api-endpoints"; describe("general api", () => { @@ -20,7 +20,7 @@ describe("general api", () => { test("it fetches block data by block height", async () => { const config = new AptosConfig({ network: Network.LOCAL }); const aptos = new Aptos(config); - const blockHeight = 100; + const blockHeight = 1; const blockData = await aptos.getBlockByHeight({ blockHeight }); expect(blockData.block_height).toBe(blockHeight.toString()); }); @@ -78,4 +78,27 @@ describe("general api", () => { }); expect(parseInt(supply)).toBeGreaterThan(0); }); + + test("it fetches data with a custom graphql query", async () => { + const config = new AptosConfig({ network: Network.TESTNET }); + const aptos = new Aptos(config); + + const query: GraphqlQuery = { + query: `query MyQuery { + ledger_infos { + chain_id + } + }`, + }; + + const chainId = await aptos.queryIndexer<{ + ledger_infos: [ + { + chain_id: number; + }, + ]; + }>({ query }); + + expect(chainId.ledger_infos[0].chain_id).toBe(2); + }); });