@@ -16838,6 +16838,25 @@ export type GetUserVestingsOfTypeQuery = {
1683816838 }>;
1683916839};
1684016840
16841+ export type GetLastWithdrawOfVestingTypeQueryVariables = Exact<{
16842+ user?: InputMaybe<Scalars['String']>;
16843+ type?: InputMaybe<VestingContractType>;
16844+ }>;
16845+
16846+ export type GetLastWithdrawOfVestingTypeQuery = {
16847+ __typename?: 'Query';
16848+ vestingContracts: Array<{
16849+ __typename?: 'VestingContract';
16850+ id: string;
16851+ stakeHistory?: Array<{
16852+ __typename?: 'VestingHistoryItem';
16853+ id: string;
16854+ amount: string;
16855+ timestamp: number;
16856+ }> | null;
16857+ }>;
16858+ };
16859+
1684116860export type GetVestingHistoryItemsQueryVariables = Exact<{
1684216861 stakers?: InputMaybe<Array<Scalars['String']> | Scalars['String']>;
1684316862 skip: Scalars['Int'];
@@ -19852,6 +19871,78 @@ export type GetUserVestingsOfTypeQueryResult = Apollo.QueryResult<
1985219871 GetUserVestingsOfTypeQuery,
1985319872 GetUserVestingsOfTypeQueryVariables
1985419873>;
19874+ export const GetLastWithdrawOfVestingTypeDocument = gql`
19875+ query getLastWithdrawOfVestingType(
19876+ $user: String
19877+ $type: VestingContractType
19878+ ) {
19879+ vestingContracts(where: { user: $user, type: $type }) {
19880+ id
19881+ stakeHistory(
19882+ where: { action: TokensWithdrawn }
19883+ orderBy: timestamp
19884+ orderDirection: desc
19885+ first: 1
19886+ ) {
19887+ id
19888+ amount
19889+ timestamp
19890+ }
19891+ }
19892+ }
19893+ `;
19894+
19895+ /**
19896+ * __useGetLastWithdrawOfVestingTypeQuery__
19897+ *
19898+ * To run a query within a React component, call `useGetLastWithdrawOfVestingTypeQuery` and pass it any options that fit your needs.
19899+ * When your component renders, `useGetLastWithdrawOfVestingTypeQuery` returns an object from Apollo Client that contains loading, error, and data properties
19900+ * you can use to render your UI.
19901+ *
19902+ * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
19903+ *
19904+ * @example
19905+ * const { data, loading, error } = useGetLastWithdrawOfVestingTypeQuery({
19906+ * variables: {
19907+ * user: // value for 'user'
19908+ * type: // value for 'type'
19909+ * },
19910+ * });
19911+ */
19912+ export function useGetLastWithdrawOfVestingTypeQuery(
19913+ baseOptions?: Apollo.QueryHookOptions<
19914+ GetLastWithdrawOfVestingTypeQuery,
19915+ GetLastWithdrawOfVestingTypeQueryVariables
19916+ >,
19917+ ) {
19918+ const options = { ...defaultOptions, ...baseOptions };
19919+ return Apollo.useQuery<
19920+ GetLastWithdrawOfVestingTypeQuery,
19921+ GetLastWithdrawOfVestingTypeQueryVariables
19922+ >(GetLastWithdrawOfVestingTypeDocument, options);
19923+ }
19924+ export function useGetLastWithdrawOfVestingTypeLazyQuery(
19925+ baseOptions?: Apollo.LazyQueryHookOptions<
19926+ GetLastWithdrawOfVestingTypeQuery,
19927+ GetLastWithdrawOfVestingTypeQueryVariables
19928+ >,
19929+ ) {
19930+ const options = { ...defaultOptions, ...baseOptions };
19931+ return Apollo.useLazyQuery<
19932+ GetLastWithdrawOfVestingTypeQuery,
19933+ GetLastWithdrawOfVestingTypeQueryVariables
19934+ >(GetLastWithdrawOfVestingTypeDocument, options);
19935+ }
19936+ export type GetLastWithdrawOfVestingTypeQueryHookResult = ReturnType<
19937+ typeof useGetLastWithdrawOfVestingTypeQuery
19938+ >;
19939+ export type GetLastWithdrawOfVestingTypeLazyQueryHookResult = ReturnType<
19940+ typeof useGetLastWithdrawOfVestingTypeLazyQuery
19941+ >;
19942+ export type GetLastWithdrawOfVestingTypeQueryResult = Apollo.QueryResult<
19943+ GetLastWithdrawOfVestingTypeQuery,
19944+ GetLastWithdrawOfVestingTypeQueryVariables
19945+ >;
1985519946export const GetVestingHistoryItemsDocument = gql`
1985619947 query getVestingHistoryItems(
1985719948 $stakers: [String!]
0 commit comments