@polygonlabs/staking-api-client 1.5.0 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +101 -0
- package/dist/generated/@tanstack/react-query.gen.d.ts +41 -1
- package/dist/generated/@tanstack/react-query.gen.d.ts.map +1 -1
- package/dist/generated/@tanstack/react-query.gen.js +21 -1
- package/dist/generated/@tanstack/react-query.gen.js.map +1 -1
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/generated/index.js +2 -2
- package/dist/generated/index.js.map +1 -1
- package/dist/generated/registry-validator.gen.d.ts +580 -2
- package/dist/generated/registry-validator.gen.d.ts.map +1 -1
- package/dist/generated/registry-validator.gen.js +374 -2
- package/dist/generated/registry-validator.gen.js.map +1 -1
- package/dist/generated/sdk.gen.d.ts +52 -2
- package/dist/generated/sdk.gen.d.ts.map +1 -1
- package/dist/generated/sdk.gen.js +83 -1
- package/dist/generated/sdk.gen.js.map +1 -1
- package/dist/generated/types.gen.d.ts +289 -0
- package/dist/generated/types.gen.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/react.d.ts +1 -1
- package/dist/react.d.ts.map +1 -1
- package/dist/react.js +1 -1
- package/dist/react.js.map +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { AddValidatorV2Body, AdminCountResponse, AdminEngagementStateResponse, AdminExportResponse, AdminImportBody, AdminImportResponse, AdminSetEngagementStateBody, AdminUpsertValidatorProfileBody, AdminValidatorProfileResponse, CheckpointsSignedCursorQuery, CheckpointsSignedCursorV2Response, CheckpointsSignedCursorV3Response, CheckpointsSignedV3Response, DelegationsByUserV3Response, DelegatorsListV3Response, DelegatorUnbondsV2Response, DelegatorUnbondsV3Response, ErrorResponse, GetAllNotificationsQuery, GetAllValidatorsV2Query, GetAllValidatorsV3Query, GetAllValidatorsV3Response, GetValidatorV3Response, LoginV3Response, NotificationArrayResponse, SummaryV3Response, UpdateValidatorV2Body, V2DelegatorArrayResponse, V2DelegatorObjectResponse, V2MonitorResponse, V2RewardsResponse, V2ValidatorArrayResponse, V2ValidatorObjectResponse, ValidationErrorResponse } from '@polygonlabs/staking-api-schemas';
|
|
1
|
+
import { AddValidatorV2Body, AdminCountResponse, AdminEngagementStateResponse, AdminExportResponse, AdminImportBody, AdminImportResponse, AdminSetEngagementStateBody, AdminUpsertValidatorProfileBody, AdminValidatorProfileResponse, CheckpointsSignedCursorQuery, CheckpointsSignedCursorV2Response, CheckpointsSignedCursorV3Response, CheckpointsSignedV3Response, DelegationsByUserV3Response, DelegatorsCursorQuery, DelegatorsCursorV2Response, DelegatorsCursorV3Response, DelegatorsListV3Response, DelegatorUnbondsV2Response, DelegatorUnbondsV3Response, ErrorResponse, GetAllNotificationsQuery, GetAllValidatorsV2Query, GetAllValidatorsV3Query, GetAllValidatorsV3Response, GetValidatorSetV3Query, GetValidatorSetV3Response, GetValidatorV3Response, LoginV3Response, NotificationArrayResponse, NotificationsCursorQuery, NotificationsCursorResponse, SummaryV3Response, UpdateValidatorV2Body, V2DelegatorArrayResponse, V2DelegatorObjectResponse, V2MonitorResponse, V2RewardsResponse, V2ValidatorArrayResponse, V2ValidatorObjectResponse, ValidationErrorResponse } from '@polygonlabs/staking-api-schemas';
|
|
2
2
|
import { z, type ZodError } from 'zod';
|
|
3
3
|
import { type Options } from './sdk.gen.js';
|
|
4
|
-
import type { AddValidatorV2Data, AdminExportCountData, AdminExportDocumentsData, AdminImportDocumentsData, AdminSetValidatorEngagementStateData, AdminUpsertValidatorProfileData, GetAllDelegatorsV2Data, GetAllDelegatorsV3Data, GetAllNotificationsV2Data, GetAllNotificationsV3Data, GetAllValidatorsV2Data, GetAllValidatorsV3Data, GetCheckpointIntervalV2Data, GetCheckpointsSignedByValidatorV2Data, GetCheckpointsSignedByValidatorV3Data, GetCheckpointsSignedPageV2Data, GetCheckpointsSignedPageV3Data, GetCommissionedRewardV2Data, GetCurrentAprV2Data, GetDelegationsByUserV2Data, GetDelegationsByUserV3Data, GetDelegatorUnbondsV2Data, GetDelegatorUnbondsV3Data, GetMissedCheckpointsByAllValidatorsV2Data, GetPerformanceBenchmarkV2Data, GetRewardsSummaryV2Data, GetSignerAddressListForCheckpointNumberV2Data, GetSignerAddressListForLatestCheckpointV2Data, GetSignerEthBalancesV2Data, GetSummaryV3Data, GetTotalStakedV2Data, GetUserLoginV3Data, GetValidatorByAddressV2Data, GetValidatorDelegatorsV2Data, GetValidatorDelegatorsV3Data, GetValidatorV2Data, GetValidatorV3Data, UpdateValidatorV2Data } from './types.gen.js';
|
|
4
|
+
import type { AddValidatorV2Data, AdminExportCountData, AdminExportDocumentsData, AdminImportDocumentsData, AdminSetValidatorEngagementStateData, AdminUpsertValidatorProfileData, GetAllDelegatorsPageV2Data, GetAllDelegatorsPageV3Data, GetAllDelegatorsV2Data, GetAllDelegatorsV3Data, GetAllNotificationsPageV2Data, GetAllNotificationsPageV3Data, GetAllNotificationsV2Data, GetAllNotificationsV3Data, GetAllValidatorsV2Data, GetAllValidatorsV3Data, GetCheckpointIntervalV2Data, GetCheckpointsSignedByValidatorV2Data, GetCheckpointsSignedByValidatorV3Data, GetCheckpointsSignedPageV2Data, GetCheckpointsSignedPageV3Data, GetCommissionedRewardV2Data, GetCurrentAprV2Data, GetCurrentSpolApyV2Data, GetDelegationsByUserV2Data, GetDelegationsByUserV3Data, GetDelegatorUnbondsV2Data, GetDelegatorUnbondsV3Data, GetMissedCheckpointsByAllValidatorsV2Data, GetPerformanceBenchmarkV2Data, GetRewardsSummaryV2Data, GetSignerAddressListForCheckpointNumberV2Data, GetSignerAddressListForLatestCheckpointV2Data, GetSignerEthBalancesV2Data, GetSummaryV3Data, GetTotalStakedV2Data, GetUserLoginV3Data, GetValidatorByAddressV2Data, GetValidatorDelegatorsPageV2Data, GetValidatorDelegatorsPageV3Data, GetValidatorDelegatorsV2Data, GetValidatorDelegatorsV3Data, GetValidatorSetV3Data, GetValidatorV2Data, GetValidatorV3Data, UpdateValidatorV2Data } from './types.gen.js';
|
|
5
5
|
export type AdminUpsertValidatorProfileResponses = {
|
|
6
6
|
200: z.output<typeof AdminValidatorProfileResponse>;
|
|
7
7
|
};
|
|
@@ -349,6 +349,71 @@ export declare const getAllValidatorsV3Options: (options?: Options<GetAllValidat
|
|
|
349
349
|
[dataTagErrorSymbol]: GetAllValidatorsV3Error;
|
|
350
350
|
};
|
|
351
351
|
};
|
|
352
|
+
export type GetValidatorSetV3Responses = {
|
|
353
|
+
200: z.output<typeof GetValidatorSetV3Response>;
|
|
354
|
+
};
|
|
355
|
+
export type GetValidatorSetV3Response = GetValidatorSetV3Responses[keyof GetValidatorSetV3Responses];
|
|
356
|
+
export type GetValidatorSetV3Errors = {
|
|
357
|
+
400: z.output<typeof ValidationErrorResponse>;
|
|
358
|
+
500: z.output<typeof ErrorResponse>;
|
|
359
|
+
};
|
|
360
|
+
export type GetValidatorSetV3Error = GetValidatorSetV3Errors[keyof GetValidatorSetV3Errors];
|
|
361
|
+
export declare const getValidatorSetV3Transformer: (data: unknown) => Promise<z.output<typeof GetValidatorSetV3Response>>;
|
|
362
|
+
export declare const getValidatorSetV3ErrorTransformer: (data: unknown) => Promise<z.output<typeof ValidationErrorResponse> | z.output<typeof ErrorResponse>>;
|
|
363
|
+
export type GetValidatorSetV3Input = Omit<GetValidatorSetV3Data, 'query'> & {
|
|
364
|
+
query?: z.output<typeof GetValidatorSetV3Query>;
|
|
365
|
+
};
|
|
366
|
+
export declare const getValidatorSetV3InputTransformer: (input: Pick<GetValidatorSetV3Input, "query">) => Promise<{
|
|
367
|
+
query?: {
|
|
368
|
+
status?: "active" | "all" | undefined;
|
|
369
|
+
} | undefined;
|
|
370
|
+
}>;
|
|
371
|
+
export declare const getValidatorSetV3: <ThrowOnError extends boolean = false, TResponseStyle extends "fields" | "data" = "fields">(options?: Options<GetValidatorSetV3Input, ThrowOnError>) => WrapErrors<GetValidatorSetV3Responses, GetValidatorSetV3Errors, ThrowOnError, TResponseStyle>;
|
|
372
|
+
export declare const getValidatorSetV3QueryKey: (options?: Options<GetValidatorSetV3Input>) => [Pick<Options<GetValidatorSetV3Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
373
|
+
_id: string;
|
|
374
|
+
}];
|
|
375
|
+
export declare const getValidatorSetV3Options: (options?: Options<GetValidatorSetV3Input>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
376
|
+
[x: string]: unknown;
|
|
377
|
+
success: boolean;
|
|
378
|
+
result?: {
|
|
379
|
+
[x: string]: unknown;
|
|
380
|
+
}[] | undefined;
|
|
381
|
+
error?: string | undefined;
|
|
382
|
+
}, GetValidatorSetV3Error, {
|
|
383
|
+
[x: string]: unknown;
|
|
384
|
+
success: boolean;
|
|
385
|
+
result?: {
|
|
386
|
+
[x: string]: unknown;
|
|
387
|
+
}[] | undefined;
|
|
388
|
+
error?: string | undefined;
|
|
389
|
+
}, [Pick<Options<GetValidatorSetV3Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
390
|
+
_id: string;
|
|
391
|
+
}]>, "queryFn"> & {
|
|
392
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
393
|
+
[x: string]: unknown;
|
|
394
|
+
success: boolean;
|
|
395
|
+
result?: {
|
|
396
|
+
[x: string]: unknown;
|
|
397
|
+
}[] | undefined;
|
|
398
|
+
error?: string | undefined;
|
|
399
|
+
}, [Pick<Options<GetValidatorSetV3Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
400
|
+
_id: string;
|
|
401
|
+
}], never> | undefined;
|
|
402
|
+
} & {
|
|
403
|
+
queryKey: [Pick<Options<GetValidatorSetV3Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
404
|
+
_id: string;
|
|
405
|
+
}] & {
|
|
406
|
+
[dataTagSymbol]: {
|
|
407
|
+
[x: string]: unknown;
|
|
408
|
+
success: boolean;
|
|
409
|
+
result?: {
|
|
410
|
+
[x: string]: unknown;
|
|
411
|
+
}[] | undefined;
|
|
412
|
+
error?: string | undefined;
|
|
413
|
+
};
|
|
414
|
+
[dataTagErrorSymbol]: GetValidatorSetV3Error;
|
|
415
|
+
};
|
|
416
|
+
};
|
|
352
417
|
export type GetValidatorV3Responses = {
|
|
353
418
|
200: z.output<typeof GetValidatorV3Response>;
|
|
354
419
|
};
|
|
@@ -485,6 +550,88 @@ export type GetAllDelegatorsV3Error = GetAllDelegatorsV3Errors[keyof GetAllDeleg
|
|
|
485
550
|
export declare const getAllDelegatorsV3Transformer: (data: unknown) => Promise<z.output<typeof DelegatorsListV3Response>>;
|
|
486
551
|
export declare const getAllDelegatorsV3ErrorTransformer: (data: unknown) => Promise<z.output<typeof ValidationErrorResponse> | z.output<typeof ErrorResponse>>;
|
|
487
552
|
export declare const getAllDelegatorsV3: <ThrowOnError extends boolean = false, TResponseStyle extends "fields" | "data" = "fields">(options?: Options<GetAllDelegatorsV3Data, ThrowOnError>) => WrapErrors<GetAllDelegatorsV3Responses, GetAllDelegatorsV3Errors, ThrowOnError, TResponseStyle>;
|
|
553
|
+
export type GetAllDelegatorsPageV3Responses = {
|
|
554
|
+
200: z.output<typeof DelegatorsCursorV3Response>;
|
|
555
|
+
};
|
|
556
|
+
export type GetAllDelegatorsPageV3Response = GetAllDelegatorsPageV3Responses[keyof GetAllDelegatorsPageV3Responses];
|
|
557
|
+
export type GetAllDelegatorsPageV3Errors = {
|
|
558
|
+
400: z.output<typeof ValidationErrorResponse>;
|
|
559
|
+
500: z.output<typeof ErrorResponse>;
|
|
560
|
+
};
|
|
561
|
+
export type GetAllDelegatorsPageV3Error = GetAllDelegatorsPageV3Errors[keyof GetAllDelegatorsPageV3Errors];
|
|
562
|
+
export declare const getAllDelegatorsPageV3Transformer: (data: unknown) => Promise<z.output<typeof DelegatorsCursorV3Response>>;
|
|
563
|
+
export declare const getAllDelegatorsPageV3ErrorTransformer: (data: unknown) => Promise<z.output<typeof ValidationErrorResponse> | z.output<typeof ErrorResponse>>;
|
|
564
|
+
export type GetAllDelegatorsPageV3Input = Omit<GetAllDelegatorsPageV3Data, 'query'> & {
|
|
565
|
+
query?: z.output<typeof DelegatorsCursorQuery>;
|
|
566
|
+
};
|
|
567
|
+
export declare const getAllDelegatorsPageV3InputTransformer: (input: Pick<GetAllDelegatorsPageV3Input, "query">) => Promise<{
|
|
568
|
+
query?: {
|
|
569
|
+
cursor?: unknown;
|
|
570
|
+
limit?: unknown;
|
|
571
|
+
} | undefined;
|
|
572
|
+
}>;
|
|
573
|
+
export declare const getAllDelegatorsPageV3: <ThrowOnError extends boolean = false, TResponseStyle extends "fields" | "data" = "fields">(options?: Options<GetAllDelegatorsPageV3Input, ThrowOnError>) => WrapErrors<GetAllDelegatorsPageV3Responses, GetAllDelegatorsPageV3Errors, ThrowOnError, TResponseStyle>;
|
|
574
|
+
export declare const getAllDelegatorsPageV3QueryKey: (options?: Options<GetAllDelegatorsPageV3Input>) => [Pick<Options<GetAllDelegatorsPageV3Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
575
|
+
_id: string;
|
|
576
|
+
}];
|
|
577
|
+
export declare const getAllDelegatorsPageV3Options: (options?: Options<GetAllDelegatorsPageV3Input>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
578
|
+
success: true;
|
|
579
|
+
result: {
|
|
580
|
+
[x: string]: unknown;
|
|
581
|
+
bondedValidator: number;
|
|
582
|
+
address: string;
|
|
583
|
+
}[];
|
|
584
|
+
pagination: {
|
|
585
|
+
limit: 20 | 50 | 100 | 500;
|
|
586
|
+
nextCursor: string | null;
|
|
587
|
+
};
|
|
588
|
+
}, GetAllDelegatorsPageV3Error, {
|
|
589
|
+
success: true;
|
|
590
|
+
result: {
|
|
591
|
+
[x: string]: unknown;
|
|
592
|
+
bondedValidator: number;
|
|
593
|
+
address: string;
|
|
594
|
+
}[];
|
|
595
|
+
pagination: {
|
|
596
|
+
limit: 20 | 50 | 100 | 500;
|
|
597
|
+
nextCursor: string | null;
|
|
598
|
+
};
|
|
599
|
+
}, [Pick<Options<GetAllDelegatorsPageV3Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
600
|
+
_id: string;
|
|
601
|
+
}]>, "queryFn"> & {
|
|
602
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
603
|
+
success: true;
|
|
604
|
+
result: {
|
|
605
|
+
[x: string]: unknown;
|
|
606
|
+
bondedValidator: number;
|
|
607
|
+
address: string;
|
|
608
|
+
}[];
|
|
609
|
+
pagination: {
|
|
610
|
+
limit: 20 | 50 | 100 | 500;
|
|
611
|
+
nextCursor: string | null;
|
|
612
|
+
};
|
|
613
|
+
}, [Pick<Options<GetAllDelegatorsPageV3Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
614
|
+
_id: string;
|
|
615
|
+
}], never> | undefined;
|
|
616
|
+
} & {
|
|
617
|
+
queryKey: [Pick<Options<GetAllDelegatorsPageV3Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
618
|
+
_id: string;
|
|
619
|
+
}] & {
|
|
620
|
+
[dataTagSymbol]: {
|
|
621
|
+
success: true;
|
|
622
|
+
result: {
|
|
623
|
+
[x: string]: unknown;
|
|
624
|
+
bondedValidator: number;
|
|
625
|
+
address: string;
|
|
626
|
+
}[];
|
|
627
|
+
pagination: {
|
|
628
|
+
limit: 20 | 50 | 100 | 500;
|
|
629
|
+
nextCursor: string | null;
|
|
630
|
+
};
|
|
631
|
+
};
|
|
632
|
+
[dataTagErrorSymbol]: GetAllDelegatorsPageV3Error;
|
|
633
|
+
};
|
|
634
|
+
};
|
|
488
635
|
export type GetDelegationsByUserV3Responses = {
|
|
489
636
|
200: z.output<typeof DelegationsByUserV3Response>;
|
|
490
637
|
};
|
|
@@ -521,6 +668,88 @@ export type GetValidatorDelegatorsV3Error = GetValidatorDelegatorsV3Errors[keyof
|
|
|
521
668
|
export declare const getValidatorDelegatorsV3Transformer: (data: unknown) => Promise<z.output<typeof DelegatorsListV3Response>>;
|
|
522
669
|
export declare const getValidatorDelegatorsV3ErrorTransformer: (data: unknown) => Promise<z.output<typeof ValidationErrorResponse> | z.output<typeof ErrorResponse>>;
|
|
523
670
|
export declare const getValidatorDelegatorsV3: <ThrowOnError extends boolean = false, TResponseStyle extends "fields" | "data" = "fields">(options: Options<GetValidatorDelegatorsV3Data, ThrowOnError>) => WrapErrors<GetValidatorDelegatorsV3Responses, GetValidatorDelegatorsV3Errors, ThrowOnError, TResponseStyle>;
|
|
671
|
+
export type GetValidatorDelegatorsPageV3Responses = {
|
|
672
|
+
200: z.output<typeof DelegatorsCursorV3Response>;
|
|
673
|
+
};
|
|
674
|
+
export type GetValidatorDelegatorsPageV3Response = GetValidatorDelegatorsPageV3Responses[keyof GetValidatorDelegatorsPageV3Responses];
|
|
675
|
+
export type GetValidatorDelegatorsPageV3Errors = {
|
|
676
|
+
400: z.output<typeof ValidationErrorResponse>;
|
|
677
|
+
500: z.output<typeof ErrorResponse>;
|
|
678
|
+
};
|
|
679
|
+
export type GetValidatorDelegatorsPageV3Error = GetValidatorDelegatorsPageV3Errors[keyof GetValidatorDelegatorsPageV3Errors];
|
|
680
|
+
export declare const getValidatorDelegatorsPageV3Transformer: (data: unknown) => Promise<z.output<typeof DelegatorsCursorV3Response>>;
|
|
681
|
+
export declare const getValidatorDelegatorsPageV3ErrorTransformer: (data: unknown) => Promise<z.output<typeof ValidationErrorResponse> | z.output<typeof ErrorResponse>>;
|
|
682
|
+
export type GetValidatorDelegatorsPageV3Input = Omit<GetValidatorDelegatorsPageV3Data, 'query'> & {
|
|
683
|
+
query?: z.output<typeof DelegatorsCursorQuery>;
|
|
684
|
+
};
|
|
685
|
+
export declare const getValidatorDelegatorsPageV3InputTransformer: (input: Pick<GetValidatorDelegatorsPageV3Input, "query">) => Promise<{
|
|
686
|
+
query?: {
|
|
687
|
+
cursor?: unknown;
|
|
688
|
+
limit?: unknown;
|
|
689
|
+
} | undefined;
|
|
690
|
+
}>;
|
|
691
|
+
export declare const getValidatorDelegatorsPageV3: <ThrowOnError extends boolean = false, TResponseStyle extends "fields" | "data" = "fields">(options: Options<GetValidatorDelegatorsPageV3Input, ThrowOnError>) => WrapErrors<GetValidatorDelegatorsPageV3Responses, GetValidatorDelegatorsPageV3Errors, ThrowOnError, TResponseStyle>;
|
|
692
|
+
export declare const getValidatorDelegatorsPageV3QueryKey: (options: Options<GetValidatorDelegatorsPageV3Input>) => [Pick<Options<GetValidatorDelegatorsPageV3Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
693
|
+
_id: string;
|
|
694
|
+
}];
|
|
695
|
+
export declare const getValidatorDelegatorsPageV3Options: (options: Options<GetValidatorDelegatorsPageV3Input>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
696
|
+
success: true;
|
|
697
|
+
result: {
|
|
698
|
+
[x: string]: unknown;
|
|
699
|
+
bondedValidator: number;
|
|
700
|
+
address: string;
|
|
701
|
+
}[];
|
|
702
|
+
pagination: {
|
|
703
|
+
limit: 20 | 50 | 100 | 500;
|
|
704
|
+
nextCursor: string | null;
|
|
705
|
+
};
|
|
706
|
+
}, GetValidatorDelegatorsPageV3Error, {
|
|
707
|
+
success: true;
|
|
708
|
+
result: {
|
|
709
|
+
[x: string]: unknown;
|
|
710
|
+
bondedValidator: number;
|
|
711
|
+
address: string;
|
|
712
|
+
}[];
|
|
713
|
+
pagination: {
|
|
714
|
+
limit: 20 | 50 | 100 | 500;
|
|
715
|
+
nextCursor: string | null;
|
|
716
|
+
};
|
|
717
|
+
}, [Pick<Options<GetValidatorDelegatorsPageV3Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
718
|
+
_id: string;
|
|
719
|
+
}]>, "queryFn"> & {
|
|
720
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
721
|
+
success: true;
|
|
722
|
+
result: {
|
|
723
|
+
[x: string]: unknown;
|
|
724
|
+
bondedValidator: number;
|
|
725
|
+
address: string;
|
|
726
|
+
}[];
|
|
727
|
+
pagination: {
|
|
728
|
+
limit: 20 | 50 | 100 | 500;
|
|
729
|
+
nextCursor: string | null;
|
|
730
|
+
};
|
|
731
|
+
}, [Pick<Options<GetValidatorDelegatorsPageV3Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
732
|
+
_id: string;
|
|
733
|
+
}], never> | undefined;
|
|
734
|
+
} & {
|
|
735
|
+
queryKey: [Pick<Options<GetValidatorDelegatorsPageV3Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
736
|
+
_id: string;
|
|
737
|
+
}] & {
|
|
738
|
+
[dataTagSymbol]: {
|
|
739
|
+
success: true;
|
|
740
|
+
result: {
|
|
741
|
+
[x: string]: unknown;
|
|
742
|
+
bondedValidator: number;
|
|
743
|
+
address: string;
|
|
744
|
+
}[];
|
|
745
|
+
pagination: {
|
|
746
|
+
limit: 20 | 50 | 100 | 500;
|
|
747
|
+
nextCursor: string | null;
|
|
748
|
+
};
|
|
749
|
+
};
|
|
750
|
+
[dataTagErrorSymbol]: GetValidatorDelegatorsPageV3Error;
|
|
751
|
+
};
|
|
752
|
+
};
|
|
524
753
|
export type GetSummaryV3Responses = {
|
|
525
754
|
200: z.output<typeof SummaryV3Response>;
|
|
526
755
|
};
|
|
@@ -894,6 +1123,92 @@ export type GetAllDelegatorsV2Error = GetAllDelegatorsV2Errors[keyof GetAllDeleg
|
|
|
894
1123
|
export declare const getAllDelegatorsV2Transformer: (data: unknown) => Promise<z.output<typeof V2DelegatorArrayResponse>>;
|
|
895
1124
|
export declare const getAllDelegatorsV2ErrorTransformer: (data: unknown) => Promise<z.output<typeof ValidationErrorResponse> | z.output<typeof ErrorResponse>>;
|
|
896
1125
|
export declare const getAllDelegatorsV2: <ThrowOnError extends boolean = false, TResponseStyle extends "fields" | "data" = "fields">(options?: Options<GetAllDelegatorsV2Data, ThrowOnError>) => WrapErrors<GetAllDelegatorsV2Responses, GetAllDelegatorsV2Errors, ThrowOnError, TResponseStyle>;
|
|
1126
|
+
export type GetAllDelegatorsPageV2Responses = {
|
|
1127
|
+
200: z.output<typeof DelegatorsCursorV2Response>;
|
|
1128
|
+
};
|
|
1129
|
+
export type GetAllDelegatorsPageV2Response = GetAllDelegatorsPageV2Responses[keyof GetAllDelegatorsPageV2Responses];
|
|
1130
|
+
export type GetAllDelegatorsPageV2Errors = {
|
|
1131
|
+
400: z.output<typeof ValidationErrorResponse>;
|
|
1132
|
+
500: z.output<typeof ErrorResponse>;
|
|
1133
|
+
};
|
|
1134
|
+
export type GetAllDelegatorsPageV2Error = GetAllDelegatorsPageV2Errors[keyof GetAllDelegatorsPageV2Errors];
|
|
1135
|
+
export declare const getAllDelegatorsPageV2Transformer: (data: unknown) => Promise<z.output<typeof DelegatorsCursorV2Response>>;
|
|
1136
|
+
export declare const getAllDelegatorsPageV2ErrorTransformer: (data: unknown) => Promise<z.output<typeof ValidationErrorResponse> | z.output<typeof ErrorResponse>>;
|
|
1137
|
+
export type GetAllDelegatorsPageV2Input = Omit<GetAllDelegatorsPageV2Data, 'query'> & {
|
|
1138
|
+
query?: z.output<typeof DelegatorsCursorQuery>;
|
|
1139
|
+
};
|
|
1140
|
+
export declare const getAllDelegatorsPageV2InputTransformer: (input: Pick<GetAllDelegatorsPageV2Input, "query">) => Promise<{
|
|
1141
|
+
query?: {
|
|
1142
|
+
cursor?: unknown;
|
|
1143
|
+
limit?: unknown;
|
|
1144
|
+
} | undefined;
|
|
1145
|
+
}>;
|
|
1146
|
+
export declare const getAllDelegatorsPageV2: <ThrowOnError extends boolean = false, TResponseStyle extends "fields" | "data" = "fields">(options?: Options<GetAllDelegatorsPageV2Input, ThrowOnError>) => WrapErrors<GetAllDelegatorsPageV2Responses, GetAllDelegatorsPageV2Errors, ThrowOnError, TResponseStyle>;
|
|
1147
|
+
export declare const getAllDelegatorsPageV2QueryKey: (options?: Options<GetAllDelegatorsPageV2Input>) => [Pick<Options<GetAllDelegatorsPageV2Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
1148
|
+
_id: string;
|
|
1149
|
+
}];
|
|
1150
|
+
export declare const getAllDelegatorsPageV2Options: (options?: Options<GetAllDelegatorsPageV2Input>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
1151
|
+
success: true;
|
|
1152
|
+
status: "success";
|
|
1153
|
+
result: {
|
|
1154
|
+
[x: string]: unknown;
|
|
1155
|
+
bondedValidator: number;
|
|
1156
|
+
address: string;
|
|
1157
|
+
}[];
|
|
1158
|
+
pagination: {
|
|
1159
|
+
limit: 20 | 50 | 100 | 500;
|
|
1160
|
+
nextCursor: string | null;
|
|
1161
|
+
};
|
|
1162
|
+
}, GetAllDelegatorsPageV2Error, {
|
|
1163
|
+
success: true;
|
|
1164
|
+
status: "success";
|
|
1165
|
+
result: {
|
|
1166
|
+
[x: string]: unknown;
|
|
1167
|
+
bondedValidator: number;
|
|
1168
|
+
address: string;
|
|
1169
|
+
}[];
|
|
1170
|
+
pagination: {
|
|
1171
|
+
limit: 20 | 50 | 100 | 500;
|
|
1172
|
+
nextCursor: string | null;
|
|
1173
|
+
};
|
|
1174
|
+
}, [Pick<Options<GetAllDelegatorsPageV2Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
1175
|
+
_id: string;
|
|
1176
|
+
}]>, "queryFn"> & {
|
|
1177
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
1178
|
+
success: true;
|
|
1179
|
+
status: "success";
|
|
1180
|
+
result: {
|
|
1181
|
+
[x: string]: unknown;
|
|
1182
|
+
bondedValidator: number;
|
|
1183
|
+
address: string;
|
|
1184
|
+
}[];
|
|
1185
|
+
pagination: {
|
|
1186
|
+
limit: 20 | 50 | 100 | 500;
|
|
1187
|
+
nextCursor: string | null;
|
|
1188
|
+
};
|
|
1189
|
+
}, [Pick<Options<GetAllDelegatorsPageV2Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
1190
|
+
_id: string;
|
|
1191
|
+
}], never> | undefined;
|
|
1192
|
+
} & {
|
|
1193
|
+
queryKey: [Pick<Options<GetAllDelegatorsPageV2Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
1194
|
+
_id: string;
|
|
1195
|
+
}] & {
|
|
1196
|
+
[dataTagSymbol]: {
|
|
1197
|
+
success: true;
|
|
1198
|
+
status: "success";
|
|
1199
|
+
result: {
|
|
1200
|
+
[x: string]: unknown;
|
|
1201
|
+
bondedValidator: number;
|
|
1202
|
+
address: string;
|
|
1203
|
+
}[];
|
|
1204
|
+
pagination: {
|
|
1205
|
+
limit: 20 | 50 | 100 | 500;
|
|
1206
|
+
nextCursor: string | null;
|
|
1207
|
+
};
|
|
1208
|
+
};
|
|
1209
|
+
[dataTagErrorSymbol]: GetAllDelegatorsPageV2Error;
|
|
1210
|
+
};
|
|
1211
|
+
};
|
|
897
1212
|
export type GetDelegationsByUserV2Responses = {
|
|
898
1213
|
200: z.output<typeof V2DelegatorObjectResponse>;
|
|
899
1214
|
};
|
|
@@ -930,6 +1245,92 @@ export type GetValidatorDelegatorsV2Error = GetValidatorDelegatorsV2Errors[keyof
|
|
|
930
1245
|
export declare const getValidatorDelegatorsV2Transformer: (data: unknown) => Promise<z.output<typeof V2DelegatorArrayResponse>>;
|
|
931
1246
|
export declare const getValidatorDelegatorsV2ErrorTransformer: (data: unknown) => Promise<z.output<typeof ValidationErrorResponse> | z.output<typeof ErrorResponse>>;
|
|
932
1247
|
export declare const getValidatorDelegatorsV2: <ThrowOnError extends boolean = false, TResponseStyle extends "fields" | "data" = "fields">(options: Options<GetValidatorDelegatorsV2Data, ThrowOnError>) => WrapErrors<GetValidatorDelegatorsV2Responses, GetValidatorDelegatorsV2Errors, ThrowOnError, TResponseStyle>;
|
|
1248
|
+
export type GetValidatorDelegatorsPageV2Responses = {
|
|
1249
|
+
200: z.output<typeof DelegatorsCursorV2Response>;
|
|
1250
|
+
};
|
|
1251
|
+
export type GetValidatorDelegatorsPageV2Response = GetValidatorDelegatorsPageV2Responses[keyof GetValidatorDelegatorsPageV2Responses];
|
|
1252
|
+
export type GetValidatorDelegatorsPageV2Errors = {
|
|
1253
|
+
400: z.output<typeof ValidationErrorResponse>;
|
|
1254
|
+
500: z.output<typeof ErrorResponse>;
|
|
1255
|
+
};
|
|
1256
|
+
export type GetValidatorDelegatorsPageV2Error = GetValidatorDelegatorsPageV2Errors[keyof GetValidatorDelegatorsPageV2Errors];
|
|
1257
|
+
export declare const getValidatorDelegatorsPageV2Transformer: (data: unknown) => Promise<z.output<typeof DelegatorsCursorV2Response>>;
|
|
1258
|
+
export declare const getValidatorDelegatorsPageV2ErrorTransformer: (data: unknown) => Promise<z.output<typeof ValidationErrorResponse> | z.output<typeof ErrorResponse>>;
|
|
1259
|
+
export type GetValidatorDelegatorsPageV2Input = Omit<GetValidatorDelegatorsPageV2Data, 'query'> & {
|
|
1260
|
+
query?: z.output<typeof DelegatorsCursorQuery>;
|
|
1261
|
+
};
|
|
1262
|
+
export declare const getValidatorDelegatorsPageV2InputTransformer: (input: Pick<GetValidatorDelegatorsPageV2Input, "query">) => Promise<{
|
|
1263
|
+
query?: {
|
|
1264
|
+
cursor?: unknown;
|
|
1265
|
+
limit?: unknown;
|
|
1266
|
+
} | undefined;
|
|
1267
|
+
}>;
|
|
1268
|
+
export declare const getValidatorDelegatorsPageV2: <ThrowOnError extends boolean = false, TResponseStyle extends "fields" | "data" = "fields">(options: Options<GetValidatorDelegatorsPageV2Input, ThrowOnError>) => WrapErrors<GetValidatorDelegatorsPageV2Responses, GetValidatorDelegatorsPageV2Errors, ThrowOnError, TResponseStyle>;
|
|
1269
|
+
export declare const getValidatorDelegatorsPageV2QueryKey: (options: Options<GetValidatorDelegatorsPageV2Input>) => [Pick<Options<GetValidatorDelegatorsPageV2Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
1270
|
+
_id: string;
|
|
1271
|
+
}];
|
|
1272
|
+
export declare const getValidatorDelegatorsPageV2Options: (options: Options<GetValidatorDelegatorsPageV2Input>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
1273
|
+
success: true;
|
|
1274
|
+
status: "success";
|
|
1275
|
+
result: {
|
|
1276
|
+
[x: string]: unknown;
|
|
1277
|
+
bondedValidator: number;
|
|
1278
|
+
address: string;
|
|
1279
|
+
}[];
|
|
1280
|
+
pagination: {
|
|
1281
|
+
limit: 20 | 50 | 100 | 500;
|
|
1282
|
+
nextCursor: string | null;
|
|
1283
|
+
};
|
|
1284
|
+
}, GetValidatorDelegatorsPageV2Error, {
|
|
1285
|
+
success: true;
|
|
1286
|
+
status: "success";
|
|
1287
|
+
result: {
|
|
1288
|
+
[x: string]: unknown;
|
|
1289
|
+
bondedValidator: number;
|
|
1290
|
+
address: string;
|
|
1291
|
+
}[];
|
|
1292
|
+
pagination: {
|
|
1293
|
+
limit: 20 | 50 | 100 | 500;
|
|
1294
|
+
nextCursor: string | null;
|
|
1295
|
+
};
|
|
1296
|
+
}, [Pick<Options<GetValidatorDelegatorsPageV2Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
1297
|
+
_id: string;
|
|
1298
|
+
}]>, "queryFn"> & {
|
|
1299
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
1300
|
+
success: true;
|
|
1301
|
+
status: "success";
|
|
1302
|
+
result: {
|
|
1303
|
+
[x: string]: unknown;
|
|
1304
|
+
bondedValidator: number;
|
|
1305
|
+
address: string;
|
|
1306
|
+
}[];
|
|
1307
|
+
pagination: {
|
|
1308
|
+
limit: 20 | 50 | 100 | 500;
|
|
1309
|
+
nextCursor: string | null;
|
|
1310
|
+
};
|
|
1311
|
+
}, [Pick<Options<GetValidatorDelegatorsPageV2Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
1312
|
+
_id: string;
|
|
1313
|
+
}], never> | undefined;
|
|
1314
|
+
} & {
|
|
1315
|
+
queryKey: [Pick<Options<GetValidatorDelegatorsPageV2Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
1316
|
+
_id: string;
|
|
1317
|
+
}] & {
|
|
1318
|
+
[dataTagSymbol]: {
|
|
1319
|
+
success: true;
|
|
1320
|
+
status: "success";
|
|
1321
|
+
result: {
|
|
1322
|
+
[x: string]: unknown;
|
|
1323
|
+
bondedValidator: number;
|
|
1324
|
+
address: string;
|
|
1325
|
+
}[];
|
|
1326
|
+
pagination: {
|
|
1327
|
+
limit: 20 | 50 | 100 | 500;
|
|
1328
|
+
nextCursor: string | null;
|
|
1329
|
+
};
|
|
1330
|
+
};
|
|
1331
|
+
[dataTagErrorSymbol]: GetValidatorDelegatorsPageV2Error;
|
|
1332
|
+
};
|
|
1333
|
+
};
|
|
933
1334
|
export type GetSignerAddressListForLatestCheckpointV2Responses = {
|
|
934
1335
|
200: z.output<typeof V2MonitorResponse>;
|
|
935
1336
|
};
|
|
@@ -1057,6 +1458,89 @@ export declare const getAllNotificationsV2Options: (options?: Options<GetAllNoti
|
|
|
1057
1458
|
[dataTagErrorSymbol]: GetAllNotificationsV2Error;
|
|
1058
1459
|
};
|
|
1059
1460
|
};
|
|
1461
|
+
export type GetAllNotificationsPageV2Responses = {
|
|
1462
|
+
200: z.output<typeof NotificationsCursorResponse>;
|
|
1463
|
+
};
|
|
1464
|
+
export type GetAllNotificationsPageV2Response = GetAllNotificationsPageV2Responses[keyof GetAllNotificationsPageV2Responses];
|
|
1465
|
+
export type GetAllNotificationsPageV2Errors = {
|
|
1466
|
+
400: z.output<typeof ValidationErrorResponse>;
|
|
1467
|
+
500: z.output<typeof ErrorResponse>;
|
|
1468
|
+
};
|
|
1469
|
+
export type GetAllNotificationsPageV2Error = GetAllNotificationsPageV2Errors[keyof GetAllNotificationsPageV2Errors];
|
|
1470
|
+
export declare const getAllNotificationsPageV2Transformer: (data: unknown) => Promise<z.output<typeof NotificationsCursorResponse>>;
|
|
1471
|
+
export declare const getAllNotificationsPageV2ErrorTransformer: (data: unknown) => Promise<z.output<typeof ValidationErrorResponse> | z.output<typeof ErrorResponse>>;
|
|
1472
|
+
export type GetAllNotificationsPageV2Input = Omit<GetAllNotificationsPageV2Data, 'query'> & {
|
|
1473
|
+
query?: z.output<typeof NotificationsCursorQuery>;
|
|
1474
|
+
};
|
|
1475
|
+
export declare const getAllNotificationsPageV2InputTransformer: (input: Pick<GetAllNotificationsPageV2Input, "query">) => Promise<{
|
|
1476
|
+
query?: {
|
|
1477
|
+
cursor?: unknown;
|
|
1478
|
+
limit?: unknown;
|
|
1479
|
+
filterBy?: string | undefined;
|
|
1480
|
+
} | undefined;
|
|
1481
|
+
}>;
|
|
1482
|
+
export declare const getAllNotificationsPageV2: <ThrowOnError extends boolean = false, TResponseStyle extends "fields" | "data" = "fields">(options?: Options<GetAllNotificationsPageV2Input, ThrowOnError>) => WrapErrors<GetAllNotificationsPageV2Responses, GetAllNotificationsPageV2Errors, ThrowOnError, TResponseStyle>;
|
|
1483
|
+
export declare const getAllNotificationsPageV2QueryKey: (options?: Options<GetAllNotificationsPageV2Input>) => [Pick<Options<GetAllNotificationsPageV2Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
1484
|
+
_id: string;
|
|
1485
|
+
}];
|
|
1486
|
+
export declare const getAllNotificationsPageV2Options: (options?: Options<GetAllNotificationsPageV2Input>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
1487
|
+
success: true;
|
|
1488
|
+
result: {
|
|
1489
|
+
[x: string]: unknown;
|
|
1490
|
+
noticeId: number;
|
|
1491
|
+
}[];
|
|
1492
|
+
pagination: {
|
|
1493
|
+
limit: 20 | 50 | 100 | 500;
|
|
1494
|
+
nextCursor: string | null;
|
|
1495
|
+
total?: number | undefined;
|
|
1496
|
+
};
|
|
1497
|
+
}, GetAllNotificationsPageV2Error, {
|
|
1498
|
+
success: true;
|
|
1499
|
+
result: {
|
|
1500
|
+
[x: string]: unknown;
|
|
1501
|
+
noticeId: number;
|
|
1502
|
+
}[];
|
|
1503
|
+
pagination: {
|
|
1504
|
+
limit: 20 | 50 | 100 | 500;
|
|
1505
|
+
nextCursor: string | null;
|
|
1506
|
+
total?: number | undefined;
|
|
1507
|
+
};
|
|
1508
|
+
}, [Pick<Options<GetAllNotificationsPageV2Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
1509
|
+
_id: string;
|
|
1510
|
+
}]>, "queryFn"> & {
|
|
1511
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
1512
|
+
success: true;
|
|
1513
|
+
result: {
|
|
1514
|
+
[x: string]: unknown;
|
|
1515
|
+
noticeId: number;
|
|
1516
|
+
}[];
|
|
1517
|
+
pagination: {
|
|
1518
|
+
limit: 20 | 50 | 100 | 500;
|
|
1519
|
+
nextCursor: string | null;
|
|
1520
|
+
total?: number | undefined;
|
|
1521
|
+
};
|
|
1522
|
+
}, [Pick<Options<GetAllNotificationsPageV2Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
1523
|
+
_id: string;
|
|
1524
|
+
}], never> | undefined;
|
|
1525
|
+
} & {
|
|
1526
|
+
queryKey: [Pick<Options<GetAllNotificationsPageV2Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
1527
|
+
_id: string;
|
|
1528
|
+
}] & {
|
|
1529
|
+
[dataTagSymbol]: {
|
|
1530
|
+
success: true;
|
|
1531
|
+
result: {
|
|
1532
|
+
[x: string]: unknown;
|
|
1533
|
+
noticeId: number;
|
|
1534
|
+
}[];
|
|
1535
|
+
pagination: {
|
|
1536
|
+
limit: 20 | 50 | 100 | 500;
|
|
1537
|
+
nextCursor: string | null;
|
|
1538
|
+
total?: number | undefined;
|
|
1539
|
+
};
|
|
1540
|
+
};
|
|
1541
|
+
[dataTagErrorSymbol]: GetAllNotificationsPageV2Error;
|
|
1542
|
+
};
|
|
1543
|
+
};
|
|
1060
1544
|
export type GetAllNotificationsV3Responses = {
|
|
1061
1545
|
200: z.output<typeof NotificationArrayResponse>;
|
|
1062
1546
|
};
|
|
@@ -1117,6 +1601,89 @@ export declare const getAllNotificationsV3Options: (options?: Options<GetAllNoti
|
|
|
1117
1601
|
[dataTagErrorSymbol]: GetAllNotificationsV3Error;
|
|
1118
1602
|
};
|
|
1119
1603
|
};
|
|
1604
|
+
export type GetAllNotificationsPageV3Responses = {
|
|
1605
|
+
200: z.output<typeof NotificationsCursorResponse>;
|
|
1606
|
+
};
|
|
1607
|
+
export type GetAllNotificationsPageV3Response = GetAllNotificationsPageV3Responses[keyof GetAllNotificationsPageV3Responses];
|
|
1608
|
+
export type GetAllNotificationsPageV3Errors = {
|
|
1609
|
+
400: z.output<typeof ValidationErrorResponse>;
|
|
1610
|
+
500: z.output<typeof ErrorResponse>;
|
|
1611
|
+
};
|
|
1612
|
+
export type GetAllNotificationsPageV3Error = GetAllNotificationsPageV3Errors[keyof GetAllNotificationsPageV3Errors];
|
|
1613
|
+
export declare const getAllNotificationsPageV3Transformer: (data: unknown) => Promise<z.output<typeof NotificationsCursorResponse>>;
|
|
1614
|
+
export declare const getAllNotificationsPageV3ErrorTransformer: (data: unknown) => Promise<z.output<typeof ValidationErrorResponse> | z.output<typeof ErrorResponse>>;
|
|
1615
|
+
export type GetAllNotificationsPageV3Input = Omit<GetAllNotificationsPageV3Data, 'query'> & {
|
|
1616
|
+
query?: z.output<typeof NotificationsCursorQuery>;
|
|
1617
|
+
};
|
|
1618
|
+
export declare const getAllNotificationsPageV3InputTransformer: (input: Pick<GetAllNotificationsPageV3Input, "query">) => Promise<{
|
|
1619
|
+
query?: {
|
|
1620
|
+
cursor?: unknown;
|
|
1621
|
+
limit?: unknown;
|
|
1622
|
+
filterBy?: string | undefined;
|
|
1623
|
+
} | undefined;
|
|
1624
|
+
}>;
|
|
1625
|
+
export declare const getAllNotificationsPageV3: <ThrowOnError extends boolean = false, TResponseStyle extends "fields" | "data" = "fields">(options?: Options<GetAllNotificationsPageV3Input, ThrowOnError>) => WrapErrors<GetAllNotificationsPageV3Responses, GetAllNotificationsPageV3Errors, ThrowOnError, TResponseStyle>;
|
|
1626
|
+
export declare const getAllNotificationsPageV3QueryKey: (options?: Options<GetAllNotificationsPageV3Input>) => [Pick<Options<GetAllNotificationsPageV3Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
1627
|
+
_id: string;
|
|
1628
|
+
}];
|
|
1629
|
+
export declare const getAllNotificationsPageV3Options: (options?: Options<GetAllNotificationsPageV3Input>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
1630
|
+
success: true;
|
|
1631
|
+
result: {
|
|
1632
|
+
[x: string]: unknown;
|
|
1633
|
+
noticeId: number;
|
|
1634
|
+
}[];
|
|
1635
|
+
pagination: {
|
|
1636
|
+
limit: 20 | 50 | 100 | 500;
|
|
1637
|
+
nextCursor: string | null;
|
|
1638
|
+
total?: number | undefined;
|
|
1639
|
+
};
|
|
1640
|
+
}, GetAllNotificationsPageV3Error, {
|
|
1641
|
+
success: true;
|
|
1642
|
+
result: {
|
|
1643
|
+
[x: string]: unknown;
|
|
1644
|
+
noticeId: number;
|
|
1645
|
+
}[];
|
|
1646
|
+
pagination: {
|
|
1647
|
+
limit: 20 | 50 | 100 | 500;
|
|
1648
|
+
nextCursor: string | null;
|
|
1649
|
+
total?: number | undefined;
|
|
1650
|
+
};
|
|
1651
|
+
}, [Pick<Options<GetAllNotificationsPageV3Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
1652
|
+
_id: string;
|
|
1653
|
+
}]>, "queryFn"> & {
|
|
1654
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
1655
|
+
success: true;
|
|
1656
|
+
result: {
|
|
1657
|
+
[x: string]: unknown;
|
|
1658
|
+
noticeId: number;
|
|
1659
|
+
}[];
|
|
1660
|
+
pagination: {
|
|
1661
|
+
limit: 20 | 50 | 100 | 500;
|
|
1662
|
+
nextCursor: string | null;
|
|
1663
|
+
total?: number | undefined;
|
|
1664
|
+
};
|
|
1665
|
+
}, [Pick<Options<GetAllNotificationsPageV3Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
1666
|
+
_id: string;
|
|
1667
|
+
}], never> | undefined;
|
|
1668
|
+
} & {
|
|
1669
|
+
queryKey: [Pick<Options<GetAllNotificationsPageV3Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
1670
|
+
_id: string;
|
|
1671
|
+
}] & {
|
|
1672
|
+
[dataTagSymbol]: {
|
|
1673
|
+
success: true;
|
|
1674
|
+
result: {
|
|
1675
|
+
[x: string]: unknown;
|
|
1676
|
+
noticeId: number;
|
|
1677
|
+
}[];
|
|
1678
|
+
pagination: {
|
|
1679
|
+
limit: 20 | 50 | 100 | 500;
|
|
1680
|
+
nextCursor: string | null;
|
|
1681
|
+
total?: number | undefined;
|
|
1682
|
+
};
|
|
1683
|
+
};
|
|
1684
|
+
[dataTagErrorSymbol]: GetAllNotificationsPageV3Error;
|
|
1685
|
+
};
|
|
1686
|
+
};
|
|
1120
1687
|
export type GetRewardsSummaryV2Responses = {
|
|
1121
1688
|
200: z.output<typeof V2RewardsResponse>;
|
|
1122
1689
|
};
|
|
@@ -1139,4 +1706,15 @@ export type GetCurrentAprV2Error = GetCurrentAprV2Errors[keyof GetCurrentAprV2Er
|
|
|
1139
1706
|
export declare const getCurrentAprV2Transformer: (data: unknown) => Promise<z.output<typeof V2RewardsResponse>>;
|
|
1140
1707
|
export declare const getCurrentAprV2ErrorTransformer: (data: unknown) => Promise<z.output<typeof ErrorResponse>>;
|
|
1141
1708
|
export declare const getCurrentAprV2: <ThrowOnError extends boolean = false, TResponseStyle extends "fields" | "data" = "fields">(options?: Options<GetCurrentAprV2Data, ThrowOnError>) => WrapErrors<GetCurrentAprV2Responses, GetCurrentAprV2Errors, ThrowOnError, TResponseStyle>;
|
|
1709
|
+
export type GetCurrentSpolApyV2Responses = {
|
|
1710
|
+
200: z.output<typeof V2RewardsResponse>;
|
|
1711
|
+
};
|
|
1712
|
+
export type GetCurrentSpolApyV2Response = GetCurrentSpolApyV2Responses[keyof GetCurrentSpolApyV2Responses];
|
|
1713
|
+
export type GetCurrentSpolApyV2Errors = {
|
|
1714
|
+
500: z.output<typeof ErrorResponse>;
|
|
1715
|
+
};
|
|
1716
|
+
export type GetCurrentSpolApyV2Error = GetCurrentSpolApyV2Errors[keyof GetCurrentSpolApyV2Errors];
|
|
1717
|
+
export declare const getCurrentSpolApyV2Transformer: (data: unknown) => Promise<z.output<typeof V2RewardsResponse>>;
|
|
1718
|
+
export declare const getCurrentSpolApyV2ErrorTransformer: (data: unknown) => Promise<z.output<typeof ErrorResponse>>;
|
|
1719
|
+
export declare const getCurrentSpolApyV2: <ThrowOnError extends boolean = false, TResponseStyle extends "fields" | "data" = "fields">(options?: Options<GetCurrentSpolApyV2Data, ThrowOnError>) => WrapErrors<GetCurrentSpolApyV2Responses, GetCurrentSpolApyV2Errors, ThrowOnError, TResponseStyle>;
|
|
1142
1720
|
//# sourceMappingURL=registry-validator.gen.d.ts.map
|