From 00d3047ab9a7d5074627308c23f28beccd4c0baf Mon Sep 17 00:00:00 2001 From: Maayan Date: Thu, 15 Feb 2024 07:34:04 -0800 Subject: [PATCH] Add `decimals` field to token queries (#291) add decimals field to token queries --- CHANGELOG.md | 2 + ...urrentTokenOwnershipFieldsFragment.graphql | 1 + src/internal/queries/getTokenData.graphql | 1 + src/types/generated/operations.ts | 6 + src/types/generated/queries.ts | 2 + src/types/generated/types.ts | 717 ++++++++++++++++-- 6 files changed, 674 insertions(+), 55 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ec0f32cb4..bf1dc8d91 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ All notable changes to the Aptos TypeScript SDK will be captured in this file. T # Unreleased +- Add `decimals` field to token data queries + # 1.7.0 (2024-02-13) - Add ability to provide ABI to skip ABI fetch, and get roughly 50% performance improvement diff --git a/src/internal/queries/currentTokenOwnershipFieldsFragment.graphql b/src/internal/queries/currentTokenOwnershipFieldsFragment.graphql index bdf67d360..fe5c746ce 100644 --- a/src/internal/queries/currentTokenOwnershipFieldsFragment.graphql +++ b/src/internal/queries/currentTokenOwnershipFieldsFragment.graphql @@ -25,6 +25,7 @@ fragment CurrentTokenOwnershipFields on current_token_ownerships_v2 { token_properties token_standard token_uri + decimals current_collection { collection_id collection_name diff --git a/src/internal/queries/getTokenData.graphql b/src/internal/queries/getTokenData.graphql index 507558091..1f2f7cd9d 100644 --- a/src/internal/queries/getTokenData.graphql +++ b/src/internal/queries/getTokenData.graphql @@ -18,6 +18,7 @@ query getTokenData( token_properties token_standard token_uri + decimals current_collection { collection_id collection_name diff --git a/src/types/generated/operations.ts b/src/types/generated/operations.ts index 7edf56b16..d8b8f96ec 100644 --- a/src/types/generated/operations.ts +++ b/src/types/generated/operations.ts @@ -55,6 +55,7 @@ export type CurrentTokenOwnershipFieldsFragment = { token_properties: any; token_standard: string; token_uri: string; + decimals: any; current_collection?: { collection_id: string; collection_name: string; @@ -211,6 +212,7 @@ export type GetAccountOwnedTokensQuery = { token_properties: any; token_standard: string; token_uri: string; + decimals: any; current_collection?: { collection_id: string; collection_name: string; @@ -266,6 +268,7 @@ export type GetAccountOwnedTokensByTokenDataQuery = { token_properties: any; token_standard: string; token_uri: string; + decimals: any; current_collection?: { collection_id: string; collection_name: string; @@ -321,6 +324,7 @@ export type GetAccountOwnedTokensFromCollectionQuery = { token_properties: any; token_standard: string; token_uri: string; + decimals: any; current_collection?: { collection_id: string; collection_name: string; @@ -593,6 +597,7 @@ export type GetCurrentTokenOwnershipQuery = { token_properties: any; token_standard: string; token_uri: string; + decimals: any; current_collection?: { collection_id: string; collection_name: string; @@ -635,6 +640,7 @@ export type GetTokenDataQuery = { token_properties: any; token_standard: string; token_uri: string; + decimals: any; current_collection?: { collection_id: string; collection_name: string; diff --git a/src/types/generated/queries.ts b/src/types/generated/queries.ts index 3e9aa4c70..eb5e18dd7 100644 --- a/src/types/generated/queries.ts +++ b/src/types/generated/queries.ts @@ -60,6 +60,7 @@ export const CurrentTokenOwnershipFieldsFragmentDoc = ` token_properties token_standard token_uri + decimals current_collection { collection_id collection_name @@ -433,6 +434,7 @@ export const GetTokenData = ` token_properties token_standard token_uri + decimals current_collection { collection_id collection_name diff --git a/src/types/generated/types.ts b/src/types/generated/types.ts index 6ed9ddf6c..872de886c 100644 --- a/src/types/generated/types.ts +++ b/src/types/generated/types.ts @@ -211,10 +211,13 @@ export type AccountTransactionsBoolExp = { _or?: InputMaybe>; account_address?: InputMaybe; coin_activities?: InputMaybe; + coin_activities_aggregate?: InputMaybe; delegated_staking_activities?: InputMaybe; fungible_asset_activities?: InputMaybe; token_activities?: InputMaybe; + token_activities_aggregate?: InputMaybe; token_activities_v2?: InputMaybe; + token_activities_v2_aggregate?: InputMaybe; transaction_version?: InputMaybe; }; @@ -473,9 +476,12 @@ export type AddressVersionFromEventsBoolExp = { _or?: InputMaybe>; account_address?: InputMaybe; coin_activities?: InputMaybe; + coin_activities_aggregate?: InputMaybe; delegated_staking_activities?: InputMaybe; token_activities?: InputMaybe; + token_activities_aggregate?: InputMaybe; token_activities_v2?: InputMaybe; + token_activities_v2_aggregate?: InputMaybe; transaction_version?: InputMaybe; }; @@ -680,9 +686,12 @@ export type AddressVersionFromMoveResourcesBoolExp = { _or?: InputMaybe>; address?: InputMaybe; coin_activities?: InputMaybe; + coin_activities_aggregate?: InputMaybe; delegated_staking_activities?: InputMaybe; token_activities?: InputMaybe; + token_activities_aggregate?: InputMaybe; token_activities_v2?: InputMaybe; + token_activities_v2_aggregate?: InputMaybe; transaction_version?: InputMaybe; }; @@ -922,6 +931,33 @@ export type CoinActivitiesAggregate = { nodes: Array; }; +export type CoinActivitiesAggregateBoolExp = { + bool_and?: InputMaybe; + bool_or?: InputMaybe; + count?: InputMaybe; +}; + +export type CoinActivitiesAggregateBoolExpBoolAnd = { + arguments: CoinActivitiesSelectColumnCoinActivitiesAggregateBoolExpBoolAndArgumentsColumns; + distinct?: InputMaybe; + filter?: InputMaybe; + predicate: BooleanComparisonExp; +}; + +export type CoinActivitiesAggregateBoolExpBoolOr = { + arguments: CoinActivitiesSelectColumnCoinActivitiesAggregateBoolExpBoolOrArgumentsColumns; + distinct?: InputMaybe; + filter?: InputMaybe; + predicate: BooleanComparisonExp; +}; + +export type CoinActivitiesAggregateBoolExpCount = { + arguments?: InputMaybe>; + distinct?: InputMaybe; + filter?: InputMaybe; + predicate: IntComparisonExp; +}; + /** aggregate fields of "coin_activities" */ export type CoinActivitiesAggregateFields = { avg?: Maybe; @@ -988,6 +1024,7 @@ export type CoinActivitiesBoolExp = { activity_type?: InputMaybe; amount?: InputMaybe; aptos_names?: InputMaybe; + aptos_names_aggregate?: InputMaybe; block_height?: InputMaybe; coin_info?: InputMaybe; coin_type?: InputMaybe; @@ -1127,6 +1164,22 @@ export enum CoinActivitiesSelectColumn { TransactionVersion = "transaction_version", } +/** select "coin_activities_aggregate_bool_exp_bool_and_arguments_columns" columns of table "coin_activities" */ +export enum CoinActivitiesSelectColumnCoinActivitiesAggregateBoolExpBoolAndArgumentsColumns { + /** column name */ + IsGasFee = "is_gas_fee", + /** column name */ + IsTransactionSuccess = "is_transaction_success", +} + +/** select "coin_activities_aggregate_bool_exp_bool_or_arguments_columns" columns of table "coin_activities" */ +export enum CoinActivitiesSelectColumnCoinActivitiesAggregateBoolExpBoolOrArgumentsColumns { + /** column name */ + IsGasFee = "is_gas_fee", + /** column name */ + IsTransactionSuccess = "is_transaction_success", +} + /** aggregate stddev on columns */ export type CoinActivitiesStddevFields = { amount?: Maybe; @@ -1681,6 +1734,7 @@ export type CurrentAnsLookupBoolExp = { _not?: InputMaybe; _or?: InputMaybe>; all_token_ownerships?: InputMaybe; + all_token_ownerships_aggregate?: InputMaybe; domain?: InputMaybe; expiration_timestamp?: InputMaybe; is_deleted?: InputMaybe; @@ -1841,6 +1895,33 @@ export type CurrentAptosNamesAggregate = { nodes: Array; }; +export type CurrentAptosNamesAggregateBoolExp = { + bool_and?: InputMaybe; + bool_or?: InputMaybe; + count?: InputMaybe; +}; + +export type CurrentAptosNamesAggregateBoolExpBoolAnd = { + arguments: CurrentAptosNamesSelectColumnCurrentAptosNamesAggregateBoolExpBoolAndArgumentsColumns; + distinct?: InputMaybe; + filter?: InputMaybe; + predicate: BooleanComparisonExp; +}; + +export type CurrentAptosNamesAggregateBoolExpBoolOr = { + arguments: CurrentAptosNamesSelectColumnCurrentAptosNamesAggregateBoolExpBoolOrArgumentsColumns; + distinct?: InputMaybe; + filter?: InputMaybe; + predicate: BooleanComparisonExp; +}; + +export type CurrentAptosNamesAggregateBoolExpCount = { + arguments?: InputMaybe>; + distinct?: InputMaybe; + filter?: InputMaybe; + predicate: IntComparisonExp; +}; + /** aggregate fields of "current_aptos_names" */ export type CurrentAptosNamesAggregateFields = { avg?: Maybe; @@ -2000,6 +2081,22 @@ export enum CurrentAptosNamesSelectColumn { TokenStandard = "token_standard", } +/** select "current_aptos_names_aggregate_bool_exp_bool_and_arguments_columns" columns of table "current_aptos_names" */ +export enum CurrentAptosNamesSelectColumnCurrentAptosNamesAggregateBoolExpBoolAndArgumentsColumns { + /** column name */ + IsActive = "is_active", + /** column name */ + IsPrimary = "is_primary", +} + +/** select "current_aptos_names_aggregate_bool_exp_bool_or_arguments_columns" columns of table "current_aptos_names" */ +export enum CurrentAptosNamesSelectColumnCurrentAptosNamesAggregateBoolExpBoolOrArgumentsColumns { + /** column name */ + IsActive = "is_active", + /** column name */ + IsPrimary = "is_primary", +} + /** aggregate stddev on columns */ export type CurrentAptosNamesStddevFields = { last_transaction_version?: Maybe; @@ -3098,6 +3195,7 @@ export type CurrentStakingPoolVoterBoolExp = { last_transaction_version?: InputMaybe; operator_address?: InputMaybe; operator_aptos_name?: InputMaybe; + operator_aptos_name_aggregate?: InputMaybe; staking_pool_address?: InputMaybe; voter_address?: InputMaybe; }; @@ -3399,6 +3497,7 @@ export type CurrentTokenDatasV2 = { current_collection?: Maybe; /** An object relationship */ current_token_ownership?: Maybe; + decimals: Scalars["bigint"]["output"]; description: Scalars["String"]["output"]; is_fungible_v2?: Maybe; largest_property_version_v1?: Maybe; @@ -3428,6 +3527,7 @@ export type CurrentTokenDatasV2BoolExp = { collection_id?: InputMaybe; current_collection?: InputMaybe; current_token_ownership?: InputMaybe; + decimals?: InputMaybe; description?: InputMaybe; is_fungible_v2?: InputMaybe; largest_property_version_v1?: InputMaybe; @@ -3449,6 +3549,7 @@ export type CurrentTokenDatasV2OrderBy = { collection_id?: InputMaybe; current_collection?: InputMaybe; current_token_ownership?: InputMaybe; + decimals?: InputMaybe; description?: InputMaybe; is_fungible_v2?: InputMaybe; largest_property_version_v1?: InputMaybe; @@ -3468,6 +3569,8 @@ export enum CurrentTokenDatasV2SelectColumn { /** column name */ CollectionId = "collection_id", /** column name */ + Decimals = "decimals", + /** column name */ Description = "description", /** column name */ IsFungibleV2 = "is_fungible_v2", @@ -3504,6 +3607,7 @@ export type CurrentTokenDatasV2StreamCursorInput = { /** Initial value of the column from where the streaming should start */ export type CurrentTokenDatasV2StreamCursorValueInput = { collection_id?: InputMaybe; + decimals?: InputMaybe; description?: InputMaybe; is_fungible_v2?: InputMaybe; largest_property_version_v1?: InputMaybe; @@ -3551,6 +3655,17 @@ export type CurrentTokenOwnershipsAggregate = { nodes: Array; }; +export type CurrentTokenOwnershipsAggregateBoolExp = { + count?: InputMaybe; +}; + +export type CurrentTokenOwnershipsAggregateBoolExpCount = { + arguments?: InputMaybe>; + distinct?: InputMaybe; + filter?: InputMaybe; + predicate: IntComparisonExp; +}; + /** aggregate fields of "current_token_ownerships" */ export type CurrentTokenOwnershipsAggregateFields = { avg?: Maybe; @@ -3861,6 +3976,33 @@ export type CurrentTokenOwnershipsV2Aggregate = { nodes: Array; }; +export type CurrentTokenOwnershipsV2AggregateBoolExp = { + bool_and?: InputMaybe; + bool_or?: InputMaybe; + count?: InputMaybe; +}; + +export type CurrentTokenOwnershipsV2AggregateBoolExpBoolAnd = { + arguments: CurrentTokenOwnershipsV2SelectColumnCurrentTokenOwnershipsV2AggregateBoolExpBoolAndArgumentsColumns; + distinct?: InputMaybe; + filter?: InputMaybe; + predicate: BooleanComparisonExp; +}; + +export type CurrentTokenOwnershipsV2AggregateBoolExpBoolOr = { + arguments: CurrentTokenOwnershipsV2SelectColumnCurrentTokenOwnershipsV2AggregateBoolExpBoolOrArgumentsColumns; + distinct?: InputMaybe; + filter?: InputMaybe; + predicate: BooleanComparisonExp; +}; + +export type CurrentTokenOwnershipsV2AggregateBoolExpCount = { + arguments?: InputMaybe>; + distinct?: InputMaybe; + filter?: InputMaybe; + predicate: IntComparisonExp; +}; + /** aggregate fields of "current_token_ownerships_v2" */ export type CurrentTokenOwnershipsV2AggregateFields = { avg?: Maybe; @@ -3918,6 +4060,7 @@ export type CurrentTokenOwnershipsV2BoolExp = { _or?: InputMaybe>; amount?: InputMaybe; composed_nfts?: InputMaybe; + composed_nfts_aggregate?: InputMaybe; current_token_data?: InputMaybe; is_fungible_v2?: InputMaybe; is_soulbound_v2?: InputMaybe; @@ -4030,6 +4173,22 @@ export enum CurrentTokenOwnershipsV2SelectColumn { TokenStandard = "token_standard", } +/** select "current_token_ownerships_v2_aggregate_bool_exp_bool_and_arguments_columns" columns of table "current_token_ownerships_v2" */ +export enum CurrentTokenOwnershipsV2SelectColumnCurrentTokenOwnershipsV2AggregateBoolExpBoolAndArgumentsColumns { + /** column name */ + IsFungibleV2 = "is_fungible_v2", + /** column name */ + IsSoulboundV2 = "is_soulbound_v2", +} + +/** select "current_token_ownerships_v2_aggregate_bool_exp_bool_or_arguments_columns" columns of table "current_token_ownerships_v2" */ +export enum CurrentTokenOwnershipsV2SelectColumnCurrentTokenOwnershipsV2AggregateBoolExpBoolOrArgumentsColumns { + /** column name */ + IsFungibleV2 = "is_fungible_v2", + /** column name */ + IsSoulboundV2 = "is_soulbound_v2", +} + /** aggregate stddev on columns */ export type CurrentTokenOwnershipsV2StddevFields = { amount?: Maybe; @@ -4495,6 +4654,192 @@ export type DelegatedStakingActivitiesVarianceOrderBy = { transaction_version?: InputMaybe; }; +/** columns and relationships of "delegated_staking_pool_balances" */ +export type DelegatedStakingPoolBalances = { + active_table_handle: Scalars["String"]["output"]; + inactive_table_handle: Scalars["String"]["output"]; + operator_commission_percentage: Scalars["numeric"]["output"]; + staking_pool_address: Scalars["String"]["output"]; + total_coins: Scalars["numeric"]["output"]; + total_shares: Scalars["numeric"]["output"]; + transaction_version: Scalars["bigint"]["output"]; +}; + +/** aggregated selection of "delegated_staking_pool_balances" */ +export type DelegatedStakingPoolBalancesAggregate = { + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "delegated_staking_pool_balances" */ +export type DelegatedStakingPoolBalancesAggregateFields = { + 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 "delegated_staking_pool_balances" */ +export type DelegatedStakingPoolBalancesAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type DelegatedStakingPoolBalancesAvgFields = { + operator_commission_percentage?: Maybe; + total_coins?: Maybe; + total_shares?: Maybe; + transaction_version?: Maybe; +}; + +/** Boolean expression to filter rows from the table "delegated_staking_pool_balances". All fields are combined with a logical 'AND'. */ +export type DelegatedStakingPoolBalancesBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + active_table_handle?: InputMaybe; + inactive_table_handle?: InputMaybe; + operator_commission_percentage?: InputMaybe; + staking_pool_address?: InputMaybe; + total_coins?: InputMaybe; + total_shares?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** aggregate max on columns */ +export type DelegatedStakingPoolBalancesMaxFields = { + active_table_handle?: Maybe; + inactive_table_handle?: Maybe; + operator_commission_percentage?: Maybe; + staking_pool_address?: Maybe; + total_coins?: Maybe; + total_shares?: Maybe; + transaction_version?: Maybe; +}; + +/** aggregate min on columns */ +export type DelegatedStakingPoolBalancesMinFields = { + active_table_handle?: Maybe; + inactive_table_handle?: Maybe; + operator_commission_percentage?: Maybe; + staking_pool_address?: Maybe; + total_coins?: Maybe; + total_shares?: Maybe; + transaction_version?: Maybe; +}; + +/** Ordering options when selecting data from "delegated_staking_pool_balances". */ +export type DelegatedStakingPoolBalancesOrderBy = { + active_table_handle?: InputMaybe; + inactive_table_handle?: InputMaybe; + operator_commission_percentage?: InputMaybe; + staking_pool_address?: InputMaybe; + total_coins?: InputMaybe; + total_shares?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** select columns of table "delegated_staking_pool_balances" */ +export enum DelegatedStakingPoolBalancesSelectColumn { + /** column name */ + ActiveTableHandle = "active_table_handle", + /** column name */ + InactiveTableHandle = "inactive_table_handle", + /** column name */ + OperatorCommissionPercentage = "operator_commission_percentage", + /** column name */ + StakingPoolAddress = "staking_pool_address", + /** column name */ + TotalCoins = "total_coins", + /** column name */ + TotalShares = "total_shares", + /** column name */ + TransactionVersion = "transaction_version", +} + +/** aggregate stddev on columns */ +export type DelegatedStakingPoolBalancesStddevFields = { + operator_commission_percentage?: Maybe; + total_coins?: Maybe; + total_shares?: Maybe; + transaction_version?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type DelegatedStakingPoolBalancesStddevPopFields = { + operator_commission_percentage?: Maybe; + total_coins?: Maybe; + total_shares?: Maybe; + transaction_version?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type DelegatedStakingPoolBalancesStddevSampFields = { + operator_commission_percentage?: Maybe; + total_coins?: Maybe; + total_shares?: Maybe; + transaction_version?: Maybe; +}; + +/** Streaming cursor of the table "delegated_staking_pool_balances" */ +export type DelegatedStakingPoolBalancesStreamCursorInput = { + /** Stream column input with initial value */ + initial_value: DelegatedStakingPoolBalancesStreamCursorValueInput; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type DelegatedStakingPoolBalancesStreamCursorValueInput = { + active_table_handle?: InputMaybe; + inactive_table_handle?: InputMaybe; + operator_commission_percentage?: InputMaybe; + staking_pool_address?: InputMaybe; + total_coins?: InputMaybe; + total_shares?: InputMaybe; + transaction_version?: InputMaybe; +}; + +/** aggregate sum on columns */ +export type DelegatedStakingPoolBalancesSumFields = { + operator_commission_percentage?: Maybe; + total_coins?: Maybe; + total_shares?: Maybe; + transaction_version?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type DelegatedStakingPoolBalancesVarPopFields = { + operator_commission_percentage?: Maybe; + total_coins?: Maybe; + total_shares?: Maybe; + transaction_version?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type DelegatedStakingPoolBalancesVarSampFields = { + operator_commission_percentage?: Maybe; + total_coins?: Maybe; + total_shares?: Maybe; + transaction_version?: Maybe; +}; + +/** aggregate variance on columns */ +export type DelegatedStakingPoolBalancesVarianceFields = { + operator_commission_percentage?: Maybe; + total_coins?: Maybe; + total_shares?: Maybe; + transaction_version?: Maybe; +}; + /** columns and relationships of "delegated_staking_pools" */ export type DelegatedStakingPools = { /** An object relationship */ @@ -4799,6 +5144,7 @@ export type FungibleAssetActivitiesBoolExp = { metadata?: InputMaybe; owner_address?: InputMaybe; owner_aptos_names?: InputMaybe; + owner_aptos_names_aggregate?: InputMaybe; storage_id?: InputMaybe; storage_refund_amount?: InputMaybe; token_standard?: InputMaybe; @@ -5618,6 +5964,40 @@ export type NftMarketplaceV2CurrentNftMarketplaceListings = { token_standard: Scalars["String"]["output"]; }; +/** aggregated selection of "nft_marketplace_v2.current_nft_marketplace_listings" */ +export type NftMarketplaceV2CurrentNftMarketplaceListingsAggregate = { + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "nft_marketplace_v2.current_nft_marketplace_listings" */ +export type NftMarketplaceV2CurrentNftMarketplaceListingsAggregateFields = { + 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 "nft_marketplace_v2.current_nft_marketplace_listings" */ +export type NftMarketplaceV2CurrentNftMarketplaceListingsAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type NftMarketplaceV2CurrentNftMarketplaceListingsAvgFields = { + last_transaction_version?: Maybe; + price?: Maybe; + token_amount?: Maybe; +}; + /** Boolean expression to filter rows from the table "nft_marketplace_v2.current_nft_marketplace_listings". All fields are combined with a logical 'AND'. */ export type NftMarketplaceV2CurrentNftMarketplaceListingsBoolExp = { _and?: InputMaybe>; @@ -5641,6 +6021,42 @@ export type NftMarketplaceV2CurrentNftMarketplaceListingsBoolExp = { token_standard?: InputMaybe; }; +/** aggregate max on columns */ +export type NftMarketplaceV2CurrentNftMarketplaceListingsMaxFields = { + coin_type?: Maybe; + collection_id?: Maybe; + contract_address?: Maybe; + entry_function_id_str?: Maybe; + fee_schedule_id?: Maybe; + last_transaction_timestamp?: Maybe; + last_transaction_version?: Maybe; + listing_id?: Maybe; + marketplace?: Maybe; + price?: Maybe; + seller?: Maybe; + token_amount?: Maybe; + token_data_id?: Maybe; + token_standard?: Maybe; +}; + +/** aggregate min on columns */ +export type NftMarketplaceV2CurrentNftMarketplaceListingsMinFields = { + coin_type?: Maybe; + collection_id?: Maybe; + contract_address?: Maybe; + entry_function_id_str?: Maybe; + fee_schedule_id?: Maybe; + last_transaction_timestamp?: Maybe; + last_transaction_version?: Maybe; + listing_id?: Maybe; + marketplace?: Maybe; + price?: Maybe; + seller?: Maybe; + token_amount?: Maybe; + token_data_id?: Maybe; + token_standard?: Maybe; +}; + /** Ordering options when selecting data from "nft_marketplace_v2.current_nft_marketplace_listings". */ export type NftMarketplaceV2CurrentNftMarketplaceListingsOrderBy = { coin_type?: InputMaybe; @@ -5695,6 +6111,27 @@ export enum NftMarketplaceV2CurrentNftMarketplaceListingsSelectColumn { TokenStandard = "token_standard", } +/** aggregate stddev on columns */ +export type NftMarketplaceV2CurrentNftMarketplaceListingsStddevFields = { + last_transaction_version?: Maybe; + price?: Maybe; + token_amount?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type NftMarketplaceV2CurrentNftMarketplaceListingsStddevPopFields = { + last_transaction_version?: Maybe; + price?: Maybe; + token_amount?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type NftMarketplaceV2CurrentNftMarketplaceListingsStddevSampFields = { + last_transaction_version?: Maybe; + price?: Maybe; + token_amount?: Maybe; +}; + /** Streaming cursor of the table "nft_marketplace_v2_current_nft_marketplace_listings" */ export type NftMarketplaceV2CurrentNftMarketplaceListingsStreamCursorInput = { /** Stream column input with initial value */ @@ -5722,6 +6159,34 @@ export type NftMarketplaceV2CurrentNftMarketplaceListingsStreamCursorValueInput token_standard?: InputMaybe; }; +/** aggregate sum on columns */ +export type NftMarketplaceV2CurrentNftMarketplaceListingsSumFields = { + last_transaction_version?: Maybe; + price?: Maybe; + token_amount?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type NftMarketplaceV2CurrentNftMarketplaceListingsVarPopFields = { + last_transaction_version?: Maybe; + price?: Maybe; + token_amount?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type NftMarketplaceV2CurrentNftMarketplaceListingsVarSampFields = { + last_transaction_version?: Maybe; + price?: Maybe; + token_amount?: Maybe; +}; + +/** aggregate variance on columns */ +export type NftMarketplaceV2CurrentNftMarketplaceListingsVarianceFields = { + last_transaction_version?: Maybe; + price?: Maybe; + token_amount?: Maybe; +}; + /** columns and relationships of "nft_marketplace_v2.current_nft_marketplace_token_offers" */ export type NftMarketplaceV2CurrentNftMarketplaceTokenOffers = { buyer: Scalars["String"]["output"]; @@ -6174,6 +6639,7 @@ export enum OrderBy { /** columns and relationships of "processor_status" */ export type ProcessorStatus = { last_success_version: Scalars["bigint"]["output"]; + last_transaction_timestamp?: Maybe; last_updated: Scalars["timestamp"]["output"]; processor: Scalars["String"]["output"]; }; @@ -6184,6 +6650,7 @@ export type ProcessorStatusBoolExp = { _not?: InputMaybe; _or?: InputMaybe>; last_success_version?: InputMaybe; + last_transaction_timestamp?: InputMaybe; last_updated?: InputMaybe; processor?: InputMaybe; }; @@ -6191,6 +6658,7 @@ export type ProcessorStatusBoolExp = { /** Ordering options when selecting data from "processor_status". */ export type ProcessorStatusOrderBy = { last_success_version?: InputMaybe; + last_transaction_timestamp?: InputMaybe; last_updated?: InputMaybe; processor?: InputMaybe; }; @@ -6200,6 +6668,8 @@ export enum ProcessorStatusSelectColumn { /** column name */ LastSuccessVersion = "last_success_version", /** column name */ + LastTransactionTimestamp = "last_transaction_timestamp", + /** column name */ LastUpdated = "last_updated", /** column name */ Processor = "processor", @@ -6216,6 +6686,7 @@ export type ProcessorStatusStreamCursorInput = { /** Initial value of the column from where the streaming should start */ export type ProcessorStatusStreamCursorValueInput = { last_success_version?: InputMaybe; + last_transaction_timestamp?: InputMaybe; last_updated?: InputMaybe; processor?: InputMaybe; }; @@ -6525,6 +6996,12 @@ export type QueryRoot = { delegated_staking_activities: Array; /** fetch data from the table: "delegated_staking_activities" using primary key columns */ delegated_staking_activities_by_pk?: Maybe; + /** fetch data from the table: "delegated_staking_pool_balances" */ + delegated_staking_pool_balances: Array; + /** fetch aggregated fields from the table: "delegated_staking_pool_balances" */ + delegated_staking_pool_balances_aggregate: DelegatedStakingPoolBalancesAggregate; + /** fetch data from the table: "delegated_staking_pool_balances" using primary key columns */ + delegated_staking_pool_balances_by_pk?: Maybe; /** fetch data from the table: "delegated_staking_pools" */ delegated_staking_pools: Array; /** fetch data from the table: "delegated_staking_pools" using primary key columns */ @@ -6567,6 +7044,8 @@ export type QueryRoot = { nft_marketplace_v2_current_nft_marketplace_collection_offers_by_pk?: Maybe; /** fetch data from the table: "nft_marketplace_v2.current_nft_marketplace_listings" */ nft_marketplace_v2_current_nft_marketplace_listings: Array; + /** fetch aggregated fields from the table: "nft_marketplace_v2.current_nft_marketplace_listings" */ + nft_marketplace_v2_current_nft_marketplace_listings_aggregate: NftMarketplaceV2CurrentNftMarketplaceListingsAggregate; /** fetch data from the table: "nft_marketplace_v2.current_nft_marketplace_listings" using primary key columns */ nft_marketplace_v2_current_nft_marketplace_listings_by_pk?: Maybe; /** fetch data from the table: "nft_marketplace_v2.current_nft_marketplace_token_offers" */ @@ -7069,6 +7548,27 @@ export type QueryRootDelegatedStakingActivitiesByPkArgs = { transaction_version: Scalars["bigint"]["input"]; }; +export type QueryRootDelegatedStakingPoolBalancesArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + +export type QueryRootDelegatedStakingPoolBalancesAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + +export type QueryRootDelegatedStakingPoolBalancesByPkArgs = { + staking_pool_address: Scalars["String"]["input"]; + transaction_version: Scalars["bigint"]["input"]; +}; + export type QueryRootDelegatedStakingPoolsArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -7209,6 +7709,14 @@ export type QueryRootNftMarketplaceV2CurrentNftMarketplaceListingsArgs = { where?: InputMaybe; }; +export type QueryRootNftMarketplaceV2CurrentNftMarketplaceListingsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + export type QueryRootNftMarketplaceV2CurrentNftMarketplaceListingsByPkArgs = { listing_id: Scalars["String"]["input"]; token_data_id: Scalars["String"]["input"]; @@ -7424,29 +7932,29 @@ export type SubscriptionRoot = { account_transactions_aggregate: AccountTransactionsAggregate; /** fetch data from the table: "account_transactions" using primary key columns */ account_transactions_by_pk?: Maybe; - /** fetch data from the table in a streaming manner : "account_transactions" */ + /** fetch data from the table in a streaming manner: "account_transactions" */ account_transactions_stream: Array; /** fetch data from the table: "address_events_summary" */ address_events_summary: Array; - /** fetch data from the table in a streaming manner : "address_events_summary" */ + /** fetch data from the table in a streaming manner: "address_events_summary" */ address_events_summary_stream: Array; /** fetch data from the table: "address_version_from_events" */ address_version_from_events: Array; /** fetch aggregated fields from the table: "address_version_from_events" */ address_version_from_events_aggregate: AddressVersionFromEventsAggregate; - /** fetch data from the table in a streaming manner : "address_version_from_events" */ + /** fetch data from the table in a streaming manner: "address_version_from_events" */ address_version_from_events_stream: Array; /** fetch data from the table: "address_version_from_move_resources" */ address_version_from_move_resources: Array; /** fetch aggregated fields from the table: "address_version_from_move_resources" */ address_version_from_move_resources_aggregate: AddressVersionFromMoveResourcesAggregate; - /** fetch data from the table in a streaming manner : "address_version_from_move_resources" */ + /** fetch data from the table in a streaming manner: "address_version_from_move_resources" */ address_version_from_move_resources_stream: Array; /** fetch data from the table: "block_metadata_transactions" */ block_metadata_transactions: Array; /** fetch data from the table: "block_metadata_transactions" using primary key columns */ block_metadata_transactions_by_pk?: Maybe; - /** fetch data from the table in a streaming manner : "block_metadata_transactions" */ + /** fetch data from the table in a streaming manner: "block_metadata_transactions" */ block_metadata_transactions_stream: Array; /** An array relationship */ coin_activities: Array; @@ -7454,91 +7962,91 @@ export type SubscriptionRoot = { coin_activities_aggregate: CoinActivitiesAggregate; /** fetch data from the table: "coin_activities" using primary key columns */ coin_activities_by_pk?: Maybe; - /** fetch data from the table in a streaming manner : "coin_activities" */ + /** fetch data from the table in a streaming manner: "coin_activities" */ coin_activities_stream: Array; /** fetch data from the table: "coin_balances" */ coin_balances: Array; /** fetch data from the table: "coin_balances" using primary key columns */ coin_balances_by_pk?: Maybe; - /** fetch data from the table in a streaming manner : "coin_balances" */ + /** fetch data from the table in a streaming manner: "coin_balances" */ coin_balances_stream: Array; /** fetch data from the table: "coin_infos" */ coin_infos: Array; /** fetch data from the table: "coin_infos" using primary key columns */ coin_infos_by_pk?: Maybe; - /** fetch data from the table in a streaming manner : "coin_infos" */ + /** fetch data from the table in a streaming manner: "coin_infos" */ coin_infos_stream: Array; /** fetch data from the table: "coin_supply" */ coin_supply: Array; /** fetch data from the table: "coin_supply" using primary key columns */ coin_supply_by_pk?: Maybe; - /** fetch data from the table in a streaming manner : "coin_supply" */ + /** fetch data from the table in a streaming manner: "coin_supply" */ coin_supply_stream: Array; /** fetch data from the table: "collection_datas" */ collection_datas: Array; /** fetch data from the table: "collection_datas" using primary key columns */ collection_datas_by_pk?: Maybe; - /** fetch data from the table in a streaming manner : "collection_datas" */ + /** fetch data from the table in a streaming manner: "collection_datas" */ collection_datas_stream: Array; /** fetch data from the table: "current_ans_lookup" */ current_ans_lookup: Array; /** fetch data from the table: "current_ans_lookup" using primary key columns */ current_ans_lookup_by_pk?: Maybe; - /** fetch data from the table in a streaming manner : "current_ans_lookup" */ + /** fetch data from the table in a streaming manner: "current_ans_lookup" */ current_ans_lookup_stream: Array; /** fetch data from the table: "current_ans_lookup_v2" */ current_ans_lookup_v2: Array; /** fetch data from the table: "current_ans_lookup_v2" using primary key columns */ current_ans_lookup_v2_by_pk?: Maybe; - /** fetch data from the table in a streaming manner : "current_ans_lookup_v2" */ + /** fetch data from the table in a streaming manner: "current_ans_lookup_v2" */ current_ans_lookup_v2_stream: Array; /** fetch data from the table: "current_aptos_names" */ current_aptos_names: Array; /** fetch aggregated fields from the table: "current_aptos_names" */ current_aptos_names_aggregate: CurrentAptosNamesAggregate; - /** fetch data from the table in a streaming manner : "current_aptos_names" */ + /** fetch data from the table in a streaming manner: "current_aptos_names" */ current_aptos_names_stream: Array; /** fetch data from the table: "current_coin_balances" */ current_coin_balances: Array; /** fetch data from the table: "current_coin_balances" using primary key columns */ current_coin_balances_by_pk?: Maybe; - /** fetch data from the table in a streaming manner : "current_coin_balances" */ + /** fetch data from the table in a streaming manner: "current_coin_balances" */ current_coin_balances_stream: Array; /** fetch data from the table: "current_collection_datas" */ current_collection_datas: Array; /** fetch data from the table: "current_collection_datas" using primary key columns */ current_collection_datas_by_pk?: Maybe; - /** fetch data from the table in a streaming manner : "current_collection_datas" */ + /** fetch data from the table in a streaming manner: "current_collection_datas" */ current_collection_datas_stream: Array; /** fetch data from the table: "current_collection_ownership_v2_view" */ current_collection_ownership_v2_view: Array; /** fetch aggregated fields from the table: "current_collection_ownership_v2_view" */ current_collection_ownership_v2_view_aggregate: CurrentCollectionOwnershipV2ViewAggregate; - /** fetch data from the table in a streaming manner : "current_collection_ownership_v2_view" */ + /** fetch data from the table in a streaming manner: "current_collection_ownership_v2_view" */ current_collection_ownership_v2_view_stream: Array; /** fetch data from the table: "current_collections_v2" */ current_collections_v2: Array; /** fetch data from the table: "current_collections_v2" using primary key columns */ current_collections_v2_by_pk?: Maybe; - /** fetch data from the table in a streaming manner : "current_collections_v2" */ + /** fetch data from the table in a streaming manner: "current_collections_v2" */ current_collections_v2_stream: Array; /** fetch data from the table: "current_delegated_staking_pool_balances" */ current_delegated_staking_pool_balances: Array; /** fetch data from the table: "current_delegated_staking_pool_balances" using primary key columns */ current_delegated_staking_pool_balances_by_pk?: Maybe; - /** fetch data from the table in a streaming manner : "current_delegated_staking_pool_balances" */ + /** fetch data from the table in a streaming manner: "current_delegated_staking_pool_balances" */ current_delegated_staking_pool_balances_stream: Array; /** fetch data from the table: "current_delegated_voter" */ current_delegated_voter: Array; /** fetch data from the table: "current_delegated_voter" using primary key columns */ current_delegated_voter_by_pk?: Maybe; - /** fetch data from the table in a streaming manner : "current_delegated_voter" */ + /** fetch data from the table in a streaming manner: "current_delegated_voter" */ current_delegated_voter_stream: Array; /** fetch data from the table: "current_delegator_balances" */ current_delegator_balances: Array; /** fetch data from the table: "current_delegator_balances" using primary key columns */ current_delegator_balances_by_pk?: Maybe; - /** fetch data from the table in a streaming manner : "current_delegator_balances" */ + /** fetch data from the table in a streaming manner: "current_delegator_balances" */ current_delegator_balances_stream: Array; /** fetch data from the table: "current_fungible_asset_balances" */ current_fungible_asset_balances: Array; @@ -7546,37 +8054,37 @@ export type SubscriptionRoot = { current_fungible_asset_balances_aggregate: CurrentFungibleAssetBalancesAggregate; /** fetch data from the table: "current_fungible_asset_balances" using primary key columns */ current_fungible_asset_balances_by_pk?: Maybe; - /** fetch data from the table in a streaming manner : "current_fungible_asset_balances" */ + /** fetch data from the table in a streaming manner: "current_fungible_asset_balances" */ current_fungible_asset_balances_stream: Array; /** fetch data from the table: "current_objects" */ current_objects: Array; /** fetch data from the table: "current_objects" using primary key columns */ current_objects_by_pk?: Maybe; - /** fetch data from the table in a streaming manner : "current_objects" */ + /** fetch data from the table in a streaming manner: "current_objects" */ current_objects_stream: Array; /** fetch data from the table: "current_staking_pool_voter" */ current_staking_pool_voter: Array; /** fetch data from the table: "current_staking_pool_voter" using primary key columns */ current_staking_pool_voter_by_pk?: Maybe; - /** fetch data from the table in a streaming manner : "current_staking_pool_voter" */ + /** fetch data from the table in a streaming manner: "current_staking_pool_voter" */ current_staking_pool_voter_stream: Array; /** fetch data from the table: "current_table_items" */ current_table_items: Array; /** fetch data from the table: "current_table_items" using primary key columns */ current_table_items_by_pk?: Maybe; - /** fetch data from the table in a streaming manner : "current_table_items" */ + /** fetch data from the table in a streaming manner: "current_table_items" */ current_table_items_stream: Array; /** fetch data from the table: "current_token_datas" */ current_token_datas: Array; /** fetch data from the table: "current_token_datas" using primary key columns */ current_token_datas_by_pk?: Maybe; - /** fetch data from the table in a streaming manner : "current_token_datas" */ + /** fetch data from the table in a streaming manner: "current_token_datas" */ current_token_datas_stream: Array; /** fetch data from the table: "current_token_datas_v2" */ current_token_datas_v2: Array; /** fetch data from the table: "current_token_datas_v2" using primary key columns */ current_token_datas_v2_by_pk?: Maybe; - /** fetch data from the table in a streaming manner : "current_token_datas_v2" */ + /** fetch data from the table in a streaming manner: "current_token_datas_v2" */ current_token_datas_v2_stream: Array; /** fetch data from the table: "current_token_ownerships" */ current_token_ownerships: Array; @@ -7584,7 +8092,7 @@ export type SubscriptionRoot = { current_token_ownerships_aggregate: CurrentTokenOwnershipsAggregate; /** fetch data from the table: "current_token_ownerships" using primary key columns */ current_token_ownerships_by_pk?: Maybe; - /** fetch data from the table in a streaming manner : "current_token_ownerships" */ + /** fetch data from the table in a streaming manner: "current_token_ownerships" */ current_token_ownerships_stream: Array; /** fetch data from the table: "current_token_ownerships_v2" */ current_token_ownerships_v2: Array; @@ -7592,113 +8100,123 @@ export type SubscriptionRoot = { current_token_ownerships_v2_aggregate: CurrentTokenOwnershipsV2Aggregate; /** fetch data from the table: "current_token_ownerships_v2" using primary key columns */ current_token_ownerships_v2_by_pk?: Maybe; - /** fetch data from the table in a streaming manner : "current_token_ownerships_v2" */ + /** fetch data from the table in a streaming manner: "current_token_ownerships_v2" */ current_token_ownerships_v2_stream: Array; /** fetch data from the table: "current_token_pending_claims" */ current_token_pending_claims: Array; /** fetch data from the table: "current_token_pending_claims" using primary key columns */ current_token_pending_claims_by_pk?: Maybe; - /** fetch data from the table in a streaming manner : "current_token_pending_claims" */ + /** fetch data from the table in a streaming manner: "current_token_pending_claims" */ current_token_pending_claims_stream: Array; /** An array relationship */ delegated_staking_activities: Array; /** fetch data from the table: "delegated_staking_activities" using primary key columns */ delegated_staking_activities_by_pk?: Maybe; - /** fetch data from the table in a streaming manner : "delegated_staking_activities" */ + /** fetch data from the table in a streaming manner: "delegated_staking_activities" */ delegated_staking_activities_stream: Array; + /** fetch data from the table: "delegated_staking_pool_balances" */ + delegated_staking_pool_balances: Array; + /** fetch aggregated fields from the table: "delegated_staking_pool_balances" */ + delegated_staking_pool_balances_aggregate: DelegatedStakingPoolBalancesAggregate; + /** fetch data from the table: "delegated_staking_pool_balances" using primary key columns */ + delegated_staking_pool_balances_by_pk?: Maybe; + /** fetch data from the table in a streaming manner: "delegated_staking_pool_balances" */ + delegated_staking_pool_balances_stream: Array; /** fetch data from the table: "delegated_staking_pools" */ delegated_staking_pools: Array; /** fetch data from the table: "delegated_staking_pools" using primary key columns */ delegated_staking_pools_by_pk?: Maybe; - /** fetch data from the table in a streaming manner : "delegated_staking_pools" */ + /** fetch data from the table in a streaming manner: "delegated_staking_pools" */ delegated_staking_pools_stream: Array; /** fetch data from the table: "delegator_distinct_pool" */ delegator_distinct_pool: Array; /** fetch aggregated fields from the table: "delegator_distinct_pool" */ delegator_distinct_pool_aggregate: DelegatorDistinctPoolAggregate; - /** fetch data from the table in a streaming manner : "delegator_distinct_pool" */ + /** fetch data from the table in a streaming manner: "delegator_distinct_pool" */ delegator_distinct_pool_stream: Array; /** fetch data from the table: "events" */ events: Array; /** fetch data from the table: "events" using primary key columns */ events_by_pk?: Maybe; - /** fetch data from the table in a streaming manner : "events" */ + /** fetch data from the table in a streaming manner: "events" */ events_stream: Array; /** An array relationship */ fungible_asset_activities: Array; /** fetch data from the table: "fungible_asset_activities" using primary key columns */ fungible_asset_activities_by_pk?: Maybe; - /** fetch data from the table in a streaming manner : "fungible_asset_activities" */ + /** fetch data from the table in a streaming manner: "fungible_asset_activities" */ fungible_asset_activities_stream: Array; /** fetch data from the table: "fungible_asset_metadata" */ fungible_asset_metadata: Array; /** fetch data from the table: "fungible_asset_metadata" using primary key columns */ fungible_asset_metadata_by_pk?: Maybe; - /** fetch data from the table in a streaming manner : "fungible_asset_metadata" */ + /** fetch data from the table in a streaming manner: "fungible_asset_metadata" */ fungible_asset_metadata_stream: Array; /** fetch data from the table: "indexer_status" */ indexer_status: Array; /** fetch data from the table: "indexer_status" using primary key columns */ indexer_status_by_pk?: Maybe; - /** fetch data from the table in a streaming manner : "indexer_status" */ + /** fetch data from the table in a streaming manner: "indexer_status" */ indexer_status_stream: Array; /** fetch data from the table: "ledger_infos" */ ledger_infos: Array; /** fetch data from the table: "ledger_infos" using primary key columns */ ledger_infos_by_pk?: Maybe; - /** fetch data from the table in a streaming manner : "ledger_infos" */ + /** fetch data from the table in a streaming manner: "ledger_infos" */ ledger_infos_stream: Array; /** fetch data from the table: "move_resources" */ move_resources: Array; /** fetch aggregated fields from the table: "move_resources" */ move_resources_aggregate: MoveResourcesAggregate; - /** fetch data from the table in a streaming manner : "move_resources" */ + /** fetch data from the table in a streaming manner: "move_resources" */ move_resources_stream: Array; /** fetch data from the table: "nft_marketplace_v2.current_nft_marketplace_auctions" */ nft_marketplace_v2_current_nft_marketplace_auctions: Array; /** fetch data from the table: "nft_marketplace_v2.current_nft_marketplace_auctions" using primary key columns */ nft_marketplace_v2_current_nft_marketplace_auctions_by_pk?: Maybe; - /** fetch data from the table in a streaming manner : "nft_marketplace_v2.current_nft_marketplace_auctions" */ + /** fetch data from the table in a streaming manner: "nft_marketplace_v2.current_nft_marketplace_auctions" */ nft_marketplace_v2_current_nft_marketplace_auctions_stream: Array; /** fetch data from the table: "nft_marketplace_v2.current_nft_marketplace_collection_offers" */ nft_marketplace_v2_current_nft_marketplace_collection_offers: Array; /** fetch data from the table: "nft_marketplace_v2.current_nft_marketplace_collection_offers" using primary key columns */ nft_marketplace_v2_current_nft_marketplace_collection_offers_by_pk?: Maybe; - /** fetch data from the table in a streaming manner : "nft_marketplace_v2.current_nft_marketplace_collection_offers" */ + /** fetch data from the table in a streaming manner: "nft_marketplace_v2.current_nft_marketplace_collection_offers" */ nft_marketplace_v2_current_nft_marketplace_collection_offers_stream: Array; /** fetch data from the table: "nft_marketplace_v2.current_nft_marketplace_listings" */ nft_marketplace_v2_current_nft_marketplace_listings: Array; + /** fetch aggregated fields from the table: "nft_marketplace_v2.current_nft_marketplace_listings" */ + nft_marketplace_v2_current_nft_marketplace_listings_aggregate: NftMarketplaceV2CurrentNftMarketplaceListingsAggregate; /** fetch data from the table: "nft_marketplace_v2.current_nft_marketplace_listings" using primary key columns */ nft_marketplace_v2_current_nft_marketplace_listings_by_pk?: Maybe; - /** fetch data from the table in a streaming manner : "nft_marketplace_v2.current_nft_marketplace_listings" */ + /** fetch data from the table in a streaming manner: "nft_marketplace_v2.current_nft_marketplace_listings" */ nft_marketplace_v2_current_nft_marketplace_listings_stream: Array; /** fetch data from the table: "nft_marketplace_v2.current_nft_marketplace_token_offers" */ nft_marketplace_v2_current_nft_marketplace_token_offers: Array; /** fetch data from the table: "nft_marketplace_v2.current_nft_marketplace_token_offers" using primary key columns */ nft_marketplace_v2_current_nft_marketplace_token_offers_by_pk?: Maybe; - /** fetch data from the table in a streaming manner : "nft_marketplace_v2.current_nft_marketplace_token_offers" */ + /** fetch data from the table in a streaming manner: "nft_marketplace_v2.current_nft_marketplace_token_offers" */ nft_marketplace_v2_current_nft_marketplace_token_offers_stream: Array; /** fetch data from the table: "nft_marketplace_v2.nft_marketplace_activities" */ nft_marketplace_v2_nft_marketplace_activities: Array; /** fetch data from the table: "nft_marketplace_v2.nft_marketplace_activities" using primary key columns */ nft_marketplace_v2_nft_marketplace_activities_by_pk?: Maybe; - /** fetch data from the table in a streaming manner : "nft_marketplace_v2.nft_marketplace_activities" */ + /** fetch data from the table in a streaming manner: "nft_marketplace_v2.nft_marketplace_activities" */ nft_marketplace_v2_nft_marketplace_activities_stream: Array; /** fetch data from the table: "nft_metadata_crawler.parsed_asset_uris" */ nft_metadata_crawler_parsed_asset_uris: Array; /** fetch data from the table: "nft_metadata_crawler.parsed_asset_uris" using primary key columns */ nft_metadata_crawler_parsed_asset_uris_by_pk?: Maybe; - /** fetch data from the table in a streaming manner : "nft_metadata_crawler.parsed_asset_uris" */ + /** fetch data from the table in a streaming manner: "nft_metadata_crawler.parsed_asset_uris" */ nft_metadata_crawler_parsed_asset_uris_stream: Array; /** fetch data from the table: "num_active_delegator_per_pool" */ num_active_delegator_per_pool: Array; - /** fetch data from the table in a streaming manner : "num_active_delegator_per_pool" */ + /** fetch data from the table in a streaming manner: "num_active_delegator_per_pool" */ num_active_delegator_per_pool_stream: Array; /** fetch data from the table: "processor_status" */ processor_status: Array; /** fetch data from the table: "processor_status" using primary key columns */ processor_status_by_pk?: Maybe; - /** fetch data from the table in a streaming manner : "processor_status" */ + /** fetch data from the table in a streaming manner: "processor_status" */ processor_status_stream: Array; /** fetch data from the table: "proposal_votes" */ proposal_votes: Array; @@ -7706,19 +8224,19 @@ export type SubscriptionRoot = { proposal_votes_aggregate: ProposalVotesAggregate; /** fetch data from the table: "proposal_votes" using primary key columns */ proposal_votes_by_pk?: Maybe; - /** fetch data from the table in a streaming manner : "proposal_votes" */ + /** fetch data from the table in a streaming manner: "proposal_votes" */ proposal_votes_stream: Array; /** fetch data from the table: "table_items" */ table_items: Array; /** fetch data from the table: "table_items" using primary key columns */ table_items_by_pk?: Maybe; - /** fetch data from the table in a streaming manner : "table_items" */ + /** fetch data from the table in a streaming manner: "table_items" */ table_items_stream: Array; /** fetch data from the table: "table_metadatas" */ table_metadatas: Array; /** fetch data from the table: "table_metadatas" using primary key columns */ table_metadatas_by_pk?: Maybe; - /** fetch data from the table in a streaming manner : "table_metadatas" */ + /** fetch data from the table in a streaming manner: "table_metadatas" */ table_metadatas_stream: Array; /** An array relationship */ token_activities: Array; @@ -7726,7 +8244,7 @@ export type SubscriptionRoot = { token_activities_aggregate: TokenActivitiesAggregate; /** fetch data from the table: "token_activities" using primary key columns */ token_activities_by_pk?: Maybe; - /** fetch data from the table in a streaming manner : "token_activities" */ + /** fetch data from the table in a streaming manner: "token_activities" */ token_activities_stream: Array; /** An array relationship */ token_activities_v2: Array; @@ -7734,31 +8252,31 @@ export type SubscriptionRoot = { token_activities_v2_aggregate: TokenActivitiesV2Aggregate; /** fetch data from the table: "token_activities_v2" using primary key columns */ token_activities_v2_by_pk?: Maybe; - /** fetch data from the table in a streaming manner : "token_activities_v2" */ + /** fetch data from the table in a streaming manner: "token_activities_v2" */ token_activities_v2_stream: Array; /** fetch data from the table: "token_datas" */ token_datas: Array; /** fetch data from the table: "token_datas" using primary key columns */ token_datas_by_pk?: Maybe; - /** fetch data from the table in a streaming manner : "token_datas" */ + /** fetch data from the table in a streaming manner: "token_datas" */ token_datas_stream: Array; /** fetch data from the table: "token_ownerships" */ token_ownerships: Array; /** fetch data from the table: "token_ownerships" using primary key columns */ token_ownerships_by_pk?: Maybe; - /** fetch data from the table in a streaming manner : "token_ownerships" */ + /** fetch data from the table in a streaming manner: "token_ownerships" */ token_ownerships_stream: Array; /** fetch data from the table: "tokens" */ tokens: Array; /** fetch data from the table: "tokens" using primary key columns */ tokens_by_pk?: Maybe; - /** fetch data from the table in a streaming manner : "tokens" */ + /** fetch data from the table in a streaming manner: "tokens" */ tokens_stream: Array; /** fetch data from the table: "user_transactions" */ user_transactions: Array; /** fetch data from the table: "user_transactions" using primary key columns */ user_transactions_by_pk?: Maybe; - /** fetch data from the table in a streaming manner : "user_transactions" */ + /** fetch data from the table in a streaming manner: "user_transactions" */ user_transactions_stream: Array; }; @@ -8380,6 +8898,33 @@ export type SubscriptionRootDelegatedStakingActivitiesStreamArgs = { where?: InputMaybe; }; +export type SubscriptionRootDelegatedStakingPoolBalancesArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + +export type SubscriptionRootDelegatedStakingPoolBalancesAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + +export type SubscriptionRootDelegatedStakingPoolBalancesByPkArgs = { + staking_pool_address: Scalars["String"]["input"]; + transaction_version: Scalars["bigint"]["input"]; +}; + +export type SubscriptionRootDelegatedStakingPoolBalancesStreamArgs = { + batch_size: Scalars["Int"]["input"]; + cursor: Array>; + where?: InputMaybe; +}; + export type SubscriptionRootDelegatedStakingPoolsArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -8580,6 +9125,14 @@ export type SubscriptionRootNftMarketplaceV2CurrentNftMarketplaceListingsArgs = where?: InputMaybe; }; +export type SubscriptionRootNftMarketplaceV2CurrentNftMarketplaceListingsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + export type SubscriptionRootNftMarketplaceV2CurrentNftMarketplaceListingsByPkArgs = { listing_id: Scalars["String"]["input"]; token_data_id: Scalars["String"]["input"]; @@ -9104,6 +9657,17 @@ export type TokenActivitiesAggregate = { nodes: Array; }; +export type TokenActivitiesAggregateBoolExp = { + count?: InputMaybe; +}; + +export type TokenActivitiesAggregateBoolExpCount = { + arguments?: InputMaybe>; + distinct?: InputMaybe; + filter?: InputMaybe; + predicate: IntComparisonExp; +}; + /** aggregate fields of "token_activities" */ export type TokenActivitiesAggregateFields = { avg?: Maybe; @@ -9168,7 +9732,9 @@ export type TokenActivitiesBoolExp = { _not?: InputMaybe; _or?: InputMaybe>; aptos_names_owner?: InputMaybe; + aptos_names_owner_aggregate?: InputMaybe; aptos_names_to?: InputMaybe; + aptos_names_to_aggregate?: InputMaybe; coin_amount?: InputMaybe; coin_type?: InputMaybe; collection_data_id_hash?: InputMaybe; @@ -9532,6 +10098,33 @@ export type TokenActivitiesV2Aggregate = { nodes: Array; }; +export type TokenActivitiesV2AggregateBoolExp = { + bool_and?: InputMaybe; + bool_or?: InputMaybe; + count?: InputMaybe; +}; + +export type TokenActivitiesV2AggregateBoolExpBoolAnd = { + arguments: TokenActivitiesV2SelectColumnTokenActivitiesV2AggregateBoolExpBoolAndArgumentsColumns; + distinct?: InputMaybe; + filter?: InputMaybe; + predicate: BooleanComparisonExp; +}; + +export type TokenActivitiesV2AggregateBoolExpBoolOr = { + arguments: TokenActivitiesV2SelectColumnTokenActivitiesV2AggregateBoolExpBoolOrArgumentsColumns; + distinct?: InputMaybe; + filter?: InputMaybe; + predicate: BooleanComparisonExp; +}; + +export type TokenActivitiesV2AggregateBoolExpCount = { + arguments?: InputMaybe>; + distinct?: InputMaybe; + filter?: InputMaybe; + predicate: IntComparisonExp; +}; + /** aggregate fields of "token_activities_v2" */ export type TokenActivitiesV2AggregateFields = { avg?: Maybe; @@ -9591,7 +10184,9 @@ export type TokenActivitiesV2BoolExp = { _or?: InputMaybe>; after_value?: InputMaybe; aptos_names_from?: InputMaybe; + aptos_names_from_aggregate?: InputMaybe; aptos_names_to?: InputMaybe; + aptos_names_to_aggregate?: InputMaybe; before_value?: InputMaybe; current_token_data?: InputMaybe; entry_function_id_str?: InputMaybe; @@ -9737,6 +10332,18 @@ export enum TokenActivitiesV2SelectColumn { Type = "type", } +/** select "token_activities_v2_aggregate_bool_exp_bool_and_arguments_columns" columns of table "token_activities_v2" */ +export enum TokenActivitiesV2SelectColumnTokenActivitiesV2AggregateBoolExpBoolAndArgumentsColumns { + /** column name */ + IsFungibleV2 = "is_fungible_v2", +} + +/** select "token_activities_v2_aggregate_bool_exp_bool_or_arguments_columns" columns of table "token_activities_v2" */ +export enum TokenActivitiesV2SelectColumnTokenActivitiesV2AggregateBoolExpBoolOrArgumentsColumns { + /** column name */ + IsFungibleV2 = "is_fungible_v2", +} + /** aggregate stddev on columns */ export type TokenActivitiesV2StddevFields = { event_index?: Maybe;