@midnightntwrk/wallet-sdk-indexer-client 1.2.3

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.
Files changed (78) hide show
  1. package/README.md +86 -0
  2. package/dist/effect/Backpressure.d.ts +97 -0
  3. package/dist/effect/Backpressure.js +146 -0
  4. package/dist/effect/ConnectionHelper.d.ts +4 -0
  5. package/dist/effect/ConnectionHelper.js +41 -0
  6. package/dist/effect/HttpQueryClient.d.ts +4 -0
  7. package/dist/effect/HttpQueryClient.js +50 -0
  8. package/dist/effect/Query.d.ts +39 -0
  9. package/dist/effect/Query.js +47 -0
  10. package/dist/effect/QueryClient.d.ts +15 -0
  11. package/dist/effect/QueryClient.js +15 -0
  12. package/dist/effect/QueryRunner.d.ts +11 -0
  13. package/dist/effect/QueryRunner.js +23 -0
  14. package/dist/effect/Subscription.d.ts +25 -0
  15. package/dist/effect/Subscription.js +56 -0
  16. package/dist/effect/SubscriptionClient.d.ts +23 -0
  17. package/dist/effect/SubscriptionClient.js +15 -0
  18. package/dist/effect/WsSubscriptionClient.d.ts +4 -0
  19. package/dist/effect/WsSubscriptionClient.js +89 -0
  20. package/dist/effect/index.d.ts +8 -0
  21. package/dist/effect/index.js +20 -0
  22. package/dist/effect/test/backpressure.test.d.ts +1 -0
  23. package/dist/effect/test/backpressure.test.js +146 -0
  24. package/dist/effect/test/connectionHelper.test.d.ts +1 -0
  25. package/dist/effect/test/connectionHelper.test.js +34 -0
  26. package/dist/effect/test/httpQueryClient.spied.test.d.ts +1 -0
  27. package/dist/effect/test/httpQueryClient.spied.test.js +37 -0
  28. package/dist/effect/test/httpQueryClient.test.d.ts +1 -0
  29. package/dist/effect/test/httpQueryClient.test.js +32 -0
  30. package/dist/effect/test/queryRunner.spied.test.d.ts +1 -0
  31. package/dist/effect/test/queryRunner.spied.test.js +46 -0
  32. package/dist/effect/test/wsSubscriptionClient.spied.test.d.ts +1 -0
  33. package/dist/effect/test/wsSubscriptionClient.spied.test.js +37 -0
  34. package/dist/effect/test/wsSubscriptionClient.test.d.ts +1 -0
  35. package/dist/effect/test/wsSubscriptionClient.test.js +32 -0
  36. package/dist/graphql/generated/fragment-masking.d.ts +19 -0
  37. package/dist/graphql/generated/fragment-masking.js +16 -0
  38. package/dist/graphql/generated/gql.d.ts +61 -0
  39. package/dist/graphql/generated/gql.js +17 -0
  40. package/dist/graphql/generated/graphql.d.ts +1021 -0
  41. package/dist/graphql/generated/graphql.js +700 -0
  42. package/dist/graphql/generated/index.d.ts +2 -0
  43. package/dist/graphql/generated/index.js +2 -0
  44. package/dist/graphql/queries/BlockHash.d.ts +6 -0
  45. package/dist/graphql/queries/BlockHash.js +24 -0
  46. package/dist/graphql/queries/Connect.d.ts +6 -0
  47. package/dist/graphql/queries/Connect.js +19 -0
  48. package/dist/graphql/queries/Disconnect.d.ts +6 -0
  49. package/dist/graphql/queries/Disconnect.js +19 -0
  50. package/dist/graphql/queries/FetchTermsAndConditions.d.ts +6 -0
  51. package/dist/graphql/queries/FetchTermsAndConditions.js +26 -0
  52. package/dist/graphql/queries/TransactionHistoryDetail.d.ts +6 -0
  53. package/dist/graphql/queries/TransactionHistoryDetail.js +30 -0
  54. package/dist/graphql/queries/TransactionStatus.d.ts +6 -0
  55. package/dist/graphql/queries/TransactionStatus.js +34 -0
  56. package/dist/graphql/queries/index.d.ts +6 -0
  57. package/dist/graphql/queries/index.js +18 -0
  58. package/dist/graphql/queries/test/BlockHash.test.d.ts +1 -0
  59. package/dist/graphql/queries/test/BlockHash.test.js +84 -0
  60. package/dist/graphql/subscriptions/DustLedgerEvents.d.ts +6 -0
  61. package/dist/graphql/subscriptions/DustLedgerEvents.js +24 -0
  62. package/dist/graphql/subscriptions/ShieldedTransactions.d.ts +8 -0
  63. package/dist/graphql/subscriptions/ShieldedTransactions.js +54 -0
  64. package/dist/graphql/subscriptions/UnshieldedTransactions.d.ts +8 -0
  65. package/dist/graphql/subscriptions/UnshieldedTransactions.js +68 -0
  66. package/dist/graphql/subscriptions/ZswapEvents.d.ts +6 -0
  67. package/dist/graphql/subscriptions/ZswapEvents.js +24 -0
  68. package/dist/graphql/subscriptions/index.d.ts +4 -0
  69. package/dist/graphql/subscriptions/index.js +16 -0
  70. package/dist/graphql/subscriptions/test/ShieldedTransactions.test.d.ts +1 -0
  71. package/dist/graphql/subscriptions/test/ShieldedTransactions.test.js +55 -0
  72. package/dist/graphql/subscriptions/test/UnshieldedTransactions.test.d.ts +1 -0
  73. package/dist/graphql/subscriptions/test/UnshieldedTransactions.test.js +52 -0
  74. package/dist/graphql/subscriptions/test/ZswapEvents.test.d.ts +1 -0
  75. package/dist/graphql/subscriptions/test/ZswapEvents.test.js +50 -0
  76. package/dist/index.d.ts +3 -0
  77. package/dist/index.js +15 -0
  78. package/package.json +57 -0
@@ -0,0 +1,1021 @@
1
+ import type { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
2
+ export type Maybe<T> = T | null;
3
+ export type InputMaybe<T> = T | null | undefined;
4
+ export type Exact<T extends {
5
+ [key: string]: unknown;
6
+ }> = {
7
+ [K in keyof T]: T[K];
8
+ };
9
+ export type MakeOptional<T, K extends keyof T> = Omit<T, K> & {
10
+ [SubKey in K]?: Maybe<T[SubKey]>;
11
+ };
12
+ export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {
13
+ [SubKey in K]: Maybe<T[SubKey]>;
14
+ };
15
+ export type MakeEmpty<T extends {
16
+ [key: string]: unknown;
17
+ }, K extends keyof T> = {
18
+ [_ in K]?: never;
19
+ };
20
+ export type Incremental<T> = T | {
21
+ [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never;
22
+ };
23
+ /** All built-in and custom scalars, mapped to their actual values */
24
+ export type Scalars = {
25
+ ID: {
26
+ input: string;
27
+ output: string;
28
+ };
29
+ String: {
30
+ input: string;
31
+ output: string;
32
+ };
33
+ Boolean: {
34
+ input: boolean;
35
+ output: boolean;
36
+ };
37
+ Int: {
38
+ input: number;
39
+ output: number;
40
+ };
41
+ Float: {
42
+ input: number;
43
+ output: number;
44
+ };
45
+ CardanoRewardAddress: {
46
+ input: string;
47
+ output: string;
48
+ };
49
+ DustAddress: {
50
+ input: string;
51
+ output: string;
52
+ };
53
+ HexEncoded: {
54
+ input: string;
55
+ output: string;
56
+ };
57
+ Unit: {
58
+ input: null;
59
+ output: null;
60
+ };
61
+ UnshieldedAddress: {
62
+ input: string;
63
+ output: string;
64
+ };
65
+ ViewingKey: {
66
+ input: string;
67
+ output: string;
68
+ };
69
+ };
70
+ /** A block with its relevant data. */
71
+ export type Block = {
72
+ /** The hex-encoded block author. */
73
+ readonly author: Maybe<Scalars['HexEncoded']['output']>;
74
+ /** The block hash. */
75
+ readonly hash: Scalars['HexEncoded']['output'];
76
+ /** The block height. */
77
+ readonly height: Scalars['Int']['output'];
78
+ /** The hex-encoded ledger parameters for this block. */
79
+ readonly ledgerParameters: Scalars['HexEncoded']['output'];
80
+ /** The parent of this block. */
81
+ readonly parent: Maybe<Block>;
82
+ /** The protocol version. */
83
+ readonly protocolVersion: Scalars['Int']['output'];
84
+ /** The system parameters (governance) at this block height. */
85
+ readonly systemParameters: SystemParameters;
86
+ /** The UNIX timestamp. */
87
+ readonly timestamp: Scalars['Int']['output'];
88
+ /** The transactions within this block. */
89
+ readonly transactions: ReadonlyArray<Transaction>;
90
+ };
91
+ /** Either a block hash or a block height. */
92
+ export type BlockOffset =
93
+ /** A hex-encoded block hash. */
94
+ {
95
+ readonly hash: Scalars['HexEncoded']['input'];
96
+ readonly height?: never;
97
+ } /** A block height. */ | {
98
+ readonly hash?: never;
99
+ readonly height: Scalars['Int']['input'];
100
+ };
101
+ export type CollapsedMerkleTree = {
102
+ /** The zswap state end index. */
103
+ readonly endIndex: Scalars['Int']['output'];
104
+ /** The protocol version. */
105
+ readonly protocolVersion: Scalars['Int']['output'];
106
+ /** The zswap state start index. */
107
+ readonly startIndex: Scalars['Int']['output'];
108
+ /** The hex-encoded value. */
109
+ readonly update: Scalars['HexEncoded']['output'];
110
+ };
111
+ /** Committee member for an epoch. */
112
+ export type CommitteeMember = {
113
+ readonly auraPubkeyHex: Maybe<Scalars['String']['output']>;
114
+ readonly epochNo: Scalars['Int']['output'];
115
+ readonly expectedSlots: Scalars['Int']['output'];
116
+ readonly poolIdHex: Maybe<Scalars['String']['output']>;
117
+ readonly position: Scalars['Int']['output'];
118
+ readonly sidechainPubkeyHex: Scalars['String']['output'];
119
+ readonly spoSkHex: Maybe<Scalars['String']['output']>;
120
+ };
121
+ /** A contract action. */
122
+ export type ContractAction = {
123
+ readonly address: Scalars['HexEncoded']['output'];
124
+ readonly state: Scalars['HexEncoded']['output'];
125
+ readonly transaction: Transaction;
126
+ readonly unshieldedBalances: ReadonlyArray<ContractBalance>;
127
+ readonly zswapState: Scalars['HexEncoded']['output'];
128
+ };
129
+ /** Either a block offset or a transaction offset. */
130
+ export type ContractActionOffset =
131
+ /** Either a block hash or a block height. */
132
+ {
133
+ readonly blockOffset: BlockOffset;
134
+ readonly transactionOffset?: never;
135
+ } /** Either a transaction hash or a transaction identifier. */ | {
136
+ readonly blockOffset?: never;
137
+ readonly transactionOffset: TransactionOffset;
138
+ };
139
+ /**
140
+ * Represents a token balance held by a contract. This type is exposed through the GraphQL API to allow clients to query
141
+ * unshielded token balances for any contract action (Deploy, Call, Update).
142
+ */
143
+ export type ContractBalance = {
144
+ /** Balance amount as string to support larger integer values (up to 16 bytes). */
145
+ readonly amount: Scalars['String']['output'];
146
+ /** Hex-encoded token type identifier. */
147
+ readonly tokenType: Scalars['HexEncoded']['output'];
148
+ };
149
+ /** A contract call. */
150
+ export type ContractCall = ContractAction & {
151
+ /** The hex-encoded serialized address. */
152
+ readonly address: Scalars['HexEncoded']['output'];
153
+ /** Contract deploy for this contract call. */
154
+ readonly deploy: ContractDeploy;
155
+ /** The entry point. */
156
+ readonly entryPoint: Scalars['String']['output'];
157
+ /** The hex-encoded serialized state. */
158
+ readonly state: Scalars['HexEncoded']['output'];
159
+ /** Transaction for this contract call. */
160
+ readonly transaction: Transaction;
161
+ /** Unshielded token balances held by this contract. */
162
+ readonly unshieldedBalances: ReadonlyArray<ContractBalance>;
163
+ /** The hex-encoded serialized contract-specific zswap state. */
164
+ readonly zswapState: Scalars['HexEncoded']['output'];
165
+ };
166
+ /** A contract deployment. */
167
+ export type ContractDeploy = ContractAction & {
168
+ /** The hex-encoded serialized address. */
169
+ readonly address: Scalars['HexEncoded']['output'];
170
+ /** The hex-encoded serialized state. */
171
+ readonly state: Scalars['HexEncoded']['output'];
172
+ /** Transaction for this contract deploy. */
173
+ readonly transaction: Transaction;
174
+ /** Unshielded token balances held by this contract. */
175
+ readonly unshieldedBalances: ReadonlyArray<ContractBalance>;
176
+ /** The hex-encoded serialized contract-specific zswap state. */
177
+ readonly zswapState: Scalars['HexEncoded']['output'];
178
+ };
179
+ /** A contract update. */
180
+ export type ContractUpdate = ContractAction & {
181
+ /** The hex-encoded serialized address. */
182
+ readonly address: Scalars['HexEncoded']['output'];
183
+ /** The hex-encoded serialized state. */
184
+ readonly state: Scalars['HexEncoded']['output'];
185
+ /** Transaction for this contract update. */
186
+ readonly transaction: Transaction;
187
+ /** Unshielded token balances held by this contract after the update. */
188
+ readonly unshieldedBalances: ReadonlyArray<ContractBalance>;
189
+ /** The hex-encoded serialized contract-specific zswap state. */
190
+ readonly zswapState: Scalars['HexEncoded']['output'];
191
+ };
192
+ /** The D-parameter controlling validator committee composition. */
193
+ export type DParameter = {
194
+ /** Number of permissioned candidates. */
195
+ readonly numPermissionedCandidates: Scalars['Int']['output'];
196
+ /** Number of registered candidates. */
197
+ readonly numRegisteredCandidates: Scalars['Int']['output'];
198
+ };
199
+ /** D-parameter change record for history queries. */
200
+ export type DParameterChange = {
201
+ /** The hex-encoded block hash where this parameter became effective. */
202
+ readonly blockHash: Scalars['HexEncoded']['output'];
203
+ /** The block height where this parameter became effective. */
204
+ readonly blockHeight: Scalars['Int']['output'];
205
+ /** Number of permissioned candidates. */
206
+ readonly numPermissionedCandidates: Scalars['Int']['output'];
207
+ /** Number of registered candidates. */
208
+ readonly numRegisteredCandidates: Scalars['Int']['output'];
209
+ /** The UNIX timestamp when this parameter became effective. */
210
+ readonly timestamp: Scalars['Int']['output'];
211
+ };
212
+ export type DustGenerationDtimeUpdate = DustLedgerEvent & {
213
+ /** The ID of this dust ledger event. */
214
+ readonly id: Scalars['Int']['output'];
215
+ /** The maximum ID of all dust ledger events. */
216
+ readonly maxId: Scalars['Int']['output'];
217
+ /** The protocol version. */
218
+ readonly protocolVersion: Scalars['Int']['output'];
219
+ /** The hex-encoded serialized event. */
220
+ readonly raw: Scalars['HexEncoded']['output'];
221
+ };
222
+ /** DUST generation status for a specific Cardano reward address. */
223
+ export type DustGenerationStatus = {
224
+ /** The Bech32-encoded Cardano reward address (e.g., stake_test1... or stake1...). */
225
+ readonly cardanoRewardAddress: Scalars['CardanoRewardAddress']['output'];
226
+ /** Current generated DUST capacity in SPECK. */
227
+ readonly currentCapacity: Scalars['String']['output'];
228
+ /** The Bech32m-encoded associated DUST address if registered. */
229
+ readonly dustAddress: Maybe<Scalars['DustAddress']['output']>;
230
+ /** DUST generation rate in SPECK per second. */
231
+ readonly generationRate: Scalars['String']['output'];
232
+ /** Maximum DUST capacity in SPECK. */
233
+ readonly maxCapacity: Scalars['String']['output'];
234
+ /** NIGHT balance backing generation in STAR. */
235
+ readonly nightBalance: Scalars['String']['output'];
236
+ /** Whether this reward address is registered. */
237
+ readonly registered: Scalars['Boolean']['output'];
238
+ /** Cardano UTXO output index for update/unregister operations. */
239
+ readonly utxoOutputIndex: Maybe<Scalars['Int']['output']>;
240
+ /** Cardano UTXO transaction hash for update/unregister operations. */
241
+ readonly utxoTxHash: Maybe<Scalars['HexEncoded']['output']>;
242
+ };
243
+ export type DustInitialUtxo = DustLedgerEvent & {
244
+ /** The ID of this dust ledger event. */
245
+ readonly id: Scalars['Int']['output'];
246
+ /** The maximum ID of all dust ledger events. */
247
+ readonly maxId: Scalars['Int']['output'];
248
+ /** The dust output. */
249
+ readonly output: DustOutput;
250
+ /** The protocol version. */
251
+ readonly protocolVersion: Scalars['Int']['output'];
252
+ /** The hex-encoded serialized event. */
253
+ readonly raw: Scalars['HexEncoded']['output'];
254
+ };
255
+ /** A dust related ledger event. */
256
+ export type DustLedgerEvent = {
257
+ readonly id: Scalars['Int']['output'];
258
+ readonly maxId: Scalars['Int']['output'];
259
+ readonly protocolVersion: Scalars['Int']['output'];
260
+ readonly raw: Scalars['HexEncoded']['output'];
261
+ };
262
+ /** A dust output. */
263
+ export type DustOutput = {
264
+ /** The hex-encoded 32-byte nonce. */
265
+ readonly nonce: Scalars['HexEncoded']['output'];
266
+ };
267
+ export type DustSpendProcessed = DustLedgerEvent & {
268
+ /** The ID of this dust ledger event. */
269
+ readonly id: Scalars['Int']['output'];
270
+ /** The maximum ID of all dust ledger events. */
271
+ readonly maxId: Scalars['Int']['output'];
272
+ /** The protocol version. */
273
+ readonly protocolVersion: Scalars['Int']['output'];
274
+ /** The hex-encoded serialized event. */
275
+ readonly raw: Scalars['HexEncoded']['output'];
276
+ };
277
+ /** Current epoch information. */
278
+ export type EpochInfo = {
279
+ readonly durationSeconds: Scalars['Int']['output'];
280
+ readonly elapsedSeconds: Scalars['Int']['output'];
281
+ readonly epochNo: Scalars['Int']['output'];
282
+ };
283
+ /** SPO performance for an epoch. */
284
+ export type EpochPerf = {
285
+ readonly epochNo: Scalars['Int']['output'];
286
+ readonly expected: Scalars['Int']['output'];
287
+ readonly identityLabel: Maybe<Scalars['String']['output']>;
288
+ readonly poolIdHex: Maybe<Scalars['String']['output']>;
289
+ readonly produced: Scalars['Int']['output'];
290
+ readonly spoSkHex: Scalars['String']['output'];
291
+ readonly stakeSnapshot: Maybe<Scalars['String']['output']>;
292
+ readonly validatorClass: Maybe<Scalars['String']['output']>;
293
+ };
294
+ /** First valid epoch for an SPO identity. */
295
+ export type FirstValidEpoch = {
296
+ readonly firstValidEpoch: Scalars['Int']['output'];
297
+ readonly idKey: Scalars['String']['output'];
298
+ };
299
+ export type Mutation = {
300
+ /** Connect the wallet with the given viewing key and return a session ID. */
301
+ readonly connect: Scalars['HexEncoded']['output'];
302
+ /** Disconnect the wallet with the given session ID. */
303
+ readonly disconnect: Scalars['Unit']['output'];
304
+ };
305
+ export type MutationConnectArgs = {
306
+ viewingKey: Scalars['ViewingKey']['input'];
307
+ };
308
+ export type MutationDisconnectArgs = {
309
+ sessionId: Scalars['HexEncoded']['input'];
310
+ };
311
+ export type ParamChange = DustLedgerEvent & {
312
+ /** The ID of this dust ledger event. */
313
+ readonly id: Scalars['Int']['output'];
314
+ /** The maximum ID of all dust ledger events. */
315
+ readonly maxId: Scalars['Int']['output'];
316
+ /** The protocol version. */
317
+ readonly protocolVersion: Scalars['Int']['output'];
318
+ /** The hex-encoded serialized event. */
319
+ readonly raw: Scalars['HexEncoded']['output'];
320
+ };
321
+ /** Pool metadata from Cardano. */
322
+ export type PoolMetadata = {
323
+ readonly hexId: Maybe<Scalars['String']['output']>;
324
+ readonly homepageUrl: Maybe<Scalars['String']['output']>;
325
+ readonly logoUrl: Maybe<Scalars['String']['output']>;
326
+ readonly name: Maybe<Scalars['String']['output']>;
327
+ readonly poolIdHex: Scalars['String']['output'];
328
+ readonly ticker: Maybe<Scalars['String']['output']>;
329
+ };
330
+ /** Presence event for an SPO in an epoch. */
331
+ export type PresenceEvent = {
332
+ readonly epochNo: Scalars['Int']['output'];
333
+ readonly idKey: Scalars['String']['output'];
334
+ readonly source: Scalars['String']['output'];
335
+ readonly status: Maybe<Scalars['String']['output']>;
336
+ };
337
+ export type Query = {
338
+ /** Find a block for the given optional offset; if not present, the latest block is returned. */
339
+ readonly block: Maybe<Block>;
340
+ /** Get committee membership for an epoch. */
341
+ readonly committee: ReadonlyArray<CommitteeMember>;
342
+ /** Find a contract action for the given address and optional offset. */
343
+ readonly contractAction: Maybe<ContractAction>;
344
+ /** Get current epoch information. */
345
+ readonly currentEpochInfo: Maybe<EpochInfo>;
346
+ /** Get the full history of D-parameter changes for governance auditability. */
347
+ readonly dParameterHistory: ReadonlyArray<DParameterChange>;
348
+ /** Get DUST generation status for specific Cardano reward addresses. */
349
+ readonly dustGenerationStatus: ReadonlyArray<DustGenerationStatus>;
350
+ /** Get epoch performance for all SPOs. */
351
+ readonly epochPerformance: ReadonlyArray<EpochPerf>;
352
+ /** Get epoch utilization (produced/expected ratio). */
353
+ readonly epochUtilization: Maybe<Scalars['Float']['output']>;
354
+ /** Get pool metadata by pool ID. */
355
+ readonly poolMetadata: Maybe<PoolMetadata>;
356
+ /** List pool metadata with pagination. */
357
+ readonly poolMetadataList: ReadonlyArray<PoolMetadata>;
358
+ /** Get first valid epoch for each SPO identity. */
359
+ readonly registeredFirstValidEpochs: ReadonlyArray<FirstValidEpoch>;
360
+ /** Get raw presence events for an epoch range. */
361
+ readonly registeredPresence: ReadonlyArray<PresenceEvent>;
362
+ /** Get registration statistics for an epoch range. */
363
+ readonly registeredSpoSeries: ReadonlyArray<RegisteredStat>;
364
+ /** Get cumulative registration totals for an epoch range. */
365
+ readonly registeredTotalsSeries: ReadonlyArray<RegisteredTotals>;
366
+ /** Get SPO with metadata by pool ID. */
367
+ readonly spoByPoolId: Maybe<Spo>;
368
+ /** Get composite SPO data (identity + metadata + performance). */
369
+ readonly spoCompositeByPoolId: Maybe<SpoComposite>;
370
+ /** Get total count of SPOs. */
371
+ readonly spoCount: Maybe<Scalars['Int']['output']>;
372
+ /** List SPO identities with pagination. */
373
+ readonly spoIdentities: ReadonlyArray<SpoIdentity>;
374
+ /** Get SPO identity by pool ID. */
375
+ readonly spoIdentityByPoolId: Maybe<SpoIdentity>;
376
+ /** List SPOs with optional search. */
377
+ readonly spoList: ReadonlyArray<Spo>;
378
+ /** Get SPO performance by SPO key. */
379
+ readonly spoPerformanceBySpoSk: ReadonlyArray<EpochPerf>;
380
+ /** Get latest SPO performance entries. */
381
+ readonly spoPerformanceLatest: ReadonlyArray<EpochPerf>;
382
+ /** Get stake distribution with search and ordering. */
383
+ readonly stakeDistribution: ReadonlyArray<StakeShare>;
384
+ /** Get SPO identifiers ordered by performance. */
385
+ readonly stakePoolOperators: ReadonlyArray<Scalars['String']['output']>;
386
+ /** Get the full history of Terms and Conditions changes for governance auditability. */
387
+ readonly termsAndConditionsHistory: ReadonlyArray<TermsAndConditionsChange>;
388
+ /** Find transactions for the given offset. */
389
+ readonly transactions: ReadonlyArray<Transaction>;
390
+ };
391
+ export type QueryBlockArgs = {
392
+ offset: InputMaybe<BlockOffset>;
393
+ };
394
+ export type QueryCommitteeArgs = {
395
+ epoch: Scalars['Int']['input'];
396
+ };
397
+ export type QueryContractActionArgs = {
398
+ address: Scalars['HexEncoded']['input'];
399
+ offset: InputMaybe<ContractActionOffset>;
400
+ };
401
+ export type QueryDustGenerationStatusArgs = {
402
+ cardanoRewardAddresses: ReadonlyArray<Scalars['CardanoRewardAddress']['input']>;
403
+ };
404
+ export type QueryEpochPerformanceArgs = {
405
+ epoch: Scalars['Int']['input'];
406
+ limit: InputMaybe<Scalars['Int']['input']>;
407
+ offset: InputMaybe<Scalars['Int']['input']>;
408
+ };
409
+ export type QueryEpochUtilizationArgs = {
410
+ epoch: Scalars['Int']['input'];
411
+ };
412
+ export type QueryPoolMetadataArgs = {
413
+ poolIdHex: Scalars['String']['input'];
414
+ };
415
+ export type QueryPoolMetadataListArgs = {
416
+ limit: InputMaybe<Scalars['Int']['input']>;
417
+ offset: InputMaybe<Scalars['Int']['input']>;
418
+ withNameOnly: InputMaybe<Scalars['Boolean']['input']>;
419
+ };
420
+ export type QueryRegisteredFirstValidEpochsArgs = {
421
+ uptoEpoch: InputMaybe<Scalars['Int']['input']>;
422
+ };
423
+ export type QueryRegisteredPresenceArgs = {
424
+ fromEpoch: Scalars['Int']['input'];
425
+ toEpoch: Scalars['Int']['input'];
426
+ };
427
+ export type QueryRegisteredSpoSeriesArgs = {
428
+ fromEpoch: Scalars['Int']['input'];
429
+ toEpoch: Scalars['Int']['input'];
430
+ };
431
+ export type QueryRegisteredTotalsSeriesArgs = {
432
+ fromEpoch: Scalars['Int']['input'];
433
+ toEpoch: Scalars['Int']['input'];
434
+ };
435
+ export type QuerySpoByPoolIdArgs = {
436
+ poolIdHex: Scalars['String']['input'];
437
+ };
438
+ export type QuerySpoCompositeByPoolIdArgs = {
439
+ poolIdHex: Scalars['String']['input'];
440
+ };
441
+ export type QuerySpoIdentitiesArgs = {
442
+ limit: InputMaybe<Scalars['Int']['input']>;
443
+ offset: InputMaybe<Scalars['Int']['input']>;
444
+ };
445
+ export type QuerySpoIdentityByPoolIdArgs = {
446
+ poolIdHex: Scalars['String']['input'];
447
+ };
448
+ export type QuerySpoListArgs = {
449
+ limit: InputMaybe<Scalars['Int']['input']>;
450
+ offset: InputMaybe<Scalars['Int']['input']>;
451
+ search: InputMaybe<Scalars['String']['input']>;
452
+ };
453
+ export type QuerySpoPerformanceBySpoSkArgs = {
454
+ limit: InputMaybe<Scalars['Int']['input']>;
455
+ offset: InputMaybe<Scalars['Int']['input']>;
456
+ spoSkHex: Scalars['String']['input'];
457
+ };
458
+ export type QuerySpoPerformanceLatestArgs = {
459
+ limit: InputMaybe<Scalars['Int']['input']>;
460
+ offset: InputMaybe<Scalars['Int']['input']>;
461
+ };
462
+ export type QueryStakeDistributionArgs = {
463
+ limit: InputMaybe<Scalars['Int']['input']>;
464
+ offset: InputMaybe<Scalars['Int']['input']>;
465
+ orderByStakeDesc: InputMaybe<Scalars['Boolean']['input']>;
466
+ search: InputMaybe<Scalars['String']['input']>;
467
+ };
468
+ export type QueryStakePoolOperatorsArgs = {
469
+ limit: InputMaybe<Scalars['Int']['input']>;
470
+ };
471
+ export type QueryTransactionsArgs = {
472
+ offset: TransactionOffset;
473
+ };
474
+ /** Registration statistics for an epoch. */
475
+ export type RegisteredStat = {
476
+ readonly dparam: Maybe<Scalars['Float']['output']>;
477
+ readonly epochNo: Scalars['Int']['output'];
478
+ readonly federatedInvalidCount: Scalars['Int']['output'];
479
+ readonly federatedValidCount: Scalars['Int']['output'];
480
+ readonly registeredInvalidCount: Scalars['Int']['output'];
481
+ readonly registeredValidCount: Scalars['Int']['output'];
482
+ };
483
+ /** Cumulative registration totals for an epoch. */
484
+ export type RegisteredTotals = {
485
+ readonly epochNo: Scalars['Int']['output'];
486
+ readonly newlyRegistered: Scalars['Int']['output'];
487
+ readonly totalRegistered: Scalars['Int']['output'];
488
+ };
489
+ /** A regular Midnight transaction. */
490
+ export type RegularTransaction = Transaction & {
491
+ /** The block for this transaction. */
492
+ readonly block: Block;
493
+ /** The contract actions for this transaction. */
494
+ readonly contractActions: ReadonlyArray<ContractAction>;
495
+ /** Dust ledger events of this transaction. */
496
+ readonly dustLedgerEvents: ReadonlyArray<DustLedgerEvent>;
497
+ /** The zswap state end index. */
498
+ readonly endIndex: Scalars['Int']['output'];
499
+ /** Fee information for this transaction. */
500
+ readonly fees: TransactionFees;
501
+ /** The hex-encoded transaction hash. */
502
+ readonly hash: Scalars['HexEncoded']['output'];
503
+ /** The transaction ID. */
504
+ readonly id: Scalars['Int']['output'];
505
+ /** The hex-encoded serialized transaction identifiers. */
506
+ readonly identifiers: ReadonlyArray<Scalars['HexEncoded']['output']>;
507
+ /** The hex-encoded serialized merkle-tree root. */
508
+ readonly merkleTreeRoot: Scalars['HexEncoded']['output'];
509
+ /** The protocol version. */
510
+ readonly protocolVersion: Scalars['Int']['output'];
511
+ /** The hex-encoded serialized transaction content. */
512
+ readonly raw: Scalars['HexEncoded']['output'];
513
+ /** The zswap state start index. */
514
+ readonly startIndex: Scalars['Int']['output'];
515
+ /** The result of applying this transaction to the ledger state. */
516
+ readonly transactionResult: TransactionResult;
517
+ /** Unshielded UTXOs created by this transaction. */
518
+ readonly unshieldedCreatedOutputs: ReadonlyArray<UnshieldedUtxo>;
519
+ /** Unshielded UTXOs spent (consumed) by this transaction. */
520
+ readonly unshieldedSpentOutputs: ReadonlyArray<UnshieldedUtxo>;
521
+ /** Zswap ledger events of this transaction. */
522
+ readonly zswapLedgerEvents: ReadonlyArray<ZswapLedgerEvent>;
523
+ };
524
+ /** A transaction relevant for the subscribing wallet and an optional collapsed merkle tree. */
525
+ export type RelevantTransaction = {
526
+ /** An optional collapsed merkle tree. */
527
+ readonly collapsedMerkleTree: Maybe<CollapsedMerkleTree>;
528
+ /** A transaction relevant for the subscribing wallet. */
529
+ readonly transaction: RegularTransaction;
530
+ };
531
+ /** One of many segments for a partially successful transaction result showing success for some segment. */
532
+ export type Segment = {
533
+ /** Segment ID. */
534
+ readonly id: Scalars['Int']['output'];
535
+ /** Successful or not. */
536
+ readonly success: Scalars['Boolean']['output'];
537
+ };
538
+ /** An event of the shielded transactions subscription. */
539
+ export type ShieldedTransactionsEvent = RelevantTransaction | ShieldedTransactionsProgress;
540
+ /** Information about the shielded transactions indexing progress. */
541
+ export type ShieldedTransactionsProgress = {
542
+ /**
543
+ * The highest zswap state end index (see `endIndex` of `Transaction`) of all transactions checked for relevance.
544
+ * Initially less than and eventually (when some wallet has been fully indexed) equal to `highest_end_index`. A value
545
+ * of zero (very unlikely) means that no wallet has subscribed before and indexing for the subscribing wallet has not
546
+ * yet started.
547
+ */
548
+ readonly highestCheckedEndIndex: Scalars['Int']['output'];
549
+ /**
550
+ * The highest zswap state end index (see `endIndex` of `Transaction`) of all transactions. It represents the known
551
+ * state of the blockchain. A value of zero (completely unlikely) means that no shielded transactions have been
552
+ * indexed yet.
553
+ */
554
+ readonly highestEndIndex: Scalars['Int']['output'];
555
+ /**
556
+ * The highest zswap state end index (see `endIndex` of `Transaction`) of all relevant transactions for the
557
+ * subscribing wallet. Usually less than `highest_checked_end_index` unless the latest checked transaction is relevant
558
+ * for the subscribing wallet. A value of zero means that no relevant transactions have been indexed for the
559
+ * subscribing wallet.
560
+ */
561
+ readonly highestRelevantEndIndex: Scalars['Int']['output'];
562
+ };
563
+ /** SPO with optional metadata. */
564
+ export type Spo = {
565
+ readonly auraPubkeyHex: Maybe<Scalars['String']['output']>;
566
+ readonly homepageUrl: Maybe<Scalars['String']['output']>;
567
+ readonly logoUrl: Maybe<Scalars['String']['output']>;
568
+ readonly name: Maybe<Scalars['String']['output']>;
569
+ readonly poolIdHex: Scalars['String']['output'];
570
+ readonly sidechainPubkeyHex: Scalars['String']['output'];
571
+ readonly ticker: Maybe<Scalars['String']['output']>;
572
+ readonly validatorClass: Scalars['String']['output'];
573
+ };
574
+ /** Composite SPO data (identity + metadata + performance). */
575
+ export type SpoComposite = {
576
+ readonly identity: Maybe<SpoIdentity>;
577
+ readonly metadata: Maybe<PoolMetadata>;
578
+ readonly performance: ReadonlyArray<EpochPerf>;
579
+ };
580
+ /** SPO identity information. */
581
+ export type SpoIdentity = {
582
+ readonly auraPubkeyHex: Maybe<Scalars['String']['output']>;
583
+ readonly mainchainPubkeyHex: Scalars['String']['output'];
584
+ readonly poolIdHex: Scalars['String']['output'];
585
+ readonly sidechainPubkeyHex: Scalars['String']['output'];
586
+ readonly validatorClass: Scalars['String']['output'];
587
+ };
588
+ /**
589
+ * Stake share information for an SPO.
590
+ *
591
+ * Values are sourced from mainchain pool data (e.g., Blockfrost) and keyed by Cardano pool_id.
592
+ */
593
+ export type StakeShare = {
594
+ /** Current active stake in lovelace. */
595
+ readonly activeStake: Maybe<Scalars['String']['output']>;
596
+ /** Declared pledge in lovelace. */
597
+ readonly declaredPledge: Maybe<Scalars['String']['output']>;
598
+ /** Pool homepage URL from metadata. */
599
+ readonly homepageUrl: Maybe<Scalars['String']['output']>;
600
+ /** Number of live delegators. */
601
+ readonly liveDelegators: Maybe<Scalars['Int']['output']>;
602
+ /** Current live pledge in lovelace. */
603
+ readonly livePledge: Maybe<Scalars['String']['output']>;
604
+ /** Saturation ratio (0.0 to 1.0+). */
605
+ readonly liveSaturation: Maybe<Scalars['Float']['output']>;
606
+ /** Current live stake in lovelace. */
607
+ readonly liveStake: Maybe<Scalars['String']['output']>;
608
+ /** Pool logo URL from metadata. */
609
+ readonly logoUrl: Maybe<Scalars['String']['output']>;
610
+ /** Pool name from metadata. */
611
+ readonly name: Maybe<Scalars['String']['output']>;
612
+ /** Cardano pool ID (56-character hex string). */
613
+ readonly poolIdHex: Scalars['String']['output'];
614
+ /** Stake share as a fraction of total stake. */
615
+ readonly stakeShare: Maybe<Scalars['Float']['output']>;
616
+ /** Pool ticker from metadata. */
617
+ readonly ticker: Maybe<Scalars['String']['output']>;
618
+ };
619
+ export type Subscription = {
620
+ /** Subscribe to blocks starting at the given offset or at the latest block if the offset is omitted. */
621
+ readonly blocks: Block;
622
+ /**
623
+ * Subscribe to contract actions with the given address starting at the given offset or at the latest block if the
624
+ * offset is omitted.
625
+ */
626
+ readonly contractActions: ContractAction;
627
+ /** Subscribe to dust ledger events starting at the given ID or at the very start if omitted. */
628
+ readonly dustLedgerEvents: DustLedgerEvent;
629
+ /**
630
+ * Subscribe to shielded transaction events for the given session ID starting at the given index or at zero if
631
+ * omitted.
632
+ */
633
+ readonly shieldedTransactions: ShieldedTransactionsEvent;
634
+ /** Subscribe unshielded transaction events for the given address and the given transaction ID or zero if omitted. */
635
+ readonly unshieldedTransactions: UnshieldedTransactionsEvent;
636
+ /** Subscribe to zswap ledger events starting at the given ID or at the very start if omitted. */
637
+ readonly zswapLedgerEvents: ZswapLedgerEvent;
638
+ };
639
+ export type SubscriptionBlocksArgs = {
640
+ offset: InputMaybe<BlockOffset>;
641
+ };
642
+ export type SubscriptionContractActionsArgs = {
643
+ address: Scalars['HexEncoded']['input'];
644
+ offset: InputMaybe<BlockOffset>;
645
+ };
646
+ export type SubscriptionDustLedgerEventsArgs = {
647
+ id: InputMaybe<Scalars['Int']['input']>;
648
+ };
649
+ export type SubscriptionShieldedTransactionsArgs = {
650
+ index: InputMaybe<Scalars['Int']['input']>;
651
+ sessionId: Scalars['HexEncoded']['input'];
652
+ };
653
+ export type SubscriptionUnshieldedTransactionsArgs = {
654
+ address: Scalars['UnshieldedAddress']['input'];
655
+ transactionId: InputMaybe<Scalars['Int']['input']>;
656
+ };
657
+ export type SubscriptionZswapLedgerEventsArgs = {
658
+ id: InputMaybe<Scalars['Int']['input']>;
659
+ };
660
+ /** System parameters at a specific block height. */
661
+ export type SystemParameters = {
662
+ /** The D-parameter controlling validator committee composition. */
663
+ readonly dParameter: DParameter;
664
+ /** The current Terms and Conditions, if any have been set. */
665
+ readonly termsAndConditions: Maybe<TermsAndConditions>;
666
+ };
667
+ /** A system Midnight transaction. */
668
+ export type SystemTransaction = Transaction & {
669
+ /** The block for this transaction. */
670
+ readonly block: Block;
671
+ /** The contract actions for this transaction. */
672
+ readonly contractActions: ReadonlyArray<ContractAction>;
673
+ /** Dust ledger events of this transaction. */
674
+ readonly dustLedgerEvents: ReadonlyArray<DustLedgerEvent>;
675
+ /** The hex-encoded transaction hash. */
676
+ readonly hash: Scalars['HexEncoded']['output'];
677
+ /** The transaction ID. */
678
+ readonly id: Scalars['Int']['output'];
679
+ /** The protocol version. */
680
+ readonly protocolVersion: Scalars['Int']['output'];
681
+ /** The hex-encoded serialized transaction content. */
682
+ readonly raw: Scalars['HexEncoded']['output'];
683
+ /** Unshielded UTXOs created by this transaction. */
684
+ readonly unshieldedCreatedOutputs: ReadonlyArray<UnshieldedUtxo>;
685
+ /** Unshielded UTXOs spent (consumed) by this transaction. */
686
+ readonly unshieldedSpentOutputs: ReadonlyArray<UnshieldedUtxo>;
687
+ /** Zswap ledger events of this transaction. */
688
+ readonly zswapLedgerEvents: ReadonlyArray<ZswapLedgerEvent>;
689
+ };
690
+ /** Terms and Conditions agreement. */
691
+ export type TermsAndConditions = {
692
+ /** The hex-encoded hash of the Terms and Conditions document. */
693
+ readonly hash: Scalars['HexEncoded']['output'];
694
+ /** The URL where the Terms and Conditions can be found. */
695
+ readonly url: Scalars['String']['output'];
696
+ };
697
+ /** Terms and Conditions change record for history queries. */
698
+ export type TermsAndConditionsChange = {
699
+ /** The hex-encoded block hash where this T&C version became effective. */
700
+ readonly blockHash: Scalars['HexEncoded']['output'];
701
+ /** The block height where this T&C version became effective. */
702
+ readonly blockHeight: Scalars['Int']['output'];
703
+ /** The hex-encoded hash of the Terms and Conditions document. */
704
+ readonly hash: Scalars['HexEncoded']['output'];
705
+ /** The UNIX timestamp when this T&C version became effective. */
706
+ readonly timestamp: Scalars['Int']['output'];
707
+ /** The URL where the Terms and Conditions can be found. */
708
+ readonly url: Scalars['String']['output'];
709
+ };
710
+ /** A Midnight transaction. */
711
+ export type Transaction = {
712
+ readonly block: Block;
713
+ readonly contractActions: ReadonlyArray<ContractAction>;
714
+ readonly dustLedgerEvents: ReadonlyArray<DustLedgerEvent>;
715
+ readonly hash: Scalars['HexEncoded']['output'];
716
+ readonly id: Scalars['Int']['output'];
717
+ readonly protocolVersion: Scalars['Int']['output'];
718
+ readonly raw: Scalars['HexEncoded']['output'];
719
+ readonly unshieldedCreatedOutputs: ReadonlyArray<UnshieldedUtxo>;
720
+ readonly unshieldedSpentOutputs: ReadonlyArray<UnshieldedUtxo>;
721
+ readonly zswapLedgerEvents: ReadonlyArray<ZswapLedgerEvent>;
722
+ };
723
+ /** Fees information for a transaction, including both paid and estimated fees. */
724
+ export type TransactionFees = {
725
+ /** The estimated fees that was calculated for this transaction in DUST. */
726
+ readonly estimatedFees: Scalars['String']['output'];
727
+ /** The actual fees paid for this transaction in DUST. */
728
+ readonly paidFees: Scalars['String']['output'];
729
+ };
730
+ /** Either a transaction hash or a transaction identifier. */
731
+ export type TransactionOffset =
732
+ /** A hex-encoded transaction hash. */
733
+ {
734
+ readonly hash: Scalars['HexEncoded']['input'];
735
+ readonly identifier?: never;
736
+ } /** A hex-encoded transaction identifier. */ | {
737
+ readonly hash?: never;
738
+ readonly identifier: Scalars['HexEncoded']['input'];
739
+ };
740
+ /**
741
+ * The result of applying a transaction to the ledger state. In case of a partial success (status), there will be
742
+ * segments.
743
+ */
744
+ export type TransactionResult = {
745
+ readonly segments: Maybe<ReadonlyArray<Segment>>;
746
+ readonly status: TransactionResultStatus;
747
+ };
748
+ /** The status of the transaction result: success, partial success or failure. */
749
+ export type TransactionResultStatus = 'FAILURE' | 'PARTIAL_SUCCESS' | 'SUCCESS' | '%future added value';
750
+ /** A transaction that created and/or spent UTXOs alongside these and other information. */
751
+ export type UnshieldedTransaction = {
752
+ /** UTXOs created in the above transaction, possibly empty. */
753
+ readonly createdUtxos: ReadonlyArray<UnshieldedUtxo>;
754
+ /** UTXOs spent in the above transaction, possibly empty. */
755
+ readonly spentUtxos: ReadonlyArray<UnshieldedUtxo>;
756
+ /** The transaction that created and/or spent UTXOs. */
757
+ readonly transaction: Transaction;
758
+ };
759
+ /** An event of the unshielded transactions subscription. */
760
+ export type UnshieldedTransactionsEvent = UnshieldedTransaction | UnshieldedTransactionsProgress;
761
+ /** Information about the unshielded indexing progress. */
762
+ export type UnshieldedTransactionsProgress = {
763
+ /** The highest transaction ID of all currently known transactions for a subscribed address. */
764
+ readonly highestTransactionId: Scalars['Int']['output'];
765
+ };
766
+ /** Represents an unshielded UTXO. */
767
+ export type UnshieldedUtxo = {
768
+ /** Transaction that created this UTXO. */
769
+ readonly createdAtTransaction: Transaction;
770
+ /** The creation time in seconds. */
771
+ readonly ctime: Maybe<Scalars['Int']['output']>;
772
+ /** The hex-encoded initial nonce for DUST generation tracking. */
773
+ readonly initialNonce: Scalars['HexEncoded']['output'];
774
+ /** The hex-encoded serialized intent hash. */
775
+ readonly intentHash: Scalars['HexEncoded']['output'];
776
+ /** Index of this output within its creating transaction. */
777
+ readonly outputIndex: Scalars['Int']['output'];
778
+ /** Owner Bech32m-encoded address. */
779
+ readonly owner: Scalars['UnshieldedAddress']['output'];
780
+ /** Whether this UTXO is registered for DUST generation. */
781
+ readonly registeredForDustGeneration: Scalars['Boolean']['output'];
782
+ /** Transaction that spent this UTXO. */
783
+ readonly spentAtTransaction: Maybe<Transaction>;
784
+ /** Token hex-encoded serialized token type. */
785
+ readonly tokenType: Scalars['HexEncoded']['output'];
786
+ /** UTXO value (quantity) as a string to support u128. */
787
+ readonly value: Scalars['String']['output'];
788
+ };
789
+ /** A zswap related ledger event. */
790
+ export type ZswapLedgerEvent = {
791
+ /** The ID of this zswap ledger event. */
792
+ readonly id: Scalars['Int']['output'];
793
+ /** The maximum ID of all zswap ledger events. */
794
+ readonly maxId: Scalars['Int']['output'];
795
+ /** The protocol version. */
796
+ readonly protocolVersion: Scalars['Int']['output'];
797
+ /** The hex-encoded serialized event. */
798
+ readonly raw: Scalars['HexEncoded']['output'];
799
+ };
800
+ export type BlockHashQueryVariables = Exact<{
801
+ offset: InputMaybe<BlockOffset>;
802
+ }>;
803
+ export type BlockHashQuery = {
804
+ readonly block: {
805
+ readonly height: number;
806
+ readonly hash: string;
807
+ readonly ledgerParameters: string;
808
+ readonly timestamp: number;
809
+ } | null;
810
+ };
811
+ export type ConnectMutationVariables = Exact<{
812
+ viewingKey: Scalars['ViewingKey']['input'];
813
+ }>;
814
+ export type ConnectMutation = {
815
+ readonly connect: string;
816
+ };
817
+ export type DisconnectMutationVariables = Exact<{
818
+ sessionId: Scalars['HexEncoded']['input'];
819
+ }>;
820
+ export type DisconnectMutation = {
821
+ readonly disconnect: null;
822
+ };
823
+ export type FetchTermsAndConditionsQueryVariables = Exact<{
824
+ [key: string]: never;
825
+ }>;
826
+ export type FetchTermsAndConditionsQuery = {
827
+ readonly block: {
828
+ readonly systemParameters: {
829
+ readonly termsAndConditions: {
830
+ readonly hash: string;
831
+ readonly url: string;
832
+ } | null;
833
+ };
834
+ } | null;
835
+ };
836
+ export type TransactionHistoryDetailQueryVariables = Exact<{
837
+ transactionHash: Scalars['HexEncoded']['input'];
838
+ }>;
839
+ export type TransactionHistoryDetailQuery = {
840
+ readonly transactions: ReadonlyArray<{
841
+ readonly __typename: 'RegularTransaction';
842
+ readonly hash: string;
843
+ readonly transactionResult: {
844
+ readonly status: TransactionResultStatus;
845
+ };
846
+ readonly block: {
847
+ readonly timestamp: number;
848
+ };
849
+ } | {
850
+ readonly __typename: 'SystemTransaction';
851
+ readonly hash: string;
852
+ readonly block: {
853
+ readonly timestamp: number;
854
+ };
855
+ }>;
856
+ };
857
+ export type TransactionStatusQueryVariables = Exact<{
858
+ transactionId: Scalars['HexEncoded']['input'];
859
+ }>;
860
+ export type TransactionStatusQuery = {
861
+ readonly transactions: ReadonlyArray<{
862
+ readonly __typename: 'RegularTransaction';
863
+ readonly identifiers: ReadonlyArray<string>;
864
+ readonly transactionResult: {
865
+ readonly __typename: 'TransactionResult';
866
+ readonly status: TransactionResultStatus;
867
+ readonly segments: ReadonlyArray<{
868
+ readonly id: number;
869
+ readonly success: boolean;
870
+ }> | null;
871
+ };
872
+ } | {
873
+ readonly __typename: 'SystemTransaction';
874
+ }>;
875
+ };
876
+ export type DustLedgerEventsSubscriptionVariables = Exact<{
877
+ id: InputMaybe<Scalars['Int']['input']>;
878
+ }>;
879
+ export type DustLedgerEventsSubscription = {
880
+ readonly dustLedgerEvents: {
881
+ readonly id: number;
882
+ readonly raw: string;
883
+ readonly maxId: number;
884
+ readonly type: 'DustGenerationDtimeUpdate';
885
+ } | {
886
+ readonly id: number;
887
+ readonly raw: string;
888
+ readonly maxId: number;
889
+ readonly type: 'DustInitialUtxo';
890
+ } | {
891
+ readonly id: number;
892
+ readonly raw: string;
893
+ readonly maxId: number;
894
+ readonly type: 'DustSpendProcessed';
895
+ } | {
896
+ readonly id: number;
897
+ readonly raw: string;
898
+ readonly maxId: number;
899
+ readonly type: 'ParamChange';
900
+ };
901
+ };
902
+ export type ShieldedTransactionsSubscriptionVariables = Exact<{
903
+ sessionId: Scalars['HexEncoded']['input'];
904
+ index: InputMaybe<Scalars['Int']['input']>;
905
+ }>;
906
+ export type ShieldedTransactionsSubscription = {
907
+ readonly shieldedTransactions: {
908
+ readonly __typename: 'RelevantTransaction';
909
+ readonly transaction: {
910
+ readonly id: number;
911
+ readonly raw: string;
912
+ readonly hash: string;
913
+ readonly protocolVersion: number;
914
+ readonly identifiers: ReadonlyArray<string>;
915
+ readonly startIndex: number;
916
+ readonly endIndex: number;
917
+ readonly fees: {
918
+ readonly paidFees: string;
919
+ readonly estimatedFees: string;
920
+ };
921
+ readonly transactionResult: {
922
+ readonly status: TransactionResultStatus;
923
+ readonly segments: ReadonlyArray<{
924
+ readonly id: number;
925
+ readonly success: boolean;
926
+ }> | null;
927
+ };
928
+ };
929
+ readonly collapsedMerkleTree: {
930
+ readonly startIndex: number;
931
+ readonly endIndex: number;
932
+ readonly update: string;
933
+ readonly protocolVersion: number;
934
+ } | null;
935
+ } | {
936
+ readonly __typename: 'ShieldedTransactionsProgress';
937
+ readonly highestEndIndex: number;
938
+ readonly highestCheckedEndIndex: number;
939
+ readonly highestRelevantEndIndex: number;
940
+ };
941
+ };
942
+ export type UnshieldedTransactionsSubscriptionVariables = Exact<{
943
+ address: Scalars['UnshieldedAddress']['input'];
944
+ transactionId: InputMaybe<Scalars['Int']['input']>;
945
+ }>;
946
+ export type UnshieldedTransactionsSubscription = {
947
+ readonly unshieldedTransactions: {
948
+ readonly type: 'UnshieldedTransaction';
949
+ readonly transaction: {
950
+ readonly identifiers: ReadonlyArray<string>;
951
+ readonly id: number;
952
+ readonly hash: string;
953
+ readonly protocolVersion: number;
954
+ readonly type: 'RegularTransaction';
955
+ readonly fees: {
956
+ readonly paidFees: string;
957
+ readonly estimatedFees: string;
958
+ };
959
+ readonly transactionResult: {
960
+ readonly status: TransactionResultStatus;
961
+ readonly segments: ReadonlyArray<{
962
+ readonly id: number;
963
+ readonly success: boolean;
964
+ }> | null;
965
+ };
966
+ readonly block: {
967
+ readonly timestamp: number;
968
+ };
969
+ } | {
970
+ readonly id: number;
971
+ readonly hash: string;
972
+ readonly protocolVersion: number;
973
+ readonly type: 'SystemTransaction';
974
+ readonly block: {
975
+ readonly timestamp: number;
976
+ };
977
+ };
978
+ readonly createdUtxos: ReadonlyArray<{
979
+ readonly owner: string;
980
+ readonly tokenType: string;
981
+ readonly value: string;
982
+ readonly outputIndex: number;
983
+ readonly intentHash: string;
984
+ readonly ctime: number | null;
985
+ readonly registeredForDustGeneration: boolean;
986
+ }>;
987
+ readonly spentUtxos: ReadonlyArray<{
988
+ readonly owner: string;
989
+ readonly tokenType: string;
990
+ readonly value: string;
991
+ readonly outputIndex: number;
992
+ readonly intentHash: string;
993
+ readonly ctime: number | null;
994
+ readonly registeredForDustGeneration: boolean;
995
+ }>;
996
+ } | {
997
+ readonly highestTransactionId: number;
998
+ readonly type: 'UnshieldedTransactionsProgress';
999
+ };
1000
+ };
1001
+ export type ZswapEventsSubscriptionVariables = Exact<{
1002
+ id: InputMaybe<Scalars['Int']['input']>;
1003
+ }>;
1004
+ export type ZswapEventsSubscription = {
1005
+ readonly zswapLedgerEvents: {
1006
+ readonly id: number;
1007
+ readonly raw: string;
1008
+ readonly protocolVersion: number;
1009
+ readonly maxId: number;
1010
+ };
1011
+ };
1012
+ export declare const BlockHashDocument: DocumentNode<BlockHashQuery, BlockHashQueryVariables>;
1013
+ export declare const ConnectDocument: DocumentNode<ConnectMutation, ConnectMutationVariables>;
1014
+ export declare const DisconnectDocument: DocumentNode<DisconnectMutation, DisconnectMutationVariables>;
1015
+ export declare const FetchTermsAndConditionsDocument: DocumentNode<FetchTermsAndConditionsQuery, FetchTermsAndConditionsQueryVariables>;
1016
+ export declare const TransactionHistoryDetailDocument: DocumentNode<TransactionHistoryDetailQuery, TransactionHistoryDetailQueryVariables>;
1017
+ export declare const TransactionStatusDocument: DocumentNode<TransactionStatusQuery, TransactionStatusQueryVariables>;
1018
+ export declare const DustLedgerEventsDocument: DocumentNode<DustLedgerEventsSubscription, DustLedgerEventsSubscriptionVariables>;
1019
+ export declare const ShieldedTransactionsDocument: DocumentNode<ShieldedTransactionsSubscription, ShieldedTransactionsSubscriptionVariables>;
1020
+ export declare const UnshieldedTransactionsDocument: DocumentNode<UnshieldedTransactionsSubscription, UnshieldedTransactionsSubscriptionVariables>;
1021
+ export declare const ZswapEventsDocument: DocumentNode<ZswapEventsSubscription, ZswapEventsSubscriptionVariables>;