Skip to content
Closed
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
94 changes: 13 additions & 81 deletions src/generated/gql/exchange/graphql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,44 +29,6 @@ export type Scalars = {
Timestamp: { input: any; output: any; }
};

export type Account = {
__typename?: 'Account';
id: Scalars['Bytes']['output'];
trades: Array<Trade>;
};


export type AccountTradesArgs = {
first?: InputMaybe<Scalars['Int']['input']>;
orderBy?: InputMaybe<TradeOrderBy>;
orderDirection?: InputMaybe<OrderDirection>;
skip?: InputMaybe<Scalars['Int']['input']>;
where?: InputMaybe<TradeFilter>;
};

export type AccountFilter = {
/** Filter for the block changed event. */
_change_block?: InputMaybe<BlockChangedFilter>;
and?: InputMaybe<Array<InputMaybe<AccountFilter>>>;
id?: InputMaybe<Scalars['Bytes']['input']>;
id_contains?: InputMaybe<Scalars['Bytes']['input']>;
id_gt?: InputMaybe<Scalars['Bytes']['input']>;
id_gte?: InputMaybe<Scalars['Bytes']['input']>;
id_in?: InputMaybe<Array<Scalars['Bytes']['input']>>;
id_lt?: InputMaybe<Scalars['Bytes']['input']>;
id_lte?: InputMaybe<Scalars['Bytes']['input']>;
id_not?: InputMaybe<Scalars['Bytes']['input']>;
id_not_contains?: InputMaybe<Scalars['Bytes']['input']>;
id_not_in?: InputMaybe<Array<Scalars['Bytes']['input']>>;
or?: InputMaybe<Array<InputMaybe<AccountFilter>>>;
trades_?: InputMaybe<TradeFilter>;
};

export enum AccountOrderBy {
id = 'id',
trades = 'trades'
}

export enum AggregationInterval {
day = 'day',
hour = 'hour'
Expand Down Expand Up @@ -1284,6 +1246,7 @@ export type ConvertCandidateFilter = {

export enum ConvertCandidateOrderBy {
addLiquidityTrade = 'addLiquidityTrade',
addLiquidityTrade__account = 'addLiquidityTrade__account',
addLiquidityTrade__blockNumber = 'addLiquidityTrade__blockNumber',
addLiquidityTrade__hash = 'addLiquidityTrade__hash',
addLiquidityTrade__id = 'addLiquidityTrade__id',
Expand All @@ -1298,6 +1261,7 @@ export enum ConvertCandidateOrderBy {
addLiquidityTrade__transferVolumeUSD = 'addLiquidityTrade__transferVolumeUSD',
id = 'id',
removeLiquidityTrade = 'removeLiquidityTrade',
removeLiquidityTrade__account = 'removeLiquidityTrade__account',
removeLiquidityTrade__blockNumber = 'removeLiquidityTrade__blockNumber',
removeLiquidityTrade__hash = 'removeLiquidityTrade__hash',
removeLiquidityTrade__id = 'removeLiquidityTrade__id',
Expand Down Expand Up @@ -1402,8 +1366,6 @@ export type Query = {
__typename?: 'Query';
/** Access to subgraph metadata */
_meta?: Maybe<Meta>;
account?: Maybe<Account>;
accounts: Array<Account>;
aquifer?: Maybe<Aquifer>;
aquifers: Array<Aquifer>;
beanstalk?: Maybe<Beanstalk>;
Expand Down Expand Up @@ -1444,24 +1406,6 @@ export type QueryMetaArgs = {
};


export type QueryAccountArgs = {
block?: InputMaybe<BlockHeight>;
id: Scalars['ID']['input'];
subgraphError?: SubgraphErrorPolicy;
};


export type QueryAccountsArgs = {
block?: InputMaybe<BlockHeight>;
first?: InputMaybe<Scalars['Int']['input']>;
orderBy?: InputMaybe<AccountOrderBy>;
orderDirection?: InputMaybe<OrderDirection>;
skip?: InputMaybe<Scalars['Int']['input']>;
subgraphError?: SubgraphErrorPolicy;
where?: InputMaybe<AccountFilter>;
};


export type QueryAquiferArgs = {
block?: InputMaybe<BlockHeight>;
id: Scalars['ID']['input'];
Expand Down Expand Up @@ -1953,7 +1897,7 @@ export enum TokenOrderBy {
export type Trade = {
__typename?: 'Trade';
/** Account that sent this transaction */
account: Account;
account: Scalars['Bytes']['output'];
/** Well.reserves after this event */
afterReserves: Array<Scalars['BigInt']['output']>;
/** Well.tokenRates before this event */
Expand Down Expand Up @@ -2015,27 +1959,16 @@ export enum TradeType {
export type TradeFilter = {
/** Filter for the block changed event. */
_change_block?: InputMaybe<BlockChangedFilter>;
account?: InputMaybe<Scalars['String']['input']>;
account_?: InputMaybe<AccountFilter>;
account_contains?: InputMaybe<Scalars['String']['input']>;
account_contains_nocase?: InputMaybe<Scalars['String']['input']>;
account_ends_with?: InputMaybe<Scalars['String']['input']>;
account_ends_with_nocase?: InputMaybe<Scalars['String']['input']>;
account_gt?: InputMaybe<Scalars['String']['input']>;
account_gte?: InputMaybe<Scalars['String']['input']>;
account_in?: InputMaybe<Array<Scalars['String']['input']>>;
account_lt?: InputMaybe<Scalars['String']['input']>;
account_lte?: InputMaybe<Scalars['String']['input']>;
account_not?: InputMaybe<Scalars['String']['input']>;
account_not_contains?: InputMaybe<Scalars['String']['input']>;
account_not_contains_nocase?: InputMaybe<Scalars['String']['input']>;
account_not_ends_with?: InputMaybe<Scalars['String']['input']>;
account_not_ends_with_nocase?: InputMaybe<Scalars['String']['input']>;
account_not_in?: InputMaybe<Array<Scalars['String']['input']>>;
account_not_starts_with?: InputMaybe<Scalars['String']['input']>;
account_not_starts_with_nocase?: InputMaybe<Scalars['String']['input']>;
account_starts_with?: InputMaybe<Scalars['String']['input']>;
account_starts_with_nocase?: InputMaybe<Scalars['String']['input']>;
account?: InputMaybe<Scalars['Bytes']['input']>;
account_contains?: InputMaybe<Scalars['Bytes']['input']>;
account_gt?: InputMaybe<Scalars['Bytes']['input']>;
account_gte?: InputMaybe<Scalars['Bytes']['input']>;
account_in?: InputMaybe<Array<Scalars['Bytes']['input']>>;
account_lt?: InputMaybe<Scalars['Bytes']['input']>;
account_lte?: InputMaybe<Scalars['Bytes']['input']>;
account_not?: InputMaybe<Scalars['Bytes']['input']>;
account_not_contains?: InputMaybe<Scalars['Bytes']['input']>;
account_not_in?: InputMaybe<Array<Scalars['Bytes']['input']>>;
afterReserves?: InputMaybe<Array<Scalars['BigInt']['input']>>;
afterReserves_contains?: InputMaybe<Array<Scalars['BigInt']['input']>>;
afterReserves_contains_nocase?: InputMaybe<Array<Scalars['BigInt']['input']>>;
Expand Down Expand Up @@ -2255,7 +2188,6 @@ export type TradeFilter = {

export enum TradeOrderBy {
account = 'account',
account__id = 'account__id',
afterReserves = 'afterReserves',
afterTokenRates = 'afterTokenRates',
beforeReserves = 'beforeReserves',
Expand Down
6 changes: 3 additions & 3 deletions src/generated/gql/pintostalk/gql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type Documents = {
"query BeanstalkSeasonsTable($from: Int, $to: Int) {\n seasons(\n first: 1000\n orderBy: season\n orderDirection: desc\n where: {season_gte: $from, season_lte: $to}\n ) {\n id\n sunriseBlock\n rewardBeans\n price\n deltaBeans\n raining\n season\n }\n fieldHourlySnapshots(\n first: 1000\n orderBy: season\n orderDirection: desc\n where: {field: \"0xd1a0d188e861ed9d15773a2f3574a2e94134ba8f\", season_gte: $from, season_lte: $to}\n ) {\n id\n caseId\n issuedSoil\n deltaSownBeans\n sownBeans\n deltaPodDemand\n blocksToSoldOutSoil\n podRate\n temperature\n deltaTemperature\n season\n }\n siloHourlySnapshots(\n first: 1000\n orderBy: season\n orderDirection: desc\n where: {silo: \"0xd1a0d188e861ed9d15773a2f3574a2e94134ba8f\", season_gte: $from, season_lte: $to}\n ) {\n id\n beanToMaxLpGpPerBdvRatio\n deltaBeanToMaxLpGpPerBdvRatio\n season\n }\n}": typeof types.BeanstalkSeasonsTableDocument,
"query SiloSnapshots($first: Int!, $id: Bytes!) {\n siloHourlySnapshots(\n first: $first\n orderBy: season\n orderDirection: desc\n where: {silo_: {id: $id}}\n ) {\n beanToMaxLpGpPerBdvRatio\n deltaBeanMints\n season\n }\n}": typeof types.SiloSnapshotsDocument,
"query SiloYields {\n siloYields(\n orderBy: season\n orderDirection: desc\n where: {emaWindow: ROLLING_30_DAY}\n first: 1\n ) {\n beansPerSeasonEMA\n beta\n createdAt\n season\n id\n u\n whitelistedTokens\n emaWindow\n tokenAPYS {\n beanAPY\n stalkAPY\n season\n createdAt\n token\n }\n }\n}": typeof types.SiloYieldsDocument,
"query AllMarketActivity($first: Int = 1000, $listings_createdAt_gt: BigInt, $orders_createdAt_gt: BigInt, $fill_createdAt_gt: BigInt) {\n podListings(\n first: $first\n where: {createdAt_gt: $listings_createdAt_gt, status_not: FILLED_PARTIAL}\n ) {\n ...PodListing\n }\n podOrders(\n first: $first\n orderBy: createdAt\n orderDirection: desc\n where: {createdAt_gt: $orders_createdAt_gt}\n ) {\n ...PodOrder\n }\n podFills(first: $first, where: {createdAt_gt: $fill_createdAt_gt}) {\n ...PodFill\n }\n}": typeof types.AllMarketActivityDocument,
"query AllMarketActivity($first: Int = 1000, $listings_createdAt_gt: BigInt, $orders_createdAt_gt: BigInt, $fill_createdAt_gt: BigInt, $listings_podMarketplace: String, $orders_podMarketplace: String) {\n podListings(\n first: $first\n where: {createdAt_gt: $listings_createdAt_gt, status_not: FILLED_PARTIAL, podMarketplace: $listings_podMarketplace}\n ) {\n ...PodListing\n }\n podOrders(\n first: $first\n orderBy: createdAt\n orderDirection: desc\n where: {createdAt_gt: $orders_createdAt_gt, podMarketplace: $orders_podMarketplace}\n ) {\n ...PodOrder\n }\n podFills(first: $first, where: {createdAt_gt: $fill_createdAt_gt}) {\n ...PodFill\n }\n}": typeof types.AllMarketActivityDocument,
"query AllPodListings($first: Int = 1000, $status: MarketStatus = ACTIVE, $maxHarvestableIndex: BigInt!, $skip: Int = 0) {\n podListings(\n first: $first\n skip: $skip\n where: {status: $status, maxHarvestableIndex_gt: $maxHarvestableIndex, remainingAmount_gt: \"100000\"}\n orderBy: index\n orderDirection: asc\n ) {\n ...PodListing\n }\n}": typeof types.AllPodListingsDocument,
"query AllPodOrders($first: Int = 1000, $status: MarketStatus = ACTIVE, $skip: Int = 0) {\n podOrders(\n first: $first\n skip: $skip\n orderBy: createdAt\n orderDirection: desc\n where: {status: $status}\n ) {\n ...PodOrder\n }\n}": typeof types.AllPodOrdersDocument,
"query FarmerMarketActivity($first: Int = 1000, $account: String!, $listings_createdAt_gt: BigInt, $orders_createdAt_gt: BigInt, $fill_createdAt_gt: BigInt) {\n podListings(\n first: $first\n where: {farmer: $account, createdAt_gt: $listings_createdAt_gt, status_not: FILLED_PARTIAL}\n ) {\n ...PodListing\n }\n podOrders(\n first: $first\n orderBy: createdAt\n orderDirection: desc\n where: {farmer: $account, createdAt_gt: $orders_createdAt_gt}\n ) {\n ...PodOrder\n }\n podFills(\n first: $first\n where: {and: [{createdAt_gt: $fill_createdAt_gt}, {or: [{fromFarmer: $account}, {toFarmer: $account}]}]}\n ) {\n ...PodFill\n }\n}": typeof types.FarmerMarketActivityDocument,
Expand Down Expand Up @@ -50,7 +50,7 @@ const documents: Documents = {
"query BeanstalkSeasonsTable($from: Int, $to: Int) {\n seasons(\n first: 1000\n orderBy: season\n orderDirection: desc\n where: {season_gte: $from, season_lte: $to}\n ) {\n id\n sunriseBlock\n rewardBeans\n price\n deltaBeans\n raining\n season\n }\n fieldHourlySnapshots(\n first: 1000\n orderBy: season\n orderDirection: desc\n where: {field: \"0xd1a0d188e861ed9d15773a2f3574a2e94134ba8f\", season_gte: $from, season_lte: $to}\n ) {\n id\n caseId\n issuedSoil\n deltaSownBeans\n sownBeans\n deltaPodDemand\n blocksToSoldOutSoil\n podRate\n temperature\n deltaTemperature\n season\n }\n siloHourlySnapshots(\n first: 1000\n orderBy: season\n orderDirection: desc\n where: {silo: \"0xd1a0d188e861ed9d15773a2f3574a2e94134ba8f\", season_gte: $from, season_lte: $to}\n ) {\n id\n beanToMaxLpGpPerBdvRatio\n deltaBeanToMaxLpGpPerBdvRatio\n season\n }\n}": types.BeanstalkSeasonsTableDocument,
"query SiloSnapshots($first: Int!, $id: Bytes!) {\n siloHourlySnapshots(\n first: $first\n orderBy: season\n orderDirection: desc\n where: {silo_: {id: $id}}\n ) {\n beanToMaxLpGpPerBdvRatio\n deltaBeanMints\n season\n }\n}": types.SiloSnapshotsDocument,
"query SiloYields {\n siloYields(\n orderBy: season\n orderDirection: desc\n where: {emaWindow: ROLLING_30_DAY}\n first: 1\n ) {\n beansPerSeasonEMA\n beta\n createdAt\n season\n id\n u\n whitelistedTokens\n emaWindow\n tokenAPYS {\n beanAPY\n stalkAPY\n season\n createdAt\n token\n }\n }\n}": types.SiloYieldsDocument,
"query AllMarketActivity($first: Int = 1000, $listings_createdAt_gt: BigInt, $orders_createdAt_gt: BigInt, $fill_createdAt_gt: BigInt) {\n podListings(\n first: $first\n where: {createdAt_gt: $listings_createdAt_gt, status_not: FILLED_PARTIAL}\n ) {\n ...PodListing\n }\n podOrders(\n first: $first\n orderBy: createdAt\n orderDirection: desc\n where: {createdAt_gt: $orders_createdAt_gt}\n ) {\n ...PodOrder\n }\n podFills(first: $first, where: {createdAt_gt: $fill_createdAt_gt}) {\n ...PodFill\n }\n}": types.AllMarketActivityDocument,
"query AllMarketActivity($first: Int = 1000, $listings_createdAt_gt: BigInt, $orders_createdAt_gt: BigInt, $fill_createdAt_gt: BigInt, $listings_podMarketplace: String, $orders_podMarketplace: String) {\n podListings(\n first: $first\n where: {createdAt_gt: $listings_createdAt_gt, status_not: FILLED_PARTIAL, podMarketplace: $listings_podMarketplace}\n ) {\n ...PodListing\n }\n podOrders(\n first: $first\n orderBy: createdAt\n orderDirection: desc\n where: {createdAt_gt: $orders_createdAt_gt, podMarketplace: $orders_podMarketplace}\n ) {\n ...PodOrder\n }\n podFills(first: $first, where: {createdAt_gt: $fill_createdAt_gt}) {\n ...PodFill\n }\n}": types.AllMarketActivityDocument,
"query AllPodListings($first: Int = 1000, $status: MarketStatus = ACTIVE, $maxHarvestableIndex: BigInt!, $skip: Int = 0) {\n podListings(\n first: $first\n skip: $skip\n where: {status: $status, maxHarvestableIndex_gt: $maxHarvestableIndex, remainingAmount_gt: \"100000\"}\n orderBy: index\n orderDirection: asc\n ) {\n ...PodListing\n }\n}": types.AllPodListingsDocument,
"query AllPodOrders($first: Int = 1000, $status: MarketStatus = ACTIVE, $skip: Int = 0) {\n podOrders(\n first: $first\n skip: $skip\n orderBy: createdAt\n orderDirection: desc\n where: {status: $status}\n ) {\n ...PodOrder\n }\n}": types.AllPodOrdersDocument,
"query FarmerMarketActivity($first: Int = 1000, $account: String!, $listings_createdAt_gt: BigInt, $orders_createdAt_gt: BigInt, $fill_createdAt_gt: BigInt) {\n podListings(\n first: $first\n where: {farmer: $account, createdAt_gt: $listings_createdAt_gt, status_not: FILLED_PARTIAL}\n ) {\n ...PodListing\n }\n podOrders(\n first: $first\n orderBy: createdAt\n orderDirection: desc\n where: {farmer: $account, createdAt_gt: $orders_createdAt_gt}\n ) {\n ...PodOrder\n }\n podFills(\n first: $first\n where: {and: [{createdAt_gt: $fill_createdAt_gt}, {or: [{fromFarmer: $account}, {toFarmer: $account}]}]}\n ) {\n ...PodFill\n }\n}": types.FarmerMarketActivityDocument,
Expand Down Expand Up @@ -119,7 +119,7 @@ export function graphql(source: "query SiloYields {\n siloYields(\n orderBy:
/**
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
*/
export function graphql(source: "query AllMarketActivity($first: Int = 1000, $listings_createdAt_gt: BigInt, $orders_createdAt_gt: BigInt, $fill_createdAt_gt: BigInt) {\n podListings(\n first: $first\n where: {createdAt_gt: $listings_createdAt_gt, status_not: FILLED_PARTIAL}\n ) {\n ...PodListing\n }\n podOrders(\n first: $first\n orderBy: createdAt\n orderDirection: desc\n where: {createdAt_gt: $orders_createdAt_gt}\n ) {\n ...PodOrder\n }\n podFills(first: $first, where: {createdAt_gt: $fill_createdAt_gt}) {\n ...PodFill\n }\n}"): (typeof documents)["query AllMarketActivity($first: Int = 1000, $listings_createdAt_gt: BigInt, $orders_createdAt_gt: BigInt, $fill_createdAt_gt: BigInt) {\n podListings(\n first: $first\n where: {createdAt_gt: $listings_createdAt_gt, status_not: FILLED_PARTIAL}\n ) {\n ...PodListing\n }\n podOrders(\n first: $first\n orderBy: createdAt\n orderDirection: desc\n where: {createdAt_gt: $orders_createdAt_gt}\n ) {\n ...PodOrder\n }\n podFills(first: $first, where: {createdAt_gt: $fill_createdAt_gt}) {\n ...PodFill\n }\n}"];
export function graphql(source: "query AllMarketActivity($first: Int = 1000, $listings_createdAt_gt: BigInt, $orders_createdAt_gt: BigInt, $fill_createdAt_gt: BigInt, $listings_podMarketplace: String, $orders_podMarketplace: String) {\n podListings(\n first: $first\n where: {createdAt_gt: $listings_createdAt_gt, status_not: FILLED_PARTIAL, podMarketplace: $listings_podMarketplace}\n ) {\n ...PodListing\n }\n podOrders(\n first: $first\n orderBy: createdAt\n orderDirection: desc\n where: {createdAt_gt: $orders_createdAt_gt, podMarketplace: $orders_podMarketplace}\n ) {\n ...PodOrder\n }\n podFills(first: $first, where: {createdAt_gt: $fill_createdAt_gt}) {\n ...PodFill\n }\n}"): (typeof documents)["query AllMarketActivity($first: Int = 1000, $listings_createdAt_gt: BigInt, $orders_createdAt_gt: BigInt, $fill_createdAt_gt: BigInt, $listings_podMarketplace: String, $orders_podMarketplace: String) {\n podListings(\n first: $first\n where: {createdAt_gt: $listings_createdAt_gt, status_not: FILLED_PARTIAL, podMarketplace: $listings_podMarketplace}\n ) {\n ...PodListing\n }\n podOrders(\n first: $first\n orderBy: createdAt\n orderDirection: desc\n where: {createdAt_gt: $orders_createdAt_gt, podMarketplace: $orders_podMarketplace}\n ) {\n ...PodOrder\n }\n podFills(first: $first, where: {createdAt_gt: $fill_createdAt_gt}) {\n ...PodFill\n }\n}"];
/**
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
*/
Expand Down
Loading