Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing migration for pool snapshots #1415

Closed
wants to merge 2 commits into from
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
5 changes: 5 additions & 0 deletions .changeset/spicy-chicken-clap.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'backend': patch
---

Add missing migration for pool snapshots
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ export type VaultSchemaHistoricApRsArgs = {
};

export type AllPoolsQueryVariables = Exact<{
chainIds?: Maybe<Array<Scalars['Int']> | Scalars['Int']>;
chainIds?: InputMaybe<Array<Scalars['Int']> | Scalars['Int']>;
}>;

export type AllPoolsQuery = {
Expand All @@ -427,7 +427,7 @@ export type PoolSchemaFragment = {
};

export type AccountsQueryVariables = Exact<{
ids?: Maybe<Array<Scalars['String']> | Scalars['String']>;
ids?: InputMaybe<Array<Scalars['String']> | Scalars['String']>;
}>;

export type AccountsQuery = {
Expand Down Expand Up @@ -515,9 +515,10 @@ export const AccountsDocument = gql`
export type SdkFunctionWrapper = <T>(
action: (requestHeaders?: Record<string, string>) => Promise<T>,
operationName: string,
operationType?: string,
) => Promise<T>;

const defaultWrapper: SdkFunctionWrapper = (action, _operationName) => action();
const defaultWrapper: SdkFunctionWrapper = (action, _operationName, _operationType) => action();

export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = defaultWrapper) {
return {
Expand All @@ -532,6 +533,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper =
...wrappedRequestHeaders,
}),
'allPools',
'query',
);
},
accounts(
Expand All @@ -545,6 +547,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper =
...wrappedRequestHeaders,
}),
'accounts',
'query',
);
},
};
Expand Down
26 changes: 14 additions & 12 deletions modules/sources/subgraphs/balancer-v3-pools/generated/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -514,25 +514,25 @@ export type FactoryFragment = {
id: string;
type: PoolType;
version: number;
pools?: Array<{ __typename?: 'Pool'; id: string; address: string }> | null | undefined;
pools?: Array<{ __typename?: 'Pool'; id: string; address: string }> | null;
};

export type TypePoolFragment = {
__typename?: 'Pool';
id: string;
address: string;
factory: { __typename?: 'Factory'; id: string; type: PoolType; version: number };
stableParams?: { __typename?: 'StableParams'; amp: string } | null | undefined;
weightedParams?: { __typename?: 'WeightedParams'; weights: Array<string> } | null | undefined;
stableParams?: { __typename?: 'StableParams'; amp: string } | null;
weightedParams?: { __typename?: 'WeightedParams'; weights: Array<string> } | null;
};

export type PoolsQueryVariables = Exact<{
skip?: Maybe<Scalars['Int']>;
first?: Maybe<Scalars['Int']>;
orderBy?: Maybe<Pool_OrderBy>;
orderDirection?: Maybe<OrderDirection>;
where?: Maybe<Pool_Filter>;
block?: Maybe<Block_Height>;
skip?: InputMaybe<Scalars['Int']>;
first?: InputMaybe<Scalars['Int']>;
orderBy?: InputMaybe<Pool_OrderBy>;
orderDirection?: InputMaybe<OrderDirection>;
where?: InputMaybe<Pool_Filter>;
block?: InputMaybe<Block_Height>;
}>;

export type PoolsQuery = {
Expand All @@ -542,8 +542,8 @@ export type PoolsQuery = {
id: string;
address: string;
factory: { __typename?: 'Factory'; id: string; type: PoolType; version: number };
stableParams?: { __typename?: 'StableParams'; amp: string } | null | undefined;
weightedParams?: { __typename?: 'WeightedParams'; weights: Array<string> } | null | undefined;
stableParams?: { __typename?: 'StableParams'; amp: string } | null;
weightedParams?: { __typename?: 'WeightedParams'; weights: Array<string> } | null;
}>;
};

Expand Down Expand Up @@ -601,9 +601,10 @@ export const PoolsDocument = gql`
export type SdkFunctionWrapper = <T>(
action: (requestHeaders?: Record<string, string>) => Promise<T>,
operationName: string,
operationType?: string,
) => Promise<T>;

const defaultWrapper: SdkFunctionWrapper = (action, _operationName) => action();
const defaultWrapper: SdkFunctionWrapper = (action, _operationName, _operationType) => action();

export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = defaultWrapper) {
return {
Expand All @@ -615,6 +616,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper =
...wrappedRequestHeaders,
}),
'Pools',
'query',
);
},
};
Expand Down
Loading
Loading