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
196 changes: 196 additions & 0 deletions src/api/@tanstack/react-query.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,8 @@ import {
intBlockOpcodeGasServiceList,
intBlockProposerCanonicalServiceGet,
intBlockProposerCanonicalServiceList,
intBlockResourceGasServiceGet,
intBlockResourceGasServiceList,
intContractCreationServiceGet,
intContractCreationServiceList,
intContractSelfdestructServiceGet,
Expand Down Expand Up @@ -362,10 +364,14 @@ import {
intStorageSlotStateWithExpiryServiceList,
intTransactionCallFrameOpcodeGasServiceGet,
intTransactionCallFrameOpcodeGasServiceList,
intTransactionCallFrameOpcodeResourceGasServiceGet,
intTransactionCallFrameOpcodeResourceGasServiceList,
intTransactionCallFrameServiceGet,
intTransactionCallFrameServiceList,
intTransactionOpcodeGasServiceGet,
intTransactionOpcodeGasServiceList,
intTransactionResourceGasServiceGet,
intTransactionResourceGasServiceList,
type Options,
} from '../sdk.gen';
import type {
Expand Down Expand Up @@ -1161,6 +1167,12 @@ import type {
IntBlockProposerCanonicalServiceListData,
IntBlockProposerCanonicalServiceListError,
IntBlockProposerCanonicalServiceListResponse,
IntBlockResourceGasServiceGetData,
IntBlockResourceGasServiceGetError,
IntBlockResourceGasServiceGetResponse,
IntBlockResourceGasServiceListData,
IntBlockResourceGasServiceListError,
IntBlockResourceGasServiceListResponse,
IntContractCreationServiceGetData,
IntContractCreationServiceGetError,
IntContractCreationServiceGetResponse,
Expand Down Expand Up @@ -1443,6 +1455,12 @@ import type {
IntTransactionCallFrameOpcodeGasServiceListData,
IntTransactionCallFrameOpcodeGasServiceListError,
IntTransactionCallFrameOpcodeGasServiceListResponse,
IntTransactionCallFrameOpcodeResourceGasServiceGetData,
IntTransactionCallFrameOpcodeResourceGasServiceGetError,
IntTransactionCallFrameOpcodeResourceGasServiceGetResponse,
IntTransactionCallFrameOpcodeResourceGasServiceListData,
IntTransactionCallFrameOpcodeResourceGasServiceListError,
IntTransactionCallFrameOpcodeResourceGasServiceListResponse,
IntTransactionCallFrameServiceGetData,
IntTransactionCallFrameServiceGetError,
IntTransactionCallFrameServiceGetResponse,
Expand All @@ -1455,6 +1473,12 @@ import type {
IntTransactionOpcodeGasServiceListData,
IntTransactionOpcodeGasServiceListError,
IntTransactionOpcodeGasServiceListResponse,
IntTransactionResourceGasServiceGetData,
IntTransactionResourceGasServiceGetError,
IntTransactionResourceGasServiceGetResponse,
IntTransactionResourceGasServiceListData,
IntTransactionResourceGasServiceListError,
IntTransactionResourceGasServiceListResponse,
} from '../types.gen';

export type QueryKey<TOptions extends Options> = [
Expand Down Expand Up @@ -9120,6 +9144,60 @@ export const intBlockProposerCanonicalServiceGetOptions = (options: Options<IntB
queryKey: intBlockProposerCanonicalServiceGetQueryKey(options),
});

export const intBlockResourceGasServiceListQueryKey = (options?: Options<IntBlockResourceGasServiceListData>) =>
createQueryKey('intBlockResourceGasServiceList', options);

/**
* List records
*
* Retrieve paginated results with optional filtering
*/
export const intBlockResourceGasServiceListOptions = (options?: Options<IntBlockResourceGasServiceListData>) =>
queryOptions<
IntBlockResourceGasServiceListResponse,
IntBlockResourceGasServiceListError,
IntBlockResourceGasServiceListResponse,
ReturnType<typeof intBlockResourceGasServiceListQueryKey>
>({
queryFn: async ({ queryKey, signal }) => {
const { data } = await intBlockResourceGasServiceList({
...options,
...queryKey[0],
signal,
throwOnError: true,
});
return data;
},
queryKey: intBlockResourceGasServiceListQueryKey(options),
});

export const intBlockResourceGasServiceGetQueryKey = (options: Options<IntBlockResourceGasServiceGetData>) =>
createQueryKey('intBlockResourceGasServiceGet', options);

/**
* Get record
*
* Retrieve a single record by block_number
*/
export const intBlockResourceGasServiceGetOptions = (options: Options<IntBlockResourceGasServiceGetData>) =>
queryOptions<
IntBlockResourceGasServiceGetResponse,
IntBlockResourceGasServiceGetError,
IntBlockResourceGasServiceGetResponse,
ReturnType<typeof intBlockResourceGasServiceGetQueryKey>
>({
queryFn: async ({ queryKey, signal }) => {
const { data } = await intBlockResourceGasServiceGet({
...options,
...queryKey[0],
signal,
throwOnError: true,
});
return data;
},
queryKey: intBlockResourceGasServiceGetQueryKey(options),
});

export const intContractCreationServiceListQueryKey = (options?: Options<IntContractCreationServiceListData>) =>
createQueryKey('intContractCreationServiceList', options);

Expand Down Expand Up @@ -11898,6 +11976,66 @@ export const intTransactionCallFrameOpcodeGasServiceGetOptions = (
queryKey: intTransactionCallFrameOpcodeGasServiceGetQueryKey(options),
});

export const intTransactionCallFrameOpcodeResourceGasServiceListQueryKey = (
options?: Options<IntTransactionCallFrameOpcodeResourceGasServiceListData>
) => createQueryKey('intTransactionCallFrameOpcodeResourceGasServiceList', options);

/**
* List records
*
* Retrieve paginated results with optional filtering
*/
export const intTransactionCallFrameOpcodeResourceGasServiceListOptions = (
options?: Options<IntTransactionCallFrameOpcodeResourceGasServiceListData>
) =>
queryOptions<
IntTransactionCallFrameOpcodeResourceGasServiceListResponse,
IntTransactionCallFrameOpcodeResourceGasServiceListError,
IntTransactionCallFrameOpcodeResourceGasServiceListResponse,
ReturnType<typeof intTransactionCallFrameOpcodeResourceGasServiceListQueryKey>
>({
queryFn: async ({ queryKey, signal }) => {
const { data } = await intTransactionCallFrameOpcodeResourceGasServiceList({
...options,
...queryKey[0],
signal,
throwOnError: true,
});
return data;
},
queryKey: intTransactionCallFrameOpcodeResourceGasServiceListQueryKey(options),
});

export const intTransactionCallFrameOpcodeResourceGasServiceGetQueryKey = (
options: Options<IntTransactionCallFrameOpcodeResourceGasServiceGetData>
) => createQueryKey('intTransactionCallFrameOpcodeResourceGasServiceGet', options);

/**
* Get record
*
* Retrieve a single record by block_number
*/
export const intTransactionCallFrameOpcodeResourceGasServiceGetOptions = (
options: Options<IntTransactionCallFrameOpcodeResourceGasServiceGetData>
) =>
queryOptions<
IntTransactionCallFrameOpcodeResourceGasServiceGetResponse,
IntTransactionCallFrameOpcodeResourceGasServiceGetError,
IntTransactionCallFrameOpcodeResourceGasServiceGetResponse,
ReturnType<typeof intTransactionCallFrameOpcodeResourceGasServiceGetQueryKey>
>({
queryFn: async ({ queryKey, signal }) => {
const { data } = await intTransactionCallFrameOpcodeResourceGasServiceGet({
...options,
...queryKey[0],
signal,
throwOnError: true,
});
return data;
},
queryKey: intTransactionCallFrameOpcodeResourceGasServiceGetQueryKey(options),
});

export const intTransactionOpcodeGasServiceListQueryKey = (options?: Options<IntTransactionOpcodeGasServiceListData>) =>
createQueryKey('intTransactionOpcodeGasServiceList', options);

Expand Down Expand Up @@ -11951,3 +12089,61 @@ export const intTransactionOpcodeGasServiceGetOptions = (options: Options<IntTra
},
queryKey: intTransactionOpcodeGasServiceGetQueryKey(options),
});

export const intTransactionResourceGasServiceListQueryKey = (
options?: Options<IntTransactionResourceGasServiceListData>
) => createQueryKey('intTransactionResourceGasServiceList', options);

/**
* List records
*
* Retrieve paginated results with optional filtering
*/
export const intTransactionResourceGasServiceListOptions = (
options?: Options<IntTransactionResourceGasServiceListData>
) =>
queryOptions<
IntTransactionResourceGasServiceListResponse,
IntTransactionResourceGasServiceListError,
IntTransactionResourceGasServiceListResponse,
ReturnType<typeof intTransactionResourceGasServiceListQueryKey>
>({
queryFn: async ({ queryKey, signal }) => {
const { data } = await intTransactionResourceGasServiceList({
...options,
...queryKey[0],
signal,
throwOnError: true,
});
return data;
},
queryKey: intTransactionResourceGasServiceListQueryKey(options),
});

export const intTransactionResourceGasServiceGetQueryKey = (
options: Options<IntTransactionResourceGasServiceGetData>
) => createQueryKey('intTransactionResourceGasServiceGet', options);

/**
* Get record
*
* Retrieve a single record by block_number
*/
export const intTransactionResourceGasServiceGetOptions = (options: Options<IntTransactionResourceGasServiceGetData>) =>
queryOptions<
IntTransactionResourceGasServiceGetResponse,
IntTransactionResourceGasServiceGetError,
IntTransactionResourceGasServiceGetResponse,
ReturnType<typeof intTransactionResourceGasServiceGetQueryKey>
>({
queryFn: async ({ queryKey, signal }) => {
const { data } = await intTransactionResourceGasServiceGet({
...options,
...queryKey[0],
signal,
throwOnError: true,
});
return data;
},
queryKey: intTransactionResourceGasServiceGetQueryKey(options),
});
45 changes: 45 additions & 0 deletions src/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,8 @@ export {
intBlockOpcodeGasServiceList,
intBlockProposerCanonicalServiceGet,
intBlockProposerCanonicalServiceList,
intBlockResourceGasServiceGet,
intBlockResourceGasServiceList,
intContractCreationServiceGet,
intContractCreationServiceList,
intContractSelfdestructServiceGet,
Expand Down Expand Up @@ -359,10 +361,14 @@ export {
intStorageSlotStateWithExpiryServiceList,
intTransactionCallFrameOpcodeGasServiceGet,
intTransactionCallFrameOpcodeGasServiceList,
intTransactionCallFrameOpcodeResourceGasServiceGet,
intTransactionCallFrameOpcodeResourceGasServiceList,
intTransactionCallFrameServiceGet,
intTransactionCallFrameServiceList,
intTransactionOpcodeGasServiceGet,
intTransactionOpcodeGasServiceList,
intTransactionResourceGasServiceGet,
intTransactionResourceGasServiceList,
type Options,
} from './sdk.gen';
export type {
Expand Down Expand Up @@ -1808,6 +1814,7 @@ export type {
GetIntBlockMevCanonicalResponse,
GetIntBlockOpcodeGasResponse,
GetIntBlockProposerCanonicalResponse,
GetIntBlockResourceGasResponse,
GetIntContractCreationResponse,
GetIntContractSelfdestructResponse,
GetIntContractStorageExpiry12mResponse,
Expand Down Expand Up @@ -1855,8 +1862,10 @@ export type {
GetIntStorageSlotStateWithExpiryByBlockResponse,
GetIntStorageSlotStateWithExpiryResponse,
GetIntTransactionCallFrameOpcodeGasResponse,
GetIntTransactionCallFrameOpcodeResourceGasResponse,
GetIntTransactionCallFrameResponse,
GetIntTransactionOpcodeGasResponse,
GetIntTransactionResourceGasResponse,
GoogleProtobufAny,
IntAddressFirstAccess,
IntAddressFirstAccessServiceGetData,
Expand Down Expand Up @@ -2001,6 +2010,17 @@ export type {
IntBlockProposerCanonicalServiceListErrors,
IntBlockProposerCanonicalServiceListResponse,
IntBlockProposerCanonicalServiceListResponses,
IntBlockResourceGas,
IntBlockResourceGasServiceGetData,
IntBlockResourceGasServiceGetError,
IntBlockResourceGasServiceGetErrors,
IntBlockResourceGasServiceGetResponse,
IntBlockResourceGasServiceGetResponses,
IntBlockResourceGasServiceListData,
IntBlockResourceGasServiceListError,
IntBlockResourceGasServiceListErrors,
IntBlockResourceGasServiceListResponse,
IntBlockResourceGasServiceListResponses,
IntContractCreation,
IntContractCreationServiceGetData,
IntContractCreationServiceGetError,
Expand Down Expand Up @@ -2519,6 +2539,17 @@ export type {
IntTransactionCallFrameOpcodeGasServiceListErrors,
IntTransactionCallFrameOpcodeGasServiceListResponse,
IntTransactionCallFrameOpcodeGasServiceListResponses,
IntTransactionCallFrameOpcodeResourceGas,
IntTransactionCallFrameOpcodeResourceGasServiceGetData,
IntTransactionCallFrameOpcodeResourceGasServiceGetError,
IntTransactionCallFrameOpcodeResourceGasServiceGetErrors,
IntTransactionCallFrameOpcodeResourceGasServiceGetResponse,
IntTransactionCallFrameOpcodeResourceGasServiceGetResponses,
IntTransactionCallFrameOpcodeResourceGasServiceListData,
IntTransactionCallFrameOpcodeResourceGasServiceListError,
IntTransactionCallFrameOpcodeResourceGasServiceListErrors,
IntTransactionCallFrameOpcodeResourceGasServiceListResponse,
IntTransactionCallFrameOpcodeResourceGasServiceListResponses,
IntTransactionCallFrameServiceGetData,
IntTransactionCallFrameServiceGetError,
IntTransactionCallFrameServiceGetErrors,
Expand All @@ -2540,6 +2571,17 @@ export type {
IntTransactionOpcodeGasServiceListErrors,
IntTransactionOpcodeGasServiceListResponse,
IntTransactionOpcodeGasServiceListResponses,
IntTransactionResourceGas,
IntTransactionResourceGasServiceGetData,
IntTransactionResourceGasServiceGetError,
IntTransactionResourceGasServiceGetErrors,
IntTransactionResourceGasServiceGetResponse,
IntTransactionResourceGasServiceGetResponses,
IntTransactionResourceGasServiceListData,
IntTransactionResourceGasServiceListError,
IntTransactionResourceGasServiceListErrors,
IntTransactionResourceGasServiceListResponse,
IntTransactionResourceGasServiceListResponses,
ListAdminCbtIncrementalResponse,
ListAdminCbtScheduledResponse,
ListDimBlockBlobSubmitterResponse,
Expand Down Expand Up @@ -2672,6 +2714,7 @@ export type {
ListIntBlockMevCanonicalResponse,
ListIntBlockOpcodeGasResponse,
ListIntBlockProposerCanonicalResponse,
ListIntBlockResourceGasResponse,
ListIntContractCreationResponse,
ListIntContractSelfdestructResponse,
ListIntContractStorageExpiry12mResponse,
Expand Down Expand Up @@ -2719,7 +2762,9 @@ export type {
ListIntStorageSlotStateWithExpiryByBlockResponse,
ListIntStorageSlotStateWithExpiryResponse,
ListIntTransactionCallFrameOpcodeGasResponse,
ListIntTransactionCallFrameOpcodeResourceGasResponse,
ListIntTransactionCallFrameResponse,
ListIntTransactionOpcodeGasResponse,
ListIntTransactionResourceGasResponse,
Status,
} from './types.gen';
Loading