@cartesi/react 2.0.0-alpha.42 → 2.0.0-alpha.44
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/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -70
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +1 -70
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +8 -8
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { CartesiPublicClient, GetApplicationParams, GetBondEventParams, GetCommitmentParams, GetEpochByVirtualIndexParams, GetEpochParams, GetExecutedOutputCountParams, GetInputParams, GetLastAcceptedEpochIndexParams, GetMatchAdvanceParams, GetMatchParams, GetOutputParams, GetPendingExecutableOutputCountParams, GetProcessedInputCountParams, GetReportParams, GetTournamentParams, GetWithdrawalParams, ListApplicationsParams, ListBondEventsParams, ListCommitmentsParams, ListEpochsParams, ListInputsParams, ListMatchAdvancesParams, ListMatchesParams, ListOutputsParams, ListReportsParams, ListTournamentsParams, ListWithdrawalsParams, WaitForInputParams } from "@cartesi/client";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
|
-
//#region src/generated.d.ts
|
|
4
3
|
export declare const applicationFactoryAbi: readonly [{
|
|
5
4
|
readonly type: "constructor";
|
|
6
5
|
readonly inputs: readonly [{
|
|
@@ -528185,16 +528184,12 @@ export declare const useWatchUsdWithdrawalOutputBuilderFactoryUsdWithdrawalOutpu
|
|
|
528185
528184
|
}];
|
|
528186
528185
|
readonly name: "UsdWithdrawalOutputBuilderCreated";
|
|
528187
528186
|
}], "0x60b8b3c0AecEb193755038fa9372FfE910E63e39", "UsdWithdrawalOutputBuilderCreated", "address" | "abi" | "eventName">;
|
|
528188
|
-
//#endregion
|
|
528189
|
-
//#region src/publicL2/provider.d.ts
|
|
528190
528187
|
interface CartesiProviderProps {
|
|
528191
528188
|
children: ReactNode;
|
|
528192
528189
|
rpcUrl: string;
|
|
528193
528190
|
}
|
|
528194
528191
|
export declare const CartesiProvider: ({ children, rpcUrl }: CartesiProviderProps) => import("react").JSX.Element;
|
|
528195
528192
|
export declare const useCartesiClient: () => CartesiPublicClient;
|
|
528196
|
-
//#endregion
|
|
528197
|
-
//#region src/publicL2/serverUrl.d.ts
|
|
528198
528193
|
/**
|
|
528199
528194
|
* Identity of the Cartesi node a client points at, used to scope query keys.
|
|
528200
528195
|
* Uses the transport URL as primary identity: it is stable across client
|
|
@@ -528205,22 +528200,16 @@ export declare const useCartesiClient: () => CartesiPublicClient;
|
|
|
528205
528200
|
* remounts — acceptable for that exotic case only.
|
|
528206
528201
|
*/
|
|
528207
528202
|
export declare const serverUrl: (client: CartesiPublicClient) => string;
|
|
528208
|
-
//#endregion
|
|
528209
|
-
//#region src/publicL2/useApplication.d.ts
|
|
528210
528203
|
export declare const applicationQueryKey: (client: CartesiPublicClient, params: Partial<GetApplicationParams>) => (string | Partial<GetApplicationParams>)[];
|
|
528211
528204
|
export declare const applicationOptions: (client: CartesiPublicClient, params: Partial<GetApplicationParams>) => import("@tanstack/react-query").UseQueryOptions<import("@cartesi/client").Application, Error, import("@cartesi/client").Application, (string | Partial<GetApplicationParams>)[]> & {
|
|
528212
528205
|
initialData?: import("@cartesi/client").Application | import("@tanstack/react-query").InitialDataFunction<import("@cartesi/client").Application> | undefined;
|
|
528213
528206
|
} & import("@tanstack/react-query").QueryKeyWithDataTag<(string | Partial<GetApplicationParams>)[], import("@cartesi/client").Application, Error>;
|
|
528214
528207
|
export declare const useApplication: (params: Partial<GetApplicationParams> & Omit<ReturnType<typeof applicationOptions>, "queryKey" | "queryFn">) => import("@tanstack/react-query").UseQueryResult<import("@cartesi/client").Application, Error>;
|
|
528215
|
-
//#endregion
|
|
528216
|
-
//#region src/publicL2/useApplications.d.ts
|
|
528217
528208
|
export declare const applicationsQueryKey: (client: CartesiPublicClient, params?: Partial<ListApplicationsParams>) => (string | Partial<import("@cartesi/client").PaginationParams> | undefined)[];
|
|
528218
528209
|
export declare const applicationsOptions: (client: CartesiPublicClient, params?: Partial<ListApplicationsParams>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("@cartesi/client").ListApplicationsReturnType, Error, import("@cartesi/client").ListApplicationsReturnType, (string | Partial<import("@cartesi/client").PaginationParams> | undefined)[]>, "queryFn"> & {
|
|
528219
528210
|
queryFn?: import("@tanstack/react-query").QueryFunction<import("@cartesi/client").ListApplicationsReturnType, (string | Partial<import("@cartesi/client").PaginationParams> | undefined)[], never> | undefined;
|
|
528220
528211
|
} & import("@tanstack/react-query").QueryKeyWithDataTag<(string | Partial<import("@cartesi/client").PaginationParams> | undefined)[], import("@cartesi/client").ListApplicationsReturnType, Error>;
|
|
528221
528212
|
export declare const useApplications: (params?: ListApplicationsParams & Omit<ReturnType<typeof applicationsOptions>, "queryKey" | "queryFn">) => import("@tanstack/react-query").UseQueryResult<import("@cartesi/client").ListApplicationsReturnType, Error>;
|
|
528222
|
-
//#endregion
|
|
528223
|
-
//#region src/publicL2/useBondEvent.d.ts
|
|
528224
528213
|
export declare const bondEventQueryKey: (client: CartesiPublicClient, params: Partial<GetBondEventParams>) => (string | {
|
|
528225
528214
|
logIndex: string | undefined;
|
|
528226
528215
|
application?: string | undefined;
|
|
@@ -528238,8 +528227,6 @@ export declare const bondEventOptions: (client: CartesiPublicClient, params: Par
|
|
|
528238
528227
|
txHash?: `0x${string}` | undefined;
|
|
528239
528228
|
})[], import("@cartesi/client").BondEvent, Error>;
|
|
528240
528229
|
export declare const useBondEvent: (params: Partial<GetBondEventParams> & Omit<ReturnType<typeof bondEventOptions>, "queryKey" | "queryFn">) => import("@tanstack/react-query").UseQueryResult<import("@cartesi/client").BondEvent, Error>;
|
|
528241
|
-
//#endregion
|
|
528242
|
-
//#region src/publicL2/useBondEvents.d.ts
|
|
528243
528230
|
export declare const bondEventsQueryKey: (client: CartesiPublicClient, params: Partial<ListBondEventsParams>) => (string | {
|
|
528244
528231
|
epochIndex: string | undefined;
|
|
528245
528232
|
limit?: number | undefined;
|
|
@@ -528266,16 +528253,12 @@ export declare const bondEventsOptions: (client: CartesiPublicClient, params: Pa
|
|
|
528266
528253
|
tournamentAddress?: import("viem").Address | undefined;
|
|
528267
528254
|
})[], import("@cartesi/client").ListBondEventsReturnType, Error>;
|
|
528268
528255
|
export declare const useBondEvents: (params: Partial<ListBondEventsParams> & Omit<ReturnType<typeof bondEventsOptions>, "queryKey" | "queryFn">) => import("@tanstack/react-query").UseQueryResult<import("@cartesi/client").ListBondEventsReturnType, Error>;
|
|
528269
|
-
//#endregion
|
|
528270
|
-
//#region src/publicL2/useChainId.d.ts
|
|
528271
528256
|
export declare const chainIdQueryKey: (client: CartesiPublicClient) => string[];
|
|
528272
528257
|
export declare const chainIdOptions: (client: CartesiPublicClient) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<number, Error, number, string[]>, "queryFn"> & {
|
|
528273
528258
|
queryFn?: import("@tanstack/react-query").QueryFunction<number, string[], never> | undefined;
|
|
528274
528259
|
} & import("@tanstack/react-query").QueryKeyWithDataTag<string[], number, Error>;
|
|
528275
528260
|
/** @deprecated use `useNodeInfo` instead. */
|
|
528276
528261
|
export declare const useChainId: (params?: Omit<ReturnType<typeof chainIdOptions>, "queryKey" | "queryFn">) => import("@tanstack/react-query").UseQueryResult<number, Error>;
|
|
528277
|
-
//#endregion
|
|
528278
|
-
//#region src/publicL2/useCommitment.d.ts
|
|
528279
528262
|
export declare const commitmentQueryKey: (client: CartesiPublicClient, params: Partial<GetCommitmentParams>) => (string | {
|
|
528280
528263
|
epochIndex: string | undefined;
|
|
528281
528264
|
application?: string | undefined;
|
|
@@ -528296,8 +528279,6 @@ export declare const commitmentOptions: (client: CartesiPublicClient, params: Pa
|
|
|
528296
528279
|
commitment?: `0x${string}` | undefined;
|
|
528297
528280
|
})[], import("@cartesi/client").Commitment, Error>;
|
|
528298
528281
|
export declare const useCommitment: (params: Partial<GetCommitmentParams> & Omit<ReturnType<typeof commitmentOptions>, "queryKey" | "queryFn">) => import("@tanstack/react-query").UseQueryResult<import("@cartesi/client").Commitment, Error>;
|
|
528299
|
-
//#endregion
|
|
528300
|
-
//#region src/publicL2/useCommitments.d.ts
|
|
528301
528282
|
export declare const commitmentsQueryKey: (client: CartesiPublicClient, params: Partial<ListCommitmentsParams>) => (string | {
|
|
528302
528283
|
epochIndex: string | undefined;
|
|
528303
528284
|
limit?: number | undefined;
|
|
@@ -528324,8 +528305,6 @@ export declare const commitmentsOptions: (client: CartesiPublicClient, params: P
|
|
|
528324
528305
|
tournamentAddress?: import("viem").Address | undefined;
|
|
528325
528306
|
})[], import("@cartesi/client").ListCommitmentsReturnType, Error>;
|
|
528326
528307
|
export declare const useCommitments: (params: Partial<ListCommitmentsParams> & Omit<ReturnType<typeof commitmentsOptions>, "queryKey" | "queryFn">) => import("@tanstack/react-query").UseQueryResult<import("@cartesi/client").ListCommitmentsReturnType, Error>;
|
|
528327
|
-
//#endregion
|
|
528328
|
-
//#region src/publicL2/useEpoch.d.ts
|
|
528329
528308
|
export declare const epochQueryKey: (client: CartesiPublicClient, params: Partial<GetEpochParams>) => (string | {
|
|
528330
528309
|
epochIndex: string | undefined;
|
|
528331
528310
|
application?: string | undefined;
|
|
@@ -528340,8 +528319,6 @@ export declare const epochOptions: (client: CartesiPublicClient, params: Partial
|
|
|
528340
528319
|
application?: string | undefined;
|
|
528341
528320
|
})[], import("@cartesi/client").Epoch, Error>;
|
|
528342
528321
|
export declare const useEpoch: (params: Partial<GetEpochParams> & Omit<ReturnType<typeof epochOptions>, "queryKey" | "queryFn">) => import("@tanstack/react-query").UseQueryResult<import("@cartesi/client").Epoch, Error>;
|
|
528343
|
-
//#endregion
|
|
528344
|
-
//#region src/publicL2/useEpochByVirtualIndex.d.ts
|
|
528345
528322
|
export declare const epochByVirtualIndexQueryKey: (client: CartesiPublicClient, params: Partial<GetEpochByVirtualIndexParams>) => (string | {
|
|
528346
528323
|
virtualIndex: string | undefined;
|
|
528347
528324
|
application?: string | undefined;
|
|
@@ -528356,8 +528333,6 @@ export declare const epochByVirtualIndexOptions: (client: CartesiPublicClient, p
|
|
|
528356
528333
|
application?: string | undefined;
|
|
528357
528334
|
})[], import("@cartesi/client").Epoch, Error>;
|
|
528358
528335
|
export declare const useEpochByVirtualIndex: (params: Partial<GetEpochByVirtualIndexParams> & Omit<ReturnType<typeof epochByVirtualIndexOptions>, "queryKey" | "queryFn">) => import("@tanstack/react-query").UseQueryResult<import("@cartesi/client").Epoch, Error>;
|
|
528359
|
-
//#endregion
|
|
528360
|
-
//#region ../rpc/dist/index.d.ts
|
|
528361
528336
|
/**
|
|
528362
528337
|
* An array with at least one element.
|
|
528363
528338
|
*
|
|
@@ -528366,8 +528341,6 @@ export declare const useEpochByVirtualIndex: (params: Partial<GetEpochByVirtualI
|
|
|
528366
528341
|
*/
|
|
528367
528342
|
type NonEmptyArray<T> = [T, ...T[]];
|
|
528368
528343
|
type EpochStatus = "OPEN" | "CLOSED" | "INPUTS_PROCESSED" | "CLAIM_COMPUTED" | "CLAIM_SUBMITTED" | "CLAIM_STAGED" | "CLAIM_ACCEPTED" | "CLAIM_REJECTED" | "CLAIM_FORECLOSED";
|
|
528369
|
-
//#endregion
|
|
528370
|
-
//#region src/publicL2/useEpochs.d.ts
|
|
528371
528344
|
export declare const epochsQueryKey: (client: CartesiPublicClient, params: Partial<ListEpochsParams>) => (string | {
|
|
528372
528345
|
from: string | undefined;
|
|
528373
528346
|
to: string | undefined;
|
|
@@ -528397,15 +528370,11 @@ export declare const epochsOptions: (client: CartesiPublicClient, params: Partia
|
|
|
528397
528370
|
status?: (EpochStatus | NonEmptyArray<EpochStatus>) | undefined;
|
|
528398
528371
|
})[], import("@cartesi/client").ListEpochsReturnType, Error>;
|
|
528399
528372
|
export declare const useEpochs: (params: Partial<ListEpochsParams> & Omit<ReturnType<typeof epochsOptions>, "queryKey" | "queryFn">) => import("@tanstack/react-query").UseQueryResult<import("@cartesi/client").ListEpochsReturnType, Error>;
|
|
528400
|
-
//#endregion
|
|
528401
|
-
//#region src/publicL2/useExecutedOutputCount.d.ts
|
|
528402
528373
|
export declare const executedOutputCountQueryKey: (client: CartesiPublicClient, params: Partial<GetExecutedOutputCountParams>) => (string | Partial<GetExecutedOutputCountParams>)[];
|
|
528403
528374
|
export declare const executedOutputCountOptions: (client: CartesiPublicClient, params: Partial<GetExecutedOutputCountParams>) => import("@tanstack/react-query").UseQueryOptions<bigint, Error, bigint, (string | Partial<GetExecutedOutputCountParams>)[]> & {
|
|
528404
528375
|
initialData?: bigint | import("@tanstack/react-query").InitialDataFunction<bigint> | undefined;
|
|
528405
528376
|
} & import("@tanstack/react-query").QueryKeyWithDataTag<(string | Partial<GetExecutedOutputCountParams>)[], bigint, Error>;
|
|
528406
528377
|
export declare const useExecutedOutputCount: (params: Partial<GetExecutedOutputCountParams> & Omit<ReturnType<typeof executedOutputCountOptions>, "queryKey" | "queryFn">) => import("@tanstack/react-query").UseQueryResult<bigint, Error>;
|
|
528407
|
-
//#endregion
|
|
528408
|
-
//#region src/publicL2/useInput.d.ts
|
|
528409
528378
|
export declare const inputQueryKey: (client: CartesiPublicClient, params: Partial<GetInputParams>) => (string | {
|
|
528410
528379
|
inputIndex: string | undefined;
|
|
528411
528380
|
application?: string | undefined;
|
|
@@ -528420,8 +528389,6 @@ export declare const inputOptions: (client: CartesiPublicClient, params: Partial
|
|
|
528420
528389
|
application?: string | undefined;
|
|
528421
528390
|
})[], import("@cartesi/client").Input, Error>;
|
|
528422
528391
|
export declare const useInput: (params: Partial<GetInputParams> & Omit<ReturnType<typeof inputOptions>, "queryKey" | "queryFn">) => import("@tanstack/react-query").UseQueryResult<import("@cartesi/client").Input, Error>;
|
|
528423
|
-
//#endregion
|
|
528424
|
-
//#region src/publicL2/useInputs.d.ts
|
|
528425
528392
|
export declare const inputsQueryKey: (client: CartesiPublicClient, params: Partial<ListInputsParams>) => (string | {
|
|
528426
528393
|
epochIndex: string | undefined;
|
|
528427
528394
|
from: string | undefined;
|
|
@@ -528457,15 +528424,11 @@ export declare const inputsOptions: (client: CartesiPublicClient, params: Partia
|
|
|
528457
528424
|
transactionHash?: import("viem").Hash | undefined;
|
|
528458
528425
|
})[], import("@cartesi/client").ListInputsReturnType, Error>;
|
|
528459
528426
|
export declare const useInputs: (params: Partial<ListInputsParams> & Omit<ReturnType<typeof inputsOptions>, "queryKey" | "queryFn">) => import("@tanstack/react-query").UseQueryResult<import("@cartesi/client").ListInputsReturnType, Error>;
|
|
528460
|
-
//#endregion
|
|
528461
|
-
//#region src/publicL2/useLastAcceptedEpochIndex.d.ts
|
|
528462
528427
|
export declare const lastAcceptedEpochIndexQueryKey: (client: CartesiPublicClient, params: Partial<GetLastAcceptedEpochIndexParams>) => (string | Partial<GetLastAcceptedEpochIndexParams>)[];
|
|
528463
528428
|
export declare const lastAcceptedEpochIndexOptions: (client: CartesiPublicClient, params: Partial<GetLastAcceptedEpochIndexParams>) => import("@tanstack/react-query").UseQueryOptions<bigint, Error, bigint, (string | Partial<GetLastAcceptedEpochIndexParams>)[]> & {
|
|
528464
528429
|
initialData?: bigint | import("@tanstack/react-query").InitialDataFunction<bigint> | undefined;
|
|
528465
528430
|
} & import("@tanstack/react-query").QueryKeyWithDataTag<(string | Partial<GetLastAcceptedEpochIndexParams>)[], bigint, Error>;
|
|
528466
528431
|
export declare const useLastAcceptedEpochIndex: (params: Partial<GetLastAcceptedEpochIndexParams> & Omit<ReturnType<typeof lastAcceptedEpochIndexOptions>, "queryKey" | "queryFn">) => import("@tanstack/react-query").UseQueryResult<bigint, Error>;
|
|
528467
|
-
//#endregion
|
|
528468
|
-
//#region src/publicL2/useMatch.d.ts
|
|
528469
528432
|
export declare const matchQueryKey: (client: CartesiPublicClient, params: Partial<GetMatchParams>) => (string | {
|
|
528470
528433
|
epochIndex: string | undefined;
|
|
528471
528434
|
application?: string | undefined;
|
|
@@ -528486,8 +528449,6 @@ export declare const matchOptions: (client: CartesiPublicClient, params: Partial
|
|
|
528486
528449
|
idHash?: `0x${string}` | undefined;
|
|
528487
528450
|
})[], import("@cartesi/client").Match, Error>;
|
|
528488
528451
|
export declare const useMatch: (params: Partial<GetMatchParams> & Omit<ReturnType<typeof matchOptions>, "queryKey" | "queryFn">) => import("@tanstack/react-query").UseQueryResult<import("@cartesi/client").Match, Error>;
|
|
528489
|
-
//#endregion
|
|
528490
|
-
//#region src/publicL2/useMatchAdvance.d.ts
|
|
528491
528452
|
export declare const matchAdvanceQueryKey: (client: CartesiPublicClient, params: Partial<GetMatchAdvanceParams>) => (string | {
|
|
528492
528453
|
epochIndex: string | undefined;
|
|
528493
528454
|
logIndex: string | undefined;
|
|
@@ -528514,8 +528475,6 @@ export declare const matchAdvanceOptions: (client: CartesiPublicClient, params:
|
|
|
528514
528475
|
txHash?: `0x${string}` | undefined;
|
|
528515
528476
|
})[], import("@cartesi/client").MatchAdvanced, Error>;
|
|
528516
528477
|
export declare const useMatchAdvance: (params: Partial<GetMatchAdvanceParams> & Omit<ReturnType<typeof matchAdvanceOptions>, "queryKey" | "queryFn">) => import("@tanstack/react-query").UseQueryResult<import("@cartesi/client").MatchAdvanced, Error>;
|
|
528517
|
-
//#endregion
|
|
528518
|
-
//#region src/publicL2/useMatchAdvances.d.ts
|
|
528519
528478
|
export declare const matchAdvancesQueryKey: (client: CartesiPublicClient, params: Partial<ListMatchAdvancesParams>) => (string | {
|
|
528520
528479
|
epochIndex: string | undefined;
|
|
528521
528480
|
limit?: number | undefined;
|
|
@@ -528545,8 +528504,6 @@ export declare const matchAdvancesOptions: (client: CartesiPublicClient, params:
|
|
|
528545
528504
|
idHash?: `0x${string}` | undefined;
|
|
528546
528505
|
})[], import("@cartesi/client").ListMatchAdvancesReturnType, Error>;
|
|
528547
528506
|
export declare const useMatchAdvances: (params: Partial<ListMatchAdvancesParams> & Omit<ReturnType<typeof matchAdvancesOptions>, "queryKey" | "queryFn">) => import("@tanstack/react-query").UseQueryResult<import("@cartesi/client").ListMatchAdvancesReturnType, Error>;
|
|
528548
|
-
//#endregion
|
|
528549
|
-
//#region src/publicL2/useMatches.d.ts
|
|
528550
528507
|
export declare const matchesQueryKey: (client: CartesiPublicClient, params: Partial<ListMatchesParams>) => (string | {
|
|
528551
528508
|
epochIndex: string | undefined;
|
|
528552
528509
|
limit?: number | undefined;
|
|
@@ -528573,23 +528530,17 @@ export declare const matchesOptions: (client: CartesiPublicClient, params: Parti
|
|
|
528573
528530
|
tournamentAddress?: import("viem").Address | undefined;
|
|
528574
528531
|
})[], import("@cartesi/client").ListMatchesReturnType, Error>;
|
|
528575
528532
|
export declare const useMatches: (params: Partial<ListMatchesParams> & Omit<ReturnType<typeof matchesOptions>, "queryKey" | "queryFn">) => import("@tanstack/react-query").UseQueryResult<import("@cartesi/client").ListMatchesReturnType, Error>;
|
|
528576
|
-
//#endregion
|
|
528577
|
-
//#region src/publicL2/useNodeInfo.d.ts
|
|
528578
528533
|
export declare const nodeInfoQueryKey: (client: CartesiPublicClient) => string[];
|
|
528579
528534
|
export declare const nodeInfoOptions: (client: CartesiPublicClient) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("@cartesi/client").NodeInfo, Error, import("@cartesi/client").NodeInfo, string[]>, "queryFn"> & {
|
|
528580
528535
|
queryFn?: import("@tanstack/react-query").QueryFunction<import("@cartesi/client").NodeInfo, string[], never> | undefined;
|
|
528581
528536
|
} & import("@tanstack/react-query").QueryKeyWithDataTag<string[], import("@cartesi/client").NodeInfo, Error>;
|
|
528582
528537
|
export declare const useNodeInfo: (params?: Omit<ReturnType<typeof nodeInfoOptions>, "queryKey" | "queryFn">) => import("@tanstack/react-query").UseQueryResult<import("@cartesi/client").NodeInfo, Error>;
|
|
528583
|
-
//#endregion
|
|
528584
|
-
//#region src/publicL2/useNodeVersion.d.ts
|
|
528585
528538
|
export declare const nodeVersionQueryKey: (client: CartesiPublicClient) => string[];
|
|
528586
528539
|
export declare const nodeVersionOptions: (client: CartesiPublicClient) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<string, Error, string, string[]>, "queryFn"> & {
|
|
528587
528540
|
queryFn?: import("@tanstack/react-query").QueryFunction<string, string[], never> | undefined;
|
|
528588
528541
|
} & import("@tanstack/react-query").QueryKeyWithDataTag<string[], string, Error>;
|
|
528589
528542
|
/** @deprecated use `useNodeInfo` instead. */
|
|
528590
528543
|
export declare const useNodeVersion: (params?: Omit<ReturnType<typeof nodeVersionOptions>, "queryKey" | "queryFn">) => import("@tanstack/react-query").UseQueryResult<string, Error>;
|
|
528591
|
-
//#endregion
|
|
528592
|
-
//#region src/publicL2/useOutput.d.ts
|
|
528593
528544
|
export declare const outputQueryKey: (client: CartesiPublicClient, params: Partial<GetOutputParams>) => (string | {
|
|
528594
528545
|
outputIndex: string | undefined;
|
|
528595
528546
|
application?: string | undefined;
|
|
@@ -528604,8 +528555,6 @@ export declare const outputOptions: (client: CartesiPublicClient, params: Partia
|
|
|
528604
528555
|
application?: string | undefined;
|
|
528605
528556
|
})[], import("@cartesi/client").Output, Error>;
|
|
528606
528557
|
export declare const useOutput: (params: Partial<GetOutputParams> & Omit<ReturnType<typeof outputOptions>, "queryKey" | "queryFn">) => import("@tanstack/react-query").UseQueryResult<import("@cartesi/client").Output, Error>;
|
|
528607
|
-
//#endregion
|
|
528608
|
-
//#region src/publicL2/useOutputs.d.ts
|
|
528609
528558
|
export declare const outputsQueryKey: (client: CartesiPublicClient, params: Partial<ListOutputsParams>) => (string | {
|
|
528610
528559
|
epochIndex: string | undefined;
|
|
528611
528560
|
inputIndex: string | undefined;
|
|
@@ -528647,22 +528596,16 @@ export declare const outputsOptions: (client: CartesiPublicClient, params: Parti
|
|
|
528647
528596
|
executed?: boolean | undefined;
|
|
528648
528597
|
})[], import("@cartesi/client").ListOutputsReturnType, Error>;
|
|
528649
528598
|
export declare const useOutputs: (params: Partial<ListOutputsParams> & Omit<ReturnType<typeof outputsOptions>, "queryKey" | "queryFn">) => import("@tanstack/react-query").UseQueryResult<import("@cartesi/client").ListOutputsReturnType, Error>;
|
|
528650
|
-
//#endregion
|
|
528651
|
-
//#region src/publicL2/usePendingExecutableOutputCount.d.ts
|
|
528652
528599
|
export declare const pendingExecutableOutputCountQueryKey: (client: CartesiPublicClient, params: Partial<GetPendingExecutableOutputCountParams>) => (string | Partial<GetPendingExecutableOutputCountParams>)[];
|
|
528653
528600
|
export declare const pendingExecutableOutputCountOptions: (client: CartesiPublicClient, params: Partial<GetPendingExecutableOutputCountParams>) => import("@tanstack/react-query").UseQueryOptions<bigint, Error, bigint, (string | Partial<GetPendingExecutableOutputCountParams>)[]> & {
|
|
528654
528601
|
initialData?: bigint | import("@tanstack/react-query").InitialDataFunction<bigint> | undefined;
|
|
528655
528602
|
} & import("@tanstack/react-query").QueryKeyWithDataTag<(string | Partial<GetPendingExecutableOutputCountParams>)[], bigint, Error>;
|
|
528656
528603
|
export declare const usePendingExecutableOutputCount: (params: Partial<GetPendingExecutableOutputCountParams> & Omit<ReturnType<typeof pendingExecutableOutputCountOptions>, "queryKey" | "queryFn">) => import("@tanstack/react-query").UseQueryResult<bigint, Error>;
|
|
528657
|
-
//#endregion
|
|
528658
|
-
//#region src/publicL2/useProcessedInputCount.d.ts
|
|
528659
528604
|
export declare const processedInputCountQueryKey: (client: CartesiPublicClient, params: Partial<GetProcessedInputCountParams>) => (string | Partial<GetProcessedInputCountParams>)[];
|
|
528660
528605
|
export declare const processedInputCountOptions: (client: CartesiPublicClient, params: Partial<GetProcessedInputCountParams>) => import("@tanstack/react-query").UseQueryOptions<bigint, Error, bigint, (string | Partial<GetProcessedInputCountParams>)[]> & {
|
|
528661
528606
|
initialData?: bigint | import("@tanstack/react-query").InitialDataFunction<bigint> | undefined;
|
|
528662
528607
|
} & import("@tanstack/react-query").QueryKeyWithDataTag<(string | Partial<GetProcessedInputCountParams>)[], bigint, Error>;
|
|
528663
528608
|
export declare const useProcessedInputCount: (params: Partial<GetProcessedInputCountParams> & Omit<ReturnType<typeof processedInputCountOptions>, "queryKey" | "queryFn">) => import("@tanstack/react-query").UseQueryResult<bigint, Error>;
|
|
528664
|
-
//#endregion
|
|
528665
|
-
//#region src/publicL2/useReport.d.ts
|
|
528666
528609
|
export declare const reportQueryKey: (client: CartesiPublicClient, params: Partial<GetReportParams>) => (string | {
|
|
528667
528610
|
reportIndex: string | undefined;
|
|
528668
528611
|
application?: string | undefined;
|
|
@@ -528677,8 +528620,6 @@ export declare const reportOptions: (client: CartesiPublicClient, params: Partia
|
|
|
528677
528620
|
application?: string | undefined;
|
|
528678
528621
|
})[], import("@cartesi/client").Report, Error>;
|
|
528679
528622
|
export declare const useReport: (params: Partial<GetReportParams> & Omit<ReturnType<typeof reportOptions>, "queryKey" | "queryFn">) => import("@tanstack/react-query").UseQueryResult<import("@cartesi/client").Report, Error>;
|
|
528680
|
-
//#endregion
|
|
528681
|
-
//#region src/publicL2/useReports.d.ts
|
|
528682
528623
|
export declare const reportsQueryKey: (client: CartesiPublicClient, params: Partial<ListReportsParams>) => (string | {
|
|
528683
528624
|
epochIndex: string | undefined;
|
|
528684
528625
|
inputIndex: string | undefined;
|
|
@@ -528711,15 +528652,11 @@ export declare const reportsOptions: (client: CartesiPublicClient, params: Parti
|
|
|
528711
528652
|
application?: string | undefined;
|
|
528712
528653
|
})[], import("@cartesi/client").ListReportsReturnType, Error>;
|
|
528713
528654
|
export declare const useReports: (params: Partial<ListReportsParams> & Omit<ReturnType<typeof reportsOptions>, "queryKey" | "queryFn">) => import("@tanstack/react-query").UseQueryResult<import("@cartesi/client").ListReportsReturnType, Error>;
|
|
528714
|
-
//#endregion
|
|
528715
|
-
//#region src/publicL2/useTournament.d.ts
|
|
528716
528655
|
export declare const tournamentQueryKey: (client: CartesiPublicClient, params: Partial<GetTournamentParams>) => (string | Partial<GetTournamentParams>)[];
|
|
528717
528656
|
export declare const tournamentOptions: (client: CartesiPublicClient, params: Partial<GetTournamentParams>) => import("@tanstack/react-query").UseQueryOptions<import("@cartesi/client").Tournament, Error, import("@cartesi/client").Tournament, (string | Partial<GetTournamentParams>)[]> & {
|
|
528718
528657
|
initialData?: import("@cartesi/client").Tournament | import("@tanstack/react-query").InitialDataFunction<import("@cartesi/client").Tournament> | undefined;
|
|
528719
528658
|
} & import("@tanstack/react-query").QueryKeyWithDataTag<(string | Partial<GetTournamentParams>)[], import("@cartesi/client").Tournament, Error>;
|
|
528720
528659
|
export declare const useTournament: (params: Partial<GetTournamentParams> & Omit<ReturnType<typeof tournamentOptions>, "queryKey" | "queryFn">) => import("@tanstack/react-query").UseQueryResult<import("@cartesi/client").Tournament, Error>;
|
|
528721
|
-
//#endregion
|
|
528722
|
-
//#region src/publicL2/useTournaments.d.ts
|
|
528723
528660
|
export declare const tournamentsQueryKey: (client: CartesiPublicClient, params: Partial<ListTournamentsParams>) => (string | {
|
|
528724
528661
|
epochIndex: string | undefined;
|
|
528725
528662
|
level: string | undefined;
|
|
@@ -528752,8 +528689,6 @@ export declare const tournamentsOptions: (client: CartesiPublicClient, params: P
|
|
|
528752
528689
|
application?: string | undefined;
|
|
528753
528690
|
})[], import("@cartesi/client").ListTournamentsReturnType, Error>;
|
|
528754
528691
|
export declare const useTournaments: (params: Partial<ListTournamentsParams> & Omit<ReturnType<typeof tournamentsOptions>, "queryKey" | "queryFn">) => import("@tanstack/react-query").UseQueryResult<import("@cartesi/client").ListTournamentsReturnType, Error>;
|
|
528755
|
-
//#endregion
|
|
528756
|
-
//#region src/publicL2/useWaitForInput.d.ts
|
|
528757
528692
|
export declare const waitForInputQueryKey: (client: CartesiPublicClient, params: Partial<WaitForInputParams>) => (string | {
|
|
528758
528693
|
inputIndex: string | undefined;
|
|
528759
528694
|
application?: string | undefined;
|
|
@@ -528783,8 +528718,6 @@ export declare const waitForInputOptions: (client: CartesiPublicClient, params:
|
|
|
528783
528718
|
timeout?: number | undefined;
|
|
528784
528719
|
})[], import("@cartesi/client").Input, Error>;
|
|
528785
528720
|
export declare const useWaitForInput: (params: Partial<WaitForInputParams> & Omit<ReturnType<typeof waitForInputOptions>, "queryKey" | "queryFn">) => import("@tanstack/react-query").UseQueryResult<import("@cartesi/client").Input, Error>;
|
|
528786
|
-
//#endregion
|
|
528787
|
-
//#region src/publicL2/useWithdrawal.d.ts
|
|
528788
528721
|
export declare const withdrawalQueryKey: (client: CartesiPublicClient, params: Partial<GetWithdrawalParams>) => (string | {
|
|
528789
528722
|
application: string | undefined;
|
|
528790
528723
|
accountIndex: string | undefined;
|
|
@@ -528799,8 +528732,6 @@ export declare const withdrawalOptions: (client: CartesiPublicClient, params: Pa
|
|
|
528799
528732
|
accountIndex: string | undefined;
|
|
528800
528733
|
})[], import("@cartesi/client").Withdrawal, Error>;
|
|
528801
528734
|
export declare const useWithdrawal: (params: Partial<GetWithdrawalParams> & Omit<ReturnType<typeof withdrawalOptions>, "queryKey" | "queryFn">) => import("@tanstack/react-query").UseQueryResult<import("@cartesi/client").Withdrawal, Error>;
|
|
528802
|
-
//#endregion
|
|
528803
|
-
//#region src/publicL2/useWithdrawals.d.ts
|
|
528804
528735
|
export declare const withdrawalsQueryKey: (client: CartesiPublicClient, params: Partial<ListWithdrawalsParams>) => (string | {
|
|
528805
528736
|
application: string | undefined;
|
|
528806
528737
|
accountIndex: string | undefined;
|
|
@@ -528824,5 +528755,5 @@ export declare const withdrawalsOptions: (client: CartesiPublicClient, params: P
|
|
|
528824
528755
|
descending: boolean | undefined;
|
|
528825
528756
|
})[], import("@cartesi/client").ListWithdrawalsReturnType, Error>;
|
|
528826
528757
|
export declare const useWithdrawals: (params: Partial<ListWithdrawalsParams> & Omit<ReturnType<typeof withdrawalsOptions>, "queryKey" | "queryFn">) => import("@tanstack/react-query").UseQueryResult<import("@cartesi/client").ListWithdrawalsReturnType, Error>;
|
|
528827
|
-
|
|
528758
|
+
export {};
|
|
528828
528759
|
//# sourceMappingURL=index.d.cts.map
|