Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions apps/api-gateway/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ type Query {
daoMetricsDayBuckets(where: daoMetricsDayBucketFilter, orderBy: String, orderDirection: String, before: String, after: String, limit: Int): daoMetricsDayBucketPage!
_meta: Meta

"""Get total assets"""
totalAssets(days: queryInput_totalAssets_days = _7d): [query_totalAssets_items]

"""Get historical market data for a specific token"""
historicalTokenData(skip: NonNegativeInt, limit: Float = 365): [query_historicalTokenData_items]

Expand Down Expand Up @@ -1320,6 +1323,19 @@ input tokenPriceFilter {
timestamp_lte: BigInt
}

type query_totalAssets_items {
totalAssets: String!
date: String!
}

enum queryInput_totalAssets_days {
_7d
_30d
_90d
_180d
_365d
}

type query_historicalTokenData_items {
price: String!
timestamp: Float!
Expand Down
21 changes: 21 additions & 0 deletions packages/graphql-client/generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ export type Query = {
/** Get property data for a specific token */
token?: Maybe<Token_200_Response>;
tokens: TokenPage;
/** Get total assets */
totalAssets?: Maybe<Array<Maybe<Query_TotalAssets_Items>>>;
/** Get transactions with their associated transfers and delegations, with optional filtering and sorting */
transactions?: Maybe<Transactions_200_Response>;
/** Get transfers of a given address */
Expand Down Expand Up @@ -397,6 +399,11 @@ export type QueryTokensArgs = {
};


export type QueryTotalAssetsArgs = {
days?: InputMaybe<QueryInput_TotalAssets_Days>;
};


export type QueryTransactionsArgs = {
affectedSupply?: InputMaybe<Scalars['JSON']['input']>;
from?: InputMaybe<Scalars['String']['input']>;
Expand Down Expand Up @@ -1523,6 +1530,14 @@ export enum QueryInput_Token_Currency {
Usd = 'usd'
}

export enum QueryInput_TotalAssets_Days {
'7d' = '_7d',
'30d' = '_30d',
'90d' = '_90d',
'180d' = '_180d',
'365d' = '_365d'
}

export enum QueryInput_Transactions_SortOrder {
Asc = 'asc',
Desc = 'desc'
Expand Down Expand Up @@ -1689,6 +1704,12 @@ export type Query_Proposals_Items_Items = {
values: Array<Maybe<Scalars['String']['output']>>;
};

export type Query_TotalAssets_Items = {
__typename?: 'query_totalAssets_items';
date: Scalars['String']['output'];
totalAssets: Scalars['String']['output'];
};

export type Query_Transactions_Items_Items = {
__typename?: 'query_transactions_items_items';
delegations: Array<Maybe<Query_Transactions_Items_Items_Delegations_Items>>;
Expand Down
21 changes: 21 additions & 0 deletions packages/graphql-client/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ export type Query = {
/** Get property data for a specific token */
token?: Maybe<Token_200_Response>;
tokens: TokenPage;
/** Get total assets */
totalAssets?: Maybe<Array<Maybe<Query_TotalAssets_Items>>>;
/** Get transactions with their associated transfers and delegations, with optional filtering and sorting */
transactions?: Maybe<Transactions_200_Response>;
/** Get transfers of a given address */
Expand Down Expand Up @@ -394,6 +396,11 @@ export type QueryTokensArgs = {
};


export type QueryTotalAssetsArgs = {
days?: InputMaybe<QueryInput_TotalAssets_Days>;
};


export type QueryTransactionsArgs = {
affectedSupply?: InputMaybe<Scalars['JSON']['input']>;
from?: InputMaybe<Scalars['String']['input']>;
Expand Down Expand Up @@ -1520,6 +1527,14 @@ export enum QueryInput_Token_Currency {
Usd = 'usd'
}

export enum QueryInput_TotalAssets_Days {
'7d' = '_7d',
'30d' = '_30d',
'90d' = '_90d',
'180d' = '_180d',
'365d' = '_365d'
}

export enum QueryInput_Transactions_SortOrder {
Asc = 'asc',
Desc = 'desc'
Expand Down Expand Up @@ -1686,6 +1701,12 @@ export type Query_Proposals_Items_Items = {
values: Array<Maybe<Scalars['String']['output']>>;
};

export type Query_TotalAssets_Items = {
__typename?: 'query_totalAssets_items';
date: Scalars['String']['output'];
totalAssets: Scalars['String']['output'];
};

export type Query_Transactions_Items_Items = {
__typename?: 'query_transactions_items_items';
delegations: Array<Maybe<Query_Transactions_Items_Items_Delegations_Items>>;
Expand Down