diff --git a/apps/template/app/routes/app+/playground.tsx b/apps/template/app/routes/app+/playground.tsx index 43a93e4fa..e8c652087 100644 --- a/apps/template/app/routes/app+/playground.tsx +++ b/apps/template/app/routes/app+/playground.tsx @@ -77,8 +77,8 @@ export default function Playground() { userPosition: position ? { shares: position.shares, - totalShares: position.vault?.totalShares, - currentSharePrice: position.vault?.currentSharePrice, + totalShares: position.vault?.total_shares, + currentSharePrice: position.vault?.current_share_price, } : null, } diff --git a/package.json b/package.json index c371a841f..fff27ea62 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,8 @@ "graphql:build": "nx build @0xintuition/graphql", "graphql:lint": "nx lint @0xintuition/graphql", "graphql:test": "nx test @0xintuition/graphql --reporter=verbose", - "graphql:codegen": "nx codegen @0xintuition/graphql", + "graphql:codegen:watch": "nx codegen:watch @0xintuition/graphql", + "graphql:codegen:build": "nx codegen:build @0xintuition/graphql", "graphql:typecheck": "nx typecheck @0xintuition/graphql", "protocol:build": "nx build @0xintuition/protocol", "protocol:lint": "nx lint @0xintuition/protocol", diff --git a/packages/1ui/src/components/IdentityCard/IdentityCard.stories.tsx b/packages/1ui/src/components/IdentityCard/IdentityCard.stories.tsx index eab4667b2..8f77b7378 100644 --- a/packages/1ui/src/components/IdentityCard/IdentityCard.stories.tsx +++ b/packages/1ui/src/components/IdentityCard/IdentityCard.stories.tsx @@ -88,9 +88,9 @@ const SmartIdentityCard = () => { variant="non-user" avatarSrc={atomData?.atom?.image ?? ''} name={atomData?.atom?.label ?? ''} - value={atomData?.atom?.vault?.totalShares ?? 0} + value={atomData?.atom?.vault?.total_shares ?? 0} currency="ETH" - walletAddress={atomData?.atom?.walletId ?? ''} + walletAddress={atomData?.atom?.wallet_id ?? ''} /> ) } diff --git a/packages/graphql/README.md b/packages/graphql/README.md index c38a7be56..1bdd0ef53 100644 --- a/packages/graphql/README.md +++ b/packages/graphql/README.md @@ -30,6 +30,10 @@ You can also run this from the monorepo root: pnpm graphql:codegen ``` +### Schema Management + +The package uses a local `schema.graphql` file as the source of truth for generating TypeScript types. This ensures consistent behavior across all environments and makes the package more portable for external use. + ### Testing Run unit tests with: @@ -166,6 +170,7 @@ The package can be configured through the following files: - `codegen.ts` - GraphQL code generation settings - `tsconfig.json` - TypeScript configuration - `vitest.config.ts` - Test configuration +- `schema.graphql` - GraphQL schema (source of truth) ## Contributing diff --git a/packages/graphql/codegen.ts b/packages/graphql/codegen.ts index 815be3d8d..559798012 100644 --- a/packages/graphql/codegen.ts +++ b/packages/graphql/codegen.ts @@ -1,6 +1,8 @@ import { CodegenConfig } from '@graphql-codegen/cli' import type { Types } from '@graphql-codegen/plugin-helpers' +import { API_URL_DEV } from './src/constants' + const commonGenerateOptions: Types.ConfiguredOutput = { config: { reactQueryVersion: 5, @@ -34,9 +36,18 @@ const commonGenerateOptions: Types.ConfiguredOutput = { const config: CodegenConfig = { overwrite: true, hooks: { afterAllFileWrite: ['prettier --write'] }, - schema: process.env.HASURA_PROJECT_ENDPOINT - ? [process.env.HASURA_PROJECT_ENDPOINT] - : ['./schema.graphql'], + // Try local schema first, fall back to remote if needed + schema: [ + './schema.graphql', + { + [API_URL_DEV]: { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + }, + }, + }, + ], ignoreNoDocuments: true, documents: ['**/*.graphql'], generates: { diff --git a/packages/graphql/package.json b/packages/graphql/package.json index 3f2f82438..7d8593e23 100644 --- a/packages/graphql/package.json +++ b/packages/graphql/package.json @@ -1,7 +1,7 @@ { "name": "@0xintuition/graphql", "description": "GraphQL", - "version": "0.3.0", + "version": "0.4.0", "main": "./dist/index.js", "module": "./dist/index.mjs", "types": "./dist/index.d.ts", diff --git a/packages/graphql/schema.graphql b/packages/graphql/schema.graphql index ed92fd711..b8ab4b108 100644 --- a/packages/graphql/schema.graphql +++ b/packages/graphql/schema.graphql @@ -18,6 +18,21 @@ directive @cached( ttl: Int! = 60 ) on QUERY +""" +Boolean expression to compare columns of type "Boolean". All fields are combined with logical 'AND'. +""" +input Boolean_comparison_exp { + _eq: Boolean + _gt: Boolean + _gte: Boolean + _in: [Boolean!] + _is_null: Boolean + _lt: Boolean + _lte: Boolean + _neq: Boolean + _nin: [Boolean!] +} + """ Boolean expression to compare columns of type "Int". All fields are combined with logical 'AND'. """ @@ -33,6 +48,34 @@ input Int_comparison_exp { _nin: [Int!] } +input PinOrganizationInput { + description: String + email: String + image: String + name: String + url: String +} + +type PinOutput { + uri: String +} + +input PinPersonInput { + description: String + email: String + identifier: String + image: String + name: String + url: String +} + +input PinThingInput { + description: String + image: String + name: String + url: String +} + """ Boolean expression to compare columns of type "String". All fields are combined with logical 'AND'. """ @@ -88,34 +131,40 @@ input String_comparison_exp { _similar: String } -input ThingInput { - description: String - image: String - name: String - url: String -} +scalar account_type -type ThingOutput { - cid: String +""" +Boolean expression to compare columns of type "account_type". All fields are combined with logical 'AND'. +""" +input account_type_comparison_exp { + _eq: account_type + _gt: account_type + _gte: account_type + _in: [account_type!] + _is_null: Boolean + _lt: account_type + _lte: account_type + _neq: account_type + _nin: [account_type!] } """ -columns and relationships of "Account" +columns and relationships of "account" """ type accounts { """ An object relationship """ atom: atoms - atomId: numeric + atom_id: numeric """ An array relationship """ - claims( + atoms( """ distinct select on columns """ - distinct_on: [claims_select_column!] + distinct_on: [atoms_select_column!] """ limit the number of rows returned """ @@ -127,20 +176,20 @@ type accounts { """ sort the rows by one or more columns """ - order_by: [claims_order_by!] + order_by: [atoms_order_by!] """ filter the rows returned """ - where: claims_bool_exp - ): [claims!]! + where: atoms_bool_exp + ): [atoms!]! """ An aggregate relationship """ - claims_aggregate( + atoms_aggregate( """ distinct select on columns """ - distinct_on: [claims_select_column!] + distinct_on: [atoms_select_column!] """ limit the number of rows returned """ @@ -152,20 +201,24 @@ type accounts { """ sort the rows by one or more columns """ - order_by: [claims_order_by!] + order_by: [atoms_order_by!] """ filter the rows returned """ - where: claims_bool_exp - ): claims_aggregate! + where: atoms_bool_exp + ): atoms_aggregate! + """ + An object relationship + """ + cached_image: cached_images """ An array relationship """ - createdAtoms( + claims( """ distinct select on columns """ - distinct_on: [atoms_select_column!] + distinct_on: [claims_select_column!] """ limit the number of rows returned """ @@ -177,20 +230,20 @@ type accounts { """ sort the rows by one or more columns """ - order_by: [atoms_order_by!] + order_by: [claims_order_by!] """ filter the rows returned """ - where: atoms_bool_exp - ): [atoms!]! + where: claims_bool_exp + ): [claims!]! """ An aggregate relationship """ - createdAtoms_aggregate( + claims_aggregate( """ distinct select on columns """ - distinct_on: [atoms_select_column!] + distinct_on: [claims_select_column!] """ limit the number of rows returned """ @@ -202,20 +255,20 @@ type accounts { """ sort the rows by one or more columns """ - order_by: [atoms_order_by!] + order_by: [claims_order_by!] """ filter the rows returned """ - where: atoms_bool_exp - ): atoms_aggregate! + where: claims_bool_exp + ): claims_aggregate! """ An array relationship """ - createdTriples( + deposits_received( """ distinct select on columns """ - distinct_on: [triples_select_column!] + distinct_on: [deposits_select_column!] """ limit the number of rows returned """ @@ -227,20 +280,20 @@ type accounts { """ sort the rows by one or more columns """ - order_by: [triples_order_by!] + order_by: [deposits_order_by!] """ filter the rows returned """ - where: triples_bool_exp - ): [triples!]! + where: deposits_bool_exp + ): [deposits!]! """ An aggregate relationship """ - createdTriples_aggregate( + deposits_received_aggregate( """ distinct select on columns """ - distinct_on: [triples_select_column!] + distinct_on: [deposits_select_column!] """ limit the number of rows returned """ @@ -252,16 +305,16 @@ type accounts { """ sort the rows by one or more columns """ - order_by: [triples_order_by!] + order_by: [deposits_order_by!] """ filter the rows returned """ - where: triples_bool_exp - ): triples_aggregate! + where: deposits_bool_exp + ): deposits_aggregate! """ An array relationship """ - deposits( + deposits_sent( """ distinct select on columns """ @@ -286,7 +339,7 @@ type accounts { """ An aggregate relationship """ - deposits_aggregate( + deposits_sent_aggregate( """ distinct select on columns """ @@ -311,11 +364,11 @@ type accounts { """ An array relationship """ - feeTransfers( + fee_transfers( """ distinct select on columns """ - distinct_on: [feeTranfers_select_column!] + distinct_on: [fee_transfers_select_column!] """ limit the number of rows returned """ @@ -327,20 +380,20 @@ type accounts { """ sort the rows by one or more columns """ - order_by: [feeTranfers_order_by!] + order_by: [fee_transfers_order_by!] """ filter the rows returned """ - where: feeTranfers_bool_exp - ): [feeTranfers!]! + where: fee_transfers_bool_exp + ): [fee_transfers!]! """ An aggregate relationship """ - feeTransfers_aggregate( + fee_transfers_aggregate( """ distinct select on columns """ - distinct_on: [feeTranfers_select_column!] + distinct_on: [fee_transfers_select_column!] """ limit the number of rows returned """ @@ -352,12 +405,12 @@ type accounts { """ sort the rows by one or more columns """ - order_by: [feeTranfers_order_by!] + order_by: [fee_transfers_order_by!] """ filter the rows returned """ - where: feeTranfers_bool_exp - ): feeTranfers_aggregate! + where: fee_transfers_bool_exp + ): fee_transfers_aggregate! id: String! image: String label: String! @@ -414,7 +467,7 @@ type accounts { """ An array relationship """ - redemptions( + redemptions_received( """ distinct select on columns """ @@ -439,7 +492,57 @@ type accounts { """ An aggregate relationship """ - redemptions_aggregate( + redemptions_received_aggregate( + """ + distinct select on columns + """ + distinct_on: [redemptions_select_column!] + """ + limit the number of rows returned + """ + limit: Int + """ + skip the first n rows. Use only with order_by + """ + offset: Int + """ + sort the rows by one or more columns + """ + order_by: [redemptions_order_by!] + """ + filter the rows returned + """ + where: redemptions_bool_exp + ): redemptions_aggregate! + """ + An array relationship + """ + redemptions_sent( + """ + distinct select on columns + """ + distinct_on: [redemptions_select_column!] + """ + limit the number of rows returned + """ + limit: Int + """ + skip the first n rows. Use only with order_by + """ + offset: Int + """ + sort the rows by one or more columns + """ + order_by: [redemptions_order_by!] + """ + filter the rows returned + """ + where: redemptions_bool_exp + ): [redemptions!]! + """ + An aggregate relationship + """ + redemptions_sent_aggregate( """ distinct select on columns """ @@ -511,19 +614,80 @@ type accounts { """ where: signals_bool_exp ): signals_aggregate! - type: String! + """ + An array relationship + """ + triples( + """ + distinct select on columns + """ + distinct_on: [triples_select_column!] + """ + limit the number of rows returned + """ + limit: Int + """ + skip the first n rows. Use only with order_by + """ + offset: Int + """ + sort the rows by one or more columns + """ + order_by: [triples_order_by!] + """ + filter the rows returned + """ + where: triples_bool_exp + ): [triples!]! + """ + An aggregate relationship + """ + triples_aggregate( + """ + distinct select on columns + """ + distinct_on: [triples_select_column!] + """ + limit the number of rows returned + """ + limit: Int + """ + skip the first n rows. Use only with order_by + """ + offset: Int + """ + sort the rows by one or more columns + """ + order_by: [triples_order_by!] + """ + filter the rows returned + """ + where: triples_bool_exp + ): triples_aggregate! + type: account_type! } """ -aggregated selection of "Account" +aggregated selection of "account" """ type accounts_aggregate { aggregate: accounts_aggregate_fields nodes: [accounts!]! } +input accounts_aggregate_bool_exp { + count: accounts_aggregate_bool_exp_count +} + +input accounts_aggregate_bool_exp_count { + arguments: [accounts_select_column!] + distinct: Boolean + filter: accounts_bool_exp + predicate: Int_comparison_exp! +} + """ -aggregate fields of "Account" +aggregate fields of "account" """ type accounts_aggregate_fields { avg: accounts_avg_fields @@ -539,94 +703,148 @@ type accounts_aggregate_fields { variance: accounts_variance_fields } +""" +order by aggregate values of table "account" +""" +input accounts_aggregate_order_by { + avg: accounts_avg_order_by + count: order_by + max: accounts_max_order_by + min: accounts_min_order_by + stddev: accounts_stddev_order_by + stddev_pop: accounts_stddev_pop_order_by + stddev_samp: accounts_stddev_samp_order_by + sum: accounts_sum_order_by + var_pop: accounts_var_pop_order_by + var_samp: accounts_var_samp_order_by + variance: accounts_variance_order_by +} + """ aggregate avg on columns """ type accounts_avg_fields { - atomId: Float + atom_id: Float +} + +""" +order by avg() on columns of table "account" +""" +input accounts_avg_order_by { + atom_id: order_by } """ -Boolean expression to filter rows from the table "Account". All fields are combined with a logical 'AND'. +Boolean expression to filter rows from the table "account". All fields are combined with a logical 'AND'. """ input accounts_bool_exp { _and: [accounts_bool_exp!] _not: accounts_bool_exp _or: [accounts_bool_exp!] atom: atoms_bool_exp - atomId: numeric_comparison_exp + atom_id: numeric_comparison_exp + atoms: atoms_bool_exp + atoms_aggregate: atoms_aggregate_bool_exp + cached_image: cached_images_bool_exp claims: claims_bool_exp claims_aggregate: claims_aggregate_bool_exp - createdAtoms: atoms_bool_exp - createdAtoms_aggregate: atoms_aggregate_bool_exp - createdTriples: triples_bool_exp - createdTriples_aggregate: triples_aggregate_bool_exp - deposits: deposits_bool_exp - deposits_aggregate: deposits_aggregate_bool_exp - feeTransfers: feeTranfers_bool_exp - feeTransfers_aggregate: feeTranfers_aggregate_bool_exp + deposits_received: deposits_bool_exp + deposits_received_aggregate: deposits_aggregate_bool_exp + deposits_sent: deposits_bool_exp + deposits_sent_aggregate: deposits_aggregate_bool_exp + fee_transfers: fee_transfers_bool_exp + fee_transfers_aggregate: fee_transfers_aggregate_bool_exp id: String_comparison_exp image: String_comparison_exp label: String_comparison_exp positions: positions_bool_exp positions_aggregate: positions_aggregate_bool_exp - redemptions: redemptions_bool_exp - redemptions_aggregate: redemptions_aggregate_bool_exp + redemptions_received: redemptions_bool_exp + redemptions_received_aggregate: redemptions_aggregate_bool_exp + redemptions_sent: redemptions_bool_exp + redemptions_sent_aggregate: redemptions_aggregate_bool_exp signals: signals_bool_exp signals_aggregate: signals_aggregate_bool_exp - type: String_comparison_exp + triples: triples_bool_exp + triples_aggregate: triples_aggregate_bool_exp + type: account_type_comparison_exp } """ aggregate max on columns """ type accounts_max_fields { - atomId: numeric + atom_id: numeric id: String image: String label: String - type: String + type: account_type +} + +""" +order by max() on columns of table "account" +""" +input accounts_max_order_by { + atom_id: order_by + id: order_by + image: order_by + label: order_by + type: order_by } """ aggregate min on columns """ type accounts_min_fields { - atomId: numeric + atom_id: numeric id: String image: String label: String - type: String + type: account_type +} + +""" +order by min() on columns of table "account" +""" +input accounts_min_order_by { + atom_id: order_by + id: order_by + image: order_by + label: order_by + type: order_by } """ -Ordering options when selecting data from "Account". +Ordering options when selecting data from "account". """ input accounts_order_by { atom: atoms_order_by - atomId: order_by + atom_id: order_by + atoms_aggregate: atoms_aggregate_order_by + cached_image: cached_images_order_by claims_aggregate: claims_aggregate_order_by - createdAtoms_aggregate: atoms_aggregate_order_by - createdTriples_aggregate: triples_aggregate_order_by - deposits_aggregate: deposits_aggregate_order_by - feeTransfers_aggregate: feeTranfers_aggregate_order_by + deposits_received_aggregate: deposits_aggregate_order_by + deposits_sent_aggregate: deposits_aggregate_order_by + fee_transfers_aggregate: fee_transfers_aggregate_order_by id: order_by image: order_by label: order_by positions_aggregate: positions_aggregate_order_by - redemptions_aggregate: redemptions_aggregate_order_by + redemptions_received_aggregate: redemptions_aggregate_order_by + redemptions_sent_aggregate: redemptions_aggregate_order_by signals_aggregate: signals_aggregate_order_by + triples_aggregate: triples_aggregate_order_by type: order_by } """ -select columns of table "Account" +select columns of table "account" """ enum accounts_select_column { """ column name """ - atomId + atom_id """ column name """ @@ -649,21 +867,42 @@ enum accounts_select_column { aggregate stddev on columns """ type accounts_stddev_fields { - atomId: Float + atom_id: Float +} + +""" +order by stddev() on columns of table "account" +""" +input accounts_stddev_order_by { + atom_id: order_by } """ aggregate stddev_pop on columns """ type accounts_stddev_pop_fields { - atomId: Float + atom_id: Float +} + +""" +order by stddev_pop() on columns of table "account" +""" +input accounts_stddev_pop_order_by { + atom_id: order_by } """ aggregate stddev_samp on columns """ type accounts_stddev_samp_fields { - atomId: Float + atom_id: Float +} + +""" +order by stddev_samp() on columns of table "account" +""" +input accounts_stddev_samp_order_by { + atom_id: order_by } """ @@ -684,18 +923,25 @@ input accounts_stream_cursor_input { Initial value of the column from where the streaming should start """ input accounts_stream_cursor_value_input { - atomId: numeric + atom_id: numeric id: String image: String label: String - type: String + type: account_type } """ aggregate sum on columns """ type accounts_sum_fields { - atomId: numeric + atom_id: numeric +} + +""" +order by sum() on columns of table "account" +""" +input accounts_sum_order_by { + atom_id: order_by } input accounts_that_claim_about_account_args { @@ -708,180 +954,208 @@ input accounts_that_claim_about_account_args { aggregate var_pop on columns """ type accounts_var_pop_fields { - atomId: Float + atom_id: Float +} + +""" +order by var_pop() on columns of table "account" +""" +input accounts_var_pop_order_by { + atom_id: order_by } """ aggregate var_samp on columns """ type accounts_var_samp_fields { - atomId: Float + atom_id: Float +} + +""" +order by var_samp() on columns of table "account" +""" +input accounts_var_samp_order_by { + atom_id: order_by } """ aggregate variance on columns """ type accounts_variance_fields { - atomId: Float + atom_id: Float } """ -columns and relationships of "AtomValue" +order by variance() on columns of table "account" """ -type atomValues { +input accounts_variance_order_by { + atom_id: order_by +} + +scalar atom_type + +""" +Boolean expression to compare columns of type "atom_type". All fields are combined with logical 'AND'. +""" +input atom_type_comparison_exp { + _eq: atom_type + _gt: atom_type + _gte: atom_type + _in: [atom_type!] + _is_null: Boolean + _lt: atom_type + _lte: atom_type + _neq: atom_type + _nin: [atom_type!] +} + +""" +columns and relationships of "atom_value" +""" +type atom_values { """ An object relationship """ account: accounts - accountId: String + account_id: String """ An object relationship """ atom: atoms - atomId: numeric! """ An object relationship """ book: books - bookId: numeric + book_id: numeric id: numeric! """ An object relationship """ organization: organizations - organizationId: numeric + organization_id: numeric """ An object relationship """ person: persons - personId: numeric + person_id: numeric """ An object relationship """ thing: things - thingId: numeric + thing_id: numeric } """ -aggregated selection of "AtomValue" +aggregated selection of "atom_value" """ -type atomValues_aggregate { - aggregate: atomValues_aggregate_fields - nodes: [atomValues!]! +type atom_values_aggregate { + aggregate: atom_values_aggregate_fields + nodes: [atom_values!]! } """ -aggregate fields of "AtomValue" +aggregate fields of "atom_value" """ -type atomValues_aggregate_fields { - avg: atomValues_avg_fields - count(columns: [atomValues_select_column!], distinct: Boolean): Int! - max: atomValues_max_fields - min: atomValues_min_fields - stddev: atomValues_stddev_fields - stddev_pop: atomValues_stddev_pop_fields - stddev_samp: atomValues_stddev_samp_fields - sum: atomValues_sum_fields - var_pop: atomValues_var_pop_fields - var_samp: atomValues_var_samp_fields - variance: atomValues_variance_fields +type atom_values_aggregate_fields { + avg: atom_values_avg_fields + count(columns: [atom_values_select_column!], distinct: Boolean): Int! + max: atom_values_max_fields + min: atom_values_min_fields + stddev: atom_values_stddev_fields + stddev_pop: atom_values_stddev_pop_fields + stddev_samp: atom_values_stddev_samp_fields + sum: atom_values_sum_fields + var_pop: atom_values_var_pop_fields + var_samp: atom_values_var_samp_fields + variance: atom_values_variance_fields } """ aggregate avg on columns """ -type atomValues_avg_fields { - atomId: Float - bookId: Float +type atom_values_avg_fields { + book_id: Float id: Float - organizationId: Float - personId: Float - thingId: Float + organization_id: Float + person_id: Float + thing_id: Float } """ -Boolean expression to filter rows from the table "AtomValue". All fields are combined with a logical 'AND'. +Boolean expression to filter rows from the table "atom_value". All fields are combined with a logical 'AND'. """ -input atomValues_bool_exp { - _and: [atomValues_bool_exp!] - _not: atomValues_bool_exp - _or: [atomValues_bool_exp!] +input atom_values_bool_exp { + _and: [atom_values_bool_exp!] + _not: atom_values_bool_exp + _or: [atom_values_bool_exp!] account: accounts_bool_exp - accountId: String_comparison_exp + account_id: String_comparison_exp atom: atoms_bool_exp - atomId: numeric_comparison_exp book: books_bool_exp - bookId: numeric_comparison_exp + book_id: numeric_comparison_exp id: numeric_comparison_exp organization: organizations_bool_exp - organizationId: numeric_comparison_exp + organization_id: numeric_comparison_exp person: persons_bool_exp - personId: numeric_comparison_exp + person_id: numeric_comparison_exp thing: things_bool_exp - thingId: numeric_comparison_exp + thing_id: numeric_comparison_exp } """ aggregate max on columns """ -type atomValues_max_fields { - accountId: String - atomId: numeric - bookId: numeric +type atom_values_max_fields { + account_id: String + book_id: numeric id: numeric - organizationId: numeric - personId: numeric - thingId: numeric + organization_id: numeric + person_id: numeric + thing_id: numeric } """ aggregate min on columns """ -type atomValues_min_fields { - accountId: String - atomId: numeric - bookId: numeric +type atom_values_min_fields { + account_id: String + book_id: numeric id: numeric - organizationId: numeric - personId: numeric - thingId: numeric + organization_id: numeric + person_id: numeric + thing_id: numeric } """ -Ordering options when selecting data from "AtomValue". +Ordering options when selecting data from "atom_value". """ -input atomValues_order_by { +input atom_values_order_by { account: accounts_order_by - accountId: order_by + account_id: order_by atom: atoms_order_by - atomId: order_by book: books_order_by - bookId: order_by + book_id: order_by id: order_by organization: organizations_order_by - organizationId: order_by + organization_id: order_by person: persons_order_by - personId: order_by + person_id: order_by thing: things_order_by - thingId: order_by + thing_id: order_by } """ -select columns of table "AtomValue" +select columns of table "atom_value" """ -enum atomValues_select_column { +enum atom_values_select_column { """ column name """ - accountId + account_id """ column name """ - atomId - """ - column name - """ - bookId + book_id """ column name """ @@ -889,61 +1163,58 @@ enum atomValues_select_column { """ column name """ - organizationId + organization_id """ column name """ - personId + person_id """ column name """ - thingId + thing_id } """ aggregate stddev on columns """ -type atomValues_stddev_fields { - atomId: Float - bookId: Float +type atom_values_stddev_fields { + book_id: Float id: Float - organizationId: Float - personId: Float - thingId: Float + organization_id: Float + person_id: Float + thing_id: Float } """ aggregate stddev_pop on columns """ -type atomValues_stddev_pop_fields { - atomId: Float - bookId: Float +type atom_values_stddev_pop_fields { + book_id: Float id: Float - organizationId: Float - personId: Float - thingId: Float + organization_id: Float + person_id: Float + thing_id: Float } """ aggregate stddev_samp on columns """ -type atomValues_stddev_samp_fields { - atomId: Float - bookId: Float +type atom_values_stddev_samp_fields { + book_id: Float id: Float - organizationId: Float - personId: Float - thingId: Float + organization_id: Float + person_id: Float + thing_id: Float } """ -Streaming cursor of the table "atomValues" +Streaming cursor of the table "atom_values" """ -input atomValues_stream_cursor_input { +input atom_values_stream_cursor_input { """ Stream column input with initial value """ - initial_value: atomValues_stream_cursor_value_input! + initial_value: atom_values_stream_cursor_value_input! """ cursor ordering """ @@ -953,72 +1224,167 @@ input atomValues_stream_cursor_input { """ Initial value of the column from where the streaming should start """ -input atomValues_stream_cursor_value_input { - accountId: String - atomId: numeric - bookId: numeric +input atom_values_stream_cursor_value_input { + account_id: String + book_id: numeric id: numeric - organizationId: numeric - personId: numeric - thingId: numeric + organization_id: numeric + person_id: numeric + thing_id: numeric } """ aggregate sum on columns """ -type atomValues_sum_fields { - atomId: numeric - bookId: numeric +type atom_values_sum_fields { + book_id: numeric id: numeric - organizationId: numeric - personId: numeric - thingId: numeric + organization_id: numeric + person_id: numeric + thing_id: numeric } """ aggregate var_pop on columns """ -type atomValues_var_pop_fields { - atomId: Float - bookId: Float +type atom_values_var_pop_fields { + book_id: Float id: Float - organizationId: Float - personId: Float - thingId: Float + organization_id: Float + person_id: Float + thing_id: Float } """ aggregate var_samp on columns """ -type atomValues_var_samp_fields { - atomId: Float - bookId: Float +type atom_values_var_samp_fields { + book_id: Float id: Float - organizationId: Float - personId: Float - thingId: Float + organization_id: Float + person_id: Float + thing_id: Float } """ aggregate variance on columns """ -type atomValues_variance_fields { - atomId: Float - bookId: Float +type atom_values_variance_fields { + book_id: Float id: Float - organizationId: Float - personId: Float - thingId: Float + organization_id: Float + person_id: Float + thing_id: Float } """ -columns and relationships of "Atom" +columns and relationships of "atom" """ type atoms { """ An array relationship """ - asObject( + accounts( + """ + distinct select on columns + """ + distinct_on: [accounts_select_column!] + """ + limit the number of rows returned + """ + limit: Int + """ + skip the first n rows. Use only with order_by + """ + offset: Int + """ + sort the rows by one or more columns + """ + order_by: [accounts_order_by!] + """ + filter the rows returned + """ + where: accounts_bool_exp + ): [accounts!]! + """ + An aggregate relationship + """ + accounts_aggregate( + """ + distinct select on columns + """ + distinct_on: [accounts_select_column!] + """ + limit the number of rows returned + """ + limit: Int + """ + skip the first n rows. Use only with order_by + """ + offset: Int + """ + sort the rows by one or more columns + """ + order_by: [accounts_order_by!] + """ + filter the rows returned + """ + where: accounts_bool_exp + ): accounts_aggregate! + """ + An array relationship + """ + as_object_claims( + """ + distinct select on columns + """ + distinct_on: [claims_select_column!] + """ + limit the number of rows returned + """ + limit: Int + """ + skip the first n rows. Use only with order_by + """ + offset: Int + """ + sort the rows by one or more columns + """ + order_by: [claims_order_by!] + """ + filter the rows returned + """ + where: claims_bool_exp + ): [claims!]! + """ + An aggregate relationship + """ + as_object_claims_aggregate( + """ + distinct select on columns + """ + distinct_on: [claims_select_column!] + """ + limit the number of rows returned + """ + limit: Int + """ + skip the first n rows. Use only with order_by + """ + offset: Int + """ + sort the rows by one or more columns + """ + order_by: [claims_order_by!] + """ + filter the rows returned + """ + where: claims_bool_exp + ): claims_aggregate! + """ + An array relationship + """ + as_object_triples( """ distinct select on columns """ @@ -1043,7 +1409,7 @@ type atoms { """ An aggregate relationship """ - asObject_aggregate( + as_object_triples_aggregate( """ distinct select on columns """ @@ -1068,7 +1434,57 @@ type atoms { """ An array relationship """ - asPredicate( + as_predicate_claims( + """ + distinct select on columns + """ + distinct_on: [claims_select_column!] + """ + limit the number of rows returned + """ + limit: Int + """ + skip the first n rows. Use only with order_by + """ + offset: Int + """ + sort the rows by one or more columns + """ + order_by: [claims_order_by!] + """ + filter the rows returned + """ + where: claims_bool_exp + ): [claims!]! + """ + An aggregate relationship + """ + as_predicate_claims_aggregate( + """ + distinct select on columns + """ + distinct_on: [claims_select_column!] + """ + limit the number of rows returned + """ + limit: Int + """ + skip the first n rows. Use only with order_by + """ + offset: Int + """ + sort the rows by one or more columns + """ + order_by: [claims_order_by!] + """ + filter the rows returned + """ + where: claims_bool_exp + ): claims_aggregate! + """ + An array relationship + """ + as_predicate_triples( """ distinct select on columns """ @@ -1093,7 +1509,7 @@ type atoms { """ An aggregate relationship """ - asPredicate_aggregate( + as_predicate_triples_aggregate( """ distinct select on columns """ @@ -1118,7 +1534,57 @@ type atoms { """ An array relationship """ - asSubject( + as_subject_claims( + """ + distinct select on columns + """ + distinct_on: [claims_select_column!] + """ + limit the number of rows returned + """ + limit: Int + """ + skip the first n rows. Use only with order_by + """ + offset: Int + """ + sort the rows by one or more columns + """ + order_by: [claims_order_by!] + """ + filter the rows returned + """ + where: claims_bool_exp + ): [claims!]! + """ + An aggregate relationship + """ + as_subject_claims_aggregate( + """ + distinct select on columns + """ + distinct_on: [claims_select_column!] + """ + limit the number of rows returned + """ + limit: Int + """ + skip the first n rows. Use only with order_by + """ + offset: Int + """ + sort the rows by one or more columns + """ + order_by: [claims_order_by!] + """ + filter the rows returned + """ + where: claims_bool_exp + ): claims_aggregate! + """ + An array relationship + """ + as_subject_triples( """ distinct select on columns """ @@ -1143,7 +1609,7 @@ type atoms { """ An aggregate relationship """ - asSubject_aggregate( + as_subject_triples_aggregate( """ distinct select on columns """ @@ -1165,35 +1631,93 @@ type atoms { """ where: triples_bool_exp ): triples_aggregate! - blockNumber: numeric! - blockTimestamp: numeric! + block_number: numeric! + block_timestamp: bigint! + """ + An object relationship + """ + cached_image: cached_images + """ + An object relationship + """ + controler: accounts """ An object relationship """ creator: accounts - creatorId: String! - data: String! + creator_id: String! + data: String emoji: String id: numeric! image: String label: String - transactionHash: bytea! - type: String! + """ + An array relationship + """ + signals( + """ + distinct select on columns + """ + distinct_on: [signals_select_column!] + """ + limit the number of rows returned + """ + limit: Int + """ + skip the first n rows. Use only with order_by + """ + offset: Int + """ + sort the rows by one or more columns + """ + order_by: [signals_order_by!] + """ + filter the rows returned + """ + where: signals_bool_exp + ): [signals!]! + """ + An aggregate relationship + """ + signals_aggregate( + """ + distinct select on columns + """ + distinct_on: [signals_select_column!] + """ + limit the number of rows returned + """ + limit: Int + """ + skip the first n rows. Use only with order_by + """ + offset: Int + """ + sort the rows by one or more columns + """ + order_by: [signals_order_by!] + """ + filter the rows returned + """ + where: signals_bool_exp + ): signals_aggregate! + transaction_hash: bytea! + type: atom_type! """ An object relationship """ - value: atomValues - valueId: numeric + value: atom_values + value_id: numeric """ An object relationship """ vault: vaults - vaultId: numeric! - walletId: String! + vault_id: numeric! + wallet_id: String! } """ -aggregated selection of "Atom" +aggregated selection of "atom" """ type atoms_aggregate { aggregate: atoms_aggregate_fields @@ -1212,7 +1736,7 @@ input atoms_aggregate_bool_exp_count { } """ -aggregate fields of "Atom" +aggregate fields of "atom" """ type atoms_aggregate_fields { avg: atoms_avg_fields @@ -1229,7 +1753,7 @@ type atoms_aggregate_fields { } """ -order by aggregate values of table "Atom" +order by aggregate values of table "atom" """ input atoms_aggregate_order_by { avg: atoms_avg_order_by @@ -1249,168 +1773,187 @@ input atoms_aggregate_order_by { aggregate avg on columns """ type atoms_avg_fields { - blockNumber: Float - blockTimestamp: Float + block_number: Float + block_timestamp: Float id: Float - valueId: Float - vaultId: Float + value_id: Float + vault_id: Float } """ -order by avg() on columns of table "Atom" +order by avg() on columns of table "atom" """ input atoms_avg_order_by { - blockNumber: order_by - blockTimestamp: order_by + block_number: order_by + block_timestamp: order_by id: order_by - valueId: order_by - vaultId: order_by + value_id: order_by + vault_id: order_by } """ -Boolean expression to filter rows from the table "Atom". All fields are combined with a logical 'AND'. +Boolean expression to filter rows from the table "atom". All fields are combined with a logical 'AND'. """ input atoms_bool_exp { _and: [atoms_bool_exp!] _not: atoms_bool_exp _or: [atoms_bool_exp!] - asObject: triples_bool_exp - asObject_aggregate: triples_aggregate_bool_exp - asPredicate: triples_bool_exp - asPredicate_aggregate: triples_aggregate_bool_exp - asSubject: triples_bool_exp - asSubject_aggregate: triples_aggregate_bool_exp - blockNumber: numeric_comparison_exp - blockTimestamp: numeric_comparison_exp + accounts: accounts_bool_exp + accounts_aggregate: accounts_aggregate_bool_exp + as_object_claims: claims_bool_exp + as_object_claims_aggregate: claims_aggregate_bool_exp + as_object_triples: triples_bool_exp + as_object_triples_aggregate: triples_aggregate_bool_exp + as_predicate_claims: claims_bool_exp + as_predicate_claims_aggregate: claims_aggregate_bool_exp + as_predicate_triples: triples_bool_exp + as_predicate_triples_aggregate: triples_aggregate_bool_exp + as_subject_claims: claims_bool_exp + as_subject_claims_aggregate: claims_aggregate_bool_exp + as_subject_triples: triples_bool_exp + as_subject_triples_aggregate: triples_aggregate_bool_exp + block_number: numeric_comparison_exp + block_timestamp: bigint_comparison_exp + cached_image: cached_images_bool_exp + controler: accounts_bool_exp creator: accounts_bool_exp - creatorId: String_comparison_exp + creator_id: String_comparison_exp data: String_comparison_exp emoji: String_comparison_exp id: numeric_comparison_exp image: String_comparison_exp label: String_comparison_exp - transactionHash: bytea_comparison_exp - type: String_comparison_exp - value: atomValues_bool_exp - valueId: numeric_comparison_exp + signals: signals_bool_exp + signals_aggregate: signals_aggregate_bool_exp + transaction_hash: bytea_comparison_exp + type: atom_type_comparison_exp + value: atom_values_bool_exp + value_id: numeric_comparison_exp vault: vaults_bool_exp - vaultId: numeric_comparison_exp - walletId: String_comparison_exp + vault_id: numeric_comparison_exp + wallet_id: String_comparison_exp } """ aggregate max on columns """ type atoms_max_fields { - blockNumber: numeric - blockTimestamp: numeric - creatorId: String + block_number: numeric + block_timestamp: bigint + creator_id: String data: String emoji: String id: numeric image: String label: String - type: String - valueId: numeric - vaultId: numeric - walletId: String + type: atom_type + value_id: numeric + vault_id: numeric + wallet_id: String } """ -order by max() on columns of table "Atom" +order by max() on columns of table "atom" """ input atoms_max_order_by { - blockNumber: order_by - blockTimestamp: order_by - creatorId: order_by + block_number: order_by + block_timestamp: order_by + creator_id: order_by data: order_by emoji: order_by id: order_by image: order_by label: order_by type: order_by - valueId: order_by - vaultId: order_by - walletId: order_by + value_id: order_by + vault_id: order_by + wallet_id: order_by } """ aggregate min on columns """ type atoms_min_fields { - blockNumber: numeric - blockTimestamp: numeric - creatorId: String + block_number: numeric + block_timestamp: bigint + creator_id: String data: String emoji: String id: numeric image: String label: String - type: String - valueId: numeric - vaultId: numeric - walletId: String + type: atom_type + value_id: numeric + vault_id: numeric + wallet_id: String } """ -order by min() on columns of table "Atom" +order by min() on columns of table "atom" """ input atoms_min_order_by { - blockNumber: order_by - blockTimestamp: order_by - creatorId: order_by + block_number: order_by + block_timestamp: order_by + creator_id: order_by data: order_by emoji: order_by id: order_by image: order_by label: order_by type: order_by - valueId: order_by - vaultId: order_by - walletId: order_by + value_id: order_by + vault_id: order_by + wallet_id: order_by } """ -Ordering options when selecting data from "Atom". +Ordering options when selecting data from "atom". """ input atoms_order_by { - asObject_aggregate: triples_aggregate_order_by - asPredicate_aggregate: triples_aggregate_order_by - asSubject_aggregate: triples_aggregate_order_by - blockNumber: order_by - blockTimestamp: order_by + accounts_aggregate: accounts_aggregate_order_by + as_object_claims_aggregate: claims_aggregate_order_by + as_object_triples_aggregate: triples_aggregate_order_by + as_predicate_claims_aggregate: claims_aggregate_order_by + as_predicate_triples_aggregate: triples_aggregate_order_by + as_subject_claims_aggregate: claims_aggregate_order_by + as_subject_triples_aggregate: triples_aggregate_order_by + block_number: order_by + block_timestamp: order_by + cached_image: cached_images_order_by + controler: accounts_order_by creator: accounts_order_by - creatorId: order_by + creator_id: order_by data: order_by emoji: order_by id: order_by image: order_by label: order_by - transactionHash: order_by + signals_aggregate: signals_aggregate_order_by + transaction_hash: order_by type: order_by - value: atomValues_order_by - valueId: order_by + value: atom_values_order_by + value_id: order_by vault: vaults_order_by - vaultId: order_by - walletId: order_by + vault_id: order_by + wallet_id: order_by } """ -select columns of table "Atom" +select columns of table "atom" """ enum atoms_select_column { """ column name """ - blockNumber + block_number """ column name """ - blockTimestamp + block_timestamp """ column name """ - creatorId + creator_id """ column name """ @@ -1434,7 +1977,7 @@ enum atoms_select_column { """ column name """ - transactionHash + transaction_hash """ column name """ @@ -1442,81 +1985,81 @@ enum atoms_select_column { """ column name """ - valueId + value_id """ column name """ - vaultId + vault_id """ column name """ - walletId + wallet_id } """ aggregate stddev on columns """ type atoms_stddev_fields { - blockNumber: Float - blockTimestamp: Float + block_number: Float + block_timestamp: Float id: Float - valueId: Float - vaultId: Float + value_id: Float + vault_id: Float } """ -order by stddev() on columns of table "Atom" +order by stddev() on columns of table "atom" """ input atoms_stddev_order_by { - blockNumber: order_by - blockTimestamp: order_by + block_number: order_by + block_timestamp: order_by id: order_by - valueId: order_by - vaultId: order_by + value_id: order_by + vault_id: order_by } """ aggregate stddev_pop on columns """ type atoms_stddev_pop_fields { - blockNumber: Float - blockTimestamp: Float + block_number: Float + block_timestamp: Float id: Float - valueId: Float - vaultId: Float + value_id: Float + vault_id: Float } """ -order by stddev_pop() on columns of table "Atom" +order by stddev_pop() on columns of table "atom" """ input atoms_stddev_pop_order_by { - blockNumber: order_by - blockTimestamp: order_by + block_number: order_by + block_timestamp: order_by id: order_by - valueId: order_by - vaultId: order_by + value_id: order_by + vault_id: order_by } """ aggregate stddev_samp on columns """ type atoms_stddev_samp_fields { - blockNumber: Float - blockTimestamp: Float + block_number: Float + block_timestamp: Float id: Float - valueId: Float - vaultId: Float + value_id: Float + vault_id: Float } """ -order by stddev_samp() on columns of table "Atom" +order by stddev_samp() on columns of table "atom" """ input atoms_stddev_samp_order_by { - blockNumber: order_by - blockTimestamp: order_by + block_number: order_by + block_timestamp: order_by id: order_by - valueId: order_by - vaultId: order_by + value_id: order_by + vault_id: order_by } """ @@ -1537,118 +2080,134 @@ input atoms_stream_cursor_input { Initial value of the column from where the streaming should start """ input atoms_stream_cursor_value_input { - blockNumber: numeric - blockTimestamp: numeric - creatorId: String + block_number: numeric + block_timestamp: bigint + creator_id: String data: String emoji: String id: numeric image: String label: String - transactionHash: bytea - type: String - valueId: numeric - vaultId: numeric - walletId: String + transaction_hash: bytea + type: atom_type + value_id: numeric + vault_id: numeric + wallet_id: String } """ aggregate sum on columns """ type atoms_sum_fields { - blockNumber: numeric - blockTimestamp: numeric + block_number: numeric + block_timestamp: bigint id: numeric - valueId: numeric - vaultId: numeric + value_id: numeric + vault_id: numeric } """ -order by sum() on columns of table "Atom" +order by sum() on columns of table "atom" """ input atoms_sum_order_by { - blockNumber: order_by - blockTimestamp: order_by + block_number: order_by + block_timestamp: order_by id: order_by - valueId: order_by - vaultId: order_by + value_id: order_by + vault_id: order_by } """ aggregate var_pop on columns """ type atoms_var_pop_fields { - blockNumber: Float - blockTimestamp: Float + block_number: Float + block_timestamp: Float id: Float - valueId: Float - vaultId: Float + value_id: Float + vault_id: Float } """ -order by var_pop() on columns of table "Atom" +order by var_pop() on columns of table "atom" """ input atoms_var_pop_order_by { - blockNumber: order_by - blockTimestamp: order_by + block_number: order_by + block_timestamp: order_by id: order_by - valueId: order_by - vaultId: order_by + value_id: order_by + vault_id: order_by } """ aggregate var_samp on columns """ type atoms_var_samp_fields { - blockNumber: Float - blockTimestamp: Float + block_number: Float + block_timestamp: Float id: Float - valueId: Float - vaultId: Float + value_id: Float + vault_id: Float } """ -order by var_samp() on columns of table "Atom" +order by var_samp() on columns of table "atom" """ input atoms_var_samp_order_by { - blockNumber: order_by - blockTimestamp: order_by + block_number: order_by + block_timestamp: order_by id: order_by - valueId: order_by - vaultId: order_by + value_id: order_by + vault_id: order_by } """ aggregate variance on columns """ type atoms_variance_fields { - blockNumber: Float - blockTimestamp: Float + block_number: Float + block_timestamp: Float id: Float - valueId: Float - vaultId: Float + value_id: Float + vault_id: Float } """ -order by variance() on columns of table "Atom" +order by variance() on columns of table "atom" """ input atoms_variance_order_by { - blockNumber: order_by - blockTimestamp: order_by + block_number: order_by + block_timestamp: order_by id: order_by - valueId: order_by - vaultId: order_by + value_id: order_by + vault_id: order_by +} + +scalar bigint + +""" +Boolean expression to compare columns of type "bigint". All fields are combined with logical 'AND'. +""" +input bigint_comparison_exp { + _eq: bigint + _gt: bigint + _gte: bigint + _in: [bigint!] + _is_null: Boolean + _lt: bigint + _lte: bigint + _neq: bigint + _nin: [bigint!] } """ -columns and relationships of "Book" +columns and relationships of "book" """ type books { """ An object relationship """ atom: atoms - atomId: numeric! description: String genre: String id: numeric! @@ -1657,7 +2216,7 @@ type books { } """ -aggregated selection of "Book" +aggregated selection of "book" """ type books_aggregate { aggregate: books_aggregate_fields @@ -1665,7 +2224,7 @@ type books_aggregate { } """ -aggregate fields of "Book" +aggregate fields of "book" """ type books_aggregate_fields { avg: books_avg_fields @@ -1685,19 +2244,17 @@ type books_aggregate_fields { aggregate avg on columns """ type books_avg_fields { - atomId: Float id: Float } """ -Boolean expression to filter rows from the table "Book". All fields are combined with a logical 'AND'. +Boolean expression to filter rows from the table "book". All fields are combined with a logical 'AND'. """ input books_bool_exp { _and: [books_bool_exp!] _not: books_bool_exp _or: [books_bool_exp!] atom: atoms_bool_exp - atomId: numeric_comparison_exp description: String_comparison_exp genre: String_comparison_exp id: numeric_comparison_exp @@ -1709,7 +2266,6 @@ input books_bool_exp { aggregate max on columns """ type books_max_fields { - atomId: numeric description: String genre: String id: numeric @@ -1721,7 +2277,6 @@ type books_max_fields { aggregate min on columns """ type books_min_fields { - atomId: numeric description: String genre: String id: numeric @@ -1730,11 +2285,10 @@ type books_min_fields { } """ -Ordering options when selecting data from "Book". +Ordering options when selecting data from "book". """ input books_order_by { atom: atoms_order_by - atomId: order_by description: order_by genre: order_by id: order_by @@ -1743,13 +2297,9 @@ input books_order_by { } """ -select columns of table "Book" +select columns of table "book" """ enum books_select_column { - """ - column name - """ - atomId """ column name """ @@ -1776,7 +2326,6 @@ enum books_select_column { aggregate stddev on columns """ type books_stddev_fields { - atomId: Float id: Float } @@ -1784,7 +2333,6 @@ type books_stddev_fields { aggregate stddev_pop on columns """ type books_stddev_pop_fields { - atomId: Float id: Float } @@ -1792,7 +2340,6 @@ type books_stddev_pop_fields { aggregate stddev_samp on columns """ type books_stddev_samp_fields { - atomId: Float id: Float } @@ -1814,7 +2361,6 @@ input books_stream_cursor_input { Initial value of the column from where the streaming should start """ input books_stream_cursor_value_input { - atomId: numeric description: String genre: String id: numeric @@ -1826,7 +2372,6 @@ input books_stream_cursor_value_input { aggregate sum on columns """ type books_sum_fields { - atomId: numeric id: numeric } @@ -1834,74 +2379,171 @@ type books_sum_fields { aggregate var_pop on columns """ type books_var_pop_fields { - atomId: Float id: Float } """ -aggregate var_samp on columns +aggregate var_samp on columns +""" +type books_var_samp_fields { + id: Float +} + +""" +aggregate variance on columns +""" +type books_variance_fields { + id: Float +} + +scalar bytea + +""" +Boolean expression to compare columns of type "bytea". All fields are combined with logical 'AND'. +""" +input bytea_comparison_exp { + _eq: bytea + _gt: bytea + _gte: bytea + _in: [bytea!] + _is_null: Boolean + _lt: bytea + _lte: bytea + _neq: bytea + _nin: [bytea!] +} + +""" +columns and relationships of "cached_image" +""" +type cached_images { + created_at: timestamptz! + model: String + original_url: String! + safe: Boolean! + score( + """ + JSON select path + """ + path: String + ): jsonb + url: String! +} + +""" +Boolean expression to filter rows from the table "cached_image". All fields are combined with a logical 'AND'. +""" +input cached_images_bool_exp { + _and: [cached_images_bool_exp!] + _not: cached_images_bool_exp + _or: [cached_images_bool_exp!] + created_at: timestamptz_comparison_exp + model: String_comparison_exp + original_url: String_comparison_exp + safe: Boolean_comparison_exp + score: jsonb_comparison_exp + url: String_comparison_exp +} + +""" +Ordering options when selecting data from "cached_image". +""" +input cached_images_order_by { + created_at: order_by + model: order_by + original_url: order_by + safe: order_by + score: order_by + url: order_by +} + +""" +select columns of table "cached_image" """ -type books_var_samp_fields { - atomId: Float - id: Float +enum cached_images_select_column { + """ + column name + """ + created_at + """ + column name + """ + model + """ + column name + """ + original_url + """ + column name + """ + safe + """ + column name + """ + score + """ + column name + """ + url } """ -aggregate variance on columns +Streaming cursor of the table "cached_images" """ -type books_variance_fields { - atomId: Float - id: Float +input cached_images_stream_cursor_input { + """ + Stream column input with initial value + """ + initial_value: cached_images_stream_cursor_value_input! + """ + cursor ordering + """ + ordering: cursor_ordering } -scalar bytea - """ -Boolean expression to compare columns of type "bytea". All fields are combined with logical 'AND'. +Initial value of the column from where the streaming should start """ -input bytea_comparison_exp { - _eq: bytea - _gt: bytea - _gte: bytea - _in: [bytea!] - _is_null: Boolean - _lt: bytea - _lte: bytea - _neq: bytea - _nin: [bytea!] +input cached_images_stream_cursor_value_input { + created_at: timestamptz + model: String + original_url: String + safe: Boolean + score: jsonb + url: String } """ -columns and relationships of "ChainlinkPrice" +columns and relationships of "chainlink_price" """ -type chainLinkPrices { +type chainlink_prices { id: numeric! - usd: float8! + usd: float8 } """ -Boolean expression to filter rows from the table "ChainlinkPrice". All fields are combined with a logical 'AND'. +Boolean expression to filter rows from the table "chainlink_price". All fields are combined with a logical 'AND'. """ -input chainLinkPrices_bool_exp { - _and: [chainLinkPrices_bool_exp!] - _not: chainLinkPrices_bool_exp - _or: [chainLinkPrices_bool_exp!] +input chainlink_prices_bool_exp { + _and: [chainlink_prices_bool_exp!] + _not: chainlink_prices_bool_exp + _or: [chainlink_prices_bool_exp!] id: numeric_comparison_exp usd: float8_comparison_exp } """ -Ordering options when selecting data from "ChainlinkPrice". +Ordering options when selecting data from "chainlink_price". """ -input chainLinkPrices_order_by { +input chainlink_prices_order_by { id: order_by usd: order_by } """ -select columns of table "ChainlinkPrice" +select columns of table "chainlink_price" """ -enum chainLinkPrices_select_column { +enum chainlink_prices_select_column { """ column name """ @@ -1913,13 +2555,13 @@ enum chainLinkPrices_select_column { } """ -Streaming cursor of the table "chainLinkPrices" +Streaming cursor of the table "chainlink_prices" """ -input chainLinkPrices_stream_cursor_input { +input chainlink_prices_stream_cursor_input { """ Stream column input with initial value """ - initial_value: chainLinkPrices_stream_cursor_value_input! + initial_value: chainlink_prices_stream_cursor_value_input! """ cursor ordering """ @@ -1929,57 +2571,57 @@ input chainLinkPrices_stream_cursor_input { """ Initial value of the column from where the streaming should start """ -input chainLinkPrices_stream_cursor_value_input { +input chainlink_prices_stream_cursor_value_input { id: numeric usd: float8 } """ -columns and relationships of "Claim" +columns and relationships of "claim" """ type claims { """ An object relationship """ account: accounts - accountId: String! - counterShares: numeric! + account_id: String! + counter_shares: numeric! """ An object relationship """ - counterVault: vaults - counterVaultId: numeric! + counter_vault: vaults! + counter_vault_id: numeric! id: String! """ An object relationship """ - object: atoms - objectId: numeric! + object: atoms! + object_id: numeric! """ An object relationship """ - predicate: atoms - predicateId: numeric! + predicate: atoms! + predicate_id: numeric! shares: numeric! """ An object relationship """ - subject: atoms - subjectId: numeric! + subject: atoms! + subject_id: numeric! """ An object relationship """ - triple: triples - tripleId: numeric! + triple: triples! + triple_id: numeric! """ An object relationship """ - vault: vaults - vaultId: numeric! + vault: vaults! + vault_id: numeric! } """ -aggregated selection of "Claim" +aggregated selection of "claim" """ type claims_aggregate { aggregate: claims_aggregate_fields @@ -1998,7 +2640,7 @@ input claims_aggregate_bool_exp_count { } """ -aggregate fields of "Claim" +aggregate fields of "claim" """ type claims_aggregate_fields { avg: claims_avg_fields @@ -2015,7 +2657,7 @@ type claims_aggregate_fields { } """ -order by aggregate values of table "Claim" +order by aggregate values of table "claim" """ input claims_aggregate_order_by { avg: claims_avg_order_by @@ -2035,54 +2677,54 @@ input claims_aggregate_order_by { aggregate avg on columns """ type claims_avg_fields { - counterShares: Float - counterVaultId: Float - objectId: Float - predicateId: Float + counter_shares: Float + counter_vault_id: Float + object_id: Float + predicate_id: Float shares: Float - subjectId: Float - tripleId: Float - vaultId: Float + subject_id: Float + triple_id: Float + vault_id: Float } """ -order by avg() on columns of table "Claim" +order by avg() on columns of table "claim" """ input claims_avg_order_by { - counterShares: order_by - counterVaultId: order_by - objectId: order_by - predicateId: order_by + counter_shares: order_by + counter_vault_id: order_by + object_id: order_by + predicate_id: order_by shares: order_by - subjectId: order_by - tripleId: order_by - vaultId: order_by + subject_id: order_by + triple_id: order_by + vault_id: order_by } """ -Boolean expression to filter rows from the table "Claim". All fields are combined with a logical 'AND'. +Boolean expression to filter rows from the table "claim". All fields are combined with a logical 'AND'. """ input claims_bool_exp { _and: [claims_bool_exp!] _not: claims_bool_exp _or: [claims_bool_exp!] account: accounts_bool_exp - accountId: String_comparison_exp - counterShares: numeric_comparison_exp - counterVault: vaults_bool_exp - counterVaultId: numeric_comparison_exp + account_id: String_comparison_exp + counter_shares: numeric_comparison_exp + counter_vault: vaults_bool_exp + counter_vault_id: numeric_comparison_exp id: String_comparison_exp object: atoms_bool_exp - objectId: numeric_comparison_exp + object_id: numeric_comparison_exp predicate: atoms_bool_exp - predicateId: numeric_comparison_exp + predicate_id: numeric_comparison_exp shares: numeric_comparison_exp subject: atoms_bool_exp - subjectId: numeric_comparison_exp + subject_id: numeric_comparison_exp triple: triples_bool_exp - tripleId: numeric_comparison_exp + triple_id: numeric_comparison_exp vault: vaults_bool_exp - vaultId: numeric_comparison_exp + vault_id: numeric_comparison_exp } input claims_from_following_args { @@ -2093,105 +2735,105 @@ input claims_from_following_args { aggregate max on columns """ type claims_max_fields { - accountId: String - counterShares: numeric - counterVaultId: numeric + account_id: String + counter_shares: numeric + counter_vault_id: numeric id: String - objectId: numeric - predicateId: numeric + object_id: numeric + predicate_id: numeric shares: numeric - subjectId: numeric - tripleId: numeric - vaultId: numeric + subject_id: numeric + triple_id: numeric + vault_id: numeric } """ -order by max() on columns of table "Claim" +order by max() on columns of table "claim" """ input claims_max_order_by { - accountId: order_by - counterShares: order_by - counterVaultId: order_by + account_id: order_by + counter_shares: order_by + counter_vault_id: order_by id: order_by - objectId: order_by - predicateId: order_by + object_id: order_by + predicate_id: order_by shares: order_by - subjectId: order_by - tripleId: order_by - vaultId: order_by + subject_id: order_by + triple_id: order_by + vault_id: order_by } """ aggregate min on columns """ type claims_min_fields { - accountId: String - counterShares: numeric - counterVaultId: numeric + account_id: String + counter_shares: numeric + counter_vault_id: numeric id: String - objectId: numeric - predicateId: numeric + object_id: numeric + predicate_id: numeric shares: numeric - subjectId: numeric - tripleId: numeric - vaultId: numeric + subject_id: numeric + triple_id: numeric + vault_id: numeric } """ -order by min() on columns of table "Claim" +order by min() on columns of table "claim" """ input claims_min_order_by { - accountId: order_by - counterShares: order_by - counterVaultId: order_by + account_id: order_by + counter_shares: order_by + counter_vault_id: order_by id: order_by - objectId: order_by - predicateId: order_by + object_id: order_by + predicate_id: order_by shares: order_by - subjectId: order_by - tripleId: order_by - vaultId: order_by + subject_id: order_by + triple_id: order_by + vault_id: order_by } """ -Ordering options when selecting data from "Claim". +Ordering options when selecting data from "claim". """ input claims_order_by { account: accounts_order_by - accountId: order_by - counterShares: order_by - counterVault: vaults_order_by - counterVaultId: order_by + account_id: order_by + counter_shares: order_by + counter_vault: vaults_order_by + counter_vault_id: order_by id: order_by object: atoms_order_by - objectId: order_by + object_id: order_by predicate: atoms_order_by - predicateId: order_by + predicate_id: order_by shares: order_by subject: atoms_order_by - subjectId: order_by + subject_id: order_by triple: triples_order_by - tripleId: order_by + triple_id: order_by vault: vaults_order_by - vaultId: order_by + vault_id: order_by } """ -select columns of table "Claim" +select columns of table "claim" """ enum claims_select_column { """ column name """ - accountId + account_id """ column name """ - counterShares + counter_shares """ column name """ - counterVaultId + counter_vault_id """ column name """ @@ -2199,11 +2841,11 @@ enum claims_select_column { """ column name """ - objectId + object_id """ column name """ - predicateId + predicate_id """ column name """ @@ -2211,99 +2853,99 @@ enum claims_select_column { """ column name """ - subjectId + subject_id """ column name """ - tripleId + triple_id """ column name """ - vaultId + vault_id } """ aggregate stddev on columns """ type claims_stddev_fields { - counterShares: Float - counterVaultId: Float - objectId: Float - predicateId: Float + counter_shares: Float + counter_vault_id: Float + object_id: Float + predicate_id: Float shares: Float - subjectId: Float - tripleId: Float - vaultId: Float + subject_id: Float + triple_id: Float + vault_id: Float } """ -order by stddev() on columns of table "Claim" +order by stddev() on columns of table "claim" """ input claims_stddev_order_by { - counterShares: order_by - counterVaultId: order_by - objectId: order_by - predicateId: order_by + counter_shares: order_by + counter_vault_id: order_by + object_id: order_by + predicate_id: order_by shares: order_by - subjectId: order_by - tripleId: order_by - vaultId: order_by + subject_id: order_by + triple_id: order_by + vault_id: order_by } """ aggregate stddev_pop on columns """ type claims_stddev_pop_fields { - counterShares: Float - counterVaultId: Float - objectId: Float - predicateId: Float + counter_shares: Float + counter_vault_id: Float + object_id: Float + predicate_id: Float shares: Float - subjectId: Float - tripleId: Float - vaultId: Float + subject_id: Float + triple_id: Float + vault_id: Float } """ -order by stddev_pop() on columns of table "Claim" +order by stddev_pop() on columns of table "claim" """ input claims_stddev_pop_order_by { - counterShares: order_by - counterVaultId: order_by - objectId: order_by - predicateId: order_by + counter_shares: order_by + counter_vault_id: order_by + object_id: order_by + predicate_id: order_by shares: order_by - subjectId: order_by - tripleId: order_by - vaultId: order_by + subject_id: order_by + triple_id: order_by + vault_id: order_by } """ aggregate stddev_samp on columns """ type claims_stddev_samp_fields { - counterShares: Float - counterVaultId: Float - objectId: Float - predicateId: Float + counter_shares: Float + counter_vault_id: Float + object_id: Float + predicate_id: Float shares: Float - subjectId: Float - tripleId: Float - vaultId: Float + subject_id: Float + triple_id: Float + vault_id: Float } """ -order by stddev_samp() on columns of table "Claim" +order by stddev_samp() on columns of table "claim" """ input claims_stddev_samp_order_by { - counterShares: order_by - counterVaultId: order_by - objectId: order_by - predicateId: order_by + counter_shares: order_by + counter_vault_id: order_by + object_id: order_by + predicate_id: order_by shares: order_by - subjectId: order_by - tripleId: order_by - vaultId: order_by + subject_id: order_by + triple_id: order_by + vault_id: order_by } """ @@ -2324,128 +2966,128 @@ input claims_stream_cursor_input { Initial value of the column from where the streaming should start """ input claims_stream_cursor_value_input { - accountId: String - counterShares: numeric - counterVaultId: numeric + account_id: String + counter_shares: numeric + counter_vault_id: numeric id: String - objectId: numeric - predicateId: numeric + object_id: numeric + predicate_id: numeric shares: numeric - subjectId: numeric - tripleId: numeric - vaultId: numeric + subject_id: numeric + triple_id: numeric + vault_id: numeric } """ aggregate sum on columns """ type claims_sum_fields { - counterShares: numeric - counterVaultId: numeric - objectId: numeric - predicateId: numeric + counter_shares: numeric + counter_vault_id: numeric + object_id: numeric + predicate_id: numeric shares: numeric - subjectId: numeric - tripleId: numeric - vaultId: numeric + subject_id: numeric + triple_id: numeric + vault_id: numeric } """ -order by sum() on columns of table "Claim" +order by sum() on columns of table "claim" """ input claims_sum_order_by { - counterShares: order_by - counterVaultId: order_by - objectId: order_by - predicateId: order_by + counter_shares: order_by + counter_vault_id: order_by + object_id: order_by + predicate_id: order_by shares: order_by - subjectId: order_by - tripleId: order_by - vaultId: order_by + subject_id: order_by + triple_id: order_by + vault_id: order_by } """ aggregate var_pop on columns """ type claims_var_pop_fields { - counterShares: Float - counterVaultId: Float - objectId: Float - predicateId: Float + counter_shares: Float + counter_vault_id: Float + object_id: Float + predicate_id: Float shares: Float - subjectId: Float - tripleId: Float - vaultId: Float + subject_id: Float + triple_id: Float + vault_id: Float } """ -order by var_pop() on columns of table "Claim" +order by var_pop() on columns of table "claim" """ input claims_var_pop_order_by { - counterShares: order_by - counterVaultId: order_by - objectId: order_by - predicateId: order_by + counter_shares: order_by + counter_vault_id: order_by + object_id: order_by + predicate_id: order_by shares: order_by - subjectId: order_by - tripleId: order_by - vaultId: order_by + subject_id: order_by + triple_id: order_by + vault_id: order_by } """ aggregate var_samp on columns """ type claims_var_samp_fields { - counterShares: Float - counterVaultId: Float - objectId: Float - predicateId: Float + counter_shares: Float + counter_vault_id: Float + object_id: Float + predicate_id: Float shares: Float - subjectId: Float - tripleId: Float - vaultId: Float + subject_id: Float + triple_id: Float + vault_id: Float } """ -order by var_samp() on columns of table "Claim" +order by var_samp() on columns of table "claim" """ input claims_var_samp_order_by { - counterShares: order_by - counterVaultId: order_by - objectId: order_by - predicateId: order_by + counter_shares: order_by + counter_vault_id: order_by + object_id: order_by + predicate_id: order_by shares: order_by - subjectId: order_by - tripleId: order_by - vaultId: order_by + subject_id: order_by + triple_id: order_by + vault_id: order_by } """ aggregate variance on columns """ type claims_variance_fields { - counterShares: Float - counterVaultId: Float - objectId: Float - predicateId: Float + counter_shares: Float + counter_vault_id: Float + object_id: Float + predicate_id: Float shares: Float - subjectId: Float - tripleId: Float - vaultId: Float + subject_id: Float + triple_id: Float + vault_id: Float } """ -order by variance() on columns of table "Claim" +order by variance() on columns of table "claim" """ input claims_variance_order_by { - counterShares: order_by - counterVaultId: order_by - objectId: order_by - predicateId: order_by + counter_shares: order_by + counter_vault_id: order_by + object_id: order_by + predicate_id: order_by shares: order_by - subjectId: order_by - tripleId: order_by - vaultId: order_by + subject_id: order_by + triple_id: order_by + vault_id: order_by } """ @@ -2463,38 +3105,138 @@ enum cursor_ordering { } """ -columns and relationships of "Deposit" +columns and relationships of "deposit" """ type deposits { - blockNumber: numeric! - blockTimestamp: numeric! - entryFee: numeric! + block_number: numeric! + block_timestamp: bigint! + entry_fee: numeric! + """ + An array relationship + """ + events( + """ + distinct select on columns + """ + distinct_on: [events_select_column!] + """ + limit the number of rows returned + """ + limit: Int + """ + skip the first n rows. Use only with order_by + """ + offset: Int + """ + sort the rows by one or more columns + """ + order_by: [events_order_by!] + """ + filter the rows returned + """ + where: events_bool_exp + ): [events!]! + """ + An aggregate relationship + """ + events_aggregate( + """ + distinct select on columns + """ + distinct_on: [events_select_column!] + """ + limit the number of rows returned + """ + limit: Int + """ + skip the first n rows. Use only with order_by + """ + offset: Int + """ + sort the rows by one or more columns + """ + order_by: [events_order_by!] + """ + filter the rows returned + """ + where: events_bool_exp + ): events_aggregate! id: String! - isAtomWallet: Int! - isTriple: Int! + is_atom_wallet: Boolean! + is_triple: Boolean! """ An object relationship """ - receiver: accounts - receiverId: String! - receiverTotalSharesInVault: numeric! + receiver: accounts! + receiver_id: String! + receiver_total_shares_in_vault: numeric! """ An object relationship """ sender: accounts - senderAssetsAfterTotalFees: numeric! - senderId: String! - sharesForReceiver: numeric! - transactionHash: bytea! + sender_assets_after_total_fees: numeric! + sender_id: String! + shares_for_receiver: numeric! + """ + An array relationship + """ + signals( + """ + distinct select on columns + """ + distinct_on: [signals_select_column!] + """ + limit the number of rows returned + """ + limit: Int + """ + skip the first n rows. Use only with order_by + """ + offset: Int + """ + sort the rows by one or more columns + """ + order_by: [signals_order_by!] + """ + filter the rows returned + """ + where: signals_bool_exp + ): [signals!]! + """ + An aggregate relationship + """ + signals_aggregate( + """ + distinct select on columns + """ + distinct_on: [signals_select_column!] + """ + limit the number of rows returned + """ + limit: Int + """ + skip the first n rows. Use only with order_by + """ + offset: Int + """ + sort the rows by one or more columns + """ + order_by: [signals_order_by!] + """ + filter the rows returned + """ + where: signals_bool_exp + ): signals_aggregate! + transaction_hash: bytea! """ An object relationship """ - vault: vaults - vaultId: numeric! + vault: vaults! + vault_id: numeric! } """ -aggregated selection of "Deposit" +aggregated selection of "deposit" """ type deposits_aggregate { aggregate: deposits_aggregate_fields @@ -2502,9 +3244,25 @@ type deposits_aggregate { } input deposits_aggregate_bool_exp { + bool_and: deposits_aggregate_bool_exp_bool_and + bool_or: deposits_aggregate_bool_exp_bool_or count: deposits_aggregate_bool_exp_count } +input deposits_aggregate_bool_exp_bool_and { + arguments: deposits_select_column_deposits_aggregate_bool_exp_bool_and_arguments_columns! + distinct: Boolean + filter: deposits_bool_exp + predicate: Boolean_comparison_exp! +} + +input deposits_aggregate_bool_exp_bool_or { + arguments: deposits_select_column_deposits_aggregate_bool_exp_bool_or_arguments_columns! + distinct: Boolean + filter: deposits_bool_exp + predicate: Boolean_comparison_exp! +} + input deposits_aggregate_bool_exp_count { arguments: [deposits_select_column!] distinct: Boolean @@ -2513,7 +3271,7 @@ input deposits_aggregate_bool_exp_count { } """ -aggregate fields of "Deposit" +aggregate fields of "deposit" """ type deposits_aggregate_fields { avg: deposits_avg_fields @@ -2530,7 +3288,7 @@ type deposits_aggregate_fields { } """ -order by aggregate values of table "Deposit" +order by aggregate values of table "deposit" """ input deposits_aggregate_order_by { avg: deposits_avg_order_by @@ -2550,167 +3308,161 @@ input deposits_aggregate_order_by { aggregate avg on columns """ type deposits_avg_fields { - blockNumber: Float - blockTimestamp: Float - entryFee: Float - isAtomWallet: Float - isTriple: Float - receiverTotalSharesInVault: Float - senderAssetsAfterTotalFees: Float - sharesForReceiver: Float - vaultId: Float + block_number: Float + block_timestamp: Float + entry_fee: Float + receiver_total_shares_in_vault: Float + sender_assets_after_total_fees: Float + shares_for_receiver: Float + vault_id: Float } """ -order by avg() on columns of table "Deposit" +order by avg() on columns of table "deposit" """ input deposits_avg_order_by { - blockNumber: order_by - blockTimestamp: order_by - entryFee: order_by - isAtomWallet: order_by - isTriple: order_by - receiverTotalSharesInVault: order_by - senderAssetsAfterTotalFees: order_by - sharesForReceiver: order_by - vaultId: order_by + block_number: order_by + block_timestamp: order_by + entry_fee: order_by + receiver_total_shares_in_vault: order_by + sender_assets_after_total_fees: order_by + shares_for_receiver: order_by + vault_id: order_by } """ -Boolean expression to filter rows from the table "Deposit". All fields are combined with a logical 'AND'. +Boolean expression to filter rows from the table "deposit". All fields are combined with a logical 'AND'. """ input deposits_bool_exp { _and: [deposits_bool_exp!] _not: deposits_bool_exp _or: [deposits_bool_exp!] - blockNumber: numeric_comparison_exp - blockTimestamp: numeric_comparison_exp - entryFee: numeric_comparison_exp + block_number: numeric_comparison_exp + block_timestamp: bigint_comparison_exp + entry_fee: numeric_comparison_exp + events: events_bool_exp + events_aggregate: events_aggregate_bool_exp id: String_comparison_exp - isAtomWallet: Int_comparison_exp - isTriple: Int_comparison_exp + is_atom_wallet: Boolean_comparison_exp + is_triple: Boolean_comparison_exp receiver: accounts_bool_exp - receiverId: String_comparison_exp - receiverTotalSharesInVault: numeric_comparison_exp + receiver_id: String_comparison_exp + receiver_total_shares_in_vault: numeric_comparison_exp sender: accounts_bool_exp - senderAssetsAfterTotalFees: numeric_comparison_exp - senderId: String_comparison_exp - sharesForReceiver: numeric_comparison_exp - transactionHash: bytea_comparison_exp + sender_assets_after_total_fees: numeric_comparison_exp + sender_id: String_comparison_exp + shares_for_receiver: numeric_comparison_exp + signals: signals_bool_exp + signals_aggregate: signals_aggregate_bool_exp + transaction_hash: bytea_comparison_exp vault: vaults_bool_exp - vaultId: numeric_comparison_exp + vault_id: numeric_comparison_exp } """ aggregate max on columns """ type deposits_max_fields { - blockNumber: numeric - blockTimestamp: numeric - entryFee: numeric + block_number: numeric + block_timestamp: bigint + entry_fee: numeric id: String - isAtomWallet: Int - isTriple: Int - receiverId: String - receiverTotalSharesInVault: numeric - senderAssetsAfterTotalFees: numeric - senderId: String - sharesForReceiver: numeric - vaultId: numeric + receiver_id: String + receiver_total_shares_in_vault: numeric + sender_assets_after_total_fees: numeric + sender_id: String + shares_for_receiver: numeric + vault_id: numeric } """ -order by max() on columns of table "Deposit" +order by max() on columns of table "deposit" """ input deposits_max_order_by { - blockNumber: order_by - blockTimestamp: order_by - entryFee: order_by + block_number: order_by + block_timestamp: order_by + entry_fee: order_by id: order_by - isAtomWallet: order_by - isTriple: order_by - receiverId: order_by - receiverTotalSharesInVault: order_by - senderAssetsAfterTotalFees: order_by - senderId: order_by - sharesForReceiver: order_by - vaultId: order_by + receiver_id: order_by + receiver_total_shares_in_vault: order_by + sender_assets_after_total_fees: order_by + sender_id: order_by + shares_for_receiver: order_by + vault_id: order_by } """ aggregate min on columns """ type deposits_min_fields { - blockNumber: numeric - blockTimestamp: numeric - entryFee: numeric + block_number: numeric + block_timestamp: bigint + entry_fee: numeric id: String - isAtomWallet: Int - isTriple: Int - receiverId: String - receiverTotalSharesInVault: numeric - senderAssetsAfterTotalFees: numeric - senderId: String - sharesForReceiver: numeric - vaultId: numeric + receiver_id: String + receiver_total_shares_in_vault: numeric + sender_assets_after_total_fees: numeric + sender_id: String + shares_for_receiver: numeric + vault_id: numeric } """ -order by min() on columns of table "Deposit" +order by min() on columns of table "deposit" """ input deposits_min_order_by { - blockNumber: order_by - blockTimestamp: order_by - entryFee: order_by + block_number: order_by + block_timestamp: order_by + entry_fee: order_by id: order_by - isAtomWallet: order_by - isTriple: order_by - receiverId: order_by - receiverTotalSharesInVault: order_by - senderAssetsAfterTotalFees: order_by - senderId: order_by - sharesForReceiver: order_by - vaultId: order_by + receiver_id: order_by + receiver_total_shares_in_vault: order_by + sender_assets_after_total_fees: order_by + sender_id: order_by + shares_for_receiver: order_by + vault_id: order_by } """ -Ordering options when selecting data from "Deposit". +Ordering options when selecting data from "deposit". """ input deposits_order_by { - blockNumber: order_by - blockTimestamp: order_by - entryFee: order_by + block_number: order_by + block_timestamp: order_by + entry_fee: order_by + events_aggregate: events_aggregate_order_by id: order_by - isAtomWallet: order_by - isTriple: order_by + is_atom_wallet: order_by + is_triple: order_by receiver: accounts_order_by - receiverId: order_by - receiverTotalSharesInVault: order_by + receiver_id: order_by + receiver_total_shares_in_vault: order_by sender: accounts_order_by - senderAssetsAfterTotalFees: order_by - senderId: order_by - sharesForReceiver: order_by - transactionHash: order_by + sender_assets_after_total_fees: order_by + sender_id: order_by + shares_for_receiver: order_by + signals_aggregate: signals_aggregate_order_by + transaction_hash: order_by vault: vaults_order_by - vaultId: order_by + vault_id: order_by } """ -select columns of table "Deposit" +select columns of table "deposit" """ enum deposits_select_column { """ column name """ - blockNumber + block_number """ column name """ - blockTimestamp + block_timestamp """ column name """ - entryFee + entry_fee """ column name """ @@ -2718,129 +3470,145 @@ enum deposits_select_column { """ column name """ - isAtomWallet + is_atom_wallet + """ + column name + """ + is_triple + """ + column name + """ + receiver_id + """ + column name + """ + receiver_total_shares_in_vault """ column name """ - isTriple + sender_assets_after_total_fees """ column name """ - receiverId + sender_id """ column name """ - receiverTotalSharesInVault + shares_for_receiver """ column name """ - senderAssetsAfterTotalFees + transaction_hash + """ + column name + """ + vault_id +} + +""" +select "deposits_aggregate_bool_exp_bool_and_arguments_columns" columns of table "deposit" +""" +enum deposits_select_column_deposits_aggregate_bool_exp_bool_and_arguments_columns { """ column name """ - senderId + is_atom_wallet """ column name """ - sharesForReceiver + is_triple +} + +""" +select "deposits_aggregate_bool_exp_bool_or_arguments_columns" columns of table "deposit" +""" +enum deposits_select_column_deposits_aggregate_bool_exp_bool_or_arguments_columns { """ column name """ - transactionHash + is_atom_wallet """ column name """ - vaultId + is_triple } """ aggregate stddev on columns """ type deposits_stddev_fields { - blockNumber: Float - blockTimestamp: Float - entryFee: Float - isAtomWallet: Float - isTriple: Float - receiverTotalSharesInVault: Float - senderAssetsAfterTotalFees: Float - sharesForReceiver: Float - vaultId: Float + block_number: Float + block_timestamp: Float + entry_fee: Float + receiver_total_shares_in_vault: Float + sender_assets_after_total_fees: Float + shares_for_receiver: Float + vault_id: Float } """ -order by stddev() on columns of table "Deposit" +order by stddev() on columns of table "deposit" """ input deposits_stddev_order_by { - blockNumber: order_by - blockTimestamp: order_by - entryFee: order_by - isAtomWallet: order_by - isTriple: order_by - receiverTotalSharesInVault: order_by - senderAssetsAfterTotalFees: order_by - sharesForReceiver: order_by - vaultId: order_by + block_number: order_by + block_timestamp: order_by + entry_fee: order_by + receiver_total_shares_in_vault: order_by + sender_assets_after_total_fees: order_by + shares_for_receiver: order_by + vault_id: order_by } """ aggregate stddev_pop on columns """ type deposits_stddev_pop_fields { - blockNumber: Float - blockTimestamp: Float - entryFee: Float - isAtomWallet: Float - isTriple: Float - receiverTotalSharesInVault: Float - senderAssetsAfterTotalFees: Float - sharesForReceiver: Float - vaultId: Float + block_number: Float + block_timestamp: Float + entry_fee: Float + receiver_total_shares_in_vault: Float + sender_assets_after_total_fees: Float + shares_for_receiver: Float + vault_id: Float } """ -order by stddev_pop() on columns of table "Deposit" +order by stddev_pop() on columns of table "deposit" """ input deposits_stddev_pop_order_by { - blockNumber: order_by - blockTimestamp: order_by - entryFee: order_by - isAtomWallet: order_by - isTriple: order_by - receiverTotalSharesInVault: order_by - senderAssetsAfterTotalFees: order_by - sharesForReceiver: order_by - vaultId: order_by + block_number: order_by + block_timestamp: order_by + entry_fee: order_by + receiver_total_shares_in_vault: order_by + sender_assets_after_total_fees: order_by + shares_for_receiver: order_by + vault_id: order_by } """ aggregate stddev_samp on columns """ type deposits_stddev_samp_fields { - blockNumber: Float - blockTimestamp: Float - entryFee: Float - isAtomWallet: Float - isTriple: Float - receiverTotalSharesInVault: Float - senderAssetsAfterTotalFees: Float - sharesForReceiver: Float - vaultId: Float + block_number: Float + block_timestamp: Float + entry_fee: Float + receiver_total_shares_in_vault: Float + sender_assets_after_total_fees: Float + shares_for_receiver: Float + vault_id: Float } """ -order by stddev_samp() on columns of table "Deposit" +order by stddev_samp() on columns of table "deposit" """ input deposits_stddev_samp_order_by { - blockNumber: order_by - blockTimestamp: order_by - entryFee: order_by - isAtomWallet: order_by - isTriple: order_by - receiverTotalSharesInVault: order_by - senderAssetsAfterTotalFees: order_by - sharesForReceiver: order_by - vaultId: order_by + block_number: order_by + block_timestamp: order_by + entry_fee: order_by + receiver_total_shares_in_vault: order_by + sender_assets_after_total_fees: order_by + shares_for_receiver: order_by + vault_id: order_by } """ @@ -2861,187 +3629,199 @@ input deposits_stream_cursor_input { Initial value of the column from where the streaming should start """ input deposits_stream_cursor_value_input { - blockNumber: numeric - blockTimestamp: numeric - entryFee: numeric + block_number: numeric + block_timestamp: bigint + entry_fee: numeric id: String - isAtomWallet: Int - isTriple: Int - receiverId: String - receiverTotalSharesInVault: numeric - senderAssetsAfterTotalFees: numeric - senderId: String - sharesForReceiver: numeric - transactionHash: bytea - vaultId: numeric + is_atom_wallet: Boolean + is_triple: Boolean + receiver_id: String + receiver_total_shares_in_vault: numeric + sender_assets_after_total_fees: numeric + sender_id: String + shares_for_receiver: numeric + transaction_hash: bytea + vault_id: numeric } """ aggregate sum on columns """ type deposits_sum_fields { - blockNumber: numeric - blockTimestamp: numeric - entryFee: numeric - isAtomWallet: Int - isTriple: Int - receiverTotalSharesInVault: numeric - senderAssetsAfterTotalFees: numeric - sharesForReceiver: numeric - vaultId: numeric + block_number: numeric + block_timestamp: bigint + entry_fee: numeric + receiver_total_shares_in_vault: numeric + sender_assets_after_total_fees: numeric + shares_for_receiver: numeric + vault_id: numeric } """ -order by sum() on columns of table "Deposit" +order by sum() on columns of table "deposit" """ input deposits_sum_order_by { - blockNumber: order_by - blockTimestamp: order_by - entryFee: order_by - isAtomWallet: order_by - isTriple: order_by - receiverTotalSharesInVault: order_by - senderAssetsAfterTotalFees: order_by - sharesForReceiver: order_by - vaultId: order_by + block_number: order_by + block_timestamp: order_by + entry_fee: order_by + receiver_total_shares_in_vault: order_by + sender_assets_after_total_fees: order_by + shares_for_receiver: order_by + vault_id: order_by } """ aggregate var_pop on columns """ type deposits_var_pop_fields { - blockNumber: Float - blockTimestamp: Float - entryFee: Float - isAtomWallet: Float - isTriple: Float - receiverTotalSharesInVault: Float - senderAssetsAfterTotalFees: Float - sharesForReceiver: Float - vaultId: Float + block_number: Float + block_timestamp: Float + entry_fee: Float + receiver_total_shares_in_vault: Float + sender_assets_after_total_fees: Float + shares_for_receiver: Float + vault_id: Float } """ -order by var_pop() on columns of table "Deposit" +order by var_pop() on columns of table "deposit" """ input deposits_var_pop_order_by { - blockNumber: order_by - blockTimestamp: order_by - entryFee: order_by - isAtomWallet: order_by - isTriple: order_by - receiverTotalSharesInVault: order_by - senderAssetsAfterTotalFees: order_by - sharesForReceiver: order_by - vaultId: order_by + block_number: order_by + block_timestamp: order_by + entry_fee: order_by + receiver_total_shares_in_vault: order_by + sender_assets_after_total_fees: order_by + shares_for_receiver: order_by + vault_id: order_by } """ aggregate var_samp on columns """ type deposits_var_samp_fields { - blockNumber: Float - blockTimestamp: Float - entryFee: Float - isAtomWallet: Float - isTriple: Float - receiverTotalSharesInVault: Float - senderAssetsAfterTotalFees: Float - sharesForReceiver: Float - vaultId: Float + block_number: Float + block_timestamp: Float + entry_fee: Float + receiver_total_shares_in_vault: Float + sender_assets_after_total_fees: Float + shares_for_receiver: Float + vault_id: Float } """ -order by var_samp() on columns of table "Deposit" +order by var_samp() on columns of table "deposit" """ input deposits_var_samp_order_by { - blockNumber: order_by - blockTimestamp: order_by - entryFee: order_by - isAtomWallet: order_by - isTriple: order_by - receiverTotalSharesInVault: order_by - senderAssetsAfterTotalFees: order_by - sharesForReceiver: order_by - vaultId: order_by + block_number: order_by + block_timestamp: order_by + entry_fee: order_by + receiver_total_shares_in_vault: order_by + sender_assets_after_total_fees: order_by + shares_for_receiver: order_by + vault_id: order_by } """ aggregate variance on columns """ type deposits_variance_fields { - blockNumber: Float - blockTimestamp: Float - entryFee: Float - isAtomWallet: Float - isTriple: Float - receiverTotalSharesInVault: Float - senderAssetsAfterTotalFees: Float - sharesForReceiver: Float - vaultId: Float + block_number: Float + block_timestamp: Float + entry_fee: Float + receiver_total_shares_in_vault: Float + sender_assets_after_total_fees: Float + shares_for_receiver: Float + vault_id: Float } """ -order by variance() on columns of table "Deposit" +order by variance() on columns of table "deposit" """ input deposits_variance_order_by { - blockNumber: order_by - blockTimestamp: order_by - entryFee: order_by - isAtomWallet: order_by - isTriple: order_by - receiverTotalSharesInVault: order_by - senderAssetsAfterTotalFees: order_by - sharesForReceiver: order_by - vaultId: order_by + block_number: order_by + block_timestamp: order_by + entry_fee: order_by + receiver_total_shares_in_vault: order_by + sender_assets_after_total_fees: order_by + shares_for_receiver: order_by + vault_id: order_by +} + +scalar event_type + +""" +Boolean expression to compare columns of type "event_type". All fields are combined with logical 'AND'. +""" +input event_type_comparison_exp { + _eq: event_type + _gt: event_type + _gte: event_type + _in: [event_type!] + _is_null: Boolean + _lt: event_type + _lte: event_type + _neq: event_type + _nin: [event_type!] } """ -columns and relationships of "Event" +columns and relationships of "event" """ type events { """ An object relationship """ atom: atoms - atomId: numeric - blockNumber: numeric! - blockTimestamp: numeric! + atom_id: numeric + block_number: numeric! + block_timestamp: bigint! """ An object relationship """ deposit: deposits - depositId: String + deposit_id: String """ An object relationship """ - feeTransfer: feeTranfers - feeTransferId: String + fee_transfer: fee_transfers + fee_transfer_id: String id: String! """ An object relationship """ redemption: redemptions - redemptionId: String - transactionHash: bytea! + redemption_id: String + transaction_hash: bytea! """ An object relationship """ triple: triples - tripleId: numeric - type: String! + triple_id: numeric + type: event_type! } """ -aggregated selection of "Event" +aggregated selection of "event" """ type events_aggregate { aggregate: events_aggregate_fields nodes: [events!]! } +input events_aggregate_bool_exp { + count: events_aggregate_bool_exp_count +} + +input events_aggregate_bool_exp_count { + arguments: [events_select_column!] + distinct: Boolean + filter: events_bool_exp + predicate: Int_comparison_exp! +} + """ -aggregate fields of "Event" +aggregate fields of "event" """ type events_aggregate_fields { avg: events_avg_fields @@ -3057,115 +3837,172 @@ type events_aggregate_fields { variance: events_variance_fields } +""" +order by aggregate values of table "event" +""" +input events_aggregate_order_by { + avg: events_avg_order_by + count: order_by + max: events_max_order_by + min: events_min_order_by + stddev: events_stddev_order_by + stddev_pop: events_stddev_pop_order_by + stddev_samp: events_stddev_samp_order_by + sum: events_sum_order_by + var_pop: events_var_pop_order_by + var_samp: events_var_samp_order_by + variance: events_variance_order_by +} + """ aggregate avg on columns """ type events_avg_fields { - atomId: Float - blockNumber: Float - blockTimestamp: Float - tripleId: Float + atom_id: Float + block_number: Float + block_timestamp: Float + triple_id: Float } """ -Boolean expression to filter rows from the table "Event". All fields are combined with a logical 'AND'. +order by avg() on columns of table "event" +""" +input events_avg_order_by { + atom_id: order_by + block_number: order_by + block_timestamp: order_by + triple_id: order_by +} + +""" +Boolean expression to filter rows from the table "event". All fields are combined with a logical 'AND'. """ input events_bool_exp { _and: [events_bool_exp!] _not: events_bool_exp _or: [events_bool_exp!] atom: atoms_bool_exp - atomId: numeric_comparison_exp - blockNumber: numeric_comparison_exp - blockTimestamp: numeric_comparison_exp + atom_id: numeric_comparison_exp + block_number: numeric_comparison_exp + block_timestamp: bigint_comparison_exp deposit: deposits_bool_exp - depositId: String_comparison_exp - feeTransfer: feeTranfers_bool_exp - feeTransferId: String_comparison_exp + deposit_id: String_comparison_exp + fee_transfer: fee_transfers_bool_exp + fee_transfer_id: String_comparison_exp id: String_comparison_exp redemption: redemptions_bool_exp - redemptionId: String_comparison_exp - transactionHash: bytea_comparison_exp + redemption_id: String_comparison_exp + transaction_hash: bytea_comparison_exp triple: triples_bool_exp - tripleId: numeric_comparison_exp - type: String_comparison_exp + triple_id: numeric_comparison_exp + type: event_type_comparison_exp } """ aggregate max on columns """ type events_max_fields { - atomId: numeric - blockNumber: numeric - blockTimestamp: numeric - depositId: String - feeTransferId: String + atom_id: numeric + block_number: numeric + block_timestamp: bigint + deposit_id: String + fee_transfer_id: String id: String - redemptionId: String - tripleId: numeric - type: String + redemption_id: String + triple_id: numeric + type: event_type +} + +""" +order by max() on columns of table "event" +""" +input events_max_order_by { + atom_id: order_by + block_number: order_by + block_timestamp: order_by + deposit_id: order_by + fee_transfer_id: order_by + id: order_by + redemption_id: order_by + triple_id: order_by + type: order_by } """ aggregate min on columns """ type events_min_fields { - atomId: numeric - blockNumber: numeric - blockTimestamp: numeric - depositId: String - feeTransferId: String + atom_id: numeric + block_number: numeric + block_timestamp: bigint + deposit_id: String + fee_transfer_id: String id: String - redemptionId: String - tripleId: numeric - type: String + redemption_id: String + triple_id: numeric + type: event_type +} + +""" +order by min() on columns of table "event" +""" +input events_min_order_by { + atom_id: order_by + block_number: order_by + block_timestamp: order_by + deposit_id: order_by + fee_transfer_id: order_by + id: order_by + redemption_id: order_by + triple_id: order_by + type: order_by } """ -Ordering options when selecting data from "Event". +Ordering options when selecting data from "event". """ input events_order_by { atom: atoms_order_by - atomId: order_by - blockNumber: order_by - blockTimestamp: order_by + atom_id: order_by + block_number: order_by + block_timestamp: order_by deposit: deposits_order_by - depositId: order_by - feeTransfer: feeTranfers_order_by - feeTransferId: order_by + deposit_id: order_by + fee_transfer: fee_transfers_order_by + fee_transfer_id: order_by id: order_by redemption: redemptions_order_by - redemptionId: order_by - transactionHash: order_by + redemption_id: order_by + transaction_hash: order_by triple: triples_order_by - tripleId: order_by + triple_id: order_by type: order_by } """ -select columns of table "Event" +select columns of table "event" """ enum events_select_column { """ column name """ - atomId + atom_id """ column name """ - blockNumber + block_number """ column name """ - blockTimestamp + block_timestamp """ column name """ - depositId + deposit_id """ column name """ - feeTransferId + fee_transfer_id """ column name """ @@ -3173,15 +4010,15 @@ enum events_select_column { """ column name """ - redemptionId + redemption_id """ column name """ - transactionHash + transaction_hash """ column name """ - tripleId + triple_id """ column name """ @@ -3192,30 +4029,60 @@ enum events_select_column { aggregate stddev on columns """ type events_stddev_fields { - atomId: Float - blockNumber: Float - blockTimestamp: Float - tripleId: Float + atom_id: Float + block_number: Float + block_timestamp: Float + triple_id: Float +} + +""" +order by stddev() on columns of table "event" +""" +input events_stddev_order_by { + atom_id: order_by + block_number: order_by + block_timestamp: order_by + triple_id: order_by } """ aggregate stddev_pop on columns """ type events_stddev_pop_fields { - atomId: Float - blockNumber: Float - blockTimestamp: Float - tripleId: Float + atom_id: Float + block_number: Float + block_timestamp: Float + triple_id: Float +} + +""" +order by stddev_pop() on columns of table "event" +""" +input events_stddev_pop_order_by { + atom_id: order_by + block_number: order_by + block_timestamp: order_by + triple_id: order_by } """ aggregate stddev_samp on columns """ type events_stddev_samp_fields { - atomId: Float - blockNumber: Float - blockTimestamp: Float - tripleId: Float + atom_id: Float + block_number: Float + block_timestamp: Float + triple_id: Float +} + +""" +order by stddev_samp() on columns of table "event" +""" +input events_stddev_samp_order_by { + atom_id: order_by + block_number: order_by + block_timestamp: order_by + triple_id: order_by } """ @@ -3236,235 +4103,328 @@ input events_stream_cursor_input { Initial value of the column from where the streaming should start """ input events_stream_cursor_value_input { - atomId: numeric - blockNumber: numeric - blockTimestamp: numeric - depositId: String - feeTransferId: String + atom_id: numeric + block_number: numeric + block_timestamp: bigint + deposit_id: String + fee_transfer_id: String id: String - redemptionId: String - transactionHash: bytea - tripleId: numeric - type: String + redemption_id: String + transaction_hash: bytea + triple_id: numeric + type: event_type } """ aggregate sum on columns """ type events_sum_fields { - atomId: numeric - blockNumber: numeric - blockTimestamp: numeric - tripleId: numeric + atom_id: numeric + block_number: numeric + block_timestamp: bigint + triple_id: numeric +} + +""" +order by sum() on columns of table "event" +""" +input events_sum_order_by { + atom_id: order_by + block_number: order_by + block_timestamp: order_by + triple_id: order_by } """ aggregate var_pop on columns """ type events_var_pop_fields { - atomId: Float - blockNumber: Float - blockTimestamp: Float - tripleId: Float + atom_id: Float + block_number: Float + block_timestamp: Float + triple_id: Float +} + +""" +order by var_pop() on columns of table "event" +""" +input events_var_pop_order_by { + atom_id: order_by + block_number: order_by + block_timestamp: order_by + triple_id: order_by } """ aggregate var_samp on columns """ type events_var_samp_fields { - atomId: Float - blockNumber: Float - blockTimestamp: Float - tripleId: Float + atom_id: Float + block_number: Float + block_timestamp: Float + triple_id: Float +} + +""" +order by var_samp() on columns of table "event" +""" +input events_var_samp_order_by { + atom_id: order_by + block_number: order_by + block_timestamp: order_by + triple_id: order_by } """ aggregate variance on columns """ type events_variance_fields { - atomId: Float - blockNumber: Float - blockTimestamp: Float - tripleId: Float + atom_id: Float + block_number: Float + block_timestamp: Float + triple_id: Float } """ -columns and relationships of "FeeTransfer" +order by variance() on columns of table "event" """ -type feeTranfers { +input events_variance_order_by { + atom_id: order_by + block_number: order_by + block_timestamp: order_by + triple_id: order_by +} + +""" +columns and relationships of "fee_transfer" +""" +type fee_transfers { amount: numeric! - blockNumber: numeric! - blockTimestamp: numeric! + block_number: numeric! + block_timestamp: bigint! + """ + An array relationship + """ + events( + """ + distinct select on columns + """ + distinct_on: [events_select_column!] + """ + limit the number of rows returned + """ + limit: Int + """ + skip the first n rows. Use only with order_by + """ + offset: Int + """ + sort the rows by one or more columns + """ + order_by: [events_order_by!] + """ + filter the rows returned + """ + where: events_bool_exp + ): [events!]! + """ + An aggregate relationship + """ + events_aggregate( + """ + distinct select on columns + """ + distinct_on: [events_select_column!] + """ + limit the number of rows returned + """ + limit: Int + """ + skip the first n rows. Use only with order_by + """ + offset: Int + """ + sort the rows by one or more columns + """ + order_by: [events_order_by!] + """ + filter the rows returned + """ + where: events_bool_exp + ): events_aggregate! id: String! """ An object relationship """ - receiver: accounts - receiverId: String! + receiver: accounts! + receiver_id: String! """ An object relationship """ sender: accounts - senderId: String! - transactionHash: bytea! + sender_id: String! + transaction_hash: bytea! } """ -aggregated selection of "FeeTransfer" +aggregated selection of "fee_transfer" """ -type feeTranfers_aggregate { - aggregate: feeTranfers_aggregate_fields - nodes: [feeTranfers!]! +type fee_transfers_aggregate { + aggregate: fee_transfers_aggregate_fields + nodes: [fee_transfers!]! } -input feeTranfers_aggregate_bool_exp { - count: feeTranfers_aggregate_bool_exp_count +input fee_transfers_aggregate_bool_exp { + count: fee_transfers_aggregate_bool_exp_count } -input feeTranfers_aggregate_bool_exp_count { - arguments: [feeTranfers_select_column!] +input fee_transfers_aggregate_bool_exp_count { + arguments: [fee_transfers_select_column!] distinct: Boolean - filter: feeTranfers_bool_exp + filter: fee_transfers_bool_exp predicate: Int_comparison_exp! } """ -aggregate fields of "FeeTransfer" +aggregate fields of "fee_transfer" """ -type feeTranfers_aggregate_fields { - avg: feeTranfers_avg_fields - count(columns: [feeTranfers_select_column!], distinct: Boolean): Int! - max: feeTranfers_max_fields - min: feeTranfers_min_fields - stddev: feeTranfers_stddev_fields - stddev_pop: feeTranfers_stddev_pop_fields - stddev_samp: feeTranfers_stddev_samp_fields - sum: feeTranfers_sum_fields - var_pop: feeTranfers_var_pop_fields - var_samp: feeTranfers_var_samp_fields - variance: feeTranfers_variance_fields +type fee_transfers_aggregate_fields { + avg: fee_transfers_avg_fields + count(columns: [fee_transfers_select_column!], distinct: Boolean): Int! + max: fee_transfers_max_fields + min: fee_transfers_min_fields + stddev: fee_transfers_stddev_fields + stddev_pop: fee_transfers_stddev_pop_fields + stddev_samp: fee_transfers_stddev_samp_fields + sum: fee_transfers_sum_fields + var_pop: fee_transfers_var_pop_fields + var_samp: fee_transfers_var_samp_fields + variance: fee_transfers_variance_fields } """ -order by aggregate values of table "FeeTransfer" +order by aggregate values of table "fee_transfer" """ -input feeTranfers_aggregate_order_by { - avg: feeTranfers_avg_order_by +input fee_transfers_aggregate_order_by { + avg: fee_transfers_avg_order_by count: order_by - max: feeTranfers_max_order_by - min: feeTranfers_min_order_by - stddev: feeTranfers_stddev_order_by - stddev_pop: feeTranfers_stddev_pop_order_by - stddev_samp: feeTranfers_stddev_samp_order_by - sum: feeTranfers_sum_order_by - var_pop: feeTranfers_var_pop_order_by - var_samp: feeTranfers_var_samp_order_by - variance: feeTranfers_variance_order_by + max: fee_transfers_max_order_by + min: fee_transfers_min_order_by + stddev: fee_transfers_stddev_order_by + stddev_pop: fee_transfers_stddev_pop_order_by + stddev_samp: fee_transfers_stddev_samp_order_by + sum: fee_transfers_sum_order_by + var_pop: fee_transfers_var_pop_order_by + var_samp: fee_transfers_var_samp_order_by + variance: fee_transfers_variance_order_by } """ aggregate avg on columns """ -type feeTranfers_avg_fields { +type fee_transfers_avg_fields { amount: Float - blockNumber: Float - blockTimestamp: Float + block_number: Float + block_timestamp: Float } """ -order by avg() on columns of table "FeeTransfer" +order by avg() on columns of table "fee_transfer" """ -input feeTranfers_avg_order_by { +input fee_transfers_avg_order_by { amount: order_by - blockNumber: order_by - blockTimestamp: order_by + block_number: order_by + block_timestamp: order_by } """ -Boolean expression to filter rows from the table "FeeTransfer". All fields are combined with a logical 'AND'. +Boolean expression to filter rows from the table "fee_transfer". All fields are combined with a logical 'AND'. """ -input feeTranfers_bool_exp { - _and: [feeTranfers_bool_exp!] - _not: feeTranfers_bool_exp - _or: [feeTranfers_bool_exp!] +input fee_transfers_bool_exp { + _and: [fee_transfers_bool_exp!] + _not: fee_transfers_bool_exp + _or: [fee_transfers_bool_exp!] amount: numeric_comparison_exp - blockNumber: numeric_comparison_exp - blockTimestamp: numeric_comparison_exp + block_number: numeric_comparison_exp + block_timestamp: bigint_comparison_exp + events: events_bool_exp + events_aggregate: events_aggregate_bool_exp id: String_comparison_exp receiver: accounts_bool_exp - receiverId: String_comparison_exp + receiver_id: String_comparison_exp sender: accounts_bool_exp - senderId: String_comparison_exp - transactionHash: bytea_comparison_exp + sender_id: String_comparison_exp + transaction_hash: bytea_comparison_exp } """ aggregate max on columns """ -type feeTranfers_max_fields { +type fee_transfers_max_fields { amount: numeric - blockNumber: numeric - blockTimestamp: numeric + block_number: numeric + block_timestamp: bigint id: String - receiverId: String - senderId: String + receiver_id: String + sender_id: String } """ -order by max() on columns of table "FeeTransfer" +order by max() on columns of table "fee_transfer" """ -input feeTranfers_max_order_by { +input fee_transfers_max_order_by { amount: order_by - blockNumber: order_by - blockTimestamp: order_by + block_number: order_by + block_timestamp: order_by id: order_by - receiverId: order_by - senderId: order_by + receiver_id: order_by + sender_id: order_by } """ aggregate min on columns """ -type feeTranfers_min_fields { +type fee_transfers_min_fields { amount: numeric - blockNumber: numeric - blockTimestamp: numeric + block_number: numeric + block_timestamp: bigint id: String - receiverId: String - senderId: String + receiver_id: String + sender_id: String } """ -order by min() on columns of table "FeeTransfer" +order by min() on columns of table "fee_transfer" """ -input feeTranfers_min_order_by { +input fee_transfers_min_order_by { amount: order_by - blockNumber: order_by - blockTimestamp: order_by + block_number: order_by + block_timestamp: order_by id: order_by - receiverId: order_by - senderId: order_by + receiver_id: order_by + sender_id: order_by } """ -Ordering options when selecting data from "FeeTransfer". +Ordering options when selecting data from "fee_transfer". """ -input feeTranfers_order_by { +input fee_transfers_order_by { amount: order_by - blockNumber: order_by - blockTimestamp: order_by + block_number: order_by + block_timestamp: order_by + events_aggregate: events_aggregate_order_by id: order_by receiver: accounts_order_by - receiverId: order_by + receiver_id: order_by sender: accounts_order_by - senderId: order_by - transactionHash: order_by + sender_id: order_by + transaction_hash: order_by } """ -select columns of table "FeeTransfer" +select columns of table "fee_transfer" """ -enum feeTranfers_select_column { +enum fee_transfers_select_column { """ column name """ @@ -3472,11 +4432,11 @@ enum feeTranfers_select_column { """ column name """ - blockNumber + block_number """ column name """ - blockTimestamp + block_timestamp """ column name """ @@ -3484,79 +4444,79 @@ enum feeTranfers_select_column { """ column name """ - receiverId + receiver_id """ column name """ - senderId + sender_id """ column name """ - transactionHash + transaction_hash } """ aggregate stddev on columns """ -type feeTranfers_stddev_fields { +type fee_transfers_stddev_fields { amount: Float - blockNumber: Float - blockTimestamp: Float + block_number: Float + block_timestamp: Float } """ -order by stddev() on columns of table "FeeTransfer" +order by stddev() on columns of table "fee_transfer" """ -input feeTranfers_stddev_order_by { +input fee_transfers_stddev_order_by { amount: order_by - blockNumber: order_by - blockTimestamp: order_by + block_number: order_by + block_timestamp: order_by } """ aggregate stddev_pop on columns """ -type feeTranfers_stddev_pop_fields { +type fee_transfers_stddev_pop_fields { amount: Float - blockNumber: Float - blockTimestamp: Float + block_number: Float + block_timestamp: Float } """ -order by stddev_pop() on columns of table "FeeTransfer" +order by stddev_pop() on columns of table "fee_transfer" """ -input feeTranfers_stddev_pop_order_by { +input fee_transfers_stddev_pop_order_by { amount: order_by - blockNumber: order_by - blockTimestamp: order_by + block_number: order_by + block_timestamp: order_by } """ aggregate stddev_samp on columns """ -type feeTranfers_stddev_samp_fields { +type fee_transfers_stddev_samp_fields { amount: Float - blockNumber: Float - blockTimestamp: Float + block_number: Float + block_timestamp: Float } """ -order by stddev_samp() on columns of table "FeeTransfer" +order by stddev_samp() on columns of table "fee_transfer" """ -input feeTranfers_stddev_samp_order_by { +input fee_transfers_stddev_samp_order_by { amount: order_by - blockNumber: order_by - blockTimestamp: order_by + block_number: order_by + block_timestamp: order_by } """ -Streaming cursor of the table "feeTranfers" +Streaming cursor of the table "fee_transfers" """ -input feeTranfers_stream_cursor_input { +input fee_transfers_stream_cursor_input { """ Stream column input with initial value """ - initial_value: feeTranfers_stream_cursor_value_input! + initial_value: fee_transfers_stream_cursor_value_input! """ cursor ordering """ @@ -3566,86 +4526,86 @@ input feeTranfers_stream_cursor_input { """ Initial value of the column from where the streaming should start """ -input feeTranfers_stream_cursor_value_input { +input fee_transfers_stream_cursor_value_input { amount: numeric - blockNumber: numeric - blockTimestamp: numeric + block_number: numeric + block_timestamp: bigint id: String - receiverId: String - senderId: String - transactionHash: bytea + receiver_id: String + sender_id: String + transaction_hash: bytea } """ aggregate sum on columns """ -type feeTranfers_sum_fields { +type fee_transfers_sum_fields { amount: numeric - blockNumber: numeric - blockTimestamp: numeric + block_number: numeric + block_timestamp: bigint } """ -order by sum() on columns of table "FeeTransfer" +order by sum() on columns of table "fee_transfer" """ -input feeTranfers_sum_order_by { +input fee_transfers_sum_order_by { amount: order_by - blockNumber: order_by - blockTimestamp: order_by + block_number: order_by + block_timestamp: order_by } """ aggregate var_pop on columns """ -type feeTranfers_var_pop_fields { +type fee_transfers_var_pop_fields { amount: Float - blockNumber: Float - blockTimestamp: Float + block_number: Float + block_timestamp: Float } """ -order by var_pop() on columns of table "FeeTransfer" +order by var_pop() on columns of table "fee_transfer" """ -input feeTranfers_var_pop_order_by { +input fee_transfers_var_pop_order_by { amount: order_by - blockNumber: order_by - blockTimestamp: order_by + block_number: order_by + block_timestamp: order_by } """ aggregate var_samp on columns """ -type feeTranfers_var_samp_fields { +type fee_transfers_var_samp_fields { amount: Float - blockNumber: Float - blockTimestamp: Float + block_number: Float + block_timestamp: Float } """ -order by var_samp() on columns of table "FeeTransfer" +order by var_samp() on columns of table "fee_transfer" """ -input feeTranfers_var_samp_order_by { +input fee_transfers_var_samp_order_by { amount: order_by - blockNumber: order_by - blockTimestamp: order_by + block_number: order_by + block_timestamp: order_by } """ aggregate variance on columns """ -type feeTranfers_variance_fields { +type fee_transfers_variance_fields { amount: Float - blockNumber: Float - blockTimestamp: Float + block_number: Float + block_timestamp: Float } """ -order by variance() on columns of table "FeeTransfer" +order by variance() on columns of table "fee_transfer" """ -input feeTranfers_variance_order_by { +input fee_transfers_variance_order_by { amount: order_by - blockNumber: order_by - blockTimestamp: order_by + block_number: order_by + block_timestamp: order_by } scalar float8 @@ -3669,14 +4629,64 @@ input following_args { address: String } +scalar jsonb + +input jsonb_cast_exp { + String: String_comparison_exp +} + +""" +Boolean expression to compare columns of type "jsonb". All fields are combined with logical 'AND'. +""" +input jsonb_comparison_exp { + _cast: jsonb_cast_exp + """ + is the column contained in the given json value + """ + _contained_in: jsonb + """ + does the column contain the given json value at the top level + """ + _contains: jsonb + _eq: jsonb + _gt: jsonb + _gte: jsonb + """ + does the string exist as a top-level key in the column + """ + _has_key: String + """ + do all of these strings exist as top-level keys in the column + """ + _has_keys_all: [String!] + """ + do any of these strings exist as top-level keys in the column + """ + _has_keys_any: [String!] + _in: [jsonb!] + _is_null: Boolean + _lt: jsonb + _lte: jsonb + _neq: jsonb + _nin: [jsonb!] +} + """ mutation root """ type mutation_root { """ - Uploads Thing to IPFS + Uploads and pins Organization to IPFS """ - uploadThing(arg1: ThingInput!): ThingOutput + pinOrganization(organization: PinOrganizationInput!): PinOutput + """ + Uploads and pins Person to IPFS + """ + pinPerson(person: PinPersonInput!): PinOutput + """ + Uploads and pins Thing to IPFS + """ + pinThing(thing: PinThingInput!): PinOutput } scalar numeric @@ -3727,14 +4737,17 @@ enum order_by { } """ -columns and relationships of "Organization" +columns and relationships of "organization" """ type organizations { """ An object relationship """ atom: atoms - atomId: numeric! + """ + An object relationship + """ + cached_image: cached_images description: String email: String id: numeric! @@ -3744,7 +4757,7 @@ type organizations { } """ -aggregated selection of "Organization" +aggregated selection of "organization" """ type organizations_aggregate { aggregate: organizations_aggregate_fields @@ -3752,7 +4765,7 @@ type organizations_aggregate { } """ -aggregate fields of "Organization" +aggregate fields of "organization" """ type organizations_aggregate_fields { avg: organizations_avg_fields @@ -3772,19 +4785,18 @@ type organizations_aggregate_fields { aggregate avg on columns """ type organizations_avg_fields { - atomId: Float id: Float } """ -Boolean expression to filter rows from the table "Organization". All fields are combined with a logical 'AND'. +Boolean expression to filter rows from the table "organization". All fields are combined with a logical 'AND'. """ input organizations_bool_exp { _and: [organizations_bool_exp!] _not: organizations_bool_exp _or: [organizations_bool_exp!] atom: atoms_bool_exp - atomId: numeric_comparison_exp + cached_image: cached_images_bool_exp description: String_comparison_exp email: String_comparison_exp id: numeric_comparison_exp @@ -3797,7 +4809,6 @@ input organizations_bool_exp { aggregate max on columns """ type organizations_max_fields { - atomId: numeric description: String email: String id: numeric @@ -3810,7 +4821,6 @@ type organizations_max_fields { aggregate min on columns """ type organizations_min_fields { - atomId: numeric description: String email: String id: numeric @@ -3820,11 +4830,11 @@ type organizations_min_fields { } """ -Ordering options when selecting data from "Organization". +Ordering options when selecting data from "organization". """ input organizations_order_by { atom: atoms_order_by - atomId: order_by + cached_image: cached_images_order_by description: order_by email: order_by id: order_by @@ -3834,13 +4844,9 @@ input organizations_order_by { } """ -select columns of table "Organization" +select columns of table "organization" """ enum organizations_select_column { - """ - column name - """ - atomId """ column name """ @@ -3871,7 +4877,6 @@ enum organizations_select_column { aggregate stddev on columns """ type organizations_stddev_fields { - atomId: Float id: Float } @@ -3879,7 +4884,6 @@ type organizations_stddev_fields { aggregate stddev_pop on columns """ type organizations_stddev_pop_fields { - atomId: Float id: Float } @@ -3887,7 +4891,6 @@ type organizations_stddev_pop_fields { aggregate stddev_samp on columns """ type organizations_stddev_samp_fields { - atomId: Float id: Float } @@ -3909,7 +4912,6 @@ input organizations_stream_cursor_input { Initial value of the column from where the streaming should start """ input organizations_stream_cursor_value_input { - atomId: numeric description: String email: String id: numeric @@ -3922,7 +4924,6 @@ input organizations_stream_cursor_value_input { aggregate sum on columns """ type organizations_sum_fields { - atomId: numeric id: numeric } @@ -3930,7 +4931,6 @@ type organizations_sum_fields { aggregate var_pop on columns """ type organizations_var_pop_fields { - atomId: Float id: Float } @@ -3938,7 +4938,6 @@ type organizations_var_pop_fields { aggregate var_samp on columns """ type organizations_var_samp_fields { - atomId: Float id: Float } @@ -3946,19 +4945,21 @@ type organizations_var_samp_fields { aggregate variance on columns """ type organizations_variance_fields { - atomId: Float id: Float } """ -columns and relationships of "Person" +columns and relationships of "person" """ type persons { """ An object relationship """ atom: atoms - atomId: numeric! + """ + An object relationship + """ + cached_image: cached_images description: String email: String id: numeric! @@ -3969,7 +4970,7 @@ type persons { } """ -aggregated selection of "Person" +aggregated selection of "person" """ type persons_aggregate { aggregate: persons_aggregate_fields @@ -3977,7 +4978,7 @@ type persons_aggregate { } """ -aggregate fields of "Person" +aggregate fields of "person" """ type persons_aggregate_fields { avg: persons_avg_fields @@ -3997,19 +4998,18 @@ type persons_aggregate_fields { aggregate avg on columns """ type persons_avg_fields { - atomId: Float id: Float } """ -Boolean expression to filter rows from the table "Person". All fields are combined with a logical 'AND'. +Boolean expression to filter rows from the table "person". All fields are combined with a logical 'AND'. """ input persons_bool_exp { _and: [persons_bool_exp!] _not: persons_bool_exp _or: [persons_bool_exp!] atom: atoms_bool_exp - atomId: numeric_comparison_exp + cached_image: cached_images_bool_exp description: String_comparison_exp email: String_comparison_exp id: numeric_comparison_exp @@ -4023,7 +5023,6 @@ input persons_bool_exp { aggregate max on columns """ type persons_max_fields { - atomId: numeric description: String email: String id: numeric @@ -4037,7 +5036,6 @@ type persons_max_fields { aggregate min on columns """ type persons_min_fields { - atomId: numeric description: String email: String id: numeric @@ -4048,11 +5046,11 @@ type persons_min_fields { } """ -Ordering options when selecting data from "Person". +Ordering options when selecting data from "person". """ input persons_order_by { atom: atoms_order_by - atomId: order_by + cached_image: cached_images_order_by description: order_by email: order_by id: order_by @@ -4063,13 +5061,9 @@ input persons_order_by { } """ -select columns of table "Person" +select columns of table "person" """ enum persons_select_column { - """ - column name - """ - atomId """ column name """ @@ -4104,7 +5098,6 @@ enum persons_select_column { aggregate stddev on columns """ type persons_stddev_fields { - atomId: Float id: Float } @@ -4112,7 +5105,6 @@ type persons_stddev_fields { aggregate stddev_pop on columns """ type persons_stddev_pop_fields { - atomId: Float id: Float } @@ -4120,7 +5112,6 @@ type persons_stddev_pop_fields { aggregate stddev_samp on columns """ type persons_stddev_samp_fields { - atomId: Float id: Float } @@ -4142,7 +5133,6 @@ input persons_stream_cursor_input { Initial value of the column from where the streaming should start """ input persons_stream_cursor_value_input { - atomId: numeric description: String email: String id: numeric @@ -4156,7 +5146,6 @@ input persons_stream_cursor_value_input { aggregate sum on columns """ type persons_sum_fields { - atomId: numeric id: numeric } @@ -4164,7 +5153,6 @@ type persons_sum_fields { aggregate var_pop on columns """ type persons_var_pop_fields { - atomId: Float id: Float } @@ -4172,7 +5160,6 @@ type persons_var_pop_fields { aggregate var_samp on columns """ type persons_var_samp_fields { - atomId: Float id: Float } @@ -4180,30 +5167,29 @@ type persons_var_samp_fields { aggregate variance on columns """ type persons_variance_fields { - atomId: Float id: Float } """ -columns and relationships of "Position" +columns and relationships of "position" """ type positions { """ An object relationship """ account: accounts - accountId: String! + account_id: String! id: String! shares: numeric! """ An object relationship """ - vault: vaults - vaultId: numeric! + vault: vaults! + vault_id: numeric! } """ -aggregated selection of "Position" +aggregated selection of "position" """ type positions_aggregate { aggregate: positions_aggregate_fields @@ -4222,7 +5208,7 @@ input positions_aggregate_bool_exp_count { } """ -aggregate fields of "Position" +aggregate fields of "position" """ type positions_aggregate_fields { avg: positions_avg_fields @@ -4239,7 +5225,7 @@ type positions_aggregate_fields { } """ -order by aggregate values of table "Position" +order by aggregate values of table "position" """ input positions_aggregate_order_by { avg: positions_avg_order_by @@ -4260,92 +5246,92 @@ aggregate avg on columns """ type positions_avg_fields { shares: Float - vaultId: Float + vault_id: Float } """ -order by avg() on columns of table "Position" +order by avg() on columns of table "position" """ input positions_avg_order_by { shares: order_by - vaultId: order_by + vault_id: order_by } """ -Boolean expression to filter rows from the table "Position". All fields are combined with a logical 'AND'. +Boolean expression to filter rows from the table "position". All fields are combined with a logical 'AND'. """ input positions_bool_exp { _and: [positions_bool_exp!] _not: positions_bool_exp _or: [positions_bool_exp!] account: accounts_bool_exp - accountId: String_comparison_exp + account_id: String_comparison_exp id: String_comparison_exp shares: numeric_comparison_exp vault: vaults_bool_exp - vaultId: numeric_comparison_exp + vault_id: numeric_comparison_exp } """ aggregate max on columns """ type positions_max_fields { - accountId: String + account_id: String id: String shares: numeric - vaultId: numeric + vault_id: numeric } """ -order by max() on columns of table "Position" +order by max() on columns of table "position" """ input positions_max_order_by { - accountId: order_by + account_id: order_by id: order_by shares: order_by - vaultId: order_by + vault_id: order_by } """ aggregate min on columns """ type positions_min_fields { - accountId: String + account_id: String id: String shares: numeric - vaultId: numeric + vault_id: numeric } """ -order by min() on columns of table "Position" +order by min() on columns of table "position" """ input positions_min_order_by { - accountId: order_by + account_id: order_by id: order_by shares: order_by - vaultId: order_by + vault_id: order_by } """ -Ordering options when selecting data from "Position". +Ordering options when selecting data from "position". """ input positions_order_by { account: accounts_order_by - accountId: order_by + account_id: order_by id: order_by shares: order_by vault: vaults_order_by - vaultId: order_by + vault_id: order_by } """ -select columns of table "Position" +select columns of table "position" """ enum positions_select_column { """ column name """ - accountId + account_id """ column name """ @@ -4357,7 +5343,7 @@ enum positions_select_column { """ column name """ - vaultId + vault_id } """ @@ -4365,15 +5351,15 @@ aggregate stddev on columns """ type positions_stddev_fields { shares: Float - vaultId: Float + vault_id: Float } """ -order by stddev() on columns of table "Position" +order by stddev() on columns of table "position" """ input positions_stddev_order_by { shares: order_by - vaultId: order_by + vault_id: order_by } """ @@ -4381,15 +5367,15 @@ aggregate stddev_pop on columns """ type positions_stddev_pop_fields { shares: Float - vaultId: Float + vault_id: Float } """ -order by stddev_pop() on columns of table "Position" +order by stddev_pop() on columns of table "position" """ input positions_stddev_pop_order_by { shares: order_by - vaultId: order_by + vault_id: order_by } """ @@ -4397,15 +5383,15 @@ aggregate stddev_samp on columns """ type positions_stddev_samp_fields { shares: Float - vaultId: Float + vault_id: Float } """ -order by stddev_samp() on columns of table "Position" +order by stddev_samp() on columns of table "position" """ input positions_stddev_samp_order_by { shares: order_by - vaultId: order_by + vault_id: order_by } """ @@ -4426,10 +5412,10 @@ input positions_stream_cursor_input { Initial value of the column from where the streaming should start """ input positions_stream_cursor_value_input { - accountId: String + account_id: String id: String shares: numeric - vaultId: numeric + vault_id: numeric } """ @@ -4437,15 +5423,15 @@ aggregate sum on columns """ type positions_sum_fields { shares: numeric - vaultId: numeric + vault_id: numeric } """ -order by sum() on columns of table "Position" +order by sum() on columns of table "position" """ input positions_sum_order_by { shares: order_by - vaultId: order_by + vault_id: order_by } """ @@ -4453,15 +5439,15 @@ aggregate var_pop on columns """ type positions_var_pop_fields { shares: Float - vaultId: Float + vault_id: Float } """ -order by var_pop() on columns of table "Position" +order by var_pop() on columns of table "position" """ input positions_var_pop_order_by { shares: order_by - vaultId: order_by + vault_id: order_by } """ @@ -4469,15 +5455,15 @@ aggregate var_samp on columns """ type positions_var_samp_fields { shares: Float - vaultId: Float + vault_id: Float } """ -order by var_samp() on columns of table "Position" +order by var_samp() on columns of table "position" """ input positions_var_samp_order_by { shares: order_by - vaultId: order_by + vault_id: order_by } """ @@ -4485,130 +5471,130 @@ aggregate variance on columns """ type positions_variance_fields { shares: Float - vaultId: Float + vault_id: Float } """ -order by variance() on columns of table "Position" +order by variance() on columns of table "position" """ input positions_variance_order_by { shares: order_by - vaultId: order_by + vault_id: order_by } """ -columns and relationships of "PredicateObject" +columns and relationships of "predicate_object" """ -type predicateObjects { - claimCount: Int! +type predicate_objects { + claim_count: Int! id: String! """ An object relationship """ - object: atoms - objectId: numeric! + object: atoms! + object_id: numeric! """ An object relationship """ predicate: atoms - predicateId: numeric! - tripleCount: Int! + predicate_id: numeric! + triple_count: Int! } """ -aggregated selection of "PredicateObject" +aggregated selection of "predicate_object" """ -type predicateObjects_aggregate { - aggregate: predicateObjects_aggregate_fields - nodes: [predicateObjects!]! +type predicate_objects_aggregate { + aggregate: predicate_objects_aggregate_fields + nodes: [predicate_objects!]! } """ -aggregate fields of "PredicateObject" +aggregate fields of "predicate_object" """ -type predicateObjects_aggregate_fields { - avg: predicateObjects_avg_fields - count(columns: [predicateObjects_select_column!], distinct: Boolean): Int! - max: predicateObjects_max_fields - min: predicateObjects_min_fields - stddev: predicateObjects_stddev_fields - stddev_pop: predicateObjects_stddev_pop_fields - stddev_samp: predicateObjects_stddev_samp_fields - sum: predicateObjects_sum_fields - var_pop: predicateObjects_var_pop_fields - var_samp: predicateObjects_var_samp_fields - variance: predicateObjects_variance_fields +type predicate_objects_aggregate_fields { + avg: predicate_objects_avg_fields + count(columns: [predicate_objects_select_column!], distinct: Boolean): Int! + max: predicate_objects_max_fields + min: predicate_objects_min_fields + stddev: predicate_objects_stddev_fields + stddev_pop: predicate_objects_stddev_pop_fields + stddev_samp: predicate_objects_stddev_samp_fields + sum: predicate_objects_sum_fields + var_pop: predicate_objects_var_pop_fields + var_samp: predicate_objects_var_samp_fields + variance: predicate_objects_variance_fields } """ aggregate avg on columns """ -type predicateObjects_avg_fields { - claimCount: Float - objectId: Float - predicateId: Float - tripleCount: Float +type predicate_objects_avg_fields { + claim_count: Float + object_id: Float + predicate_id: Float + triple_count: Float } """ -Boolean expression to filter rows from the table "PredicateObject". All fields are combined with a logical 'AND'. +Boolean expression to filter rows from the table "predicate_object". All fields are combined with a logical 'AND'. """ -input predicateObjects_bool_exp { - _and: [predicateObjects_bool_exp!] - _not: predicateObjects_bool_exp - _or: [predicateObjects_bool_exp!] - claimCount: Int_comparison_exp +input predicate_objects_bool_exp { + _and: [predicate_objects_bool_exp!] + _not: predicate_objects_bool_exp + _or: [predicate_objects_bool_exp!] + claim_count: Int_comparison_exp id: String_comparison_exp object: atoms_bool_exp - objectId: numeric_comparison_exp + object_id: numeric_comparison_exp predicate: atoms_bool_exp - predicateId: numeric_comparison_exp - tripleCount: Int_comparison_exp + predicate_id: numeric_comparison_exp + triple_count: Int_comparison_exp } """ aggregate max on columns """ -type predicateObjects_max_fields { - claimCount: Int +type predicate_objects_max_fields { + claim_count: Int id: String - objectId: numeric - predicateId: numeric - tripleCount: Int + object_id: numeric + predicate_id: numeric + triple_count: Int } """ aggregate min on columns """ -type predicateObjects_min_fields { - claimCount: Int +type predicate_objects_min_fields { + claim_count: Int id: String - objectId: numeric - predicateId: numeric - tripleCount: Int + object_id: numeric + predicate_id: numeric + triple_count: Int } """ -Ordering options when selecting data from "PredicateObject". +Ordering options when selecting data from "predicate_object". """ -input predicateObjects_order_by { - claimCount: order_by +input predicate_objects_order_by { + claim_count: order_by id: order_by object: atoms_order_by - objectId: order_by + object_id: order_by predicate: atoms_order_by - predicateId: order_by - tripleCount: order_by + predicate_id: order_by + triple_count: order_by } """ -select columns of table "PredicateObject" +select columns of table "predicate_object" """ -enum predicateObjects_select_column { +enum predicate_objects_select_column { """ column name """ - claimCount + claim_count """ column name """ @@ -4616,55 +5602,55 @@ enum predicateObjects_select_column { """ column name """ - objectId + object_id """ column name """ - predicateId + predicate_id """ column name """ - tripleCount + triple_count } """ aggregate stddev on columns """ -type predicateObjects_stddev_fields { - claimCount: Float - objectId: Float - predicateId: Float - tripleCount: Float +type predicate_objects_stddev_fields { + claim_count: Float + object_id: Float + predicate_id: Float + triple_count: Float } """ aggregate stddev_pop on columns """ -type predicateObjects_stddev_pop_fields { - claimCount: Float - objectId: Float - predicateId: Float - tripleCount: Float +type predicate_objects_stddev_pop_fields { + claim_count: Float + object_id: Float + predicate_id: Float + triple_count: Float } """ aggregate stddev_samp on columns """ -type predicateObjects_stddev_samp_fields { - claimCount: Float - objectId: Float - predicateId: Float - tripleCount: Float +type predicate_objects_stddev_samp_fields { + claim_count: Float + object_id: Float + predicate_id: Float + triple_count: Float } """ -Streaming cursor of the table "predicateObjects" +Streaming cursor of the table "predicate_objects" """ -input predicateObjects_stream_cursor_input { +input predicate_objects_stream_cursor_input { """ Stream column input with initial value """ - initial_value: predicateObjects_stream_cursor_value_input! + initial_value: predicate_objects_stream_cursor_value_input! """ cursor ordering """ @@ -4674,61 +5660,61 @@ input predicateObjects_stream_cursor_input { """ Initial value of the column from where the streaming should start """ -input predicateObjects_stream_cursor_value_input { - claimCount: Int +input predicate_objects_stream_cursor_value_input { + claim_count: Int id: String - objectId: numeric - predicateId: numeric - tripleCount: Int + object_id: numeric + predicate_id: numeric + triple_count: Int } """ aggregate sum on columns """ -type predicateObjects_sum_fields { - claimCount: Int - objectId: numeric - predicateId: numeric - tripleCount: Int +type predicate_objects_sum_fields { + claim_count: Int + object_id: numeric + predicate_id: numeric + triple_count: Int } """ aggregate var_pop on columns """ -type predicateObjects_var_pop_fields { - claimCount: Float - objectId: Float - predicateId: Float - tripleCount: Float +type predicate_objects_var_pop_fields { + claim_count: Float + object_id: Float + predicate_id: Float + triple_count: Float } """ aggregate var_samp on columns """ -type predicateObjects_var_samp_fields { - claimCount: Float - objectId: Float - predicateId: Float - tripleCount: Float +type predicate_objects_var_samp_fields { + claim_count: Float + object_id: Float + predicate_id: Float + triple_count: Float } """ aggregate variance on columns """ -type predicateObjects_variance_fields { - claimCount: Float - objectId: Float - predicateId: Float - tripleCount: Float +type predicate_objects_variance_fields { + claim_count: Float + object_id: Float + predicate_id: Float + triple_count: Float } type query_root { """ - fetch data from the table: "Account" using primary key columns + fetch data from the table: "account" using primary key columns """ account(id: String!): accounts """ - fetch data from the table: "Account" + An array relationship """ accounts( """ @@ -4753,7 +5739,7 @@ type query_root { where: accounts_bool_exp ): [accounts!]! """ - fetch aggregated fields from the table: "Account" + An aggregate relationship """ accounts_aggregate( """ @@ -4778,7 +5764,7 @@ type query_root { where: accounts_bool_exp ): accounts_aggregate! """ - execute function "accounts_that_claim_about_account" which returns "Account" + execute function "accounts_that_claim_about_account" which returns "account" """ accounts_that_claim_about_account( """ @@ -4807,7 +5793,7 @@ type query_root { where: accounts_bool_exp ): [accounts!]! """ - execute function "accounts_that_claim_about_account" and query aggregates on result of table type "Account" + execute function "accounts_that_claim_about_account" and query aggregates on result of table type "account" """ accounts_that_claim_about_account_aggregate( """ @@ -4836,21 +5822,21 @@ type query_root { where: accounts_bool_exp ): accounts_aggregate! """ - fetch data from the table: "Atom" using primary key columns + fetch data from the table: "atom" using primary key columns """ atom(id: numeric!): atoms """ - fetch data from the table: "AtomValue" using primary key columns + fetch data from the table: "atom_value" using primary key columns """ - atomValue(id: numeric!): atomValues + atom_value(id: numeric!): atom_values """ - fetch data from the table: "AtomValue" + fetch data from the table: "atom_value" """ - atomValues( + atom_values( """ distinct select on columns """ - distinct_on: [atomValues_select_column!] + distinct_on: [atom_values_select_column!] """ limit the number of rows returned """ @@ -4862,20 +5848,20 @@ type query_root { """ sort the rows by one or more columns """ - order_by: [atomValues_order_by!] + order_by: [atom_values_order_by!] """ filter the rows returned """ - where: atomValues_bool_exp - ): [atomValues!]! + where: atom_values_bool_exp + ): [atom_values!]! """ - fetch aggregated fields from the table: "AtomValue" + fetch aggregated fields from the table: "atom_value" """ - atomValues_aggregate( + atom_values_aggregate( """ distinct select on columns """ - distinct_on: [atomValues_select_column!] + distinct_on: [atom_values_select_column!] """ limit the number of rows returned """ @@ -4887,14 +5873,14 @@ type query_root { """ sort the rows by one or more columns """ - order_by: [atomValues_order_by!] + order_by: [atom_values_order_by!] """ filter the rows returned """ - where: atomValues_bool_exp - ): atomValues_aggregate! + where: atom_values_bool_exp + ): atom_values_aggregate! """ - fetch data from the table: "Atom" + An array relationship """ atoms( """ @@ -4919,7 +5905,7 @@ type query_root { where: atoms_bool_exp ): [atoms!]! """ - fetch aggregated fields from the table: "Atom" + An aggregate relationship """ atoms_aggregate( """ @@ -4944,11 +5930,11 @@ type query_root { where: atoms_bool_exp ): atoms_aggregate! """ - fetch data from the table: "Book" using primary key columns + fetch data from the table: "book" using primary key columns """ book(id: numeric!): books """ - fetch data from the table: "Book" + fetch data from the table: "book" """ books( """ @@ -4973,7 +5959,7 @@ type query_root { where: books_bool_exp ): [books!]! """ - fetch aggregated fields from the table: "Book" + fetch aggregated fields from the table: "book" """ books_aggregate( """ @@ -4998,17 +5984,46 @@ type query_root { where: books_bool_exp ): books_aggregate! """ - fetch data from the table: "ChainlinkPrice" using primary key columns + fetch data from the table: "cached_image" using primary key columns + """ + cached_image(url: String!): cached_images + """ + fetch data from the table: "cached_image" + """ + cached_images( + """ + distinct select on columns + """ + distinct_on: [cached_images_select_column!] + """ + limit the number of rows returned + """ + limit: Int + """ + skip the first n rows. Use only with order_by + """ + offset: Int + """ + sort the rows by one or more columns + """ + order_by: [cached_images_order_by!] + """ + filter the rows returned + """ + where: cached_images_bool_exp + ): [cached_images!]! + """ + fetch data from the table: "chainlink_price" using primary key columns """ - chainLinkPrice(id: numeric!): chainLinkPrices + chainlink_price(id: numeric!): chainlink_prices """ - fetch data from the table: "ChainlinkPrice" + fetch data from the table: "chainlink_price" """ - chainLinkPrices( + chainlink_prices( """ distinct select on columns """ - distinct_on: [chainLinkPrices_select_column!] + distinct_on: [chainlink_prices_select_column!] """ limit the number of rows returned """ @@ -5020,14 +6035,14 @@ type query_root { """ sort the rows by one or more columns """ - order_by: [chainLinkPrices_order_by!] + order_by: [chainlink_prices_order_by!] """ filter the rows returned """ - where: chainLinkPrices_bool_exp - ): [chainLinkPrices!]! + where: chainlink_prices_bool_exp + ): [chainlink_prices!]! """ - fetch data from the table: "Claim" using primary key columns + fetch data from the table: "claim" using primary key columns """ claim(id: String!): claims """ @@ -5081,7 +6096,7 @@ type query_root { where: claims_bool_exp ): claims_aggregate! """ - execute function "claims_from_following" which returns "Claim" + execute function "claims_from_following" which returns "claim" """ claims_from_following( """ @@ -5110,7 +6125,7 @@ type query_root { where: claims_bool_exp ): [claims!]! """ - execute function "claims_from_following" and query aggregates on result of table type "Claim" + execute function "claims_from_following" and query aggregates on result of table type "claim" """ claims_from_following_aggregate( """ @@ -5139,7 +6154,7 @@ type query_root { where: claims_bool_exp ): claims_aggregate! """ - fetch data from the table: "Deposit" using primary key columns + fetch data from the table: "deposit" using primary key columns """ deposit(id: String!): deposits """ @@ -5193,11 +6208,11 @@ type query_root { where: deposits_bool_exp ): deposits_aggregate! """ - fetch data from the table: "Event" using primary key columns + fetch data from the table: "event" using primary key columns """ event(id: String!): events """ - fetch data from the table: "Event" + An array relationship """ events( """ @@ -5222,7 +6237,7 @@ type query_root { where: events_bool_exp ): [events!]! """ - fetch aggregated fields from the table: "Event" + An aggregate relationship """ events_aggregate( """ @@ -5247,13 +6262,17 @@ type query_root { where: events_bool_exp ): events_aggregate! """ - fetch data from the table: "FeeTransfer" + fetch data from the table: "fee_transfer" using primary key columns """ - feeTranfers( + fee_transfer(id: String!): fee_transfers + """ + An array relationship + """ + fee_transfers( """ distinct select on columns """ - distinct_on: [feeTranfers_select_column!] + distinct_on: [fee_transfers_select_column!] """ limit the number of rows returned """ @@ -5265,20 +6284,20 @@ type query_root { """ sort the rows by one or more columns """ - order_by: [feeTranfers_order_by!] + order_by: [fee_transfers_order_by!] """ filter the rows returned """ - where: feeTranfers_bool_exp - ): [feeTranfers!]! + where: fee_transfers_bool_exp + ): [fee_transfers!]! """ - fetch aggregated fields from the table: "FeeTransfer" + An aggregate relationship """ - feeTranfers_aggregate( + fee_transfers_aggregate( """ distinct select on columns """ - distinct_on: [feeTranfers_select_column!] + distinct_on: [fee_transfers_select_column!] """ limit the number of rows returned """ @@ -5290,18 +6309,14 @@ type query_root { """ sort the rows by one or more columns """ - order_by: [feeTranfers_order_by!] + order_by: [fee_transfers_order_by!] """ filter the rows returned """ - where: feeTranfers_bool_exp - ): feeTranfers_aggregate! + where: fee_transfers_bool_exp + ): fee_transfers_aggregate! """ - fetch data from the table: "FeeTransfer" using primary key columns - """ - feeTransfers(id: String!): feeTranfers - """ - execute function "following" which returns "Account" + execute function "following" which returns "account" """ following( """ @@ -5330,7 +6345,7 @@ type query_root { where: accounts_bool_exp ): [accounts!]! """ - execute function "following" and query aggregates on result of table type "Account" + execute function "following" and query aggregates on result of table type "account" """ following_aggregate( """ @@ -5359,11 +6374,11 @@ type query_root { where: accounts_bool_exp ): accounts_aggregate! """ - fetch data from the table: "Organization" using primary key columns + fetch data from the table: "organization" using primary key columns """ organization(id: numeric!): organizations """ - fetch data from the table: "Organization" + fetch data from the table: "organization" """ organizations( """ @@ -5388,7 +6403,7 @@ type query_root { where: organizations_bool_exp ): [organizations!]! """ - fetch aggregated fields from the table: "Organization" + fetch aggregated fields from the table: "organization" """ organizations_aggregate( """ @@ -5413,11 +6428,11 @@ type query_root { where: organizations_bool_exp ): organizations_aggregate! """ - fetch data from the table: "Person" using primary key columns + fetch data from the table: "person" using primary key columns """ person(id: numeric!): persons """ - fetch data from the table: "Person" + fetch data from the table: "person" """ persons( """ @@ -5442,7 +6457,7 @@ type query_root { where: persons_bool_exp ): [persons!]! """ - fetch aggregated fields from the table: "Person" + fetch aggregated fields from the table: "person" """ persons_aggregate( """ @@ -5467,7 +6482,7 @@ type query_root { where: persons_bool_exp ): persons_aggregate! """ - fetch data from the table: "Position" using primary key columns + fetch data from the table: "position" using primary key columns """ position(id: String!): positions """ @@ -5521,17 +6536,13 @@ type query_root { where: positions_bool_exp ): positions_aggregate! """ - fetch data from the table: "PredicateObject" using primary key columns - """ - predicateObject(id: String!): predicateObjects - """ - fetch data from the table: "PredicateObject" + fetch data from the table: "predicate_object" """ - predicateObjects( + predicate_objects( """ distinct select on columns """ - distinct_on: [predicateObjects_select_column!] + distinct_on: [predicate_objects_select_column!] """ limit the number of rows returned """ @@ -5543,20 +6554,20 @@ type query_root { """ sort the rows by one or more columns """ - order_by: [predicateObjects_order_by!] + order_by: [predicate_objects_order_by!] """ filter the rows returned """ - where: predicateObjects_bool_exp - ): [predicateObjects!]! + where: predicate_objects_bool_exp + ): [predicate_objects!]! """ - fetch aggregated fields from the table: "PredicateObject" + fetch aggregated fields from the table: "predicate_object" """ - predicateObjects_aggregate( + predicate_objects_aggregate( """ distinct select on columns """ - distinct_on: [predicateObjects_select_column!] + distinct_on: [predicate_objects_select_column!] """ limit the number of rows returned """ @@ -5568,14 +6579,18 @@ type query_root { """ sort the rows by one or more columns """ - order_by: [predicateObjects_order_by!] + order_by: [predicate_objects_order_by!] """ filter the rows returned """ - where: predicateObjects_bool_exp - ): predicateObjects_aggregate! + where: predicate_objects_bool_exp + ): predicate_objects_aggregate! """ - fetch data from the table: "Redemption" using primary key columns + fetch data from the table: "predicate_object" using primary key columns + """ + predicate_objects_by_pk(id: String!): predicate_objects + """ + fetch data from the table: "redemption" using primary key columns """ redemption(id: String!): redemptions """ @@ -5629,7 +6644,7 @@ type query_root { where: redemptions_bool_exp ): redemptions_aggregate! """ - fetch data from the table: "Signal" using primary key columns + fetch data from the table: "signal" using primary key columns """ signal(id: String!): signals """ @@ -5683,7 +6698,7 @@ type query_root { where: signals_bool_exp ): signals_aggregate! """ - execute function "signals_from_following" which returns "Signal" + execute function "signals_from_following" which returns "signal" """ signals_from_following( """ @@ -5712,7 +6727,7 @@ type query_root { where: signals_bool_exp ): [signals!]! """ - execute function "signals_from_following" and query aggregates on result of table type "Signal" + execute function "signals_from_following" and query aggregates on result of table type "signal" """ signals_from_following_aggregate( """ @@ -5741,21 +6756,17 @@ type query_root { where: signals_bool_exp ): signals_aggregate! """ - fetch data from the table: "Stats" using primary key columns + fetch data from the table: "stats" using primary key columns """ stat(id: Int!): stats """ - fetch data from the table: "StatsHour" using primary key columns - """ - statHour(id: Int!): statHours - """ - fetch data from the table: "StatsHour" + fetch data from the table: "stats" """ - statHours( + stats( """ distinct select on columns """ - distinct_on: [statHours_select_column!] + distinct_on: [stats_select_column!] """ limit the number of rows returned """ @@ -5767,20 +6778,20 @@ type query_root { """ sort the rows by one or more columns """ - order_by: [statHours_order_by!] + order_by: [stats_order_by!] """ filter the rows returned """ - where: statHours_bool_exp - ): [statHours!]! + where: stats_bool_exp + ): [stats!]! """ - fetch aggregated fields from the table: "StatsHour" + fetch aggregated fields from the table: "stats" """ - statHours_aggregate( + stats_aggregate( """ distinct select on columns """ - distinct_on: [statHours_select_column!] + distinct_on: [stats_select_column!] """ limit the number of rows returned """ @@ -5792,20 +6803,24 @@ type query_root { """ sort the rows by one or more columns """ - order_by: [statHours_order_by!] + order_by: [stats_order_by!] """ filter the rows returned """ - where: statHours_bool_exp - ): statHours_aggregate! + where: stats_bool_exp + ): stats_aggregate! """ - fetch data from the table: "Stats" + fetch data from the table: "thing" using primary key columns """ - stats( + thing(id: numeric!): things + """ + fetch data from the table: "thing" + """ + things( """ distinct select on columns """ - distinct_on: [stats_select_column!] + distinct_on: [things_select_column!] """ limit the number of rows returned """ @@ -5817,20 +6832,20 @@ type query_root { """ sort the rows by one or more columns """ - order_by: [stats_order_by!] + order_by: [things_order_by!] """ filter the rows returned """ - where: stats_bool_exp - ): [stats!]! + where: things_bool_exp + ): [things!]! """ - fetch aggregated fields from the table: "Stats" + fetch aggregated fields from the table: "thing" """ - stats_aggregate( + things_aggregate( """ distinct select on columns """ - distinct_on: [stats_select_column!] + distinct_on: [things_select_column!] """ limit the number of rows returned """ @@ -5842,24 +6857,24 @@ type query_root { """ sort the rows by one or more columns """ - order_by: [stats_order_by!] + order_by: [things_order_by!] """ filter the rows returned """ - where: stats_bool_exp - ): stats_aggregate! + where: things_bool_exp + ): things_aggregate! """ - fetch data from the table: "Thing" using primary key columns + fetch data from the table: "triple" using primary key columns """ - thing(id: numeric!): things + triple(id: numeric!): triples """ - fetch data from the table: "Thing" + An array relationship """ - things( + triples( """ distinct select on columns """ - distinct_on: [things_select_column!] + distinct_on: [triples_select_column!] """ limit the number of rows returned """ @@ -5871,20 +6886,20 @@ type query_root { """ sort the rows by one or more columns """ - order_by: [things_order_by!] + order_by: [triples_order_by!] """ filter the rows returned """ - where: things_bool_exp - ): [things!]! + where: triples_bool_exp + ): [triples!]! """ - fetch aggregated fields from the table: "Thing" + An aggregate relationship """ - things_aggregate( + triples_aggregate( """ distinct select on columns """ - distinct_on: [things_select_column!] + distinct_on: [triples_select_column!] """ limit the number of rows returned """ @@ -5896,24 +6911,24 @@ type query_root { """ sort the rows by one or more columns """ - order_by: [things_order_by!] + order_by: [triples_order_by!] """ filter the rows returned """ - where: things_bool_exp - ): things_aggregate! + where: triples_bool_exp + ): triples_aggregate! """ - fetch data from the table: "Triple" using primary key columns + fetch data from the table: "vault" using primary key columns """ - triple(id: numeric!): triples + vault(id: numeric!): vaults """ - fetch data from the table: "Triple" + fetch data from the table: "vault" """ - triples( + vaults( """ distinct select on columns """ - distinct_on: [triples_select_column!] + distinct_on: [vaults_select_column!] """ limit the number of rows returned """ @@ -5925,20 +6940,20 @@ type query_root { """ sort the rows by one or more columns """ - order_by: [triples_order_by!] + order_by: [vaults_order_by!] """ filter the rows returned """ - where: triples_bool_exp - ): [triples!]! + where: vaults_bool_exp + ): [vaults!]! """ - fetch aggregated fields from the table: "Triple" + fetch aggregated fields from the table: "vault" """ - triples_aggregate( + vaults_aggregate( """ distinct select on columns """ - distinct_on: [triples_select_column!] + distinct_on: [vaults_select_column!] """ limit the number of rows returned """ @@ -5950,24 +6965,93 @@ type query_root { """ sort the rows by one or more columns """ - order_by: [triples_order_by!] + order_by: [vaults_order_by!] """ filter the rows returned """ - where: triples_bool_exp - ): triples_aggregate! + where: vaults_bool_exp + ): vaults_aggregate! +} + +""" +columns and relationships of "redemption" +""" +type redemptions { + assets_for_receiver: numeric! + block_number: numeric! + block_timestamp: bigint! """ - fetch data from the table: "Vault" using primary key columns + An array relationship """ - vault(id: numeric!): vaults + events( + """ + distinct select on columns + """ + distinct_on: [events_select_column!] + """ + limit the number of rows returned + """ + limit: Int + """ + skip the first n rows. Use only with order_by + """ + offset: Int + """ + sort the rows by one or more columns + """ + order_by: [events_order_by!] + """ + filter the rows returned + """ + where: events_bool_exp + ): [events!]! """ - fetch data from the table: "Vault" + An aggregate relationship """ - vaults( + events_aggregate( + """ + distinct select on columns + """ + distinct_on: [events_select_column!] + """ + limit the number of rows returned + """ + limit: Int + """ + skip the first n rows. Use only with order_by + """ + offset: Int + """ + sort the rows by one or more columns + """ + order_by: [events_order_by!] + """ + filter the rows returned + """ + where: events_bool_exp + ): events_aggregate! + exit_fee: numeric! + id: String! + """ + An object relationship + """ + receiver: accounts! + receiver_id: String! + """ + An object relationship + """ + sender: accounts + sender_id: String! + sender_total_shares_in_vault: numeric! + shares_redeemed_by_sender: numeric! + """ + An array relationship + """ + signals( """ distinct select on columns """ - distinct_on: [vaults_select_column!] + distinct_on: [signals_select_column!] """ limit the number of rows returned """ @@ -5979,20 +7063,20 @@ type query_root { """ sort the rows by one or more columns """ - order_by: [vaults_order_by!] + order_by: [signals_order_by!] """ filter the rows returned """ - where: vaults_bool_exp - ): [vaults!]! + where: signals_bool_exp + ): [signals!]! """ - fetch aggregated fields from the table: "Vault" + An aggregate relationship """ - vaults_aggregate( + signals_aggregate( """ distinct select on columns """ - distinct_on: [vaults_select_column!] + distinct_on: [signals_select_column!] """ limit the number of rows returned """ @@ -6004,45 +7088,22 @@ type query_root { """ sort the rows by one or more columns """ - order_by: [vaults_order_by!] + order_by: [signals_order_by!] """ filter the rows returned """ - where: vaults_bool_exp - ): vaults_aggregate! -} - -""" -columns and relationships of "Redemption" -""" -type redemptions { - assetsForReceiver: numeric! - blockNumber: numeric! - blockTimestamp: numeric! - exitFee: numeric! - id: String! - """ - An object relationship - """ - receiver: accounts - receiverId: String! - """ - An object relationship - """ - sender: accounts - senderId: String! - senderTotalSharesInVault: numeric! - sharesRedeemedBySender: numeric! - transactionHash: bytea! + where: signals_bool_exp + ): signals_aggregate! + transaction_hash: bytea! """ An object relationship """ - vault: vaults - vaultId: numeric! + vault: vaults! + vault_id: numeric! } """ -aggregated selection of "Redemption" +aggregated selection of "redemption" """ type redemptions_aggregate { aggregate: redemptions_aggregate_fields @@ -6061,7 +7122,7 @@ input redemptions_aggregate_bool_exp_count { } """ -aggregate fields of "Redemption" +aggregate fields of "redemption" """ type redemptions_aggregate_fields { avg: redemptions_avg_fields @@ -6078,7 +7139,7 @@ type redemptions_aggregate_fields { } """ -order by aggregate values of table "Redemption" +order by aggregate values of table "redemption" """ input redemptions_aggregate_order_by { avg: redemptions_avg_order_by @@ -6098,155 +7159,161 @@ input redemptions_aggregate_order_by { aggregate avg on columns """ type redemptions_avg_fields { - assetsForReceiver: Float - blockNumber: Float - blockTimestamp: Float - exitFee: Float - senderTotalSharesInVault: Float - sharesRedeemedBySender: Float - vaultId: Float + assets_for_receiver: Float + block_number: Float + block_timestamp: Float + exit_fee: Float + sender_total_shares_in_vault: Float + shares_redeemed_by_sender: Float + vault_id: Float } """ -order by avg() on columns of table "Redemption" +order by avg() on columns of table "redemption" """ input redemptions_avg_order_by { - assetsForReceiver: order_by - blockNumber: order_by - blockTimestamp: order_by - exitFee: order_by - senderTotalSharesInVault: order_by - sharesRedeemedBySender: order_by - vaultId: order_by + assets_for_receiver: order_by + block_number: order_by + block_timestamp: order_by + exit_fee: order_by + sender_total_shares_in_vault: order_by + shares_redeemed_by_sender: order_by + vault_id: order_by } """ -Boolean expression to filter rows from the table "Redemption". All fields are combined with a logical 'AND'. +Boolean expression to filter rows from the table "redemption". All fields are combined with a logical 'AND'. """ input redemptions_bool_exp { _and: [redemptions_bool_exp!] _not: redemptions_bool_exp _or: [redemptions_bool_exp!] - assetsForReceiver: numeric_comparison_exp - blockNumber: numeric_comparison_exp - blockTimestamp: numeric_comparison_exp - exitFee: numeric_comparison_exp + assets_for_receiver: numeric_comparison_exp + block_number: numeric_comparison_exp + block_timestamp: bigint_comparison_exp + events: events_bool_exp + events_aggregate: events_aggregate_bool_exp + exit_fee: numeric_comparison_exp id: String_comparison_exp receiver: accounts_bool_exp - receiverId: String_comparison_exp + receiver_id: String_comparison_exp sender: accounts_bool_exp - senderId: String_comparison_exp - senderTotalSharesInVault: numeric_comparison_exp - sharesRedeemedBySender: numeric_comparison_exp - transactionHash: bytea_comparison_exp + sender_id: String_comparison_exp + sender_total_shares_in_vault: numeric_comparison_exp + shares_redeemed_by_sender: numeric_comparison_exp + signals: signals_bool_exp + signals_aggregate: signals_aggregate_bool_exp + transaction_hash: bytea_comparison_exp vault: vaults_bool_exp - vaultId: numeric_comparison_exp + vault_id: numeric_comparison_exp } """ aggregate max on columns """ type redemptions_max_fields { - assetsForReceiver: numeric - blockNumber: numeric - blockTimestamp: numeric - exitFee: numeric + assets_for_receiver: numeric + block_number: numeric + block_timestamp: bigint + exit_fee: numeric id: String - receiverId: String - senderId: String - senderTotalSharesInVault: numeric - sharesRedeemedBySender: numeric - vaultId: numeric + receiver_id: String + sender_id: String + sender_total_shares_in_vault: numeric + shares_redeemed_by_sender: numeric + vault_id: numeric } """ -order by max() on columns of table "Redemption" +order by max() on columns of table "redemption" """ input redemptions_max_order_by { - assetsForReceiver: order_by - blockNumber: order_by - blockTimestamp: order_by - exitFee: order_by + assets_for_receiver: order_by + block_number: order_by + block_timestamp: order_by + exit_fee: order_by id: order_by - receiverId: order_by - senderId: order_by - senderTotalSharesInVault: order_by - sharesRedeemedBySender: order_by - vaultId: order_by + receiver_id: order_by + sender_id: order_by + sender_total_shares_in_vault: order_by + shares_redeemed_by_sender: order_by + vault_id: order_by } """ aggregate min on columns """ type redemptions_min_fields { - assetsForReceiver: numeric - blockNumber: numeric - blockTimestamp: numeric - exitFee: numeric + assets_for_receiver: numeric + block_number: numeric + block_timestamp: bigint + exit_fee: numeric id: String - receiverId: String - senderId: String - senderTotalSharesInVault: numeric - sharesRedeemedBySender: numeric - vaultId: numeric + receiver_id: String + sender_id: String + sender_total_shares_in_vault: numeric + shares_redeemed_by_sender: numeric + vault_id: numeric } """ -order by min() on columns of table "Redemption" +order by min() on columns of table "redemption" """ input redemptions_min_order_by { - assetsForReceiver: order_by - blockNumber: order_by - blockTimestamp: order_by - exitFee: order_by + assets_for_receiver: order_by + block_number: order_by + block_timestamp: order_by + exit_fee: order_by id: order_by - receiverId: order_by - senderId: order_by - senderTotalSharesInVault: order_by - sharesRedeemedBySender: order_by - vaultId: order_by + receiver_id: order_by + sender_id: order_by + sender_total_shares_in_vault: order_by + shares_redeemed_by_sender: order_by + vault_id: order_by } """ -Ordering options when selecting data from "Redemption". +Ordering options when selecting data from "redemption". """ input redemptions_order_by { - assetsForReceiver: order_by - blockNumber: order_by - blockTimestamp: order_by - exitFee: order_by + assets_for_receiver: order_by + block_number: order_by + block_timestamp: order_by + events_aggregate: events_aggregate_order_by + exit_fee: order_by id: order_by receiver: accounts_order_by - receiverId: order_by + receiver_id: order_by sender: accounts_order_by - senderId: order_by - senderTotalSharesInVault: order_by - sharesRedeemedBySender: order_by - transactionHash: order_by + sender_id: order_by + sender_total_shares_in_vault: order_by + shares_redeemed_by_sender: order_by + signals_aggregate: signals_aggregate_order_by + transaction_hash: order_by vault: vaults_order_by - vaultId: order_by + vault_id: order_by } """ -select columns of table "Redemption" +select columns of table "redemption" """ enum redemptions_select_column { """ column name """ - assetsForReceiver + assets_for_receiver """ column name """ - blockNumber + block_number """ column name """ - blockTimestamp + block_timestamp """ column name """ - exitFee + exit_fee """ column name """ @@ -6254,105 +7321,105 @@ enum redemptions_select_column { """ column name """ - receiverId + receiver_id """ column name """ - senderId + sender_id """ column name """ - senderTotalSharesInVault + sender_total_shares_in_vault """ column name """ - sharesRedeemedBySender + shares_redeemed_by_sender """ column name """ - transactionHash + transaction_hash """ column name """ - vaultId + vault_id } """ aggregate stddev on columns """ type redemptions_stddev_fields { - assetsForReceiver: Float - blockNumber: Float - blockTimestamp: Float - exitFee: Float - senderTotalSharesInVault: Float - sharesRedeemedBySender: Float - vaultId: Float + assets_for_receiver: Float + block_number: Float + block_timestamp: Float + exit_fee: Float + sender_total_shares_in_vault: Float + shares_redeemed_by_sender: Float + vault_id: Float } """ -order by stddev() on columns of table "Redemption" +order by stddev() on columns of table "redemption" """ input redemptions_stddev_order_by { - assetsForReceiver: order_by - blockNumber: order_by - blockTimestamp: order_by - exitFee: order_by - senderTotalSharesInVault: order_by - sharesRedeemedBySender: order_by - vaultId: order_by + assets_for_receiver: order_by + block_number: order_by + block_timestamp: order_by + exit_fee: order_by + sender_total_shares_in_vault: order_by + shares_redeemed_by_sender: order_by + vault_id: order_by } """ aggregate stddev_pop on columns """ type redemptions_stddev_pop_fields { - assetsForReceiver: Float - blockNumber: Float - blockTimestamp: Float - exitFee: Float - senderTotalSharesInVault: Float - sharesRedeemedBySender: Float - vaultId: Float + assets_for_receiver: Float + block_number: Float + block_timestamp: Float + exit_fee: Float + sender_total_shares_in_vault: Float + shares_redeemed_by_sender: Float + vault_id: Float } """ -order by stddev_pop() on columns of table "Redemption" +order by stddev_pop() on columns of table "redemption" """ input redemptions_stddev_pop_order_by { - assetsForReceiver: order_by - blockNumber: order_by - blockTimestamp: order_by - exitFee: order_by - senderTotalSharesInVault: order_by - sharesRedeemedBySender: order_by - vaultId: order_by + assets_for_receiver: order_by + block_number: order_by + block_timestamp: order_by + exit_fee: order_by + sender_total_shares_in_vault: order_by + shares_redeemed_by_sender: order_by + vault_id: order_by } """ aggregate stddev_samp on columns """ type redemptions_stddev_samp_fields { - assetsForReceiver: Float - blockNumber: Float - blockTimestamp: Float - exitFee: Float - senderTotalSharesInVault: Float - sharesRedeemedBySender: Float - vaultId: Float + assets_for_receiver: Float + block_number: Float + block_timestamp: Float + exit_fee: Float + sender_total_shares_in_vault: Float + shares_redeemed_by_sender: Float + vault_id: Float } """ -order by stddev_samp() on columns of table "Redemption" +order by stddev_samp() on columns of table "redemption" """ input redemptions_stddev_samp_order_by { - assetsForReceiver: order_by - blockNumber: order_by - blockTimestamp: order_by - exitFee: order_by - senderTotalSharesInVault: order_by - sharesRedeemedBySender: order_by - vaultId: order_by + assets_for_receiver: order_by + block_number: order_by + block_timestamp: order_by + exit_fee: order_by + sender_total_shares_in_vault: order_by + shares_redeemed_by_sender: order_by + vault_id: order_by } """ @@ -6373,162 +7440,161 @@ input redemptions_stream_cursor_input { Initial value of the column from where the streaming should start """ input redemptions_stream_cursor_value_input { - assetsForReceiver: numeric - blockNumber: numeric - blockTimestamp: numeric - exitFee: numeric + assets_for_receiver: numeric + block_number: numeric + block_timestamp: bigint + exit_fee: numeric id: String - receiverId: String - senderId: String - senderTotalSharesInVault: numeric - sharesRedeemedBySender: numeric - transactionHash: bytea - vaultId: numeric + receiver_id: String + sender_id: String + sender_total_shares_in_vault: numeric + shares_redeemed_by_sender: numeric + transaction_hash: bytea + vault_id: numeric } """ aggregate sum on columns """ type redemptions_sum_fields { - assetsForReceiver: numeric - blockNumber: numeric - blockTimestamp: numeric - exitFee: numeric - senderTotalSharesInVault: numeric - sharesRedeemedBySender: numeric - vaultId: numeric + assets_for_receiver: numeric + block_number: numeric + block_timestamp: bigint + exit_fee: numeric + sender_total_shares_in_vault: numeric + shares_redeemed_by_sender: numeric + vault_id: numeric } """ -order by sum() on columns of table "Redemption" +order by sum() on columns of table "redemption" """ input redemptions_sum_order_by { - assetsForReceiver: order_by - blockNumber: order_by - blockTimestamp: order_by - exitFee: order_by - senderTotalSharesInVault: order_by - sharesRedeemedBySender: order_by - vaultId: order_by + assets_for_receiver: order_by + block_number: order_by + block_timestamp: order_by + exit_fee: order_by + sender_total_shares_in_vault: order_by + shares_redeemed_by_sender: order_by + vault_id: order_by } """ aggregate var_pop on columns """ type redemptions_var_pop_fields { - assetsForReceiver: Float - blockNumber: Float - blockTimestamp: Float - exitFee: Float - senderTotalSharesInVault: Float - sharesRedeemedBySender: Float - vaultId: Float + assets_for_receiver: Float + block_number: Float + block_timestamp: Float + exit_fee: Float + sender_total_shares_in_vault: Float + shares_redeemed_by_sender: Float + vault_id: Float } """ -order by var_pop() on columns of table "Redemption" +order by var_pop() on columns of table "redemption" """ input redemptions_var_pop_order_by { - assetsForReceiver: order_by - blockNumber: order_by - blockTimestamp: order_by - exitFee: order_by - senderTotalSharesInVault: order_by - sharesRedeemedBySender: order_by - vaultId: order_by + assets_for_receiver: order_by + block_number: order_by + block_timestamp: order_by + exit_fee: order_by + sender_total_shares_in_vault: order_by + shares_redeemed_by_sender: order_by + vault_id: order_by } """ aggregate var_samp on columns """ type redemptions_var_samp_fields { - assetsForReceiver: Float - blockNumber: Float - blockTimestamp: Float - exitFee: Float - senderTotalSharesInVault: Float - sharesRedeemedBySender: Float - vaultId: Float + assets_for_receiver: Float + block_number: Float + block_timestamp: Float + exit_fee: Float + sender_total_shares_in_vault: Float + shares_redeemed_by_sender: Float + vault_id: Float } """ -order by var_samp() on columns of table "Redemption" +order by var_samp() on columns of table "redemption" """ input redemptions_var_samp_order_by { - assetsForReceiver: order_by - blockNumber: order_by - blockTimestamp: order_by - exitFee: order_by - senderTotalSharesInVault: order_by - sharesRedeemedBySender: order_by - vaultId: order_by + assets_for_receiver: order_by + block_number: order_by + block_timestamp: order_by + exit_fee: order_by + sender_total_shares_in_vault: order_by + shares_redeemed_by_sender: order_by + vault_id: order_by } """ aggregate variance on columns """ type redemptions_variance_fields { - assetsForReceiver: Float - blockNumber: Float - blockTimestamp: Float - exitFee: Float - senderTotalSharesInVault: Float - sharesRedeemedBySender: Float - vaultId: Float + assets_for_receiver: Float + block_number: Float + block_timestamp: Float + exit_fee: Float + sender_total_shares_in_vault: Float + shares_redeemed_by_sender: Float + vault_id: Float } """ -order by variance() on columns of table "Redemption" +order by variance() on columns of table "redemption" """ input redemptions_variance_order_by { - assetsForReceiver: order_by - blockNumber: order_by - blockTimestamp: order_by - exitFee: order_by - senderTotalSharesInVault: order_by - sharesRedeemedBySender: order_by - vaultId: order_by + assets_for_receiver: order_by + block_number: order_by + block_timestamp: order_by + exit_fee: order_by + sender_total_shares_in_vault: order_by + shares_redeemed_by_sender: order_by + vault_id: order_by } """ -columns and relationships of "Signal" +columns and relationships of "signal" """ type signals { """ An object relationship """ account: accounts - accountId: String! + account_id: String! """ An object relationship """ atom: atoms - atomId: numeric - blockNumber: numeric! - blockTimestamp: numeric! + atom_id: numeric + block_number: numeric! + block_timestamp: bigint! delta: numeric! """ An object relationship """ deposit: deposits - depositId: String + deposit_id: String id: String! """ An object relationship """ redemption: redemptions - redemptionId: String - relativeStrength: numeric! - transactionHash: bytea! + redemption_id: String + transaction_hash: bytea! """ An object relationship """ triple: triples - tripleId: numeric + triple_id: numeric } """ -aggregated selection of "Signal" +aggregated selection of "signal" """ type signals_aggregate { aggregate: signals_aggregate_fields @@ -6547,7 +7613,7 @@ input signals_aggregate_bool_exp_count { } """ -aggregate fields of "Signal" +aggregate fields of "signal" """ type signals_aggregate_fields { avg: signals_avg_fields @@ -6564,7 +7630,7 @@ type signals_aggregate_fields { } """ -order by aggregate values of table "Signal" +order by aggregate values of table "signal" """ input signals_aggregate_order_by { avg: signals_avg_order_by @@ -6584,590 +7650,253 @@ input signals_aggregate_order_by { aggregate avg on columns """ type signals_avg_fields { - atomId: Float - blockNumber: Float - blockTimestamp: Float - delta: Float - relativeStrength: Float - tripleId: Float -} - -""" -order by avg() on columns of table "Signal" -""" -input signals_avg_order_by { - atomId: order_by - blockNumber: order_by - blockTimestamp: order_by - delta: order_by - relativeStrength: order_by - tripleId: order_by -} - -""" -Boolean expression to filter rows from the table "Signal". All fields are combined with a logical 'AND'. -""" -input signals_bool_exp { - _and: [signals_bool_exp!] - _not: signals_bool_exp - _or: [signals_bool_exp!] - account: accounts_bool_exp - accountId: String_comparison_exp - atom: atoms_bool_exp - atomId: numeric_comparison_exp - blockNumber: numeric_comparison_exp - blockTimestamp: numeric_comparison_exp - delta: numeric_comparison_exp - deposit: deposits_bool_exp - depositId: String_comparison_exp - id: String_comparison_exp - redemption: redemptions_bool_exp - redemptionId: String_comparison_exp - relativeStrength: numeric_comparison_exp - transactionHash: bytea_comparison_exp - triple: triples_bool_exp - tripleId: numeric_comparison_exp -} - -input signals_from_following_args { - address: String -} - -""" -aggregate max on columns -""" -type signals_max_fields { - accountId: String - atomId: numeric - blockNumber: numeric - blockTimestamp: numeric - delta: numeric - depositId: String - id: String - redemptionId: String - relativeStrength: numeric - tripleId: numeric -} - -""" -order by max() on columns of table "Signal" -""" -input signals_max_order_by { - accountId: order_by - atomId: order_by - blockNumber: order_by - blockTimestamp: order_by - delta: order_by - depositId: order_by - id: order_by - redemptionId: order_by - relativeStrength: order_by - tripleId: order_by -} - -""" -aggregate min on columns -""" -type signals_min_fields { - accountId: String - atomId: numeric - blockNumber: numeric - blockTimestamp: numeric - delta: numeric - depositId: String - id: String - redemptionId: String - relativeStrength: numeric - tripleId: numeric -} - -""" -order by min() on columns of table "Signal" -""" -input signals_min_order_by { - accountId: order_by - atomId: order_by - blockNumber: order_by - blockTimestamp: order_by - delta: order_by - depositId: order_by - id: order_by - redemptionId: order_by - relativeStrength: order_by - tripleId: order_by -} - -""" -Ordering options when selecting data from "Signal". -""" -input signals_order_by { - account: accounts_order_by - accountId: order_by - atom: atoms_order_by - atomId: order_by - blockNumber: order_by - blockTimestamp: order_by - delta: order_by - deposit: deposits_order_by - depositId: order_by - id: order_by - redemption: redemptions_order_by - redemptionId: order_by - relativeStrength: order_by - transactionHash: order_by - triple: triples_order_by - tripleId: order_by -} - -""" -select columns of table "Signal" -""" -enum signals_select_column { - """ - column name - """ - accountId - """ - column name - """ - atomId - """ - column name - """ - blockNumber - """ - column name - """ - blockTimestamp - """ - column name - """ - delta - """ - column name - """ - depositId - """ - column name - """ - id - """ - column name - """ - redemptionId - """ - column name - """ - relativeStrength - """ - column name - """ - transactionHash - """ - column name - """ - tripleId -} - -""" -aggregate stddev on columns -""" -type signals_stddev_fields { - atomId: Float - blockNumber: Float - blockTimestamp: Float - delta: Float - relativeStrength: Float - tripleId: Float -} - -""" -order by stddev() on columns of table "Signal" -""" -input signals_stddev_order_by { - atomId: order_by - blockNumber: order_by - blockTimestamp: order_by - delta: order_by - relativeStrength: order_by - tripleId: order_by -} - -""" -aggregate stddev_pop on columns -""" -type signals_stddev_pop_fields { - atomId: Float - blockNumber: Float - blockTimestamp: Float - delta: Float - relativeStrength: Float - tripleId: Float -} - -""" -order by stddev_pop() on columns of table "Signal" -""" -input signals_stddev_pop_order_by { - atomId: order_by - blockNumber: order_by - blockTimestamp: order_by - delta: order_by - relativeStrength: order_by - tripleId: order_by -} - -""" -aggregate stddev_samp on columns -""" -type signals_stddev_samp_fields { - atomId: Float - blockNumber: Float - blockTimestamp: Float - delta: Float - relativeStrength: Float - tripleId: Float -} - -""" -order by stddev_samp() on columns of table "Signal" -""" -input signals_stddev_samp_order_by { - atomId: order_by - blockNumber: order_by - blockTimestamp: order_by - delta: order_by - relativeStrength: order_by - tripleId: order_by -} - -""" -Streaming cursor of the table "signals" -""" -input signals_stream_cursor_input { - """ - Stream column input with initial value - """ - initial_value: signals_stream_cursor_value_input! - """ - cursor ordering - """ - ordering: cursor_ordering -} - -""" -Initial value of the column from where the streaming should start -""" -input signals_stream_cursor_value_input { - accountId: String - atomId: numeric - blockNumber: numeric - blockTimestamp: numeric - delta: numeric - depositId: String - id: String - redemptionId: String - relativeStrength: numeric - transactionHash: bytea - tripleId: numeric -} - -""" -aggregate sum on columns -""" -type signals_sum_fields { - atomId: numeric - blockNumber: numeric - blockTimestamp: numeric - delta: numeric - relativeStrength: numeric - tripleId: numeric -} - -""" -order by sum() on columns of table "Signal" -""" -input signals_sum_order_by { - atomId: order_by - blockNumber: order_by - blockTimestamp: order_by - delta: order_by - relativeStrength: order_by - tripleId: order_by -} - -""" -aggregate var_pop on columns -""" -type signals_var_pop_fields { - atomId: Float - blockNumber: Float - blockTimestamp: Float + atom_id: Float + block_number: Float + block_timestamp: Float delta: Float - relativeStrength: Float - tripleId: Float -} - -""" -order by var_pop() on columns of table "Signal" -""" -input signals_var_pop_order_by { - atomId: order_by - blockNumber: order_by - blockTimestamp: order_by - delta: order_by - relativeStrength: order_by - tripleId: order_by -} - -""" -aggregate var_samp on columns -""" -type signals_var_samp_fields { - atomId: Float - blockNumber: Float - blockTimestamp: Float - delta: Float - relativeStrength: Float - tripleId: Float -} - -""" -order by var_samp() on columns of table "Signal" -""" -input signals_var_samp_order_by { - atomId: order_by - blockNumber: order_by - blockTimestamp: order_by - delta: order_by - relativeStrength: order_by - tripleId: order_by -} - -""" -aggregate variance on columns -""" -type signals_variance_fields { - atomId: Float - blockNumber: Float - blockTimestamp: Float - delta: Float - relativeStrength: Float - tripleId: Float -} - -""" -order by variance() on columns of table "Signal" -""" -input signals_variance_order_by { - atomId: order_by - blockNumber: order_by - blockTimestamp: order_by - delta: order_by - relativeStrength: order_by - tripleId: order_by + triple_id: Float } """ -columns and relationships of "StatsHour" +order by avg() on columns of table "signal" """ -type statHours { - contractBalance: numeric! - id: Int! - totalAccounts: Int! - totalAtoms: Int! - totalFees: numeric! - totalPositions: Int! - totalSignals: Int! - totalTriples: Int! +input signals_avg_order_by { + atom_id: order_by + block_number: order_by + block_timestamp: order_by + delta: order_by + triple_id: order_by } """ -aggregated selection of "StatsHour" +Boolean expression to filter rows from the table "signal". All fields are combined with a logical 'AND'. """ -type statHours_aggregate { - aggregate: statHours_aggregate_fields - nodes: [statHours!]! +input signals_bool_exp { + _and: [signals_bool_exp!] + _not: signals_bool_exp + _or: [signals_bool_exp!] + account: accounts_bool_exp + account_id: String_comparison_exp + atom: atoms_bool_exp + atom_id: numeric_comparison_exp + block_number: numeric_comparison_exp + block_timestamp: bigint_comparison_exp + delta: numeric_comparison_exp + deposit: deposits_bool_exp + deposit_id: String_comparison_exp + id: String_comparison_exp + redemption: redemptions_bool_exp + redemption_id: String_comparison_exp + transaction_hash: bytea_comparison_exp + triple: triples_bool_exp + triple_id: numeric_comparison_exp } -""" -aggregate fields of "StatsHour" -""" -type statHours_aggregate_fields { - avg: statHours_avg_fields - count(columns: [statHours_select_column!], distinct: Boolean): Int! - max: statHours_max_fields - min: statHours_min_fields - stddev: statHours_stddev_fields - stddev_pop: statHours_stddev_pop_fields - stddev_samp: statHours_stddev_samp_fields - sum: statHours_sum_fields - var_pop: statHours_var_pop_fields - var_samp: statHours_var_samp_fields - variance: statHours_variance_fields +input signals_from_following_args { + address: String } """ -aggregate avg on columns +aggregate max on columns """ -type statHours_avg_fields { - contractBalance: Float - id: Float - totalAccounts: Float - totalAtoms: Float - totalFees: Float - totalPositions: Float - totalSignals: Float - totalTriples: Float +type signals_max_fields { + account_id: String + atom_id: numeric + block_number: numeric + block_timestamp: bigint + delta: numeric + deposit_id: String + id: String + redemption_id: String + triple_id: numeric } """ -Boolean expression to filter rows from the table "StatsHour". All fields are combined with a logical 'AND'. +order by max() on columns of table "signal" """ -input statHours_bool_exp { - _and: [statHours_bool_exp!] - _not: statHours_bool_exp - _or: [statHours_bool_exp!] - contractBalance: numeric_comparison_exp - id: Int_comparison_exp - totalAccounts: Int_comparison_exp - totalAtoms: Int_comparison_exp - totalFees: numeric_comparison_exp - totalPositions: Int_comparison_exp - totalSignals: Int_comparison_exp - totalTriples: Int_comparison_exp +input signals_max_order_by { + account_id: order_by + atom_id: order_by + block_number: order_by + block_timestamp: order_by + delta: order_by + deposit_id: order_by + id: order_by + redemption_id: order_by + triple_id: order_by } """ -aggregate max on columns +aggregate min on columns """ -type statHours_max_fields { - contractBalance: numeric - id: Int - totalAccounts: Int - totalAtoms: Int - totalFees: numeric - totalPositions: Int - totalSignals: Int - totalTriples: Int +type signals_min_fields { + account_id: String + atom_id: numeric + block_number: numeric + block_timestamp: bigint + delta: numeric + deposit_id: String + id: String + redemption_id: String + triple_id: numeric } """ -aggregate min on columns +order by min() on columns of table "signal" """ -type statHours_min_fields { - contractBalance: numeric - id: Int - totalAccounts: Int - totalAtoms: Int - totalFees: numeric - totalPositions: Int - totalSignals: Int - totalTriples: Int +input signals_min_order_by { + account_id: order_by + atom_id: order_by + block_number: order_by + block_timestamp: order_by + delta: order_by + deposit_id: order_by + id: order_by + redemption_id: order_by + triple_id: order_by } """ -Ordering options when selecting data from "StatsHour". +Ordering options when selecting data from "signal". """ -input statHours_order_by { - contractBalance: order_by +input signals_order_by { + account: accounts_order_by + account_id: order_by + atom: atoms_order_by + atom_id: order_by + block_number: order_by + block_timestamp: order_by + delta: order_by + deposit: deposits_order_by + deposit_id: order_by id: order_by - totalAccounts: order_by - totalAtoms: order_by - totalFees: order_by - totalPositions: order_by - totalSignals: order_by - totalTriples: order_by + redemption: redemptions_order_by + redemption_id: order_by + transaction_hash: order_by + triple: triples_order_by + triple_id: order_by } """ -select columns of table "StatsHour" +select columns of table "signal" """ -enum statHours_select_column { +enum signals_select_column { """ column name """ - contractBalance + account_id """ column name """ - id + atom_id """ column name """ - totalAccounts + block_number """ column name """ - totalAtoms + block_timestamp """ column name """ - totalFees + delta + """ + column name + """ + deposit_id + """ + column name + """ + id """ column name """ - totalPositions + redemption_id """ column name """ - totalSignals + transaction_hash """ column name """ - totalTriples + triple_id } """ aggregate stddev on columns """ -type statHours_stddev_fields { - contractBalance: Float - id: Float - totalAccounts: Float - totalAtoms: Float - totalFees: Float - totalPositions: Float - totalSignals: Float - totalTriples: Float +type signals_stddev_fields { + atom_id: Float + block_number: Float + block_timestamp: Float + delta: Float + triple_id: Float +} + +""" +order by stddev() on columns of table "signal" +""" +input signals_stddev_order_by { + atom_id: order_by + block_number: order_by + block_timestamp: order_by + delta: order_by + triple_id: order_by } """ aggregate stddev_pop on columns """ -type statHours_stddev_pop_fields { - contractBalance: Float - id: Float - totalAccounts: Float - totalAtoms: Float - totalFees: Float - totalPositions: Float - totalSignals: Float - totalTriples: Float +type signals_stddev_pop_fields { + atom_id: Float + block_number: Float + block_timestamp: Float + delta: Float + triple_id: Float +} + +""" +order by stddev_pop() on columns of table "signal" +""" +input signals_stddev_pop_order_by { + atom_id: order_by + block_number: order_by + block_timestamp: order_by + delta: order_by + triple_id: order_by } """ aggregate stddev_samp on columns """ -type statHours_stddev_samp_fields { - contractBalance: Float - id: Float - totalAccounts: Float - totalAtoms: Float - totalFees: Float - totalPositions: Float - totalSignals: Float - totalTriples: Float +type signals_stddev_samp_fields { + atom_id: Float + block_number: Float + block_timestamp: Float + delta: Float + triple_id: Float +} + +""" +order by stddev_samp() on columns of table "signal" +""" +input signals_stddev_samp_order_by { + atom_id: order_by + block_number: order_by + block_timestamp: order_by + delta: order_by + triple_id: order_by } """ -Streaming cursor of the table "statHours" +Streaming cursor of the table "signals" """ -input statHours_stream_cursor_input { +input signals_stream_cursor_input { """ Stream column input with initial value """ - initial_value: statHours_stream_cursor_value_input! + initial_value: signals_stream_cursor_value_input! """ cursor ordering """ @@ -7177,89 +7906,123 @@ input statHours_stream_cursor_input { """ Initial value of the column from where the streaming should start """ -input statHours_stream_cursor_value_input { - contractBalance: numeric - id: Int - totalAccounts: Int - totalAtoms: Int - totalFees: numeric - totalPositions: Int - totalSignals: Int - totalTriples: Int +input signals_stream_cursor_value_input { + account_id: String + atom_id: numeric + block_number: numeric + block_timestamp: bigint + delta: numeric + deposit_id: String + id: String + redemption_id: String + transaction_hash: bytea + triple_id: numeric } """ aggregate sum on columns """ -type statHours_sum_fields { - contractBalance: numeric - id: Int - totalAccounts: Int - totalAtoms: Int - totalFees: numeric - totalPositions: Int - totalSignals: Int - totalTriples: Int +type signals_sum_fields { + atom_id: numeric + block_number: numeric + block_timestamp: bigint + delta: numeric + triple_id: numeric +} + +""" +order by sum() on columns of table "signal" +""" +input signals_sum_order_by { + atom_id: order_by + block_number: order_by + block_timestamp: order_by + delta: order_by + triple_id: order_by } """ aggregate var_pop on columns """ -type statHours_var_pop_fields { - contractBalance: Float - id: Float - totalAccounts: Float - totalAtoms: Float - totalFees: Float - totalPositions: Float - totalSignals: Float - totalTriples: Float +type signals_var_pop_fields { + atom_id: Float + block_number: Float + block_timestamp: Float + delta: Float + triple_id: Float +} + +""" +order by var_pop() on columns of table "signal" +""" +input signals_var_pop_order_by { + atom_id: order_by + block_number: order_by + block_timestamp: order_by + delta: order_by + triple_id: order_by } """ aggregate var_samp on columns """ -type statHours_var_samp_fields { - contractBalance: Float - id: Float - totalAccounts: Float - totalAtoms: Float - totalFees: Float - totalPositions: Float - totalSignals: Float - totalTriples: Float +type signals_var_samp_fields { + atom_id: Float + block_number: Float + block_timestamp: Float + delta: Float + triple_id: Float +} + +""" +order by var_samp() on columns of table "signal" +""" +input signals_var_samp_order_by { + atom_id: order_by + block_number: order_by + block_timestamp: order_by + delta: order_by + triple_id: order_by } """ aggregate variance on columns """ -type statHours_variance_fields { - contractBalance: Float - id: Float - totalAccounts: Float - totalAtoms: Float - totalFees: Float - totalPositions: Float - totalSignals: Float - totalTriples: Float +type signals_variance_fields { + atom_id: Float + block_number: Float + block_timestamp: Float + delta: Float + triple_id: Float } """ -columns and relationships of "Stats" +order by variance() on columns of table "signal" +""" +input signals_variance_order_by { + atom_id: order_by + block_number: order_by + block_timestamp: order_by + delta: order_by + triple_id: order_by +} + +""" +columns and relationships of "stats" """ type stats { - contractBalance: numeric! + contract_balance: numeric id: Int! - totalAccounts: Int! - totalAtoms: Int! - totalFees: numeric! - totalPositions: Int! - totalSignals: Int! - totalTriples: Int! + total_accounts: Int + total_atoms: Int + total_fees: numeric + total_positions: Int + total_signals: Int + total_triples: Int } """ -aggregated selection of "Stats" +aggregated selection of "stats" """ type stats_aggregate { aggregate: stats_aggregate_fields @@ -7267,7 +8030,7 @@ type stats_aggregate { } """ -aggregate fields of "Stats" +aggregate fields of "stats" """ type stats_aggregate_fields { avg: stats_avg_fields @@ -7287,83 +8050,83 @@ type stats_aggregate_fields { aggregate avg on columns """ type stats_avg_fields { - contractBalance: Float + contract_balance: Float id: Float - totalAccounts: Float - totalAtoms: Float - totalFees: Float - totalPositions: Float - totalSignals: Float - totalTriples: Float + total_accounts: Float + total_atoms: Float + total_fees: Float + total_positions: Float + total_signals: Float + total_triples: Float } """ -Boolean expression to filter rows from the table "Stats". All fields are combined with a logical 'AND'. +Boolean expression to filter rows from the table "stats". All fields are combined with a logical 'AND'. """ input stats_bool_exp { _and: [stats_bool_exp!] _not: stats_bool_exp _or: [stats_bool_exp!] - contractBalance: numeric_comparison_exp + contract_balance: numeric_comparison_exp id: Int_comparison_exp - totalAccounts: Int_comparison_exp - totalAtoms: Int_comparison_exp - totalFees: numeric_comparison_exp - totalPositions: Int_comparison_exp - totalSignals: Int_comparison_exp - totalTriples: Int_comparison_exp + total_accounts: Int_comparison_exp + total_atoms: Int_comparison_exp + total_fees: numeric_comparison_exp + total_positions: Int_comparison_exp + total_signals: Int_comparison_exp + total_triples: Int_comparison_exp } """ aggregate max on columns """ type stats_max_fields { - contractBalance: numeric + contract_balance: numeric id: Int - totalAccounts: Int - totalAtoms: Int - totalFees: numeric - totalPositions: Int - totalSignals: Int - totalTriples: Int + total_accounts: Int + total_atoms: Int + total_fees: numeric + total_positions: Int + total_signals: Int + total_triples: Int } """ aggregate min on columns """ type stats_min_fields { - contractBalance: numeric + contract_balance: numeric id: Int - totalAccounts: Int - totalAtoms: Int - totalFees: numeric - totalPositions: Int - totalSignals: Int - totalTriples: Int + total_accounts: Int + total_atoms: Int + total_fees: numeric + total_positions: Int + total_signals: Int + total_triples: Int } """ -Ordering options when selecting data from "Stats". +Ordering options when selecting data from "stats". """ input stats_order_by { - contractBalance: order_by + contract_balance: order_by id: order_by - totalAccounts: order_by - totalAtoms: order_by - totalFees: order_by - totalPositions: order_by - totalSignals: order_by - totalTriples: order_by + total_accounts: order_by + total_atoms: order_by + total_fees: order_by + total_positions: order_by + total_signals: order_by + total_triples: order_by } """ -select columns of table "Stats" +select columns of table "stats" """ enum stats_select_column { """ column name """ - contractBalance + contract_balance """ column name """ @@ -7371,69 +8134,69 @@ enum stats_select_column { """ column name """ - totalAccounts + total_accounts """ column name """ - totalAtoms + total_atoms """ column name """ - totalFees + total_fees """ column name """ - totalPositions + total_positions """ column name """ - totalSignals + total_signals """ column name """ - totalTriples + total_triples } """ aggregate stddev on columns """ type stats_stddev_fields { - contractBalance: Float + contract_balance: Float id: Float - totalAccounts: Float - totalAtoms: Float - totalFees: Float - totalPositions: Float - totalSignals: Float - totalTriples: Float + total_accounts: Float + total_atoms: Float + total_fees: Float + total_positions: Float + total_signals: Float + total_triples: Float } """ aggregate stddev_pop on columns """ type stats_stddev_pop_fields { - contractBalance: Float + contract_balance: Float id: Float - totalAccounts: Float - totalAtoms: Float - totalFees: Float - totalPositions: Float - totalSignals: Float - totalTriples: Float + total_accounts: Float + total_atoms: Float + total_fees: Float + total_positions: Float + total_signals: Float + total_triples: Float } """ aggregate stddev_samp on columns """ type stats_stddev_samp_fields { - contractBalance: Float + contract_balance: Float id: Float - totalAccounts: Float - totalAtoms: Float - totalFees: Float - totalPositions: Float - totalSignals: Float - totalTriples: Float + total_accounts: Float + total_atoms: Float + total_fees: Float + total_positions: Float + total_signals: Float + total_triples: Float } """ @@ -7454,79 +8217,79 @@ input stats_stream_cursor_input { Initial value of the column from where the streaming should start """ input stats_stream_cursor_value_input { - contractBalance: numeric + contract_balance: numeric id: Int - totalAccounts: Int - totalAtoms: Int - totalFees: numeric - totalPositions: Int - totalSignals: Int - totalTriples: Int + total_accounts: Int + total_atoms: Int + total_fees: numeric + total_positions: Int + total_signals: Int + total_triples: Int } """ aggregate sum on columns """ type stats_sum_fields { - contractBalance: numeric + contract_balance: numeric id: Int - totalAccounts: Int - totalAtoms: Int - totalFees: numeric - totalPositions: Int - totalSignals: Int - totalTriples: Int + total_accounts: Int + total_atoms: Int + total_fees: numeric + total_positions: Int + total_signals: Int + total_triples: Int } """ aggregate var_pop on columns """ type stats_var_pop_fields { - contractBalance: Float + contract_balance: Float id: Float - totalAccounts: Float - totalAtoms: Float - totalFees: Float - totalPositions: Float - totalSignals: Float - totalTriples: Float + total_accounts: Float + total_atoms: Float + total_fees: Float + total_positions: Float + total_signals: Float + total_triples: Float } """ aggregate var_samp on columns """ type stats_var_samp_fields { - contractBalance: Float + contract_balance: Float id: Float - totalAccounts: Float - totalAtoms: Float - totalFees: Float - totalPositions: Float - totalSignals: Float - totalTriples: Float + total_accounts: Float + total_atoms: Float + total_fees: Float + total_positions: Float + total_signals: Float + total_triples: Float } """ aggregate variance on columns """ type stats_variance_fields { - contractBalance: Float + contract_balance: Float id: Float - totalAccounts: Float - totalAtoms: Float - totalFees: Float - totalPositions: Float - totalSignals: Float - totalTriples: Float + total_accounts: Float + total_atoms: Float + total_fees: Float + total_positions: Float + total_signals: Float + total_triples: Float } type subscription_root { """ - fetch data from the table: "Account" using primary key columns + fetch data from the table: "account" using primary key columns """ account(id: String!): accounts """ - fetch data from the table: "Account" + An array relationship """ accounts( """ @@ -7551,7 +8314,7 @@ type subscription_root { where: accounts_bool_exp ): [accounts!]! """ - fetch aggregated fields from the table: "Account" + An aggregate relationship """ accounts_aggregate( """ @@ -7576,7 +8339,7 @@ type subscription_root { where: accounts_bool_exp ): accounts_aggregate! """ - fetch data from the table in a streaming manner: "Account" + fetch data from the table in a streaming manner: "account" """ accounts_stream( """ @@ -7593,7 +8356,7 @@ type subscription_root { where: accounts_bool_exp ): [accounts!]! """ - execute function "accounts_that_claim_about_account" which returns "Account" + execute function "accounts_that_claim_about_account" which returns "account" """ accounts_that_claim_about_account( """ @@ -7622,7 +8385,7 @@ type subscription_root { where: accounts_bool_exp ): [accounts!]! """ - execute function "accounts_that_claim_about_account" and query aggregates on result of table type "Account" + execute function "accounts_that_claim_about_account" and query aggregates on result of table type "account" """ accounts_that_claim_about_account_aggregate( """ @@ -7651,21 +8414,21 @@ type subscription_root { where: accounts_bool_exp ): accounts_aggregate! """ - fetch data from the table: "Atom" using primary key columns + fetch data from the table: "atom" using primary key columns """ atom(id: numeric!): atoms """ - fetch data from the table: "AtomValue" using primary key columns + fetch data from the table: "atom_value" using primary key columns """ - atomValue(id: numeric!): atomValues + atom_value(id: numeric!): atom_values """ - fetch data from the table: "AtomValue" + fetch data from the table: "atom_value" """ - atomValues( + atom_values( """ distinct select on columns """ - distinct_on: [atomValues_select_column!] + distinct_on: [atom_values_select_column!] """ limit the number of rows returned """ @@ -7677,20 +8440,20 @@ type subscription_root { """ sort the rows by one or more columns """ - order_by: [atomValues_order_by!] + order_by: [atom_values_order_by!] """ filter the rows returned """ - where: atomValues_bool_exp - ): [atomValues!]! + where: atom_values_bool_exp + ): [atom_values!]! """ - fetch aggregated fields from the table: "AtomValue" + fetch aggregated fields from the table: "atom_value" """ - atomValues_aggregate( + atom_values_aggregate( """ distinct select on columns """ - distinct_on: [atomValues_select_column!] + distinct_on: [atom_values_select_column!] """ limit the number of rows returned """ @@ -7702,16 +8465,16 @@ type subscription_root { """ sort the rows by one or more columns """ - order_by: [atomValues_order_by!] + order_by: [atom_values_order_by!] """ filter the rows returned """ - where: atomValues_bool_exp - ): atomValues_aggregate! + where: atom_values_bool_exp + ): atom_values_aggregate! """ - fetch data from the table in a streaming manner: "AtomValue" + fetch data from the table in a streaming manner: "atom_value" """ - atomValues_stream( + atom_values_stream( """ maximum number of rows returned in a single batch """ @@ -7719,14 +8482,14 @@ type subscription_root { """ cursor to stream the results returned by the query """ - cursor: [atomValues_stream_cursor_input]! + cursor: [atom_values_stream_cursor_input]! """ filter the rows returned """ - where: atomValues_bool_exp - ): [atomValues!]! + where: atom_values_bool_exp + ): [atom_values!]! """ - fetch data from the table: "Atom" + An array relationship """ atoms( """ @@ -7751,7 +8514,7 @@ type subscription_root { where: atoms_bool_exp ): [atoms!]! """ - fetch aggregated fields from the table: "Atom" + An aggregate relationship """ atoms_aggregate( """ @@ -7776,7 +8539,7 @@ type subscription_root { where: atoms_bool_exp ): atoms_aggregate! """ - fetch data from the table in a streaming manner: "Atom" + fetch data from the table in a streaming manner: "atom" """ atoms_stream( """ @@ -7793,11 +8556,11 @@ type subscription_root { where: atoms_bool_exp ): [atoms!]! """ - fetch data from the table: "Book" using primary key columns + fetch data from the table: "book" using primary key columns """ book(id: numeric!): books """ - fetch data from the table: "Book" + fetch data from the table: "book" """ books( """ @@ -7822,7 +8585,7 @@ type subscription_root { where: books_bool_exp ): [books!]! """ - fetch aggregated fields from the table: "Book" + fetch aggregated fields from the table: "book" """ books_aggregate( """ @@ -7847,7 +8610,7 @@ type subscription_root { where: books_bool_exp ): books_aggregate! """ - fetch data from the table in a streaming manner: "Book" + fetch data from the table in a streaming manner: "book" """ books_stream( """ @@ -7864,17 +8627,63 @@ type subscription_root { where: books_bool_exp ): [books!]! """ - fetch data from the table: "ChainlinkPrice" using primary key columns + fetch data from the table: "cached_image" using primary key columns + """ + cached_image(url: String!): cached_images + """ + fetch data from the table: "cached_image" + """ + cached_images( + """ + distinct select on columns + """ + distinct_on: [cached_images_select_column!] + """ + limit the number of rows returned + """ + limit: Int + """ + skip the first n rows. Use only with order_by + """ + offset: Int + """ + sort the rows by one or more columns + """ + order_by: [cached_images_order_by!] + """ + filter the rows returned + """ + where: cached_images_bool_exp + ): [cached_images!]! + """ + fetch data from the table in a streaming manner: "cached_image" + """ + cached_images_stream( + """ + maximum number of rows returned in a single batch + """ + batch_size: Int! + """ + cursor to stream the results returned by the query + """ + cursor: [cached_images_stream_cursor_input]! + """ + filter the rows returned + """ + where: cached_images_bool_exp + ): [cached_images!]! + """ + fetch data from the table: "chainlink_price" using primary key columns """ - chainLinkPrice(id: numeric!): chainLinkPrices + chainlink_price(id: numeric!): chainlink_prices """ - fetch data from the table: "ChainlinkPrice" + fetch data from the table: "chainlink_price" """ - chainLinkPrices( + chainlink_prices( """ distinct select on columns """ - distinct_on: [chainLinkPrices_select_column!] + distinct_on: [chainlink_prices_select_column!] """ limit the number of rows returned """ @@ -7886,16 +8695,16 @@ type subscription_root { """ sort the rows by one or more columns """ - order_by: [chainLinkPrices_order_by!] + order_by: [chainlink_prices_order_by!] """ filter the rows returned """ - where: chainLinkPrices_bool_exp - ): [chainLinkPrices!]! + where: chainlink_prices_bool_exp + ): [chainlink_prices!]! """ - fetch data from the table in a streaming manner: "ChainlinkPrice" + fetch data from the table in a streaming manner: "chainlink_price" """ - chainLinkPrices_stream( + chainlink_prices_stream( """ maximum number of rows returned in a single batch """ @@ -7903,14 +8712,14 @@ type subscription_root { """ cursor to stream the results returned by the query """ - cursor: [chainLinkPrices_stream_cursor_input]! + cursor: [chainlink_prices_stream_cursor_input]! """ filter the rows returned """ - where: chainLinkPrices_bool_exp - ): [chainLinkPrices!]! + where: chainlink_prices_bool_exp + ): [chainlink_prices!]! """ - fetch data from the table: "Claim" using primary key columns + fetch data from the table: "claim" using primary key columns """ claim(id: String!): claims """ @@ -7964,7 +8773,7 @@ type subscription_root { where: claims_bool_exp ): claims_aggregate! """ - execute function "claims_from_following" which returns "Claim" + execute function "claims_from_following" which returns "claim" """ claims_from_following( """ @@ -7993,7 +8802,7 @@ type subscription_root { where: claims_bool_exp ): [claims!]! """ - execute function "claims_from_following" and query aggregates on result of table type "Claim" + execute function "claims_from_following" and query aggregates on result of table type "claim" """ claims_from_following_aggregate( """ @@ -8022,7 +8831,7 @@ type subscription_root { where: claims_bool_exp ): claims_aggregate! """ - fetch data from the table in a streaming manner: "Claim" + fetch data from the table in a streaming manner: "claim" """ claims_stream( """ @@ -8039,7 +8848,7 @@ type subscription_root { where: claims_bool_exp ): [claims!]! """ - fetch data from the table: "Deposit" using primary key columns + fetch data from the table: "deposit" using primary key columns """ deposit(id: String!): deposits """ @@ -8093,7 +8902,7 @@ type subscription_root { where: deposits_bool_exp ): deposits_aggregate! """ - fetch data from the table in a streaming manner: "Deposit" + fetch data from the table in a streaming manner: "deposit" """ deposits_stream( """ @@ -8110,11 +8919,11 @@ type subscription_root { where: deposits_bool_exp ): [deposits!]! """ - fetch data from the table: "Event" using primary key columns + fetch data from the table: "event" using primary key columns """ event(id: String!): events """ - fetch data from the table: "Event" + An array relationship """ events( """ @@ -8139,7 +8948,7 @@ type subscription_root { where: events_bool_exp ): [events!]! """ - fetch aggregated fields from the table: "Event" + An aggregate relationship """ events_aggregate( """ @@ -8164,7 +8973,7 @@ type subscription_root { where: events_bool_exp ): events_aggregate! """ - fetch data from the table in a streaming manner: "Event" + fetch data from the table in a streaming manner: "event" """ events_stream( """ @@ -8181,13 +8990,17 @@ type subscription_root { where: events_bool_exp ): [events!]! """ - fetch data from the table: "FeeTransfer" + fetch data from the table: "fee_transfer" using primary key columns + """ + fee_transfer(id: String!): fee_transfers + """ + An array relationship """ - feeTranfers( + fee_transfers( """ distinct select on columns """ - distinct_on: [feeTranfers_select_column!] + distinct_on: [fee_transfers_select_column!] """ limit the number of rows returned """ @@ -8199,20 +9012,20 @@ type subscription_root { """ sort the rows by one or more columns """ - order_by: [feeTranfers_order_by!] + order_by: [fee_transfers_order_by!] """ filter the rows returned """ - where: feeTranfers_bool_exp - ): [feeTranfers!]! + where: fee_transfers_bool_exp + ): [fee_transfers!]! """ - fetch aggregated fields from the table: "FeeTransfer" + An aggregate relationship """ - feeTranfers_aggregate( + fee_transfers_aggregate( """ distinct select on columns """ - distinct_on: [feeTranfers_select_column!] + distinct_on: [fee_transfers_select_column!] """ limit the number of rows returned """ @@ -8224,16 +9037,16 @@ type subscription_root { """ sort the rows by one or more columns """ - order_by: [feeTranfers_order_by!] + order_by: [fee_transfers_order_by!] """ filter the rows returned """ - where: feeTranfers_bool_exp - ): feeTranfers_aggregate! + where: fee_transfers_bool_exp + ): fee_transfers_aggregate! """ - fetch data from the table in a streaming manner: "FeeTransfer" + fetch data from the table in a streaming manner: "fee_transfer" """ - feeTranfers_stream( + fee_transfers_stream( """ maximum number of rows returned in a single batch """ @@ -8241,18 +9054,14 @@ type subscription_root { """ cursor to stream the results returned by the query """ - cursor: [feeTranfers_stream_cursor_input]! + cursor: [fee_transfers_stream_cursor_input]! """ filter the rows returned """ - where: feeTranfers_bool_exp - ): [feeTranfers!]! - """ - fetch data from the table: "FeeTransfer" using primary key columns + where: fee_transfers_bool_exp + ): [fee_transfers!]! """ - feeTransfers(id: String!): feeTranfers - """ - execute function "following" which returns "Account" + execute function "following" which returns "account" """ following( """ @@ -8281,7 +9090,7 @@ type subscription_root { where: accounts_bool_exp ): [accounts!]! """ - execute function "following" and query aggregates on result of table type "Account" + execute function "following" and query aggregates on result of table type "account" """ following_aggregate( """ @@ -8310,11 +9119,11 @@ type subscription_root { where: accounts_bool_exp ): accounts_aggregate! """ - fetch data from the table: "Organization" using primary key columns + fetch data from the table: "organization" using primary key columns """ organization(id: numeric!): organizations """ - fetch data from the table: "Organization" + fetch data from the table: "organization" """ organizations( """ @@ -8339,7 +9148,7 @@ type subscription_root { where: organizations_bool_exp ): [organizations!]! """ - fetch aggregated fields from the table: "Organization" + fetch aggregated fields from the table: "organization" """ organizations_aggregate( """ @@ -8364,7 +9173,7 @@ type subscription_root { where: organizations_bool_exp ): organizations_aggregate! """ - fetch data from the table in a streaming manner: "Organization" + fetch data from the table in a streaming manner: "organization" """ organizations_stream( """ @@ -8381,11 +9190,11 @@ type subscription_root { where: organizations_bool_exp ): [organizations!]! """ - fetch data from the table: "Person" using primary key columns + fetch data from the table: "person" using primary key columns """ person(id: numeric!): persons """ - fetch data from the table: "Person" + fetch data from the table: "person" """ persons( """ @@ -8410,7 +9219,7 @@ type subscription_root { where: persons_bool_exp ): [persons!]! """ - fetch aggregated fields from the table: "Person" + fetch aggregated fields from the table: "person" """ persons_aggregate( """ @@ -8435,7 +9244,7 @@ type subscription_root { where: persons_bool_exp ): persons_aggregate! """ - fetch data from the table in a streaming manner: "Person" + fetch data from the table in a streaming manner: "person" """ persons_stream( """ @@ -8452,7 +9261,7 @@ type subscription_root { where: persons_bool_exp ): [persons!]! """ - fetch data from the table: "Position" using primary key columns + fetch data from the table: "position" using primary key columns """ position(id: String!): positions """ @@ -8506,7 +9315,7 @@ type subscription_root { where: positions_bool_exp ): positions_aggregate! """ - fetch data from the table in a streaming manner: "Position" + fetch data from the table in a streaming manner: "position" """ positions_stream( """ @@ -8523,17 +9332,13 @@ type subscription_root { where: positions_bool_exp ): [positions!]! """ - fetch data from the table: "PredicateObject" using primary key columns - """ - predicateObject(id: String!): predicateObjects + fetch data from the table: "predicate_object" """ - fetch data from the table: "PredicateObject" - """ - predicateObjects( + predicate_objects( """ distinct select on columns """ - distinct_on: [predicateObjects_select_column!] + distinct_on: [predicate_objects_select_column!] """ limit the number of rows returned """ @@ -8545,20 +9350,20 @@ type subscription_root { """ sort the rows by one or more columns """ - order_by: [predicateObjects_order_by!] + order_by: [predicate_objects_order_by!] """ filter the rows returned """ - where: predicateObjects_bool_exp - ): [predicateObjects!]! + where: predicate_objects_bool_exp + ): [predicate_objects!]! """ - fetch aggregated fields from the table: "PredicateObject" + fetch aggregated fields from the table: "predicate_object" """ - predicateObjects_aggregate( + predicate_objects_aggregate( """ distinct select on columns """ - distinct_on: [predicateObjects_select_column!] + distinct_on: [predicate_objects_select_column!] """ limit the number of rows returned """ @@ -8570,16 +9375,20 @@ type subscription_root { """ sort the rows by one or more columns """ - order_by: [predicateObjects_order_by!] + order_by: [predicate_objects_order_by!] """ filter the rows returned """ - where: predicateObjects_bool_exp - ): predicateObjects_aggregate! + where: predicate_objects_bool_exp + ): predicate_objects_aggregate! + """ + fetch data from the table: "predicate_object" using primary key columns """ - fetch data from the table in a streaming manner: "PredicateObject" + predicate_objects_by_pk(id: String!): predicate_objects """ - predicateObjects_stream( + fetch data from the table in a streaming manner: "predicate_object" + """ + predicate_objects_stream( """ maximum number of rows returned in a single batch """ @@ -8587,14 +9396,14 @@ type subscription_root { """ cursor to stream the results returned by the query """ - cursor: [predicateObjects_stream_cursor_input]! + cursor: [predicate_objects_stream_cursor_input]! """ filter the rows returned """ - where: predicateObjects_bool_exp - ): [predicateObjects!]! + where: predicate_objects_bool_exp + ): [predicate_objects!]! """ - fetch data from the table: "Redemption" using primary key columns + fetch data from the table: "redemption" using primary key columns """ redemption(id: String!): redemptions """ @@ -8648,7 +9457,7 @@ type subscription_root { where: redemptions_bool_exp ): redemptions_aggregate! """ - fetch data from the table in a streaming manner: "Redemption" + fetch data from the table in a streaming manner: "redemption" """ redemptions_stream( """ @@ -8665,7 +9474,7 @@ type subscription_root { where: redemptions_bool_exp ): [redemptions!]! """ - fetch data from the table: "Signal" using primary key columns + fetch data from the table: "signal" using primary key columns """ signal(id: String!): signals """ @@ -8719,7 +9528,7 @@ type subscription_root { where: signals_bool_exp ): signals_aggregate! """ - execute function "signals_from_following" which returns "Signal" + execute function "signals_from_following" which returns "signal" """ signals_from_following( """ @@ -8748,7 +9557,7 @@ type subscription_root { where: signals_bool_exp ): [signals!]! """ - execute function "signals_from_following" and query aggregates on result of table type "Signal" + execute function "signals_from_following" and query aggregates on result of table type "signal" """ signals_from_following_aggregate( """ @@ -8777,7 +9586,7 @@ type subscription_root { where: signals_bool_exp ): signals_aggregate! """ - fetch data from the table in a streaming manner: "Signal" + fetch data from the table in a streaming manner: "signal" """ signals_stream( """ @@ -8794,82 +9603,11 @@ type subscription_root { where: signals_bool_exp ): [signals!]! """ - fetch data from the table: "Stats" using primary key columns + fetch data from the table: "stats" using primary key columns """ stat(id: Int!): stats """ - fetch data from the table: "StatsHour" using primary key columns - """ - statHour(id: Int!): statHours - """ - fetch data from the table: "StatsHour" - """ - statHours( - """ - distinct select on columns - """ - distinct_on: [statHours_select_column!] - """ - limit the number of rows returned - """ - limit: Int - """ - skip the first n rows. Use only with order_by - """ - offset: Int - """ - sort the rows by one or more columns - """ - order_by: [statHours_order_by!] - """ - filter the rows returned - """ - where: statHours_bool_exp - ): [statHours!]! - """ - fetch aggregated fields from the table: "StatsHour" - """ - statHours_aggregate( - """ - distinct select on columns - """ - distinct_on: [statHours_select_column!] - """ - limit the number of rows returned - """ - limit: Int - """ - skip the first n rows. Use only with order_by - """ - offset: Int - """ - sort the rows by one or more columns - """ - order_by: [statHours_order_by!] - """ - filter the rows returned - """ - where: statHours_bool_exp - ): statHours_aggregate! - """ - fetch data from the table in a streaming manner: "StatsHour" - """ - statHours_stream( - """ - maximum number of rows returned in a single batch - """ - batch_size: Int! - """ - cursor to stream the results returned by the query - """ - cursor: [statHours_stream_cursor_input]! - """ - filter the rows returned - """ - where: statHours_bool_exp - ): [statHours!]! - """ - fetch data from the table: "Stats" + fetch data from the table: "stats" """ stats( """ @@ -8894,7 +9632,7 @@ type subscription_root { where: stats_bool_exp ): [stats!]! """ - fetch aggregated fields from the table: "Stats" + fetch aggregated fields from the table: "stats" """ stats_aggregate( """ @@ -8919,7 +9657,7 @@ type subscription_root { where: stats_bool_exp ): stats_aggregate! """ - fetch data from the table in a streaming manner: "Stats" + fetch data from the table in a streaming manner: "stats" """ stats_stream( """ @@ -8936,11 +9674,11 @@ type subscription_root { where: stats_bool_exp ): [stats!]! """ - fetch data from the table: "Thing" using primary key columns + fetch data from the table: "thing" using primary key columns """ thing(id: numeric!): things """ - fetch data from the table: "Thing" + fetch data from the table: "thing" """ things( """ @@ -8965,7 +9703,7 @@ type subscription_root { where: things_bool_exp ): [things!]! """ - fetch aggregated fields from the table: "Thing" + fetch aggregated fields from the table: "thing" """ things_aggregate( """ @@ -8990,7 +9728,7 @@ type subscription_root { where: things_bool_exp ): things_aggregate! """ - fetch data from the table in a streaming manner: "Thing" + fetch data from the table in a streaming manner: "thing" """ things_stream( """ @@ -9007,11 +9745,11 @@ type subscription_root { where: things_bool_exp ): [things!]! """ - fetch data from the table: "Triple" using primary key columns + fetch data from the table: "triple" using primary key columns """ triple(id: numeric!): triples """ - fetch data from the table: "Triple" + An array relationship """ triples( """ @@ -9036,7 +9774,7 @@ type subscription_root { where: triples_bool_exp ): [triples!]! """ - fetch aggregated fields from the table: "Triple" + An aggregate relationship """ triples_aggregate( """ @@ -9061,7 +9799,7 @@ type subscription_root { where: triples_bool_exp ): triples_aggregate! """ - fetch data from the table in a streaming manner: "Triple" + fetch data from the table in a streaming manner: "triple" """ triples_stream( """ @@ -9078,11 +9816,11 @@ type subscription_root { where: triples_bool_exp ): [triples!]! """ - fetch data from the table: "Vault" using primary key columns + fetch data from the table: "vault" using primary key columns """ vault(id: numeric!): vaults """ - fetch data from the table: "Vault" + fetch data from the table: "vault" """ vaults( """ @@ -9107,7 +9845,7 @@ type subscription_root { where: vaults_bool_exp ): [vaults!]! """ - fetch aggregated fields from the table: "Vault" + fetch aggregated fields from the table: "vault" """ vaults_aggregate( """ @@ -9132,7 +9870,7 @@ type subscription_root { where: vaults_bool_exp ): vaults_aggregate! """ - fetch data from the table in a streaming manner: "Vault" + fetch data from the table in a streaming manner: "vault" """ vaults_stream( """ @@ -9151,14 +9889,17 @@ type subscription_root { } """ -columns and relationships of "Thing" +columns and relationships of "thing" """ type things { """ An object relationship """ atom: atoms - atomId: numeric! + """ + An object relationship + """ + cached_image: cached_images description: String id: numeric! image: String @@ -9167,7 +9908,7 @@ type things { } """ -aggregated selection of "Thing" +aggregated selection of "thing" """ type things_aggregate { aggregate: things_aggregate_fields @@ -9175,7 +9916,7 @@ type things_aggregate { } """ -aggregate fields of "Thing" +aggregate fields of "thing" """ type things_aggregate_fields { avg: things_avg_fields @@ -9195,19 +9936,18 @@ type things_aggregate_fields { aggregate avg on columns """ type things_avg_fields { - atomId: Float id: Float } """ -Boolean expression to filter rows from the table "Thing". All fields are combined with a logical 'AND'. +Boolean expression to filter rows from the table "thing". All fields are combined with a logical 'AND'. """ input things_bool_exp { _and: [things_bool_exp!] _not: things_bool_exp _or: [things_bool_exp!] atom: atoms_bool_exp - atomId: numeric_comparison_exp + cached_image: cached_images_bool_exp description: String_comparison_exp id: numeric_comparison_exp image: String_comparison_exp @@ -9219,7 +9959,6 @@ input things_bool_exp { aggregate max on columns """ type things_max_fields { - atomId: numeric description: String id: numeric image: String @@ -9231,7 +9970,6 @@ type things_max_fields { aggregate min on columns """ type things_min_fields { - atomId: numeric description: String id: numeric image: String @@ -9240,11 +9978,11 @@ type things_min_fields { } """ -Ordering options when selecting data from "Thing". +Ordering options when selecting data from "thing". """ input things_order_by { atom: atoms_order_by - atomId: order_by + cached_image: cached_images_order_by description: order_by id: order_by image: order_by @@ -9253,13 +9991,9 @@ input things_order_by { } """ -select columns of table "Thing" +select columns of table "thing" """ enum things_select_column { - """ - column name - """ - atomId """ column name """ @@ -9286,7 +10020,6 @@ enum things_select_column { aggregate stddev on columns """ type things_stddev_fields { - atomId: Float id: Float } @@ -9294,7 +10027,6 @@ type things_stddev_fields { aggregate stddev_pop on columns """ type things_stddev_pop_fields { - atomId: Float id: Float } @@ -9302,7 +10034,6 @@ type things_stddev_pop_fields { aggregate stddev_samp on columns """ type things_stddev_samp_fields { - atomId: Float id: Float } @@ -9324,7 +10055,6 @@ input things_stream_cursor_input { Initial value of the column from where the streaming should start """ input things_stream_cursor_value_input { - atomId: numeric description: String id: numeric image: String @@ -9336,7 +10066,6 @@ input things_stream_cursor_value_input { aggregate sum on columns """ type things_sum_fields { - atomId: numeric id: numeric } @@ -9344,7 +10073,6 @@ type things_sum_fields { aggregate var_pop on columns """ type things_var_pop_fields { - atomId: Float id: Float } @@ -9352,7 +10080,6 @@ type things_var_pop_fields { aggregate var_samp on columns """ type things_var_samp_fields { - atomId: Float id: Float } @@ -9360,53 +10087,168 @@ type things_var_samp_fields { aggregate variance on columns """ type things_variance_fields { - atomId: Float id: Float } +scalar timestamptz + +""" +Boolean expression to compare columns of type "timestamptz". All fields are combined with logical 'AND'. +""" +input timestamptz_comparison_exp { + _eq: timestamptz + _gt: timestamptz + _gte: timestamptz + _in: [timestamptz!] + _is_null: Boolean + _lt: timestamptz + _lte: timestamptz + _neq: timestamptz + _nin: [timestamptz!] +} + """ -columns and relationships of "Triple" +columns and relationships of "triple" """ type triples { - blockNumber: numeric! - blockTimestamp: numeric! + block_number: numeric! + block_timestamp: bigint! + """ + An array relationship + """ + claims( + """ + distinct select on columns + """ + distinct_on: [claims_select_column!] + """ + limit the number of rows returned + """ + limit: Int + """ + skip the first n rows. Use only with order_by + """ + offset: Int + """ + sort the rows by one or more columns + """ + order_by: [claims_order_by!] + """ + filter the rows returned + """ + where: claims_bool_exp + ): [claims!]! + """ + An aggregate relationship + """ + claims_aggregate( + """ + distinct select on columns + """ + distinct_on: [claims_select_column!] + """ + limit the number of rows returned + """ + limit: Int + """ + skip the first n rows. Use only with order_by + """ + offset: Int + """ + sort the rows by one or more columns + """ + order_by: [claims_order_by!] + """ + filter the rows returned + """ + where: claims_bool_exp + ): claims_aggregate! """ An object relationship """ - counterVault: vaults - counterVaultId: numeric! + counter_vault: vaults + counter_vault_id: numeric! """ An object relationship """ creator: accounts - creatorId: String! + creator_id: String! id: numeric! - label: String """ An object relationship """ - object: atoms - objectId: numeric! + object: atoms! + object_id: numeric! """ An object relationship """ - predicate: atoms - predicateId: numeric! + predicate: atoms! + predicate_id: numeric! + """ + An array relationship + """ + signals( + """ + distinct select on columns + """ + distinct_on: [signals_select_column!] + """ + limit the number of rows returned + """ + limit: Int + """ + skip the first n rows. Use only with order_by + """ + offset: Int + """ + sort the rows by one or more columns + """ + order_by: [signals_order_by!] + """ + filter the rows returned + """ + where: signals_bool_exp + ): [signals!]! + """ + An aggregate relationship + """ + signals_aggregate( + """ + distinct select on columns + """ + distinct_on: [signals_select_column!] + """ + limit the number of rows returned + """ + limit: Int + """ + skip the first n rows. Use only with order_by + """ + offset: Int + """ + sort the rows by one or more columns + """ + order_by: [signals_order_by!] + """ + filter the rows returned + """ + where: signals_bool_exp + ): signals_aggregate! """ An object relationship """ - subject: atoms - subjectId: numeric! - transactionHash: bytea! + subject: atoms! + subject_id: numeric! + transaction_hash: bytea! """ An object relationship """ vault: vaults - vaultId: numeric! + vault_id: numeric! } """ -aggregated selection of "Triple" +aggregated selection of "triple" """ type triples_aggregate { aggregate: triples_aggregate_fields @@ -9425,7 +10267,7 @@ input triples_aggregate_bool_exp_count { } """ -aggregate fields of "Triple" +aggregate fields of "triple" """ type triples_aggregate_fields { avg: triples_avg_fields @@ -9442,7 +10284,7 @@ type triples_aggregate_fields { } """ -order by aggregate values of table "Triple" +order by aggregate values of table "triple" """ input triples_aggregate_order_by { avg: triples_avg_order_by @@ -9462,163 +10304,163 @@ input triples_aggregate_order_by { aggregate avg on columns """ type triples_avg_fields { - blockNumber: Float - blockTimestamp: Float - counterVaultId: Float + block_number: Float + block_timestamp: Float + counter_vault_id: Float id: Float - objectId: Float - predicateId: Float - subjectId: Float - vaultId: Float + object_id: Float + predicate_id: Float + subject_id: Float + vault_id: Float } """ -order by avg() on columns of table "Triple" +order by avg() on columns of table "triple" """ input triples_avg_order_by { - blockNumber: order_by - blockTimestamp: order_by - counterVaultId: order_by + block_number: order_by + block_timestamp: order_by + counter_vault_id: order_by id: order_by - objectId: order_by - predicateId: order_by - subjectId: order_by - vaultId: order_by + object_id: order_by + predicate_id: order_by + subject_id: order_by + vault_id: order_by } """ -Boolean expression to filter rows from the table "Triple". All fields are combined with a logical 'AND'. +Boolean expression to filter rows from the table "triple". All fields are combined with a logical 'AND'. """ input triples_bool_exp { _and: [triples_bool_exp!] _not: triples_bool_exp _or: [triples_bool_exp!] - blockNumber: numeric_comparison_exp - blockTimestamp: numeric_comparison_exp - counterVault: vaults_bool_exp - counterVaultId: numeric_comparison_exp + block_number: numeric_comparison_exp + block_timestamp: bigint_comparison_exp + claims: claims_bool_exp + claims_aggregate: claims_aggregate_bool_exp + counter_vault: vaults_bool_exp + counter_vault_id: numeric_comparison_exp creator: accounts_bool_exp - creatorId: String_comparison_exp + creator_id: String_comparison_exp id: numeric_comparison_exp - label: String_comparison_exp object: atoms_bool_exp - objectId: numeric_comparison_exp + object_id: numeric_comparison_exp predicate: atoms_bool_exp - predicateId: numeric_comparison_exp + predicate_id: numeric_comparison_exp + signals: signals_bool_exp + signals_aggregate: signals_aggregate_bool_exp subject: atoms_bool_exp - subjectId: numeric_comparison_exp - transactionHash: bytea_comparison_exp + subject_id: numeric_comparison_exp + transaction_hash: bytea_comparison_exp vault: vaults_bool_exp - vaultId: numeric_comparison_exp + vault_id: numeric_comparison_exp } """ aggregate max on columns """ type triples_max_fields { - blockNumber: numeric - blockTimestamp: numeric - counterVaultId: numeric - creatorId: String + block_number: numeric + block_timestamp: bigint + counter_vault_id: numeric + creator_id: String id: numeric - label: String - objectId: numeric - predicateId: numeric - subjectId: numeric - vaultId: numeric + object_id: numeric + predicate_id: numeric + subject_id: numeric + vault_id: numeric } """ -order by max() on columns of table "Triple" +order by max() on columns of table "triple" """ input triples_max_order_by { - blockNumber: order_by - blockTimestamp: order_by - counterVaultId: order_by - creatorId: order_by + block_number: order_by + block_timestamp: order_by + counter_vault_id: order_by + creator_id: order_by id: order_by - label: order_by - objectId: order_by - predicateId: order_by - subjectId: order_by - vaultId: order_by + object_id: order_by + predicate_id: order_by + subject_id: order_by + vault_id: order_by } """ aggregate min on columns """ type triples_min_fields { - blockNumber: numeric - blockTimestamp: numeric - counterVaultId: numeric - creatorId: String + block_number: numeric + block_timestamp: bigint + counter_vault_id: numeric + creator_id: String id: numeric - label: String - objectId: numeric - predicateId: numeric - subjectId: numeric - vaultId: numeric + object_id: numeric + predicate_id: numeric + subject_id: numeric + vault_id: numeric } """ -order by min() on columns of table "Triple" +order by min() on columns of table "triple" """ input triples_min_order_by { - blockNumber: order_by - blockTimestamp: order_by - counterVaultId: order_by - creatorId: order_by + block_number: order_by + block_timestamp: order_by + counter_vault_id: order_by + creator_id: order_by id: order_by - label: order_by - objectId: order_by - predicateId: order_by - subjectId: order_by - vaultId: order_by + object_id: order_by + predicate_id: order_by + subject_id: order_by + vault_id: order_by } """ -Ordering options when selecting data from "Triple". +Ordering options when selecting data from "triple". """ input triples_order_by { - blockNumber: order_by - blockTimestamp: order_by - counterVault: vaults_order_by - counterVaultId: order_by + block_number: order_by + block_timestamp: order_by + claims_aggregate: claims_aggregate_order_by + counter_vault: vaults_order_by + counter_vault_id: order_by creator: accounts_order_by - creatorId: order_by + creator_id: order_by id: order_by - label: order_by object: atoms_order_by - objectId: order_by + object_id: order_by predicate: atoms_order_by - predicateId: order_by + predicate_id: order_by + signals_aggregate: signals_aggregate_order_by subject: atoms_order_by - subjectId: order_by - transactionHash: order_by + subject_id: order_by + transaction_hash: order_by vault: vaults_order_by - vaultId: order_by + vault_id: order_by } """ -select columns of table "Triple" +select columns of table "triple" """ enum triples_select_column { """ column name """ - blockNumber + block_number """ column name """ - blockTimestamp + block_timestamp """ column name """ - counterVaultId + counter_vault_id """ column name """ - creatorId + creator_id """ column name """ @@ -9626,111 +10468,107 @@ enum triples_select_column { """ column name """ - label - """ - column name - """ - objectId + object_id """ column name """ - predicateId + predicate_id """ column name """ - subjectId + subject_id """ column name """ - transactionHash + transaction_hash """ column name """ - vaultId + vault_id } """ aggregate stddev on columns """ type triples_stddev_fields { - blockNumber: Float - blockTimestamp: Float - counterVaultId: Float + block_number: Float + block_timestamp: Float + counter_vault_id: Float id: Float - objectId: Float - predicateId: Float - subjectId: Float - vaultId: Float + object_id: Float + predicate_id: Float + subject_id: Float + vault_id: Float } """ -order by stddev() on columns of table "Triple" +order by stddev() on columns of table "triple" """ input triples_stddev_order_by { - blockNumber: order_by - blockTimestamp: order_by - counterVaultId: order_by + block_number: order_by + block_timestamp: order_by + counter_vault_id: order_by id: order_by - objectId: order_by - predicateId: order_by - subjectId: order_by - vaultId: order_by + object_id: order_by + predicate_id: order_by + subject_id: order_by + vault_id: order_by } """ aggregate stddev_pop on columns """ type triples_stddev_pop_fields { - blockNumber: Float - blockTimestamp: Float - counterVaultId: Float + block_number: Float + block_timestamp: Float + counter_vault_id: Float id: Float - objectId: Float - predicateId: Float - subjectId: Float - vaultId: Float + object_id: Float + predicate_id: Float + subject_id: Float + vault_id: Float } """ -order by stddev_pop() on columns of table "Triple" +order by stddev_pop() on columns of table "triple" """ input triples_stddev_pop_order_by { - blockNumber: order_by - blockTimestamp: order_by - counterVaultId: order_by + block_number: order_by + block_timestamp: order_by + counter_vault_id: order_by id: order_by - objectId: order_by - predicateId: order_by - subjectId: order_by - vaultId: order_by + object_id: order_by + predicate_id: order_by + subject_id: order_by + vault_id: order_by } """ aggregate stddev_samp on columns """ type triples_stddev_samp_fields { - blockNumber: Float - blockTimestamp: Float - counterVaultId: Float + block_number: Float + block_timestamp: Float + counter_vault_id: Float id: Float - objectId: Float - predicateId: Float - subjectId: Float - vaultId: Float + object_id: Float + predicate_id: Float + subject_id: Float + vault_id: Float } """ -order by stddev_samp() on columns of table "Triple" +order by stddev_samp() on columns of table "triple" """ input triples_stddev_samp_order_by { - blockNumber: order_by - blockTimestamp: order_by - counterVaultId: order_by + block_number: order_by + block_timestamp: order_by + counter_vault_id: order_by id: order_by - objectId: order_by - predicateId: order_by - subjectId: order_by - vaultId: order_by + object_id: order_by + predicate_id: order_by + subject_id: order_by + vault_id: order_by } """ @@ -9751,141 +10589,240 @@ input triples_stream_cursor_input { Initial value of the column from where the streaming should start """ input triples_stream_cursor_value_input { - blockNumber: numeric - blockTimestamp: numeric - counterVaultId: numeric - creatorId: String + block_number: numeric + block_timestamp: bigint + counter_vault_id: numeric + creator_id: String id: numeric - label: String - objectId: numeric - predicateId: numeric - subjectId: numeric - transactionHash: bytea - vaultId: numeric + object_id: numeric + predicate_id: numeric + subject_id: numeric + transaction_hash: bytea + vault_id: numeric } """ aggregate sum on columns """ type triples_sum_fields { - blockNumber: numeric - blockTimestamp: numeric - counterVaultId: numeric + block_number: numeric + block_timestamp: bigint + counter_vault_id: numeric id: numeric - objectId: numeric - predicateId: numeric - subjectId: numeric - vaultId: numeric + object_id: numeric + predicate_id: numeric + subject_id: numeric + vault_id: numeric } """ -order by sum() on columns of table "Triple" +order by sum() on columns of table "triple" """ input triples_sum_order_by { - blockNumber: order_by - blockTimestamp: order_by - counterVaultId: order_by + block_number: order_by + block_timestamp: order_by + counter_vault_id: order_by id: order_by - objectId: order_by - predicateId: order_by - subjectId: order_by - vaultId: order_by + object_id: order_by + predicate_id: order_by + subject_id: order_by + vault_id: order_by } """ aggregate var_pop on columns """ type triples_var_pop_fields { - blockNumber: Float - blockTimestamp: Float - counterVaultId: Float + block_number: Float + block_timestamp: Float + counter_vault_id: Float id: Float - objectId: Float - predicateId: Float - subjectId: Float - vaultId: Float + object_id: Float + predicate_id: Float + subject_id: Float + vault_id: Float } """ -order by var_pop() on columns of table "Triple" +order by var_pop() on columns of table "triple" """ input triples_var_pop_order_by { - blockNumber: order_by - blockTimestamp: order_by - counterVaultId: order_by + block_number: order_by + block_timestamp: order_by + counter_vault_id: order_by id: order_by - objectId: order_by - predicateId: order_by - subjectId: order_by - vaultId: order_by + object_id: order_by + predicate_id: order_by + subject_id: order_by + vault_id: order_by } """ aggregate var_samp on columns """ type triples_var_samp_fields { - blockNumber: Float - blockTimestamp: Float - counterVaultId: Float + block_number: Float + block_timestamp: Float + counter_vault_id: Float id: Float - objectId: Float - predicateId: Float - subjectId: Float - vaultId: Float + object_id: Float + predicate_id: Float + subject_id: Float + vault_id: Float } """ -order by var_samp() on columns of table "Triple" +order by var_samp() on columns of table "triple" """ input triples_var_samp_order_by { - blockNumber: order_by - blockTimestamp: order_by - counterVaultId: order_by + block_number: order_by + block_timestamp: order_by + counter_vault_id: order_by id: order_by - objectId: order_by - predicateId: order_by - subjectId: order_by - vaultId: order_by + object_id: order_by + predicate_id: order_by + subject_id: order_by + vault_id: order_by } """ aggregate variance on columns """ type triples_variance_fields { - blockNumber: Float - blockTimestamp: Float - counterVaultId: Float + block_number: Float + block_timestamp: Float + counter_vault_id: Float id: Float - objectId: Float - predicateId: Float - subjectId: Float - vaultId: Float + object_id: Float + predicate_id: Float + subject_id: Float + vault_id: Float } """ -order by variance() on columns of table "Triple" +order by variance() on columns of table "triple" """ input triples_variance_order_by { - blockNumber: order_by - blockTimestamp: order_by - counterVaultId: order_by + block_number: order_by + block_timestamp: order_by + counter_vault_id: order_by id: order_by - objectId: order_by - predicateId: order_by - subjectId: order_by - vaultId: order_by + object_id: order_by + predicate_id: order_by + subject_id: order_by + vault_id: order_by } """ -columns and relationships of "Vault" +columns and relationships of "vault" """ type vaults { """ An object relationship """ atom: atoms - atomId: numeric - currentSharePrice: numeric! + atom_id: numeric + """ + An array relationship + """ + claims( + """ + distinct select on columns + """ + distinct_on: [claims_select_column!] + """ + limit the number of rows returned + """ + limit: Int + """ + skip the first n rows. Use only with order_by + """ + offset: Int + """ + sort the rows by one or more columns + """ + order_by: [claims_order_by!] + """ + filter the rows returned + """ + where: claims_bool_exp + ): [claims!]! + """ + An aggregate relationship + """ + claims_aggregate( + """ + distinct select on columns + """ + distinct_on: [claims_select_column!] + """ + limit the number of rows returned + """ + limit: Int + """ + skip the first n rows. Use only with order_by + """ + offset: Int + """ + sort the rows by one or more columns + """ + order_by: [claims_order_by!] + """ + filter the rows returned + """ + where: claims_bool_exp + ): claims_aggregate! + """ + An array relationship + """ + counter_claims( + """ + distinct select on columns + """ + distinct_on: [claims_select_column!] + """ + limit the number of rows returned + """ + limit: Int + """ + skip the first n rows. Use only with order_by + """ + offset: Int + """ + sort the rows by one or more columns + """ + order_by: [claims_order_by!] + """ + filter the rows returned + """ + where: claims_bool_exp + ): [claims!]! + """ + An aggregate relationship + """ + counter_claims_aggregate( + """ + distinct select on columns + """ + distinct_on: [claims_select_column!] + """ + limit the number of rows returned + """ + limit: Int + """ + skip the first n rows. Use only with order_by + """ + offset: Int + """ + sort the rows by one or more columns + """ + order_by: [claims_order_by!] + """ + filter the rows returned + """ + where: claims_bool_exp + ): claims_aggregate! + current_share_price: numeric! """ An array relationship """ @@ -9937,7 +10874,7 @@ type vaults { where: deposits_bool_exp ): deposits_aggregate! id: numeric! - positionCount: Int! + position_count: Int! """ An array relationship """ @@ -9989,19 +10926,65 @@ type vaults { where: positions_bool_exp ): positions_aggregate! """ - An object relationship + An array relationship + """ + redemptions( + """ + distinct select on columns + """ + distinct_on: [redemptions_select_column!] + """ + limit the number of rows returned + """ + limit: Int + """ + skip the first n rows. Use only with order_by + """ + offset: Int + """ + sort the rows by one or more columns + """ + order_by: [redemptions_order_by!] + """ + filter the rows returned + """ + where: redemptions_bool_exp + ): [redemptions!]! + """ + An aggregate relationship """ - redemptions: redemptions - totalShares: numeric! + redemptions_aggregate( + """ + distinct select on columns + """ + distinct_on: [redemptions_select_column!] + """ + limit the number of rows returned + """ + limit: Int + """ + skip the first n rows. Use only with order_by + """ + offset: Int + """ + sort the rows by one or more columns + """ + order_by: [redemptions_order_by!] + """ + filter the rows returned + """ + where: redemptions_bool_exp + ): redemptions_aggregate! + total_shares: numeric! """ An object relationship """ triple: triples - tripleId: numeric + triple_id: numeric } """ -aggregated selection of "Vault" +aggregated selection of "vault" """ type vaults_aggregate { aggregate: vaults_aggregate_fields @@ -10009,7 +10992,7 @@ type vaults_aggregate { } """ -aggregate fields of "Vault" +aggregate fields of "vault" """ type vaults_aggregate_fields { avg: vaults_avg_fields @@ -10029,89 +11012,96 @@ type vaults_aggregate_fields { aggregate avg on columns """ type vaults_avg_fields { - atomId: Float - currentSharePrice: Float + atom_id: Float + current_share_price: Float id: Float - positionCount: Float - totalShares: Float - tripleId: Float + position_count: Float + total_shares: Float + triple_id: Float } """ -Boolean expression to filter rows from the table "Vault". All fields are combined with a logical 'AND'. +Boolean expression to filter rows from the table "vault". All fields are combined with a logical 'AND'. """ input vaults_bool_exp { _and: [vaults_bool_exp!] _not: vaults_bool_exp _or: [vaults_bool_exp!] atom: atoms_bool_exp - atomId: numeric_comparison_exp - currentSharePrice: numeric_comparison_exp + atom_id: numeric_comparison_exp + claims: claims_bool_exp + claims_aggregate: claims_aggregate_bool_exp + counter_claims: claims_bool_exp + counter_claims_aggregate: claims_aggregate_bool_exp + current_share_price: numeric_comparison_exp deposits: deposits_bool_exp deposits_aggregate: deposits_aggregate_bool_exp id: numeric_comparison_exp - positionCount: Int_comparison_exp + position_count: Int_comparison_exp positions: positions_bool_exp positions_aggregate: positions_aggregate_bool_exp redemptions: redemptions_bool_exp - totalShares: numeric_comparison_exp + redemptions_aggregate: redemptions_aggregate_bool_exp + total_shares: numeric_comparison_exp triple: triples_bool_exp - tripleId: numeric_comparison_exp + triple_id: numeric_comparison_exp } """ aggregate max on columns """ type vaults_max_fields { - atomId: numeric - currentSharePrice: numeric + atom_id: numeric + current_share_price: numeric id: numeric - positionCount: Int - totalShares: numeric - tripleId: numeric + position_count: Int + total_shares: numeric + triple_id: numeric } """ aggregate min on columns """ type vaults_min_fields { - atomId: numeric - currentSharePrice: numeric + atom_id: numeric + current_share_price: numeric id: numeric - positionCount: Int - totalShares: numeric - tripleId: numeric + position_count: Int + total_shares: numeric + triple_id: numeric } """ -Ordering options when selecting data from "Vault". +Ordering options when selecting data from "vault". """ input vaults_order_by { atom: atoms_order_by - atomId: order_by - currentSharePrice: order_by + atom_id: order_by + claims_aggregate: claims_aggregate_order_by + counter_claims_aggregate: claims_aggregate_order_by + current_share_price: order_by deposits_aggregate: deposits_aggregate_order_by id: order_by - positionCount: order_by + position_count: order_by positions_aggregate: positions_aggregate_order_by - redemptions: redemptions_order_by - totalShares: order_by + redemptions_aggregate: redemptions_aggregate_order_by + total_shares: order_by triple: triples_order_by - tripleId: order_by + triple_id: order_by } """ -select columns of table "Vault" +select columns of table "vault" """ enum vaults_select_column { """ column name """ - atomId + atom_id """ column name """ - currentSharePrice + current_share_price """ column name """ @@ -10119,51 +11109,51 @@ enum vaults_select_column { """ column name """ - positionCount + position_count """ column name """ - totalShares + total_shares """ column name """ - tripleId + triple_id } """ aggregate stddev on columns """ type vaults_stddev_fields { - atomId: Float - currentSharePrice: Float + atom_id: Float + current_share_price: Float id: Float - positionCount: Float - totalShares: Float - tripleId: Float + position_count: Float + total_shares: Float + triple_id: Float } """ aggregate stddev_pop on columns """ type vaults_stddev_pop_fields { - atomId: Float - currentSharePrice: Float + atom_id: Float + current_share_price: Float id: Float - positionCount: Float - totalShares: Float - tripleId: Float + position_count: Float + total_shares: Float + triple_id: Float } """ aggregate stddev_samp on columns """ type vaults_stddev_samp_fields { - atomId: Float - currentSharePrice: Float + atom_id: Float + current_share_price: Float id: Float - positionCount: Float - totalShares: Float - tripleId: Float + position_count: Float + total_shares: Float + triple_id: Float } """ @@ -10184,58 +11174,58 @@ input vaults_stream_cursor_input { Initial value of the column from where the streaming should start """ input vaults_stream_cursor_value_input { - atomId: numeric - currentSharePrice: numeric + atom_id: numeric + current_share_price: numeric id: numeric - positionCount: Int - totalShares: numeric - tripleId: numeric + position_count: Int + total_shares: numeric + triple_id: numeric } """ aggregate sum on columns """ type vaults_sum_fields { - atomId: numeric - currentSharePrice: numeric + atom_id: numeric + current_share_price: numeric id: numeric - positionCount: Int - totalShares: numeric - tripleId: numeric + position_count: Int + total_shares: numeric + triple_id: numeric } """ aggregate var_pop on columns """ type vaults_var_pop_fields { - atomId: Float - currentSharePrice: Float + atom_id: Float + current_share_price: Float id: Float - positionCount: Float - totalShares: Float - tripleId: Float + position_count: Float + total_shares: Float + triple_id: Float } """ aggregate var_samp on columns """ type vaults_var_samp_fields { - atomId: Float - currentSharePrice: Float + atom_id: Float + current_share_price: Float id: Float - positionCount: Float - totalShares: Float - tripleId: Float + position_count: Float + total_shares: Float + triple_id: Float } """ aggregate variance on columns """ type vaults_variance_fields { - atomId: Float - currentSharePrice: Float + atom_id: Float + current_share_price: Float id: Float - positionCount: Float - totalShares: Float - tripleId: Float + position_count: Float + total_shares: Float + triple_id: Float } diff --git a/packages/graphql/src/constants.ts b/packages/graphql/src/constants.ts index ee28d4c1e..f278f856a 100644 --- a/packages/graphql/src/constants.ts +++ b/packages/graphql/src/constants.ts @@ -1,2 +1,3 @@ -export const API_URL_DEV = 'https://api.i7n.dev/v1/graphql' -export const API_URL_PROD = 'https://api.i7n.app/v1/graphql' +export const API_URL_LOCAL = 'http://localhost:8080/v1/graphql' +export const API_URL_DEV = 'https://dev.base.intuition-api.com/v1/graphql' +export const API_URL_PROD = 'https://dev.base.intuition-api.com/v1/graphql' diff --git a/packages/graphql/src/fragments/account.graphql b/packages/graphql/src/fragments/account.graphql index 703c39f02..d9d5ef23b 100644 --- a/packages/graphql/src/fragments/account.graphql +++ b/packages/graphql/src/fragments/account.graphql @@ -2,7 +2,7 @@ fragment AccountMetadata on accounts { label image id - atomId + atom_id type } @@ -14,10 +14,9 @@ fragment AccountClaimsAggregate on accounts { nodes { triple { id - label } shares - counterShares + counter_shares } } } @@ -31,10 +30,9 @@ fragment AccountClaims on accounts { ) { triple { id - label } shares - counterShares + counter_shares } } @@ -48,15 +46,14 @@ fragment AccountPositionsAggregate on accounts { shares vault { id - totalShares - currentSharePrice + total_shares + current_share_price atom { id label } triple { id - label } } } @@ -74,22 +71,45 @@ fragment AccountPositions on accounts { shares vault { id - totalShares - currentSharePrice + total_shares + current_share_price atom { id label } triple { id - label } } } } -fragment AccountCreatedAtomsAggregate on accounts { - createdAtoms_aggregate( +fragment AccountAtoms on accounts { + atoms( + where: $atomsWhere + order_by: $atomsOrderBy + limit: $atomsLimit + offset: $atomsOffset + ) { + id + label + data + vault { + total_shares + positions_aggregate(where: { account_id: { _eq: $address } }) { + nodes { + account { + id + } + shares + } + } + } + } +} + +fragment AccountAtomsAggregate on accounts { + atoms_aggregate( where: $atomsWhere order_by: $atomsOrderBy limit: $atomsLimit @@ -106,8 +126,8 @@ fragment AccountCreatedAtomsAggregate on accounts { label data vault { - totalShares - positions_aggregate(where: { accountId: { _eq: $address } }) { + total_shares + positions_aggregate(where: { account_id: { _eq: $address } }) { nodes { account { id @@ -120,30 +140,8 @@ fragment AccountCreatedAtomsAggregate on accounts { } } -fragment AccountCreatedAtoms on accounts { - createdAtoms( - where: $atomsWhere - order_by: $atomsOrderBy - limit: $atomsLimit - offset: $atomsOffset - ) { - id - label - data - vault { - totalShares - positions(where: { accountId: { _eq: $address } }) { - account { - id - } - shares - } - } - } -} - -fragment AccountCreatedTriples on accounts { - createdTriples_aggregate( +fragment AccountTriples on accounts { + triples_aggregate( where: $triplesWhere order_by: $triplesOrderBy limit: $triplesLimit @@ -154,7 +152,6 @@ fragment AccountCreatedTriples on accounts { } nodes { id - label subject { id label @@ -171,8 +168,8 @@ fragment AccountCreatedTriples on accounts { } } -fragment AccountCreatedTriplesAggregate on accounts { - createdTriples_aggregate( +fragment AccountTriplesAggregate on accounts { + triples_aggregate( where: $triplesWhere order_by: $triplesOrderBy limit: $triplesLimit @@ -183,7 +180,6 @@ fragment AccountCreatedTriplesAggregate on accounts { } nodes { id - label subject { id label diff --git a/packages/graphql/src/fragments/atom.graphql b/packages/graphql/src/fragments/atom.graphql index d1cc667c8..5de452988 100644 --- a/packages/graphql/src/fragments/atom.graphql +++ b/packages/graphql/src/fragments/atom.graphql @@ -28,7 +28,7 @@ fragment AtomMetadata on atoms { label emoji type - walletId + wallet_id creator { id label @@ -38,19 +38,19 @@ fragment AtomMetadata on atoms { } fragment AtomTxn on atoms { - blockNumber - blockTimestamp - transactionHash - creatorId + block_number + block_timestamp + transaction_hash + creator_id } fragment AtomVaultDetails on atoms { - vaultId - walletId + vault_id + wallet_id vault { - positionCount - totalShares - currentSharePrice + position_count + total_shares + current_share_price positions_aggregate { aggregate { count @@ -71,9 +71,8 @@ fragment AtomVaultDetails on atoms { } fragment AtomTriple on atoms { - asSubject { + as_subject_triples { id - label object { data id @@ -97,9 +96,8 @@ fragment AtomTriple on atoms { } } } - asPredicate { + as_predicate_triples { id - label subject { data id @@ -123,9 +121,8 @@ fragment AtomTriple on atoms { } } } - asObject { + as_object_triples { id - label subject { data id @@ -153,9 +150,9 @@ fragment AtomTriple on atoms { fragment AtomVaultDetailsWithPositions on atoms { vault { - totalShares - currentSharePrice - positions_aggregate(where: { accountId: { _in: $addresses } }) { + total_shares + current_share_price + positions_aggregate(where: { account_id: { _in: $addresses } }) { aggregate { sum { shares diff --git a/packages/graphql/src/fragments/deposit.graphql b/packages/graphql/src/fragments/deposit.graphql index e5a0d830f..47d490080 100644 --- a/packages/graphql/src/fragments/deposit.graphql +++ b/packages/graphql/src/fragments/deposit.graphql @@ -1,8 +1,8 @@ fragment DepositEventFragment on events { deposit { - vaultId - senderAssetsAfterTotalFees - sharesForReceiver + vault_id + sender_assets_after_total_fees + shares_for_receiver receiver { id } diff --git a/packages/graphql/src/fragments/event.graphql b/packages/graphql/src/fragments/event.graphql index 6a59e582e..929dc27e0 100644 --- a/packages/graphql/src/fragments/event.graphql +++ b/packages/graphql/src/fragments/event.graphql @@ -1,21 +1,21 @@ fragment EventDetails on events { - blockNumber - blockTimestamp + block_number + block_timestamp type - transactionHash - atomId - tripleId - depositId - redemptionId + transaction_hash + atom_id + triple_id + deposit_id + redemption_id ...DepositEventFragment ...RedemptionEventFragment atom { ...AtomMetadata vault { - totalShares - positionCount + total_shares + position_count positions { - accountId + account_id shares account { id @@ -28,10 +28,10 @@ fragment EventDetails on events { triple { ...TripleMetadata vault { - totalShares - positionCount + total_shares + position_count positions { - accountId + account_id shares account { id @@ -40,11 +40,11 @@ fragment EventDetails on events { } } } - counterVault { - totalShares - positionCount + counter_vault { + total_shares + position_count positions { - accountId + account_id shares account { id diff --git a/packages/graphql/src/fragments/follow.graphql b/packages/graphql/src/fragments/follow.graphql index 89f39e44d..c85afd2d3 100644 --- a/packages/graphql/src/fragments/follow.graphql +++ b/packages/graphql/src/fragments/follow.graphql @@ -14,8 +14,8 @@ fragment FollowMetadata on triples { } vault { id - totalShares - currentSharePrice + total_shares + current_share_price positions_aggregate(where: $positionsWhere) { aggregate { count diff --git a/packages/graphql/src/fragments/position.graphql b/packages/graphql/src/fragments/position.graphql index 0ad75ec63..92560acf1 100644 --- a/packages/graphql/src/fragments/position.graphql +++ b/packages/graphql/src/fragments/position.graphql @@ -14,22 +14,68 @@ fragment PositionDetails on positions { } triple { id + vault { + id + position_count + positions_aggregate { + aggregate { + sum { + shares + } + } + } + } + counter_vault { + id + position_count + positions_aggregate { + aggregate { + sum { + shares + } + } + } + } subject { + data id label + image + emoji + type + ...AtomValue + creator { + ...AccountMetadata + } } predicate { + data id label + image + emoji + type + ...AtomValue + creator { + ...AccountMetadata + } } object { + data id label + image + emoji + type + ...AtomValue + creator { + ...AccountMetadata + } } } } shares - vaultId + vault_id } fragment PositionFields on positions { @@ -38,6 +84,11 @@ fragment PositionFields on positions { label } shares + vault { + id + total_shares + current_share_price + } } fragment PositionAggregateFields on positions_aggregate { diff --git a/packages/graphql/src/fragments/redemption.graphql b/packages/graphql/src/fragments/redemption.graphql index 672cb621e..825f9455d 100644 --- a/packages/graphql/src/fragments/redemption.graphql +++ b/packages/graphql/src/fragments/redemption.graphql @@ -1,8 +1,8 @@ fragment RedemptionEventFragment on events { redemption { - vaultId - receiverId - sharesRedeemedBySender - assetsForReceiver + vault_id + receiver_id + shares_redeemed_by_sender + assets_for_receiver } } diff --git a/packages/graphql/src/fragments/stat.graphql b/packages/graphql/src/fragments/stat.graphql index 175896521..52bfff534 100644 --- a/packages/graphql/src/fragments/stat.graphql +++ b/packages/graphql/src/fragments/stat.graphql @@ -1,9 +1,9 @@ fragment StatDetails on stats { - contractBalance - totalAccounts - totalFees - totalAtoms - totalTriples - totalPositions - totalSignals + contract_balance + total_accounts + total_fees + total_atoms + total_triples + total_positions + total_signals } diff --git a/packages/graphql/src/fragments/triple.graphql b/packages/graphql/src/fragments/triple.graphql index f857e6921..487eea7de 100644 --- a/packages/graphql/src/fragments/triple.graphql +++ b/packages/graphql/src/fragments/triple.graphql @@ -1,8 +1,8 @@ fragment TripleMetadata on triples { id - subjectId - predicateId - objectId + subject_id + predicate_id + object_id subject { data id @@ -40,8 +40,8 @@ fragment TripleMetadata on triples { } } vault { - totalShares - currentSharePrice + total_shares + current_share_price allPositions: positions_aggregate { ...PositionAggregateFields } @@ -49,9 +49,9 @@ fragment TripleMetadata on triples { ...PositionFields } } - counterVault { - totalShares - currentSharePrice + counter_vault { + total_shares + current_share_price allPositions: positions_aggregate { ...PositionAggregateFields } @@ -62,48 +62,34 @@ fragment TripleMetadata on triples { } fragment TripleTxn on triples { - blockNumber - blockTimestamp - transactionHash - creatorId + block_number + block_timestamp + transaction_hash + creator_id } fragment TripleVaultDetails on triples { - vaultId - counterVaultId + vault_id + counter_vault_id vault { positions { - id - vaultId - shares - account { - id - label - image - } + ...PositionDetails } } - counterVault { + counter_vault { positions { - id - vaultId - shares - account { - id - label - image - } + ...PositionDetails } } } fragment TripleVaultCouterVaultDetailsWithPositions on triples { - vaultId - counterVaultId + vault_id + counter_vault_id vault { ...VaultDetailsWithFilteredPositions } - counterVault { + counter_vault { ...VaultDetailsWithFilteredPositions } } diff --git a/packages/graphql/src/fragments/vault.graphql b/packages/graphql/src/fragments/vault.graphql index 2906b268b..34db283ee 100644 --- a/packages/graphql/src/fragments/vault.graphql +++ b/packages/graphql/src/fragments/vault.graphql @@ -19,8 +19,8 @@ fragment VaultBasicDetails on vaults { label } } - currentSharePrice - totalShares + current_share_price + total_shares } fragment VaultPositionsAggregate on vaults { @@ -30,7 +30,7 @@ fragment VaultPositionsAggregate on vaults { } fragment VaultFilteredPositions on vaults { - positions(where: { accountId: { _in: $addresses } }) { + positions(where: { account_id: { _in: $addresses } }) { ...PositionFields } } @@ -51,8 +51,8 @@ fragment VaultDetailsWithFilteredPositions on vaults { } fragment VaultFieldsForTriple on vaults { - totalShares - currentSharePrice + total_shares + current_share_price ...VaultPositionsAggregate ...VaultFilteredPositions } diff --git a/packages/graphql/src/generated/index.ts b/packages/graphql/src/generated/index.ts index 4625c1384..4be712b0b 100644 --- a/packages/graphql/src/generated/index.ts +++ b/packages/graphql/src/generated/index.ts @@ -36,9 +36,28 @@ export type Scalars = { Boolean: { input: boolean; output: boolean } Int: { input: number; output: number } Float: { input: number; output: number } + account_type: { input: any; output: any } + atom_type: { input: any; output: any } + bigint: { input: any; output: any } bytea: { input: any; output: any } + event_type: { input: any; output: any } float8: { input: any; output: any } + jsonb: { input: any; output: any } numeric: { input: any; output: any } + timestamptz: { input: any; output: any } +} + +/** Boolean expression to compare columns of type "Boolean". All fields are combined with logical 'AND'. */ +export type Boolean_Comparison_Exp = { + _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'. */ @@ -54,6 +73,35 @@ export type Int_Comparison_Exp = { _nin?: InputMaybe> } +export type PinOrganizationInput = { + description?: InputMaybe + email?: InputMaybe + image?: InputMaybe + name?: InputMaybe + url?: InputMaybe +} + +export type PinOutput = { + __typename?: 'PinOutput' + uri?: Maybe +} + +export type PinPersonInput = { + description?: InputMaybe + email?: InputMaybe + identifier?: InputMaybe + image?: InputMaybe + name?: InputMaybe + url?: InputMaybe +} + +export type PinThingInput = { + description?: InputMaybe + image?: InputMaybe + name?: InputMaybe + url?: InputMaybe +} + /** Boolean expression to compare columns of type "String". All fields are combined with logical 'AND'. */ export type String_Comparison_Exp = { _eq?: InputMaybe @@ -87,44 +135,47 @@ export type String_Comparison_Exp = { _similar?: InputMaybe } -export type ThingInput = { - description?: InputMaybe - image?: InputMaybe - name?: InputMaybe - url?: InputMaybe -} - -export type ThingOutput = { - __typename?: 'ThingOutput' - cid?: Maybe +/** Boolean expression to compare columns of type "account_type". All fields are combined with logical 'AND'. */ +export type Account_Type_Comparison_Exp = { + _eq?: InputMaybe + _gt?: InputMaybe + _gte?: InputMaybe + _in?: InputMaybe> + _is_null?: InputMaybe + _lt?: InputMaybe + _lte?: InputMaybe + _neq?: InputMaybe + _nin?: InputMaybe> } -/** columns and relationships of "Account" */ +/** columns and relationships of "account" */ export type Accounts = { __typename?: 'accounts' /** An object relationship */ atom?: Maybe - atomId?: Maybe + atom_id?: Maybe /** An array relationship */ - claims: Array + atoms: Array /** An aggregate relationship */ - claims_aggregate: Claims_Aggregate + atoms_aggregate: Atoms_Aggregate + /** An object relationship */ + cached_image?: Maybe /** An array relationship */ - createdAtoms: Array + claims: Array /** An aggregate relationship */ - createdAtoms_aggregate: Atoms_Aggregate + claims_aggregate: Claims_Aggregate /** An array relationship */ - createdTriples: Array + deposits_received: Array /** An aggregate relationship */ - createdTriples_aggregate: Triples_Aggregate + deposits_received_aggregate: Deposits_Aggregate /** An array relationship */ - deposits: Array + deposits_sent: Array /** An aggregate relationship */ - deposits_aggregate: Deposits_Aggregate + deposits_sent_aggregate: Deposits_Aggregate /** An array relationship */ - feeTransfers: Array + fee_transfers: Array /** An aggregate relationship */ - feeTransfers_aggregate: FeeTranfers_Aggregate + fee_transfers_aggregate: Fee_Transfers_Aggregate id: Scalars['String']['output'] image?: Maybe label: Scalars['String']['output'] @@ -133,72 +184,80 @@ export type Accounts = { /** An aggregate relationship */ positions_aggregate: Positions_Aggregate /** An array relationship */ - redemptions: Array + redemptions_received: Array /** An aggregate relationship */ - redemptions_aggregate: Redemptions_Aggregate + redemptions_received_aggregate: Redemptions_Aggregate + /** An array relationship */ + redemptions_sent: Array + /** An aggregate relationship */ + redemptions_sent_aggregate: Redemptions_Aggregate /** An array relationship */ signals: Array /** An aggregate relationship */ signals_aggregate: Signals_Aggregate - type: Scalars['String']['output'] + /** An array relationship */ + triples: Array + /** An aggregate relationship */ + triples_aggregate: Triples_Aggregate + type: Scalars['account_type']['output'] } -/** columns and relationships of "Account" */ -export type AccountsClaimsArgs = { - distinct_on?: InputMaybe> +/** columns and relationships of "account" */ +export type AccountsAtomsArgs = { + distinct_on?: InputMaybe> limit?: InputMaybe offset?: InputMaybe - order_by?: InputMaybe> - where?: InputMaybe + order_by?: InputMaybe> + where?: InputMaybe } -/** columns and relationships of "Account" */ -export type AccountsClaims_AggregateArgs = { - distinct_on?: InputMaybe> +/** columns and relationships of "account" */ +export type AccountsAtoms_AggregateArgs = { + distinct_on?: InputMaybe> limit?: InputMaybe offset?: InputMaybe - order_by?: InputMaybe> - where?: InputMaybe + order_by?: InputMaybe> + where?: InputMaybe } -/** columns and relationships of "Account" */ -export type AccountsCreatedAtomsArgs = { - distinct_on?: InputMaybe> +/** columns and relationships of "account" */ +export type AccountsClaimsArgs = { + distinct_on?: InputMaybe> limit?: InputMaybe offset?: InputMaybe - order_by?: InputMaybe> - where?: InputMaybe + order_by?: InputMaybe> + where?: InputMaybe } -/** columns and relationships of "Account" */ -export type AccountsCreatedAtoms_AggregateArgs = { - distinct_on?: InputMaybe> +/** columns and relationships of "account" */ +export type AccountsClaims_AggregateArgs = { + distinct_on?: InputMaybe> limit?: InputMaybe offset?: InputMaybe - order_by?: InputMaybe> - where?: InputMaybe + order_by?: InputMaybe> + where?: InputMaybe } -/** columns and relationships of "Account" */ -export type AccountsCreatedTriplesArgs = { - distinct_on?: InputMaybe> +/** columns and relationships of "account" */ +export type AccountsDeposits_ReceivedArgs = { + distinct_on?: InputMaybe> limit?: InputMaybe offset?: InputMaybe - order_by?: InputMaybe> - where?: InputMaybe + order_by?: InputMaybe> + where?: InputMaybe } -/** columns and relationships of "Account" */ -export type AccountsCreatedTriples_AggregateArgs = { - distinct_on?: InputMaybe> +/** columns and relationships of "account" */ +export type AccountsDeposits_Received_AggregateArgs = { + distinct_on?: InputMaybe> limit?: InputMaybe offset?: InputMaybe - order_by?: InputMaybe> - where?: InputMaybe + order_by?: InputMaybe> + where?: InputMaybe } -/** columns and relationships of "Account" */ -export type AccountsDepositsArgs = { +/** columns and relationships of "account" */ +export type AccountsDeposits_SentArgs = { distinct_on?: InputMaybe> limit?: InputMaybe offset?: InputMaybe @@ -206,8 +265,8 @@ export type AccountsDepositsArgs = { where?: InputMaybe } -/** columns and relationships of "Account" */ -export type AccountsDeposits_AggregateArgs = { +/** columns and relationships of "account" */ +export type AccountsDeposits_Sent_AggregateArgs = { distinct_on?: InputMaybe> limit?: InputMaybe offset?: InputMaybe @@ -215,25 +274,25 @@ export type AccountsDeposits_AggregateArgs = { where?: InputMaybe } -/** columns and relationships of "Account" */ -export type AccountsFeeTransfersArgs = { - distinct_on?: InputMaybe> +/** columns and relationships of "account" */ +export type AccountsFee_TransfersArgs = { + distinct_on?: InputMaybe> limit?: InputMaybe offset?: InputMaybe - order_by?: InputMaybe> - where?: InputMaybe + order_by?: InputMaybe> + where?: InputMaybe } -/** columns and relationships of "Account" */ -export type AccountsFeeTransfers_AggregateArgs = { - distinct_on?: InputMaybe> +/** columns and relationships of "account" */ +export type AccountsFee_Transfers_AggregateArgs = { + distinct_on?: InputMaybe> limit?: InputMaybe offset?: InputMaybe - order_by?: InputMaybe> - where?: InputMaybe + order_by?: InputMaybe> + where?: InputMaybe } -/** columns and relationships of "Account" */ +/** columns and relationships of "account" */ export type AccountsPositionsArgs = { distinct_on?: InputMaybe> limit?: InputMaybe @@ -242,7 +301,7 @@ export type AccountsPositionsArgs = { where?: InputMaybe } -/** columns and relationships of "Account" */ +/** columns and relationships of "account" */ export type AccountsPositions_AggregateArgs = { distinct_on?: InputMaybe> limit?: InputMaybe @@ -251,8 +310,26 @@ export type AccountsPositions_AggregateArgs = { where?: InputMaybe } -/** columns and relationships of "Account" */ -export type AccountsRedemptionsArgs = { +/** columns and relationships of "account" */ +export type AccountsRedemptions_ReceivedArgs = { + distinct_on?: InputMaybe> + limit?: InputMaybe + offset?: InputMaybe + order_by?: InputMaybe> + where?: InputMaybe +} + +/** columns and relationships of "account" */ +export type AccountsRedemptions_Received_AggregateArgs = { + distinct_on?: InputMaybe> + limit?: InputMaybe + offset?: InputMaybe + order_by?: InputMaybe> + where?: InputMaybe +} + +/** columns and relationships of "account" */ +export type AccountsRedemptions_SentArgs = { distinct_on?: InputMaybe> limit?: InputMaybe offset?: InputMaybe @@ -260,8 +337,8 @@ export type AccountsRedemptionsArgs = { where?: InputMaybe } -/** columns and relationships of "Account" */ -export type AccountsRedemptions_AggregateArgs = { +/** columns and relationships of "account" */ +export type AccountsRedemptions_Sent_AggregateArgs = { distinct_on?: InputMaybe> limit?: InputMaybe offset?: InputMaybe @@ -269,7 +346,7 @@ export type AccountsRedemptions_AggregateArgs = { where?: InputMaybe } -/** columns and relationships of "Account" */ +/** columns and relationships of "account" */ export type AccountsSignalsArgs = { distinct_on?: InputMaybe> limit?: InputMaybe @@ -278,7 +355,7 @@ export type AccountsSignalsArgs = { where?: InputMaybe } -/** columns and relationships of "Account" */ +/** columns and relationships of "account" */ export type AccountsSignals_AggregateArgs = { distinct_on?: InputMaybe> limit?: InputMaybe @@ -287,14 +364,43 @@ export type AccountsSignals_AggregateArgs = { where?: InputMaybe } -/** aggregated selection of "Account" */ +/** columns and relationships of "account" */ +export type AccountsTriplesArgs = { + distinct_on?: InputMaybe> + limit?: InputMaybe + offset?: InputMaybe + order_by?: InputMaybe> + where?: InputMaybe +} + +/** columns and relationships of "account" */ +export type AccountsTriples_AggregateArgs = { + distinct_on?: InputMaybe> + limit?: InputMaybe + offset?: InputMaybe + order_by?: InputMaybe> + where?: InputMaybe +} + +/** aggregated selection of "account" */ export type Accounts_Aggregate = { __typename?: 'accounts_aggregate' aggregate?: Maybe nodes: Array } -/** aggregate fields of "Account" */ +export type Accounts_Aggregate_Bool_Exp = { + count?: InputMaybe +} + +export type Accounts_Aggregate_Bool_Exp_Count = { + arguments?: InputMaybe> + distinct?: InputMaybe + filter?: InputMaybe + predicate: Int_Comparison_Exp +} + +/** aggregate fields of "account" */ export type Accounts_Aggregate_Fields = { __typename?: 'accounts_aggregate_fields' avg?: Maybe @@ -310,89 +416,135 @@ export type Accounts_Aggregate_Fields = { variance?: Maybe } -/** aggregate fields of "Account" */ +/** aggregate fields of "account" */ export type Accounts_Aggregate_FieldsCountArgs = { columns?: InputMaybe> distinct?: InputMaybe } +/** order by aggregate values of table "account" */ +export type Accounts_Aggregate_Order_By = { + 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 Accounts_Avg_Fields = { __typename?: 'accounts_avg_fields' - atomId?: Maybe + atom_id?: Maybe +} + +/** order by avg() on columns of table "account" */ +export type Accounts_Avg_Order_By = { + atom_id?: InputMaybe } -/** Boolean expression to filter rows from the table "Account". All fields are combined with a logical 'AND'. */ +/** Boolean expression to filter rows from the table "account". All fields are combined with a logical 'AND'. */ export type Accounts_Bool_Exp = { _and?: InputMaybe> _not?: InputMaybe _or?: InputMaybe> atom?: InputMaybe - atomId?: InputMaybe + atom_id?: InputMaybe + atoms?: InputMaybe + atoms_aggregate?: InputMaybe + cached_image?: InputMaybe claims?: InputMaybe claims_aggregate?: InputMaybe - createdAtoms?: InputMaybe - createdAtoms_aggregate?: InputMaybe - createdTriples?: InputMaybe - createdTriples_aggregate?: InputMaybe - deposits?: InputMaybe - deposits_aggregate?: InputMaybe - feeTransfers?: InputMaybe - feeTransfers_aggregate?: InputMaybe + deposits_received?: InputMaybe + deposits_received_aggregate?: InputMaybe + deposits_sent?: InputMaybe + deposits_sent_aggregate?: InputMaybe + fee_transfers?: InputMaybe + fee_transfers_aggregate?: InputMaybe id?: InputMaybe image?: InputMaybe label?: InputMaybe positions?: InputMaybe positions_aggregate?: InputMaybe - redemptions?: InputMaybe - redemptions_aggregate?: InputMaybe + redemptions_received?: InputMaybe + redemptions_received_aggregate?: InputMaybe + redemptions_sent?: InputMaybe + redemptions_sent_aggregate?: InputMaybe signals?: InputMaybe signals_aggregate?: InputMaybe - type?: InputMaybe + triples?: InputMaybe + triples_aggregate?: InputMaybe + type?: InputMaybe } /** aggregate max on columns */ export type Accounts_Max_Fields = { __typename?: 'accounts_max_fields' - atomId?: Maybe + atom_id?: Maybe id?: Maybe image?: Maybe label?: Maybe - type?: Maybe + type?: Maybe +} + +/** order by max() on columns of table "account" */ +export type Accounts_Max_Order_By = { + atom_id?: InputMaybe + id?: InputMaybe + image?: InputMaybe + label?: InputMaybe + type?: InputMaybe } /** aggregate min on columns */ export type Accounts_Min_Fields = { __typename?: 'accounts_min_fields' - atomId?: Maybe + atom_id?: Maybe id?: Maybe image?: Maybe label?: Maybe - type?: Maybe + type?: Maybe +} + +/** order by min() on columns of table "account" */ +export type Accounts_Min_Order_By = { + atom_id?: InputMaybe + id?: InputMaybe + image?: InputMaybe + label?: InputMaybe + type?: InputMaybe } -/** Ordering options when selecting data from "Account". */ +/** Ordering options when selecting data from "account". */ export type Accounts_Order_By = { atom?: InputMaybe - atomId?: InputMaybe + atom_id?: InputMaybe + atoms_aggregate?: InputMaybe + cached_image?: InputMaybe claims_aggregate?: InputMaybe - createdAtoms_aggregate?: InputMaybe - createdTriples_aggregate?: InputMaybe - deposits_aggregate?: InputMaybe - feeTransfers_aggregate?: InputMaybe + deposits_received_aggregate?: InputMaybe + deposits_sent_aggregate?: InputMaybe + fee_transfers_aggregate?: InputMaybe id?: InputMaybe image?: InputMaybe label?: InputMaybe positions_aggregate?: InputMaybe - redemptions_aggregate?: InputMaybe + redemptions_received_aggregate?: InputMaybe + redemptions_sent_aggregate?: InputMaybe signals_aggregate?: InputMaybe + triples_aggregate?: InputMaybe type?: InputMaybe } -/** select columns of table "Account" */ +/** select columns of table "account" */ export type Accounts_Select_Column = /** column name */ - | 'atomId' + | 'atom_id' /** column name */ | 'id' /** column name */ @@ -405,19 +557,34 @@ export type Accounts_Select_Column = /** aggregate stddev on columns */ export type Accounts_Stddev_Fields = { __typename?: 'accounts_stddev_fields' - atomId?: Maybe + atom_id?: Maybe +} + +/** order by stddev() on columns of table "account" */ +export type Accounts_Stddev_Order_By = { + atom_id?: InputMaybe } /** aggregate stddev_pop on columns */ export type Accounts_Stddev_Pop_Fields = { __typename?: 'accounts_stddev_pop_fields' - atomId?: Maybe + atom_id?: Maybe +} + +/** order by stddev_pop() on columns of table "account" */ +export type Accounts_Stddev_Pop_Order_By = { + atom_id?: InputMaybe } /** aggregate stddev_samp on columns */ export type Accounts_Stddev_Samp_Fields = { __typename?: 'accounts_stddev_samp_fields' - atomId?: Maybe + atom_id?: Maybe +} + +/** order by stddev_samp() on columns of table "account" */ +export type Accounts_Stddev_Samp_Order_By = { + atom_id?: InputMaybe } /** Streaming cursor of the table "accounts" */ @@ -430,17 +597,22 @@ export type Accounts_Stream_Cursor_Input = { /** Initial value of the column from where the streaming should start */ export type Accounts_Stream_Cursor_Value_Input = { - atomId?: InputMaybe + atom_id?: InputMaybe id?: InputMaybe image?: InputMaybe label?: InputMaybe - type?: InputMaybe + type?: InputMaybe } /** aggregate sum on columns */ export type Accounts_Sum_Fields = { __typename?: 'accounts_sum_fields' - atomId?: Maybe + atom_id?: Maybe +} + +/** order by sum() on columns of table "account" */ +export type Accounts_Sum_Order_By = { + atom_id?: InputMaybe } export type Accounts_That_Claim_About_Account_Args = { @@ -452,297 +624,369 @@ export type Accounts_That_Claim_About_Account_Args = { /** aggregate var_pop on columns */ export type Accounts_Var_Pop_Fields = { __typename?: 'accounts_var_pop_fields' - atomId?: Maybe + atom_id?: Maybe +} + +/** order by var_pop() on columns of table "account" */ +export type Accounts_Var_Pop_Order_By = { + atom_id?: InputMaybe } /** aggregate var_samp on columns */ export type Accounts_Var_Samp_Fields = { __typename?: 'accounts_var_samp_fields' - atomId?: Maybe + atom_id?: Maybe +} + +/** order by var_samp() on columns of table "account" */ +export type Accounts_Var_Samp_Order_By = { + atom_id?: InputMaybe } /** aggregate variance on columns */ export type Accounts_Variance_Fields = { __typename?: 'accounts_variance_fields' - atomId?: Maybe + atom_id?: Maybe +} + +/** order by variance() on columns of table "account" */ +export type Accounts_Variance_Order_By = { + atom_id?: InputMaybe +} + +/** Boolean expression to compare columns of type "atom_type". All fields are combined with logical 'AND'. */ +export type Atom_Type_Comparison_Exp = { + _eq?: InputMaybe + _gt?: InputMaybe + _gte?: InputMaybe + _in?: InputMaybe> + _is_null?: InputMaybe + _lt?: InputMaybe + _lte?: InputMaybe + _neq?: InputMaybe + _nin?: InputMaybe> } -/** columns and relationships of "AtomValue" */ -export type AtomValues = { - __typename?: 'atomValues' +/** columns and relationships of "atom_value" */ +export type Atom_Values = { + __typename?: 'atom_values' /** An object relationship */ account?: Maybe - accountId?: Maybe + account_id?: Maybe /** An object relationship */ atom?: Maybe - atomId: Scalars['numeric']['output'] /** An object relationship */ book?: Maybe - bookId?: Maybe + book_id?: Maybe id: Scalars['numeric']['output'] /** An object relationship */ organization?: Maybe - organizationId?: Maybe + organization_id?: Maybe /** An object relationship */ person?: Maybe - personId?: Maybe + person_id?: Maybe /** An object relationship */ thing?: Maybe - thingId?: Maybe + thing_id?: Maybe } -/** aggregated selection of "AtomValue" */ -export type AtomValues_Aggregate = { - __typename?: 'atomValues_aggregate' - aggregate?: Maybe - nodes: Array +/** aggregated selection of "atom_value" */ +export type Atom_Values_Aggregate = { + __typename?: 'atom_values_aggregate' + aggregate?: Maybe + nodes: Array } -/** aggregate fields of "AtomValue" */ -export type AtomValues_Aggregate_Fields = { - __typename?: 'atomValues_aggregate_fields' - avg?: Maybe +/** aggregate fields of "atom_value" */ +export type Atom_Values_Aggregate_Fields = { + __typename?: 'atom_values_aggregate_fields' + avg?: Maybe count: Scalars['Int']['output'] - 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 "AtomValue" */ -export type AtomValues_Aggregate_FieldsCountArgs = { - columns?: InputMaybe> + 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 "atom_value" */ +export type Atom_Values_Aggregate_FieldsCountArgs = { + columns?: InputMaybe> distinct?: InputMaybe } /** aggregate avg on columns */ -export type AtomValues_Avg_Fields = { - __typename?: 'atomValues_avg_fields' - atomId?: Maybe - bookId?: Maybe +export type Atom_Values_Avg_Fields = { + __typename?: 'atom_values_avg_fields' + book_id?: Maybe id?: Maybe - organizationId?: Maybe - personId?: Maybe - thingId?: Maybe + organization_id?: Maybe + person_id?: Maybe + thing_id?: Maybe } -/** Boolean expression to filter rows from the table "AtomValue". All fields are combined with a logical 'AND'. */ -export type AtomValues_Bool_Exp = { - _and?: InputMaybe> - _not?: InputMaybe - _or?: InputMaybe> +/** Boolean expression to filter rows from the table "atom_value". All fields are combined with a logical 'AND'. */ +export type Atom_Values_Bool_Exp = { + _and?: InputMaybe> + _not?: InputMaybe + _or?: InputMaybe> account?: InputMaybe - accountId?: InputMaybe + account_id?: InputMaybe atom?: InputMaybe - atomId?: InputMaybe book?: InputMaybe - bookId?: InputMaybe + book_id?: InputMaybe id?: InputMaybe organization?: InputMaybe - organizationId?: InputMaybe + organization_id?: InputMaybe person?: InputMaybe - personId?: InputMaybe + person_id?: InputMaybe thing?: InputMaybe - thingId?: InputMaybe + thing_id?: InputMaybe } /** aggregate max on columns */ -export type AtomValues_Max_Fields = { - __typename?: 'atomValues_max_fields' - accountId?: Maybe - atomId?: Maybe - bookId?: Maybe +export type Atom_Values_Max_Fields = { + __typename?: 'atom_values_max_fields' + account_id?: Maybe + book_id?: Maybe id?: Maybe - organizationId?: Maybe - personId?: Maybe - thingId?: Maybe + organization_id?: Maybe + person_id?: Maybe + thing_id?: Maybe } /** aggregate min on columns */ -export type AtomValues_Min_Fields = { - __typename?: 'atomValues_min_fields' - accountId?: Maybe - atomId?: Maybe - bookId?: Maybe +export type Atom_Values_Min_Fields = { + __typename?: 'atom_values_min_fields' + account_id?: Maybe + book_id?: Maybe id?: Maybe - organizationId?: Maybe - personId?: Maybe - thingId?: Maybe + organization_id?: Maybe + person_id?: Maybe + thing_id?: Maybe } -/** Ordering options when selecting data from "AtomValue". */ -export type AtomValues_Order_By = { +/** Ordering options when selecting data from "atom_value". */ +export type Atom_Values_Order_By = { account?: InputMaybe - accountId?: InputMaybe + account_id?: InputMaybe atom?: InputMaybe - atomId?: InputMaybe book?: InputMaybe - bookId?: InputMaybe + book_id?: InputMaybe id?: InputMaybe organization?: InputMaybe - organizationId?: InputMaybe + organization_id?: InputMaybe person?: InputMaybe - personId?: InputMaybe + person_id?: InputMaybe thing?: InputMaybe - thingId?: InputMaybe + thing_id?: InputMaybe } -/** select columns of table "AtomValue" */ -export type AtomValues_Select_Column = +/** select columns of table "atom_value" */ +export type Atom_Values_Select_Column = /** column name */ - | 'accountId' + | 'account_id' /** column name */ - | 'atomId' - /** column name */ - | 'bookId' + | 'book_id' /** column name */ | 'id' /** column name */ - | 'organizationId' + | 'organization_id' /** column name */ - | 'personId' + | 'person_id' /** column name */ - | 'thingId' + | 'thing_id' /** aggregate stddev on columns */ -export type AtomValues_Stddev_Fields = { - __typename?: 'atomValues_stddev_fields' - atomId?: Maybe - bookId?: Maybe +export type Atom_Values_Stddev_Fields = { + __typename?: 'atom_values_stddev_fields' + book_id?: Maybe id?: Maybe - organizationId?: Maybe - personId?: Maybe - thingId?: Maybe + organization_id?: Maybe + person_id?: Maybe + thing_id?: Maybe } /** aggregate stddev_pop on columns */ -export type AtomValues_Stddev_Pop_Fields = { - __typename?: 'atomValues_stddev_pop_fields' - atomId?: Maybe - bookId?: Maybe +export type Atom_Values_Stddev_Pop_Fields = { + __typename?: 'atom_values_stddev_pop_fields' + book_id?: Maybe id?: Maybe - organizationId?: Maybe - personId?: Maybe - thingId?: Maybe + organization_id?: Maybe + person_id?: Maybe + thing_id?: Maybe } /** aggregate stddev_samp on columns */ -export type AtomValues_Stddev_Samp_Fields = { - __typename?: 'atomValues_stddev_samp_fields' - atomId?: Maybe - bookId?: Maybe +export type Atom_Values_Stddev_Samp_Fields = { + __typename?: 'atom_values_stddev_samp_fields' + book_id?: Maybe id?: Maybe - organizationId?: Maybe - personId?: Maybe - thingId?: Maybe + organization_id?: Maybe + person_id?: Maybe + thing_id?: Maybe } -/** Streaming cursor of the table "atomValues" */ -export type AtomValues_Stream_Cursor_Input = { +/** Streaming cursor of the table "atom_values" */ +export type Atom_Values_Stream_Cursor_Input = { /** Stream column input with initial value */ - initial_value: AtomValues_Stream_Cursor_Value_Input + initial_value: Atom_Values_Stream_Cursor_Value_Input /** cursor ordering */ ordering?: InputMaybe } /** Initial value of the column from where the streaming should start */ -export type AtomValues_Stream_Cursor_Value_Input = { - accountId?: InputMaybe - atomId?: InputMaybe - bookId?: InputMaybe +export type Atom_Values_Stream_Cursor_Value_Input = { + account_id?: InputMaybe + book_id?: InputMaybe id?: InputMaybe - organizationId?: InputMaybe - personId?: InputMaybe - thingId?: InputMaybe + organization_id?: InputMaybe + person_id?: InputMaybe + thing_id?: InputMaybe } /** aggregate sum on columns */ -export type AtomValues_Sum_Fields = { - __typename?: 'atomValues_sum_fields' - atomId?: Maybe - bookId?: Maybe +export type Atom_Values_Sum_Fields = { + __typename?: 'atom_values_sum_fields' + book_id?: Maybe id?: Maybe - organizationId?: Maybe - personId?: Maybe - thingId?: Maybe + organization_id?: Maybe + person_id?: Maybe + thing_id?: Maybe } /** aggregate var_pop on columns */ -export type AtomValues_Var_Pop_Fields = { - __typename?: 'atomValues_var_pop_fields' - atomId?: Maybe - bookId?: Maybe +export type Atom_Values_Var_Pop_Fields = { + __typename?: 'atom_values_var_pop_fields' + book_id?: Maybe id?: Maybe - organizationId?: Maybe - personId?: Maybe - thingId?: Maybe + organization_id?: Maybe + person_id?: Maybe + thing_id?: Maybe } /** aggregate var_samp on columns */ -export type AtomValues_Var_Samp_Fields = { - __typename?: 'atomValues_var_samp_fields' - atomId?: Maybe - bookId?: Maybe +export type Atom_Values_Var_Samp_Fields = { + __typename?: 'atom_values_var_samp_fields' + book_id?: Maybe id?: Maybe - organizationId?: Maybe - personId?: Maybe - thingId?: Maybe + organization_id?: Maybe + person_id?: Maybe + thing_id?: Maybe } /** aggregate variance on columns */ -export type AtomValues_Variance_Fields = { - __typename?: 'atomValues_variance_fields' - atomId?: Maybe - bookId?: Maybe +export type Atom_Values_Variance_Fields = { + __typename?: 'atom_values_variance_fields' + book_id?: Maybe id?: Maybe - organizationId?: Maybe - personId?: Maybe - thingId?: Maybe + organization_id?: Maybe + person_id?: Maybe + thing_id?: Maybe } -/** columns and relationships of "Atom" */ +/** columns and relationships of "atom" */ export type Atoms = { __typename?: 'atoms' /** An array relationship */ - asObject: Array + accounts: Array + /** An aggregate relationship */ + accounts_aggregate: Accounts_Aggregate + /** An array relationship */ + as_object_claims: Array + /** An aggregate relationship */ + as_object_claims_aggregate: Claims_Aggregate + /** An array relationship */ + as_object_triples: Array + /** An aggregate relationship */ + as_object_triples_aggregate: Triples_Aggregate + /** An array relationship */ + as_predicate_claims: Array + /** An aggregate relationship */ + as_predicate_claims_aggregate: Claims_Aggregate + /** An array relationship */ + as_predicate_triples: Array /** An aggregate relationship */ - asObject_aggregate: Triples_Aggregate + as_predicate_triples_aggregate: Triples_Aggregate /** An array relationship */ - asPredicate: Array + as_subject_claims: Array /** An aggregate relationship */ - asPredicate_aggregate: Triples_Aggregate + as_subject_claims_aggregate: Claims_Aggregate /** An array relationship */ - asSubject: Array + as_subject_triples: Array /** An aggregate relationship */ - asSubject_aggregate: Triples_Aggregate - blockNumber: Scalars['numeric']['output'] - blockTimestamp: Scalars['numeric']['output'] + as_subject_triples_aggregate: Triples_Aggregate + block_number: Scalars['numeric']['output'] + block_timestamp: Scalars['bigint']['output'] + /** An object relationship */ + cached_image?: Maybe + /** An object relationship */ + controler?: Maybe /** An object relationship */ creator?: Maybe - creatorId: Scalars['String']['output'] - data: Scalars['String']['output'] + creator_id: Scalars['String']['output'] + data?: Maybe emoji?: Maybe id: Scalars['numeric']['output'] image?: Maybe label?: Maybe - transactionHash: Scalars['bytea']['output'] - type: Scalars['String']['output'] + /** An array relationship */ + signals: Array + /** An aggregate relationship */ + signals_aggregate: Signals_Aggregate + transaction_hash: Scalars['bytea']['output'] + type: Scalars['atom_type']['output'] /** An object relationship */ - value?: Maybe - valueId?: Maybe + value?: Maybe + value_id?: Maybe /** An object relationship */ vault?: Maybe - vaultId: Scalars['numeric']['output'] - walletId: Scalars['String']['output'] + vault_id: Scalars['numeric']['output'] + wallet_id: Scalars['String']['output'] +} + +/** columns and relationships of "atom" */ +export type AtomsAccountsArgs = { + distinct_on?: InputMaybe> + limit?: InputMaybe + offset?: InputMaybe + order_by?: InputMaybe> + where?: InputMaybe +} + +/** columns and relationships of "atom" */ +export type AtomsAccounts_AggregateArgs = { + distinct_on?: InputMaybe> + limit?: InputMaybe + offset?: InputMaybe + order_by?: InputMaybe> + where?: InputMaybe +} + +/** columns and relationships of "atom" */ +export type AtomsAs_Object_ClaimsArgs = { + distinct_on?: InputMaybe> + limit?: InputMaybe + offset?: InputMaybe + order_by?: InputMaybe> + where?: InputMaybe +} + +/** columns and relationships of "atom" */ +export type AtomsAs_Object_Claims_AggregateArgs = { + distinct_on?: InputMaybe> + limit?: InputMaybe + offset?: InputMaybe + order_by?: InputMaybe> + where?: InputMaybe } -/** columns and relationships of "Atom" */ -export type AtomsAsObjectArgs = { +/** columns and relationships of "atom" */ +export type AtomsAs_Object_TriplesArgs = { distinct_on?: InputMaybe> limit?: InputMaybe offset?: InputMaybe @@ -750,8 +994,8 @@ export type AtomsAsObjectArgs = { where?: InputMaybe } -/** columns and relationships of "Atom" */ -export type AtomsAsObject_AggregateArgs = { +/** columns and relationships of "atom" */ +export type AtomsAs_Object_Triples_AggregateArgs = { distinct_on?: InputMaybe> limit?: InputMaybe offset?: InputMaybe @@ -759,8 +1003,26 @@ export type AtomsAsObject_AggregateArgs = { where?: InputMaybe } -/** columns and relationships of "Atom" */ -export type AtomsAsPredicateArgs = { +/** columns and relationships of "atom" */ +export type AtomsAs_Predicate_ClaimsArgs = { + distinct_on?: InputMaybe> + limit?: InputMaybe + offset?: InputMaybe + order_by?: InputMaybe> + where?: InputMaybe +} + +/** columns and relationships of "atom" */ +export type AtomsAs_Predicate_Claims_AggregateArgs = { + distinct_on?: InputMaybe> + limit?: InputMaybe + offset?: InputMaybe + order_by?: InputMaybe> + where?: InputMaybe +} + +/** columns and relationships of "atom" */ +export type AtomsAs_Predicate_TriplesArgs = { distinct_on?: InputMaybe> limit?: InputMaybe offset?: InputMaybe @@ -768,8 +1030,8 @@ export type AtomsAsPredicateArgs = { where?: InputMaybe } -/** columns and relationships of "Atom" */ -export type AtomsAsPredicate_AggregateArgs = { +/** columns and relationships of "atom" */ +export type AtomsAs_Predicate_Triples_AggregateArgs = { distinct_on?: InputMaybe> limit?: InputMaybe offset?: InputMaybe @@ -777,8 +1039,26 @@ export type AtomsAsPredicate_AggregateArgs = { where?: InputMaybe } -/** columns and relationships of "Atom" */ -export type AtomsAsSubjectArgs = { +/** columns and relationships of "atom" */ +export type AtomsAs_Subject_ClaimsArgs = { + distinct_on?: InputMaybe> + limit?: InputMaybe + offset?: InputMaybe + order_by?: InputMaybe> + where?: InputMaybe +} + +/** columns and relationships of "atom" */ +export type AtomsAs_Subject_Claims_AggregateArgs = { + distinct_on?: InputMaybe> + limit?: InputMaybe + offset?: InputMaybe + order_by?: InputMaybe> + where?: InputMaybe +} + +/** columns and relationships of "atom" */ +export type AtomsAs_Subject_TriplesArgs = { distinct_on?: InputMaybe> limit?: InputMaybe offset?: InputMaybe @@ -786,8 +1066,8 @@ export type AtomsAsSubjectArgs = { where?: InputMaybe } -/** columns and relationships of "Atom" */ -export type AtomsAsSubject_AggregateArgs = { +/** columns and relationships of "atom" */ +export type AtomsAs_Subject_Triples_AggregateArgs = { distinct_on?: InputMaybe> limit?: InputMaybe offset?: InputMaybe @@ -795,7 +1075,25 @@ export type AtomsAsSubject_AggregateArgs = { where?: InputMaybe } -/** aggregated selection of "Atom" */ +/** columns and relationships of "atom" */ +export type AtomsSignalsArgs = { + distinct_on?: InputMaybe> + limit?: InputMaybe + offset?: InputMaybe + order_by?: InputMaybe> + where?: InputMaybe +} + +/** columns and relationships of "atom" */ +export type AtomsSignals_AggregateArgs = { + distinct_on?: InputMaybe> + limit?: InputMaybe + offset?: InputMaybe + order_by?: InputMaybe> + where?: InputMaybe +} + +/** aggregated selection of "atom" */ export type Atoms_Aggregate = { __typename?: 'atoms_aggregate' aggregate?: Maybe @@ -813,7 +1111,7 @@ export type Atoms_Aggregate_Bool_Exp_Count = { predicate: Int_Comparison_Exp } -/** aggregate fields of "Atom" */ +/** aggregate fields of "atom" */ export type Atoms_Aggregate_Fields = { __typename?: 'atoms_aggregate_fields' avg?: Maybe @@ -829,13 +1127,13 @@ export type Atoms_Aggregate_Fields = { variance?: Maybe } -/** aggregate fields of "Atom" */ +/** aggregate fields of "atom" */ export type Atoms_Aggregate_FieldsCountArgs = { columns?: InputMaybe> distinct?: InputMaybe } -/** order by aggregate values of table "Atom" */ +/** order by aggregate values of table "atom" */ export type Atoms_Aggregate_Order_By = { avg?: InputMaybe count?: InputMaybe @@ -853,148 +1151,167 @@ export type Atoms_Aggregate_Order_By = { /** aggregate avg on columns */ export type Atoms_Avg_Fields = { __typename?: 'atoms_avg_fields' - blockNumber?: Maybe - blockTimestamp?: Maybe + block_number?: Maybe + block_timestamp?: Maybe id?: Maybe - valueId?: Maybe - vaultId?: Maybe + value_id?: Maybe + vault_id?: Maybe } -/** order by avg() on columns of table "Atom" */ +/** order by avg() on columns of table "atom" */ export type Atoms_Avg_Order_By = { - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe id?: InputMaybe - valueId?: InputMaybe - vaultId?: InputMaybe + value_id?: InputMaybe + vault_id?: InputMaybe } -/** Boolean expression to filter rows from the table "Atom". All fields are combined with a logical 'AND'. */ +/** Boolean expression to filter rows from the table "atom". All fields are combined with a logical 'AND'. */ export type Atoms_Bool_Exp = { _and?: InputMaybe> _not?: InputMaybe _or?: InputMaybe> - asObject?: InputMaybe - asObject_aggregate?: InputMaybe - asPredicate?: InputMaybe - asPredicate_aggregate?: InputMaybe - asSubject?: InputMaybe - asSubject_aggregate?: InputMaybe - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe + accounts?: InputMaybe + accounts_aggregate?: InputMaybe + as_object_claims?: InputMaybe + as_object_claims_aggregate?: InputMaybe + as_object_triples?: InputMaybe + as_object_triples_aggregate?: InputMaybe + as_predicate_claims?: InputMaybe + as_predicate_claims_aggregate?: InputMaybe + as_predicate_triples?: InputMaybe + as_predicate_triples_aggregate?: InputMaybe + as_subject_claims?: InputMaybe + as_subject_claims_aggregate?: InputMaybe + as_subject_triples?: InputMaybe + as_subject_triples_aggregate?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe + cached_image?: InputMaybe + controler?: InputMaybe creator?: InputMaybe - creatorId?: InputMaybe + creator_id?: InputMaybe data?: InputMaybe emoji?: InputMaybe id?: InputMaybe image?: InputMaybe label?: InputMaybe - transactionHash?: InputMaybe - type?: InputMaybe - value?: InputMaybe - valueId?: InputMaybe + signals?: InputMaybe + signals_aggregate?: InputMaybe + transaction_hash?: InputMaybe + type?: InputMaybe + value?: InputMaybe + value_id?: InputMaybe vault?: InputMaybe - vaultId?: InputMaybe - walletId?: InputMaybe + vault_id?: InputMaybe + wallet_id?: InputMaybe } /** aggregate max on columns */ export type Atoms_Max_Fields = { __typename?: 'atoms_max_fields' - blockNumber?: Maybe - blockTimestamp?: Maybe - creatorId?: Maybe + block_number?: Maybe + block_timestamp?: Maybe + creator_id?: Maybe data?: Maybe emoji?: Maybe id?: Maybe image?: Maybe label?: Maybe - type?: Maybe - valueId?: Maybe - vaultId?: Maybe - walletId?: Maybe + type?: Maybe + value_id?: Maybe + vault_id?: Maybe + wallet_id?: Maybe } -/** order by max() on columns of table "Atom" */ +/** order by max() on columns of table "atom" */ export type Atoms_Max_Order_By = { - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe - creatorId?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe + creator_id?: InputMaybe data?: InputMaybe emoji?: InputMaybe id?: InputMaybe image?: InputMaybe label?: InputMaybe type?: InputMaybe - valueId?: InputMaybe - vaultId?: InputMaybe - walletId?: InputMaybe + value_id?: InputMaybe + vault_id?: InputMaybe + wallet_id?: InputMaybe } /** aggregate min on columns */ export type Atoms_Min_Fields = { __typename?: 'atoms_min_fields' - blockNumber?: Maybe - blockTimestamp?: Maybe - creatorId?: Maybe + block_number?: Maybe + block_timestamp?: Maybe + creator_id?: Maybe data?: Maybe emoji?: Maybe id?: Maybe image?: Maybe label?: Maybe - type?: Maybe - valueId?: Maybe - vaultId?: Maybe - walletId?: Maybe + type?: Maybe + value_id?: Maybe + vault_id?: Maybe + wallet_id?: Maybe } -/** order by min() on columns of table "Atom" */ +/** order by min() on columns of table "atom" */ export type Atoms_Min_Order_By = { - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe - creatorId?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe + creator_id?: InputMaybe data?: InputMaybe emoji?: InputMaybe id?: InputMaybe image?: InputMaybe label?: InputMaybe type?: InputMaybe - valueId?: InputMaybe - vaultId?: InputMaybe - walletId?: InputMaybe + value_id?: InputMaybe + vault_id?: InputMaybe + wallet_id?: InputMaybe } -/** Ordering options when selecting data from "Atom". */ +/** Ordering options when selecting data from "atom". */ export type Atoms_Order_By = { - asObject_aggregate?: InputMaybe - asPredicate_aggregate?: InputMaybe - asSubject_aggregate?: InputMaybe - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe + accounts_aggregate?: InputMaybe + as_object_claims_aggregate?: InputMaybe + as_object_triples_aggregate?: InputMaybe + as_predicate_claims_aggregate?: InputMaybe + as_predicate_triples_aggregate?: InputMaybe + as_subject_claims_aggregate?: InputMaybe + as_subject_triples_aggregate?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe + cached_image?: InputMaybe + controler?: InputMaybe creator?: InputMaybe - creatorId?: InputMaybe + creator_id?: InputMaybe data?: InputMaybe emoji?: InputMaybe id?: InputMaybe image?: InputMaybe label?: InputMaybe - transactionHash?: InputMaybe + signals_aggregate?: InputMaybe + transaction_hash?: InputMaybe type?: InputMaybe - value?: InputMaybe - valueId?: InputMaybe + value?: InputMaybe + value_id?: InputMaybe vault?: InputMaybe - vaultId?: InputMaybe - walletId?: InputMaybe + vault_id?: InputMaybe + wallet_id?: InputMaybe } -/** select columns of table "Atom" */ +/** select columns of table "atom" */ export type Atoms_Select_Column = /** column name */ - | 'blockNumber' + | 'block_number' /** column name */ - | 'blockTimestamp' + | 'block_timestamp' /** column name */ - | 'creatorId' + | 'creator_id' /** column name */ | 'data' /** column name */ @@ -1006,71 +1323,71 @@ export type Atoms_Select_Column = /** column name */ | 'label' /** column name */ - | 'transactionHash' + | 'transaction_hash' /** column name */ | 'type' /** column name */ - | 'valueId' + | 'value_id' /** column name */ - | 'vaultId' + | 'vault_id' /** column name */ - | 'walletId' + | 'wallet_id' /** aggregate stddev on columns */ export type Atoms_Stddev_Fields = { __typename?: 'atoms_stddev_fields' - blockNumber?: Maybe - blockTimestamp?: Maybe + block_number?: Maybe + block_timestamp?: Maybe id?: Maybe - valueId?: Maybe - vaultId?: Maybe + value_id?: Maybe + vault_id?: Maybe } -/** order by stddev() on columns of table "Atom" */ +/** order by stddev() on columns of table "atom" */ export type Atoms_Stddev_Order_By = { - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe id?: InputMaybe - valueId?: InputMaybe - vaultId?: InputMaybe + value_id?: InputMaybe + vault_id?: InputMaybe } /** aggregate stddev_pop on columns */ export type Atoms_Stddev_Pop_Fields = { __typename?: 'atoms_stddev_pop_fields' - blockNumber?: Maybe - blockTimestamp?: Maybe + block_number?: Maybe + block_timestamp?: Maybe id?: Maybe - valueId?: Maybe - vaultId?: Maybe + value_id?: Maybe + vault_id?: Maybe } -/** order by stddev_pop() on columns of table "Atom" */ +/** order by stddev_pop() on columns of table "atom" */ export type Atoms_Stddev_Pop_Order_By = { - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe id?: InputMaybe - valueId?: InputMaybe - vaultId?: InputMaybe + value_id?: InputMaybe + vault_id?: InputMaybe } /** aggregate stddev_samp on columns */ export type Atoms_Stddev_Samp_Fields = { __typename?: 'atoms_stddev_samp_fields' - blockNumber?: Maybe - blockTimestamp?: Maybe + block_number?: Maybe + block_timestamp?: Maybe id?: Maybe - valueId?: Maybe - vaultId?: Maybe + value_id?: Maybe + vault_id?: Maybe } -/** order by stddev_samp() on columns of table "Atom" */ +/** order by stddev_samp() on columns of table "atom" */ export type Atoms_Stddev_Samp_Order_By = { - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe id?: InputMaybe - valueId?: InputMaybe - vaultId?: InputMaybe + value_id?: InputMaybe + vault_id?: InputMaybe } /** Streaming cursor of the table "atoms" */ @@ -1083,103 +1400,115 @@ export type Atoms_Stream_Cursor_Input = { /** Initial value of the column from where the streaming should start */ export type Atoms_Stream_Cursor_Value_Input = { - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe - creatorId?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe + creator_id?: InputMaybe data?: InputMaybe emoji?: InputMaybe id?: InputMaybe image?: InputMaybe label?: InputMaybe - transactionHash?: InputMaybe - type?: InputMaybe - valueId?: InputMaybe - vaultId?: InputMaybe - walletId?: InputMaybe + transaction_hash?: InputMaybe + type?: InputMaybe + value_id?: InputMaybe + vault_id?: InputMaybe + wallet_id?: InputMaybe } /** aggregate sum on columns */ export type Atoms_Sum_Fields = { __typename?: 'atoms_sum_fields' - blockNumber?: Maybe - blockTimestamp?: Maybe + block_number?: Maybe + block_timestamp?: Maybe id?: Maybe - valueId?: Maybe - vaultId?: Maybe + value_id?: Maybe + vault_id?: Maybe } -/** order by sum() on columns of table "Atom" */ +/** order by sum() on columns of table "atom" */ export type Atoms_Sum_Order_By = { - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe id?: InputMaybe - valueId?: InputMaybe - vaultId?: InputMaybe + value_id?: InputMaybe + vault_id?: InputMaybe } /** aggregate var_pop on columns */ export type Atoms_Var_Pop_Fields = { __typename?: 'atoms_var_pop_fields' - blockNumber?: Maybe - blockTimestamp?: Maybe + block_number?: Maybe + block_timestamp?: Maybe id?: Maybe - valueId?: Maybe - vaultId?: Maybe + value_id?: Maybe + vault_id?: Maybe } -/** order by var_pop() on columns of table "Atom" */ +/** order by var_pop() on columns of table "atom" */ export type Atoms_Var_Pop_Order_By = { - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe id?: InputMaybe - valueId?: InputMaybe - vaultId?: InputMaybe + value_id?: InputMaybe + vault_id?: InputMaybe } /** aggregate var_samp on columns */ export type Atoms_Var_Samp_Fields = { __typename?: 'atoms_var_samp_fields' - blockNumber?: Maybe - blockTimestamp?: Maybe + block_number?: Maybe + block_timestamp?: Maybe id?: Maybe - valueId?: Maybe - vaultId?: Maybe + value_id?: Maybe + vault_id?: Maybe } -/** order by var_samp() on columns of table "Atom" */ +/** order by var_samp() on columns of table "atom" */ export type Atoms_Var_Samp_Order_By = { - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe id?: InputMaybe - valueId?: InputMaybe - vaultId?: InputMaybe + value_id?: InputMaybe + vault_id?: InputMaybe } /** aggregate variance on columns */ export type Atoms_Variance_Fields = { __typename?: 'atoms_variance_fields' - blockNumber?: Maybe - blockTimestamp?: Maybe + block_number?: Maybe + block_timestamp?: Maybe id?: Maybe - valueId?: Maybe - vaultId?: Maybe + value_id?: Maybe + vault_id?: Maybe } -/** order by variance() on columns of table "Atom" */ +/** order by variance() on columns of table "atom" */ export type Atoms_Variance_Order_By = { - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe id?: InputMaybe - valueId?: InputMaybe - vaultId?: InputMaybe + value_id?: InputMaybe + vault_id?: InputMaybe } -/** columns and relationships of "Book" */ -export type Books = { +/** Boolean expression to compare columns of type "bigint". All fields are combined with logical 'AND'. */ +export type Bigint_Comparison_Exp = { + _eq?: InputMaybe + _gt?: InputMaybe + _gte?: InputMaybe + _in?: InputMaybe> + _is_null?: InputMaybe + _lt?: InputMaybe + _lte?: InputMaybe + _neq?: InputMaybe + _nin?: InputMaybe> +} + +/** columns and relationships of "book" */ +export type Books = { __typename?: 'books' /** An object relationship */ atom?: Maybe - atomId: Scalars['numeric']['output'] description?: Maybe genre?: Maybe id: Scalars['numeric']['output'] @@ -1187,14 +1516,14 @@ export type Books = { url?: Maybe } -/** aggregated selection of "Book" */ +/** aggregated selection of "book" */ export type Books_Aggregate = { __typename?: 'books_aggregate' aggregate?: Maybe nodes: Array } -/** aggregate fields of "Book" */ +/** aggregate fields of "book" */ export type Books_Aggregate_Fields = { __typename?: 'books_aggregate_fields' avg?: Maybe @@ -1210,7 +1539,7 @@ export type Books_Aggregate_Fields = { variance?: Maybe } -/** aggregate fields of "Book" */ +/** aggregate fields of "book" */ export type Books_Aggregate_FieldsCountArgs = { columns?: InputMaybe> distinct?: InputMaybe @@ -1219,17 +1548,15 @@ export type Books_Aggregate_FieldsCountArgs = { /** aggregate avg on columns */ export type Books_Avg_Fields = { __typename?: 'books_avg_fields' - atomId?: Maybe id?: Maybe } -/** Boolean expression to filter rows from the table "Book". All fields are combined with a logical 'AND'. */ +/** Boolean expression to filter rows from the table "book". All fields are combined with a logical 'AND'. */ export type Books_Bool_Exp = { _and?: InputMaybe> _not?: InputMaybe _or?: InputMaybe> atom?: InputMaybe - atomId?: InputMaybe description?: InputMaybe genre?: InputMaybe id?: InputMaybe @@ -1240,7 +1567,6 @@ export type Books_Bool_Exp = { /** aggregate max on columns */ export type Books_Max_Fields = { __typename?: 'books_max_fields' - atomId?: Maybe description?: Maybe genre?: Maybe id?: Maybe @@ -1251,7 +1577,6 @@ export type Books_Max_Fields = { /** aggregate min on columns */ export type Books_Min_Fields = { __typename?: 'books_min_fields' - atomId?: Maybe description?: Maybe genre?: Maybe id?: Maybe @@ -1259,10 +1584,9 @@ export type Books_Min_Fields = { url?: Maybe } -/** Ordering options when selecting data from "Book". */ +/** Ordering options when selecting data from "book". */ export type Books_Order_By = { atom?: InputMaybe - atomId?: InputMaybe description?: InputMaybe genre?: InputMaybe id?: InputMaybe @@ -1270,10 +1594,8 @@ export type Books_Order_By = { url?: InputMaybe } -/** select columns of table "Book" */ +/** select columns of table "book" */ export type Books_Select_Column = - /** column name */ - | 'atomId' /** column name */ | 'description' /** column name */ @@ -1288,21 +1610,18 @@ export type Books_Select_Column = /** aggregate stddev on columns */ export type Books_Stddev_Fields = { __typename?: 'books_stddev_fields' - atomId?: Maybe id?: Maybe } /** aggregate stddev_pop on columns */ export type Books_Stddev_Pop_Fields = { __typename?: 'books_stddev_pop_fields' - atomId?: Maybe id?: Maybe } /** aggregate stddev_samp on columns */ export type Books_Stddev_Samp_Fields = { __typename?: 'books_stddev_samp_fields' - atomId?: Maybe id?: Maybe } @@ -1316,7 +1635,6 @@ export type Books_Stream_Cursor_Input = { /** Initial value of the column from where the streaming should start */ export type Books_Stream_Cursor_Value_Input = { - atomId?: InputMaybe description?: InputMaybe genre?: InputMaybe id?: InputMaybe @@ -1327,28 +1645,24 @@ export type Books_Stream_Cursor_Value_Input = { /** aggregate sum on columns */ export type Books_Sum_Fields = { __typename?: 'books_sum_fields' - atomId?: Maybe id?: Maybe } /** aggregate var_pop on columns */ export type Books_Var_Pop_Fields = { __typename?: 'books_var_pop_fields' - atomId?: Maybe id?: Maybe } /** aggregate var_samp on columns */ export type Books_Var_Samp_Fields = { __typename?: 'books_var_samp_fields' - atomId?: Maybe id?: Maybe } /** aggregate variance on columns */ export type Books_Variance_Fields = { __typename?: 'books_variance_fields' - atomId?: Maybe id?: Maybe } @@ -1365,79 +1679,151 @@ export type Bytea_Comparison_Exp = { _nin?: InputMaybe> } -/** columns and relationships of "ChainlinkPrice" */ -export type ChainLinkPrices = { - __typename?: 'chainLinkPrices' +/** columns and relationships of "cached_image" */ +export type Cached_Images = { + __typename?: 'cached_images' + created_at: Scalars['timestamptz']['output'] + model?: Maybe + original_url: Scalars['String']['output'] + safe: Scalars['Boolean']['output'] + score?: Maybe + url: Scalars['String']['output'] +} + +/** columns and relationships of "cached_image" */ +export type Cached_ImagesScoreArgs = { + path?: InputMaybe +} + +/** Boolean expression to filter rows from the table "cached_image". All fields are combined with a logical 'AND'. */ +export type Cached_Images_Bool_Exp = { + _and?: InputMaybe> + _not?: InputMaybe + _or?: InputMaybe> + created_at?: InputMaybe + model?: InputMaybe + original_url?: InputMaybe + safe?: InputMaybe + score?: InputMaybe + url?: InputMaybe +} + +/** Ordering options when selecting data from "cached_image". */ +export type Cached_Images_Order_By = { + created_at?: InputMaybe + model?: InputMaybe + original_url?: InputMaybe + safe?: InputMaybe + score?: InputMaybe + url?: InputMaybe +} + +/** select columns of table "cached_image" */ +export type Cached_Images_Select_Column = + /** column name */ + | 'created_at' + /** column name */ + | 'model' + /** column name */ + | 'original_url' + /** column name */ + | 'safe' + /** column name */ + | 'score' + /** column name */ + | 'url' + +/** Streaming cursor of the table "cached_images" */ +export type Cached_Images_Stream_Cursor_Input = { + /** Stream column input with initial value */ + initial_value: Cached_Images_Stream_Cursor_Value_Input + /** cursor ordering */ + ordering?: InputMaybe +} + +/** Initial value of the column from where the streaming should start */ +export type Cached_Images_Stream_Cursor_Value_Input = { + created_at?: InputMaybe + model?: InputMaybe + original_url?: InputMaybe + safe?: InputMaybe + score?: InputMaybe + url?: InputMaybe +} + +/** columns and relationships of "chainlink_price" */ +export type Chainlink_Prices = { + __typename?: 'chainlink_prices' id: Scalars['numeric']['output'] - usd: Scalars['float8']['output'] + usd?: Maybe } -/** Boolean expression to filter rows from the table "ChainlinkPrice". All fields are combined with a logical 'AND'. */ -export type ChainLinkPrices_Bool_Exp = { - _and?: InputMaybe> - _not?: InputMaybe - _or?: InputMaybe> +/** Boolean expression to filter rows from the table "chainlink_price". All fields are combined with a logical 'AND'. */ +export type Chainlink_Prices_Bool_Exp = { + _and?: InputMaybe> + _not?: InputMaybe + _or?: InputMaybe> id?: InputMaybe usd?: InputMaybe } -/** Ordering options when selecting data from "ChainlinkPrice". */ -export type ChainLinkPrices_Order_By = { +/** Ordering options when selecting data from "chainlink_price". */ +export type Chainlink_Prices_Order_By = { id?: InputMaybe usd?: InputMaybe } -/** select columns of table "ChainlinkPrice" */ -export type ChainLinkPrices_Select_Column = +/** select columns of table "chainlink_price" */ +export type Chainlink_Prices_Select_Column = /** column name */ | 'id' /** column name */ | 'usd' -/** Streaming cursor of the table "chainLinkPrices" */ -export type ChainLinkPrices_Stream_Cursor_Input = { +/** Streaming cursor of the table "chainlink_prices" */ +export type Chainlink_Prices_Stream_Cursor_Input = { /** Stream column input with initial value */ - initial_value: ChainLinkPrices_Stream_Cursor_Value_Input + initial_value: Chainlink_Prices_Stream_Cursor_Value_Input /** cursor ordering */ ordering?: InputMaybe } /** Initial value of the column from where the streaming should start */ -export type ChainLinkPrices_Stream_Cursor_Value_Input = { +export type Chainlink_Prices_Stream_Cursor_Value_Input = { id?: InputMaybe usd?: InputMaybe } -/** columns and relationships of "Claim" */ +/** columns and relationships of "claim" */ export type Claims = { __typename?: 'claims' /** An object relationship */ account?: Maybe - accountId: Scalars['String']['output'] - counterShares: Scalars['numeric']['output'] + account_id: Scalars['String']['output'] + counter_shares: Scalars['numeric']['output'] /** An object relationship */ - counterVault?: Maybe - counterVaultId: Scalars['numeric']['output'] + counter_vault: Vaults + counter_vault_id: Scalars['numeric']['output'] id: Scalars['String']['output'] /** An object relationship */ - object?: Maybe - objectId: Scalars['numeric']['output'] + object: Atoms + object_id: Scalars['numeric']['output'] /** An object relationship */ - predicate?: Maybe - predicateId: Scalars['numeric']['output'] + predicate: Atoms + predicate_id: Scalars['numeric']['output'] shares: Scalars['numeric']['output'] /** An object relationship */ - subject?: Maybe - subjectId: Scalars['numeric']['output'] + subject: Atoms + subject_id: Scalars['numeric']['output'] /** An object relationship */ - triple?: Maybe - tripleId: Scalars['numeric']['output'] + triple: Triples + triple_id: Scalars['numeric']['output'] /** An object relationship */ - vault?: Maybe - vaultId: Scalars['numeric']['output'] + vault: Vaults + vault_id: Scalars['numeric']['output'] } -/** aggregated selection of "Claim" */ +/** aggregated selection of "claim" */ export type Claims_Aggregate = { __typename?: 'claims_aggregate' aggregate?: Maybe @@ -1455,7 +1841,7 @@ export type Claims_Aggregate_Bool_Exp_Count = { predicate: Int_Comparison_Exp } -/** aggregate fields of "Claim" */ +/** aggregate fields of "claim" */ export type Claims_Aggregate_Fields = { __typename?: 'claims_aggregate_fields' avg?: Maybe @@ -1471,13 +1857,13 @@ export type Claims_Aggregate_Fields = { variance?: Maybe } -/** aggregate fields of "Claim" */ +/** aggregate fields of "claim" */ export type Claims_Aggregate_FieldsCountArgs = { columns?: InputMaybe> distinct?: InputMaybe } -/** order by aggregate values of table "Claim" */ +/** order by aggregate values of table "claim" */ export type Claims_Aggregate_Order_By = { avg?: InputMaybe count?: InputMaybe @@ -1495,50 +1881,50 @@ export type Claims_Aggregate_Order_By = { /** aggregate avg on columns */ export type Claims_Avg_Fields = { __typename?: 'claims_avg_fields' - counterShares?: Maybe - counterVaultId?: Maybe - objectId?: Maybe - predicateId?: Maybe + counter_shares?: Maybe + counter_vault_id?: Maybe + object_id?: Maybe + predicate_id?: Maybe shares?: Maybe - subjectId?: Maybe - tripleId?: Maybe - vaultId?: Maybe + subject_id?: Maybe + triple_id?: Maybe + vault_id?: Maybe } -/** order by avg() on columns of table "Claim" */ +/** order by avg() on columns of table "claim" */ export type Claims_Avg_Order_By = { - counterShares?: InputMaybe - counterVaultId?: InputMaybe - objectId?: InputMaybe - predicateId?: InputMaybe + counter_shares?: InputMaybe + counter_vault_id?: InputMaybe + object_id?: InputMaybe + predicate_id?: InputMaybe shares?: InputMaybe - subjectId?: InputMaybe - tripleId?: InputMaybe - vaultId?: InputMaybe + subject_id?: InputMaybe + triple_id?: InputMaybe + vault_id?: InputMaybe } -/** Boolean expression to filter rows from the table "Claim". All fields are combined with a logical 'AND'. */ +/** Boolean expression to filter rows from the table "claim". All fields are combined with a logical 'AND'. */ export type Claims_Bool_Exp = { _and?: InputMaybe> _not?: InputMaybe _or?: InputMaybe> account?: InputMaybe - accountId?: InputMaybe - counterShares?: InputMaybe - counterVault?: InputMaybe - counterVaultId?: InputMaybe + account_id?: InputMaybe + counter_shares?: InputMaybe + counter_vault?: InputMaybe + counter_vault_id?: InputMaybe id?: InputMaybe object?: InputMaybe - objectId?: InputMaybe + object_id?: InputMaybe predicate?: InputMaybe - predicateId?: InputMaybe + predicate_id?: InputMaybe shares?: InputMaybe subject?: InputMaybe - subjectId?: InputMaybe + subject_id?: InputMaybe triple?: InputMaybe - tripleId?: InputMaybe + triple_id?: InputMaybe vault?: InputMaybe - vaultId?: InputMaybe + vault_id?: InputMaybe } export type Claims_From_Following_Args = { @@ -1548,178 +1934,178 @@ export type Claims_From_Following_Args = { /** aggregate max on columns */ export type Claims_Max_Fields = { __typename?: 'claims_max_fields' - accountId?: Maybe - counterShares?: Maybe - counterVaultId?: Maybe + account_id?: Maybe + counter_shares?: Maybe + counter_vault_id?: Maybe id?: Maybe - objectId?: Maybe - predicateId?: Maybe + object_id?: Maybe + predicate_id?: Maybe shares?: Maybe - subjectId?: Maybe - tripleId?: Maybe - vaultId?: Maybe + subject_id?: Maybe + triple_id?: Maybe + vault_id?: Maybe } -/** order by max() on columns of table "Claim" */ +/** order by max() on columns of table "claim" */ export type Claims_Max_Order_By = { - accountId?: InputMaybe - counterShares?: InputMaybe - counterVaultId?: InputMaybe + account_id?: InputMaybe + counter_shares?: InputMaybe + counter_vault_id?: InputMaybe id?: InputMaybe - objectId?: InputMaybe - predicateId?: InputMaybe + object_id?: InputMaybe + predicate_id?: InputMaybe shares?: InputMaybe - subjectId?: InputMaybe - tripleId?: InputMaybe - vaultId?: InputMaybe + subject_id?: InputMaybe + triple_id?: InputMaybe + vault_id?: InputMaybe } /** aggregate min on columns */ export type Claims_Min_Fields = { __typename?: 'claims_min_fields' - accountId?: Maybe - counterShares?: Maybe - counterVaultId?: Maybe + account_id?: Maybe + counter_shares?: Maybe + counter_vault_id?: Maybe id?: Maybe - objectId?: Maybe - predicateId?: Maybe + object_id?: Maybe + predicate_id?: Maybe shares?: Maybe - subjectId?: Maybe - tripleId?: Maybe - vaultId?: Maybe + subject_id?: Maybe + triple_id?: Maybe + vault_id?: Maybe } -/** order by min() on columns of table "Claim" */ +/** order by min() on columns of table "claim" */ export type Claims_Min_Order_By = { - accountId?: InputMaybe - counterShares?: InputMaybe - counterVaultId?: InputMaybe + account_id?: InputMaybe + counter_shares?: InputMaybe + counter_vault_id?: InputMaybe id?: InputMaybe - objectId?: InputMaybe - predicateId?: InputMaybe + object_id?: InputMaybe + predicate_id?: InputMaybe shares?: InputMaybe - subjectId?: InputMaybe - tripleId?: InputMaybe - vaultId?: InputMaybe + subject_id?: InputMaybe + triple_id?: InputMaybe + vault_id?: InputMaybe } -/** Ordering options when selecting data from "Claim". */ +/** Ordering options when selecting data from "claim". */ export type Claims_Order_By = { account?: InputMaybe - accountId?: InputMaybe - counterShares?: InputMaybe - counterVault?: InputMaybe - counterVaultId?: InputMaybe + account_id?: InputMaybe + counter_shares?: InputMaybe + counter_vault?: InputMaybe + counter_vault_id?: InputMaybe id?: InputMaybe object?: InputMaybe - objectId?: InputMaybe + object_id?: InputMaybe predicate?: InputMaybe - predicateId?: InputMaybe + predicate_id?: InputMaybe shares?: InputMaybe subject?: InputMaybe - subjectId?: InputMaybe + subject_id?: InputMaybe triple?: InputMaybe - tripleId?: InputMaybe + triple_id?: InputMaybe vault?: InputMaybe - vaultId?: InputMaybe + vault_id?: InputMaybe } -/** select columns of table "Claim" */ +/** select columns of table "claim" */ export type Claims_Select_Column = /** column name */ - | 'accountId' + | 'account_id' /** column name */ - | 'counterShares' + | 'counter_shares' /** column name */ - | 'counterVaultId' + | 'counter_vault_id' /** column name */ | 'id' /** column name */ - | 'objectId' + | 'object_id' /** column name */ - | 'predicateId' + | 'predicate_id' /** column name */ | 'shares' /** column name */ - | 'subjectId' + | 'subject_id' /** column name */ - | 'tripleId' + | 'triple_id' /** column name */ - | 'vaultId' + | 'vault_id' /** aggregate stddev on columns */ export type Claims_Stddev_Fields = { __typename?: 'claims_stddev_fields' - counterShares?: Maybe - counterVaultId?: Maybe - objectId?: Maybe - predicateId?: Maybe + counter_shares?: Maybe + counter_vault_id?: Maybe + object_id?: Maybe + predicate_id?: Maybe shares?: Maybe - subjectId?: Maybe - tripleId?: Maybe - vaultId?: Maybe + subject_id?: Maybe + triple_id?: Maybe + vault_id?: Maybe } -/** order by stddev() on columns of table "Claim" */ +/** order by stddev() on columns of table "claim" */ export type Claims_Stddev_Order_By = { - counterShares?: InputMaybe - counterVaultId?: InputMaybe - objectId?: InputMaybe - predicateId?: InputMaybe + counter_shares?: InputMaybe + counter_vault_id?: InputMaybe + object_id?: InputMaybe + predicate_id?: InputMaybe shares?: InputMaybe - subjectId?: InputMaybe - tripleId?: InputMaybe - vaultId?: InputMaybe + subject_id?: InputMaybe + triple_id?: InputMaybe + vault_id?: InputMaybe } /** aggregate stddev_pop on columns */ export type Claims_Stddev_Pop_Fields = { __typename?: 'claims_stddev_pop_fields' - counterShares?: Maybe - counterVaultId?: Maybe - objectId?: Maybe - predicateId?: Maybe + counter_shares?: Maybe + counter_vault_id?: Maybe + object_id?: Maybe + predicate_id?: Maybe shares?: Maybe - subjectId?: Maybe - tripleId?: Maybe - vaultId?: Maybe + subject_id?: Maybe + triple_id?: Maybe + vault_id?: Maybe } -/** order by stddev_pop() on columns of table "Claim" */ +/** order by stddev_pop() on columns of table "claim" */ export type Claims_Stddev_Pop_Order_By = { - counterShares?: InputMaybe - counterVaultId?: InputMaybe - objectId?: InputMaybe - predicateId?: InputMaybe + counter_shares?: InputMaybe + counter_vault_id?: InputMaybe + object_id?: InputMaybe + predicate_id?: InputMaybe shares?: InputMaybe - subjectId?: InputMaybe - tripleId?: InputMaybe - vaultId?: InputMaybe + subject_id?: InputMaybe + triple_id?: InputMaybe + vault_id?: InputMaybe } /** aggregate stddev_samp on columns */ export type Claims_Stddev_Samp_Fields = { __typename?: 'claims_stddev_samp_fields' - counterShares?: Maybe - counterVaultId?: Maybe - objectId?: Maybe - predicateId?: Maybe + counter_shares?: Maybe + counter_vault_id?: Maybe + object_id?: Maybe + predicate_id?: Maybe shares?: Maybe - subjectId?: Maybe - tripleId?: Maybe - vaultId?: Maybe + subject_id?: Maybe + triple_id?: Maybe + vault_id?: Maybe } -/** order by stddev_samp() on columns of table "Claim" */ +/** order by stddev_samp() on columns of table "claim" */ export type Claims_Stddev_Samp_Order_By = { - counterShares?: InputMaybe - counterVaultId?: InputMaybe - objectId?: InputMaybe - predicateId?: InputMaybe + counter_shares?: InputMaybe + counter_vault_id?: InputMaybe + object_id?: InputMaybe + predicate_id?: InputMaybe shares?: InputMaybe - subjectId?: InputMaybe - tripleId?: InputMaybe - vaultId?: InputMaybe + subject_id?: InputMaybe + triple_id?: InputMaybe + vault_id?: InputMaybe } /** Streaming cursor of the table "claims" */ @@ -1732,116 +2118,116 @@ export type Claims_Stream_Cursor_Input = { /** Initial value of the column from where the streaming should start */ export type Claims_Stream_Cursor_Value_Input = { - accountId?: InputMaybe - counterShares?: InputMaybe - counterVaultId?: InputMaybe + account_id?: InputMaybe + counter_shares?: InputMaybe + counter_vault_id?: InputMaybe id?: InputMaybe - objectId?: InputMaybe - predicateId?: InputMaybe + object_id?: InputMaybe + predicate_id?: InputMaybe shares?: InputMaybe - subjectId?: InputMaybe - tripleId?: InputMaybe - vaultId?: InputMaybe + subject_id?: InputMaybe + triple_id?: InputMaybe + vault_id?: InputMaybe } /** aggregate sum on columns */ export type Claims_Sum_Fields = { __typename?: 'claims_sum_fields' - counterShares?: Maybe - counterVaultId?: Maybe - objectId?: Maybe - predicateId?: Maybe + counter_shares?: Maybe + counter_vault_id?: Maybe + object_id?: Maybe + predicate_id?: Maybe shares?: Maybe - subjectId?: Maybe - tripleId?: Maybe - vaultId?: Maybe + subject_id?: Maybe + triple_id?: Maybe + vault_id?: Maybe } -/** order by sum() on columns of table "Claim" */ +/** order by sum() on columns of table "claim" */ export type Claims_Sum_Order_By = { - counterShares?: InputMaybe - counterVaultId?: InputMaybe - objectId?: InputMaybe - predicateId?: InputMaybe + counter_shares?: InputMaybe + counter_vault_id?: InputMaybe + object_id?: InputMaybe + predicate_id?: InputMaybe shares?: InputMaybe - subjectId?: InputMaybe - tripleId?: InputMaybe - vaultId?: InputMaybe + subject_id?: InputMaybe + triple_id?: InputMaybe + vault_id?: InputMaybe } /** aggregate var_pop on columns */ export type Claims_Var_Pop_Fields = { __typename?: 'claims_var_pop_fields' - counterShares?: Maybe - counterVaultId?: Maybe - objectId?: Maybe - predicateId?: Maybe + counter_shares?: Maybe + counter_vault_id?: Maybe + object_id?: Maybe + predicate_id?: Maybe shares?: Maybe - subjectId?: Maybe - tripleId?: Maybe - vaultId?: Maybe + subject_id?: Maybe + triple_id?: Maybe + vault_id?: Maybe } -/** order by var_pop() on columns of table "Claim" */ +/** order by var_pop() on columns of table "claim" */ export type Claims_Var_Pop_Order_By = { - counterShares?: InputMaybe - counterVaultId?: InputMaybe - objectId?: InputMaybe - predicateId?: InputMaybe + counter_shares?: InputMaybe + counter_vault_id?: InputMaybe + object_id?: InputMaybe + predicate_id?: InputMaybe shares?: InputMaybe - subjectId?: InputMaybe - tripleId?: InputMaybe - vaultId?: InputMaybe + subject_id?: InputMaybe + triple_id?: InputMaybe + vault_id?: InputMaybe } /** aggregate var_samp on columns */ export type Claims_Var_Samp_Fields = { __typename?: 'claims_var_samp_fields' - counterShares?: Maybe - counterVaultId?: Maybe - objectId?: Maybe - predicateId?: Maybe + counter_shares?: Maybe + counter_vault_id?: Maybe + object_id?: Maybe + predicate_id?: Maybe shares?: Maybe - subjectId?: Maybe - tripleId?: Maybe - vaultId?: Maybe + subject_id?: Maybe + triple_id?: Maybe + vault_id?: Maybe } -/** order by var_samp() on columns of table "Claim" */ +/** order by var_samp() on columns of table "claim" */ export type Claims_Var_Samp_Order_By = { - counterShares?: InputMaybe - counterVaultId?: InputMaybe - objectId?: InputMaybe - predicateId?: InputMaybe + counter_shares?: InputMaybe + counter_vault_id?: InputMaybe + object_id?: InputMaybe + predicate_id?: InputMaybe shares?: InputMaybe - subjectId?: InputMaybe - tripleId?: InputMaybe - vaultId?: InputMaybe + subject_id?: InputMaybe + triple_id?: InputMaybe + vault_id?: InputMaybe } /** aggregate variance on columns */ export type Claims_Variance_Fields = { __typename?: 'claims_variance_fields' - counterShares?: Maybe - counterVaultId?: Maybe - objectId?: Maybe - predicateId?: Maybe + counter_shares?: Maybe + counter_vault_id?: Maybe + object_id?: Maybe + predicate_id?: Maybe shares?: Maybe - subjectId?: Maybe - tripleId?: Maybe - vaultId?: Maybe + subject_id?: Maybe + triple_id?: Maybe + vault_id?: Maybe } -/** order by variance() on columns of table "Claim" */ +/** order by variance() on columns of table "claim" */ export type Claims_Variance_Order_By = { - counterShares?: InputMaybe - counterVaultId?: InputMaybe - objectId?: InputMaybe - predicateId?: InputMaybe + counter_shares?: InputMaybe + counter_vault_id?: InputMaybe + object_id?: InputMaybe + predicate_id?: InputMaybe shares?: InputMaybe - subjectId?: InputMaybe - tripleId?: InputMaybe - vaultId?: InputMaybe + subject_id?: InputMaybe + triple_id?: InputMaybe + vault_id?: InputMaybe } /** ordering argument of a cursor */ @@ -1851,31 +2237,75 @@ export type Cursor_Ordering = /** descending ordering of the cursor */ | 'DESC' -/** columns and relationships of "Deposit" */ +/** columns and relationships of "deposit" */ export type Deposits = { __typename?: 'deposits' - blockNumber: Scalars['numeric']['output'] - blockTimestamp: Scalars['numeric']['output'] - entryFee: Scalars['numeric']['output'] + block_number: Scalars['numeric']['output'] + block_timestamp: Scalars['bigint']['output'] + entry_fee: Scalars['numeric']['output'] + /** An array relationship */ + events: Array + /** An aggregate relationship */ + events_aggregate: Events_Aggregate id: Scalars['String']['output'] - isAtomWallet: Scalars['Int']['output'] - isTriple: Scalars['Int']['output'] + is_atom_wallet: Scalars['Boolean']['output'] + is_triple: Scalars['Boolean']['output'] /** An object relationship */ - receiver?: Maybe - receiverId: Scalars['String']['output'] - receiverTotalSharesInVault: Scalars['numeric']['output'] + receiver: Accounts + receiver_id: Scalars['String']['output'] + receiver_total_shares_in_vault: Scalars['numeric']['output'] /** An object relationship */ sender?: Maybe - senderAssetsAfterTotalFees: Scalars['numeric']['output'] - senderId: Scalars['String']['output'] - sharesForReceiver: Scalars['numeric']['output'] - transactionHash: Scalars['bytea']['output'] + sender_assets_after_total_fees: Scalars['numeric']['output'] + sender_id: Scalars['String']['output'] + shares_for_receiver: Scalars['numeric']['output'] + /** An array relationship */ + signals: Array + /** An aggregate relationship */ + signals_aggregate: Signals_Aggregate + transaction_hash: Scalars['bytea']['output'] /** An object relationship */ - vault?: Maybe - vaultId: Scalars['numeric']['output'] + vault: Vaults + vault_id: Scalars['numeric']['output'] +} + +/** columns and relationships of "deposit" */ +export type DepositsEventsArgs = { + distinct_on?: InputMaybe> + limit?: InputMaybe + offset?: InputMaybe + order_by?: InputMaybe> + where?: InputMaybe +} + +/** columns and relationships of "deposit" */ +export type DepositsEvents_AggregateArgs = { + distinct_on?: InputMaybe> + limit?: InputMaybe + offset?: InputMaybe + order_by?: InputMaybe> + where?: InputMaybe +} + +/** columns and relationships of "deposit" */ +export type DepositsSignalsArgs = { + distinct_on?: InputMaybe> + limit?: InputMaybe + offset?: InputMaybe + order_by?: InputMaybe> + where?: InputMaybe +} + +/** columns and relationships of "deposit" */ +export type DepositsSignals_AggregateArgs = { + distinct_on?: InputMaybe> + limit?: InputMaybe + offset?: InputMaybe + order_by?: InputMaybe> + where?: InputMaybe } -/** aggregated selection of "Deposit" */ +/** aggregated selection of "deposit" */ export type Deposits_Aggregate = { __typename?: 'deposits_aggregate' aggregate?: Maybe @@ -1883,9 +2313,25 @@ export type Deposits_Aggregate = { } export type Deposits_Aggregate_Bool_Exp = { + bool_and?: InputMaybe + bool_or?: InputMaybe count?: InputMaybe } +export type Deposits_Aggregate_Bool_Exp_Bool_And = { + arguments: Deposits_Select_Column_Deposits_Aggregate_Bool_Exp_Bool_And_Arguments_Columns + distinct?: InputMaybe + filter?: InputMaybe + predicate: Boolean_Comparison_Exp +} + +export type Deposits_Aggregate_Bool_Exp_Bool_Or = { + arguments: Deposits_Select_Column_Deposits_Aggregate_Bool_Exp_Bool_Or_Arguments_Columns + distinct?: InputMaybe + filter?: InputMaybe + predicate: Boolean_Comparison_Exp +} + export type Deposits_Aggregate_Bool_Exp_Count = { arguments?: InputMaybe> distinct?: InputMaybe @@ -1893,7 +2339,7 @@ export type Deposits_Aggregate_Bool_Exp_Count = { predicate: Int_Comparison_Exp } -/** aggregate fields of "Deposit" */ +/** aggregate fields of "deposit" */ export type Deposits_Aggregate_Fields = { __typename?: 'deposits_aggregate_fields' avg?: Maybe @@ -1909,13 +2355,13 @@ export type Deposits_Aggregate_Fields = { variance?: Maybe } -/** aggregate fields of "Deposit" */ +/** aggregate fields of "deposit" */ export type Deposits_Aggregate_FieldsCountArgs = { columns?: InputMaybe> distinct?: InputMaybe } -/** order by aggregate values of table "Deposit" */ +/** order by aggregate values of table "deposit" */ export type Deposits_Aggregate_Order_By = { avg?: InputMaybe count?: InputMaybe @@ -1933,247 +2379,243 @@ export type Deposits_Aggregate_Order_By = { /** aggregate avg on columns */ export type Deposits_Avg_Fields = { __typename?: 'deposits_avg_fields' - blockNumber?: Maybe - blockTimestamp?: Maybe - entryFee?: Maybe - isAtomWallet?: Maybe - isTriple?: Maybe - receiverTotalSharesInVault?: Maybe - senderAssetsAfterTotalFees?: Maybe - sharesForReceiver?: Maybe - vaultId?: Maybe -} - -/** order by avg() on columns of table "Deposit" */ + block_number?: Maybe + block_timestamp?: Maybe + entry_fee?: Maybe + receiver_total_shares_in_vault?: Maybe + sender_assets_after_total_fees?: Maybe + shares_for_receiver?: Maybe + vault_id?: Maybe +} + +/** order by avg() on columns of table "deposit" */ export type Deposits_Avg_Order_By = { - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe - entryFee?: InputMaybe - isAtomWallet?: InputMaybe - isTriple?: InputMaybe - receiverTotalSharesInVault?: InputMaybe - senderAssetsAfterTotalFees?: InputMaybe - sharesForReceiver?: InputMaybe - vaultId?: InputMaybe -} - -/** Boolean expression to filter rows from the table "Deposit". All fields are combined with a logical 'AND'. */ + block_number?: InputMaybe + block_timestamp?: InputMaybe + entry_fee?: InputMaybe + receiver_total_shares_in_vault?: InputMaybe + sender_assets_after_total_fees?: InputMaybe + shares_for_receiver?: InputMaybe + vault_id?: InputMaybe +} + +/** Boolean expression to filter rows from the table "deposit". All fields are combined with a logical 'AND'. */ export type Deposits_Bool_Exp = { _and?: InputMaybe> _not?: InputMaybe _or?: InputMaybe> - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe - entryFee?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe + entry_fee?: InputMaybe + events?: InputMaybe + events_aggregate?: InputMaybe id?: InputMaybe - isAtomWallet?: InputMaybe - isTriple?: InputMaybe + is_atom_wallet?: InputMaybe + is_triple?: InputMaybe receiver?: InputMaybe - receiverId?: InputMaybe - receiverTotalSharesInVault?: InputMaybe + receiver_id?: InputMaybe + receiver_total_shares_in_vault?: InputMaybe sender?: InputMaybe - senderAssetsAfterTotalFees?: InputMaybe - senderId?: InputMaybe - sharesForReceiver?: InputMaybe - transactionHash?: InputMaybe + sender_assets_after_total_fees?: InputMaybe + sender_id?: InputMaybe + shares_for_receiver?: InputMaybe + signals?: InputMaybe + signals_aggregate?: InputMaybe + transaction_hash?: InputMaybe vault?: InputMaybe - vaultId?: InputMaybe + vault_id?: InputMaybe } /** aggregate max on columns */ export type Deposits_Max_Fields = { __typename?: 'deposits_max_fields' - blockNumber?: Maybe - blockTimestamp?: Maybe - entryFee?: Maybe + block_number?: Maybe + block_timestamp?: Maybe + entry_fee?: Maybe id?: Maybe - isAtomWallet?: Maybe - isTriple?: Maybe - receiverId?: Maybe - receiverTotalSharesInVault?: Maybe - senderAssetsAfterTotalFees?: Maybe - senderId?: Maybe - sharesForReceiver?: Maybe - vaultId?: Maybe + receiver_id?: Maybe + receiver_total_shares_in_vault?: Maybe + sender_assets_after_total_fees?: Maybe + sender_id?: Maybe + shares_for_receiver?: Maybe + vault_id?: Maybe } -/** order by max() on columns of table "Deposit" */ +/** order by max() on columns of table "deposit" */ export type Deposits_Max_Order_By = { - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe - entryFee?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe + entry_fee?: InputMaybe id?: InputMaybe - isAtomWallet?: InputMaybe - isTriple?: InputMaybe - receiverId?: InputMaybe - receiverTotalSharesInVault?: InputMaybe - senderAssetsAfterTotalFees?: InputMaybe - senderId?: InputMaybe - sharesForReceiver?: InputMaybe - vaultId?: InputMaybe + receiver_id?: InputMaybe + receiver_total_shares_in_vault?: InputMaybe + sender_assets_after_total_fees?: InputMaybe + sender_id?: InputMaybe + shares_for_receiver?: InputMaybe + vault_id?: InputMaybe } /** aggregate min on columns */ export type Deposits_Min_Fields = { __typename?: 'deposits_min_fields' - blockNumber?: Maybe - blockTimestamp?: Maybe - entryFee?: Maybe + block_number?: Maybe + block_timestamp?: Maybe + entry_fee?: Maybe id?: Maybe - isAtomWallet?: Maybe - isTriple?: Maybe - receiverId?: Maybe - receiverTotalSharesInVault?: Maybe - senderAssetsAfterTotalFees?: Maybe - senderId?: Maybe - sharesForReceiver?: Maybe - vaultId?: Maybe + receiver_id?: Maybe + receiver_total_shares_in_vault?: Maybe + sender_assets_after_total_fees?: Maybe + sender_id?: Maybe + shares_for_receiver?: Maybe + vault_id?: Maybe } -/** order by min() on columns of table "Deposit" */ +/** order by min() on columns of table "deposit" */ export type Deposits_Min_Order_By = { - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe - entryFee?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe + entry_fee?: InputMaybe id?: InputMaybe - isAtomWallet?: InputMaybe - isTriple?: InputMaybe - receiverId?: InputMaybe - receiverTotalSharesInVault?: InputMaybe - senderAssetsAfterTotalFees?: InputMaybe - senderId?: InputMaybe - sharesForReceiver?: InputMaybe - vaultId?: InputMaybe + receiver_id?: InputMaybe + receiver_total_shares_in_vault?: InputMaybe + sender_assets_after_total_fees?: InputMaybe + sender_id?: InputMaybe + shares_for_receiver?: InputMaybe + vault_id?: InputMaybe } -/** Ordering options when selecting data from "Deposit". */ +/** Ordering options when selecting data from "deposit". */ export type Deposits_Order_By = { - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe - entryFee?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe + entry_fee?: InputMaybe + events_aggregate?: InputMaybe id?: InputMaybe - isAtomWallet?: InputMaybe - isTriple?: InputMaybe + is_atom_wallet?: InputMaybe + is_triple?: InputMaybe receiver?: InputMaybe - receiverId?: InputMaybe - receiverTotalSharesInVault?: InputMaybe + receiver_id?: InputMaybe + receiver_total_shares_in_vault?: InputMaybe sender?: InputMaybe - senderAssetsAfterTotalFees?: InputMaybe - senderId?: InputMaybe - sharesForReceiver?: InputMaybe - transactionHash?: InputMaybe + sender_assets_after_total_fees?: InputMaybe + sender_id?: InputMaybe + shares_for_receiver?: InputMaybe + signals_aggregate?: InputMaybe + transaction_hash?: InputMaybe vault?: InputMaybe - vaultId?: InputMaybe + vault_id?: InputMaybe } -/** select columns of table "Deposit" */ +/** select columns of table "deposit" */ export type Deposits_Select_Column = /** column name */ - | 'blockNumber' + | 'block_number' /** column name */ - | 'blockTimestamp' + | 'block_timestamp' /** column name */ - | 'entryFee' + | 'entry_fee' /** column name */ | 'id' /** column name */ - | 'isAtomWallet' + | 'is_atom_wallet' + /** column name */ + | 'is_triple' + /** column name */ + | 'receiver_id' + /** column name */ + | 'receiver_total_shares_in_vault' /** column name */ - | 'isTriple' + | 'sender_assets_after_total_fees' /** column name */ - | 'receiverId' + | 'sender_id' /** column name */ - | 'receiverTotalSharesInVault' + | 'shares_for_receiver' /** column name */ - | 'senderAssetsAfterTotalFees' + | 'transaction_hash' /** column name */ - | 'senderId' + | 'vault_id' + +/** select "deposits_aggregate_bool_exp_bool_and_arguments_columns" columns of table "deposit" */ +export type Deposits_Select_Column_Deposits_Aggregate_Bool_Exp_Bool_And_Arguments_Columns = + /** column name */ + | 'is_atom_wallet' /** column name */ - | 'sharesForReceiver' + | 'is_triple' + +/** select "deposits_aggregate_bool_exp_bool_or_arguments_columns" columns of table "deposit" */ +export type Deposits_Select_Column_Deposits_Aggregate_Bool_Exp_Bool_Or_Arguments_Columns = /** column name */ - | 'transactionHash' + | 'is_atom_wallet' /** column name */ - | 'vaultId' + | 'is_triple' /** aggregate stddev on columns */ export type Deposits_Stddev_Fields = { __typename?: 'deposits_stddev_fields' - blockNumber?: Maybe - blockTimestamp?: Maybe - entryFee?: Maybe - isAtomWallet?: Maybe - isTriple?: Maybe - receiverTotalSharesInVault?: Maybe - senderAssetsAfterTotalFees?: Maybe - sharesForReceiver?: Maybe - vaultId?: Maybe -} - -/** order by stddev() on columns of table "Deposit" */ + block_number?: Maybe + block_timestamp?: Maybe + entry_fee?: Maybe + receiver_total_shares_in_vault?: Maybe + sender_assets_after_total_fees?: Maybe + shares_for_receiver?: Maybe + vault_id?: Maybe +} + +/** order by stddev() on columns of table "deposit" */ export type Deposits_Stddev_Order_By = { - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe - entryFee?: InputMaybe - isAtomWallet?: InputMaybe - isTriple?: InputMaybe - receiverTotalSharesInVault?: InputMaybe - senderAssetsAfterTotalFees?: InputMaybe - sharesForReceiver?: InputMaybe - vaultId?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe + entry_fee?: InputMaybe + receiver_total_shares_in_vault?: InputMaybe + sender_assets_after_total_fees?: InputMaybe + shares_for_receiver?: InputMaybe + vault_id?: InputMaybe } /** aggregate stddev_pop on columns */ export type Deposits_Stddev_Pop_Fields = { __typename?: 'deposits_stddev_pop_fields' - blockNumber?: Maybe - blockTimestamp?: Maybe - entryFee?: Maybe - isAtomWallet?: Maybe - isTriple?: Maybe - receiverTotalSharesInVault?: Maybe - senderAssetsAfterTotalFees?: Maybe - sharesForReceiver?: Maybe - vaultId?: Maybe -} - -/** order by stddev_pop() on columns of table "Deposit" */ + block_number?: Maybe + block_timestamp?: Maybe + entry_fee?: Maybe + receiver_total_shares_in_vault?: Maybe + sender_assets_after_total_fees?: Maybe + shares_for_receiver?: Maybe + vault_id?: Maybe +} + +/** order by stddev_pop() on columns of table "deposit" */ export type Deposits_Stddev_Pop_Order_By = { - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe - entryFee?: InputMaybe - isAtomWallet?: InputMaybe - isTriple?: InputMaybe - receiverTotalSharesInVault?: InputMaybe - senderAssetsAfterTotalFees?: InputMaybe - sharesForReceiver?: InputMaybe - vaultId?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe + entry_fee?: InputMaybe + receiver_total_shares_in_vault?: InputMaybe + sender_assets_after_total_fees?: InputMaybe + shares_for_receiver?: InputMaybe + vault_id?: InputMaybe } /** aggregate stddev_samp on columns */ export type Deposits_Stddev_Samp_Fields = { __typename?: 'deposits_stddev_samp_fields' - blockNumber?: Maybe - blockTimestamp?: Maybe - entryFee?: Maybe - isAtomWallet?: Maybe - isTriple?: Maybe - receiverTotalSharesInVault?: Maybe - senderAssetsAfterTotalFees?: Maybe - sharesForReceiver?: Maybe - vaultId?: Maybe -} - -/** order by stddev_samp() on columns of table "Deposit" */ + block_number?: Maybe + block_timestamp?: Maybe + entry_fee?: Maybe + receiver_total_shares_in_vault?: Maybe + sender_assets_after_total_fees?: Maybe + shares_for_receiver?: Maybe + vault_id?: Maybe +} + +/** order by stddev_samp() on columns of table "deposit" */ export type Deposits_Stddev_Samp_Order_By = { - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe - entryFee?: InputMaybe - isAtomWallet?: InputMaybe - isTriple?: InputMaybe - receiverTotalSharesInVault?: InputMaybe - senderAssetsAfterTotalFees?: InputMaybe - sharesForReceiver?: InputMaybe - vaultId?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe + entry_fee?: InputMaybe + receiver_total_shares_in_vault?: InputMaybe + sender_assets_after_total_fees?: InputMaybe + shares_for_receiver?: InputMaybe + vault_id?: InputMaybe } /** Streaming cursor of the table "deposits" */ @@ -2186,162 +2628,170 @@ export type Deposits_Stream_Cursor_Input = { /** Initial value of the column from where the streaming should start */ export type Deposits_Stream_Cursor_Value_Input = { - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe - entryFee?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe + entry_fee?: InputMaybe id?: InputMaybe - isAtomWallet?: InputMaybe - isTriple?: InputMaybe - receiverId?: InputMaybe - receiverTotalSharesInVault?: InputMaybe - senderAssetsAfterTotalFees?: InputMaybe - senderId?: InputMaybe - sharesForReceiver?: InputMaybe - transactionHash?: InputMaybe - vaultId?: InputMaybe + is_atom_wallet?: InputMaybe + is_triple?: InputMaybe + receiver_id?: InputMaybe + receiver_total_shares_in_vault?: InputMaybe + sender_assets_after_total_fees?: InputMaybe + sender_id?: InputMaybe + shares_for_receiver?: InputMaybe + transaction_hash?: InputMaybe + vault_id?: InputMaybe } /** aggregate sum on columns */ export type Deposits_Sum_Fields = { __typename?: 'deposits_sum_fields' - blockNumber?: Maybe - blockTimestamp?: Maybe - entryFee?: Maybe - isAtomWallet?: Maybe - isTriple?: Maybe - receiverTotalSharesInVault?: Maybe - senderAssetsAfterTotalFees?: Maybe - sharesForReceiver?: Maybe - vaultId?: Maybe -} - -/** order by sum() on columns of table "Deposit" */ + block_number?: Maybe + block_timestamp?: Maybe + entry_fee?: Maybe + receiver_total_shares_in_vault?: Maybe + sender_assets_after_total_fees?: Maybe + shares_for_receiver?: Maybe + vault_id?: Maybe +} + +/** order by sum() on columns of table "deposit" */ export type Deposits_Sum_Order_By = { - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe - entryFee?: InputMaybe - isAtomWallet?: InputMaybe - isTriple?: InputMaybe - receiverTotalSharesInVault?: InputMaybe - senderAssetsAfterTotalFees?: InputMaybe - sharesForReceiver?: InputMaybe - vaultId?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe + entry_fee?: InputMaybe + receiver_total_shares_in_vault?: InputMaybe + sender_assets_after_total_fees?: InputMaybe + shares_for_receiver?: InputMaybe + vault_id?: InputMaybe } /** aggregate var_pop on columns */ export type Deposits_Var_Pop_Fields = { __typename?: 'deposits_var_pop_fields' - blockNumber?: Maybe - blockTimestamp?: Maybe - entryFee?: Maybe - isAtomWallet?: Maybe - isTriple?: Maybe - receiverTotalSharesInVault?: Maybe - senderAssetsAfterTotalFees?: Maybe - sharesForReceiver?: Maybe - vaultId?: Maybe -} - -/** order by var_pop() on columns of table "Deposit" */ + block_number?: Maybe + block_timestamp?: Maybe + entry_fee?: Maybe + receiver_total_shares_in_vault?: Maybe + sender_assets_after_total_fees?: Maybe + shares_for_receiver?: Maybe + vault_id?: Maybe +} + +/** order by var_pop() on columns of table "deposit" */ export type Deposits_Var_Pop_Order_By = { - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe - entryFee?: InputMaybe - isAtomWallet?: InputMaybe - isTriple?: InputMaybe - receiverTotalSharesInVault?: InputMaybe - senderAssetsAfterTotalFees?: InputMaybe - sharesForReceiver?: InputMaybe - vaultId?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe + entry_fee?: InputMaybe + receiver_total_shares_in_vault?: InputMaybe + sender_assets_after_total_fees?: InputMaybe + shares_for_receiver?: InputMaybe + vault_id?: InputMaybe } /** aggregate var_samp on columns */ export type Deposits_Var_Samp_Fields = { __typename?: 'deposits_var_samp_fields' - blockNumber?: Maybe - blockTimestamp?: Maybe - entryFee?: Maybe - isAtomWallet?: Maybe - isTriple?: Maybe - receiverTotalSharesInVault?: Maybe - senderAssetsAfterTotalFees?: Maybe - sharesForReceiver?: Maybe - vaultId?: Maybe -} - -/** order by var_samp() on columns of table "Deposit" */ + block_number?: Maybe + block_timestamp?: Maybe + entry_fee?: Maybe + receiver_total_shares_in_vault?: Maybe + sender_assets_after_total_fees?: Maybe + shares_for_receiver?: Maybe + vault_id?: Maybe +} + +/** order by var_samp() on columns of table "deposit" */ export type Deposits_Var_Samp_Order_By = { - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe - entryFee?: InputMaybe - isAtomWallet?: InputMaybe - isTriple?: InputMaybe - receiverTotalSharesInVault?: InputMaybe - senderAssetsAfterTotalFees?: InputMaybe - sharesForReceiver?: InputMaybe - vaultId?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe + entry_fee?: InputMaybe + receiver_total_shares_in_vault?: InputMaybe + sender_assets_after_total_fees?: InputMaybe + shares_for_receiver?: InputMaybe + vault_id?: InputMaybe } /** aggregate variance on columns */ export type Deposits_Variance_Fields = { __typename?: 'deposits_variance_fields' - blockNumber?: Maybe - blockTimestamp?: Maybe - entryFee?: Maybe - isAtomWallet?: Maybe - isTriple?: Maybe - receiverTotalSharesInVault?: Maybe - senderAssetsAfterTotalFees?: Maybe - sharesForReceiver?: Maybe - vaultId?: Maybe -} - -/** order by variance() on columns of table "Deposit" */ + block_number?: Maybe + block_timestamp?: Maybe + entry_fee?: Maybe + receiver_total_shares_in_vault?: Maybe + sender_assets_after_total_fees?: Maybe + shares_for_receiver?: Maybe + vault_id?: Maybe +} + +/** order by variance() on columns of table "deposit" */ export type Deposits_Variance_Order_By = { - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe - entryFee?: InputMaybe - isAtomWallet?: InputMaybe - isTriple?: InputMaybe - receiverTotalSharesInVault?: InputMaybe - senderAssetsAfterTotalFees?: InputMaybe - sharesForReceiver?: InputMaybe - vaultId?: InputMaybe -} - -/** columns and relationships of "Event" */ + block_number?: InputMaybe + block_timestamp?: InputMaybe + entry_fee?: InputMaybe + receiver_total_shares_in_vault?: InputMaybe + sender_assets_after_total_fees?: InputMaybe + shares_for_receiver?: InputMaybe + vault_id?: InputMaybe +} + +/** Boolean expression to compare columns of type "event_type". All fields are combined with logical 'AND'. */ +export type Event_Type_Comparison_Exp = { + _eq?: InputMaybe + _gt?: InputMaybe + _gte?: InputMaybe + _in?: InputMaybe> + _is_null?: InputMaybe + _lt?: InputMaybe + _lte?: InputMaybe + _neq?: InputMaybe + _nin?: InputMaybe> +} + +/** columns and relationships of "event" */ export type Events = { __typename?: 'events' /** An object relationship */ atom?: Maybe - atomId?: Maybe - blockNumber: Scalars['numeric']['output'] - blockTimestamp: Scalars['numeric']['output'] + atom_id?: Maybe + block_number: Scalars['numeric']['output'] + block_timestamp: Scalars['bigint']['output'] /** An object relationship */ deposit?: Maybe - depositId?: Maybe + deposit_id?: Maybe /** An object relationship */ - feeTransfer?: Maybe - feeTransferId?: Maybe + fee_transfer?: Maybe + fee_transfer_id?: Maybe id: Scalars['String']['output'] /** An object relationship */ redemption?: Maybe - redemptionId?: Maybe - transactionHash: Scalars['bytea']['output'] + redemption_id?: Maybe + transaction_hash: Scalars['bytea']['output'] /** An object relationship */ triple?: Maybe - tripleId?: Maybe - type: Scalars['String']['output'] + triple_id?: Maybe + type: Scalars['event_type']['output'] } -/** aggregated selection of "Event" */ +/** aggregated selection of "event" */ export type Events_Aggregate = { __typename?: 'events_aggregate' aggregate?: Maybe nodes: Array } -/** aggregate fields of "Event" */ +export type Events_Aggregate_Bool_Exp = { + count?: InputMaybe +} + +export type Events_Aggregate_Bool_Exp_Count = { + arguments?: InputMaybe> + distinct?: InputMaybe + filter?: InputMaybe + predicate: Int_Comparison_Exp +} + +/** aggregate fields of "event" */ export type Events_Aggregate_Fields = { __typename?: 'events_aggregate_fields' avg?: Maybe @@ -2357,138 +2807,211 @@ export type Events_Aggregate_Fields = { variance?: Maybe } -/** aggregate fields of "Event" */ +/** aggregate fields of "event" */ export type Events_Aggregate_FieldsCountArgs = { columns?: InputMaybe> distinct?: InputMaybe } +/** order by aggregate values of table "event" */ +export type Events_Aggregate_Order_By = { + 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 Events_Avg_Fields = { __typename?: 'events_avg_fields' - atomId?: Maybe - blockNumber?: Maybe - blockTimestamp?: Maybe - tripleId?: Maybe + atom_id?: Maybe + block_number?: Maybe + block_timestamp?: Maybe + triple_id?: Maybe +} + +/** order by avg() on columns of table "event" */ +export type Events_Avg_Order_By = { + atom_id?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe + triple_id?: InputMaybe } -/** Boolean expression to filter rows from the table "Event". All fields are combined with a logical 'AND'. */ +/** Boolean expression to filter rows from the table "event". All fields are combined with a logical 'AND'. */ export type Events_Bool_Exp = { _and?: InputMaybe> _not?: InputMaybe _or?: InputMaybe> atom?: InputMaybe - atomId?: InputMaybe - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe + atom_id?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe deposit?: InputMaybe - depositId?: InputMaybe - feeTransfer?: InputMaybe - feeTransferId?: InputMaybe + deposit_id?: InputMaybe + fee_transfer?: InputMaybe + fee_transfer_id?: InputMaybe id?: InputMaybe redemption?: InputMaybe - redemptionId?: InputMaybe - transactionHash?: InputMaybe + redemption_id?: InputMaybe + transaction_hash?: InputMaybe triple?: InputMaybe - tripleId?: InputMaybe - type?: InputMaybe + triple_id?: InputMaybe + type?: InputMaybe } /** aggregate max on columns */ export type Events_Max_Fields = { __typename?: 'events_max_fields' - atomId?: Maybe - blockNumber?: Maybe - blockTimestamp?: Maybe - depositId?: Maybe - feeTransferId?: Maybe + atom_id?: Maybe + block_number?: Maybe + block_timestamp?: Maybe + deposit_id?: Maybe + fee_transfer_id?: Maybe id?: Maybe - redemptionId?: Maybe - tripleId?: Maybe - type?: Maybe + redemption_id?: Maybe + triple_id?: Maybe + type?: Maybe +} + +/** order by max() on columns of table "event" */ +export type Events_Max_Order_By = { + atom_id?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe + deposit_id?: InputMaybe + fee_transfer_id?: InputMaybe + id?: InputMaybe + redemption_id?: InputMaybe + triple_id?: InputMaybe + type?: InputMaybe } /** aggregate min on columns */ export type Events_Min_Fields = { __typename?: 'events_min_fields' - atomId?: Maybe - blockNumber?: Maybe - blockTimestamp?: Maybe - depositId?: Maybe - feeTransferId?: Maybe + atom_id?: Maybe + block_number?: Maybe + block_timestamp?: Maybe + deposit_id?: Maybe + fee_transfer_id?: Maybe id?: Maybe - redemptionId?: Maybe - tripleId?: Maybe - type?: Maybe + redemption_id?: Maybe + triple_id?: Maybe + type?: Maybe +} + +/** order by min() on columns of table "event" */ +export type Events_Min_Order_By = { + atom_id?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe + deposit_id?: InputMaybe + fee_transfer_id?: InputMaybe + id?: InputMaybe + redemption_id?: InputMaybe + triple_id?: InputMaybe + type?: InputMaybe } -/** Ordering options when selecting data from "Event". */ +/** Ordering options when selecting data from "event". */ export type Events_Order_By = { atom?: InputMaybe - atomId?: InputMaybe - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe + atom_id?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe deposit?: InputMaybe - depositId?: InputMaybe - feeTransfer?: InputMaybe - feeTransferId?: InputMaybe + deposit_id?: InputMaybe + fee_transfer?: InputMaybe + fee_transfer_id?: InputMaybe id?: InputMaybe redemption?: InputMaybe - redemptionId?: InputMaybe - transactionHash?: InputMaybe + redemption_id?: InputMaybe + transaction_hash?: InputMaybe triple?: InputMaybe - tripleId?: InputMaybe + triple_id?: InputMaybe type?: InputMaybe } -/** select columns of table "Event" */ +/** select columns of table "event" */ export type Events_Select_Column = /** column name */ - | 'atomId' + | 'atom_id' /** column name */ - | 'blockNumber' + | 'block_number' /** column name */ - | 'blockTimestamp' + | 'block_timestamp' /** column name */ - | 'depositId' + | 'deposit_id' /** column name */ - | 'feeTransferId' + | 'fee_transfer_id' /** column name */ | 'id' /** column name */ - | 'redemptionId' + | 'redemption_id' /** column name */ - | 'transactionHash' + | 'transaction_hash' /** column name */ - | 'tripleId' + | 'triple_id' /** column name */ | 'type' /** aggregate stddev on columns */ export type Events_Stddev_Fields = { __typename?: 'events_stddev_fields' - atomId?: Maybe - blockNumber?: Maybe - blockTimestamp?: Maybe - tripleId?: Maybe + atom_id?: Maybe + block_number?: Maybe + block_timestamp?: Maybe + triple_id?: Maybe +} + +/** order by stddev() on columns of table "event" */ +export type Events_Stddev_Order_By = { + atom_id?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe + triple_id?: InputMaybe } /** aggregate stddev_pop on columns */ export type Events_Stddev_Pop_Fields = { __typename?: 'events_stddev_pop_fields' - atomId?: Maybe - blockNumber?: Maybe - blockTimestamp?: Maybe - tripleId?: Maybe + atom_id?: Maybe + block_number?: Maybe + block_timestamp?: Maybe + triple_id?: Maybe +} + +/** order by stddev_pop() on columns of table "event" */ +export type Events_Stddev_Pop_Order_By = { + atom_id?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe + triple_id?: InputMaybe } /** aggregate stddev_samp on columns */ export type Events_Stddev_Samp_Fields = { __typename?: 'events_stddev_samp_fields' - atomId?: Maybe - blockNumber?: Maybe - blockTimestamp?: Maybe - tripleId?: Maybe + atom_id?: Maybe + block_number?: Maybe + block_timestamp?: Maybe + triple_id?: Maybe +} + +/** order by stddev_samp() on columns of table "event" */ +export type Events_Stddev_Samp_Order_By = { + atom_id?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe + triple_id?: InputMaybe } /** Streaming cursor of the table "events" */ @@ -2501,350 +3024,407 @@ export type Events_Stream_Cursor_Input = { /** Initial value of the column from where the streaming should start */ export type Events_Stream_Cursor_Value_Input = { - atomId?: InputMaybe - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe - depositId?: InputMaybe - feeTransferId?: InputMaybe + atom_id?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe + deposit_id?: InputMaybe + fee_transfer_id?: InputMaybe id?: InputMaybe - redemptionId?: InputMaybe - transactionHash?: InputMaybe - tripleId?: InputMaybe - type?: InputMaybe + redemption_id?: InputMaybe + transaction_hash?: InputMaybe + triple_id?: InputMaybe + type?: InputMaybe } /** aggregate sum on columns */ export type Events_Sum_Fields = { __typename?: 'events_sum_fields' - atomId?: Maybe - blockNumber?: Maybe - blockTimestamp?: Maybe - tripleId?: Maybe + atom_id?: Maybe + block_number?: Maybe + block_timestamp?: Maybe + triple_id?: Maybe +} + +/** order by sum() on columns of table "event" */ +export type Events_Sum_Order_By = { + atom_id?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe + triple_id?: InputMaybe } /** aggregate var_pop on columns */ export type Events_Var_Pop_Fields = { __typename?: 'events_var_pop_fields' - atomId?: Maybe - blockNumber?: Maybe - blockTimestamp?: Maybe - tripleId?: Maybe + atom_id?: Maybe + block_number?: Maybe + block_timestamp?: Maybe + triple_id?: Maybe +} + +/** order by var_pop() on columns of table "event" */ +export type Events_Var_Pop_Order_By = { + atom_id?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe + triple_id?: InputMaybe } /** aggregate var_samp on columns */ export type Events_Var_Samp_Fields = { __typename?: 'events_var_samp_fields' - atomId?: Maybe - blockNumber?: Maybe - blockTimestamp?: Maybe - tripleId?: Maybe + atom_id?: Maybe + block_number?: Maybe + block_timestamp?: Maybe + triple_id?: Maybe +} + +/** order by var_samp() on columns of table "event" */ +export type Events_Var_Samp_Order_By = { + atom_id?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe + triple_id?: InputMaybe } /** aggregate variance on columns */ export type Events_Variance_Fields = { __typename?: 'events_variance_fields' - atomId?: Maybe - blockNumber?: Maybe - blockTimestamp?: Maybe - tripleId?: Maybe + atom_id?: Maybe + block_number?: Maybe + block_timestamp?: Maybe + triple_id?: Maybe +} + +/** order by variance() on columns of table "event" */ +export type Events_Variance_Order_By = { + atom_id?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe + triple_id?: InputMaybe } -/** columns and relationships of "FeeTransfer" */ -export type FeeTranfers = { - __typename?: 'feeTranfers' +/** columns and relationships of "fee_transfer" */ +export type Fee_Transfers = { + __typename?: 'fee_transfers' amount: Scalars['numeric']['output'] - blockNumber: Scalars['numeric']['output'] - blockTimestamp: Scalars['numeric']['output'] + block_number: Scalars['numeric']['output'] + block_timestamp: Scalars['bigint']['output'] + /** An array relationship */ + events: Array + /** An aggregate relationship */ + events_aggregate: Events_Aggregate id: Scalars['String']['output'] /** An object relationship */ - receiver?: Maybe - receiverId: Scalars['String']['output'] + receiver: Accounts + receiver_id: Scalars['String']['output'] /** An object relationship */ sender?: Maybe - senderId: Scalars['String']['output'] - transactionHash: Scalars['bytea']['output'] + sender_id: Scalars['String']['output'] + transaction_hash: Scalars['bytea']['output'] +} + +/** columns and relationships of "fee_transfer" */ +export type Fee_TransfersEventsArgs = { + distinct_on?: InputMaybe> + limit?: InputMaybe + offset?: InputMaybe + order_by?: InputMaybe> + where?: InputMaybe +} + +/** columns and relationships of "fee_transfer" */ +export type Fee_TransfersEvents_AggregateArgs = { + distinct_on?: InputMaybe> + limit?: InputMaybe + offset?: InputMaybe + order_by?: InputMaybe> + where?: InputMaybe } -/** aggregated selection of "FeeTransfer" */ -export type FeeTranfers_Aggregate = { - __typename?: 'feeTranfers_aggregate' - aggregate?: Maybe - nodes: Array +/** aggregated selection of "fee_transfer" */ +export type Fee_Transfers_Aggregate = { + __typename?: 'fee_transfers_aggregate' + aggregate?: Maybe + nodes: Array } -export type FeeTranfers_Aggregate_Bool_Exp = { - count?: InputMaybe +export type Fee_Transfers_Aggregate_Bool_Exp = { + count?: InputMaybe } -export type FeeTranfers_Aggregate_Bool_Exp_Count = { - arguments?: InputMaybe> +export type Fee_Transfers_Aggregate_Bool_Exp_Count = { + arguments?: InputMaybe> distinct?: InputMaybe - filter?: InputMaybe + filter?: InputMaybe predicate: Int_Comparison_Exp } -/** aggregate fields of "FeeTransfer" */ -export type FeeTranfers_Aggregate_Fields = { - __typename?: 'feeTranfers_aggregate_fields' - avg?: Maybe +/** aggregate fields of "fee_transfer" */ +export type Fee_Transfers_Aggregate_Fields = { + __typename?: 'fee_transfers_aggregate_fields' + avg?: Maybe count: Scalars['Int']['output'] - 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 "FeeTransfer" */ -export type FeeTranfers_Aggregate_FieldsCountArgs = { - columns?: InputMaybe> + 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 "fee_transfer" */ +export type Fee_Transfers_Aggregate_FieldsCountArgs = { + columns?: InputMaybe> distinct?: InputMaybe } -/** order by aggregate values of table "FeeTransfer" */ -export type FeeTranfers_Aggregate_Order_By = { - avg?: InputMaybe +/** order by aggregate values of table "fee_transfer" */ +export type Fee_Transfers_Aggregate_Order_By = { + 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 + 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 FeeTranfers_Avg_Fields = { - __typename?: 'feeTranfers_avg_fields' +export type Fee_Transfers_Avg_Fields = { + __typename?: 'fee_transfers_avg_fields' amount?: Maybe - blockNumber?: Maybe - blockTimestamp?: Maybe + block_number?: Maybe + block_timestamp?: Maybe } -/** order by avg() on columns of table "FeeTransfer" */ -export type FeeTranfers_Avg_Order_By = { +/** order by avg() on columns of table "fee_transfer" */ +export type Fee_Transfers_Avg_Order_By = { amount?: InputMaybe - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe } -/** Boolean expression to filter rows from the table "FeeTransfer". All fields are combined with a logical 'AND'. */ -export type FeeTranfers_Bool_Exp = { - _and?: InputMaybe> - _not?: InputMaybe - _or?: InputMaybe> +/** Boolean expression to filter rows from the table "fee_transfer". All fields are combined with a logical 'AND'. */ +export type Fee_Transfers_Bool_Exp = { + _and?: InputMaybe> + _not?: InputMaybe + _or?: InputMaybe> amount?: InputMaybe - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe + events?: InputMaybe + events_aggregate?: InputMaybe id?: InputMaybe receiver?: InputMaybe - receiverId?: InputMaybe + receiver_id?: InputMaybe sender?: InputMaybe - senderId?: InputMaybe - transactionHash?: InputMaybe + sender_id?: InputMaybe + transaction_hash?: InputMaybe } /** aggregate max on columns */ -export type FeeTranfers_Max_Fields = { - __typename?: 'feeTranfers_max_fields' +export type Fee_Transfers_Max_Fields = { + __typename?: 'fee_transfers_max_fields' amount?: Maybe - blockNumber?: Maybe - blockTimestamp?: Maybe + block_number?: Maybe + block_timestamp?: Maybe id?: Maybe - receiverId?: Maybe - senderId?: Maybe + receiver_id?: Maybe + sender_id?: Maybe } -/** order by max() on columns of table "FeeTransfer" */ -export type FeeTranfers_Max_Order_By = { +/** order by max() on columns of table "fee_transfer" */ +export type Fee_Transfers_Max_Order_By = { amount?: InputMaybe - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe id?: InputMaybe - receiverId?: InputMaybe - senderId?: InputMaybe + receiver_id?: InputMaybe + sender_id?: InputMaybe } /** aggregate min on columns */ -export type FeeTranfers_Min_Fields = { - __typename?: 'feeTranfers_min_fields' +export type Fee_Transfers_Min_Fields = { + __typename?: 'fee_transfers_min_fields' amount?: Maybe - blockNumber?: Maybe - blockTimestamp?: Maybe + block_number?: Maybe + block_timestamp?: Maybe id?: Maybe - receiverId?: Maybe - senderId?: Maybe + receiver_id?: Maybe + sender_id?: Maybe } -/** order by min() on columns of table "FeeTransfer" */ -export type FeeTranfers_Min_Order_By = { +/** order by min() on columns of table "fee_transfer" */ +export type Fee_Transfers_Min_Order_By = { amount?: InputMaybe - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe id?: InputMaybe - receiverId?: InputMaybe - senderId?: InputMaybe + receiver_id?: InputMaybe + sender_id?: InputMaybe } -/** Ordering options when selecting data from "FeeTransfer". */ -export type FeeTranfers_Order_By = { +/** Ordering options when selecting data from "fee_transfer". */ +export type Fee_Transfers_Order_By = { amount?: InputMaybe - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe + events_aggregate?: InputMaybe id?: InputMaybe receiver?: InputMaybe - receiverId?: InputMaybe + receiver_id?: InputMaybe sender?: InputMaybe - senderId?: InputMaybe - transactionHash?: InputMaybe + sender_id?: InputMaybe + transaction_hash?: InputMaybe } -/** select columns of table "FeeTransfer" */ -export type FeeTranfers_Select_Column = +/** select columns of table "fee_transfer" */ +export type Fee_Transfers_Select_Column = /** column name */ | 'amount' /** column name */ - | 'blockNumber' + | 'block_number' /** column name */ - | 'blockTimestamp' + | 'block_timestamp' /** column name */ | 'id' /** column name */ - | 'receiverId' + | 'receiver_id' /** column name */ - | 'senderId' + | 'sender_id' /** column name */ - | 'transactionHash' + | 'transaction_hash' /** aggregate stddev on columns */ -export type FeeTranfers_Stddev_Fields = { - __typename?: 'feeTranfers_stddev_fields' +export type Fee_Transfers_Stddev_Fields = { + __typename?: 'fee_transfers_stddev_fields' amount?: Maybe - blockNumber?: Maybe - blockTimestamp?: Maybe + block_number?: Maybe + block_timestamp?: Maybe } -/** order by stddev() on columns of table "FeeTransfer" */ -export type FeeTranfers_Stddev_Order_By = { +/** order by stddev() on columns of table "fee_transfer" */ +export type Fee_Transfers_Stddev_Order_By = { amount?: InputMaybe - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe } /** aggregate stddev_pop on columns */ -export type FeeTranfers_Stddev_Pop_Fields = { - __typename?: 'feeTranfers_stddev_pop_fields' +export type Fee_Transfers_Stddev_Pop_Fields = { + __typename?: 'fee_transfers_stddev_pop_fields' amount?: Maybe - blockNumber?: Maybe - blockTimestamp?: Maybe + block_number?: Maybe + block_timestamp?: Maybe } -/** order by stddev_pop() on columns of table "FeeTransfer" */ -export type FeeTranfers_Stddev_Pop_Order_By = { +/** order by stddev_pop() on columns of table "fee_transfer" */ +export type Fee_Transfers_Stddev_Pop_Order_By = { amount?: InputMaybe - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe } /** aggregate stddev_samp on columns */ -export type FeeTranfers_Stddev_Samp_Fields = { - __typename?: 'feeTranfers_stddev_samp_fields' +export type Fee_Transfers_Stddev_Samp_Fields = { + __typename?: 'fee_transfers_stddev_samp_fields' amount?: Maybe - blockNumber?: Maybe - blockTimestamp?: Maybe + block_number?: Maybe + block_timestamp?: Maybe } -/** order by stddev_samp() on columns of table "FeeTransfer" */ -export type FeeTranfers_Stddev_Samp_Order_By = { +/** order by stddev_samp() on columns of table "fee_transfer" */ +export type Fee_Transfers_Stddev_Samp_Order_By = { amount?: InputMaybe - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe } -/** Streaming cursor of the table "feeTranfers" */ -export type FeeTranfers_Stream_Cursor_Input = { +/** Streaming cursor of the table "fee_transfers" */ +export type Fee_Transfers_Stream_Cursor_Input = { /** Stream column input with initial value */ - initial_value: FeeTranfers_Stream_Cursor_Value_Input + initial_value: Fee_Transfers_Stream_Cursor_Value_Input /** cursor ordering */ ordering?: InputMaybe } /** Initial value of the column from where the streaming should start */ -export type FeeTranfers_Stream_Cursor_Value_Input = { +export type Fee_Transfers_Stream_Cursor_Value_Input = { amount?: InputMaybe - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe id?: InputMaybe - receiverId?: InputMaybe - senderId?: InputMaybe - transactionHash?: InputMaybe + receiver_id?: InputMaybe + sender_id?: InputMaybe + transaction_hash?: InputMaybe } /** aggregate sum on columns */ -export type FeeTranfers_Sum_Fields = { - __typename?: 'feeTranfers_sum_fields' +export type Fee_Transfers_Sum_Fields = { + __typename?: 'fee_transfers_sum_fields' amount?: Maybe - blockNumber?: Maybe - blockTimestamp?: Maybe + block_number?: Maybe + block_timestamp?: Maybe } -/** order by sum() on columns of table "FeeTransfer" */ -export type FeeTranfers_Sum_Order_By = { +/** order by sum() on columns of table "fee_transfer" */ +export type Fee_Transfers_Sum_Order_By = { amount?: InputMaybe - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe } /** aggregate var_pop on columns */ -export type FeeTranfers_Var_Pop_Fields = { - __typename?: 'feeTranfers_var_pop_fields' +export type Fee_Transfers_Var_Pop_Fields = { + __typename?: 'fee_transfers_var_pop_fields' amount?: Maybe - blockNumber?: Maybe - blockTimestamp?: Maybe + block_number?: Maybe + block_timestamp?: Maybe } -/** order by var_pop() on columns of table "FeeTransfer" */ -export type FeeTranfers_Var_Pop_Order_By = { +/** order by var_pop() on columns of table "fee_transfer" */ +export type Fee_Transfers_Var_Pop_Order_By = { amount?: InputMaybe - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe } /** aggregate var_samp on columns */ -export type FeeTranfers_Var_Samp_Fields = { - __typename?: 'feeTranfers_var_samp_fields' +export type Fee_Transfers_Var_Samp_Fields = { + __typename?: 'fee_transfers_var_samp_fields' amount?: Maybe - blockNumber?: Maybe - blockTimestamp?: Maybe + block_number?: Maybe + block_timestamp?: Maybe } -/** order by var_samp() on columns of table "FeeTransfer" */ -export type FeeTranfers_Var_Samp_Order_By = { +/** order by var_samp() on columns of table "fee_transfer" */ +export type Fee_Transfers_Var_Samp_Order_By = { amount?: InputMaybe - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe } /** aggregate variance on columns */ -export type FeeTranfers_Variance_Fields = { - __typename?: 'feeTranfers_variance_fields' +export type Fee_Transfers_Variance_Fields = { + __typename?: 'fee_transfers_variance_fields' amount?: Maybe - blockNumber?: Maybe - blockTimestamp?: Maybe + block_number?: Maybe + block_timestamp?: Maybe } -/** order by variance() on columns of table "FeeTransfer" */ -export type FeeTranfers_Variance_Order_By = { +/** order by variance() on columns of table "fee_transfer" */ +export type Fee_Transfers_Variance_Order_By = { amount?: InputMaybe - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe } /** Boolean expression to compare columns of type "float8". All fields are combined with logical 'AND'. */ @@ -2864,16 +3444,58 @@ export type Following_Args = { address?: InputMaybe } +export type Jsonb_Cast_Exp = { + String?: InputMaybe +} + +/** Boolean expression to compare columns of type "jsonb". All fields are combined with logical 'AND'. */ +export type Jsonb_Comparison_Exp = { + _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> +} + /** mutation root */ export type Mutation_Root = { __typename?: 'mutation_root' - /** Uploads Thing to IPFS */ - uploadThing?: Maybe + /** Uploads and pins Organization to IPFS */ + pinOrganization?: Maybe + /** Uploads and pins Person to IPFS */ + pinPerson?: Maybe + /** Uploads and pins Thing to IPFS */ + pinThing?: Maybe +} + +/** mutation root */ +export type Mutation_RootPinOrganizationArgs = { + organization: PinOrganizationInput +} + +/** mutation root */ +export type Mutation_RootPinPersonArgs = { + person: PinPersonInput } /** mutation root */ -export type Mutation_RootUploadThingArgs = { - arg1: ThingInput +export type Mutation_RootPinThingArgs = { + thing: PinThingInput } /** Boolean expression to compare columns of type "numeric". All fields are combined with logical 'AND'. */ @@ -2904,12 +3526,13 @@ export type Order_By = /** in descending order, nulls last */ | 'desc_nulls_last' -/** columns and relationships of "Organization" */ +/** columns and relationships of "organization" */ export type Organizations = { __typename?: 'organizations' /** An object relationship */ atom?: Maybe - atomId: Scalars['numeric']['output'] + /** An object relationship */ + cached_image?: Maybe description?: Maybe email?: Maybe id: Scalars['numeric']['output'] @@ -2918,14 +3541,14 @@ export type Organizations = { url?: Maybe } -/** aggregated selection of "Organization" */ +/** aggregated selection of "organization" */ export type Organizations_Aggregate = { __typename?: 'organizations_aggregate' aggregate?: Maybe nodes: Array } -/** aggregate fields of "Organization" */ +/** aggregate fields of "organization" */ export type Organizations_Aggregate_Fields = { __typename?: 'organizations_aggregate_fields' avg?: Maybe @@ -2941,7 +3564,7 @@ export type Organizations_Aggregate_Fields = { variance?: Maybe } -/** aggregate fields of "Organization" */ +/** aggregate fields of "organization" */ export type Organizations_Aggregate_FieldsCountArgs = { columns?: InputMaybe> distinct?: InputMaybe @@ -2950,17 +3573,16 @@ export type Organizations_Aggregate_FieldsCountArgs = { /** aggregate avg on columns */ export type Organizations_Avg_Fields = { __typename?: 'organizations_avg_fields' - atomId?: Maybe id?: Maybe } -/** Boolean expression to filter rows from the table "Organization". All fields are combined with a logical 'AND'. */ +/** Boolean expression to filter rows from the table "organization". All fields are combined with a logical 'AND'. */ export type Organizations_Bool_Exp = { _and?: InputMaybe> _not?: InputMaybe _or?: InputMaybe> atom?: InputMaybe - atomId?: InputMaybe + cached_image?: InputMaybe description?: InputMaybe email?: InputMaybe id?: InputMaybe @@ -2972,7 +3594,6 @@ export type Organizations_Bool_Exp = { /** aggregate max on columns */ export type Organizations_Max_Fields = { __typename?: 'organizations_max_fields' - atomId?: Maybe description?: Maybe email?: Maybe id?: Maybe @@ -2984,7 +3605,6 @@ export type Organizations_Max_Fields = { /** aggregate min on columns */ export type Organizations_Min_Fields = { __typename?: 'organizations_min_fields' - atomId?: Maybe description?: Maybe email?: Maybe id?: Maybe @@ -2993,10 +3613,10 @@ export type Organizations_Min_Fields = { url?: Maybe } -/** Ordering options when selecting data from "Organization". */ +/** Ordering options when selecting data from "organization". */ export type Organizations_Order_By = { atom?: InputMaybe - atomId?: InputMaybe + cached_image?: InputMaybe description?: InputMaybe email?: InputMaybe id?: InputMaybe @@ -3005,10 +3625,8 @@ export type Organizations_Order_By = { url?: InputMaybe } -/** select columns of table "Organization" */ +/** select columns of table "organization" */ export type Organizations_Select_Column = - /** column name */ - | 'atomId' /** column name */ | 'description' /** column name */ @@ -3025,21 +3643,18 @@ export type Organizations_Select_Column = /** aggregate stddev on columns */ export type Organizations_Stddev_Fields = { __typename?: 'organizations_stddev_fields' - atomId?: Maybe id?: Maybe } /** aggregate stddev_pop on columns */ export type Organizations_Stddev_Pop_Fields = { __typename?: 'organizations_stddev_pop_fields' - atomId?: Maybe id?: Maybe } /** aggregate stddev_samp on columns */ export type Organizations_Stddev_Samp_Fields = { __typename?: 'organizations_stddev_samp_fields' - atomId?: Maybe id?: Maybe } @@ -3053,7 +3668,6 @@ export type Organizations_Stream_Cursor_Input = { /** Initial value of the column from where the streaming should start */ export type Organizations_Stream_Cursor_Value_Input = { - atomId?: InputMaybe description?: InputMaybe email?: InputMaybe id?: InputMaybe @@ -3065,37 +3679,34 @@ export type Organizations_Stream_Cursor_Value_Input = { /** aggregate sum on columns */ export type Organizations_Sum_Fields = { __typename?: 'organizations_sum_fields' - atomId?: Maybe id?: Maybe } /** aggregate var_pop on columns */ export type Organizations_Var_Pop_Fields = { __typename?: 'organizations_var_pop_fields' - atomId?: Maybe id?: Maybe } /** aggregate var_samp on columns */ export type Organizations_Var_Samp_Fields = { __typename?: 'organizations_var_samp_fields' - atomId?: Maybe id?: Maybe } /** aggregate variance on columns */ export type Organizations_Variance_Fields = { __typename?: 'organizations_variance_fields' - atomId?: Maybe id?: Maybe } -/** columns and relationships of "Person" */ +/** columns and relationships of "person" */ export type Persons = { __typename?: 'persons' /** An object relationship */ atom?: Maybe - atomId: Scalars['numeric']['output'] + /** An object relationship */ + cached_image?: Maybe description?: Maybe email?: Maybe id: Scalars['numeric']['output'] @@ -3105,14 +3716,14 @@ export type Persons = { url?: Maybe } -/** aggregated selection of "Person" */ +/** aggregated selection of "person" */ export type Persons_Aggregate = { __typename?: 'persons_aggregate' aggregate?: Maybe nodes: Array } -/** aggregate fields of "Person" */ +/** aggregate fields of "person" */ export type Persons_Aggregate_Fields = { __typename?: 'persons_aggregate_fields' avg?: Maybe @@ -3128,7 +3739,7 @@ export type Persons_Aggregate_Fields = { variance?: Maybe } -/** aggregate fields of "Person" */ +/** aggregate fields of "person" */ export type Persons_Aggregate_FieldsCountArgs = { columns?: InputMaybe> distinct?: InputMaybe @@ -3137,17 +3748,16 @@ export type Persons_Aggregate_FieldsCountArgs = { /** aggregate avg on columns */ export type Persons_Avg_Fields = { __typename?: 'persons_avg_fields' - atomId?: Maybe id?: Maybe } -/** Boolean expression to filter rows from the table "Person". All fields are combined with a logical 'AND'. */ +/** Boolean expression to filter rows from the table "person". All fields are combined with a logical 'AND'. */ export type Persons_Bool_Exp = { _and?: InputMaybe> _not?: InputMaybe _or?: InputMaybe> atom?: InputMaybe - atomId?: InputMaybe + cached_image?: InputMaybe description?: InputMaybe email?: InputMaybe id?: InputMaybe @@ -3160,7 +3770,6 @@ export type Persons_Bool_Exp = { /** aggregate max on columns */ export type Persons_Max_Fields = { __typename?: 'persons_max_fields' - atomId?: Maybe description?: Maybe email?: Maybe id?: Maybe @@ -3173,7 +3782,6 @@ export type Persons_Max_Fields = { /** aggregate min on columns */ export type Persons_Min_Fields = { __typename?: 'persons_min_fields' - atomId?: Maybe description?: Maybe email?: Maybe id?: Maybe @@ -3183,10 +3791,10 @@ export type Persons_Min_Fields = { url?: Maybe } -/** Ordering options when selecting data from "Person". */ +/** Ordering options when selecting data from "person". */ export type Persons_Order_By = { atom?: InputMaybe - atomId?: InputMaybe + cached_image?: InputMaybe description?: InputMaybe email?: InputMaybe id?: InputMaybe @@ -3196,10 +3804,8 @@ export type Persons_Order_By = { url?: InputMaybe } -/** select columns of table "Person" */ +/** select columns of table "person" */ export type Persons_Select_Column = - /** column name */ - | 'atomId' /** column name */ | 'description' /** column name */ @@ -3218,21 +3824,18 @@ export type Persons_Select_Column = /** aggregate stddev on columns */ export type Persons_Stddev_Fields = { __typename?: 'persons_stddev_fields' - atomId?: Maybe id?: Maybe } /** aggregate stddev_pop on columns */ export type Persons_Stddev_Pop_Fields = { __typename?: 'persons_stddev_pop_fields' - atomId?: Maybe id?: Maybe } /** aggregate stddev_samp on columns */ export type Persons_Stddev_Samp_Fields = { __typename?: 'persons_stddev_samp_fields' - atomId?: Maybe id?: Maybe } @@ -3246,7 +3849,6 @@ export type Persons_Stream_Cursor_Input = { /** Initial value of the column from where the streaming should start */ export type Persons_Stream_Cursor_Value_Input = { - atomId?: InputMaybe description?: InputMaybe email?: InputMaybe id?: InputMaybe @@ -3259,45 +3861,41 @@ export type Persons_Stream_Cursor_Value_Input = { /** aggregate sum on columns */ export type Persons_Sum_Fields = { __typename?: 'persons_sum_fields' - atomId?: Maybe id?: Maybe } /** aggregate var_pop on columns */ export type Persons_Var_Pop_Fields = { __typename?: 'persons_var_pop_fields' - atomId?: Maybe id?: Maybe } /** aggregate var_samp on columns */ export type Persons_Var_Samp_Fields = { __typename?: 'persons_var_samp_fields' - atomId?: Maybe id?: Maybe } /** aggregate variance on columns */ export type Persons_Variance_Fields = { __typename?: 'persons_variance_fields' - atomId?: Maybe id?: Maybe } -/** columns and relationships of "Position" */ +/** columns and relationships of "position" */ export type Positions = { __typename?: 'positions' /** An object relationship */ account?: Maybe - accountId: Scalars['String']['output'] + account_id: Scalars['String']['output'] id: Scalars['String']['output'] shares: Scalars['numeric']['output'] /** An object relationship */ - vault?: Maybe - vaultId: Scalars['numeric']['output'] + vault: Vaults + vault_id: Scalars['numeric']['output'] } -/** aggregated selection of "Position" */ +/** aggregated selection of "position" */ export type Positions_Aggregate = { __typename?: 'positions_aggregate' aggregate?: Maybe @@ -3315,7 +3913,7 @@ export type Positions_Aggregate_Bool_Exp_Count = { predicate: Int_Comparison_Exp } -/** aggregate fields of "Position" */ +/** aggregate fields of "position" */ export type Positions_Aggregate_Fields = { __typename?: 'positions_aggregate_fields' avg?: Maybe @@ -3331,13 +3929,13 @@ export type Positions_Aggregate_Fields = { variance?: Maybe } -/** aggregate fields of "Position" */ +/** aggregate fields of "position" */ export type Positions_Aggregate_FieldsCountArgs = { columns?: InputMaybe> distinct?: InputMaybe } -/** order by aggregate values of table "Position" */ +/** order by aggregate values of table "position" */ export type Positions_Aggregate_Order_By = { avg?: InputMaybe count?: InputMaybe @@ -3356,120 +3954,120 @@ export type Positions_Aggregate_Order_By = { export type Positions_Avg_Fields = { __typename?: 'positions_avg_fields' shares?: Maybe - vaultId?: Maybe + vault_id?: Maybe } -/** order by avg() on columns of table "Position" */ +/** order by avg() on columns of table "position" */ export type Positions_Avg_Order_By = { shares?: InputMaybe - vaultId?: InputMaybe + vault_id?: InputMaybe } -/** Boolean expression to filter rows from the table "Position". All fields are combined with a logical 'AND'. */ +/** Boolean expression to filter rows from the table "position". All fields are combined with a logical 'AND'. */ export type Positions_Bool_Exp = { _and?: InputMaybe> _not?: InputMaybe _or?: InputMaybe> account?: InputMaybe - accountId?: InputMaybe + account_id?: InputMaybe id?: InputMaybe shares?: InputMaybe vault?: InputMaybe - vaultId?: InputMaybe + vault_id?: InputMaybe } /** aggregate max on columns */ export type Positions_Max_Fields = { __typename?: 'positions_max_fields' - accountId?: Maybe + account_id?: Maybe id?: Maybe shares?: Maybe - vaultId?: Maybe + vault_id?: Maybe } -/** order by max() on columns of table "Position" */ +/** order by max() on columns of table "position" */ export type Positions_Max_Order_By = { - accountId?: InputMaybe + account_id?: InputMaybe id?: InputMaybe shares?: InputMaybe - vaultId?: InputMaybe + vault_id?: InputMaybe } /** aggregate min on columns */ export type Positions_Min_Fields = { __typename?: 'positions_min_fields' - accountId?: Maybe + account_id?: Maybe id?: Maybe shares?: Maybe - vaultId?: Maybe + vault_id?: Maybe } -/** order by min() on columns of table "Position" */ +/** order by min() on columns of table "position" */ export type Positions_Min_Order_By = { - accountId?: InputMaybe + account_id?: InputMaybe id?: InputMaybe shares?: InputMaybe - vaultId?: InputMaybe + vault_id?: InputMaybe } -/** Ordering options when selecting data from "Position". */ +/** Ordering options when selecting data from "position". */ export type Positions_Order_By = { account?: InputMaybe - accountId?: InputMaybe + account_id?: InputMaybe id?: InputMaybe shares?: InputMaybe vault?: InputMaybe - vaultId?: InputMaybe + vault_id?: InputMaybe } -/** select columns of table "Position" */ +/** select columns of table "position" */ export type Positions_Select_Column = /** column name */ - | 'accountId' + | 'account_id' /** column name */ | 'id' /** column name */ | 'shares' /** column name */ - | 'vaultId' + | 'vault_id' /** aggregate stddev on columns */ export type Positions_Stddev_Fields = { __typename?: 'positions_stddev_fields' shares?: Maybe - vaultId?: Maybe + vault_id?: Maybe } -/** order by stddev() on columns of table "Position" */ +/** order by stddev() on columns of table "position" */ export type Positions_Stddev_Order_By = { shares?: InputMaybe - vaultId?: InputMaybe + vault_id?: InputMaybe } /** aggregate stddev_pop on columns */ export type Positions_Stddev_Pop_Fields = { __typename?: 'positions_stddev_pop_fields' shares?: Maybe - vaultId?: Maybe + vault_id?: Maybe } -/** order by stddev_pop() on columns of table "Position" */ +/** order by stddev_pop() on columns of table "position" */ export type Positions_Stddev_Pop_Order_By = { shares?: InputMaybe - vaultId?: InputMaybe + vault_id?: InputMaybe } /** aggregate stddev_samp on columns */ export type Positions_Stddev_Samp_Fields = { __typename?: 'positions_stddev_samp_fields' shares?: Maybe - vaultId?: Maybe + vault_id?: Maybe } -/** order by stddev_samp() on columns of table "Position" */ +/** order by stddev_samp() on columns of table "position" */ export type Positions_Stddev_Samp_Order_By = { shares?: InputMaybe - vaultId?: InputMaybe + vault_id?: InputMaybe } /** Streaming cursor of the table "positions" */ @@ -3482,389 +4080,387 @@ export type Positions_Stream_Cursor_Input = { /** Initial value of the column from where the streaming should start */ export type Positions_Stream_Cursor_Value_Input = { - accountId?: InputMaybe + account_id?: InputMaybe id?: InputMaybe shares?: InputMaybe - vaultId?: InputMaybe + vault_id?: InputMaybe } /** aggregate sum on columns */ export type Positions_Sum_Fields = { __typename?: 'positions_sum_fields' shares?: Maybe - vaultId?: Maybe + vault_id?: Maybe } -/** order by sum() on columns of table "Position" */ +/** order by sum() on columns of table "position" */ export type Positions_Sum_Order_By = { shares?: InputMaybe - vaultId?: InputMaybe + vault_id?: InputMaybe } /** aggregate var_pop on columns */ export type Positions_Var_Pop_Fields = { __typename?: 'positions_var_pop_fields' shares?: Maybe - vaultId?: Maybe + vault_id?: Maybe } -/** order by var_pop() on columns of table "Position" */ +/** order by var_pop() on columns of table "position" */ export type Positions_Var_Pop_Order_By = { shares?: InputMaybe - vaultId?: InputMaybe + vault_id?: InputMaybe } /** aggregate var_samp on columns */ export type Positions_Var_Samp_Fields = { __typename?: 'positions_var_samp_fields' shares?: Maybe - vaultId?: Maybe + vault_id?: Maybe } -/** order by var_samp() on columns of table "Position" */ +/** order by var_samp() on columns of table "position" */ export type Positions_Var_Samp_Order_By = { shares?: InputMaybe - vaultId?: InputMaybe + vault_id?: InputMaybe } /** aggregate variance on columns */ export type Positions_Variance_Fields = { __typename?: 'positions_variance_fields' shares?: Maybe - vaultId?: Maybe + vault_id?: Maybe } -/** order by variance() on columns of table "Position" */ +/** order by variance() on columns of table "position" */ export type Positions_Variance_Order_By = { shares?: InputMaybe - vaultId?: InputMaybe + vault_id?: InputMaybe } -/** columns and relationships of "PredicateObject" */ -export type PredicateObjects = { - __typename?: 'predicateObjects' - claimCount: Scalars['Int']['output'] +/** columns and relationships of "predicate_object" */ +export type Predicate_Objects = { + __typename?: 'predicate_objects' + claim_count: Scalars['Int']['output'] id: Scalars['String']['output'] /** An object relationship */ - object?: Maybe - objectId: Scalars['numeric']['output'] + object: Atoms + object_id: Scalars['numeric']['output'] /** An object relationship */ predicate?: Maybe - predicateId: Scalars['numeric']['output'] - tripleCount: Scalars['Int']['output'] + predicate_id: Scalars['numeric']['output'] + triple_count: Scalars['Int']['output'] } -/** aggregated selection of "PredicateObject" */ -export type PredicateObjects_Aggregate = { - __typename?: 'predicateObjects_aggregate' - aggregate?: Maybe - nodes: Array +/** aggregated selection of "predicate_object" */ +export type Predicate_Objects_Aggregate = { + __typename?: 'predicate_objects_aggregate' + aggregate?: Maybe + nodes: Array } -/** aggregate fields of "PredicateObject" */ -export type PredicateObjects_Aggregate_Fields = { - __typename?: 'predicateObjects_aggregate_fields' - avg?: Maybe +/** aggregate fields of "predicate_object" */ +export type Predicate_Objects_Aggregate_Fields = { + __typename?: 'predicate_objects_aggregate_fields' + avg?: Maybe count: Scalars['Int']['output'] - 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 "PredicateObject" */ -export type PredicateObjects_Aggregate_FieldsCountArgs = { - columns?: InputMaybe> + 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 "predicate_object" */ +export type Predicate_Objects_Aggregate_FieldsCountArgs = { + columns?: InputMaybe> distinct?: InputMaybe } /** aggregate avg on columns */ -export type PredicateObjects_Avg_Fields = { - __typename?: 'predicateObjects_avg_fields' - claimCount?: Maybe - objectId?: Maybe - predicateId?: Maybe - tripleCount?: Maybe -} - -/** Boolean expression to filter rows from the table "PredicateObject". All fields are combined with a logical 'AND'. */ -export type PredicateObjects_Bool_Exp = { - _and?: InputMaybe> - _not?: InputMaybe - _or?: InputMaybe> - claimCount?: InputMaybe +export type Predicate_Objects_Avg_Fields = { + __typename?: 'predicate_objects_avg_fields' + claim_count?: Maybe + object_id?: Maybe + predicate_id?: Maybe + triple_count?: Maybe +} + +/** Boolean expression to filter rows from the table "predicate_object". All fields are combined with a logical 'AND'. */ +export type Predicate_Objects_Bool_Exp = { + _and?: InputMaybe> + _not?: InputMaybe + _or?: InputMaybe> + claim_count?: InputMaybe id?: InputMaybe object?: InputMaybe - objectId?: InputMaybe + object_id?: InputMaybe predicate?: InputMaybe - predicateId?: InputMaybe - tripleCount?: InputMaybe + predicate_id?: InputMaybe + triple_count?: InputMaybe } /** aggregate max on columns */ -export type PredicateObjects_Max_Fields = { - __typename?: 'predicateObjects_max_fields' - claimCount?: Maybe +export type Predicate_Objects_Max_Fields = { + __typename?: 'predicate_objects_max_fields' + claim_count?: Maybe id?: Maybe - objectId?: Maybe - predicateId?: Maybe - tripleCount?: Maybe + object_id?: Maybe + predicate_id?: Maybe + triple_count?: Maybe } /** aggregate min on columns */ -export type PredicateObjects_Min_Fields = { - __typename?: 'predicateObjects_min_fields' - claimCount?: Maybe +export type Predicate_Objects_Min_Fields = { + __typename?: 'predicate_objects_min_fields' + claim_count?: Maybe id?: Maybe - objectId?: Maybe - predicateId?: Maybe - tripleCount?: Maybe + object_id?: Maybe + predicate_id?: Maybe + triple_count?: Maybe } -/** Ordering options when selecting data from "PredicateObject". */ -export type PredicateObjects_Order_By = { - claimCount?: InputMaybe +/** Ordering options when selecting data from "predicate_object". */ +export type Predicate_Objects_Order_By = { + claim_count?: InputMaybe id?: InputMaybe object?: InputMaybe - objectId?: InputMaybe + object_id?: InputMaybe predicate?: InputMaybe - predicateId?: InputMaybe - tripleCount?: InputMaybe + predicate_id?: InputMaybe + triple_count?: InputMaybe } -/** select columns of table "PredicateObject" */ -export type PredicateObjects_Select_Column = +/** select columns of table "predicate_object" */ +export type Predicate_Objects_Select_Column = /** column name */ - | 'claimCount' + | 'claim_count' /** column name */ | 'id' /** column name */ - | 'objectId' + | 'object_id' /** column name */ - | 'predicateId' + | 'predicate_id' /** column name */ - | 'tripleCount' + | 'triple_count' /** aggregate stddev on columns */ -export type PredicateObjects_Stddev_Fields = { - __typename?: 'predicateObjects_stddev_fields' - claimCount?: Maybe - objectId?: Maybe - predicateId?: Maybe - tripleCount?: Maybe +export type Predicate_Objects_Stddev_Fields = { + __typename?: 'predicate_objects_stddev_fields' + claim_count?: Maybe + object_id?: Maybe + predicate_id?: Maybe + triple_count?: Maybe } /** aggregate stddev_pop on columns */ -export type PredicateObjects_Stddev_Pop_Fields = { - __typename?: 'predicateObjects_stddev_pop_fields' - claimCount?: Maybe - objectId?: Maybe - predicateId?: Maybe - tripleCount?: Maybe +export type Predicate_Objects_Stddev_Pop_Fields = { + __typename?: 'predicate_objects_stddev_pop_fields' + claim_count?: Maybe + object_id?: Maybe + predicate_id?: Maybe + triple_count?: Maybe } /** aggregate stddev_samp on columns */ -export type PredicateObjects_Stddev_Samp_Fields = { - __typename?: 'predicateObjects_stddev_samp_fields' - claimCount?: Maybe - objectId?: Maybe - predicateId?: Maybe - tripleCount?: Maybe +export type Predicate_Objects_Stddev_Samp_Fields = { + __typename?: 'predicate_objects_stddev_samp_fields' + claim_count?: Maybe + object_id?: Maybe + predicate_id?: Maybe + triple_count?: Maybe } -/** Streaming cursor of the table "predicateObjects" */ -export type PredicateObjects_Stream_Cursor_Input = { +/** Streaming cursor of the table "predicate_objects" */ +export type Predicate_Objects_Stream_Cursor_Input = { /** Stream column input with initial value */ - initial_value: PredicateObjects_Stream_Cursor_Value_Input + initial_value: Predicate_Objects_Stream_Cursor_Value_Input /** cursor ordering */ ordering?: InputMaybe } /** Initial value of the column from where the streaming should start */ -export type PredicateObjects_Stream_Cursor_Value_Input = { - claimCount?: InputMaybe +export type Predicate_Objects_Stream_Cursor_Value_Input = { + claim_count?: InputMaybe id?: InputMaybe - objectId?: InputMaybe - predicateId?: InputMaybe - tripleCount?: InputMaybe + object_id?: InputMaybe + predicate_id?: InputMaybe + triple_count?: InputMaybe } /** aggregate sum on columns */ -export type PredicateObjects_Sum_Fields = { - __typename?: 'predicateObjects_sum_fields' - claimCount?: Maybe - objectId?: Maybe - predicateId?: Maybe - tripleCount?: Maybe +export type Predicate_Objects_Sum_Fields = { + __typename?: 'predicate_objects_sum_fields' + claim_count?: Maybe + object_id?: Maybe + predicate_id?: Maybe + triple_count?: Maybe } /** aggregate var_pop on columns */ -export type PredicateObjects_Var_Pop_Fields = { - __typename?: 'predicateObjects_var_pop_fields' - claimCount?: Maybe - objectId?: Maybe - predicateId?: Maybe - tripleCount?: Maybe +export type Predicate_Objects_Var_Pop_Fields = { + __typename?: 'predicate_objects_var_pop_fields' + claim_count?: Maybe + object_id?: Maybe + predicate_id?: Maybe + triple_count?: Maybe } /** aggregate var_samp on columns */ -export type PredicateObjects_Var_Samp_Fields = { - __typename?: 'predicateObjects_var_samp_fields' - claimCount?: Maybe - objectId?: Maybe - predicateId?: Maybe - tripleCount?: Maybe +export type Predicate_Objects_Var_Samp_Fields = { + __typename?: 'predicate_objects_var_samp_fields' + claim_count?: Maybe + object_id?: Maybe + predicate_id?: Maybe + triple_count?: Maybe } /** aggregate variance on columns */ -export type PredicateObjects_Variance_Fields = { - __typename?: 'predicateObjects_variance_fields' - claimCount?: Maybe - objectId?: Maybe - predicateId?: Maybe - tripleCount?: Maybe +export type Predicate_Objects_Variance_Fields = { + __typename?: 'predicate_objects_variance_fields' + claim_count?: Maybe + object_id?: Maybe + predicate_id?: Maybe + triple_count?: Maybe } export type Query_Root = { __typename?: 'query_root' - /** fetch data from the table: "Account" using primary key columns */ + /** fetch data from the table: "account" using primary key columns */ account?: Maybe - /** fetch data from the table: "Account" */ + /** An array relationship */ accounts: Array - /** fetch aggregated fields from the table: "Account" */ + /** An aggregate relationship */ accounts_aggregate: Accounts_Aggregate - /** execute function "accounts_that_claim_about_account" which returns "Account" */ + /** execute function "accounts_that_claim_about_account" which returns "account" */ accounts_that_claim_about_account: Array - /** execute function "accounts_that_claim_about_account" and query aggregates on result of table type "Account" */ + /** execute function "accounts_that_claim_about_account" and query aggregates on result of table type "account" */ accounts_that_claim_about_account_aggregate: Accounts_Aggregate - /** fetch data from the table: "Atom" using primary key columns */ + /** fetch data from the table: "atom" using primary key columns */ atom?: Maybe - /** fetch data from the table: "AtomValue" using primary key columns */ - atomValue?: Maybe - /** fetch data from the table: "AtomValue" */ - atomValues: Array - /** fetch aggregated fields from the table: "AtomValue" */ - atomValues_aggregate: AtomValues_Aggregate - /** fetch data from the table: "Atom" */ + /** fetch data from the table: "atom_value" using primary key columns */ + atom_value?: Maybe + /** fetch data from the table: "atom_value" */ + atom_values: Array + /** fetch aggregated fields from the table: "atom_value" */ + atom_values_aggregate: Atom_Values_Aggregate + /** An array relationship */ atoms: Array - /** fetch aggregated fields from the table: "Atom" */ + /** An aggregate relationship */ atoms_aggregate: Atoms_Aggregate - /** fetch data from the table: "Book" using primary key columns */ + /** fetch data from the table: "book" using primary key columns */ book?: Maybe - /** fetch data from the table: "Book" */ + /** fetch data from the table: "book" */ books: Array - /** fetch aggregated fields from the table: "Book" */ + /** fetch aggregated fields from the table: "book" */ books_aggregate: Books_Aggregate - /** fetch data from the table: "ChainlinkPrice" using primary key columns */ - chainLinkPrice?: Maybe - /** fetch data from the table: "ChainlinkPrice" */ - chainLinkPrices: Array - /** fetch data from the table: "Claim" using primary key columns */ + /** fetch data from the table: "cached_image" using primary key columns */ + cached_image?: Maybe + /** fetch data from the table: "cached_image" */ + cached_images: Array + /** fetch data from the table: "chainlink_price" using primary key columns */ + chainlink_price?: Maybe + /** fetch data from the table: "chainlink_price" */ + chainlink_prices: Array + /** fetch data from the table: "claim" using primary key columns */ claim?: Maybe /** An array relationship */ claims: Array /** An aggregate relationship */ claims_aggregate: Claims_Aggregate - /** execute function "claims_from_following" which returns "Claim" */ + /** execute function "claims_from_following" which returns "claim" */ claims_from_following: Array - /** execute function "claims_from_following" and query aggregates on result of table type "Claim" */ + /** execute function "claims_from_following" and query aggregates on result of table type "claim" */ claims_from_following_aggregate: Claims_Aggregate - /** fetch data from the table: "Deposit" using primary key columns */ + /** fetch data from the table: "deposit" using primary key columns */ deposit?: Maybe /** An array relationship */ deposits: Array /** An aggregate relationship */ deposits_aggregate: Deposits_Aggregate - /** fetch data from the table: "Event" using primary key columns */ + /** fetch data from the table: "event" using primary key columns */ event?: Maybe - /** fetch data from the table: "Event" */ + /** An array relationship */ events: Array - /** fetch aggregated fields from the table: "Event" */ + /** An aggregate relationship */ events_aggregate: Events_Aggregate - /** fetch data from the table: "FeeTransfer" */ - feeTranfers: Array - /** fetch aggregated fields from the table: "FeeTransfer" */ - feeTranfers_aggregate: FeeTranfers_Aggregate - /** fetch data from the table: "FeeTransfer" using primary key columns */ - feeTransfers?: Maybe - /** execute function "following" which returns "Account" */ + /** fetch data from the table: "fee_transfer" using primary key columns */ + fee_transfer?: Maybe + /** An array relationship */ + fee_transfers: Array + /** An aggregate relationship */ + fee_transfers_aggregate: Fee_Transfers_Aggregate + /** execute function "following" which returns "account" */ following: Array - /** execute function "following" and query aggregates on result of table type "Account" */ + /** execute function "following" and query aggregates on result of table type "account" */ following_aggregate: Accounts_Aggregate - /** fetch data from the table: "Organization" using primary key columns */ + /** fetch data from the table: "organization" using primary key columns */ organization?: Maybe - /** fetch data from the table: "Organization" */ + /** fetch data from the table: "organization" */ organizations: Array - /** fetch aggregated fields from the table: "Organization" */ + /** fetch aggregated fields from the table: "organization" */ organizations_aggregate: Organizations_Aggregate - /** fetch data from the table: "Person" using primary key columns */ + /** fetch data from the table: "person" using primary key columns */ person?: Maybe - /** fetch data from the table: "Person" */ + /** fetch data from the table: "person" */ persons: Array - /** fetch aggregated fields from the table: "Person" */ + /** fetch aggregated fields from the table: "person" */ persons_aggregate: Persons_Aggregate - /** fetch data from the table: "Position" using primary key columns */ + /** fetch data from the table: "position" using primary key columns */ position?: Maybe /** An array relationship */ positions: Array /** An aggregate relationship */ positions_aggregate: Positions_Aggregate - /** fetch data from the table: "PredicateObject" using primary key columns */ - predicateObject?: Maybe - /** fetch data from the table: "PredicateObject" */ - predicateObjects: Array - /** fetch aggregated fields from the table: "PredicateObject" */ - predicateObjects_aggregate: PredicateObjects_Aggregate - /** fetch data from the table: "Redemption" using primary key columns */ + /** fetch data from the table: "predicate_object" */ + predicate_objects: Array + /** fetch aggregated fields from the table: "predicate_object" */ + predicate_objects_aggregate: Predicate_Objects_Aggregate + /** fetch data from the table: "predicate_object" using primary key columns */ + predicate_objects_by_pk?: Maybe + /** fetch data from the table: "redemption" using primary key columns */ redemption?: Maybe /** An array relationship */ redemptions: Array /** An aggregate relationship */ redemptions_aggregate: Redemptions_Aggregate - /** fetch data from the table: "Signal" using primary key columns */ + /** fetch data from the table: "signal" using primary key columns */ signal?: Maybe /** An array relationship */ signals: Array /** An aggregate relationship */ signals_aggregate: Signals_Aggregate - /** execute function "signals_from_following" which returns "Signal" */ + /** execute function "signals_from_following" which returns "signal" */ signals_from_following: Array - /** execute function "signals_from_following" and query aggregates on result of table type "Signal" */ + /** execute function "signals_from_following" and query aggregates on result of table type "signal" */ signals_from_following_aggregate: Signals_Aggregate - /** fetch data from the table: "Stats" using primary key columns */ + /** fetch data from the table: "stats" using primary key columns */ stat?: Maybe - /** fetch data from the table: "StatsHour" using primary key columns */ - statHour?: Maybe - /** fetch data from the table: "StatsHour" */ - statHours: Array - /** fetch aggregated fields from the table: "StatsHour" */ - statHours_aggregate: StatHours_Aggregate - /** fetch data from the table: "Stats" */ + /** fetch data from the table: "stats" */ stats: Array - /** fetch aggregated fields from the table: "Stats" */ + /** fetch aggregated fields from the table: "stats" */ stats_aggregate: Stats_Aggregate - /** fetch data from the table: "Thing" using primary key columns */ + /** fetch data from the table: "thing" using primary key columns */ thing?: Maybe - /** fetch data from the table: "Thing" */ + /** fetch data from the table: "thing" */ things: Array - /** fetch aggregated fields from the table: "Thing" */ + /** fetch aggregated fields from the table: "thing" */ things_aggregate: Things_Aggregate - /** fetch data from the table: "Triple" using primary key columns */ + /** fetch data from the table: "triple" using primary key columns */ triple?: Maybe - /** fetch data from the table: "Triple" */ + /** An array relationship */ triples: Array - /** fetch aggregated fields from the table: "Triple" */ + /** An aggregate relationship */ triples_aggregate: Triples_Aggregate - /** fetch data from the table: "Vault" using primary key columns */ + /** fetch data from the table: "vault" using primary key columns */ vault?: Maybe - /** fetch data from the table: "Vault" */ + /** fetch data from the table: "vault" */ vaults: Array - /** fetch aggregated fields from the table: "Vault" */ + /** fetch aggregated fields from the table: "vault" */ vaults_aggregate: Vaults_Aggregate } @@ -3910,24 +4506,24 @@ export type Query_RootAtomArgs = { id: Scalars['numeric']['input'] } -export type Query_RootAtomValueArgs = { +export type Query_RootAtom_ValueArgs = { id: Scalars['numeric']['input'] } -export type Query_RootAtomValuesArgs = { - distinct_on?: InputMaybe> +export type Query_RootAtom_ValuesArgs = { + distinct_on?: InputMaybe> limit?: InputMaybe offset?: InputMaybe - order_by?: InputMaybe> - where?: InputMaybe + order_by?: InputMaybe> + where?: InputMaybe } -export type Query_RootAtomValues_AggregateArgs = { - distinct_on?: InputMaybe> +export type Query_RootAtom_Values_AggregateArgs = { + distinct_on?: InputMaybe> limit?: InputMaybe offset?: InputMaybe - order_by?: InputMaybe> - where?: InputMaybe + order_by?: InputMaybe> + where?: InputMaybe } export type Query_RootAtomsArgs = { @@ -3966,16 +4562,28 @@ export type Query_RootBooks_AggregateArgs = { where?: InputMaybe } -export type Query_RootChainLinkPriceArgs = { +export type Query_RootCached_ImageArgs = { + url: Scalars['String']['input'] +} + +export type Query_RootCached_ImagesArgs = { + distinct_on?: InputMaybe> + limit?: InputMaybe + offset?: InputMaybe + order_by?: InputMaybe> + where?: InputMaybe +} + +export type Query_RootChainlink_PriceArgs = { id: Scalars['numeric']['input'] } -export type Query_RootChainLinkPricesArgs = { - distinct_on?: InputMaybe> +export type Query_RootChainlink_PricesArgs = { + distinct_on?: InputMaybe> limit?: InputMaybe offset?: InputMaybe - order_by?: InputMaybe> - where?: InputMaybe + order_by?: InputMaybe> + where?: InputMaybe } export type Query_RootClaimArgs = { @@ -4056,24 +4664,24 @@ export type Query_RootEvents_AggregateArgs = { where?: InputMaybe } -export type Query_RootFeeTranfersArgs = { - distinct_on?: InputMaybe> - limit?: InputMaybe - offset?: InputMaybe - order_by?: InputMaybe> - where?: InputMaybe +export type Query_RootFee_TransferArgs = { + id: Scalars['String']['input'] } -export type Query_RootFeeTranfers_AggregateArgs = { - distinct_on?: InputMaybe> +export type Query_RootFee_TransfersArgs = { + distinct_on?: InputMaybe> limit?: InputMaybe offset?: InputMaybe - order_by?: InputMaybe> - where?: InputMaybe + order_by?: InputMaybe> + where?: InputMaybe } -export type Query_RootFeeTransfersArgs = { - id: Scalars['String']['input'] +export type Query_RootFee_Transfers_AggregateArgs = { + distinct_on?: InputMaybe> + limit?: InputMaybe + offset?: InputMaybe + order_by?: InputMaybe> + where?: InputMaybe } export type Query_RootFollowingArgs = { @@ -4154,24 +4762,24 @@ export type Query_RootPositions_AggregateArgs = { where?: InputMaybe } -export type Query_RootPredicateObjectArgs = { - id: Scalars['String']['input'] -} - -export type Query_RootPredicateObjectsArgs = { - distinct_on?: InputMaybe> +export type Query_RootPredicate_ObjectsArgs = { + distinct_on?: InputMaybe> limit?: InputMaybe offset?: InputMaybe - order_by?: InputMaybe> - where?: InputMaybe + order_by?: InputMaybe> + where?: InputMaybe } -export type Query_RootPredicateObjects_AggregateArgs = { - distinct_on?: InputMaybe> +export type Query_RootPredicate_Objects_AggregateArgs = { + distinct_on?: InputMaybe> limit?: InputMaybe offset?: InputMaybe - order_by?: InputMaybe> - where?: InputMaybe + order_by?: InputMaybe> + where?: InputMaybe +} + +export type Query_RootPredicate_Objects_By_PkArgs = { + id: Scalars['String']['input'] } export type Query_RootRedemptionArgs = { @@ -4236,26 +4844,6 @@ export type Query_RootStatArgs = { id: Scalars['Int']['input'] } -export type Query_RootStatHourArgs = { - id: Scalars['Int']['input'] -} - -export type Query_RootStatHoursArgs = { - distinct_on?: InputMaybe> - limit?: InputMaybe - offset?: InputMaybe - order_by?: InputMaybe> - where?: InputMaybe -} - -export type Query_RootStatHours_AggregateArgs = { - distinct_on?: InputMaybe> - limit?: InputMaybe - offset?: InputMaybe - order_by?: InputMaybe> - where?: InputMaybe -} - export type Query_RootStatsArgs = { distinct_on?: InputMaybe> limit?: InputMaybe @@ -4332,29 +4920,73 @@ export type Query_RootVaults_AggregateArgs = { where?: InputMaybe } -/** columns and relationships of "Redemption" */ +/** columns and relationships of "redemption" */ export type Redemptions = { __typename?: 'redemptions' - assetsForReceiver: Scalars['numeric']['output'] - blockNumber: Scalars['numeric']['output'] - blockTimestamp: Scalars['numeric']['output'] - exitFee: Scalars['numeric']['output'] + assets_for_receiver: Scalars['numeric']['output'] + block_number: Scalars['numeric']['output'] + block_timestamp: Scalars['bigint']['output'] + /** An array relationship */ + events: Array + /** An aggregate relationship */ + events_aggregate: Events_Aggregate + exit_fee: Scalars['numeric']['output'] id: Scalars['String']['output'] /** An object relationship */ - receiver?: Maybe - receiverId: Scalars['String']['output'] + receiver: Accounts + receiver_id: Scalars['String']['output'] /** An object relationship */ sender?: Maybe - senderId: Scalars['String']['output'] - senderTotalSharesInVault: Scalars['numeric']['output'] - sharesRedeemedBySender: Scalars['numeric']['output'] - transactionHash: Scalars['bytea']['output'] + sender_id: Scalars['String']['output'] + sender_total_shares_in_vault: Scalars['numeric']['output'] + shares_redeemed_by_sender: Scalars['numeric']['output'] + /** An array relationship */ + signals: Array + /** An aggregate relationship */ + signals_aggregate: Signals_Aggregate + transaction_hash: Scalars['bytea']['output'] /** An object relationship */ - vault?: Maybe - vaultId: Scalars['numeric']['output'] + vault: Vaults + vault_id: Scalars['numeric']['output'] +} + +/** columns and relationships of "redemption" */ +export type RedemptionsEventsArgs = { + distinct_on?: InputMaybe> + limit?: InputMaybe + offset?: InputMaybe + order_by?: InputMaybe> + where?: InputMaybe +} + +/** columns and relationships of "redemption" */ +export type RedemptionsEvents_AggregateArgs = { + distinct_on?: InputMaybe> + limit?: InputMaybe + offset?: InputMaybe + order_by?: InputMaybe> + where?: InputMaybe +} + +/** columns and relationships of "redemption" */ +export type RedemptionsSignalsArgs = { + distinct_on?: InputMaybe> + limit?: InputMaybe + offset?: InputMaybe + order_by?: InputMaybe> + where?: InputMaybe } -/** aggregated selection of "Redemption" */ +/** columns and relationships of "redemption" */ +export type RedemptionsSignals_AggregateArgs = { + distinct_on?: InputMaybe> + limit?: InputMaybe + offset?: InputMaybe + order_by?: InputMaybe> + where?: InputMaybe +} + +/** aggregated selection of "redemption" */ export type Redemptions_Aggregate = { __typename?: 'redemptions_aggregate' aggregate?: Maybe @@ -4372,7 +5004,7 @@ export type Redemptions_Aggregate_Bool_Exp_Count = { predicate: Int_Comparison_Exp } -/** aggregate fields of "Redemption" */ +/** aggregate fields of "redemption" */ export type Redemptions_Aggregate_Fields = { __typename?: 'redemptions_aggregate_fields' avg?: Maybe @@ -4388,13 +5020,13 @@ export type Redemptions_Aggregate_Fields = { variance?: Maybe } -/** aggregate fields of "Redemption" */ +/** aggregate fields of "redemption" */ export type Redemptions_Aggregate_FieldsCountArgs = { columns?: InputMaybe> distinct?: InputMaybe } -/** order by aggregate values of table "Redemption" */ +/** order by aggregate values of table "redemption" */ export type Redemptions_Aggregate_Order_By = { avg?: InputMaybe count?: InputMaybe @@ -4412,215 +5044,221 @@ export type Redemptions_Aggregate_Order_By = { /** aggregate avg on columns */ export type Redemptions_Avg_Fields = { __typename?: 'redemptions_avg_fields' - assetsForReceiver?: Maybe - blockNumber?: Maybe - blockTimestamp?: Maybe - exitFee?: Maybe - senderTotalSharesInVault?: Maybe - sharesRedeemedBySender?: Maybe - vaultId?: Maybe + assets_for_receiver?: Maybe + block_number?: Maybe + block_timestamp?: Maybe + exit_fee?: Maybe + sender_total_shares_in_vault?: Maybe + shares_redeemed_by_sender?: Maybe + vault_id?: Maybe } -/** order by avg() on columns of table "Redemption" */ +/** order by avg() on columns of table "redemption" */ export type Redemptions_Avg_Order_By = { - assetsForReceiver?: InputMaybe - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe - exitFee?: InputMaybe - senderTotalSharesInVault?: InputMaybe - sharesRedeemedBySender?: InputMaybe - vaultId?: InputMaybe + assets_for_receiver?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe + exit_fee?: InputMaybe + sender_total_shares_in_vault?: InputMaybe + shares_redeemed_by_sender?: InputMaybe + vault_id?: InputMaybe } -/** Boolean expression to filter rows from the table "Redemption". All fields are combined with a logical 'AND'. */ +/** Boolean expression to filter rows from the table "redemption". All fields are combined with a logical 'AND'. */ export type Redemptions_Bool_Exp = { _and?: InputMaybe> _not?: InputMaybe _or?: InputMaybe> - assetsForReceiver?: InputMaybe - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe - exitFee?: InputMaybe + assets_for_receiver?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe + events?: InputMaybe + events_aggregate?: InputMaybe + exit_fee?: InputMaybe id?: InputMaybe receiver?: InputMaybe - receiverId?: InputMaybe + receiver_id?: InputMaybe sender?: InputMaybe - senderId?: InputMaybe - senderTotalSharesInVault?: InputMaybe - sharesRedeemedBySender?: InputMaybe - transactionHash?: InputMaybe + sender_id?: InputMaybe + sender_total_shares_in_vault?: InputMaybe + shares_redeemed_by_sender?: InputMaybe + signals?: InputMaybe + signals_aggregate?: InputMaybe + transaction_hash?: InputMaybe vault?: InputMaybe - vaultId?: InputMaybe + vault_id?: InputMaybe } /** aggregate max on columns */ export type Redemptions_Max_Fields = { __typename?: 'redemptions_max_fields' - assetsForReceiver?: Maybe - blockNumber?: Maybe - blockTimestamp?: Maybe - exitFee?: Maybe + assets_for_receiver?: Maybe + block_number?: Maybe + block_timestamp?: Maybe + exit_fee?: Maybe id?: Maybe - receiverId?: Maybe - senderId?: Maybe - senderTotalSharesInVault?: Maybe - sharesRedeemedBySender?: Maybe - vaultId?: Maybe + receiver_id?: Maybe + sender_id?: Maybe + sender_total_shares_in_vault?: Maybe + shares_redeemed_by_sender?: Maybe + vault_id?: Maybe } -/** order by max() on columns of table "Redemption" */ +/** order by max() on columns of table "redemption" */ export type Redemptions_Max_Order_By = { - assetsForReceiver?: InputMaybe - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe - exitFee?: InputMaybe + assets_for_receiver?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe + exit_fee?: InputMaybe id?: InputMaybe - receiverId?: InputMaybe - senderId?: InputMaybe - senderTotalSharesInVault?: InputMaybe - sharesRedeemedBySender?: InputMaybe - vaultId?: InputMaybe + receiver_id?: InputMaybe + sender_id?: InputMaybe + sender_total_shares_in_vault?: InputMaybe + shares_redeemed_by_sender?: InputMaybe + vault_id?: InputMaybe } /** aggregate min on columns */ export type Redemptions_Min_Fields = { __typename?: 'redemptions_min_fields' - assetsForReceiver?: Maybe - blockNumber?: Maybe - blockTimestamp?: Maybe - exitFee?: Maybe + assets_for_receiver?: Maybe + block_number?: Maybe + block_timestamp?: Maybe + exit_fee?: Maybe id?: Maybe - receiverId?: Maybe - senderId?: Maybe - senderTotalSharesInVault?: Maybe - sharesRedeemedBySender?: Maybe - vaultId?: Maybe + receiver_id?: Maybe + sender_id?: Maybe + sender_total_shares_in_vault?: Maybe + shares_redeemed_by_sender?: Maybe + vault_id?: Maybe } -/** order by min() on columns of table "Redemption" */ +/** order by min() on columns of table "redemption" */ export type Redemptions_Min_Order_By = { - assetsForReceiver?: InputMaybe - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe - exitFee?: InputMaybe + assets_for_receiver?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe + exit_fee?: InputMaybe id?: InputMaybe - receiverId?: InputMaybe - senderId?: InputMaybe - senderTotalSharesInVault?: InputMaybe - sharesRedeemedBySender?: InputMaybe - vaultId?: InputMaybe + receiver_id?: InputMaybe + sender_id?: InputMaybe + sender_total_shares_in_vault?: InputMaybe + shares_redeemed_by_sender?: InputMaybe + vault_id?: InputMaybe } -/** Ordering options when selecting data from "Redemption". */ +/** Ordering options when selecting data from "redemption". */ export type Redemptions_Order_By = { - assetsForReceiver?: InputMaybe - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe - exitFee?: InputMaybe + assets_for_receiver?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe + events_aggregate?: InputMaybe + exit_fee?: InputMaybe id?: InputMaybe receiver?: InputMaybe - receiverId?: InputMaybe + receiver_id?: InputMaybe sender?: InputMaybe - senderId?: InputMaybe - senderTotalSharesInVault?: InputMaybe - sharesRedeemedBySender?: InputMaybe - transactionHash?: InputMaybe + sender_id?: InputMaybe + sender_total_shares_in_vault?: InputMaybe + shares_redeemed_by_sender?: InputMaybe + signals_aggregate?: InputMaybe + transaction_hash?: InputMaybe vault?: InputMaybe - vaultId?: InputMaybe + vault_id?: InputMaybe } -/** select columns of table "Redemption" */ +/** select columns of table "redemption" */ export type Redemptions_Select_Column = /** column name */ - | 'assetsForReceiver' + | 'assets_for_receiver' /** column name */ - | 'blockNumber' + | 'block_number' /** column name */ - | 'blockTimestamp' + | 'block_timestamp' /** column name */ - | 'exitFee' + | 'exit_fee' /** column name */ | 'id' /** column name */ - | 'receiverId' + | 'receiver_id' /** column name */ - | 'senderId' + | 'sender_id' /** column name */ - | 'senderTotalSharesInVault' + | 'sender_total_shares_in_vault' /** column name */ - | 'sharesRedeemedBySender' + | 'shares_redeemed_by_sender' /** column name */ - | 'transactionHash' + | 'transaction_hash' /** column name */ - | 'vaultId' + | 'vault_id' /** aggregate stddev on columns */ export type Redemptions_Stddev_Fields = { __typename?: 'redemptions_stddev_fields' - assetsForReceiver?: Maybe - blockNumber?: Maybe - blockTimestamp?: Maybe - exitFee?: Maybe - senderTotalSharesInVault?: Maybe - sharesRedeemedBySender?: Maybe - vaultId?: Maybe + assets_for_receiver?: Maybe + block_number?: Maybe + block_timestamp?: Maybe + exit_fee?: Maybe + sender_total_shares_in_vault?: Maybe + shares_redeemed_by_sender?: Maybe + vault_id?: Maybe } -/** order by stddev() on columns of table "Redemption" */ +/** order by stddev() on columns of table "redemption" */ export type Redemptions_Stddev_Order_By = { - assetsForReceiver?: InputMaybe - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe - exitFee?: InputMaybe - senderTotalSharesInVault?: InputMaybe - sharesRedeemedBySender?: InputMaybe - vaultId?: InputMaybe + assets_for_receiver?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe + exit_fee?: InputMaybe + sender_total_shares_in_vault?: InputMaybe + shares_redeemed_by_sender?: InputMaybe + vault_id?: InputMaybe } /** aggregate stddev_pop on columns */ export type Redemptions_Stddev_Pop_Fields = { __typename?: 'redemptions_stddev_pop_fields' - assetsForReceiver?: Maybe - blockNumber?: Maybe - blockTimestamp?: Maybe - exitFee?: Maybe - senderTotalSharesInVault?: Maybe - sharesRedeemedBySender?: Maybe - vaultId?: Maybe + assets_for_receiver?: Maybe + block_number?: Maybe + block_timestamp?: Maybe + exit_fee?: Maybe + sender_total_shares_in_vault?: Maybe + shares_redeemed_by_sender?: Maybe + vault_id?: Maybe } -/** order by stddev_pop() on columns of table "Redemption" */ +/** order by stddev_pop() on columns of table "redemption" */ export type Redemptions_Stddev_Pop_Order_By = { - assetsForReceiver?: InputMaybe - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe - exitFee?: InputMaybe - senderTotalSharesInVault?: InputMaybe - sharesRedeemedBySender?: InputMaybe - vaultId?: InputMaybe + assets_for_receiver?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe + exit_fee?: InputMaybe + sender_total_shares_in_vault?: InputMaybe + shares_redeemed_by_sender?: InputMaybe + vault_id?: InputMaybe } /** aggregate stddev_samp on columns */ export type Redemptions_Stddev_Samp_Fields = { __typename?: 'redemptions_stddev_samp_fields' - assetsForReceiver?: Maybe - blockNumber?: Maybe - blockTimestamp?: Maybe - exitFee?: Maybe - senderTotalSharesInVault?: Maybe - sharesRedeemedBySender?: Maybe - vaultId?: Maybe + assets_for_receiver?: Maybe + block_number?: Maybe + block_timestamp?: Maybe + exit_fee?: Maybe + sender_total_shares_in_vault?: Maybe + shares_redeemed_by_sender?: Maybe + vault_id?: Maybe } -/** order by stddev_samp() on columns of table "Redemption" */ +/** order by stddev_samp() on columns of table "redemption" */ export type Redemptions_Stddev_Samp_Order_By = { - assetsForReceiver?: InputMaybe - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe - exitFee?: InputMaybe - senderTotalSharesInVault?: InputMaybe - sharesRedeemedBySender?: InputMaybe - vaultId?: InputMaybe + assets_for_receiver?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe + exit_fee?: InputMaybe + sender_total_shares_in_vault?: InputMaybe + shares_redeemed_by_sender?: InputMaybe + vault_id?: InputMaybe } /** Streaming cursor of the table "redemptions" */ @@ -4633,138 +5271,137 @@ export type Redemptions_Stream_Cursor_Input = { /** Initial value of the column from where the streaming should start */ export type Redemptions_Stream_Cursor_Value_Input = { - assetsForReceiver?: InputMaybe - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe - exitFee?: InputMaybe + assets_for_receiver?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe + exit_fee?: InputMaybe id?: InputMaybe - receiverId?: InputMaybe - senderId?: InputMaybe - senderTotalSharesInVault?: InputMaybe - sharesRedeemedBySender?: InputMaybe - transactionHash?: InputMaybe - vaultId?: InputMaybe + receiver_id?: InputMaybe + sender_id?: InputMaybe + sender_total_shares_in_vault?: InputMaybe + shares_redeemed_by_sender?: InputMaybe + transaction_hash?: InputMaybe + vault_id?: InputMaybe } /** aggregate sum on columns */ export type Redemptions_Sum_Fields = { __typename?: 'redemptions_sum_fields' - assetsForReceiver?: Maybe - blockNumber?: Maybe - blockTimestamp?: Maybe - exitFee?: Maybe - senderTotalSharesInVault?: Maybe - sharesRedeemedBySender?: Maybe - vaultId?: Maybe + assets_for_receiver?: Maybe + block_number?: Maybe + block_timestamp?: Maybe + exit_fee?: Maybe + sender_total_shares_in_vault?: Maybe + shares_redeemed_by_sender?: Maybe + vault_id?: Maybe } -/** order by sum() on columns of table "Redemption" */ +/** order by sum() on columns of table "redemption" */ export type Redemptions_Sum_Order_By = { - assetsForReceiver?: InputMaybe - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe - exitFee?: InputMaybe - senderTotalSharesInVault?: InputMaybe - sharesRedeemedBySender?: InputMaybe - vaultId?: InputMaybe + assets_for_receiver?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe + exit_fee?: InputMaybe + sender_total_shares_in_vault?: InputMaybe + shares_redeemed_by_sender?: InputMaybe + vault_id?: InputMaybe } /** aggregate var_pop on columns */ export type Redemptions_Var_Pop_Fields = { __typename?: 'redemptions_var_pop_fields' - assetsForReceiver?: Maybe - blockNumber?: Maybe - blockTimestamp?: Maybe - exitFee?: Maybe - senderTotalSharesInVault?: Maybe - sharesRedeemedBySender?: Maybe - vaultId?: Maybe + assets_for_receiver?: Maybe + block_number?: Maybe + block_timestamp?: Maybe + exit_fee?: Maybe + sender_total_shares_in_vault?: Maybe + shares_redeemed_by_sender?: Maybe + vault_id?: Maybe } -/** order by var_pop() on columns of table "Redemption" */ +/** order by var_pop() on columns of table "redemption" */ export type Redemptions_Var_Pop_Order_By = { - assetsForReceiver?: InputMaybe - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe - exitFee?: InputMaybe - senderTotalSharesInVault?: InputMaybe - sharesRedeemedBySender?: InputMaybe - vaultId?: InputMaybe + assets_for_receiver?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe + exit_fee?: InputMaybe + sender_total_shares_in_vault?: InputMaybe + shares_redeemed_by_sender?: InputMaybe + vault_id?: InputMaybe } /** aggregate var_samp on columns */ export type Redemptions_Var_Samp_Fields = { __typename?: 'redemptions_var_samp_fields' - assetsForReceiver?: Maybe - blockNumber?: Maybe - blockTimestamp?: Maybe - exitFee?: Maybe - senderTotalSharesInVault?: Maybe - sharesRedeemedBySender?: Maybe - vaultId?: Maybe + assets_for_receiver?: Maybe + block_number?: Maybe + block_timestamp?: Maybe + exit_fee?: Maybe + sender_total_shares_in_vault?: Maybe + shares_redeemed_by_sender?: Maybe + vault_id?: Maybe } -/** order by var_samp() on columns of table "Redemption" */ +/** order by var_samp() on columns of table "redemption" */ export type Redemptions_Var_Samp_Order_By = { - assetsForReceiver?: InputMaybe - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe - exitFee?: InputMaybe - senderTotalSharesInVault?: InputMaybe - sharesRedeemedBySender?: InputMaybe - vaultId?: InputMaybe + assets_for_receiver?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe + exit_fee?: InputMaybe + sender_total_shares_in_vault?: InputMaybe + shares_redeemed_by_sender?: InputMaybe + vault_id?: InputMaybe } /** aggregate variance on columns */ export type Redemptions_Variance_Fields = { __typename?: 'redemptions_variance_fields' - assetsForReceiver?: Maybe - blockNumber?: Maybe - blockTimestamp?: Maybe - exitFee?: Maybe - senderTotalSharesInVault?: Maybe - sharesRedeemedBySender?: Maybe - vaultId?: Maybe + assets_for_receiver?: Maybe + block_number?: Maybe + block_timestamp?: Maybe + exit_fee?: Maybe + sender_total_shares_in_vault?: Maybe + shares_redeemed_by_sender?: Maybe + vault_id?: Maybe } -/** order by variance() on columns of table "Redemption" */ +/** order by variance() on columns of table "redemption" */ export type Redemptions_Variance_Order_By = { - assetsForReceiver?: InputMaybe - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe - exitFee?: InputMaybe - senderTotalSharesInVault?: InputMaybe - sharesRedeemedBySender?: InputMaybe - vaultId?: InputMaybe + assets_for_receiver?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe + exit_fee?: InputMaybe + sender_total_shares_in_vault?: InputMaybe + shares_redeemed_by_sender?: InputMaybe + vault_id?: InputMaybe } -/** columns and relationships of "Signal" */ +/** columns and relationships of "signal" */ export type Signals = { __typename?: 'signals' /** An object relationship */ account?: Maybe - accountId: Scalars['String']['output'] + account_id: Scalars['String']['output'] /** An object relationship */ atom?: Maybe - atomId?: Maybe - blockNumber: Scalars['numeric']['output'] - blockTimestamp: Scalars['numeric']['output'] + atom_id?: Maybe + block_number: Scalars['numeric']['output'] + block_timestamp: Scalars['bigint']['output'] delta: Scalars['numeric']['output'] /** An object relationship */ deposit?: Maybe - depositId?: Maybe + deposit_id?: Maybe id: Scalars['String']['output'] /** An object relationship */ redemption?: Maybe - redemptionId?: Maybe - relativeStrength: Scalars['numeric']['output'] - transactionHash: Scalars['bytea']['output'] + redemption_id?: Maybe + transaction_hash: Scalars['bytea']['output'] /** An object relationship */ triple?: Maybe - tripleId?: Maybe + triple_id?: Maybe } -/** aggregated selection of "Signal" */ +/** aggregated selection of "signal" */ export type Signals_Aggregate = { __typename?: 'signals_aggregate' aggregate?: Maybe @@ -4782,7 +5419,7 @@ export type Signals_Aggregate_Bool_Exp_Count = { predicate: Int_Comparison_Exp } -/** aggregate fields of "Signal" */ +/** aggregate fields of "signal" */ export type Signals_Aggregate_Fields = { __typename?: 'signals_aggregate_fields' avg?: Maybe @@ -4798,13 +5435,13 @@ export type Signals_Aggregate_Fields = { variance?: Maybe } -/** aggregate fields of "Signal" */ +/** aggregate fields of "signal" */ export type Signals_Aggregate_FieldsCountArgs = { columns?: InputMaybe> distinct?: InputMaybe } -/** order by aggregate values of table "Signal" */ +/** order by aggregate values of table "signal" */ export type Signals_Aggregate_Order_By = { avg?: InputMaybe count?: InputMaybe @@ -4822,45 +5459,42 @@ export type Signals_Aggregate_Order_By = { /** aggregate avg on columns */ export type Signals_Avg_Fields = { __typename?: 'signals_avg_fields' - atomId?: Maybe - blockNumber?: Maybe - blockTimestamp?: Maybe + atom_id?: Maybe + block_number?: Maybe + block_timestamp?: Maybe delta?: Maybe - relativeStrength?: Maybe - tripleId?: Maybe + triple_id?: Maybe } -/** order by avg() on columns of table "Signal" */ +/** order by avg() on columns of table "signal" */ export type Signals_Avg_Order_By = { - atomId?: InputMaybe - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe + atom_id?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe delta?: InputMaybe - relativeStrength?: InputMaybe - tripleId?: InputMaybe + triple_id?: InputMaybe } -/** Boolean expression to filter rows from the table "Signal". All fields are combined with a logical 'AND'. */ +/** Boolean expression to filter rows from the table "signal". All fields are combined with a logical 'AND'. */ export type Signals_Bool_Exp = { _and?: InputMaybe> _not?: InputMaybe _or?: InputMaybe> account?: InputMaybe - accountId?: InputMaybe + account_id?: InputMaybe atom?: InputMaybe - atomId?: InputMaybe - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe + atom_id?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe delta?: InputMaybe deposit?: InputMaybe - depositId?: InputMaybe + deposit_id?: InputMaybe id?: InputMaybe redemption?: InputMaybe - redemptionId?: InputMaybe - relativeStrength?: InputMaybe - transactionHash?: InputMaybe + redemption_id?: InputMaybe + transaction_hash?: InputMaybe triple?: InputMaybe - tripleId?: InputMaybe + triple_id?: InputMaybe } export type Signals_From_Following_Args = { @@ -4870,167 +5504,154 @@ export type Signals_From_Following_Args = { /** aggregate max on columns */ export type Signals_Max_Fields = { __typename?: 'signals_max_fields' - accountId?: Maybe - atomId?: Maybe - blockNumber?: Maybe - blockTimestamp?: Maybe + account_id?: Maybe + atom_id?: Maybe + block_number?: Maybe + block_timestamp?: Maybe delta?: Maybe - depositId?: Maybe + deposit_id?: Maybe id?: Maybe - redemptionId?: Maybe - relativeStrength?: Maybe - tripleId?: Maybe + redemption_id?: Maybe + triple_id?: Maybe } -/** order by max() on columns of table "Signal" */ +/** order by max() on columns of table "signal" */ export type Signals_Max_Order_By = { - accountId?: InputMaybe - atomId?: InputMaybe - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe + account_id?: InputMaybe + atom_id?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe delta?: InputMaybe - depositId?: InputMaybe + deposit_id?: InputMaybe id?: InputMaybe - redemptionId?: InputMaybe - relativeStrength?: InputMaybe - tripleId?: InputMaybe + redemption_id?: InputMaybe + triple_id?: InputMaybe } /** aggregate min on columns */ export type Signals_Min_Fields = { __typename?: 'signals_min_fields' - accountId?: Maybe - atomId?: Maybe - blockNumber?: Maybe - blockTimestamp?: Maybe + account_id?: Maybe + atom_id?: Maybe + block_number?: Maybe + block_timestamp?: Maybe delta?: Maybe - depositId?: Maybe + deposit_id?: Maybe id?: Maybe - redemptionId?: Maybe - relativeStrength?: Maybe - tripleId?: Maybe + redemption_id?: Maybe + triple_id?: Maybe } -/** order by min() on columns of table "Signal" */ +/** order by min() on columns of table "signal" */ export type Signals_Min_Order_By = { - accountId?: InputMaybe - atomId?: InputMaybe - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe + account_id?: InputMaybe + atom_id?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe delta?: InputMaybe - depositId?: InputMaybe + deposit_id?: InputMaybe id?: InputMaybe - redemptionId?: InputMaybe - relativeStrength?: InputMaybe - tripleId?: InputMaybe + redemption_id?: InputMaybe + triple_id?: InputMaybe } -/** Ordering options when selecting data from "Signal". */ +/** Ordering options when selecting data from "signal". */ export type Signals_Order_By = { account?: InputMaybe - accountId?: InputMaybe + account_id?: InputMaybe atom?: InputMaybe - atomId?: InputMaybe - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe + atom_id?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe delta?: InputMaybe deposit?: InputMaybe - depositId?: InputMaybe + deposit_id?: InputMaybe id?: InputMaybe redemption?: InputMaybe - redemptionId?: InputMaybe - relativeStrength?: InputMaybe - transactionHash?: InputMaybe + redemption_id?: InputMaybe + transaction_hash?: InputMaybe triple?: InputMaybe - tripleId?: InputMaybe + triple_id?: InputMaybe } -/** select columns of table "Signal" */ +/** select columns of table "signal" */ export type Signals_Select_Column = /** column name */ - | 'accountId' + | 'account_id' /** column name */ - | 'atomId' + | 'atom_id' /** column name */ - | 'blockNumber' + | 'block_number' /** column name */ - | 'blockTimestamp' + | 'block_timestamp' /** column name */ | 'delta' /** column name */ - | 'depositId' + | 'deposit_id' /** column name */ | 'id' /** column name */ - | 'redemptionId' + | 'redemption_id' /** column name */ - | 'relativeStrength' + | 'transaction_hash' /** column name */ - | 'transactionHash' - /** column name */ - | 'tripleId' + | 'triple_id' /** aggregate stddev on columns */ export type Signals_Stddev_Fields = { __typename?: 'signals_stddev_fields' - atomId?: Maybe - blockNumber?: Maybe - blockTimestamp?: Maybe + atom_id?: Maybe + block_number?: Maybe + block_timestamp?: Maybe delta?: Maybe - relativeStrength?: Maybe - tripleId?: Maybe + triple_id?: Maybe } -/** order by stddev() on columns of table "Signal" */ +/** order by stddev() on columns of table "signal" */ export type Signals_Stddev_Order_By = { - atomId?: InputMaybe - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe + atom_id?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe delta?: InputMaybe - relativeStrength?: InputMaybe - tripleId?: InputMaybe + triple_id?: InputMaybe } /** aggregate stddev_pop on columns */ export type Signals_Stddev_Pop_Fields = { __typename?: 'signals_stddev_pop_fields' - atomId?: Maybe - blockNumber?: Maybe - blockTimestamp?: Maybe + atom_id?: Maybe + block_number?: Maybe + block_timestamp?: Maybe delta?: Maybe - relativeStrength?: Maybe - tripleId?: Maybe + triple_id?: Maybe } -/** order by stddev_pop() on columns of table "Signal" */ +/** order by stddev_pop() on columns of table "signal" */ export type Signals_Stddev_Pop_Order_By = { - atomId?: InputMaybe - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe + atom_id?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe delta?: InputMaybe - relativeStrength?: InputMaybe - tripleId?: InputMaybe + triple_id?: InputMaybe } /** aggregate stddev_samp on columns */ export type Signals_Stddev_Samp_Fields = { __typename?: 'signals_stddev_samp_fields' - atomId?: Maybe - blockNumber?: Maybe - blockTimestamp?: Maybe + atom_id?: Maybe + block_number?: Maybe + block_timestamp?: Maybe delta?: Maybe - relativeStrength?: Maybe - tripleId?: Maybe + triple_id?: Maybe } -/** order by stddev_samp() on columns of table "Signal" */ +/** order by stddev_samp() on columns of table "signal" */ export type Signals_Stddev_Samp_Order_By = { - atomId?: InputMaybe - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe + atom_id?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe delta?: InputMaybe - relativeStrength?: InputMaybe - tripleId?: InputMaybe + triple_id?: InputMaybe } /** Streaming cursor of the table "signals" */ @@ -5043,362 +5664,115 @@ export type Signals_Stream_Cursor_Input = { /** Initial value of the column from where the streaming should start */ export type Signals_Stream_Cursor_Value_Input = { - accountId?: InputMaybe - atomId?: InputMaybe - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe + account_id?: InputMaybe + atom_id?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe delta?: InputMaybe - depositId?: InputMaybe + deposit_id?: InputMaybe id?: InputMaybe - redemptionId?: InputMaybe - relativeStrength?: InputMaybe - transactionHash?: InputMaybe - tripleId?: InputMaybe + redemption_id?: InputMaybe + transaction_hash?: InputMaybe + triple_id?: InputMaybe } /** aggregate sum on columns */ export type Signals_Sum_Fields = { __typename?: 'signals_sum_fields' - atomId?: Maybe - blockNumber?: Maybe - blockTimestamp?: Maybe + atom_id?: Maybe + block_number?: Maybe + block_timestamp?: Maybe delta?: Maybe - relativeStrength?: Maybe - tripleId?: Maybe + triple_id?: Maybe } -/** order by sum() on columns of table "Signal" */ +/** order by sum() on columns of table "signal" */ export type Signals_Sum_Order_By = { - atomId?: InputMaybe - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe + atom_id?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe delta?: InputMaybe - relativeStrength?: InputMaybe - tripleId?: InputMaybe + triple_id?: InputMaybe } /** aggregate var_pop on columns */ export type Signals_Var_Pop_Fields = { __typename?: 'signals_var_pop_fields' - atomId?: Maybe - blockNumber?: Maybe - blockTimestamp?: Maybe + atom_id?: Maybe + block_number?: Maybe + block_timestamp?: Maybe delta?: Maybe - relativeStrength?: Maybe - tripleId?: Maybe + triple_id?: Maybe } -/** order by var_pop() on columns of table "Signal" */ +/** order by var_pop() on columns of table "signal" */ export type Signals_Var_Pop_Order_By = { - atomId?: InputMaybe - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe + atom_id?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe delta?: InputMaybe - relativeStrength?: InputMaybe - tripleId?: InputMaybe + triple_id?: InputMaybe } /** aggregate var_samp on columns */ export type Signals_Var_Samp_Fields = { __typename?: 'signals_var_samp_fields' - atomId?: Maybe - blockNumber?: Maybe - blockTimestamp?: Maybe + atom_id?: Maybe + block_number?: Maybe + block_timestamp?: Maybe delta?: Maybe - relativeStrength?: Maybe - tripleId?: Maybe + triple_id?: Maybe } -/** order by var_samp() on columns of table "Signal" */ +/** order by var_samp() on columns of table "signal" */ export type Signals_Var_Samp_Order_By = { - atomId?: InputMaybe - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe + atom_id?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe delta?: InputMaybe - relativeStrength?: InputMaybe - tripleId?: InputMaybe + triple_id?: InputMaybe } /** aggregate variance on columns */ export type Signals_Variance_Fields = { __typename?: 'signals_variance_fields' - atomId?: Maybe - blockNumber?: Maybe - blockTimestamp?: Maybe + atom_id?: Maybe + block_number?: Maybe + block_timestamp?: Maybe delta?: Maybe - relativeStrength?: Maybe - tripleId?: Maybe + triple_id?: Maybe } -/** order by variance() on columns of table "Signal" */ +/** order by variance() on columns of table "signal" */ export type Signals_Variance_Order_By = { - atomId?: InputMaybe - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe + atom_id?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe delta?: InputMaybe - relativeStrength?: InputMaybe - tripleId?: InputMaybe + triple_id?: InputMaybe } -/** columns and relationships of "StatsHour" */ -export type StatHours = { - __typename?: 'statHours' - contractBalance: Scalars['numeric']['output'] +/** columns and relationships of "stats" */ +export type Stats = { + __typename?: 'stats' + contract_balance?: Maybe id: Scalars['Int']['output'] - totalAccounts: Scalars['Int']['output'] - totalAtoms: Scalars['Int']['output'] - totalFees: Scalars['numeric']['output'] - totalPositions: Scalars['Int']['output'] - totalSignals: Scalars['Int']['output'] - totalTriples: Scalars['Int']['output'] -} - -/** aggregated selection of "StatsHour" */ -export type StatHours_Aggregate = { - __typename?: 'statHours_aggregate' - aggregate?: Maybe - nodes: Array + total_accounts?: Maybe + total_atoms?: Maybe + total_fees?: Maybe + total_positions?: Maybe + total_signals?: Maybe + total_triples?: Maybe } -/** aggregate fields of "StatsHour" */ -export type StatHours_Aggregate_Fields = { - __typename?: 'statHours_aggregate_fields' - avg?: Maybe - count: Scalars['Int']['output'] - 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 "StatsHour" */ -export type StatHours_Aggregate_FieldsCountArgs = { - columns?: InputMaybe> - distinct?: InputMaybe -} - -/** aggregate avg on columns */ -export type StatHours_Avg_Fields = { - __typename?: 'statHours_avg_fields' - contractBalance?: Maybe - id?: Maybe - totalAccounts?: Maybe - totalAtoms?: Maybe - totalFees?: Maybe - totalPositions?: Maybe - totalSignals?: Maybe - totalTriples?: Maybe -} - -/** Boolean expression to filter rows from the table "StatsHour". All fields are combined with a logical 'AND'. */ -export type StatHours_Bool_Exp = { - _and?: InputMaybe> - _not?: InputMaybe - _or?: InputMaybe> - contractBalance?: InputMaybe - id?: InputMaybe - totalAccounts?: InputMaybe - totalAtoms?: InputMaybe - totalFees?: InputMaybe - totalPositions?: InputMaybe - totalSignals?: InputMaybe - totalTriples?: InputMaybe -} - -/** aggregate max on columns */ -export type StatHours_Max_Fields = { - __typename?: 'statHours_max_fields' - contractBalance?: Maybe - id?: Maybe - totalAccounts?: Maybe - totalAtoms?: Maybe - totalFees?: Maybe - totalPositions?: Maybe - totalSignals?: Maybe - totalTriples?: Maybe -} - -/** aggregate min on columns */ -export type StatHours_Min_Fields = { - __typename?: 'statHours_min_fields' - contractBalance?: Maybe - id?: Maybe - totalAccounts?: Maybe - totalAtoms?: Maybe - totalFees?: Maybe - totalPositions?: Maybe - totalSignals?: Maybe - totalTriples?: Maybe -} - -/** Ordering options when selecting data from "StatsHour". */ -export type StatHours_Order_By = { - contractBalance?: InputMaybe - id?: InputMaybe - totalAccounts?: InputMaybe - totalAtoms?: InputMaybe - totalFees?: InputMaybe - totalPositions?: InputMaybe - totalSignals?: InputMaybe - totalTriples?: InputMaybe -} - -/** select columns of table "StatsHour" */ -export type StatHours_Select_Column = - /** column name */ - | 'contractBalance' - /** column name */ - | 'id' - /** column name */ - | 'totalAccounts' - /** column name */ - | 'totalAtoms' - /** column name */ - | 'totalFees' - /** column name */ - | 'totalPositions' - /** column name */ - | 'totalSignals' - /** column name */ - | 'totalTriples' - -/** aggregate stddev on columns */ -export type StatHours_Stddev_Fields = { - __typename?: 'statHours_stddev_fields' - contractBalance?: Maybe - id?: Maybe - totalAccounts?: Maybe - totalAtoms?: Maybe - totalFees?: Maybe - totalPositions?: Maybe - totalSignals?: Maybe - totalTriples?: Maybe -} - -/** aggregate stddev_pop on columns */ -export type StatHours_Stddev_Pop_Fields = { - __typename?: 'statHours_stddev_pop_fields' - contractBalance?: Maybe - id?: Maybe - totalAccounts?: Maybe - totalAtoms?: Maybe - totalFees?: Maybe - totalPositions?: Maybe - totalSignals?: Maybe - totalTriples?: Maybe -} - -/** aggregate stddev_samp on columns */ -export type StatHours_Stddev_Samp_Fields = { - __typename?: 'statHours_stddev_samp_fields' - contractBalance?: Maybe - id?: Maybe - totalAccounts?: Maybe - totalAtoms?: Maybe - totalFees?: Maybe - totalPositions?: Maybe - totalSignals?: Maybe - totalTriples?: Maybe -} - -/** Streaming cursor of the table "statHours" */ -export type StatHours_Stream_Cursor_Input = { - /** Stream column input with initial value */ - initial_value: StatHours_Stream_Cursor_Value_Input - /** cursor ordering */ - ordering?: InputMaybe -} - -/** Initial value of the column from where the streaming should start */ -export type StatHours_Stream_Cursor_Value_Input = { - contractBalance?: InputMaybe - id?: InputMaybe - totalAccounts?: InputMaybe - totalAtoms?: InputMaybe - totalFees?: InputMaybe - totalPositions?: InputMaybe - totalSignals?: InputMaybe - totalTriples?: InputMaybe -} - -/** aggregate sum on columns */ -export type StatHours_Sum_Fields = { - __typename?: 'statHours_sum_fields' - contractBalance?: Maybe - id?: Maybe - totalAccounts?: Maybe - totalAtoms?: Maybe - totalFees?: Maybe - totalPositions?: Maybe - totalSignals?: Maybe - totalTriples?: Maybe -} - -/** aggregate var_pop on columns */ -export type StatHours_Var_Pop_Fields = { - __typename?: 'statHours_var_pop_fields' - contractBalance?: Maybe - id?: Maybe - totalAccounts?: Maybe - totalAtoms?: Maybe - totalFees?: Maybe - totalPositions?: Maybe - totalSignals?: Maybe - totalTriples?: Maybe -} - -/** aggregate var_samp on columns */ -export type StatHours_Var_Samp_Fields = { - __typename?: 'statHours_var_samp_fields' - contractBalance?: Maybe - id?: Maybe - totalAccounts?: Maybe - totalAtoms?: Maybe - totalFees?: Maybe - totalPositions?: Maybe - totalSignals?: Maybe - totalTriples?: Maybe -} - -/** aggregate variance on columns */ -export type StatHours_Variance_Fields = { - __typename?: 'statHours_variance_fields' - contractBalance?: Maybe - id?: Maybe - totalAccounts?: Maybe - totalAtoms?: Maybe - totalFees?: Maybe - totalPositions?: Maybe - totalSignals?: Maybe - totalTriples?: Maybe -} - -/** columns and relationships of "Stats" */ -export type Stats = { - __typename?: 'stats' - contractBalance: Scalars['numeric']['output'] - id: Scalars['Int']['output'] - totalAccounts: Scalars['Int']['output'] - totalAtoms: Scalars['Int']['output'] - totalFees: Scalars['numeric']['output'] - totalPositions: Scalars['Int']['output'] - totalSignals: Scalars['Int']['output'] - totalTriples: Scalars['Int']['output'] -} - -/** aggregated selection of "Stats" */ +/** aggregated selection of "stats" */ export type Stats_Aggregate = { __typename?: 'stats_aggregate' aggregate?: Maybe nodes: Array } -/** aggregate fields of "Stats" */ +/** aggregate fields of "stats" */ export type Stats_Aggregate_Fields = { __typename?: 'stats_aggregate_fields' avg?: Maybe @@ -5414,7 +5788,7 @@ export type Stats_Aggregate_Fields = { variance?: Maybe } -/** aggregate fields of "Stats" */ +/** aggregate fields of "stats" */ export type Stats_Aggregate_FieldsCountArgs = { columns?: InputMaybe> distinct?: InputMaybe @@ -5423,125 +5797,125 @@ export type Stats_Aggregate_FieldsCountArgs = { /** aggregate avg on columns */ export type Stats_Avg_Fields = { __typename?: 'stats_avg_fields' - contractBalance?: Maybe + contract_balance?: Maybe id?: Maybe - totalAccounts?: Maybe - totalAtoms?: Maybe - totalFees?: Maybe - totalPositions?: Maybe - totalSignals?: Maybe - totalTriples?: Maybe + total_accounts?: Maybe + total_atoms?: Maybe + total_fees?: Maybe + total_positions?: Maybe + total_signals?: Maybe + total_triples?: Maybe } -/** Boolean expression to filter rows from the table "Stats". All fields are combined with a logical 'AND'. */ +/** Boolean expression to filter rows from the table "stats". All fields are combined with a logical 'AND'. */ export type Stats_Bool_Exp = { _and?: InputMaybe> _not?: InputMaybe _or?: InputMaybe> - contractBalance?: InputMaybe + contract_balance?: InputMaybe id?: InputMaybe - totalAccounts?: InputMaybe - totalAtoms?: InputMaybe - totalFees?: InputMaybe - totalPositions?: InputMaybe - totalSignals?: InputMaybe - totalTriples?: InputMaybe + total_accounts?: InputMaybe + total_atoms?: InputMaybe + total_fees?: InputMaybe + total_positions?: InputMaybe + total_signals?: InputMaybe + total_triples?: InputMaybe } /** aggregate max on columns */ export type Stats_Max_Fields = { __typename?: 'stats_max_fields' - contractBalance?: Maybe + contract_balance?: Maybe id?: Maybe - totalAccounts?: Maybe - totalAtoms?: Maybe - totalFees?: Maybe - totalPositions?: Maybe - totalSignals?: Maybe - totalTriples?: Maybe + total_accounts?: Maybe + total_atoms?: Maybe + total_fees?: Maybe + total_positions?: Maybe + total_signals?: Maybe + total_triples?: Maybe } /** aggregate min on columns */ export type Stats_Min_Fields = { __typename?: 'stats_min_fields' - contractBalance?: Maybe + contract_balance?: Maybe id?: Maybe - totalAccounts?: Maybe - totalAtoms?: Maybe - totalFees?: Maybe - totalPositions?: Maybe - totalSignals?: Maybe - totalTriples?: Maybe + total_accounts?: Maybe + total_atoms?: Maybe + total_fees?: Maybe + total_positions?: Maybe + total_signals?: Maybe + total_triples?: Maybe } -/** Ordering options when selecting data from "Stats". */ +/** Ordering options when selecting data from "stats". */ export type Stats_Order_By = { - contractBalance?: InputMaybe + contract_balance?: InputMaybe id?: InputMaybe - totalAccounts?: InputMaybe - totalAtoms?: InputMaybe - totalFees?: InputMaybe - totalPositions?: InputMaybe - totalSignals?: InputMaybe - totalTriples?: InputMaybe + total_accounts?: InputMaybe + total_atoms?: InputMaybe + total_fees?: InputMaybe + total_positions?: InputMaybe + total_signals?: InputMaybe + total_triples?: InputMaybe } -/** select columns of table "Stats" */ +/** select columns of table "stats" */ export type Stats_Select_Column = /** column name */ - | 'contractBalance' + | 'contract_balance' /** column name */ | 'id' /** column name */ - | 'totalAccounts' + | 'total_accounts' /** column name */ - | 'totalAtoms' + | 'total_atoms' /** column name */ - | 'totalFees' + | 'total_fees' /** column name */ - | 'totalPositions' + | 'total_positions' /** column name */ - | 'totalSignals' + | 'total_signals' /** column name */ - | 'totalTriples' + | 'total_triples' /** aggregate stddev on columns */ export type Stats_Stddev_Fields = { __typename?: 'stats_stddev_fields' - contractBalance?: Maybe + contract_balance?: Maybe id?: Maybe - totalAccounts?: Maybe - totalAtoms?: Maybe - totalFees?: Maybe - totalPositions?: Maybe - totalSignals?: Maybe - totalTriples?: Maybe + total_accounts?: Maybe + total_atoms?: Maybe + total_fees?: Maybe + total_positions?: Maybe + total_signals?: Maybe + total_triples?: Maybe } /** aggregate stddev_pop on columns */ export type Stats_Stddev_Pop_Fields = { __typename?: 'stats_stddev_pop_fields' - contractBalance?: Maybe + contract_balance?: Maybe id?: Maybe - totalAccounts?: Maybe - totalAtoms?: Maybe - totalFees?: Maybe - totalPositions?: Maybe - totalSignals?: Maybe - totalTriples?: Maybe + total_accounts?: Maybe + total_atoms?: Maybe + total_fees?: Maybe + total_positions?: Maybe + total_signals?: Maybe + total_triples?: Maybe } /** aggregate stddev_samp on columns */ export type Stats_Stddev_Samp_Fields = { __typename?: 'stats_stddev_samp_fields' - contractBalance?: Maybe + contract_balance?: Maybe id?: Maybe - totalAccounts?: Maybe - totalAtoms?: Maybe - totalFees?: Maybe - totalPositions?: Maybe - totalSignals?: Maybe - totalTriples?: Maybe + total_accounts?: Maybe + total_atoms?: Maybe + total_fees?: Maybe + total_positions?: Maybe + total_signals?: Maybe + total_triples?: Maybe } /** Streaming cursor of the table "stats" */ @@ -5554,243 +5928,241 @@ export type Stats_Stream_Cursor_Input = { /** Initial value of the column from where the streaming should start */ export type Stats_Stream_Cursor_Value_Input = { - contractBalance?: InputMaybe + contract_balance?: InputMaybe id?: InputMaybe - totalAccounts?: InputMaybe - totalAtoms?: InputMaybe - totalFees?: InputMaybe - totalPositions?: InputMaybe - totalSignals?: InputMaybe - totalTriples?: InputMaybe + total_accounts?: InputMaybe + total_atoms?: InputMaybe + total_fees?: InputMaybe + total_positions?: InputMaybe + total_signals?: InputMaybe + total_triples?: InputMaybe } /** aggregate sum on columns */ export type Stats_Sum_Fields = { __typename?: 'stats_sum_fields' - contractBalance?: Maybe + contract_balance?: Maybe id?: Maybe - totalAccounts?: Maybe - totalAtoms?: Maybe - totalFees?: Maybe - totalPositions?: Maybe - totalSignals?: Maybe - totalTriples?: Maybe + total_accounts?: Maybe + total_atoms?: Maybe + total_fees?: Maybe + total_positions?: Maybe + total_signals?: Maybe + total_triples?: Maybe } /** aggregate var_pop on columns */ export type Stats_Var_Pop_Fields = { __typename?: 'stats_var_pop_fields' - contractBalance?: Maybe + contract_balance?: Maybe id?: Maybe - totalAccounts?: Maybe - totalAtoms?: Maybe - totalFees?: Maybe - totalPositions?: Maybe - totalSignals?: Maybe - totalTriples?: Maybe + total_accounts?: Maybe + total_atoms?: Maybe + total_fees?: Maybe + total_positions?: Maybe + total_signals?: Maybe + total_triples?: Maybe } /** aggregate var_samp on columns */ export type Stats_Var_Samp_Fields = { __typename?: 'stats_var_samp_fields' - contractBalance?: Maybe + contract_balance?: Maybe id?: Maybe - totalAccounts?: Maybe - totalAtoms?: Maybe - totalFees?: Maybe - totalPositions?: Maybe - totalSignals?: Maybe - totalTriples?: Maybe + total_accounts?: Maybe + total_atoms?: Maybe + total_fees?: Maybe + total_positions?: Maybe + total_signals?: Maybe + total_triples?: Maybe } /** aggregate variance on columns */ export type Stats_Variance_Fields = { __typename?: 'stats_variance_fields' - contractBalance?: Maybe + contract_balance?: Maybe id?: Maybe - totalAccounts?: Maybe - totalAtoms?: Maybe - totalFees?: Maybe - totalPositions?: Maybe - totalSignals?: Maybe - totalTriples?: Maybe + total_accounts?: Maybe + total_atoms?: Maybe + total_fees?: Maybe + total_positions?: Maybe + total_signals?: Maybe + total_triples?: Maybe } export type Subscription_Root = { __typename?: 'subscription_root' - /** fetch data from the table: "Account" using primary key columns */ + /** fetch data from the table: "account" using primary key columns */ account?: Maybe - /** fetch data from the table: "Account" */ + /** An array relationship */ accounts: Array - /** fetch aggregated fields from the table: "Account" */ + /** An aggregate relationship */ accounts_aggregate: Accounts_Aggregate - /** fetch data from the table in a streaming manner: "Account" */ + /** fetch data from the table in a streaming manner: "account" */ accounts_stream: Array - /** execute function "accounts_that_claim_about_account" which returns "Account" */ + /** execute function "accounts_that_claim_about_account" which returns "account" */ accounts_that_claim_about_account: Array - /** execute function "accounts_that_claim_about_account" and query aggregates on result of table type "Account" */ + /** execute function "accounts_that_claim_about_account" and query aggregates on result of table type "account" */ accounts_that_claim_about_account_aggregate: Accounts_Aggregate - /** fetch data from the table: "Atom" using primary key columns */ + /** fetch data from the table: "atom" using primary key columns */ atom?: Maybe - /** fetch data from the table: "AtomValue" using primary key columns */ - atomValue?: Maybe - /** fetch data from the table: "AtomValue" */ - atomValues: Array - /** fetch aggregated fields from the table: "AtomValue" */ - atomValues_aggregate: AtomValues_Aggregate - /** fetch data from the table in a streaming manner: "AtomValue" */ - atomValues_stream: Array - /** fetch data from the table: "Atom" */ + /** fetch data from the table: "atom_value" using primary key columns */ + atom_value?: Maybe + /** fetch data from the table: "atom_value" */ + atom_values: Array + /** fetch aggregated fields from the table: "atom_value" */ + atom_values_aggregate: Atom_Values_Aggregate + /** fetch data from the table in a streaming manner: "atom_value" */ + atom_values_stream: Array + /** An array relationship */ atoms: Array - /** fetch aggregated fields from the table: "Atom" */ + /** An aggregate relationship */ atoms_aggregate: Atoms_Aggregate - /** fetch data from the table in a streaming manner: "Atom" */ + /** fetch data from the table in a streaming manner: "atom" */ atoms_stream: Array - /** fetch data from the table: "Book" using primary key columns */ + /** fetch data from the table: "book" using primary key columns */ book?: Maybe - /** fetch data from the table: "Book" */ + /** fetch data from the table: "book" */ books: Array - /** fetch aggregated fields from the table: "Book" */ + /** fetch aggregated fields from the table: "book" */ books_aggregate: Books_Aggregate - /** fetch data from the table in a streaming manner: "Book" */ + /** fetch data from the table in a streaming manner: "book" */ books_stream: Array - /** fetch data from the table: "ChainlinkPrice" using primary key columns */ - chainLinkPrice?: Maybe - /** fetch data from the table: "ChainlinkPrice" */ - chainLinkPrices: Array - /** fetch data from the table in a streaming manner: "ChainlinkPrice" */ - chainLinkPrices_stream: Array - /** fetch data from the table: "Claim" using primary key columns */ + /** fetch data from the table: "cached_image" using primary key columns */ + cached_image?: Maybe + /** fetch data from the table: "cached_image" */ + cached_images: Array + /** fetch data from the table in a streaming manner: "cached_image" */ + cached_images_stream: Array + /** fetch data from the table: "chainlink_price" using primary key columns */ + chainlink_price?: Maybe + /** fetch data from the table: "chainlink_price" */ + chainlink_prices: Array + /** fetch data from the table in a streaming manner: "chainlink_price" */ + chainlink_prices_stream: Array + /** fetch data from the table: "claim" using primary key columns */ claim?: Maybe /** An array relationship */ claims: Array /** An aggregate relationship */ claims_aggregate: Claims_Aggregate - /** execute function "claims_from_following" which returns "Claim" */ + /** execute function "claims_from_following" which returns "claim" */ claims_from_following: Array - /** execute function "claims_from_following" and query aggregates on result of table type "Claim" */ + /** execute function "claims_from_following" and query aggregates on result of table type "claim" */ claims_from_following_aggregate: Claims_Aggregate - /** fetch data from the table in a streaming manner: "Claim" */ + /** fetch data from the table in a streaming manner: "claim" */ claims_stream: Array - /** fetch data from the table: "Deposit" using primary key columns */ + /** fetch data from the table: "deposit" using primary key columns */ deposit?: Maybe /** An array relationship */ deposits: Array /** An aggregate relationship */ deposits_aggregate: Deposits_Aggregate - /** fetch data from the table in a streaming manner: "Deposit" */ + /** fetch data from the table in a streaming manner: "deposit" */ deposits_stream: Array - /** fetch data from the table: "Event" using primary key columns */ + /** fetch data from the table: "event" using primary key columns */ event?: Maybe - /** fetch data from the table: "Event" */ + /** An array relationship */ events: Array - /** fetch aggregated fields from the table: "Event" */ + /** An aggregate relationship */ events_aggregate: Events_Aggregate - /** fetch data from the table in a streaming manner: "Event" */ + /** fetch data from the table in a streaming manner: "event" */ events_stream: Array - /** fetch data from the table: "FeeTransfer" */ - feeTranfers: Array - /** fetch aggregated fields from the table: "FeeTransfer" */ - feeTranfers_aggregate: FeeTranfers_Aggregate - /** fetch data from the table in a streaming manner: "FeeTransfer" */ - feeTranfers_stream: Array - /** fetch data from the table: "FeeTransfer" using primary key columns */ - feeTransfers?: Maybe - /** execute function "following" which returns "Account" */ + /** fetch data from the table: "fee_transfer" using primary key columns */ + fee_transfer?: Maybe + /** An array relationship */ + fee_transfers: Array + /** An aggregate relationship */ + fee_transfers_aggregate: Fee_Transfers_Aggregate + /** fetch data from the table in a streaming manner: "fee_transfer" */ + fee_transfers_stream: Array + /** execute function "following" which returns "account" */ following: Array - /** execute function "following" and query aggregates on result of table type "Account" */ + /** execute function "following" and query aggregates on result of table type "account" */ following_aggregate: Accounts_Aggregate - /** fetch data from the table: "Organization" using primary key columns */ + /** fetch data from the table: "organization" using primary key columns */ organization?: Maybe - /** fetch data from the table: "Organization" */ + /** fetch data from the table: "organization" */ organizations: Array - /** fetch aggregated fields from the table: "Organization" */ + /** fetch aggregated fields from the table: "organization" */ organizations_aggregate: Organizations_Aggregate - /** fetch data from the table in a streaming manner: "Organization" */ + /** fetch data from the table in a streaming manner: "organization" */ organizations_stream: Array - /** fetch data from the table: "Person" using primary key columns */ + /** fetch data from the table: "person" using primary key columns */ person?: Maybe - /** fetch data from the table: "Person" */ + /** fetch data from the table: "person" */ persons: Array - /** fetch aggregated fields from the table: "Person" */ + /** fetch aggregated fields from the table: "person" */ persons_aggregate: Persons_Aggregate - /** fetch data from the table in a streaming manner: "Person" */ + /** fetch data from the table in a streaming manner: "person" */ persons_stream: Array - /** fetch data from the table: "Position" using primary key columns */ + /** fetch data from the table: "position" using primary key columns */ position?: Maybe /** An array relationship */ positions: Array /** An aggregate relationship */ positions_aggregate: Positions_Aggregate - /** fetch data from the table in a streaming manner: "Position" */ + /** fetch data from the table in a streaming manner: "position" */ positions_stream: Array - /** fetch data from the table: "PredicateObject" using primary key columns */ - predicateObject?: Maybe - /** fetch data from the table: "PredicateObject" */ - predicateObjects: Array - /** fetch aggregated fields from the table: "PredicateObject" */ - predicateObjects_aggregate: PredicateObjects_Aggregate - /** fetch data from the table in a streaming manner: "PredicateObject" */ - predicateObjects_stream: Array - /** fetch data from the table: "Redemption" using primary key columns */ + /** fetch data from the table: "predicate_object" */ + predicate_objects: Array + /** fetch aggregated fields from the table: "predicate_object" */ + predicate_objects_aggregate: Predicate_Objects_Aggregate + /** fetch data from the table: "predicate_object" using primary key columns */ + predicate_objects_by_pk?: Maybe + /** fetch data from the table in a streaming manner: "predicate_object" */ + predicate_objects_stream: Array + /** fetch data from the table: "redemption" using primary key columns */ redemption?: Maybe /** An array relationship */ redemptions: Array /** An aggregate relationship */ redemptions_aggregate: Redemptions_Aggregate - /** fetch data from the table in a streaming manner: "Redemption" */ + /** fetch data from the table in a streaming manner: "redemption" */ redemptions_stream: Array - /** fetch data from the table: "Signal" using primary key columns */ + /** fetch data from the table: "signal" using primary key columns */ signal?: Maybe /** An array relationship */ signals: Array /** An aggregate relationship */ signals_aggregate: Signals_Aggregate - /** execute function "signals_from_following" which returns "Signal" */ + /** execute function "signals_from_following" which returns "signal" */ signals_from_following: Array - /** execute function "signals_from_following" and query aggregates on result of table type "Signal" */ + /** execute function "signals_from_following" and query aggregates on result of table type "signal" */ signals_from_following_aggregate: Signals_Aggregate - /** fetch data from the table in a streaming manner: "Signal" */ + /** fetch data from the table in a streaming manner: "signal" */ signals_stream: Array - /** fetch data from the table: "Stats" using primary key columns */ + /** fetch data from the table: "stats" using primary key columns */ stat?: Maybe - /** fetch data from the table: "StatsHour" using primary key columns */ - statHour?: Maybe - /** fetch data from the table: "StatsHour" */ - statHours: Array - /** fetch aggregated fields from the table: "StatsHour" */ - statHours_aggregate: StatHours_Aggregate - /** fetch data from the table in a streaming manner: "StatsHour" */ - statHours_stream: Array - /** fetch data from the table: "Stats" */ + /** fetch data from the table: "stats" */ stats: Array - /** fetch aggregated fields from the table: "Stats" */ + /** fetch aggregated fields from the table: "stats" */ stats_aggregate: Stats_Aggregate - /** fetch data from the table in a streaming manner: "Stats" */ + /** fetch data from the table in a streaming manner: "stats" */ stats_stream: Array - /** fetch data from the table: "Thing" using primary key columns */ + /** fetch data from the table: "thing" using primary key columns */ thing?: Maybe - /** fetch data from the table: "Thing" */ + /** fetch data from the table: "thing" */ things: Array - /** fetch aggregated fields from the table: "Thing" */ + /** fetch aggregated fields from the table: "thing" */ things_aggregate: Things_Aggregate - /** fetch data from the table in a streaming manner: "Thing" */ + /** fetch data from the table in a streaming manner: "thing" */ things_stream: Array - /** fetch data from the table: "Triple" using primary key columns */ + /** fetch data from the table: "triple" using primary key columns */ triple?: Maybe - /** fetch data from the table: "Triple" */ + /** An array relationship */ triples: Array - /** fetch aggregated fields from the table: "Triple" */ + /** An aggregate relationship */ triples_aggregate: Triples_Aggregate - /** fetch data from the table in a streaming manner: "Triple" */ + /** fetch data from the table in a streaming manner: "triple" */ triples_stream: Array - /** fetch data from the table: "Vault" using primary key columns */ + /** fetch data from the table: "vault" using primary key columns */ vault?: Maybe - /** fetch data from the table: "Vault" */ + /** fetch data from the table: "vault" */ vaults: Array - /** fetch aggregated fields from the table: "Vault" */ + /** fetch aggregated fields from the table: "vault" */ vaults_aggregate: Vaults_Aggregate - /** fetch data from the table in a streaming manner: "Vault" */ + /** fetch data from the table in a streaming manner: "vault" */ vaults_stream: Array } @@ -5842,30 +6214,30 @@ export type Subscription_RootAtomArgs = { id: Scalars['numeric']['input'] } -export type Subscription_RootAtomValueArgs = { +export type Subscription_RootAtom_ValueArgs = { id: Scalars['numeric']['input'] } -export type Subscription_RootAtomValuesArgs = { - distinct_on?: InputMaybe> +export type Subscription_RootAtom_ValuesArgs = { + distinct_on?: InputMaybe> limit?: InputMaybe offset?: InputMaybe - order_by?: InputMaybe> - where?: InputMaybe + order_by?: InputMaybe> + where?: InputMaybe } -export type Subscription_RootAtomValues_AggregateArgs = { - distinct_on?: InputMaybe> +export type Subscription_RootAtom_Values_AggregateArgs = { + distinct_on?: InputMaybe> limit?: InputMaybe offset?: InputMaybe - order_by?: InputMaybe> - where?: InputMaybe + order_by?: InputMaybe> + where?: InputMaybe } -export type Subscription_RootAtomValues_StreamArgs = { +export type Subscription_RootAtom_Values_StreamArgs = { batch_size: Scalars['Int']['input'] - cursor: Array> - where?: InputMaybe + cursor: Array> + where?: InputMaybe } export type Subscription_RootAtomsArgs = { @@ -5916,22 +6288,40 @@ export type Subscription_RootBooks_StreamArgs = { where?: InputMaybe } -export type Subscription_RootChainLinkPriceArgs = { +export type Subscription_RootCached_ImageArgs = { + url: Scalars['String']['input'] +} + +export type Subscription_RootCached_ImagesArgs = { + distinct_on?: InputMaybe> + limit?: InputMaybe + offset?: InputMaybe + order_by?: InputMaybe> + where?: InputMaybe +} + +export type Subscription_RootCached_Images_StreamArgs = { + batch_size: Scalars['Int']['input'] + cursor: Array> + where?: InputMaybe +} + +export type Subscription_RootChainlink_PriceArgs = { id: Scalars['numeric']['input'] } -export type Subscription_RootChainLinkPricesArgs = { - distinct_on?: InputMaybe> +export type Subscription_RootChainlink_PricesArgs = { + distinct_on?: InputMaybe> limit?: InputMaybe offset?: InputMaybe - order_by?: InputMaybe> - where?: InputMaybe + order_by?: InputMaybe> + where?: InputMaybe } -export type Subscription_RootChainLinkPrices_StreamArgs = { +export type Subscription_RootChainlink_Prices_StreamArgs = { batch_size: Scalars['Int']['input'] - cursor: Array> - where?: InputMaybe + cursor: Array> + where?: InputMaybe } export type Subscription_RootClaimArgs = { @@ -6030,30 +6420,30 @@ export type Subscription_RootEvents_StreamArgs = { where?: InputMaybe } -export type Subscription_RootFeeTranfersArgs = { - distinct_on?: InputMaybe> +export type Subscription_RootFee_TransferArgs = { + id: Scalars['String']['input'] +} + +export type Subscription_RootFee_TransfersArgs = { + distinct_on?: InputMaybe> limit?: InputMaybe offset?: InputMaybe - order_by?: InputMaybe> - where?: InputMaybe + order_by?: InputMaybe> + where?: InputMaybe } -export type Subscription_RootFeeTranfers_AggregateArgs = { - distinct_on?: InputMaybe> +export type Subscription_RootFee_Transfers_AggregateArgs = { + distinct_on?: InputMaybe> limit?: InputMaybe offset?: InputMaybe - order_by?: InputMaybe> - where?: InputMaybe + order_by?: InputMaybe> + where?: InputMaybe } -export type Subscription_RootFeeTranfers_StreamArgs = { +export type Subscription_RootFee_Transfers_StreamArgs = { batch_size: Scalars['Int']['input'] - cursor: Array> - where?: InputMaybe -} - -export type Subscription_RootFeeTransfersArgs = { - id: Scalars['String']['input'] + cursor: Array> + where?: InputMaybe } export type Subscription_RootFollowingArgs = { @@ -6152,30 +6542,30 @@ export type Subscription_RootPositions_StreamArgs = { where?: InputMaybe } -export type Subscription_RootPredicateObjectArgs = { - id: Scalars['String']['input'] -} - -export type Subscription_RootPredicateObjectsArgs = { - distinct_on?: InputMaybe> +export type Subscription_RootPredicate_ObjectsArgs = { + distinct_on?: InputMaybe> limit?: InputMaybe offset?: InputMaybe - order_by?: InputMaybe> - where?: InputMaybe + order_by?: InputMaybe> + where?: InputMaybe } -export type Subscription_RootPredicateObjects_AggregateArgs = { - distinct_on?: InputMaybe> +export type Subscription_RootPredicate_Objects_AggregateArgs = { + distinct_on?: InputMaybe> limit?: InputMaybe offset?: InputMaybe - order_by?: InputMaybe> - where?: InputMaybe + order_by?: InputMaybe> + where?: InputMaybe +} + +export type Subscription_RootPredicate_Objects_By_PkArgs = { + id: Scalars['String']['input'] } -export type Subscription_RootPredicateObjects_StreamArgs = { +export type Subscription_RootPredicate_Objects_StreamArgs = { batch_size: Scalars['Int']['input'] - cursor: Array> - where?: InputMaybe + cursor: Array> + where?: InputMaybe } export type Subscription_RootRedemptionArgs = { @@ -6252,32 +6642,6 @@ export type Subscription_RootStatArgs = { id: Scalars['Int']['input'] } -export type Subscription_RootStatHourArgs = { - id: Scalars['Int']['input'] -} - -export type Subscription_RootStatHoursArgs = { - distinct_on?: InputMaybe> - limit?: InputMaybe - offset?: InputMaybe - order_by?: InputMaybe> - where?: InputMaybe -} - -export type Subscription_RootStatHours_AggregateArgs = { - distinct_on?: InputMaybe> - limit?: InputMaybe - offset?: InputMaybe - order_by?: InputMaybe> - where?: InputMaybe -} - -export type Subscription_RootStatHours_StreamArgs = { - batch_size: Scalars['Int']['input'] - cursor: Array> - where?: InputMaybe -} - export type Subscription_RootStatsArgs = { distinct_on?: InputMaybe> limit?: InputMaybe @@ -6378,12 +6742,13 @@ export type Subscription_RootVaults_StreamArgs = { where?: InputMaybe } -/** columns and relationships of "Thing" */ +/** columns and relationships of "thing" */ export type Things = { __typename?: 'things' /** An object relationship */ atom?: Maybe - atomId: Scalars['numeric']['output'] + /** An object relationship */ + cached_image?: Maybe description?: Maybe id: Scalars['numeric']['output'] image?: Maybe @@ -6391,14 +6756,14 @@ export type Things = { url?: Maybe } -/** aggregated selection of "Thing" */ +/** aggregated selection of "thing" */ export type Things_Aggregate = { __typename?: 'things_aggregate' aggregate?: Maybe nodes: Array } -/** aggregate fields of "Thing" */ +/** aggregate fields of "thing" */ export type Things_Aggregate_Fields = { __typename?: 'things_aggregate_fields' avg?: Maybe @@ -6414,7 +6779,7 @@ export type Things_Aggregate_Fields = { variance?: Maybe } -/** aggregate fields of "Thing" */ +/** aggregate fields of "thing" */ export type Things_Aggregate_FieldsCountArgs = { columns?: InputMaybe> distinct?: InputMaybe @@ -6423,17 +6788,16 @@ export type Things_Aggregate_FieldsCountArgs = { /** aggregate avg on columns */ export type Things_Avg_Fields = { __typename?: 'things_avg_fields' - atomId?: Maybe id?: Maybe } -/** Boolean expression to filter rows from the table "Thing". All fields are combined with a logical 'AND'. */ +/** Boolean expression to filter rows from the table "thing". All fields are combined with a logical 'AND'. */ export type Things_Bool_Exp = { _and?: InputMaybe> _not?: InputMaybe _or?: InputMaybe> atom?: InputMaybe - atomId?: InputMaybe + cached_image?: InputMaybe description?: InputMaybe id?: InputMaybe image?: InputMaybe @@ -6444,7 +6808,6 @@ export type Things_Bool_Exp = { /** aggregate max on columns */ export type Things_Max_Fields = { __typename?: 'things_max_fields' - atomId?: Maybe description?: Maybe id?: Maybe image?: Maybe @@ -6455,7 +6818,6 @@ export type Things_Max_Fields = { /** aggregate min on columns */ export type Things_Min_Fields = { __typename?: 'things_min_fields' - atomId?: Maybe description?: Maybe id?: Maybe image?: Maybe @@ -6463,10 +6825,10 @@ export type Things_Min_Fields = { url?: Maybe } -/** Ordering options when selecting data from "Thing". */ +/** Ordering options when selecting data from "thing". */ export type Things_Order_By = { atom?: InputMaybe - atomId?: InputMaybe + cached_image?: InputMaybe description?: InputMaybe id?: InputMaybe image?: InputMaybe @@ -6474,10 +6836,8 @@ export type Things_Order_By = { url?: InputMaybe } -/** select columns of table "Thing" */ +/** select columns of table "thing" */ export type Things_Select_Column = - /** column name */ - | 'atomId' /** column name */ | 'description' /** column name */ @@ -6492,21 +6852,18 @@ export type Things_Select_Column = /** aggregate stddev on columns */ export type Things_Stddev_Fields = { __typename?: 'things_stddev_fields' - atomId?: Maybe id?: Maybe } /** aggregate stddev_pop on columns */ export type Things_Stddev_Pop_Fields = { __typename?: 'things_stddev_pop_fields' - atomId?: Maybe id?: Maybe } /** aggregate stddev_samp on columns */ export type Things_Stddev_Samp_Fields = { __typename?: 'things_stddev_samp_fields' - atomId?: Maybe id?: Maybe } @@ -6520,7 +6877,6 @@ export type Things_Stream_Cursor_Input = { /** Initial value of the column from where the streaming should start */ export type Things_Stream_Cursor_Value_Input = { - atomId?: InputMaybe description?: InputMaybe id?: InputMaybe image?: InputMaybe @@ -6531,60 +6887,112 @@ export type Things_Stream_Cursor_Value_Input = { /** aggregate sum on columns */ export type Things_Sum_Fields = { __typename?: 'things_sum_fields' - atomId?: Maybe id?: Maybe } /** aggregate var_pop on columns */ export type Things_Var_Pop_Fields = { __typename?: 'things_var_pop_fields' - atomId?: Maybe id?: Maybe } /** aggregate var_samp on columns */ export type Things_Var_Samp_Fields = { __typename?: 'things_var_samp_fields' - atomId?: Maybe id?: Maybe } /** aggregate variance on columns */ export type Things_Variance_Fields = { __typename?: 'things_variance_fields' - atomId?: Maybe id?: Maybe } -/** columns and relationships of "Triple" */ +/** Boolean expression to compare columns of type "timestamptz". All fields are combined with logical 'AND'. */ +export type Timestamptz_Comparison_Exp = { + _eq?: InputMaybe + _gt?: InputMaybe + _gte?: InputMaybe + _in?: InputMaybe> + _is_null?: InputMaybe + _lt?: InputMaybe + _lte?: InputMaybe + _neq?: InputMaybe + _nin?: InputMaybe> +} + +/** columns and relationships of "triple" */ export type Triples = { __typename?: 'triples' - blockNumber: Scalars['numeric']['output'] - blockTimestamp: Scalars['numeric']['output'] + block_number: Scalars['numeric']['output'] + block_timestamp: Scalars['bigint']['output'] + /** An array relationship */ + claims: Array + /** An aggregate relationship */ + claims_aggregate: Claims_Aggregate /** An object relationship */ - counterVault?: Maybe - counterVaultId: Scalars['numeric']['output'] + counter_vault?: Maybe + counter_vault_id: Scalars['numeric']['output'] /** An object relationship */ creator?: Maybe - creatorId: Scalars['String']['output'] + creator_id: Scalars['String']['output'] id: Scalars['numeric']['output'] - label?: Maybe /** An object relationship */ - object?: Maybe - objectId: Scalars['numeric']['output'] + object: Atoms + object_id: Scalars['numeric']['output'] /** An object relationship */ - predicate?: Maybe - predicateId: Scalars['numeric']['output'] + predicate: Atoms + predicate_id: Scalars['numeric']['output'] + /** An array relationship */ + signals: Array + /** An aggregate relationship */ + signals_aggregate: Signals_Aggregate /** An object relationship */ - subject?: Maybe - subjectId: Scalars['numeric']['output'] - transactionHash: Scalars['bytea']['output'] + subject: Atoms + subject_id: Scalars['numeric']['output'] + transaction_hash: Scalars['bytea']['output'] /** An object relationship */ vault?: Maybe - vaultId: Scalars['numeric']['output'] + vault_id: Scalars['numeric']['output'] +} + +/** columns and relationships of "triple" */ +export type TriplesClaimsArgs = { + distinct_on?: InputMaybe> + limit?: InputMaybe + offset?: InputMaybe + order_by?: InputMaybe> + where?: InputMaybe +} + +/** columns and relationships of "triple" */ +export type TriplesClaims_AggregateArgs = { + distinct_on?: InputMaybe> + limit?: InputMaybe + offset?: InputMaybe + order_by?: InputMaybe> + where?: InputMaybe +} + +/** columns and relationships of "triple" */ +export type TriplesSignalsArgs = { + distinct_on?: InputMaybe> + limit?: InputMaybe + offset?: InputMaybe + order_by?: InputMaybe> + where?: InputMaybe } -/** aggregated selection of "Triple" */ +/** columns and relationships of "triple" */ +export type TriplesSignals_AggregateArgs = { + distinct_on?: InputMaybe> + limit?: InputMaybe + offset?: InputMaybe + order_by?: InputMaybe> + where?: InputMaybe +} + +/** aggregated selection of "triple" */ export type Triples_Aggregate = { __typename?: 'triples_aggregate' aggregate?: Maybe @@ -6602,7 +7010,7 @@ export type Triples_Aggregate_Bool_Exp_Count = { predicate: Int_Comparison_Exp } -/** aggregate fields of "Triple" */ +/** aggregate fields of "triple" */ export type Triples_Aggregate_Fields = { __typename?: 'triples_aggregate_fields' avg?: Maybe @@ -6618,13 +7026,13 @@ export type Triples_Aggregate_Fields = { variance?: Maybe } -/** aggregate fields of "Triple" */ +/** aggregate fields of "triple" */ export type Triples_Aggregate_FieldsCountArgs = { columns?: InputMaybe> distinct?: InputMaybe } -/** order by aggregate values of table "Triple" */ +/** order by aggregate values of table "triple" */ export type Triples_Aggregate_Order_By = { avg?: InputMaybe count?: InputMaybe @@ -6642,229 +7050,227 @@ export type Triples_Aggregate_Order_By = { /** aggregate avg on columns */ export type Triples_Avg_Fields = { __typename?: 'triples_avg_fields' - blockNumber?: Maybe - blockTimestamp?: Maybe - counterVaultId?: Maybe + block_number?: Maybe + block_timestamp?: Maybe + counter_vault_id?: Maybe id?: Maybe - objectId?: Maybe - predicateId?: Maybe - subjectId?: Maybe - vaultId?: Maybe + object_id?: Maybe + predicate_id?: Maybe + subject_id?: Maybe + vault_id?: Maybe } -/** order by avg() on columns of table "Triple" */ +/** order by avg() on columns of table "triple" */ export type Triples_Avg_Order_By = { - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe - counterVaultId?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe + counter_vault_id?: InputMaybe id?: InputMaybe - objectId?: InputMaybe - predicateId?: InputMaybe - subjectId?: InputMaybe - vaultId?: InputMaybe + object_id?: InputMaybe + predicate_id?: InputMaybe + subject_id?: InputMaybe + vault_id?: InputMaybe } -/** Boolean expression to filter rows from the table "Triple". All fields are combined with a logical 'AND'. */ +/** Boolean expression to filter rows from the table "triple". All fields are combined with a logical 'AND'. */ export type Triples_Bool_Exp = { _and?: InputMaybe> _not?: InputMaybe _or?: InputMaybe> - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe - counterVault?: InputMaybe - counterVaultId?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe + claims?: InputMaybe + claims_aggregate?: InputMaybe + counter_vault?: InputMaybe + counter_vault_id?: InputMaybe creator?: InputMaybe - creatorId?: InputMaybe + creator_id?: InputMaybe id?: InputMaybe - label?: InputMaybe object?: InputMaybe - objectId?: InputMaybe + object_id?: InputMaybe predicate?: InputMaybe - predicateId?: InputMaybe + predicate_id?: InputMaybe + signals?: InputMaybe + signals_aggregate?: InputMaybe subject?: InputMaybe - subjectId?: InputMaybe - transactionHash?: InputMaybe + subject_id?: InputMaybe + transaction_hash?: InputMaybe vault?: InputMaybe - vaultId?: InputMaybe + vault_id?: InputMaybe } /** aggregate max on columns */ export type Triples_Max_Fields = { __typename?: 'triples_max_fields' - blockNumber?: Maybe - blockTimestamp?: Maybe - counterVaultId?: Maybe - creatorId?: Maybe + block_number?: Maybe + block_timestamp?: Maybe + counter_vault_id?: Maybe + creator_id?: Maybe id?: Maybe - label?: Maybe - objectId?: Maybe - predicateId?: Maybe - subjectId?: Maybe - vaultId?: Maybe + object_id?: Maybe + predicate_id?: Maybe + subject_id?: Maybe + vault_id?: Maybe } -/** order by max() on columns of table "Triple" */ +/** order by max() on columns of table "triple" */ export type Triples_Max_Order_By = { - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe - counterVaultId?: InputMaybe - creatorId?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe + counter_vault_id?: InputMaybe + creator_id?: InputMaybe id?: InputMaybe - label?: InputMaybe - objectId?: InputMaybe - predicateId?: InputMaybe - subjectId?: InputMaybe - vaultId?: InputMaybe + object_id?: InputMaybe + predicate_id?: InputMaybe + subject_id?: InputMaybe + vault_id?: InputMaybe } /** aggregate min on columns */ export type Triples_Min_Fields = { __typename?: 'triples_min_fields' - blockNumber?: Maybe - blockTimestamp?: Maybe - counterVaultId?: Maybe - creatorId?: Maybe + block_number?: Maybe + block_timestamp?: Maybe + counter_vault_id?: Maybe + creator_id?: Maybe id?: Maybe - label?: Maybe - objectId?: Maybe - predicateId?: Maybe - subjectId?: Maybe - vaultId?: Maybe + object_id?: Maybe + predicate_id?: Maybe + subject_id?: Maybe + vault_id?: Maybe } -/** order by min() on columns of table "Triple" */ +/** order by min() on columns of table "triple" */ export type Triples_Min_Order_By = { - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe - counterVaultId?: InputMaybe - creatorId?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe + counter_vault_id?: InputMaybe + creator_id?: InputMaybe id?: InputMaybe - label?: InputMaybe - objectId?: InputMaybe - predicateId?: InputMaybe - subjectId?: InputMaybe - vaultId?: InputMaybe + object_id?: InputMaybe + predicate_id?: InputMaybe + subject_id?: InputMaybe + vault_id?: InputMaybe } -/** Ordering options when selecting data from "Triple". */ +/** Ordering options when selecting data from "triple". */ export type Triples_Order_By = { - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe - counterVault?: InputMaybe - counterVaultId?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe + claims_aggregate?: InputMaybe + counter_vault?: InputMaybe + counter_vault_id?: InputMaybe creator?: InputMaybe - creatorId?: InputMaybe + creator_id?: InputMaybe id?: InputMaybe - label?: InputMaybe object?: InputMaybe - objectId?: InputMaybe + object_id?: InputMaybe predicate?: InputMaybe - predicateId?: InputMaybe + predicate_id?: InputMaybe + signals_aggregate?: InputMaybe subject?: InputMaybe - subjectId?: InputMaybe - transactionHash?: InputMaybe + subject_id?: InputMaybe + transaction_hash?: InputMaybe vault?: InputMaybe - vaultId?: InputMaybe + vault_id?: InputMaybe } -/** select columns of table "Triple" */ +/** select columns of table "triple" */ export type Triples_Select_Column = /** column name */ - | 'blockNumber' + | 'block_number' /** column name */ - | 'blockTimestamp' + | 'block_timestamp' /** column name */ - | 'counterVaultId' + | 'counter_vault_id' /** column name */ - | 'creatorId' + | 'creator_id' /** column name */ | 'id' /** column name */ - | 'label' - /** column name */ - | 'objectId' + | 'object_id' /** column name */ - | 'predicateId' + | 'predicate_id' /** column name */ - | 'subjectId' + | 'subject_id' /** column name */ - | 'transactionHash' + | 'transaction_hash' /** column name */ - | 'vaultId' + | 'vault_id' /** aggregate stddev on columns */ export type Triples_Stddev_Fields = { __typename?: 'triples_stddev_fields' - blockNumber?: Maybe - blockTimestamp?: Maybe - counterVaultId?: Maybe + block_number?: Maybe + block_timestamp?: Maybe + counter_vault_id?: Maybe id?: Maybe - objectId?: Maybe - predicateId?: Maybe - subjectId?: Maybe - vaultId?: Maybe + object_id?: Maybe + predicate_id?: Maybe + subject_id?: Maybe + vault_id?: Maybe } -/** order by stddev() on columns of table "Triple" */ +/** order by stddev() on columns of table "triple" */ export type Triples_Stddev_Order_By = { - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe - counterVaultId?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe + counter_vault_id?: InputMaybe id?: InputMaybe - objectId?: InputMaybe - predicateId?: InputMaybe - subjectId?: InputMaybe - vaultId?: InputMaybe + object_id?: InputMaybe + predicate_id?: InputMaybe + subject_id?: InputMaybe + vault_id?: InputMaybe } /** aggregate stddev_pop on columns */ export type Triples_Stddev_Pop_Fields = { __typename?: 'triples_stddev_pop_fields' - blockNumber?: Maybe - blockTimestamp?: Maybe - counterVaultId?: Maybe + block_number?: Maybe + block_timestamp?: Maybe + counter_vault_id?: Maybe id?: Maybe - objectId?: Maybe - predicateId?: Maybe - subjectId?: Maybe - vaultId?: Maybe + object_id?: Maybe + predicate_id?: Maybe + subject_id?: Maybe + vault_id?: Maybe } -/** order by stddev_pop() on columns of table "Triple" */ +/** order by stddev_pop() on columns of table "triple" */ export type Triples_Stddev_Pop_Order_By = { - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe - counterVaultId?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe + counter_vault_id?: InputMaybe id?: InputMaybe - objectId?: InputMaybe - predicateId?: InputMaybe - subjectId?: InputMaybe - vaultId?: InputMaybe + object_id?: InputMaybe + predicate_id?: InputMaybe + subject_id?: InputMaybe + vault_id?: InputMaybe } /** aggregate stddev_samp on columns */ export type Triples_Stddev_Samp_Fields = { __typename?: 'triples_stddev_samp_fields' - blockNumber?: Maybe - blockTimestamp?: Maybe - counterVaultId?: Maybe + block_number?: Maybe + block_timestamp?: Maybe + counter_vault_id?: Maybe id?: Maybe - objectId?: Maybe - predicateId?: Maybe - subjectId?: Maybe - vaultId?: Maybe + object_id?: Maybe + predicate_id?: Maybe + subject_id?: Maybe + vault_id?: Maybe } -/** order by stddev_samp() on columns of table "Triple" */ +/** order by stddev_samp() on columns of table "triple" */ export type Triples_Stddev_Samp_Order_By = { - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe - counterVaultId?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe + counter_vault_id?: InputMaybe id?: InputMaybe - objectId?: InputMaybe - predicateId?: InputMaybe - subjectId?: InputMaybe - vaultId?: InputMaybe + object_id?: InputMaybe + predicate_id?: InputMaybe + subject_id?: InputMaybe + vault_id?: InputMaybe } /** Streaming cursor of the table "triples" */ @@ -6877,145 +7283,190 @@ export type Triples_Stream_Cursor_Input = { /** Initial value of the column from where the streaming should start */ export type Triples_Stream_Cursor_Value_Input = { - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe - counterVaultId?: InputMaybe - creatorId?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe + counter_vault_id?: InputMaybe + creator_id?: InputMaybe id?: InputMaybe - label?: InputMaybe - objectId?: InputMaybe - predicateId?: InputMaybe - subjectId?: InputMaybe - transactionHash?: InputMaybe - vaultId?: InputMaybe + object_id?: InputMaybe + predicate_id?: InputMaybe + subject_id?: InputMaybe + transaction_hash?: InputMaybe + vault_id?: InputMaybe } /** aggregate sum on columns */ export type Triples_Sum_Fields = { __typename?: 'triples_sum_fields' - blockNumber?: Maybe - blockTimestamp?: Maybe - counterVaultId?: Maybe + block_number?: Maybe + block_timestamp?: Maybe + counter_vault_id?: Maybe id?: Maybe - objectId?: Maybe - predicateId?: Maybe - subjectId?: Maybe - vaultId?: Maybe + object_id?: Maybe + predicate_id?: Maybe + subject_id?: Maybe + vault_id?: Maybe } -/** order by sum() on columns of table "Triple" */ +/** order by sum() on columns of table "triple" */ export type Triples_Sum_Order_By = { - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe - counterVaultId?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe + counter_vault_id?: InputMaybe id?: InputMaybe - objectId?: InputMaybe - predicateId?: InputMaybe - subjectId?: InputMaybe - vaultId?: InputMaybe + object_id?: InputMaybe + predicate_id?: InputMaybe + subject_id?: InputMaybe + vault_id?: InputMaybe } /** aggregate var_pop on columns */ export type Triples_Var_Pop_Fields = { __typename?: 'triples_var_pop_fields' - blockNumber?: Maybe - blockTimestamp?: Maybe - counterVaultId?: Maybe + block_number?: Maybe + block_timestamp?: Maybe + counter_vault_id?: Maybe id?: Maybe - objectId?: Maybe - predicateId?: Maybe - subjectId?: Maybe - vaultId?: Maybe + object_id?: Maybe + predicate_id?: Maybe + subject_id?: Maybe + vault_id?: Maybe } -/** order by var_pop() on columns of table "Triple" */ +/** order by var_pop() on columns of table "triple" */ export type Triples_Var_Pop_Order_By = { - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe - counterVaultId?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe + counter_vault_id?: InputMaybe id?: InputMaybe - objectId?: InputMaybe - predicateId?: InputMaybe - subjectId?: InputMaybe - vaultId?: InputMaybe + object_id?: InputMaybe + predicate_id?: InputMaybe + subject_id?: InputMaybe + vault_id?: InputMaybe } /** aggregate var_samp on columns */ export type Triples_Var_Samp_Fields = { __typename?: 'triples_var_samp_fields' - blockNumber?: Maybe - blockTimestamp?: Maybe - counterVaultId?: Maybe + block_number?: Maybe + block_timestamp?: Maybe + counter_vault_id?: Maybe id?: Maybe - objectId?: Maybe - predicateId?: Maybe - subjectId?: Maybe - vaultId?: Maybe + object_id?: Maybe + predicate_id?: Maybe + subject_id?: Maybe + vault_id?: Maybe } -/** order by var_samp() on columns of table "Triple" */ +/** order by var_samp() on columns of table "triple" */ export type Triples_Var_Samp_Order_By = { - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe - counterVaultId?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe + counter_vault_id?: InputMaybe id?: InputMaybe - objectId?: InputMaybe - predicateId?: InputMaybe - subjectId?: InputMaybe - vaultId?: InputMaybe + object_id?: InputMaybe + predicate_id?: InputMaybe + subject_id?: InputMaybe + vault_id?: InputMaybe } /** aggregate variance on columns */ export type Triples_Variance_Fields = { __typename?: 'triples_variance_fields' - blockNumber?: Maybe - blockTimestamp?: Maybe - counterVaultId?: Maybe + block_number?: Maybe + block_timestamp?: Maybe + counter_vault_id?: Maybe id?: Maybe - objectId?: Maybe - predicateId?: Maybe - subjectId?: Maybe - vaultId?: Maybe + object_id?: Maybe + predicate_id?: Maybe + subject_id?: Maybe + vault_id?: Maybe } -/** order by variance() on columns of table "Triple" */ +/** order by variance() on columns of table "triple" */ export type Triples_Variance_Order_By = { - blockNumber?: InputMaybe - blockTimestamp?: InputMaybe - counterVaultId?: InputMaybe + block_number?: InputMaybe + block_timestamp?: InputMaybe + counter_vault_id?: InputMaybe id?: InputMaybe - objectId?: InputMaybe - predicateId?: InputMaybe - subjectId?: InputMaybe - vaultId?: InputMaybe + object_id?: InputMaybe + predicate_id?: InputMaybe + subject_id?: InputMaybe + vault_id?: InputMaybe } -/** columns and relationships of "Vault" */ +/** columns and relationships of "vault" */ export type Vaults = { __typename?: 'vaults' /** An object relationship */ atom?: Maybe - atomId?: Maybe - currentSharePrice: Scalars['numeric']['output'] + atom_id?: Maybe + /** An array relationship */ + claims: Array + /** An aggregate relationship */ + claims_aggregate: Claims_Aggregate + /** An array relationship */ + counter_claims: Array + /** An aggregate relationship */ + counter_claims_aggregate: Claims_Aggregate + current_share_price: Scalars['numeric']['output'] /** An array relationship */ deposits: Array /** An aggregate relationship */ deposits_aggregate: Deposits_Aggregate id: Scalars['numeric']['output'] - positionCount: Scalars['Int']['output'] + position_count: Scalars['Int']['output'] /** An array relationship */ positions: Array /** An aggregate relationship */ positions_aggregate: Positions_Aggregate - /** An object relationship */ - redemptions?: Maybe - totalShares: Scalars['numeric']['output'] + /** An array relationship */ + redemptions: Array + /** An aggregate relationship */ + redemptions_aggregate: Redemptions_Aggregate + total_shares: Scalars['numeric']['output'] /** An object relationship */ triple?: Maybe - tripleId?: Maybe + triple_id?: Maybe +} + +/** columns and relationships of "vault" */ +export type VaultsClaimsArgs = { + distinct_on?: InputMaybe> + limit?: InputMaybe + offset?: InputMaybe + order_by?: InputMaybe> + where?: InputMaybe +} + +/** columns and relationships of "vault" */ +export type VaultsClaims_AggregateArgs = { + distinct_on?: InputMaybe> + limit?: InputMaybe + offset?: InputMaybe + order_by?: InputMaybe> + where?: InputMaybe +} + +/** columns and relationships of "vault" */ +export type VaultsCounter_ClaimsArgs = { + distinct_on?: InputMaybe> + limit?: InputMaybe + offset?: InputMaybe + order_by?: InputMaybe> + where?: InputMaybe } -/** columns and relationships of "Vault" */ +/** columns and relationships of "vault" */ +export type VaultsCounter_Claims_AggregateArgs = { + distinct_on?: InputMaybe> + limit?: InputMaybe + offset?: InputMaybe + order_by?: InputMaybe> + where?: InputMaybe +} + +/** columns and relationships of "vault" */ export type VaultsDepositsArgs = { distinct_on?: InputMaybe> limit?: InputMaybe @@ -7024,7 +7475,7 @@ export type VaultsDepositsArgs = { where?: InputMaybe } -/** columns and relationships of "Vault" */ +/** columns and relationships of "vault" */ export type VaultsDeposits_AggregateArgs = { distinct_on?: InputMaybe> limit?: InputMaybe @@ -7033,7 +7484,7 @@ export type VaultsDeposits_AggregateArgs = { where?: InputMaybe } -/** columns and relationships of "Vault" */ +/** columns and relationships of "vault" */ export type VaultsPositionsArgs = { distinct_on?: InputMaybe> limit?: InputMaybe @@ -7042,7 +7493,7 @@ export type VaultsPositionsArgs = { where?: InputMaybe } -/** columns and relationships of "Vault" */ +/** columns and relationships of "vault" */ export type VaultsPositions_AggregateArgs = { distinct_on?: InputMaybe> limit?: InputMaybe @@ -7051,14 +7502,32 @@ export type VaultsPositions_AggregateArgs = { where?: InputMaybe } -/** aggregated selection of "Vault" */ +/** columns and relationships of "vault" */ +export type VaultsRedemptionsArgs = { + distinct_on?: InputMaybe> + limit?: InputMaybe + offset?: InputMaybe + order_by?: InputMaybe> + where?: InputMaybe +} + +/** columns and relationships of "vault" */ +export type VaultsRedemptions_AggregateArgs = { + distinct_on?: InputMaybe> + limit?: InputMaybe + offset?: InputMaybe + order_by?: InputMaybe> + where?: InputMaybe +} + +/** aggregated selection of "vault" */ export type Vaults_Aggregate = { __typename?: 'vaults_aggregate' aggregate?: Maybe nodes: Array } -/** aggregate fields of "Vault" */ +/** aggregate fields of "vault" */ export type Vaults_Aggregate_Fields = { __typename?: 'vaults_aggregate_fields' avg?: Maybe @@ -7074,7 +7543,7 @@ export type Vaults_Aggregate_Fields = { variance?: Maybe } -/** aggregate fields of "Vault" */ +/** aggregate fields of "vault" */ export type Vaults_Aggregate_FieldsCountArgs = { columns?: InputMaybe> distinct?: InputMaybe @@ -7083,117 +7552,124 @@ export type Vaults_Aggregate_FieldsCountArgs = { /** aggregate avg on columns */ export type Vaults_Avg_Fields = { __typename?: 'vaults_avg_fields' - atomId?: Maybe - currentSharePrice?: Maybe + atom_id?: Maybe + current_share_price?: Maybe id?: Maybe - positionCount?: Maybe - totalShares?: Maybe - tripleId?: Maybe + position_count?: Maybe + total_shares?: Maybe + triple_id?: Maybe } -/** Boolean expression to filter rows from the table "Vault". All fields are combined with a logical 'AND'. */ +/** Boolean expression to filter rows from the table "vault". All fields are combined with a logical 'AND'. */ export type Vaults_Bool_Exp = { _and?: InputMaybe> _not?: InputMaybe _or?: InputMaybe> atom?: InputMaybe - atomId?: InputMaybe - currentSharePrice?: InputMaybe + atom_id?: InputMaybe + claims?: InputMaybe + claims_aggregate?: InputMaybe + counter_claims?: InputMaybe + counter_claims_aggregate?: InputMaybe + current_share_price?: InputMaybe deposits?: InputMaybe deposits_aggregate?: InputMaybe id?: InputMaybe - positionCount?: InputMaybe + position_count?: InputMaybe positions?: InputMaybe positions_aggregate?: InputMaybe redemptions?: InputMaybe - totalShares?: InputMaybe + redemptions_aggregate?: InputMaybe + total_shares?: InputMaybe triple?: InputMaybe - tripleId?: InputMaybe + triple_id?: InputMaybe } /** aggregate max on columns */ export type Vaults_Max_Fields = { __typename?: 'vaults_max_fields' - atomId?: Maybe - currentSharePrice?: Maybe + atom_id?: Maybe + current_share_price?: Maybe id?: Maybe - positionCount?: Maybe - totalShares?: Maybe - tripleId?: Maybe + position_count?: Maybe + total_shares?: Maybe + triple_id?: Maybe } /** aggregate min on columns */ export type Vaults_Min_Fields = { __typename?: 'vaults_min_fields' - atomId?: Maybe - currentSharePrice?: Maybe + atom_id?: Maybe + current_share_price?: Maybe id?: Maybe - positionCount?: Maybe - totalShares?: Maybe - tripleId?: Maybe + position_count?: Maybe + total_shares?: Maybe + triple_id?: Maybe } -/** Ordering options when selecting data from "Vault". */ +/** Ordering options when selecting data from "vault". */ export type Vaults_Order_By = { atom?: InputMaybe - atomId?: InputMaybe - currentSharePrice?: InputMaybe + atom_id?: InputMaybe + claims_aggregate?: InputMaybe + counter_claims_aggregate?: InputMaybe + current_share_price?: InputMaybe deposits_aggregate?: InputMaybe id?: InputMaybe - positionCount?: InputMaybe + position_count?: InputMaybe positions_aggregate?: InputMaybe - redemptions?: InputMaybe - totalShares?: InputMaybe + redemptions_aggregate?: InputMaybe + total_shares?: InputMaybe triple?: InputMaybe - tripleId?: InputMaybe + triple_id?: InputMaybe } -/** select columns of table "Vault" */ +/** select columns of table "vault" */ export type Vaults_Select_Column = /** column name */ - | 'atomId' + | 'atom_id' /** column name */ - | 'currentSharePrice' + | 'current_share_price' /** column name */ | 'id' /** column name */ - | 'positionCount' + | 'position_count' /** column name */ - | 'totalShares' + | 'total_shares' /** column name */ - | 'tripleId' + | 'triple_id' /** aggregate stddev on columns */ export type Vaults_Stddev_Fields = { __typename?: 'vaults_stddev_fields' - atomId?: Maybe - currentSharePrice?: Maybe + atom_id?: Maybe + current_share_price?: Maybe id?: Maybe - positionCount?: Maybe - totalShares?: Maybe - tripleId?: Maybe + position_count?: Maybe + total_shares?: Maybe + triple_id?: Maybe } /** aggregate stddev_pop on columns */ export type Vaults_Stddev_Pop_Fields = { __typename?: 'vaults_stddev_pop_fields' - atomId?: Maybe - currentSharePrice?: Maybe + atom_id?: Maybe + current_share_price?: Maybe id?: Maybe - positionCount?: Maybe - totalShares?: Maybe - tripleId?: Maybe + position_count?: Maybe + total_shares?: Maybe + triple_id?: Maybe } /** aggregate stddev_samp on columns */ export type Vaults_Stddev_Samp_Fields = { __typename?: 'vaults_stddev_samp_fields' - atomId?: Maybe - currentSharePrice?: Maybe + atom_id?: Maybe + current_share_price?: Maybe id?: Maybe - positionCount?: Maybe - totalShares?: Maybe - tripleId?: Maybe + position_count?: Maybe + total_shares?: Maybe + triple_id?: Maybe } /** Streaming cursor of the table "vaults" */ @@ -7206,56 +7682,56 @@ export type Vaults_Stream_Cursor_Input = { /** Initial value of the column from where the streaming should start */ export type Vaults_Stream_Cursor_Value_Input = { - atomId?: InputMaybe - currentSharePrice?: InputMaybe + atom_id?: InputMaybe + current_share_price?: InputMaybe id?: InputMaybe - positionCount?: InputMaybe - totalShares?: InputMaybe - tripleId?: InputMaybe + position_count?: InputMaybe + total_shares?: InputMaybe + triple_id?: InputMaybe } /** aggregate sum on columns */ export type Vaults_Sum_Fields = { __typename?: 'vaults_sum_fields' - atomId?: Maybe - currentSharePrice?: Maybe + atom_id?: Maybe + current_share_price?: Maybe id?: Maybe - positionCount?: Maybe - totalShares?: Maybe - tripleId?: Maybe + position_count?: Maybe + total_shares?: Maybe + triple_id?: Maybe } /** aggregate var_pop on columns */ export type Vaults_Var_Pop_Fields = { __typename?: 'vaults_var_pop_fields' - atomId?: Maybe - currentSharePrice?: Maybe + atom_id?: Maybe + current_share_price?: Maybe id?: Maybe - positionCount?: Maybe - totalShares?: Maybe - tripleId?: Maybe + position_count?: Maybe + total_shares?: Maybe + triple_id?: Maybe } /** aggregate var_samp on columns */ export type Vaults_Var_Samp_Fields = { __typename?: 'vaults_var_samp_fields' - atomId?: Maybe - currentSharePrice?: Maybe + atom_id?: Maybe + current_share_price?: Maybe id?: Maybe - positionCount?: Maybe - totalShares?: Maybe - tripleId?: Maybe + position_count?: Maybe + total_shares?: Maybe + triple_id?: Maybe } /** aggregate variance on columns */ export type Vaults_Variance_Fields = { __typename?: 'vaults_variance_fields' - atomId?: Maybe - currentSharePrice?: Maybe + atom_id?: Maybe + current_share_price?: Maybe id?: Maybe - positionCount?: Maybe - totalShares?: Maybe - tripleId?: Maybe + position_count?: Maybe + total_shares?: Maybe + triple_id?: Maybe } export type AccountMetadataFragment = { @@ -7263,8 +7739,8 @@ export type AccountMetadataFragment = { label: string image?: string | null id: string - atomId?: any | null - type: string + atom_id?: any | null + type: any } export type AccountClaimsAggregateFragment = { @@ -7275,8 +7751,8 @@ export type AccountClaimsAggregateFragment = { nodes: Array<{ __typename?: 'claims' shares: any - counterShares: any - triple?: { __typename?: 'triples'; id: any; label?: string | null } | null + counter_shares: any + triple: { __typename?: 'triples'; id: any } }> } } @@ -7286,8 +7762,8 @@ export type AccountClaimsFragment = { claims: Array<{ __typename?: 'claims' shares: any - counterShares: any - triple?: { __typename?: 'triples'; id: any; label?: string | null } | null + counter_shares: any + triple: { __typename?: 'triples'; id: any } }> } @@ -7303,18 +7779,14 @@ export type AccountPositionsAggregateFragment = { __typename?: 'positions' id: string shares: any - vault?: { + vault: { __typename?: 'vaults' id: any - totalShares: any - currentSharePrice: any + total_shares: any + current_share_price: any atom?: { __typename?: 'atoms'; id: any; label?: string | null } | null - triple?: { - __typename?: 'triples' - id: any - label?: string | null - } | null - } | null + triple?: { __typename?: 'triples'; id: any } | null + } }> } } @@ -7325,34 +7797,56 @@ export type AccountPositionsFragment = { __typename?: 'positions' id: string shares: any - vault?: { + vault: { __typename?: 'vaults' id: any - totalShares: any - currentSharePrice: any + total_shares: any + current_share_price: any atom?: { __typename?: 'atoms'; id: any; label?: string | null } | null - triple?: { __typename?: 'triples'; id: any; label?: string | null } | null - } | null + triple?: { __typename?: 'triples'; id: any } | null + } }> } -export type AccountCreatedAtomsAggregateFragment = { +export type AccountAtomsFragment = { __typename?: 'accounts' - createdAtoms_aggregate: { - __typename?: 'atoms_aggregate' - aggregate?: { - __typename?: 'atoms_aggregate_fields' - count: number - sum?: { __typename?: 'atoms_sum_fields'; id?: any | null } | null - } | null - nodes: Array<{ - __typename?: 'atoms' - id: any - label?: string | null - data: string - vault?: { + atoms: Array<{ + __typename?: 'atoms' + id: any + label?: string | null + data?: string | null + vault?: { + __typename?: 'vaults' + total_shares: any + positions_aggregate: { + __typename?: 'positions_aggregate' + nodes: Array<{ + __typename?: 'positions' + shares: any + account?: { __typename?: 'accounts'; id: string } | null + }> + } + } | null + }> +} + +export type AccountAtomsAggregateFragment = { + __typename?: 'accounts' + atoms_aggregate: { + __typename?: 'atoms_aggregate' + aggregate?: { + __typename?: 'atoms_aggregate_fields' + count: number + sum?: { __typename?: 'atoms_sum_fields'; id?: any | null } | null + } | null + nodes: Array<{ + __typename?: 'atoms' + id: any + label?: string | null + data?: string | null + vault?: { __typename?: 'vaults' - totalShares: any + total_shares: any positions_aggregate: { __typename?: 'positions_aggregate' nodes: Array<{ @@ -7366,28 +7860,9 @@ export type AccountCreatedAtomsAggregateFragment = { } } -export type AccountCreatedAtomsFragment = { - __typename?: 'accounts' - createdAtoms: Array<{ - __typename?: 'atoms' - id: any - label?: string | null - data: string - vault?: { - __typename?: 'vaults' - totalShares: any - positions: Array<{ - __typename?: 'positions' - shares: any - account?: { __typename?: 'accounts'; id: string } | null - }> - } | null - }> -} - -export type AccountCreatedTriplesFragment = { +export type AccountTriplesFragment = { __typename?: 'accounts' - createdTriples_aggregate: { + triples_aggregate: { __typename?: 'triples_aggregate' aggregate?: { __typename?: 'triples_aggregate_fields' @@ -7396,21 +7871,16 @@ export type AccountCreatedTriplesFragment = { nodes: Array<{ __typename?: 'triples' id: any - label?: string | null - subject?: { __typename?: 'atoms'; id: any; label?: string | null } | null - predicate?: { - __typename?: 'atoms' - id: any - label?: string | null - } | null - object?: { __typename?: 'atoms'; id: any; label?: string | null } | null + subject: { __typename?: 'atoms'; id: any; label?: string | null } + predicate: { __typename?: 'atoms'; id: any; label?: string | null } + object: { __typename?: 'atoms'; id: any; label?: string | null } }> } } -export type AccountCreatedTriplesAggregateFragment = { +export type AccountTriplesAggregateFragment = { __typename?: 'accounts' - createdTriples_aggregate: { + triples_aggregate: { __typename?: 'triples_aggregate' aggregate?: { __typename?: 'triples_aggregate_fields' @@ -7419,14 +7889,9 @@ export type AccountCreatedTriplesAggregateFragment = { nodes: Array<{ __typename?: 'triples' id: any - label?: string | null - subject?: { __typename?: 'atoms'; id: any; label?: string | null } | null - predicate?: { - __typename?: 'atoms' - id: any - label?: string | null - } | null - object?: { __typename?: 'atoms'; id: any; label?: string | null } | null + subject: { __typename?: 'atoms'; id: any; label?: string | null } + predicate: { __typename?: 'atoms'; id: any; label?: string | null } + object: { __typename?: 'atoms'; id: any; label?: string | null } }> } } @@ -7434,7 +7899,7 @@ export type AccountCreatedTriplesAggregateFragment = { export type AtomValueFragment = { __typename?: 'atoms' value?: { - __typename?: 'atomValues' + __typename?: 'atom_values' person?: { __typename?: 'persons' name?: string | null @@ -7462,12 +7927,12 @@ export type AtomValueFragment = { export type AtomMetadataFragment = { __typename?: 'atoms' id: any - data: string + data?: string | null image?: string | null label?: string | null emoji?: string | null - type: string - walletId: string + type: any + wallet_id: string creator?: { __typename?: 'accounts' id: string @@ -7475,7 +7940,7 @@ export type AtomMetadataFragment = { image?: string | null } | null value?: { - __typename?: 'atomValues' + __typename?: 'atom_values' person?: { __typename?: 'persons' name?: string | null @@ -7502,21 +7967,21 @@ export type AtomMetadataFragment = { export type AtomTxnFragment = { __typename?: 'atoms' - blockNumber: any - blockTimestamp: any - transactionHash: any - creatorId: string + block_number: any + block_timestamp: any + transaction_hash: any + creator_id: string } export type AtomVaultDetailsFragment = { __typename?: 'atoms' - vaultId: any - walletId: string + vault_id: any + wallet_id: string vault?: { __typename?: 'vaults' - positionCount: number - totalShares: any - currentSharePrice: any + position_count: number + total_shares: any + current_share_price: any positions_aggregate: { __typename?: 'positions_aggregate' aggregate?: { @@ -7539,122 +8004,119 @@ export type AtomVaultDetailsFragment = { export type AtomTripleFragment = { __typename?: 'atoms' - asSubject: Array<{ + as_subject_triples: Array<{ __typename?: 'triples' id: any - label?: string | null - object?: { + object: { __typename?: 'atoms' - data: string + data?: string | null id: any image?: string | null label?: string | null emoji?: string | null - type: string + type: any creator?: { __typename?: 'accounts' label: string image?: string | null id: string - atomId?: any | null - type: string + atom_id?: any | null + type: any } | null - } | null - predicate?: { + } + predicate: { __typename?: 'atoms' - data: string + data?: string | null id: any image?: string | null label?: string | null emoji?: string | null - type: string + type: any creator?: { __typename?: 'accounts' label: string image?: string | null id: string - atomId?: any | null - type: string + atom_id?: any | null + type: any } | null - } | null + } }> - asPredicate: Array<{ + as_predicate_triples: Array<{ __typename?: 'triples' id: any - label?: string | null - subject?: { + subject: { __typename?: 'atoms' - data: string + data?: string | null id: any image?: string | null label?: string | null emoji?: string | null - type: string + type: any creator?: { __typename?: 'accounts' label: string image?: string | null id: string - atomId?: any | null - type: string + atom_id?: any | null + type: any } | null - } | null - object?: { + } + object: { __typename?: 'atoms' - data: string + data?: string | null id: any image?: string | null label?: string | null emoji?: string | null - type: string + type: any creator?: { __typename?: 'accounts' label: string image?: string | null id: string - atomId?: any | null - type: string + atom_id?: any | null + type: any } | null - } | null + } }> - asObject: Array<{ + as_object_triples: Array<{ __typename?: 'triples' id: any - label?: string | null - subject?: { + subject: { __typename?: 'atoms' - data: string + data?: string | null id: any image?: string | null label?: string | null emoji?: string | null - type: string + type: any creator?: { __typename?: 'accounts' label: string image?: string | null id: string - atomId?: any | null - type: string + atom_id?: any | null + type: any } | null - } | null - predicate?: { + } + predicate: { __typename?: 'atoms' - data: string + data?: string | null id: any image?: string | null label?: string | null emoji?: string | null - type: string + type: any creator?: { __typename?: 'accounts' label: string image?: string | null id: string - atomId?: any | null - type: string + atom_id?: any | null + type: any } | null - } | null + } }> } @@ -7662,8 +8124,8 @@ export type AtomVaultDetailsWithPositionsFragment = { __typename?: 'atoms' vault?: { __typename?: 'vaults' - totalShares: any - currentSharePrice: any + total_shares: any + current_share_price: any positions_aggregate: { __typename?: 'positions_aggregate' aggregate?: { @@ -7686,40 +8148,40 @@ export type DepositEventFragmentFragment = { __typename?: 'events' deposit?: { __typename?: 'deposits' - vaultId: any - senderAssetsAfterTotalFees: any - sharesForReceiver: any - receiver?: { __typename?: 'accounts'; id: string } | null + vault_id: any + sender_assets_after_total_fees: any + shares_for_receiver: any + receiver: { __typename?: 'accounts'; id: string } sender?: { __typename?: 'accounts'; id: string } | null } | null } export type EventDetailsFragment = { __typename?: 'events' - blockNumber: any - blockTimestamp: any - type: string - transactionHash: any - atomId?: any | null - tripleId?: any | null - depositId?: string | null - redemptionId?: string | null + block_number: any + block_timestamp: any + type: any + transaction_hash: any + atom_id?: any | null + triple_id?: any | null + deposit_id?: string | null + redemption_id?: string | null atom?: { __typename?: 'atoms' id: any - data: string + data?: string | null image?: string | null label?: string | null emoji?: string | null - type: string - walletId: string + type: any + wallet_id: string vault?: { __typename?: 'vaults' - totalShares: any - positionCount: number + total_shares: any + position_count: number positions: Array<{ __typename?: 'positions' - accountId: string + account_id: string shares: any account?: { __typename?: 'accounts' @@ -7736,7 +8198,7 @@ export type EventDetailsFragment = { image?: string | null } | null value?: { - __typename?: 'atomValues' + __typename?: 'atom_values' person?: { __typename?: 'persons' name?: string | null @@ -7763,17 +8225,17 @@ export type EventDetailsFragment = { triple?: { __typename?: 'triples' id: any - subjectId: any - predicateId: any - objectId: any + subject_id: any + predicate_id: any + object_id: any vault?: { __typename?: 'vaults' - totalShares: any - positionCount: number - currentSharePrice: any + total_shares: any + position_count: number + current_share_price: any positions: Array<{ __typename?: 'positions' - accountId: string + account_id: string shares: any account?: { __typename?: 'accounts' @@ -7781,6 +8243,12 @@ export type EventDetailsFragment = { label: string image?: string | null } | null + vault: { + __typename?: 'vaults' + id: any + total_shares: any + current_share_price: any + } }> allPositions: { __typename?: 'positions_aggregate' @@ -7794,14 +8262,14 @@ export type EventDetailsFragment = { } | null } } | null - counterVault?: { + counter_vault?: { __typename?: 'vaults' - totalShares: any - positionCount: number - currentSharePrice: any + total_shares: any + position_count: number + current_share_price: any positions: Array<{ __typename?: 'positions' - accountId: string + account_id: string shares: any account?: { __typename?: 'accounts' @@ -7809,6 +8277,12 @@ export type EventDetailsFragment = { label: string image?: string | null } | null + vault: { + __typename?: 'vaults' + id: any + total_shares: any + current_share_price: any + } }> allPositions: { __typename?: 'positions_aggregate' @@ -7822,24 +8296,24 @@ export type EventDetailsFragment = { } | null } } | null - subject?: { + subject: { __typename?: 'atoms' - data: string + data?: string | null id: any image?: string | null label?: string | null emoji?: string | null - type: string + type: any creator?: { __typename?: 'accounts' label: string image?: string | null id: string - atomId?: any | null - type: string + atom_id?: any | null + type: any } | null value?: { - __typename?: 'atomValues' + __typename?: 'atom_values' person?: { __typename?: 'persons' name?: string | null @@ -7862,25 +8336,25 @@ export type EventDetailsFragment = { url?: string | null } | null } | null - } | null - predicate?: { + } + predicate: { __typename?: 'atoms' - data: string + data?: string | null id: any image?: string | null label?: string | null emoji?: string | null - type: string + type: any creator?: { __typename?: 'accounts' label: string image?: string | null id: string - atomId?: any | null - type: string + atom_id?: any | null + type: any } | null value?: { - __typename?: 'atomValues' + __typename?: 'atom_values' person?: { __typename?: 'persons' name?: string | null @@ -7903,25 +8377,25 @@ export type EventDetailsFragment = { url?: string | null } | null } | null - } | null - object?: { + } + object: { __typename?: 'atoms' - data: string + data?: string | null id: any image?: string | null label?: string | null emoji?: string | null - type: string + type: any creator?: { __typename?: 'accounts' label: string image?: string | null id: string - atomId?: any | null - type: string + atom_id?: any | null + type: any } | null value?: { - __typename?: 'atomValues' + __typename?: 'atom_values' person?: { __typename?: 'persons' name?: string | null @@ -7944,36 +8418,36 @@ export type EventDetailsFragment = { url?: string | null } | null } | null - } | null + } } | null deposit?: { __typename?: 'deposits' - vaultId: any - senderAssetsAfterTotalFees: any - sharesForReceiver: any - receiver?: { __typename?: 'accounts'; id: string } | null + vault_id: any + sender_assets_after_total_fees: any + shares_for_receiver: any + receiver: { __typename?: 'accounts'; id: string } sender?: { __typename?: 'accounts'; id: string } | null } | null redemption?: { __typename?: 'redemptions' - vaultId: any - receiverId: string - sharesRedeemedBySender: any - assetsForReceiver: any + vault_id: any + receiver_id: string + shares_redeemed_by_sender: any + assets_for_receiver: any } | null } export type FollowMetadataFragment = { __typename?: 'triples' id: any - subject?: { __typename?: 'atoms'; id: any; label?: string | null } | null - predicate?: { __typename?: 'atoms'; id: any; label?: string | null } | null - object?: { __typename?: 'atoms'; id: any; label?: string | null } | null + subject: { __typename?: 'atoms'; id: any; label?: string | null } + predicate: { __typename?: 'atoms'; id: any; label?: string | null } + object: { __typename?: 'atoms'; id: any; label?: string | null } vault?: { __typename?: 'vaults' id: any - totalShares: any - currentSharePrice: any + total_shares: any + current_share_price: any positions_aggregate: { __typename?: 'positions_aggregate' aggregate?: { @@ -8002,14 +8476,14 @@ export type PositionDetailsFragment = { __typename?: 'positions' id: string shares: any - vaultId: any + vault_id: any account?: { __typename?: 'accounts' id: string label: string image?: string | null } | null - vault?: { + vault: { __typename?: 'vaults' id: any atom?: { @@ -8021,21 +8495,173 @@ export type PositionDetailsFragment = { triple?: { __typename?: 'triples' id: any - subject?: { __typename?: 'atoms'; id: any; label?: string | null } | null - predicate?: { + vault?: { + __typename?: 'vaults' + id: any + position_count: number + positions_aggregate: { + __typename?: 'positions_aggregate' + aggregate?: { + __typename?: 'positions_aggregate_fields' + sum?: { + __typename?: 'positions_sum_fields' + shares?: any | null + } | null + } | null + } + } | null + counter_vault?: { + __typename?: 'vaults' + id: any + position_count: number + positions_aggregate: { + __typename?: 'positions_aggregate' + aggregate?: { + __typename?: 'positions_aggregate_fields' + sum?: { + __typename?: 'positions_sum_fields' + shares?: any | null + } | null + } | null + } + } | null + subject: { __typename?: 'atoms' + data?: string | null id: any label?: string | null - } | null - object?: { __typename?: 'atoms'; id: any; label?: string | null } | null + image?: string | null + emoji?: string | null + type: any + creator?: { + __typename?: 'accounts' + label: string + image?: string | null + id: string + atom_id?: any | null + type: any + } | null + value?: { + __typename?: 'atom_values' + person?: { + __typename?: 'persons' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + thing?: { + __typename?: 'things' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + organization?: { + __typename?: 'organizations' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + } | null + } + predicate: { + __typename?: 'atoms' + data?: string | null + id: any + label?: string | null + image?: string | null + emoji?: string | null + type: any + creator?: { + __typename?: 'accounts' + label: string + image?: string | null + id: string + atom_id?: any | null + type: any + } | null + value?: { + __typename?: 'atom_values' + person?: { + __typename?: 'persons' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + thing?: { + __typename?: 'things' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + organization?: { + __typename?: 'organizations' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + } | null + } + object: { + __typename?: 'atoms' + data?: string | null + id: any + label?: string | null + image?: string | null + emoji?: string | null + type: any + creator?: { + __typename?: 'accounts' + label: string + image?: string | null + id: string + atom_id?: any | null + type: any + } | null + value?: { + __typename?: 'atom_values' + person?: { + __typename?: 'persons' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + thing?: { + __typename?: 'things' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + organization?: { + __typename?: 'organizations' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + } | null + } } | null - } | null + } } export type PositionFieldsFragment = { __typename?: 'positions' shares: any account?: { __typename?: 'accounts'; id: string; label: string } | null + vault: { + __typename?: 'vaults' + id: any + total_shares: any + current_share_price: any + } } export type PositionAggregateFieldsFragment = { @@ -8051,48 +8677,48 @@ export type RedemptionEventFragmentFragment = { __typename?: 'events' redemption?: { __typename?: 'redemptions' - vaultId: any - receiverId: string - sharesRedeemedBySender: any - assetsForReceiver: any + vault_id: any + receiver_id: string + shares_redeemed_by_sender: any + assets_for_receiver: any } | null } export type StatDetailsFragment = { __typename?: 'stats' - contractBalance: any - totalAccounts: number - totalFees: any - totalAtoms: number - totalTriples: number - totalPositions: number - totalSignals: number + contract_balance?: any | null + total_accounts?: number | null + total_fees?: any | null + total_atoms?: number | null + total_triples?: number | null + total_positions?: number | null + total_signals?: number | null } export type TripleMetadataFragment = { __typename?: 'triples' id: any - subjectId: any - predicateId: any - objectId: any - subject?: { + subject_id: any + predicate_id: any + object_id: any + subject: { __typename?: 'atoms' - data: string + data?: string | null id: any image?: string | null label?: string | null emoji?: string | null - type: string + type: any creator?: { __typename?: 'accounts' label: string image?: string | null id: string - atomId?: any | null - type: string + atom_id?: any | null + type: any } | null value?: { - __typename?: 'atomValues' + __typename?: 'atom_values' person?: { __typename?: 'persons' name?: string | null @@ -8115,25 +8741,25 @@ export type TripleMetadataFragment = { url?: string | null } | null } | null - } | null - predicate?: { + } + predicate: { __typename?: 'atoms' - data: string + data?: string | null id: any image?: string | null label?: string | null emoji?: string | null - type: string + type: any creator?: { __typename?: 'accounts' label: string image?: string | null id: string - atomId?: any | null - type: string + atom_id?: any | null + type: any } | null value?: { - __typename?: 'atomValues' + __typename?: 'atom_values' person?: { __typename?: 'persons' name?: string | null @@ -8156,25 +8782,25 @@ export type TripleMetadataFragment = { url?: string | null } | null } | null - } | null - object?: { + } + object: { __typename?: 'atoms' - data: string + data?: string | null id: any image?: string | null label?: string | null emoji?: string | null - type: string + type: any creator?: { __typename?: 'accounts' label: string image?: string | null id: string - atomId?: any | null - type: string + atom_id?: any | null + type: any } | null value?: { - __typename?: 'atomValues' + __typename?: 'atom_values' person?: { __typename?: 'persons' name?: string | null @@ -8197,11 +8823,11 @@ export type TripleMetadataFragment = { url?: string | null } | null } | null - } | null + } vault?: { __typename?: 'vaults' - totalShares: any - currentSharePrice: any + total_shares: any + current_share_price: any allPositions: { __typename?: 'positions_aggregate' aggregate?: { @@ -8217,12 +8843,18 @@ export type TripleMetadataFragment = { __typename?: 'positions' shares: any account?: { __typename?: 'accounts'; id: string; label: string } | null + vault: { + __typename?: 'vaults' + id: any + total_shares: any + current_share_price: any + } }> } | null - counterVault?: { + counter_vault?: { __typename?: 'vaults' - totalShares: any - currentSharePrice: any + total_shares: any + current_share_price: any allPositions: { __typename?: 'positions_aggregate' aggregate?: { @@ -8238,102 +8870,446 @@ export type TripleMetadataFragment = { __typename?: 'positions' shares: any account?: { __typename?: 'accounts'; id: string; label: string } | null + vault: { + __typename?: 'vaults' + id: any + total_shares: any + current_share_price: any + } }> } | null } export type TripleTxnFragment = { __typename?: 'triples' - blockNumber: any - blockTimestamp: any - transactionHash: any - creatorId: string + block_number: any + block_timestamp: any + transaction_hash: any + creator_id: string } export type TripleVaultDetailsFragment = { __typename?: 'triples' - vaultId: any - counterVaultId: any + vault_id: any + counter_vault_id: any vault?: { __typename?: 'vaults' positions: Array<{ __typename?: 'positions' id: string - vaultId: any - shares: any - account?: { - __typename?: 'accounts' - id: string - label: string - image?: string | null - } | null - }> - } | null - counterVault?: { - __typename?: 'vaults' - positions: Array<{ - __typename?: 'positions' - id: string - vaultId: any shares: any + vault_id: any account?: { __typename?: 'accounts' id: string label: string image?: string | null } | null - }> - } | null -} - -export type TripleVaultCouterVaultDetailsWithPositionsFragment = { - __typename?: 'triples' - vaultId: any - counterVaultId: any - vault?: { - __typename?: 'vaults' - id: any - currentSharePrice: any - totalShares: any - atom?: { __typename?: 'atoms'; id: any; label?: string | null } | null + vault: { + __typename?: 'vaults' + id: any + atom?: { + __typename?: 'atoms' + id: any + label?: string | null + image?: string | null + } | null + triple?: { + __typename?: 'triples' + id: any + vault?: { + __typename?: 'vaults' + id: any + position_count: number + positions_aggregate: { + __typename?: 'positions_aggregate' + aggregate?: { + __typename?: 'positions_aggregate_fields' + sum?: { + __typename?: 'positions_sum_fields' + shares?: any | null + } | null + } | null + } + } | null + counter_vault?: { + __typename?: 'vaults' + id: any + position_count: number + positions_aggregate: { + __typename?: 'positions_aggregate' + aggregate?: { + __typename?: 'positions_aggregate_fields' + sum?: { + __typename?: 'positions_sum_fields' + shares?: any | null + } | null + } | null + } + } | null + subject: { + __typename?: 'atoms' + data?: string | null + id: any + label?: string | null + image?: string | null + emoji?: string | null + type: any + creator?: { + __typename?: 'accounts' + label: string + image?: string | null + id: string + atom_id?: any | null + type: any + } | null + value?: { + __typename?: 'atom_values' + person?: { + __typename?: 'persons' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + thing?: { + __typename?: 'things' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + organization?: { + __typename?: 'organizations' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + } | null + } + predicate: { + __typename?: 'atoms' + data?: string | null + id: any + label?: string | null + image?: string | null + emoji?: string | null + type: any + creator?: { + __typename?: 'accounts' + label: string + image?: string | null + id: string + atom_id?: any | null + type: any + } | null + value?: { + __typename?: 'atom_values' + person?: { + __typename?: 'persons' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + thing?: { + __typename?: 'things' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + organization?: { + __typename?: 'organizations' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + } | null + } + object: { + __typename?: 'atoms' + data?: string | null + id: any + label?: string | null + image?: string | null + emoji?: string | null + type: any + creator?: { + __typename?: 'accounts' + label: string + image?: string | null + id: string + atom_id?: any | null + type: any + } | null + value?: { + __typename?: 'atom_values' + person?: { + __typename?: 'persons' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + thing?: { + __typename?: 'things' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + organization?: { + __typename?: 'organizations' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + } | null + } + } | null + } + }> + } | null + counter_vault?: { + __typename?: 'vaults' + positions: Array<{ + __typename?: 'positions' + id: string + shares: any + vault_id: any + account?: { + __typename?: 'accounts' + id: string + label: string + image?: string | null + } | null + vault: { + __typename?: 'vaults' + id: any + atom?: { + __typename?: 'atoms' + id: any + label?: string | null + image?: string | null + } | null + triple?: { + __typename?: 'triples' + id: any + vault?: { + __typename?: 'vaults' + id: any + position_count: number + positions_aggregate: { + __typename?: 'positions_aggregate' + aggregate?: { + __typename?: 'positions_aggregate_fields' + sum?: { + __typename?: 'positions_sum_fields' + shares?: any | null + } | null + } | null + } + } | null + counter_vault?: { + __typename?: 'vaults' + id: any + position_count: number + positions_aggregate: { + __typename?: 'positions_aggregate' + aggregate?: { + __typename?: 'positions_aggregate_fields' + sum?: { + __typename?: 'positions_sum_fields' + shares?: any | null + } | null + } | null + } + } | null + subject: { + __typename?: 'atoms' + data?: string | null + id: any + label?: string | null + image?: string | null + emoji?: string | null + type: any + creator?: { + __typename?: 'accounts' + label: string + image?: string | null + id: string + atom_id?: any | null + type: any + } | null + value?: { + __typename?: 'atom_values' + person?: { + __typename?: 'persons' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + thing?: { + __typename?: 'things' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + organization?: { + __typename?: 'organizations' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + } | null + } + predicate: { + __typename?: 'atoms' + data?: string | null + id: any + label?: string | null + image?: string | null + emoji?: string | null + type: any + creator?: { + __typename?: 'accounts' + label: string + image?: string | null + id: string + atom_id?: any | null + type: any + } | null + value?: { + __typename?: 'atom_values' + person?: { + __typename?: 'persons' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + thing?: { + __typename?: 'things' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + organization?: { + __typename?: 'organizations' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + } | null + } + object: { + __typename?: 'atoms' + data?: string | null + id: any + label?: string | null + image?: string | null + emoji?: string | null + type: any + creator?: { + __typename?: 'accounts' + label: string + image?: string | null + id: string + atom_id?: any | null + type: any + } | null + value?: { + __typename?: 'atom_values' + person?: { + __typename?: 'persons' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + thing?: { + __typename?: 'things' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + organization?: { + __typename?: 'organizations' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + } | null + } + } | null + } + }> + } | null +} + +export type TripleVaultCouterVaultDetailsWithPositionsFragment = { + __typename?: 'triples' + vault_id: any + counter_vault_id: any + vault?: { + __typename?: 'vaults' + id: any + current_share_price: any + total_shares: any + atom?: { __typename?: 'atoms'; id: any; label?: string | null } | null triple?: { __typename?: 'triples' id: any - subject?: { __typename?: 'atoms'; id: any; label?: string | null } | null - predicate?: { - __typename?: 'atoms' - id: any - label?: string | null - } | null - object?: { __typename?: 'atoms'; id: any; label?: string | null } | null + subject: { __typename?: 'atoms'; id: any; label?: string | null } + predicate: { __typename?: 'atoms'; id: any; label?: string | null } + object: { __typename?: 'atoms'; id: any; label?: string | null } } | null positions: Array<{ __typename?: 'positions' shares: any account?: { __typename?: 'accounts'; id: string; label: string } | null + vault: { + __typename?: 'vaults' + id: any + total_shares: any + current_share_price: any + } }> } | null - counterVault?: { + counter_vault?: { __typename?: 'vaults' id: any - currentSharePrice: any - totalShares: any + current_share_price: any + total_shares: any atom?: { __typename?: 'atoms'; id: any; label?: string | null } | null triple?: { __typename?: 'triples' id: any - subject?: { __typename?: 'atoms'; id: any; label?: string | null } | null - predicate?: { - __typename?: 'atoms' - id: any - label?: string | null - } | null - object?: { __typename?: 'atoms'; id: any; label?: string | null } | null + subject: { __typename?: 'atoms'; id: any; label?: string | null } + predicate: { __typename?: 'atoms'; id: any; label?: string | null } + object: { __typename?: 'atoms'; id: any; label?: string | null } } | null positions: Array<{ __typename?: 'positions' shares: any account?: { __typename?: 'accounts'; id: string; label: string } | null + vault: { + __typename?: 'vaults' + id: any + total_shares: any + current_share_price: any + } }> } | null } @@ -8341,15 +9317,15 @@ export type TripleVaultCouterVaultDetailsWithPositionsFragment = { export type VaultBasicDetailsFragment = { __typename?: 'vaults' id: any - currentSharePrice: any - totalShares: any + current_share_price: any + total_shares: any atom?: { __typename?: 'atoms'; id: any; label?: string | null } | null triple?: { __typename?: 'triples' id: any - subject?: { __typename?: 'atoms'; id: any; label?: string | null } | null - predicate?: { __typename?: 'atoms'; id: any; label?: string | null } | null - object?: { __typename?: 'atoms'; id: any; label?: string | null } | null + subject: { __typename?: 'atoms'; id: any; label?: string | null } + predicate: { __typename?: 'atoms'; id: any; label?: string | null } + object: { __typename?: 'atoms'; id: any; label?: string | null } } | null } @@ -8371,6 +9347,12 @@ export type VaultFilteredPositionsFragment = { __typename?: 'positions' shares: any account?: { __typename?: 'accounts'; id: string; label: string } | null + vault: { + __typename?: 'vaults' + id: any + total_shares: any + current_share_price: any + } }> } @@ -8380,48 +9362,60 @@ export type VaultUnfilteredPositionsFragment = { __typename?: 'positions' shares: any account?: { __typename?: 'accounts'; id: string; label: string } | null + vault: { + __typename?: 'vaults' + id: any + total_shares: any + current_share_price: any + } }> } export type VaultDetailsFragment = { __typename?: 'vaults' id: any - currentSharePrice: any - totalShares: any + current_share_price: any + total_shares: any atom?: { __typename?: 'atoms'; id: any; label?: string | null } | null triple?: { __typename?: 'triples' id: any - subject?: { __typename?: 'atoms'; id: any; label?: string | null } | null - predicate?: { __typename?: 'atoms'; id: any; label?: string | null } | null - object?: { __typename?: 'atoms'; id: any; label?: string | null } | null + subject: { __typename?: 'atoms'; id: any; label?: string | null } + predicate: { __typename?: 'atoms'; id: any; label?: string | null } + object: { __typename?: 'atoms'; id: any; label?: string | null } } | null } export type VaultDetailsWithFilteredPositionsFragment = { __typename?: 'vaults' id: any - currentSharePrice: any - totalShares: any + current_share_price: any + total_shares: any atom?: { __typename?: 'atoms'; id: any; label?: string | null } | null triple?: { __typename?: 'triples' id: any - subject?: { __typename?: 'atoms'; id: any; label?: string | null } | null - predicate?: { __typename?: 'atoms'; id: any; label?: string | null } | null - object?: { __typename?: 'atoms'; id: any; label?: string | null } | null + subject: { __typename?: 'atoms'; id: any; label?: string | null } + predicate: { __typename?: 'atoms'; id: any; label?: string | null } + object: { __typename?: 'atoms'; id: any; label?: string | null } } | null positions: Array<{ __typename?: 'positions' shares: any account?: { __typename?: 'accounts'; id: string; label: string } | null + vault: { + __typename?: 'vaults' + id: any + total_shares: any + current_share_price: any + } }> } export type VaultFieldsForTripleFragment = { __typename?: 'vaults' - totalShares: any - currentSharePrice: any + total_shares: any + current_share_price: any positions_aggregate: { __typename?: 'positions_aggregate' aggregate?: { @@ -8434,6 +9428,12 @@ export type VaultFieldsForTripleFragment = { __typename?: 'positions' shares: any account?: { __typename?: 'accounts'; id: string; label: string } | null + vault: { + __typename?: 'vaults' + id: any + total_shares: any + current_share_price: any + } }> } @@ -8457,16 +9457,16 @@ export type GetAccountsQuery = { label: string image?: string | null id: string - atomId?: any | null - type: string + atom_id?: any | null + type: any atom?: { __typename?: 'atoms' - vaultId: any - walletId: string + vault_id: any + wallet_id: string vault?: { __typename?: 'vaults' - positionCount: number - totalShares: any + position_count: number + total_shares: any positions_aggregate: { __typename?: 'positions_aggregate' aggregate?: { @@ -8493,25 +9493,21 @@ export type GetAccountsQuery = { claims: Array<{ __typename?: 'claims' shares: any - counterShares: any - triple?: { __typename?: 'triples'; id: any; label?: string | null } | null + counter_shares: any + triple: { __typename?: 'triples'; id: any } }> positions: Array<{ __typename?: 'positions' id: string shares: any - vault?: { + vault: { __typename?: 'vaults' id: any - totalShares: any - currentSharePrice: any + total_shares: any + current_share_price: any atom?: { __typename?: 'atoms'; id: any; label?: string | null } | null - triple?: { - __typename?: 'triples' - id: any - label?: string | null - } | null - } | null + triple?: { __typename?: 'triples'; id: any } | null + } }> }> } @@ -8546,34 +9542,26 @@ export type GetAccountsWithAggregatesQuery = { label: string image?: string | null id: string - atomId?: any | null - type: string + atom_id?: any | null + type: any claims: Array<{ __typename?: 'claims' shares: any - counterShares: any - triple?: { - __typename?: 'triples' - id: any - label?: string | null - } | null + counter_shares: any + triple: { __typename?: 'triples'; id: any } }> positions: Array<{ __typename?: 'positions' id: string shares: any - vault?: { + vault: { __typename?: 'vaults' id: any - totalShares: any - currentSharePrice: any + total_shares: any + current_share_price: any atom?: { __typename?: 'atoms'; id: any; label?: string | null } | null - triple?: { - __typename?: 'triples' - id: any - label?: string | null - } | null - } | null + triple?: { __typename?: 'triples'; id: any } | null + } }> }> } @@ -8619,18 +9607,18 @@ export type GetAccountQuery = { label: string image?: string | null id: string - atomId?: any | null - type: string + atom_id?: any | null + type: any atom?: { __typename?: 'atoms' id: any - data: string + data?: string | null image?: string | null label?: string | null emoji?: string | null - type: string - walletId: string - vaultId: any + type: any + wallet_id: string + vault_id: any creator?: { __typename?: 'accounts' id: string @@ -8639,9 +9627,9 @@ export type GetAccountQuery = { } | null vault?: { __typename?: 'vaults' - positionCount: number - totalShares: any - currentSharePrice: any + position_count: number + total_shares: any + current_share_price: any positions_aggregate: { __typename?: 'positions_aggregate' aggregate?: { @@ -8665,7 +9653,7 @@ export type GetAccountQuery = { }> } | null value?: { - __typename?: 'atomValues' + __typename?: 'atom_values' person?: { __typename?: 'persons' name?: string | null @@ -8692,42 +9680,41 @@ export type GetAccountQuery = { claims: Array<{ __typename?: 'claims' shares: any - counterShares: any - triple?: { __typename?: 'triples'; id: any; label?: string | null } | null + counter_shares: any + triple: { __typename?: 'triples'; id: any } }> positions: Array<{ __typename?: 'positions' id: string shares: any - vault?: { + vault: { __typename?: 'vaults' id: any - totalShares: any - currentSharePrice: any + total_shares: any + current_share_price: any atom?: { __typename?: 'atoms'; id: any; label?: string | null } | null - triple?: { - __typename?: 'triples' - id: any - label?: string | null - } | null - } | null + triple?: { __typename?: 'triples'; id: any } | null + } }> - createdAtoms: Array<{ + atoms: Array<{ __typename?: 'atoms' id: any label?: string | null - data: string + data?: string | null vault?: { __typename?: 'vaults' - totalShares: any - positions: Array<{ - __typename?: 'positions' - shares: any - account?: { __typename?: 'accounts'; id: string } | null - }> + total_shares: any + positions_aggregate: { + __typename?: 'positions_aggregate' + nodes: Array<{ + __typename?: 'positions' + shares: any + account?: { __typename?: 'accounts'; id: string } | null + }> + } } | null }> - createdTriples_aggregate: { + triples_aggregate: { __typename?: 'triples_aggregate' aggregate?: { __typename?: 'triples_aggregate_fields' @@ -8736,22 +9723,13 @@ export type GetAccountQuery = { nodes: Array<{ __typename?: 'triples' id: any - label?: string | null - subject?: { - __typename?: 'atoms' - id: any - label?: string | null - } | null - predicate?: { - __typename?: 'atoms' - id: any - label?: string | null - } | null - object?: { __typename?: 'atoms'; id: any; label?: string | null } | null + subject: { __typename?: 'atoms'; id: any; label?: string | null } + predicate: { __typename?: 'atoms'; id: any; label?: string | null } + object: { __typename?: 'atoms'; id: any; label?: string | null } }> } } | null - chainLinkPrices: Array<{ __typename?: 'chainLinkPrices'; usd: any }> + chainlink_prices: Array<{ __typename?: 'chainlink_prices'; usd?: any | null }> } export type GetAccountWithPaginatedRelationsQueryVariables = Exact<{ @@ -8779,47 +9757,46 @@ export type GetAccountWithPaginatedRelationsQuery = { label: string image?: string | null id: string - atomId?: any | null - type: string + atom_id?: any | null + type: any claims: Array<{ __typename?: 'claims' shares: any - counterShares: any - triple?: { __typename?: 'triples'; id: any; label?: string | null } | null + counter_shares: any + triple: { __typename?: 'triples'; id: any } }> positions: Array<{ __typename?: 'positions' id: string shares: any - vault?: { + vault: { __typename?: 'vaults' id: any - totalShares: any - currentSharePrice: any + total_shares: any + current_share_price: any atom?: { __typename?: 'atoms'; id: any; label?: string | null } | null - triple?: { - __typename?: 'triples' - id: any - label?: string | null - } | null - } | null + triple?: { __typename?: 'triples'; id: any } | null + } }> - createdAtoms: Array<{ + atoms: Array<{ __typename?: 'atoms' id: any label?: string | null - data: string + data?: string | null vault?: { __typename?: 'vaults' - totalShares: any - positions: Array<{ - __typename?: 'positions' - shares: any - account?: { __typename?: 'accounts'; id: string } | null - }> + total_shares: any + positions_aggregate: { + __typename?: 'positions_aggregate' + nodes: Array<{ + __typename?: 'positions' + shares: any + account?: { __typename?: 'accounts'; id: string } | null + }> + } } | null }> - createdTriples_aggregate: { + triples_aggregate: { __typename?: 'triples_aggregate' aggregate?: { __typename?: 'triples_aggregate_fields' @@ -8828,18 +9805,9 @@ export type GetAccountWithPaginatedRelationsQuery = { nodes: Array<{ __typename?: 'triples' id: any - label?: string | null - subject?: { - __typename?: 'atoms' - id: any - label?: string | null - } | null - predicate?: { - __typename?: 'atoms' - id: any - label?: string | null - } | null - object?: { __typename?: 'atoms'; id: any; label?: string | null } | null + subject: { __typename?: 'atoms'; id: any; label?: string | null } + predicate: { __typename?: 'atoms'; id: any; label?: string | null } + object: { __typename?: 'atoms'; id: any; label?: string | null } }> } } | null @@ -8870,8 +9838,8 @@ export type GetAccountWithAggregatesQuery = { label: string image?: string | null id: string - atomId?: any | null - type: string + atom_id?: any | null + type: any claims_aggregate: { __typename?: 'claims_aggregate' aggregate?: { @@ -8881,12 +9849,8 @@ export type GetAccountWithAggregatesQuery = { nodes: Array<{ __typename?: 'claims' shares: any - counterShares: any - triple?: { - __typename?: 'triples' - id: any - label?: string | null - } | null + counter_shares: any + triple: { __typename?: 'triples'; id: any } }> } positions_aggregate: { @@ -8899,21 +9863,17 @@ export type GetAccountWithAggregatesQuery = { __typename?: 'positions' id: string shares: any - vault?: { + vault: { __typename?: 'vaults' id: any - totalShares: any - currentSharePrice: any + total_shares: any + current_share_price: any atom?: { __typename?: 'atoms'; id: any; label?: string | null } | null - triple?: { - __typename?: 'triples' - id: any - label?: string | null - } | null - } | null + triple?: { __typename?: 'triples'; id: any } | null + } }> } - createdAtoms_aggregate: { + atoms_aggregate: { __typename?: 'atoms_aggregate' aggregate?: { __typename?: 'atoms_aggregate_fields' @@ -8924,10 +9884,10 @@ export type GetAccountWithAggregatesQuery = { __typename?: 'atoms' id: any label?: string | null - data: string + data?: string | null vault?: { __typename?: 'vaults' - totalShares: any + total_shares: any positions_aggregate: { __typename?: 'positions_aggregate' nodes: Array<{ @@ -8939,7 +9899,7 @@ export type GetAccountWithAggregatesQuery = { } | null }> } - createdTriples_aggregate: { + triples_aggregate: { __typename?: 'triples_aggregate' aggregate?: { __typename?: 'triples_aggregate_fields' @@ -8948,18 +9908,9 @@ export type GetAccountWithAggregatesQuery = { nodes: Array<{ __typename?: 'triples' id: any - label?: string | null - subject?: { - __typename?: 'atoms' - id: any - label?: string | null - } | null - predicate?: { - __typename?: 'atoms' - id: any - label?: string | null - } | null - object?: { __typename?: 'atoms'; id: any; label?: string | null } | null + subject: { __typename?: 'atoms'; id: any; label?: string | null } + predicate: { __typename?: 'atoms'; id: any; label?: string | null } + object: { __typename?: 'atoms'; id: any; label?: string | null } }> } } | null @@ -8981,30 +9932,30 @@ export type GetAtomsQuery = { atoms: Array<{ __typename?: 'atoms' id: any - data: string + data?: string | null image?: string | null label?: string | null emoji?: string | null - type: string - walletId: string - blockNumber: any - blockTimestamp: any - transactionHash: any - creatorId: string - vaultId: any + type: any + wallet_id: string + block_number: any + block_timestamp: any + transaction_hash: any + creator_id: string + vault_id: any creator?: { __typename?: 'accounts' id: string label: string image?: string | null - atomId?: any | null - type: string + atom_id?: any | null + type: any } | null vault?: { __typename?: 'vaults' - positionCount: number - totalShares: any - currentSharePrice: any + position_count: number + total_shares: any + current_share_price: any positions_aggregate: { __typename?: 'positions_aggregate' aggregate?: { @@ -9023,8 +9974,122 @@ export type GetAtomsQuery = { account?: { __typename?: 'accounts'; label: string; id: string } | null }> } | null + as_subject_triples: Array<{ + __typename?: 'triples' + id: any + object: { + __typename?: 'atoms' + data?: string | null + id: any + image?: string | null + label?: string | null + emoji?: string | null + type: any + creator?: { + __typename?: 'accounts' + label: string + image?: string | null + id: string + atom_id?: any | null + type: any + } | null + } + predicate: { + __typename?: 'atoms' + data?: string | null + id: any + image?: string | null + label?: string | null + emoji?: string | null + type: any + creator?: { + __typename?: 'accounts' + label: string + image?: string | null + id: string + atom_id?: any | null + type: any + } | null + } + }> + as_predicate_triples: Array<{ + __typename?: 'triples' + id: any + subject: { + __typename?: 'atoms' + data?: string | null + id: any + image?: string | null + label?: string | null + emoji?: string | null + type: any + creator?: { + __typename?: 'accounts' + label: string + image?: string | null + id: string + atom_id?: any | null + type: any + } | null + } + object: { + __typename?: 'atoms' + data?: string | null + id: any + image?: string | null + label?: string | null + emoji?: string | null + type: any + creator?: { + __typename?: 'accounts' + label: string + image?: string | null + id: string + atom_id?: any | null + type: any + } | null + } + }> + as_object_triples: Array<{ + __typename?: 'triples' + id: any + subject: { + __typename?: 'atoms' + data?: string | null + id: any + image?: string | null + label?: string | null + emoji?: string | null + type: any + creator?: { + __typename?: 'accounts' + label: string + image?: string | null + id: string + atom_id?: any | null + type: any + } | null + } + predicate: { + __typename?: 'atoms' + data?: string | null + id: any + image?: string | null + label?: string | null + emoji?: string | null + type: any + creator?: { + __typename?: 'accounts' + label: string + image?: string | null + id: string + atom_id?: any | null + type: any + } | null + } + }> value?: { - __typename?: 'atomValues' + __typename?: 'atom_values' person?: { __typename?: 'persons' name?: string | null @@ -9067,21 +10132,21 @@ export type GetAtomsWithPositionsQuery = { atoms: Array<{ __typename?: 'atoms' id: any - data: string + data?: string | null image?: string | null label?: string | null emoji?: string | null - type: string - walletId: string - blockNumber: any - blockTimestamp: any - transactionHash: any - creatorId: string + type: any + wallet_id: string + block_number: any + block_timestamp: any + transaction_hash: any + creator_id: string vault?: { __typename?: 'vaults' - positionCount: number - totalShares: any - currentSharePrice: any + position_count: number + total_shares: any + current_share_price: any total: { __typename?: 'positions_aggregate' aggregate?: { @@ -9105,11 +10170,11 @@ export type GetAtomsWithPositionsQuery = { id: string label: string image?: string | null - atomId?: any | null - type: string + atom_id?: any | null + type: any } | null value?: { - __typename?: 'atomValues' + __typename?: 'atom_values' person?: { __typename?: 'persons' name?: string | null @@ -9150,30 +10215,30 @@ export type GetAtomsWithAggregatesQuery = { nodes: Array<{ __typename?: 'atoms' id: any - data: string + data?: string | null image?: string | null label?: string | null emoji?: string | null - type: string - walletId: string - blockNumber: any - blockTimestamp: any - transactionHash: any - creatorId: string - vaultId: any + type: any + wallet_id: string + block_number: any + block_timestamp: any + transaction_hash: any + creator_id: string + vault_id: any creator?: { __typename?: 'accounts' id: string label: string image?: string | null - atomId?: any | null - type: string + atom_id?: any | null + type: any } | null vault?: { __typename?: 'vaults' - positionCount: number - totalShares: any - currentSharePrice: any + position_count: number + total_shares: any + current_share_price: any positions_aggregate: { __typename?: 'positions_aggregate' aggregate?: { @@ -9197,7 +10262,7 @@ export type GetAtomsWithAggregatesQuery = { }> } | null value?: { - __typename?: 'atomValues' + __typename?: 'atom_values' person?: { __typename?: 'persons' name?: string | null @@ -9245,30 +10310,30 @@ export type GetAtomQuery = { atom?: { __typename?: 'atoms' id: any - data: string + data?: string | null image?: string | null label?: string | null emoji?: string | null - type: string - walletId: string - blockNumber: any - blockTimestamp: any - transactionHash: any - creatorId: string - vaultId: any + type: any + wallet_id: string + block_number: any + block_timestamp: any + transaction_hash: any + creator_id: string + vault_id: any creator?: { __typename?: 'accounts' id: string label: string image?: string | null - atomId?: any | null - type: string + atom_id?: any | null + type: any } | null vault?: { __typename?: 'vaults' - positionCount: number - totalShares: any - currentSharePrice: any + position_count: number + total_shares: any + current_share_price: any positions_aggregate: { __typename?: 'positions_aggregate' aggregate?: { @@ -9287,125 +10352,122 @@ export type GetAtomQuery = { account?: { __typename?: 'accounts'; label: string; id: string } | null }> } | null - asSubject: Array<{ + as_subject_triples: Array<{ __typename?: 'triples' id: any - label?: string | null - object?: { + object: { __typename?: 'atoms' - data: string + data?: string | null id: any image?: string | null label?: string | null emoji?: string | null - type: string + type: any creator?: { __typename?: 'accounts' label: string image?: string | null id: string - atomId?: any | null - type: string + atom_id?: any | null + type: any } | null - } | null - predicate?: { + } + predicate: { __typename?: 'atoms' - data: string + data?: string | null id: any image?: string | null label?: string | null emoji?: string | null - type: string + type: any creator?: { __typename?: 'accounts' label: string image?: string | null id: string - atomId?: any | null - type: string + atom_id?: any | null + type: any } | null - } | null + } }> - asPredicate: Array<{ + as_predicate_triples: Array<{ __typename?: 'triples' id: any - label?: string | null - subject?: { + subject: { __typename?: 'atoms' - data: string + data?: string | null id: any image?: string | null label?: string | null emoji?: string | null - type: string + type: any creator?: { __typename?: 'accounts' label: string image?: string | null id: string - atomId?: any | null - type: string + atom_id?: any | null + type: any } | null - } | null - object?: { + } + object: { __typename?: 'atoms' - data: string + data?: string | null id: any image?: string | null label?: string | null emoji?: string | null - type: string + type: any creator?: { __typename?: 'accounts' label: string image?: string | null id: string - atomId?: any | null - type: string + atom_id?: any | null + type: any } | null - } | null + } }> - asObject: Array<{ + as_object_triples: Array<{ __typename?: 'triples' id: any - label?: string | null - subject?: { + subject: { __typename?: 'atoms' - data: string + data?: string | null id: any image?: string | null label?: string | null emoji?: string | null - type: string + type: any creator?: { __typename?: 'accounts' label: string image?: string | null id: string - atomId?: any | null - type: string + atom_id?: any | null + type: any } | null - } | null - predicate?: { + } + predicate: { __typename?: 'atoms' - data: string + data?: string | null id: any image?: string | null label?: string | null emoji?: string | null - type: string + type: any creator?: { __typename?: 'accounts' label: string image?: string | null id: string - atomId?: any | null - type: string + atom_id?: any | null + type: any } | null - } | null + } }> value?: { - __typename?: 'atomValues' + __typename?: 'atom_values' person?: { __typename?: 'persons' name?: string | null @@ -9443,73 +10505,51 @@ export type GetClaimsByAddressQuery = { nodes: Array<{ __typename?: 'claims' id: string - vaultId: any - counterVaultId: any + vault_id: any + counter_vault_id: any shares: any - counterShares: any + counter_shares: any account?: { __typename?: 'accounts'; label: string } | null - triple?: { + triple: { __typename?: 'triples' - subject?: { __typename?: 'atoms'; label?: string | null } | null - predicate?: { __typename?: 'atoms'; label?: string | null } | null - object?: { __typename?: 'atoms'; label?: string | null } | null - } | null + subject: { __typename?: 'atoms'; label?: string | null } + predicate: { __typename?: 'atoms'; label?: string | null } + object: { __typename?: 'atoms'; label?: string | null } + } }> } } -export type GetEventsQueryVariables = Exact<{ +export type GetFollowingPositionsQueryVariables = Exact<{ + subjectId: Scalars['numeric']['input'] + predicateId: Scalars['numeric']['input'] + address: Scalars['String']['input'] limit?: InputMaybe offset?: InputMaybe - orderBy?: InputMaybe | Events_Order_By> - where?: InputMaybe - addresses?: InputMaybe< - Array | Scalars['String']['input'] - > + positionsOrderBy?: InputMaybe | Positions_Order_By> }> -export type GetEventsQuery = { +export type GetFollowingPositionsQuery = { __typename?: 'query_root' - total: { - __typename?: 'events_aggregate' - aggregate?: { __typename?: 'events_aggregate_fields'; count: number } | null + triples_aggregate: { + __typename?: 'triples_aggregate' + aggregate?: { + __typename?: 'triples_aggregate_fields' + count: number + } | null } - events: Array<{ - __typename?: 'events' - id: string - blockNumber: any - blockTimestamp: any - type: string - transactionHash: any - atomId?: any | null - tripleId?: any | null - depositId?: string | null - redemptionId?: string | null - atom?: { + triples: Array<{ + __typename?: 'triples' + id: any + subject: { __typename?: 'atoms' id: any - data: string + data?: string | null image?: string | null label?: string | null emoji?: string | null - type: string - walletId: string - vault?: { - __typename?: 'vaults' - totalShares: any - positionCount: number - positions: Array<{ - __typename?: 'positions' - accountId: string - shares: any - account?: { - __typename?: 'accounts' - id: string - label: string - image?: string | null - } | null - }> - } | null + type: any + wallet_id: string creator?: { __typename?: 'accounts' id: string @@ -9517,7 +10557,7 @@ export type GetEventsQuery = { image?: string | null } | null value?: { - __typename?: 'atomValues' + __typename?: 'atom_values' person?: { __typename?: 'persons' name?: string | null @@ -9540,1087 +10580,893 @@ export type GetEventsQuery = { url?: string | null } | null } | null - } | null - triple?: { - __typename?: 'triples' + } + predicate: { + __typename?: 'atoms' id: any + data?: string | null + image?: string | null label?: string | null + emoji?: string | null + type: any + wallet_id: string creator?: { __typename?: 'accounts' + id: string label: string image?: string | null - id: string - atomId?: any | null - type: string } | null - subject?: { - __typename?: 'atoms' - data: string - id: any - image?: string | null - label?: string | null - emoji?: string | null - type: string - creator?: { - __typename?: 'accounts' - label: string + value?: { + __typename?: 'atom_values' + person?: { + __typename?: 'persons' + name?: string | null image?: string | null - id: string - atomId?: any | null - type: string - } | null - value?: { - __typename?: 'atomValues' - person?: { - __typename?: 'persons' - name?: string | null - image?: string | null - description?: string | null - url?: string | null - } | null - thing?: { - __typename?: 'things' - name?: string | null - image?: string | null - description?: string | null - url?: string | null - } | null - organization?: { - __typename?: 'organizations' - name?: string | null - image?: string | null - description?: string | null - url?: string | null - } | null + description?: string | null + url?: string | null } | null - } | null - predicate?: { - __typename?: 'atoms' - data: string - id: any - image?: string | null - label?: string | null - emoji?: string | null - type: string - creator?: { - __typename?: 'accounts' - label: string + thing?: { + __typename?: 'things' + name?: string | null image?: string | null - id: string - atomId?: any | null - type: string + description?: string | null + url?: string | null } | null - value?: { - __typename?: 'atomValues' - person?: { - __typename?: 'persons' - name?: string | null - image?: string | null - description?: string | null - url?: string | null - } | null - thing?: { - __typename?: 'things' - name?: string | null - image?: string | null - description?: string | null - url?: string | null - } | null - organization?: { - __typename?: 'organizations' - name?: string | null - image?: string | null - description?: string | null - url?: string | null - } | null + organization?: { + __typename?: 'organizations' + name?: string | null + image?: string | null + description?: string | null + url?: string | null } | null } | null - object?: { - __typename?: 'atoms' - data: string - id: any + } + object: { + __typename?: 'atoms' + id: any + data?: string | null + image?: string | null + label?: string | null + emoji?: string | null + type: any + wallet_id: string + creator?: { + __typename?: 'accounts' + id: string + label: string image?: string | null - label?: string | null - emoji?: string | null - type: string - creator?: { - __typename?: 'accounts' - label: string + } | null + value?: { + __typename?: 'atom_values' + person?: { + __typename?: 'persons' + name?: string | null image?: string | null - id: string - atomId?: any | null - type: string + description?: string | null + url?: string | null } | null - value?: { - __typename?: 'atomValues' - person?: { - __typename?: 'persons' - name?: string | null - image?: string | null - description?: string | null - url?: string | null - } | null - thing?: { - __typename?: 'things' - name?: string | null - image?: string | null - description?: string | null - url?: string | null - } | null - organization?: { - __typename?: 'organizations' - name?: string | null - image?: string | null - description?: string | null - url?: string | null - } | null + thing?: { + __typename?: 'things' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + organization?: { + __typename?: 'organizations' + name?: string | null + image?: string | null + description?: string | null + url?: string | null } | null } | null - vault?: { - __typename?: 'vaults' - totalShares: any - positionCount: number - positions: Array<{ - __typename?: 'positions' - accountId: string - shares: any - account?: { - __typename?: 'accounts' - id: string - label: string - image?: string | null - } | null - }> - } | null - counterVault?: { - __typename?: 'vaults' - totalShares: any - positionCount: number - positions: Array<{ - __typename?: 'positions' - accountId: string - shares: any - account?: { - __typename?: 'accounts' - id: string - label: string - image?: string | null - } | null - }> - } | null - } | null - deposit?: { - __typename?: 'deposits' - senderId: string - sharesForReceiver: any - senderAssetsAfterTotalFees: any - sender?: { __typename?: 'accounts'; id: string } | null - vault?: { - __typename?: 'vaults' - totalShares: any - positionCount: number - positions: Array<{ - __typename?: 'positions' - accountId: string - shares: any - account?: { - __typename?: 'accounts' - id: string - label: string - image?: string | null + } + vault?: { + __typename?: 'vaults' + total_shares: any + current_share_price: any + positions_aggregate: { + __typename?: 'positions_aggregate' + aggregate?: { + __typename?: 'positions_aggregate_fields' + count: number + sum?: { + __typename?: 'positions_sum_fields' + shares?: any | null } | null - }> - } | null - } | null - redemption?: { - __typename?: 'redemptions' - senderId: string - sender?: { __typename?: 'accounts'; id: string } | null + } | null + } + positions: Array<{ + __typename?: 'positions' + account_id: string + shares: any + account?: { __typename?: 'accounts'; id: string; label: string } | null + }> } | null }> } -export type GetEventsWithAggregatesQueryVariables = Exact<{ - limit?: InputMaybe - offset?: InputMaybe - orderBy?: InputMaybe | Events_Order_By> - where?: InputMaybe - addresses?: InputMaybe< - Array | Scalars['String']['input'] - > +export type GetFollowerPositionsQueryVariables = Exact<{ + subjectId: Scalars['numeric']['input'] + predicateId: Scalars['numeric']['input'] + objectId: Scalars['numeric']['input'] + positionsLimit?: InputMaybe + positionsOffset?: InputMaybe + positionsOrderBy?: InputMaybe | Positions_Order_By> + positionsWhere?: InputMaybe }> -export type GetEventsWithAggregatesQuery = { +export type GetFollowerPositionsQuery = { __typename?: 'query_root' - events_aggregate: { - __typename?: 'events_aggregate' - aggregate?: { - __typename?: 'events_aggregate_fields' - count: number - max?: { - __typename?: 'events_max_fields' - blockTimestamp?: any | null - blockNumber?: any | null + triples: Array<{ + __typename?: 'triples' + id: any + subject: { + __typename?: 'atoms' + id: any + data?: string | null + image?: string | null + label?: string | null + emoji?: string | null + type: any + wallet_id: string + creator?: { + __typename?: 'accounts' + id: string + label: string + image?: string | null + } | null + value?: { + __typename?: 'atom_values' + person?: { + __typename?: 'persons' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + thing?: { + __typename?: 'things' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + organization?: { + __typename?: 'organizations' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null } | null - min?: { - __typename?: 'events_min_fields' - blockTimestamp?: any | null - blockNumber?: any | null + } + predicate: { + __typename?: 'atoms' + id: any + data?: string | null + image?: string | null + label?: string | null + emoji?: string | null + type: any + wallet_id: string + creator?: { + __typename?: 'accounts' + id: string + label: string + image?: string | null } | null - } | null - nodes: Array<{ - __typename?: 'events' - blockNumber: any - blockTimestamp: any - type: string - transactionHash: any - atomId?: any | null - tripleId?: any | null - depositId?: string | null - redemptionId?: string | null - atom?: { - __typename?: 'atoms' - id: any - data: string + value?: { + __typename?: 'atom_values' + person?: { + __typename?: 'persons' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + thing?: { + __typename?: 'things' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + organization?: { + __typename?: 'organizations' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + } | null + } + object: { + __typename?: 'atoms' + id: any + data?: string | null + image?: string | null + label?: string | null + emoji?: string | null + type: any + wallet_id: string + creator?: { + __typename?: 'accounts' + id: string + label: string image?: string | null - label?: string | null - emoji?: string | null - type: string - walletId: string - vault?: { - __typename?: 'vaults' - totalShares: any - positionCount: number - positions: Array<{ - __typename?: 'positions' - accountId: string - shares: any - account?: { - __typename?: 'accounts' - id: string - label: string - image?: string | null - } | null - }> + } | null + value?: { + __typename?: 'atom_values' + person?: { + __typename?: 'persons' + name?: string | null + image?: string | null + description?: string | null + url?: string | null } | null - creator?: { + thing?: { + __typename?: 'things' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + organization?: { + __typename?: 'organizations' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + } | null + } + vault?: { + __typename?: 'vaults' + total_shares: any + current_share_price: any + positions_aggregate: { + __typename?: 'positions_aggregate' + aggregate?: { + __typename?: 'positions_aggregate_fields' + count: number + sum?: { + __typename?: 'positions_sum_fields' + shares?: any | null + } | null + } | null + } + positions: Array<{ + __typename?: 'positions' + shares: any + account?: { __typename?: 'accounts' id: string label: string image?: string | null } | null - value?: { - __typename?: 'atomValues' - person?: { - __typename?: 'persons' - name?: string | null - image?: string | null - description?: string | null - url?: string | null - } | null - thing?: { - __typename?: 'things' - name?: string | null - image?: string | null - description?: string | null - url?: string | null - } | null - organization?: { - __typename?: 'organizations' - name?: string | null - image?: string | null - description?: string | null - url?: string | null - } | null - } | null - } | null - triple?: { - __typename?: 'triples' - id: any - subjectId: any - predicateId: any - objectId: any - vault?: { - __typename?: 'vaults' - totalShares: any - positionCount: number - currentSharePrice: any - positions: Array<{ - __typename?: 'positions' - accountId: string - shares: any - account?: { - __typename?: 'accounts' - id: string - label: string - image?: string | null - } | null - }> - allPositions: { - __typename?: 'positions_aggregate' - aggregate?: { - __typename?: 'positions_aggregate_fields' - count: number - sum?: { - __typename?: 'positions_sum_fields' - shares?: any | null - } | null - } | null - } - } | null - counterVault?: { - __typename?: 'vaults' - totalShares: any - positionCount: number - currentSharePrice: any - positions: Array<{ - __typename?: 'positions' - accountId: string - shares: any - account?: { - __typename?: 'accounts' - id: string - label: string - image?: string | null - } | null - }> - allPositions: { - __typename?: 'positions_aggregate' - aggregate?: { - __typename?: 'positions_aggregate_fields' - count: number - sum?: { - __typename?: 'positions_sum_fields' - shares?: any | null - } | null - } | null - } - } | null - subject?: { - __typename?: 'atoms' - data: string - id: any - image?: string | null - label?: string | null - emoji?: string | null - type: string - creator?: { - __typename?: 'accounts' - label: string - image?: string | null - id: string - atomId?: any | null - type: string - } | null - value?: { - __typename?: 'atomValues' - person?: { - __typename?: 'persons' - name?: string | null - image?: string | null - description?: string | null - url?: string | null - } | null - thing?: { - __typename?: 'things' - name?: string | null - image?: string | null - description?: string | null - url?: string | null - } | null - organization?: { - __typename?: 'organizations' - name?: string | null - image?: string | null - description?: string | null - url?: string | null - } | null - } | null - } | null - predicate?: { - __typename?: 'atoms' - data: string - id: any - image?: string | null - label?: string | null - emoji?: string | null - type: string - creator?: { - __typename?: 'accounts' - label: string - image?: string | null - id: string - atomId?: any | null - type: string - } | null - value?: { - __typename?: 'atomValues' - person?: { - __typename?: 'persons' - name?: string | null - image?: string | null - description?: string | null - url?: string | null - } | null - thing?: { - __typename?: 'things' - name?: string | null - image?: string | null - description?: string | null - url?: string | null - } | null - organization?: { - __typename?: 'organizations' - name?: string | null - image?: string | null - description?: string | null - url?: string | null - } | null - } | null - } | null - object?: { - __typename?: 'atoms' - data: string - id: any - image?: string | null - label?: string | null - emoji?: string | null - type: string - creator?: { - __typename?: 'accounts' - label: string - image?: string | null - id: string - atomId?: any | null - type: string - } | null - value?: { - __typename?: 'atomValues' - person?: { - __typename?: 'persons' - name?: string | null - image?: string | null - description?: string | null - url?: string | null - } | null - thing?: { - __typename?: 'things' - name?: string | null - image?: string | null - description?: string | null - url?: string | null - } | null - organization?: { - __typename?: 'organizations' - name?: string | null - image?: string | null - description?: string | null - url?: string | null - } | null - } | null - } | null - } | null - deposit?: { - __typename?: 'deposits' - vaultId: any - senderAssetsAfterTotalFees: any - sharesForReceiver: any - receiver?: { __typename?: 'accounts'; id: string } | null - sender?: { __typename?: 'accounts'; id: string } | null - } | null - redemption?: { - __typename?: 'redemptions' - vaultId: any - receiverId: string - sharesRedeemedBySender: any - assetsForReceiver: any - } | null - }> - } -} - -export type GetEventsCountQueryVariables = Exact<{ - where?: InputMaybe -}> - -export type GetEventsCountQuery = { - __typename?: 'query_root' - events_aggregate: { - __typename?: 'events_aggregate' - aggregate?: { __typename?: 'events_aggregate_fields'; count: number } | null - } -} - -export type GetEventsDataQueryVariables = Exact<{ - where?: InputMaybe -}> - -export type GetEventsDataQuery = { - __typename?: 'query_root' - events_aggregate: { - __typename?: 'events_aggregate' - aggregate?: { - __typename?: 'events_aggregate_fields' - count: number - max?: { - __typename?: 'events_max_fields' - blockTimestamp?: any | null - blockNumber?: any | null - } | null - min?: { - __typename?: 'events_min_fields' - blockTimestamp?: any | null - blockNumber?: any | null - } | null - avg?: { - __typename?: 'events_avg_fields' - blockNumber?: number | null - } | null + }> } | null - } + }> } -export type GetDebugEventsQueryVariables = Exact<{ +export type GetConnectionsQueryVariables = Exact<{ + subjectId: Scalars['numeric']['input'] + predicateId: Scalars['numeric']['input'] + objectId: Scalars['numeric']['input'] addresses?: InputMaybe< Array | Scalars['String']['input'] > + positionsLimit?: InputMaybe + positionsOffset?: InputMaybe + positionsOrderBy?: InputMaybe | Positions_Order_By> + positionsWhere?: InputMaybe }> -export type GetDebugEventsQuery = { - __typename?: 'query_root' - debug_events: Array<{ - __typename?: 'events' - id: string - atom?: { - __typename?: 'atoms' - vault?: { - __typename?: 'vaults' - positions: Array<{ - __typename?: 'positions' - accountId: string - shares: any - }> - } | null - } | null - }> -} - -export type GetListItemsQueryVariables = Exact<{ - predicateId?: InputMaybe - objectId?: InputMaybe -}> - -export type GetListItemsQuery = { +export type GetConnectionsQuery = { __typename?: 'query_root' - triples_aggregate: { + following_count: { __typename?: 'triples_aggregate' aggregate?: { __typename?: 'triples_aggregate_fields' count: number } | null } - triples: Array<{ + following: Array<{ __typename?: 'triples' - vaultId: any - counterVaultId: any + id: any + subject: { __typename?: 'atoms'; id: any; label?: string | null } + predicate: { __typename?: 'atoms'; id: any; label?: string | null } + object: { __typename?: 'atoms'; id: any; label?: string | null } vault?: { __typename?: 'vaults' - positions: Array<{ - __typename?: 'positions' - id: string - vaultId: any - shares: any - account?: { - __typename?: 'accounts' - id: string - label: string - image?: string | null + id: any + total_shares: any + current_share_price: any + positions_aggregate: { + __typename?: 'positions_aggregate' + aggregate?: { + __typename?: 'positions_aggregate_fields' + count: number + sum?: { + __typename?: 'positions_sum_fields' + shares?: any | null + } | null } | null - }> - } | null - counterVault?: { - __typename?: 'vaults' + } positions: Array<{ __typename?: 'positions' - id: string - vaultId: any shares: any - account?: { - __typename?: 'accounts' - id: string - label: string - image?: string | null - } | null + account?: { __typename?: 'accounts'; id: string; label: string } | null }> } | null }> -} - -export type GetPositionsQueryVariables = Exact<{ - limit?: InputMaybe - offset?: InputMaybe - orderBy?: InputMaybe | Positions_Order_By> - where?: InputMaybe -}> - -export type GetPositionsQuery = { - __typename?: 'query_root' - total: { - __typename?: 'positions_aggregate' + followers_count: { + __typename?: 'triples_aggregate' aggregate?: { - __typename?: 'positions_aggregate_fields' + __typename?: 'triples_aggregate_fields' count: number - sum?: { __typename?: 'positions_sum_fields'; shares?: any | null } | null } | null } - positions: Array<{ - __typename?: 'positions' - id: string - shares: any - vaultId: any - account?: { - __typename?: 'accounts' - id: string - label: string - image?: string | null - } | null + followers: Array<{ + __typename?: 'triples' + id: any + subject: { __typename?: 'atoms'; id: any; label?: string | null } + predicate: { __typename?: 'atoms'; id: any; label?: string | null } + object: { __typename?: 'atoms'; id: any; label?: string | null } vault?: { __typename?: 'vaults' id: any - atom?: { - __typename?: 'atoms' - id: any - label?: string | null - image?: string | null - } | null - triple?: { - __typename?: 'triples' - id: any - subject?: { - __typename?: 'atoms' - id: any - label?: string | null - } | null - predicate?: { - __typename?: 'atoms' - id: any - label?: string | null + total_shares: any + current_share_price: any + positions_aggregate: { + __typename?: 'positions_aggregate' + aggregate?: { + __typename?: 'positions_aggregate_fields' + count: number + sum?: { + __typename?: 'positions_sum_fields' + shares?: any | null + } | null } | null - object?: { __typename?: 'atoms'; id: any; label?: string | null } | null - } | null + } + positions: Array<{ + __typename?: 'positions' + shares: any + account?: { __typename?: 'accounts'; id: string; label: string } | null + }> } | null }> } -export type GetTriplePositionsByAddressQueryVariables = Exact<{ - limit?: InputMaybe - offset?: InputMaybe - orderBy?: InputMaybe | Positions_Order_By> - where?: InputMaybe +export type GetConnectionsCountQueryVariables = Exact<{ + subjectId: Scalars['numeric']['input'] + predicateId: Scalars['numeric']['input'] + objectId: Scalars['numeric']['input'] address: Scalars['String']['input'] }> -export type GetTriplePositionsByAddressQuery = { +export type GetConnectionsCountQuery = { __typename?: 'query_root' - total: { - __typename?: 'positions_aggregate' + following_count: { + __typename?: 'triples_aggregate' aggregate?: { - __typename?: 'positions_aggregate_fields' + __typename?: 'triples_aggregate_fields' count: number - sum?: { __typename?: 'positions_sum_fields'; shares?: any | null } | null } | null } - positions: Array<{ - __typename?: 'positions' - id: string - shares: any - vaultId: any + followers_count: Array<{ + __typename?: 'triples' vault?: { __typename?: 'vaults' - atomId?: any | null - tripleId?: any | null - id: any - triple?: { - __typename?: 'triples' - id: any - vault?: { - __typename?: 'vaults' - positions: Array<{ - __typename?: 'positions' - shares: any - account?: { - __typename?: 'accounts' - id: string - label: string - image?: string | null - } | null - }> - } | null - counterVault?: { - __typename?: 'vaults' - positions: Array<{ - __typename?: 'positions' - shares: any - account?: { - __typename?: 'accounts' - id: string - label: string - image?: string | null - } | null - }> - } | null - subject?: { - __typename?: 'atoms' - id: any - label?: string | null - } | null - predicate?: { - __typename?: 'atoms' - id: any - label?: string | null + positions_aggregate: { + __typename?: 'positions_aggregate' + aggregate?: { + __typename?: 'positions_aggregate_fields' + count: number + sum?: { + __typename?: 'positions_sum_fields' + shares?: any | null + } | null } | null - object?: { __typename?: 'atoms'; id: any; label?: string | null } | null - } | null - atom?: { - __typename?: 'atoms' - id: any - label?: string | null - image?: string | null - } | null + } } | null - account?: { - __typename?: 'accounts' - id: string - label: string - image?: string | null + }> +} + +export type GetListsQueryVariables = Exact<{ + where?: InputMaybe +}> + +export type GetListsQuery = { + __typename?: 'query_root' + predicate_objects_aggregate: { + __typename?: 'predicate_objects_aggregate' + aggregate?: { + __typename?: 'predicate_objects_aggregate_fields' + count: number } | null + } + predicate_objects: Array<{ + __typename?: 'predicate_objects' + id: string + claim_count: number + triple_count: number + object: { + __typename?: 'atoms' + id: any + label?: string | null + image?: string | null + } }> } -export type GetPositionsWithAggregatesQueryVariables = Exact<{ - limit?: InputMaybe - offset?: InputMaybe - orderBy?: InputMaybe | Positions_Order_By> - where?: InputMaybe +export type GetListItemsQueryVariables = Exact<{ + predicateId?: InputMaybe + objectId?: InputMaybe }> -export type GetPositionsWithAggregatesQuery = { +export type GetListItemsQuery = { __typename?: 'query_root' - positions_aggregate: { - __typename?: 'positions_aggregate' + triples_aggregate: { + __typename?: 'triples_aggregate' aggregate?: { - __typename?: 'positions_aggregate_fields' + __typename?: 'triples_aggregate_fields' count: number } | null nodes: Array<{ - __typename?: 'positions' - id: string - shares: any - vaultId: any - account?: { - __typename?: 'accounts' - id: string - label: string - image?: string | null - } | null + __typename?: 'triples' + vault_id: any + counter_vault_id: any vault?: { __typename?: 'vaults' - id: any - atom?: { - __typename?: 'atoms' - id: any - label?: string | null - image?: string | null - } | null - triple?: { - __typename?: 'triples' - id: any - subject?: { - __typename?: 'atoms' - id: any - label?: string | null + positions: Array<{ + __typename?: 'positions' + id: string + shares: any + vault_id: any + account?: { + __typename?: 'accounts' + id: string + label: string + image?: string | null } | null - predicate?: { - __typename?: 'atoms' + vault: { + __typename?: 'vaults' id: any - label?: string | null + atom?: { + __typename?: 'atoms' + id: any + label?: string | null + image?: string | null + } | null + triple?: { + __typename?: 'triples' + id: any + vault?: { + __typename?: 'vaults' + id: any + position_count: number + positions_aggregate: { + __typename?: 'positions_aggregate' + aggregate?: { + __typename?: 'positions_aggregate_fields' + sum?: { + __typename?: 'positions_sum_fields' + shares?: any | null + } | null + } | null + } + } | null + counter_vault?: { + __typename?: 'vaults' + id: any + position_count: number + positions_aggregate: { + __typename?: 'positions_aggregate' + aggregate?: { + __typename?: 'positions_aggregate_fields' + sum?: { + __typename?: 'positions_sum_fields' + shares?: any | null + } | null + } | null + } + } | null + subject: { + __typename?: 'atoms' + data?: string | null + id: any + label?: string | null + image?: string | null + emoji?: string | null + type: any + creator?: { + __typename?: 'accounts' + label: string + image?: string | null + id: string + atom_id?: any | null + type: any + } | null + value?: { + __typename?: 'atom_values' + person?: { + __typename?: 'persons' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + thing?: { + __typename?: 'things' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + organization?: { + __typename?: 'organizations' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + } | null + } + predicate: { + __typename?: 'atoms' + data?: string | null + id: any + label?: string | null + image?: string | null + emoji?: string | null + type: any + creator?: { + __typename?: 'accounts' + label: string + image?: string | null + id: string + atom_id?: any | null + type: any + } | null + value?: { + __typename?: 'atom_values' + person?: { + __typename?: 'persons' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + thing?: { + __typename?: 'things' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + organization?: { + __typename?: 'organizations' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + } | null + } + object: { + __typename?: 'atoms' + data?: string | null + id: any + label?: string | null + image?: string | null + emoji?: string | null + type: any + creator?: { + __typename?: 'accounts' + label: string + image?: string | null + id: string + atom_id?: any | null + type: any + } | null + value?: { + __typename?: 'atom_values' + person?: { + __typename?: 'persons' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + thing?: { + __typename?: 'things' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + organization?: { + __typename?: 'organizations' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + } | null + } + } | null + } + }> + } | null + counter_vault?: { + __typename?: 'vaults' + positions: Array<{ + __typename?: 'positions' + id: string + shares: any + vault_id: any + account?: { + __typename?: 'accounts' + id: string + label: string + image?: string | null } | null - object?: { - __typename?: 'atoms' + vault: { + __typename?: 'vaults' id: any - label?: string | null - } | null - } | null + atom?: { + __typename?: 'atoms' + id: any + label?: string | null + image?: string | null + } | null + triple?: { + __typename?: 'triples' + id: any + vault?: { + __typename?: 'vaults' + id: any + position_count: number + positions_aggregate: { + __typename?: 'positions_aggregate' + aggregate?: { + __typename?: 'positions_aggregate_fields' + sum?: { + __typename?: 'positions_sum_fields' + shares?: any | null + } | null + } | null + } + } | null + counter_vault?: { + __typename?: 'vaults' + id: any + position_count: number + positions_aggregate: { + __typename?: 'positions_aggregate' + aggregate?: { + __typename?: 'positions_aggregate_fields' + sum?: { + __typename?: 'positions_sum_fields' + shares?: any | null + } | null + } | null + } + } | null + subject: { + __typename?: 'atoms' + data?: string | null + id: any + label?: string | null + image?: string | null + emoji?: string | null + type: any + creator?: { + __typename?: 'accounts' + label: string + image?: string | null + id: string + atom_id?: any | null + type: any + } | null + value?: { + __typename?: 'atom_values' + person?: { + __typename?: 'persons' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + thing?: { + __typename?: 'things' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + organization?: { + __typename?: 'organizations' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + } | null + } + predicate: { + __typename?: 'atoms' + data?: string | null + id: any + label?: string | null + image?: string | null + emoji?: string | null + type: any + creator?: { + __typename?: 'accounts' + label: string + image?: string | null + id: string + atom_id?: any | null + type: any + } | null + value?: { + __typename?: 'atom_values' + person?: { + __typename?: 'persons' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + thing?: { + __typename?: 'things' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + organization?: { + __typename?: 'organizations' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + } | null + } + object: { + __typename?: 'atoms' + data?: string | null + id: any + label?: string | null + image?: string | null + emoji?: string | null + type: any + creator?: { + __typename?: 'accounts' + label: string + image?: string | null + id: string + atom_id?: any | null + type: any + } | null + value?: { + __typename?: 'atom_values' + person?: { + __typename?: 'persons' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + thing?: { + __typename?: 'things' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + organization?: { + __typename?: 'organizations' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + } | null + } + } | null + } + }> } | null }> } } -export type GetPositionsCountQueryVariables = Exact<{ - where?: InputMaybe +export type GetListDetailsQueryVariables = Exact<{ + globalWhere?: InputMaybe + userWhere?: InputMaybe + tagPredicateId?: InputMaybe }> -export type GetPositionsCountQuery = { +export type GetListDetailsQuery = { __typename?: 'query_root' - positions_aggregate: { - __typename?: 'positions_aggregate' - total?: { - __typename?: 'positions_aggregate_fields' + globalTriplesAggregate: { + __typename?: 'triples_aggregate' + aggregate?: { + __typename?: 'triples_aggregate_fields' count: number - sum?: { __typename?: 'positions_sum_fields'; shares?: any | null } | null } | null } -} - -export type GetPositionQueryVariables = Exact<{ - positionId: Scalars['String']['input'] -}> - -export type GetPositionQuery = { - __typename?: 'query_root' - position?: { - __typename?: 'positions' - id: string - shares: any - vaultId: any - account?: { - __typename?: 'accounts' - id: string - label: string - image?: string | null - } | null - vault?: { - __typename?: 'vaults' - id: any - atom?: { - __typename?: 'atoms' - id: any - label?: string | null - image?: string | null - } | null - triple?: { - __typename?: 'triples' - id: any - subject?: { - __typename?: 'atoms' - id: any - label?: string | null - } | null - predicate?: { - __typename?: 'atoms' - id: any - label?: string | null - } | null - object?: { __typename?: 'atoms'; id: any; label?: string | null } | null - } | null - } | null - } | null -} - -export type GetPositionsCountByTypeQueryVariables = Exact<{ - where?: InputMaybe -}> - -export type GetPositionsCountByTypeQuery = { - __typename?: 'query_root' - positions_aggregate: { - __typename?: 'positions_aggregate' - total?: { - __typename?: 'positions_aggregate_fields' - count: number - sum?: { __typename?: 'positions_sum_fields'; shares?: any | null } | null - } | null - } - positions: Array<{ - __typename?: 'positions' - vault?: { - __typename?: 'vaults' - atomId?: any | null - tripleId?: any | null - } | null - }> -} - -export type GetStatsQueryVariables = Exact<{ [key: string]: never }> - -export type GetStatsQuery = { - __typename?: 'query_root' - stats: Array<{ - __typename?: 'stats' - contractBalance: any - totalAccounts: number - totalFees: any - totalAtoms: number - totalTriples: number - totalPositions: number - totalSignals: number - }> -} - -export type GetTriplesQueryVariables = Exact<{ - limit?: InputMaybe - offset?: InputMaybe - orderBy?: InputMaybe | Triples_Order_By> - where?: InputMaybe -}> - -export type GetTriplesQuery = { - __typename?: 'query_root' - total: { - __typename?: 'triples_aggregate' - aggregate?: { - __typename?: 'triples_aggregate_fields' - count: number - } | null - } - triples: Array<{ + globalTriples: Array<{ __typename?: 'triples' id: any - subjectId: any - predicateId: any - objectId: any - blockNumber: any - blockTimestamp: any - transactionHash: any - creatorId: string - vaultId: any - counterVaultId: any - creator?: { - __typename?: 'accounts' - label: string - image?: string | null - id: string - atomId?: any | null - type: string - } | null - subject?: { + vault_id: any + counter_vault_id: any + subject: { __typename?: 'atoms' - data: string id: any - image?: string | null + vault_id: any label?: string | null - emoji?: string | null - type: string - creator?: { - __typename?: 'accounts' - label: string - image?: string | null - id: string - atomId?: any | null - type: string - } | null - value?: { - __typename?: 'atomValues' - person?: { - __typename?: 'persons' - name?: string | null - image?: string | null - description?: string | null - url?: string | null - } | null - thing?: { - __typename?: 'things' - name?: string | null - image?: string | null - description?: string | null - url?: string | null - } | null - organization?: { - __typename?: 'organizations' - name?: string | null - image?: string | null - description?: string | null - url?: string | null + wallet_id: string + image?: string | null + type: any + tags: { + __typename?: 'triples_aggregate' + nodes: Array<{ + __typename?: 'triples' + object: { + __typename?: 'atoms' + label?: string | null + vault_id: any + taggedIdentities: { + __typename?: 'triples_aggregate' + nodes: Array<{ + __typename?: 'triples' + vault_id: any + subject: { + __typename?: 'atoms' + label?: string | null + vault_id: any + } + }> + aggregate?: { + __typename?: 'triples_aggregate_fields' + count: number + } | null + } + } + }> + aggregate?: { + __typename?: 'triples_aggregate_fields' + count: number } | null - } | null - } | null - predicate?: { + } + } + object: { __typename?: 'atoms' - data: string id: any - image?: string | null + vault_id: any label?: string | null - emoji?: string | null - type: string - creator?: { - __typename?: 'accounts' - label: string - image?: string | null - id: string - atomId?: any | null - type: string - } | null - value?: { - __typename?: 'atomValues' - person?: { - __typename?: 'persons' - name?: string | null - image?: string | null - description?: string | null - url?: string | null - } | null - thing?: { - __typename?: 'things' - name?: string | null - image?: string | null - description?: string | null - url?: string | null - } | null - organization?: { - __typename?: 'organizations' - name?: string | null - image?: string | null - description?: string | null - url?: string | null - } | null - } | null - } | null - object?: { + wallet_id: string + image?: string | null + type: any + } + predicate: { __typename?: 'atoms' - data: string id: any - image?: string | null + vault_id: any label?: string | null - emoji?: string | null - type: string - creator?: { - __typename?: 'accounts' - label: string - image?: string | null - id: string - atomId?: any | null - type: string - } | null - value?: { - __typename?: 'atomValues' - person?: { - __typename?: 'persons' - name?: string | null - image?: string | null - description?: string | null - url?: string | null - } | null - thing?: { - __typename?: 'things' - name?: string | null - image?: string | null - description?: string | null - url?: string | null - } | null - organization?: { - __typename?: 'organizations' - name?: string | null - image?: string | null - description?: string | null - url?: string | null - } | null - } | null - } | null + wallet_id: string + image?: string | null + type: any + } vault?: { __typename?: 'vaults' - totalShares: any - currentSharePrice: any - allPositions: { + positions_aggregate: { __typename?: 'positions_aggregate' aggregate?: { __typename?: 'positions_aggregate_fields' @@ -10631,24 +11477,81 @@ export type GetTriplesQuery = { } | null } | null } - positions: Array<{ - __typename?: 'positions' - id: string - vaultId: any - shares: any - account?: { - __typename?: 'accounts' - id: string - label: string - image?: string | null - } | null - }> } | null - counterVault?: { + }> + userTriplesAggregate: { + __typename?: 'triples_aggregate' + aggregate?: { + __typename?: 'triples_aggregate_fields' + count: number + } | null + } + userTriples: Array<{ + __typename?: 'triples' + id: any + vault_id: any + counter_vault_id: any + subject: { + __typename?: 'atoms' + id: any + vault_id: any + label?: string | null + wallet_id: string + image?: string | null + type: any + tags: { + __typename?: 'triples_aggregate' + nodes: Array<{ + __typename?: 'triples' + object: { + __typename?: 'atoms' + label?: string | null + vault_id: any + taggedIdentities: { + __typename?: 'triples_aggregate' + nodes: Array<{ + __typename?: 'triples' + vault_id: any + subject: { + __typename?: 'atoms' + label?: string | null + vault_id: any + } + }> + aggregate?: { + __typename?: 'triples_aggregate_fields' + count: number + } | null + } + } + }> + aggregate?: { + __typename?: 'triples_aggregate_fields' + count: number + } | null + } + } + object: { + __typename?: 'atoms' + id: any + vault_id: any + label?: string | null + wallet_id: string + image?: string | null + type: any + } + predicate: { + __typename?: 'atoms' + id: any + vault_id: any + label?: string | null + wallet_id: string + image?: string | null + type: any + } + vault?: { __typename?: 'vaults' - totalShares: any - currentSharePrice: any - allPositions: { + positions_aggregate: { __typename?: 'positions_aggregate' aggregate?: { __typename?: 'positions_aggregate_fields' @@ -10659,3054 +11562,3964 @@ export type GetTriplesQuery = { } | null } | null } - positions: Array<{ - __typename?: 'positions' - id: string - vaultId: any - shares: any - account?: { - __typename?: 'accounts' - id: string - label: string - image?: string | null - } | null - }> } | null }> } -export type GetTriplesWithAggregatesQueryVariables = Exact<{ +export type GetPositionsQueryVariables = Exact<{ limit?: InputMaybe offset?: InputMaybe - orderBy?: InputMaybe | Triples_Order_By> - where?: InputMaybe + orderBy?: InputMaybe | Positions_Order_By> + where?: InputMaybe }> -export type GetTriplesWithAggregatesQuery = { +export type GetPositionsQuery = { __typename?: 'query_root' - triples_aggregate: { - __typename?: 'triples_aggregate' + total: { + __typename?: 'positions_aggregate' aggregate?: { - __typename?: 'triples_aggregate_fields' + __typename?: 'positions_aggregate_fields' count: number + sum?: { __typename?: 'positions_sum_fields'; shares?: any | null } | null } | null - nodes: Array<{ - __typename?: 'triples' + } + positions: Array<{ + __typename?: 'positions' + id: string + shares: any + vault_id: any + account?: { + __typename?: 'accounts' + id: string + label: string + image?: string | null + } | null + vault: { + __typename?: 'vaults' id: any - subjectId: any - predicateId: any - objectId: any - blockNumber: any - blockTimestamp: any - transactionHash: any - creatorId: string - vaultId: any - counterVaultId: any - creator?: { - __typename?: 'accounts' - label: string - image?: string | null - id: string - atomId?: any | null - type: string - } | null - subject?: { + atom?: { __typename?: 'atoms' - data: string id: any - image?: string | null label?: string | null - emoji?: string | null - type: string - creator?: { - __typename?: 'accounts' - label: string - image?: string | null - id: string - atomId?: any | null - type: string - } | null - value?: { - __typename?: 'atomValues' - person?: { - __typename?: 'persons' - name?: string | null - image?: string | null - description?: string | null - url?: string | null - } | null - thing?: { - __typename?: 'things' - name?: string | null - image?: string | null - description?: string | null - url?: string | null - } | null - organization?: { - __typename?: 'organizations' - name?: string | null - image?: string | null - description?: string | null - url?: string | null - } | null - } | null + image?: string | null } | null - predicate?: { - __typename?: 'atoms' - data: string + triple?: { + __typename?: 'triples' id: any - image?: string | null - label?: string | null - emoji?: string | null - type: string - creator?: { - __typename?: 'accounts' - label: string - image?: string | null - id: string - atomId?: any | null - type: string + vault?: { + __typename?: 'vaults' + id: any + position_count: number + positions_aggregate: { + __typename?: 'positions_aggregate' + aggregate?: { + __typename?: 'positions_aggregate_fields' + sum?: { + __typename?: 'positions_sum_fields' + shares?: any | null + } | null + } | null + } } | null - value?: { - __typename?: 'atomValues' - person?: { - __typename?: 'persons' - name?: string | null - image?: string | null - description?: string | null - url?: string | null - } | null - thing?: { - __typename?: 'things' - name?: string | null - image?: string | null - description?: string | null - url?: string | null - } | null - organization?: { - __typename?: 'organizations' - name?: string | null - image?: string | null - description?: string | null - url?: string | null - } | null + counter_vault?: { + __typename?: 'vaults' + id: any + position_count: number + positions_aggregate: { + __typename?: 'positions_aggregate' + aggregate?: { + __typename?: 'positions_aggregate_fields' + sum?: { + __typename?: 'positions_sum_fields' + shares?: any | null + } | null + } | null + } } | null - } | null - object?: { - __typename?: 'atoms' - data: string - id: any - image?: string | null - label?: string | null - emoji?: string | null - type: string - creator?: { - __typename?: 'accounts' - label: string + subject: { + __typename?: 'atoms' + data?: string | null + id: any + label?: string | null image?: string | null - id: string - atomId?: any | null - type: string - } | null - value?: { - __typename?: 'atomValues' - person?: { - __typename?: 'persons' - name?: string | null - image?: string | null - description?: string | null - url?: string | null - } | null - thing?: { - __typename?: 'things' - name?: string | null - image?: string | null - description?: string | null - url?: string | null - } | null - organization?: { - __typename?: 'organizations' - name?: string | null + emoji?: string | null + type: any + creator?: { + __typename?: 'accounts' + label: string image?: string | null - description?: string | null - url?: string | null + id: string + atom_id?: any | null + type: any } | null - } | null - } | null - vault?: { - __typename?: 'vaults' - totalShares: any - currentSharePrice: any - allPositions: { - __typename?: 'positions_aggregate' - aggregate?: { - __typename?: 'positions_aggregate_fields' - count: number - sum?: { - __typename?: 'positions_sum_fields' - shares?: any | null + value?: { + __typename?: 'atom_values' + person?: { + __typename?: 'persons' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + thing?: { + __typename?: 'things' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + organization?: { + __typename?: 'organizations' + name?: string | null + image?: string | null + description?: string | null + url?: string | null } | null } | null } - positions: Array<{ - __typename?: 'positions' - id: string - vaultId: any - shares: any - account?: { + predicate: { + __typename?: 'atoms' + data?: string | null + id: any + label?: string | null + image?: string | null + emoji?: string | null + type: any + creator?: { __typename?: 'accounts' - id: string label: string image?: string | null + id: string + atom_id?: any | null + type: any } | null - }> - } | null - counterVault?: { - __typename?: 'vaults' - totalShares: any - currentSharePrice: any - allPositions: { - __typename?: 'positions_aggregate' - aggregate?: { - __typename?: 'positions_aggregate_fields' - count: number - sum?: { - __typename?: 'positions_sum_fields' - shares?: any | null + value?: { + __typename?: 'atom_values' + person?: { + __typename?: 'persons' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + thing?: { + __typename?: 'things' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + organization?: { + __typename?: 'organizations' + name?: string | null + image?: string | null + description?: string | null + url?: string | null } | null } | null } - positions: Array<{ - __typename?: 'positions' - id: string - vaultId: any - shares: any - account?: { + object: { + __typename?: 'atoms' + data?: string | null + id: any + label?: string | null + image?: string | null + emoji?: string | null + type: any + creator?: { __typename?: 'accounts' - id: string label: string image?: string | null + id: string + atom_id?: any | null + type: any } | null - }> - } | null - }> - } -} - -export type GetTriplesCountQueryVariables = Exact<{ - where?: InputMaybe -}> - -export type GetTriplesCountQuery = { - __typename?: 'query_root' - triples_aggregate: { - __typename?: 'triples_aggregate' - total?: { __typename?: 'triples_aggregate_fields'; count: number } | null - } -} - -export type GetTripleQueryVariables = Exact<{ - tripleId: Scalars['numeric']['input'] -}> - -export type GetTripleQuery = { - __typename?: 'query_root' - triple?: { - __typename?: 'triples' - id: any - subjectId: any - predicateId: any - objectId: any - blockNumber: any - blockTimestamp: any - transactionHash: any - creatorId: string - vaultId: any - counterVaultId: any - creator?: { - __typename?: 'accounts' - label: string - image?: string | null - id: string - atomId?: any | null - type: string - } | null - subject?: { - __typename?: 'atoms' - data: string - id: any - image?: string | null - label?: string | null - emoji?: string | null - type: string - creator?: { - __typename?: 'accounts' - label: string - image?: string | null - id: string - atomId?: any | null - type: string - } | null - value?: { - __typename?: 'atomValues' - person?: { - __typename?: 'persons' - name?: string | null - image?: string | null - description?: string | null - url?: string | null - } | null - thing?: { - __typename?: 'things' - name?: string | null - image?: string | null - description?: string | null - url?: string | null - } | null - organization?: { - __typename?: 'organizations' - name?: string | null - image?: string | null - description?: string | null - url?: string | null - } | null - } | null - } | null - predicate?: { - __typename?: 'atoms' - data: string - id: any - image?: string | null - label?: string | null - emoji?: string | null - type: string - creator?: { - __typename?: 'accounts' - label: string - image?: string | null - id: string - atomId?: any | null - type: string - } | null - value?: { - __typename?: 'atomValues' - person?: { - __typename?: 'persons' - name?: string | null - image?: string | null - description?: string | null - url?: string | null - } | null - thing?: { - __typename?: 'things' - name?: string | null - image?: string | null - description?: string | null - url?: string | null - } | null - organization?: { - __typename?: 'organizations' - name?: string | null - image?: string | null - description?: string | null - url?: string | null - } | null - } | null - } | null - object?: { - __typename?: 'atoms' - data: string - id: any - image?: string | null - label?: string | null - emoji?: string | null - type: string - creator?: { - __typename?: 'accounts' - label: string - image?: string | null - id: string - atomId?: any | null - type: string - } | null - value?: { - __typename?: 'atomValues' - person?: { - __typename?: 'persons' - name?: string | null - image?: string | null - description?: string | null - url?: string | null - } | null - thing?: { - __typename?: 'things' - name?: string | null - image?: string | null - description?: string | null - url?: string | null - } | null - organization?: { - __typename?: 'organizations' - name?: string | null - image?: string | null - description?: string | null - url?: string | null - } | null - } | null - } | null - vault?: { - __typename?: 'vaults' - totalShares: any - currentSharePrice: any - allPositions: { - __typename?: 'positions_aggregate' - aggregate?: { - __typename?: 'positions_aggregate_fields' - count: number - sum?: { - __typename?: 'positions_sum_fields' - shares?: any | null - } | null - } | null - } - positions: Array<{ - __typename?: 'positions' - id: string - vaultId: any - shares: any - account?: { - __typename?: 'accounts' - id: string - label: string - image?: string | null - } | null - }> - } | null - counterVault?: { - __typename?: 'vaults' - totalShares: any - currentSharePrice: any - allPositions: { - __typename?: 'positions_aggregate' - aggregate?: { - __typename?: 'positions_aggregate_fields' - count: number - sum?: { - __typename?: 'positions_sum_fields' - shares?: any | null + value?: { + __typename?: 'atom_values' + person?: { + __typename?: 'persons' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + thing?: { + __typename?: 'things' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + organization?: { + __typename?: 'organizations' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null } | null - } | null - } - positions: Array<{ - __typename?: 'positions' - id: string - vaultId: any - shares: any - account?: { - __typename?: 'accounts' - id: string - label: string - image?: string | null - } | null - }> - } | null - } | null -} - -export type GetAtomTriplesWithPositionsQueryVariables = Exact<{ - where?: InputMaybe -}> - -export type GetAtomTriplesWithPositionsQuery = { - __typename?: 'query_root' - triples_aggregate: { - __typename?: 'triples_aggregate' - aggregate?: { - __typename?: 'triples_aggregate_fields' - count: number - } | null - } + } + } | null + } + }> } -export type GetTriplesWithPositionsQueryVariables = Exact<{ +export type GetTriplePositionsByAddressQueryVariables = Exact<{ limit?: InputMaybe offset?: InputMaybe - orderBy?: InputMaybe | Triples_Order_By> - where?: InputMaybe - address?: InputMaybe + orderBy?: InputMaybe | Positions_Order_By> + where?: InputMaybe + address: Scalars['String']['input'] }> -export type GetTriplesWithPositionsQuery = { +export type GetTriplePositionsByAddressQuery = { __typename?: 'query_root' total: { - __typename?: 'triples_aggregate' + __typename?: 'positions_aggregate' aggregate?: { - __typename?: 'triples_aggregate_fields' + __typename?: 'positions_aggregate_fields' count: number + sum?: { __typename?: 'positions_sum_fields'; shares?: any | null } | null } | null } - triples: Array<{ - __typename?: 'triples' - id: any - subject?: { - __typename?: 'atoms' - id: any - label?: string | null - image?: string | null - } | null - predicate?: { - __typename?: 'atoms' + positions: Array<{ + __typename?: 'positions' + id: string + shares: any + vault_id: any + vault: { + __typename?: 'vaults' + atom_id?: any | null + triple_id?: any | null id: any - label?: string | null - image?: string | null - } | null - object?: { - __typename?: 'atoms' - id: any - label?: string | null - image?: string | null - } | null - vault?: { - __typename?: 'vaults' - totalShares: any - positionCount: number - positions: Array<{ - __typename?: 'positions' - shares: any - account?: { - __typename?: 'accounts' - id: string - label: string - image?: string | null - } | null - }> - } | null - counterVault?: { - __typename?: 'vaults' - totalShares: any - positionCount: number - positions: Array<{ - __typename?: 'positions' - shares: any - account?: { - __typename?: 'accounts' - id: string - label: string - image?: string | null - } | null - }> - } | null - }> -} - -export type GetVaultsQueryVariables = Exact<{ - limit?: InputMaybe - offset?: InputMaybe - orderBy?: InputMaybe | Vaults_Order_By> - where?: InputMaybe -}> - -export type GetVaultsQuery = { - __typename?: 'query_root' - vaults_aggregate: { - __typename?: 'vaults_aggregate' - aggregate?: { __typename?: 'vaults_aggregate_fields'; count: number } | null - nodes: Array<{ - __typename?: 'vaults' - id: any - currentSharePrice: any - totalShares: any - atom?: { __typename?: 'atoms'; id: any; label?: string | null } | null triple?: { __typename?: 'triples' id: any - subject?: { + vault?: { + __typename?: 'vaults' + id: any + position_count: number + positions: Array<{ + __typename?: 'positions' + shares: any + account?: { + __typename?: 'accounts' + id: string + label: string + image?: string | null + } | null + }> + positions_aggregate: { + __typename?: 'positions_aggregate' + aggregate?: { + __typename?: 'positions_aggregate_fields' + sum?: { + __typename?: 'positions_sum_fields' + shares?: any | null + } | null + } | null + } + } | null + counter_vault?: { + __typename?: 'vaults' + id: any + position_count: number + positions: Array<{ + __typename?: 'positions' + shares: any + account?: { + __typename?: 'accounts' + id: string + label: string + image?: string | null + } | null + }> + positions_aggregate: { + __typename?: 'positions_aggregate' + aggregate?: { + __typename?: 'positions_aggregate_fields' + sum?: { + __typename?: 'positions_sum_fields' + shares?: any | null + } | null + } | null + } + } | null + subject: { __typename?: 'atoms' + data?: string | null id: any label?: string | null - } | null - predicate?: { + image?: string | null + emoji?: string | null + type: any + creator?: { + __typename?: 'accounts' + label: string + image?: string | null + id: string + atom_id?: any | null + type: any + } | null + value?: { + __typename?: 'atom_values' + person?: { + __typename?: 'persons' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + thing?: { + __typename?: 'things' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + organization?: { + __typename?: 'organizations' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + } | null + } + predicate: { __typename?: 'atoms' + data?: string | null id: any label?: string | null - } | null - object?: { __typename?: 'atoms'; id: any; label?: string | null } | null - } | null - positions_aggregate: { - __typename?: 'positions_aggregate' - nodes: Array<{ - __typename?: 'positions' - shares: any - account?: { + image?: string | null + emoji?: string | null + type: any + creator?: { __typename?: 'accounts' + label: string + image?: string | null id: string + atom_id?: any | null + type: any + } | null + value?: { + __typename?: 'atom_values' + person?: { + __typename?: 'persons' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + thing?: { + __typename?: 'things' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + organization?: { + __typename?: 'organizations' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + } | null + } + object: { + __typename?: 'atoms' + data?: string | null + id: any + label?: string | null + image?: string | null + emoji?: string | null + type: any + creator?: { + __typename?: 'accounts' label: string + image?: string | null + id: string + atom_id?: any | null + type: any } | null - }> - } - }> - } -} - -export type GetVaultQueryVariables = Exact<{ - vaultId: Scalars['numeric']['input'] -}> - -export type GetVaultQuery = { - __typename?: 'query_root' - vault?: { - __typename?: 'vaults' - id: any - currentSharePrice: any - totalShares: any - atom?: { __typename?: 'atoms'; id: any; label?: string | null } | null - triple?: { - __typename?: 'triples' - id: any - subject?: { __typename?: 'atoms'; id: any; label?: string | null } | null - predicate?: { + value?: { + __typename?: 'atom_values' + person?: { + __typename?: 'persons' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + thing?: { + __typename?: 'things' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + organization?: { + __typename?: 'organizations' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + } | null + } + } | null + atom?: { __typename?: 'atoms' id: any label?: string | null + image?: string | null } | null - object?: { __typename?: 'atoms'; id: any; label?: string | null } | null + } + account?: { + __typename?: 'accounts' + id: string + label: string + image?: string | null } | null - } | null + }> } -export const AccountClaimsAggregateFragmentDoc = ` - fragment AccountClaimsAggregate on accounts { - claims_aggregate(order_by: {shares: desc}) { - aggregate { - count - } - nodes { - triple { - id - label - } - shares - counterShares - } - } -} - ` -export const AccountClaimsFragmentDoc = ` - fragment AccountClaims on accounts { - claims( - order_by: {shares: desc} - limit: $claimsLimit - offset: $claimsOffset - where: $claimsWhere - ) { - triple { - id - label - } - shares - counterShares - } -} - ` -export const AccountPositionsAggregateFragmentDoc = ` - fragment AccountPositionsAggregate on accounts { - positions_aggregate(order_by: {shares: desc}) { - aggregate { - count - } - nodes { - id - shares - vault { - id - totalShares - currentSharePrice - atom { - id - label - } - triple { - id - label - } - } - } - } -} - ` -export const AccountPositionsFragmentDoc = ` - fragment AccountPositions on accounts { - positions( - order_by: {shares: desc} - limit: $positionsLimit - offset: $positionsOffset - where: $positionsWhere - ) { - id - shares - vault { - id - totalShares - currentSharePrice - atom { - id - label - } - triple { - id - label - } - } - } -} - ` -export const AccountCreatedAtomsAggregateFragmentDoc = ` - fragment AccountCreatedAtomsAggregate on accounts { - createdAtoms_aggregate( - where: $atomsWhere - order_by: $atomsOrderBy - limit: $atomsLimit - offset: $atomsOffset - ) { - aggregate { - count - sum { - id - } - } - nodes { - id - label - data - vault { - totalShares - positions_aggregate(where: {accountId: {_eq: $address}}) { - nodes { - account { - id +export type GetPositionsWithAggregatesQueryVariables = Exact<{ + limit?: InputMaybe + offset?: InputMaybe + orderBy?: InputMaybe | Positions_Order_By> + where?: InputMaybe +}> + +export type GetPositionsWithAggregatesQuery = { + __typename?: 'query_root' + positions_aggregate: { + __typename?: 'positions_aggregate' + aggregate?: { + __typename?: 'positions_aggregate_fields' + count: number + } | null + nodes: Array<{ + __typename?: 'positions' + id: string + shares: any + vault_id: any + account?: { + __typename?: 'accounts' + id: string + label: string + image?: string | null + } | null + vault: { + __typename?: 'vaults' + id: any + atom?: { + __typename?: 'atoms' + id: any + label?: string | null + image?: string | null + } | null + triple?: { + __typename?: 'triples' + id: any + vault?: { + __typename?: 'vaults' + id: any + position_count: number + positions_aggregate: { + __typename?: 'positions_aggregate' + aggregate?: { + __typename?: 'positions_aggregate_fields' + sum?: { + __typename?: 'positions_sum_fields' + shares?: any | null + } | null + } | null } - shares + } | null + counter_vault?: { + __typename?: 'vaults' + id: any + position_count: number + positions_aggregate: { + __typename?: 'positions_aggregate' + aggregate?: { + __typename?: 'positions_aggregate_fields' + sum?: { + __typename?: 'positions_sum_fields' + shares?: any | null + } | null + } | null + } + } | null + subject: { + __typename?: 'atoms' + data?: string | null + id: any + label?: string | null + image?: string | null + emoji?: string | null + type: any + creator?: { + __typename?: 'accounts' + label: string + image?: string | null + id: string + atom_id?: any | null + type: any + } | null + value?: { + __typename?: 'atom_values' + person?: { + __typename?: 'persons' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + thing?: { + __typename?: 'things' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + organization?: { + __typename?: 'organizations' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + } | null } - } - } - } - } -} - ` -export const AccountCreatedAtomsFragmentDoc = ` - fragment AccountCreatedAtoms on accounts { - createdAtoms( - where: $atomsWhere - order_by: $atomsOrderBy - limit: $atomsLimit - offset: $atomsOffset - ) { - id - label - data - vault { - totalShares - positions(where: {accountId: {_eq: $address}}) { - account { - id - } - shares - } - } - } -} - ` -export const AccountCreatedTriplesFragmentDoc = ` - fragment AccountCreatedTriples on accounts { - createdTriples_aggregate( - where: $triplesWhere - order_by: $triplesOrderBy - limit: $triplesLimit - offset: $triplesOffset - ) { - aggregate { - count - } - nodes { - id - label - subject { - id - label - } - predicate { - id - label - } - object { - id - label + predicate: { + __typename?: 'atoms' + data?: string | null + id: any + label?: string | null + image?: string | null + emoji?: string | null + type: any + creator?: { + __typename?: 'accounts' + label: string + image?: string | null + id: string + atom_id?: any | null + type: any + } | null + value?: { + __typename?: 'atom_values' + person?: { + __typename?: 'persons' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + thing?: { + __typename?: 'things' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + organization?: { + __typename?: 'organizations' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + } | null + } + object: { + __typename?: 'atoms' + data?: string | null + id: any + label?: string | null + image?: string | null + emoji?: string | null + type: any + creator?: { + __typename?: 'accounts' + label: string + image?: string | null + id: string + atom_id?: any | null + type: any + } | null + value?: { + __typename?: 'atom_values' + person?: { + __typename?: 'persons' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + thing?: { + __typename?: 'things' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + organization?: { + __typename?: 'organizations' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + } | null + } + } | null } - } + }> } } - ` -export const AccountCreatedTriplesAggregateFragmentDoc = ` - fragment AccountCreatedTriplesAggregate on accounts { - createdTriples_aggregate( - where: $triplesWhere - order_by: $triplesOrderBy - limit: $triplesLimit - offset: $triplesOffset - ) { - aggregate { - count - } - nodes { - id - label - subject { - id - label - } - predicate { - id - label - } - object { - id - label - } - } + +export type GetPositionsCountQueryVariables = Exact<{ + where?: InputMaybe +}> + +export type GetPositionsCountQuery = { + __typename?: 'query_root' + positions_aggregate: { + __typename?: 'positions_aggregate' + total?: { + __typename?: 'positions_aggregate_fields' + count: number + sum?: { __typename?: 'positions_sum_fields'; shares?: any | null } | null + } | null } } - ` -export const AtomTxnFragmentDoc = ` - fragment AtomTxn on atoms { - blockNumber - blockTimestamp - transactionHash - creatorId -} - ` -export const AtomVaultDetailsFragmentDoc = ` - fragment AtomVaultDetails on atoms { - vaultId - walletId - vault { - positionCount - totalShares - currentSharePrice - positions_aggregate { - aggregate { - count - sum { - shares + +export type GetPositionQueryVariables = Exact<{ + positionId: Scalars['String']['input'] +}> + +export type GetPositionQuery = { + __typename?: 'query_root' + position?: { + __typename?: 'positions' + id: string + shares: any + vault_id: any + account?: { + __typename?: 'accounts' + id: string + label: string + image?: string | null + } | null + vault: { + __typename?: 'vaults' + id: any + atom?: { + __typename?: 'atoms' + id: any + label?: string | null + image?: string | null + } | null + triple?: { + __typename?: 'triples' + id: any + vault?: { + __typename?: 'vaults' + id: any + position_count: number + positions_aggregate: { + __typename?: 'positions_aggregate' + aggregate?: { + __typename?: 'positions_aggregate_fields' + sum?: { + __typename?: 'positions_sum_fields' + shares?: any | null + } | null + } | null + } + } | null + counter_vault?: { + __typename?: 'vaults' + id: any + position_count: number + positions_aggregate: { + __typename?: 'positions_aggregate' + aggregate?: { + __typename?: 'positions_aggregate_fields' + sum?: { + __typename?: 'positions_sum_fields' + shares?: any | null + } | null + } | null + } + } | null + subject: { + __typename?: 'atoms' + data?: string | null + id: any + label?: string | null + image?: string | null + emoji?: string | null + type: any + creator?: { + __typename?: 'accounts' + label: string + image?: string | null + id: string + atom_id?: any | null + type: any + } | null + value?: { + __typename?: 'atom_values' + person?: { + __typename?: 'persons' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + thing?: { + __typename?: 'things' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + organization?: { + __typename?: 'organizations' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + } | null } - } - } - positions { - id - account { - label - id - } - shares + predicate: { + __typename?: 'atoms' + data?: string | null + id: any + label?: string | null + image?: string | null + emoji?: string | null + type: any + creator?: { + __typename?: 'accounts' + label: string + image?: string | null + id: string + atom_id?: any | null + type: any + } | null + value?: { + __typename?: 'atom_values' + person?: { + __typename?: 'persons' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + thing?: { + __typename?: 'things' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + organization?: { + __typename?: 'organizations' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + } | null + } + object: { + __typename?: 'atoms' + data?: string | null + id: any + label?: string | null + image?: string | null + emoji?: string | null + type: any + creator?: { + __typename?: 'accounts' + label: string + image?: string | null + id: string + atom_id?: any | null + type: any + } | null + value?: { + __typename?: 'atom_values' + person?: { + __typename?: 'persons' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + thing?: { + __typename?: 'things' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + organization?: { + __typename?: 'organizations' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + } | null + } + } | null } - } -} - ` -export const AccountMetadataFragmentDoc = ` - fragment AccountMetadata on accounts { - label - image - id - atomId - type + } | null } - ` -export const AtomTripleFragmentDoc = ` - fragment AtomTriple on atoms { - asSubject { - id - label - object { - data - id - image - label - emoji - type - creator { - ...AccountMetadata - } - } - predicate { - data - id - image - label - emoji - type - creator { - ...AccountMetadata - } - } + +export type GetPositionsCountByTypeQueryVariables = Exact<{ + where?: InputMaybe +}> + +export type GetPositionsCountByTypeQuery = { + __typename?: 'query_root' + positions_aggregate: { + __typename?: 'positions_aggregate' + total?: { + __typename?: 'positions_aggregate_fields' + count: number + sum?: { __typename?: 'positions_sum_fields'; shares?: any | null } | null + } | null } - asPredicate { - id - label - subject { - data - id - image - label - emoji - type - creator { - ...AccountMetadata - } - } - object { - data - id - image - label - emoji - type - creator { - ...AccountMetadata - } + positions: Array<{ + __typename?: 'positions' + vault: { + __typename?: 'vaults' + atom_id?: any | null + triple_id?: any | null } - } - asObject { - id - label - subject { - data - id - image - label - emoji - type - creator { - ...AccountMetadata - } + }> +} + +export type GetStatsQueryVariables = Exact<{ [key: string]: never }> + +export type GetStatsQuery = { + __typename?: 'query_root' + stats: Array<{ + __typename?: 'stats' + contract_balance?: any | null + total_accounts?: number | null + total_fees?: any | null + total_atoms?: number | null + total_triples?: number | null + total_positions?: number | null + total_signals?: number | null + }> +} + +export type GetTagsQueryVariables = Exact<{ + subjectId: Scalars['numeric']['input'] + predicateId: Scalars['numeric']['input'] +}> + +export type GetTagsQuery = { + __typename?: 'query_root' + triples: Array<{ + __typename?: 'triples' + id: any + subject_id: any + predicate_id: any + object_id: any + subject: { + __typename?: 'atoms' + data?: string | null + id: any + image?: string | null + label?: string | null + emoji?: string | null + type: any + creator?: { + __typename?: 'accounts' + label: string + image?: string | null + id: string + atom_id?: any | null + type: any + } | null + value?: { + __typename?: 'atom_values' + person?: { + __typename?: 'persons' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + thing?: { + __typename?: 'things' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + organization?: { + __typename?: 'organizations' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + } | null } - predicate { - data - id - image - label - emoji - type - creator { - ...AccountMetadata - } + predicate: { + __typename?: 'atoms' + data?: string | null + id: any + image?: string | null + label?: string | null + emoji?: string | null + type: any + creator?: { + __typename?: 'accounts' + label: string + image?: string | null + id: string + atom_id?: any | null + type: any + } | null + value?: { + __typename?: 'atom_values' + person?: { + __typename?: 'persons' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + thing?: { + __typename?: 'things' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + organization?: { + __typename?: 'organizations' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + } | null } - } -} - ` -export const AtomVaultDetailsWithPositionsFragmentDoc = ` - fragment AtomVaultDetailsWithPositions on atoms { - vault { - totalShares - currentSharePrice - positions_aggregate(where: {accountId: {_in: $addresses}}) { - aggregate { - sum { - shares - } + object: { + __typename?: 'atoms' + data?: string | null + id: any + image?: string | null + label?: string | null + emoji?: string | null + type: any + creator?: { + __typename?: 'accounts' + label: string + image?: string | null + id: string + atom_id?: any | null + type: any + } | null + value?: { + __typename?: 'atom_values' + person?: { + __typename?: 'persons' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + thing?: { + __typename?: 'things' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + organization?: { + __typename?: 'organizations' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + } | null + } + vault?: { + __typename?: 'vaults' + total_shares: any + current_share_price: any + allPositions: { + __typename?: 'positions_aggregate' + aggregate?: { + __typename?: 'positions_aggregate_fields' + count: number + sum?: { + __typename?: 'positions_sum_fields' + shares?: any | null + } | null + } | null } - nodes { - account { - id + positions: Array<{ + __typename?: 'positions' + shares: any + account?: { __typename?: 'accounts'; id: string; label: string } | null + vault: { + __typename?: 'vaults' + id: any + total_shares: any + current_share_price: any } - shares + }> + } | null + counter_vault?: { + __typename?: 'vaults' + total_shares: any + current_share_price: any + allPositions: { + __typename?: 'positions_aggregate' + aggregate?: { + __typename?: 'positions_aggregate_fields' + count: number + sum?: { + __typename?: 'positions_sum_fields' + shares?: any | null + } | null + } | null } - } - } + positions: Array<{ + __typename?: 'positions' + shares: any + account?: { __typename?: 'accounts'; id: string; label: string } | null + vault: { + __typename?: 'vaults' + id: any + total_shares: any + current_share_price: any + } + }> + } | null + }> } - ` -export const DepositEventFragmentFragmentDoc = ` - fragment DepositEventFragment on events { - deposit { - vaultId - senderAssetsAfterTotalFees - sharesForReceiver - receiver { - id - } - sender { - id + +export type GetTagsCustomQueryVariables = Exact<{ + where?: InputMaybe +}> + +export type GetTagsCustomQuery = { + __typename?: 'query_root' + triples: Array<{ + __typename?: 'triples' + id: any + subject_id: any + predicate_id: any + object_id: any + subject: { + __typename?: 'atoms' + data?: string | null + id: any + image?: string | null + label?: string | null + emoji?: string | null + type: any + creator?: { + __typename?: 'accounts' + label: string + image?: string | null + id: string + atom_id?: any | null + type: any + } | null + value?: { + __typename?: 'atom_values' + person?: { + __typename?: 'persons' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + thing?: { + __typename?: 'things' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + organization?: { + __typename?: 'organizations' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + } | null } - } -} - ` -export const RedemptionEventFragmentFragmentDoc = ` - fragment RedemptionEventFragment on events { - redemption { - vaultId - receiverId - sharesRedeemedBySender - assetsForReceiver - } -} - ` -export const AtomValueFragmentDoc = ` - fragment AtomValue on atoms { - value { - person { - name - image - description - url - } - thing { - name - image - description - url - } - organization { - name - image - description - url - } - } -} - ` -export const AtomMetadataFragmentDoc = ` - fragment AtomMetadata on atoms { - id - data - image - label - emoji - type - walletId - creator { - id - label - image - } - ...AtomValue -} - ` -export const PositionAggregateFieldsFragmentDoc = ` - fragment PositionAggregateFields on positions_aggregate { - aggregate { - count - sum { - shares - } - } -} - ` -export const PositionFieldsFragmentDoc = ` - fragment PositionFields on positions { - account { - id - label - } - shares -} - ` -export const TripleMetadataFragmentDoc = ` - fragment TripleMetadata on triples { - id - subjectId - predicateId - objectId - subject { - data - id - image - label - emoji - type - ...AtomValue - creator { - ...AccountMetadata - } - } - predicate { - data - id - image - label - emoji - type - ...AtomValue - creator { - ...AccountMetadata - } - } - object { - data - id - image - label - emoji - type - ...AtomValue - creator { - ...AccountMetadata - } - } - vault { - totalShares - currentSharePrice - allPositions: positions_aggregate { - ...PositionAggregateFields - } - positions { - ...PositionFields - } - } - counterVault { - totalShares - currentSharePrice - allPositions: positions_aggregate { - ...PositionAggregateFields + predicate: { + __typename?: 'atoms' + data?: string | null + id: any + image?: string | null + label?: string | null + emoji?: string | null + type: any + creator?: { + __typename?: 'accounts' + label: string + image?: string | null + id: string + atom_id?: any | null + type: any + } | null + value?: { + __typename?: 'atom_values' + person?: { + __typename?: 'persons' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + thing?: { + __typename?: 'things' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + organization?: { + __typename?: 'organizations' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + } | null } - positions { - ...PositionFields + object: { + __typename?: 'atoms' + data?: string | null + id: any + image?: string | null + label?: string | null + emoji?: string | null + type: any + creator?: { + __typename?: 'accounts' + label: string + image?: string | null + id: string + atom_id?: any | null + type: any + } | null + value?: { + __typename?: 'atom_values' + person?: { + __typename?: 'persons' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + thing?: { + __typename?: 'things' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + organization?: { + __typename?: 'organizations' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + } | null } - } -} - ` -export const EventDetailsFragmentDoc = ` - fragment EventDetails on events { - blockNumber - blockTimestamp - type - transactionHash - atomId - tripleId - depositId - redemptionId - ...DepositEventFragment - ...RedemptionEventFragment - atom { - ...AtomMetadata - vault { - totalShares - positionCount - positions { - accountId - shares - account { - id - label - image - } + vault?: { + __typename?: 'vaults' + total_shares: any + current_share_price: any + allPositions: { + __typename?: 'positions_aggregate' + aggregate?: { + __typename?: 'positions_aggregate_fields' + count: number + sum?: { + __typename?: 'positions_sum_fields' + shares?: any | null + } | null + } | null } - } - } - triple { - ...TripleMetadata - vault { - totalShares - positionCount - positions { - accountId - shares - account { - id - label - image + positions: Array<{ + __typename?: 'positions' + shares: any + account?: { __typename?: 'accounts'; id: string; label: string } | null + vault: { + __typename?: 'vaults' + id: any + total_shares: any + current_share_price: any } + }> + } | null + counter_vault?: { + __typename?: 'vaults' + total_shares: any + current_share_price: any + allPositions: { + __typename?: 'positions_aggregate' + aggregate?: { + __typename?: 'positions_aggregate_fields' + count: number + sum?: { + __typename?: 'positions_sum_fields' + shares?: any | null + } | null + } | null } - } - counterVault { - totalShares - positionCount - positions { - accountId - shares - account { - id - label - image + positions: Array<{ + __typename?: 'positions' + shares: any + account?: { __typename?: 'accounts'; id: string; label: string } | null + vault: { + __typename?: 'vaults' + id: any + total_shares: any + current_share_price: any } - } - } - } + }> + } | null + }> } - ` -export const FollowMetadataFragmentDoc = ` - fragment FollowMetadata on triples { - id - subject { - id - label - } - predicate { - id - label - } - object { - id - label + +export type GetTriplesQueryVariables = Exact<{ + limit?: InputMaybe + offset?: InputMaybe + orderBy?: InputMaybe | Triples_Order_By> + where?: InputMaybe +}> + +export type GetTriplesQuery = { + __typename?: 'query_root' + total: { + __typename?: 'triples_aggregate' + aggregate?: { + __typename?: 'triples_aggregate_fields' + count: number + } | null } - vault { - id - totalShares - currentSharePrice - positions_aggregate(where: $positionsWhere) { - aggregate { - count - sum { - shares - } - } + triples: Array<{ + __typename?: 'triples' + id: any + subject_id: any + predicate_id: any + object_id: any + block_number: any + block_timestamp: any + transaction_hash: any + creator_id: string + vault_id: any + counter_vault_id: any + creator?: { + __typename?: 'accounts' + label: string + image?: string | null + id: string + atom_id?: any | null + type: any + } | null + subject: { + __typename?: 'atoms' + data?: string | null + id: any + image?: string | null + label?: string | null + emoji?: string | null + type: any + creator?: { + __typename?: 'accounts' + label: string + image?: string | null + id: string + atom_id?: any | null + type: any + } | null + value?: { + __typename?: 'atom_values' + person?: { + __typename?: 'persons' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + thing?: { + __typename?: 'things' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + organization?: { + __typename?: 'organizations' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + } | null } - positions( - limit: $positionsLimit - offset: $positionsOffset - order_by: $positionsOrderBy - where: $positionsWhere - ) { - account { - id - label - } - shares + predicate: { + __typename?: 'atoms' + data?: string | null + id: any + image?: string | null + label?: string | null + emoji?: string | null + type: any + creator?: { + __typename?: 'accounts' + label: string + image?: string | null + id: string + atom_id?: any | null + type: any + } | null + value?: { + __typename?: 'atom_values' + person?: { + __typename?: 'persons' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + thing?: { + __typename?: 'things' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + organization?: { + __typename?: 'organizations' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + } | null } - } -} - ` -export const FollowAggregateFragmentDoc = ` - fragment FollowAggregate on triples_aggregate { - aggregate { - count - } -} - ` -export const PositionDetailsFragmentDoc = ` - fragment PositionDetails on positions { - id - account { - id - label - image - } - vault { - id - atom { - id - label - image + object: { + __typename?: 'atoms' + data?: string | null + id: any + image?: string | null + label?: string | null + emoji?: string | null + type: any + creator?: { + __typename?: 'accounts' + label: string + image?: string | null + id: string + atom_id?: any | null + type: any + } | null + value?: { + __typename?: 'atom_values' + person?: { + __typename?: 'persons' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + thing?: { + __typename?: 'things' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + organization?: { + __typename?: 'organizations' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + } | null } - triple { - id - subject { - id - label + vault?: { + __typename?: 'vaults' + total_shares: any + current_share_price: any + allPositions: { + __typename?: 'positions_aggregate' + aggregate?: { + __typename?: 'positions_aggregate_fields' + count: number + sum?: { + __typename?: 'positions_sum_fields' + shares?: any | null + } | null + } | null } - predicate { - id - label + positions: Array<{ + __typename?: 'positions' + shares: any + id: string + vault_id: any + account?: { + __typename?: 'accounts' + id: string + label: string + image?: string | null + } | null + vault: { + __typename?: 'vaults' + id: any + total_shares: any + current_share_price: any + atom?: { + __typename?: 'atoms' + id: any + label?: string | null + image?: string | null + } | null + triple?: { + __typename?: 'triples' + id: any + vault?: { + __typename?: 'vaults' + id: any + position_count: number + positions_aggregate: { + __typename?: 'positions_aggregate' + aggregate?: { + __typename?: 'positions_aggregate_fields' + sum?: { + __typename?: 'positions_sum_fields' + shares?: any | null + } | null + } | null + } + } | null + counter_vault?: { + __typename?: 'vaults' + id: any + position_count: number + positions_aggregate: { + __typename?: 'positions_aggregate' + aggregate?: { + __typename?: 'positions_aggregate_fields' + sum?: { + __typename?: 'positions_sum_fields' + shares?: any | null + } | null + } | null + } + } | null + subject: { + __typename?: 'atoms' + data?: string | null + id: any + label?: string | null + image?: string | null + emoji?: string | null + type: any + creator?: { + __typename?: 'accounts' + label: string + image?: string | null + id: string + atom_id?: any | null + type: any + } | null + value?: { + __typename?: 'atom_values' + person?: { + __typename?: 'persons' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + thing?: { + __typename?: 'things' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + organization?: { + __typename?: 'organizations' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + } | null + } + predicate: { + __typename?: 'atoms' + data?: string | null + id: any + label?: string | null + image?: string | null + emoji?: string | null + type: any + creator?: { + __typename?: 'accounts' + label: string + image?: string | null + id: string + atom_id?: any | null + type: any + } | null + value?: { + __typename?: 'atom_values' + person?: { + __typename?: 'persons' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + thing?: { + __typename?: 'things' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + organization?: { + __typename?: 'organizations' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + } | null + } + object: { + __typename?: 'atoms' + data?: string | null + id: any + label?: string | null + image?: string | null + emoji?: string | null + type: any + creator?: { + __typename?: 'accounts' + label: string + image?: string | null + id: string + atom_id?: any | null + type: any + } | null + value?: { + __typename?: 'atom_values' + person?: { + __typename?: 'persons' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + thing?: { + __typename?: 'things' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + organization?: { + __typename?: 'organizations' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + } | null + } + } | null + } + }> + } | null + counter_vault?: { + __typename?: 'vaults' + total_shares: any + current_share_price: any + allPositions: { + __typename?: 'positions_aggregate' + aggregate?: { + __typename?: 'positions_aggregate_fields' + count: number + sum?: { + __typename?: 'positions_sum_fields' + shares?: any | null + } | null + } | null } - object { - id - label - } - } - } - shares - vaultId -} - ` -export const StatDetailsFragmentDoc = ` - fragment StatDetails on stats { - contractBalance - totalAccounts - totalFees - totalAtoms - totalTriples - totalPositions - totalSignals -} - ` -export const TripleTxnFragmentDoc = ` - fragment TripleTxn on triples { - blockNumber - blockTimestamp - transactionHash - creatorId -} - ` -export const TripleVaultDetailsFragmentDoc = ` - fragment TripleVaultDetails on triples { - vaultId - counterVaultId - vault { - positions { - id - vaultId - shares - account { - id - label - image - } - } - } - counterVault { - positions { - id - vaultId - shares - account { - id - label - image - } - } - } -} - ` -export const VaultBasicDetailsFragmentDoc = ` - fragment VaultBasicDetails on vaults { - id - atom { - id - label - } - triple { - id - subject { - id - label - } - predicate { - id - label - } - object { - id - label - } - } - currentSharePrice - totalShares -} - ` -export const VaultFilteredPositionsFragmentDoc = ` - fragment VaultFilteredPositions on vaults { - positions(where: {accountId: {_in: $addresses}}) { - ...PositionFields - } -} - ` -export const VaultDetailsWithFilteredPositionsFragmentDoc = ` - fragment VaultDetailsWithFilteredPositions on vaults { - ...VaultBasicDetails - ...VaultFilteredPositions -} - ` -export const TripleVaultCouterVaultDetailsWithPositionsFragmentDoc = ` - fragment TripleVaultCouterVaultDetailsWithPositions on triples { - vaultId - counterVaultId - vault { - ...VaultDetailsWithFilteredPositions - } - counterVault { - ...VaultDetailsWithFilteredPositions - } -} - ` -export const VaultUnfilteredPositionsFragmentDoc = ` - fragment VaultUnfilteredPositions on vaults { - positions { - ...PositionFields - } -} - ` -export const VaultDetailsFragmentDoc = ` - fragment VaultDetails on vaults { - ...VaultBasicDetails -} - ` -export const VaultPositionsAggregateFragmentDoc = ` - fragment VaultPositionsAggregate on vaults { - positions_aggregate { - ...PositionAggregateFields - } -} - ` -export const VaultFieldsForTripleFragmentDoc = ` - fragment VaultFieldsForTriple on vaults { - totalShares - currentSharePrice - ...VaultPositionsAggregate - ...VaultFilteredPositions -} - ` -export const GetAccountsDocument = ` - query GetAccounts($limit: Int, $offset: Int, $orderBy: [accounts_order_by!], $where: accounts_bool_exp, $claimsLimit: Int, $claimsOffset: Int, $claimsWhere: claims_bool_exp, $positionsLimit: Int, $positionsOffset: Int, $positionsWhere: positions_bool_exp) { - accounts(limit: $limit, offset: $offset, order_by: $orderBy, where: $where) { - ...AccountMetadata - ...AccountClaims - ...AccountPositions - atom { - vaultId - walletId - vault { - positionCount - totalShares - positions_aggregate { - aggregate { - count - sum { - shares + positions: Array<{ + __typename?: 'positions' + shares: any + id: string + vault_id: any + account?: { + __typename?: 'accounts' + id: string + label: string + image?: string | null + } | null + vault: { + __typename?: 'vaults' + id: any + total_shares: any + current_share_price: any + atom?: { + __typename?: 'atoms' + id: any + label?: string | null + image?: string | null + } | null + triple?: { + __typename?: 'triples' + id: any + vault?: { + __typename?: 'vaults' + id: any + position_count: number + positions_aggregate: { + __typename?: 'positions_aggregate' + aggregate?: { + __typename?: 'positions_aggregate_fields' + sum?: { + __typename?: 'positions_sum_fields' + shares?: any | null + } | null + } | null + } + } | null + counter_vault?: { + __typename?: 'vaults' + id: any + position_count: number + positions_aggregate: { + __typename?: 'positions_aggregate' + aggregate?: { + __typename?: 'positions_aggregate_fields' + sum?: { + __typename?: 'positions_sum_fields' + shares?: any | null + } | null + } | null + } + } | null + subject: { + __typename?: 'atoms' + data?: string | null + id: any + label?: string | null + image?: string | null + emoji?: string | null + type: any + creator?: { + __typename?: 'accounts' + label: string + image?: string | null + id: string + atom_id?: any | null + type: any + } | null + value?: { + __typename?: 'atom_values' + person?: { + __typename?: 'persons' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + thing?: { + __typename?: 'things' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + organization?: { + __typename?: 'organizations' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + } | null } - } - } - positions { - id - account { - label - id - } - shares + predicate: { + __typename?: 'atoms' + data?: string | null + id: any + label?: string | null + image?: string | null + emoji?: string | null + type: any + creator?: { + __typename?: 'accounts' + label: string + image?: string | null + id: string + atom_id?: any | null + type: any + } | null + value?: { + __typename?: 'atom_values' + person?: { + __typename?: 'persons' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + thing?: { + __typename?: 'things' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + organization?: { + __typename?: 'organizations' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + } | null + } + object: { + __typename?: 'atoms' + data?: string | null + id: any + label?: string | null + image?: string | null + emoji?: string | null + type: any + creator?: { + __typename?: 'accounts' + label: string + image?: string | null + id: string + atom_id?: any | null + type: any + } | null + value?: { + __typename?: 'atom_values' + person?: { + __typename?: 'persons' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + thing?: { + __typename?: 'things' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + organization?: { + __typename?: 'organizations' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + } | null + } + } | null } - } - } - } -} - ${AccountMetadataFragmentDoc} -${AccountClaimsFragmentDoc} -${AccountPositionsFragmentDoc}` - -export const useGetAccountsQuery = ( - variables?: GetAccountsQueryVariables, - options?: Omit< - UseQueryOptions, - 'queryKey' - > & { - queryKey?: UseQueryOptions['queryKey'] - }, -) => { - return useQuery({ - queryKey: - variables === undefined ? ['GetAccounts'] : ['GetAccounts', variables], - queryFn: fetcher( - GetAccountsDocument, - variables, - ), - ...options, - }) -} - -useGetAccountsQuery.document = GetAccountsDocument - -useGetAccountsQuery.getKey = (variables?: GetAccountsQueryVariables) => - variables === undefined ? ['GetAccounts'] : ['GetAccounts', variables] - -export const useInfiniteGetAccountsQuery = < - TData = InfiniteData, - TError = unknown, ->( - variables: GetAccountsQueryVariables, - options: Omit< - UseInfiniteQueryOptions, - 'queryKey' - > & { - queryKey?: UseInfiniteQueryOptions< - GetAccountsQuery, - TError, - TData - >['queryKey'] - }, -) => { - return useInfiniteQuery( - (() => { - const { queryKey: optionsQueryKey, ...restOptions } = options - return { - queryKey: - optionsQueryKey ?? variables === undefined - ? ['GetAccounts.infinite'] - : ['GetAccounts.infinite', variables], - queryFn: (metaData) => - fetcher( - GetAccountsDocument, - { ...variables, ...(metaData.pageParam ?? {}) }, - )(), - ...restOptions, - } - })(), - ) + }> + } | null + }> } -useInfiniteGetAccountsQuery.getKey = (variables?: GetAccountsQueryVariables) => - variables === undefined - ? ['GetAccounts.infinite'] - : ['GetAccounts.infinite', variables] - -useGetAccountsQuery.fetcher = ( - variables?: GetAccountsQueryVariables, - options?: RequestInit['headers'], -) => - fetcher( - GetAccountsDocument, - variables, - options, - ) +export type GetTriplesWithAggregatesQueryVariables = Exact<{ + limit?: InputMaybe + offset?: InputMaybe + orderBy?: InputMaybe | Triples_Order_By> + where?: InputMaybe +}> -export const GetAccountsWithAggregatesDocument = ` - query GetAccountsWithAggregates($limit: Int, $offset: Int, $orderBy: [accounts_order_by!], $where: accounts_bool_exp, $claimsLimit: Int, $claimsOffset: Int, $claimsWhere: claims_bool_exp, $positionsLimit: Int, $positionsOffset: Int, $positionsWhere: positions_bool_exp, $atomsWhere: atoms_bool_exp, $atomsOrderBy: [atoms_order_by!], $atomsLimit: Int, $atomsOffset: Int) { - accounts_aggregate( - limit: $limit - offset: $offset - order_by: $orderBy - where: $where - ) { - aggregate { - count - } - nodes { - ...AccountMetadata - ...AccountClaims - ...AccountPositions - } +export type GetTriplesWithAggregatesQuery = { + __typename?: 'query_root' + triples_aggregate: { + __typename?: 'triples_aggregate' + aggregate?: { + __typename?: 'triples_aggregate_fields' + count: number + } | null + nodes: Array<{ + __typename?: 'triples' + id: any + subject_id: any + predicate_id: any + object_id: any + block_number: any + block_timestamp: any + transaction_hash: any + creator_id: string + vault_id: any + counter_vault_id: any + creator?: { + __typename?: 'accounts' + label: string + image?: string | null + id: string + atom_id?: any | null + type: any + } | null + subject: { + __typename?: 'atoms' + data?: string | null + id: any + image?: string | null + label?: string | null + emoji?: string | null + type: any + creator?: { + __typename?: 'accounts' + label: string + image?: string | null + id: string + atom_id?: any | null + type: any + } | null + value?: { + __typename?: 'atom_values' + person?: { + __typename?: 'persons' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + thing?: { + __typename?: 'things' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + organization?: { + __typename?: 'organizations' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + } | null + } + predicate: { + __typename?: 'atoms' + data?: string | null + id: any + image?: string | null + label?: string | null + emoji?: string | null + type: any + creator?: { + __typename?: 'accounts' + label: string + image?: string | null + id: string + atom_id?: any | null + type: any + } | null + value?: { + __typename?: 'atom_values' + person?: { + __typename?: 'persons' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + thing?: { + __typename?: 'things' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + organization?: { + __typename?: 'organizations' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + } | null + } + object: { + __typename?: 'atoms' + data?: string | null + id: any + image?: string | null + label?: string | null + emoji?: string | null + type: any + creator?: { + __typename?: 'accounts' + label: string + image?: string | null + id: string + atom_id?: any | null + type: any + } | null + value?: { + __typename?: 'atom_values' + person?: { + __typename?: 'persons' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + thing?: { + __typename?: 'things' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + organization?: { + __typename?: 'organizations' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + } | null + } + vault?: { + __typename?: 'vaults' + total_shares: any + current_share_price: any + allPositions: { + __typename?: 'positions_aggregate' + aggregate?: { + __typename?: 'positions_aggregate_fields' + count: number + sum?: { + __typename?: 'positions_sum_fields' + shares?: any | null + } | null + } | null + } + positions: Array<{ + __typename?: 'positions' + shares: any + id: string + vault_id: any + account?: { + __typename?: 'accounts' + id: string + label: string + image?: string | null + } | null + vault: { + __typename?: 'vaults' + id: any + total_shares: any + current_share_price: any + atom?: { + __typename?: 'atoms' + id: any + label?: string | null + image?: string | null + } | null + triple?: { + __typename?: 'triples' + id: any + vault?: { + __typename?: 'vaults' + id: any + position_count: number + positions_aggregate: { + __typename?: 'positions_aggregate' + aggregate?: { + __typename?: 'positions_aggregate_fields' + sum?: { + __typename?: 'positions_sum_fields' + shares?: any | null + } | null + } | null + } + } | null + counter_vault?: { + __typename?: 'vaults' + id: any + position_count: number + positions_aggregate: { + __typename?: 'positions_aggregate' + aggregate?: { + __typename?: 'positions_aggregate_fields' + sum?: { + __typename?: 'positions_sum_fields' + shares?: any | null + } | null + } | null + } + } | null + subject: { + __typename?: 'atoms' + data?: string | null + id: any + label?: string | null + image?: string | null + emoji?: string | null + type: any + creator?: { + __typename?: 'accounts' + label: string + image?: string | null + id: string + atom_id?: any | null + type: any + } | null + value?: { + __typename?: 'atom_values' + person?: { + __typename?: 'persons' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + thing?: { + __typename?: 'things' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + organization?: { + __typename?: 'organizations' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + } | null + } + predicate: { + __typename?: 'atoms' + data?: string | null + id: any + label?: string | null + image?: string | null + emoji?: string | null + type: any + creator?: { + __typename?: 'accounts' + label: string + image?: string | null + id: string + atom_id?: any | null + type: any + } | null + value?: { + __typename?: 'atom_values' + person?: { + __typename?: 'persons' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + thing?: { + __typename?: 'things' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + organization?: { + __typename?: 'organizations' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + } | null + } + object: { + __typename?: 'atoms' + data?: string | null + id: any + label?: string | null + image?: string | null + emoji?: string | null + type: any + creator?: { + __typename?: 'accounts' + label: string + image?: string | null + id: string + atom_id?: any | null + type: any + } | null + value?: { + __typename?: 'atom_values' + person?: { + __typename?: 'persons' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + thing?: { + __typename?: 'things' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + organization?: { + __typename?: 'organizations' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + } | null + } + } | null + } + }> + } | null + counter_vault?: { + __typename?: 'vaults' + total_shares: any + current_share_price: any + allPositions: { + __typename?: 'positions_aggregate' + aggregate?: { + __typename?: 'positions_aggregate_fields' + count: number + sum?: { + __typename?: 'positions_sum_fields' + shares?: any | null + } | null + } | null + } + positions: Array<{ + __typename?: 'positions' + shares: any + id: string + vault_id: any + account?: { + __typename?: 'accounts' + id: string + label: string + image?: string | null + } | null + vault: { + __typename?: 'vaults' + id: any + total_shares: any + current_share_price: any + atom?: { + __typename?: 'atoms' + id: any + label?: string | null + image?: string | null + } | null + triple?: { + __typename?: 'triples' + id: any + vault?: { + __typename?: 'vaults' + id: any + position_count: number + positions_aggregate: { + __typename?: 'positions_aggregate' + aggregate?: { + __typename?: 'positions_aggregate_fields' + sum?: { + __typename?: 'positions_sum_fields' + shares?: any | null + } | null + } | null + } + } | null + counter_vault?: { + __typename?: 'vaults' + id: any + position_count: number + positions_aggregate: { + __typename?: 'positions_aggregate' + aggregate?: { + __typename?: 'positions_aggregate_fields' + sum?: { + __typename?: 'positions_sum_fields' + shares?: any | null + } | null + } | null + } + } | null + subject: { + __typename?: 'atoms' + data?: string | null + id: any + label?: string | null + image?: string | null + emoji?: string | null + type: any + creator?: { + __typename?: 'accounts' + label: string + image?: string | null + id: string + atom_id?: any | null + type: any + } | null + value?: { + __typename?: 'atom_values' + person?: { + __typename?: 'persons' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + thing?: { + __typename?: 'things' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + organization?: { + __typename?: 'organizations' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + } | null + } + predicate: { + __typename?: 'atoms' + data?: string | null + id: any + label?: string | null + image?: string | null + emoji?: string | null + type: any + creator?: { + __typename?: 'accounts' + label: string + image?: string | null + id: string + atom_id?: any | null + type: any + } | null + value?: { + __typename?: 'atom_values' + person?: { + __typename?: 'persons' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + thing?: { + __typename?: 'things' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + organization?: { + __typename?: 'organizations' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + } | null + } + object: { + __typename?: 'atoms' + data?: string | null + id: any + label?: string | null + image?: string | null + emoji?: string | null + type: any + creator?: { + __typename?: 'accounts' + label: string + image?: string | null + id: string + atom_id?: any | null + type: any + } | null + value?: { + __typename?: 'atom_values' + person?: { + __typename?: 'persons' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + thing?: { + __typename?: 'things' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + organization?: { + __typename?: 'organizations' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + } | null + } + } | null + } + }> + } | null + }> } } - ${AccountMetadataFragmentDoc} -${AccountClaimsFragmentDoc} -${AccountPositionsFragmentDoc}` -export const useGetAccountsWithAggregatesQuery = < - TData = GetAccountsWithAggregatesQuery, - TError = unknown, ->( - variables?: GetAccountsWithAggregatesQueryVariables, - options?: Omit< - UseQueryOptions, - 'queryKey' - > & { - queryKey?: UseQueryOptions< - GetAccountsWithAggregatesQuery, - TError, - TData - >['queryKey'] - }, -) => { - return useQuery({ - queryKey: - variables === undefined - ? ['GetAccountsWithAggregates'] - : ['GetAccountsWithAggregates', variables], - queryFn: fetcher< - GetAccountsWithAggregatesQuery, - GetAccountsWithAggregatesQueryVariables - >(GetAccountsWithAggregatesDocument, variables), - ...options, - }) -} +export type GetTriplesCountQueryVariables = Exact<{ + where?: InputMaybe +}> -useGetAccountsWithAggregatesQuery.document = GetAccountsWithAggregatesDocument +export type GetTriplesCountQuery = { + __typename?: 'query_root' + triples_aggregate: { + __typename?: 'triples_aggregate' + total?: { __typename?: 'triples_aggregate_fields'; count: number } | null + } +} -useGetAccountsWithAggregatesQuery.getKey = ( - variables?: GetAccountsWithAggregatesQueryVariables, -) => - variables === undefined - ? ['GetAccountsWithAggregates'] - : ['GetAccountsWithAggregates', variables] +export type GetTripleQueryVariables = Exact<{ + tripleId: Scalars['numeric']['input'] +}> -export const useInfiniteGetAccountsWithAggregatesQuery = < - TData = InfiniteData, - TError = unknown, ->( - variables: GetAccountsWithAggregatesQueryVariables, - options: Omit< - UseInfiniteQueryOptions, - 'queryKey' - > & { - queryKey?: UseInfiniteQueryOptions< - GetAccountsWithAggregatesQuery, - TError, - TData - >['queryKey'] - }, -) => { - return useInfiniteQuery( - (() => { - const { queryKey: optionsQueryKey, ...restOptions } = options - return { - queryKey: - optionsQueryKey ?? variables === undefined - ? ['GetAccountsWithAggregates.infinite'] - : ['GetAccountsWithAggregates.infinite', variables], - queryFn: (metaData) => - fetcher< - GetAccountsWithAggregatesQuery, - GetAccountsWithAggregatesQueryVariables - >(GetAccountsWithAggregatesDocument, { - ...variables, - ...(metaData.pageParam ?? {}), - })(), - ...restOptions, +export type GetTripleQuery = { + __typename?: 'query_root' + triple?: { + __typename?: 'triples' + id: any + subject_id: any + predicate_id: any + object_id: any + block_number: any + block_timestamp: any + transaction_hash: any + creator_id: string + vault_id: any + counter_vault_id: any + creator?: { + __typename?: 'accounts' + label: string + image?: string | null + id: string + atom_id?: any | null + type: any + } | null + subject: { + __typename?: 'atoms' + data?: string | null + id: any + image?: string | null + label?: string | null + emoji?: string | null + type: any + creator?: { + __typename?: 'accounts' + label: string + image?: string | null + id: string + atom_id?: any | null + type: any + } | null + value?: { + __typename?: 'atom_values' + person?: { + __typename?: 'persons' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + thing?: { + __typename?: 'things' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + organization?: { + __typename?: 'organizations' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + } | null + } + predicate: { + __typename?: 'atoms' + data?: string | null + id: any + image?: string | null + label?: string | null + emoji?: string | null + type: any + creator?: { + __typename?: 'accounts' + label: string + image?: string | null + id: string + atom_id?: any | null + type: any + } | null + value?: { + __typename?: 'atom_values' + person?: { + __typename?: 'persons' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + thing?: { + __typename?: 'things' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + organization?: { + __typename?: 'organizations' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + } | null + } + object: { + __typename?: 'atoms' + data?: string | null + id: any + image?: string | null + label?: string | null + emoji?: string | null + type: any + creator?: { + __typename?: 'accounts' + label: string + image?: string | null + id: string + atom_id?: any | null + type: any + } | null + value?: { + __typename?: 'atom_values' + person?: { + __typename?: 'persons' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + thing?: { + __typename?: 'things' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + organization?: { + __typename?: 'organizations' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + } | null + } + vault?: { + __typename?: 'vaults' + total_shares: any + current_share_price: any + allPositions: { + __typename?: 'positions_aggregate' + aggregate?: { + __typename?: 'positions_aggregate_fields' + count: number + sum?: { + __typename?: 'positions_sum_fields' + shares?: any | null + } | null + } | null } - })(), - ) + positions: Array<{ + __typename?: 'positions' + shares: any + id: string + vault_id: any + account?: { + __typename?: 'accounts' + id: string + label: string + image?: string | null + } | null + vault: { + __typename?: 'vaults' + id: any + total_shares: any + current_share_price: any + atom?: { + __typename?: 'atoms' + id: any + label?: string | null + image?: string | null + } | null + triple?: { + __typename?: 'triples' + id: any + vault?: { + __typename?: 'vaults' + id: any + position_count: number + positions_aggregate: { + __typename?: 'positions_aggregate' + aggregate?: { + __typename?: 'positions_aggregate_fields' + sum?: { + __typename?: 'positions_sum_fields' + shares?: any | null + } | null + } | null + } + } | null + counter_vault?: { + __typename?: 'vaults' + id: any + position_count: number + positions_aggregate: { + __typename?: 'positions_aggregate' + aggregate?: { + __typename?: 'positions_aggregate_fields' + sum?: { + __typename?: 'positions_sum_fields' + shares?: any | null + } | null + } | null + } + } | null + subject: { + __typename?: 'atoms' + data?: string | null + id: any + label?: string | null + image?: string | null + emoji?: string | null + type: any + creator?: { + __typename?: 'accounts' + label: string + image?: string | null + id: string + atom_id?: any | null + type: any + } | null + value?: { + __typename?: 'atom_values' + person?: { + __typename?: 'persons' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + thing?: { + __typename?: 'things' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + organization?: { + __typename?: 'organizations' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + } | null + } + predicate: { + __typename?: 'atoms' + data?: string | null + id: any + label?: string | null + image?: string | null + emoji?: string | null + type: any + creator?: { + __typename?: 'accounts' + label: string + image?: string | null + id: string + atom_id?: any | null + type: any + } | null + value?: { + __typename?: 'atom_values' + person?: { + __typename?: 'persons' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + thing?: { + __typename?: 'things' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + organization?: { + __typename?: 'organizations' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + } | null + } + object: { + __typename?: 'atoms' + data?: string | null + id: any + label?: string | null + image?: string | null + emoji?: string | null + type: any + creator?: { + __typename?: 'accounts' + label: string + image?: string | null + id: string + atom_id?: any | null + type: any + } | null + value?: { + __typename?: 'atom_values' + person?: { + __typename?: 'persons' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + thing?: { + __typename?: 'things' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + organization?: { + __typename?: 'organizations' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + } | null + } + } | null + } + }> + } | null + counter_vault?: { + __typename?: 'vaults' + total_shares: any + current_share_price: any + allPositions: { + __typename?: 'positions_aggregate' + aggregate?: { + __typename?: 'positions_aggregate_fields' + count: number + sum?: { + __typename?: 'positions_sum_fields' + shares?: any | null + } | null + } | null + } + positions: Array<{ + __typename?: 'positions' + shares: any + id: string + vault_id: any + account?: { + __typename?: 'accounts' + id: string + label: string + image?: string | null + } | null + vault: { + __typename?: 'vaults' + id: any + total_shares: any + current_share_price: any + atom?: { + __typename?: 'atoms' + id: any + label?: string | null + image?: string | null + } | null + triple?: { + __typename?: 'triples' + id: any + vault?: { + __typename?: 'vaults' + id: any + position_count: number + positions_aggregate: { + __typename?: 'positions_aggregate' + aggregate?: { + __typename?: 'positions_aggregate_fields' + sum?: { + __typename?: 'positions_sum_fields' + shares?: any | null + } | null + } | null + } + } | null + counter_vault?: { + __typename?: 'vaults' + id: any + position_count: number + positions_aggregate: { + __typename?: 'positions_aggregate' + aggregate?: { + __typename?: 'positions_aggregate_fields' + sum?: { + __typename?: 'positions_sum_fields' + shares?: any | null + } | null + } | null + } + } | null + subject: { + __typename?: 'atoms' + data?: string | null + id: any + label?: string | null + image?: string | null + emoji?: string | null + type: any + creator?: { + __typename?: 'accounts' + label: string + image?: string | null + id: string + atom_id?: any | null + type: any + } | null + value?: { + __typename?: 'atom_values' + person?: { + __typename?: 'persons' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + thing?: { + __typename?: 'things' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + organization?: { + __typename?: 'organizations' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + } | null + } + predicate: { + __typename?: 'atoms' + data?: string | null + id: any + label?: string | null + image?: string | null + emoji?: string | null + type: any + creator?: { + __typename?: 'accounts' + label: string + image?: string | null + id: string + atom_id?: any | null + type: any + } | null + value?: { + __typename?: 'atom_values' + person?: { + __typename?: 'persons' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + thing?: { + __typename?: 'things' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + organization?: { + __typename?: 'organizations' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + } | null + } + object: { + __typename?: 'atoms' + data?: string | null + id: any + label?: string | null + image?: string | null + emoji?: string | null + type: any + creator?: { + __typename?: 'accounts' + label: string + image?: string | null + id: string + atom_id?: any | null + type: any + } | null + value?: { + __typename?: 'atom_values' + person?: { + __typename?: 'persons' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + thing?: { + __typename?: 'things' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + organization?: { + __typename?: 'organizations' + name?: string | null + image?: string | null + description?: string | null + url?: string | null + } | null + } | null + } + } | null + } + }> + } | null + } | null } -useInfiniteGetAccountsWithAggregatesQuery.getKey = ( - variables?: GetAccountsWithAggregatesQueryVariables, -) => - variables === undefined - ? ['GetAccountsWithAggregates.infinite'] - : ['GetAccountsWithAggregates.infinite', variables] +export type GetAtomTriplesWithPositionsQueryVariables = Exact<{ + where?: InputMaybe +}> -useGetAccountsWithAggregatesQuery.fetcher = ( - variables?: GetAccountsWithAggregatesQueryVariables, - options?: RequestInit['headers'], -) => - fetcher< - GetAccountsWithAggregatesQuery, - GetAccountsWithAggregatesQueryVariables - >(GetAccountsWithAggregatesDocument, variables, options) - -export const GetAccountsCountDocument = ` - query GetAccountsCount($where: accounts_bool_exp) { - accounts_aggregate(where: $where) { - aggregate { - count - } +export type GetAtomTriplesWithPositionsQuery = { + __typename?: 'query_root' + triples_aggregate: { + __typename?: 'triples_aggregate' + aggregate?: { + __typename?: 'triples_aggregate_fields' + count: number + } | null } } - ` -export const useGetAccountsCountQuery = < - TData = GetAccountsCountQuery, - TError = unknown, ->( - variables?: GetAccountsCountQueryVariables, - options?: Omit< - UseQueryOptions, - 'queryKey' - > & { - queryKey?: UseQueryOptions['queryKey'] - }, -) => { - return useQuery({ - queryKey: - variables === undefined - ? ['GetAccountsCount'] - : ['GetAccountsCount', variables], - queryFn: fetcher( - GetAccountsCountDocument, - variables, - ), - ...options, - }) -} +export type GetTriplesWithPositionsQueryVariables = Exact<{ + limit?: InputMaybe + offset?: InputMaybe + orderBy?: InputMaybe | Triples_Order_By> + where?: InputMaybe + address?: InputMaybe +}> -useGetAccountsCountQuery.document = GetAccountsCountDocument +export type GetTriplesWithPositionsQuery = { + __typename?: 'query_root' + total: { + __typename?: 'triples_aggregate' + aggregate?: { + __typename?: 'triples_aggregate_fields' + count: number + } | null + } + triples: Array<{ + __typename?: 'triples' + id: any + vault_id: any + counter_vault_id: any + subject: { + __typename?: 'atoms' + id: any + vault_id: any + label?: string | null + image?: string | null + } + predicate: { + __typename?: 'atoms' + id: any + vault_id: any + label?: string | null + image?: string | null + } + object: { + __typename?: 'atoms' + id: any + vault_id: any + label?: string | null + image?: string | null + } + vault?: { + __typename?: 'vaults' + total_shares: any + position_count: number + positions: Array<{ + __typename?: 'positions' + shares: any + account?: { + __typename?: 'accounts' + id: string + label: string + image?: string | null + } | null + }> + } | null + counter_vault?: { + __typename?: 'vaults' + total_shares: any + position_count: number + positions: Array<{ + __typename?: 'positions' + shares: any + account?: { + __typename?: 'accounts' + id: string + label: string + image?: string | null + } | null + }> + } | null + }> +} -useGetAccountsCountQuery.getKey = ( - variables?: GetAccountsCountQueryVariables, -) => - variables === undefined - ? ['GetAccountsCount'] - : ['GetAccountsCount', variables] +export type GetVaultsQueryVariables = Exact<{ + limit?: InputMaybe + offset?: InputMaybe + orderBy?: InputMaybe | Vaults_Order_By> + where?: InputMaybe +}> -export const useInfiniteGetAccountsCountQuery = < - TData = InfiniteData, - TError = unknown, ->( - variables: GetAccountsCountQueryVariables, - options: Omit< - UseInfiniteQueryOptions, - 'queryKey' - > & { - queryKey?: UseInfiniteQueryOptions< - GetAccountsCountQuery, - TError, - TData - >['queryKey'] - }, -) => { - return useInfiniteQuery( - (() => { - const { queryKey: optionsQueryKey, ...restOptions } = options - return { - queryKey: - optionsQueryKey ?? variables === undefined - ? ['GetAccountsCount.infinite'] - : ['GetAccountsCount.infinite', variables], - queryFn: (metaData) => - fetcher( - GetAccountsCountDocument, - { ...variables, ...(metaData.pageParam ?? {}) }, - )(), - ...restOptions, +export type GetVaultsQuery = { + __typename?: 'query_root' + vaults_aggregate: { + __typename?: 'vaults_aggregate' + aggregate?: { __typename?: 'vaults_aggregate_fields'; count: number } | null + nodes: Array<{ + __typename?: 'vaults' + id: any + current_share_price: any + total_shares: any + atom?: { __typename?: 'atoms'; id: any; label?: string | null } | null + triple?: { + __typename?: 'triples' + id: any + subject: { __typename?: 'atoms'; id: any; label?: string | null } + predicate: { __typename?: 'atoms'; id: any; label?: string | null } + object: { __typename?: 'atoms'; id: any; label?: string | null } + } | null + positions_aggregate: { + __typename?: 'positions_aggregate' + nodes: Array<{ + __typename?: 'positions' + shares: any + account?: { + __typename?: 'accounts' + id: string + label: string + } | null + }> } - })(), - ) + }> + } } -useInfiniteGetAccountsCountQuery.getKey = ( - variables?: GetAccountsCountQueryVariables, -) => - variables === undefined - ? ['GetAccountsCount.infinite'] - : ['GetAccountsCount.infinite', variables] +export type GetVaultQueryVariables = Exact<{ + vaultId: Scalars['numeric']['input'] +}> -useGetAccountsCountQuery.fetcher = ( - variables?: GetAccountsCountQueryVariables, - options?: RequestInit['headers'], -) => - fetcher( - GetAccountsCountDocument, - variables, - options, - ) +export type GetVaultQuery = { + __typename?: 'query_root' + vault?: { + __typename?: 'vaults' + id: any + current_share_price: any + total_shares: any + atom?: { __typename?: 'atoms'; id: any; label?: string | null } | null + triple?: { + __typename?: 'triples' + id: any + subject: { __typename?: 'atoms'; id: any; label?: string | null } + predicate: { __typename?: 'atoms'; id: any; label?: string | null } + object: { __typename?: 'atoms'; id: any; label?: string | null } + } | null + } | null +} -export const GetAccountDocument = ` - query GetAccount($address: String!, $claimsLimit: Int, $claimsOffset: Int, $claimsWhere: claims_bool_exp, $positionsLimit: Int, $positionsOffset: Int, $positionsWhere: positions_bool_exp, $atomsWhere: atoms_bool_exp, $atomsOrderBy: [atoms_order_by!], $atomsLimit: Int, $atomsOffset: Int, $triplesWhere: triples_bool_exp, $triplesOrderBy: [triples_order_by!], $triplesLimit: Int, $triplesOffset: Int) { - account(id: $address) { - ...AccountMetadata - atom { - ...AtomMetadata - ...AtomVaultDetails +export const AccountClaimsAggregateFragmentDoc = ` + fragment AccountClaimsAggregate on accounts { + claims_aggregate(order_by: {shares: desc}) { + aggregate { + count + } + nodes { + triple { + id + } + shares + counter_shares } - ...AccountClaims - ...AccountPositions - ...AccountCreatedAtoms - ...AccountCreatedTriples } - chainLinkPrices(limit: 1, order_by: {id: desc}) { - usd +} + ` +export const AccountClaimsFragmentDoc = ` + fragment AccountClaims on accounts { + claims( + order_by: {shares: desc} + limit: $claimsLimit + offset: $claimsOffset + where: $claimsWhere + ) { + triple { + id + } + shares + counter_shares } } - ${AccountMetadataFragmentDoc} -${AtomMetadataFragmentDoc} -${AtomValueFragmentDoc} -${AtomVaultDetailsFragmentDoc} -${AccountClaimsFragmentDoc} -${AccountPositionsFragmentDoc} -${AccountCreatedAtomsFragmentDoc} -${AccountCreatedTriplesFragmentDoc}` - -export const useGetAccountQuery = ( - variables: GetAccountQueryVariables, - options?: Omit< - UseQueryOptions, - 'queryKey' - > & { - queryKey?: UseQueryOptions['queryKey'] - }, -) => { - return useQuery({ - queryKey: ['GetAccount', variables], - queryFn: fetcher( - GetAccountDocument, - variables, - ), - ...options, - }) -} - -useGetAccountQuery.document = GetAccountDocument - -useGetAccountQuery.getKey = (variables: GetAccountQueryVariables) => [ - 'GetAccount', - variables, -] - -export const useInfiniteGetAccountQuery = < - TData = InfiniteData, - TError = unknown, ->( - variables: GetAccountQueryVariables, - options: Omit< - UseInfiniteQueryOptions, - 'queryKey' - > & { - queryKey?: UseInfiniteQueryOptions< - GetAccountQuery, - TError, - TData - >['queryKey'] - }, -) => { - return useInfiniteQuery( - (() => { - const { queryKey: optionsQueryKey, ...restOptions } = options - return { - queryKey: optionsQueryKey ?? ['GetAccount.infinite', variables], - queryFn: (metaData) => - fetcher( - GetAccountDocument, - { ...variables, ...(metaData.pageParam ?? {}) }, - )(), - ...restOptions, + ` +export const AccountPositionsAggregateFragmentDoc = ` + fragment AccountPositionsAggregate on accounts { + positions_aggregate(order_by: {shares: desc}) { + aggregate { + count + } + nodes { + id + shares + vault { + id + total_shares + current_share_price + atom { + id + label + } + triple { + id + } } - })(), - ) -} - -useInfiniteGetAccountQuery.getKey = (variables: GetAccountQueryVariables) => [ - 'GetAccount.infinite', - variables, -] - -useGetAccountQuery.fetcher = ( - variables: GetAccountQueryVariables, - options?: RequestInit['headers'], -) => - fetcher( - GetAccountDocument, - variables, - options, - ) - -export const GetAccountWithPaginatedRelationsDocument = ` - query GetAccountWithPaginatedRelations($address: String!, $claimsLimit: Int, $claimsOffset: Int, $claimsWhere: claims_bool_exp, $positionsLimit: Int, $positionsOffset: Int, $positionsWhere: positions_bool_exp, $atomsLimit: Int, $atomsOffset: Int, $atomsWhere: atoms_bool_exp, $atomsOrderBy: [atoms_order_by!], $triplesLimit: Int, $triplesOffset: Int, $triplesWhere: triples_bool_exp, $triplesOrderBy: [triples_order_by!]) { - account(id: $address) { - ...AccountMetadata - ...AccountClaims - ...AccountPositions - ...AccountCreatedAtoms - ...AccountCreatedTriples + } } } - ${AccountMetadataFragmentDoc} -${AccountClaimsFragmentDoc} -${AccountPositionsFragmentDoc} -${AccountCreatedAtomsFragmentDoc} -${AccountCreatedTriplesFragmentDoc}` - -export const useGetAccountWithPaginatedRelationsQuery = < - TData = GetAccountWithPaginatedRelationsQuery, - TError = unknown, ->( - variables: GetAccountWithPaginatedRelationsQueryVariables, - options?: Omit< - UseQueryOptions, - 'queryKey' - > & { - queryKey?: UseQueryOptions< - GetAccountWithPaginatedRelationsQuery, - TError, - TData - >['queryKey'] - }, -) => { - return useQuery({ - queryKey: ['GetAccountWithPaginatedRelations', variables], - queryFn: fetcher< - GetAccountWithPaginatedRelationsQuery, - GetAccountWithPaginatedRelationsQueryVariables - >(GetAccountWithPaginatedRelationsDocument, variables), - ...options, - }) + ` +export const AccountPositionsFragmentDoc = ` + fragment AccountPositions on accounts { + positions( + order_by: {shares: desc} + limit: $positionsLimit + offset: $positionsOffset + where: $positionsWhere + ) { + id + shares + vault { + id + total_shares + current_share_price + atom { + id + label + } + triple { + id + } + } + } } - -useGetAccountWithPaginatedRelationsQuery.document = - GetAccountWithPaginatedRelationsDocument - -useGetAccountWithPaginatedRelationsQuery.getKey = ( - variables: GetAccountWithPaginatedRelationsQueryVariables, -) => ['GetAccountWithPaginatedRelations', variables] - -export const useInfiniteGetAccountWithPaginatedRelationsQuery = < - TData = InfiniteData, - TError = unknown, ->( - variables: GetAccountWithPaginatedRelationsQueryVariables, - options: Omit< - UseInfiniteQueryOptions< - GetAccountWithPaginatedRelationsQuery, - TError, - TData - >, - 'queryKey' - > & { - queryKey?: UseInfiniteQueryOptions< - GetAccountWithPaginatedRelationsQuery, - TError, - TData - >['queryKey'] - }, -) => { - return useInfiniteQuery( - (() => { - const { queryKey: optionsQueryKey, ...restOptions } = options - return { - queryKey: optionsQueryKey ?? [ - 'GetAccountWithPaginatedRelations.infinite', - variables, - ], - queryFn: (metaData) => - fetcher< - GetAccountWithPaginatedRelationsQuery, - GetAccountWithPaginatedRelationsQueryVariables - >(GetAccountWithPaginatedRelationsDocument, { - ...variables, - ...(metaData.pageParam ?? {}), - })(), - ...restOptions, + ` +export const AccountAtomsFragmentDoc = ` + fragment AccountAtoms on accounts { + atoms( + where: $atomsWhere + order_by: $atomsOrderBy + limit: $atomsLimit + offset: $atomsOffset + ) { + id + label + data + vault { + total_shares + positions_aggregate(where: {account_id: {_eq: $address}}) { + nodes { + account { + id + } + shares + } } - })(), - ) + } + } } - -useInfiniteGetAccountWithPaginatedRelationsQuery.getKey = ( - variables: GetAccountWithPaginatedRelationsQueryVariables, -) => ['GetAccountWithPaginatedRelations.infinite', variables] - -useGetAccountWithPaginatedRelationsQuery.fetcher = ( - variables: GetAccountWithPaginatedRelationsQueryVariables, - options?: RequestInit['headers'], -) => - fetcher< - GetAccountWithPaginatedRelationsQuery, - GetAccountWithPaginatedRelationsQueryVariables - >(GetAccountWithPaginatedRelationsDocument, variables, options) - -export const GetAccountWithAggregatesDocument = ` - query GetAccountWithAggregates($address: String!, $claimsLimit: Int, $claimsOffset: Int, $claimsWhere: claims_bool_exp, $positionsLimit: Int, $positionsOffset: Int, $positionsWhere: positions_bool_exp, $atomsWhere: atoms_bool_exp, $atomsOrderBy: [atoms_order_by!], $atomsLimit: Int, $atomsOffset: Int, $triplesWhere: triples_bool_exp, $triplesOrderBy: [triples_order_by!], $triplesLimit: Int, $triplesOffset: Int) { - account(id: $address) { - ...AccountMetadata - ...AccountClaimsAggregate - ...AccountPositionsAggregate - ...AccountCreatedAtomsAggregate - ...AccountCreatedTriplesAggregate + ` +export const AccountAtomsAggregateFragmentDoc = ` + fragment AccountAtomsAggregate on accounts { + atoms_aggregate( + where: $atomsWhere + order_by: $atomsOrderBy + limit: $atomsLimit + offset: $atomsOffset + ) { + aggregate { + count + sum { + id + } + } + nodes { + id + label + data + vault { + total_shares + positions_aggregate(where: {account_id: {_eq: $address}}) { + nodes { + account { + id + } + shares + } + } + } + } } } - ${AccountMetadataFragmentDoc} -${AccountClaimsAggregateFragmentDoc} -${AccountPositionsAggregateFragmentDoc} -${AccountCreatedAtomsAggregateFragmentDoc} -${AccountCreatedTriplesAggregateFragmentDoc}` - -export const useGetAccountWithAggregatesQuery = < - TData = GetAccountWithAggregatesQuery, - TError = unknown, ->( - variables: GetAccountWithAggregatesQueryVariables, - options?: Omit< - UseQueryOptions, - 'queryKey' - > & { - queryKey?: UseQueryOptions< - GetAccountWithAggregatesQuery, - TError, - TData - >['queryKey'] - }, -) => { - return useQuery({ - queryKey: ['GetAccountWithAggregates', variables], - queryFn: fetcher< - GetAccountWithAggregatesQuery, - GetAccountWithAggregatesQueryVariables - >(GetAccountWithAggregatesDocument, variables), - ...options, - }) -} - -useGetAccountWithAggregatesQuery.document = GetAccountWithAggregatesDocument - -useGetAccountWithAggregatesQuery.getKey = ( - variables: GetAccountWithAggregatesQueryVariables, -) => ['GetAccountWithAggregates', variables] - -export const useInfiniteGetAccountWithAggregatesQuery = < - TData = InfiniteData, - TError = unknown, ->( - variables: GetAccountWithAggregatesQueryVariables, - options: Omit< - UseInfiniteQueryOptions, - 'queryKey' - > & { - queryKey?: UseInfiniteQueryOptions< - GetAccountWithAggregatesQuery, - TError, - TData - >['queryKey'] - }, -) => { - return useInfiniteQuery( - (() => { - const { queryKey: optionsQueryKey, ...restOptions } = options - return { - queryKey: optionsQueryKey ?? [ - 'GetAccountWithAggregates.infinite', - variables, - ], - queryFn: (metaData) => - fetcher< - GetAccountWithAggregatesQuery, - GetAccountWithAggregatesQueryVariables - >(GetAccountWithAggregatesDocument, { - ...variables, - ...(metaData.pageParam ?? {}), - })(), - ...restOptions, - } - })(), - ) -} - -useInfiniteGetAccountWithAggregatesQuery.getKey = ( - variables: GetAccountWithAggregatesQueryVariables, -) => ['GetAccountWithAggregates.infinite', variables] - -useGetAccountWithAggregatesQuery.fetcher = ( - variables: GetAccountWithAggregatesQueryVariables, - options?: RequestInit['headers'], -) => - fetcher< - GetAccountWithAggregatesQuery, - GetAccountWithAggregatesQueryVariables - >(GetAccountWithAggregatesDocument, variables, options) - -export const GetAtomsDocument = ` - query GetAtoms($limit: Int, $offset: Int, $orderBy: [atoms_order_by!], $where: atoms_bool_exp) { - total: atoms_aggregate(where: $where) { + ` +export const AccountTriplesFragmentDoc = ` + fragment AccountTriples on accounts { + triples_aggregate( + where: $triplesWhere + order_by: $triplesOrderBy + limit: $triplesLimit + offset: $triplesOffset + ) { aggregate { count } - } - atoms(limit: $limit, offset: $offset, order_by: $orderBy, where: $where) { - ...AtomMetadata - ...AtomTxn - ...AtomVaultDetails - creator { - ...AccountMetadata + nodes { + id + subject { + id + label + } + predicate { + id + label + } + object { + id + label + } } } } - ${AtomMetadataFragmentDoc} -${AtomValueFragmentDoc} -${AtomTxnFragmentDoc} -${AtomVaultDetailsFragmentDoc} -${AccountMetadataFragmentDoc}` - -export const useGetAtomsQuery = ( - variables?: GetAtomsQueryVariables, - options?: Omit, 'queryKey'> & { - queryKey?: UseQueryOptions['queryKey'] - }, -) => { - return useQuery({ - queryKey: variables === undefined ? ['GetAtoms'] : ['GetAtoms', variables], - queryFn: fetcher( - GetAtomsDocument, - variables, - ), - ...options, - }) -} - -useGetAtomsQuery.document = GetAtomsDocument - -useGetAtomsQuery.getKey = (variables?: GetAtomsQueryVariables) => - variables === undefined ? ['GetAtoms'] : ['GetAtoms', variables] - -export const useInfiniteGetAtomsQuery = < - TData = InfiniteData, - TError = unknown, ->( - variables: GetAtomsQueryVariables, - options: Omit< - UseInfiniteQueryOptions, - 'queryKey' - > & { - queryKey?: UseInfiniteQueryOptions['queryKey'] - }, -) => { - return useInfiniteQuery( - (() => { - const { queryKey: optionsQueryKey, ...restOptions } = options - return { - queryKey: - optionsQueryKey ?? variables === undefined - ? ['GetAtoms.infinite'] - : ['GetAtoms.infinite', variables], - queryFn: (metaData) => - fetcher(GetAtomsDocument, { - ...variables, - ...(metaData.pageParam ?? {}), - })(), - ...restOptions, - } - })(), - ) -} - -useInfiniteGetAtomsQuery.getKey = (variables?: GetAtomsQueryVariables) => - variables === undefined - ? ['GetAtoms.infinite'] - : ['GetAtoms.infinite', variables] - -useGetAtomsQuery.fetcher = ( - variables?: GetAtomsQueryVariables, - options?: RequestInit['headers'], -) => - fetcher( - GetAtomsDocument, - variables, - options, - ) - -export const GetAtomsWithPositionsDocument = ` - query GetAtomsWithPositions($limit: Int, $offset: Int, $orderBy: [atoms_order_by!], $where: atoms_bool_exp, $address: String) { - total: atoms_aggregate(where: $where) { + ` +export const AccountTriplesAggregateFragmentDoc = ` + fragment AccountTriplesAggregate on accounts { + triples_aggregate( + where: $triplesWhere + order_by: $triplesOrderBy + limit: $triplesLimit + offset: $triplesOffset + ) { aggregate { count } - } - atoms(limit: $limit, offset: $offset, order_by: $orderBy, where: $where) { - ...AtomMetadata - ...AtomTxn - vault { - positionCount - totalShares - currentSharePrice - total: positions_aggregate { - aggregate { - count - sum { - shares - } - } + nodes { + id + subject { + id + label } - positions(where: {accountId: {_eq: $address}}) { + predicate { id - account { - label - id + label + } + object { + id + label + } + } + } +} + ` +export const AtomTxnFragmentDoc = ` + fragment AtomTxn on atoms { + block_number + block_timestamp + transaction_hash + creator_id +} + ` +export const AtomVaultDetailsFragmentDoc = ` + fragment AtomVaultDetails on atoms { + vault_id + wallet_id + vault { + position_count + total_shares + current_share_price + positions_aggregate { + aggregate { + count + sum { + shares } - shares } } - creator { - ...AccountMetadata + positions { + id + account { + label + id + } + shares } } } - ${AtomMetadataFragmentDoc} -${AtomValueFragmentDoc} -${AtomTxnFragmentDoc} -${AccountMetadataFragmentDoc}` - -export const useGetAtomsWithPositionsQuery = < - TData = GetAtomsWithPositionsQuery, - TError = unknown, ->( - variables?: GetAtomsWithPositionsQueryVariables, - options?: Omit< - UseQueryOptions, - 'queryKey' - > & { - queryKey?: UseQueryOptions< - GetAtomsWithPositionsQuery, - TError, - TData - >['queryKey'] - }, -) => { - return useQuery({ - queryKey: - variables === undefined - ? ['GetAtomsWithPositions'] - : ['GetAtomsWithPositions', variables], - queryFn: fetcher< - GetAtomsWithPositionsQuery, - GetAtomsWithPositionsQueryVariables - >(GetAtomsWithPositionsDocument, variables), - ...options, - }) + ` +export const AccountMetadataFragmentDoc = ` + fragment AccountMetadata on accounts { + label + image + id + atom_id + type } - -useGetAtomsWithPositionsQuery.document = GetAtomsWithPositionsDocument - -useGetAtomsWithPositionsQuery.getKey = ( - variables?: GetAtomsWithPositionsQueryVariables, -) => - variables === undefined - ? ['GetAtomsWithPositions'] - : ['GetAtomsWithPositions', variables] - -export const useInfiniteGetAtomsWithPositionsQuery = < - TData = InfiniteData, - TError = unknown, ->( - variables: GetAtomsWithPositionsQueryVariables, - options: Omit< - UseInfiniteQueryOptions, - 'queryKey' - > & { - queryKey?: UseInfiniteQueryOptions< - GetAtomsWithPositionsQuery, - TError, - TData - >['queryKey'] - }, -) => { - return useInfiniteQuery( - (() => { - const { queryKey: optionsQueryKey, ...restOptions } = options - return { - queryKey: - optionsQueryKey ?? variables === undefined - ? ['GetAtomsWithPositions.infinite'] - : ['GetAtomsWithPositions.infinite', variables], - queryFn: (metaData) => - fetcher< - GetAtomsWithPositionsQuery, - GetAtomsWithPositionsQueryVariables - >(GetAtomsWithPositionsDocument, { - ...variables, - ...(metaData.pageParam ?? {}), - })(), - ...restOptions, + ` +export const AtomTripleFragmentDoc = ` + fragment AtomTriple on atoms { + as_subject_triples { + id + object { + data + id + image + label + emoji + type + creator { + ...AccountMetadata } - })(), - ) -} - -useInfiniteGetAtomsWithPositionsQuery.getKey = ( - variables?: GetAtomsWithPositionsQueryVariables, -) => - variables === undefined - ? ['GetAtomsWithPositions.infinite'] - : ['GetAtomsWithPositions.infinite', variables] - -useGetAtomsWithPositionsQuery.fetcher = ( - variables?: GetAtomsWithPositionsQueryVariables, - options?: RequestInit['headers'], -) => - fetcher( - GetAtomsWithPositionsDocument, - variables, - options, - ) - -export const GetAtomsWithAggregatesDocument = ` - query GetAtomsWithAggregates($limit: Int, $offset: Int, $orderBy: [atoms_order_by!], $where: atoms_bool_exp) { - atoms_aggregate( - limit: $limit - offset: $offset - order_by: $orderBy - where: $where - ) { - aggregate { - count } - nodes { - ...AtomMetadata - ...AtomTxn - ...AtomVaultDetails + predicate { + data + id + image + label + emoji + type creator { ...AccountMetadata } } } -} - ${AtomMetadataFragmentDoc} -${AtomValueFragmentDoc} -${AtomTxnFragmentDoc} -${AtomVaultDetailsFragmentDoc} -${AccountMetadataFragmentDoc}` - -export const useGetAtomsWithAggregatesQuery = < - TData = GetAtomsWithAggregatesQuery, - TError = unknown, ->( - variables?: GetAtomsWithAggregatesQueryVariables, - options?: Omit< - UseQueryOptions, - 'queryKey' - > & { - queryKey?: UseQueryOptions< - GetAtomsWithAggregatesQuery, - TError, - TData - >['queryKey'] - }, -) => { - return useQuery({ - queryKey: - variables === undefined - ? ['GetAtomsWithAggregates'] - : ['GetAtomsWithAggregates', variables], - queryFn: fetcher< - GetAtomsWithAggregatesQuery, - GetAtomsWithAggregatesQueryVariables - >(GetAtomsWithAggregatesDocument, variables), - ...options, - }) -} - -useGetAtomsWithAggregatesQuery.document = GetAtomsWithAggregatesDocument - -useGetAtomsWithAggregatesQuery.getKey = ( - variables?: GetAtomsWithAggregatesQueryVariables, -) => - variables === undefined - ? ['GetAtomsWithAggregates'] - : ['GetAtomsWithAggregates', variables] - -export const useInfiniteGetAtomsWithAggregatesQuery = < - TData = InfiniteData, - TError = unknown, ->( - variables: GetAtomsWithAggregatesQueryVariables, - options: Omit< - UseInfiniteQueryOptions, - 'queryKey' - > & { - queryKey?: UseInfiniteQueryOptions< - GetAtomsWithAggregatesQuery, - TError, - TData - >['queryKey'] - }, -) => { - return useInfiniteQuery( - (() => { - const { queryKey: optionsQueryKey, ...restOptions } = options - return { - queryKey: - optionsQueryKey ?? variables === undefined - ? ['GetAtomsWithAggregates.infinite'] - : ['GetAtomsWithAggregates.infinite', variables], - queryFn: (metaData) => - fetcher< - GetAtomsWithAggregatesQuery, - GetAtomsWithAggregatesQueryVariables - >(GetAtomsWithAggregatesDocument, { - ...variables, - ...(metaData.pageParam ?? {}), - })(), - ...restOptions, + as_predicate_triples { + id + subject { + data + id + image + label + emoji + type + creator { + ...AccountMetadata } - })(), - ) -} - -useInfiniteGetAtomsWithAggregatesQuery.getKey = ( - variables?: GetAtomsWithAggregatesQueryVariables, -) => - variables === undefined - ? ['GetAtomsWithAggregates.infinite'] - : ['GetAtomsWithAggregates.infinite', variables] - -useGetAtomsWithAggregatesQuery.fetcher = ( - variables?: GetAtomsWithAggregatesQueryVariables, - options?: RequestInit['headers'], -) => - fetcher( - GetAtomsWithAggregatesDocument, - variables, - options, - ) - -export const GetAtomsCountDocument = ` - query GetAtomsCount($where: atoms_bool_exp) { - atoms_aggregate(where: $where) { - aggregate { - count } - } -} - ` - -export const useGetAtomsCountQuery = < - TData = GetAtomsCountQuery, - TError = unknown, ->( - variables?: GetAtomsCountQueryVariables, - options?: Omit< - UseQueryOptions, - 'queryKey' - > & { - queryKey?: UseQueryOptions['queryKey'] - }, -) => { - return useQuery({ - queryKey: - variables === undefined - ? ['GetAtomsCount'] - : ['GetAtomsCount', variables], - queryFn: fetcher( - GetAtomsCountDocument, - variables, - ), - ...options, - }) -} - -useGetAtomsCountQuery.document = GetAtomsCountDocument - -useGetAtomsCountQuery.getKey = (variables?: GetAtomsCountQueryVariables) => - variables === undefined ? ['GetAtomsCount'] : ['GetAtomsCount', variables] - -export const useInfiniteGetAtomsCountQuery = < - TData = InfiniteData, - TError = unknown, ->( - variables: GetAtomsCountQueryVariables, - options: Omit< - UseInfiniteQueryOptions, - 'queryKey' - > & { - queryKey?: UseInfiniteQueryOptions< - GetAtomsCountQuery, - TError, - TData - >['queryKey'] - }, -) => { - return useInfiniteQuery( - (() => { - const { queryKey: optionsQueryKey, ...restOptions } = options - return { - queryKey: - optionsQueryKey ?? variables === undefined - ? ['GetAtomsCount.infinite'] - : ['GetAtomsCount.infinite', variables], - queryFn: (metaData) => - fetcher( - GetAtomsCountDocument, - { ...variables, ...(metaData.pageParam ?? {}) }, - )(), - ...restOptions, + object { + data + id + image + label + emoji + type + creator { + ...AccountMetadata } - })(), - ) -} - -useInfiniteGetAtomsCountQuery.getKey = ( - variables?: GetAtomsCountQueryVariables, -) => - variables === undefined - ? ['GetAtomsCount.infinite'] - : ['GetAtomsCount.infinite', variables] - -useGetAtomsCountQuery.fetcher = ( - variables?: GetAtomsCountQueryVariables, - options?: RequestInit['headers'], -) => - fetcher( - GetAtomsCountDocument, - variables, - options, - ) - -export const GetAtomDocument = ` - query GetAtom($id: numeric!) { - atom(id: $id) { - ...AtomMetadata - ...AtomTxn - ...AtomVaultDetails - creator { - ...AccountMetadata } - ...AtomTriple } -} - ${AtomMetadataFragmentDoc} -${AtomValueFragmentDoc} -${AtomTxnFragmentDoc} -${AtomVaultDetailsFragmentDoc} -${AccountMetadataFragmentDoc} -${AtomTripleFragmentDoc}` - -export const useGetAtomQuery = ( - variables: GetAtomQueryVariables, - options?: Omit, 'queryKey'> & { - queryKey?: UseQueryOptions['queryKey'] - }, -) => { - return useQuery({ - queryKey: ['GetAtom', variables], - queryFn: fetcher( - GetAtomDocument, - variables, - ), - ...options, - }) -} - -useGetAtomQuery.document = GetAtomDocument - -useGetAtomQuery.getKey = (variables: GetAtomQueryVariables) => [ - 'GetAtom', - variables, -] - -export const useInfiniteGetAtomQuery = < - TData = InfiniteData, - TError = unknown, ->( - variables: GetAtomQueryVariables, - options: Omit< - UseInfiniteQueryOptions, - 'queryKey' - > & { - queryKey?: UseInfiniteQueryOptions['queryKey'] - }, -) => { - return useInfiniteQuery( - (() => { - const { queryKey: optionsQueryKey, ...restOptions } = options - return { - queryKey: optionsQueryKey ?? ['GetAtom.infinite', variables], - queryFn: (metaData) => - fetcher(GetAtomDocument, { - ...variables, - ...(metaData.pageParam ?? {}), - })(), - ...restOptions, + as_object_triples { + id + subject { + data + id + image + label + emoji + type + creator { + ...AccountMetadata } - })(), - ) -} - -useInfiniteGetAtomQuery.getKey = (variables: GetAtomQueryVariables) => [ - 'GetAtom.infinite', - variables, -] - -useGetAtomQuery.fetcher = ( - variables: GetAtomQueryVariables, - options?: RequestInit['headers'], -) => - fetcher( - GetAtomDocument, - variables, - options, - ) - -export const GetClaimsByAddressDocument = ` - query GetClaimsByAddress($address: String) { - claims_aggregate(where: {accountId: {_eq: $address}}) { - aggregate { - count } - nodes { - account { - label + predicate { + data + id + image + label + emoji + type + creator { + ...AccountMetadata } - triple { - subject { - label - } - predicate { - label + } + } +} + ` +export const AtomVaultDetailsWithPositionsFragmentDoc = ` + fragment AtomVaultDetailsWithPositions on atoms { + vault { + total_shares + current_share_price + positions_aggregate(where: {account_id: {_in: $addresses}}) { + aggregate { + sum { + shares } - object { - label + } + nodes { + account { + id } + shares } + } + } +} + ` +export const DepositEventFragmentFragmentDoc = ` + fragment DepositEventFragment on events { + deposit { + vault_id + sender_assets_after_total_fees + shares_for_receiver + receiver { + id + } + sender { id - vaultId - counterVaultId - shares - counterShares } } } ` - -export const useGetClaimsByAddressQuery = < - TData = GetClaimsByAddressQuery, - TError = unknown, ->( - variables?: GetClaimsByAddressQueryVariables, - options?: Omit< - UseQueryOptions, - 'queryKey' - > & { - queryKey?: UseQueryOptions< - GetClaimsByAddressQuery, - TError, - TData - >['queryKey'] - }, -) => { - return useQuery({ - queryKey: - variables === undefined - ? ['GetClaimsByAddress'] - : ['GetClaimsByAddress', variables], - queryFn: fetcher( - GetClaimsByAddressDocument, - variables, - ), - ...options, - }) +export const RedemptionEventFragmentFragmentDoc = ` + fragment RedemptionEventFragment on events { + redemption { + vault_id + receiver_id + shares_redeemed_by_sender + assets_for_receiver + } } - -useGetClaimsByAddressQuery.document = GetClaimsByAddressDocument - -useGetClaimsByAddressQuery.getKey = ( - variables?: GetClaimsByAddressQueryVariables, -) => - variables === undefined - ? ['GetClaimsByAddress'] - : ['GetClaimsByAddress', variables] - -export const useInfiniteGetClaimsByAddressQuery = < - TData = InfiniteData, - TError = unknown, ->( - variables: GetClaimsByAddressQueryVariables, - options: Omit< - UseInfiniteQueryOptions, - 'queryKey' - > & { - queryKey?: UseInfiniteQueryOptions< - GetClaimsByAddressQuery, - TError, - TData - >['queryKey'] - }, -) => { - return useInfiniteQuery( - (() => { - const { queryKey: optionsQueryKey, ...restOptions } = options - return { - queryKey: - optionsQueryKey ?? variables === undefined - ? ['GetClaimsByAddress.infinite'] - : ['GetClaimsByAddress.infinite', variables], - queryFn: (metaData) => - fetcher( - GetClaimsByAddressDocument, - { ...variables, ...(metaData.pageParam ?? {}) }, - )(), - ...restOptions, - } - })(), - ) + ` +export const AtomValueFragmentDoc = ` + fragment AtomValue on atoms { + value { + person { + name + image + description + url + } + thing { + name + image + description + url + } + organization { + name + image + description + url + } + } } - -useInfiniteGetClaimsByAddressQuery.getKey = ( - variables?: GetClaimsByAddressQueryVariables, -) => - variables === undefined - ? ['GetClaimsByAddress.infinite'] - : ['GetClaimsByAddress.infinite', variables] - -useGetClaimsByAddressQuery.fetcher = ( - variables?: GetClaimsByAddressQueryVariables, - options?: RequestInit['headers'], -) => - fetcher( - GetClaimsByAddressDocument, - variables, - options, - ) - -export const GetEventsDocument = ` - query GetEvents($limit: Int, $offset: Int, $orderBy: [events_order_by!], $where: events_bool_exp, $addresses: [String!]) { - total: events_aggregate(where: $where) { - aggregate { - count + ` +export const AtomMetadataFragmentDoc = ` + fragment AtomMetadata on atoms { + id + data + image + label + emoji + type + wallet_id + creator { + id + label + image + } + ...AtomValue +} + ` +export const PositionAggregateFieldsFragmentDoc = ` + fragment PositionAggregateFields on positions_aggregate { + aggregate { + count + sum { + shares + } + } +} + ` +export const PositionFieldsFragmentDoc = ` + fragment PositionFields on positions { + account { + id + label + } + shares + vault { + id + total_shares + current_share_price + } +} + ` +export const TripleMetadataFragmentDoc = ` + fragment TripleMetadata on triples { + id + subject_id + predicate_id + object_id + subject { + data + id + image + label + emoji + type + ...AtomValue + creator { + ...AccountMetadata } } - events(limit: $limit, offset: $offset, order_by: $orderBy, where: $where) { + predicate { + data id - blockNumber - blockTimestamp + image + label + emoji type - transactionHash - atomId - tripleId - depositId - redemptionId - atom { - ...AtomMetadata - vault { - totalShares - positionCount - positions(where: {account: {id: {_in: $addresses}}}) { - accountId - shares - account { - id - label - image - } + ...AtomValue + creator { + ...AccountMetadata + } + } + object { + data + id + image + label + emoji + type + ...AtomValue + creator { + ...AccountMetadata + } + } + vault { + total_shares + current_share_price + allPositions: positions_aggregate { + ...PositionAggregateFields + } + positions { + ...PositionFields + } + } + counter_vault { + total_shares + current_share_price + allPositions: positions_aggregate { + ...PositionAggregateFields + } + positions { + ...PositionFields + } + } +} + ` +export const EventDetailsFragmentDoc = ` + fragment EventDetails on events { + block_number + block_timestamp + type + transaction_hash + atom_id + triple_id + deposit_id + redemption_id + ...DepositEventFragment + ...RedemptionEventFragment + atom { + ...AtomMetadata + vault { + total_shares + position_count + positions { + account_id + shares + account { + id + label + image } } } - triple { - id - label - creator { - ...AccountMetadata - } - subject { - data - id - image - label - emoji - type - ...AtomValue - creator { - ...AccountMetadata + } + triple { + ...TripleMetadata + vault { + total_shares + position_count + positions { + account_id + shares + account { + id + label + image } } - predicate { - data - id - image - label - emoji - type - ...AtomValue - creator { - ...AccountMetadata + } + counter_vault { + total_shares + position_count + positions { + account_id + shares + account { + id + label + image } } - object { - data - id - image - label - emoji - type - ...AtomValue - creator { - ...AccountMetadata + } + } +} + ` +export const FollowMetadataFragmentDoc = ` + fragment FollowMetadata on triples { + id + subject { + id + label + } + predicate { + id + label + } + object { + id + label + } + vault { + id + total_shares + current_share_price + positions_aggregate(where: $positionsWhere) { + aggregate { + count + sum { + shares } } + } + positions( + limit: $positionsLimit + offset: $positionsOffset + order_by: $positionsOrderBy + where: $positionsWhere + ) { + account { + id + label + } + shares + } + } +} + ` +export const FollowAggregateFragmentDoc = ` + fragment FollowAggregate on triples_aggregate { + aggregate { + count + } +} + ` +export const StatDetailsFragmentDoc = ` + fragment StatDetails on stats { + contract_balance + total_accounts + total_fees + total_atoms + total_triples + total_positions + total_signals +} + ` +export const TripleTxnFragmentDoc = ` + fragment TripleTxn on triples { + block_number + block_timestamp + transaction_hash + creator_id +} + ` +export const PositionDetailsFragmentDoc = ` + fragment PositionDetails on positions { + id + account { + id + label + image + } + vault { + id + atom { + id + label + image + } + triple { + id vault { - totalShares - positionCount - positions(where: {account: {id: {_in: $addresses}}}) { - accountId - shares - account { - id - label - image + id + position_count + positions_aggregate { + aggregate { + sum { + shares + } } } } - counterVault { - totalShares - positionCount - positions(where: {account: {id: {_in: $addresses}}}) { - accountId - shares - account { - id - label - image + counter_vault { + id + position_count + positions_aggregate { + aggregate { + sum { + shares + } } } } - } - deposit { - senderId - sender { + subject { + data id + label + image + emoji + type + ...AtomValue + creator { + ...AccountMetadata + } } - sharesForReceiver - senderAssetsAfterTotalFees - vault { - totalShares - positionCount - positions(where: {account: {id: {_in: $addresses}}}) { - accountId - shares - account { - id - label - image - } + predicate { + data + id + label + image + emoji + type + ...AtomValue + creator { + ...AccountMetadata } } - } - redemption { - senderId - sender { + object { + data id + label + image + emoji + type + ...AtomValue + creator { + ...AccountMetadata + } } } } + shares + vault_id } - ${AtomMetadataFragmentDoc} -${AtomValueFragmentDoc} -${AccountMetadataFragmentDoc}` - -export const useGetEventsQuery = ( - variables?: GetEventsQueryVariables, - options?: Omit, 'queryKey'> & { - queryKey?: UseQueryOptions['queryKey'] - }, -) => { - return useQuery({ - queryKey: - variables === undefined ? ['GetEvents'] : ['GetEvents', variables], - queryFn: fetcher( - GetEventsDocument, - variables, - ), - ...options, - }) -} - -useGetEventsQuery.document = GetEventsDocument - -useGetEventsQuery.getKey = (variables?: GetEventsQueryVariables) => - variables === undefined ? ['GetEvents'] : ['GetEvents', variables] - -export const useInfiniteGetEventsQuery = < - TData = InfiniteData, - TError = unknown, ->( - variables: GetEventsQueryVariables, - options: Omit< - UseInfiniteQueryOptions, - 'queryKey' - > & { - queryKey?: UseInfiniteQueryOptions< - GetEventsQuery, - TError, - TData - >['queryKey'] - }, -) => { - return useInfiniteQuery( - (() => { - const { queryKey: optionsQueryKey, ...restOptions } = options - return { - queryKey: - optionsQueryKey ?? variables === undefined - ? ['GetEvents.infinite'] - : ['GetEvents.infinite', variables], - queryFn: (metaData) => - fetcher(GetEventsDocument, { - ...variables, - ...(metaData.pageParam ?? {}), - })(), - ...restOptions, - } - })(), - ) + ` +export const TripleVaultDetailsFragmentDoc = ` + fragment TripleVaultDetails on triples { + vault_id + counter_vault_id + vault { + positions { + ...PositionDetails + } + } + counter_vault { + positions { + ...PositionDetails + } + } } - -useInfiniteGetEventsQuery.getKey = (variables?: GetEventsQueryVariables) => - variables === undefined - ? ['GetEvents.infinite'] - : ['GetEvents.infinite', variables] - -useGetEventsQuery.fetcher = ( - variables?: GetEventsQueryVariables, - options?: RequestInit['headers'], -) => - fetcher( - GetEventsDocument, - variables, - options, - ) - -export const GetEventsWithAggregatesDocument = ` - query GetEventsWithAggregates($limit: Int, $offset: Int, $orderBy: [events_order_by!], $where: events_bool_exp, $addresses: [String!]) { - events_aggregate( - where: $where - limit: $limit - offset: $offset - order_by: $orderBy - ) { - aggregate { - count - max { - blockTimestamp - blockNumber - } - min { - blockTimestamp - blockNumber - } + ` +export const VaultBasicDetailsFragmentDoc = ` + fragment VaultBasicDetails on vaults { + id + atom { + id + label + } + triple { + id + subject { + id + label } - nodes { - ...EventDetails + predicate { + id + label + } + object { + id + label } } + current_share_price + total_shares } - ${EventDetailsFragmentDoc} -${DepositEventFragmentFragmentDoc} -${RedemptionEventFragmentFragmentDoc} -${AtomMetadataFragmentDoc} -${AtomValueFragmentDoc} -${TripleMetadataFragmentDoc} -${AccountMetadataFragmentDoc} -${PositionAggregateFieldsFragmentDoc} -${PositionFieldsFragmentDoc}` - -export const useGetEventsWithAggregatesQuery = < - TData = GetEventsWithAggregatesQuery, - TError = unknown, ->( - variables?: GetEventsWithAggregatesQueryVariables, - options?: Omit< - UseQueryOptions, - 'queryKey' - > & { - queryKey?: UseQueryOptions< - GetEventsWithAggregatesQuery, - TError, - TData - >['queryKey'] - }, -) => { - return useQuery({ - queryKey: - variables === undefined - ? ['GetEventsWithAggregates'] - : ['GetEventsWithAggregates', variables], - queryFn: fetcher< - GetEventsWithAggregatesQuery, - GetEventsWithAggregatesQueryVariables - >(GetEventsWithAggregatesDocument, variables), - ...options, - }) + ` +export const VaultFilteredPositionsFragmentDoc = ` + fragment VaultFilteredPositions on vaults { + positions(where: {account_id: {_in: $addresses}}) { + ...PositionFields + } } - -useGetEventsWithAggregatesQuery.document = GetEventsWithAggregatesDocument - -useGetEventsWithAggregatesQuery.getKey = ( - variables?: GetEventsWithAggregatesQueryVariables, -) => - variables === undefined - ? ['GetEventsWithAggregates'] - : ['GetEventsWithAggregates', variables] - -export const useInfiniteGetEventsWithAggregatesQuery = < - TData = InfiniteData, - TError = unknown, ->( - variables: GetEventsWithAggregatesQueryVariables, - options: Omit< - UseInfiniteQueryOptions, - 'queryKey' - > & { - queryKey?: UseInfiniteQueryOptions< - GetEventsWithAggregatesQuery, - TError, - TData - >['queryKey'] - }, -) => { - return useInfiniteQuery( - (() => { - const { queryKey: optionsQueryKey, ...restOptions } = options - return { - queryKey: - optionsQueryKey ?? variables === undefined - ? ['GetEventsWithAggregates.infinite'] - : ['GetEventsWithAggregates.infinite', variables], - queryFn: (metaData) => - fetcher< - GetEventsWithAggregatesQuery, - GetEventsWithAggregatesQueryVariables - >(GetEventsWithAggregatesDocument, { - ...variables, - ...(metaData.pageParam ?? {}), - })(), - ...restOptions, - } - })(), - ) + ` +export const VaultDetailsWithFilteredPositionsFragmentDoc = ` + fragment VaultDetailsWithFilteredPositions on vaults { + ...VaultBasicDetails + ...VaultFilteredPositions } - -useInfiniteGetEventsWithAggregatesQuery.getKey = ( - variables?: GetEventsWithAggregatesQueryVariables, -) => - variables === undefined - ? ['GetEventsWithAggregates.infinite'] - : ['GetEventsWithAggregates.infinite', variables] - -useGetEventsWithAggregatesQuery.fetcher = ( - variables?: GetEventsWithAggregatesQueryVariables, - options?: RequestInit['headers'], -) => - fetcher( - GetEventsWithAggregatesDocument, - variables, - options, - ) - -export const GetEventsCountDocument = ` - query GetEventsCount($where: events_bool_exp) { - events_aggregate(where: $where) { - aggregate { - count - } + ` +export const TripleVaultCouterVaultDetailsWithPositionsFragmentDoc = ` + fragment TripleVaultCouterVaultDetailsWithPositions on triples { + vault_id + counter_vault_id + vault { + ...VaultDetailsWithFilteredPositions + } + counter_vault { + ...VaultDetailsWithFilteredPositions + } +} + ` +export const VaultUnfilteredPositionsFragmentDoc = ` + fragment VaultUnfilteredPositions on vaults { + positions { + ...PositionFields + } +} + ` +export const VaultDetailsFragmentDoc = ` + fragment VaultDetails on vaults { + ...VaultBasicDetails +} + ` +export const VaultPositionsAggregateFragmentDoc = ` + fragment VaultPositionsAggregate on vaults { + positions_aggregate { + ...PositionAggregateFields } } ` +export const VaultFieldsForTripleFragmentDoc = ` + fragment VaultFieldsForTriple on vaults { + total_shares + current_share_price + ...VaultPositionsAggregate + ...VaultFilteredPositions +} + ` +export const GetAccountsDocument = ` + query GetAccounts($limit: Int, $offset: Int, $orderBy: [accounts_order_by!], $where: accounts_bool_exp, $claimsLimit: Int, $claimsOffset: Int, $claimsWhere: claims_bool_exp, $positionsLimit: Int, $positionsOffset: Int, $positionsWhere: positions_bool_exp) { + accounts(limit: $limit, offset: $offset, order_by: $orderBy, where: $where) { + ...AccountMetadata + ...AccountClaims + ...AccountPositions + atom { + vault_id + wallet_id + vault { + position_count + total_shares + positions_aggregate { + aggregate { + count + sum { + shares + } + } + } + positions { + id + account { + label + id + } + shares + } + } + } + } +} + ${AccountMetadataFragmentDoc} +${AccountClaimsFragmentDoc} +${AccountPositionsFragmentDoc}` -export const useGetEventsCountQuery = < - TData = GetEventsCountQuery, - TError = unknown, ->( - variables?: GetEventsCountQueryVariables, +export const useGetAccountsQuery = ( + variables?: GetAccountsQueryVariables, options?: Omit< - UseQueryOptions, + UseQueryOptions, 'queryKey' > & { - queryKey?: UseQueryOptions['queryKey'] + queryKey?: UseQueryOptions['queryKey'] }, ) => { - return useQuery({ + return useQuery({ queryKey: - variables === undefined - ? ['GetEventsCount'] - : ['GetEventsCount', variables], - queryFn: fetcher( - GetEventsCountDocument, + variables === undefined ? ['GetAccounts'] : ['GetAccounts', variables], + queryFn: fetcher( + GetAccountsDocument, variables, ), ...options, }) } -useGetEventsCountQuery.document = GetEventsCountDocument +useGetAccountsQuery.document = GetAccountsDocument -useGetEventsCountQuery.getKey = (variables?: GetEventsCountQueryVariables) => - variables === undefined ? ['GetEventsCount'] : ['GetEventsCount', variables] +useGetAccountsQuery.getKey = (variables?: GetAccountsQueryVariables) => + variables === undefined ? ['GetAccounts'] : ['GetAccounts', variables] -export const useInfiniteGetEventsCountQuery = < - TData = InfiniteData, +export const useInfiniteGetAccountsQuery = < + TData = InfiniteData, TError = unknown, >( - variables: GetEventsCountQueryVariables, + variables: GetAccountsQueryVariables, options: Omit< - UseInfiniteQueryOptions, + UseInfiniteQueryOptions, 'queryKey' > & { queryKey?: UseInfiniteQueryOptions< - GetEventsCountQuery, + GetAccountsQuery, TError, TData >['queryKey'] }, ) => { - return useInfiniteQuery( + return useInfiniteQuery( (() => { const { queryKey: optionsQueryKey, ...restOptions } = options return { queryKey: optionsQueryKey ?? variables === undefined - ? ['GetEventsCount.infinite'] - : ['GetEventsCount.infinite', variables], + ? ['GetAccounts.infinite'] + : ['GetAccounts.infinite', variables], queryFn: (metaData) => - fetcher( - GetEventsCountDocument, + fetcher( + GetAccountsDocument, { ...variables, ...(metaData.pageParam ?? {}) }, )(), ...restOptions, @@ -13715,199 +15528,206 @@ export const useInfiniteGetEventsCountQuery = < ) } -useInfiniteGetEventsCountQuery.getKey = ( - variables?: GetEventsCountQueryVariables, -) => +useInfiniteGetAccountsQuery.getKey = (variables?: GetAccountsQueryVariables) => variables === undefined - ? ['GetEventsCount.infinite'] - : ['GetEventsCount.infinite', variables] + ? ['GetAccounts.infinite'] + : ['GetAccounts.infinite', variables] -useGetEventsCountQuery.fetcher = ( - variables?: GetEventsCountQueryVariables, +useGetAccountsQuery.fetcher = ( + variables?: GetAccountsQueryVariables, options?: RequestInit['headers'], ) => - fetcher( - GetEventsCountDocument, + fetcher( + GetAccountsDocument, variables, options, ) -export const GetEventsDataDocument = ` - query GetEventsData($where: events_bool_exp) { - events_aggregate(where: $where) { +export const GetAccountsWithAggregatesDocument = ` + query GetAccountsWithAggregates($limit: Int, $offset: Int, $orderBy: [accounts_order_by!], $where: accounts_bool_exp, $claimsLimit: Int, $claimsOffset: Int, $claimsWhere: claims_bool_exp, $positionsLimit: Int, $positionsOffset: Int, $positionsWhere: positions_bool_exp, $atomsWhere: atoms_bool_exp, $atomsOrderBy: [atoms_order_by!], $atomsLimit: Int, $atomsOffset: Int) { + accounts_aggregate( + limit: $limit + offset: $offset + order_by: $orderBy + where: $where + ) { aggregate { count - max { - blockTimestamp - blockNumber - } - min { - blockTimestamp - blockNumber - } - avg { - blockNumber - } + } + nodes { + ...AccountMetadata + ...AccountClaims + ...AccountPositions } } } - ` + ${AccountMetadataFragmentDoc} +${AccountClaimsFragmentDoc} +${AccountPositionsFragmentDoc}` -export const useGetEventsDataQuery = < - TData = GetEventsDataQuery, +export const useGetAccountsWithAggregatesQuery = < + TData = GetAccountsWithAggregatesQuery, TError = unknown, >( - variables?: GetEventsDataQueryVariables, + variables?: GetAccountsWithAggregatesQueryVariables, options?: Omit< - UseQueryOptions, + UseQueryOptions, 'queryKey' > & { - queryKey?: UseQueryOptions['queryKey'] + queryKey?: UseQueryOptions< + GetAccountsWithAggregatesQuery, + TError, + TData + >['queryKey'] }, ) => { - return useQuery({ + return useQuery({ queryKey: variables === undefined - ? ['GetEventsData'] - : ['GetEventsData', variables], - queryFn: fetcher( - GetEventsDataDocument, - variables, - ), + ? ['GetAccountsWithAggregates'] + : ['GetAccountsWithAggregates', variables], + queryFn: fetcher< + GetAccountsWithAggregatesQuery, + GetAccountsWithAggregatesQueryVariables + >(GetAccountsWithAggregatesDocument, variables), ...options, }) } -useGetEventsDataQuery.document = GetEventsDataDocument +useGetAccountsWithAggregatesQuery.document = GetAccountsWithAggregatesDocument -useGetEventsDataQuery.getKey = (variables?: GetEventsDataQueryVariables) => - variables === undefined ? ['GetEventsData'] : ['GetEventsData', variables] +useGetAccountsWithAggregatesQuery.getKey = ( + variables?: GetAccountsWithAggregatesQueryVariables, +) => + variables === undefined + ? ['GetAccountsWithAggregates'] + : ['GetAccountsWithAggregates', variables] -export const useInfiniteGetEventsDataQuery = < - TData = InfiniteData, +export const useInfiniteGetAccountsWithAggregatesQuery = < + TData = InfiniteData, TError = unknown, >( - variables: GetEventsDataQueryVariables, + variables: GetAccountsWithAggregatesQueryVariables, options: Omit< - UseInfiniteQueryOptions, + UseInfiniteQueryOptions, 'queryKey' > & { queryKey?: UseInfiniteQueryOptions< - GetEventsDataQuery, + GetAccountsWithAggregatesQuery, TError, TData >['queryKey'] }, ) => { - return useInfiniteQuery( + return useInfiniteQuery( (() => { const { queryKey: optionsQueryKey, ...restOptions } = options return { queryKey: optionsQueryKey ?? variables === undefined - ? ['GetEventsData.infinite'] - : ['GetEventsData.infinite', variables], + ? ['GetAccountsWithAggregates.infinite'] + : ['GetAccountsWithAggregates.infinite', variables], queryFn: (metaData) => - fetcher( - GetEventsDataDocument, - { ...variables, ...(metaData.pageParam ?? {}) }, - )(), + fetcher< + GetAccountsWithAggregatesQuery, + GetAccountsWithAggregatesQueryVariables + >(GetAccountsWithAggregatesDocument, { + ...variables, + ...(metaData.pageParam ?? {}), + })(), ...restOptions, } })(), ) } -useInfiniteGetEventsDataQuery.getKey = ( - variables?: GetEventsDataQueryVariables, +useInfiniteGetAccountsWithAggregatesQuery.getKey = ( + variables?: GetAccountsWithAggregatesQueryVariables, ) => variables === undefined - ? ['GetEventsData.infinite'] - : ['GetEventsData.infinite', variables] + ? ['GetAccountsWithAggregates.infinite'] + : ['GetAccountsWithAggregates.infinite', variables] -useGetEventsDataQuery.fetcher = ( - variables?: GetEventsDataQueryVariables, +useGetAccountsWithAggregatesQuery.fetcher = ( + variables?: GetAccountsWithAggregatesQueryVariables, options?: RequestInit['headers'], ) => - fetcher( - GetEventsDataDocument, - variables, - options, - ) + fetcher< + GetAccountsWithAggregatesQuery, + GetAccountsWithAggregatesQueryVariables + >(GetAccountsWithAggregatesDocument, variables, options) -export const GetDebugEventsDocument = ` - query GetDebugEvents($addresses: [String!]) { - debug_events: events { - id - atom { - vault { - positions(where: {accountId: {_in: $addresses}}) { - accountId - shares - } - } +export const GetAccountsCountDocument = ` + query GetAccountsCount($where: accounts_bool_exp) { + accounts_aggregate(where: $where) { + aggregate { + count } } } ` -export const useGetDebugEventsQuery = < - TData = GetDebugEventsQuery, +export const useGetAccountsCountQuery = < + TData = GetAccountsCountQuery, TError = unknown, >( - variables?: GetDebugEventsQueryVariables, + variables?: GetAccountsCountQueryVariables, options?: Omit< - UseQueryOptions, + UseQueryOptions, 'queryKey' > & { - queryKey?: UseQueryOptions['queryKey'] + queryKey?: UseQueryOptions['queryKey'] }, ) => { - return useQuery({ + return useQuery({ queryKey: variables === undefined - ? ['GetDebugEvents'] - : ['GetDebugEvents', variables], - queryFn: fetcher( - GetDebugEventsDocument, + ? ['GetAccountsCount'] + : ['GetAccountsCount', variables], + queryFn: fetcher( + GetAccountsCountDocument, variables, ), ...options, }) } -useGetDebugEventsQuery.document = GetDebugEventsDocument +useGetAccountsCountQuery.document = GetAccountsCountDocument -useGetDebugEventsQuery.getKey = (variables?: GetDebugEventsQueryVariables) => - variables === undefined ? ['GetDebugEvents'] : ['GetDebugEvents', variables] +useGetAccountsCountQuery.getKey = ( + variables?: GetAccountsCountQueryVariables, +) => + variables === undefined + ? ['GetAccountsCount'] + : ['GetAccountsCount', variables] -export const useInfiniteGetDebugEventsQuery = < - TData = InfiniteData, +export const useInfiniteGetAccountsCountQuery = < + TData = InfiniteData, TError = unknown, >( - variables: GetDebugEventsQueryVariables, + variables: GetAccountsCountQueryVariables, options: Omit< - UseInfiniteQueryOptions, + UseInfiniteQueryOptions, 'queryKey' > & { queryKey?: UseInfiniteQueryOptions< - GetDebugEventsQuery, + GetAccountsCountQuery, TError, TData >['queryKey'] }, ) => { - return useInfiniteQuery( + return useInfiniteQuery( (() => { const { queryKey: optionsQueryKey, ...restOptions } = options return { queryKey: optionsQueryKey ?? variables === undefined - ? ['GetDebugEvents.infinite'] - : ['GetDebugEvents.infinite', variables], + ? ['GetAccountsCount.infinite'] + : ['GetAccountsCount.infinite', variables], queryFn: (metaData) => - fetcher( - GetDebugEventsDocument, + fetcher( + GetAccountsCountDocument, { ...variables, ...(metaData.pageParam ?? {}) }, )(), ...restOptions, @@ -13916,97 +15736,99 @@ export const useInfiniteGetDebugEventsQuery = < ) } -useInfiniteGetDebugEventsQuery.getKey = ( - variables?: GetDebugEventsQueryVariables, +useInfiniteGetAccountsCountQuery.getKey = ( + variables?: GetAccountsCountQueryVariables, ) => variables === undefined - ? ['GetDebugEvents.infinite'] - : ['GetDebugEvents.infinite', variables] + ? ['GetAccountsCount.infinite'] + : ['GetAccountsCount.infinite', variables] -useGetDebugEventsQuery.fetcher = ( - variables?: GetDebugEventsQueryVariables, +useGetAccountsCountQuery.fetcher = ( + variables?: GetAccountsCountQueryVariables, options?: RequestInit['headers'], ) => - fetcher( - GetDebugEventsDocument, + fetcher( + GetAccountsCountDocument, variables, options, ) -export const GetListItemsDocument = ` - query GetListItems($predicateId: numeric, $objectId: numeric) { - triples_aggregate( - where: {predicateId: {_eq: predicateId}, objectId: {_eq: $objectId}} - order_by: [{vault: {positionCount: desc}, counterVault: {positionCount: desc}}] - ) { - aggregate { - count +export const GetAccountDocument = ` + query GetAccount($address: String!, $claimsLimit: Int, $claimsOffset: Int, $claimsWhere: claims_bool_exp, $positionsLimit: Int, $positionsOffset: Int, $positionsWhere: positions_bool_exp, $atomsWhere: atoms_bool_exp, $atomsOrderBy: [atoms_order_by!], $atomsLimit: Int, $atomsOffset: Int, $triplesWhere: triples_bool_exp, $triplesOrderBy: [triples_order_by!], $triplesLimit: Int, $triplesOffset: Int) { + account(id: $address) { + ...AccountMetadata + atom { + ...AtomMetadata + ...AtomVaultDetails } + ...AccountClaims + ...AccountPositions + ...AccountAtoms + ...AccountTriples } - triples( - where: {predicateId: {_eq: predicateId}, objectId: {_eq: $objectId}} - order_by: [{vault: {positionCount: desc}, counterVault: {positionCount: desc}}] - ) { - ...TripleVaultDetails + chainlink_prices(limit: 1, order_by: {id: desc}) { + usd } } - ${TripleVaultDetailsFragmentDoc}` + ${AccountMetadataFragmentDoc} +${AtomMetadataFragmentDoc} +${AtomValueFragmentDoc} +${AtomVaultDetailsFragmentDoc} +${AccountClaimsFragmentDoc} +${AccountPositionsFragmentDoc} +${AccountAtomsFragmentDoc} +${AccountTriplesFragmentDoc}` -export const useGetListItemsQuery = < - TData = GetListItemsQuery, - TError = unknown, ->( - variables?: GetListItemsQueryVariables, +export const useGetAccountQuery = ( + variables: GetAccountQueryVariables, options?: Omit< - UseQueryOptions, + UseQueryOptions, 'queryKey' > & { - queryKey?: UseQueryOptions['queryKey'] + queryKey?: UseQueryOptions['queryKey'] }, ) => { - return useQuery({ - queryKey: - variables === undefined ? ['GetListItems'] : ['GetListItems', variables], - queryFn: fetcher( - GetListItemsDocument, + return useQuery({ + queryKey: ['GetAccount', variables], + queryFn: fetcher( + GetAccountDocument, variables, ), ...options, }) } -useGetListItemsQuery.document = GetListItemsDocument +useGetAccountQuery.document = GetAccountDocument -useGetListItemsQuery.getKey = (variables?: GetListItemsQueryVariables) => - variables === undefined ? ['GetListItems'] : ['GetListItems', variables] +useGetAccountQuery.getKey = (variables: GetAccountQueryVariables) => [ + 'GetAccount', + variables, +] -export const useInfiniteGetListItemsQuery = < - TData = InfiniteData, +export const useInfiniteGetAccountQuery = < + TData = InfiniteData, TError = unknown, >( - variables: GetListItemsQueryVariables, + variables: GetAccountQueryVariables, options: Omit< - UseInfiniteQueryOptions, + UseInfiniteQueryOptions, 'queryKey' > & { queryKey?: UseInfiniteQueryOptions< - GetListItemsQuery, + GetAccountQuery, TError, TData >['queryKey'] }, ) => { - return useInfiniteQuery( + return useInfiniteQuery( (() => { const { queryKey: optionsQueryKey, ...restOptions } = options return { - queryKey: - optionsQueryKey ?? variables === undefined - ? ['GetListItems.infinite'] - : ['GetListItems.infinite', variables], + queryKey: optionsQueryKey ?? ['GetAccount.infinite', variables], queryFn: (metaData) => - fetcher( - GetListItemsDocument, + fetcher( + GetAccountDocument, { ...variables, ...(metaData.pageParam ?? {}) }, )(), ...restOptions, @@ -14015,223 +15837,202 @@ export const useInfiniteGetListItemsQuery = < ) } -useInfiniteGetListItemsQuery.getKey = ( - variables?: GetListItemsQueryVariables, -) => - variables === undefined - ? ['GetListItems.infinite'] - : ['GetListItems.infinite', variables] +useInfiniteGetAccountQuery.getKey = (variables: GetAccountQueryVariables) => [ + 'GetAccount.infinite', + variables, +] -useGetListItemsQuery.fetcher = ( - variables?: GetListItemsQueryVariables, +useGetAccountQuery.fetcher = ( + variables: GetAccountQueryVariables, options?: RequestInit['headers'], ) => - fetcher( - GetListItemsDocument, + fetcher( + GetAccountDocument, variables, options, ) -export const GetPositionsDocument = ` - query GetPositions($limit: Int, $offset: Int, $orderBy: [positions_order_by!], $where: positions_bool_exp) { - total: positions_aggregate(where: $where) { - aggregate { - count - sum { - shares - } - } - } - positions(limit: $limit, offset: $offset, order_by: $orderBy, where: $where) { - ...PositionDetails +export const GetAccountWithPaginatedRelationsDocument = ` + query GetAccountWithPaginatedRelations($address: String!, $claimsLimit: Int, $claimsOffset: Int, $claimsWhere: claims_bool_exp, $positionsLimit: Int, $positionsOffset: Int, $positionsWhere: positions_bool_exp, $atomsLimit: Int, $atomsOffset: Int, $atomsWhere: atoms_bool_exp, $atomsOrderBy: [atoms_order_by!], $triplesLimit: Int, $triplesOffset: Int, $triplesWhere: triples_bool_exp, $triplesOrderBy: [triples_order_by!]) { + account(id: $address) { + ...AccountMetadata + ...AccountClaims + ...AccountPositions + ...AccountAtoms + ...AccountTriples } } - ${PositionDetailsFragmentDoc}` + ${AccountMetadataFragmentDoc} +${AccountClaimsFragmentDoc} +${AccountPositionsFragmentDoc} +${AccountAtomsFragmentDoc} +${AccountTriplesFragmentDoc}` -export const useGetPositionsQuery = < - TData = GetPositionsQuery, +export const useGetAccountWithPaginatedRelationsQuery = < + TData = GetAccountWithPaginatedRelationsQuery, TError = unknown, >( - variables?: GetPositionsQueryVariables, + variables: GetAccountWithPaginatedRelationsQueryVariables, options?: Omit< - UseQueryOptions, + UseQueryOptions, 'queryKey' > & { - queryKey?: UseQueryOptions['queryKey'] + queryKey?: UseQueryOptions< + GetAccountWithPaginatedRelationsQuery, + TError, + TData + >['queryKey'] }, ) => { - return useQuery({ - queryKey: - variables === undefined ? ['GetPositions'] : ['GetPositions', variables], - queryFn: fetcher( - GetPositionsDocument, - variables, - ), + return useQuery({ + queryKey: ['GetAccountWithPaginatedRelations', variables], + queryFn: fetcher< + GetAccountWithPaginatedRelationsQuery, + GetAccountWithPaginatedRelationsQueryVariables + >(GetAccountWithPaginatedRelationsDocument, variables), ...options, }) } -useGetPositionsQuery.document = GetPositionsDocument +useGetAccountWithPaginatedRelationsQuery.document = + GetAccountWithPaginatedRelationsDocument -useGetPositionsQuery.getKey = (variables?: GetPositionsQueryVariables) => - variables === undefined ? ['GetPositions'] : ['GetPositions', variables] +useGetAccountWithPaginatedRelationsQuery.getKey = ( + variables: GetAccountWithPaginatedRelationsQueryVariables, +) => ['GetAccountWithPaginatedRelations', variables] -export const useInfiniteGetPositionsQuery = < - TData = InfiniteData, +export const useInfiniteGetAccountWithPaginatedRelationsQuery = < + TData = InfiniteData, TError = unknown, >( - variables: GetPositionsQueryVariables, + variables: GetAccountWithPaginatedRelationsQueryVariables, options: Omit< - UseInfiniteQueryOptions, + UseInfiniteQueryOptions< + GetAccountWithPaginatedRelationsQuery, + TError, + TData + >, 'queryKey' > & { queryKey?: UseInfiniteQueryOptions< - GetPositionsQuery, + GetAccountWithPaginatedRelationsQuery, TError, TData >['queryKey'] }, ) => { - return useInfiniteQuery( + return useInfiniteQuery( (() => { const { queryKey: optionsQueryKey, ...restOptions } = options return { - queryKey: - optionsQueryKey ?? variables === undefined - ? ['GetPositions.infinite'] - : ['GetPositions.infinite', variables], + queryKey: optionsQueryKey ?? [ + 'GetAccountWithPaginatedRelations.infinite', + variables, + ], queryFn: (metaData) => - fetcher( - GetPositionsDocument, - { ...variables, ...(metaData.pageParam ?? {}) }, - )(), + fetcher< + GetAccountWithPaginatedRelationsQuery, + GetAccountWithPaginatedRelationsQueryVariables + >(GetAccountWithPaginatedRelationsDocument, { + ...variables, + ...(metaData.pageParam ?? {}), + })(), ...restOptions, } })(), ) } -useInfiniteGetPositionsQuery.getKey = ( - variables?: GetPositionsQueryVariables, -) => - variables === undefined - ? ['GetPositions.infinite'] - : ['GetPositions.infinite', variables] +useInfiniteGetAccountWithPaginatedRelationsQuery.getKey = ( + variables: GetAccountWithPaginatedRelationsQueryVariables, +) => ['GetAccountWithPaginatedRelations.infinite', variables] -useGetPositionsQuery.fetcher = ( - variables?: GetPositionsQueryVariables, +useGetAccountWithPaginatedRelationsQuery.fetcher = ( + variables: GetAccountWithPaginatedRelationsQueryVariables, options?: RequestInit['headers'], ) => - fetcher( - GetPositionsDocument, - variables, - options, - ) + fetcher< + GetAccountWithPaginatedRelationsQuery, + GetAccountWithPaginatedRelationsQueryVariables + >(GetAccountWithPaginatedRelationsDocument, variables, options) -export const GetTriplePositionsByAddressDocument = ` - query GetTriplePositionsByAddress($limit: Int, $offset: Int, $orderBy: [positions_order_by!], $where: positions_bool_exp, $address: String!) { - total: positions_aggregate(where: $where) { - aggregate { - count - sum { - shares - } - } - } - positions(limit: $limit, offset: $offset, order_by: $orderBy, where: $where) { - ...PositionDetails - vault { - atomId - tripleId - triple { - vault { - positions(where: {accountId: {_eq: $address}}) { - account { - id - label - image - } - shares - } - } - counterVault { - positions(where: {accountId: {_eq: $address}}) { - account { - id - label - image - } - shares - } - } - } - } +export const GetAccountWithAggregatesDocument = ` + query GetAccountWithAggregates($address: String!, $claimsLimit: Int, $claimsOffset: Int, $claimsWhere: claims_bool_exp, $positionsLimit: Int, $positionsOffset: Int, $positionsWhere: positions_bool_exp, $atomsWhere: atoms_bool_exp, $atomsOrderBy: [atoms_order_by!], $atomsLimit: Int, $atomsOffset: Int, $triplesWhere: triples_bool_exp, $triplesOrderBy: [triples_order_by!], $triplesLimit: Int, $triplesOffset: Int) { + account(id: $address) { + ...AccountMetadata + ...AccountClaimsAggregate + ...AccountPositionsAggregate + ...AccountAtomsAggregate + ...AccountTriplesAggregate } } - ${PositionDetailsFragmentDoc}` + ${AccountMetadataFragmentDoc} +${AccountClaimsAggregateFragmentDoc} +${AccountPositionsAggregateFragmentDoc} +${AccountAtomsAggregateFragmentDoc} +${AccountTriplesAggregateFragmentDoc}` -export const useGetTriplePositionsByAddressQuery = < - TData = GetTriplePositionsByAddressQuery, +export const useGetAccountWithAggregatesQuery = < + TData = GetAccountWithAggregatesQuery, TError = unknown, >( - variables: GetTriplePositionsByAddressQueryVariables, + variables: GetAccountWithAggregatesQueryVariables, options?: Omit< - UseQueryOptions, + UseQueryOptions, 'queryKey' > & { queryKey?: UseQueryOptions< - GetTriplePositionsByAddressQuery, + GetAccountWithAggregatesQuery, TError, TData >['queryKey'] }, ) => { - return useQuery({ - queryKey: ['GetTriplePositionsByAddress', variables], + return useQuery({ + queryKey: ['GetAccountWithAggregates', variables], queryFn: fetcher< - GetTriplePositionsByAddressQuery, - GetTriplePositionsByAddressQueryVariables - >(GetTriplePositionsByAddressDocument, variables), + GetAccountWithAggregatesQuery, + GetAccountWithAggregatesQueryVariables + >(GetAccountWithAggregatesDocument, variables), ...options, }) } -useGetTriplePositionsByAddressQuery.document = - GetTriplePositionsByAddressDocument +useGetAccountWithAggregatesQuery.document = GetAccountWithAggregatesDocument -useGetTriplePositionsByAddressQuery.getKey = ( - variables: GetTriplePositionsByAddressQueryVariables, -) => ['GetTriplePositionsByAddress', variables] +useGetAccountWithAggregatesQuery.getKey = ( + variables: GetAccountWithAggregatesQueryVariables, +) => ['GetAccountWithAggregates', variables] -export const useInfiniteGetTriplePositionsByAddressQuery = < - TData = InfiniteData, +export const useInfiniteGetAccountWithAggregatesQuery = < + TData = InfiniteData, TError = unknown, >( - variables: GetTriplePositionsByAddressQueryVariables, + variables: GetAccountWithAggregatesQueryVariables, options: Omit< - UseInfiniteQueryOptions, + UseInfiniteQueryOptions, 'queryKey' > & { queryKey?: UseInfiniteQueryOptions< - GetTriplePositionsByAddressQuery, + GetAccountWithAggregatesQuery, TError, TData >['queryKey'] }, ) => { - return useInfiniteQuery( + return useInfiniteQuery( (() => { const { queryKey: optionsQueryKey, ...restOptions } = options return { queryKey: optionsQueryKey ?? [ - 'GetTriplePositionsByAddress.infinite', + 'GetAccountWithAggregates.infinite', variables, ], queryFn: (metaData) => fetcher< - GetTriplePositionsByAddressQuery, - GetTriplePositionsByAddressQueryVariables - >(GetTriplePositionsByAddressDocument, { + GetAccountWithAggregatesQuery, + GetAccountWithAggregatesQueryVariables + >(GetAccountWithAggregatesDocument, { ...variables, ...(metaData.pageParam ?? {}), })(), @@ -14241,104 +16042,86 @@ export const useInfiniteGetTriplePositionsByAddressQuery = < ) } -useInfiniteGetTriplePositionsByAddressQuery.getKey = ( - variables: GetTriplePositionsByAddressQueryVariables, -) => ['GetTriplePositionsByAddress.infinite', variables] +useInfiniteGetAccountWithAggregatesQuery.getKey = ( + variables: GetAccountWithAggregatesQueryVariables, +) => ['GetAccountWithAggregates.infinite', variables] -useGetTriplePositionsByAddressQuery.fetcher = ( - variables: GetTriplePositionsByAddressQueryVariables, +useGetAccountWithAggregatesQuery.fetcher = ( + variables: GetAccountWithAggregatesQueryVariables, options?: RequestInit['headers'], ) => fetcher< - GetTriplePositionsByAddressQuery, - GetTriplePositionsByAddressQueryVariables - >(GetTriplePositionsByAddressDocument, variables, options) + GetAccountWithAggregatesQuery, + GetAccountWithAggregatesQueryVariables + >(GetAccountWithAggregatesDocument, variables, options) -export const GetPositionsWithAggregatesDocument = ` - query GetPositionsWithAggregates($limit: Int, $offset: Int, $orderBy: [positions_order_by!], $where: positions_bool_exp) { - positions_aggregate( - limit: $limit - offset: $offset - order_by: $orderBy - where: $where - ) { +export const GetAtomsDocument = ` + query GetAtoms($limit: Int, $offset: Int, $orderBy: [atoms_order_by!], $where: atoms_bool_exp) { + total: atoms_aggregate(where: $where) { aggregate { count } - nodes { - ...PositionDetails + } + atoms(limit: $limit, offset: $offset, order_by: $orderBy, where: $where) { + ...AtomMetadata + ...AtomTxn + ...AtomVaultDetails + ...AtomTriple + creator { + ...AccountMetadata } } } - ${PositionDetailsFragmentDoc}` + ${AtomMetadataFragmentDoc} +${AtomValueFragmentDoc} +${AtomTxnFragmentDoc} +${AtomVaultDetailsFragmentDoc} +${AtomTripleFragmentDoc} +${AccountMetadataFragmentDoc}` -export const useGetPositionsWithAggregatesQuery = < - TData = GetPositionsWithAggregatesQuery, - TError = unknown, ->( - variables?: GetPositionsWithAggregatesQueryVariables, - options?: Omit< - UseQueryOptions, - 'queryKey' - > & { - queryKey?: UseQueryOptions< - GetPositionsWithAggregatesQuery, - TError, - TData - >['queryKey'] +export const useGetAtomsQuery = ( + variables?: GetAtomsQueryVariables, + options?: Omit, 'queryKey'> & { + queryKey?: UseQueryOptions['queryKey'] }, ) => { - return useQuery({ - queryKey: - variables === undefined - ? ['GetPositionsWithAggregates'] - : ['GetPositionsWithAggregates', variables], - queryFn: fetcher< - GetPositionsWithAggregatesQuery, - GetPositionsWithAggregatesQueryVariables - >(GetPositionsWithAggregatesDocument, variables), + return useQuery({ + queryKey: variables === undefined ? ['GetAtoms'] : ['GetAtoms', variables], + queryFn: fetcher( + GetAtomsDocument, + variables, + ), ...options, }) } -useGetPositionsWithAggregatesQuery.document = GetPositionsWithAggregatesDocument +useGetAtomsQuery.document = GetAtomsDocument -useGetPositionsWithAggregatesQuery.getKey = ( - variables?: GetPositionsWithAggregatesQueryVariables, -) => - variables === undefined - ? ['GetPositionsWithAggregates'] - : ['GetPositionsWithAggregates', variables] +useGetAtomsQuery.getKey = (variables?: GetAtomsQueryVariables) => + variables === undefined ? ['GetAtoms'] : ['GetAtoms', variables] -export const useInfiniteGetPositionsWithAggregatesQuery = < - TData = InfiniteData, +export const useInfiniteGetAtomsQuery = < + TData = InfiniteData, TError = unknown, >( - variables: GetPositionsWithAggregatesQueryVariables, + variables: GetAtomsQueryVariables, options: Omit< - UseInfiniteQueryOptions, + UseInfiniteQueryOptions, 'queryKey' > & { - queryKey?: UseInfiniteQueryOptions< - GetPositionsWithAggregatesQuery, - TError, - TData - >['queryKey'] + queryKey?: UseInfiniteQueryOptions['queryKey'] }, ) => { - return useInfiniteQuery( + return useInfiniteQuery( (() => { const { queryKey: optionsQueryKey, ...restOptions } = options return { queryKey: optionsQueryKey ?? variables === undefined - ? ['GetPositionsWithAggregates.infinite'] - : ['GetPositionsWithAggregates.infinite', variables], + ? ['GetAtoms.infinite'] + : ['GetAtoms.infinite', variables], queryFn: (metaData) => - fetcher< - GetPositionsWithAggregatesQuery, - GetPositionsWithAggregatesQueryVariables - >(GetPositionsWithAggregatesDocument, { + fetcher(GetAtomsDocument, { ...variables, ...(metaData.pageParam ?? {}), })(), @@ -14348,369 +16131,428 @@ export const useInfiniteGetPositionsWithAggregatesQuery = < ) } -useInfiniteGetPositionsWithAggregatesQuery.getKey = ( - variables?: GetPositionsWithAggregatesQueryVariables, -) => +useInfiniteGetAtomsQuery.getKey = (variables?: GetAtomsQueryVariables) => variables === undefined - ? ['GetPositionsWithAggregates.infinite'] - : ['GetPositionsWithAggregates.infinite', variables] + ? ['GetAtoms.infinite'] + : ['GetAtoms.infinite', variables] -useGetPositionsWithAggregatesQuery.fetcher = ( - variables?: GetPositionsWithAggregatesQueryVariables, +useGetAtomsQuery.fetcher = ( + variables?: GetAtomsQueryVariables, options?: RequestInit['headers'], ) => - fetcher< - GetPositionsWithAggregatesQuery, - GetPositionsWithAggregatesQueryVariables - >(GetPositionsWithAggregatesDocument, variables, options) + fetcher( + GetAtomsDocument, + variables, + options, + ) -export const GetPositionsCountDocument = ` - query GetPositionsCount($where: positions_bool_exp) { - positions_aggregate(where: $where) { - total: aggregate { +export const GetAtomsWithPositionsDocument = ` + query GetAtomsWithPositions($limit: Int, $offset: Int, $orderBy: [atoms_order_by!], $where: atoms_bool_exp, $address: String) { + total: atoms_aggregate(where: $where) { + aggregate { count - sum { + } + } + atoms(limit: $limit, offset: $offset, order_by: $orderBy, where: $where) { + ...AtomMetadata + ...AtomTxn + vault { + position_count + total_shares + current_share_price + total: positions_aggregate { + aggregate { + count + sum { + shares + } + } + } + positions(where: {account_id: {_eq: $address}}) { + id + account { + label + id + } shares } } + creator { + ...AccountMetadata + } } } - ` + ${AtomMetadataFragmentDoc} +${AtomValueFragmentDoc} +${AtomTxnFragmentDoc} +${AccountMetadataFragmentDoc}` -export const useGetPositionsCountQuery = < - TData = GetPositionsCountQuery, +export const useGetAtomsWithPositionsQuery = < + TData = GetAtomsWithPositionsQuery, TError = unknown, >( - variables?: GetPositionsCountQueryVariables, + variables?: GetAtomsWithPositionsQueryVariables, options?: Omit< - UseQueryOptions, + UseQueryOptions, 'queryKey' > & { queryKey?: UseQueryOptions< - GetPositionsCountQuery, + GetAtomsWithPositionsQuery, TError, TData >['queryKey'] }, ) => { - return useQuery({ + return useQuery({ queryKey: variables === undefined - ? ['GetPositionsCount'] - : ['GetPositionsCount', variables], - queryFn: fetcher( - GetPositionsCountDocument, - variables, - ), + ? ['GetAtomsWithPositions'] + : ['GetAtomsWithPositions', variables], + queryFn: fetcher< + GetAtomsWithPositionsQuery, + GetAtomsWithPositionsQueryVariables + >(GetAtomsWithPositionsDocument, variables), ...options, }) } -useGetPositionsCountQuery.document = GetPositionsCountDocument +useGetAtomsWithPositionsQuery.document = GetAtomsWithPositionsDocument -useGetPositionsCountQuery.getKey = ( - variables?: GetPositionsCountQueryVariables, +useGetAtomsWithPositionsQuery.getKey = ( + variables?: GetAtomsWithPositionsQueryVariables, ) => variables === undefined - ? ['GetPositionsCount'] - : ['GetPositionsCount', variables] + ? ['GetAtomsWithPositions'] + : ['GetAtomsWithPositions', variables] -export const useInfiniteGetPositionsCountQuery = < - TData = InfiniteData, +export const useInfiniteGetAtomsWithPositionsQuery = < + TData = InfiniteData, TError = unknown, >( - variables: GetPositionsCountQueryVariables, + variables: GetAtomsWithPositionsQueryVariables, options: Omit< - UseInfiniteQueryOptions, + UseInfiniteQueryOptions, 'queryKey' > & { queryKey?: UseInfiniteQueryOptions< - GetPositionsCountQuery, + GetAtomsWithPositionsQuery, TError, TData >['queryKey'] }, ) => { - return useInfiniteQuery( + return useInfiniteQuery( (() => { const { queryKey: optionsQueryKey, ...restOptions } = options return { queryKey: optionsQueryKey ?? variables === undefined - ? ['GetPositionsCount.infinite'] - : ['GetPositionsCount.infinite', variables], + ? ['GetAtomsWithPositions.infinite'] + : ['GetAtomsWithPositions.infinite', variables], queryFn: (metaData) => - fetcher( - GetPositionsCountDocument, - { ...variables, ...(metaData.pageParam ?? {}) }, - )(), + fetcher< + GetAtomsWithPositionsQuery, + GetAtomsWithPositionsQueryVariables + >(GetAtomsWithPositionsDocument, { + ...variables, + ...(metaData.pageParam ?? {}), + })(), ...restOptions, } })(), ) } -useInfiniteGetPositionsCountQuery.getKey = ( - variables?: GetPositionsCountQueryVariables, +useInfiniteGetAtomsWithPositionsQuery.getKey = ( + variables?: GetAtomsWithPositionsQueryVariables, ) => variables === undefined - ? ['GetPositionsCount.infinite'] - : ['GetPositionsCount.infinite', variables] + ? ['GetAtomsWithPositions.infinite'] + : ['GetAtomsWithPositions.infinite', variables] -useGetPositionsCountQuery.fetcher = ( - variables?: GetPositionsCountQueryVariables, +useGetAtomsWithPositionsQuery.fetcher = ( + variables?: GetAtomsWithPositionsQueryVariables, options?: RequestInit['headers'], ) => - fetcher( - GetPositionsCountDocument, + fetcher( + GetAtomsWithPositionsDocument, variables, options, ) -export const GetPositionDocument = ` - query GetPosition($positionId: String!) { - position(id: $positionId) { - ...PositionDetails +export const GetAtomsWithAggregatesDocument = ` + query GetAtomsWithAggregates($limit: Int, $offset: Int, $orderBy: [atoms_order_by!], $where: atoms_bool_exp) { + atoms_aggregate( + limit: $limit + offset: $offset + order_by: $orderBy + where: $where + ) { + aggregate { + count + } + nodes { + ...AtomMetadata + ...AtomTxn + ...AtomVaultDetails + creator { + ...AccountMetadata + } + } } } - ${PositionDetailsFragmentDoc}` + ${AtomMetadataFragmentDoc} +${AtomValueFragmentDoc} +${AtomTxnFragmentDoc} +${AtomVaultDetailsFragmentDoc} +${AccountMetadataFragmentDoc}` -export const useGetPositionQuery = ( - variables: GetPositionQueryVariables, +export const useGetAtomsWithAggregatesQuery = < + TData = GetAtomsWithAggregatesQuery, + TError = unknown, +>( + variables?: GetAtomsWithAggregatesQueryVariables, options?: Omit< - UseQueryOptions, + UseQueryOptions, 'queryKey' > & { - queryKey?: UseQueryOptions['queryKey'] + queryKey?: UseQueryOptions< + GetAtomsWithAggregatesQuery, + TError, + TData + >['queryKey'] }, ) => { - return useQuery({ - queryKey: ['GetPosition', variables], - queryFn: fetcher( - GetPositionDocument, - variables, - ), + return useQuery({ + queryKey: + variables === undefined + ? ['GetAtomsWithAggregates'] + : ['GetAtomsWithAggregates', variables], + queryFn: fetcher< + GetAtomsWithAggregatesQuery, + GetAtomsWithAggregatesQueryVariables + >(GetAtomsWithAggregatesDocument, variables), ...options, }) } -useGetPositionQuery.document = GetPositionDocument +useGetAtomsWithAggregatesQuery.document = GetAtomsWithAggregatesDocument -useGetPositionQuery.getKey = (variables: GetPositionQueryVariables) => [ - 'GetPosition', - variables, -] +useGetAtomsWithAggregatesQuery.getKey = ( + variables?: GetAtomsWithAggregatesQueryVariables, +) => + variables === undefined + ? ['GetAtomsWithAggregates'] + : ['GetAtomsWithAggregates', variables] -export const useInfiniteGetPositionQuery = < - TData = InfiniteData, +export const useInfiniteGetAtomsWithAggregatesQuery = < + TData = InfiniteData, TError = unknown, >( - variables: GetPositionQueryVariables, + variables: GetAtomsWithAggregatesQueryVariables, options: Omit< - UseInfiniteQueryOptions, + UseInfiniteQueryOptions, 'queryKey' > & { queryKey?: UseInfiniteQueryOptions< - GetPositionQuery, + GetAtomsWithAggregatesQuery, TError, TData >['queryKey'] }, ) => { - return useInfiniteQuery( + return useInfiniteQuery( (() => { const { queryKey: optionsQueryKey, ...restOptions } = options return { - queryKey: optionsQueryKey ?? ['GetPosition.infinite', variables], + queryKey: + optionsQueryKey ?? variables === undefined + ? ['GetAtomsWithAggregates.infinite'] + : ['GetAtomsWithAggregates.infinite', variables], queryFn: (metaData) => - fetcher( - GetPositionDocument, - { ...variables, ...(metaData.pageParam ?? {}) }, - )(), + fetcher< + GetAtomsWithAggregatesQuery, + GetAtomsWithAggregatesQueryVariables + >(GetAtomsWithAggregatesDocument, { + ...variables, + ...(metaData.pageParam ?? {}), + })(), ...restOptions, } })(), ) } -useInfiniteGetPositionQuery.getKey = (variables: GetPositionQueryVariables) => [ - 'GetPosition.infinite', - variables, -] +useInfiniteGetAtomsWithAggregatesQuery.getKey = ( + variables?: GetAtomsWithAggregatesQueryVariables, +) => + variables === undefined + ? ['GetAtomsWithAggregates.infinite'] + : ['GetAtomsWithAggregates.infinite', variables] -useGetPositionQuery.fetcher = ( - variables: GetPositionQueryVariables, +useGetAtomsWithAggregatesQuery.fetcher = ( + variables?: GetAtomsWithAggregatesQueryVariables, options?: RequestInit['headers'], ) => - fetcher( - GetPositionDocument, + fetcher( + GetAtomsWithAggregatesDocument, variables, options, ) -export const GetPositionsCountByTypeDocument = ` - query GetPositionsCountByType($where: positions_bool_exp) { - positions_aggregate(where: $where) { - total: aggregate { +export const GetAtomsCountDocument = ` + query GetAtomsCount($where: atoms_bool_exp) { + atoms_aggregate(where: $where) { + aggregate { count - sum { - shares - } - } - } - positions { - vault { - atomId - tripleId } } } ` -export const useGetPositionsCountByTypeQuery = < - TData = GetPositionsCountByTypeQuery, +export const useGetAtomsCountQuery = < + TData = GetAtomsCountQuery, TError = unknown, >( - variables?: GetPositionsCountByTypeQueryVariables, + variables?: GetAtomsCountQueryVariables, options?: Omit< - UseQueryOptions, + UseQueryOptions, 'queryKey' > & { - queryKey?: UseQueryOptions< - GetPositionsCountByTypeQuery, - TError, - TData - >['queryKey'] + queryKey?: UseQueryOptions['queryKey'] }, ) => { - return useQuery({ + return useQuery({ queryKey: variables === undefined - ? ['GetPositionsCountByType'] - : ['GetPositionsCountByType', variables], - queryFn: fetcher< - GetPositionsCountByTypeQuery, - GetPositionsCountByTypeQueryVariables - >(GetPositionsCountByTypeDocument, variables), + ? ['GetAtomsCount'] + : ['GetAtomsCount', variables], + queryFn: fetcher( + GetAtomsCountDocument, + variables, + ), ...options, }) } -useGetPositionsCountByTypeQuery.document = GetPositionsCountByTypeDocument +useGetAtomsCountQuery.document = GetAtomsCountDocument -useGetPositionsCountByTypeQuery.getKey = ( - variables?: GetPositionsCountByTypeQueryVariables, -) => - variables === undefined - ? ['GetPositionsCountByType'] - : ['GetPositionsCountByType', variables] +useGetAtomsCountQuery.getKey = (variables?: GetAtomsCountQueryVariables) => + variables === undefined ? ['GetAtomsCount'] : ['GetAtomsCount', variables] -export const useInfiniteGetPositionsCountByTypeQuery = < - TData = InfiniteData, +export const useInfiniteGetAtomsCountQuery = < + TData = InfiniteData, TError = unknown, >( - variables: GetPositionsCountByTypeQueryVariables, + variables: GetAtomsCountQueryVariables, options: Omit< - UseInfiniteQueryOptions, + UseInfiniteQueryOptions, 'queryKey' > & { queryKey?: UseInfiniteQueryOptions< - GetPositionsCountByTypeQuery, + GetAtomsCountQuery, TError, TData >['queryKey'] }, ) => { - return useInfiniteQuery( + return useInfiniteQuery( (() => { const { queryKey: optionsQueryKey, ...restOptions } = options return { queryKey: optionsQueryKey ?? variables === undefined - ? ['GetPositionsCountByType.infinite'] - : ['GetPositionsCountByType.infinite', variables], + ? ['GetAtomsCount.infinite'] + : ['GetAtomsCount.infinite', variables], queryFn: (metaData) => - fetcher< - GetPositionsCountByTypeQuery, - GetPositionsCountByTypeQueryVariables - >(GetPositionsCountByTypeDocument, { - ...variables, - ...(metaData.pageParam ?? {}), - })(), + fetcher( + GetAtomsCountDocument, + { ...variables, ...(metaData.pageParam ?? {}) }, + )(), ...restOptions, } })(), ) } -useInfiniteGetPositionsCountByTypeQuery.getKey = ( - variables?: GetPositionsCountByTypeQueryVariables, +useInfiniteGetAtomsCountQuery.getKey = ( + variables?: GetAtomsCountQueryVariables, ) => variables === undefined - ? ['GetPositionsCountByType.infinite'] - : ['GetPositionsCountByType.infinite', variables] + ? ['GetAtomsCount.infinite'] + : ['GetAtomsCount.infinite', variables] -useGetPositionsCountByTypeQuery.fetcher = ( - variables?: GetPositionsCountByTypeQueryVariables, +useGetAtomsCountQuery.fetcher = ( + variables?: GetAtomsCountQueryVariables, options?: RequestInit['headers'], ) => - fetcher( - GetPositionsCountByTypeDocument, + fetcher( + GetAtomsCountDocument, variables, options, ) -export const GetStatsDocument = ` - query GetStats { - stats { - ...StatDetails - } -} - ${StatDetailsFragmentDoc}` - -export const useGetStatsQuery = ( - variables?: GetStatsQueryVariables, - options?: Omit, 'queryKey'> & { - queryKey?: UseQueryOptions['queryKey'] +export const GetAtomDocument = ` + query GetAtom($id: numeric!) { + atom(id: $id) { + ...AtomMetadata + ...AtomTxn + ...AtomVaultDetails + creator { + ...AccountMetadata + } + ...AtomTriple + } +} + ${AtomMetadataFragmentDoc} +${AtomValueFragmentDoc} +${AtomTxnFragmentDoc} +${AtomVaultDetailsFragmentDoc} +${AccountMetadataFragmentDoc} +${AtomTripleFragmentDoc}` + +export const useGetAtomQuery = ( + variables: GetAtomQueryVariables, + options?: Omit, 'queryKey'> & { + queryKey?: UseQueryOptions['queryKey'] }, ) => { - return useQuery({ - queryKey: variables === undefined ? ['GetStats'] : ['GetStats', variables], - queryFn: fetcher( - GetStatsDocument, + return useQuery({ + queryKey: ['GetAtom', variables], + queryFn: fetcher( + GetAtomDocument, variables, ), ...options, }) } -useGetStatsQuery.document = GetStatsDocument +useGetAtomQuery.document = GetAtomDocument -useGetStatsQuery.getKey = (variables?: GetStatsQueryVariables) => - variables === undefined ? ['GetStats'] : ['GetStats', variables] +useGetAtomQuery.getKey = (variables: GetAtomQueryVariables) => [ + 'GetAtom', + variables, +] -export const useInfiniteGetStatsQuery = < - TData = InfiniteData, +export const useInfiniteGetAtomQuery = < + TData = InfiniteData, TError = unknown, >( - variables: GetStatsQueryVariables, + variables: GetAtomQueryVariables, options: Omit< - UseInfiniteQueryOptions, + UseInfiniteQueryOptions, 'queryKey' > & { - queryKey?: UseInfiniteQueryOptions['queryKey'] + queryKey?: UseInfiniteQueryOptions['queryKey'] }, ) => { - return useInfiniteQuery( + return useInfiniteQuery( (() => { const { queryKey: optionsQueryKey, ...restOptions } = options return { - queryKey: - optionsQueryKey ?? variables === undefined - ? ['GetStats.infinite'] - : ['GetStats.infinite', variables], + queryKey: optionsQueryKey ?? ['GetAtom.infinite', variables], queryFn: (metaData) => - fetcher(GetStatsDocument, { + fetcher(GetAtomDocument, { ...variables, ...(metaData.pageParam ?? {}), })(), @@ -14720,97 +16562,117 @@ export const useInfiniteGetStatsQuery = < ) } -useInfiniteGetStatsQuery.getKey = (variables?: GetStatsQueryVariables) => - variables === undefined - ? ['GetStats.infinite'] - : ['GetStats.infinite', variables] +useInfiniteGetAtomQuery.getKey = (variables: GetAtomQueryVariables) => [ + 'GetAtom.infinite', + variables, +] -useGetStatsQuery.fetcher = ( - variables?: GetStatsQueryVariables, +useGetAtomQuery.fetcher = ( + variables: GetAtomQueryVariables, options?: RequestInit['headers'], ) => - fetcher( - GetStatsDocument, + fetcher( + GetAtomDocument, variables, options, ) -export const GetTriplesDocument = ` - query GetTriples($limit: Int, $offset: Int, $orderBy: [triples_order_by!], $where: triples_bool_exp) { - total: triples_aggregate(where: $where) { +export const GetClaimsByAddressDocument = ` + query GetClaimsByAddress($address: String) { + claims_aggregate(where: {account_id: {_eq: $address}}) { aggregate { count } - } - triples(limit: $limit, offset: $offset, order_by: $orderBy, where: $where) { - ...TripleMetadata - ...TripleTxn - ...TripleVaultDetails - creator { - ...AccountMetadata + nodes { + account { + label + } + triple { + subject { + label + } + predicate { + label + } + object { + label + } + } + id + vault_id + counter_vault_id + shares + counter_shares } } } - ${TripleMetadataFragmentDoc} -${AtomValueFragmentDoc} -${AccountMetadataFragmentDoc} -${PositionAggregateFieldsFragmentDoc} -${PositionFieldsFragmentDoc} -${TripleTxnFragmentDoc} -${TripleVaultDetailsFragmentDoc}` + ` -export const useGetTriplesQuery = ( - variables?: GetTriplesQueryVariables, +export const useGetClaimsByAddressQuery = < + TData = GetClaimsByAddressQuery, + TError = unknown, +>( + variables?: GetClaimsByAddressQueryVariables, options?: Omit< - UseQueryOptions, + UseQueryOptions, 'queryKey' > & { - queryKey?: UseQueryOptions['queryKey'] + queryKey?: UseQueryOptions< + GetClaimsByAddressQuery, + TError, + TData + >['queryKey'] }, ) => { - return useQuery({ + return useQuery({ queryKey: - variables === undefined ? ['GetTriples'] : ['GetTriples', variables], - queryFn: fetcher( - GetTriplesDocument, + variables === undefined + ? ['GetClaimsByAddress'] + : ['GetClaimsByAddress', variables], + queryFn: fetcher( + GetClaimsByAddressDocument, variables, ), ...options, }) } -useGetTriplesQuery.document = GetTriplesDocument +useGetClaimsByAddressQuery.document = GetClaimsByAddressDocument -useGetTriplesQuery.getKey = (variables?: GetTriplesQueryVariables) => - variables === undefined ? ['GetTriples'] : ['GetTriples', variables] +useGetClaimsByAddressQuery.getKey = ( + variables?: GetClaimsByAddressQueryVariables, +) => + variables === undefined + ? ['GetClaimsByAddress'] + : ['GetClaimsByAddress', variables] -export const useInfiniteGetTriplesQuery = < - TData = InfiniteData, +export const useInfiniteGetClaimsByAddressQuery = < + TData = InfiniteData, TError = unknown, >( - variables: GetTriplesQueryVariables, + variables: GetClaimsByAddressQueryVariables, options: Omit< - UseInfiniteQueryOptions, + UseInfiniteQueryOptions, 'queryKey' > & { queryKey?: UseInfiniteQueryOptions< - GetTriplesQuery, + GetClaimsByAddressQuery, TError, TData >['queryKey'] }, ) => { - return useInfiniteQuery( + return useInfiniteQuery( (() => { const { queryKey: optionsQueryKey, ...restOptions } = options return { queryKey: optionsQueryKey ?? variables === undefined - ? ['GetTriples.infinite'] - : ['GetTriples.infinite', variables], + ? ['GetClaimsByAddress.infinite'] + : ['GetClaimsByAddress.infinite', variables], queryFn: (metaData) => - fetcher( - GetTriplesDocument, + fetcher( + GetClaimsByAddressDocument, { ...variables, ...(metaData.pageParam ?? {}) }, )(), ...restOptions, @@ -14819,117 +16681,133 @@ export const useInfiniteGetTriplesQuery = < ) } -useInfiniteGetTriplesQuery.getKey = (variables?: GetTriplesQueryVariables) => +useInfiniteGetClaimsByAddressQuery.getKey = ( + variables?: GetClaimsByAddressQueryVariables, +) => variables === undefined - ? ['GetTriples.infinite'] - : ['GetTriples.infinite', variables] + ? ['GetClaimsByAddress.infinite'] + : ['GetClaimsByAddress.infinite', variables] -useGetTriplesQuery.fetcher = ( - variables?: GetTriplesQueryVariables, +useGetClaimsByAddressQuery.fetcher = ( + variables?: GetClaimsByAddressQueryVariables, options?: RequestInit['headers'], ) => - fetcher( - GetTriplesDocument, + fetcher( + GetClaimsByAddressDocument, variables, options, ) -export const GetTriplesWithAggregatesDocument = ` - query GetTriplesWithAggregates($limit: Int, $offset: Int, $orderBy: [triples_order_by!], $where: triples_bool_exp) { +export const GetFollowingPositionsDocument = ` + query GetFollowingPositions($subjectId: numeric!, $predicateId: numeric!, $address: String!, $limit: Int, $offset: Int, $positionsOrderBy: [positions_order_by!]) { triples_aggregate( - limit: $limit - offset: $offset - order_by: $orderBy - where: $where + where: {_and: [{subject_id: {_eq: $subjectId}}, {predicate_id: {_eq: $predicateId}}, {vault: {positions: {account_id: {_eq: $address}}}}]} ) { aggregate { count } - nodes { - ...TripleMetadata - ...TripleTxn - ...TripleVaultDetails - creator { - ...AccountMetadata + } + triples( + limit: $limit + offset: $offset + where: {_and: [{subject_id: {_eq: $subjectId}}, {predicate_id: {_eq: $predicateId}}, {vault: {positions: {account_id: {_eq: $address}}}}]} + ) { + id + subject { + ...AtomMetadata + } + predicate { + ...AtomMetadata + } + object { + ...AtomMetadata + } + vault { + total_shares + current_share_price + positions_aggregate { + aggregate { + count + sum { + shares + } + } + } + positions(where: {account_id: {_eq: $address}}, order_by: $positionsOrderBy) { + account_id + account { + id + label + } + shares } } } } - ${TripleMetadataFragmentDoc} -${AtomValueFragmentDoc} -${AccountMetadataFragmentDoc} -${PositionAggregateFieldsFragmentDoc} -${PositionFieldsFragmentDoc} -${TripleTxnFragmentDoc} -${TripleVaultDetailsFragmentDoc}` + ${AtomMetadataFragmentDoc} +${AtomValueFragmentDoc}` -export const useGetTriplesWithAggregatesQuery = < - TData = GetTriplesWithAggregatesQuery, +export const useGetFollowingPositionsQuery = < + TData = GetFollowingPositionsQuery, TError = unknown, >( - variables?: GetTriplesWithAggregatesQueryVariables, + variables: GetFollowingPositionsQueryVariables, options?: Omit< - UseQueryOptions, + UseQueryOptions, 'queryKey' > & { queryKey?: UseQueryOptions< - GetTriplesWithAggregatesQuery, + GetFollowingPositionsQuery, TError, TData >['queryKey'] }, ) => { - return useQuery({ - queryKey: - variables === undefined - ? ['GetTriplesWithAggregates'] - : ['GetTriplesWithAggregates', variables], + return useQuery({ + queryKey: ['GetFollowingPositions', variables], queryFn: fetcher< - GetTriplesWithAggregatesQuery, - GetTriplesWithAggregatesQueryVariables - >(GetTriplesWithAggregatesDocument, variables), + GetFollowingPositionsQuery, + GetFollowingPositionsQueryVariables + >(GetFollowingPositionsDocument, variables), ...options, }) } -useGetTriplesWithAggregatesQuery.document = GetTriplesWithAggregatesDocument +useGetFollowingPositionsQuery.document = GetFollowingPositionsDocument -useGetTriplesWithAggregatesQuery.getKey = ( - variables?: GetTriplesWithAggregatesQueryVariables, -) => - variables === undefined - ? ['GetTriplesWithAggregates'] - : ['GetTriplesWithAggregates', variables] +useGetFollowingPositionsQuery.getKey = ( + variables: GetFollowingPositionsQueryVariables, +) => ['GetFollowingPositions', variables] -export const useInfiniteGetTriplesWithAggregatesQuery = < - TData = InfiniteData, +export const useInfiniteGetFollowingPositionsQuery = < + TData = InfiniteData, TError = unknown, >( - variables: GetTriplesWithAggregatesQueryVariables, + variables: GetFollowingPositionsQueryVariables, options: Omit< - UseInfiniteQueryOptions, + UseInfiniteQueryOptions, 'queryKey' > & { queryKey?: UseInfiniteQueryOptions< - GetTriplesWithAggregatesQuery, + GetFollowingPositionsQuery, TError, TData >['queryKey'] }, ) => { - return useInfiniteQuery( + return useInfiniteQuery( (() => { const { queryKey: optionsQueryKey, ...restOptions } = options return { - queryKey: - optionsQueryKey ?? variables === undefined - ? ['GetTriplesWithAggregates.infinite'] - : ['GetTriplesWithAggregates.infinite', variables], + queryKey: optionsQueryKey ?? [ + 'GetFollowingPositions.infinite', + variables, + ], queryFn: (metaData) => fetcher< - GetTriplesWithAggregatesQuery, - GetTriplesWithAggregatesQueryVariables - >(GetTriplesWithAggregatesDocument, { + GetFollowingPositionsQuery, + GetFollowingPositionsQueryVariables + >(GetFollowingPositionsDocument, { ...variables, ...(metaData.pageParam ?? {}), })(), @@ -14939,425 +16817,426 @@ export const useInfiniteGetTriplesWithAggregatesQuery = < ) } -useInfiniteGetTriplesWithAggregatesQuery.getKey = ( - variables?: GetTriplesWithAggregatesQueryVariables, -) => - variables === undefined - ? ['GetTriplesWithAggregates.infinite'] - : ['GetTriplesWithAggregates.infinite', variables] +useInfiniteGetFollowingPositionsQuery.getKey = ( + variables: GetFollowingPositionsQueryVariables, +) => ['GetFollowingPositions.infinite', variables] -useGetTriplesWithAggregatesQuery.fetcher = ( - variables?: GetTriplesWithAggregatesQueryVariables, +useGetFollowingPositionsQuery.fetcher = ( + variables: GetFollowingPositionsQueryVariables, options?: RequestInit['headers'], ) => - fetcher< - GetTriplesWithAggregatesQuery, - GetTriplesWithAggregatesQueryVariables - >(GetTriplesWithAggregatesDocument, variables, options) + fetcher( + GetFollowingPositionsDocument, + variables, + options, + ) -export const GetTriplesCountDocument = ` - query GetTriplesCount($where: triples_bool_exp) { - triples_aggregate(where: $where) { - total: aggregate { - count +export const GetFollowerPositionsDocument = ` + query GetFollowerPositions($subjectId: numeric!, $predicateId: numeric!, $objectId: numeric!, $positionsLimit: Int, $positionsOffset: Int, $positionsOrderBy: [positions_order_by!], $positionsWhere: positions_bool_exp) { + triples( + where: {_and: [{subject_id: {_eq: $subjectId}}, {predicate_id: {_eq: $predicateId}}, {object_id: {_eq: $objectId}}]} + ) { + id + subject { + ...AtomMetadata + } + predicate { + ...AtomMetadata + } + object { + ...AtomMetadata + } + vault { + total_shares + current_share_price + positions_aggregate { + aggregate { + count + sum { + shares + } + } + } + positions( + limit: $positionsLimit + offset: $positionsOffset + order_by: $positionsOrderBy + where: $positionsWhere + ) { + account { + id + label + image + } + shares + } } } } - ` + ${AtomMetadataFragmentDoc} +${AtomValueFragmentDoc}` -export const useGetTriplesCountQuery = < - TData = GetTriplesCountQuery, +export const useGetFollowerPositionsQuery = < + TData = GetFollowerPositionsQuery, TError = unknown, >( - variables?: GetTriplesCountQueryVariables, + variables: GetFollowerPositionsQueryVariables, options?: Omit< - UseQueryOptions, + UseQueryOptions, 'queryKey' > & { - queryKey?: UseQueryOptions['queryKey'] + queryKey?: UseQueryOptions< + GetFollowerPositionsQuery, + TError, + TData + >['queryKey'] }, ) => { - return useQuery({ - queryKey: - variables === undefined - ? ['GetTriplesCount'] - : ['GetTriplesCount', variables], - queryFn: fetcher( - GetTriplesCountDocument, - variables, - ), + return useQuery({ + queryKey: ['GetFollowerPositions', variables], + queryFn: fetcher< + GetFollowerPositionsQuery, + GetFollowerPositionsQueryVariables + >(GetFollowerPositionsDocument, variables), ...options, }) } -useGetTriplesCountQuery.document = GetTriplesCountDocument +useGetFollowerPositionsQuery.document = GetFollowerPositionsDocument -useGetTriplesCountQuery.getKey = (variables?: GetTriplesCountQueryVariables) => - variables === undefined ? ['GetTriplesCount'] : ['GetTriplesCount', variables] +useGetFollowerPositionsQuery.getKey = ( + variables: GetFollowerPositionsQueryVariables, +) => ['GetFollowerPositions', variables] -export const useInfiniteGetTriplesCountQuery = < - TData = InfiniteData, +export const useInfiniteGetFollowerPositionsQuery = < + TData = InfiniteData, TError = unknown, >( - variables: GetTriplesCountQueryVariables, + variables: GetFollowerPositionsQueryVariables, options: Omit< - UseInfiniteQueryOptions, + UseInfiniteQueryOptions, 'queryKey' > & { queryKey?: UseInfiniteQueryOptions< - GetTriplesCountQuery, + GetFollowerPositionsQuery, TError, TData >['queryKey'] }, ) => { - return useInfiniteQuery( + return useInfiniteQuery( (() => { const { queryKey: optionsQueryKey, ...restOptions } = options return { - queryKey: - optionsQueryKey ?? variables === undefined - ? ['GetTriplesCount.infinite'] - : ['GetTriplesCount.infinite', variables], + queryKey: optionsQueryKey ?? [ + 'GetFollowerPositions.infinite', + variables, + ], queryFn: (metaData) => - fetcher( - GetTriplesCountDocument, - { ...variables, ...(metaData.pageParam ?? {}) }, - )(), + fetcher< + GetFollowerPositionsQuery, + GetFollowerPositionsQueryVariables + >(GetFollowerPositionsDocument, { + ...variables, + ...(metaData.pageParam ?? {}), + })(), ...restOptions, } })(), ) } -useInfiniteGetTriplesCountQuery.getKey = ( - variables?: GetTriplesCountQueryVariables, -) => - variables === undefined - ? ['GetTriplesCount.infinite'] - : ['GetTriplesCount.infinite', variables] +useInfiniteGetFollowerPositionsQuery.getKey = ( + variables: GetFollowerPositionsQueryVariables, +) => ['GetFollowerPositions.infinite', variables] -useGetTriplesCountQuery.fetcher = ( - variables?: GetTriplesCountQueryVariables, +useGetFollowerPositionsQuery.fetcher = ( + variables: GetFollowerPositionsQueryVariables, options?: RequestInit['headers'], ) => - fetcher( - GetTriplesCountDocument, + fetcher( + GetFollowerPositionsDocument, variables, options, ) -export const GetTripleDocument = ` - query GetTriple($tripleId: numeric!) { - triple(id: $tripleId) { - ...TripleMetadata - ...TripleTxn - ...TripleVaultDetails - creator { - ...AccountMetadata +export const GetConnectionsDocument = ` + query GetConnections($subjectId: numeric!, $predicateId: numeric!, $objectId: numeric!, $addresses: [String!], $positionsLimit: Int, $positionsOffset: Int, $positionsOrderBy: [positions_order_by!], $positionsWhere: positions_bool_exp) { + following_count: triples_aggregate( + where: {_and: [{subject_id: {_eq: $subjectId}}, {predicate_id: {_eq: $predicateId}}, {object_id: {_eq: $objectId}}]} + ) { + aggregate { + count + } + } + following: triples( + where: {_and: [{subject_id: {_eq: $subjectId}}, {predicate_id: {_eq: $predicateId}}, {object_id: {_eq: $objectId}}]} + ) { + ...FollowMetadata + } + followers_count: triples_aggregate( + where: {_and: [{subject_id: {_eq: $subjectId}}, {predicate_id: {_eq: $predicateId}}, {vault: {positions: {account_id: {_in: $addresses}}}}]} + ) { + aggregate { + count } } + followers: triples( + where: {_and: [{subject_id: {_eq: $subjectId}}, {predicate_id: {_eq: $predicateId}}, {vault: {positions: {account_id: {_in: $addresses}}}}]} + ) { + ...FollowMetadata + } } - ${TripleMetadataFragmentDoc} -${AtomValueFragmentDoc} -${AccountMetadataFragmentDoc} -${PositionAggregateFieldsFragmentDoc} -${PositionFieldsFragmentDoc} -${TripleTxnFragmentDoc} -${TripleVaultDetailsFragmentDoc}` + ${FollowMetadataFragmentDoc}` -export const useGetTripleQuery = ( - variables: GetTripleQueryVariables, - options?: Omit, 'queryKey'> & { - queryKey?: UseQueryOptions['queryKey'] +export const useGetConnectionsQuery = < + TData = GetConnectionsQuery, + TError = unknown, +>( + variables: GetConnectionsQueryVariables, + options?: Omit< + UseQueryOptions, + 'queryKey' + > & { + queryKey?: UseQueryOptions['queryKey'] }, ) => { - return useQuery({ - queryKey: ['GetTriple', variables], - queryFn: fetcher( - GetTripleDocument, + return useQuery({ + queryKey: ['GetConnections', variables], + queryFn: fetcher( + GetConnectionsDocument, variables, ), ...options, }) } -useGetTripleQuery.document = GetTripleDocument +useGetConnectionsQuery.document = GetConnectionsDocument -useGetTripleQuery.getKey = (variables: GetTripleQueryVariables) => [ - 'GetTriple', +useGetConnectionsQuery.getKey = (variables: GetConnectionsQueryVariables) => [ + 'GetConnections', variables, ] -export const useInfiniteGetTripleQuery = < - TData = InfiniteData, +export const useInfiniteGetConnectionsQuery = < + TData = InfiniteData, TError = unknown, >( - variables: GetTripleQueryVariables, + variables: GetConnectionsQueryVariables, options: Omit< - UseInfiniteQueryOptions, + UseInfiniteQueryOptions, 'queryKey' > & { queryKey?: UseInfiniteQueryOptions< - GetTripleQuery, + GetConnectionsQuery, TError, TData >['queryKey'] }, ) => { - return useInfiniteQuery( + return useInfiniteQuery( (() => { const { queryKey: optionsQueryKey, ...restOptions } = options return { - queryKey: optionsQueryKey ?? ['GetTriple.infinite', variables], + queryKey: optionsQueryKey ?? ['GetConnections.infinite', variables], queryFn: (metaData) => - fetcher(GetTripleDocument, { - ...variables, - ...(metaData.pageParam ?? {}), - })(), + fetcher( + GetConnectionsDocument, + { ...variables, ...(metaData.pageParam ?? {}) }, + )(), ...restOptions, } })(), ) } -useInfiniteGetTripleQuery.getKey = (variables: GetTripleQueryVariables) => [ - 'GetTriple.infinite', - variables, -] +useInfiniteGetConnectionsQuery.getKey = ( + variables: GetConnectionsQueryVariables, +) => ['GetConnections.infinite', variables] -useGetTripleQuery.fetcher = ( - variables: GetTripleQueryVariables, +useGetConnectionsQuery.fetcher = ( + variables: GetConnectionsQueryVariables, options?: RequestInit['headers'], ) => - fetcher( - GetTripleDocument, + fetcher( + GetConnectionsDocument, variables, options, ) -export const GetAtomTriplesWithPositionsDocument = ` - query GetAtomTriplesWithPositions($where: triples_bool_exp) { - triples_aggregate(where: $where) { +export const GetConnectionsCountDocument = ` + query GetConnectionsCount($subjectId: numeric!, $predicateId: numeric!, $objectId: numeric!, $address: String!) { + following_count: triples_aggregate( + where: {_and: [{subject_id: {_eq: $subjectId}}, {predicate_id: {_eq: $predicateId}}, {vault: {positions: {account_id: {_eq: $address}}}}]} + ) { aggregate { count } } + followers_count: triples( + where: {_and: [{subject_id: {_eq: $subjectId}}, {predicate_id: {_eq: $predicateId}}, {object_id: {_eq: $objectId}}]} + ) { + vault { + positions_aggregate { + aggregate { + count + sum { + shares + } + } + } + } + } } ` -export const useGetAtomTriplesWithPositionsQuery = < - TData = GetAtomTriplesWithPositionsQuery, +export const useGetConnectionsCountQuery = < + TData = GetConnectionsCountQuery, TError = unknown, >( - variables?: GetAtomTriplesWithPositionsQueryVariables, + variables: GetConnectionsCountQueryVariables, options?: Omit< - UseQueryOptions, + UseQueryOptions, 'queryKey' > & { queryKey?: UseQueryOptions< - GetAtomTriplesWithPositionsQuery, + GetConnectionsCountQuery, TError, TData >['queryKey'] }, ) => { - return useQuery({ - queryKey: - variables === undefined - ? ['GetAtomTriplesWithPositions'] - : ['GetAtomTriplesWithPositions', variables], + return useQuery({ + queryKey: ['GetConnectionsCount', variables], queryFn: fetcher< - GetAtomTriplesWithPositionsQuery, - GetAtomTriplesWithPositionsQueryVariables - >(GetAtomTriplesWithPositionsDocument, variables), + GetConnectionsCountQuery, + GetConnectionsCountQueryVariables + >(GetConnectionsCountDocument, variables), ...options, }) } -useGetAtomTriplesWithPositionsQuery.document = - GetAtomTriplesWithPositionsDocument +useGetConnectionsCountQuery.document = GetConnectionsCountDocument -useGetAtomTriplesWithPositionsQuery.getKey = ( - variables?: GetAtomTriplesWithPositionsQueryVariables, -) => - variables === undefined - ? ['GetAtomTriplesWithPositions'] - : ['GetAtomTriplesWithPositions', variables] +useGetConnectionsCountQuery.getKey = ( + variables: GetConnectionsCountQueryVariables, +) => ['GetConnectionsCount', variables] -export const useInfiniteGetAtomTriplesWithPositionsQuery = < - TData = InfiniteData, +export const useInfiniteGetConnectionsCountQuery = < + TData = InfiniteData, TError = unknown, >( - variables: GetAtomTriplesWithPositionsQueryVariables, + variables: GetConnectionsCountQueryVariables, options: Omit< - UseInfiniteQueryOptions, + UseInfiniteQueryOptions, 'queryKey' > & { queryKey?: UseInfiniteQueryOptions< - GetAtomTriplesWithPositionsQuery, + GetConnectionsCountQuery, TError, TData >['queryKey'] }, ) => { - return useInfiniteQuery( + return useInfiniteQuery( (() => { const { queryKey: optionsQueryKey, ...restOptions } = options return { - queryKey: - optionsQueryKey ?? variables === undefined - ? ['GetAtomTriplesWithPositions.infinite'] - : ['GetAtomTriplesWithPositions.infinite', variables], + queryKey: optionsQueryKey ?? [ + 'GetConnectionsCount.infinite', + variables, + ], queryFn: (metaData) => - fetcher< - GetAtomTriplesWithPositionsQuery, - GetAtomTriplesWithPositionsQueryVariables - >(GetAtomTriplesWithPositionsDocument, { - ...variables, - ...(metaData.pageParam ?? {}), - })(), + fetcher( + GetConnectionsCountDocument, + { ...variables, ...(metaData.pageParam ?? {}) }, + )(), ...restOptions, } })(), ) } -useInfiniteGetAtomTriplesWithPositionsQuery.getKey = ( - variables?: GetAtomTriplesWithPositionsQueryVariables, -) => - variables === undefined - ? ['GetAtomTriplesWithPositions.infinite'] - : ['GetAtomTriplesWithPositions.infinite', variables] +useInfiniteGetConnectionsCountQuery.getKey = ( + variables: GetConnectionsCountQueryVariables, +) => ['GetConnectionsCount.infinite', variables] -useGetAtomTriplesWithPositionsQuery.fetcher = ( - variables?: GetAtomTriplesWithPositionsQueryVariables, +useGetConnectionsCountQuery.fetcher = ( + variables: GetConnectionsCountQueryVariables, options?: RequestInit['headers'], ) => - fetcher< - GetAtomTriplesWithPositionsQuery, - GetAtomTriplesWithPositionsQueryVariables - >(GetAtomTriplesWithPositionsDocument, variables, options) + fetcher( + GetConnectionsCountDocument, + variables, + options, + ) -export const GetTriplesWithPositionsDocument = ` - query GetTriplesWithPositions($limit: Int, $offset: Int, $orderBy: [triples_order_by!], $where: triples_bool_exp, $address: String) { - total: triples_aggregate(where: $where) { +export const GetListsDocument = ` + query GetLists($where: predicate_objects_bool_exp) { + predicate_objects_aggregate(where: $where) { aggregate { count } } - triples(limit: $limit, offset: $offset, order_by: $orderBy, where: $where) { + predicate_objects( + where: $where + order_by: [{claim_count: desc}, {triple_count: desc}] + ) { id - subject { - id - label - image - } - predicate { - id - label - image - } + claim_count + triple_count object { id label image } - vault { - totalShares - positionCount - positions(where: {accountId: {_eq: $address}}) { - account { - id - label - image - } - shares - } - } - counterVault { - totalShares - positionCount - positions(where: {accountId: {_eq: $address}}) { - account { - id - label - image - } - shares - } - } } } ` -export const useGetTriplesWithPositionsQuery = < - TData = GetTriplesWithPositionsQuery, - TError = unknown, ->( - variables?: GetTriplesWithPositionsQueryVariables, - options?: Omit< - UseQueryOptions, - 'queryKey' - > & { - queryKey?: UseQueryOptions< - GetTriplesWithPositionsQuery, - TError, - TData - >['queryKey'] +export const useGetListsQuery = ( + variables?: GetListsQueryVariables, + options?: Omit, 'queryKey'> & { + queryKey?: UseQueryOptions['queryKey'] }, ) => { - return useQuery({ - queryKey: - variables === undefined - ? ['GetTriplesWithPositions'] - : ['GetTriplesWithPositions', variables], - queryFn: fetcher< - GetTriplesWithPositionsQuery, - GetTriplesWithPositionsQueryVariables - >(GetTriplesWithPositionsDocument, variables), + return useQuery({ + queryKey: variables === undefined ? ['GetLists'] : ['GetLists', variables], + queryFn: fetcher( + GetListsDocument, + variables, + ), ...options, }) } -useGetTriplesWithPositionsQuery.document = GetTriplesWithPositionsDocument +useGetListsQuery.document = GetListsDocument -useGetTriplesWithPositionsQuery.getKey = ( - variables?: GetTriplesWithPositionsQueryVariables, -) => - variables === undefined - ? ['GetTriplesWithPositions'] - : ['GetTriplesWithPositions', variables] +useGetListsQuery.getKey = (variables?: GetListsQueryVariables) => + variables === undefined ? ['GetLists'] : ['GetLists', variables] -export const useInfiniteGetTriplesWithPositionsQuery = < - TData = InfiniteData, +export const useInfiniteGetListsQuery = < + TData = InfiniteData, TError = unknown, >( - variables: GetTriplesWithPositionsQueryVariables, + variables: GetListsQueryVariables, options: Omit< - UseInfiniteQueryOptions, + UseInfiniteQueryOptions, 'queryKey' > & { - queryKey?: UseInfiniteQueryOptions< - GetTriplesWithPositionsQuery, - TError, - TData - >['queryKey'] + queryKey?: UseInfiniteQueryOptions['queryKey'] }, ) => { - return useInfiniteQuery( + return useInfiniteQuery( (() => { const { queryKey: optionsQueryKey, ...restOptions } = options return { queryKey: optionsQueryKey ?? variables === undefined - ? ['GetTriplesWithPositions.infinite'] - : ['GetTriplesWithPositions.infinite', variables], + ? ['GetLists.infinite'] + : ['GetLists.infinite', variables], queryFn: (metaData) => - fetcher< - GetTriplesWithPositionsQuery, - GetTriplesWithPositionsQueryVariables - >(GetTriplesWithPositionsDocument, { + fetcher(GetListsDocument, { ...variables, ...(metaData.pageParam ?? {}), })(), @@ -15367,275 +17246,5592 @@ export const useInfiniteGetTriplesWithPositionsQuery = < ) } -useInfiniteGetTriplesWithPositionsQuery.getKey = ( - variables?: GetTriplesWithPositionsQueryVariables, -) => +useInfiniteGetListsQuery.getKey = (variables?: GetListsQueryVariables) => variables === undefined - ? ['GetTriplesWithPositions.infinite'] - : ['GetTriplesWithPositions.infinite', variables] + ? ['GetLists.infinite'] + : ['GetLists.infinite', variables] -useGetTriplesWithPositionsQuery.fetcher = ( - variables?: GetTriplesWithPositionsQueryVariables, +useGetListsQuery.fetcher = ( + variables?: GetListsQueryVariables, options?: RequestInit['headers'], ) => - fetcher( - GetTriplesWithPositionsDocument, + fetcher( + GetListsDocument, variables, options, ) -export const GetVaultsDocument = ` - query GetVaults($limit: Int, $offset: Int, $orderBy: [vaults_order_by!], $where: vaults_bool_exp) { - vaults_aggregate( - limit: $limit - offset: $offset - order_by: $orderBy - where: $where +export const GetListItemsDocument = ` + query GetListItems($predicateId: numeric, $objectId: numeric) { + triples_aggregate( + where: {predicate_id: {_eq: predicateId}, object_id: {_eq: $objectId}} + order_by: [{vault: {position_count: desc}, counter_vault: {position_count: desc}}] ) { aggregate { count } nodes { - id - atom { - id - label - } - triple { - id - subject { - id - label - } - predicate { - id - label - } - object { - id - label - } - } - positions_aggregate { - nodes { - account { - id - label - } - shares - } - } - currentSharePrice - totalShares + ...TripleVaultDetails } } } - ` + ${TripleVaultDetailsFragmentDoc} +${PositionDetailsFragmentDoc} +${AtomValueFragmentDoc} +${AccountMetadataFragmentDoc}` -export const useGetVaultsQuery = ( - variables?: GetVaultsQueryVariables, - options?: Omit, 'queryKey'> & { - queryKey?: UseQueryOptions['queryKey'] +export const useGetListItemsQuery = < + TData = GetListItemsQuery, + TError = unknown, +>( + variables?: GetListItemsQueryVariables, + options?: Omit< + UseQueryOptions, + 'queryKey' + > & { + queryKey?: UseQueryOptions['queryKey'] }, ) => { - return useQuery({ + return useQuery({ queryKey: - variables === undefined ? ['GetVaults'] : ['GetVaults', variables], - queryFn: fetcher( - GetVaultsDocument, + variables === undefined ? ['GetListItems'] : ['GetListItems', variables], + queryFn: fetcher( + GetListItemsDocument, variables, ), ...options, }) } -useGetVaultsQuery.document = GetVaultsDocument +useGetListItemsQuery.document = GetListItemsDocument -useGetVaultsQuery.getKey = (variables?: GetVaultsQueryVariables) => - variables === undefined ? ['GetVaults'] : ['GetVaults', variables] +useGetListItemsQuery.getKey = (variables?: GetListItemsQueryVariables) => + variables === undefined ? ['GetListItems'] : ['GetListItems', variables] -export const useInfiniteGetVaultsQuery = < - TData = InfiniteData, +export const useInfiniteGetListItemsQuery = < + TData = InfiniteData, TError = unknown, >( - variables: GetVaultsQueryVariables, + variables: GetListItemsQueryVariables, options: Omit< - UseInfiniteQueryOptions, + UseInfiniteQueryOptions, 'queryKey' > & { queryKey?: UseInfiniteQueryOptions< - GetVaultsQuery, + GetListItemsQuery, TError, TData >['queryKey'] }, ) => { - return useInfiniteQuery( + return useInfiniteQuery( (() => { const { queryKey: optionsQueryKey, ...restOptions } = options return { queryKey: optionsQueryKey ?? variables === undefined - ? ['GetVaults.infinite'] - : ['GetVaults.infinite', variables], + ? ['GetListItems.infinite'] + : ['GetListItems.infinite', variables], queryFn: (metaData) => - fetcher(GetVaultsDocument, { - ...variables, - ...(metaData.pageParam ?? {}), - })(), + fetcher( + GetListItemsDocument, + { ...variables, ...(metaData.pageParam ?? {}) }, + )(), ...restOptions, } })(), ) } -useInfiniteGetVaultsQuery.getKey = (variables?: GetVaultsQueryVariables) => +useInfiniteGetListItemsQuery.getKey = ( + variables?: GetListItemsQueryVariables, +) => variables === undefined - ? ['GetVaults.infinite'] - : ['GetVaults.infinite', variables] + ? ['GetListItems.infinite'] + : ['GetListItems.infinite', variables] -useGetVaultsQuery.fetcher = ( - variables?: GetVaultsQueryVariables, +useGetListItemsQuery.fetcher = ( + variables?: GetListItemsQueryVariables, options?: RequestInit['headers'], ) => - fetcher( - GetVaultsDocument, + fetcher( + GetListItemsDocument, variables, options, ) -export const GetVaultDocument = ` - query GetVault($vaultId: numeric!) { - vault(id: $vaultId) { - ...VaultDetails +export const GetListDetailsDocument = ` + query GetListDetails($globalWhere: triples_bool_exp, $userWhere: triples_bool_exp, $tagPredicateId: numeric) { + globalTriplesAggregate: triples_aggregate(where: $globalWhere) { + aggregate { + count + } } -} - ${VaultDetailsFragmentDoc} -${VaultBasicDetailsFragmentDoc}` - -export const useGetVaultQuery = ( - variables: GetVaultQueryVariables, - options?: Omit, 'queryKey'> & { - queryKey?: UseQueryOptions['queryKey'] - }, -) => { - return useQuery({ - queryKey: ['GetVault', variables], - queryFn: fetcher( - GetVaultDocument, - variables, - ), - ...options, - }) -} - -useGetVaultQuery.document = GetVaultDocument - -useGetVaultQuery.getKey = (variables: GetVaultQueryVariables) => [ - 'GetVault', - variables, -] - -export const useInfiniteGetVaultQuery = < - TData = InfiniteData, - TError = unknown, ->( - variables: GetVaultQueryVariables, - options: Omit< - UseInfiniteQueryOptions, - 'queryKey' - > & { - queryKey?: UseInfiniteQueryOptions['queryKey'] - }, -) => { - return useInfiniteQuery( - (() => { - const { queryKey: optionsQueryKey, ...restOptions } = options - return { - queryKey: optionsQueryKey ?? ['GetVault.infinite', variables], - queryFn: (metaData) => - fetcher(GetVaultDocument, { - ...variables, - ...(metaData.pageParam ?? {}), - })(), - ...restOptions, - } - })(), - ) -} - -useInfiniteGetVaultQuery.getKey = (variables: GetVaultQueryVariables) => [ - 'GetVault.infinite', - variables, -] + globalTriples: triples(where: $globalWhere) { + id + vault_id + counter_vault_id + subject { + id + vault_id + label + wallet_id + image + type + tags: as_subject_triples_aggregate( + where: {predicate_id: {_eq: $tagPredicateId}} + ) { + nodes { + object { + label + vault_id + taggedIdentities: as_object_triples_aggregate { + nodes { + subject { + label + vault_id + } + vault_id + } + aggregate { + count + } + } + } + } + aggregate { + count + } + } + } + object { + id + vault_id + label + wallet_id + image + type + } + predicate { + id + vault_id + label + wallet_id + image + type + } + vault { + positions_aggregate { + aggregate { + count + sum { + shares + } + } + } + } + } + userTriplesAggregate: triples_aggregate(where: $userWhere) { + aggregate { + count + } + } + userTriples: triples(where: $userWhere) { + id + vault_id + counter_vault_id + subject { + id + vault_id + label + wallet_id + image + type + tags: as_subject_triples_aggregate( + where: {predicate_id: {_eq: $tagPredicateId}} + ) { + nodes { + object { + label + vault_id + taggedIdentities: as_object_triples_aggregate { + nodes { + subject { + label + vault_id + } + vault_id + } + aggregate { + count + } + } + } + } + aggregate { + count + } + } + } + object { + id + vault_id + label + wallet_id + image + type + } + predicate { + id + vault_id + label + wallet_id + image + type + } + vault { + positions_aggregate { + aggregate { + count + sum { + shares + } + } + } + } + } +} + ` -useGetVaultQuery.fetcher = ( - variables: GetVaultQueryVariables, +export const useGetListDetailsQuery = < + TData = GetListDetailsQuery, + TError = unknown, +>( + variables?: GetListDetailsQueryVariables, + options?: Omit< + UseQueryOptions, + 'queryKey' + > & { + queryKey?: UseQueryOptions['queryKey'] + }, +) => { + return useQuery({ + queryKey: + variables === undefined + ? ['GetListDetails'] + : ['GetListDetails', variables], + queryFn: fetcher( + GetListDetailsDocument, + variables, + ), + ...options, + }) +} + +useGetListDetailsQuery.document = GetListDetailsDocument + +useGetListDetailsQuery.getKey = (variables?: GetListDetailsQueryVariables) => + variables === undefined ? ['GetListDetails'] : ['GetListDetails', variables] + +export const useInfiniteGetListDetailsQuery = < + TData = InfiniteData, + TError = unknown, +>( + variables: GetListDetailsQueryVariables, + options: Omit< + UseInfiniteQueryOptions, + 'queryKey' + > & { + queryKey?: UseInfiniteQueryOptions< + GetListDetailsQuery, + TError, + TData + >['queryKey'] + }, +) => { + return useInfiniteQuery( + (() => { + const { queryKey: optionsQueryKey, ...restOptions } = options + return { + queryKey: + optionsQueryKey ?? variables === undefined + ? ['GetListDetails.infinite'] + : ['GetListDetails.infinite', variables], + queryFn: (metaData) => + fetcher( + GetListDetailsDocument, + { ...variables, ...(metaData.pageParam ?? {}) }, + )(), + ...restOptions, + } + })(), + ) +} + +useInfiniteGetListDetailsQuery.getKey = ( + variables?: GetListDetailsQueryVariables, +) => + variables === undefined + ? ['GetListDetails.infinite'] + : ['GetListDetails.infinite', variables] + +useGetListDetailsQuery.fetcher = ( + variables?: GetListDetailsQueryVariables, options?: RequestInit['headers'], ) => - fetcher( - GetVaultDocument, + fetcher( + GetListDetailsDocument, variables, options, ) -export const AccountClaimsAggregate = { +export const GetPositionsDocument = ` + query GetPositions($limit: Int, $offset: Int, $orderBy: [positions_order_by!], $where: positions_bool_exp) { + total: positions_aggregate(where: $where) { + aggregate { + count + sum { + shares + } + } + } + positions(limit: $limit, offset: $offset, order_by: $orderBy, where: $where) { + ...PositionDetails + } +} + ${PositionDetailsFragmentDoc} +${AtomValueFragmentDoc} +${AccountMetadataFragmentDoc}` + +export const useGetPositionsQuery = < + TData = GetPositionsQuery, + TError = unknown, +>( + variables?: GetPositionsQueryVariables, + options?: Omit< + UseQueryOptions, + 'queryKey' + > & { + queryKey?: UseQueryOptions['queryKey'] + }, +) => { + return useQuery({ + queryKey: + variables === undefined ? ['GetPositions'] : ['GetPositions', variables], + queryFn: fetcher( + GetPositionsDocument, + variables, + ), + ...options, + }) +} + +useGetPositionsQuery.document = GetPositionsDocument + +useGetPositionsQuery.getKey = (variables?: GetPositionsQueryVariables) => + variables === undefined ? ['GetPositions'] : ['GetPositions', variables] + +export const useInfiniteGetPositionsQuery = < + TData = InfiniteData, + TError = unknown, +>( + variables: GetPositionsQueryVariables, + options: Omit< + UseInfiniteQueryOptions, + 'queryKey' + > & { + queryKey?: UseInfiniteQueryOptions< + GetPositionsQuery, + TError, + TData + >['queryKey'] + }, +) => { + return useInfiniteQuery( + (() => { + const { queryKey: optionsQueryKey, ...restOptions } = options + return { + queryKey: + optionsQueryKey ?? variables === undefined + ? ['GetPositions.infinite'] + : ['GetPositions.infinite', variables], + queryFn: (metaData) => + fetcher( + GetPositionsDocument, + { ...variables, ...(metaData.pageParam ?? {}) }, + )(), + ...restOptions, + } + })(), + ) +} + +useInfiniteGetPositionsQuery.getKey = ( + variables?: GetPositionsQueryVariables, +) => + variables === undefined + ? ['GetPositions.infinite'] + : ['GetPositions.infinite', variables] + +useGetPositionsQuery.fetcher = ( + variables?: GetPositionsQueryVariables, + options?: RequestInit['headers'], +) => + fetcher( + GetPositionsDocument, + variables, + options, + ) + +export const GetTriplePositionsByAddressDocument = ` + query GetTriplePositionsByAddress($limit: Int, $offset: Int, $orderBy: [positions_order_by!], $where: positions_bool_exp, $address: String!) { + total: positions_aggregate(where: $where) { + aggregate { + count + sum { + shares + } + } + } + positions(limit: $limit, offset: $offset, order_by: $orderBy, where: $where) { + ...PositionDetails + vault { + atom_id + triple_id + triple { + vault { + positions(where: {account_id: {_eq: $address}}) { + account { + id + label + image + } + shares + } + } + counter_vault { + positions(where: {account_id: {_eq: $address}}) { + account { + id + label + image + } + shares + } + } + } + } + } +} + ${PositionDetailsFragmentDoc} +${AtomValueFragmentDoc} +${AccountMetadataFragmentDoc}` + +export const useGetTriplePositionsByAddressQuery = < + TData = GetTriplePositionsByAddressQuery, + TError = unknown, +>( + variables: GetTriplePositionsByAddressQueryVariables, + options?: Omit< + UseQueryOptions, + 'queryKey' + > & { + queryKey?: UseQueryOptions< + GetTriplePositionsByAddressQuery, + TError, + TData + >['queryKey'] + }, +) => { + return useQuery({ + queryKey: ['GetTriplePositionsByAddress', variables], + queryFn: fetcher< + GetTriplePositionsByAddressQuery, + GetTriplePositionsByAddressQueryVariables + >(GetTriplePositionsByAddressDocument, variables), + ...options, + }) +} + +useGetTriplePositionsByAddressQuery.document = + GetTriplePositionsByAddressDocument + +useGetTriplePositionsByAddressQuery.getKey = ( + variables: GetTriplePositionsByAddressQueryVariables, +) => ['GetTriplePositionsByAddress', variables] + +export const useInfiniteGetTriplePositionsByAddressQuery = < + TData = InfiniteData, + TError = unknown, +>( + variables: GetTriplePositionsByAddressQueryVariables, + options: Omit< + UseInfiniteQueryOptions, + 'queryKey' + > & { + queryKey?: UseInfiniteQueryOptions< + GetTriplePositionsByAddressQuery, + TError, + TData + >['queryKey'] + }, +) => { + return useInfiniteQuery( + (() => { + const { queryKey: optionsQueryKey, ...restOptions } = options + return { + queryKey: optionsQueryKey ?? [ + 'GetTriplePositionsByAddress.infinite', + variables, + ], + queryFn: (metaData) => + fetcher< + GetTriplePositionsByAddressQuery, + GetTriplePositionsByAddressQueryVariables + >(GetTriplePositionsByAddressDocument, { + ...variables, + ...(metaData.pageParam ?? {}), + })(), + ...restOptions, + } + })(), + ) +} + +useInfiniteGetTriplePositionsByAddressQuery.getKey = ( + variables: GetTriplePositionsByAddressQueryVariables, +) => ['GetTriplePositionsByAddress.infinite', variables] + +useGetTriplePositionsByAddressQuery.fetcher = ( + variables: GetTriplePositionsByAddressQueryVariables, + options?: RequestInit['headers'], +) => + fetcher< + GetTriplePositionsByAddressQuery, + GetTriplePositionsByAddressQueryVariables + >(GetTriplePositionsByAddressDocument, variables, options) + +export const GetPositionsWithAggregatesDocument = ` + query GetPositionsWithAggregates($limit: Int, $offset: Int, $orderBy: [positions_order_by!], $where: positions_bool_exp) { + positions_aggregate( + limit: $limit + offset: $offset + order_by: $orderBy + where: $where + ) { + aggregate { + count + } + nodes { + ...PositionDetails + } + } +} + ${PositionDetailsFragmentDoc} +${AtomValueFragmentDoc} +${AccountMetadataFragmentDoc}` + +export const useGetPositionsWithAggregatesQuery = < + TData = GetPositionsWithAggregatesQuery, + TError = unknown, +>( + variables?: GetPositionsWithAggregatesQueryVariables, + options?: Omit< + UseQueryOptions, + 'queryKey' + > & { + queryKey?: UseQueryOptions< + GetPositionsWithAggregatesQuery, + TError, + TData + >['queryKey'] + }, +) => { + return useQuery({ + queryKey: + variables === undefined + ? ['GetPositionsWithAggregates'] + : ['GetPositionsWithAggregates', variables], + queryFn: fetcher< + GetPositionsWithAggregatesQuery, + GetPositionsWithAggregatesQueryVariables + >(GetPositionsWithAggregatesDocument, variables), + ...options, + }) +} + +useGetPositionsWithAggregatesQuery.document = GetPositionsWithAggregatesDocument + +useGetPositionsWithAggregatesQuery.getKey = ( + variables?: GetPositionsWithAggregatesQueryVariables, +) => + variables === undefined + ? ['GetPositionsWithAggregates'] + : ['GetPositionsWithAggregates', variables] + +export const useInfiniteGetPositionsWithAggregatesQuery = < + TData = InfiniteData, + TError = unknown, +>( + variables: GetPositionsWithAggregatesQueryVariables, + options: Omit< + UseInfiniteQueryOptions, + 'queryKey' + > & { + queryKey?: UseInfiniteQueryOptions< + GetPositionsWithAggregatesQuery, + TError, + TData + >['queryKey'] + }, +) => { + return useInfiniteQuery( + (() => { + const { queryKey: optionsQueryKey, ...restOptions } = options + return { + queryKey: + optionsQueryKey ?? variables === undefined + ? ['GetPositionsWithAggregates.infinite'] + : ['GetPositionsWithAggregates.infinite', variables], + queryFn: (metaData) => + fetcher< + GetPositionsWithAggregatesQuery, + GetPositionsWithAggregatesQueryVariables + >(GetPositionsWithAggregatesDocument, { + ...variables, + ...(metaData.pageParam ?? {}), + })(), + ...restOptions, + } + })(), + ) +} + +useInfiniteGetPositionsWithAggregatesQuery.getKey = ( + variables?: GetPositionsWithAggregatesQueryVariables, +) => + variables === undefined + ? ['GetPositionsWithAggregates.infinite'] + : ['GetPositionsWithAggregates.infinite', variables] + +useGetPositionsWithAggregatesQuery.fetcher = ( + variables?: GetPositionsWithAggregatesQueryVariables, + options?: RequestInit['headers'], +) => + fetcher< + GetPositionsWithAggregatesQuery, + GetPositionsWithAggregatesQueryVariables + >(GetPositionsWithAggregatesDocument, variables, options) + +export const GetPositionsCountDocument = ` + query GetPositionsCount($where: positions_bool_exp) { + positions_aggregate(where: $where) { + total: aggregate { + count + sum { + shares + } + } + } +} + ` + +export const useGetPositionsCountQuery = < + TData = GetPositionsCountQuery, + TError = unknown, +>( + variables?: GetPositionsCountQueryVariables, + options?: Omit< + UseQueryOptions, + 'queryKey' + > & { + queryKey?: UseQueryOptions< + GetPositionsCountQuery, + TError, + TData + >['queryKey'] + }, +) => { + return useQuery({ + queryKey: + variables === undefined + ? ['GetPositionsCount'] + : ['GetPositionsCount', variables], + queryFn: fetcher( + GetPositionsCountDocument, + variables, + ), + ...options, + }) +} + +useGetPositionsCountQuery.document = GetPositionsCountDocument + +useGetPositionsCountQuery.getKey = ( + variables?: GetPositionsCountQueryVariables, +) => + variables === undefined + ? ['GetPositionsCount'] + : ['GetPositionsCount', variables] + +export const useInfiniteGetPositionsCountQuery = < + TData = InfiniteData, + TError = unknown, +>( + variables: GetPositionsCountQueryVariables, + options: Omit< + UseInfiniteQueryOptions, + 'queryKey' + > & { + queryKey?: UseInfiniteQueryOptions< + GetPositionsCountQuery, + TError, + TData + >['queryKey'] + }, +) => { + return useInfiniteQuery( + (() => { + const { queryKey: optionsQueryKey, ...restOptions } = options + return { + queryKey: + optionsQueryKey ?? variables === undefined + ? ['GetPositionsCount.infinite'] + : ['GetPositionsCount.infinite', variables], + queryFn: (metaData) => + fetcher( + GetPositionsCountDocument, + { ...variables, ...(metaData.pageParam ?? {}) }, + )(), + ...restOptions, + } + })(), + ) +} + +useInfiniteGetPositionsCountQuery.getKey = ( + variables?: GetPositionsCountQueryVariables, +) => + variables === undefined + ? ['GetPositionsCount.infinite'] + : ['GetPositionsCount.infinite', variables] + +useGetPositionsCountQuery.fetcher = ( + variables?: GetPositionsCountQueryVariables, + options?: RequestInit['headers'], +) => + fetcher( + GetPositionsCountDocument, + variables, + options, + ) + +export const GetPositionDocument = ` + query GetPosition($positionId: String!) { + position(id: $positionId) { + ...PositionDetails + } +} + ${PositionDetailsFragmentDoc} +${AtomValueFragmentDoc} +${AccountMetadataFragmentDoc}` + +export const useGetPositionQuery = ( + variables: GetPositionQueryVariables, + options?: Omit< + UseQueryOptions, + 'queryKey' + > & { + queryKey?: UseQueryOptions['queryKey'] + }, +) => { + return useQuery({ + queryKey: ['GetPosition', variables], + queryFn: fetcher( + GetPositionDocument, + variables, + ), + ...options, + }) +} + +useGetPositionQuery.document = GetPositionDocument + +useGetPositionQuery.getKey = (variables: GetPositionQueryVariables) => [ + 'GetPosition', + variables, +] + +export const useInfiniteGetPositionQuery = < + TData = InfiniteData, + TError = unknown, +>( + variables: GetPositionQueryVariables, + options: Omit< + UseInfiniteQueryOptions, + 'queryKey' + > & { + queryKey?: UseInfiniteQueryOptions< + GetPositionQuery, + TError, + TData + >['queryKey'] + }, +) => { + return useInfiniteQuery( + (() => { + const { queryKey: optionsQueryKey, ...restOptions } = options + return { + queryKey: optionsQueryKey ?? ['GetPosition.infinite', variables], + queryFn: (metaData) => + fetcher( + GetPositionDocument, + { ...variables, ...(metaData.pageParam ?? {}) }, + )(), + ...restOptions, + } + })(), + ) +} + +useInfiniteGetPositionQuery.getKey = (variables: GetPositionQueryVariables) => [ + 'GetPosition.infinite', + variables, +] + +useGetPositionQuery.fetcher = ( + variables: GetPositionQueryVariables, + options?: RequestInit['headers'], +) => + fetcher( + GetPositionDocument, + variables, + options, + ) + +export const GetPositionsCountByTypeDocument = ` + query GetPositionsCountByType($where: positions_bool_exp) { + positions_aggregate(where: $where) { + total: aggregate { + count + sum { + shares + } + } + } + positions { + vault { + atom_id + triple_id + } + } +} + ` + +export const useGetPositionsCountByTypeQuery = < + TData = GetPositionsCountByTypeQuery, + TError = unknown, +>( + variables?: GetPositionsCountByTypeQueryVariables, + options?: Omit< + UseQueryOptions, + 'queryKey' + > & { + queryKey?: UseQueryOptions< + GetPositionsCountByTypeQuery, + TError, + TData + >['queryKey'] + }, +) => { + return useQuery({ + queryKey: + variables === undefined + ? ['GetPositionsCountByType'] + : ['GetPositionsCountByType', variables], + queryFn: fetcher< + GetPositionsCountByTypeQuery, + GetPositionsCountByTypeQueryVariables + >(GetPositionsCountByTypeDocument, variables), + ...options, + }) +} + +useGetPositionsCountByTypeQuery.document = GetPositionsCountByTypeDocument + +useGetPositionsCountByTypeQuery.getKey = ( + variables?: GetPositionsCountByTypeQueryVariables, +) => + variables === undefined + ? ['GetPositionsCountByType'] + : ['GetPositionsCountByType', variables] + +export const useInfiniteGetPositionsCountByTypeQuery = < + TData = InfiniteData, + TError = unknown, +>( + variables: GetPositionsCountByTypeQueryVariables, + options: Omit< + UseInfiniteQueryOptions, + 'queryKey' + > & { + queryKey?: UseInfiniteQueryOptions< + GetPositionsCountByTypeQuery, + TError, + TData + >['queryKey'] + }, +) => { + return useInfiniteQuery( + (() => { + const { queryKey: optionsQueryKey, ...restOptions } = options + return { + queryKey: + optionsQueryKey ?? variables === undefined + ? ['GetPositionsCountByType.infinite'] + : ['GetPositionsCountByType.infinite', variables], + queryFn: (metaData) => + fetcher< + GetPositionsCountByTypeQuery, + GetPositionsCountByTypeQueryVariables + >(GetPositionsCountByTypeDocument, { + ...variables, + ...(metaData.pageParam ?? {}), + })(), + ...restOptions, + } + })(), + ) +} + +useInfiniteGetPositionsCountByTypeQuery.getKey = ( + variables?: GetPositionsCountByTypeQueryVariables, +) => + variables === undefined + ? ['GetPositionsCountByType.infinite'] + : ['GetPositionsCountByType.infinite', variables] + +useGetPositionsCountByTypeQuery.fetcher = ( + variables?: GetPositionsCountByTypeQueryVariables, + options?: RequestInit['headers'], +) => + fetcher( + GetPositionsCountByTypeDocument, + variables, + options, + ) + +export const GetStatsDocument = ` + query GetStats { + stats { + ...StatDetails + } +} + ${StatDetailsFragmentDoc}` + +export const useGetStatsQuery = ( + variables?: GetStatsQueryVariables, + options?: Omit, 'queryKey'> & { + queryKey?: UseQueryOptions['queryKey'] + }, +) => { + return useQuery({ + queryKey: variables === undefined ? ['GetStats'] : ['GetStats', variables], + queryFn: fetcher( + GetStatsDocument, + variables, + ), + ...options, + }) +} + +useGetStatsQuery.document = GetStatsDocument + +useGetStatsQuery.getKey = (variables?: GetStatsQueryVariables) => + variables === undefined ? ['GetStats'] : ['GetStats', variables] + +export const useInfiniteGetStatsQuery = < + TData = InfiniteData, + TError = unknown, +>( + variables: GetStatsQueryVariables, + options: Omit< + UseInfiniteQueryOptions, + 'queryKey' + > & { + queryKey?: UseInfiniteQueryOptions['queryKey'] + }, +) => { + return useInfiniteQuery( + (() => { + const { queryKey: optionsQueryKey, ...restOptions } = options + return { + queryKey: + optionsQueryKey ?? variables === undefined + ? ['GetStats.infinite'] + : ['GetStats.infinite', variables], + queryFn: (metaData) => + fetcher(GetStatsDocument, { + ...variables, + ...(metaData.pageParam ?? {}), + })(), + ...restOptions, + } + })(), + ) +} + +useInfiniteGetStatsQuery.getKey = (variables?: GetStatsQueryVariables) => + variables === undefined + ? ['GetStats.infinite'] + : ['GetStats.infinite', variables] + +useGetStatsQuery.fetcher = ( + variables?: GetStatsQueryVariables, + options?: RequestInit['headers'], +) => + fetcher( + GetStatsDocument, + variables, + options, + ) + +export const GetTagsDocument = ` + query GetTags($subjectId: numeric!, $predicateId: numeric!) { + triples( + where: {_and: [{subject_id: {_eq: $subjectId}}, {predicate_id: {_eq: $predicateId}}]} + ) { + ...TripleMetadata + } +} + ${TripleMetadataFragmentDoc} +${AtomValueFragmentDoc} +${AccountMetadataFragmentDoc} +${PositionAggregateFieldsFragmentDoc} +${PositionFieldsFragmentDoc}` + +export const useGetTagsQuery = ( + variables: GetTagsQueryVariables, + options?: Omit, 'queryKey'> & { + queryKey?: UseQueryOptions['queryKey'] + }, +) => { + return useQuery({ + queryKey: ['GetTags', variables], + queryFn: fetcher( + GetTagsDocument, + variables, + ), + ...options, + }) +} + +useGetTagsQuery.document = GetTagsDocument + +useGetTagsQuery.getKey = (variables: GetTagsQueryVariables) => [ + 'GetTags', + variables, +] + +export const useInfiniteGetTagsQuery = < + TData = InfiniteData, + TError = unknown, +>( + variables: GetTagsQueryVariables, + options: Omit< + UseInfiniteQueryOptions, + 'queryKey' + > & { + queryKey?: UseInfiniteQueryOptions['queryKey'] + }, +) => { + return useInfiniteQuery( + (() => { + const { queryKey: optionsQueryKey, ...restOptions } = options + return { + queryKey: optionsQueryKey ?? ['GetTags.infinite', variables], + queryFn: (metaData) => + fetcher(GetTagsDocument, { + ...variables, + ...(metaData.pageParam ?? {}), + })(), + ...restOptions, + } + })(), + ) +} + +useInfiniteGetTagsQuery.getKey = (variables: GetTagsQueryVariables) => [ + 'GetTags.infinite', + variables, +] + +useGetTagsQuery.fetcher = ( + variables: GetTagsQueryVariables, + options?: RequestInit['headers'], +) => + fetcher( + GetTagsDocument, + variables, + options, + ) + +export const GetTagsCustomDocument = ` + query GetTagsCustom($where: triples_bool_exp) { + triples(where: $where) { + ...TripleMetadata + } +} + ${TripleMetadataFragmentDoc} +${AtomValueFragmentDoc} +${AccountMetadataFragmentDoc} +${PositionAggregateFieldsFragmentDoc} +${PositionFieldsFragmentDoc}` + +export const useGetTagsCustomQuery = < + TData = GetTagsCustomQuery, + TError = unknown, +>( + variables?: GetTagsCustomQueryVariables, + options?: Omit< + UseQueryOptions, + 'queryKey' + > & { + queryKey?: UseQueryOptions['queryKey'] + }, +) => { + return useQuery({ + queryKey: + variables === undefined + ? ['GetTagsCustom'] + : ['GetTagsCustom', variables], + queryFn: fetcher( + GetTagsCustomDocument, + variables, + ), + ...options, + }) +} + +useGetTagsCustomQuery.document = GetTagsCustomDocument + +useGetTagsCustomQuery.getKey = (variables?: GetTagsCustomQueryVariables) => + variables === undefined ? ['GetTagsCustom'] : ['GetTagsCustom', variables] + +export const useInfiniteGetTagsCustomQuery = < + TData = InfiniteData, + TError = unknown, +>( + variables: GetTagsCustomQueryVariables, + options: Omit< + UseInfiniteQueryOptions, + 'queryKey' + > & { + queryKey?: UseInfiniteQueryOptions< + GetTagsCustomQuery, + TError, + TData + >['queryKey'] + }, +) => { + return useInfiniteQuery( + (() => { + const { queryKey: optionsQueryKey, ...restOptions } = options + return { + queryKey: + optionsQueryKey ?? variables === undefined + ? ['GetTagsCustom.infinite'] + : ['GetTagsCustom.infinite', variables], + queryFn: (metaData) => + fetcher( + GetTagsCustomDocument, + { ...variables, ...(metaData.pageParam ?? {}) }, + )(), + ...restOptions, + } + })(), + ) +} + +useInfiniteGetTagsCustomQuery.getKey = ( + variables?: GetTagsCustomQueryVariables, +) => + variables === undefined + ? ['GetTagsCustom.infinite'] + : ['GetTagsCustom.infinite', variables] + +useGetTagsCustomQuery.fetcher = ( + variables?: GetTagsCustomQueryVariables, + options?: RequestInit['headers'], +) => + fetcher( + GetTagsCustomDocument, + variables, + options, + ) + +export const GetTriplesDocument = ` + query GetTriples($limit: Int, $offset: Int, $orderBy: [triples_order_by!], $where: triples_bool_exp) { + total: triples_aggregate(where: $where) { + aggregate { + count + } + } + triples(limit: $limit, offset: $offset, order_by: $orderBy, where: $where) { + ...TripleMetadata + ...TripleTxn + ...TripleVaultDetails + creator { + ...AccountMetadata + } + } +} + ${TripleMetadataFragmentDoc} +${AtomValueFragmentDoc} +${AccountMetadataFragmentDoc} +${PositionAggregateFieldsFragmentDoc} +${PositionFieldsFragmentDoc} +${TripleTxnFragmentDoc} +${TripleVaultDetailsFragmentDoc} +${PositionDetailsFragmentDoc}` + +export const useGetTriplesQuery = ( + variables?: GetTriplesQueryVariables, + options?: Omit< + UseQueryOptions, + 'queryKey' + > & { + queryKey?: UseQueryOptions['queryKey'] + }, +) => { + return useQuery({ + queryKey: + variables === undefined ? ['GetTriples'] : ['GetTriples', variables], + queryFn: fetcher( + GetTriplesDocument, + variables, + ), + ...options, + }) +} + +useGetTriplesQuery.document = GetTriplesDocument + +useGetTriplesQuery.getKey = (variables?: GetTriplesQueryVariables) => + variables === undefined ? ['GetTriples'] : ['GetTriples', variables] + +export const useInfiniteGetTriplesQuery = < + TData = InfiniteData, + TError = unknown, +>( + variables: GetTriplesQueryVariables, + options: Omit< + UseInfiniteQueryOptions, + 'queryKey' + > & { + queryKey?: UseInfiniteQueryOptions< + GetTriplesQuery, + TError, + TData + >['queryKey'] + }, +) => { + return useInfiniteQuery( + (() => { + const { queryKey: optionsQueryKey, ...restOptions } = options + return { + queryKey: + optionsQueryKey ?? variables === undefined + ? ['GetTriples.infinite'] + : ['GetTriples.infinite', variables], + queryFn: (metaData) => + fetcher( + GetTriplesDocument, + { ...variables, ...(metaData.pageParam ?? {}) }, + )(), + ...restOptions, + } + })(), + ) +} + +useInfiniteGetTriplesQuery.getKey = (variables?: GetTriplesQueryVariables) => + variables === undefined + ? ['GetTriples.infinite'] + : ['GetTriples.infinite', variables] + +useGetTriplesQuery.fetcher = ( + variables?: GetTriplesQueryVariables, + options?: RequestInit['headers'], +) => + fetcher( + GetTriplesDocument, + variables, + options, + ) + +export const GetTriplesWithAggregatesDocument = ` + query GetTriplesWithAggregates($limit: Int, $offset: Int, $orderBy: [triples_order_by!], $where: triples_bool_exp) { + triples_aggregate( + limit: $limit + offset: $offset + order_by: $orderBy + where: $where + ) { + aggregate { + count + } + nodes { + ...TripleMetadata + ...TripleTxn + ...TripleVaultDetails + creator { + ...AccountMetadata + } + } + } +} + ${TripleMetadataFragmentDoc} +${AtomValueFragmentDoc} +${AccountMetadataFragmentDoc} +${PositionAggregateFieldsFragmentDoc} +${PositionFieldsFragmentDoc} +${TripleTxnFragmentDoc} +${TripleVaultDetailsFragmentDoc} +${PositionDetailsFragmentDoc}` + +export const useGetTriplesWithAggregatesQuery = < + TData = GetTriplesWithAggregatesQuery, + TError = unknown, +>( + variables?: GetTriplesWithAggregatesQueryVariables, + options?: Omit< + UseQueryOptions, + 'queryKey' + > & { + queryKey?: UseQueryOptions< + GetTriplesWithAggregatesQuery, + TError, + TData + >['queryKey'] + }, +) => { + return useQuery({ + queryKey: + variables === undefined + ? ['GetTriplesWithAggregates'] + : ['GetTriplesWithAggregates', variables], + queryFn: fetcher< + GetTriplesWithAggregatesQuery, + GetTriplesWithAggregatesQueryVariables + >(GetTriplesWithAggregatesDocument, variables), + ...options, + }) +} + +useGetTriplesWithAggregatesQuery.document = GetTriplesWithAggregatesDocument + +useGetTriplesWithAggregatesQuery.getKey = ( + variables?: GetTriplesWithAggregatesQueryVariables, +) => + variables === undefined + ? ['GetTriplesWithAggregates'] + : ['GetTriplesWithAggregates', variables] + +export const useInfiniteGetTriplesWithAggregatesQuery = < + TData = InfiniteData, + TError = unknown, +>( + variables: GetTriplesWithAggregatesQueryVariables, + options: Omit< + UseInfiniteQueryOptions, + 'queryKey' + > & { + queryKey?: UseInfiniteQueryOptions< + GetTriplesWithAggregatesQuery, + TError, + TData + >['queryKey'] + }, +) => { + return useInfiniteQuery( + (() => { + const { queryKey: optionsQueryKey, ...restOptions } = options + return { + queryKey: + optionsQueryKey ?? variables === undefined + ? ['GetTriplesWithAggregates.infinite'] + : ['GetTriplesWithAggregates.infinite', variables], + queryFn: (metaData) => + fetcher< + GetTriplesWithAggregatesQuery, + GetTriplesWithAggregatesQueryVariables + >(GetTriplesWithAggregatesDocument, { + ...variables, + ...(metaData.pageParam ?? {}), + })(), + ...restOptions, + } + })(), + ) +} + +useInfiniteGetTriplesWithAggregatesQuery.getKey = ( + variables?: GetTriplesWithAggregatesQueryVariables, +) => + variables === undefined + ? ['GetTriplesWithAggregates.infinite'] + : ['GetTriplesWithAggregates.infinite', variables] + +useGetTriplesWithAggregatesQuery.fetcher = ( + variables?: GetTriplesWithAggregatesQueryVariables, + options?: RequestInit['headers'], +) => + fetcher< + GetTriplesWithAggregatesQuery, + GetTriplesWithAggregatesQueryVariables + >(GetTriplesWithAggregatesDocument, variables, options) + +export const GetTriplesCountDocument = ` + query GetTriplesCount($where: triples_bool_exp) { + triples_aggregate(where: $where) { + total: aggregate { + count + } + } +} + ` + +export const useGetTriplesCountQuery = < + TData = GetTriplesCountQuery, + TError = unknown, +>( + variables?: GetTriplesCountQueryVariables, + options?: Omit< + UseQueryOptions, + 'queryKey' + > & { + queryKey?: UseQueryOptions['queryKey'] + }, +) => { + return useQuery({ + queryKey: + variables === undefined + ? ['GetTriplesCount'] + : ['GetTriplesCount', variables], + queryFn: fetcher( + GetTriplesCountDocument, + variables, + ), + ...options, + }) +} + +useGetTriplesCountQuery.document = GetTriplesCountDocument + +useGetTriplesCountQuery.getKey = (variables?: GetTriplesCountQueryVariables) => + variables === undefined ? ['GetTriplesCount'] : ['GetTriplesCount', variables] + +export const useInfiniteGetTriplesCountQuery = < + TData = InfiniteData, + TError = unknown, +>( + variables: GetTriplesCountQueryVariables, + options: Omit< + UseInfiniteQueryOptions, + 'queryKey' + > & { + queryKey?: UseInfiniteQueryOptions< + GetTriplesCountQuery, + TError, + TData + >['queryKey'] + }, +) => { + return useInfiniteQuery( + (() => { + const { queryKey: optionsQueryKey, ...restOptions } = options + return { + queryKey: + optionsQueryKey ?? variables === undefined + ? ['GetTriplesCount.infinite'] + : ['GetTriplesCount.infinite', variables], + queryFn: (metaData) => + fetcher( + GetTriplesCountDocument, + { ...variables, ...(metaData.pageParam ?? {}) }, + )(), + ...restOptions, + } + })(), + ) +} + +useInfiniteGetTriplesCountQuery.getKey = ( + variables?: GetTriplesCountQueryVariables, +) => + variables === undefined + ? ['GetTriplesCount.infinite'] + : ['GetTriplesCount.infinite', variables] + +useGetTriplesCountQuery.fetcher = ( + variables?: GetTriplesCountQueryVariables, + options?: RequestInit['headers'], +) => + fetcher( + GetTriplesCountDocument, + variables, + options, + ) + +export const GetTripleDocument = ` + query GetTriple($tripleId: numeric!) { + triple(id: $tripleId) { + ...TripleMetadata + ...TripleTxn + ...TripleVaultDetails + creator { + ...AccountMetadata + } + } +} + ${TripleMetadataFragmentDoc} +${AtomValueFragmentDoc} +${AccountMetadataFragmentDoc} +${PositionAggregateFieldsFragmentDoc} +${PositionFieldsFragmentDoc} +${TripleTxnFragmentDoc} +${TripleVaultDetailsFragmentDoc} +${PositionDetailsFragmentDoc}` + +export const useGetTripleQuery = ( + variables: GetTripleQueryVariables, + options?: Omit, 'queryKey'> & { + queryKey?: UseQueryOptions['queryKey'] + }, +) => { + return useQuery({ + queryKey: ['GetTriple', variables], + queryFn: fetcher( + GetTripleDocument, + variables, + ), + ...options, + }) +} + +useGetTripleQuery.document = GetTripleDocument + +useGetTripleQuery.getKey = (variables: GetTripleQueryVariables) => [ + 'GetTriple', + variables, +] + +export const useInfiniteGetTripleQuery = < + TData = InfiniteData, + TError = unknown, +>( + variables: GetTripleQueryVariables, + options: Omit< + UseInfiniteQueryOptions, + 'queryKey' + > & { + queryKey?: UseInfiniteQueryOptions< + GetTripleQuery, + TError, + TData + >['queryKey'] + }, +) => { + return useInfiniteQuery( + (() => { + const { queryKey: optionsQueryKey, ...restOptions } = options + return { + queryKey: optionsQueryKey ?? ['GetTriple.infinite', variables], + queryFn: (metaData) => + fetcher(GetTripleDocument, { + ...variables, + ...(metaData.pageParam ?? {}), + })(), + ...restOptions, + } + })(), + ) +} + +useInfiniteGetTripleQuery.getKey = (variables: GetTripleQueryVariables) => [ + 'GetTriple.infinite', + variables, +] + +useGetTripleQuery.fetcher = ( + variables: GetTripleQueryVariables, + options?: RequestInit['headers'], +) => + fetcher( + GetTripleDocument, + variables, + options, + ) + +export const GetAtomTriplesWithPositionsDocument = ` + query GetAtomTriplesWithPositions($where: triples_bool_exp) { + triples_aggregate(where: $where) { + aggregate { + count + } + } +} + ` + +export const useGetAtomTriplesWithPositionsQuery = < + TData = GetAtomTriplesWithPositionsQuery, + TError = unknown, +>( + variables?: GetAtomTriplesWithPositionsQueryVariables, + options?: Omit< + UseQueryOptions, + 'queryKey' + > & { + queryKey?: UseQueryOptions< + GetAtomTriplesWithPositionsQuery, + TError, + TData + >['queryKey'] + }, +) => { + return useQuery({ + queryKey: + variables === undefined + ? ['GetAtomTriplesWithPositions'] + : ['GetAtomTriplesWithPositions', variables], + queryFn: fetcher< + GetAtomTriplesWithPositionsQuery, + GetAtomTriplesWithPositionsQueryVariables + >(GetAtomTriplesWithPositionsDocument, variables), + ...options, + }) +} + +useGetAtomTriplesWithPositionsQuery.document = + GetAtomTriplesWithPositionsDocument + +useGetAtomTriplesWithPositionsQuery.getKey = ( + variables?: GetAtomTriplesWithPositionsQueryVariables, +) => + variables === undefined + ? ['GetAtomTriplesWithPositions'] + : ['GetAtomTriplesWithPositions', variables] + +export const useInfiniteGetAtomTriplesWithPositionsQuery = < + TData = InfiniteData, + TError = unknown, +>( + variables: GetAtomTriplesWithPositionsQueryVariables, + options: Omit< + UseInfiniteQueryOptions, + 'queryKey' + > & { + queryKey?: UseInfiniteQueryOptions< + GetAtomTriplesWithPositionsQuery, + TError, + TData + >['queryKey'] + }, +) => { + return useInfiniteQuery( + (() => { + const { queryKey: optionsQueryKey, ...restOptions } = options + return { + queryKey: + optionsQueryKey ?? variables === undefined + ? ['GetAtomTriplesWithPositions.infinite'] + : ['GetAtomTriplesWithPositions.infinite', variables], + queryFn: (metaData) => + fetcher< + GetAtomTriplesWithPositionsQuery, + GetAtomTriplesWithPositionsQueryVariables + >(GetAtomTriplesWithPositionsDocument, { + ...variables, + ...(metaData.pageParam ?? {}), + })(), + ...restOptions, + } + })(), + ) +} + +useInfiniteGetAtomTriplesWithPositionsQuery.getKey = ( + variables?: GetAtomTriplesWithPositionsQueryVariables, +) => + variables === undefined + ? ['GetAtomTriplesWithPositions.infinite'] + : ['GetAtomTriplesWithPositions.infinite', variables] + +useGetAtomTriplesWithPositionsQuery.fetcher = ( + variables?: GetAtomTriplesWithPositionsQueryVariables, + options?: RequestInit['headers'], +) => + fetcher< + GetAtomTriplesWithPositionsQuery, + GetAtomTriplesWithPositionsQueryVariables + >(GetAtomTriplesWithPositionsDocument, variables, options) + +export const GetTriplesWithPositionsDocument = ` + query GetTriplesWithPositions($limit: Int, $offset: Int, $orderBy: [triples_order_by!], $where: triples_bool_exp, $address: String) { + total: triples_aggregate(where: $where) { + aggregate { + count + } + } + triples(limit: $limit, offset: $offset, order_by: $orderBy, where: $where) { + id + vault_id + counter_vault_id + subject { + id + vault_id + label + image + } + predicate { + id + vault_id + label + image + } + object { + id + vault_id + label + image + } + vault { + total_shares + position_count + positions(where: {account_id: {_eq: $address}}) { + account { + id + label + image + } + shares + } + } + counter_vault { + total_shares + position_count + positions(where: {account_id: {_eq: $address}}) { + account { + id + label + image + } + shares + } + } + } +} + ` + +export const useGetTriplesWithPositionsQuery = < + TData = GetTriplesWithPositionsQuery, + TError = unknown, +>( + variables?: GetTriplesWithPositionsQueryVariables, + options?: Omit< + UseQueryOptions, + 'queryKey' + > & { + queryKey?: UseQueryOptions< + GetTriplesWithPositionsQuery, + TError, + TData + >['queryKey'] + }, +) => { + return useQuery({ + queryKey: + variables === undefined + ? ['GetTriplesWithPositions'] + : ['GetTriplesWithPositions', variables], + queryFn: fetcher< + GetTriplesWithPositionsQuery, + GetTriplesWithPositionsQueryVariables + >(GetTriplesWithPositionsDocument, variables), + ...options, + }) +} + +useGetTriplesWithPositionsQuery.document = GetTriplesWithPositionsDocument + +useGetTriplesWithPositionsQuery.getKey = ( + variables?: GetTriplesWithPositionsQueryVariables, +) => + variables === undefined + ? ['GetTriplesWithPositions'] + : ['GetTriplesWithPositions', variables] + +export const useInfiniteGetTriplesWithPositionsQuery = < + TData = InfiniteData, + TError = unknown, +>( + variables: GetTriplesWithPositionsQueryVariables, + options: Omit< + UseInfiniteQueryOptions, + 'queryKey' + > & { + queryKey?: UseInfiniteQueryOptions< + GetTriplesWithPositionsQuery, + TError, + TData + >['queryKey'] + }, +) => { + return useInfiniteQuery( + (() => { + const { queryKey: optionsQueryKey, ...restOptions } = options + return { + queryKey: + optionsQueryKey ?? variables === undefined + ? ['GetTriplesWithPositions.infinite'] + : ['GetTriplesWithPositions.infinite', variables], + queryFn: (metaData) => + fetcher< + GetTriplesWithPositionsQuery, + GetTriplesWithPositionsQueryVariables + >(GetTriplesWithPositionsDocument, { + ...variables, + ...(metaData.pageParam ?? {}), + })(), + ...restOptions, + } + })(), + ) +} + +useInfiniteGetTriplesWithPositionsQuery.getKey = ( + variables?: GetTriplesWithPositionsQueryVariables, +) => + variables === undefined + ? ['GetTriplesWithPositions.infinite'] + : ['GetTriplesWithPositions.infinite', variables] + +useGetTriplesWithPositionsQuery.fetcher = ( + variables?: GetTriplesWithPositionsQueryVariables, + options?: RequestInit['headers'], +) => + fetcher( + GetTriplesWithPositionsDocument, + variables, + options, + ) + +export const GetVaultsDocument = ` + query GetVaults($limit: Int, $offset: Int, $orderBy: [vaults_order_by!], $where: vaults_bool_exp) { + vaults_aggregate( + limit: $limit + offset: $offset + order_by: $orderBy + where: $where + ) { + aggregate { + count + } + nodes { + id + atom { + id + label + } + triple { + id + subject { + id + label + } + predicate { + id + label + } + object { + id + label + } + } + positions_aggregate { + nodes { + account { + id + label + } + shares + } + } + current_share_price + total_shares + } + } +} + ` + +export const useGetVaultsQuery = ( + variables?: GetVaultsQueryVariables, + options?: Omit, 'queryKey'> & { + queryKey?: UseQueryOptions['queryKey'] + }, +) => { + return useQuery({ + queryKey: + variables === undefined ? ['GetVaults'] : ['GetVaults', variables], + queryFn: fetcher( + GetVaultsDocument, + variables, + ), + ...options, + }) +} + +useGetVaultsQuery.document = GetVaultsDocument + +useGetVaultsQuery.getKey = (variables?: GetVaultsQueryVariables) => + variables === undefined ? ['GetVaults'] : ['GetVaults', variables] + +export const useInfiniteGetVaultsQuery = < + TData = InfiniteData, + TError = unknown, +>( + variables: GetVaultsQueryVariables, + options: Omit< + UseInfiniteQueryOptions, + 'queryKey' + > & { + queryKey?: UseInfiniteQueryOptions< + GetVaultsQuery, + TError, + TData + >['queryKey'] + }, +) => { + return useInfiniteQuery( + (() => { + const { queryKey: optionsQueryKey, ...restOptions } = options + return { + queryKey: + optionsQueryKey ?? variables === undefined + ? ['GetVaults.infinite'] + : ['GetVaults.infinite', variables], + queryFn: (metaData) => + fetcher(GetVaultsDocument, { + ...variables, + ...(metaData.pageParam ?? {}), + })(), + ...restOptions, + } + })(), + ) +} + +useInfiniteGetVaultsQuery.getKey = (variables?: GetVaultsQueryVariables) => + variables === undefined + ? ['GetVaults.infinite'] + : ['GetVaults.infinite', variables] + +useGetVaultsQuery.fetcher = ( + variables?: GetVaultsQueryVariables, + options?: RequestInit['headers'], +) => + fetcher( + GetVaultsDocument, + variables, + options, + ) + +export const GetVaultDocument = ` + query GetVault($vaultId: numeric!) { + vault(id: $vaultId) { + ...VaultDetails + } +} + ${VaultDetailsFragmentDoc} +${VaultBasicDetailsFragmentDoc}` + +export const useGetVaultQuery = ( + variables: GetVaultQueryVariables, + options?: Omit, 'queryKey'> & { + queryKey?: UseQueryOptions['queryKey'] + }, +) => { + return useQuery({ + queryKey: ['GetVault', variables], + queryFn: fetcher( + GetVaultDocument, + variables, + ), + ...options, + }) +} + +useGetVaultQuery.document = GetVaultDocument + +useGetVaultQuery.getKey = (variables: GetVaultQueryVariables) => [ + 'GetVault', + variables, +] + +export const useInfiniteGetVaultQuery = < + TData = InfiniteData, + TError = unknown, +>( + variables: GetVaultQueryVariables, + options: Omit< + UseInfiniteQueryOptions, + 'queryKey' + > & { + queryKey?: UseInfiniteQueryOptions['queryKey'] + }, +) => { + return useInfiniteQuery( + (() => { + const { queryKey: optionsQueryKey, ...restOptions } = options + return { + queryKey: optionsQueryKey ?? ['GetVault.infinite', variables], + queryFn: (metaData) => + fetcher(GetVaultDocument, { + ...variables, + ...(metaData.pageParam ?? {}), + })(), + ...restOptions, + } + })(), + ) +} + +useInfiniteGetVaultQuery.getKey = (variables: GetVaultQueryVariables) => [ + 'GetVault.infinite', + variables, +] + +useGetVaultQuery.fetcher = ( + variables: GetVaultQueryVariables, + options?: RequestInit['headers'], +) => + fetcher( + GetVaultDocument, + variables, + options, + ) + +export const AccountClaimsAggregate = { + kind: 'Document', + definitions: [ + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'AccountClaimsAggregate' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'accounts' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'claims_aggregate' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'shares' }, + value: { kind: 'EnumValue', value: 'desc' }, + }, + ], + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'count' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'nodes' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'triple' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'shares' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'counter_shares' }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode +export const AccountClaims = { + kind: 'Document', + definitions: [ + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'AccountClaims' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'accounts' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'claims' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'shares' }, + value: { kind: 'EnumValue', value: 'desc' }, + }, + ], + }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'claimsLimit' }, + }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'offset' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'claimsOffset' }, + }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'claimsWhere' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'triple' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'shares' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'counter_shares' }, + }, + ], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode +export const AccountPositionsAggregate = { + kind: 'Document', + definitions: [ + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'AccountPositionsAggregate' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'accounts' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'positions_aggregate' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'shares' }, + value: { kind: 'EnumValue', value: 'desc' }, + }, + ], + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'count' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'nodes' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'shares' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'vault' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'total_shares' }, + }, + { + kind: 'Field', + name: { + kind: 'Name', + value: 'current_share_price', + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'atom' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'label' }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'triple' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode +export const AccountPositions = { + kind: 'Document', + definitions: [ + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'AccountPositions' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'accounts' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'positions' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'shares' }, + value: { kind: 'EnumValue', value: 'desc' }, + }, + ], + }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'positionsLimit' }, + }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'offset' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'positionsOffset' }, + }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'positionsWhere' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'shares' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'vault' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'total_shares' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'current_share_price' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'atom' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'label' }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'triple' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode +export const AccountAtoms = { + kind: 'Document', + definitions: [ + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'AccountAtoms' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'accounts' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'atoms' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'atomsWhere' }, + }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'atomsOrderBy' }, + }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'atomsLimit' }, + }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'offset' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'atomsOffset' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'data' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'vault' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'total_shares' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'positions_aggregate' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'account_id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'Variable', + name: { + kind: 'Name', + value: 'address', + }, + }, + }, + ], + }, + }, + ], + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'nodes' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'account' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'shares' }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode +export const AccountAtomsAggregate = { + kind: 'Document', + definitions: [ + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'AccountAtomsAggregate' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'accounts' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'atoms_aggregate' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'atomsWhere' }, + }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'atomsOrderBy' }, + }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'atomsLimit' }, + }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'offset' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'atomsOffset' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'count' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'sum' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'nodes' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'data' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'vault' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'total_shares' }, + }, + { + kind: 'Field', + name: { + kind: 'Name', + value: 'positions_aggregate', + }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { + kind: 'Name', + value: 'account_id', + }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { + kind: 'Name', + value: '_eq', + }, + value: { + kind: 'Variable', + name: { + kind: 'Name', + value: 'address', + }, + }, + }, + ], + }, + }, + ], + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'nodes' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { + kind: 'Name', + value: 'account', + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { + kind: 'Name', + value: 'id', + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { + kind: 'Name', + value: 'shares', + }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode +export const AccountTriples = { + kind: 'Document', + definitions: [ + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'AccountTriples' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'accounts' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'triples_aggregate' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'triplesWhere' }, + }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'triplesOrderBy' }, + }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'triplesLimit' }, + }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'offset' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'triplesOffset' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'count' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'nodes' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'subject' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'label' }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'predicate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'label' }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'object' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'label' }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode +export const AccountTriplesAggregate = { + kind: 'Document', + definitions: [ + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'AccountTriplesAggregate' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'accounts' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'triples_aggregate' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'triplesWhere' }, + }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'triplesOrderBy' }, + }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'triplesLimit' }, + }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'offset' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'triplesOffset' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'count' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'nodes' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'subject' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'label' }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'predicate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'label' }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'object' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'label' }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode +export const AtomTxn = { + kind: 'Document', + definitions: [ + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'AtomTxn' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'atoms' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'block_number' } }, + { kind: 'Field', name: { kind: 'Name', value: 'block_timestamp' } }, + { kind: 'Field', name: { kind: 'Name', value: 'transaction_hash' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creator_id' } }, + ], + }, + }, + ], +} as unknown as DocumentNode +export const AtomVaultDetails = { + kind: 'Document', + definitions: [ + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'AtomVaultDetails' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'atoms' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'vault_id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'wallet_id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'vault' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'position_count' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'total_shares' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'current_share_price' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'positions_aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'count' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'sum' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'shares' }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'positions' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'account' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'label' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'shares' }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode +export const AccountMetadata = { + kind: 'Document', + definitions: [ + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'AccountMetadata' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'accounts' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'atom_id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + ], + }, + }, + ], +} as unknown as DocumentNode +export const AtomTriple = { + kind: 'Document', + definitions: [ + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'AtomTriple' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'atoms' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'as_subject_triples' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'object' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'data' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'creator' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AccountMetadata' }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'predicate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'data' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'creator' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AccountMetadata' }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'as_predicate_triples' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'subject' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'data' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'creator' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AccountMetadata' }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'object' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'data' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'creator' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AccountMetadata' }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'as_object_triples' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'subject' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'data' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'creator' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AccountMetadata' }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'predicate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'data' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'creator' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AccountMetadata' }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'AccountMetadata' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'accounts' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'atom_id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + ], + }, + }, + ], +} as unknown as DocumentNode +export const AtomVaultDetailsWithPositions = { + kind: 'Document', + definitions: [ + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'AtomVaultDetailsWithPositions' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'atoms' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'vault' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'total_shares' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'current_share_price' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'positions_aggregate' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'account_id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_in' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'addresses' }, + }, + }, + ], + }, + }, + ], + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'sum' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'shares' }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'nodes' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'account' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'shares' }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode +export const DepositEventFragment = { + kind: 'Document', + definitions: [ + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'DepositEventFragment' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'events' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'deposit' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'vault_id' } }, + { + kind: 'Field', + name: { + kind: 'Name', + value: 'sender_assets_after_total_fees', + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'shares_for_receiver' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'receiver' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'sender' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode +export const RedemptionEventFragment = { + kind: 'Document', + definitions: [ + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'RedemptionEventFragment' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'events' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'redemption' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'vault_id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'receiver_id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'shares_redeemed_by_sender' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'assets_for_receiver' }, + }, + ], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode +export const AtomValue = { + kind: 'Document', + definitions: [ + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'AtomValue' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'atoms' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'value' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'person' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'description' }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'url' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'thing' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'description' }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'url' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'organization' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'description' }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'url' } }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode +export const AtomMetadata = { + kind: 'Document', + definitions: [ + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'AtomMetadata' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'atoms' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'data' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { kind: 'Field', name: { kind: 'Name', value: 'wallet_id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'creator' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + ], + }, + }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AtomValue' }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'AtomValue' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'atoms' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'value' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'person' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'description' }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'url' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'thing' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'description' }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'url' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'organization' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'description' }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'url' } }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode +export const PositionAggregateFields = { + kind: 'Document', + definitions: [ + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'PositionAggregateFields' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'positions_aggregate' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'count' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'sum' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'shares' }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode +export const PositionFields = { + kind: 'Document', + definitions: [ + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'PositionFields' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'positions' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'account' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'shares' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'vault' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'total_shares' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'current_share_price' }, + }, + ], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode +export const TripleMetadata = { + kind: 'Document', + definitions: [ + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'TripleMetadata' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'triples' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'subject_id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'predicate_id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'object_id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'subject' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'data' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AtomValue' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'creator' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AccountMetadata' }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'predicate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'data' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AtomValue' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'creator' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AccountMetadata' }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'object' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'data' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AtomValue' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'creator' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AccountMetadata' }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'vault' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'total_shares' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'current_share_price' }, + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'allPositions' }, + name: { kind: 'Name', value: 'positions_aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'PositionAggregateFields', + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'positions' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PositionFields' }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'counter_vault' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'total_shares' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'current_share_price' }, + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'allPositions' }, + name: { kind: 'Name', value: 'positions_aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'PositionAggregateFields', + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'positions' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PositionFields' }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'AccountMetadata' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'accounts' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'atom_id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'AtomValue' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'atoms' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'value' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'person' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'description' }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'url' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'thing' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'description' }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'url' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'organization' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'description' }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'url' } }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'PositionFields' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'positions' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'account' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'shares' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'vault' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'total_shares' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'current_share_price' }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'PositionAggregateFields' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'positions_aggregate' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'count' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'sum' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'shares' }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode +export const EventDetails = { + kind: 'Document', + definitions: [ + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'EventDetails' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'events' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'block_number' } }, + { kind: 'Field', name: { kind: 'Name', value: 'block_timestamp' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { kind: 'Field', name: { kind: 'Name', value: 'transaction_hash' } }, + { kind: 'Field', name: { kind: 'Name', value: 'atom_id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'triple_id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'deposit_id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'redemption_id' } }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'DepositEventFragment' }, + }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'RedemptionEventFragment' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'atom' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AtomMetadata' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'vault' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'total_shares' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'position_count' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'positions' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'account_id' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'shares' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'account' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'label' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'image' }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'triple' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'TripleMetadata' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'vault' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'total_shares' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'position_count' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'positions' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'account_id' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'shares' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'account' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'label' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'image' }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'counter_vault' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'total_shares' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'position_count' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'positions' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'account_id' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'shares' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'account' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'label' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'image' }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'AccountMetadata' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'accounts' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'atom_id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'AtomValue' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'atoms' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'value' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'person' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'description' }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'url' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'thing' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'description' }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'url' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'organization' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'description' }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'url' } }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'AtomMetadata' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'atoms' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'data' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { kind: 'Field', name: { kind: 'Name', value: 'wallet_id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'creator' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + ], + }, + }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AtomValue' }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'DepositEventFragment' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'events' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'deposit' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'vault_id' } }, + { + kind: 'Field', + name: { + kind: 'Name', + value: 'sender_assets_after_total_fees', + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'shares_for_receiver' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'receiver' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'sender' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'PositionFields' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'positions' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'account' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'shares' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'vault' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'total_shares' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'current_share_price' }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'PositionAggregateFields' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'positions_aggregate' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'count' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'sum' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'shares' }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'RedemptionEventFragment' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'events' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'redemption' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'vault_id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'receiver_id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'shares_redeemed_by_sender' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'assets_for_receiver' }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'TripleMetadata' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'triples' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'subject_id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'predicate_id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'object_id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'subject' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'data' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AtomValue' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'creator' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AccountMetadata' }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'predicate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'data' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AtomValue' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'creator' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AccountMetadata' }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'object' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'data' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AtomValue' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'creator' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AccountMetadata' }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'vault' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'total_shares' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'current_share_price' }, + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'allPositions' }, + name: { kind: 'Name', value: 'positions_aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'PositionAggregateFields', + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'positions' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PositionFields' }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'counter_vault' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'total_shares' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'current_share_price' }, + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'allPositions' }, + name: { kind: 'Name', value: 'positions_aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'PositionAggregateFields', + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'positions' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PositionFields' }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode +export const FollowMetadata = { + kind: 'Document', + definitions: [ + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'FollowMetadata' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'triples' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'subject' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'predicate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'object' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'vault' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'total_shares' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'current_share_price' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'positions_aggregate' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'positionsWhere' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'count' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'sum' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'shares' }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'positions' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'positionsLimit' }, + }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'offset' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'positionsOffset' }, + }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'positionsOrderBy' }, + }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'positionsWhere' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'account' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'label' }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'shares' }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode +export const FollowAggregate = { + kind: 'Document', + definitions: [ + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'FollowAggregate' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'triples_aggregate' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'count' } }, + ], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode +export const StatDetails = { + kind: 'Document', + definitions: [ + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'StatDetails' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'stats' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'contract_balance' } }, + { kind: 'Field', name: { kind: 'Name', value: 'total_accounts' } }, + { kind: 'Field', name: { kind: 'Name', value: 'total_fees' } }, + { kind: 'Field', name: { kind: 'Name', value: 'total_atoms' } }, + { kind: 'Field', name: { kind: 'Name', value: 'total_triples' } }, + { kind: 'Field', name: { kind: 'Name', value: 'total_positions' } }, + { kind: 'Field', name: { kind: 'Name', value: 'total_signals' } }, + ], + }, + }, + ], +} as unknown as DocumentNode +export const TripleTxn = { + kind: 'Document', + definitions: [ + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'TripleTxn' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'triples' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'block_number' } }, + { kind: 'Field', name: { kind: 'Name', value: 'block_timestamp' } }, + { kind: 'Field', name: { kind: 'Name', value: 'transaction_hash' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creator_id' } }, + ], + }, + }, + ], +} as unknown as DocumentNode +export const PositionDetails = { kind: 'Document', definitions: [ { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'AccountClaimsAggregate' }, + name: { kind: 'Name', value: 'PositionDetails' }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'accounts' }, + name: { kind: 'Name', value: 'positions' }, }, selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'claims_aggregate' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'order_by' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'shares' }, - value: { kind: 'EnumValue', value: 'desc' }, - }, - ], - }, - }, - ], + name: { kind: 'Name', value: 'account' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'vault' }, selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'aggregate' }, + name: { kind: 'Name', value: 'atom' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'count' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, ], }, }, { kind: 'Field', - name: { kind: 'Name', value: 'nodes' }, + name: { kind: 'Name', value: 'triple' }, selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'vault' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'position_count' }, + }, + { + kind: 'Field', + name: { + kind: 'Name', + value: 'positions_aggregate', + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'sum' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { + kind: 'Name', + value: 'shares', + }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'counter_vault' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'position_count' }, + }, + { + kind: 'Field', + name: { + kind: 'Name', + value: 'positions_aggregate', + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'sum' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { + kind: 'Name', + value: 'shares', + }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'subject' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'data' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'label' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'image' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'emoji' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'type' }, + }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AtomValue' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'creator' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'AccountMetadata', + }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'predicate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'data' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'label' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'image' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'emoji' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'type' }, + }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AtomValue' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'creator' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'AccountMetadata', + }, + }, + ], + }, + }, + ], + }, + }, { kind: 'Field', - name: { kind: 'Name', value: 'triple' }, + name: { kind: 'Name', value: 'object' }, selectionSet: { kind: 'SelectionSet', selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'data' }, + }, { kind: 'Field', name: { kind: 'Name', value: 'id' }, @@ -15644,102 +22840,133 @@ export const AccountClaimsAggregate = { kind: 'Field', name: { kind: 'Name', value: 'label' }, }, + { + kind: 'Field', + name: { kind: 'Name', value: 'image' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'emoji' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'type' }, + }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AtomValue' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'creator' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'AccountMetadata', + }, + }, + ], + }, + }, ], }, }, - { - kind: 'Field', - name: { kind: 'Name', value: 'shares' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'counterShares' }, - }, ], }, }, ], }, }, + { kind: 'Field', name: { kind: 'Name', value: 'shares' } }, + { kind: 'Field', name: { kind: 'Name', value: 'vault_id' } }, ], }, }, - ], -} as unknown as DocumentNode -export const AccountClaims = { - kind: 'Document', - definitions: [ { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'AccountClaims' }, + name: { kind: 'Name', value: 'AccountMetadata' }, typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'accounts' }, }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'atom_id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'AtomValue' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'atoms' }, + }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'claims' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'order_by' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'shares' }, - value: { kind: 'EnumValue', value: 'desc' }, - }, - ], - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'limit' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'claimsLimit' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'offset' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'claimsOffset' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'where' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'claimsWhere' }, - }, - }, - ], + name: { kind: 'Name', value: 'value' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'triple' }, + name: { kind: 'Name', value: 'person' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'description' }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'url' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'thing' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'description' }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'url' } }, ], }, }, - { kind: 'Field', name: { kind: 'Name', value: 'shares' } }, { kind: 'Field', - name: { kind: 'Name', value: 'counterShares' }, + name: { kind: 'Name', value: 'organization' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'description' }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'url' } }, + ], + }, }, ], }, @@ -15749,119 +22976,58 @@ export const AccountClaims = { }, ], } as unknown as DocumentNode -export const AccountPositionsAggregate = { +export const TripleVaultDetails = { kind: 'Document', definitions: [ { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'AccountPositionsAggregate' }, + name: { kind: 'Name', value: 'TripleVaultDetails' }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'accounts' }, + name: { kind: 'Name', value: 'triples' }, }, selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'vault_id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'counter_vault_id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'positions_aggregate' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'order_by' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'shares' }, - value: { kind: 'EnumValue', value: 'desc' }, - }, - ], - }, - }, - ], + name: { kind: 'Name', value: 'vault' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'aggregate' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'count' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'nodes' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'shares' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'vault' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'totalShares' }, - }, - { - kind: 'Field', - name: { - kind: 'Name', - value: 'currentSharePrice', - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'atom' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'label' }, - }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'triple' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'label' }, - }, - ], - }, - }, - ], - }, + name: { kind: 'Name', value: 'positions' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PositionDetails' }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'counter_vault' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'positions' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PositionDetails' }, }, ], }, @@ -15872,118 +23038,85 @@ export const AccountPositionsAggregate = { ], }, }, - ], -} as unknown as DocumentNode -export const AccountPositions = { - kind: 'Document', - definitions: [ { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'AccountPositions' }, + name: { kind: 'Name', value: 'AccountMetadata' }, typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'accounts' }, }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'atom_id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'AtomValue' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'atoms' }, + }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'positions' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'order_by' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'shares' }, - value: { kind: 'EnumValue', value: 'desc' }, - }, - ], - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'limit' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'positionsLimit' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'offset' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'positionsOffset' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'where' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'positionsWhere' }, - }, - }, - ], + name: { kind: 'Name', value: 'value' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'shares' } }, { kind: 'Field', - name: { kind: 'Name', value: 'vault' }, + name: { kind: 'Name', value: 'person' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'totalShares' }, - }, + { kind: 'Field', name: { kind: 'Name', value: 'name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, { kind: 'Field', - name: { kind: 'Name', value: 'currentSharePrice' }, + name: { kind: 'Name', value: 'description' }, }, + { kind: 'Field', name: { kind: 'Name', value: 'url' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'thing' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, { kind: 'Field', - name: { kind: 'Name', value: 'atom' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'label' }, - }, - ], - }, + name: { kind: 'Name', value: 'description' }, }, + { kind: 'Field', name: { kind: 'Name', value: 'url' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'organization' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, { kind: 'Field', - name: { kind: 'Name', value: 'triple' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'label' }, - }, - ], - }, + name: { kind: 'Name', value: 'description' }, }, + { kind: 'Field', name: { kind: 'Name', value: 'url' } }, ], }, }, @@ -15993,71 +23126,58 @@ export const AccountPositions = { ], }, }, - ], -} as unknown as DocumentNode -export const AccountCreatedAtomsAggregate = { - kind: 'Document', - definitions: [ { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'AccountCreatedAtomsAggregate' }, + name: { kind: 'Name', value: 'PositionDetails' }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'accounts' }, + name: { kind: 'Name', value: 'positions' }, }, selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'createdAtoms_aggregate' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'where' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'atomsWhere' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'order_by' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'atomsOrderBy' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'limit' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'atomsLimit' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'offset' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'atomsOffset' }, - }, - }, - ], + name: { kind: 'Name', value: 'account' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'vault' }, selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'aggregate' }, + name: { kind: 'Name', value: 'atom' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'count' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'triple' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'sum' }, + name: { kind: 'Name', value: 'vault' }, selectionSet: { kind: 'SelectionSet', selections: [ @@ -16065,30 +23185,63 @@ export const AccountCreatedAtomsAggregate = { kind: 'Field', name: { kind: 'Name', value: 'id' }, }, + { + kind: 'Field', + name: { kind: 'Name', value: 'position_count' }, + }, + { + kind: 'Field', + name: { + kind: 'Name', + value: 'positions_aggregate', + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'sum' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { + kind: 'Name', + value: 'shares', + }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, ], }, }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'nodes' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { kind: 'Field', name: { kind: 'Name', value: 'data' } }, { kind: 'Field', - name: { kind: 'Name', value: 'vault' }, + name: { kind: 'Name', value: 'counter_vault' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'totalShares' }, + name: { kind: 'Name', value: 'id' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'position_count' }, }, { kind: 'Field', @@ -16096,58 +23249,18 @@ export const AccountCreatedAtomsAggregate = { kind: 'Name', value: 'positions_aggregate', }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'where' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { - kind: 'Name', - value: 'accountId', - }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { - kind: 'Name', - value: '_eq', - }, - value: { - kind: 'Variable', - name: { - kind: 'Name', - value: 'address', - }, - }, - }, - ], - }, - }, - ], - }, - }, - ], selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'nodes' }, + name: { kind: 'Name', value: 'aggregate' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { - kind: 'Name', - value: 'account', - }, + name: { kind: 'Name', value: 'sum' }, selectionSet: { kind: 'SelectionSet', selections: [ @@ -16155,19 +23268,12 @@ export const AccountCreatedAtomsAggregate = { kind: 'Field', name: { kind: 'Name', - value: 'id', + value: 'shares', }, }, ], }, }, - { - kind: 'Field', - name: { - kind: 'Name', - value: 'shares', - }, - }, ], }, }, @@ -16177,137 +23283,162 @@ export const AccountCreatedAtomsAggregate = { ], }, }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode -export const AccountCreatedAtoms = { - kind: 'Document', - definitions: [ - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'AccountCreatedAtoms' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'accounts' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'createdAtoms' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'where' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'atomsWhere' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'order_by' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'atomsOrderBy' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'limit' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'atomsLimit' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'offset' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'atomsOffset' }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { kind: 'Field', name: { kind: 'Name', value: 'data' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'vault' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'totalShares' }, + name: { kind: 'Name', value: 'subject' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'data' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'label' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'image' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'emoji' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'type' }, + }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AtomValue' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'creator' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'AccountMetadata', + }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'predicate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'data' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'label' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'image' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'emoji' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'type' }, + }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AtomValue' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'creator' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'AccountMetadata', + }, + }, + ], + }, + }, + ], + }, }, { kind: 'Field', - name: { kind: 'Name', value: 'positions' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'where' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'accountId' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: '_eq' }, - value: { - kind: 'Variable', - name: { - kind: 'Name', - value: 'address', - }, - }, - }, - ], - }, - }, - ], - }, - }, - ], + name: { kind: 'Name', value: 'object' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'account' }, + name: { kind: 'Name', value: 'data' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'label' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'image' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'emoji' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'type' }, + }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AtomValue' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'creator' }, selectionSet: { kind: 'SelectionSet', selections: [ { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'AccountMetadata', + }, }, ], }, }, - { - kind: 'Field', - name: { kind: 'Name', value: 'shares' }, - }, ], }, }, @@ -16317,268 +23448,184 @@ export const AccountCreatedAtoms = { ], }, }, + { kind: 'Field', name: { kind: 'Name', value: 'shares' } }, + { kind: 'Field', name: { kind: 'Name', value: 'vault_id' } }, ], }, }, ], } as unknown as DocumentNode -export const AccountCreatedTriples = { +export const VaultBasicDetails = { kind: 'Document', definitions: [ { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'AccountCreatedTriples' }, + name: { kind: 'Name', value: 'VaultBasicDetails' }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'accounts' }, + name: { kind: 'Name', value: 'vaults' }, }, selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'createdTriples_aggregate' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'where' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'triplesWhere' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'order_by' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'triplesOrderBy' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'limit' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'triplesLimit' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'offset' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'triplesOffset' }, - }, - }, - ], + name: { kind: 'Name', value: 'atom' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'triple' }, selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'aggregate' }, + name: { kind: 'Name', value: 'subject' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'count' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, ], }, }, { kind: 'Field', - name: { kind: 'Name', value: 'nodes' }, + name: { kind: 'Name', value: 'predicate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'object' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'subject' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'label' }, - }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'predicate' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'label' }, - }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'object' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'label' }, - }, - ], - }, - }, ], }, }, ], }, }, + { + kind: 'Field', + name: { kind: 'Name', value: 'current_share_price' }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'total_shares' } }, + ], + }, + }, + ], +} as unknown as DocumentNode +export const VaultFilteredPositions = { + kind: 'Document', + definitions: [ + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'VaultFilteredPositions' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'vaults' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'positions' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'account_id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_in' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'addresses' }, + }, + }, + ], + }, + }, + ], + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PositionFields' }, + }, + ], + }, + }, ], }, }, - ], -} as unknown as DocumentNode -export const AccountCreatedTriplesAggregate = { - kind: 'Document', - definitions: [ { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'AccountCreatedTriplesAggregate' }, + name: { kind: 'Name', value: 'PositionFields' }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'accounts' }, + name: { kind: 'Name', value: 'positions' }, }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'createdTriples_aggregate' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'where' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'triplesWhere' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'order_by' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'triplesOrderBy' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'limit' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'triplesLimit' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'offset' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'triplesOffset' }, - }, - }, - ], + name: { kind: 'Name', value: 'account' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'shares' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'vault' }, selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'aggregate' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'count' } }, - ], - }, + name: { kind: 'Name', value: 'total_shares' }, }, { kind: 'Field', - name: { kind: 'Name', value: 'nodes' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'subject' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'label' }, - }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'predicate' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'label' }, - }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'object' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'label' }, - }, - ], - }, - }, - ], - }, + name: { kind: 'Name', value: 'current_share_price' }, }, ], }, @@ -16588,335 +23635,335 @@ export const AccountCreatedTriplesAggregate = { }, ], } as unknown as DocumentNode -export const AtomTxn = { +export const VaultDetailsWithFilteredPositions = { kind: 'Document', definitions: [ { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'AtomTxn' }, + name: { kind: 'Name', value: 'VaultDetailsWithFilteredPositions' }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'atoms' }, + name: { kind: 'Name', value: 'vaults' }, }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'blockNumber' } }, - { kind: 'Field', name: { kind: 'Name', value: 'blockTimestamp' } }, - { kind: 'Field', name: { kind: 'Name', value: 'transactionHash' } }, - { kind: 'Field', name: { kind: 'Name', value: 'creatorId' } }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'VaultBasicDetails' }, + }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'VaultFilteredPositions' }, + }, ], }, }, - ], -} as unknown as DocumentNode -export const AtomVaultDetails = { - kind: 'Document', - definitions: [ { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'AtomVaultDetails' }, + name: { kind: 'Name', value: 'PositionFields' }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'atoms' }, + name: { kind: 'Name', value: 'positions' }, }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'vaultId' } }, - { kind: 'Field', name: { kind: 'Name', value: 'walletId' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'account' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'shares' } }, { kind: 'Field', name: { kind: 'Name', value: 'vault' }, selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'positionCount' }, + name: { kind: 'Name', value: 'total_shares' }, }, - { kind: 'Field', name: { kind: 'Name', value: 'totalShares' } }, { kind: 'Field', - name: { kind: 'Name', value: 'currentSharePrice' }, + name: { kind: 'Name', value: 'current_share_price' }, }, + ], + }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'VaultBasicDetails' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'vaults' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'atom' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'triple' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'positions_aggregate' }, + name: { kind: 'Name', value: 'subject' }, selectionSet: { kind: 'SelectionSet', selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'aggregate' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'count' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'sum' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'shares' }, - }, - ], - }, - }, - ], - }, - }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, ], }, }, { kind: 'Field', - name: { kind: 'Name', value: 'positions' }, + name: { kind: 'Name', value: 'predicate' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'account' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'label' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'shares' }, - }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'object' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, ], }, }, ], }, }, + { + kind: 'Field', + name: { kind: 'Name', value: 'current_share_price' }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'total_shares' } }, ], }, }, - ], -} as unknown as DocumentNode -export const AccountMetadata = { - kind: 'Document', - definitions: [ { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'AccountMetadata' }, + name: { kind: 'Name', value: 'VaultFilteredPositions' }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'accounts' }, + name: { kind: 'Name', value: 'vaults' }, }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'atomId' } }, - { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'positions' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'account_id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_in' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'addresses' }, + }, + }, + ], + }, + }, + ], + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PositionFields' }, + }, + ], + }, + }, ], }, }, ], } as unknown as DocumentNode -export const AtomTriple = { +export const TripleVaultCouterVaultDetailsWithPositions = { kind: 'Document', definitions: [ { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'AtomTriple' }, + name: { + kind: 'Name', + value: 'TripleVaultCouterVaultDetailsWithPositions', + }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'atoms' }, + name: { kind: 'Name', value: 'triples' }, }, selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'vault_id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'counter_vault_id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'asSubject' }, + name: { kind: 'Name', value: 'vault' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, { - kind: 'Field', - name: { kind: 'Name', value: 'object' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'data' } }, - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, - { kind: 'Field', name: { kind: 'Name', value: 'type' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'creator' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AccountMetadata' }, - }, - ], - }, - }, - ], + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'VaultDetailsWithFilteredPositions', }, }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'counter_vault' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ { - kind: 'Field', - name: { kind: 'Name', value: 'predicate' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'data' } }, - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, - { kind: 'Field', name: { kind: 'Name', value: 'type' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'creator' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AccountMetadata' }, - }, - ], - }, - }, - ], + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'VaultDetailsWithFilteredPositions', }, }, ], }, }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'PositionFields' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'positions' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'asPredicate' }, + name: { kind: 'Name', value: 'account' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'shares' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'vault' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'subject' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'data' } }, - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, - { kind: 'Field', name: { kind: 'Name', value: 'type' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'creator' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AccountMetadata' }, - }, - ], - }, - }, - ], - }, + name: { kind: 'Name', value: 'total_shares' }, }, { kind: 'Field', - name: { kind: 'Name', value: 'object' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'data' } }, - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, - { kind: 'Field', name: { kind: 'Name', value: 'type' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'creator' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AccountMetadata' }, - }, - ], - }, - }, - ], - }, + name: { kind: 'Name', value: 'current_share_price' }, }, ], }, }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'VaultBasicDetails' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'vaults' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'asObject' }, + name: { kind: 'Name', value: 'atom' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'triple' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', name: { kind: 'Name', value: 'subject' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'data' } }, { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, - { kind: 'Field', name: { kind: 'Name', value: 'type' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'creator' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AccountMetadata' }, - }, - ], - }, - }, ], }, }, @@ -16926,162 +23973,175 @@ export const AtomTriple = { selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'data' } }, { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, - { kind: 'Field', name: { kind: 'Name', value: 'type' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'creator' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AccountMetadata' }, - }, - ], - }, - }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'object' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, ], }, }, ], }, }, + { + kind: 'Field', + name: { kind: 'Name', value: 'current_share_price' }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'total_shares' } }, ], }, }, { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'AccountMetadata' }, + name: { kind: 'Name', value: 'VaultFilteredPositions' }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'accounts' }, + name: { kind: 'Name', value: 'vaults' }, }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'atomId' } }, - { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'positions' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'account_id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_in' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'addresses' }, + }, + }, + ], + }, + }, + ], + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PositionFields' }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'VaultDetailsWithFilteredPositions' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'vaults' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'VaultBasicDetails' }, + }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'VaultFilteredPositions' }, + }, ], }, }, ], } as unknown as DocumentNode -export const AtomVaultDetailsWithPositions = { +export const VaultUnfilteredPositions = { kind: 'Document', definitions: [ { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'AtomVaultDetailsWithPositions' }, + name: { kind: 'Name', value: 'VaultUnfilteredPositions' }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'atoms' }, + name: { kind: 'Name', value: 'vaults' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'positions' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PositionFields' }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'PositionFields' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'positions' }, }, selectionSet: { kind: 'SelectionSet', selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'account' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'shares' } }, { kind: 'Field', name: { kind: 'Name', value: 'vault' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'totalShares' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'currentSharePrice' }, + name: { kind: 'Name', value: 'total_shares' }, }, { kind: 'Field', - name: { kind: 'Name', value: 'positions_aggregate' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'where' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'accountId' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: '_in' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'addresses' }, - }, - }, - ], - }, - }, - ], - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'aggregate' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'sum' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'shares' }, - }, - ], - }, - }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'nodes' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'account' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'shares' }, - }, - ], - }, - }, - ], - }, + name: { kind: 'Name', value: 'current_share_price' }, }, ], }, @@ -17091,90 +24151,123 @@ export const AtomVaultDetailsWithPositions = { }, ], } as unknown as DocumentNode -export const DepositEventFragment = { +export const VaultDetails = { kind: 'Document', definitions: [ { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'DepositEventFragment' }, + name: { kind: 'Name', value: 'VaultDetails' }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'events' }, + name: { kind: 'Name', value: 'vaults' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'VaultBasicDetails' }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'VaultBasicDetails' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'vaults' }, }, selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'atom' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + ], + }, + }, { kind: 'Field', - name: { kind: 'Name', value: 'deposit' }, + name: { kind: 'Name', value: 'triple' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'vaultId' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'senderAssetsAfterTotalFees' }, - }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'sharesForReceiver' }, + name: { kind: 'Name', value: 'subject' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + ], + }, }, { kind: 'Field', - name: { kind: 'Name', value: 'receiver' }, + name: { kind: 'Name', value: 'predicate' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, ], }, }, { kind: 'Field', - name: { kind: 'Name', value: 'sender' }, + name: { kind: 'Name', value: 'object' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, ], }, }, ], }, }, + { + kind: 'Field', + name: { kind: 'Name', value: 'current_share_price' }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'total_shares' } }, ], }, }, ], } as unknown as DocumentNode -export const RedemptionEventFragment = { +export const VaultPositionsAggregate = { kind: 'Document', definitions: [ { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'RedemptionEventFragment' }, + name: { kind: 'Name', value: 'VaultPositionsAggregate' }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'events' }, + name: { kind: 'Name', value: 'vaults' }, }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'redemption' }, + name: { kind: 'Name', value: 'positions_aggregate' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'vaultId' } }, - { kind: 'Field', name: { kind: 'Name', value: 'receiverId' } }, { - kind: 'Field', - name: { kind: 'Name', value: 'sharesRedeemedBySender' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'assetsForReceiver' }, + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PositionAggregateFields' }, }, ], }, @@ -17182,72 +24275,33 @@ export const RedemptionEventFragment = { ], }, }, - ], -} as unknown as DocumentNode -export const AtomValue = { - kind: 'Document', - definitions: [ { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'AtomValue' }, + name: { kind: 'Name', value: 'PositionAggregateFields' }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'atoms' }, + name: { kind: 'Name', value: 'positions_aggregate' }, }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'value' }, + name: { kind: 'Name', value: 'aggregate' }, selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'count' } }, { kind: 'Field', - name: { kind: 'Name', value: 'person' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'description' }, - }, - { kind: 'Field', name: { kind: 'Name', value: 'url' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'thing' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'description' }, - }, - { kind: 'Field', name: { kind: 'Name', value: 'url' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'organization' }, + name: { kind: 'Name', value: 'sum' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, { kind: 'Field', - name: { kind: 'Name', value: 'description' }, + name: { kind: 'Name', value: 'shares' }, }, - { kind: 'Field', name: { kind: 'Name', value: 'url' } }, ], }, }, @@ -17259,108 +24313,187 @@ export const AtomValue = { }, ], } as unknown as DocumentNode -export const AtomMetadata = { +export const VaultFieldsForTriple = { kind: 'Document', definitions: [ { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'AtomMetadata' }, + name: { kind: 'Name', value: 'VaultFieldsForTriple' }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'atoms' }, + name: { kind: 'Name', value: 'vaults' }, }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'data' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, - { kind: 'Field', name: { kind: 'Name', value: 'type' } }, - { kind: 'Field', name: { kind: 'Name', value: 'walletId' } }, + { kind: 'Field', name: { kind: 'Name', value: 'total_shares' } }, { kind: 'Field', - name: { kind: 'Name', value: 'creator' }, + name: { kind: 'Name', value: 'current_share_price' }, + }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'VaultPositionsAggregate' }, + }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'VaultFilteredPositions' }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'PositionFields' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'positions' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'account' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, ], }, }, + { kind: 'Field', name: { kind: 'Name', value: 'shares' } }, { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AtomValue' }, + kind: 'Field', + name: { kind: 'Name', value: 'vault' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'total_shares' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'current_share_price' }, + }, + ], + }, }, ], }, }, { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'AtomValue' }, + name: { kind: 'Name', value: 'PositionAggregateFields' }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'atoms' }, + name: { kind: 'Name', value: 'positions_aggregate' }, }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'value' }, + name: { kind: 'Name', value: 'aggregate' }, selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'count' } }, { kind: 'Field', - name: { kind: 'Name', value: 'person' }, + name: { kind: 'Name', value: 'sum' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, { kind: 'Field', - name: { kind: 'Name', value: 'description' }, + name: { kind: 'Name', value: 'shares' }, }, - { kind: 'Field', name: { kind: 'Name', value: 'url' } }, ], }, }, + ], + }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'VaultPositionsAggregate' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'vaults' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'positions_aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ { - kind: 'Field', - name: { kind: 'Name', value: 'thing' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'description' }, - }, - { kind: 'Field', name: { kind: 'Name', value: 'url' } }, - ], - }, + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PositionAggregateFields' }, }, - { - kind: 'Field', - name: { kind: 'Name', value: 'organization' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'description' }, - }, - { kind: 'Field', name: { kind: 'Name', value: 'url' } }, - ], - }, + ], + }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'VaultFilteredPositions' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'vaults' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'positions' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'account_id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_in' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'addresses' }, + }, + }, + ], + }, + }, + ], + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PositionFields' }, }, ], }, @@ -17370,35 +24503,279 @@ export const AtomMetadata = { }, ], } as unknown as DocumentNode -export const PositionAggregateFields = { +export const GetAccounts = { kind: 'Document', definitions: [ { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'PositionAggregateFields' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'positions_aggregate' }, - }, + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetAccounts' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' }, + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' }, + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' }, + }, + type: { + kind: 'ListType', + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'accounts_order_by' }, + }, + }, + }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' }, + }, + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'accounts_bool_exp' }, + }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'claimsLimit' }, + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'claimsOffset' }, + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'claimsWhere' }, + }, + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'claims_bool_exp' }, + }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'positionsLimit' }, + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'positionsOffset' }, + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'positionsWhere' }, + }, + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'positions_bool_exp' }, + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'aggregate' }, + name: { kind: 'Name', value: 'accounts' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' }, + }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'offset' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' }, + }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' }, + }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' }, + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'count' } }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AccountMetadata' }, + }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AccountClaims' }, + }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AccountPositions' }, + }, { kind: 'Field', - name: { kind: 'Name', value: 'sum' }, + name: { kind: 'Name', value: 'atom' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'shares' }, + name: { kind: 'Name', value: 'vault_id' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'wallet_id' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'vault' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'position_count' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'total_shares' }, + }, + { + kind: 'Field', + name: { + kind: 'Name', + value: 'positions_aggregate', + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { + kind: 'Name', + value: 'count', + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'sum' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { + kind: 'Name', + value: 'shares', + }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'positions' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'account' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { + kind: 'Name', + value: 'label', + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'shares' }, + }, + ], + }, + }, + ], + }, }, ], }, @@ -17409,232 +24786,203 @@ export const PositionAggregateFields = { ], }, }, - ], -} as unknown as DocumentNode -export const PositionFields = { - kind: 'Document', - definitions: [ { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'PositionFields' }, + name: { kind: 'Name', value: 'AccountMetadata' }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'positions' }, + name: { kind: 'Name', value: 'accounts' }, }, selectionSet: { kind: 'SelectionSet', selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'account' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - ], - }, - }, - { kind: 'Field', name: { kind: 'Name', value: 'shares' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'atom_id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, ], }, }, - ], -} as unknown as DocumentNode -export const TripleMetadata = { - kind: 'Document', - definitions: [ { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'TripleMetadata' }, + name: { kind: 'Name', value: 'AccountClaims' }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'triples' }, + name: { kind: 'Name', value: 'accounts' }, }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'subjectId' } }, - { kind: 'Field', name: { kind: 'Name', value: 'predicateId' } }, - { kind: 'Field', name: { kind: 'Name', value: 'objectId' } }, { kind: 'Field', - name: { kind: 'Name', value: 'subject' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'data' } }, - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, - { kind: 'Field', name: { kind: 'Name', value: 'type' } }, - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AtomValue' }, + name: { kind: 'Name', value: 'claims' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'shares' }, + value: { kind: 'EnumValue', value: 'desc' }, + }, + ], }, - { - kind: 'Field', - name: { kind: 'Name', value: 'creator' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AccountMetadata' }, - }, - ], - }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'claimsLimit' }, }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'predicate' }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'offset' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'claimsOffset' }, + }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'claimsWhere' }, + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'data' } }, - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, - { kind: 'Field', name: { kind: 'Name', value: 'type' } }, - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AtomValue' }, - }, { kind: 'Field', - name: { kind: 'Name', value: 'creator' }, + name: { kind: 'Name', value: 'triple' }, selectionSet: { kind: 'SelectionSet', selections: [ - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AccountMetadata' }, - }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, ], }, }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'object' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'data' } }, - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, - { kind: 'Field', name: { kind: 'Name', value: 'type' } }, - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AtomValue' }, - }, + { kind: 'Field', name: { kind: 'Name', value: 'shares' } }, { kind: 'Field', - name: { kind: 'Name', value: 'creator' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AccountMetadata' }, - }, - ], - }, + name: { kind: 'Name', value: 'counter_shares' }, }, ], }, }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'AccountPositions' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'accounts' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'vault' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'totalShares' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'currentSharePrice' }, + name: { kind: 'Name', value: 'positions' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'shares' }, + value: { kind: 'EnumValue', value: 'desc' }, + }, + ], }, - { - kind: 'Field', - alias: { kind: 'Name', value: 'allPositions' }, - name: { kind: 'Name', value: 'positions_aggregate' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'FragmentSpread', - name: { - kind: 'Name', - value: 'PositionAggregateFields', - }, - }, - ], - }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'positionsLimit' }, }, - { - kind: 'Field', - name: { kind: 'Name', value: 'positions' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'PositionFields' }, - }, - ], - }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'offset' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'positionsOffset' }, }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'counterVault' }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'positionsWhere' }, + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'totalShares' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'currentSharePrice' }, - }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'shares' } }, { kind: 'Field', - alias: { kind: 'Name', value: 'allPositions' }, - name: { kind: 'Name', value: 'positions_aggregate' }, + name: { kind: 'Name', value: 'vault' }, selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { - kind: 'FragmentSpread', - name: { - kind: 'Name', - value: 'PositionAggregateFields', + kind: 'Field', + name: { kind: 'Name', value: 'total_shares' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'current_share_price' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'atom' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'label' }, + }, + ], }, }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'positions' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'PositionFields' }, + kind: 'Field', + name: { kind: 'Name', value: 'triple' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + ], + }, }, ], }, @@ -17645,85 +24993,230 @@ export const TripleMetadata = { ], }, }, + ], +} as unknown as DocumentNode +export const GetAccountsWithAggregates = { + kind: 'Document', + definitions: [ { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'AccountMetadata' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'accounts' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'atomId' } }, - { kind: 'Field', name: { kind: 'Name', value: 'type' } }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'AtomValue' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'atoms' }, - }, + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetAccountsWithAggregates' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' }, + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' }, + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' }, + }, + type: { + kind: 'ListType', + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'accounts_order_by' }, + }, + }, + }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' }, + }, + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'accounts_bool_exp' }, + }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'claimsLimit' }, + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'claimsOffset' }, + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'claimsWhere' }, + }, + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'claims_bool_exp' }, + }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'positionsLimit' }, + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'positionsOffset' }, + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'positionsWhere' }, + }, + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'positions_bool_exp' }, + }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'atomsWhere' }, + }, + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'atoms_bool_exp' }, + }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'atomsOrderBy' }, + }, + type: { + kind: 'ListType', + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'atoms_order_by' }, + }, + }, + }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'atomsLimit' }, + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'atomsOffset' }, + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'value' }, + name: { kind: 'Name', value: 'accounts_aggregate' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' }, + }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'offset' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' }, + }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' }, + }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' }, + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'person' }, + name: { kind: 'Name', value: 'aggregate' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'description' }, - }, - { kind: 'Field', name: { kind: 'Name', value: 'url' } }, + { kind: 'Field', name: { kind: 'Name', value: 'count' } }, ], }, }, { kind: 'Field', - name: { kind: 'Name', value: 'thing' }, + name: { kind: 'Name', value: 'nodes' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, { - kind: 'Field', - name: { kind: 'Name', value: 'description' }, + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AccountMetadata' }, }, - { kind: 'Field', name: { kind: 'Name', value: 'url' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'organization' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, { - kind: 'Field', - name: { kind: 'Name', value: 'description' }, + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AccountClaims' }, + }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AccountPositions' }, }, - { kind: 'Field', name: { kind: 'Name', value: 'url' } }, ], }, }, @@ -17735,277 +25228,198 @@ export const TripleMetadata = { }, { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'PositionFields' }, + name: { kind: 'Name', value: 'AccountMetadata' }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'positions' }, + name: { kind: 'Name', value: 'accounts' }, }, selectionSet: { kind: 'SelectionSet', selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'account' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - ], - }, - }, - { kind: 'Field', name: { kind: 'Name', value: 'shares' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'atom_id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, ], }, }, { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'PositionAggregateFields' }, + name: { kind: 'Name', value: 'AccountClaims' }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'positions_aggregate' }, + name: { kind: 'Name', value: 'accounts' }, }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'aggregate' }, + name: { kind: 'Name', value: 'claims' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'shares' }, + value: { kind: 'EnumValue', value: 'desc' }, + }, + ], + }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'claimsLimit' }, + }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'offset' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'claimsOffset' }, + }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'claimsWhere' }, + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'count' } }, { kind: 'Field', - name: { kind: 'Name', value: 'sum' }, + name: { kind: 'Name', value: 'triple' }, selectionSet: { kind: 'SelectionSet', selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'shares' }, - }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, ], }, }, + { kind: 'Field', name: { kind: 'Name', value: 'shares' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'counter_shares' }, + }, ], }, }, ], }, }, - ], -} as unknown as DocumentNode -export const EventDetails = { - kind: 'Document', - definitions: [ { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'EventDetails' }, + name: { kind: 'Name', value: 'AccountPositions' }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'events' }, + name: { kind: 'Name', value: 'accounts' }, }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'blockNumber' } }, - { kind: 'Field', name: { kind: 'Name', value: 'blockTimestamp' } }, - { kind: 'Field', name: { kind: 'Name', value: 'type' } }, - { kind: 'Field', name: { kind: 'Name', value: 'transactionHash' } }, - { kind: 'Field', name: { kind: 'Name', value: 'atomId' } }, - { kind: 'Field', name: { kind: 'Name', value: 'tripleId' } }, - { kind: 'Field', name: { kind: 'Name', value: 'depositId' } }, - { kind: 'Field', name: { kind: 'Name', value: 'redemptionId' } }, - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'DepositEventFragment' }, - }, - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'RedemptionEventFragment' }, - }, { kind: 'Field', - name: { kind: 'Name', value: 'atom' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AtomMetadata' }, + name: { kind: 'Name', value: 'positions' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'shares' }, + value: { kind: 'EnumValue', value: 'desc' }, + }, + ], }, - { - kind: 'Field', - name: { kind: 'Name', value: 'vault' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'totalShares' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'positionCount' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'positions' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'accountId' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'shares' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'account' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'label' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'image' }, - }, - ], - }, - }, - ], - }, - }, - ], - }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'positionsLimit' }, }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'triple' }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'offset' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'positionsOffset' }, + }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'positionsWhere' }, + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'TripleMetadata' }, - }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'shares' } }, { kind: 'Field', name: { kind: 'Name', value: 'vault' }, selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'totalShares' }, + name: { kind: 'Name', value: 'total_shares' }, }, { kind: 'Field', - name: { kind: 'Name', value: 'positionCount' }, + name: { kind: 'Name', value: 'current_share_price' }, }, { kind: 'Field', - name: { kind: 'Name', value: 'positions' }, + name: { kind: 'Name', value: 'atom' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'accountId' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'shares' }, + name: { kind: 'Name', value: 'id' }, }, { kind: 'Field', - name: { kind: 'Name', value: 'account' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'label' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'image' }, - }, - ], - }, + name: { kind: 'Name', value: 'label' }, }, ], }, }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'counterVault' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'totalShares' }, - }, { kind: 'Field', - name: { kind: 'Name', value: 'positionCount' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'positions' }, + name: { kind: 'Name', value: 'triple' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'accountId' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'shares' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'account' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'label' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'image' }, - }, - ], - }, + name: { kind: 'Name', value: 'id' }, }, ], }, @@ -18016,91 +25430,320 @@ export const EventDetails = { ], }, }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'AccountMetadata' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'accounts' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'atomId' } }, - { kind: 'Field', name: { kind: 'Name', value: 'type' } }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'AtomValue' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'atoms' }, - }, + ], + }, + }, + ], +} as unknown as DocumentNode +export const GetAccountsCount = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetAccountsCount' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' }, + }, + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'accounts_bool_exp' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'accounts_aggregate' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'count' } }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode +export const GetAccount = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetAccount' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'address' }, + }, + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'String' }, + }, + }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'claimsLimit' }, + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'claimsOffset' }, + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'claimsWhere' }, + }, + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'claims_bool_exp' }, + }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'positionsLimit' }, + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'positionsOffset' }, + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'positionsWhere' }, + }, + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'positions_bool_exp' }, + }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'atomsWhere' }, + }, + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'atoms_bool_exp' }, + }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'atomsOrderBy' }, + }, + type: { + kind: 'ListType', + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'atoms_order_by' }, + }, + }, + }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'atomsLimit' }, + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'atomsOffset' }, + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'triplesWhere' }, + }, + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'triples_bool_exp' }, + }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'triplesOrderBy' }, + }, + type: { + kind: 'ListType', + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'triples_order_by' }, + }, + }, + }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'triplesLimit' }, + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'triplesOffset' }, + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'value' }, + name: { kind: 'Name', value: 'account' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'id' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'address' }, + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ { - kind: 'Field', - name: { kind: 'Name', value: 'person' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'description' }, - }, - { kind: 'Field', name: { kind: 'Name', value: 'url' } }, - ], - }, + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AccountMetadata' }, }, { kind: 'Field', - name: { kind: 'Name', value: 'thing' }, + name: { kind: 'Name', value: 'atom' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, { - kind: 'Field', - name: { kind: 'Name', value: 'description' }, + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AtomMetadata' }, }, - { kind: 'Field', name: { kind: 'Name', value: 'url' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'organization' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, { - kind: 'Field', - name: { kind: 'Name', value: 'description' }, + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AtomVaultDetails' }, }, - { kind: 'Field', name: { kind: 'Name', value: 'url' } }, ], }, }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AccountClaims' }, + }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AccountPositions' }, + }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AccountAtoms' }, + }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AccountTriples' }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'chainlink_prices' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { kind: 'IntValue', value: '1' }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'id' }, + value: { kind: 'EnumValue', value: 'desc' }, + }, + ], + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'usd' } }, ], }, }, @@ -18109,78 +25752,81 @@ export const EventDetails = { }, { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'AtomMetadata' }, + name: { kind: 'Name', value: 'AccountMetadata' }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'atoms' }, + name: { kind: 'Name', value: 'accounts' }, }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'data' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'atom_id' } }, { kind: 'Field', name: { kind: 'Name', value: 'type' } }, - { kind: 'Field', name: { kind: 'Name', value: 'walletId' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'creator' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, - ], - }, - }, - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AtomValue' }, - }, ], }, }, { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'DepositEventFragment' }, + name: { kind: 'Name', value: 'AccountClaims' }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'events' }, + name: { kind: 'Name', value: 'accounts' }, }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'deposit' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'vaultId' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'senderAssetsAfterTotalFees' }, + name: { kind: 'Name', value: 'claims' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'shares' }, + value: { kind: 'EnumValue', value: 'desc' }, + }, + ], }, - { - kind: 'Field', - name: { kind: 'Name', value: 'sharesForReceiver' }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'claimsLimit' }, }, - { - kind: 'Field', - name: { kind: 'Name', value: 'receiver' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - ], - }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'offset' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'claimsOffset' }, + }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'claimsWhere' }, }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'sender' }, + name: { kind: 'Name', value: 'triple' }, selectionSet: { kind: 'SelectionSet', selections: [ @@ -18188,6 +25834,11 @@ export const EventDetails = { ], }, }, + { kind: 'Field', name: { kind: 'Name', value: 'shares' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'counter_shares' }, + }, ], }, }, @@ -18196,55 +25847,106 @@ export const EventDetails = { }, { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'PositionFields' }, + name: { kind: 'Name', value: 'AccountPositions' }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'positions' }, + name: { kind: 'Name', value: 'accounts' }, }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'account' }, + name: { kind: 'Name', value: 'positions' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'shares' }, + value: { kind: 'EnumValue', value: 'desc' }, + }, + ], + }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'positionsLimit' }, + }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'offset' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'positionsOffset' }, + }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'positionsWhere' }, + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - ], - }, - }, - { kind: 'Field', name: { kind: 'Name', value: 'shares' } }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'PositionAggregateFields' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'positions_aggregate' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'aggregate' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'count' } }, + { kind: 'Field', name: { kind: 'Name', value: 'shares' } }, { kind: 'Field', - name: { kind: 'Name', value: 'sum' }, + name: { kind: 'Name', value: 'vault' }, selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'shares' }, + name: { kind: 'Name', value: 'total_shares' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'current_share_price' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'atom' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'label' }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'triple' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + ], + }, }, ], }, @@ -18257,75 +25959,132 @@ export const EventDetails = { }, { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'RedemptionEventFragment' }, + name: { kind: 'Name', value: 'AccountAtoms' }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'events' }, + name: { kind: 'Name', value: 'accounts' }, }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'redemption' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'vaultId' } }, - { kind: 'Field', name: { kind: 'Name', value: 'receiverId' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'sharesRedeemedBySender' }, + name: { kind: 'Name', value: 'atoms' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'atomsWhere' }, }, - { - kind: 'Field', - name: { kind: 'Name', value: 'assetsForReceiver' }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'atomsOrderBy' }, }, - ], - }, - }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'TripleMetadata' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'triples' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'subjectId' } }, - { kind: 'Field', name: { kind: 'Name', value: 'predicateId' } }, - { kind: 'Field', name: { kind: 'Name', value: 'objectId' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'subject' }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'atomsLimit' }, + }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'offset' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'atomsOffset' }, + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'data' } }, { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, - { kind: 'Field', name: { kind: 'Name', value: 'type' } }, - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AtomValue' }, - }, + { kind: 'Field', name: { kind: 'Name', value: 'data' } }, { kind: 'Field', - name: { kind: 'Name', value: 'creator' }, + name: { kind: 'Name', value: 'vault' }, selectionSet: { kind: 'SelectionSet', selections: [ { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AccountMetadata' }, + kind: 'Field', + name: { kind: 'Name', value: 'total_shares' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'positions_aggregate' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'account_id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'Variable', + name: { + kind: 'Name', + value: 'address', + }, + }, + }, + ], + }, + }, + ], + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'nodes' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'account' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'shares' }, + }, + ], + }, + }, + ], + }, }, ], }, @@ -18333,63 +26092,126 @@ export const EventDetails = { ], }, }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'AccountTriples' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'accounts' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'predicate' }, + name: { kind: 'Name', value: 'triples_aggregate' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'triplesWhere' }, + }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'triplesOrderBy' }, + }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'triplesLimit' }, + }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'offset' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'triplesOffset' }, + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'data' } }, - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, - { kind: 'Field', name: { kind: 'Name', value: 'type' } }, - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AtomValue' }, - }, { kind: 'Field', - name: { kind: 'Name', value: 'creator' }, + name: { kind: 'Name', value: 'aggregate' }, selectionSet: { kind: 'SelectionSet', selections: [ - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AccountMetadata' }, - }, + { kind: 'Field', name: { kind: 'Name', value: 'count' } }, ], }, }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'object' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'data' } }, - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, - { kind: 'Field', name: { kind: 'Name', value: 'type' } }, - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AtomValue' }, - }, { kind: 'Field', - name: { kind: 'Name', value: 'creator' }, + name: { kind: 'Name', value: 'nodes' }, selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AccountMetadata' }, + kind: 'Field', + name: { kind: 'Name', value: 'subject' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'label' }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'predicate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'label' }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'object' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'label' }, + }, + ], + }, }, ], }, @@ -18397,171 +26219,148 @@ export const EventDetails = { ], }, }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'AtomValue' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'atoms' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'vault' }, + name: { kind: 'Name', value: 'value' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'totalShares' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'currentSharePrice' }, - }, - { - kind: 'Field', - alias: { kind: 'Name', value: 'allPositions' }, - name: { kind: 'Name', value: 'positions_aggregate' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'FragmentSpread', - name: { - kind: 'Name', - value: 'PositionAggregateFields', - }, - }, - ], - }, - }, { kind: 'Field', - name: { kind: 'Name', value: 'positions' }, + name: { kind: 'Name', value: 'person' }, selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'PositionFields' }, + kind: 'Field', + name: { kind: 'Name', value: 'description' }, }, + { kind: 'Field', name: { kind: 'Name', value: 'url' } }, ], }, }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'counterVault' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'totalShares' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'currentSharePrice' }, - }, { kind: 'Field', - alias: { kind: 'Name', value: 'allPositions' }, - name: { kind: 'Name', value: 'positions_aggregate' }, + name: { kind: 'Name', value: 'thing' }, selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, { - kind: 'FragmentSpread', - name: { - kind: 'Name', - value: 'PositionAggregateFields', - }, + kind: 'Field', + name: { kind: 'Name', value: 'description' }, }, + { kind: 'Field', name: { kind: 'Name', value: 'url' } }, ], }, }, { kind: 'Field', - name: { kind: 'Name', value: 'positions' }, + name: { kind: 'Name', value: 'organization' }, selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'PositionFields' }, + kind: 'Field', + name: { kind: 'Name', value: 'description' }, }, + { kind: 'Field', name: { kind: 'Name', value: 'url' } }, ], }, }, ], }, }, - ], - }, - }, - ], -} as unknown as DocumentNode -export const FollowMetadata = { - kind: 'Document', - definitions: [ - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'FollowMetadata' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'triples' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'subject' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'predicate' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - ], - }, - }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'AtomMetadata' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'atoms' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'data' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { kind: 'Field', name: { kind: 'Name', value: 'wallet_id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'object' }, + name: { kind: 'Name', value: 'creator' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, ], }, }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AtomValue' }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'AtomVaultDetails' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'atoms' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'vault_id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'wallet_id' } }, { kind: 'Field', name: { kind: 'Name', value: 'vault' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'totalShares' } }, { kind: 'Field', - name: { kind: 'Name', value: 'currentSharePrice' }, + name: { kind: 'Name', value: 'position_count' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'total_shares' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'current_share_price' }, }, { kind: 'Field', name: { kind: 'Name', value: 'positions_aggregate' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'where' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'positionsWhere' }, - }, - }, - ], selectionSet: { kind: 'SelectionSet', selections: [ @@ -18595,68 +26394,247 @@ export const FollowMetadata = { }, }, { - kind: 'Field', - name: { kind: 'Name', value: 'positions' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'limit' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'positionsLimit' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'offset' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'positionsOffset' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'order_by' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'positionsOrderBy' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'where' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'positionsWhere' }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'account' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'label' }, - }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'shares' }, - }, - ], - }, + kind: 'Field', + name: { kind: 'Name', value: 'positions' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'account' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'label' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'shares' }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode +export const GetAccountWithPaginatedRelations = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetAccountWithPaginatedRelations' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'address' }, + }, + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'String' }, + }, + }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'claimsLimit' }, + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'claimsOffset' }, + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'claimsWhere' }, + }, + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'claims_bool_exp' }, + }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'positionsLimit' }, + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'positionsOffset' }, + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'positionsWhere' }, + }, + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'positions_bool_exp' }, + }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'atomsLimit' }, + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'atomsOffset' }, + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'atomsWhere' }, + }, + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'atoms_bool_exp' }, + }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'atomsOrderBy' }, + }, + type: { + kind: 'ListType', + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'atoms_order_by' }, + }, + }, + }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'triplesLimit' }, + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'triplesOffset' }, + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'triplesWhere' }, + }, + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'triples_bool_exp' }, + }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'triplesOrderBy' }, + }, + type: { + kind: 'ListType', + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'triples_order_by' }, + }, + }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'account' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'id' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'address' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AccountMetadata' }, + }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AccountClaims' }, + }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AccountPositions' }, + }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AccountAtoms' }, + }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AccountTriples' }, }, ], }, @@ -18664,108 +26642,177 @@ export const FollowMetadata = { ], }, }, - ], -} as unknown as DocumentNode -export const FollowAggregate = { - kind: 'Document', - definitions: [ { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'FollowAggregate' }, + name: { kind: 'Name', value: 'AccountMetadata' }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'triples_aggregate' }, + name: { kind: 'Name', value: 'accounts' }, }, selectionSet: { kind: 'SelectionSet', selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'aggregate' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'count' } }, - ], - }, - }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'atom_id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, ], }, }, - ], -} as unknown as DocumentNode -export const PositionDetails = { - kind: 'Document', - definitions: [ { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'PositionDetails' }, + name: { kind: 'Name', value: 'AccountClaims' }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'positions' }, + name: { kind: 'Name', value: 'accounts' }, }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'account' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, - ], - }, - }, { kind: 'Field', - name: { kind: 'Name', value: 'vault' }, + name: { kind: 'Name', value: 'claims' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'shares' }, + value: { kind: 'EnumValue', value: 'desc' }, + }, + ], + }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'claimsLimit' }, + }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'offset' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'claimsOffset' }, + }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'claimsWhere' }, + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'atom' }, + name: { kind: 'Name', value: 'triple' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, ], }, }, + { kind: 'Field', name: { kind: 'Name', value: 'shares' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'counter_shares' }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'AccountPositions' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'accounts' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'positions' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'shares' }, + value: { kind: 'EnumValue', value: 'desc' }, + }, + ], + }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'positionsLimit' }, + }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'offset' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'positionsOffset' }, + }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'positionsWhere' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'shares' } }, { kind: 'Field', - name: { kind: 'Name', value: 'triple' }, + name: { kind: 'Name', value: 'vault' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'subject' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'label' }, - }, - ], - }, + name: { kind: 'Name', value: 'total_shares' }, }, { kind: 'Field', - name: { kind: 'Name', value: 'predicate' }, + name: { kind: 'Name', value: 'current_share_price' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'atom' }, selectionSet: { kind: 'SelectionSet', selections: [ @@ -18782,7 +26829,7 @@ export const PositionDetails = { }, { kind: 'Field', - name: { kind: 'Name', value: 'object' }, + name: { kind: 'Name', value: 'triple' }, selectionSet: { kind: 'SelectionSet', selections: [ @@ -18790,10 +26837,6 @@ export const PositionDetails = { kind: 'Field', name: { kind: 'Name', value: 'id' }, }, - { - kind: 'Field', - name: { kind: 'Name', value: 'label' }, - }, ], }, }, @@ -18803,113 +26846,134 @@ export const PositionDetails = { ], }, }, - { kind: 'Field', name: { kind: 'Name', value: 'shares' } }, - { kind: 'Field', name: { kind: 'Name', value: 'vaultId' } }, - ], - }, - }, - ], -} as unknown as DocumentNode -export const StatDetails = { - kind: 'Document', - definitions: [ - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'StatDetails' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'stats' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'contractBalance' } }, - { kind: 'Field', name: { kind: 'Name', value: 'totalAccounts' } }, - { kind: 'Field', name: { kind: 'Name', value: 'totalFees' } }, - { kind: 'Field', name: { kind: 'Name', value: 'totalAtoms' } }, - { kind: 'Field', name: { kind: 'Name', value: 'totalTriples' } }, - { kind: 'Field', name: { kind: 'Name', value: 'totalPositions' } }, - { kind: 'Field', name: { kind: 'Name', value: 'totalSignals' } }, - ], - }, - }, - ], -} as unknown as DocumentNode -export const TripleTxn = { - kind: 'Document', - definitions: [ - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'TripleTxn' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'triples' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'blockNumber' } }, - { kind: 'Field', name: { kind: 'Name', value: 'blockTimestamp' } }, - { kind: 'Field', name: { kind: 'Name', value: 'transactionHash' } }, - { kind: 'Field', name: { kind: 'Name', value: 'creatorId' } }, ], }, }, - ], -} as unknown as DocumentNode -export const TripleVaultDetails = { - kind: 'Document', - definitions: [ { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'TripleVaultDetails' }, + name: { kind: 'Name', value: 'AccountAtoms' }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'triples' }, + name: { kind: 'Name', value: 'accounts' }, }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'vaultId' } }, - { kind: 'Field', name: { kind: 'Name', value: 'counterVaultId' } }, { kind: 'Field', - name: { kind: 'Name', value: 'vault' }, + name: { kind: 'Name', value: 'atoms' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'atomsWhere' }, + }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'atomsOrderBy' }, + }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'atomsLimit' }, + }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'offset' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'atomsOffset' }, + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'data' } }, { kind: 'Field', - name: { kind: 'Name', value: 'positions' }, + name: { kind: 'Name', value: 'vault' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'vaultId' }, - }, { kind: 'Field', - name: { kind: 'Name', value: 'shares' }, + name: { kind: 'Name', value: 'total_shares' }, }, { kind: 'Field', - name: { kind: 'Name', value: 'account' }, + name: { kind: 'Name', value: 'positions_aggregate' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'account_id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'Variable', + name: { + kind: 'Name', + value: 'address', + }, + }, + }, + ], + }, + }, + ], + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'label' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'image' }, + name: { kind: 'Name', value: 'nodes' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'account' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'shares' }, + }, + ], + }, }, ], }, @@ -18920,30 +26984,96 @@ export const TripleVaultDetails = { ], }, }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'AccountTriples' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'accounts' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'counterVault' }, + name: { kind: 'Name', value: 'triples_aggregate' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'triplesWhere' }, + }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'triplesOrderBy' }, + }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'triplesLimit' }, + }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'offset' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'triplesOffset' }, + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'positions' }, + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'count' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'nodes' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'vaultId' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'shares' }, + name: { kind: 'Name', value: 'subject' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'label' }, + }, + ], + }, }, { kind: 'Field', - name: { kind: 'Name', value: 'account' }, + name: { kind: 'Name', value: 'predicate' }, selectionSet: { kind: 'SelectionSet', selections: [ @@ -18955,9 +27085,22 @@ export const TripleVaultDetails = { kind: 'Field', name: { kind: 'Name', value: 'label' }, }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'object' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, { kind: 'Field', - name: { kind: 'Name', value: 'image' }, + name: { kind: 'Name', value: 'label' }, }, ], }, @@ -18973,122 +27116,184 @@ export const TripleVaultDetails = { }, ], } as unknown as DocumentNode -export const VaultBasicDetails = { +export const GetAccountWithAggregates = { kind: 'Document', definitions: [ { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'VaultBasicDetails' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'vaults' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'atom' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - ], + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetAccountWithAggregates' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'address' }, + }, + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'String' }, }, }, - { - kind: 'Field', - name: { kind: 'Name', value: 'triple' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'subject' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'predicate' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'object' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - ], - }, - }, - ], + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'claimsLimit' }, + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'claimsOffset' }, + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'claimsWhere' }, + }, + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'claims_bool_exp' }, + }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'positionsLimit' }, + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'positionsOffset' }, + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'positionsWhere' }, + }, + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'positions_bool_exp' }, + }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'atomsWhere' }, + }, + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'atoms_bool_exp' }, + }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'atomsOrderBy' }, + }, + type: { + kind: 'ListType', + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'atoms_order_by' }, + }, }, }, - { kind: 'Field', name: { kind: 'Name', value: 'currentSharePrice' } }, - { kind: 'Field', name: { kind: 'Name', value: 'totalShares' } }, - ], - }, - }, - ], -} as unknown as DocumentNode -export const VaultFilteredPositions = { - kind: 'Document', - definitions: [ - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'VaultFilteredPositions' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'vaults' }, - }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'atomsLimit' }, + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'atomsOffset' }, + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'triplesWhere' }, + }, + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'triples_bool_exp' }, + }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'triplesOrderBy' }, + }, + type: { + kind: 'ListType', + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'triples_order_by' }, + }, + }, + }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'triplesLimit' }, + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'triplesOffset' }, + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'positions' }, + name: { kind: 'Name', value: 'account' }, arguments: [ { kind: 'Argument', - name: { kind: 'Name', value: 'where' }, + name: { kind: 'Name', value: 'id' }, value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'accountId' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: '_in' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'addresses' }, - }, - }, - ], - }, - }, - ], + kind: 'Variable', + name: { kind: 'Name', value: 'address' }, }, }, ], @@ -19097,7 +27302,23 @@ export const VaultFilteredPositions = { selections: [ { kind: 'FragmentSpread', - name: { kind: 'Name', value: 'PositionFields' }, + name: { kind: 'Name', value: 'AccountMetadata' }, + }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AccountClaimsAggregate' }, + }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AccountPositionsAggregate' }, + }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AccountAtomsAggregate' }, + }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AccountTriplesAggregate' }, }, ], }, @@ -19107,251 +27328,396 @@ export const VaultFilteredPositions = { }, { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'PositionFields' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'positions' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'account' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - ], - }, - }, - { kind: 'Field', name: { kind: 'Name', value: 'shares' } }, - ], - }, - }, - ], -} as unknown as DocumentNode -export const VaultDetailsWithFilteredPositions = { - kind: 'Document', - definitions: [ - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'VaultDetailsWithFilteredPositions' }, + name: { kind: 'Name', value: 'AccountMetadata' }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'vaults' }, + name: { kind: 'Name', value: 'accounts' }, }, selectionSet: { kind: 'SelectionSet', selections: [ - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'VaultBasicDetails' }, - }, - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'VaultFilteredPositions' }, - }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'atom_id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, ], }, }, { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'PositionFields' }, + name: { kind: 'Name', value: 'AccountClaimsAggregate' }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'positions' }, + name: { kind: 'Name', value: 'accounts' }, }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'account' }, + name: { kind: 'Name', value: 'claims_aggregate' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'shares' }, + value: { kind: 'EnumValue', value: 'desc' }, + }, + ], + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'count' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'nodes' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'triple' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'shares' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'counter_shares' }, + }, + ], + }, + }, ], }, }, - { kind: 'Field', name: { kind: 'Name', value: 'shares' } }, ], }, }, { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'VaultBasicDetails' }, + name: { kind: 'Name', value: 'AccountPositionsAggregate' }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'vaults' }, + name: { kind: 'Name', value: 'accounts' }, }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'atom' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - ], - }, - }, { kind: 'Field', - name: { kind: 'Name', value: 'triple' }, + name: { kind: 'Name', value: 'positions_aggregate' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'shares' }, + value: { kind: 'EnumValue', value: 'desc' }, + }, + ], + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'subject' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - ], - }, - }, { kind: 'Field', - name: { kind: 'Name', value: 'predicate' }, + name: { kind: 'Name', value: 'aggregate' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'count' } }, ], }, }, { kind: 'Field', - name: { kind: 'Name', value: 'object' }, + name: { kind: 'Name', value: 'nodes' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'shares' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'vault' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'total_shares' }, + }, + { + kind: 'Field', + name: { + kind: 'Name', + value: 'current_share_price', + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'atom' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'label' }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'triple' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + ], + }, + }, + ], + }, + }, ], }, }, ], }, }, - { kind: 'Field', name: { kind: 'Name', value: 'currentSharePrice' } }, - { kind: 'Field', name: { kind: 'Name', value: 'totalShares' } }, ], }, }, { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'VaultFilteredPositions' }, + name: { kind: 'Name', value: 'AccountAtomsAggregate' }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'vaults' }, + name: { kind: 'Name', value: 'accounts' }, }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'positions' }, + name: { kind: 'Name', value: 'atoms_aggregate' }, arguments: [ { kind: 'Argument', name: { kind: 'Name', value: 'where' }, value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'accountId' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: '_in' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'addresses' }, - }, - }, - ], - }, - }, - ], + kind: 'Variable', + name: { kind: 'Name', value: 'atomsWhere' }, }, }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'PositionFields' }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'atomsOrderBy' }, }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode -export const TripleVaultCouterVaultDetailsWithPositions = { - kind: 'Document', - definitions: [ - { - kind: 'FragmentDefinition', - name: { - kind: 'Name', - value: 'TripleVaultCouterVaultDetailsWithPositions', - }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'triples' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'vaultId' } }, - { kind: 'Field', name: { kind: 'Name', value: 'counterVaultId' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'vault' }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'atomsLimit' }, + }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'offset' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'atomsOffset' }, + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ { - kind: 'FragmentSpread', - name: { - kind: 'Name', - value: 'VaultDetailsWithFilteredPositions', + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'count' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'sum' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + ], + }, + }, + ], }, }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'counterVault' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ { - kind: 'FragmentSpread', - name: { - kind: 'Name', - value: 'VaultDetailsWithFilteredPositions', + kind: 'Field', + name: { kind: 'Name', value: 'nodes' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'data' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'vault' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'total_shares' }, + }, + { + kind: 'Field', + name: { + kind: 'Name', + value: 'positions_aggregate', + }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { + kind: 'Name', + value: 'account_id', + }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { + kind: 'Name', + value: '_eq', + }, + value: { + kind: 'Variable', + name: { + kind: 'Name', + value: 'address', + }, + }, + }, + ], + }, + }, + ], + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'nodes' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { + kind: 'Name', + value: 'account', + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { + kind: 'Name', + value: 'id', + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { + kind: 'Name', + value: 'shares', + }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + ], }, }, ], @@ -19362,137 +27728,253 @@ export const TripleVaultCouterVaultDetailsWithPositions = { }, { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'PositionFields' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'positions' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'account' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - ], - }, - }, - { kind: 'Field', name: { kind: 'Name', value: 'shares' } }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'VaultBasicDetails' }, + name: { kind: 'Name', value: 'AccountTriplesAggregate' }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'vaults' }, + name: { kind: 'Name', value: 'accounts' }, }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'atom' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - ], - }, - }, { kind: 'Field', - name: { kind: 'Name', value: 'triple' }, + name: { kind: 'Name', value: 'triples_aggregate' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'triplesWhere' }, + }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'triplesOrderBy' }, + }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'triplesLimit' }, + }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'offset' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'triplesOffset' }, + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'subject' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - ], - }, - }, { kind: 'Field', - name: { kind: 'Name', value: 'predicate' }, + name: { kind: 'Name', value: 'aggregate' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'count' } }, ], }, }, { kind: 'Field', - name: { kind: 'Name', value: 'object' }, + name: { kind: 'Name', value: 'nodes' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'subject' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'label' }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'predicate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'label' }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'object' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'label' }, + }, + ], + }, + }, ], }, }, ], }, }, - { kind: 'Field', name: { kind: 'Name', value: 'currentSharePrice' } }, - { kind: 'Field', name: { kind: 'Name', value: 'totalShares' } }, ], }, }, + ], +} as unknown as DocumentNode +export const GetAtoms = { + kind: 'Document', + definitions: [ { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'VaultFilteredPositions' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'vaults' }, - }, + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetAtoms' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' }, + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' }, + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' }, + }, + type: { + kind: 'ListType', + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'atoms_order_by' }, + }, + }, + }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' }, + }, + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'atoms_bool_exp' }, + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'positions' }, + alias: { kind: 'Name', value: 'total' }, + name: { kind: 'Name', value: 'atoms_aggregate' }, arguments: [ { kind: 'Argument', name: { kind: 'Name', value: 'where' }, value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'accountId' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: '_in' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'addresses' }, - }, - }, - ], - }, - }, - ], + kind: 'Variable', + name: { kind: 'Name', value: 'where' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'count' } }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'atoms' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' }, + }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'offset' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' }, + }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' }, + }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' }, }, }, ], @@ -19501,7 +27983,32 @@ export const TripleVaultCouterVaultDetailsWithPositions = { selections: [ { kind: 'FragmentSpread', - name: { kind: 'Name', value: 'PositionFields' }, + name: { kind: 'Name', value: 'AtomMetadata' }, + }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AtomTxn' }, + }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AtomVaultDetails' }, + }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AtomTriple' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'creator' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AccountMetadata' }, + }, + ], + }, }, ], }, @@ -19511,49 +28018,85 @@ export const TripleVaultCouterVaultDetailsWithPositions = { }, { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'VaultDetailsWithFilteredPositions' }, + name: { kind: 'Name', value: 'AccountMetadata' }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'vaults' }, + name: { kind: 'Name', value: 'accounts' }, }, selectionSet: { kind: 'SelectionSet', selections: [ - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'VaultBasicDetails' }, - }, - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'VaultFilteredPositions' }, - }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'atom_id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, ], }, }, - ], -} as unknown as DocumentNode -export const VaultUnfilteredPositions = { - kind: 'Document', - definitions: [ { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'VaultUnfilteredPositions' }, + name: { kind: 'Name', value: 'AtomValue' }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'vaults' }, + name: { kind: 'Name', value: 'atoms' }, }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'positions' }, + name: { kind: 'Name', value: 'value' }, selectionSet: { kind: 'SelectionSet', selections: [ { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'PositionFields' }, + kind: 'Field', + name: { kind: 'Name', value: 'person' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'description' }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'url' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'thing' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'description' }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'url' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'organization' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'description' }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'url' } }, + ], + }, }, ], }, @@ -19563,145 +28106,152 @@ export const VaultUnfilteredPositions = { }, { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'PositionFields' }, + name: { kind: 'Name', value: 'AtomMetadata' }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'positions' }, + name: { kind: 'Name', value: 'atoms' }, }, selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'data' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { kind: 'Field', name: { kind: 'Name', value: 'wallet_id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'account' }, + name: { kind: 'Name', value: 'creator' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, ], }, }, - { kind: 'Field', name: { kind: 'Name', value: 'shares' } }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AtomValue' }, + }, ], }, }, - ], -} as unknown as DocumentNode -export const VaultDetails = { - kind: 'Document', - definitions: [ { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'VaultDetails' }, + name: { kind: 'Name', value: 'AtomTxn' }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'vaults' }, + name: { kind: 'Name', value: 'atoms' }, }, selectionSet: { kind: 'SelectionSet', selections: [ - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'VaultBasicDetails' }, - }, + { kind: 'Field', name: { kind: 'Name', value: 'block_number' } }, + { kind: 'Field', name: { kind: 'Name', value: 'block_timestamp' } }, + { kind: 'Field', name: { kind: 'Name', value: 'transaction_hash' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creator_id' } }, ], }, }, { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'VaultBasicDetails' }, + name: { kind: 'Name', value: 'AtomVaultDetails' }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'vaults' }, + name: { kind: 'Name', value: 'atoms' }, }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'atom' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - ], - }, - }, + { kind: 'Field', name: { kind: 'Name', value: 'vault_id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'wallet_id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'triple' }, + name: { kind: 'Name', value: 'vault' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'subject' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - ], - }, + name: { kind: 'Name', value: 'position_count' }, }, { kind: 'Field', - name: { kind: 'Name', value: 'predicate' }, + name: { kind: 'Name', value: 'total_shares' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'current_share_price' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'positions_aggregate' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'count' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'sum' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'shares' }, + }, + ], + }, + }, + ], + }, + }, ], }, }, { kind: 'Field', - name: { kind: 'Name', value: 'object' }, + name: { kind: 'Name', value: 'positions' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'account' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'label' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'shares' }, + }, ], - }, - }, - ], - }, - }, - { kind: 'Field', name: { kind: 'Name', value: 'currentSharePrice' } }, - { kind: 'Field', name: { kind: 'Name', value: 'totalShares' } }, - ], - }, - }, - ], -} as unknown as DocumentNode -export const VaultPositionsAggregate = { - kind: 'Document', - definitions: [ - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'VaultPositionsAggregate' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'vaults' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'positions_aggregate' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'PositionAggregateFields' }, + }, }, ], }, @@ -19711,30 +28261,73 @@ export const VaultPositionsAggregate = { }, { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'PositionAggregateFields' }, + name: { kind: 'Name', value: 'AtomTriple' }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'positions_aggregate' }, + name: { kind: 'Name', value: 'atoms' }, }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'aggregate' }, + name: { kind: 'Name', value: 'as_subject_triples' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'count' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'sum' }, + name: { kind: 'Name', value: 'object' }, selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'data' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, { kind: 'Field', - name: { kind: 'Name', value: 'shares' }, + name: { kind: 'Name', value: 'creator' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AccountMetadata' }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'predicate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'data' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'creator' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AccountMetadata' }, + }, + ], + }, }, ], }, @@ -19742,88 +28335,65 @@ export const VaultPositionsAggregate = { ], }, }, - ], - }, - }, - ], -} as unknown as DocumentNode -export const VaultFieldsForTriple = { - kind: 'Document', - definitions: [ - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'VaultFieldsForTriple' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'vaults' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'totalShares' } }, - { kind: 'Field', name: { kind: 'Name', value: 'currentSharePrice' } }, - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'VaultPositionsAggregate' }, - }, - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'VaultFilteredPositions' }, - }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'PositionFields' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'positions' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'account' }, + name: { kind: 'Name', value: 'as_predicate_triples' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - ], - }, - }, - { kind: 'Field', name: { kind: 'Name', value: 'shares' } }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'PositionAggregateFields' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'positions_aggregate' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'aggregate' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'count' } }, { kind: 'Field', - name: { kind: 'Name', value: 'sum' }, + name: { kind: 'Name', value: 'subject' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'data' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'creator' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AccountMetadata' }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'object' }, selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'data' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, { kind: 'Field', - name: { kind: 'Name', value: 'shares' }, + name: { kind: 'Name', value: 'creator' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AccountMetadata' }, + }, + ], + }, }, ], }, @@ -19831,82 +28401,68 @@ export const VaultFieldsForTriple = { ], }, }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'VaultPositionsAggregate' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'vaults' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'positions_aggregate' }, + name: { kind: 'Name', value: 'as_object_triples' }, selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'PositionAggregateFields' }, + kind: 'Field', + name: { kind: 'Name', value: 'subject' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'data' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'creator' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AccountMetadata' }, + }, + ], + }, + }, + ], + }, }, - ], - }, - }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'VaultFilteredPositions' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'vaults' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'positions' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'where' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'accountId' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: '_in' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'addresses' }, + { + kind: 'Field', + name: { kind: 'Name', value: 'predicate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'data' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'creator' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AccountMetadata' }, }, - }, - ], + ], + }, }, - }, - ], - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'PositionFields' }, + ], + }, }, ], }, @@ -19916,13 +28472,13 @@ export const VaultFieldsForTriple = { }, ], } as unknown as DocumentNode -export const GetAccounts = { +export const GetAtomsWithPositions = { kind: 'Document', definitions: [ { kind: 'OperationDefinition', operation: 'query', - name: { kind: 'Name', value: 'GetAccounts' }, + name: { kind: 'Name', value: 'GetAtomsWithPositions' }, variableDefinitions: [ { kind: 'VariableDefinition', @@ -19952,7 +28508,7 @@ export const GetAccounts = { kind: 'NonNullType', type: { kind: 'NamedType', - name: { kind: 'Name', value: 'accounts_order_by' }, + name: { kind: 'Name', value: 'atoms_order_by' }, }, }, }, @@ -19965,62 +28521,16 @@ export const GetAccounts = { }, type: { kind: 'NamedType', - name: { kind: 'Name', value: 'accounts_bool_exp' }, - }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'claimsLimit' }, - }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'claimsOffset' }, - }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'claimsWhere' }, - }, - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'claims_bool_exp' }, - }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'positionsLimit' }, - }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'positionsOffset' }, + name: { kind: 'Name', value: 'atoms_bool_exp' }, }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', - name: { kind: 'Name', value: 'positionsWhere' }, - }, - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'positions_bool_exp' }, + name: { kind: 'Name', value: 'address' }, }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } }, }, ], selectionSet: { @@ -20028,7 +28538,37 @@ export const GetAccounts = { selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'accounts' }, + alias: { kind: 'Name', value: 'total' }, + name: { kind: 'Name', value: 'atoms_aggregate' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'count' } }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'atoms' }, arguments: [ { kind: 'Argument', @@ -20068,56 +28608,50 @@ export const GetAccounts = { selections: [ { kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AccountMetadata' }, - }, - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AccountClaims' }, + name: { kind: 'Name', value: 'AtomMetadata' }, }, { kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AccountPositions' }, + name: { kind: 'Name', value: 'AtomTxn' }, }, { kind: 'Field', - name: { kind: 'Name', value: 'atom' }, + name: { kind: 'Name', value: 'vault' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'vaultId' }, + name: { kind: 'Name', value: 'position_count' }, }, { kind: 'Field', - name: { kind: 'Name', value: 'walletId' }, + name: { kind: 'Name', value: 'total_shares' }, }, { kind: 'Field', - name: { kind: 'Name', value: 'vault' }, + name: { kind: 'Name', value: 'current_share_price' }, + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'total' }, + name: { kind: 'Name', value: 'positions_aggregate' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'positionCount' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'totalShares' }, - }, - { - kind: 'Field', - name: { - kind: 'Name', - value: 'positions_aggregate', - }, + name: { kind: 'Name', value: 'aggregate' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'aggregate' }, + name: { kind: 'Name', value: 'count' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'sum' }, selectionSet: { kind: 'SelectionSet', selections: [ @@ -20125,23 +28659,7 @@ export const GetAccounts = { kind: 'Field', name: { kind: 'Name', - value: 'count', - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'sum' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { - kind: 'Name', - value: 'shares', - }, - }, - ], + value: 'shares', }, }, ], @@ -20150,49 +28668,90 @@ export const GetAccounts = { ], }, }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'positions' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'account_id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'Variable', + name: { + kind: 'Name', + value: 'address', + }, + }, + }, + ], + }, + }, + ], + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, { kind: 'Field', - name: { kind: 'Name', value: 'positions' }, + name: { kind: 'Name', value: 'account' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'account' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { - kind: 'Name', - value: 'label', - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - ], - }, + name: { kind: 'Name', value: 'label' }, }, { kind: 'Field', - name: { kind: 'Name', value: 'shares' }, + name: { kind: 'Name', value: 'id' }, }, ], }, }, + { + kind: 'Field', + name: { kind: 'Name', value: 'shares' }, + }, ], }, }, ], }, }, + { + kind: 'Field', + name: { kind: 'Name', value: 'creator' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AccountMetadata' }, + }, + ], + }, + }, ], }, }, @@ -20212,196 +28771,72 @@ export const GetAccounts = { { kind: 'Field', name: { kind: 'Name', value: 'label' } }, { kind: 'Field', name: { kind: 'Name', value: 'image' } }, { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'atomId' } }, + { kind: 'Field', name: { kind: 'Name', value: 'atom_id' } }, { kind: 'Field', name: { kind: 'Name', value: 'type' } }, ], }, }, { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'AccountClaims' }, + name: { kind: 'Name', value: 'AtomValue' }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'accounts' }, + name: { kind: 'Name', value: 'atoms' }, }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'claims' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'order_by' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'shares' }, - value: { kind: 'EnumValue', value: 'desc' }, - }, - ], - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'limit' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'claimsLimit' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'offset' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'claimsOffset' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'where' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'claimsWhere' }, - }, - }, - ], + name: { kind: 'Name', value: 'value' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'triple' }, + name: { kind: 'Name', value: 'person' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'description' }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'url' } }, ], }, }, - { kind: 'Field', name: { kind: 'Name', value: 'shares' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'counterShares' }, - }, - ], - }, - }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'AccountPositions' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'accounts' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'positions' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'order_by' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'shares' }, - value: { kind: 'EnumValue', value: 'desc' }, - }, - ], - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'limit' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'positionsLimit' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'offset' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'positionsOffset' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'where' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'positionsWhere' }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'shares' } }, { kind: 'Field', - name: { kind: 'Name', value: 'vault' }, + name: { kind: 'Name', value: 'thing' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'totalShares' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'currentSharePrice' }, - }, + { kind: 'Field', name: { kind: 'Name', value: 'name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, { kind: 'Field', - name: { kind: 'Name', value: 'atom' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'label' }, - }, - ], - }, + name: { kind: 'Name', value: 'description' }, }, + { kind: 'Field', name: { kind: 'Name', value: 'url' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'organization' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, { kind: 'Field', - name: { kind: 'Name', value: 'triple' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'label' }, - }, - ], - }, + name: { kind: 'Name', value: 'description' }, }, + { kind: 'Field', name: { kind: 'Name', value: 'url' } }, ], }, }, @@ -20411,92 +28846,74 @@ export const GetAccounts = { ], }, }, - ], -} as unknown as DocumentNode -export const GetAccountsWithAggregates = { - kind: 'Document', - definitions: [ { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'GetAccountsWithAggregates' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'limit' }, - }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'offset' }, - }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'orderBy' }, - }, - type: { - kind: 'ListType', - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'accounts_order_by' }, - }, - }, - }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'where' }, - }, - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'accounts_bool_exp' }, - }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'claimsLimit' }, - }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'claimsOffset' }, - }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'claimsWhere' }, + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'AtomMetadata' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'atoms' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'data' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { kind: 'Field', name: { kind: 'Name', value: 'wallet_id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'creator' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + ], + }, }, - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'claims_bool_exp' }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AtomValue' }, }, - }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'AtomTxn' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'atoms' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'block_number' } }, + { kind: 'Field', name: { kind: 'Name', value: 'block_timestamp' } }, + { kind: 'Field', name: { kind: 'Name', value: 'transaction_hash' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creator_id' } }, + ], + }, + }, + ], +} as unknown as DocumentNode +export const GetAtomsWithAggregates = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetAtomsWithAggregates' }, + variableDefinitions: [ { kind: 'VariableDefinition', variable: { kind: 'Variable', - name: { kind: 'Name', value: 'positionsLimit' }, + name: { kind: 'Name', value: 'limit' }, }, type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, }, @@ -20504,7 +28921,7 @@ export const GetAccountsWithAggregates = { kind: 'VariableDefinition', variable: { kind: 'Variable', - name: { kind: 'Name', value: 'positionsOffset' }, + name: { kind: 'Name', value: 'offset' }, }, type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, }, @@ -20512,29 +28929,7 @@ export const GetAccountsWithAggregates = { kind: 'VariableDefinition', variable: { kind: 'Variable', - name: { kind: 'Name', value: 'positionsWhere' }, - }, - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'positions_bool_exp' }, - }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'atomsWhere' }, - }, - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'atoms_bool_exp' }, - }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'atomsOrderBy' }, + name: { kind: 'Name', value: 'orderBy' }, }, type: { kind: 'ListType', @@ -20551,17 +28946,12 @@ export const GetAccountsWithAggregates = { kind: 'VariableDefinition', variable: { kind: 'Variable', - name: { kind: 'Name', value: 'atomsLimit' }, + name: { kind: 'Name', value: 'where' }, }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'atomsOffset' }, + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'atoms_bool_exp' }, }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, }, ], selectionSet: { @@ -20569,7 +28959,7 @@ export const GetAccountsWithAggregates = { selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'accounts_aggregate' }, + name: { kind: 'Name', value: 'atoms_aggregate' }, arguments: [ { kind: 'Argument', @@ -20625,15 +29015,28 @@ export const GetAccountsWithAggregates = { selections: [ { kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AccountMetadata' }, + name: { kind: 'Name', value: 'AtomMetadata' }, }, { kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AccountClaims' }, + name: { kind: 'Name', value: 'AtomTxn' }, }, { kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AccountPositions' }, + name: { kind: 'Name', value: 'AtomVaultDetails' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'creator' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AccountMetadata' }, + }, + ], + }, }, ], }, @@ -20657,82 +29060,74 @@ export const GetAccountsWithAggregates = { { kind: 'Field', name: { kind: 'Name', value: 'label' } }, { kind: 'Field', name: { kind: 'Name', value: 'image' } }, { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'atomId' } }, + { kind: 'Field', name: { kind: 'Name', value: 'atom_id' } }, { kind: 'Field', name: { kind: 'Name', value: 'type' } }, ], }, }, { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'AccountClaims' }, + name: { kind: 'Name', value: 'AtomValue' }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'accounts' }, + name: { kind: 'Name', value: 'atoms' }, }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'claims' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'order_by' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'shares' }, - value: { kind: 'EnumValue', value: 'desc' }, - }, - ], - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'limit' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'claimsLimit' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'offset' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'claimsOffset' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'where' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'claimsWhere' }, - }, - }, - ], + name: { kind: 'Name', value: 'value' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'triple' }, + name: { kind: 'Name', value: 'person' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'description' }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'url' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'thing' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'description' }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'url' } }, ], }, }, - { kind: 'Field', name: { kind: 'Name', value: 'shares' } }, { kind: 'Field', - name: { kind: 'Name', value: 'counterShares' }, + name: { kind: 'Name', value: 'organization' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'description' }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'url' } }, + ], + }, }, ], }, @@ -20742,111 +29137,150 @@ export const GetAccountsWithAggregates = { }, { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'AccountPositions' }, + name: { kind: 'Name', value: 'AtomMetadata' }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'accounts' }, + name: { kind: 'Name', value: 'atoms' }, }, selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'data' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { kind: 'Field', name: { kind: 'Name', value: 'wallet_id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'positions' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'order_by' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'shares' }, - value: { kind: 'EnumValue', value: 'desc' }, - }, - ], - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'limit' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'positionsLimit' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'offset' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'positionsOffset' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'where' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'positionsWhere' }, - }, - }, - ], + name: { kind: 'Name', value: 'creator' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'shares' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + ], + }, + }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AtomValue' }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'AtomTxn' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'atoms' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'block_number' } }, + { kind: 'Field', name: { kind: 'Name', value: 'block_timestamp' } }, + { kind: 'Field', name: { kind: 'Name', value: 'transaction_hash' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creator_id' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'AtomVaultDetails' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'atoms' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'vault_id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'wallet_id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'vault' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'vault' }, + name: { kind: 'Name', value: 'position_count' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'total_shares' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'current_share_price' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'positions_aggregate' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'totalShares' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'currentSharePrice' }, - }, { kind: 'Field', - name: { kind: 'Name', value: 'atom' }, + name: { kind: 'Name', value: 'aggregate' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'id' }, + name: { kind: 'Name', value: 'count' }, }, { kind: 'Field', - name: { kind: 'Name', value: 'label' }, + name: { kind: 'Name', value: 'sum' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'shares' }, + }, + ], + }, }, ], }, }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'positions' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'triple' }, + name: { kind: 'Name', value: 'account' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'id' }, + name: { kind: 'Name', value: 'label' }, }, { kind: 'Field', - name: { kind: 'Name', value: 'label' }, + name: { kind: 'Name', value: 'id' }, }, ], }, }, + { + kind: 'Field', + name: { kind: 'Name', value: 'shares' }, + }, ], }, }, @@ -20858,13 +29292,13 @@ export const GetAccountsWithAggregates = { }, ], } as unknown as DocumentNode -export const GetAccountsCount = { +export const GetAtomsCount = { kind: 'Document', definitions: [ { kind: 'OperationDefinition', operation: 'query', - name: { kind: 'Name', value: 'GetAccountsCount' }, + name: { kind: 'Name', value: 'GetAtomsCount' }, variableDefinitions: [ { kind: 'VariableDefinition', @@ -20874,7 +29308,7 @@ export const GetAccountsCount = { }, type: { kind: 'NamedType', - name: { kind: 'Name', value: 'accounts_bool_exp' }, + name: { kind: 'Name', value: 'atoms_bool_exp' }, }, }, ], @@ -20883,7 +29317,7 @@ export const GetAccountsCount = { selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'accounts_aggregate' }, + name: { kind: 'Name', value: 'atoms_aggregate' }, arguments: [ { kind: 'Argument', @@ -20915,184 +29349,39 @@ export const GetAccountsCount = { }, ], } as unknown as DocumentNode -export const GetAccount = { +export const GetAtom = { kind: 'Document', definitions: [ { kind: 'OperationDefinition', operation: 'query', - name: { kind: 'Name', value: 'GetAccount' }, + name: { kind: 'Name', value: 'GetAtom' }, variableDefinitions: [ { kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'address' }, - }, + variable: { kind: 'Variable', name: { kind: 'Name', value: 'id' } }, type: { kind: 'NonNullType', type: { kind: 'NamedType', - name: { kind: 'Name', value: 'String' }, - }, - }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'claimsLimit' }, - }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'claimsOffset' }, - }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'claimsWhere' }, - }, - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'claims_bool_exp' }, - }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'positionsLimit' }, - }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'positionsOffset' }, - }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'positionsWhere' }, - }, - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'positions_bool_exp' }, - }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'atomsWhere' }, - }, - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'atoms_bool_exp' }, - }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'atomsOrderBy' }, - }, - type: { - kind: 'ListType', - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'atoms_order_by' }, - }, - }, - }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'atomsLimit' }, - }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'atomsOffset' }, - }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'triplesWhere' }, - }, - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'triples_bool_exp' }, - }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'triplesOrderBy' }, - }, - type: { - kind: 'ListType', - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'triples_order_by' }, - }, + name: { kind: 'Name', value: 'numeric' }, }, }, }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'triplesLimit' }, - }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'triplesOffset' }, - }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, - }, ], selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'account' }, + name: { kind: 'Name', value: 'atom' }, arguments: [ { kind: 'Argument', name: { kind: 'Name', value: 'id' }, value: { kind: 'Variable', - name: { kind: 'Name', value: 'address' }, + name: { kind: 'Name', value: 'id' }, }, }, ], @@ -21101,72 +29390,33 @@ export const GetAccount = { selections: [ { kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AccountMetadata' }, + name: { kind: 'Name', value: 'AtomMetadata' }, + }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AtomTxn' }, + }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AtomVaultDetails' }, }, { kind: 'Field', - name: { kind: 'Name', value: 'atom' }, + name: { kind: 'Name', value: 'creator' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AtomMetadata' }, - }, - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AtomVaultDetails' }, + name: { kind: 'Name', value: 'AccountMetadata' }, }, ], }, }, { kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AccountClaims' }, - }, - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AccountPositions' }, - }, - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AccountCreatedAtoms' }, - }, - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AccountCreatedTriples' }, - }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'chainLinkPrices' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'limit' }, - value: { kind: 'IntValue', value: '1' }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'order_by' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'id' }, - value: { kind: 'EnumValue', value: 'desc' }, - }, - ], + name: { kind: 'Name', value: 'AtomTriple' }, }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'usd' } }, ], }, }, @@ -21186,196 +29436,72 @@ export const GetAccount = { { kind: 'Field', name: { kind: 'Name', value: 'label' } }, { kind: 'Field', name: { kind: 'Name', value: 'image' } }, { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'atomId' } }, + { kind: 'Field', name: { kind: 'Name', value: 'atom_id' } }, { kind: 'Field', name: { kind: 'Name', value: 'type' } }, ], }, }, { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'AccountClaims' }, + name: { kind: 'Name', value: 'AtomValue' }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'accounts' }, + name: { kind: 'Name', value: 'atoms' }, }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'claims' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'order_by' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'shares' }, - value: { kind: 'EnumValue', value: 'desc' }, - }, - ], - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'limit' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'claimsLimit' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'offset' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'claimsOffset' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'where' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'claimsWhere' }, - }, - }, - ], + name: { kind: 'Name', value: 'value' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'triple' }, + name: { kind: 'Name', value: 'person' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'description' }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'url' } }, ], }, }, - { kind: 'Field', name: { kind: 'Name', value: 'shares' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'counterShares' }, - }, - ], - }, - }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'AccountPositions' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'accounts' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'positions' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'order_by' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'shares' }, - value: { kind: 'EnumValue', value: 'desc' }, - }, - ], - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'limit' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'positionsLimit' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'offset' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'positionsOffset' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'where' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'positionsWhere' }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'shares' } }, { kind: 'Field', - name: { kind: 'Name', value: 'vault' }, + name: { kind: 'Name', value: 'thing' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'totalShares' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'currentSharePrice' }, - }, + { kind: 'Field', name: { kind: 'Name', value: 'name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, { kind: 'Field', - name: { kind: 'Name', value: 'atom' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'label' }, - }, - ], - }, + name: { kind: 'Name', value: 'description' }, }, + { kind: 'Field', name: { kind: 'Name', value: 'url' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'organization' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, { kind: 'Field', - name: { kind: 'Name', value: 'triple' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'label' }, - }, - ], - }, + name: { kind: 'Name', value: 'description' }, }, + { kind: 'Field', name: { kind: 'Name', value: 'url' } }, ], }, }, @@ -21387,124 +29513,150 @@ export const GetAccount = { }, { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'AccountCreatedAtoms' }, + name: { kind: 'Name', value: 'AtomMetadata' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'atoms' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'data' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { kind: 'Field', name: { kind: 'Name', value: 'wallet_id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'creator' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + ], + }, + }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AtomValue' }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'AtomTxn' }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'accounts' }, + name: { kind: 'Name', value: 'atoms' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'block_number' } }, + { kind: 'Field', name: { kind: 'Name', value: 'block_timestamp' } }, + { kind: 'Field', name: { kind: 'Name', value: 'transaction_hash' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creator_id' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'AtomVaultDetails' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'atoms' }, }, selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'vault_id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'wallet_id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'createdAtoms' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'where' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'atomsWhere' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'order_by' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'atomsOrderBy' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'limit' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'atomsLimit' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'offset' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'atomsOffset' }, - }, - }, - ], + name: { kind: 'Name', value: 'vault' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { kind: 'Field', name: { kind: 'Name', value: 'data' } }, { kind: 'Field', - name: { kind: 'Name', value: 'vault' }, + name: { kind: 'Name', value: 'position_count' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'total_shares' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'current_share_price' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'positions_aggregate' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'totalShares' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'positions' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'where' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'accountId' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: '_eq' }, - value: { - kind: 'Variable', - name: { - kind: 'Name', - value: 'address', - }, - }, - }, - ], - }, - }, - ], - }, - }, - ], + name: { kind: 'Name', value: 'aggregate' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'account' }, + name: { kind: 'Name', value: 'count' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'sum' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'id' }, + name: { kind: 'Name', value: 'shares' }, }, ], }, }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'positions' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'account' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'label' }, + }, { kind: 'Field', - name: { kind: 'Name', value: 'shares' }, + name: { kind: 'Name', value: 'id' }, }, ], }, }, + { + kind: 'Field', + name: { kind: 'Name', value: 'shares' }, + }, ], }, }, @@ -21516,119 +29668,70 @@ export const GetAccount = { }, { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'AccountCreatedTriples' }, + name: { kind: 'Name', value: 'AtomTriple' }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'accounts' }, + name: { kind: 'Name', value: 'atoms' }, }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'createdTriples_aggregate' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'where' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'triplesWhere' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'order_by' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'triplesOrderBy' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'limit' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'triplesLimit' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'offset' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'triplesOffset' }, - }, - }, - ], + name: { kind: 'Name', value: 'as_subject_triples' }, selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'aggregate' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'count' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'nodes' }, + name: { kind: 'Name', value: 'object' }, selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'data' } }, { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, { kind: 'Field', - name: { kind: 'Name', value: 'subject' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'label' }, - }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'predicate' }, + name: { kind: 'Name', value: 'creator' }, selectionSet: { kind: 'SelectionSet', selections: [ { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'label' }, + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AccountMetadata' }, }, ], }, }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'predicate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'data' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, { kind: 'Field', - name: { kind: 'Name', value: 'object' }, + name: { kind: 'Name', value: 'creator' }, selectionSet: { kind: 'SelectionSet', selections: [ { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'label' }, + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AccountMetadata' }, }, ], }, @@ -21639,70 +29742,132 @@ export const GetAccount = { ], }, }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'AtomValue' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'atoms' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'value' }, + name: { kind: 'Name', value: 'as_predicate_triples' }, selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'person' }, + name: { kind: 'Name', value: 'subject' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'data' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, { kind: 'Field', - name: { kind: 'Name', value: 'description' }, + name: { kind: 'Name', value: 'creator' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AccountMetadata' }, + }, + ], + }, }, - { kind: 'Field', name: { kind: 'Name', value: 'url' } }, ], }, }, { kind: 'Field', - name: { kind: 'Name', value: 'thing' }, + name: { kind: 'Name', value: 'object' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'data' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, { kind: 'Field', - name: { kind: 'Name', value: 'description' }, + name: { kind: 'Name', value: 'creator' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AccountMetadata' }, + }, + ], + }, }, - { kind: 'Field', name: { kind: 'Name', value: 'url' } }, ], }, }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'as_object_triples' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'organization' }, + name: { kind: 'Name', value: 'subject' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'data' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, { kind: 'Field', - name: { kind: 'Name', value: 'description' }, + name: { kind: 'Name', value: 'creator' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AccountMetadata' }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'predicate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'data' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'creator' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AccountMetadata' }, + }, + ], + }, }, - { kind: 'Field', name: { kind: 'Name', value: 'url' } }, ], }, }, @@ -21712,94 +29877,132 @@ export const GetAccount = { ], }, }, + ], +} as unknown as DocumentNode +export const GetClaimsByAddress = { + kind: 'Document', + definitions: [ { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'AtomMetadata' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'atoms' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'data' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, - { kind: 'Field', name: { kind: 'Name', value: 'type' } }, - { kind: 'Field', name: { kind: 'Name', value: 'walletId' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'creator' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, - ], - }, - }, - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AtomValue' }, + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetClaimsByAddress' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'address' }, }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'AtomVaultDetails' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'atoms' }, - }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'vaultId' } }, - { kind: 'Field', name: { kind: 'Name', value: 'walletId' } }, { kind: 'Field', - name: { kind: 'Name', value: 'vault' }, + name: { kind: 'Name', value: 'claims_aggregate' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'account_id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'address' }, + }, + }, + ], + }, + }, + ], + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'positionCount' }, - }, - { kind: 'Field', name: { kind: 'Name', value: 'totalShares' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'currentSharePrice' }, + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'count' } }, + ], + }, }, { kind: 'Field', - name: { kind: 'Name', value: 'positions_aggregate' }, + name: { kind: 'Name', value: 'nodes' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'aggregate' }, + name: { kind: 'Name', value: 'account' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'count' }, + name: { kind: 'Name', value: 'label' }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'triple' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'subject' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'label' }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'predicate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'label' }, + }, + ], + }, }, { kind: 'Field', - name: { kind: 'Name', value: 'sum' }, + name: { kind: 'Name', value: 'object' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'shares' }, + name: { kind: 'Name', value: 'label' }, }, ], }, @@ -21807,37 +30010,23 @@ export const GetAccount = { ], }, }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'positions' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'account' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'label' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - ], - }, + name: { kind: 'Name', value: 'vault_id' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'counter_vault_id' }, }, { kind: 'Field', name: { kind: 'Name', value: 'shares' }, }, + { + kind: 'Field', + name: { kind: 'Name', value: 'counter_shares' }, + }, ], }, }, @@ -21849,25 +30038,25 @@ export const GetAccount = { }, ], } as unknown as DocumentNode -export const GetAccountWithPaginatedRelations = { +export const GetFollowingPositions = { kind: 'Document', definitions: [ { kind: 'OperationDefinition', operation: 'query', - name: { kind: 'Name', value: 'GetAccountWithPaginatedRelations' }, + name: { kind: 'Name', value: 'GetFollowingPositions' }, variableDefinitions: [ { kind: 'VariableDefinition', variable: { kind: 'Variable', - name: { kind: 'Name', value: 'address' }, + name: { kind: 'Name', value: 'subjectId' }, }, type: { kind: 'NonNullType', type: { kind: 'NamedType', - name: { kind: 'Name', value: 'String' }, + name: { kind: 'Name', value: 'numeric' }, }, }, }, @@ -21875,97 +30064,27 @@ export const GetAccountWithPaginatedRelations = { kind: 'VariableDefinition', variable: { kind: 'Variable', - name: { kind: 'Name', value: 'claimsLimit' }, - }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'claimsOffset' }, - }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'claimsWhere' }, - }, - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'claims_bool_exp' }, - }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'positionsLimit' }, - }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'positionsOffset' }, - }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'positionsWhere' }, - }, - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'positions_bool_exp' }, - }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'atomsLimit' }, - }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'atomsOffset' }, - }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'atomsWhere' }, + name: { kind: 'Name', value: 'predicateId' }, }, type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'atoms_bool_exp' }, + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'numeric' }, + }, }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', - name: { kind: 'Name', value: 'atomsOrderBy' }, + name: { kind: 'Name', value: 'address' }, }, type: { - kind: 'ListType', + kind: 'NonNullType', type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'atoms_order_by' }, - }, + kind: 'NamedType', + name: { kind: 'Name', value: 'String' }, }, }, }, @@ -21973,7 +30092,7 @@ export const GetAccountWithPaginatedRelations = { kind: 'VariableDefinition', variable: { kind: 'Variable', - name: { kind: 'Name', value: 'triplesLimit' }, + name: { kind: 'Name', value: 'limit' }, }, type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, }, @@ -21981,7 +30100,7 @@ export const GetAccountWithPaginatedRelations = { kind: 'VariableDefinition', variable: { kind: 'Variable', - name: { kind: 'Name', value: 'triplesOffset' }, + name: { kind: 'Name', value: 'offset' }, }, type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, }, @@ -21989,18 +30108,7 @@ export const GetAccountWithPaginatedRelations = { kind: 'VariableDefinition', variable: { kind: 'Variable', - name: { kind: 'Name', value: 'triplesWhere' }, - }, - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'triples_bool_exp' }, - }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'triplesOrderBy' }, + name: { kind: 'Name', value: 'positionsOrderBy' }, }, type: { kind: 'ListType', @@ -22008,7 +30116,7 @@ export const GetAccountWithPaginatedRelations = { kind: 'NonNullType', type: { kind: 'NamedType', - name: { kind: 'Name', value: 'triples_order_by' }, + name: { kind: 'Name', value: 'positions_order_by' }, }, }, }, @@ -22019,176 +30127,155 @@ export const GetAccountWithPaginatedRelations = { selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'account' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'id' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'address' }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AccountMetadata' }, - }, - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AccountClaims' }, - }, - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AccountPositions' }, - }, - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AccountCreatedAtoms' }, - }, - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AccountCreatedTriples' }, - }, - ], - }, - }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'AccountMetadata' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'accounts' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'atomId' } }, - { kind: 'Field', name: { kind: 'Name', value: 'type' } }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'AccountClaims' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'accounts' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'claims' }, + name: { kind: 'Name', value: 'triples_aggregate' }, arguments: [ { kind: 'Argument', - name: { kind: 'Name', value: 'order_by' }, + name: { kind: 'Name', value: 'where' }, value: { kind: 'ObjectValue', fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'shares' }, - value: { kind: 'EnumValue', value: 'desc' }, + name: { kind: 'Name', value: '_and' }, + value: { + kind: 'ListValue', + values: [ + { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'subject_id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'Variable', + name: { + kind: 'Name', + value: 'subjectId', + }, + }, + }, + ], + }, + }, + ], + }, + { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'predicate_id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'Variable', + name: { + kind: 'Name', + value: 'predicateId', + }, + }, + }, + ], + }, + }, + ], + }, + { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'vault' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { + kind: 'Name', + value: 'positions', + }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { + kind: 'Name', + value: 'account_id', + }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { + kind: 'Name', + value: '_eq', + }, + value: { + kind: 'Variable', + name: { + kind: 'Name', + value: 'address', + }, + }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + ], + }, }, ], }, }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'limit' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'claimsLimit' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'offset' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'claimsOffset' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'where' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'claimsWhere' }, - }, - }, ], selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'triple' }, + name: { kind: 'Name', value: 'aggregate' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'count' } }, ], }, }, - { kind: 'Field', name: { kind: 'Name', value: 'shares' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'counterShares' }, - }, ], }, }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'AccountPositions' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'accounts' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'positions' }, + name: { kind: 'Name', value: 'triples' }, arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'order_by' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'shares' }, - value: { kind: 'EnumValue', value: 'desc' }, - }, - ], - }, - }, { kind: 'Argument', name: { kind: 'Name', value: 'limit' }, value: { kind: 'Variable', - name: { kind: 'Name', value: 'positionsLimit' }, + name: { kind: 'Name', value: 'limit' }, }, }, { @@ -22196,15 +30283,127 @@ export const GetAccountWithPaginatedRelations = { name: { kind: 'Name', value: 'offset' }, value: { kind: 'Variable', - name: { kind: 'Name', value: 'positionsOffset' }, + name: { kind: 'Name', value: 'offset' }, }, }, { kind: 'Argument', name: { kind: 'Name', value: 'where' }, value: { - kind: 'Variable', - name: { kind: 'Name', value: 'positionsWhere' }, + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_and' }, + value: { + kind: 'ListValue', + values: [ + { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'subject_id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'Variable', + name: { + kind: 'Name', + value: 'subjectId', + }, + }, + }, + ], + }, + }, + ], + }, + { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'predicate_id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'Variable', + name: { + kind: 'Name', + value: 'predicateId', + }, + }, + }, + ], + }, + }, + ], + }, + { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'vault' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { + kind: 'Name', + value: 'positions', + }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { + kind: 'Name', + value: 'account_id', + }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { + kind: 'Name', + value: '_eq', + }, + value: { + kind: 'Variable', + name: { + kind: 'Name', + value: 'address', + }, + }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + ], + }, + }, + ], }, }, ], @@ -22212,118 +30411,45 @@ export const GetAccountWithPaginatedRelations = { kind: 'SelectionSet', selections: [ { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'shares' } }, { kind: 'Field', - name: { kind: 'Name', value: 'vault' }, + name: { kind: 'Name', value: 'subject' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'totalShares' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'currentSharePrice' }, - }, { - kind: 'Field', - name: { kind: 'Name', value: 'atom' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'label' }, - }, - ], - }, + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AtomMetadata' }, }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'predicate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ { - kind: 'Field', - name: { kind: 'Name', value: 'triple' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'label' }, - }, - ], - }, + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AtomMetadata' }, }, ], }, }, - ], - }, - }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'AccountCreatedAtoms' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'accounts' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'createdAtoms' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'where' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'atomsWhere' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'order_by' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'atomsOrderBy' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'limit' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'atomsLimit' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'offset' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'atomsOffset' }, + { + kind: 'Field', + name: { kind: 'Name', value: 'object' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AtomMetadata' }, + }, + ], + }, }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { kind: 'Field', name: { kind: 'Name', value: 'data' } }, { kind: 'Field', name: { kind: 'Name', value: 'vault' }, @@ -22332,7 +30458,49 @@ export const GetAccountWithPaginatedRelations = { selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'totalShares' }, + name: { kind: 'Name', value: 'total_shares' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'current_share_price' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'positions_aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'count' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'sum' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { + kind: 'Name', + value: 'shares', + }, + }, + ], + }, + }, + ], + }, + }, + ], + }, }, { kind: 'Field', @@ -22346,7 +30514,7 @@ export const GetAccountWithPaginatedRelations = { fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'accountId' }, + name: { kind: 'Name', value: 'account_id' }, value: { kind: 'ObjectValue', fields: [ @@ -22367,10 +30535,22 @@ export const GetAccountWithPaginatedRelations = { ], }, }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'positionsOrderBy' }, + }, + }, ], selectionSet: { kind: 'SelectionSet', selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'account_id' }, + }, { kind: 'Field', name: { kind: 'Name', value: 'account' }, @@ -22381,6 +30561,10 @@ export const GetAccountWithPaginatedRelations = { kind: 'Field', name: { kind: 'Name', value: 'id' }, }, + { + kind: 'Field', + name: { kind: 'Name', value: 'label' }, + }, ], }, }, @@ -22402,123 +30586,65 @@ export const GetAccountWithPaginatedRelations = { }, { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'AccountCreatedTriples' }, + name: { kind: 'Name', value: 'AtomValue' }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'accounts' }, + name: { kind: 'Name', value: 'atoms' }, }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'createdTriples_aggregate' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'where' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'triplesWhere' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'order_by' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'triplesOrderBy' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'limit' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'triplesLimit' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'offset' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'triplesOffset' }, - }, - }, - ], + name: { kind: 'Name', value: 'value' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'aggregate' }, + name: { kind: 'Name', value: 'person' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'count' } }, + { kind: 'Field', name: { kind: 'Name', value: 'name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'description' }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'url' } }, ], }, }, { kind: 'Field', - name: { kind: 'Name', value: 'nodes' }, + name: { kind: 'Name', value: 'thing' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'subject' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'label' }, - }, - ], - }, - }, + { kind: 'Field', name: { kind: 'Name', value: 'name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, { kind: 'Field', - name: { kind: 'Name', value: 'predicate' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'label' }, - }, - ], - }, + name: { kind: 'Name', value: 'description' }, }, + { kind: 'Field', name: { kind: 'Name', value: 'url' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'organization' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, { kind: 'Field', - name: { kind: 'Name', value: 'object' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'label' }, - }, - ], - }, + name: { kind: 'Name', value: 'description' }, }, + { kind: 'Field', name: { kind: 'Name', value: 'url' } }, ], }, }, @@ -22528,109 +30654,91 @@ export const GetAccountWithPaginatedRelations = { ], }, }, - ], -} as unknown as DocumentNode -export const GetAccountWithAggregates = { - kind: 'Document', - definitions: [ { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'GetAccountWithAggregates' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'address' }, - }, - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'String' }, - }, - }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'claimsLimit' }, - }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'claimsOffset' }, - }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'claimsWhere' }, - }, - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'claims_bool_exp' }, - }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'positionsLimit' }, + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'AtomMetadata' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'atoms' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'data' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { kind: 'Field', name: { kind: 'Name', value: 'wallet_id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'creator' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + ], + }, }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'positionsOffset' }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AtomValue' }, }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, - }, + ], + }, + }, + ], +} as unknown as DocumentNode +export const GetFollowerPositions = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetFollowerPositions' }, + variableDefinitions: [ { kind: 'VariableDefinition', variable: { kind: 'Variable', - name: { kind: 'Name', value: 'positionsWhere' }, + name: { kind: 'Name', value: 'subjectId' }, }, type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'positions_bool_exp' }, + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'numeric' }, + }, }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', - name: { kind: 'Name', value: 'atomsWhere' }, + name: { kind: 'Name', value: 'predicateId' }, }, type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'atoms_bool_exp' }, + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'numeric' }, + }, }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', - name: { kind: 'Name', value: 'atomsOrderBy' }, + name: { kind: 'Name', value: 'objectId' }, }, type: { - kind: 'ListType', + kind: 'NonNullType', type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'atoms_order_by' }, - }, + kind: 'NamedType', + name: { kind: 'Name', value: 'numeric' }, }, }, }, @@ -22638,7 +30746,7 @@ export const GetAccountWithAggregates = { kind: 'VariableDefinition', variable: { kind: 'Variable', - name: { kind: 'Name', value: 'atomsLimit' }, + name: { kind: 'Name', value: 'positionsLimit' }, }, type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, }, @@ -22646,7 +30754,7 @@ export const GetAccountWithAggregates = { kind: 'VariableDefinition', variable: { kind: 'Variable', - name: { kind: 'Name', value: 'atomsOffset' }, + name: { kind: 'Name', value: 'positionsOffset' }, }, type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, }, @@ -22654,18 +30762,7 @@ export const GetAccountWithAggregates = { kind: 'VariableDefinition', variable: { kind: 'Variable', - name: { kind: 'Name', value: 'triplesWhere' }, - }, - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'triples_bool_exp' }, - }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'triplesOrderBy' }, + name: { kind: 'Name', value: 'positionsOrderBy' }, }, type: { kind: 'ListType', @@ -22673,7 +30770,7 @@ export const GetAccountWithAggregates = { kind: 'NonNullType', type: { kind: 'NamedType', - name: { kind: 'Name', value: 'triples_order_by' }, + name: { kind: 'Name', value: 'positions_order_by' }, }, }, }, @@ -22682,17 +30779,12 @@ export const GetAccountWithAggregates = { kind: 'VariableDefinition', variable: { kind: 'Variable', - name: { kind: 'Name', value: 'triplesLimit' }, + name: { kind: 'Name', value: 'positionsWhere' }, }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'triplesOffset' }, + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'positions_bool_exp' }, }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, }, ], selectionSet: { @@ -22700,173 +30792,97 @@ export const GetAccountWithAggregates = { selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'account' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'id' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'address' }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AccountMetadata' }, - }, - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AccountClaimsAggregate' }, - }, - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AccountPositionsAggregate' }, - }, - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AccountCreatedAtomsAggregate' }, - }, - { - kind: 'FragmentSpread', - name: { - kind: 'Name', - value: 'AccountCreatedTriplesAggregate', - }, - }, - ], - }, - }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'AccountMetadata' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'accounts' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'atomId' } }, - { kind: 'Field', name: { kind: 'Name', value: 'type' } }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'AccountClaimsAggregate' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'accounts' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'claims_aggregate' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'order_by' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'shares' }, - value: { kind: 'EnumValue', value: 'desc' }, - }, - ], - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'aggregate' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'count' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'nodes' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'triple' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'label' }, - }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'shares' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'counterShares' }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'AccountPositionsAggregate' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'accounts' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'positions_aggregate' }, + name: { kind: 'Name', value: 'triples' }, arguments: [ { kind: 'Argument', - name: { kind: 'Name', value: 'order_by' }, + name: { kind: 'Name', value: 'where' }, value: { kind: 'ObjectValue', fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'shares' }, - value: { kind: 'EnumValue', value: 'desc' }, + name: { kind: 'Name', value: '_and' }, + value: { + kind: 'ListValue', + values: [ + { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'subject_id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'Variable', + name: { + kind: 'Name', + value: 'subjectId', + }, + }, + }, + ], + }, + }, + ], + }, + { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'predicate_id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'Variable', + name: { + kind: 'Name', + value: 'predicateId', + }, + }, + }, + ], + }, + }, + ], + }, + { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'object_id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'Variable', + name: { + kind: 'Name', + value: 'objectId', + }, + }, + }, + ], + }, + }, + ], + }, + ], + }, }, ], }, @@ -22875,257 +30891,82 @@ export const GetAccountWithAggregates = { selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'aggregate' }, + name: { kind: 'Name', value: 'subject' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'count' } }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AtomMetadata' }, + }, ], }, }, { kind: 'Field', - name: { kind: 'Name', value: 'nodes' }, + name: { kind: 'Name', value: 'predicate' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'shares' }, - }, { - kind: 'Field', - name: { kind: 'Name', value: 'vault' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'totalShares' }, - }, - { - kind: 'Field', - name: { - kind: 'Name', - value: 'currentSharePrice', - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'atom' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'label' }, - }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'triple' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'label' }, - }, - ], - }, - }, - ], - }, + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AtomMetadata' }, }, ], }, }, - ], - }, - }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'AccountCreatedAtomsAggregate' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'accounts' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'createdAtoms_aggregate' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'where' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'atomsWhere' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'order_by' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'atomsOrderBy' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'limit' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'atomsLimit' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'offset' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'atomsOffset' }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'aggregate' }, + name: { kind: 'Name', value: 'object' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'count' } }, { - kind: 'Field', - name: { kind: 'Name', value: 'sum' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - ], - }, + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AtomMetadata' }, }, ], }, }, { kind: 'Field', - name: { kind: 'Name', value: 'nodes' }, + name: { kind: 'Name', value: 'vault' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { kind: 'Field', name: { kind: 'Name', value: 'data' } }, { kind: 'Field', - name: { kind: 'Name', value: 'vault' }, + name: { kind: 'Name', value: 'total_shares' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'current_share_price' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'positions_aggregate' }, selectionSet: { kind: 'SelectionSet', selections: [ { - kind: 'Field', - name: { kind: 'Name', value: 'totalShares' }, - }, - { - kind: 'Field', - name: { - kind: 'Name', - value: 'positions_aggregate', - }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'where' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { - kind: 'Name', - value: 'accountId', - }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { - kind: 'Name', - value: '_eq', - }, - value: { - kind: 'Variable', - name: { - kind: 'Name', - value: 'address', - }, - }, - }, - ], - }, - }, - ], - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'nodes' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { - kind: 'Name', - value: 'account', - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { - kind: 'Name', - value: 'id', - }, - }, - ], - }, - }, + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'count' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'sum' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ { kind: 'Field', name: { @@ -23142,6 +30983,74 @@ export const GetAccountWithAggregates = { ], }, }, + { + kind: 'Field', + name: { kind: 'Name', value: 'positions' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'positionsLimit' }, + }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'offset' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'positionsOffset' }, + }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'positionsOrderBy' }, + }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'positionsWhere' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'account' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'label' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'image' }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'shares' }, + }, + ], + }, + }, ], }, }, @@ -23153,147 +31062,184 @@ export const GetAccountWithAggregates = { }, { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'AccountCreatedTriplesAggregate' }, + name: { kind: 'Name', value: 'AtomValue' }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'accounts' }, + name: { kind: 'Name', value: 'atoms' }, }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'createdTriples_aggregate' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'where' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'triplesWhere' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'order_by' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'triplesOrderBy' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'limit' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'triplesLimit' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'offset' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'triplesOffset' }, - }, - }, - ], + name: { kind: 'Name', value: 'value' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'aggregate' }, + name: { kind: 'Name', value: 'person' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'count' } }, + { kind: 'Field', name: { kind: 'Name', value: 'name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'description' }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'url' } }, ], }, }, { kind: 'Field', - name: { kind: 'Name', value: 'nodes' }, + name: { kind: 'Name', value: 'thing' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'subject' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'label' }, - }, - ], - }, - }, + { kind: 'Field', name: { kind: 'Name', value: 'name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, { kind: 'Field', - name: { kind: 'Name', value: 'predicate' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'label' }, - }, - ], - }, + name: { kind: 'Name', value: 'description' }, }, + { kind: 'Field', name: { kind: 'Name', value: 'url' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'organization' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, { kind: 'Field', - name: { kind: 'Name', value: 'object' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'label' }, - }, - ], - }, + name: { kind: 'Name', value: 'description' }, }, + { kind: 'Field', name: { kind: 'Name', value: 'url' } }, ], }, }, ], }, }, - ], - }, - }, - ], -} as unknown as DocumentNode -export const GetAtoms = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'GetAtoms' }, - variableDefinitions: [ + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'AtomMetadata' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'atoms' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'data' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { kind: 'Field', name: { kind: 'Name', value: 'wallet_id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'creator' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + ], + }, + }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AtomValue' }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode +export const GetConnections = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetConnections' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'subjectId' }, + }, + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'numeric' }, + }, + }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'predicateId' }, + }, + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'numeric' }, + }, + }, + }, { kind: 'VariableDefinition', variable: { kind: 'Variable', - name: { kind: 'Name', value: 'limit' }, + name: { kind: 'Name', value: 'objectId' }, + }, + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'numeric' }, + }, + }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'addresses' }, + }, + type: { + kind: 'ListType', + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'String' }, + }, + }, + }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'positionsLimit' }, }, type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, }, @@ -23301,7 +31247,7 @@ export const GetAtoms = { kind: 'VariableDefinition', variable: { kind: 'Variable', - name: { kind: 'Name', value: 'offset' }, + name: { kind: 'Name', value: 'positionsOffset' }, }, type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, }, @@ -23309,7 +31255,7 @@ export const GetAtoms = { kind: 'VariableDefinition', variable: { kind: 'Variable', - name: { kind: 'Name', value: 'orderBy' }, + name: { kind: 'Name', value: 'positionsOrderBy' }, }, type: { kind: 'ListType', @@ -23317,7 +31263,7 @@ export const GetAtoms = { kind: 'NonNullType', type: { kind: 'NamedType', - name: { kind: 'Name', value: 'atoms_order_by' }, + name: { kind: 'Name', value: 'positions_order_by' }, }, }, }, @@ -23326,11 +31272,11 @@ export const GetAtoms = { kind: 'VariableDefinition', variable: { kind: 'Variable', - name: { kind: 'Name', value: 'where' }, + name: { kind: 'Name', value: 'positionsWhere' }, }, type: { kind: 'NamedType', - name: { kind: 'Name', value: 'atoms_bool_exp' }, + name: { kind: 'Name', value: 'positions_bool_exp' }, }, }, ], @@ -23339,15 +31285,100 @@ export const GetAtoms = { selections: [ { kind: 'Field', - alias: { kind: 'Name', value: 'total' }, - name: { kind: 'Name', value: 'atoms_aggregate' }, + alias: { kind: 'Name', value: 'following_count' }, + name: { kind: 'Name', value: 'triples_aggregate' }, arguments: [ { kind: 'Argument', name: { kind: 'Name', value: 'where' }, value: { - kind: 'Variable', - name: { kind: 'Name', value: 'where' }, + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_and' }, + value: { + kind: 'ListValue', + values: [ + { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'subject_id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'Variable', + name: { + kind: 'Name', + value: 'subjectId', + }, + }, + }, + ], + }, + }, + ], + }, + { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'predicate_id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'Variable', + name: { + kind: 'Name', + value: 'predicateId', + }, + }, + }, + ], + }, + }, + ], + }, + { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'object_id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'Variable', + name: { + kind: 'Name', + value: 'objectId', + }, + }, + }, + ], + }, + }, + ], + }, + ], + }, + }, + ], }, }, ], @@ -23369,38 +31400,378 @@ export const GetAtoms = { }, { kind: 'Field', - name: { kind: 'Name', value: 'atoms' }, + alias: { kind: 'Name', value: 'following' }, + name: { kind: 'Name', value: 'triples' }, arguments: [ { kind: 'Argument', - name: { kind: 'Name', value: 'limit' }, + name: { kind: 'Name', value: 'where' }, value: { - kind: 'Variable', - name: { kind: 'Name', value: 'limit' }, + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_and' }, + value: { + kind: 'ListValue', + values: [ + { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'subject_id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'Variable', + name: { + kind: 'Name', + value: 'subjectId', + }, + }, + }, + ], + }, + }, + ], + }, + { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'predicate_id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'Variable', + name: { + kind: 'Name', + value: 'predicateId', + }, + }, + }, + ], + }, + }, + ], + }, + { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'object_id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'Variable', + name: { + kind: 'Name', + value: 'objectId', + }, + }, + }, + ], + }, + }, + ], + }, + ], + }, + }, + ], }, }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'offset' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'offset' }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'FollowMetadata' }, }, - }, + ], + }, + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'followers_count' }, + name: { kind: 'Name', value: 'triples_aggregate' }, + arguments: [ { kind: 'Argument', - name: { kind: 'Name', value: 'order_by' }, + name: { kind: 'Name', value: 'where' }, value: { - kind: 'Variable', - name: { kind: 'Name', value: 'orderBy' }, + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_and' }, + value: { + kind: 'ListValue', + values: [ + { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'subject_id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'Variable', + name: { + kind: 'Name', + value: 'subjectId', + }, + }, + }, + ], + }, + }, + ], + }, + { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'predicate_id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'Variable', + name: { + kind: 'Name', + value: 'predicateId', + }, + }, + }, + ], + }, + }, + ], + }, + { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'vault' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { + kind: 'Name', + value: 'positions', + }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { + kind: 'Name', + value: 'account_id', + }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { + kind: 'Name', + value: '_in', + }, + value: { + kind: 'Variable', + name: { + kind: 'Name', + value: 'addresses', + }, + }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + ], + }, + }, + ], }, }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'count' } }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'followers' }, + name: { kind: 'Name', value: 'triples' }, + arguments: [ { kind: 'Argument', name: { kind: 'Name', value: 'where' }, value: { - kind: 'Variable', - name: { kind: 'Name', value: 'where' }, + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_and' }, + value: { + kind: 'ListValue', + values: [ + { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'subject_id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'Variable', + name: { + kind: 'Name', + value: 'subjectId', + }, + }, + }, + ], + }, + }, + ], + }, + { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'predicate_id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'Variable', + name: { + kind: 'Name', + value: 'predicateId', + }, + }, + }, + ], + }, + }, + ], + }, + { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'vault' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { + kind: 'Name', + value: 'positions', + }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { + kind: 'Name', + value: 'account_id', + }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { + kind: 'Name', + value: '_in', + }, + value: { + kind: 'Variable', + name: { + kind: 'Name', + value: 'addresses', + }, + }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + ], + }, + }, + ], }, }, ], @@ -23409,28 +31780,7 @@ export const GetAtoms = { selections: [ { kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AtomMetadata' }, - }, - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AtomTxn' }, - }, - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AtomVaultDetails' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'creator' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AccountMetadata' }, - }, - ], - }, + name: { kind: 'Name', value: 'FollowMetadata' }, }, ], }, @@ -23440,83 +31790,169 @@ export const GetAtoms = { }, { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'AccountMetadata' }, + name: { kind: 'Name', value: 'FollowMetadata' }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'accounts' }, + name: { kind: 'Name', value: 'triples' }, }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'atomId' } }, - { kind: 'Field', name: { kind: 'Name', value: 'type' } }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'AtomValue' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'atoms' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'value' }, + name: { kind: 'Name', value: 'subject' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'predicate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'object' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'vault' }, selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'person' }, + name: { kind: 'Name', value: 'total_shares' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'current_share_price' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'positions_aggregate' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'positionsWhere' }, + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, { kind: 'Field', - name: { kind: 'Name', value: 'description' }, + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'count' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'sum' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'shares' }, + }, + ], + }, + }, + ], + }, }, - { kind: 'Field', name: { kind: 'Name', value: 'url' } }, ], }, }, { kind: 'Field', - name: { kind: 'Name', value: 'thing' }, + name: { kind: 'Name', value: 'positions' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'positionsLimit' }, + }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'offset' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'positionsOffset' }, + }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'positionsOrderBy' }, + }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'positionsWhere' }, + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, { kind: 'Field', - name: { kind: 'Name', value: 'description' }, + name: { kind: 'Name', value: 'account' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'label' }, + }, + ], + }, }, - { kind: 'Field', name: { kind: 'Name', value: 'url' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'organization' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, { kind: 'Field', - name: { kind: 'Name', value: 'description' }, + name: { kind: 'Name', value: 'shares' }, }, - { kind: 'Field', name: { kind: 'Name', value: 'url' } }, ], }, }, @@ -23526,111 +31962,357 @@ export const GetAtoms = { ], }, }, + ], +} as unknown as DocumentNode +export const GetConnectionsCount = { + kind: 'Document', + definitions: [ { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'AtomMetadata' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'atoms' }, - }, + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetConnectionsCount' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'subjectId' }, + }, + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'numeric' }, + }, + }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'predicateId' }, + }, + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'numeric' }, + }, + }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'objectId' }, + }, + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'numeric' }, + }, + }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'address' }, + }, + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'String' }, + }, + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'data' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, - { kind: 'Field', name: { kind: 'Name', value: 'type' } }, - { kind: 'Field', name: { kind: 'Name', value: 'walletId' } }, { kind: 'Field', - name: { kind: 'Name', value: 'creator' }, + alias: { kind: 'Name', value: 'following_count' }, + name: { kind: 'Name', value: 'triples_aggregate' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_and' }, + value: { + kind: 'ListValue', + values: [ + { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'subject_id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'Variable', + name: { + kind: 'Name', + value: 'subjectId', + }, + }, + }, + ], + }, + }, + ], + }, + { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'predicate_id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'Variable', + name: { + kind: 'Name', + value: 'predicateId', + }, + }, + }, + ], + }, + }, + ], + }, + { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'vault' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { + kind: 'Name', + value: 'positions', + }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { + kind: 'Name', + value: 'account_id', + }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { + kind: 'Name', + value: '_eq', + }, + value: { + kind: 'Variable', + name: { + kind: 'Name', + value: 'address', + }, + }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + ], + }, + }, + ], + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'count' } }, + ], + }, + }, ], }, }, - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AtomValue' }, - }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'AtomTxn' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'atoms' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'blockNumber' } }, - { kind: 'Field', name: { kind: 'Name', value: 'blockTimestamp' } }, - { kind: 'Field', name: { kind: 'Name', value: 'transactionHash' } }, - { kind: 'Field', name: { kind: 'Name', value: 'creatorId' } }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'AtomVaultDetails' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'atoms' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'vaultId' } }, - { kind: 'Field', name: { kind: 'Name', value: 'walletId' } }, { kind: 'Field', - name: { kind: 'Name', value: 'vault' }, + alias: { kind: 'Name', value: 'followers_count' }, + name: { kind: 'Name', value: 'triples' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_and' }, + value: { + kind: 'ListValue', + values: [ + { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'subject_id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'Variable', + name: { + kind: 'Name', + value: 'subjectId', + }, + }, + }, + ], + }, + }, + ], + }, + { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'predicate_id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'Variable', + name: { + kind: 'Name', + value: 'predicateId', + }, + }, + }, + ], + }, + }, + ], + }, + { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'object_id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'Variable', + name: { + kind: 'Name', + value: 'objectId', + }, + }, + }, + ], + }, + }, + ], + }, + ], + }, + }, + ], + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'positionCount' }, - }, - { kind: 'Field', name: { kind: 'Name', value: 'totalShares' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'currentSharePrice' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'positions_aggregate' }, + name: { kind: 'Name', value: 'vault' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'aggregate' }, + name: { kind: 'Name', value: 'positions_aggregate' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'count' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'sum' }, + name: { kind: 'Name', value: 'aggregate' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'shares' }, + name: { kind: 'Name', value: 'count' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'sum' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { + kind: 'Name', + value: 'shares', + }, + }, + ], + }, }, ], }, @@ -23641,37 +32323,6 @@ export const GetAtoms = { ], }, }, - { - kind: 'Field', - name: { kind: 'Name', value: 'positions' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'account' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'label' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'shares' }, - }, - ], - }, - }, ], }, }, @@ -23680,47 +32331,14 @@ export const GetAtoms = { }, ], } as unknown as DocumentNode -export const GetAtomsWithPositions = { +export const GetLists = { kind: 'Document', definitions: [ { kind: 'OperationDefinition', operation: 'query', - name: { kind: 'Name', value: 'GetAtomsWithPositions' }, + name: { kind: 'Name', value: 'GetLists' }, variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'limit' }, - }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'offset' }, - }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'orderBy' }, - }, - type: { - kind: 'ListType', - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'atoms_order_by' }, - }, - }, - }, - }, { kind: 'VariableDefinition', variable: { @@ -23729,16 +32347,8 @@ export const GetAtomsWithPositions = { }, type: { kind: 'NamedType', - name: { kind: 'Name', value: 'atoms_bool_exp' }, - }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'address' }, + name: { kind: 'Name', value: 'predicate_objects_bool_exp' }, }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } }, }, ], selectionSet: { @@ -23746,8 +32356,7 @@ export const GetAtomsWithPositions = { selections: [ { kind: 'Field', - alias: { kind: 'Name', value: 'total' }, - name: { kind: 'Name', value: 'atoms_aggregate' }, + name: { kind: 'Name', value: 'predicate_objects_aggregate' }, arguments: [ { kind: 'Argument', @@ -23776,186 +32385,212 @@ export const GetAtomsWithPositions = { }, { kind: 'Field', - name: { kind: 'Name', value: 'atoms' }, + name: { kind: 'Name', value: 'predicate_objects' }, arguments: [ { kind: 'Argument', - name: { kind: 'Name', value: 'limit' }, + name: { kind: 'Name', value: 'where' }, value: { kind: 'Variable', - name: { kind: 'Name', value: 'limit' }, + name: { kind: 'Name', value: 'where' }, }, }, { kind: 'Argument', - name: { kind: 'Name', value: 'offset' }, + name: { kind: 'Name', value: 'order_by' }, value: { - kind: 'Variable', - name: { kind: 'Name', value: 'offset' }, + kind: 'ListValue', + values: [ + { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'claim_count' }, + value: { kind: 'EnumValue', value: 'desc' }, + }, + ], + }, + { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'triple_count' }, + value: { kind: 'EnumValue', value: 'desc' }, + }, + ], + }, + ], }, }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'claim_count' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'triple_count' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'object' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode +export const GetListItems = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetListItems' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'predicateId' }, + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'numeric' } }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'objectId' }, + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'numeric' } }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'triples_aggregate' }, + arguments: [ { kind: 'Argument', - name: { kind: 'Name', value: 'order_by' }, + name: { kind: 'Name', value: 'where' }, value: { - kind: 'Variable', - name: { kind: 'Name', value: 'orderBy' }, + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'predicate_id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { kind: 'EnumValue', value: 'predicateId' }, + }, + ], + }, + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'object_id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'objectId' }, + }, + }, + ], + }, + }, + ], }, }, { kind: 'Argument', - name: { kind: 'Name', value: 'where' }, + name: { kind: 'Name', value: 'order_by' }, value: { - kind: 'Variable', - name: { kind: 'Name', value: 'where' }, + kind: 'ListValue', + values: [ + { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'vault' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'position_count' }, + value: { kind: 'EnumValue', value: 'desc' }, + }, + ], + }, + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'counter_vault' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'position_count' }, + value: { kind: 'EnumValue', value: 'desc' }, + }, + ], + }, + }, + ], + }, + ], }, }, ], selectionSet: { kind: 'SelectionSet', selections: [ - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AtomMetadata' }, - }, - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AtomTxn' }, - }, { kind: 'Field', - name: { kind: 'Name', value: 'vault' }, + name: { kind: 'Name', value: 'aggregate' }, selectionSet: { kind: 'SelectionSet', selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'positionCount' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'totalShares' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'currentSharePrice' }, - }, - { - kind: 'Field', - alias: { kind: 'Name', value: 'total' }, - name: { kind: 'Name', value: 'positions_aggregate' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'aggregate' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'count' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'sum' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { - kind: 'Name', - value: 'shares', - }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'positions' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'where' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'accountId' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: '_eq' }, - value: { - kind: 'Variable', - name: { - kind: 'Name', - value: 'address', - }, - }, - }, - ], - }, - }, - ], - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'account' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'label' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'shares' }, - }, - ], - }, - }, + { kind: 'Field', name: { kind: 'Name', value: 'count' } }, ], }, }, { kind: 'Field', - name: { kind: 'Name', value: 'creator' }, + name: { kind: 'Name', value: 'nodes' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AccountMetadata' }, + name: { kind: 'Name', value: 'TripleVaultDetails' }, }, ], }, @@ -23979,7 +32614,7 @@ export const GetAtomsWithPositions = { { kind: 'Field', name: { kind: 'Name', value: 'label' } }, { kind: 'Field', name: { kind: 'Name', value: 'image' } }, { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'atomId' } }, + { kind: 'Field', name: { kind: 'Name', value: 'atom_id' } }, { kind: 'Field', name: { kind: 'Name', value: 'type' } }, ], }, @@ -24052,196 +32687,320 @@ export const GetAtomsWithPositions = { }, }, ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'AtomMetadata' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'atoms' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'data' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, - { kind: 'Field', name: { kind: 'Name', value: 'type' } }, - { kind: 'Field', name: { kind: 'Name', value: 'walletId' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'creator' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, - ], - }, - }, - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AtomValue' }, - }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'AtomTxn' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'atoms' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'blockNumber' } }, - { kind: 'Field', name: { kind: 'Name', value: 'blockTimestamp' } }, - { kind: 'Field', name: { kind: 'Name', value: 'transactionHash' } }, - { kind: 'Field', name: { kind: 'Name', value: 'creatorId' } }, - ], - }, - }, - ], -} as unknown as DocumentNode -export const GetAtomsWithAggregates = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'GetAtomsWithAggregates' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'limit' }, - }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'offset' }, - }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'orderBy' }, - }, - type: { - kind: 'ListType', - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'atoms_order_by' }, - }, - }, - }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'where' }, - }, - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'atoms_bool_exp' }, - }, - }, - ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'PositionDetails' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'positions' }, + }, selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'atoms_aggregate' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'limit' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'limit' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'offset' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'offset' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'order_by' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'orderBy' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'where' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'where' }, - }, - }, - ], + name: { kind: 'Name', value: 'account' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'vault' }, selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'aggregate' }, + name: { kind: 'Name', value: 'atom' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'count' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, ], }, }, { kind: 'Field', - name: { kind: 'Name', value: 'nodes' }, + name: { kind: 'Name', value: 'triple' }, selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AtomMetadata' }, + kind: 'Field', + name: { kind: 'Name', value: 'vault' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'position_count' }, + }, + { + kind: 'Field', + name: { + kind: 'Name', + value: 'positions_aggregate', + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'sum' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { + kind: 'Name', + value: 'shares', + }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + ], + }, }, { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AtomTxn' }, + kind: 'Field', + name: { kind: 'Name', value: 'counter_vault' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'position_count' }, + }, + { + kind: 'Field', + name: { + kind: 'Name', + value: 'positions_aggregate', + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'sum' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { + kind: 'Name', + value: 'shares', + }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + ], + }, }, { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AtomVaultDetails' }, + kind: 'Field', + name: { kind: 'Name', value: 'subject' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'data' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'label' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'image' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'emoji' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'type' }, + }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AtomValue' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'creator' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'AccountMetadata', + }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'predicate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'data' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'label' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'image' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'emoji' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'type' }, + }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AtomValue' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'creator' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'AccountMetadata', + }, + }, + ], + }, + }, + ], + }, }, { kind: 'Field', - name: { kind: 'Name', value: 'creator' }, + name: { kind: 'Name', value: 'object' }, selectionSet: { kind: 'SelectionSet', selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'data' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'label' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'image' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'emoji' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'type' }, + }, { kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AccountMetadata' }, + name: { kind: 'Name', value: 'AtomValue' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'creator' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'AccountMetadata', + }, + }, + ], + }, }, ], }, @@ -24252,239 +33011,60 @@ export const GetAtomsWithAggregates = { ], }, }, + { kind: 'Field', name: { kind: 'Name', value: 'shares' } }, + { kind: 'Field', name: { kind: 'Name', value: 'vault_id' } }, ], }, }, { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'AccountMetadata' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'accounts' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'atomId' } }, - { kind: 'Field', name: { kind: 'Name', value: 'type' } }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'AtomValue' }, + name: { kind: 'Name', value: 'TripleVaultDetails' }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'atoms' }, + name: { kind: 'Name', value: 'triples' }, }, selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'vault_id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'counter_vault_id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'value' }, + name: { kind: 'Name', value: 'vault' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'person' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'description' }, - }, - { kind: 'Field', name: { kind: 'Name', value: 'url' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'thing' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'description' }, - }, - { kind: 'Field', name: { kind: 'Name', value: 'url' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'organization' }, + name: { kind: 'Name', value: 'positions' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, { - kind: 'Field', - name: { kind: 'Name', value: 'description' }, + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PositionDetails' }, }, - { kind: 'Field', name: { kind: 'Name', value: 'url' } }, ], }, }, ], }, }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'AtomMetadata' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'atoms' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'data' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, - { kind: 'Field', name: { kind: 'Name', value: 'type' } }, - { kind: 'Field', name: { kind: 'Name', value: 'walletId' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'creator' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, - ], - }, - }, - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AtomValue' }, - }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'AtomTxn' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'atoms' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'blockNumber' } }, - { kind: 'Field', name: { kind: 'Name', value: 'blockTimestamp' } }, - { kind: 'Field', name: { kind: 'Name', value: 'transactionHash' } }, - { kind: 'Field', name: { kind: 'Name', value: 'creatorId' } }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'AtomVaultDetails' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'atoms' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'vaultId' } }, - { kind: 'Field', name: { kind: 'Name', value: 'walletId' } }, { kind: 'Field', - name: { kind: 'Name', value: 'vault' }, + name: { kind: 'Name', value: 'counter_vault' }, selectionSet: { kind: 'SelectionSet', selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'positionCount' }, - }, - { kind: 'Field', name: { kind: 'Name', value: 'totalShares' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'currentSharePrice' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'positions_aggregate' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'aggregate' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'count' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'sum' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'shares' }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, { kind: 'Field', name: { kind: 'Name', value: 'positions' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'account' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'label' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'shares' }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PositionDetails' }, }, ], }, @@ -24497,24 +33077,43 @@ export const GetAtomsWithAggregates = { }, ], } as unknown as DocumentNode -export const GetAtomsCount = { +export const GetListDetails = { kind: 'Document', definitions: [ { kind: 'OperationDefinition', operation: 'query', - name: { kind: 'Name', value: 'GetAtomsCount' }, + name: { kind: 'Name', value: 'GetListDetails' }, variableDefinitions: [ { kind: 'VariableDefinition', variable: { kind: 'Variable', - name: { kind: 'Name', value: 'where' }, + name: { kind: 'Name', value: 'globalWhere' }, }, type: { kind: 'NamedType', - name: { kind: 'Name', value: 'atoms_bool_exp' }, + name: { kind: 'Name', value: 'triples_bool_exp' }, + }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'userWhere' }, + }, + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'triples_bool_exp' }, + }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'tagPredicateId' }, }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'numeric' } }, }, ], selectionSet: { @@ -24522,14 +33121,15 @@ export const GetAtomsCount = { selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'atoms_aggregate' }, + alias: { kind: 'Name', value: 'globalTriplesAggregate' }, + name: { kind: 'Name', value: 'triples_aggregate' }, arguments: [ { kind: 'Argument', name: { kind: 'Name', value: 'where' }, value: { kind: 'Variable', - name: { kind: 'Name', value: 'where' }, + name: { kind: 'Name', value: 'globalWhere' }, }, }, ], @@ -24549,278 +33149,635 @@ export const GetAtomsCount = { ], }, }, - ], - }, - }, - ], -} as unknown as DocumentNode -export const GetAtom = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'GetAtom' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { kind: 'Variable', name: { kind: 'Name', value: 'id' } }, - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'numeric' }, - }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'atom' }, + alias: { kind: 'Name', value: 'globalTriples' }, + name: { kind: 'Name', value: 'triples' }, arguments: [ { kind: 'Argument', - name: { kind: 'Name', value: 'id' }, + name: { kind: 'Name', value: 'where' }, value: { kind: 'Variable', - name: { kind: 'Name', value: 'id' }, + name: { kind: 'Name', value: 'globalWhere' }, }, }, ], selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'vault_id' } }, { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AtomMetadata' }, - }, - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AtomTxn' }, - }, - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AtomVaultDetails' }, + kind: 'Field', + name: { kind: 'Name', value: 'counter_vault_id' }, }, { kind: 'Field', - name: { kind: 'Name', value: 'creator' }, + name: { kind: 'Name', value: 'subject' }, selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AccountMetadata' }, + kind: 'Field', + name: { kind: 'Name', value: 'vault_id' }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'wallet_id' }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'tags' }, + name: { + kind: 'Name', + value: 'as_subject_triples_aggregate', + }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'predicate_id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'Variable', + name: { + kind: 'Name', + value: 'tagPredicateId', + }, + }, + }, + ], + }, + }, + ], + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'nodes' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'object' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { + kind: 'Name', + value: 'label', + }, + }, + { + kind: 'Field', + name: { + kind: 'Name', + value: 'vault_id', + }, + }, + { + kind: 'Field', + alias: { + kind: 'Name', + value: 'taggedIdentities', + }, + name: { + kind: 'Name', + value: + 'as_object_triples_aggregate', + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { + kind: 'Name', + value: 'nodes', + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { + kind: 'Name', + value: 'subject', + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { + kind: 'Name', + value: 'label', + }, + }, + { + kind: 'Field', + name: { + kind: 'Name', + value: 'vault_id', + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { + kind: 'Name', + value: 'vault_id', + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { + kind: 'Name', + value: 'aggregate', + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { + kind: 'Name', + value: 'count', + }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'count' }, + }, + ], + }, + }, + ], + }, }, ], }, }, - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AtomTriple' }, - }, - ], - }, - }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'AccountMetadata' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'accounts' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'atomId' } }, - { kind: 'Field', name: { kind: 'Name', value: 'type' } }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'AtomValue' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'atoms' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'value' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'person' }, + name: { kind: 'Name', value: 'object' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'description' }, + name: { kind: 'Name', value: 'vault_id' }, }, - { kind: 'Field', name: { kind: 'Name', value: 'url' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'wallet_id' }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, ], }, }, { kind: 'Field', - name: { kind: 'Name', value: 'thing' }, + name: { kind: 'Name', value: 'predicate' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'description' }, + name: { kind: 'Name', value: 'vault_id' }, }, - { kind: 'Field', name: { kind: 'Name', value: 'url' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'wallet_id' }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, ], }, }, { kind: 'Field', - name: { kind: 'Name', value: 'organization' }, + name: { kind: 'Name', value: 'vault' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, { kind: 'Field', - name: { kind: 'Name', value: 'description' }, + name: { kind: 'Name', value: 'positions_aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'count' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'sum' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { + kind: 'Name', + value: 'shares', + }, + }, + ], + }, + }, + ], + }, + }, + ], + }, }, - { kind: 'Field', name: { kind: 'Name', value: 'url' } }, ], }, }, ], }, }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'AtomMetadata' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'atoms' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'data' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, - { kind: 'Field', name: { kind: 'Name', value: 'type' } }, - { kind: 'Field', name: { kind: 'Name', value: 'walletId' } }, { kind: 'Field', - name: { kind: 'Name', value: 'creator' }, + alias: { kind: 'Name', value: 'userTriplesAggregate' }, + name: { kind: 'Name', value: 'triples_aggregate' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'userWhere' }, + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'count' } }, + ], + }, + }, ], }, }, - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AtomValue' }, - }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'AtomTxn' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'atoms' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'blockNumber' } }, - { kind: 'Field', name: { kind: 'Name', value: 'blockTimestamp' } }, - { kind: 'Field', name: { kind: 'Name', value: 'transactionHash' } }, - { kind: 'Field', name: { kind: 'Name', value: 'creatorId' } }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'AtomVaultDetails' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'atoms' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'vaultId' } }, - { kind: 'Field', name: { kind: 'Name', value: 'walletId' } }, { kind: 'Field', - name: { kind: 'Name', value: 'vault' }, + alias: { kind: 'Name', value: 'userTriples' }, + name: { kind: 'Name', value: 'triples' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'userWhere' }, + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'vault_id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'counter_vault_id' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'subject' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'vault_id' }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'wallet_id' }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'tags' }, + name: { + kind: 'Name', + value: 'as_subject_triples_aggregate', + }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'predicate_id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'Variable', + name: { + kind: 'Name', + value: 'tagPredicateId', + }, + }, + }, + ], + }, + }, + ], + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'nodes' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'object' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { + kind: 'Name', + value: 'label', + }, + }, + { + kind: 'Field', + name: { + kind: 'Name', + value: 'vault_id', + }, + }, + { + kind: 'Field', + alias: { + kind: 'Name', + value: 'taggedIdentities', + }, + name: { + kind: 'Name', + value: + 'as_object_triples_aggregate', + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { + kind: 'Name', + value: 'nodes', + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { + kind: 'Name', + value: 'subject', + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { + kind: 'Name', + value: 'label', + }, + }, + { + kind: 'Field', + name: { + kind: 'Name', + value: 'vault_id', + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { + kind: 'Name', + value: 'vault_id', + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { + kind: 'Name', + value: 'aggregate', + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { + kind: 'Name', + value: 'count', + }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'count' }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, { kind: 'Field', - name: { kind: 'Name', value: 'positionCount' }, + name: { kind: 'Name', value: 'object' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'vault_id' }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'wallet_id' }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + ], + }, }, - { kind: 'Field', name: { kind: 'Name', value: 'totalShares' } }, { kind: 'Field', - name: { kind: 'Name', value: 'currentSharePrice' }, + name: { kind: 'Name', value: 'predicate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'vault_id' }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'wallet_id' }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + ], + }, }, { kind: 'Field', - name: { kind: 'Name', value: 'positions_aggregate' }, + name: { kind: 'Name', value: 'vault' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'aggregate' }, + name: { kind: 'Name', value: 'positions_aggregate' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'count' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'sum' }, + name: { kind: 'Name', value: 'aggregate' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'shares' }, + name: { kind: 'Name', value: 'count' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'sum' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { + kind: 'Name', + value: 'shares', + }, + }, + ], + }, }, ], }, @@ -24831,46 +33788,184 @@ export const GetAtom = { ], }, }, + ], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode +export const GetPositions = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetPositions' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' }, + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' }, + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' }, + }, + type: { + kind: 'ListType', + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'positions_order_by' }, + }, + }, + }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' }, + }, + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'positions_bool_exp' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'total' }, + name: { kind: 'Name', value: 'positions_aggregate' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'positions' }, + name: { kind: 'Name', value: 'aggregate' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'count' } }, { kind: 'Field', - name: { kind: 'Name', value: 'account' }, + name: { kind: 'Name', value: 'sum' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'label' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, + name: { kind: 'Name', value: 'shares' }, }, ], }, }, - { - kind: 'Field', - name: { kind: 'Name', value: 'shares' }, - }, ], }, }, ], }, }, + { + kind: 'Field', + name: { kind: 'Name', value: 'positions' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' }, + }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'offset' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' }, + }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' }, + }, + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PositionDetails' }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'AccountMetadata' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'accounts' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'atom_id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, ], }, }, { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'AtomTriple' }, + name: { kind: 'Name', value: 'AtomValue' }, typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'atoms' }, @@ -24880,334 +33975,373 @@ export const GetAtom = { selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'asSubject' }, + name: { kind: 'Name', value: 'value' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'object' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'data' } }, - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, - { kind: 'Field', name: { kind: 'Name', value: 'type' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'creator' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AccountMetadata' }, - }, - ], - }, - }, - ], - }, - }, { kind: 'Field', - name: { kind: 'Name', value: 'predicate' }, + name: { kind: 'Name', value: 'person' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'data' } }, - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'name' } }, { kind: 'Field', name: { kind: 'Name', value: 'image' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, - { kind: 'Field', name: { kind: 'Name', value: 'type' } }, { kind: 'Field', - name: { kind: 'Name', value: 'creator' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AccountMetadata' }, - }, - ], - }, + name: { kind: 'Name', value: 'description' }, }, + { kind: 'Field', name: { kind: 'Name', value: 'url' } }, ], }, }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'asPredicate' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, { kind: 'Field', - name: { kind: 'Name', value: 'subject' }, + name: { kind: 'Name', value: 'thing' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'data' } }, - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'name' } }, { kind: 'Field', name: { kind: 'Name', value: 'image' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, - { kind: 'Field', name: { kind: 'Name', value: 'type' } }, { kind: 'Field', - name: { kind: 'Name', value: 'creator' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AccountMetadata' }, - }, - ], - }, + name: { kind: 'Name', value: 'description' }, }, + { kind: 'Field', name: { kind: 'Name', value: 'url' } }, ], }, }, { kind: 'Field', - name: { kind: 'Name', value: 'object' }, + name: { kind: 'Name', value: 'organization' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'data' } }, - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'name' } }, { kind: 'Field', name: { kind: 'Name', value: 'image' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, - { kind: 'Field', name: { kind: 'Name', value: 'type' } }, { kind: 'Field', - name: { kind: 'Name', value: 'creator' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AccountMetadata' }, - }, - ], - }, + name: { kind: 'Name', value: 'description' }, }, + { kind: 'Field', name: { kind: 'Name', value: 'url' } }, ], }, }, ], }, }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'PositionDetails' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'positions' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'asObject' }, + name: { kind: 'Name', value: 'account' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'vault' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'subject' }, + name: { kind: 'Name', value: 'atom' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'data' } }, { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, - { kind: 'Field', name: { kind: 'Name', value: 'type' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'creator' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AccountMetadata' }, - }, - ], - }, - }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, ], }, }, { kind: 'Field', - name: { kind: 'Name', value: 'predicate' }, + name: { kind: 'Name', value: 'triple' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'data' } }, { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, - { kind: 'Field', name: { kind: 'Name', value: 'type' } }, { kind: 'Field', - name: { kind: 'Name', value: 'creator' }, + name: { kind: 'Name', value: 'vault' }, selectionSet: { kind: 'SelectionSet', selections: [ { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AccountMetadata' }, + kind: 'Field', + name: { kind: 'Name', value: 'id' }, }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode -export const GetClaimsByAddress = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'GetClaimsByAddress' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'address' }, - }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'claims_aggregate' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'where' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'accountId' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: '_eq' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'address' }, + { + kind: 'Field', + name: { kind: 'Name', value: 'position_count' }, + }, + { + kind: 'Field', + name: { + kind: 'Name', + value: 'positions_aggregate', + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'sum' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { + kind: 'Name', + value: 'shares', + }, + }, + ], + }, + }, + ], + }, + }, + ], + }, }, - }, - ], + ], + }, }, - }, - ], - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'aggregate' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'count' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'nodes' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'account' }, + name: { kind: 'Name', value: 'counter_vault' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'label' }, + name: { kind: 'Name', value: 'id' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'position_count' }, + }, + { + kind: 'Field', + name: { + kind: 'Name', + value: 'positions_aggregate', + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'sum' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { + kind: 'Name', + value: 'shares', + }, + }, + ], + }, + }, + ], + }, + }, + ], + }, }, ], }, }, { kind: 'Field', - name: { kind: 'Name', value: 'triple' }, + name: { kind: 'Name', value: 'subject' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'subject' }, + name: { kind: 'Name', value: 'data' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'label' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'image' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'emoji' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'type' }, + }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AtomValue' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'creator' }, selectionSet: { kind: 'SelectionSet', selections: [ { - kind: 'Field', - name: { kind: 'Name', value: 'label' }, + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'AccountMetadata', + }, }, ], }, }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'predicate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'data' }, + }, { kind: 'Field', - name: { kind: 'Name', value: 'predicate' }, + name: { kind: 'Name', value: 'id' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'label' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'image' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'emoji' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'type' }, + }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AtomValue' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'creator' }, selectionSet: { kind: 'SelectionSet', selections: [ { - kind: 'Field', - name: { kind: 'Name', value: 'label' }, + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'AccountMetadata', + }, }, ], }, }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'object' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'data' }, + }, { kind: 'Field', - name: { kind: 'Name', value: 'object' }, + name: { kind: 'Name', value: 'id' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'label' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'image' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'emoji' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'type' }, + }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AtomValue' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'creator' }, selectionSet: { kind: 'SelectionSet', selections: [ { - kind: 'Field', - name: { kind: 'Name', value: 'label' }, + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'AccountMetadata', + }, }, ], }, @@ -25215,41 +34349,26 @@ export const GetClaimsByAddress = { ], }, }, - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'vaultId' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'counterVaultId' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'shares' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'counterShares' }, - }, ], }, }, ], }, }, + { kind: 'Field', name: { kind: 'Name', value: 'shares' } }, + { kind: 'Field', name: { kind: 'Name', value: 'vault_id' } }, ], }, }, ], } as unknown as DocumentNode -export const GetEvents = { +export const GetTriplePositionsByAddress = { kind: 'Document', definitions: [ { kind: 'OperationDefinition', operation: 'query', - name: { kind: 'Name', value: 'GetEvents' }, + name: { kind: 'Name', value: 'GetTriplePositionsByAddress' }, variableDefinitions: [ { kind: 'VariableDefinition', @@ -25279,7 +34398,7 @@ export const GetEvents = { kind: 'NonNullType', type: { kind: 'NamedType', - name: { kind: 'Name', value: 'events_order_by' }, + name: { kind: 'Name', value: 'positions_order_by' }, }, }, }, @@ -25292,23 +34411,20 @@ export const GetEvents = { }, type: { kind: 'NamedType', - name: { kind: 'Name', value: 'events_bool_exp' }, + name: { kind: 'Name', value: 'positions_bool_exp' }, }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', - name: { kind: 'Name', value: 'addresses' }, + name: { kind: 'Name', value: 'address' }, }, type: { - kind: 'ListType', + kind: 'NonNullType', type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'String' }, - }, + kind: 'NamedType', + name: { kind: 'Name', value: 'String' }, }, }, }, @@ -25319,7 +34435,7 @@ export const GetEvents = { { kind: 'Field', alias: { kind: 'Name', value: 'total' }, - name: { kind: 'Name', value: 'events_aggregate' }, + name: { kind: 'Name', value: 'positions_aggregate' }, arguments: [ { kind: 'Argument', @@ -25340,6 +34456,19 @@ export const GetEvents = { kind: 'SelectionSet', selections: [ { kind: 'Field', name: { kind: 'Name', value: 'count' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'sum' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'shares' }, + }, + ], + }, + }, ], }, }, @@ -25348,7 +34477,7 @@ export const GetEvents = { }, { kind: 'Field', - name: { kind: 'Name', value: 'events' }, + name: { kind: 'Name', value: 'positions' }, arguments: [ { kind: 'Argument', @@ -25386,64 +34515,43 @@ export const GetEvents = { selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'blockNumber' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'blockTimestamp' }, - }, - { kind: 'Field', name: { kind: 'Name', value: 'type' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'transactionHash' }, - }, - { kind: 'Field', name: { kind: 'Name', value: 'atomId' } }, - { kind: 'Field', name: { kind: 'Name', value: 'tripleId' } }, - { kind: 'Field', name: { kind: 'Name', value: 'depositId' } }, { - kind: 'Field', - name: { kind: 'Name', value: 'redemptionId' }, + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PositionDetails' }, }, { kind: 'Field', - name: { kind: 'Name', value: 'atom' }, + name: { kind: 'Name', value: 'vault' }, selectionSet: { kind: 'SelectionSet', selections: [ { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AtomMetadata' }, + kind: 'Field', + name: { kind: 'Name', value: 'atom_id' }, }, { kind: 'Field', - name: { kind: 'Name', value: 'vault' }, + name: { kind: 'Name', value: 'triple_id' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'triple' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'totalShares' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'positionCount' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'positions' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'where' }, - value: { - kind: 'ObjectValue', - fields: [ + name: { kind: 'Name', value: 'vault' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'positions' }, + arguments: [ { - kind: 'ObjectField', - name: { - kind: 'Name', - value: 'account', - }, + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, value: { kind: 'ObjectValue', fields: [ @@ -25451,7 +34559,7 @@ export const GetEvents = { kind: 'ObjectField', name: { kind: 'Name', - value: 'id', + value: 'account_id', }, value: { kind: 'ObjectValue', @@ -25460,13 +34568,13 @@ export const GetEvents = { kind: 'ObjectField', name: { kind: 'Name', - value: '_in', + value: '_eq', }, value: { kind: 'Variable', name: { kind: 'Name', - value: 'addresses', + value: 'address', }, }, }, @@ -25477,228 +34585,145 @@ export const GetEvents = { }, }, ], - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'accountId' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'shares' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'account' }, selectionSet: { kind: 'SelectionSet', selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { - kind: 'Name', - value: 'label', - }, - }, { kind: 'Field', name: { kind: 'Name', - value: 'image', + value: 'account', }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'triple' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'creator' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AccountMetadata' }, - }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'subject' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'data' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'image' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'label' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'emoji' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'type' }, - }, - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AtomValue' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'creator' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'FragmentSpread', - name: { - kind: 'Name', - value: 'AccountMetadata', - }, - }, - ], - }, - }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'predicate' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'data' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'image' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'label' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'emoji' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'type' }, - }, - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AtomValue' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'creator' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'FragmentSpread', - name: { - kind: 'Name', - value: 'AccountMetadata', - }, - }, - ], - }, - }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'object' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'data' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'image' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'label' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'emoji' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'type' }, - }, - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AtomValue' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { + kind: 'Name', + value: 'id', + }, + }, + { + kind: 'Field', + name: { + kind: 'Name', + value: 'label', + }, + }, + { + kind: 'Field', + name: { + kind: 'Name', + value: 'image', + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { + kind: 'Name', + value: 'shares', + }, + }, + ], + }, + }, + ], + }, }, { kind: 'Field', - name: { kind: 'Name', value: 'creator' }, + name: { kind: 'Name', value: 'counter_vault' }, selectionSet: { kind: 'SelectionSet', selections: [ { - kind: 'FragmentSpread', - name: { - kind: 'Name', - value: 'AccountMetadata', + kind: 'Field', + name: { kind: 'Name', value: 'positions' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { + kind: 'Name', + value: 'account_id', + }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { + kind: 'Name', + value: '_eq', + }, + value: { + kind: 'Variable', + name: { + kind: 'Name', + value: 'address', + }, + }, + }, + ], + }, + }, + ], + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { + kind: 'Name', + value: 'account', + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { + kind: 'Name', + value: 'id', + }, + }, + { + kind: 'Field', + name: { + kind: 'Name', + value: 'label', + }, + }, + { + kind: 'Field', + name: { + kind: 'Name', + value: 'image', + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { + kind: 'Name', + value: 'shares', + }, + }, + ], }, }, ], @@ -25707,6 +34732,152 @@ export const GetEvents = { ], }, }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'AccountMetadata' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'accounts' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'atom_id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'AtomValue' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'atoms' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'value' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'person' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'description' }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'url' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'thing' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'description' }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'url' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'organization' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'description' }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'url' } }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'PositionDetails' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'positions' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'account' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'vault' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'atom' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'triple' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', name: { kind: 'Name', value: 'vault' }, @@ -25715,97 +34886,41 @@ export const GetEvents = { selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'totalShares' }, + name: { kind: 'Name', value: 'id' }, }, { kind: 'Field', - name: { kind: 'Name', value: 'positionCount' }, + name: { kind: 'Name', value: 'position_count' }, }, { kind: 'Field', - name: { kind: 'Name', value: 'positions' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'where' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { - kind: 'Name', - value: 'account', - }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { - kind: 'Name', - value: 'id', - }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { - kind: 'Name', - value: '_in', - }, - value: { - kind: 'Variable', - name: { - kind: 'Name', - value: 'addresses', - }, - }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], + name: { + kind: 'Name', + value: 'positions_aggregate', + }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'accountId' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'shares' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'account' }, + name: { kind: 'Name', value: 'aggregate' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { - kind: 'Name', - value: 'label', - }, - }, - { - kind: 'Field', - name: { - kind: 'Name', - value: 'image', + name: { kind: 'Name', value: 'sum' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { + kind: 'Name', + value: 'shares', + }, + }, + ], }, }, ], @@ -25819,103 +34934,47 @@ export const GetEvents = { }, { kind: 'Field', - name: { kind: 'Name', value: 'counterVault' }, + name: { kind: 'Name', value: 'counter_vault' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'totalShares' }, + name: { kind: 'Name', value: 'id' }, }, { kind: 'Field', - name: { kind: 'Name', value: 'positionCount' }, + name: { kind: 'Name', value: 'position_count' }, }, { kind: 'Field', - name: { kind: 'Name', value: 'positions' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'where' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { - kind: 'Name', - value: 'account', - }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { - kind: 'Name', - value: 'id', - }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { - kind: 'Name', - value: '_in', - }, - value: { - kind: 'Variable', - name: { - kind: 'Name', - value: 'addresses', - }, - }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], + name: { + kind: 'Name', + value: 'positions_aggregate', + }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'accountId' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'shares' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'account' }, + name: { kind: 'Name', value: 'aggregate' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { - kind: 'Name', - value: 'label', - }, - }, - { - kind: 'Field', - name: { - kind: 'Name', - value: 'image', + name: { kind: 'Name', value: 'sum' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { + kind: 'Name', + value: 'shares', + }, + }, + ], }, }, ], @@ -25927,145 +34986,104 @@ export const GetEvents = { ], }, }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'deposit' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'senderId' }, - }, { kind: 'Field', - name: { kind: 'Name', value: 'sender' }, + name: { kind: 'Name', value: 'subject' }, selectionSet: { kind: 'SelectionSet', selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'data' }, + }, { kind: 'Field', name: { kind: 'Name', value: 'id' }, }, + { + kind: 'Field', + name: { kind: 'Name', value: 'label' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'image' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'emoji' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'type' }, + }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AtomValue' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'creator' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'AccountMetadata', + }, + }, + ], + }, + }, ], }, }, { kind: 'Field', - name: { kind: 'Name', value: 'sharesForReceiver' }, - }, - { - kind: 'Field', - name: { - kind: 'Name', - value: 'senderAssetsAfterTotalFees', - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'vault' }, + name: { kind: 'Name', value: 'predicate' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'totalShares' }, + name: { kind: 'Name', value: 'data' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'label' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'image' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'emoji' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'type' }, }, { - kind: 'Field', - name: { kind: 'Name', value: 'positionCount' }, + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AtomValue' }, }, { kind: 'Field', - name: { kind: 'Name', value: 'positions' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'where' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { - kind: 'Name', - value: 'account', - }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { - kind: 'Name', - value: 'id', - }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { - kind: 'Name', - value: '_in', - }, - value: { - kind: 'Variable', - name: { - kind: 'Name', - value: 'addresses', - }, - }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], + name: { kind: 'Name', value: 'creator' }, selectionSet: { kind: 'SelectionSet', selections: [ { - kind: 'Field', - name: { kind: 'Name', value: 'accountId' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'shares' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'account' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { - kind: 'Name', - value: 'label', - }, - }, - { - kind: 'Field', - name: { - kind: 'Name', - value: 'image', - }, - }, - ], + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'AccountMetadata', }, }, ], @@ -26074,174 +35092,79 @@ export const GetEvents = { ], }, }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'redemption' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'senderId' }, - }, { kind: 'Field', - name: { kind: 'Name', value: 'sender' }, + name: { kind: 'Name', value: 'object' }, selectionSet: { kind: 'SelectionSet', selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'data' }, + }, { kind: 'Field', name: { kind: 'Name', value: 'id' }, }, + { + kind: 'Field', + name: { kind: 'Name', value: 'label' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'image' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'emoji' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'type' }, + }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AtomValue' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'creator' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'AccountMetadata', + }, + }, + ], + }, + }, ], }, }, ], }, - }, - ], - }, - }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'AccountMetadata' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'accounts' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'atomId' } }, - { kind: 'Field', name: { kind: 'Name', value: 'type' } }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'AtomValue' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'atoms' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'value' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'person' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'description' }, - }, - { kind: 'Field', name: { kind: 'Name', value: 'url' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'thing' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'description' }, - }, - { kind: 'Field', name: { kind: 'Name', value: 'url' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'organization' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'description' }, - }, - { kind: 'Field', name: { kind: 'Name', value: 'url' } }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'AtomMetadata' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'atoms' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'data' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, - { kind: 'Field', name: { kind: 'Name', value: 'type' } }, - { kind: 'Field', name: { kind: 'Name', value: 'walletId' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'creator' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + }, ], }, }, - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AtomValue' }, - }, + { kind: 'Field', name: { kind: 'Name', value: 'shares' } }, + { kind: 'Field', name: { kind: 'Name', value: 'vault_id' } }, ], }, }, ], } as unknown as DocumentNode -export const GetEventsWithAggregates = { +export const GetPositionsWithAggregates = { kind: 'Document', definitions: [ { kind: 'OperationDefinition', operation: 'query', - name: { kind: 'Name', value: 'GetEventsWithAggregates' }, + name: { kind: 'Name', value: 'GetPositionsWithAggregates' }, variableDefinitions: [ { kind: 'VariableDefinition', @@ -26271,7 +35194,7 @@ export const GetEventsWithAggregates = { kind: 'NonNullType', type: { kind: 'NamedType', - name: { kind: 'Name', value: 'events_order_by' }, + name: { kind: 'Name', value: 'positions_order_by' }, }, }, }, @@ -26284,24 +35207,7 @@ export const GetEventsWithAggregates = { }, type: { kind: 'NamedType', - name: { kind: 'Name', value: 'events_bool_exp' }, - }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'addresses' }, - }, - type: { - kind: 'ListType', - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'String' }, - }, - }, + name: { kind: 'Name', value: 'positions_bool_exp' }, }, }, ], @@ -26310,16 +35216,8 @@ export const GetEventsWithAggregates = { selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'events_aggregate' }, + name: { kind: 'Name', value: 'positions_aggregate' }, arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'where' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'where' }, - }, - }, { kind: 'Argument', name: { kind: 'Name', value: 'limit' }, @@ -26344,6 +35242,14 @@ export const GetEventsWithAggregates = { name: { kind: 'Name', value: 'orderBy' }, }, }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' }, + }, + }, ], selectionSet: { kind: 'SelectionSet', @@ -26355,40 +35261,6 @@ export const GetEventsWithAggregates = { kind: 'SelectionSet', selections: [ { kind: 'Field', name: { kind: 'Name', value: 'count' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'max' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'blockTimestamp' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'blockNumber' }, - }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'min' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'blockTimestamp' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'blockNumber' }, - }, - ], - }, - }, ], }, }, @@ -26400,7 +35272,7 @@ export const GetEventsWithAggregates = { selections: [ { kind: 'FragmentSpread', - name: { kind: 'Name', value: 'EventDetails' }, + name: { kind: 'Name', value: 'PositionDetails' }, }, ], }, @@ -26424,7 +35296,7 @@ export const GetEventsWithAggregates = { { kind: 'Field', name: { kind: 'Name', value: 'label' } }, { kind: 'Field', name: { kind: 'Name', value: 'image' } }, { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'atomId' } }, + { kind: 'Field', name: { kind: 'Name', value: 'atom_id' } }, { kind: 'Field', name: { kind: 'Name', value: 'type' } }, ], }, @@ -26501,24 +35373,18 @@ export const GetEventsWithAggregates = { }, { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'AtomMetadata' }, + name: { kind: 'Name', value: 'PositionDetails' }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'atoms' }, + name: { kind: 'Name', value: 'positions' }, }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'data' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, - { kind: 'Field', name: { kind: 'Name', value: 'type' } }, - { kind: 'Field', name: { kind: 'Name', value: 'walletId' } }, { kind: 'Field', - name: { kind: 'Name', value: 'creator' }, + name: { kind: 'Name', value: 'account' }, selectionSet: { kind: 'SelectionSet', selections: [ @@ -26528,145 +35394,186 @@ export const GetEventsWithAggregates = { ], }, }, - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AtomValue' }, - }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'DepositEventFragment' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'events' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'deposit' }, + name: { kind: 'Name', value: 'vault' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'vaultId' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'senderAssetsAfterTotalFees' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'sharesForReceiver' }, - }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'receiver' }, + name: { kind: 'Name', value: 'atom' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, ], }, }, { kind: 'Field', - name: { kind: 'Name', value: 'sender' }, + name: { kind: 'Name', value: 'triple' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'EventDetails' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'events' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'blockNumber' } }, - { kind: 'Field', name: { kind: 'Name', value: 'blockTimestamp' } }, - { kind: 'Field', name: { kind: 'Name', value: 'type' } }, - { kind: 'Field', name: { kind: 'Name', value: 'transactionHash' } }, - { kind: 'Field', name: { kind: 'Name', value: 'atomId' } }, - { kind: 'Field', name: { kind: 'Name', value: 'tripleId' } }, - { kind: 'Field', name: { kind: 'Name', value: 'depositId' } }, - { kind: 'Field', name: { kind: 'Name', value: 'redemptionId' } }, - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'DepositEventFragment' }, - }, - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'RedemptionEventFragment' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'atom' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AtomMetadata' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'vault' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'totalShares' }, + name: { kind: 'Name', value: 'vault' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'position_count' }, + }, + { + kind: 'Field', + name: { + kind: 'Name', + value: 'positions_aggregate', + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'sum' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { + kind: 'Name', + value: 'shares', + }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + ], + }, }, { kind: 'Field', - name: { kind: 'Name', value: 'positionCount' }, + name: { kind: 'Name', value: 'counter_vault' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'position_count' }, + }, + { + kind: 'Field', + name: { + kind: 'Name', + value: 'positions_aggregate', + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'sum' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { + kind: 'Name', + value: 'shares', + }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + ], + }, }, { kind: 'Field', - name: { kind: 'Name', value: 'positions' }, + name: { kind: 'Name', value: 'subject' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'accountId' }, + name: { kind: 'Name', value: 'data' }, }, { kind: 'Field', - name: { kind: 'Name', value: 'shares' }, + name: { kind: 'Name', value: 'id' }, }, { kind: 'Field', - name: { kind: 'Name', value: 'account' }, + name: { kind: 'Name', value: 'label' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'image' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'emoji' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'type' }, + }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AtomValue' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'creator' }, selectionSet: { kind: 'SelectionSet', selections: [ { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'label' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'image' }, + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'AccountMetadata', + }, }, ], }, @@ -26674,67 +35581,52 @@ export const GetEventsWithAggregates = { ], }, }, - ], - }, - }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'triple' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'TripleMetadata' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'vault' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'totalShares' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'positionCount' }, - }, { kind: 'Field', - name: { kind: 'Name', value: 'positions' }, + name: { kind: 'Name', value: 'predicate' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'accountId' }, + name: { kind: 'Name', value: 'data' }, }, { kind: 'Field', - name: { kind: 'Name', value: 'shares' }, + name: { kind: 'Name', value: 'id' }, }, { kind: 'Field', - name: { kind: 'Name', value: 'account' }, + name: { kind: 'Name', value: 'label' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'image' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'emoji' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'type' }, + }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AtomValue' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'creator' }, selectionSet: { kind: 'SelectionSet', selections: [ { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'label' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'image' }, + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'AccountMetadata', + }, }, ], }, @@ -26742,54 +35634,52 @@ export const GetEventsWithAggregates = { ], }, }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'counterVault' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'totalShares' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'positionCount' }, - }, { kind: 'Field', - name: { kind: 'Name', value: 'positions' }, + name: { kind: 'Name', value: 'object' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'accountId' }, + name: { kind: 'Name', value: 'data' }, }, { kind: 'Field', - name: { kind: 'Name', value: 'shares' }, + name: { kind: 'Name', value: 'id' }, }, { kind: 'Field', - name: { kind: 'Name', value: 'account' }, + name: { kind: 'Name', value: 'label' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'image' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'emoji' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'type' }, + }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AtomValue' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'creator' }, selectionSet: { kind: 'SelectionSet', selections: [ { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'label' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'image' }, + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'AccountMetadata', + }, }, ], }, @@ -26803,63 +35693,129 @@ export const GetEventsWithAggregates = { ], }, }, + { kind: 'Field', name: { kind: 'Name', value: 'shares' } }, + { kind: 'Field', name: { kind: 'Name', value: 'vault_id' } }, ], }, }, + ], +} as unknown as DocumentNode +export const GetPositionsCount = { + kind: 'Document', + definitions: [ { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'PositionFields' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'positions' }, - }, + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetPositionsCount' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' }, + }, + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'positions_bool_exp' }, + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'account' }, + name: { kind: 'Name', value: 'positions_aggregate' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' }, + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'total' }, + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'count' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'sum' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'shares' }, + }, + ], + }, + }, + ], + }, + }, ], }, }, - { kind: 'Field', name: { kind: 'Name', value: 'shares' } }, ], }, }, + ], +} as unknown as DocumentNode +export const GetPosition = { + kind: 'Document', + definitions: [ { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'PositionAggregateFields' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'positions_aggregate' }, - }, + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetPosition' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'positionId' }, + }, + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'String' }, + }, + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'aggregate' }, + name: { kind: 'Name', value: 'position' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'id' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'positionId' }, + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'count' } }, { - kind: 'Field', - name: { kind: 'Name', value: 'sum' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'shares' }, - }, - ], - }, + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PositionDetails' }, }, ], }, @@ -26869,303 +35825,428 @@ export const GetEventsWithAggregates = { }, { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'RedemptionEventFragment' }, + name: { kind: 'Name', value: 'AccountMetadata' }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'events' }, + name: { kind: 'Name', value: 'accounts' }, }, selectionSet: { kind: 'SelectionSet', selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'redemption' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'vaultId' } }, - { kind: 'Field', name: { kind: 'Name', value: 'receiverId' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'sharesRedeemedBySender' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'assetsForReceiver' }, - }, - ], - }, - }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'atom_id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, ], }, }, { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'TripleMetadata' }, + name: { kind: 'Name', value: 'AtomValue' }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'triples' }, + name: { kind: 'Name', value: 'atoms' }, }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'subjectId' } }, - { kind: 'Field', name: { kind: 'Name', value: 'predicateId' } }, - { kind: 'Field', name: { kind: 'Name', value: 'objectId' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'subject' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'data' } }, - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, - { kind: 'Field', name: { kind: 'Name', value: 'type' } }, - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AtomValue' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'creator' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AccountMetadata' }, - }, - ], - }, - }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'predicate' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'data' } }, - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, - { kind: 'Field', name: { kind: 'Name', value: 'type' } }, - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AtomValue' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'creator' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AccountMetadata' }, - }, - ], - }, - }, - ], - }, - }, { kind: 'Field', - name: { kind: 'Name', value: 'object' }, + name: { kind: 'Name', value: 'value' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'data' } }, - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, - { kind: 'Field', name: { kind: 'Name', value: 'type' } }, - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AtomValue' }, - }, { kind: 'Field', - name: { kind: 'Name', value: 'creator' }, + name: { kind: 'Name', value: 'person' }, selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AccountMetadata' }, + kind: 'Field', + name: { kind: 'Name', value: 'description' }, }, + { kind: 'Field', name: { kind: 'Name', value: 'url' } }, ], }, }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'vault' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'totalShares' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'currentSharePrice' }, - }, { kind: 'Field', - alias: { kind: 'Name', value: 'allPositions' }, - name: { kind: 'Name', value: 'positions_aggregate' }, + name: { kind: 'Name', value: 'thing' }, selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, { - kind: 'FragmentSpread', - name: { - kind: 'Name', - value: 'PositionAggregateFields', - }, + kind: 'Field', + name: { kind: 'Name', value: 'description' }, }, + { kind: 'Field', name: { kind: 'Name', value: 'url' } }, ], }, }, { kind: 'Field', - name: { kind: 'Name', value: 'positions' }, + name: { kind: 'Name', value: 'organization' }, selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'PositionFields' }, + kind: 'Field', + name: { kind: 'Name', value: 'description' }, }, + { kind: 'Field', name: { kind: 'Name', value: 'url' } }, ], }, }, ], }, }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'PositionDetails' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'positions' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'counterVault' }, + name: { kind: 'Name', value: 'account' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'totalShares' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'currentSharePrice' }, - }, - { - kind: 'Field', - alias: { kind: 'Name', value: 'allPositions' }, - name: { kind: 'Name', value: 'positions_aggregate' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'FragmentSpread', - name: { - kind: 'Name', - value: 'PositionAggregateFields', - }, - }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'positions' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'PositionFields' }, - }, - ], - }, - }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, ], }, }, - ], - }, - }, - ], -} as unknown as DocumentNode -export const GetEventsCount = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'GetEventsCount' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'where' }, - }, - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'events_bool_exp' }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'events_aggregate' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'where' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'where' }, - }, - }, - ], + name: { kind: 'Name', value: 'vault' }, selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'aggregate' }, + name: { kind: 'Name', value: 'atom' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'count' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'triple' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'vault' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'position_count' }, + }, + { + kind: 'Field', + name: { + kind: 'Name', + value: 'positions_aggregate', + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'sum' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { + kind: 'Name', + value: 'shares', + }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'counter_vault' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'position_count' }, + }, + { + kind: 'Field', + name: { + kind: 'Name', + value: 'positions_aggregate', + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'sum' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { + kind: 'Name', + value: 'shares', + }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'subject' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'data' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'label' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'image' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'emoji' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'type' }, + }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AtomValue' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'creator' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'AccountMetadata', + }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'predicate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'data' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'label' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'image' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'emoji' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'type' }, + }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AtomValue' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'creator' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'AccountMetadata', + }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'object' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'data' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'label' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'image' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'emoji' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'type' }, + }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AtomValue' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'creator' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'AccountMetadata', + }, + }, + ], + }, + }, + ], + }, + }, ], }, }, ], }, }, + { kind: 'Field', name: { kind: 'Name', value: 'shares' } }, + { kind: 'Field', name: { kind: 'Name', value: 'vault_id' } }, ], }, }, ], } as unknown as DocumentNode -export const GetEventsData = { +export const GetPositionsCountByType = { kind: 'Document', definitions: [ { kind: 'OperationDefinition', operation: 'query', - name: { kind: 'Name', value: 'GetEventsData' }, + name: { kind: 'Name', value: 'GetPositionsCountByType' }, variableDefinitions: [ { kind: 'VariableDefinition', @@ -27175,7 +36256,7 @@ export const GetEventsData = { }, type: { kind: 'NamedType', - name: { kind: 'Name', value: 'events_bool_exp' }, + name: { kind: 'Name', value: 'positions_bool_exp' }, }, }, ], @@ -27184,7 +36265,7 @@ export const GetEventsData = { selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'events_aggregate' }, + name: { kind: 'Name', value: 'positions_aggregate' }, arguments: [ { kind: 'Argument', @@ -27200,6 +36281,7 @@ export const GetEventsData = { selections: [ { kind: 'Field', + alias: { kind: 'Name', value: 'total' }, name: { kind: 'Name', value: 'aggregate' }, selectionSet: { kind: 'SelectionSet', @@ -27207,50 +36289,42 @@ export const GetEventsData = { { kind: 'Field', name: { kind: 'Name', value: 'count' } }, { kind: 'Field', - name: { kind: 'Name', value: 'max' }, + name: { kind: 'Name', value: 'sum' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'blockTimestamp' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'blockNumber' }, + name: { kind: 'Name', value: 'shares' }, }, ], }, }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'positions' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'vault' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'min' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'blockTimestamp' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'blockNumber' }, - }, - ], - }, + name: { kind: 'Name', value: 'atom_id' }, }, { kind: 'Field', - name: { kind: 'Name', value: 'avg' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'blockNumber' }, - }, - ], - }, + name: { kind: 'Name', value: 'triple_id' }, }, ], }, @@ -27263,114 +36337,25 @@ export const GetEventsData = { }, ], } as unknown as DocumentNode -export const GetDebugEvents = { +export const GetStats = { kind: 'Document', definitions: [ { kind: 'OperationDefinition', operation: 'query', - name: { kind: 'Name', value: 'GetDebugEvents' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'addresses' }, - }, - type: { - kind: 'ListType', - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'String' }, - }, - }, - }, - }, - ], + name: { kind: 'Name', value: 'GetStats' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - alias: { kind: 'Name', value: 'debug_events' }, - name: { kind: 'Name', value: 'events' }, + name: { kind: 'Name', value: 'stats' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { - kind: 'Field', - name: { kind: 'Name', value: 'atom' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'vault' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'positions' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'where' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { - kind: 'Name', - value: 'accountId', - }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { - kind: 'Name', - value: '_in', - }, - value: { - kind: 'Variable', - name: { - kind: 'Name', - value: 'addresses', - }, - }, - }, - ], - }, - }, - ], - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'accountId' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'shares' }, - }, - ], - }, - }, - ], - }, - }, - ], - }, + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'StatDetails' }, }, ], }, @@ -27378,232 +36363,278 @@ export const GetDebugEvents = { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'StatDetails' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'stats' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'contract_balance' } }, + { kind: 'Field', name: { kind: 'Name', value: 'total_accounts' } }, + { kind: 'Field', name: { kind: 'Name', value: 'total_fees' } }, + { kind: 'Field', name: { kind: 'Name', value: 'total_atoms' } }, + { kind: 'Field', name: { kind: 'Name', value: 'total_triples' } }, + { kind: 'Field', name: { kind: 'Name', value: 'total_positions' } }, + { kind: 'Field', name: { kind: 'Name', value: 'total_signals' } }, + ], + }, + }, ], } as unknown as DocumentNode -export const GetListItems = { +export const GetTags = { kind: 'Document', definitions: [ { kind: 'OperationDefinition', operation: 'query', - name: { kind: 'Name', value: 'GetListItems' }, + name: { kind: 'Name', value: 'GetTags' }, variableDefinitions: [ { kind: 'VariableDefinition', variable: { kind: 'Variable', - name: { kind: 'Name', value: 'predicateId' }, + name: { kind: 'Name', value: 'subjectId' }, }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'numeric' } }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'objectId' }, + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'numeric' }, + }, }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'numeric' } }, }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'triples_aggregate' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'where' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'predicateId' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: '_eq' }, - value: { kind: 'EnumValue', value: 'predicateId' }, - }, - ], - }, - }, - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'objectId' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: '_eq' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'objectId' }, - }, - }, - ], - }, - }, - ], - }, - }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'predicateId' }, + }, + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'numeric' }, + }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'triples' }, + arguments: [ { kind: 'Argument', - name: { kind: 'Name', value: 'order_by' }, + name: { kind: 'Name', value: 'where' }, value: { - kind: 'ListValue', - values: [ + kind: 'ObjectValue', + fields: [ { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'vault' }, - value: { + kind: 'ObjectField', + name: { kind: 'Name', value: '_and' }, + value: { + kind: 'ListValue', + values: [ + { kind: 'ObjectValue', fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'positionCount' }, - value: { kind: 'EnumValue', value: 'desc' }, + name: { kind: 'Name', value: 'subject_id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'Variable', + name: { + kind: 'Name', + value: 'subjectId', + }, + }, + }, + ], + }, }, ], }, - }, - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'counterVault' }, - value: { + { kind: 'ObjectValue', fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'positionCount' }, - value: { kind: 'EnumValue', value: 'desc' }, + name: { kind: 'Name', value: 'predicate_id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'Variable', + name: { + kind: 'Name', + value: 'predicateId', + }, + }, + }, + ], + }, }, ], }, - }, - ], + ], + }, }, ], }, }, ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'TripleMetadata' }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'AccountMetadata' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'accounts' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'atom_id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'AtomValue' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'atoms' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'value' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'aggregate' }, + name: { kind: 'Name', value: 'person' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'count' } }, + { kind: 'Field', name: { kind: 'Name', value: 'name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'description' }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'url' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'thing' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'description' }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'url' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'organization' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'description' }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'url' } }, ], }, }, ], }, }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'PositionFields' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'positions' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'triples' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'where' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'predicateId' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: '_eq' }, - value: { kind: 'EnumValue', value: 'predicateId' }, - }, - ], - }, - }, - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'objectId' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: '_eq' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'objectId' }, - }, - }, - ], - }, - }, - ], - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'order_by' }, - value: { - kind: 'ListValue', - values: [ - { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'vault' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'positionCount' }, - value: { kind: 'EnumValue', value: 'desc' }, - }, - ], - }, - }, - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'counterVault' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'positionCount' }, - value: { kind: 'EnumValue', value: 'desc' }, - }, - ], - }, - }, - ], - }, - ], - }, - }, - ], + name: { kind: 'Name', value: 'account' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'shares' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'vault' }, selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'TripleVaultDetails' }, + kind: 'Field', + name: { kind: 'Name', value: 'total_shares' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'current_share_price' }, }, ], }, @@ -27613,106 +36644,31 @@ export const GetListItems = { }, { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'TripleVaultDetails' }, + name: { kind: 'Name', value: 'PositionAggregateFields' }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'triples' }, + name: { kind: 'Name', value: 'positions_aggregate' }, }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'vaultId' } }, - { kind: 'Field', name: { kind: 'Name', value: 'counterVaultId' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'vault' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'positions' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'vaultId' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'shares' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'account' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'label' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'image' }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, { kind: 'Field', - name: { kind: 'Name', value: 'counterVault' }, + name: { kind: 'Name', value: 'aggregate' }, selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'count' } }, { kind: 'Field', - name: { kind: 'Name', value: 'positions' }, + name: { kind: 'Name', value: 'sum' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'vaultId' }, - }, { kind: 'Field', name: { kind: 'Name', value: 'shares' }, }, - { - kind: 'Field', - name: { kind: 'Name', value: 'account' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'label' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'image' }, - }, - ], - }, - }, ], }, }, @@ -27722,100 +36678,45 @@ export const GetListItems = { ], }, }, - ], -} as unknown as DocumentNode -export const GetPositions = { - kind: 'Document', - definitions: [ { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'GetPositions' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'limit' }, - }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'offset' }, - }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'orderBy' }, - }, - type: { - kind: 'ListType', - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'positions_order_by' }, - }, - }, - }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'where' }, - }, - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'positions_bool_exp' }, - }, - }, - ], + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'TripleMetadata' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'triples' }, + }, selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'subject_id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'predicate_id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'object_id' } }, { kind: 'Field', - alias: { kind: 'Name', value: 'total' }, - name: { kind: 'Name', value: 'positions_aggregate' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'where' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'where' }, - }, - }, - ], + name: { kind: 'Name', value: 'subject' }, selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'data' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AtomValue' }, + }, { kind: 'Field', - name: { kind: 'Name', value: 'aggregate' }, + name: { kind: 'Name', value: 'creator' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'count' } }, { - kind: 'Field', - name: { kind: 'Name', value: 'sum' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'shares' }, - }, - ], - }, + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AccountMetadata' }, }, ], }, @@ -27825,74 +36726,65 @@ export const GetPositions = { }, { kind: 'Field', - name: { kind: 'Name', value: 'positions' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'limit' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'limit' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'offset' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'offset' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'order_by' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'orderBy' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'where' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'where' }, - }, - }, - ], + name: { kind: 'Name', value: 'predicate' }, selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'data' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, { kind: 'FragmentSpread', - name: { kind: 'Name', value: 'PositionDetails' }, + name: { kind: 'Name', value: 'AtomValue' }, }, - ], - }, - }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'PositionDetails' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'positions' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'creator' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AccountMetadata' }, + }, + ], + }, + }, + ], + }, + }, { kind: 'Field', - name: { kind: 'Name', value: 'account' }, + name: { kind: 'Name', value: 'object' }, selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'data' } }, { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AtomValue' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'creator' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AccountMetadata' }, + }, + ], + }, + }, ], }, }, @@ -27902,76 +36794,87 @@ export const GetPositions = { selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'atom' }, + name: { kind: 'Name', value: 'total_shares' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'current_share_price' }, + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'allPositions' }, + name: { kind: 'Name', value: 'positions_aggregate' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'PositionAggregateFields', + }, + }, ], }, }, { kind: 'Field', - name: { kind: 'Name', value: 'triple' }, + name: { kind: 'Name', value: 'positions' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { - kind: 'Field', - name: { kind: 'Name', value: 'subject' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'label' }, - }, - ], - }, + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PositionFields' }, }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'counter_vault' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'total_shares' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'current_share_price' }, + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'allPositions' }, + name: { kind: 'Name', value: 'positions_aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ { - kind: 'Field', - name: { kind: 'Name', value: 'predicate' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'label' }, - }, - ], + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'PositionAggregateFields', }, }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'positions' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ { - kind: 'Field', - name: { kind: 'Name', value: 'object' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'label' }, - }, - ], - }, + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PositionFields' }, }, ], }, @@ -27979,54 +36882,19 @@ export const GetPositions = { ], }, }, - { kind: 'Field', name: { kind: 'Name', value: 'shares' } }, - { kind: 'Field', name: { kind: 'Name', value: 'vaultId' } }, ], }, }, ], } as unknown as DocumentNode -export const GetTriplePositionsByAddress = { +export const GetTagsCustom = { kind: 'Document', definitions: [ { kind: 'OperationDefinition', operation: 'query', - name: { kind: 'Name', value: 'GetTriplePositionsByAddress' }, + name: { kind: 'Name', value: 'GetTagsCustom' }, variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'limit' }, - }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'offset' }, - }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'orderBy' }, - }, - type: { - kind: 'ListType', - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'positions_order_by' }, - }, - }, - }, - }, { kind: 'VariableDefinition', variable: { @@ -28035,21 +36903,7 @@ export const GetTriplePositionsByAddress = { }, type: { kind: 'NamedType', - name: { kind: 'Name', value: 'positions_bool_exp' }, - }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'address' }, - }, - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'String' }, - }, + name: { kind: 'Name', value: 'triples_bool_exp' }, }, }, ], @@ -28058,75 +36912,8 @@ export const GetTriplePositionsByAddress = { selections: [ { kind: 'Field', - alias: { kind: 'Name', value: 'total' }, - name: { kind: 'Name', value: 'positions_aggregate' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'where' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'where' }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'aggregate' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'count' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'sum' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'shares' }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'positions' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'limit' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'limit' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'offset' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'offset' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'order_by' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'orderBy' }, - }, - }, + name: { kind: 'Name', value: 'triples' }, + arguments: [ { kind: 'Argument', name: { kind: 'Name', value: 'where' }, @@ -28141,221 +36928,93 @@ export const GetTriplePositionsByAddress = { selections: [ { kind: 'FragmentSpread', - name: { kind: 'Name', value: 'PositionDetails' }, + name: { kind: 'Name', value: 'TripleMetadata' }, }, + ], + }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'AccountMetadata' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'accounts' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'atom_id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'AtomValue' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'atoms' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'value' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'vault' }, + name: { kind: 'Name', value: 'person' }, selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, { kind: 'Field', - name: { kind: 'Name', value: 'atomId' }, + name: { kind: 'Name', value: 'description' }, }, + { kind: 'Field', name: { kind: 'Name', value: 'url' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'thing' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, { kind: 'Field', - name: { kind: 'Name', value: 'tripleId' }, + name: { kind: 'Name', value: 'description' }, }, - { - kind: 'Field', - name: { kind: 'Name', value: 'triple' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'vault' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'positions' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'where' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { - kind: 'Name', - value: 'accountId', - }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { - kind: 'Name', - value: '_eq', - }, - value: { - kind: 'Variable', - name: { - kind: 'Name', - value: 'address', - }, - }, - }, - ], - }, - }, - ], - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { - kind: 'Name', - value: 'account', - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { - kind: 'Name', - value: 'id', - }, - }, - { - kind: 'Field', - name: { - kind: 'Name', - value: 'label', - }, - }, - { - kind: 'Field', - name: { - kind: 'Name', - value: 'image', - }, - }, - ], - }, - }, - { - kind: 'Field', - name: { - kind: 'Name', - value: 'shares', - }, - }, - ], - }, - }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'counterVault' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'positions' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'where' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { - kind: 'Name', - value: 'accountId', - }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { - kind: 'Name', - value: '_eq', - }, - value: { - kind: 'Variable', - name: { - kind: 'Name', - value: 'address', - }, - }, - }, - ], - }, - }, - ], - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { - kind: 'Name', - value: 'account', - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { - kind: 'Name', - value: 'id', - }, - }, - { - kind: 'Field', - name: { - kind: 'Name', - value: 'label', - }, - }, - { - kind: 'Field', - name: { - kind: 'Name', - value: 'image', - }, - }, - ], - }, - }, - { - kind: 'Field', - name: { - kind: 'Name', - value: 'shares', - }, - }, - ], - }, - }, - ], - }, - }, - ], - }, + { kind: 'Field', name: { kind: 'Name', value: 'url' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'organization' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'description' }, }, + { kind: 'Field', name: { kind: 'Name', value: 'url' } }, ], }, }, @@ -28367,7 +37026,7 @@ export const GetTriplePositionsByAddress = { }, { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'PositionDetails' }, + name: { kind: 'Name', value: 'PositionFields' }, typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'positions' }, @@ -28375,7 +37034,6 @@ export const GetTriplePositionsByAddress = { selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', name: { kind: 'Name', value: 'account' }, @@ -28384,10 +37042,10 @@ export const GetTriplePositionsByAddress = { selections: [ { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, ], }, }, + { kind: 'Field', name: { kind: 'Name', value: 'shares' } }, { kind: 'Field', name: { kind: 'Name', value: 'vault' }, @@ -28397,73 +37055,251 @@ export const GetTriplePositionsByAddress = { { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'atom' }, + name: { kind: 'Name', value: 'total_shares' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'current_share_price' }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'PositionAggregateFields' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'positions_aggregate' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'count' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'sum' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'shares' }, + }, ], }, }, + ], + }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'TripleMetadata' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'triples' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'subject_id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'predicate_id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'object_id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'subject' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'data' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AtomValue' }, + }, { kind: 'Field', - name: { kind: 'Name', value: 'triple' }, + name: { kind: 'Name', value: 'creator' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { - kind: 'Field', - name: { kind: 'Name', value: 'subject' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'label' }, - }, - ], + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AccountMetadata' }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'predicate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'data' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AtomValue' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'creator' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AccountMetadata' }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'object' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'data' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AtomValue' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'creator' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AccountMetadata' }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'vault' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'total_shares' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'current_share_price' }, + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'allPositions' }, + name: { kind: 'Name', value: 'positions_aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'PositionAggregateFields', }, }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'positions' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ { - kind: 'Field', - name: { kind: 'Name', value: 'predicate' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'label' }, - }, - ], + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PositionFields' }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'counter_vault' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'total_shares' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'current_share_price' }, + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'allPositions' }, + name: { kind: 'Name', value: 'positions_aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'PositionAggregateFields', }, }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'positions' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ { - kind: 'Field', - name: { kind: 'Name', value: 'object' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'label' }, - }, - ], - }, + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PositionFields' }, }, ], }, @@ -28471,20 +37307,18 @@ export const GetTriplePositionsByAddress = { ], }, }, - { kind: 'Field', name: { kind: 'Name', value: 'shares' } }, - { kind: 'Field', name: { kind: 'Name', value: 'vaultId' } }, ], }, }, ], } as unknown as DocumentNode -export const GetPositionsWithAggregates = { +export const GetTriples = { kind: 'Document', definitions: [ { kind: 'OperationDefinition', operation: 'query', - name: { kind: 'Name', value: 'GetPositionsWithAggregates' }, + name: { kind: 'Name', value: 'GetTriples' }, variableDefinitions: [ { kind: 'VariableDefinition', @@ -28514,7 +37348,7 @@ export const GetPositionsWithAggregates = { kind: 'NonNullType', type: { kind: 'NamedType', - name: { kind: 'Name', value: 'positions_order_by' }, + name: { kind: 'Name', value: 'triples_order_by' }, }, }, }, @@ -28527,7 +37361,7 @@ export const GetPositionsWithAggregates = { }, type: { kind: 'NamedType', - name: { kind: 'Name', value: 'positions_bool_exp' }, + name: { kind: 'Name', value: 'triples_bool_exp' }, }, }, ], @@ -28536,7 +37370,37 @@ export const GetPositionsWithAggregates = { selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'positions_aggregate' }, + alias: { kind: 'Name', value: 'total' }, + name: { kind: 'Name', value: 'triples_aggregate' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'count' } }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'triples' }, arguments: [ { kind: 'Argument', @@ -28574,26 +37438,116 @@ export const GetPositionsWithAggregates = { selectionSet: { kind: 'SelectionSet', selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'TripleMetadata' }, + }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'TripleTxn' }, + }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'TripleVaultDetails' }, + }, { kind: 'Field', - name: { kind: 'Name', value: 'aggregate' }, + name: { kind: 'Name', value: 'creator' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'count' } }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AccountMetadata' }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'AccountMetadata' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'accounts' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'atom_id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'AtomValue' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'atoms' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'value' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'person' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'description' }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'url' } }, ], }, }, { kind: 'Field', - name: { kind: 'Name', value: 'nodes' }, + name: { kind: 'Name', value: 'thing' }, selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'PositionDetails' }, + kind: 'Field', + name: { kind: 'Name', value: 'description' }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'url' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'organization' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'description' }, }, + { kind: 'Field', name: { kind: 'Name', value: 'url' } }, ], }, }, @@ -28652,12 +37606,124 @@ export const GetPositionsWithAggregates = { kind: 'SelectionSet', selections: [ { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'vault' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'position_count' }, + }, + { + kind: 'Field', + name: { + kind: 'Name', + value: 'positions_aggregate', + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'sum' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { + kind: 'Name', + value: 'shares', + }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'counter_vault' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'position_count' }, + }, + { + kind: 'Field', + name: { + kind: 'Name', + value: 'positions_aggregate', + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'sum' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { + kind: 'Name', + value: 'shares', + }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'subject' }, selectionSet: { kind: 'SelectionSet', selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'data' }, + }, { kind: 'Field', name: { kind: 'Name', value: 'id' }, @@ -28666,6 +37732,38 @@ export const GetPositionsWithAggregates = { kind: 'Field', name: { kind: 'Name', value: 'label' }, }, + { + kind: 'Field', + name: { kind: 'Name', value: 'image' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'emoji' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'type' }, + }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AtomValue' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'creator' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'AccountMetadata', + }, + }, + ], + }, + }, ], }, }, @@ -28675,6 +37773,10 @@ export const GetPositionsWithAggregates = { selectionSet: { kind: 'SelectionSet', selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'data' }, + }, { kind: 'Field', name: { kind: 'Name', value: 'id' }, @@ -28683,6 +37785,38 @@ export const GetPositionsWithAggregates = { kind: 'Field', name: { kind: 'Name', value: 'label' }, }, + { + kind: 'Field', + name: { kind: 'Name', value: 'image' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'emoji' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'type' }, + }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AtomValue' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'creator' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'AccountMetadata', + }, + }, + ], + }, + }, ], }, }, @@ -28692,6 +37826,10 @@ export const GetPositionsWithAggregates = { selectionSet: { kind: 'SelectionSet', selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'data' }, + }, { kind: 'Field', name: { kind: 'Name', value: 'id' }, @@ -28700,6 +37838,38 @@ export const GetPositionsWithAggregates = { kind: 'Field', name: { kind: 'Name', value: 'label' }, }, + { + kind: 'Field', + name: { kind: 'Name', value: 'image' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'emoji' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'type' }, + }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AtomValue' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'creator' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'AccountMetadata', + }, + }, + ], + }, + }, ], }, }, @@ -28710,74 +37880,46 @@ export const GetPositionsWithAggregates = { }, }, { kind: 'Field', name: { kind: 'Name', value: 'shares' } }, - { kind: 'Field', name: { kind: 'Name', value: 'vaultId' } }, + { kind: 'Field', name: { kind: 'Name', value: 'vault_id' } }, ], }, }, - ], -} as unknown as DocumentNode -export const GetPositionsCount = { - kind: 'Document', - definitions: [ { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'GetPositionsCount' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'where' }, - }, - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'positions_bool_exp' }, - }, - }, - ], + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'PositionFields' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'positions' }, + }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'positions_aggregate' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'where' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'where' }, - }, - }, - ], + name: { kind: 'Name', value: 'account' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'shares' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'vault' }, selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', - alias: { kind: 'Name', value: 'total' }, - name: { kind: 'Name', value: 'aggregate' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'count' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'sum' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'shares' }, - }, - ], - }, - }, - ], - }, + name: { kind: 'Name', value: 'total_shares' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'current_share_price' }, }, ], }, @@ -28785,53 +37927,35 @@ export const GetPositionsCount = { ], }, }, - ], -} as unknown as DocumentNode -export const GetPosition = { - kind: 'Document', - definitions: [ { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'GetPosition' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'positionId' }, - }, - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'String' }, - }, - }, - }, - ], + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'PositionAggregateFields' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'positions_aggregate' }, + }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'position' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'id' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'positionId' }, - }, - }, - ], + name: { kind: 'Name', value: 'aggregate' }, selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'count' } }, { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'PositionDetails' }, + kind: 'Field', + name: { kind: 'Name', value: 'sum' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'shares' }, + }, + ], + }, }, ], }, @@ -28841,103 +37965,201 @@ export const GetPosition = { }, { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'PositionDetails' }, + name: { kind: 'Name', value: 'TripleMetadata' }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'positions' }, + name: { kind: 'Name', value: 'triples' }, }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'subject_id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'predicate_id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'object_id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'account' }, + name: { kind: 'Name', value: 'subject' }, selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'data' } }, { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AtomValue' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'creator' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AccountMetadata' }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'predicate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'data' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AtomValue' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'creator' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AccountMetadata' }, + }, + ], + }, + }, ], }, }, { kind: 'Field', - name: { kind: 'Name', value: 'vault' }, + name: { kind: 'Name', value: 'object' }, selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'data' } }, { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AtomValue' }, + }, { kind: 'Field', - name: { kind: 'Name', value: 'atom' }, + name: { kind: 'Name', value: 'creator' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AccountMetadata' }, + }, ], }, }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'vault' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'total_shares' }, + }, { kind: 'Field', - name: { kind: 'Name', value: 'triple' }, + name: { kind: 'Name', value: 'current_share_price' }, + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'allPositions' }, + name: { kind: 'Name', value: 'positions_aggregate' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { - kind: 'Field', - name: { kind: 'Name', value: 'subject' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'label' }, - }, - ], + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'PositionAggregateFields', }, }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'positions' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PositionFields' }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'counter_vault' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'total_shares' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'current_share_price' }, + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'allPositions' }, + name: { kind: 'Name', value: 'positions_aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ { - kind: 'Field', - name: { kind: 'Name', value: 'predicate' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'label' }, - }, - ], + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'PositionAggregateFields', }, }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'positions' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ { - kind: 'Field', - name: { kind: 'Name', value: 'object' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'label' }, - }, - ], - }, + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PositionFields' }, }, ], }, @@ -28945,72 +38167,53 @@ export const GetPosition = { ], }, }, - { kind: 'Field', name: { kind: 'Name', value: 'shares' } }, - { kind: 'Field', name: { kind: 'Name', value: 'vaultId' } }, ], }, }, - ], -} as unknown as DocumentNode -export const GetPositionsCountByType = { - kind: 'Document', - definitions: [ { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'GetPositionsCountByType' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'where' }, - }, - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'positions_bool_exp' }, - }, - }, - ], + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'TripleTxn' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'triples' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'block_number' } }, + { kind: 'Field', name: { kind: 'Name', value: 'block_timestamp' } }, + { kind: 'Field', name: { kind: 'Name', value: 'transaction_hash' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creator_id' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'TripleVaultDetails' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'triples' }, + }, selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'vault_id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'counter_vault_id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'positions_aggregate' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'where' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'where' }, - }, - }, - ], + name: { kind: 'Name', value: 'vault' }, selectionSet: { kind: 'SelectionSet', selections: [ { - kind: 'Field', - alias: { kind: 'Name', value: 'total' }, - name: { kind: 'Name', value: 'aggregate' }, + kind: 'Field', + name: { kind: 'Name', value: 'positions' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'count' } }, { - kind: 'Field', - name: { kind: 'Name', value: 'sum' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'shares' }, - }, - ], - }, + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PositionDetails' }, }, ], }, @@ -29020,23 +38223,19 @@ export const GetPositionsCountByType = { }, { kind: 'Field', - name: { kind: 'Name', value: 'positions' }, + name: { kind: 'Name', value: 'counter_vault' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'vault' }, + name: { kind: 'Name', value: 'positions' }, selectionSet: { kind: 'SelectionSet', selections: [ { - kind: 'Field', - name: { kind: 'Name', value: 'atomId' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'tripleId' }, + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PositionDetails' }, }, ], }, @@ -29049,61 +38248,13 @@ export const GetPositionsCountByType = { }, ], } as unknown as DocumentNode -export const GetStats = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'GetStats' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'stats' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'StatDetails' }, - }, - ], - }, - }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'StatDetails' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'stats' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'contractBalance' } }, - { kind: 'Field', name: { kind: 'Name', value: 'totalAccounts' } }, - { kind: 'Field', name: { kind: 'Name', value: 'totalFees' } }, - { kind: 'Field', name: { kind: 'Name', value: 'totalAtoms' } }, - { kind: 'Field', name: { kind: 'Name', value: 'totalTriples' } }, - { kind: 'Field', name: { kind: 'Name', value: 'totalPositions' } }, - { kind: 'Field', name: { kind: 'Name', value: 'totalSignals' } }, - ], - }, - }, - ], -} as unknown as DocumentNode -export const GetTriples = { +export const GetTriplesWithAggregates = { kind: 'Document', definitions: [ { kind: 'OperationDefinition', operation: 'query', - name: { kind: 'Name', value: 'GetTriples' }, + name: { kind: 'Name', value: 'GetTriplesWithAggregates' }, variableDefinitions: [ { kind: 'VariableDefinition', @@ -29155,37 +38306,7 @@ export const GetTriples = { selections: [ { kind: 'Field', - alias: { kind: 'Name', value: 'total' }, name: { kind: 'Name', value: 'triples_aggregate' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'where' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'where' }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'aggregate' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'count' } }, - ], - }, - }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'triples' }, arguments: [ { kind: 'Argument', @@ -29223,176 +38344,46 @@ export const GetTriples = { selectionSet: { kind: 'SelectionSet', selections: [ - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'TripleMetadata' }, - }, - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'TripleTxn' }, - }, - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'TripleVaultDetails' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'creator' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AccountMetadata' }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'AccountMetadata' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'accounts' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'atomId' } }, - { kind: 'Field', name: { kind: 'Name', value: 'type' } }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'AtomValue' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'atoms' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'value' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'person' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'description' }, - }, - { kind: 'Field', name: { kind: 'Name', value: 'url' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'thing' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'description' }, - }, - { kind: 'Field', name: { kind: 'Name', value: 'url' } }, - ], - }, - }, { kind: 'Field', - name: { kind: 'Name', value: 'organization' }, + name: { kind: 'Name', value: 'aggregate' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'description' }, - }, - { kind: 'Field', name: { kind: 'Name', value: 'url' } }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'PositionFields' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'positions' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'account' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - ], - }, - }, - { kind: 'Field', name: { kind: 'Name', value: 'shares' } }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'PositionAggregateFields' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'positions_aggregate' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'aggregate' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'count' } }, + { kind: 'Field', name: { kind: 'Name', value: 'count' } }, + ], + }, + }, { kind: 'Field', - name: { kind: 'Name', value: 'sum' }, + name: { kind: 'Name', value: 'nodes' }, selectionSet: { kind: 'SelectionSet', selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'TripleMetadata' }, + }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'TripleTxn' }, + }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'TripleVaultDetails' }, + }, { kind: 'Field', - name: { kind: 'Name', value: 'shares' }, + name: { kind: 'Name', value: 'creator' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AccountMetadata' }, + }, + ], + }, }, ], }, @@ -29405,258 +38396,198 @@ export const GetTriples = { }, { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'TripleMetadata' }, + name: { kind: 'Name', value: 'AccountMetadata' }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'triples' }, + name: { kind: 'Name', value: 'accounts' }, }, selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'subjectId' } }, - { kind: 'Field', name: { kind: 'Name', value: 'predicateId' } }, - { kind: 'Field', name: { kind: 'Name', value: 'objectId' } }, + { kind: 'Field', name: { kind: 'Name', value: 'atom_id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'AtomValue' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'atoms' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'subject' }, + name: { kind: 'Name', value: 'value' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'data' } }, - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, - { kind: 'Field', name: { kind: 'Name', value: 'type' } }, - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AtomValue' }, - }, { kind: 'Field', - name: { kind: 'Name', value: 'creator' }, + name: { kind: 'Name', value: 'person' }, selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AccountMetadata' }, + kind: 'Field', + name: { kind: 'Name', value: 'description' }, }, + { kind: 'Field', name: { kind: 'Name', value: 'url' } }, ], }, }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'predicate' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'data' } }, - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, - { kind: 'Field', name: { kind: 'Name', value: 'type' } }, - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AtomValue' }, - }, { kind: 'Field', - name: { kind: 'Name', value: 'creator' }, + name: { kind: 'Name', value: 'thing' }, selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AccountMetadata' }, + kind: 'Field', + name: { kind: 'Name', value: 'description' }, }, + { kind: 'Field', name: { kind: 'Name', value: 'url' } }, ], }, }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'object' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'data' } }, - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { kind: 'Field', name: { kind: 'Name', value: 'emoji' } }, - { kind: 'Field', name: { kind: 'Name', value: 'type' } }, - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AtomValue' }, - }, { kind: 'Field', - name: { kind: 'Name', value: 'creator' }, + name: { kind: 'Name', value: 'organization' }, selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AccountMetadata' }, + kind: 'Field', + name: { kind: 'Name', value: 'description' }, }, + { kind: 'Field', name: { kind: 'Name', value: 'url' } }, ], }, }, ], }, }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'PositionDetails' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'positions' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'vault' }, + name: { kind: 'Name', value: 'account' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'totalShares' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'currentSharePrice' }, - }, - { - kind: 'Field', - alias: { kind: 'Name', value: 'allPositions' }, - name: { kind: 'Name', value: 'positions_aggregate' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'FragmentSpread', - name: { - kind: 'Name', - value: 'PositionAggregateFields', - }, - }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'positions' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'PositionFields' }, - }, - ], - }, - }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, ], }, }, { kind: 'Field', - name: { kind: 'Name', value: 'counterVault' }, + name: { kind: 'Name', value: 'vault' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'totalShares' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'currentSharePrice' }, - }, - { - kind: 'Field', - alias: { kind: 'Name', value: 'allPositions' }, - name: { kind: 'Name', value: 'positions_aggregate' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'FragmentSpread', - name: { - kind: 'Name', - value: 'PositionAggregateFields', - }, - }, - ], - }, - }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'positions' }, + name: { kind: 'Name', value: 'atom' }, selectionSet: { kind: 'SelectionSet', selections: [ - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'PositionFields' }, - }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, ], }, }, - ], - }, - }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'TripleTxn' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'triples' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'blockNumber' } }, - { kind: 'Field', name: { kind: 'Name', value: 'blockTimestamp' } }, - { kind: 'Field', name: { kind: 'Name', value: 'transactionHash' } }, - { kind: 'Field', name: { kind: 'Name', value: 'creatorId' } }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'TripleVaultDetails' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'triples' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'vaultId' } }, - { kind: 'Field', name: { kind: 'Name', value: 'counterVaultId' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'vault' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'positions' }, + name: { kind: 'Name', value: 'triple' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'vaultId' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'shares' }, + name: { kind: 'Name', value: 'vault' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'position_count' }, + }, + { + kind: 'Field', + name: { + kind: 'Name', + value: 'positions_aggregate', + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'sum' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { + kind: 'Name', + value: 'shares', + }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + ], + }, }, { kind: 'Field', - name: { kind: 'Name', value: 'account' }, + name: { kind: 'Name', value: 'counter_vault' }, selectionSet: { kind: 'SelectionSet', selections: [ @@ -29666,48 +38597,58 @@ export const GetTriples = { }, { kind: 'Field', - name: { kind: 'Name', value: 'label' }, + name: { kind: 'Name', value: 'position_count' }, }, { kind: 'Field', - name: { kind: 'Name', value: 'image' }, + name: { + kind: 'Name', + value: 'positions_aggregate', + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'sum' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { + kind: 'Name', + value: 'shares', + }, + }, + ], + }, + }, + ], + }, + }, + ], + }, }, ], }, }, - ], - }, - }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'counterVault' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'positions' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'vaultId' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'shares' }, - }, { kind: 'Field', - name: { kind: 'Name', value: 'account' }, + name: { kind: 'Name', value: 'subject' }, selectionSet: { kind: 'SelectionSet', selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'data' }, + }, { kind: 'Field', name: { kind: 'Name', value: 'id' }, @@ -29720,153 +38661,139 @@ export const GetTriples = { kind: 'Field', name: { kind: 'Name', value: 'image' }, }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode -export const GetTriplesWithAggregates = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'GetTriplesWithAggregates' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'limit' }, - }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'offset' }, - }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'orderBy' }, - }, - type: { - kind: 'ListType', - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'triples_order_by' }, - }, - }, - }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'where' }, - }, - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'triples_bool_exp' }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'triples_aggregate' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'limit' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'limit' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'offset' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'offset' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'order_by' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'orderBy' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'where' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'where' }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'aggregate' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'count' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'nodes' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'TripleMetadata' }, - }, - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'TripleTxn' }, + { + kind: 'Field', + name: { kind: 'Name', value: 'emoji' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'type' }, + }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AtomValue' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'creator' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'AccountMetadata', + }, + }, + ], + }, + }, + ], + }, }, { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'TripleVaultDetails' }, + kind: 'Field', + name: { kind: 'Name', value: 'predicate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'data' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'label' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'image' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'emoji' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'type' }, + }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AtomValue' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'creator' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'AccountMetadata', + }, + }, + ], + }, + }, + ], + }, }, { kind: 'Field', - name: { kind: 'Name', value: 'creator' }, + name: { kind: 'Name', value: 'object' }, selectionSet: { kind: 'SelectionSet', selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'data' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'label' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'image' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'emoji' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'type' }, + }, { kind: 'FragmentSpread', - name: { kind: 'Name', value: 'AccountMetadata' }, + name: { kind: 'Name', value: 'AtomValue' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'creator' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'AccountMetadata', + }, + }, + ], + }, }, ], }, @@ -29877,119 +38804,51 @@ export const GetTriplesWithAggregates = { ], }, }, + { kind: 'Field', name: { kind: 'Name', value: 'shares' } }, + { kind: 'Field', name: { kind: 'Name', value: 'vault_id' } }, ], }, }, { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'AccountMetadata' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'accounts' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'atomId' } }, - { kind: 'Field', name: { kind: 'Name', value: 'type' } }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'AtomValue' }, + name: { kind: 'Name', value: 'PositionFields' }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'atoms' }, + name: { kind: 'Name', value: 'positions' }, }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'value' }, + name: { kind: 'Name', value: 'account' }, selectionSet: { kind: 'SelectionSet', selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'person' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'description' }, - }, - { kind: 'Field', name: { kind: 'Name', value: 'url' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'thing' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'description' }, - }, - { kind: 'Field', name: { kind: 'Name', value: 'url' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'organization' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'description' }, - }, - { kind: 'Field', name: { kind: 'Name', value: 'url' } }, - ], - }, - }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, ], }, }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'PositionFields' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'positions' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'shares' } }, { kind: 'Field', - name: { kind: 'Name', value: 'account' }, + name: { kind: 'Name', value: 'vault' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'total_shares' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'current_share_price' }, + }, ], }, }, - { kind: 'Field', name: { kind: 'Name', value: 'shares' } }, ], }, }, @@ -30040,9 +38899,9 @@ export const GetTriplesWithAggregates = { kind: 'SelectionSet', selections: [ { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'subjectId' } }, - { kind: 'Field', name: { kind: 'Name', value: 'predicateId' } }, - { kind: 'Field', name: { kind: 'Name', value: 'objectId' } }, + { kind: 'Field', name: { kind: 'Name', value: 'subject_id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'predicate_id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'object_id' } }, { kind: 'Field', name: { kind: 'Name', value: 'subject' }, @@ -30145,10 +39004,13 @@ export const GetTriplesWithAggregates = { selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'totalShares' } }, { kind: 'Field', - name: { kind: 'Name', value: 'currentSharePrice' }, + name: { kind: 'Name', value: 'total_shares' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'current_share_price' }, }, { kind: 'Field', @@ -30185,14 +39047,17 @@ export const GetTriplesWithAggregates = { }, { kind: 'Field', - name: { kind: 'Name', value: 'counterVault' }, + name: { kind: 'Name', value: 'counter_vault' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'totalShares' } }, { kind: 'Field', - name: { kind: 'Name', value: 'currentSharePrice' }, + name: { kind: 'Name', value: 'total_shares' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'current_share_price' }, }, { kind: 'Field', @@ -30240,10 +39105,10 @@ export const GetTriplesWithAggregates = { selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'blockNumber' } }, - { kind: 'Field', name: { kind: 'Name', value: 'blockTimestamp' } }, - { kind: 'Field', name: { kind: 'Name', value: 'transactionHash' } }, - { kind: 'Field', name: { kind: 'Name', value: 'creatorId' } }, + { kind: 'Field', name: { kind: 'Name', value: 'block_number' } }, + { kind: 'Field', name: { kind: 'Name', value: 'block_timestamp' } }, + { kind: 'Field', name: { kind: 'Name', value: 'transaction_hash' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creator_id' } }, ], }, }, @@ -30257,49 +39122,23 @@ export const GetTriplesWithAggregates = { selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'vaultId' } }, - { kind: 'Field', name: { kind: 'Name', value: 'counterVaultId' } }, + { kind: 'Field', name: { kind: 'Name', value: 'vault_id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'counter_vault_id' } }, { kind: 'Field', name: { kind: 'Name', value: 'vault' }, selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'positions' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'vaultId' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'shares' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'account' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'label' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'image' }, - }, - ], - }, + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'positions' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PositionDetails' }, }, ], }, @@ -30309,7 +39148,7 @@ export const GetTriplesWithAggregates = { }, { kind: 'Field', - name: { kind: 'Name', value: 'counterVault' }, + name: { kind: 'Name', value: 'counter_vault' }, selectionSet: { kind: 'SelectionSet', selections: [ @@ -30319,35 +39158,9 @@ export const GetTriplesWithAggregates = { selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'vaultId' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'shares' }, - }, { - kind: 'Field', - name: { kind: 'Name', value: 'account' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'label' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'image' }, - }, - ], - }, + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PositionDetails' }, }, ], }, @@ -30504,7 +39317,7 @@ export const GetTriple = { { kind: 'Field', name: { kind: 'Name', value: 'label' } }, { kind: 'Field', name: { kind: 'Name', value: 'image' } }, { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'atomId' } }, + { kind: 'Field', name: { kind: 'Name', value: 'atom_id' } }, { kind: 'Field', name: { kind: 'Name', value: 'type' } }, ], }, @@ -30537,45 +39350,372 @@ export const GetTriple = { kind: 'Field', name: { kind: 'Name', value: 'description' }, }, - { kind: 'Field', name: { kind: 'Name', value: 'url' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'thing' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { kind: 'Field', name: { kind: 'Name', value: 'url' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'thing' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'description' }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'url' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'organization' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'description' }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'url' } }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'PositionDetails' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'positions' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'account' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'vault' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'atom' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'label' } }, + { kind: 'Field', name: { kind: 'Name', value: 'image' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'triple' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'vault' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'position_count' }, + }, + { + kind: 'Field', + name: { + kind: 'Name', + value: 'positions_aggregate', + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'sum' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { + kind: 'Name', + value: 'shares', + }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'counter_vault' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'position_count' }, + }, + { + kind: 'Field', + name: { + kind: 'Name', + value: 'positions_aggregate', + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'sum' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { + kind: 'Name', + value: 'shares', + }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'subject' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'data' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'label' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'image' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'emoji' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'type' }, + }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AtomValue' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'creator' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'AccountMetadata', + }, + }, + ], + }, + }, + ], + }, + }, { kind: 'Field', - name: { kind: 'Name', value: 'description' }, + name: { kind: 'Name', value: 'predicate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'data' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'label' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'image' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'emoji' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'type' }, + }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AtomValue' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'creator' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'AccountMetadata', + }, + }, + ], + }, + }, + ], + }, }, - { kind: 'Field', name: { kind: 'Name', value: 'url' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'organization' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { kind: 'Field', name: { kind: 'Name', value: 'image' } }, { kind: 'Field', - name: { kind: 'Name', value: 'description' }, + name: { kind: 'Name', value: 'object' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'data' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'id' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'label' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'image' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'emoji' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'type' }, + }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'AtomValue' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'creator' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'AccountMetadata', + }, + }, + ], + }, + }, + ], + }, }, - { kind: 'Field', name: { kind: 'Name', value: 'url' } }, ], }, }, ], }, }, + { kind: 'Field', name: { kind: 'Name', value: 'shares' } }, + { kind: 'Field', name: { kind: 'Name', value: 'vault_id' } }, ], }, }, @@ -30601,6 +39741,24 @@ export const GetTriple = { }, }, { kind: 'Field', name: { kind: 'Name', value: 'shares' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'vault' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'total_shares' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'current_share_price' }, + }, + ], + }, + }, ], }, }, @@ -30651,9 +39809,9 @@ export const GetTriple = { kind: 'SelectionSet', selections: [ { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'subjectId' } }, - { kind: 'Field', name: { kind: 'Name', value: 'predicateId' } }, - { kind: 'Field', name: { kind: 'Name', value: 'objectId' } }, + { kind: 'Field', name: { kind: 'Name', value: 'subject_id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'predicate_id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'object_id' } }, { kind: 'Field', name: { kind: 'Name', value: 'subject' }, @@ -30756,10 +39914,13 @@ export const GetTriple = { selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'totalShares' } }, { kind: 'Field', - name: { kind: 'Name', value: 'currentSharePrice' }, + name: { kind: 'Name', value: 'total_shares' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'current_share_price' }, }, { kind: 'Field', @@ -30796,14 +39957,17 @@ export const GetTriple = { }, { kind: 'Field', - name: { kind: 'Name', value: 'counterVault' }, + name: { kind: 'Name', value: 'counter_vault' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'totalShares' } }, { kind: 'Field', - name: { kind: 'Name', value: 'currentSharePrice' }, + name: { kind: 'Name', value: 'total_shares' }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'current_share_price' }, }, { kind: 'Field', @@ -30851,10 +40015,10 @@ export const GetTriple = { selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'blockNumber' } }, - { kind: 'Field', name: { kind: 'Name', value: 'blockTimestamp' } }, - { kind: 'Field', name: { kind: 'Name', value: 'transactionHash' } }, - { kind: 'Field', name: { kind: 'Name', value: 'creatorId' } }, + { kind: 'Field', name: { kind: 'Name', value: 'block_number' } }, + { kind: 'Field', name: { kind: 'Name', value: 'block_timestamp' } }, + { kind: 'Field', name: { kind: 'Name', value: 'transaction_hash' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creator_id' } }, ], }, }, @@ -30868,8 +40032,8 @@ export const GetTriple = { selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'vaultId' } }, - { kind: 'Field', name: { kind: 'Name', value: 'counterVaultId' } }, + { kind: 'Field', name: { kind: 'Name', value: 'vault_id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'counter_vault_id' } }, { kind: 'Field', name: { kind: 'Name', value: 'vault' }, @@ -30882,35 +40046,9 @@ export const GetTriple = { selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { - kind: 'Field', - name: { kind: 'Name', value: 'vaultId' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'shares' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'account' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'label' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'image' }, - }, - ], - }, + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PositionDetails' }, }, ], }, @@ -30920,7 +40058,7 @@ export const GetTriple = { }, { kind: 'Field', - name: { kind: 'Name', value: 'counterVault' }, + name: { kind: 'Name', value: 'counter_vault' }, selectionSet: { kind: 'SelectionSet', selections: [ @@ -30930,35 +40068,9 @@ export const GetTriple = { selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'vaultId' }, - }, { - kind: 'Field', - name: { kind: 'Name', value: 'shares' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'account' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'label' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'image' }, - }, - ], - }, + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PositionDetails' }, }, ], }, @@ -31163,6 +40275,11 @@ export const GetTriplesWithPositions = { kind: 'SelectionSet', selections: [ { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'vault_id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'counter_vault_id' }, + }, { kind: 'Field', name: { kind: 'Name', value: 'subject' }, @@ -31170,6 +40287,10 @@ export const GetTriplesWithPositions = { kind: 'SelectionSet', selections: [ { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'vault_id' }, + }, { kind: 'Field', name: { kind: 'Name', value: 'label' } }, { kind: 'Field', name: { kind: 'Name', value: 'image' } }, ], @@ -31182,6 +40303,10 @@ export const GetTriplesWithPositions = { kind: 'SelectionSet', selections: [ { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'vault_id' }, + }, { kind: 'Field', name: { kind: 'Name', value: 'label' } }, { kind: 'Field', name: { kind: 'Name', value: 'image' } }, ], @@ -31194,6 +40319,10 @@ export const GetTriplesWithPositions = { kind: 'SelectionSet', selections: [ { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'vault_id' }, + }, { kind: 'Field', name: { kind: 'Name', value: 'label' } }, { kind: 'Field', name: { kind: 'Name', value: 'image' } }, ], @@ -31207,11 +40336,11 @@ export const GetTriplesWithPositions = { selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'totalShares' }, + name: { kind: 'Name', value: 'total_shares' }, }, { kind: 'Field', - name: { kind: 'Name', value: 'positionCount' }, + name: { kind: 'Name', value: 'position_count' }, }, { kind: 'Field', @@ -31225,7 +40354,7 @@ export const GetTriplesWithPositions = { fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'accountId' }, + name: { kind: 'Name', value: 'account_id' }, value: { kind: 'ObjectValue', fields: [ @@ -31283,17 +40412,17 @@ export const GetTriplesWithPositions = { }, { kind: 'Field', - name: { kind: 'Name', value: 'counterVault' }, + name: { kind: 'Name', value: 'counter_vault' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'totalShares' }, + name: { kind: 'Name', value: 'total_shares' }, }, { kind: 'Field', - name: { kind: 'Name', value: 'positionCount' }, + name: { kind: 'Name', value: 'position_count' }, }, { kind: 'Field', @@ -31307,7 +40436,7 @@ export const GetTriplesWithPositions = { fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'accountId' }, + name: { kind: 'Name', value: 'account_id' }, value: { kind: 'ObjectValue', fields: [ @@ -31609,11 +40738,11 @@ export const GetVaults = { }, { kind: 'Field', - name: { kind: 'Name', value: 'currentSharePrice' }, + name: { kind: 'Name', value: 'current_share_price' }, }, { kind: 'Field', - name: { kind: 'Name', value: 'totalShares' }, + name: { kind: 'Name', value: 'total_shares' }, }, ], }, @@ -31743,8 +40872,11 @@ export const GetVault = { ], }, }, - { kind: 'Field', name: { kind: 'Name', value: 'currentSharePrice' } }, - { kind: 'Field', name: { kind: 'Name', value: 'totalShares' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'current_share_price' }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'total_shares' } }, ], }, }, diff --git a/packages/graphql/src/queries/accounts.graphql b/packages/graphql/src/queries/accounts.graphql index 9525cab78..6f643d6f2 100644 --- a/packages/graphql/src/queries/accounts.graphql +++ b/packages/graphql/src/queries/accounts.graphql @@ -16,11 +16,11 @@ query GetAccounts( ...AccountClaims ...AccountPositions atom { - vaultId - walletId + vault_id + wallet_id vault { - positionCount - totalShares + position_count + total_shares positions_aggregate { aggregate { count @@ -113,10 +113,10 @@ query GetAccount( } ...AccountClaims ...AccountPositions - ...AccountCreatedAtoms - ...AccountCreatedTriples + ...AccountAtoms + ...AccountTriples } - chainLinkPrices(limit: 1, order_by: { id: desc }) { + chainlink_prices(limit: 1, order_by: { id: desc }) { usd } } @@ -143,8 +143,8 @@ query GetAccountWithPaginatedRelations( ...AccountMetadata ...AccountClaims ...AccountPositions - ...AccountCreatedAtoms - ...AccountCreatedTriples + ...AccountAtoms + ...AccountTriples } } @@ -174,7 +174,7 @@ query GetAccountWithAggregates( ...AccountMetadata ...AccountClaimsAggregate ...AccountPositionsAggregate - ...AccountCreatedAtomsAggregate - ...AccountCreatedTriplesAggregate + ...AccountAtomsAggregate + ...AccountTriplesAggregate } } diff --git a/packages/graphql/src/queries/atoms.graphql b/packages/graphql/src/queries/atoms.graphql index 304aa5a7e..195e8b360 100644 --- a/packages/graphql/src/queries/atoms.graphql +++ b/packages/graphql/src/queries/atoms.graphql @@ -14,6 +14,7 @@ query GetAtoms( ...AtomMetadata ...AtomTxn ...AtomVaultDetails + ...AtomTriple creator { ...AccountMetadata } @@ -36,9 +37,9 @@ query GetAtomsWithPositions( ...AtomMetadata ...AtomTxn vault { - positionCount - totalShares - currentSharePrice + position_count + total_shares + current_share_price total: positions_aggregate { aggregate { count @@ -47,7 +48,7 @@ query GetAtomsWithPositions( } } } - positions(where: { accountId: { _eq: $address } }) { + positions(where: { account_id: { _eq: $address } }) { id account { label diff --git a/packages/graphql/src/queries/claims.graphql b/packages/graphql/src/queries/claims.graphql index 8db6dffbf..3f8b97012 100644 --- a/packages/graphql/src/queries/claims.graphql +++ b/packages/graphql/src/queries/claims.graphql @@ -1,5 +1,5 @@ query GetClaimsByAddress($address: String) { - claims_aggregate(where: { accountId: { _eq: $address } }) { + claims_aggregate(where: { account_id: { _eq: $address } }) { aggregate { count } @@ -19,10 +19,10 @@ query GetClaimsByAddress($address: String) { } } id - vaultId - counterVaultId + vault_id + counter_vault_id shares - counterShares + counter_shares } } } diff --git a/packages/graphql/src/queries/events.graphql b/packages/graphql/src/queries/events.graphql index dc49ecac9..30c05b50a 100644 --- a/packages/graphql/src/queries/events.graphql +++ b/packages/graphql/src/queries/events.graphql @@ -1,208 +1,229 @@ -# Main pagination query -query GetEvents( +query GetFollowingPositions( + $subjectId: numeric! + $predicateId: numeric! + $address: String! $limit: Int $offset: Int - $orderBy: [events_order_by!] - $where: events_bool_exp - $addresses: [String!] + $positionsOrderBy: [positions_order_by!] ) { - total: events_aggregate(where: $where) { + triples_aggregate( + where: { + _and: [ + { subject_id: { _eq: $subjectId } } + { predicate_id: { _eq: $predicateId } } + { vault: { positions: { account_id: { _eq: $address } } } } + ] + } + ) { aggregate { count } } - events(limit: $limit, offset: $offset, order_by: $orderBy, where: $where) { + triples( + limit: $limit + offset: $offset + where: { + _and: [ + { subject_id: { _eq: $subjectId } } + { predicate_id: { _eq: $predicateId } } + { vault: { positions: { account_id: { _eq: $address } } } } + ] + } + ) { id - blockNumber - blockTimestamp - type - transactionHash - atomId - tripleId - depositId - redemptionId - atom { + subject { ...AtomMetadata - vault { - totalShares - positionCount - positions(where: { account: { id: { _in: $addresses } } }) { - accountId - shares - account { - id - label - image - } - } - } } - triple { - id - label - creator { - ...AccountMetadata - } - subject { - data - id - image - label - emoji - type - ...AtomValue - creator { - ...AccountMetadata - } - } - predicate { - data - id - image - label - emoji - type - ...AtomValue - creator { - ...AccountMetadata - } - } - object { - data - id - image - label - emoji - type - ...AtomValue - creator { - ...AccountMetadata - } - } - vault { - totalShares - positionCount - positions(where: { account: { id: { _in: $addresses } } }) { - accountId - shares - account { - id - label - image + predicate { + ...AtomMetadata + } + object { + ...AtomMetadata + } + vault { + total_shares + current_share_price + positions_aggregate { + aggregate { + count + sum { + shares } } } - counterVault { - totalShares - positionCount - positions(where: { account: { id: { _in: $addresses } } }) { - accountId - shares - account { - id - label - image - } + positions( + where: { account_id: { _eq: $address } } + order_by: $positionsOrderBy + ) { + account_id + account { + id + label } + shares } } - deposit { - senderId - sender { - id - } - sharesForReceiver - senderAssetsAfterTotalFees - vault { - totalShares - positionCount - positions(where: { account: { id: { _in: $addresses } } }) { - accountId - shares - account { - id - label - image + } +} + +query GetFollowerPositions( + $subjectId: numeric! + $predicateId: numeric! + $objectId: numeric! + $positionsLimit: Int + $positionsOffset: Int + $positionsOrderBy: [positions_order_by!] + $positionsWhere: positions_bool_exp +) { + triples( + where: { + _and: [ + { subject_id: { _eq: $subjectId } } + { predicate_id: { _eq: $predicateId } } + { object_id: { _eq: $objectId } } + ] + } + ) { + id + subject { + ...AtomMetadata + } + predicate { + ...AtomMetadata + } + object { + ...AtomMetadata + } + vault { + total_shares + current_share_price + positions_aggregate { + aggregate { + count + sum { + shares } } } - } - redemption { - senderId - sender { - id + positions( + limit: $positionsLimit + offset: $positionsOffset + order_by: $positionsOrderBy + where: $positionsWhere + ) { + account { + id + label + image + } + shares } } } } -# Combined query with aggregates and nodes -query GetEventsWithAggregates( - $limit: Int - $offset: Int - $orderBy: [events_order_by!] - $where: events_bool_exp +# Combined query to get following and followers +query GetConnections( + $subjectId: numeric! + $predicateId: numeric! + $objectId: numeric! $addresses: [String!] + $positionsLimit: Int + $positionsOffset: Int + $positionsOrderBy: [positions_order_by!] + $positionsWhere: positions_bool_exp ) { - events_aggregate( - where: $where - limit: $limit - offset: $offset - order_by: $orderBy + # Following + following_count: triples_aggregate( + where: { + _and: [ + { subject_id: { _eq: $subjectId } } + { predicate_id: { _eq: $predicateId } } + { object_id: { _eq: $objectId } } + ] + } ) { aggregate { count - max { - blockTimestamp - blockNumber - } - min { - blockTimestamp - blockNumber - } } - nodes { - ...EventDetails + } + following: triples( + where: { + _and: [ + { subject_id: { _eq: $subjectId } } + { predicate_id: { _eq: $predicateId } } + { object_id: { _eq: $objectId } } + ] } + ) { + ...FollowMetadata } -} -query GetEventsCount($where: events_bool_exp) { - events_aggregate(where: $where) { + # Followers + followers_count: triples_aggregate( + where: { + _and: [ + { subject_id: { _eq: $subjectId } } + { predicate_id: { _eq: $predicateId } } + { vault: { positions: { account_id: { _in: $addresses } } } } + ] + } + ) { aggregate { count } } + followers: triples( + where: { + _and: [ + { subject_id: { _eq: $subjectId } } + { predicate_id: { _eq: $predicateId } } + { vault: { positions: { account_id: { _in: $addresses } } } } + ] + } + ) { + ...FollowMetadata + } } -query GetEventsData($where: events_bool_exp) { - events_aggregate(where: $where) { +query GetConnectionsCount( + $subjectId: numeric! + $predicateId: numeric! + $objectId: numeric! + $address: String! +) { + # Following count + following_count: triples_aggregate( + where: { + _and: [ + { subject_id: { _eq: $subjectId } } + { predicate_id: { _eq: $predicateId } } + { vault: { positions: { account_id: { _eq: $address } } } } + ] + } + ) { aggregate { count - max { - blockTimestamp - blockNumber - } - min { - blockTimestamp - blockNumber - } - avg { - blockNumber - } } } -} -# Debug query with explicit address and position filtering -query GetDebugEvents($addresses: [String!]) { - debug_events: events { - id - atom { - vault { - positions(where: { accountId: { _in: $addresses } }) { - accountId - shares + # Followers count + followers_count: triples( + where: { + _and: [ + { subject_id: { _eq: $subjectId } } + { predicate_id: { _eq: $predicateId } } + { object_id: { _eq: $objectId } } + ] + } + ) { + vault { + positions_aggregate { + aggregate { + count + sum { + shares + } } } } diff --git a/packages/graphql/src/queries/follows.graphql b/packages/graphql/src/queries/follows.graphql new file mode 100644 index 000000000..30c05b50a --- /dev/null +++ b/packages/graphql/src/queries/follows.graphql @@ -0,0 +1,231 @@ +query GetFollowingPositions( + $subjectId: numeric! + $predicateId: numeric! + $address: String! + $limit: Int + $offset: Int + $positionsOrderBy: [positions_order_by!] +) { + triples_aggregate( + where: { + _and: [ + { subject_id: { _eq: $subjectId } } + { predicate_id: { _eq: $predicateId } } + { vault: { positions: { account_id: { _eq: $address } } } } + ] + } + ) { + aggregate { + count + } + } + triples( + limit: $limit + offset: $offset + where: { + _and: [ + { subject_id: { _eq: $subjectId } } + { predicate_id: { _eq: $predicateId } } + { vault: { positions: { account_id: { _eq: $address } } } } + ] + } + ) { + id + subject { + ...AtomMetadata + } + predicate { + ...AtomMetadata + } + object { + ...AtomMetadata + } + vault { + total_shares + current_share_price + positions_aggregate { + aggregate { + count + sum { + shares + } + } + } + positions( + where: { account_id: { _eq: $address } } + order_by: $positionsOrderBy + ) { + account_id + account { + id + label + } + shares + } + } + } +} + +query GetFollowerPositions( + $subjectId: numeric! + $predicateId: numeric! + $objectId: numeric! + $positionsLimit: Int + $positionsOffset: Int + $positionsOrderBy: [positions_order_by!] + $positionsWhere: positions_bool_exp +) { + triples( + where: { + _and: [ + { subject_id: { _eq: $subjectId } } + { predicate_id: { _eq: $predicateId } } + { object_id: { _eq: $objectId } } + ] + } + ) { + id + subject { + ...AtomMetadata + } + predicate { + ...AtomMetadata + } + object { + ...AtomMetadata + } + vault { + total_shares + current_share_price + positions_aggregate { + aggregate { + count + sum { + shares + } + } + } + positions( + limit: $positionsLimit + offset: $positionsOffset + order_by: $positionsOrderBy + where: $positionsWhere + ) { + account { + id + label + image + } + shares + } + } + } +} + +# Combined query to get following and followers +query GetConnections( + $subjectId: numeric! + $predicateId: numeric! + $objectId: numeric! + $addresses: [String!] + $positionsLimit: Int + $positionsOffset: Int + $positionsOrderBy: [positions_order_by!] + $positionsWhere: positions_bool_exp +) { + # Following + following_count: triples_aggregate( + where: { + _and: [ + { subject_id: { _eq: $subjectId } } + { predicate_id: { _eq: $predicateId } } + { object_id: { _eq: $objectId } } + ] + } + ) { + aggregate { + count + } + } + following: triples( + where: { + _and: [ + { subject_id: { _eq: $subjectId } } + { predicate_id: { _eq: $predicateId } } + { object_id: { _eq: $objectId } } + ] + } + ) { + ...FollowMetadata + } + + # Followers + followers_count: triples_aggregate( + where: { + _and: [ + { subject_id: { _eq: $subjectId } } + { predicate_id: { _eq: $predicateId } } + { vault: { positions: { account_id: { _in: $addresses } } } } + ] + } + ) { + aggregate { + count + } + } + followers: triples( + where: { + _and: [ + { subject_id: { _eq: $subjectId } } + { predicate_id: { _eq: $predicateId } } + { vault: { positions: { account_id: { _in: $addresses } } } } + ] + } + ) { + ...FollowMetadata + } +} + +query GetConnectionsCount( + $subjectId: numeric! + $predicateId: numeric! + $objectId: numeric! + $address: String! +) { + # Following count + following_count: triples_aggregate( + where: { + _and: [ + { subject_id: { _eq: $subjectId } } + { predicate_id: { _eq: $predicateId } } + { vault: { positions: { account_id: { _eq: $address } } } } + ] + } + ) { + aggregate { + count + } + } + + # Followers count + followers_count: triples( + where: { + _and: [ + { subject_id: { _eq: $subjectId } } + { predicate_id: { _eq: $predicateId } } + { object_id: { _eq: $objectId } } + ] + } + ) { + vault { + positions_aggregate { + aggregate { + count + sum { + shares + } + } + } + } + } +} diff --git a/packages/graphql/src/queries/lists.graphql b/packages/graphql/src/queries/lists.graphql index fae217d56..d9df61847 100644 --- a/packages/graphql/src/queries/lists.graphql +++ b/packages/graphql/src/queries/lists.graphql @@ -1,23 +1,190 @@ -# predicateId = 4 for tags +# predicateId = 4 for tags on dev, 3 on prod + +# GetLists query for Exploring Lists +query GetLists($where: predicate_objects_bool_exp) { + predicate_objects_aggregate(where: $where) { + aggregate { + count + } + } + predicate_objects( + where: $where + order_by: [{ claim_count: desc }, { triple_count: desc }] + ) { + id + claim_count + triple_count + object { + id + label + image + } + } +} -# this query is a WIP and will be refined to be more generic query GetListItems($predicateId: numeric, $objectId: numeric) { triples_aggregate( - where: { predicateId: { _eq: predicateId }, objectId: { _eq: $objectId } } + where: { predicate_id: { _eq: predicateId }, object_id: { _eq: $objectId } } order_by: [ - { vault: { positionCount: desc }, counterVault: { positionCount: desc } } + { + vault: { position_count: desc } + counter_vault: { position_count: desc } + } ] ) { aggregate { count } + nodes { + ...TripleVaultDetails + } } - triples( - where: { predicateId: { _eq: predicateId }, objectId: { _eq: $objectId } } - order_by: [ - { vault: { positionCount: desc }, counterVault: { positionCount: desc } } - ] - ) { - ...TripleVaultDetails +} + +# GetListDetails query for List Details page +## Combines the aggregates and nodes within since we don't need pagination on the tags yet +## If we do, we'd need to paginate the triples and tags separately and split +query GetListDetails( + $globalWhere: triples_bool_exp + $userWhere: triples_bool_exp + $tagPredicateId: numeric +) { + globalTriplesAggregate: triples_aggregate(where: $globalWhere) { + aggregate { + count + } + } + globalTriples: triples(where: $globalWhere) { + id + vault_id + counter_vault_id + subject { + id + vault_id + label + wallet_id + image + type + tags: as_subject_triples_aggregate( + where: { predicate_id: { _eq: $tagPredicateId } } + ) { + nodes { + object { + label + vault_id + taggedIdentities: as_object_triples_aggregate { + nodes { + subject { + label + vault_id + } + vault_id + } + aggregate { + count + } + } + } + } + aggregate { + count + } + } + } + object { + id + vault_id + label + wallet_id + image + type + } + predicate { + id + vault_id + label + wallet_id + image + type + } + vault { + positions_aggregate { + aggregate { + count + sum { + shares + } + } + } + } + } + userTriplesAggregate: triples_aggregate(where: $userWhere) { + aggregate { + count + } + } + userTriples: triples(where: $userWhere) { + id + vault_id + counter_vault_id + subject { + id + vault_id + label + wallet_id + image + type + tags: as_subject_triples_aggregate( + where: { predicate_id: { _eq: $tagPredicateId } } + ) { + nodes { + object { + label + vault_id + taggedIdentities: as_object_triples_aggregate { + nodes { + subject { + label + vault_id + } + vault_id + } + aggregate { + count + } + } + } + } + aggregate { + count + } + } + } + object { + id + vault_id + label + wallet_id + image + type + } + predicate { + id + vault_id + label + wallet_id + image + type + } + vault { + positions_aggregate { + aggregate { + count + sum { + shares + } + } + } + } } } diff --git a/packages/graphql/src/queries/positions.graphql b/packages/graphql/src/queries/positions.graphql index 6aa81d63c..221810b9f 100644 --- a/packages/graphql/src/queries/positions.graphql +++ b/packages/graphql/src/queries/positions.graphql @@ -36,11 +36,11 @@ query GetTriplePositionsByAddress( positions(limit: $limit, offset: $offset, order_by: $orderBy, where: $where) { ...PositionDetails vault { - atomId - tripleId + atom_id + triple_id triple { vault { - positions(where: { accountId: { _eq: $address } }) { + positions(where: { account_id: { _eq: $address } }) { account { id label @@ -49,8 +49,8 @@ query GetTriplePositionsByAddress( shares } } - counterVault { - positions(where: { accountId: { _eq: $address } }) { + counter_vault { + positions(where: { account_id: { _eq: $address } }) { account { id label @@ -114,8 +114,8 @@ query GetPositionsCountByType($where: positions_bool_exp) { } positions { vault { - atomId - tripleId + atom_id + triple_id } } } diff --git a/packages/graphql/src/queries/tags.graphql b/packages/graphql/src/queries/tags.graphql new file mode 100644 index 000000000..64e0abeaf --- /dev/null +++ b/packages/graphql/src/queries/tags.graphql @@ -0,0 +1,18 @@ +query GetTags($subjectId: numeric!, $predicateId: numeric!) { + triples( + where: { + _and: [ + { subject_id: { _eq: $subjectId } } + { predicate_id: { _eq: $predicateId } } + ] + } + ) { + ...TripleMetadata + } +} + +query GetTagsCustom($where: triples_bool_exp) { + triples(where: $where) { + ...TripleMetadata + } +} diff --git a/packages/graphql/src/queries/triples.graphql b/packages/graphql/src/queries/triples.graphql index 9d1f7c752..0c77de92a 100644 --- a/packages/graphql/src/queries/triples.graphql +++ b/packages/graphql/src/queries/triples.graphql @@ -88,25 +88,30 @@ query GetTriplesWithPositions( } triples(limit: $limit, offset: $offset, order_by: $orderBy, where: $where) { id + vault_id + counter_vault_id subject { id + vault_id label image } predicate { id + vault_id label image } object { id + vault_id label image } vault { - totalShares - positionCount - positions(where: { accountId: { _eq: $address } }) { + total_shares + position_count + positions(where: { account_id: { _eq: $address } }) { account { id label @@ -115,10 +120,10 @@ query GetTriplesWithPositions( shares } } - counterVault { - totalShares - positionCount - positions(where: { accountId: { _eq: $address } }) { + counter_vault { + total_shares + position_count + positions(where: { account_id: { _eq: $address } }) { account { id label diff --git a/packages/graphql/src/queries/vaults.graphql b/packages/graphql/src/queries/vaults.graphql index 042e10629..238bc8d8f 100644 --- a/packages/graphql/src/queries/vaults.graphql +++ b/packages/graphql/src/queries/vaults.graphql @@ -43,8 +43,8 @@ query GetVaults( shares } } - currentSharePrice - totalShares + current_share_price + total_shares } } }