import type { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core'; export type Maybe = T | null; export type InputMaybe = T | null | undefined; export type Exact = { [K in keyof T]: T[K]; }; export type MakeOptional = Omit & { [SubKey in K]?: Maybe; }; export type MakeMaybe = Omit & { [SubKey in K]: Maybe; }; export type MakeEmpty = { [_ in K]?: never; }; export type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never; }; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { ID: { input: string; output: string; }; String: { input: string; output: string; }; Boolean: { input: boolean; output: boolean; }; Int: { input: number; output: number; }; Float: { input: number; output: number; }; CardanoRewardAddress: { input: string; output: string; }; DustAddress: { input: string; output: string; }; HexEncoded: { input: string; output: string; }; Unit: { input: null; output: null; }; UnshieldedAddress: { input: string; output: string; }; ViewingKey: { input: string; output: string; }; }; /** A block with its relevant data. */ export type Block = { /** The hex-encoded block author. */ readonly author: Maybe; /** The block hash. */ readonly hash: Scalars['HexEncoded']['output']; /** The block height. */ readonly height: Scalars['Int']['output']; /** The hex-encoded ledger parameters for this block. */ readonly ledgerParameters: Scalars['HexEncoded']['output']; /** The parent of this block. */ readonly parent: Maybe; /** The protocol version. */ readonly protocolVersion: Scalars['Int']['output']; /** The system parameters (governance) at this block height. */ readonly systemParameters: SystemParameters; /** The UNIX timestamp. */ readonly timestamp: Scalars['Int']['output']; /** The transactions within this block. */ readonly transactions: ReadonlyArray; }; /** Either a block hash or a block height. */ export type BlockOffset = /** A hex-encoded block hash. */ { readonly hash: Scalars['HexEncoded']['input']; readonly height?: never; } | /** A block height. */ { readonly hash?: never; readonly height: Scalars['Int']['input']; }; export type CollapsedMerkleTree = { /** The zswap state end index. */ readonly endIndex: Scalars['Int']['output']; /** The protocol version. */ readonly protocolVersion: Scalars['Int']['output']; /** The zswap state start index. */ readonly startIndex: Scalars['Int']['output']; /** The hex-encoded value. */ readonly update: Scalars['HexEncoded']['output']; }; /** Committee member for an epoch. */ export type CommitteeMember = { readonly auraPubkeyHex: Maybe; readonly epochNo: Scalars['Int']['output']; readonly expectedSlots: Scalars['Int']['output']; readonly poolIdHex: Maybe; readonly position: Scalars['Int']['output']; readonly sidechainPubkeyHex: Scalars['String']['output']; readonly spoSkHex: Maybe; }; /** A contract action. */ export type ContractAction = { readonly address: Scalars['HexEncoded']['output']; readonly state: Scalars['HexEncoded']['output']; readonly transaction: Transaction; readonly unshieldedBalances: ReadonlyArray; readonly zswapState: Scalars['HexEncoded']['output']; }; /** Either a block offset or a transaction offset. */ export type ContractActionOffset = /** Either a block hash or a block height. */ { readonly blockOffset: BlockOffset; readonly transactionOffset?: never; } | /** Either a transaction hash or a transaction identifier. */ { readonly blockOffset?: never; readonly transactionOffset: TransactionOffset; }; /** * Represents a token balance held by a contract. * This type is exposed through the GraphQL API to allow clients to query * unshielded token balances for any contract action (Deploy, Call, Update). */ export type ContractBalance = { /** Balance amount as string to support larger integer values (up to 16 bytes). */ readonly amount: Scalars['String']['output']; /** Hex-encoded token type identifier. */ readonly tokenType: Scalars['HexEncoded']['output']; }; /** A contract call. */ export type ContractCall = ContractAction & { /** The hex-encoded serialized address. */ readonly address: Scalars['HexEncoded']['output']; /** Contract deploy for this contract call. */ readonly deploy: ContractDeploy; /** The entry point. */ readonly entryPoint: Scalars['String']['output']; /** The hex-encoded serialized state. */ readonly state: Scalars['HexEncoded']['output']; /** Transaction for this contract call. */ readonly transaction: Transaction; /** Unshielded token balances held by this contract. */ readonly unshieldedBalances: ReadonlyArray; /** The hex-encoded serialized contract-specific zswap state. */ readonly zswapState: Scalars['HexEncoded']['output']; }; /** A contract deployment. */ export type ContractDeploy = ContractAction & { /** The hex-encoded serialized address. */ readonly address: Scalars['HexEncoded']['output']; /** The hex-encoded serialized state. */ readonly state: Scalars['HexEncoded']['output']; /** Transaction for this contract deploy. */ readonly transaction: Transaction; /** Unshielded token balances held by this contract. */ readonly unshieldedBalances: ReadonlyArray; /** The hex-encoded serialized contract-specific zswap state. */ readonly zswapState: Scalars['HexEncoded']['output']; }; /** A contract update. */ export type ContractUpdate = ContractAction & { /** The hex-encoded serialized address. */ readonly address: Scalars['HexEncoded']['output']; /** The hex-encoded serialized state. */ readonly state: Scalars['HexEncoded']['output']; /** Transaction for this contract update. */ readonly transaction: Transaction; /** Unshielded token balances held by this contract after the update. */ readonly unshieldedBalances: ReadonlyArray; /** The hex-encoded serialized contract-specific zswap state. */ readonly zswapState: Scalars['HexEncoded']['output']; }; /** The D-parameter controlling validator committee composition. */ export type DParameter = { /** Number of permissioned candidates. */ readonly numPermissionedCandidates: Scalars['Int']['output']; /** Number of registered candidates. */ readonly numRegisteredCandidates: Scalars['Int']['output']; }; /** D-parameter change record for history queries. */ export type DParameterChange = { /** The hex-encoded block hash where this parameter became effective. */ readonly blockHash: Scalars['HexEncoded']['output']; /** The block height where this parameter became effective. */ readonly blockHeight: Scalars['Int']['output']; /** Number of permissioned candidates. */ readonly numPermissionedCandidates: Scalars['Int']['output']; /** Number of registered candidates. */ readonly numRegisteredCandidates: Scalars['Int']['output']; /** The UNIX timestamp when this parameter became effective. */ readonly timestamp: Scalars['Int']['output']; }; export type DustGenerationDtimeUpdate = DustLedgerEvent & { /** The ID of this dust ledger event. */ readonly id: Scalars['Int']['output']; /** The maximum ID of all dust ledger events. */ readonly maxId: Scalars['Int']['output']; /** The protocol version. */ readonly protocolVersion: Scalars['Int']['output']; /** The hex-encoded serialized event. */ readonly raw: Scalars['HexEncoded']['output']; }; /** DUST generation status for a specific Cardano reward address. */ export type DustGenerationStatus = { /** The Bech32-encoded Cardano reward address (e.g., stake_test1... or stake1...). */ readonly cardanoRewardAddress: Scalars['CardanoRewardAddress']['output']; /** Current generated DUST capacity in SPECK. */ readonly currentCapacity: Scalars['String']['output']; /** The Bech32m-encoded associated DUST address if registered. */ readonly dustAddress: Maybe; /** DUST generation rate in SPECK per second. */ readonly generationRate: Scalars['String']['output']; /** Maximum DUST capacity in SPECK. */ readonly maxCapacity: Scalars['String']['output']; /** NIGHT balance backing generation in STAR. */ readonly nightBalance: Scalars['String']['output']; /** Whether this reward address is registered. */ readonly registered: Scalars['Boolean']['output']; /** Cardano UTXO output index for update/unregister operations. */ readonly utxoOutputIndex: Maybe; /** Cardano UTXO transaction hash for update/unregister operations. */ readonly utxoTxHash: Maybe; }; export type DustInitialUtxo = DustLedgerEvent & { /** The ID of this dust ledger event. */ readonly id: Scalars['Int']['output']; /** The maximum ID of all dust ledger events. */ readonly maxId: Scalars['Int']['output']; /** The dust output. */ readonly output: DustOutput; /** The protocol version. */ readonly protocolVersion: Scalars['Int']['output']; /** The hex-encoded serialized event. */ readonly raw: Scalars['HexEncoded']['output']; }; /** A dust related ledger event. */ export type DustLedgerEvent = { readonly id: Scalars['Int']['output']; readonly maxId: Scalars['Int']['output']; readonly protocolVersion: Scalars['Int']['output']; readonly raw: Scalars['HexEncoded']['output']; }; /** A dust output. */ export type DustOutput = { /** The hex-encoded 32-byte nonce. */ readonly nonce: Scalars['HexEncoded']['output']; }; export type DustSpendProcessed = DustLedgerEvent & { /** The ID of this dust ledger event. */ readonly id: Scalars['Int']['output']; /** The maximum ID of all dust ledger events. */ readonly maxId: Scalars['Int']['output']; /** The protocol version. */ readonly protocolVersion: Scalars['Int']['output']; /** The hex-encoded serialized event. */ readonly raw: Scalars['HexEncoded']['output']; }; /** Current epoch information. */ export type EpochInfo = { readonly durationSeconds: Scalars['Int']['output']; readonly elapsedSeconds: Scalars['Int']['output']; readonly epochNo: Scalars['Int']['output']; }; /** SPO performance for an epoch. */ export type EpochPerf = { readonly epochNo: Scalars['Int']['output']; readonly expected: Scalars['Int']['output']; readonly identityLabel: Maybe; readonly poolIdHex: Maybe; readonly produced: Scalars['Int']['output']; readonly spoSkHex: Scalars['String']['output']; readonly stakeSnapshot: Maybe; readonly validatorClass: Maybe; }; /** First valid epoch for an SPO identity. */ export type FirstValidEpoch = { readonly firstValidEpoch: Scalars['Int']['output']; readonly idKey: Scalars['String']['output']; }; export type Mutation = { /** Connect the wallet with the given viewing key and return a session ID. */ readonly connect: Scalars['HexEncoded']['output']; /** Disconnect the wallet with the given session ID. */ readonly disconnect: Scalars['Unit']['output']; }; export type MutationConnectArgs = { viewingKey: Scalars['ViewingKey']['input']; }; export type MutationDisconnectArgs = { sessionId: Scalars['HexEncoded']['input']; }; export type ParamChange = DustLedgerEvent & { /** The ID of this dust ledger event. */ readonly id: Scalars['Int']['output']; /** The maximum ID of all dust ledger events. */ readonly maxId: Scalars['Int']['output']; /** The protocol version. */ readonly protocolVersion: Scalars['Int']['output']; /** The hex-encoded serialized event. */ readonly raw: Scalars['HexEncoded']['output']; }; /** Pool metadata from Cardano. */ export type PoolMetadata = { readonly hexId: Maybe; readonly homepageUrl: Maybe; readonly logoUrl: Maybe; readonly name: Maybe; readonly poolIdHex: Scalars['String']['output']; readonly ticker: Maybe; }; /** Presence event for an SPO in an epoch. */ export type PresenceEvent = { readonly epochNo: Scalars['Int']['output']; readonly idKey: Scalars['String']['output']; readonly source: Scalars['String']['output']; readonly status: Maybe; }; export type Query = { /** Find a block for the given optional offset; if not present, the latest block is returned. */ readonly block: Maybe; /** Get committee membership for an epoch. */ readonly committee: ReadonlyArray; /** Find a contract action for the given address and optional offset. */ readonly contractAction: Maybe; /** Get current epoch information. */ readonly currentEpochInfo: Maybe; /** Get the full history of D-parameter changes for governance auditability. */ readonly dParameterHistory: ReadonlyArray; /** Get DUST generation status for specific Cardano reward addresses. */ readonly dustGenerationStatus: ReadonlyArray; /** Get epoch performance for all SPOs. */ readonly epochPerformance: ReadonlyArray; /** Get epoch utilization (produced/expected ratio). */ readonly epochUtilization: Maybe; /** Get pool metadata by pool ID. */ readonly poolMetadata: Maybe; /** List pool metadata with pagination. */ readonly poolMetadataList: ReadonlyArray; /** Get first valid epoch for each SPO identity. */ readonly registeredFirstValidEpochs: ReadonlyArray; /** Get raw presence events for an epoch range. */ readonly registeredPresence: ReadonlyArray; /** Get registration statistics for an epoch range. */ readonly registeredSpoSeries: ReadonlyArray; /** Get cumulative registration totals for an epoch range. */ readonly registeredTotalsSeries: ReadonlyArray; /** Get SPO with metadata by pool ID. */ readonly spoByPoolId: Maybe; /** Get composite SPO data (identity + metadata + performance). */ readonly spoCompositeByPoolId: Maybe; /** Get total count of SPOs. */ readonly spoCount: Maybe; /** List SPO identities with pagination. */ readonly spoIdentities: ReadonlyArray; /** Get SPO identity by pool ID. */ readonly spoIdentityByPoolId: Maybe; /** List SPOs with optional search. */ readonly spoList: ReadonlyArray; /** Get SPO performance by SPO key. */ readonly spoPerformanceBySpoSk: ReadonlyArray; /** Get latest SPO performance entries. */ readonly spoPerformanceLatest: ReadonlyArray; /** Get stake distribution with search and ordering. */ readonly stakeDistribution: ReadonlyArray; /** Get SPO identifiers ordered by performance. */ readonly stakePoolOperators: ReadonlyArray; /** Get the full history of Terms and Conditions changes for governance auditability. */ readonly termsAndConditionsHistory: ReadonlyArray; /** Find transactions for the given offset. */ readonly transactions: ReadonlyArray; }; export type QueryBlockArgs = { offset: InputMaybe; }; export type QueryCommitteeArgs = { epoch: Scalars['Int']['input']; }; export type QueryContractActionArgs = { address: Scalars['HexEncoded']['input']; offset: InputMaybe; }; export type QueryDustGenerationStatusArgs = { cardanoRewardAddresses: ReadonlyArray; }; export type QueryEpochPerformanceArgs = { epoch: Scalars['Int']['input']; limit: InputMaybe; offset: InputMaybe; }; export type QueryEpochUtilizationArgs = { epoch: Scalars['Int']['input']; }; export type QueryPoolMetadataArgs = { poolIdHex: Scalars['String']['input']; }; export type QueryPoolMetadataListArgs = { limit: InputMaybe; offset: InputMaybe; withNameOnly: InputMaybe; }; export type QueryRegisteredFirstValidEpochsArgs = { uptoEpoch: InputMaybe; }; export type QueryRegisteredPresenceArgs = { fromEpoch: Scalars['Int']['input']; toEpoch: Scalars['Int']['input']; }; export type QueryRegisteredSpoSeriesArgs = { fromEpoch: Scalars['Int']['input']; toEpoch: Scalars['Int']['input']; }; export type QueryRegisteredTotalsSeriesArgs = { fromEpoch: Scalars['Int']['input']; toEpoch: Scalars['Int']['input']; }; export type QuerySpoByPoolIdArgs = { poolIdHex: Scalars['String']['input']; }; export type QuerySpoCompositeByPoolIdArgs = { poolIdHex: Scalars['String']['input']; }; export type QuerySpoIdentitiesArgs = { limit: InputMaybe; offset: InputMaybe; }; export type QuerySpoIdentityByPoolIdArgs = { poolIdHex: Scalars['String']['input']; }; export type QuerySpoListArgs = { limit: InputMaybe; offset: InputMaybe; search: InputMaybe; }; export type QuerySpoPerformanceBySpoSkArgs = { limit: InputMaybe; offset: InputMaybe; spoSkHex: Scalars['String']['input']; }; export type QuerySpoPerformanceLatestArgs = { limit: InputMaybe; offset: InputMaybe; }; export type QueryStakeDistributionArgs = { limit: InputMaybe; offset: InputMaybe; orderByStakeDesc: InputMaybe; search: InputMaybe; }; export type QueryStakePoolOperatorsArgs = { limit: InputMaybe; }; export type QueryTransactionsArgs = { offset: TransactionOffset; }; /** Registration statistics for an epoch. */ export type RegisteredStat = { readonly dparam: Maybe; readonly epochNo: Scalars['Int']['output']; readonly federatedInvalidCount: Scalars['Int']['output']; readonly federatedValidCount: Scalars['Int']['output']; readonly registeredInvalidCount: Scalars['Int']['output']; readonly registeredValidCount: Scalars['Int']['output']; }; /** Cumulative registration totals for an epoch. */ export type RegisteredTotals = { readonly epochNo: Scalars['Int']['output']; readonly newlyRegistered: Scalars['Int']['output']; readonly totalRegistered: Scalars['Int']['output']; }; /** A regular Midnight transaction. */ export type RegularTransaction = Transaction & { /** The block for this transaction. */ readonly block: Block; /** The contract actions for this transaction. */ readonly contractActions: ReadonlyArray; /** Dust ledger events of this transaction. */ readonly dustLedgerEvents: ReadonlyArray; /** The zswap state end index. */ readonly endIndex: Scalars['Int']['output']; /** Fee information for this transaction. */ readonly fees: TransactionFees; /** The hex-encoded transaction hash. */ readonly hash: Scalars['HexEncoded']['output']; /** The transaction ID. */ readonly id: Scalars['Int']['output']; /** The hex-encoded serialized transaction identifiers. */ readonly identifiers: ReadonlyArray; /** The hex-encoded serialized merkle-tree root. */ readonly merkleTreeRoot: Scalars['HexEncoded']['output']; /** The protocol version. */ readonly protocolVersion: Scalars['Int']['output']; /** The hex-encoded serialized transaction content. */ readonly raw: Scalars['HexEncoded']['output']; /** The zswap state start index. */ readonly startIndex: Scalars['Int']['output']; /** The result of applying this transaction to the ledger state. */ readonly transactionResult: TransactionResult; /** Unshielded UTXOs created by this transaction. */ readonly unshieldedCreatedOutputs: ReadonlyArray; /** Unshielded UTXOs spent (consumed) by this transaction. */ readonly unshieldedSpentOutputs: ReadonlyArray; /** Zswap ledger events of this transaction. */ readonly zswapLedgerEvents: ReadonlyArray; }; /** A transaction relevant for the subscribing wallet and an optional collapsed merkle tree. */ export type RelevantTransaction = { /** An optional collapsed merkle tree. */ readonly collapsedMerkleTree: Maybe; /** A transaction relevant for the subscribing wallet. */ readonly transaction: RegularTransaction; }; /** * One of many segments for a partially successful transaction result showing success for some * segment. */ export type Segment = { /** Segment ID. */ readonly id: Scalars['Int']['output']; /** Successful or not. */ readonly success: Scalars['Boolean']['output']; }; /** An event of the shielded transactions subscription. */ export type ShieldedTransactionsEvent = RelevantTransaction | ShieldedTransactionsProgress; /** Information about the shielded transactions indexing progress. */ export type ShieldedTransactionsProgress = { /** * The highest zswap state end index (see `endIndex` of `Transaction`) of all transactions * checked for relevance. Initially less than and eventually (when some wallet has been fully * indexed) equal to `highest_end_index`. A value of zero (very unlikely) means that no wallet * has subscribed before and indexing for the subscribing wallet has not yet started. */ readonly highestCheckedEndIndex: Scalars['Int']['output']; /** * The highest zswap state end index (see `endIndex` of `Transaction`) of all transactions. It * represents the known state of the blockchain. A value of zero (completely unlikely) means * that no shielded transactions have been indexed yet. */ readonly highestEndIndex: Scalars['Int']['output']; /** * The highest zswap state end index (see `endIndex` of `Transaction`) of all relevant * transactions for the subscribing wallet. Usually less than `highest_checked_end_index` * unless the latest checked transaction is relevant for the subscribing wallet. A value of * zero means that no relevant transactions have been indexed for the subscribing wallet. */ readonly highestRelevantEndIndex: Scalars['Int']['output']; }; /** SPO with optional metadata. */ export type Spo = { readonly auraPubkeyHex: Maybe; readonly homepageUrl: Maybe; readonly logoUrl: Maybe; readonly name: Maybe; readonly poolIdHex: Scalars['String']['output']; readonly sidechainPubkeyHex: Scalars['String']['output']; readonly ticker: Maybe; readonly validatorClass: Scalars['String']['output']; }; /** Composite SPO data (identity + metadata + performance). */ export type SpoComposite = { readonly identity: Maybe; readonly metadata: Maybe; readonly performance: ReadonlyArray; }; /** SPO identity information. */ export type SpoIdentity = { readonly auraPubkeyHex: Maybe; readonly mainchainPubkeyHex: Scalars['String']['output']; readonly poolIdHex: Scalars['String']['output']; readonly sidechainPubkeyHex: Scalars['String']['output']; readonly validatorClass: Scalars['String']['output']; }; /** * Stake share information for an SPO. * * Values are sourced from mainchain pool data (e.g., Blockfrost) and keyed by Cardano pool_id. */ export type StakeShare = { /** Current active stake in lovelace. */ readonly activeStake: Maybe; /** Declared pledge in lovelace. */ readonly declaredPledge: Maybe; /** Pool homepage URL from metadata. */ readonly homepageUrl: Maybe; /** Number of live delegators. */ readonly liveDelegators: Maybe; /** Current live pledge in lovelace. */ readonly livePledge: Maybe; /** Saturation ratio (0.0 to 1.0+). */ readonly liveSaturation: Maybe; /** Current live stake in lovelace. */ readonly liveStake: Maybe; /** Pool logo URL from metadata. */ readonly logoUrl: Maybe; /** Pool name from metadata. */ readonly name: Maybe; /** Cardano pool ID (56-character hex string). */ readonly poolIdHex: Scalars['String']['output']; /** Stake share as a fraction of total stake. */ readonly stakeShare: Maybe; /** Pool ticker from metadata. */ readonly ticker: Maybe; }; export type Subscription = { /** * Subscribe to blocks starting at the given offset or at the latest block if the offset is * omitted. */ readonly blocks: Block; /** * Subscribe to contract actions with the given address starting at the given offset or at the * latest block if the offset is omitted. */ readonly contractActions: ContractAction; /** Subscribe to dust ledger events starting at the given ID or at the very start if omitted. */ readonly dustLedgerEvents: DustLedgerEvent; /** * Subscribe to shielded transaction events for the given session ID starting at the given * index or at zero if omitted. */ readonly shieldedTransactions: ShieldedTransactionsEvent; /** * Subscribe unshielded transaction events for the given address and the given transaction ID * or zero if omitted. */ readonly unshieldedTransactions: UnshieldedTransactionsEvent; /** Subscribe to zswap ledger events starting at the given ID or at the very start if omitted. */ readonly zswapLedgerEvents: ZswapLedgerEvent; }; export type SubscriptionBlocksArgs = { offset: InputMaybe; }; export type SubscriptionContractActionsArgs = { address: Scalars['HexEncoded']['input']; offset: InputMaybe; }; export type SubscriptionDustLedgerEventsArgs = { id: InputMaybe; }; export type SubscriptionShieldedTransactionsArgs = { index: InputMaybe; sessionId: Scalars['HexEncoded']['input']; }; export type SubscriptionUnshieldedTransactionsArgs = { address: Scalars['UnshieldedAddress']['input']; transactionId: InputMaybe; }; export type SubscriptionZswapLedgerEventsArgs = { id: InputMaybe; }; /** System parameters at a specific block height. */ export type SystemParameters = { /** The D-parameter controlling validator committee composition. */ readonly dParameter: DParameter; /** The current Terms and Conditions, if any have been set. */ readonly termsAndConditions: Maybe; }; /** A system Midnight transaction. */ export type SystemTransaction = Transaction & { /** The block for this transaction. */ readonly block: Block; /** The contract actions for this transaction. */ readonly contractActions: ReadonlyArray; /** Dust ledger events of this transaction. */ readonly dustLedgerEvents: ReadonlyArray; /** The hex-encoded transaction hash. */ readonly hash: Scalars['HexEncoded']['output']; /** The transaction ID. */ readonly id: Scalars['Int']['output']; /** The protocol version. */ readonly protocolVersion: Scalars['Int']['output']; /** The hex-encoded serialized transaction content. */ readonly raw: Scalars['HexEncoded']['output']; /** Unshielded UTXOs created by this transaction. */ readonly unshieldedCreatedOutputs: ReadonlyArray; /** Unshielded UTXOs spent (consumed) by this transaction. */ readonly unshieldedSpentOutputs: ReadonlyArray; /** Zswap ledger events of this transaction. */ readonly zswapLedgerEvents: ReadonlyArray; }; /** Terms and Conditions agreement. */ export type TermsAndConditions = { /** The hex-encoded hash of the Terms and Conditions document. */ readonly hash: Scalars['HexEncoded']['output']; /** The URL where the Terms and Conditions can be found. */ readonly url: Scalars['String']['output']; }; /** Terms and Conditions change record for history queries. */ export type TermsAndConditionsChange = { /** The hex-encoded block hash where this T&C version became effective. */ readonly blockHash: Scalars['HexEncoded']['output']; /** The block height where this T&C version became effective. */ readonly blockHeight: Scalars['Int']['output']; /** The hex-encoded hash of the Terms and Conditions document. */ readonly hash: Scalars['HexEncoded']['output']; /** The UNIX timestamp when this T&C version became effective. */ readonly timestamp: Scalars['Int']['output']; /** The URL where the Terms and Conditions can be found. */ readonly url: Scalars['String']['output']; }; /** A Midnight transaction. */ export type Transaction = { readonly block: Block; readonly contractActions: ReadonlyArray; readonly dustLedgerEvents: ReadonlyArray; readonly hash: Scalars['HexEncoded']['output']; readonly id: Scalars['Int']['output']; readonly protocolVersion: Scalars['Int']['output']; readonly raw: Scalars['HexEncoded']['output']; readonly unshieldedCreatedOutputs: ReadonlyArray; readonly unshieldedSpentOutputs: ReadonlyArray; readonly zswapLedgerEvents: ReadonlyArray; }; /** Fees information for a transaction, including both paid and estimated fees. */ export type TransactionFees = { /** The estimated fees that was calculated for this transaction in DUST. */ readonly estimatedFees: Scalars['String']['output']; /** The actual fees paid for this transaction in DUST. */ readonly paidFees: Scalars['String']['output']; }; /** Either a transaction hash or a transaction identifier. */ export type TransactionOffset = /** A hex-encoded transaction hash. */ { readonly hash: Scalars['HexEncoded']['input']; readonly identifier?: never; } | /** A hex-encoded transaction identifier. */ { readonly hash?: never; readonly identifier: Scalars['HexEncoded']['input']; }; /** * The result of applying a transaction to the ledger state. In case of a partial success (status), * there will be segments. */ export type TransactionResult = { readonly segments: Maybe>; readonly status: TransactionResultStatus; }; /** The status of the transaction result: success, partial success or failure. */ export type TransactionResultStatus = 'FAILURE' | 'PARTIAL_SUCCESS' | 'SUCCESS' | '%future added value'; /** A transaction that created and/or spent UTXOs alongside these and other information. */ export type UnshieldedTransaction = { /** UTXOs created in the above transaction, possibly empty. */ readonly createdUtxos: ReadonlyArray; /** UTXOs spent in the above transaction, possibly empty. */ readonly spentUtxos: ReadonlyArray; /** The transaction that created and/or spent UTXOs. */ readonly transaction: Transaction; }; /** An event of the unshielded transactions subscription. */ export type UnshieldedTransactionsEvent = UnshieldedTransaction | UnshieldedTransactionsProgress; /** Information about the unshielded indexing progress. */ export type UnshieldedTransactionsProgress = { /** The highest transaction ID of all currently known transactions for a subscribed address. */ readonly highestTransactionId: Scalars['Int']['output']; }; /** Represents an unshielded UTXO. */ export type UnshieldedUtxo = { /** Transaction that created this UTXO. */ readonly createdAtTransaction: Transaction; /** The creation time in seconds. */ readonly ctime: Maybe; /** The hex-encoded initial nonce for DUST generation tracking. */ readonly initialNonce: Scalars['HexEncoded']['output']; /** The hex-encoded serialized intent hash. */ readonly intentHash: Scalars['HexEncoded']['output']; /** Index of this output within its creating transaction. */ readonly outputIndex: Scalars['Int']['output']; /** Owner Bech32m-encoded address. */ readonly owner: Scalars['UnshieldedAddress']['output']; /** Whether this UTXO is registered for DUST generation. */ readonly registeredForDustGeneration: Scalars['Boolean']['output']; /** Transaction that spent this UTXO. */ readonly spentAtTransaction: Maybe; /** Token hex-encoded serialized token type. */ readonly tokenType: Scalars['HexEncoded']['output']; /** UTXO value (quantity) as a string to support u128. */ readonly value: Scalars['String']['output']; }; /** A zswap related ledger event. */ export type ZswapLedgerEvent = { /** The ID of this zswap ledger event. */ readonly id: Scalars['Int']['output']; /** The maximum ID of all zswap ledger events. */ readonly maxId: Scalars['Int']['output']; /** The protocol version. */ readonly protocolVersion: Scalars['Int']['output']; /** The hex-encoded serialized event. */ readonly raw: Scalars['HexEncoded']['output']; }; export type BlockHashQueryQueryVariables = Exact<{ offset: InputMaybe; }>; export type BlockHashQueryQuery = { readonly block: { readonly height: number; readonly hash: string; } | null; }; export type TxIdQueryQueryVariables = Exact<{ offset: TransactionOffset; }>; export type TxIdQueryQuery = { readonly transactions: ReadonlyArray<{ readonly identifiers: ReadonlyArray; readonly id: number; readonly protocolVersion: number; readonly raw: string; readonly hash: string; readonly fees: { readonly estimatedFees: string; readonly paidFees: string; }; readonly transactionResult: { readonly status: TransactionResultStatus; readonly segments: ReadonlyArray<{ readonly id: number; readonly success: boolean; }> | null; }; readonly unshieldedCreatedOutputs: ReadonlyArray<{ readonly owner: string; readonly intentHash: string; readonly tokenType: string; readonly value: string; }>; readonly unshieldedSpentOutputs: ReadonlyArray<{ readonly owner: string; readonly intentHash: string; readonly tokenType: string; readonly value: string; }>; readonly block: { readonly height: number; readonly hash: string; readonly author: string | null; readonly timestamp: number; }; } | { readonly id: number; readonly protocolVersion: number; readonly raw: string; readonly hash: string; readonly unshieldedCreatedOutputs: ReadonlyArray<{ readonly owner: string; readonly intentHash: string; readonly tokenType: string; readonly value: string; }>; readonly unshieldedSpentOutputs: ReadonlyArray<{ readonly owner: string; readonly intentHash: string; readonly tokenType: string; readonly value: string; }>; readonly block: { readonly height: number; readonly hash: string; readonly author: string | null; readonly timestamp: number; }; }>; }; export type DeployTxQueryQueryVariables = Exact<{ address: Scalars['HexEncoded']['input']; }>; export type DeployTxQueryQuery = { readonly contractAction: { readonly deploy: { readonly transaction: { readonly identifiers: ReadonlyArray; readonly id: number; readonly protocolVersion: number; readonly raw: string; readonly hash: string; readonly fees: { readonly estimatedFees: string; readonly paidFees: string; }; readonly transactionResult: { readonly status: TransactionResultStatus; readonly segments: ReadonlyArray<{ readonly id: number; readonly success: boolean; }> | null; }; readonly contractActions: ReadonlyArray<{ readonly address: string; } | { readonly address: string; } | { readonly address: string; }>; readonly block: { readonly height: number; readonly hash: string; readonly author: string | null; readonly timestamp: number; }; readonly unshieldedCreatedOutputs: ReadonlyArray<{ readonly owner: string; readonly intentHash: string; readonly tokenType: string; readonly value: string; }>; readonly unshieldedSpentOutputs: ReadonlyArray<{ readonly owner: string; readonly intentHash: string; readonly tokenType: string; readonly value: string; }>; } | { readonly id: number; readonly protocolVersion: number; readonly raw: string; readonly hash: string; readonly contractActions: ReadonlyArray<{ readonly address: string; } | { readonly address: string; } | { readonly address: string; }>; readonly block: { readonly height: number; readonly hash: string; readonly author: string | null; readonly timestamp: number; }; readonly unshieldedCreatedOutputs: ReadonlyArray<{ readonly owner: string; readonly intentHash: string; readonly tokenType: string; readonly value: string; }>; readonly unshieldedSpentOutputs: ReadonlyArray<{ readonly owner: string; readonly intentHash: string; readonly tokenType: string; readonly value: string; }>; }; }; } | { readonly transaction: { readonly identifiers: ReadonlyArray; readonly id: number; readonly protocolVersion: number; readonly raw: string; readonly hash: string; readonly fees: { readonly estimatedFees: string; readonly paidFees: string; }; readonly transactionResult: { readonly status: TransactionResultStatus; readonly segments: ReadonlyArray<{ readonly id: number; readonly success: boolean; }> | null; }; readonly contractActions: ReadonlyArray<{ readonly address: string; } | { readonly address: string; } | { readonly address: string; }>; readonly block: { readonly height: number; readonly hash: string; readonly author: string | null; readonly timestamp: number; }; readonly unshieldedCreatedOutputs: ReadonlyArray<{ readonly owner: string; readonly intentHash: string; readonly tokenType: string; readonly value: string; }>; readonly unshieldedSpentOutputs: ReadonlyArray<{ readonly owner: string; readonly intentHash: string; readonly tokenType: string; readonly value: string; }>; } | { readonly id: number; readonly protocolVersion: number; readonly raw: string; readonly hash: string; readonly contractActions: ReadonlyArray<{ readonly address: string; } | { readonly address: string; } | { readonly address: string; }>; readonly block: { readonly height: number; readonly hash: string; readonly author: string | null; readonly timestamp: number; }; readonly unshieldedCreatedOutputs: ReadonlyArray<{ readonly owner: string; readonly intentHash: string; readonly tokenType: string; readonly value: string; }>; readonly unshieldedSpentOutputs: ReadonlyArray<{ readonly owner: string; readonly intentHash: string; readonly tokenType: string; readonly value: string; }>; }; } | { readonly transaction: { readonly identifiers: ReadonlyArray; readonly id: number; readonly protocolVersion: number; readonly raw: string; readonly hash: string; readonly fees: { readonly estimatedFees: string; readonly paidFees: string; }; readonly transactionResult: { readonly status: TransactionResultStatus; readonly segments: ReadonlyArray<{ readonly id: number; readonly success: boolean; }> | null; }; readonly contractActions: ReadonlyArray<{ readonly address: string; } | { readonly address: string; } | { readonly address: string; }>; readonly block: { readonly height: number; readonly hash: string; readonly author: string | null; readonly timestamp: number; }; readonly unshieldedCreatedOutputs: ReadonlyArray<{ readonly owner: string; readonly intentHash: string; readonly tokenType: string; readonly value: string; }>; readonly unshieldedSpentOutputs: ReadonlyArray<{ readonly owner: string; readonly intentHash: string; readonly tokenType: string; readonly value: string; }>; } | { readonly id: number; readonly protocolVersion: number; readonly raw: string; readonly hash: string; readonly contractActions: ReadonlyArray<{ readonly address: string; } | { readonly address: string; } | { readonly address: string; }>; readonly block: { readonly height: number; readonly hash: string; readonly author: string | null; readonly timestamp: number; }; readonly unshieldedCreatedOutputs: ReadonlyArray<{ readonly owner: string; readonly intentHash: string; readonly tokenType: string; readonly value: string; }>; readonly unshieldedSpentOutputs: ReadonlyArray<{ readonly owner: string; readonly intentHash: string; readonly tokenType: string; readonly value: string; }>; }; } | null; }; export type DeployContractStateTxQueryQueryVariables = Exact<{ address: Scalars['HexEncoded']['input']; }>; export type DeployContractStateTxQueryQuery = { readonly contractAction: { readonly deploy: { readonly transaction: { readonly contractActions: ReadonlyArray<{ readonly address: string; readonly state: string; } | { readonly address: string; readonly state: string; } | { readonly address: string; readonly state: string; }>; } | { readonly contractActions: ReadonlyArray<{ readonly address: string; readonly state: string; } | { readonly address: string; readonly state: string; } | { readonly address: string; readonly state: string; }>; }; }; } | { readonly state: string; } | { readonly state: string; } | null; }; export type LatestContractTxBlockHeightQueryQueryVariables = Exact<{ address: Scalars['HexEncoded']['input']; }>; export type LatestContractTxBlockHeightQueryQuery = { readonly contractAction: { readonly transaction: { readonly block: { readonly height: number; }; } | { readonly block: { readonly height: number; }; }; } | { readonly transaction: { readonly block: { readonly height: number; }; } | { readonly block: { readonly height: number; }; }; } | { readonly transaction: { readonly block: { readonly height: number; }; } | { readonly block: { readonly height: number; }; }; } | null; }; export type TxsFromBlockSubSubscriptionVariables = Exact<{ offset: InputMaybe; }>; export type TxsFromBlockSubSubscription = { readonly blocks: { readonly hash: string; readonly height: number; readonly transactions: ReadonlyArray<{ readonly identifiers: ReadonlyArray; readonly hash: string; readonly contractActions: ReadonlyArray<{ readonly state: string; readonly address: string; } | { readonly state: string; readonly address: string; } | { readonly state: string; readonly address: string; }>; } | { readonly hash: string; readonly contractActions: ReadonlyArray<{ readonly state: string; readonly address: string; } | { readonly state: string; readonly address: string; } | { readonly state: string; readonly address: string; }>; }>; }; }; export type ContractStateQueryQueryVariables = Exact<{ address: Scalars['HexEncoded']['input']; offset: InputMaybe; }>; export type ContractStateQueryQuery = { readonly contractAction: { readonly state: string; } | { readonly state: string; } | { readonly state: string; } | null; }; export type ContractStateSubSubscriptionVariables = Exact<{ address: Scalars['HexEncoded']['input']; offset: InputMaybe; }>; export type ContractStateSubSubscription = { readonly contractActions: { readonly state: string; } | { readonly state: string; } | { readonly state: string; }; }; export type BothStateQueryQueryVariables = Exact<{ address: Scalars['HexEncoded']['input']; offset: InputMaybe; }>; export type BothStateQueryQuery = { readonly contractAction: { readonly state: string; readonly zswapState: string; readonly transaction: { readonly block: { readonly ledgerParameters: string; }; } | { readonly block: { readonly ledgerParameters: string; }; }; } | { readonly state: string; readonly zswapState: string; readonly transaction: { readonly block: { readonly ledgerParameters: string; }; } | { readonly block: { readonly ledgerParameters: string; }; }; } | { readonly state: string; readonly zswapState: string; readonly transaction: { readonly block: { readonly ledgerParameters: string; }; } | { readonly block: { readonly ledgerParameters: string; }; }; } | null; }; export type UnshieldedBalanceQueryQueryVariables = Exact<{ address: Scalars['HexEncoded']['input']; }>; export type UnshieldedBalanceQueryQuery = { readonly contractAction: { readonly deploy: { readonly unshieldedBalances: ReadonlyArray<{ readonly tokenType: string; readonly amount: string; }>; }; } | { readonly unshieldedBalances: ReadonlyArray<{ readonly tokenType: string; readonly amount: string; }>; } | { readonly unshieldedBalances: ReadonlyArray<{ readonly tokenType: string; readonly amount: string; }>; } | null; }; export type QueryUnshieldedBalancesWithOffsetQueryVariables = Exact<{ address: Scalars['HexEncoded']['input']; offset: InputMaybe; }>; export type QueryUnshieldedBalancesWithOffsetQuery = { readonly contractAction: { readonly deploy: { readonly unshieldedBalances: ReadonlyArray<{ readonly tokenType: string; readonly amount: string; }>; }; } | { readonly unshieldedBalances: ReadonlyArray<{ readonly tokenType: string; readonly amount: string; }>; } | { readonly unshieldedBalances: ReadonlyArray<{ readonly tokenType: string; readonly amount: string; }>; } | null; }; export type UnshieldedBalanceSubSubscriptionVariables = Exact<{ address: Scalars['HexEncoded']['input']; offset: InputMaybe; }>; export type UnshieldedBalanceSubSubscription = { readonly contractActions: { readonly deploy: { readonly unshieldedBalances: ReadonlyArray<{ readonly tokenType: string; readonly amount: string; }>; }; } | { readonly unshieldedBalances: ReadonlyArray<{ readonly tokenType: string; readonly amount: string; }>; } | { readonly unshieldedBalances: ReadonlyArray<{ readonly tokenType: string; readonly amount: string; }>; }; }; export declare const BlockHashQueryDocument: DocumentNode; export declare const TxIdQueryDocument: DocumentNode; export declare const DeployTxQueryDocument: DocumentNode; export declare const DeployContractStateTxQueryDocument: DocumentNode; export declare const LatestContractTxBlockHeightQueryDocument: DocumentNode; export declare const TxsFromBlockSubDocument: DocumentNode; export declare const ContractStateQueryDocument: DocumentNode; export declare const ContractStateSubDocument: DocumentNode; export declare const BothStateQueryDocument: DocumentNode; export declare const UnshieldedBalanceQueryDocument: DocumentNode; export declare const QueryUnshieldedBalancesWithOffsetDocument: DocumentNode; export declare const UnshieldedBalanceSubDocument: DocumentNode; //# sourceMappingURL=graphql.d.ts.map