From eae1c5ae7b8630899a363f3b5995941eb7195035 Mon Sep 17 00:00:00 2001 From: raghukapur9 <64493087+raghukapur9@users.noreply.github.com> Date: Sun, 22 Sep 2024 18:09:35 -0400 Subject: [PATCH] adding generated files --- .../generated/fuelcore/queries/index.js | 145 +- .../graphql/src/graphql/generated/mocks.ts | 38 +- .../src/graphql/generated/sdk-provider.ts | 2485 +----------- packages/graphql/src/graphql/generated/sdk.ts | 3603 +---------------- 4 files changed, 408 insertions(+), 5863 deletions(-) diff --git a/packages/graphql/src/graphql/generated/fuelcore/queries/index.js b/packages/graphql/src/graphql/generated/fuelcore/queries/index.js index eae1a001..799296a4 100644 --- a/packages/graphql/src/graphql/generated/fuelcore/queries/index.js +++ b/packages/graphql/src/graphql/generated/fuelcore/queries/index.js @@ -1,119 +1,32 @@ const fs = require('fs'); const path = require('path'); -module.exports.balance = fs.readFileSync( - path.join(__dirname, 'balance.graphql'), - 'utf8', -); -module.exports.balances = fs.readFileSync( - path.join(__dirname, 'balances.graphql'), - 'utf8', -); -module.exports.block = fs.readFileSync( - path.join(__dirname, 'block.graphql'), - 'utf8', -); -module.exports.blocks = fs.readFileSync( - path.join(__dirname, 'blocks.graphql'), - 'utf8', -); -module.exports.chain = fs.readFileSync( - path.join(__dirname, 'chain.graphql'), - 'utf8', -); -module.exports.coin = fs.readFileSync( - path.join(__dirname, 'coin.graphql'), - 'utf8', -); -module.exports.coins = fs.readFileSync( - path.join(__dirname, 'coins.graphql'), - 'utf8', -); -module.exports.coinsToSpend = fs.readFileSync( - path.join(__dirname, 'coinsToSpend.graphql'), - 'utf8', -); -module.exports.contract = fs.readFileSync( - path.join(__dirname, 'contract.graphql'), - 'utf8', -); -module.exports.contractBalance = fs.readFileSync( - path.join(__dirname, 'contractBalance.graphql'), - 'utf8', -); -module.exports.contractBalances = fs.readFileSync( - path.join(__dirname, 'contractBalances.graphql'), - 'utf8', -); -module.exports.estimateGasPrice = fs.readFileSync( - path.join(__dirname, 'estimateGasPrice.graphql'), - 'utf8', -); -module.exports.estimatePredicates = fs.readFileSync( - path.join(__dirname, 'estimatePredicates.graphql'), - 'utf8', -); -module.exports.health = fs.readFileSync( - path.join(__dirname, 'health.graphql'), - 'utf8', -); -module.exports.latestGasPrice = fs.readFileSync( - path.join(__dirname, 'latestGasPrice.graphql'), - 'utf8', -); -module.exports.memory = fs.readFileSync( - path.join(__dirname, 'memory.graphql'), - 'utf8', -); -module.exports.message = fs.readFileSync( - path.join(__dirname, 'message.graphql'), - 'utf8', -); -module.exports.messageProof = fs.readFileSync( - path.join(__dirname, 'messageProof.graphql'), - 'utf8', -); -module.exports.messageStatus = fs.readFileSync( - path.join(__dirname, 'messageStatus.graphql'), - 'utf8', -); -module.exports.messages = fs.readFileSync( - path.join(__dirname, 'messages.graphql'), - 'utf8', -); -module.exports.nodeInfo = fs.readFileSync( - path.join(__dirname, 'nodeInfo.graphql'), - 'utf8', -); -module.exports.register = fs.readFileSync( - path.join(__dirname, 'register.graphql'), - 'utf8', -); -module.exports.relayedTransactionStatus = fs.readFileSync( - path.join(__dirname, 'relayedTransactionStatus.graphql'), - 'utf8', -); -module.exports.transaction = fs.readFileSync( - path.join(__dirname, 'transaction.graphql'), - 'utf8', -); -module.exports.transactions = fs.readFileSync( - path.join(__dirname, 'transactions.graphql'), - 'utf8', -); -module.exports.transactionsByOwner = fs.readFileSync( - path.join(__dirname, 'transactionsByOwner.graphql'), - 'utf8', -); -module.exports.transactionsByBlockId = fs.readFileSync( - path.join(__dirname, 'transactionsByBlockId.graphql'), - 'utf8', -); -module.exports.tps = fs.readFileSync( - path.join(__dirname, 'tps.graphql'), - 'utf8', -); -module.exports.getBlocksDashboard = fs.readFileSync( - path.join(__dirname, 'getBlocksDashboard.graphql'), - 'utf8', -); +module.exports.balance = fs.readFileSync(path.join(__dirname, 'balance.graphql'), 'utf8'); +module.exports.balances = fs.readFileSync(path.join(__dirname, 'balances.graphql'), 'utf8'); +module.exports.block = fs.readFileSync(path.join(__dirname, 'block.graphql'), 'utf8'); +module.exports.blocks = fs.readFileSync(path.join(__dirname, 'blocks.graphql'), 'utf8'); +module.exports.chain = fs.readFileSync(path.join(__dirname, 'chain.graphql'), 'utf8'); +module.exports.coin = fs.readFileSync(path.join(__dirname, 'coin.graphql'), 'utf8'); +module.exports.coins = fs.readFileSync(path.join(__dirname, 'coins.graphql'), 'utf8'); +module.exports.coinsToSpend = fs.readFileSync(path.join(__dirname, 'coinsToSpend.graphql'), 'utf8'); +module.exports.contract = fs.readFileSync(path.join(__dirname, 'contract.graphql'), 'utf8'); +module.exports.contractBalance = fs.readFileSync(path.join(__dirname, 'contractBalance.graphql'), 'utf8'); +module.exports.contractBalances = fs.readFileSync(path.join(__dirname, 'contractBalances.graphql'), 'utf8'); +module.exports.estimateGasPrice = fs.readFileSync(path.join(__dirname, 'estimateGasPrice.graphql'), 'utf8'); +module.exports.estimatePredicates = fs.readFileSync(path.join(__dirname, 'estimatePredicates.graphql'), 'utf8'); +module.exports.health = fs.readFileSync(path.join(__dirname, 'health.graphql'), 'utf8'); +module.exports.latestGasPrice = fs.readFileSync(path.join(__dirname, 'latestGasPrice.graphql'), 'utf8'); +module.exports.memory = fs.readFileSync(path.join(__dirname, 'memory.graphql'), 'utf8'); +module.exports.message = fs.readFileSync(path.join(__dirname, 'message.graphql'), 'utf8'); +module.exports.messageProof = fs.readFileSync(path.join(__dirname, 'messageProof.graphql'), 'utf8'); +module.exports.messageStatus = fs.readFileSync(path.join(__dirname, 'messageStatus.graphql'), 'utf8'); +module.exports.messages = fs.readFileSync(path.join(__dirname, 'messages.graphql'), 'utf8'); +module.exports.nodeInfo = fs.readFileSync(path.join(__dirname, 'nodeInfo.graphql'), 'utf8'); +module.exports.register = fs.readFileSync(path.join(__dirname, 'register.graphql'), 'utf8'); +module.exports.relayedTransactionStatus = fs.readFileSync(path.join(__dirname, 'relayedTransactionStatus.graphql'), 'utf8'); +module.exports.transaction = fs.readFileSync(path.join(__dirname, 'transaction.graphql'), 'utf8'); +module.exports.transactions = fs.readFileSync(path.join(__dirname, 'transactions.graphql'), 'utf8'); +module.exports.transactionsByOwner = fs.readFileSync(path.join(__dirname, 'transactionsByOwner.graphql'), 'utf8'); +module.exports.transactionsByBlockId = fs.readFileSync(path.join(__dirname, 'transactionsByBlockId.graphql'), 'utf8'); +module.exports.tps = fs.readFileSync(path.join(__dirname, 'tps.graphql'), 'utf8'); +module.exports.getBlocksDashboard = fs.readFileSync(path.join(__dirname, 'getBlocksDashboard.graphql'), 'utf8'); diff --git a/packages/graphql/src/graphql/generated/mocks.ts b/packages/graphql/src/graphql/generated/mocks.ts index 364e5595..da354ff4 100644 --- a/packages/graphql/src/graphql/generated/mocks.ts +++ b/packages/graphql/src/graphql/generated/mocks.ts @@ -1,4 +1,4 @@ -import type { GQLBalance, GQLBalanceConnection, GQLBalanceEdge, GQLBalanceFilterInput, GQLBlock, GQLBlockConnection, GQLBlockEdge, GQLBreakpoint, GQLChainInfo, GQLChangeOutput, GQLCoin, GQLCoinConnection, GQLCoinEdge, GQLCoinFilterInput, GQLCoinOutput, GQLConsensusParameters, GQLConsensusParametersPurpose, GQLContract, GQLContractBalance, GQLContractBalanceConnection, GQLContractBalanceEdge, GQLContractBalanceFilterInput, GQLContractConnection, GQLContractCreated, GQLContractOutput, GQLContractParameters, GQLDryRunFailureStatus, GQLDryRunSuccessStatus, GQLDryRunTransactionExecutionStatus, GQLEstimateGasPrice, GQLExcludeInput, GQLFailureStatus, GQLFeeParameters, GQLGasCosts, GQLGenesis, GQLGroupedInputCoin, GQLGroupedInputContract, GQLGroupedInputMessage, GQLGroupedOutputChanged, GQLGroupedOutputCoin, GQLGroupedOutputContractCreated, GQLHeader, GQLHeavyOperation, GQLInputCoin, GQLInputContract, GQLInputMessage, GQLLatestGasPrice, GQLLightOperation, GQLMerkleProof, GQLMessage, GQLMessageCoin, GQLMessageConnection, GQLMessageEdge, GQLMessageProof, GQLMessageStatus, GQLMutation, GQLNodeInfo, GQLOperation, GQLOperationReceipt, GQLOperationsFilterInput, GQLOutputBreakpoint, GQLPageInfo, GQLParsedTime, GQLPeerInfo, GQLPoAConsensus, GQLPolicies, GQLPredicateItem, GQLPredicateParameters, GQLProgramState, GQLQuery, GQLReceipt, GQLRelayedTransactionFailed, GQLRunResult, GQLScriptParameters, GQLSearchAccount, GQLSearchBlock, GQLSearchContract, GQLSearchResult, GQLSearchTransaction, GQLSpendQueryElementInput, GQLSqueezedOutStatus, GQLStateTransitionPurpose, GQLSubmittedStatus, GQLSubscription, GQLSuccessStatus, GQLTransaction, GQLTransactionConnection, GQLTransactionEdge, GQLTransactionGasCosts, GQLTxParameters, GQLUtxoItem, GQLVariableOutput, GQLBlockVersion, GQLConsensusParametersVersion, GQLContractParametersVersion, GQLFeeParametersVersion, GQLGasCostsVersion, GQLGroupedInputType, GQLGroupedOutputType, GQLHeaderVersion, GQLMessageState, GQLOperationType, GQLPredicateParametersVersion, GQLReceiptType, GQLReturnType, GQLRunState, GQLScriptParametersVersion, GQLTxParametersVersion } from './sdk'; +import type { GQLBalance, GQLBalanceConnection, GQLBalanceEdge, GQLBalanceFilterInput, GQLBlock, GQLBlockConnection, GQLBlockEdge, GQLBlocksDashboard, GQLBlocksDashboardConnection, GQLBreakpoint, GQLChainInfo, GQLChangeOutput, GQLCoin, GQLCoinConnection, GQLCoinEdge, GQLCoinFilterInput, GQLCoinOutput, GQLConsensusParameters, GQLConsensusParametersPurpose, GQLContract, GQLContractBalance, GQLContractBalanceConnection, GQLContractBalanceEdge, GQLContractBalanceFilterInput, GQLContractConnection, GQLContractCreated, GQLContractOutput, GQLContractParameters, GQLDryRunFailureStatus, GQLDryRunSuccessStatus, GQLDryRunTransactionExecutionStatus, GQLEstimateGasPrice, GQLExcludeInput, GQLFailureStatus, GQLFeeParameters, GQLGasCosts, GQLGenesis, GQLGroupedInputCoin, GQLGroupedInputContract, GQLGroupedInputMessage, GQLGroupedOutputChanged, GQLGroupedOutputCoin, GQLGroupedOutputContractCreated, GQLHeader, GQLHeavyOperation, GQLInputCoin, GQLInputContract, GQLInputMessage, GQLLatestGasPrice, GQLLightOperation, GQLMerkleProof, GQLMessage, GQLMessageCoin, GQLMessageConnection, GQLMessageEdge, GQLMessageProof, GQLMessageStatus, GQLMutation, GQLNodeInfo, GQLOperation, GQLOperationReceipt, GQLOperationsFilterInput, GQLOutputBreakpoint, GQLPageInfo, GQLParsedTime, GQLPeerInfo, GQLPoAConsensus, GQLPolicies, GQLPredicateItem, GQLPredicateParameters, GQLProgramState, GQLQuery, GQLReceipt, GQLRelayedTransactionFailed, GQLRunResult, GQLScriptParameters, GQLSearchAccount, GQLSearchBlock, GQLSearchContract, GQLSearchResult, GQLSearchTransaction, GQLSpendQueryElementInput, GQLSqueezedOutStatus, GQLStateTransitionPurpose, GQLSubmittedStatus, GQLSubscription, GQLSuccessStatus, GQLTps, GQLTpsConnection, GQLTransaction, GQLTransactionConnection, GQLTransactionEdge, GQLTransactionGasCosts, GQLTxParameters, GQLUtxoItem, GQLVariableOutput, GQLBlockVersion, GQLConsensusParametersVersion, GQLContractParametersVersion, GQLFeeParametersVersion, GQLGasCostsVersion, GQLGroupedInputType, GQLGroupedOutputType, GQLHeaderVersion, GQLMessageState, GQLOperationType, GQLPredicateParametersVersion, GQLReceiptType, GQLReturnType, GQLRunState, GQLScriptParametersVersion, GQLTxParametersVersion } from './sdk'; export const aBalance = (overrides?: Partial): { __typename: 'Balance' } & GQLBalance => { return { @@ -66,6 +66,23 @@ export const aBlockEdge = (overrides?: Partial): { __typename: 'Bl }; }; +export const aBlocksDashboard = (overrides?: Partial): { __typename: 'BlocksDashboard' } & GQLBlocksDashboard => { + return { + __typename: 'BlocksDashboard', + blockNo: overrides && overrides.hasOwnProperty('blockNo') ? overrides.blockNo! : '0xc', + gasUsed: overrides && overrides.hasOwnProperty('gasUsed') ? overrides.gasUsed! : '0x5', + producer: overrides && overrides.hasOwnProperty('producer') ? overrides.producer! : 'error', + timestamp: overrides && overrides.hasOwnProperty('timestamp') ? overrides.timestamp! : '0x8', + }; +}; + +export const aBlocksDashboardConnection = (overrides?: Partial): { __typename: 'BlocksDashboardConnection' } & GQLBlocksDashboardConnection => { + return { + __typename: 'BlocksDashboardConnection', + nodes: overrides && overrides.hasOwnProperty('nodes') ? overrides.nodes! : [aBlocksDashboard()], + }; +}; + export const aBreakpoint = (overrides?: Partial): GQLBreakpoint => { return { contract: overrides && overrides.hasOwnProperty('contract') ? overrides.contract! : 'spxsyh8uujdpzc8kg4t7lkz0r7qmcdsb', @@ -806,6 +823,7 @@ export const aQuery = (overrides?: Partial): { __typename: 'Query' } & contracts: overrides && overrides.hasOwnProperty('contracts') ? overrides.contracts! : aContractConnection(), estimateGasPrice: overrides && overrides.hasOwnProperty('estimateGasPrice') ? overrides.estimateGasPrice! : anEstimateGasPrice(), estimatePredicates: overrides && overrides.hasOwnProperty('estimatePredicates') ? overrides.estimatePredicates! : aTransaction(), + getBlocksDashboard: overrides && overrides.hasOwnProperty('getBlocksDashboard') ? overrides.getBlocksDashboard! : aBlocksDashboardConnection(), health: overrides && overrides.hasOwnProperty('health') ? overrides.health! : true, latestGasPrice: overrides && overrides.hasOwnProperty('latestGasPrice') ? overrides.latestGasPrice! : aLatestGasPrice(), memory: overrides && overrides.hasOwnProperty('memory') ? overrides.memory! : 'id', @@ -818,6 +836,7 @@ export const aQuery = (overrides?: Partial): { __typename: 'Query' } & register: overrides && overrides.hasOwnProperty('register') ? overrides.register! : '0x3', relayedTransactionStatus: overrides && overrides.hasOwnProperty('relayedTransactionStatus') ? overrides.relayedTransactionStatus! : aRelayedTransactionFailed(), search: overrides && overrides.hasOwnProperty('search') ? overrides.search! : aSearchResult(), + tps: overrides && overrides.hasOwnProperty('tps') ? overrides.tps! : aTpsConnection(), transaction: overrides && overrides.hasOwnProperty('transaction') ? overrides.transaction! : aTransaction(), transactions: overrides && overrides.hasOwnProperty('transactions') ? overrides.transactions! : aTransactionConnection(), transactionsByBlockId: overrides && overrides.hasOwnProperty('transactionsByBlockId') ? overrides.transactionsByBlockId! : aTransactionConnection(), @@ -975,6 +994,23 @@ export const aSuccessStatus = (overrides?: Partial): { __typen }; }; +export const aTps = (overrides?: Partial): { __typename: 'TPS' } & GQLTps => { + return { + __typename: 'TPS', + end: overrides && overrides.hasOwnProperty('end') ? overrides.end! : 'unde', + start: overrides && overrides.hasOwnProperty('start') ? overrides.start! : 'rerum', + totalGas: overrides && overrides.hasOwnProperty('totalGas') ? overrides.totalGas! : '0x9', + txCount: overrides && overrides.hasOwnProperty('txCount') ? overrides.txCount! : '0xA', + }; +}; + +export const aTpsConnection = (overrides?: Partial): { __typename: 'TPSConnection' } & GQLTpsConnection => { + return { + __typename: 'TPSConnection', + nodes: overrides && overrides.hasOwnProperty('nodes') ? overrides.nodes! : [aTps()], + }; +}; + export const aTransaction = (overrides?: Partial): { __typename: 'Transaction' } & GQLTransaction => { return { __typename: 'Transaction', diff --git a/packages/graphql/src/graphql/generated/sdk-provider.ts b/packages/graphql/src/graphql/generated/sdk-provider.ts index da5d18f5..a0a28167 100644 --- a/packages/graphql/src/graphql/generated/sdk-provider.ts +++ b/packages/graphql/src/graphql/generated/sdk-provider.ts @@ -1,51 +1,38 @@ -import { GraphQLError, print } from 'graphql'; import type { GraphQLClient, RequestOptions } from 'graphql-request'; +import { GraphQLError, print } from 'graphql' import gql from 'graphql-tag'; export type Maybe = T | null; export type InputMaybe = Maybe; -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< - T extends { [key: string]: unknown }, - K extends keyof T, -> = { [_ in K]?: never }; -export type Incremental = - | T - | { - [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never; - }; +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 }; type GraphQLClientRequestHeaders = RequestOptions['requestHeaders']; /** 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 }; - Address: { input: string; output: string }; - AssetId: { input: string; output: string }; - BlockId: { input: string; output: string }; - Bytes32: { input: string; output: string }; - ContractId: { input: string; output: string }; - HexString: { input: string; output: string }; - Nonce: { input: string; output: string }; - RelayedTransactionId: { input: string; output: string }; - Salt: { input: string; output: string }; - Signature: { input: string; output: string }; - Tai64Timestamp: { input: string; output: string }; - TransactionId: { input: string; output: string }; - TxPointer: { input: string; output: string }; - U16: { input: string; output: string }; - U32: { input: string; output: string }; - U64: { input: string; output: string }; - UtxoId: { input: string; output: string }; + 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; } + Address: { input: string; output: string; } + AssetId: { input: string; output: string; } + BlockId: { input: string; output: string; } + Bytes32: { input: string; output: string; } + ContractId: { input: string; output: string; } + HexString: { input: string; output: string; } + Nonce: { input: string; output: string; } + RelayedTransactionId: { input: string; output: string; } + Salt: { input: string; output: string; } + Signature: { input: string; output: string; } + Tai64Timestamp: { input: string; output: string; } + TransactionId: { input: string; output: string; } + TxPointer: { input: string; output: string; } + U16: { input: string; output: string; } + U32: { input: string; output: string; } + U64: { input: string; output: string; } + UtxoId: { input: string; output: string; } }; export type GQLBalance = { @@ -114,7 +101,7 @@ export type GQLBlockEdge = { }; export enum GQLBlockVersion { - V1 = 'V1', + V1 = 'V1' } export type GQLBlocksDashboard = { @@ -224,7 +211,7 @@ export type GQLConsensusParametersPurpose = { }; export enum GQLConsensusParametersVersion { - V1 = 'V1', + V1 = 'V1' } export type GQLContract = { @@ -293,7 +280,7 @@ export type GQLContractParameters = { }; export enum GQLContractParametersVersion { - V1 = 'V1', + V1 = 'V1' } export type GQLDependentCost = GQLHeavyOperation | GQLLightOperation; @@ -322,9 +309,7 @@ export type GQLDryRunTransactionExecutionStatus = { status: GQLDryRunTransactionStatus; }; -export type GQLDryRunTransactionStatus = - | GQLDryRunFailureStatus - | GQLDryRunSuccessStatus; +export type GQLDryRunTransactionStatus = GQLDryRunFailureStatus | GQLDryRunSuccessStatus; export type GQLEstimateGasPrice = { __typename: 'EstimateGasPrice'; @@ -358,7 +343,7 @@ export type GQLFeeParameters = { }; export enum GQLFeeParametersVersion { - V1 = 'V1', + V1 = 'V1' } export type GQLGasCosts = { @@ -478,7 +463,7 @@ export type GQLGasCosts = { }; export enum GQLGasCostsVersion { - V1 = 'V1', + V1 = 'V1' } export type GQLGenesis = { @@ -498,10 +483,7 @@ export type GQLGenesis = { transactionsRoot: Scalars['Bytes32']['output']; }; -export type GQLGroupedInput = - | GQLGroupedInputCoin - | GQLGroupedInputContract - | GQLGroupedInputMessage; +export type GQLGroupedInput = GQLGroupedInputCoin | GQLGroupedInputContract | GQLGroupedInputMessage; export type GQLGroupedInputCoin = { __typename: 'GroupedInputCoin'; @@ -531,13 +513,10 @@ export type GQLGroupedInputMessage = { export enum GQLGroupedInputType { InputCoin = 'InputCoin', InputContract = 'InputContract', - InputMessage = 'InputMessage', + InputMessage = 'InputMessage' } -export type GQLGroupedOutput = - | GQLGroupedOutputChanged - | GQLGroupedOutputCoin - | GQLGroupedOutputContractCreated; +export type GQLGroupedOutput = GQLGroupedOutputChanged | GQLGroupedOutputCoin | GQLGroupedOutputContractCreated; export type GQLGroupedOutputChanged = { __typename: 'GroupedOutputChanged'; @@ -567,7 +546,7 @@ export type GQLGroupedOutputContractCreated = { export enum GQLGroupedOutputType { OutputChanged = 'OutputChanged', OutputCoin = 'OutputCoin', - OutputContractCreated = 'OutputContractCreated', + OutputContractCreated = 'OutputContractCreated' } export type GQLHeader = { @@ -603,7 +582,7 @@ export type GQLHeader = { }; export enum GQLHeaderVersion { - V1 = 'V1', + V1 = 'V1' } export type GQLHeavyOperation = { @@ -722,7 +701,7 @@ export type GQLMessageProof = { export enum GQLMessageState { NotFound = 'NOT_FOUND', Spent = 'SPENT', - Unspent = 'UNSPENT', + Unspent = 'UNSPENT' } export type GQLMessageStatus = { @@ -776,49 +755,59 @@ export type GQLMutation = { submit: GQLTransaction; }; + export type GQLMutationContinueTxArgs = { id: Scalars['ID']['input']; }; + export type GQLMutationDryRunArgs = { gasPrice?: InputMaybe; txs: Array; utxoValidation?: InputMaybe; }; + export type GQLMutationEndSessionArgs = { id: Scalars['ID']['input']; }; + export type GQLMutationExecuteArgs = { id: Scalars['ID']['input']; op: Scalars['String']['input']; }; + export type GQLMutationProduceBlocksArgs = { blocksToProduce: Scalars['U32']['input']; startTimestamp?: InputMaybe; }; + export type GQLMutationResetArgs = { id: Scalars['ID']['input']; }; + export type GQLMutationSetBreakpointArgs = { breakpoint: GQLBreakpoint; id: Scalars['ID']['input']; }; + export type GQLMutationSetSingleSteppingArgs = { enable: Scalars['Boolean']['input']; id: Scalars['ID']['input']; }; + export type GQLMutationStartTxArgs = { id: Scalars['ID']['input']; txJson: Scalars['String']['input']; }; + export type GQLMutationSubmitArgs = { tx: Scalars['HexString']['input']; }; @@ -850,19 +839,14 @@ export enum GQLOperationType { FinalResult = 'FINAL_RESULT', FromAccount = 'FROM_ACCOUNT', FromContract = 'FROM_CONTRACT', - Rootless = 'ROOTLESS', + Rootless = 'ROOTLESS' } export type GQLOperationsFilterInput = { transactionHash: Scalars['String']['input']; }; -export type GQLOutput = - | GQLChangeOutput - | GQLCoinOutput - | GQLContractCreated - | GQLContractOutput - | GQLVariableOutput; +export type GQLOutput = GQLChangeOutput | GQLCoinOutput | GQLContractCreated | GQLContractOutput | GQLVariableOutput; /** * A separate `Breakpoint` type to be used as an output, as a single @@ -941,7 +925,7 @@ export type GQLPredicateParameters = { }; export enum GQLPredicateParametersVersion { - V1 = 'V1', + V1 = 'V1' } export type GQLProgramState = { @@ -1004,11 +988,13 @@ export type GQLQuery = { transactionsByOwner: GQLTransactionConnection; }; + export type GQLQueryBalanceArgs = { assetId: Scalars['AssetId']['input']; owner: Scalars['Address']['input']; }; + export type GQLQueryBalancesArgs = { after?: InputMaybe; before?: InputMaybe; @@ -1017,11 +1003,13 @@ export type GQLQueryBalancesArgs = { last?: InputMaybe; }; + export type GQLQueryBlockArgs = { height?: InputMaybe; id?: InputMaybe; }; + export type GQLQueryBlocksArgs = { after?: InputMaybe; before?: InputMaybe; @@ -1029,10 +1017,12 @@ export type GQLQueryBlocksArgs = { last?: InputMaybe; }; + export type GQLQueryCoinArgs = { utxoId: Scalars['UtxoId']['input']; }; + export type GQLQueryCoinsArgs = { after?: InputMaybe; before?: InputMaybe; @@ -1041,21 +1031,25 @@ export type GQLQueryCoinsArgs = { last?: InputMaybe; }; + export type GQLQueryCoinsToSpendArgs = { excludedIds?: InputMaybe; owner: Scalars['Address']['input']; queryPerAsset: Array; }; + export type GQLQueryContractArgs = { id: Scalars['ContractId']['input']; }; + export type GQLQueryContractBalanceArgs = { asset: Scalars['AssetId']['input']; contract: Scalars['ContractId']['input']; }; + export type GQLQueryContractBalancesArgs = { after?: InputMaybe; before?: InputMaybe; @@ -1064,6 +1058,7 @@ export type GQLQueryContractBalancesArgs = { last?: InputMaybe; }; + export type GQLQueryContractsArgs = { after?: InputMaybe; before?: InputMaybe; @@ -1071,24 +1066,29 @@ export type GQLQueryContractsArgs = { last?: InputMaybe; }; + export type GQLQueryEstimateGasPriceArgs = { blockHorizon?: InputMaybe; }; + export type GQLQueryEstimatePredicatesArgs = { tx: Scalars['HexString']['input']; }; + export type GQLQueryMemoryArgs = { id: Scalars['ID']['input']; size: Scalars['U32']['input']; start: Scalars['U32']['input']; }; + export type GQLQueryMessageArgs = { nonce: Scalars['Nonce']['input']; }; + export type GQLQueryMessageProofArgs = { commitBlockHeight?: InputMaybe; commitBlockId?: InputMaybe; @@ -1096,10 +1096,12 @@ export type GQLQueryMessageProofArgs = { transactionId: Scalars['TransactionId']['input']; }; + export type GQLQueryMessageStatusArgs = { nonce: Scalars['Nonce']['input']; }; + export type GQLQueryMessagesArgs = { after?: InputMaybe; before?: InputMaybe; @@ -1108,27 +1110,33 @@ export type GQLQueryMessagesArgs = { owner?: InputMaybe; }; + export type GQLQueryPredicateArgs = { address: Scalars['String']['input']; }; + export type GQLQueryRegisterArgs = { id: Scalars['ID']['input']; register: Scalars['U32']['input']; }; + export type GQLQueryRelayedTransactionStatusArgs = { id: Scalars['RelayedTransactionId']['input']; }; + export type GQLQuerySearchArgs = { query: Scalars['String']['input']; }; + export type GQLQueryTransactionArgs = { id: Scalars['TransactionId']['input']; }; + export type GQLQueryTransactionsArgs = { after?: InputMaybe; before?: InputMaybe; @@ -1136,6 +1144,7 @@ export type GQLQueryTransactionsArgs = { last?: InputMaybe; }; + export type GQLQueryTransactionsByBlockIdArgs = { after?: InputMaybe; before?: InputMaybe; @@ -1144,6 +1153,7 @@ export type GQLQueryTransactionsByBlockIdArgs = { last?: InputMaybe; }; + export type GQLQueryTransactionsByOwnerArgs = { after?: InputMaybe; before?: InputMaybe; @@ -1198,7 +1208,7 @@ export enum GQLReceiptType { Revert = 'REVERT', ScriptResult = 'SCRIPT_RESULT', Transfer = 'TRANSFER', - TransferOut = 'TRANSFER_OUT', + TransferOut = 'TRANSFER_OUT' } export type GQLRelayedTransactionFailed = { @@ -1212,7 +1222,7 @@ export type GQLRelayedTransactionStatus = GQLRelayedTransactionFailed; export enum GQLReturnType { Return = 'RETURN', ReturnData = 'RETURN_DATA', - Revert = 'REVERT', + Revert = 'REVERT' } export type GQLRunResult = { @@ -1226,7 +1236,7 @@ export enum GQLRunState { /** Stopped on a breakpoint */ Breakpoint = 'BREAKPOINT', /** All breakpoints have been processed, and the program has terminated */ - Completed = 'COMPLETED', + Completed = 'COMPLETED' } export type GQLScriptParameters = { @@ -1237,7 +1247,7 @@ export type GQLScriptParameters = { }; export enum GQLScriptParametersVersion { - V1 = 'V1', + V1 = 'V1' } export type GQLSearchAccount = { @@ -1315,10 +1325,12 @@ export type GQLSubscription = { submitAndAwait: GQLTransactionStatus; }; + export type GQLSubscriptionStatusChangeArgs = { id: Scalars['TransactionId']['input']; }; + export type GQLSubscriptionSubmitAndAwaitArgs = { tx: Scalars['HexString']['input']; }; @@ -1421,11 +1433,7 @@ export type GQLTransactionGasCosts = { gasUsed?: Maybe; }; -export type GQLTransactionStatus = - | GQLFailureStatus - | GQLSqueezedOutStatus - | GQLSubmittedStatus - | GQLSuccessStatus; +export type GQLTransactionStatus = GQLFailureStatus | GQLSqueezedOutStatus | GQLSubmittedStatus | GQLSuccessStatus; export type GQLTxParameters = { __typename: 'TxParameters'; @@ -1439,12 +1447,10 @@ export type GQLTxParameters = { }; export enum GQLTxParametersVersion { - V1 = 'V1', + V1 = 'V1' } -export type GQLUpgradePurpose = - | GQLConsensusParametersPurpose - | GQLStateTransitionPurpose; +export type GQLUpgradePurpose = GQLConsensusParametersPurpose | GQLStateTransitionPurpose; export type GQLUtxoItem = { __typename: 'UtxoItem'; @@ -1466,22 +1472,10 @@ export type GQLBalanceQueryVariables = Exact<{ owner: Scalars['Address']['input']; }>; -export type GQLBalanceQuery = { - __typename: 'Query'; - balance: { - __typename: 'Balance'; - amount: string; - assetId: string; - owner: string; - }; -}; -export type GQLBalanceItemFragment = { - __typename: 'Balance'; - amount: string; - assetId: string; - owner: string; -}; +export type GQLBalanceQuery = { __typename: 'Query', balance: { __typename: 'Balance', amount: string, assetId: string, owner: string } }; + +export type GQLBalanceItemFragment = { __typename: 'Balance', amount: string, assetId: string, owner: string }; export type GQLBalancesQueryVariables = Exact<{ after?: InputMaybe; @@ -1491,329 +1485,10 @@ export type GQLBalancesQueryVariables = Exact<{ last?: InputMaybe; }>; -export type GQLBalancesQuery = { - __typename: 'Query'; - balances: { - __typename: 'BalanceConnection'; - nodes: Array<{ - __typename: 'Balance'; - amount: string; - assetId: string; - owner: string; - }>; - pageInfo: { - __typename: 'PageInfo'; - endCursor?: string | null; - hasNextPage: boolean; - hasPreviousPage: boolean; - startCursor?: string | null; - }; - }; -}; -export type GQLBlockItemFragment = { - __typename: 'Block'; - height: string; - id: string; - consensus: - | { - __typename: 'Genesis'; - chainConfigHash: string; - coinsRoot: string; - contractsRoot: string; - messagesRoot: string; - transactionsRoot: string; - } - | { __typename: 'PoAConsensus'; signature: string }; - header: { - __typename: 'Header'; - applicationHash: string; - consensusParametersVersion: string; - daHeight: string; - eventInboxRoot: string; - height: string; - id: string; - messageOutboxRoot: string; - messageReceiptCount: string; - prevRoot: string; - stateTransitionBytecodeVersion: string; - time: string; - transactionsCount: string; - transactionsRoot: string; - }; - transactions: Array<{ - __typename: 'Transaction'; - bytecodeRoot?: string | null; - bytecodeWitnessIndex?: string | null; - id: string; - inputAssetIds?: Array | null; - inputContracts?: Array | null; - isCreate: boolean; - isMint: boolean; - isScript: boolean; - isUpgrade: boolean; - isUpload: boolean; - maturity?: string | null; - mintAmount?: string | null; - mintAssetId?: string | null; - mintGasPrice?: string | null; - proofSet?: Array | null; - rawPayload: string; - receiptsRoot?: string | null; - salt?: string | null; - script?: string | null; - scriptData?: string | null; - scriptGasLimit?: string | null; - storageSlots?: Array | null; - subsectionIndex?: string | null; - subsectionsNumber?: string | null; - txPointer?: string | null; - witnesses?: Array | null; - inputContract?: { - __typename: 'InputContract'; - balanceRoot: string; - contractId: string; - stateRoot: string; - txPointer: string; - utxoId: string; - } | null; - inputs?: Array< - | { - __typename: 'InputCoin'; - amount: string; - assetId: string; - owner: string; - predicate: string; - predicateData: string; - predicateGasUsed: string; - txPointer: string; - utxoId: string; - witnessIndex: string; - } - | { - __typename: 'InputContract'; - balanceRoot: string; - contractId: string; - stateRoot: string; - txPointer: string; - utxoId: string; - } - | { - __typename: 'InputMessage'; - amount: string; - data: string; - nonce: string; - predicate: string; - predicateData: string; - predicateGasUsed: string; - recipient: string; - sender: string; - witnessIndex: string; - } - > | null; - outputContract?: { - __typename: 'ContractOutput'; - balanceRoot: string; - inputIndex: string; - stateRoot: string; - } | null; - outputs: Array< - | { - __typename: 'ChangeOutput'; - amount: string; - assetId: string; - to: string; - } - | { - __typename: 'CoinOutput'; - amount: string; - assetId: string; - to: string; - } - | { __typename: 'ContractCreated'; contract: string; stateRoot: string } - | { - __typename: 'ContractOutput'; - balanceRoot: string; - inputIndex: string; - stateRoot: string; - } - | { - __typename: 'VariableOutput'; - amount: string; - assetId: string; - to: string; - } - >; - policies?: { - __typename: 'Policies'; - maturity?: string | null; - maxFee?: string | null; - tip?: string | null; - witnessLimit?: string | null; - } | null; - status?: - | { - __typename: 'FailureStatus'; - reason: string; - time: string; - totalFee: string; - totalGas: string; - transactionId: string; - block: { - __typename: 'Block'; - height: string; - id: string; - consensus: - | { - __typename: 'Genesis'; - chainConfigHash: string; - coinsRoot: string; - contractsRoot: string; - messagesRoot: string; - transactionsRoot: string; - } - | { __typename: 'PoAConsensus'; signature: string }; - header: { - __typename: 'Header'; - applicationHash: string; - consensusParametersVersion: string; - daHeight: string; - eventInboxRoot: string; - height: string; - id: string; - messageOutboxRoot: string; - messageReceiptCount: string; - prevRoot: string; - stateTransitionBytecodeVersion: string; - time: string; - transactionsCount: string; - transactionsRoot: string; - }; - }; - programState?: { - __typename: 'ProgramState'; - data: string; - returnType: GQLReturnType; - } | null; - receipts: Array<{ - __typename: 'Receipt'; - amount?: string | null; - assetId?: string | null; - contractId?: string | null; - data?: string | null; - digest?: string | null; - gas?: string | null; - gasUsed?: string | null; - id?: string | null; - is?: string | null; - len?: string | null; - nonce?: string | null; - param1?: string | null; - param2?: string | null; - pc?: string | null; - ptr?: string | null; - ra?: string | null; - rb?: string | null; - rc?: string | null; - rd?: string | null; - reason?: string | null; - receiptType: GQLReceiptType; - recipient?: string | null; - result?: string | null; - sender?: string | null; - subId?: string | null; - to?: string | null; - toAddress?: string | null; - val?: string | null; - }>; - } - | { __typename: 'SqueezedOutStatus'; reason: string } - | { __typename: 'SubmittedStatus'; time: string } - | { - __typename: 'SuccessStatus'; - time: string; - totalFee: string; - totalGas: string; - transactionId: string; - block: { - __typename: 'Block'; - height: string; - id: string; - consensus: - | { - __typename: 'Genesis'; - chainConfigHash: string; - coinsRoot: string; - contractsRoot: string; - messagesRoot: string; - transactionsRoot: string; - } - | { __typename: 'PoAConsensus'; signature: string }; - header: { - __typename: 'Header'; - applicationHash: string; - consensusParametersVersion: string; - daHeight: string; - eventInboxRoot: string; - height: string; - id: string; - messageOutboxRoot: string; - messageReceiptCount: string; - prevRoot: string; - stateTransitionBytecodeVersion: string; - time: string; - transactionsCount: string; - transactionsRoot: string; - }; - }; - programState?: { - __typename: 'ProgramState'; - data: string; - returnType: GQLReturnType; - } | null; - receipts: Array<{ - __typename: 'Receipt'; - amount?: string | null; - assetId?: string | null; - contractId?: string | null; - data?: string | null; - digest?: string | null; - gas?: string | null; - gasUsed?: string | null; - id?: string | null; - is?: string | null; - len?: string | null; - nonce?: string | null; - param1?: string | null; - param2?: string | null; - pc?: string | null; - ptr?: string | null; - ra?: string | null; - rb?: string | null; - rc?: string | null; - rd?: string | null; - reason?: string | null; - receiptType: GQLReceiptType; - recipient?: string | null; - result?: string | null; - sender?: string | null; - subId?: string | null; - to?: string | null; - toAddress?: string | null; - val?: string | null; - }>; - } - | null; - upgradePurpose?: - | { - __typename: 'ConsensusParametersPurpose'; - checksum: string; - witnessIndex: string; - } - | { __typename: 'StateTransitionPurpose'; root: string } - | null; - }>; -}; +export type GQLBalancesQuery = { __typename: 'Query', balances: { __typename: 'BalanceConnection', nodes: Array<{ __typename: 'Balance', amount: string, assetId: string, owner: string }>, pageInfo: { __typename: 'PageInfo', endCursor?: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor?: string | null } } }; + +export type GQLBlockItemFragment = { __typename: 'Block', height: string, id: string, consensus: { __typename: 'Genesis', chainConfigHash: string, coinsRoot: string, contractsRoot: string, messagesRoot: string, transactionsRoot: string } | { __typename: 'PoAConsensus', signature: string }, header: { __typename: 'Header', applicationHash: string, consensusParametersVersion: string, daHeight: string, eventInboxRoot: string, height: string, id: string, messageOutboxRoot: string, messageReceiptCount: string, prevRoot: string, stateTransitionBytecodeVersion: string, time: string, transactionsCount: string, transactionsRoot: string }, transactions: Array<{ __typename: 'Transaction', bytecodeRoot?: string | null, bytecodeWitnessIndex?: string | null, id: string, inputAssetIds?: Array | null, inputContracts?: Array | null, isCreate: boolean, isMint: boolean, isScript: boolean, isUpgrade: boolean, isUpload: boolean, maturity?: string | null, mintAmount?: string | null, mintAssetId?: string | null, mintGasPrice?: string | null, proofSet?: Array | null, rawPayload: string, receiptsRoot?: string | null, salt?: string | null, script?: string | null, scriptData?: string | null, scriptGasLimit?: string | null, storageSlots?: Array | null, subsectionIndex?: string | null, subsectionsNumber?: string | null, txPointer?: string | null, witnesses?: Array | null, inputContract?: { __typename: 'InputContract', balanceRoot: string, contractId: string, stateRoot: string, txPointer: string, utxoId: string } | null, inputs?: Array<{ __typename: 'InputCoin', amount: string, assetId: string, owner: string, predicate: string, predicateData: string, predicateGasUsed: string, txPointer: string, utxoId: string, witnessIndex: string } | { __typename: 'InputContract', balanceRoot: string, contractId: string, stateRoot: string, txPointer: string, utxoId: string } | { __typename: 'InputMessage', amount: string, data: string, nonce: string, predicate: string, predicateData: string, predicateGasUsed: string, recipient: string, sender: string, witnessIndex: string }> | null, outputContract?: { __typename: 'ContractOutput', balanceRoot: string, inputIndex: string, stateRoot: string } | null, outputs: Array<{ __typename: 'ChangeOutput', amount: string, assetId: string, to: string } | { __typename: 'CoinOutput', amount: string, assetId: string, to: string } | { __typename: 'ContractCreated', contract: string, stateRoot: string } | { __typename: 'ContractOutput', balanceRoot: string, inputIndex: string, stateRoot: string } | { __typename: 'VariableOutput', amount: string, assetId: string, to: string }>, policies?: { __typename: 'Policies', maturity?: string | null, maxFee?: string | null, tip?: string | null, witnessLimit?: string | null } | null, status?: { __typename: 'FailureStatus', reason: string, time: string, totalFee: string, totalGas: string, transactionId: string, block: { __typename: 'Block', height: string, id: string, consensus: { __typename: 'Genesis', chainConfigHash: string, coinsRoot: string, contractsRoot: string, messagesRoot: string, transactionsRoot: string } | { __typename: 'PoAConsensus', signature: string }, header: { __typename: 'Header', applicationHash: string, consensusParametersVersion: string, daHeight: string, eventInboxRoot: string, height: string, id: string, messageOutboxRoot: string, messageReceiptCount: string, prevRoot: string, stateTransitionBytecodeVersion: string, time: string, transactionsCount: string, transactionsRoot: string } }, programState?: { __typename: 'ProgramState', data: string, returnType: GQLReturnType } | null, receipts: Array<{ __typename: 'Receipt', amount?: string | null, assetId?: string | null, contractId?: string | null, data?: string | null, digest?: string | null, gas?: string | null, gasUsed?: string | null, id?: string | null, is?: string | null, len?: string | null, nonce?: string | null, param1?: string | null, param2?: string | null, pc?: string | null, ptr?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, reason?: string | null, receiptType: GQLReceiptType, recipient?: string | null, result?: string | null, sender?: string | null, subId?: string | null, to?: string | null, toAddress?: string | null, val?: string | null }> } | { __typename: 'SqueezedOutStatus', reason: string } | { __typename: 'SubmittedStatus', time: string } | { __typename: 'SuccessStatus', time: string, totalFee: string, totalGas: string, transactionId: string, block: { __typename: 'Block', height: string, id: string, consensus: { __typename: 'Genesis', chainConfigHash: string, coinsRoot: string, contractsRoot: string, messagesRoot: string, transactionsRoot: string } | { __typename: 'PoAConsensus', signature: string }, header: { __typename: 'Header', applicationHash: string, consensusParametersVersion: string, daHeight: string, eventInboxRoot: string, height: string, id: string, messageOutboxRoot: string, messageReceiptCount: string, prevRoot: string, stateTransitionBytecodeVersion: string, time: string, transactionsCount: string, transactionsRoot: string } }, programState?: { __typename: 'ProgramState', data: string, returnType: GQLReturnType } | null, receipts: Array<{ __typename: 'Receipt', amount?: string | null, assetId?: string | null, contractId?: string | null, data?: string | null, digest?: string | null, gas?: string | null, gasUsed?: string | null, id?: string | null, is?: string | null, len?: string | null, nonce?: string | null, param1?: string | null, param2?: string | null, pc?: string | null, ptr?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, reason?: string | null, receiptType: GQLReceiptType, recipient?: string | null, result?: string | null, sender?: string | null, subId?: string | null, to?: string | null, toAddress?: string | null, val?: string | null }> } | null, upgradePurpose?: { __typename: 'ConsensusParametersPurpose', checksum: string, witnessIndex: string } | { __typename: 'StateTransitionPurpose', root: string } | null }> }; export type GQLBlocksQueryVariables = Exact<{ after?: InputMaybe; @@ -1822,1587 +1497,13 @@ export type GQLBlocksQueryVariables = Exact<{ last?: InputMaybe; }>; -export type GQLBlocksQuery = { - __typename: 'Query'; - blocks: { - __typename: 'BlockConnection'; - edges: Array<{ - __typename: 'BlockEdge'; - cursor: string; - node: { - __typename: 'Block'; - height: string; - id: string; - consensus: - | { - __typename: 'Genesis'; - chainConfigHash: string; - coinsRoot: string; - contractsRoot: string; - messagesRoot: string; - transactionsRoot: string; - } - | { __typename: 'PoAConsensus'; signature: string }; - header: { - __typename: 'Header'; - applicationHash: string; - consensusParametersVersion: string; - daHeight: string; - eventInboxRoot: string; - height: string; - id: string; - messageOutboxRoot: string; - messageReceiptCount: string; - prevRoot: string; - stateTransitionBytecodeVersion: string; - time: string; - transactionsCount: string; - transactionsRoot: string; - }; - transactions: Array<{ - __typename: 'Transaction'; - bytecodeRoot?: string | null; - bytecodeWitnessIndex?: string | null; - id: string; - inputAssetIds?: Array | null; - inputContracts?: Array | null; - isCreate: boolean; - isMint: boolean; - isScript: boolean; - isUpgrade: boolean; - isUpload: boolean; - maturity?: string | null; - mintAmount?: string | null; - mintAssetId?: string | null; - mintGasPrice?: string | null; - proofSet?: Array | null; - rawPayload: string; - receiptsRoot?: string | null; - salt?: string | null; - script?: string | null; - scriptData?: string | null; - scriptGasLimit?: string | null; - storageSlots?: Array | null; - subsectionIndex?: string | null; - subsectionsNumber?: string | null; - txPointer?: string | null; - witnesses?: Array | null; - inputContract?: { - __typename: 'InputContract'; - balanceRoot: string; - contractId: string; - stateRoot: string; - txPointer: string; - utxoId: string; - } | null; - inputs?: Array< - | { - __typename: 'InputCoin'; - amount: string; - assetId: string; - owner: string; - predicate: string; - predicateData: string; - predicateGasUsed: string; - txPointer: string; - utxoId: string; - witnessIndex: string; - } - | { - __typename: 'InputContract'; - balanceRoot: string; - contractId: string; - stateRoot: string; - txPointer: string; - utxoId: string; - } - | { - __typename: 'InputMessage'; - amount: string; - data: string; - nonce: string; - predicate: string; - predicateData: string; - predicateGasUsed: string; - recipient: string; - sender: string; - witnessIndex: string; - } - > | null; - outputContract?: { - __typename: 'ContractOutput'; - balanceRoot: string; - inputIndex: string; - stateRoot: string; - } | null; - outputs: Array< - | { - __typename: 'ChangeOutput'; - amount: string; - assetId: string; - to: string; - } - | { - __typename: 'CoinOutput'; - amount: string; - assetId: string; - to: string; - } - | { - __typename: 'ContractCreated'; - contract: string; - stateRoot: string; - } - | { - __typename: 'ContractOutput'; - balanceRoot: string; - inputIndex: string; - stateRoot: string; - } - | { - __typename: 'VariableOutput'; - amount: string; - assetId: string; - to: string; - } - >; - policies?: { - __typename: 'Policies'; - maturity?: string | null; - maxFee?: string | null; - tip?: string | null; - witnessLimit?: string | null; - } | null; - status?: - | { - __typename: 'FailureStatus'; - reason: string; - time: string; - totalFee: string; - totalGas: string; - transactionId: string; - block: { - __typename: 'Block'; - height: string; - id: string; - consensus: - | { - __typename: 'Genesis'; - chainConfigHash: string; - coinsRoot: string; - contractsRoot: string; - messagesRoot: string; - transactionsRoot: string; - } - | { __typename: 'PoAConsensus'; signature: string }; - header: { - __typename: 'Header'; - applicationHash: string; - consensusParametersVersion: string; - daHeight: string; - eventInboxRoot: string; - height: string; - id: string; - messageOutboxRoot: string; - messageReceiptCount: string; - prevRoot: string; - stateTransitionBytecodeVersion: string; - time: string; - transactionsCount: string; - transactionsRoot: string; - }; - }; - programState?: { - __typename: 'ProgramState'; - data: string; - returnType: GQLReturnType; - } | null; - receipts: Array<{ - __typename: 'Receipt'; - amount?: string | null; - assetId?: string | null; - contractId?: string | null; - data?: string | null; - digest?: string | null; - gas?: string | null; - gasUsed?: string | null; - id?: string | null; - is?: string | null; - len?: string | null; - nonce?: string | null; - param1?: string | null; - param2?: string | null; - pc?: string | null; - ptr?: string | null; - ra?: string | null; - rb?: string | null; - rc?: string | null; - rd?: string | null; - reason?: string | null; - receiptType: GQLReceiptType; - recipient?: string | null; - result?: string | null; - sender?: string | null; - subId?: string | null; - to?: string | null; - toAddress?: string | null; - val?: string | null; - }>; - } - | { __typename: 'SqueezedOutStatus'; reason: string } - | { __typename: 'SubmittedStatus'; time: string } - | { - __typename: 'SuccessStatus'; - time: string; - totalFee: string; - totalGas: string; - transactionId: string; - block: { - __typename: 'Block'; - height: string; - id: string; - consensus: - | { - __typename: 'Genesis'; - chainConfigHash: string; - coinsRoot: string; - contractsRoot: string; - messagesRoot: string; - transactionsRoot: string; - } - | { __typename: 'PoAConsensus'; signature: string }; - header: { - __typename: 'Header'; - applicationHash: string; - consensusParametersVersion: string; - daHeight: string; - eventInboxRoot: string; - height: string; - id: string; - messageOutboxRoot: string; - messageReceiptCount: string; - prevRoot: string; - stateTransitionBytecodeVersion: string; - time: string; - transactionsCount: string; - transactionsRoot: string; - }; - }; - programState?: { - __typename: 'ProgramState'; - data: string; - returnType: GQLReturnType; - } | null; - receipts: Array<{ - __typename: 'Receipt'; - amount?: string | null; - assetId?: string | null; - contractId?: string | null; - data?: string | null; - digest?: string | null; - gas?: string | null; - gasUsed?: string | null; - id?: string | null; - is?: string | null; - len?: string | null; - nonce?: string | null; - param1?: string | null; - param2?: string | null; - pc?: string | null; - ptr?: string | null; - ra?: string | null; - rb?: string | null; - rc?: string | null; - rd?: string | null; - reason?: string | null; - receiptType: GQLReceiptType; - recipient?: string | null; - result?: string | null; - sender?: string | null; - subId?: string | null; - to?: string | null; - toAddress?: string | null; - val?: string | null; - }>; - } - | null; - upgradePurpose?: - | { - __typename: 'ConsensusParametersPurpose'; - checksum: string; - witnessIndex: string; - } - | { __typename: 'StateTransitionPurpose'; root: string } - | null; - }>; - }; - }>; - nodes: Array<{ - __typename: 'Block'; - height: string; - id: string; - consensus: - | { - __typename: 'Genesis'; - chainConfigHash: string; - coinsRoot: string; - contractsRoot: string; - messagesRoot: string; - transactionsRoot: string; - } - | { __typename: 'PoAConsensus'; signature: string }; - header: { - __typename: 'Header'; - applicationHash: string; - consensusParametersVersion: string; - daHeight: string; - eventInboxRoot: string; - height: string; - id: string; - messageOutboxRoot: string; - messageReceiptCount: string; - prevRoot: string; - stateTransitionBytecodeVersion: string; - time: string; - transactionsCount: string; - transactionsRoot: string; - }; - transactions: Array<{ - __typename: 'Transaction'; - bytecodeRoot?: string | null; - bytecodeWitnessIndex?: string | null; - id: string; - inputAssetIds?: Array | null; - inputContracts?: Array | null; - isCreate: boolean; - isMint: boolean; - isScript: boolean; - isUpgrade: boolean; - isUpload: boolean; - maturity?: string | null; - mintAmount?: string | null; - mintAssetId?: string | null; - mintGasPrice?: string | null; - proofSet?: Array | null; - rawPayload: string; - receiptsRoot?: string | null; - salt?: string | null; - script?: string | null; - scriptData?: string | null; - scriptGasLimit?: string | null; - storageSlots?: Array | null; - subsectionIndex?: string | null; - subsectionsNumber?: string | null; - txPointer?: string | null; - witnesses?: Array | null; - inputContract?: { - __typename: 'InputContract'; - balanceRoot: string; - contractId: string; - stateRoot: string; - txPointer: string; - utxoId: string; - } | null; - inputs?: Array< - | { - __typename: 'InputCoin'; - amount: string; - assetId: string; - owner: string; - predicate: string; - predicateData: string; - predicateGasUsed: string; - txPointer: string; - utxoId: string; - witnessIndex: string; - } - | { - __typename: 'InputContract'; - balanceRoot: string; - contractId: string; - stateRoot: string; - txPointer: string; - utxoId: string; - } - | { - __typename: 'InputMessage'; - amount: string; - data: string; - nonce: string; - predicate: string; - predicateData: string; - predicateGasUsed: string; - recipient: string; - sender: string; - witnessIndex: string; - } - > | null; - outputContract?: { - __typename: 'ContractOutput'; - balanceRoot: string; - inputIndex: string; - stateRoot: string; - } | null; - outputs: Array< - | { - __typename: 'ChangeOutput'; - amount: string; - assetId: string; - to: string; - } - | { - __typename: 'CoinOutput'; - amount: string; - assetId: string; - to: string; - } - | { - __typename: 'ContractCreated'; - contract: string; - stateRoot: string; - } - | { - __typename: 'ContractOutput'; - balanceRoot: string; - inputIndex: string; - stateRoot: string; - } - | { - __typename: 'VariableOutput'; - amount: string; - assetId: string; - to: string; - } - >; - policies?: { - __typename: 'Policies'; - maturity?: string | null; - maxFee?: string | null; - tip?: string | null; - witnessLimit?: string | null; - } | null; - status?: - | { - __typename: 'FailureStatus'; - reason: string; - time: string; - totalFee: string; - totalGas: string; - transactionId: string; - block: { - __typename: 'Block'; - height: string; - id: string; - consensus: - | { - __typename: 'Genesis'; - chainConfigHash: string; - coinsRoot: string; - contractsRoot: string; - messagesRoot: string; - transactionsRoot: string; - } - | { __typename: 'PoAConsensus'; signature: string }; - header: { - __typename: 'Header'; - applicationHash: string; - consensusParametersVersion: string; - daHeight: string; - eventInboxRoot: string; - height: string; - id: string; - messageOutboxRoot: string; - messageReceiptCount: string; - prevRoot: string; - stateTransitionBytecodeVersion: string; - time: string; - transactionsCount: string; - transactionsRoot: string; - }; - }; - programState?: { - __typename: 'ProgramState'; - data: string; - returnType: GQLReturnType; - } | null; - receipts: Array<{ - __typename: 'Receipt'; - amount?: string | null; - assetId?: string | null; - contractId?: string | null; - data?: string | null; - digest?: string | null; - gas?: string | null; - gasUsed?: string | null; - id?: string | null; - is?: string | null; - len?: string | null; - nonce?: string | null; - param1?: string | null; - param2?: string | null; - pc?: string | null; - ptr?: string | null; - ra?: string | null; - rb?: string | null; - rc?: string | null; - rd?: string | null; - reason?: string | null; - receiptType: GQLReceiptType; - recipient?: string | null; - result?: string | null; - sender?: string | null; - subId?: string | null; - to?: string | null; - toAddress?: string | null; - val?: string | null; - }>; - } - | { __typename: 'SqueezedOutStatus'; reason: string } - | { __typename: 'SubmittedStatus'; time: string } - | { - __typename: 'SuccessStatus'; - time: string; - totalFee: string; - totalGas: string; - transactionId: string; - block: { - __typename: 'Block'; - height: string; - id: string; - consensus: - | { - __typename: 'Genesis'; - chainConfigHash: string; - coinsRoot: string; - contractsRoot: string; - messagesRoot: string; - transactionsRoot: string; - } - | { __typename: 'PoAConsensus'; signature: string }; - header: { - __typename: 'Header'; - applicationHash: string; - consensusParametersVersion: string; - daHeight: string; - eventInboxRoot: string; - height: string; - id: string; - messageOutboxRoot: string; - messageReceiptCount: string; - prevRoot: string; - stateTransitionBytecodeVersion: string; - time: string; - transactionsCount: string; - transactionsRoot: string; - }; - }; - programState?: { - __typename: 'ProgramState'; - data: string; - returnType: GQLReturnType; - } | null; - receipts: Array<{ - __typename: 'Receipt'; - amount?: string | null; - assetId?: string | null; - contractId?: string | null; - data?: string | null; - digest?: string | null; - gas?: string | null; - gasUsed?: string | null; - id?: string | null; - is?: string | null; - len?: string | null; - nonce?: string | null; - param1?: string | null; - param2?: string | null; - pc?: string | null; - ptr?: string | null; - ra?: string | null; - rb?: string | null; - rc?: string | null; - rd?: string | null; - reason?: string | null; - receiptType: GQLReceiptType; - recipient?: string | null; - result?: string | null; - sender?: string | null; - subId?: string | null; - to?: string | null; - toAddress?: string | null; - val?: string | null; - }>; - } - | null; - upgradePurpose?: - | { - __typename: 'ConsensusParametersPurpose'; - checksum: string; - witnessIndex: string; - } - | { __typename: 'StateTransitionPurpose'; root: string } - | null; - }>; - }>; - pageInfo: { - __typename: 'PageInfo'; - endCursor?: string | null; - hasNextPage: boolean; - hasPreviousPage: boolean; - startCursor?: string | null; - }; - }; -}; -export type GQLChainQueryVariables = Exact<{ [key: string]: never }>; +export type GQLBlocksQuery = { __typename: 'Query', blocks: { __typename: 'BlockConnection', edges: Array<{ __typename: 'BlockEdge', cursor: string, node: { __typename: 'Block', height: string, id: string, consensus: { __typename: 'Genesis', chainConfigHash: string, coinsRoot: string, contractsRoot: string, messagesRoot: string, transactionsRoot: string } | { __typename: 'PoAConsensus', signature: string }, header: { __typename: 'Header', applicationHash: string, consensusParametersVersion: string, daHeight: string, eventInboxRoot: string, height: string, id: string, messageOutboxRoot: string, messageReceiptCount: string, prevRoot: string, stateTransitionBytecodeVersion: string, time: string, transactionsCount: string, transactionsRoot: string }, transactions: Array<{ __typename: 'Transaction', bytecodeRoot?: string | null, bytecodeWitnessIndex?: string | null, id: string, inputAssetIds?: Array | null, inputContracts?: Array | null, isCreate: boolean, isMint: boolean, isScript: boolean, isUpgrade: boolean, isUpload: boolean, maturity?: string | null, mintAmount?: string | null, mintAssetId?: string | null, mintGasPrice?: string | null, proofSet?: Array | null, rawPayload: string, receiptsRoot?: string | null, salt?: string | null, script?: string | null, scriptData?: string | null, scriptGasLimit?: string | null, storageSlots?: Array | null, subsectionIndex?: string | null, subsectionsNumber?: string | null, txPointer?: string | null, witnesses?: Array | null, inputContract?: { __typename: 'InputContract', balanceRoot: string, contractId: string, stateRoot: string, txPointer: string, utxoId: string } | null, inputs?: Array<{ __typename: 'InputCoin', amount: string, assetId: string, owner: string, predicate: string, predicateData: string, predicateGasUsed: string, txPointer: string, utxoId: string, witnessIndex: string } | { __typename: 'InputContract', balanceRoot: string, contractId: string, stateRoot: string, txPointer: string, utxoId: string } | { __typename: 'InputMessage', amount: string, data: string, nonce: string, predicate: string, predicateData: string, predicateGasUsed: string, recipient: string, sender: string, witnessIndex: string }> | null, outputContract?: { __typename: 'ContractOutput', balanceRoot: string, inputIndex: string, stateRoot: string } | null, outputs: Array<{ __typename: 'ChangeOutput', amount: string, assetId: string, to: string } | { __typename: 'CoinOutput', amount: string, assetId: string, to: string } | { __typename: 'ContractCreated', contract: string, stateRoot: string } | { __typename: 'ContractOutput', balanceRoot: string, inputIndex: string, stateRoot: string } | { __typename: 'VariableOutput', amount: string, assetId: string, to: string }>, policies?: { __typename: 'Policies', maturity?: string | null, maxFee?: string | null, tip?: string | null, witnessLimit?: string | null } | null, status?: { __typename: 'FailureStatus', reason: string, time: string, totalFee: string, totalGas: string, transactionId: string, block: { __typename: 'Block', height: string, id: string, consensus: { __typename: 'Genesis', chainConfigHash: string, coinsRoot: string, contractsRoot: string, messagesRoot: string, transactionsRoot: string } | { __typename: 'PoAConsensus', signature: string }, header: { __typename: 'Header', applicationHash: string, consensusParametersVersion: string, daHeight: string, eventInboxRoot: string, height: string, id: string, messageOutboxRoot: string, messageReceiptCount: string, prevRoot: string, stateTransitionBytecodeVersion: string, time: string, transactionsCount: string, transactionsRoot: string } }, programState?: { __typename: 'ProgramState', data: string, returnType: GQLReturnType } | null, receipts: Array<{ __typename: 'Receipt', amount?: string | null, assetId?: string | null, contractId?: string | null, data?: string | null, digest?: string | null, gas?: string | null, gasUsed?: string | null, id?: string | null, is?: string | null, len?: string | null, nonce?: string | null, param1?: string | null, param2?: string | null, pc?: string | null, ptr?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, reason?: string | null, receiptType: GQLReceiptType, recipient?: string | null, result?: string | null, sender?: string | null, subId?: string | null, to?: string | null, toAddress?: string | null, val?: string | null }> } | { __typename: 'SqueezedOutStatus', reason: string } | { __typename: 'SubmittedStatus', time: string } | { __typename: 'SuccessStatus', time: string, totalFee: string, totalGas: string, transactionId: string, block: { __typename: 'Block', height: string, id: string, consensus: { __typename: 'Genesis', chainConfigHash: string, coinsRoot: string, contractsRoot: string, messagesRoot: string, transactionsRoot: string } | { __typename: 'PoAConsensus', signature: string }, header: { __typename: 'Header', applicationHash: string, consensusParametersVersion: string, daHeight: string, eventInboxRoot: string, height: string, id: string, messageOutboxRoot: string, messageReceiptCount: string, prevRoot: string, stateTransitionBytecodeVersion: string, time: string, transactionsCount: string, transactionsRoot: string } }, programState?: { __typename: 'ProgramState', data: string, returnType: GQLReturnType } | null, receipts: Array<{ __typename: 'Receipt', amount?: string | null, assetId?: string | null, contractId?: string | null, data?: string | null, digest?: string | null, gas?: string | null, gasUsed?: string | null, id?: string | null, is?: string | null, len?: string | null, nonce?: string | null, param1?: string | null, param2?: string | null, pc?: string | null, ptr?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, reason?: string | null, receiptType: GQLReceiptType, recipient?: string | null, result?: string | null, sender?: string | null, subId?: string | null, to?: string | null, toAddress?: string | null, val?: string | null }> } | null, upgradePurpose?: { __typename: 'ConsensusParametersPurpose', checksum: string, witnessIndex: string } | { __typename: 'StateTransitionPurpose', root: string } | null }> } }>, nodes: Array<{ __typename: 'Block', height: string, id: string, consensus: { __typename: 'Genesis', chainConfigHash: string, coinsRoot: string, contractsRoot: string, messagesRoot: string, transactionsRoot: string } | { __typename: 'PoAConsensus', signature: string }, header: { __typename: 'Header', applicationHash: string, consensusParametersVersion: string, daHeight: string, eventInboxRoot: string, height: string, id: string, messageOutboxRoot: string, messageReceiptCount: string, prevRoot: string, stateTransitionBytecodeVersion: string, time: string, transactionsCount: string, transactionsRoot: string }, transactions: Array<{ __typename: 'Transaction', bytecodeRoot?: string | null, bytecodeWitnessIndex?: string | null, id: string, inputAssetIds?: Array | null, inputContracts?: Array | null, isCreate: boolean, isMint: boolean, isScript: boolean, isUpgrade: boolean, isUpload: boolean, maturity?: string | null, mintAmount?: string | null, mintAssetId?: string | null, mintGasPrice?: string | null, proofSet?: Array | null, rawPayload: string, receiptsRoot?: string | null, salt?: string | null, script?: string | null, scriptData?: string | null, scriptGasLimit?: string | null, storageSlots?: Array | null, subsectionIndex?: string | null, subsectionsNumber?: string | null, txPointer?: string | null, witnesses?: Array | null, inputContract?: { __typename: 'InputContract', balanceRoot: string, contractId: string, stateRoot: string, txPointer: string, utxoId: string } | null, inputs?: Array<{ __typename: 'InputCoin', amount: string, assetId: string, owner: string, predicate: string, predicateData: string, predicateGasUsed: string, txPointer: string, utxoId: string, witnessIndex: string } | { __typename: 'InputContract', balanceRoot: string, contractId: string, stateRoot: string, txPointer: string, utxoId: string } | { __typename: 'InputMessage', amount: string, data: string, nonce: string, predicate: string, predicateData: string, predicateGasUsed: string, recipient: string, sender: string, witnessIndex: string }> | null, outputContract?: { __typename: 'ContractOutput', balanceRoot: string, inputIndex: string, stateRoot: string } | null, outputs: Array<{ __typename: 'ChangeOutput', amount: string, assetId: string, to: string } | { __typename: 'CoinOutput', amount: string, assetId: string, to: string } | { __typename: 'ContractCreated', contract: string, stateRoot: string } | { __typename: 'ContractOutput', balanceRoot: string, inputIndex: string, stateRoot: string } | { __typename: 'VariableOutput', amount: string, assetId: string, to: string }>, policies?: { __typename: 'Policies', maturity?: string | null, maxFee?: string | null, tip?: string | null, witnessLimit?: string | null } | null, status?: { __typename: 'FailureStatus', reason: string, time: string, totalFee: string, totalGas: string, transactionId: string, block: { __typename: 'Block', height: string, id: string, consensus: { __typename: 'Genesis', chainConfigHash: string, coinsRoot: string, contractsRoot: string, messagesRoot: string, transactionsRoot: string } | { __typename: 'PoAConsensus', signature: string }, header: { __typename: 'Header', applicationHash: string, consensusParametersVersion: string, daHeight: string, eventInboxRoot: string, height: string, id: string, messageOutboxRoot: string, messageReceiptCount: string, prevRoot: string, stateTransitionBytecodeVersion: string, time: string, transactionsCount: string, transactionsRoot: string } }, programState?: { __typename: 'ProgramState', data: string, returnType: GQLReturnType } | null, receipts: Array<{ __typename: 'Receipt', amount?: string | null, assetId?: string | null, contractId?: string | null, data?: string | null, digest?: string | null, gas?: string | null, gasUsed?: string | null, id?: string | null, is?: string | null, len?: string | null, nonce?: string | null, param1?: string | null, param2?: string | null, pc?: string | null, ptr?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, reason?: string | null, receiptType: GQLReceiptType, recipient?: string | null, result?: string | null, sender?: string | null, subId?: string | null, to?: string | null, toAddress?: string | null, val?: string | null }> } | { __typename: 'SqueezedOutStatus', reason: string } | { __typename: 'SubmittedStatus', time: string } | { __typename: 'SuccessStatus', time: string, totalFee: string, totalGas: string, transactionId: string, block: { __typename: 'Block', height: string, id: string, consensus: { __typename: 'Genesis', chainConfigHash: string, coinsRoot: string, contractsRoot: string, messagesRoot: string, transactionsRoot: string } | { __typename: 'PoAConsensus', signature: string }, header: { __typename: 'Header', applicationHash: string, consensusParametersVersion: string, daHeight: string, eventInboxRoot: string, height: string, id: string, messageOutboxRoot: string, messageReceiptCount: string, prevRoot: string, stateTransitionBytecodeVersion: string, time: string, transactionsCount: string, transactionsRoot: string } }, programState?: { __typename: 'ProgramState', data: string, returnType: GQLReturnType } | null, receipts: Array<{ __typename: 'Receipt', amount?: string | null, assetId?: string | null, contractId?: string | null, data?: string | null, digest?: string | null, gas?: string | null, gasUsed?: string | null, id?: string | null, is?: string | null, len?: string | null, nonce?: string | null, param1?: string | null, param2?: string | null, pc?: string | null, ptr?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, reason?: string | null, receiptType: GQLReceiptType, recipient?: string | null, result?: string | null, sender?: string | null, subId?: string | null, to?: string | null, toAddress?: string | null, val?: string | null }> } | null, upgradePurpose?: { __typename: 'ConsensusParametersPurpose', checksum: string, witnessIndex: string } | { __typename: 'StateTransitionPurpose', root: string } | null }> }>, pageInfo: { __typename: 'PageInfo', endCursor?: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor?: string | null } } }; -export type GQLChainQuery = { - __typename: 'Query'; - chain: { - __typename: 'ChainInfo'; - daHeight: string; - name: string; - consensusParameters: { - __typename: 'ConsensusParameters'; - baseAssetId: string; - blockGasLimit: string; - chainId: string; - privilegedAddress: string; - contractParams: { - __typename: 'ContractParameters'; - contractMaxSize: string; - maxStorageSlots: string; - }; - feeParams: { - __typename: 'FeeParameters'; - gasPerByte: string; - gasPriceFactor: string; - }; - gasCosts: { - __typename: 'GasCosts'; - add: string; - addi: string; - aloc: string; - and: string; - andi: string; - bal: string; - bhei: string; - bhsh: string; - burn: string; - cb: string; - cfei: string; - cfsi: string; - div: string; - divi: string; - eck1: string; - ecr1: string; - ed19: string; - eq: string; - exp: string; - expi: string; - flag: string; - gm: string; - gt: string; - gtf: string; - ji: string; - jmp: string; - jmpb: string; - jmpf: string; - jne: string; - jneb: string; - jnef: string; - jnei: string; - jnzb: string; - jnzf: string; - jnzi: string; - lb: string; - log: string; - lt: string; - lw: string; - mint: string; - mldv: string; - mlog: string; - modOp: string; - modi: string; - moveOp: string; - movi: string; - mroo: string; - mul: string; - muli: string; - newStoragePerByte: string; - noop: string; - not: string; - or: string; - ori: string; - poph: string; - popl: string; - pshh: string; - pshl: string; - ret: string; - rvrt: string; - sb: string; - sll: string; - slli: string; - srl: string; - srli: string; - srw: string; - sub: string; - subi: string; - sw: string; - sww: string; - time: string; - tr: string; - tro: string; - wdam: string; - wdcm: string; - wddv: string; - wdmd: string; - wdml: string; - wdmm: string; - wdop: string; - wqam: string; - wqcm: string; - wqdv: string; - wqmd: string; - wqml: string; - wqmm: string; - wqop: string; - xor: string; - xori: string; - call: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - ccp: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - contractRoot: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - croo: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - csiz: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - k256: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - ldc: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - logd: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - mcl: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - mcli: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - mcp: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - mcpi: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - meq: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - retd: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - s256: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - scwq: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - smo: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - srwq: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - stateRoot: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - swwq: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - vmInitialization: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - }; - predicateParams: { - __typename: 'PredicateParameters'; - maxGasPerPredicate: string; - maxMessageDataLength: string; - maxPredicateDataLength: string; - maxPredicateLength: string; - }; - scriptParams: { - __typename: 'ScriptParameters'; - maxScriptDataLength: string; - maxScriptLength: string; - }; - txParams: { - __typename: 'TxParameters'; - maxBytecodeSubsections: string; - maxGasPerTx: string; - maxInputs: string; - maxOutputs: string; - maxSize: string; - maxWitnesses: string; - }; - }; - gasCosts: { - __typename: 'GasCosts'; - add: string; - addi: string; - aloc: string; - and: string; - andi: string; - bal: string; - bhei: string; - bhsh: string; - burn: string; - cb: string; - cfei: string; - cfsi: string; - div: string; - divi: string; - eck1: string; - ecr1: string; - ed19: string; - eq: string; - exp: string; - expi: string; - flag: string; - gm: string; - gt: string; - gtf: string; - ji: string; - jmp: string; - jmpb: string; - jmpf: string; - jne: string; - jneb: string; - jnef: string; - jnei: string; - jnzb: string; - jnzf: string; - jnzi: string; - lb: string; - log: string; - lt: string; - lw: string; - mint: string; - mldv: string; - mlog: string; - modOp: string; - modi: string; - moveOp: string; - movi: string; - mroo: string; - mul: string; - muli: string; - newStoragePerByte: string; - noop: string; - not: string; - or: string; - ori: string; - poph: string; - popl: string; - pshh: string; - pshl: string; - ret: string; - rvrt: string; - sb: string; - sll: string; - slli: string; - srl: string; - srli: string; - srw: string; - sub: string; - subi: string; - sw: string; - sww: string; - time: string; - tr: string; - tro: string; - wdam: string; - wdcm: string; - wddv: string; - wdmd: string; - wdml: string; - wdmm: string; - wdop: string; - wqam: string; - wqcm: string; - wqdv: string; - wqmd: string; - wqml: string; - wqmm: string; - wqop: string; - xor: string; - xori: string; - call: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - ccp: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - contractRoot: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - croo: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - csiz: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - k256: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - ldc: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - logd: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - mcl: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - mcli: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - mcp: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - mcpi: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - meq: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - retd: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - s256: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - scwq: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - smo: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - srwq: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - stateRoot: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - swwq: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - vmInitialization: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - }; - latestBlock: { - __typename: 'Block'; - height: string; - id: string; - consensus: - | { - __typename: 'Genesis'; - chainConfigHash: string; - coinsRoot: string; - contractsRoot: string; - messagesRoot: string; - transactionsRoot: string; - } - | { __typename: 'PoAConsensus'; signature: string }; - header: { - __typename: 'Header'; - applicationHash: string; - consensusParametersVersion: string; - daHeight: string; - eventInboxRoot: string; - height: string; - id: string; - messageOutboxRoot: string; - messageReceiptCount: string; - prevRoot: string; - stateTransitionBytecodeVersion: string; - time: string; - transactionsCount: string; - transactionsRoot: string; - }; - transactions: Array<{ - __typename: 'Transaction'; - bytecodeRoot?: string | null; - bytecodeWitnessIndex?: string | null; - id: string; - inputAssetIds?: Array | null; - inputContracts?: Array | null; - isCreate: boolean; - isMint: boolean; - isScript: boolean; - isUpgrade: boolean; - isUpload: boolean; - maturity?: string | null; - mintAmount?: string | null; - mintAssetId?: string | null; - mintGasPrice?: string | null; - proofSet?: Array | null; - rawPayload: string; - receiptsRoot?: string | null; - salt?: string | null; - script?: string | null; - scriptData?: string | null; - scriptGasLimit?: string | null; - storageSlots?: Array | null; - subsectionIndex?: string | null; - subsectionsNumber?: string | null; - txPointer?: string | null; - witnesses?: Array | null; - inputContract?: { - __typename: 'InputContract'; - balanceRoot: string; - contractId: string; - stateRoot: string; - txPointer: string; - utxoId: string; - } | null; - inputs?: Array< - | { - __typename: 'InputCoin'; - amount: string; - assetId: string; - owner: string; - predicate: string; - predicateData: string; - predicateGasUsed: string; - txPointer: string; - utxoId: string; - witnessIndex: string; - } - | { - __typename: 'InputContract'; - balanceRoot: string; - contractId: string; - stateRoot: string; - txPointer: string; - utxoId: string; - } - | { - __typename: 'InputMessage'; - amount: string; - data: string; - nonce: string; - predicate: string; - predicateData: string; - predicateGasUsed: string; - recipient: string; - sender: string; - witnessIndex: string; - } - > | null; - outputContract?: { - __typename: 'ContractOutput'; - balanceRoot: string; - inputIndex: string; - stateRoot: string; - } | null; - outputs: Array< - | { - __typename: 'ChangeOutput'; - amount: string; - assetId: string; - to: string; - } - | { - __typename: 'CoinOutput'; - amount: string; - assetId: string; - to: string; - } - | { - __typename: 'ContractCreated'; - contract: string; - stateRoot: string; - } - | { - __typename: 'ContractOutput'; - balanceRoot: string; - inputIndex: string; - stateRoot: string; - } - | { - __typename: 'VariableOutput'; - amount: string; - assetId: string; - to: string; - } - >; - policies?: { - __typename: 'Policies'; - maturity?: string | null; - maxFee?: string | null; - tip?: string | null; - witnessLimit?: string | null; - } | null; - status?: - | { - __typename: 'FailureStatus'; - reason: string; - time: string; - totalFee: string; - totalGas: string; - transactionId: string; - block: { - __typename: 'Block'; - height: string; - id: string; - consensus: - | { - __typename: 'Genesis'; - chainConfigHash: string; - coinsRoot: string; - contractsRoot: string; - messagesRoot: string; - transactionsRoot: string; - } - | { __typename: 'PoAConsensus'; signature: string }; - header: { - __typename: 'Header'; - applicationHash: string; - consensusParametersVersion: string; - daHeight: string; - eventInboxRoot: string; - height: string; - id: string; - messageOutboxRoot: string; - messageReceiptCount: string; - prevRoot: string; - stateTransitionBytecodeVersion: string; - time: string; - transactionsCount: string; - transactionsRoot: string; - }; - transactions: Array<{ - __typename: 'Transaction'; - bytecodeRoot?: string | null; - bytecodeWitnessIndex?: string | null; - id: string; - inputAssetIds?: Array | null; - inputContracts?: Array | null; - isCreate: boolean; - isMint: boolean; - isScript: boolean; - isUpgrade: boolean; - isUpload: boolean; - maturity?: string | null; - mintAmount?: string | null; - mintAssetId?: string | null; - mintGasPrice?: string | null; - proofSet?: Array | null; - rawPayload: string; - receiptsRoot?: string | null; - salt?: string | null; - script?: string | null; - scriptData?: string | null; - scriptGasLimit?: string | null; - storageSlots?: Array | null; - subsectionIndex?: string | null; - subsectionsNumber?: string | null; - txPointer?: string | null; - witnesses?: Array | null; - inputContract?: { - __typename: 'InputContract'; - balanceRoot: string; - contractId: string; - stateRoot: string; - txPointer: string; - utxoId: string; - } | null; - inputs?: Array< - | { - __typename: 'InputCoin'; - amount: string; - assetId: string; - owner: string; - predicate: string; - predicateData: string; - predicateGasUsed: string; - txPointer: string; - utxoId: string; - witnessIndex: string; - } - | { - __typename: 'InputContract'; - balanceRoot: string; - contractId: string; - stateRoot: string; - txPointer: string; - utxoId: string; - } - | { - __typename: 'InputMessage'; - amount: string; - data: string; - nonce: string; - predicate: string; - predicateData: string; - predicateGasUsed: string; - recipient: string; - sender: string; - witnessIndex: string; - } - > | null; - outputContract?: { - __typename: 'ContractOutput'; - balanceRoot: string; - inputIndex: string; - stateRoot: string; - } | null; - outputs: Array< - | { - __typename: 'ChangeOutput'; - amount: string; - assetId: string; - to: string; - } - | { - __typename: 'CoinOutput'; - amount: string; - assetId: string; - to: string; - } - | { - __typename: 'ContractCreated'; - contract: string; - stateRoot: string; - } - | { - __typename: 'ContractOutput'; - balanceRoot: string; - inputIndex: string; - stateRoot: string; - } - | { - __typename: 'VariableOutput'; - amount: string; - assetId: string; - to: string; - } - >; - policies?: { - __typename: 'Policies'; - maturity?: string | null; - maxFee?: string | null; - tip?: string | null; - witnessLimit?: string | null; - } | null; - status?: - | { - __typename: 'FailureStatus'; - reason: string; - time: string; - totalFee: string; - totalGas: string; - transactionId: string; - } - | { __typename: 'SqueezedOutStatus'; reason: string } - | { __typename: 'SubmittedStatus'; time: string } - | { - __typename: 'SuccessStatus'; - time: string; - totalFee: string; - totalGas: string; - transactionId: string; - } - | null; - upgradePurpose?: - | { - __typename: 'ConsensusParametersPurpose'; - checksum: string; - witnessIndex: string; - } - | { __typename: 'StateTransitionPurpose'; root: string } - | null; - }>; - }; - programState?: { - __typename: 'ProgramState'; - data: string; - returnType: GQLReturnType; - } | null; - receipts: Array<{ - __typename: 'Receipt'; - amount?: string | null; - assetId?: string | null; - contractId?: string | null; - data?: string | null; - digest?: string | null; - gas?: string | null; - gasUsed?: string | null; - id?: string | null; - is?: string | null; - len?: string | null; - nonce?: string | null; - param1?: string | null; - param2?: string | null; - pc?: string | null; - ptr?: string | null; - ra?: string | null; - rb?: string | null; - rc?: string | null; - rd?: string | null; - reason?: string | null; - receiptType: GQLReceiptType; - recipient?: string | null; - result?: string | null; - sender?: string | null; - subId?: string | null; - to?: string | null; - toAddress?: string | null; - val?: string | null; - }>; - } - | { __typename: 'SqueezedOutStatus'; reason: string } - | { __typename: 'SubmittedStatus'; time: string } - | { - __typename: 'SuccessStatus'; - time: string; - totalFee: string; - totalGas: string; - transactionId: string; - block: { - __typename: 'Block'; - height: string; - id: string; - consensus: - | { - __typename: 'Genesis'; - chainConfigHash: string; - coinsRoot: string; - contractsRoot: string; - messagesRoot: string; - transactionsRoot: string; - } - | { __typename: 'PoAConsensus'; signature: string }; - header: { - __typename: 'Header'; - applicationHash: string; - consensusParametersVersion: string; - daHeight: string; - eventInboxRoot: string; - height: string; - id: string; - messageOutboxRoot: string; - messageReceiptCount: string; - prevRoot: string; - stateTransitionBytecodeVersion: string; - time: string; - transactionsCount: string; - transactionsRoot: string; - }; - transactions: Array<{ - __typename: 'Transaction'; - bytecodeRoot?: string | null; - bytecodeWitnessIndex?: string | null; - id: string; - inputAssetIds?: Array | null; - inputContracts?: Array | null; - isCreate: boolean; - isMint: boolean; - isScript: boolean; - isUpgrade: boolean; - isUpload: boolean; - maturity?: string | null; - mintAmount?: string | null; - mintAssetId?: string | null; - mintGasPrice?: string | null; - proofSet?: Array | null; - rawPayload: string; - receiptsRoot?: string | null; - salt?: string | null; - script?: string | null; - scriptData?: string | null; - scriptGasLimit?: string | null; - storageSlots?: Array | null; - subsectionIndex?: string | null; - subsectionsNumber?: string | null; - txPointer?: string | null; - witnesses?: Array | null; - inputContract?: { - __typename: 'InputContract'; - balanceRoot: string; - contractId: string; - stateRoot: string; - txPointer: string; - utxoId: string; - } | null; - inputs?: Array< - | { - __typename: 'InputCoin'; - amount: string; - assetId: string; - owner: string; - predicate: string; - predicateData: string; - predicateGasUsed: string; - txPointer: string; - utxoId: string; - witnessIndex: string; - } - | { - __typename: 'InputContract'; - balanceRoot: string; - contractId: string; - stateRoot: string; - txPointer: string; - utxoId: string; - } - | { - __typename: 'InputMessage'; - amount: string; - data: string; - nonce: string; - predicate: string; - predicateData: string; - predicateGasUsed: string; - recipient: string; - sender: string; - witnessIndex: string; - } - > | null; - outputContract?: { - __typename: 'ContractOutput'; - balanceRoot: string; - inputIndex: string; - stateRoot: string; - } | null; - outputs: Array< - | { - __typename: 'ChangeOutput'; - amount: string; - assetId: string; - to: string; - } - | { - __typename: 'CoinOutput'; - amount: string; - assetId: string; - to: string; - } - | { - __typename: 'ContractCreated'; - contract: string; - stateRoot: string; - } - | { - __typename: 'ContractOutput'; - balanceRoot: string; - inputIndex: string; - stateRoot: string; - } - | { - __typename: 'VariableOutput'; - amount: string; - assetId: string; - to: string; - } - >; - policies?: { - __typename: 'Policies'; - maturity?: string | null; - maxFee?: string | null; - tip?: string | null; - witnessLimit?: string | null; - } | null; - status?: - | { - __typename: 'FailureStatus'; - reason: string; - time: string; - totalFee: string; - totalGas: string; - transactionId: string; - } - | { __typename: 'SqueezedOutStatus'; reason: string } - | { __typename: 'SubmittedStatus'; time: string } - | { - __typename: 'SuccessStatus'; - time: string; - totalFee: string; - totalGas: string; - transactionId: string; - } - | null; - upgradePurpose?: - | { - __typename: 'ConsensusParametersPurpose'; - checksum: string; - witnessIndex: string; - } - | { __typename: 'StateTransitionPurpose'; root: string } - | null; - }>; - }; - programState?: { - __typename: 'ProgramState'; - data: string; - returnType: GQLReturnType; - } | null; - receipts: Array<{ - __typename: 'Receipt'; - amount?: string | null; - assetId?: string | null; - contractId?: string | null; - data?: string | null; - digest?: string | null; - gas?: string | null; - gasUsed?: string | null; - id?: string | null; - is?: string | null; - len?: string | null; - nonce?: string | null; - param1?: string | null; - param2?: string | null; - pc?: string | null; - ptr?: string | null; - ra?: string | null; - rb?: string | null; - rc?: string | null; - rd?: string | null; - reason?: string | null; - receiptType: GQLReceiptType; - recipient?: string | null; - result?: string | null; - sender?: string | null; - subId?: string | null; - to?: string | null; - toAddress?: string | null; - val?: string | null; - }>; - } - | null; - upgradePurpose?: - | { - __typename: 'ConsensusParametersPurpose'; - checksum: string; - witnessIndex: string; - } - | { __typename: 'StateTransitionPurpose'; root: string } - | null; - }>; - }; - }; -}; +export type GQLChainQueryVariables = Exact<{ [key: string]: never; }>; + + +export type GQLChainQuery = { __typename: 'Query', chain: { __typename: 'ChainInfo', daHeight: string, name: string, consensusParameters: { __typename: 'ConsensusParameters', baseAssetId: string, blockGasLimit: string, chainId: string, privilegedAddress: string, contractParams: { __typename: 'ContractParameters', contractMaxSize: string, maxStorageSlots: string }, feeParams: { __typename: 'FeeParameters', gasPerByte: string, gasPriceFactor: string }, gasCosts: { __typename: 'GasCosts', add: string, addi: string, aloc: string, and: string, andi: string, bal: string, bhei: string, bhsh: string, burn: string, cb: string, cfei: string, cfsi: string, div: string, divi: string, eck1: string, ecr1: string, ed19: string, eq: string, exp: string, expi: string, flag: string, gm: string, gt: string, gtf: string, ji: string, jmp: string, jmpb: string, jmpf: string, jne: string, jneb: string, jnef: string, jnei: string, jnzb: string, jnzf: string, jnzi: string, lb: string, log: string, lt: string, lw: string, mint: string, mldv: string, mlog: string, modOp: string, modi: string, moveOp: string, movi: string, mroo: string, mul: string, muli: string, newStoragePerByte: string, noop: string, not: string, or: string, ori: string, poph: string, popl: string, pshh: string, pshl: string, ret: string, rvrt: string, sb: string, sll: string, slli: string, srl: string, srli: string, srw: string, sub: string, subi: string, sw: string, sww: string, time: string, tr: string, tro: string, wdam: string, wdcm: string, wddv: string, wdmd: string, wdml: string, wdmm: string, wdop: string, wqam: string, wqcm: string, wqdv: string, wqmd: string, wqml: string, wqmm: string, wqop: string, xor: string, xori: string, call: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, ccp: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, contractRoot: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, croo: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, csiz: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, k256: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, ldc: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, logd: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, mcl: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, mcli: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, mcp: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, mcpi: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, meq: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, retd: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, s256: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, scwq: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, smo: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, srwq: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, stateRoot: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, swwq: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, vmInitialization: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string } }, predicateParams: { __typename: 'PredicateParameters', maxGasPerPredicate: string, maxMessageDataLength: string, maxPredicateDataLength: string, maxPredicateLength: string }, scriptParams: { __typename: 'ScriptParameters', maxScriptDataLength: string, maxScriptLength: string }, txParams: { __typename: 'TxParameters', maxBytecodeSubsections: string, maxGasPerTx: string, maxInputs: string, maxOutputs: string, maxSize: string, maxWitnesses: string } }, gasCosts: { __typename: 'GasCosts', add: string, addi: string, aloc: string, and: string, andi: string, bal: string, bhei: string, bhsh: string, burn: string, cb: string, cfei: string, cfsi: string, div: string, divi: string, eck1: string, ecr1: string, ed19: string, eq: string, exp: string, expi: string, flag: string, gm: string, gt: string, gtf: string, ji: string, jmp: string, jmpb: string, jmpf: string, jne: string, jneb: string, jnef: string, jnei: string, jnzb: string, jnzf: string, jnzi: string, lb: string, log: string, lt: string, lw: string, mint: string, mldv: string, mlog: string, modOp: string, modi: string, moveOp: string, movi: string, mroo: string, mul: string, muli: string, newStoragePerByte: string, noop: string, not: string, or: string, ori: string, poph: string, popl: string, pshh: string, pshl: string, ret: string, rvrt: string, sb: string, sll: string, slli: string, srl: string, srli: string, srw: string, sub: string, subi: string, sw: string, sww: string, time: string, tr: string, tro: string, wdam: string, wdcm: string, wddv: string, wdmd: string, wdml: string, wdmm: string, wdop: string, wqam: string, wqcm: string, wqdv: string, wqmd: string, wqml: string, wqmm: string, wqop: string, xor: string, xori: string, call: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, ccp: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, contractRoot: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, croo: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, csiz: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, k256: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, ldc: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, logd: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, mcl: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, mcli: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, mcp: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, mcpi: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, meq: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, retd: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, s256: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, scwq: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, smo: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, srwq: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, stateRoot: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, swwq: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, vmInitialization: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string } }, latestBlock: { __typename: 'Block', height: string, id: string, consensus: { __typename: 'Genesis', chainConfigHash: string, coinsRoot: string, contractsRoot: string, messagesRoot: string, transactionsRoot: string } | { __typename: 'PoAConsensus', signature: string }, header: { __typename: 'Header', applicationHash: string, consensusParametersVersion: string, daHeight: string, eventInboxRoot: string, height: string, id: string, messageOutboxRoot: string, messageReceiptCount: string, prevRoot: string, stateTransitionBytecodeVersion: string, time: string, transactionsCount: string, transactionsRoot: string }, transactions: Array<{ __typename: 'Transaction', bytecodeRoot?: string | null, bytecodeWitnessIndex?: string | null, id: string, inputAssetIds?: Array | null, inputContracts?: Array | null, isCreate: boolean, isMint: boolean, isScript: boolean, isUpgrade: boolean, isUpload: boolean, maturity?: string | null, mintAmount?: string | null, mintAssetId?: string | null, mintGasPrice?: string | null, proofSet?: Array | null, rawPayload: string, receiptsRoot?: string | null, salt?: string | null, script?: string | null, scriptData?: string | null, scriptGasLimit?: string | null, storageSlots?: Array | null, subsectionIndex?: string | null, subsectionsNumber?: string | null, txPointer?: string | null, witnesses?: Array | null, inputContract?: { __typename: 'InputContract', balanceRoot: string, contractId: string, stateRoot: string, txPointer: string, utxoId: string } | null, inputs?: Array<{ __typename: 'InputCoin', amount: string, assetId: string, owner: string, predicate: string, predicateData: string, predicateGasUsed: string, txPointer: string, utxoId: string, witnessIndex: string } | { __typename: 'InputContract', balanceRoot: string, contractId: string, stateRoot: string, txPointer: string, utxoId: string } | { __typename: 'InputMessage', amount: string, data: string, nonce: string, predicate: string, predicateData: string, predicateGasUsed: string, recipient: string, sender: string, witnessIndex: string }> | null, outputContract?: { __typename: 'ContractOutput', balanceRoot: string, inputIndex: string, stateRoot: string } | null, outputs: Array<{ __typename: 'ChangeOutput', amount: string, assetId: string, to: string } | { __typename: 'CoinOutput', amount: string, assetId: string, to: string } | { __typename: 'ContractCreated', contract: string, stateRoot: string } | { __typename: 'ContractOutput', balanceRoot: string, inputIndex: string, stateRoot: string } | { __typename: 'VariableOutput', amount: string, assetId: string, to: string }>, policies?: { __typename: 'Policies', maturity?: string | null, maxFee?: string | null, tip?: string | null, witnessLimit?: string | null } | null, status?: { __typename: 'FailureStatus', reason: string, time: string, totalFee: string, totalGas: string, transactionId: string, block: { __typename: 'Block', height: string, id: string, consensus: { __typename: 'Genesis', chainConfigHash: string, coinsRoot: string, contractsRoot: string, messagesRoot: string, transactionsRoot: string } | { __typename: 'PoAConsensus', signature: string }, header: { __typename: 'Header', applicationHash: string, consensusParametersVersion: string, daHeight: string, eventInboxRoot: string, height: string, id: string, messageOutboxRoot: string, messageReceiptCount: string, prevRoot: string, stateTransitionBytecodeVersion: string, time: string, transactionsCount: string, transactionsRoot: string }, transactions: Array<{ __typename: 'Transaction', bytecodeRoot?: string | null, bytecodeWitnessIndex?: string | null, id: string, inputAssetIds?: Array | null, inputContracts?: Array | null, isCreate: boolean, isMint: boolean, isScript: boolean, isUpgrade: boolean, isUpload: boolean, maturity?: string | null, mintAmount?: string | null, mintAssetId?: string | null, mintGasPrice?: string | null, proofSet?: Array | null, rawPayload: string, receiptsRoot?: string | null, salt?: string | null, script?: string | null, scriptData?: string | null, scriptGasLimit?: string | null, storageSlots?: Array | null, subsectionIndex?: string | null, subsectionsNumber?: string | null, txPointer?: string | null, witnesses?: Array | null, inputContract?: { __typename: 'InputContract', balanceRoot: string, contractId: string, stateRoot: string, txPointer: string, utxoId: string } | null, inputs?: Array<{ __typename: 'InputCoin', amount: string, assetId: string, owner: string, predicate: string, predicateData: string, predicateGasUsed: string, txPointer: string, utxoId: string, witnessIndex: string } | { __typename: 'InputContract', balanceRoot: string, contractId: string, stateRoot: string, txPointer: string, utxoId: string } | { __typename: 'InputMessage', amount: string, data: string, nonce: string, predicate: string, predicateData: string, predicateGasUsed: string, recipient: string, sender: string, witnessIndex: string }> | null, outputContract?: { __typename: 'ContractOutput', balanceRoot: string, inputIndex: string, stateRoot: string } | null, outputs: Array<{ __typename: 'ChangeOutput', amount: string, assetId: string, to: string } | { __typename: 'CoinOutput', amount: string, assetId: string, to: string } | { __typename: 'ContractCreated', contract: string, stateRoot: string } | { __typename: 'ContractOutput', balanceRoot: string, inputIndex: string, stateRoot: string } | { __typename: 'VariableOutput', amount: string, assetId: string, to: string }>, policies?: { __typename: 'Policies', maturity?: string | null, maxFee?: string | null, tip?: string | null, witnessLimit?: string | null } | null, status?: { __typename: 'FailureStatus', reason: string, time: string, totalFee: string, totalGas: string, transactionId: string } | { __typename: 'SqueezedOutStatus', reason: string } | { __typename: 'SubmittedStatus', time: string } | { __typename: 'SuccessStatus', time: string, totalFee: string, totalGas: string, transactionId: string } | null, upgradePurpose?: { __typename: 'ConsensusParametersPurpose', checksum: string, witnessIndex: string } | { __typename: 'StateTransitionPurpose', root: string } | null }> }, programState?: { __typename: 'ProgramState', data: string, returnType: GQLReturnType } | null, receipts: Array<{ __typename: 'Receipt', amount?: string | null, assetId?: string | null, contractId?: string | null, data?: string | null, digest?: string | null, gas?: string | null, gasUsed?: string | null, id?: string | null, is?: string | null, len?: string | null, nonce?: string | null, param1?: string | null, param2?: string | null, pc?: string | null, ptr?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, reason?: string | null, receiptType: GQLReceiptType, recipient?: string | null, result?: string | null, sender?: string | null, subId?: string | null, to?: string | null, toAddress?: string | null, val?: string | null }> } | { __typename: 'SqueezedOutStatus', reason: string } | { __typename: 'SubmittedStatus', time: string } | { __typename: 'SuccessStatus', time: string, totalFee: string, totalGas: string, transactionId: string, block: { __typename: 'Block', height: string, id: string, consensus: { __typename: 'Genesis', chainConfigHash: string, coinsRoot: string, contractsRoot: string, messagesRoot: string, transactionsRoot: string } | { __typename: 'PoAConsensus', signature: string }, header: { __typename: 'Header', applicationHash: string, consensusParametersVersion: string, daHeight: string, eventInboxRoot: string, height: string, id: string, messageOutboxRoot: string, messageReceiptCount: string, prevRoot: string, stateTransitionBytecodeVersion: string, time: string, transactionsCount: string, transactionsRoot: string }, transactions: Array<{ __typename: 'Transaction', bytecodeRoot?: string | null, bytecodeWitnessIndex?: string | null, id: string, inputAssetIds?: Array | null, inputContracts?: Array | null, isCreate: boolean, isMint: boolean, isScript: boolean, isUpgrade: boolean, isUpload: boolean, maturity?: string | null, mintAmount?: string | null, mintAssetId?: string | null, mintGasPrice?: string | null, proofSet?: Array | null, rawPayload: string, receiptsRoot?: string | null, salt?: string | null, script?: string | null, scriptData?: string | null, scriptGasLimit?: string | null, storageSlots?: Array | null, subsectionIndex?: string | null, subsectionsNumber?: string | null, txPointer?: string | null, witnesses?: Array | null, inputContract?: { __typename: 'InputContract', balanceRoot: string, contractId: string, stateRoot: string, txPointer: string, utxoId: string } | null, inputs?: Array<{ __typename: 'InputCoin', amount: string, assetId: string, owner: string, predicate: string, predicateData: string, predicateGasUsed: string, txPointer: string, utxoId: string, witnessIndex: string } | { __typename: 'InputContract', balanceRoot: string, contractId: string, stateRoot: string, txPointer: string, utxoId: string } | { __typename: 'InputMessage', amount: string, data: string, nonce: string, predicate: string, predicateData: string, predicateGasUsed: string, recipient: string, sender: string, witnessIndex: string }> | null, outputContract?: { __typename: 'ContractOutput', balanceRoot: string, inputIndex: string, stateRoot: string } | null, outputs: Array<{ __typename: 'ChangeOutput', amount: string, assetId: string, to: string } | { __typename: 'CoinOutput', amount: string, assetId: string, to: string } | { __typename: 'ContractCreated', contract: string, stateRoot: string } | { __typename: 'ContractOutput', balanceRoot: string, inputIndex: string, stateRoot: string } | { __typename: 'VariableOutput', amount: string, assetId: string, to: string }>, policies?: { __typename: 'Policies', maturity?: string | null, maxFee?: string | null, tip?: string | null, witnessLimit?: string | null } | null, status?: { __typename: 'FailureStatus', reason: string, time: string, totalFee: string, totalGas: string, transactionId: string } | { __typename: 'SqueezedOutStatus', reason: string } | { __typename: 'SubmittedStatus', time: string } | { __typename: 'SuccessStatus', time: string, totalFee: string, totalGas: string, transactionId: string } | null, upgradePurpose?: { __typename: 'ConsensusParametersPurpose', checksum: string, witnessIndex: string } | { __typename: 'StateTransitionPurpose', root: string } | null }> }, programState?: { __typename: 'ProgramState', data: string, returnType: GQLReturnType } | null, receipts: Array<{ __typename: 'Receipt', amount?: string | null, assetId?: string | null, contractId?: string | null, data?: string | null, digest?: string | null, gas?: string | null, gasUsed?: string | null, id?: string | null, is?: string | null, len?: string | null, nonce?: string | null, param1?: string | null, param2?: string | null, pc?: string | null, ptr?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, reason?: string | null, receiptType: GQLReceiptType, recipient?: string | null, result?: string | null, sender?: string | null, subId?: string | null, to?: string | null, toAddress?: string | null, val?: string | null }> } | null, upgradePurpose?: { __typename: 'ConsensusParametersPurpose', checksum: string, witnessIndex: string } | { __typename: 'StateTransitionPurpose', root: string } | null }> } } }; export type GQLCoinsQueryVariables = Exact<{ after?: InputMaybe; @@ -3412,87 +1513,27 @@ export type GQLCoinsQueryVariables = Exact<{ last?: InputMaybe; }>; -export type GQLCoinsQuery = { - __typename: 'Query'; - coins: { - __typename: 'CoinConnection'; - edges: Array<{ - __typename: 'CoinEdge'; - cursor: string; - node: { - __typename: 'Coin'; - amount: string; - assetId: string; - blockCreated: string; - owner: string; - txCreatedIdx: string; - utxoId: string; - }; - }>; - nodes: Array<{ - __typename: 'Coin'; - amount: string; - assetId: string; - blockCreated: string; - owner: string; - txCreatedIdx: string; - utxoId: string; - }>; - pageInfo: { - __typename: 'PageInfo'; - endCursor?: string | null; - hasNextPage: boolean; - hasPreviousPage: boolean; - startCursor?: string | null; - }; - }; -}; + +export type GQLCoinsQuery = { __typename: 'Query', coins: { __typename: 'CoinConnection', edges: Array<{ __typename: 'CoinEdge', cursor: string, node: { __typename: 'Coin', amount: string, assetId: string, blockCreated: string, owner: string, txCreatedIdx: string, utxoId: string } }>, nodes: Array<{ __typename: 'Coin', amount: string, assetId: string, blockCreated: string, owner: string, txCreatedIdx: string, utxoId: string }>, pageInfo: { __typename: 'PageInfo', endCursor?: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor?: string | null } } }; export type GQLContractQueryVariables = Exact<{ id: Scalars['ContractId']['input']; }>; -export type GQLContractQuery = { - __typename: 'Query'; - contract?: { __typename: 'Contract'; id: string; bytecode: string } | null; -}; + +export type GQLContractQuery = { __typename: 'Query', contract?: { __typename: 'Contract', id: string, bytecode: string } | null }; export type GQLContractBalanceQueryVariables = Exact<{ asset: Scalars['AssetId']['input']; contract: Scalars['ContractId']['input']; }>; -export type GQLContractBalanceQuery = { - __typename: 'Query'; - contractBalance: { - __typename: 'ContractBalance'; - amount: string; - assetId: string; - contract: string; - }; -}; -export type GQLContractBalanceNodeFragment = { - __typename: 'ContractBalance'; - amount: string; - assetId: string; -}; +export type GQLContractBalanceQuery = { __typename: 'Query', contractBalance: { __typename: 'ContractBalance', amount: string, assetId: string, contract: string } }; -export type GQLContractBalanceConnectionNodeFragment = { - __typename: 'ContractBalanceConnection'; - edges: Array<{ - __typename: 'ContractBalanceEdge'; - cursor: string; - node: { __typename: 'ContractBalance'; amount: string; assetId: string }; - }>; - pageInfo: { - __typename: 'PageInfo'; - hasNextPage: boolean; - hasPreviousPage: boolean; - endCursor?: string | null; - startCursor?: string | null; - }; -}; +export type GQLContractBalanceNodeFragment = { __typename: 'ContractBalance', amount: string, assetId: string }; + +export type GQLContractBalanceConnectionNodeFragment = { __typename: 'ContractBalanceConnection', edges: Array<{ __typename: 'ContractBalanceEdge', cursor: string, node: { __typename: 'ContractBalance', amount: string, assetId: string } }>, pageInfo: { __typename: 'PageInfo', hasNextPage: boolean, hasPreviousPage: boolean, endCursor?: string | null, startCursor?: string | null } }; export type GQLContractBalancesQueryVariables = Exact<{ after?: InputMaybe; @@ -3502,63 +1543,18 @@ export type GQLContractBalancesQueryVariables = Exact<{ last?: InputMaybe; }>; -export type GQLContractBalancesQuery = { - __typename: 'Query'; - contractBalances: { - __typename: 'ContractBalanceConnection'; - edges: Array<{ - __typename: 'ContractBalanceEdge'; - cursor: string; - node: { __typename: 'ContractBalance'; amount: string; assetId: string }; - }>; - pageInfo: { - __typename: 'PageInfo'; - hasNextPage: boolean; - hasPreviousPage: boolean; - endCursor?: string | null; - startCursor?: string | null; - }; - }; -}; -export type GQLNodeInfoQueryVariables = Exact<{ [key: string]: never }>; +export type GQLContractBalancesQuery = { __typename: 'Query', contractBalances: { __typename: 'ContractBalanceConnection', edges: Array<{ __typename: 'ContractBalanceEdge', cursor: string, node: { __typename: 'ContractBalance', amount: string, assetId: string } }>, pageInfo: { __typename: 'PageInfo', hasNextPage: boolean, hasPreviousPage: boolean, endCursor?: string | null, startCursor?: string | null } } }; -export type GQLNodeInfoQuery = { - __typename: 'Query'; - nodeInfo: { - __typename: 'NodeInfo'; - maxDepth: string; - maxTx: string; - nodeVersion: string; - utxoValidation: boolean; - vmBacktrace: boolean; - peers: Array<{ - __typename: 'PeerInfo'; - addresses: Array; - appScore: number; - blockHeight?: string | null; - clientVersion?: string | null; - id: string; - lastHeartbeatMs: string; - }>; - }; -}; +export type GQLNodeInfoQueryVariables = Exact<{ [key: string]: never; }>; -export type GQLTpsQueryVariables = Exact<{ [key: string]: never }>; -export type GQLTpsQuery = { - __typename: 'Query'; - tps: { - __typename: 'TPSConnection'; - nodes: Array<{ - __typename: 'TPS'; - start?: string | null; - end?: string | null; - txCount: string; - totalGas: string; - }>; - }; -}; +export type GQLNodeInfoQuery = { __typename: 'Query', nodeInfo: { __typename: 'NodeInfo', maxDepth: string, maxTx: string, nodeVersion: string, utxoValidation: boolean, vmBacktrace: boolean, peers: Array<{ __typename: 'PeerInfo', addresses: Array, appScore: number, blockHeight?: string | null, clientVersion?: string | null, id: string, lastHeartbeatMs: string }> } }; + +export type GQLTpsQueryVariables = Exact<{ [key: string]: never; }>; + + +export type GQLTpsQuery = { __typename: 'Query', tps: { __typename: 'TPSConnection', nodes: Array<{ __typename: 'TPS', start?: string | null, end?: string | null, txCount: string, totalGas: string }> } }; export const BalanceItemFragmentDoc = gql` fragment BalanceItem on Balance { @@ -5301,19 +3297,10 @@ export const TpsDocument = gql` } `; -export type SdkFunctionWrapper = ( - action: (requestHeaders?: Record) => Promise, - operationName: string, - operationType?: string, - variables?: any, -) => Promise; - -const defaultWrapper: SdkFunctionWrapper = ( - action, - _operationName, - _operationType, - _variables, -) => action(); +export type SdkFunctionWrapper = (action: (requestHeaders?:Record) => Promise, operationName: string, operationType?: string, variables?: any) => Promise; + + +const defaultWrapper: SdkFunctionWrapper = (action, _operationName, _operationType, _variables) => action(); const BalanceDocumentString = print(BalanceDocument); const BalancesDocumentString = print(BalancesDocument); const BlocksDocumentString = print(BlocksDocument); @@ -5324,226 +3311,38 @@ const ContractBalanceDocumentString = print(ContractBalanceDocument); const ContractBalancesDocumentString = print(ContractBalancesDocument); const NodeInfoDocumentString = print(NodeInfoDocument); const TpsDocumentString = print(TpsDocument); -export function getSdk( - client: GraphQLClient, - withWrapper: SdkFunctionWrapper = defaultWrapper, -) { +export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = defaultWrapper) { return { - balance( - variables: GQLBalanceQueryVariables, - requestHeaders?: GraphQLClientRequestHeaders, - ): Promise<{ - data: GQLBalanceQuery; - errors?: GraphQLError[]; - extensions?: any; - headers: Headers; - status: number; - }> { - return withWrapper( - (wrappedRequestHeaders) => - client.rawRequest(BalanceDocumentString, variables, { - ...requestHeaders, - ...wrappedRequestHeaders, - }), - 'balance', - 'query', - variables, - ); + balance(variables: GQLBalanceQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: GQLBalanceQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> { + return withWrapper((wrappedRequestHeaders) => client.rawRequest(BalanceDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'balance', 'query', variables); }, - balances( - variables: GQLBalancesQueryVariables, - requestHeaders?: GraphQLClientRequestHeaders, - ): Promise<{ - data: GQLBalancesQuery; - errors?: GraphQLError[]; - extensions?: any; - headers: Headers; - status: number; - }> { - return withWrapper( - (wrappedRequestHeaders) => - client.rawRequest( - BalancesDocumentString, - variables, - { ...requestHeaders, ...wrappedRequestHeaders }, - ), - 'balances', - 'query', - variables, - ); + balances(variables: GQLBalancesQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: GQLBalancesQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> { + return withWrapper((wrappedRequestHeaders) => client.rawRequest(BalancesDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'balances', 'query', variables); }, - blocks( - variables?: GQLBlocksQueryVariables, - requestHeaders?: GraphQLClientRequestHeaders, - ): Promise<{ - data: GQLBlocksQuery; - errors?: GraphQLError[]; - extensions?: any; - headers: Headers; - status: number; - }> { - return withWrapper( - (wrappedRequestHeaders) => - client.rawRequest(BlocksDocumentString, variables, { - ...requestHeaders, - ...wrappedRequestHeaders, - }), - 'blocks', - 'query', - variables, - ); + blocks(variables?: GQLBlocksQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: GQLBlocksQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> { + return withWrapper((wrappedRequestHeaders) => client.rawRequest(BlocksDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'blocks', 'query', variables); }, - chain( - variables?: GQLChainQueryVariables, - requestHeaders?: GraphQLClientRequestHeaders, - ): Promise<{ - data: GQLChainQuery; - errors?: GraphQLError[]; - extensions?: any; - headers: Headers; - status: number; - }> { - return withWrapper( - (wrappedRequestHeaders) => - client.rawRequest(ChainDocumentString, variables, { - ...requestHeaders, - ...wrappedRequestHeaders, - }), - 'chain', - 'query', - variables, - ); + chain(variables?: GQLChainQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: GQLChainQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> { + return withWrapper((wrappedRequestHeaders) => client.rawRequest(ChainDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'chain', 'query', variables); }, - coins( - variables: GQLCoinsQueryVariables, - requestHeaders?: GraphQLClientRequestHeaders, - ): Promise<{ - data: GQLCoinsQuery; - errors?: GraphQLError[]; - extensions?: any; - headers: Headers; - status: number; - }> { - return withWrapper( - (wrappedRequestHeaders) => - client.rawRequest(CoinsDocumentString, variables, { - ...requestHeaders, - ...wrappedRequestHeaders, - }), - 'coins', - 'query', - variables, - ); + coins(variables: GQLCoinsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: GQLCoinsQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> { + return withWrapper((wrappedRequestHeaders) => client.rawRequest(CoinsDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'coins', 'query', variables); }, - contract( - variables: GQLContractQueryVariables, - requestHeaders?: GraphQLClientRequestHeaders, - ): Promise<{ - data: GQLContractQuery; - errors?: GraphQLError[]; - extensions?: any; - headers: Headers; - status: number; - }> { - return withWrapper( - (wrappedRequestHeaders) => - client.rawRequest( - ContractDocumentString, - variables, - { ...requestHeaders, ...wrappedRequestHeaders }, - ), - 'contract', - 'query', - variables, - ); + contract(variables: GQLContractQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: GQLContractQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> { + return withWrapper((wrappedRequestHeaders) => client.rawRequest(ContractDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'contract', 'query', variables); }, - contractBalance( - variables: GQLContractBalanceQueryVariables, - requestHeaders?: GraphQLClientRequestHeaders, - ): Promise<{ - data: GQLContractBalanceQuery; - errors?: GraphQLError[]; - extensions?: any; - headers: Headers; - status: number; - }> { - return withWrapper( - (wrappedRequestHeaders) => - client.rawRequest( - ContractBalanceDocumentString, - variables, - { ...requestHeaders, ...wrappedRequestHeaders }, - ), - 'contractBalance', - 'query', - variables, - ); + contractBalance(variables: GQLContractBalanceQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: GQLContractBalanceQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> { + return withWrapper((wrappedRequestHeaders) => client.rawRequest(ContractBalanceDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'contractBalance', 'query', variables); }, - contractBalances( - variables: GQLContractBalancesQueryVariables, - requestHeaders?: GraphQLClientRequestHeaders, - ): Promise<{ - data: GQLContractBalancesQuery; - errors?: GraphQLError[]; - extensions?: any; - headers: Headers; - status: number; - }> { - return withWrapper( - (wrappedRequestHeaders) => - client.rawRequest( - ContractBalancesDocumentString, - variables, - { ...requestHeaders, ...wrappedRequestHeaders }, - ), - 'contractBalances', - 'query', - variables, - ); + contractBalances(variables: GQLContractBalancesQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: GQLContractBalancesQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> { + return withWrapper((wrappedRequestHeaders) => client.rawRequest(ContractBalancesDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'contractBalances', 'query', variables); }, - nodeInfo( - variables?: GQLNodeInfoQueryVariables, - requestHeaders?: GraphQLClientRequestHeaders, - ): Promise<{ - data: GQLNodeInfoQuery; - errors?: GraphQLError[]; - extensions?: any; - headers: Headers; - status: number; - }> { - return withWrapper( - (wrappedRequestHeaders) => - client.rawRequest( - NodeInfoDocumentString, - variables, - { ...requestHeaders, ...wrappedRequestHeaders }, - ), - 'nodeInfo', - 'query', - variables, - ); - }, - tps( - variables?: GQLTpsQueryVariables, - requestHeaders?: GraphQLClientRequestHeaders, - ): Promise<{ - data: GQLTpsQuery; - errors?: GraphQLError[]; - extensions?: any; - headers: Headers; - status: number; - }> { - return withWrapper( - (wrappedRequestHeaders) => - client.rawRequest(TpsDocumentString, variables, { - ...requestHeaders, - ...wrappedRequestHeaders, - }), - 'tps', - 'query', - variables, - ); + nodeInfo(variables?: GQLNodeInfoQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: GQLNodeInfoQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> { + return withWrapper((wrappedRequestHeaders) => client.rawRequest(NodeInfoDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'nodeInfo', 'query', variables); }, + tps(variables?: GQLTpsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: GQLTpsQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> { + return withWrapper((wrappedRequestHeaders) => client.rawRequest(TpsDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'tps', 'query', variables); + } }; } -export type Sdk = ReturnType; +export type Sdk = ReturnType; \ No newline at end of file diff --git a/packages/graphql/src/graphql/generated/sdk.ts b/packages/graphql/src/graphql/generated/sdk.ts index ffad3063..d863b5a6 100644 --- a/packages/graphql/src/graphql/generated/sdk.ts +++ b/packages/graphql/src/graphql/generated/sdk.ts @@ -1,51 +1,38 @@ -import { GraphQLError, print } from 'graphql'; import type { GraphQLClient, RequestOptions } from 'graphql-request'; +import { GraphQLError, print } from 'graphql' import gql from 'graphql-tag'; export type Maybe = T | null; export type InputMaybe = Maybe; -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< - T extends { [key: string]: unknown }, - K extends keyof T, -> = { [_ in K]?: never }; -export type Incremental = - | T - | { - [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never; - }; +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 }; type GraphQLClientRequestHeaders = RequestOptions['requestHeaders']; /** 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 }; - Address: { input: string; output: string }; - AssetId: { input: string; output: string }; - BlockId: { input: string; output: string }; - Bytes32: { input: string; output: string }; - ContractId: { input: string; output: string }; - HexString: { input: string; output: string }; - Nonce: { input: string; output: string }; - RelayedTransactionId: { input: string; output: string }; - Salt: { input: string; output: string }; - Signature: { input: string; output: string }; - Tai64Timestamp: { input: string; output: string }; - TransactionId: { input: string; output: string }; - TxPointer: { input: string; output: string }; - U16: { input: string; output: string }; - U32: { input: string; output: string }; - U64: { input: string; output: string }; - UtxoId: { input: string; output: string }; + 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; } + Address: { input: string; output: string; } + AssetId: { input: string; output: string; } + BlockId: { input: string; output: string; } + Bytes32: { input: string; output: string; } + ContractId: { input: string; output: string; } + HexString: { input: string; output: string; } + Nonce: { input: string; output: string; } + RelayedTransactionId: { input: string; output: string; } + Salt: { input: string; output: string; } + Signature: { input: string; output: string; } + Tai64Timestamp: { input: string; output: string; } + TransactionId: { input: string; output: string; } + TxPointer: { input: string; output: string; } + U16: { input: string; output: string; } + U32: { input: string; output: string; } + U64: { input: string; output: string; } + UtxoId: { input: string; output: string; } }; export type GQLBalance = { @@ -114,7 +101,7 @@ export type GQLBlockEdge = { }; export enum GQLBlockVersion { - V1 = 'V1', + V1 = 'V1' } export type GQLBlocksDashboard = { @@ -224,7 +211,7 @@ export type GQLConsensusParametersPurpose = { }; export enum GQLConsensusParametersVersion { - V1 = 'V1', + V1 = 'V1' } export type GQLContract = { @@ -293,7 +280,7 @@ export type GQLContractParameters = { }; export enum GQLContractParametersVersion { - V1 = 'V1', + V1 = 'V1' } export type GQLDependentCost = GQLHeavyOperation | GQLLightOperation; @@ -322,9 +309,7 @@ export type GQLDryRunTransactionExecutionStatus = { status: GQLDryRunTransactionStatus; }; -export type GQLDryRunTransactionStatus = - | GQLDryRunFailureStatus - | GQLDryRunSuccessStatus; +export type GQLDryRunTransactionStatus = GQLDryRunFailureStatus | GQLDryRunSuccessStatus; export type GQLEstimateGasPrice = { __typename: 'EstimateGasPrice'; @@ -358,7 +343,7 @@ export type GQLFeeParameters = { }; export enum GQLFeeParametersVersion { - V1 = 'V1', + V1 = 'V1' } export type GQLGasCosts = { @@ -478,7 +463,7 @@ export type GQLGasCosts = { }; export enum GQLGasCostsVersion { - V1 = 'V1', + V1 = 'V1' } export type GQLGenesis = { @@ -498,10 +483,7 @@ export type GQLGenesis = { transactionsRoot: Scalars['Bytes32']['output']; }; -export type GQLGroupedInput = - | GQLGroupedInputCoin - | GQLGroupedInputContract - | GQLGroupedInputMessage; +export type GQLGroupedInput = GQLGroupedInputCoin | GQLGroupedInputContract | GQLGroupedInputMessage; export type GQLGroupedInputCoin = { __typename: 'GroupedInputCoin'; @@ -531,13 +513,10 @@ export type GQLGroupedInputMessage = { export enum GQLGroupedInputType { InputCoin = 'InputCoin', InputContract = 'InputContract', - InputMessage = 'InputMessage', + InputMessage = 'InputMessage' } -export type GQLGroupedOutput = - | GQLGroupedOutputChanged - | GQLGroupedOutputCoin - | GQLGroupedOutputContractCreated; +export type GQLGroupedOutput = GQLGroupedOutputChanged | GQLGroupedOutputCoin | GQLGroupedOutputContractCreated; export type GQLGroupedOutputChanged = { __typename: 'GroupedOutputChanged'; @@ -567,7 +546,7 @@ export type GQLGroupedOutputContractCreated = { export enum GQLGroupedOutputType { OutputChanged = 'OutputChanged', OutputCoin = 'OutputCoin', - OutputContractCreated = 'OutputContractCreated', + OutputContractCreated = 'OutputContractCreated' } export type GQLHeader = { @@ -603,7 +582,7 @@ export type GQLHeader = { }; export enum GQLHeaderVersion { - V1 = 'V1', + V1 = 'V1' } export type GQLHeavyOperation = { @@ -722,7 +701,7 @@ export type GQLMessageProof = { export enum GQLMessageState { NotFound = 'NOT_FOUND', Spent = 'SPENT', - Unspent = 'UNSPENT', + Unspent = 'UNSPENT' } export type GQLMessageStatus = { @@ -776,49 +755,59 @@ export type GQLMutation = { submit: GQLTransaction; }; + export type GQLMutationContinueTxArgs = { id: Scalars['ID']['input']; }; + export type GQLMutationDryRunArgs = { gasPrice?: InputMaybe; txs: Array; utxoValidation?: InputMaybe; }; + export type GQLMutationEndSessionArgs = { id: Scalars['ID']['input']; }; + export type GQLMutationExecuteArgs = { id: Scalars['ID']['input']; op: Scalars['String']['input']; }; + export type GQLMutationProduceBlocksArgs = { blocksToProduce: Scalars['U32']['input']; startTimestamp?: InputMaybe; }; + export type GQLMutationResetArgs = { id: Scalars['ID']['input']; }; + export type GQLMutationSetBreakpointArgs = { breakpoint: GQLBreakpoint; id: Scalars['ID']['input']; }; + export type GQLMutationSetSingleSteppingArgs = { enable: Scalars['Boolean']['input']; id: Scalars['ID']['input']; }; + export type GQLMutationStartTxArgs = { id: Scalars['ID']['input']; txJson: Scalars['String']['input']; }; + export type GQLMutationSubmitArgs = { tx: Scalars['HexString']['input']; }; @@ -850,19 +839,14 @@ export enum GQLOperationType { FinalResult = 'FINAL_RESULT', FromAccount = 'FROM_ACCOUNT', FromContract = 'FROM_CONTRACT', - Rootless = 'ROOTLESS', + Rootless = 'ROOTLESS' } export type GQLOperationsFilterInput = { transactionHash: Scalars['String']['input']; }; -export type GQLOutput = - | GQLChangeOutput - | GQLCoinOutput - | GQLContractCreated - | GQLContractOutput - | GQLVariableOutput; +export type GQLOutput = GQLChangeOutput | GQLCoinOutput | GQLContractCreated | GQLContractOutput | GQLVariableOutput; /** * A separate `Breakpoint` type to be used as an output, as a single @@ -941,7 +925,7 @@ export type GQLPredicateParameters = { }; export enum GQLPredicateParametersVersion { - V1 = 'V1', + V1 = 'V1' } export type GQLProgramState = { @@ -1004,11 +988,13 @@ export type GQLQuery = { transactionsByOwner: GQLTransactionConnection; }; + export type GQLQueryBalanceArgs = { assetId: Scalars['AssetId']['input']; owner: Scalars['Address']['input']; }; + export type GQLQueryBalancesArgs = { after?: InputMaybe; before?: InputMaybe; @@ -1017,11 +1003,13 @@ export type GQLQueryBalancesArgs = { last?: InputMaybe; }; + export type GQLQueryBlockArgs = { height?: InputMaybe; id?: InputMaybe; }; + export type GQLQueryBlocksArgs = { after?: InputMaybe; before?: InputMaybe; @@ -1029,10 +1017,12 @@ export type GQLQueryBlocksArgs = { last?: InputMaybe; }; + export type GQLQueryCoinArgs = { utxoId: Scalars['UtxoId']['input']; }; + export type GQLQueryCoinsArgs = { after?: InputMaybe; before?: InputMaybe; @@ -1041,21 +1031,25 @@ export type GQLQueryCoinsArgs = { last?: InputMaybe; }; + export type GQLQueryCoinsToSpendArgs = { excludedIds?: InputMaybe; owner: Scalars['Address']['input']; queryPerAsset: Array; }; + export type GQLQueryContractArgs = { id: Scalars['ContractId']['input']; }; + export type GQLQueryContractBalanceArgs = { asset: Scalars['AssetId']['input']; contract: Scalars['ContractId']['input']; }; + export type GQLQueryContractBalancesArgs = { after?: InputMaybe; before?: InputMaybe; @@ -1064,6 +1058,7 @@ export type GQLQueryContractBalancesArgs = { last?: InputMaybe; }; + export type GQLQueryContractsArgs = { after?: InputMaybe; before?: InputMaybe; @@ -1071,24 +1066,29 @@ export type GQLQueryContractsArgs = { last?: InputMaybe; }; + export type GQLQueryEstimateGasPriceArgs = { blockHorizon?: InputMaybe; }; + export type GQLQueryEstimatePredicatesArgs = { tx: Scalars['HexString']['input']; }; + export type GQLQueryMemoryArgs = { id: Scalars['ID']['input']; size: Scalars['U32']['input']; start: Scalars['U32']['input']; }; + export type GQLQueryMessageArgs = { nonce: Scalars['Nonce']['input']; }; + export type GQLQueryMessageProofArgs = { commitBlockHeight?: InputMaybe; commitBlockId?: InputMaybe; @@ -1096,10 +1096,12 @@ export type GQLQueryMessageProofArgs = { transactionId: Scalars['TransactionId']['input']; }; + export type GQLQueryMessageStatusArgs = { nonce: Scalars['Nonce']['input']; }; + export type GQLQueryMessagesArgs = { after?: InputMaybe; before?: InputMaybe; @@ -1108,27 +1110,33 @@ export type GQLQueryMessagesArgs = { owner?: InputMaybe; }; + export type GQLQueryPredicateArgs = { address: Scalars['String']['input']; }; + export type GQLQueryRegisterArgs = { id: Scalars['ID']['input']; register: Scalars['U32']['input']; }; + export type GQLQueryRelayedTransactionStatusArgs = { id: Scalars['RelayedTransactionId']['input']; }; + export type GQLQuerySearchArgs = { query: Scalars['String']['input']; }; + export type GQLQueryTransactionArgs = { id: Scalars['TransactionId']['input']; }; + export type GQLQueryTransactionsArgs = { after?: InputMaybe; before?: InputMaybe; @@ -1136,6 +1144,7 @@ export type GQLQueryTransactionsArgs = { last?: InputMaybe; }; + export type GQLQueryTransactionsByBlockIdArgs = { after?: InputMaybe; before?: InputMaybe; @@ -1144,6 +1153,7 @@ export type GQLQueryTransactionsByBlockIdArgs = { last?: InputMaybe; }; + export type GQLQueryTransactionsByOwnerArgs = { after?: InputMaybe; before?: InputMaybe; @@ -1198,7 +1208,7 @@ export enum GQLReceiptType { Revert = 'REVERT', ScriptResult = 'SCRIPT_RESULT', Transfer = 'TRANSFER', - TransferOut = 'TRANSFER_OUT', + TransferOut = 'TRANSFER_OUT' } export type GQLRelayedTransactionFailed = { @@ -1212,7 +1222,7 @@ export type GQLRelayedTransactionStatus = GQLRelayedTransactionFailed; export enum GQLReturnType { Return = 'RETURN', ReturnData = 'RETURN_DATA', - Revert = 'REVERT', + Revert = 'REVERT' } export type GQLRunResult = { @@ -1226,7 +1236,7 @@ export enum GQLRunState { /** Stopped on a breakpoint */ Breakpoint = 'BREAKPOINT', /** All breakpoints have been processed, and the program has terminated */ - Completed = 'COMPLETED', + Completed = 'COMPLETED' } export type GQLScriptParameters = { @@ -1237,7 +1247,7 @@ export type GQLScriptParameters = { }; export enum GQLScriptParametersVersion { - V1 = 'V1', + V1 = 'V1' } export type GQLSearchAccount = { @@ -1315,10 +1325,12 @@ export type GQLSubscription = { submitAndAwait: GQLTransactionStatus; }; + export type GQLSubscriptionStatusChangeArgs = { id: Scalars['TransactionId']['input']; }; + export type GQLSubscriptionSubmitAndAwaitArgs = { tx: Scalars['HexString']['input']; }; @@ -1421,11 +1433,7 @@ export type GQLTransactionGasCosts = { gasUsed?: Maybe; }; -export type GQLTransactionStatus = - | GQLFailureStatus - | GQLSqueezedOutStatus - | GQLSubmittedStatus - | GQLSuccessStatus; +export type GQLTransactionStatus = GQLFailureStatus | GQLSqueezedOutStatus | GQLSubmittedStatus | GQLSuccessStatus; export type GQLTxParameters = { __typename: 'TxParameters'; @@ -1439,12 +1447,10 @@ export type GQLTxParameters = { }; export enum GQLTxParametersVersion { - V1 = 'V1', + V1 = 'V1' } -export type GQLUpgradePurpose = - | GQLConsensusParametersPurpose - | GQLStateTransitionPurpose; +export type GQLUpgradePurpose = GQLConsensusParametersPurpose | GQLStateTransitionPurpose; export type GQLUtxoItem = { __typename: 'UtxoItem'; @@ -1461,19 +1467,7 @@ export type GQLVariableOutput = { to: Scalars['Address']['output']; }; -export type GQLBalanceItemFragment = { - __typename: 'Balance'; - amount: string; - assetId: string; - owner: string; - utxos?: Array<{ - __typename: 'UtxoItem'; - amount: string; - blockCreated?: string | null; - txCreatedIdx?: string | null; - utxoId: string; - } | null> | null; -}; +export type GQLBalanceItemFragment = { __typename: 'Balance', amount: string, assetId: string, owner: string, utxos?: Array<{ __typename: 'UtxoItem', amount: string, blockCreated?: string | null, txCreatedIdx?: string | null, utxoId: string } | null> | null }; export type GQLBalancesQueryVariables = Exact<{ after?: InputMaybe; @@ -1483,135 +1477,20 @@ export type GQLBalancesQueryVariables = Exact<{ last?: InputMaybe; }>; -export type GQLBalancesQuery = { - __typename: 'Query'; - balances: { - __typename: 'BalanceConnection'; - nodes: Array<{ - __typename: 'Balance'; - amount: string; - assetId: string; - owner: string; - utxos?: Array<{ - __typename: 'UtxoItem'; - amount: string; - blockCreated?: string | null; - txCreatedIdx?: string | null; - utxoId: string; - } | null> | null; - }>; - pageInfo: { - __typename: 'PageInfo'; - endCursor?: string | null; - hasNextPage: boolean; - hasPreviousPage: boolean; - startCursor?: string | null; - }; - }; -}; -export type GQLBlockFragment = { - __typename: 'Block'; - id: string; - height: string; - producer?: string | null; - consensus: - | { __typename: 'Genesis' } - | { __typename: 'PoAConsensus'; signature: string }; - header: { __typename: 'Header'; transactionsCount: string }; - time?: { - __typename: 'ParsedTime'; - full?: string | null; - fromNow?: string | null; - rawUnix?: string | null; - } | null; - transactions: Array<{ - __typename: 'Transaction'; - _id?: string | null; - id: string; - title: string; - statusType?: string | null; - time: { - __typename: 'ParsedTime'; - fromNow?: string | null; - rawUnix?: string | null; - }; - gasCosts?: { - __typename: 'TransactionGasCosts'; - fee?: string | null; - } | null; - }>; -}; +export type GQLBalancesQuery = { __typename: 'Query', balances: { __typename: 'BalanceConnection', nodes: Array<{ __typename: 'Balance', amount: string, assetId: string, owner: string, utxos?: Array<{ __typename: 'UtxoItem', amount: string, blockCreated?: string | null, txCreatedIdx?: string | null, utxoId: string } | null> | null }>, pageInfo: { __typename: 'PageInfo', endCursor?: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor?: string | null } } }; + +export type GQLBlockFragment = { __typename: 'Block', id: string, height: string, producer?: string | null, consensus: { __typename: 'Genesis' } | { __typename: 'PoAConsensus', signature: string }, header: { __typename: 'Header', transactionsCount: string }, time?: { __typename: 'ParsedTime', full?: string | null, fromNow?: string | null, rawUnix?: string | null } | null, transactions: Array<{ __typename: 'Transaction', _id?: string | null, id: string, title: string, statusType?: string | null, time: { __typename: 'ParsedTime', fromNow?: string | null, rawUnix?: string | null }, gasCosts?: { __typename: 'TransactionGasCosts', fee?: string | null } | null }> }; export type GQLBlockQueryVariables = Exact<{ height?: InputMaybe; id?: InputMaybe; }>; -export type GQLBlockQuery = { - __typename: 'Query'; - block?: { - __typename: 'Block'; - id: string; - height: string; - producer?: string | null; - consensus: - | { __typename: 'Genesis' } - | { __typename: 'PoAConsensus'; signature: string }; - header: { __typename: 'Header'; transactionsCount: string }; - time?: { - __typename: 'ParsedTime'; - full?: string | null; - fromNow?: string | null; - rawUnix?: string | null; - } | null; - transactions: Array<{ - __typename: 'Transaction'; - _id?: string | null; - id: string; - title: string; - statusType?: string | null; - time: { - __typename: 'ParsedTime'; - fromNow?: string | null; - rawUnix?: string | null; - }; - gasCosts?: { - __typename: 'TransactionGasCosts'; - fee?: string | null; - } | null; - }>; - } | null; -}; - -export type GQLBlockItemFragment = { - __typename: 'Block'; - totalGasUsed?: string | null; - producer?: string | null; - id: string; - time?: { - __typename: 'ParsedTime'; - fromNow?: string | null; - full?: string | null; - rawTai64?: string | null; - rawUnix?: string | null; - } | null; - consensus: - | { __typename: 'Genesis' } - | { __typename: 'PoAConsensus'; signature: string }; - header: { - __typename: 'Header'; - id: string; - height: string; - time: string; - transactionsCount: string; - }; - transactions: Array<{ - __typename: 'Transaction'; - isMint: boolean; - mintAmount?: string | null; - }>; -}; + +export type GQLBlockQuery = { __typename: 'Query', block?: { __typename: 'Block', id: string, height: string, producer?: string | null, consensus: { __typename: 'Genesis' } | { __typename: 'PoAConsensus', signature: string }, header: { __typename: 'Header', transactionsCount: string }, time?: { __typename: 'ParsedTime', full?: string | null, fromNow?: string | null, rawUnix?: string | null } | null, transactions: Array<{ __typename: 'Transaction', _id?: string | null, id: string, title: string, statusType?: string | null, time: { __typename: 'ParsedTime', fromNow?: string | null, rawUnix?: string | null }, gasCosts?: { __typename: 'TransactionGasCosts', fee?: string | null } | null }> } | null }; + +export type GQLBlockItemFragment = { __typename: 'Block', totalGasUsed?: string | null, producer?: string | null, id: string, time?: { __typename: 'ParsedTime', fromNow?: string | null, full?: string | null, rawTai64?: string | null, rawUnix?: string | null } | null, consensus: { __typename: 'Genesis' } | { __typename: 'PoAConsensus', signature: string }, header: { __typename: 'Header', id: string, height: string, time: string, transactionsCount: string }, transactions: Array<{ __typename: 'Transaction', isMint: boolean, mintAmount?: string | null }> }; export type GQLBlocksQueryVariables = Exact<{ after?: InputMaybe; @@ -1620,1000 +1499,13 @@ export type GQLBlocksQueryVariables = Exact<{ last?: InputMaybe; }>; -export type GQLBlocksQuery = { - __typename: 'Query'; - blocks: { - __typename: 'BlockConnection'; - pageInfo: { - __typename: 'PageInfo'; - startCursor?: string | null; - endCursor?: string | null; - hasPreviousPage: boolean; - hasNextPage: boolean; - }; - edges: Array<{ - __typename: 'BlockEdge'; - node: { - __typename: 'Block'; - totalGasUsed?: string | null; - producer?: string | null; - id: string; - time?: { - __typename: 'ParsedTime'; - fromNow?: string | null; - full?: string | null; - rawTai64?: string | null; - rawUnix?: string | null; - } | null; - consensus: - | { __typename: 'Genesis' } - | { __typename: 'PoAConsensus'; signature: string }; - header: { - __typename: 'Header'; - id: string; - height: string; - time: string; - transactionsCount: string; - }; - transactions: Array<{ - __typename: 'Transaction'; - isMint: boolean; - mintAmount?: string | null; - }>; - }; - }>; - }; -}; -export type GQLChainQueryVariables = Exact<{ [key: string]: never }>; +export type GQLBlocksQuery = { __typename: 'Query', blocks: { __typename: 'BlockConnection', pageInfo: { __typename: 'PageInfo', startCursor?: string | null, endCursor?: string | null, hasPreviousPage: boolean, hasNextPage: boolean }, edges: Array<{ __typename: 'BlockEdge', node: { __typename: 'Block', totalGasUsed?: string | null, producer?: string | null, id: string, time?: { __typename: 'ParsedTime', fromNow?: string | null, full?: string | null, rawTai64?: string | null, rawUnix?: string | null } | null, consensus: { __typename: 'Genesis' } | { __typename: 'PoAConsensus', signature: string }, header: { __typename: 'Header', id: string, height: string, time: string, transactionsCount: string }, transactions: Array<{ __typename: 'Transaction', isMint: boolean, mintAmount?: string | null }> } }> } }; -export type GQLChainQuery = { - __typename: 'Query'; - chain: { - __typename: 'ChainInfo'; - daHeight: string; - name: string; - consensusParameters: { - __typename: 'ConsensusParameters'; - baseAssetId: string; - blockGasLimit: string; - chainId: string; - privilegedAddress: string; - contractParams: { - __typename: 'ContractParameters'; - contractMaxSize: string; - maxStorageSlots: string; - }; - feeParams: { - __typename: 'FeeParameters'; - gasPerByte: string; - gasPriceFactor: string; - }; - gasCosts: { - __typename: 'GasCosts'; - add: string; - addi: string; - aloc: string; - and: string; - andi: string; - bal: string; - bhei: string; - bhsh: string; - burn: string; - cb: string; - cfei: string; - cfsi: string; - div: string; - divi: string; - eck1: string; - ecr1: string; - ed19: string; - eq: string; - exp: string; - expi: string; - flag: string; - gm: string; - gt: string; - gtf: string; - ji: string; - jmp: string; - jmpb: string; - jmpf: string; - jne: string; - jneb: string; - jnef: string; - jnei: string; - jnzb: string; - jnzf: string; - jnzi: string; - lb: string; - log: string; - lt: string; - lw: string; - mint: string; - mldv: string; - mlog: string; - modOp: string; - modi: string; - moveOp: string; - movi: string; - mroo: string; - mul: string; - muli: string; - newStoragePerByte: string; - noop: string; - not: string; - or: string; - ori: string; - poph: string; - popl: string; - pshh: string; - pshl: string; - ret: string; - rvrt: string; - sb: string; - sll: string; - slli: string; - srl: string; - srli: string; - srw: string; - sub: string; - subi: string; - sw: string; - sww: string; - time: string; - tr: string; - tro: string; - wdam: string; - wdcm: string; - wddv: string; - wdmd: string; - wdml: string; - wdmm: string; - wdop: string; - wqam: string; - wqcm: string; - wqdv: string; - wqmd: string; - wqml: string; - wqmm: string; - wqop: string; - xor: string; - xori: string; - call: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - ccp: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - contractRoot: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - croo: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - csiz: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - k256: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - ldc: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - logd: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - mcl: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - mcli: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - mcp: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - mcpi: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - meq: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - retd: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - s256: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - scwq: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - smo: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - srwq: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - stateRoot: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - swwq: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - vmInitialization: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - }; - predicateParams: { - __typename: 'PredicateParameters'; - maxGasPerPredicate: string; - maxMessageDataLength: string; - maxPredicateDataLength: string; - maxPredicateLength: string; - }; - scriptParams: { - __typename: 'ScriptParameters'; - maxScriptDataLength: string; - maxScriptLength: string; - }; - txParams: { - __typename: 'TxParameters'; - maxBytecodeSubsections: string; - maxGasPerTx: string; - maxInputs: string; - maxOutputs: string; - maxSize: string; - maxWitnesses: string; - }; - }; - gasCosts: { - __typename: 'GasCosts'; - add: string; - addi: string; - aloc: string; - and: string; - andi: string; - bal: string; - bhei: string; - bhsh: string; - burn: string; - cb: string; - cfei: string; - cfsi: string; - div: string; - divi: string; - eck1: string; - ecr1: string; - ed19: string; - eq: string; - exp: string; - expi: string; - flag: string; - gm: string; - gt: string; - gtf: string; - ji: string; - jmp: string; - jmpb: string; - jmpf: string; - jne: string; - jneb: string; - jnef: string; - jnei: string; - jnzb: string; - jnzf: string; - jnzi: string; - lb: string; - log: string; - lt: string; - lw: string; - mint: string; - mldv: string; - mlog: string; - modOp: string; - modi: string; - moveOp: string; - movi: string; - mroo: string; - mul: string; - muli: string; - newStoragePerByte: string; - noop: string; - not: string; - or: string; - ori: string; - poph: string; - popl: string; - pshh: string; - pshl: string; - ret: string; - rvrt: string; - sb: string; - sll: string; - slli: string; - srl: string; - srli: string; - srw: string; - sub: string; - subi: string; - sw: string; - sww: string; - time: string; - tr: string; - tro: string; - wdam: string; - wdcm: string; - wddv: string; - wdmd: string; - wdml: string; - wdmm: string; - wdop: string; - wqam: string; - wqcm: string; - wqdv: string; - wqmd: string; - wqml: string; - wqmm: string; - wqop: string; - xor: string; - xori: string; - call: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - ccp: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - contractRoot: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - croo: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - csiz: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - k256: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - ldc: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - logd: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - mcl: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - mcli: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - mcp: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - mcpi: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - meq: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - retd: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - s256: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - scwq: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - smo: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - srwq: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - stateRoot: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - swwq: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - vmInitialization: - | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string } - | { __typename: 'LightOperation'; base: string; unitsPerGas: string }; - }; - latestBlock: { - __typename: 'Block'; - height: string; - id: string; - consensus: - | { - __typename: 'Genesis'; - chainConfigHash: string; - coinsRoot: string; - contractsRoot: string; - messagesRoot: string; - transactionsRoot: string; - } - | { __typename: 'PoAConsensus'; signature: string }; - header: { - __typename: 'Header'; - applicationHash: string; - consensusParametersVersion: string; - daHeight: string; - eventInboxRoot: string; - height: string; - id: string; - messageOutboxRoot: string; - messageReceiptCount: string; - prevRoot: string; - stateTransitionBytecodeVersion: string; - time: string; - transactionsCount: string; - transactionsRoot: string; - }; - transactions: Array<{ - __typename: 'Transaction'; - bytecodeRoot?: string | null; - bytecodeWitnessIndex?: string | null; - id: string; - inputAssetIds?: Array | null; - inputContracts?: Array | null; - isCreate: boolean; - isMint: boolean; - isScript: boolean; - isUpgrade: boolean; - isUpload: boolean; - maturity?: string | null; - mintAmount?: string | null; - mintAssetId?: string | null; - mintGasPrice?: string | null; - proofSet?: Array | null; - rawPayload: string; - receiptsRoot?: string | null; - salt?: string | null; - script?: string | null; - scriptData?: string | null; - scriptGasLimit?: string | null; - storageSlots?: Array | null; - subsectionIndex?: string | null; - subsectionsNumber?: string | null; - txPointer?: string | null; - witnesses?: Array | null; - inputContract?: { - __typename: 'InputContract'; - balanceRoot: string; - contractId: string; - stateRoot: string; - txPointer: string; - utxoId: string; - } | null; - inputs?: Array< - | { - __typename: 'InputCoin'; - amount: string; - assetId: string; - owner: string; - predicate: string; - predicateData: string; - predicateGasUsed: string; - txPointer: string; - utxoId: string; - witnessIndex: string; - } - | { - __typename: 'InputContract'; - balanceRoot: string; - contractId: string; - stateRoot: string; - txPointer: string; - utxoId: string; - } - | { - __typename: 'InputMessage'; - amount: string; - data: string; - nonce: string; - predicate: string; - predicateData: string; - predicateGasUsed: string; - recipient: string; - sender: string; - witnessIndex: string; - } - > | null; - outputContract?: { - __typename: 'ContractOutput'; - balanceRoot: string; - inputIndex: string; - stateRoot: string; - } | null; - outputs: Array< - | { - __typename: 'ChangeOutput'; - amount: string; - assetId: string; - to: string; - } - | { - __typename: 'CoinOutput'; - amount: string; - assetId: string; - to: string; - } - | { - __typename: 'ContractCreated'; - contract: string; - stateRoot: string; - } - | { - __typename: 'ContractOutput'; - balanceRoot: string; - inputIndex: string; - stateRoot: string; - } - | { - __typename: 'VariableOutput'; - amount: string; - assetId: string; - to: string; - } - >; - policies?: { - __typename: 'Policies'; - maturity?: string | null; - maxFee?: string | null; - tip?: string | null; - witnessLimit?: string | null; - } | null; - status?: - | { - __typename: 'FailureStatus'; - reason: string; - time: string; - totalFee: string; - totalGas: string; - transactionId: string; - block: { - __typename: 'Block'; - height: string; - id: string; - consensus: - | { - __typename: 'Genesis'; - chainConfigHash: string; - coinsRoot: string; - contractsRoot: string; - messagesRoot: string; - transactionsRoot: string; - } - | { __typename: 'PoAConsensus'; signature: string }; - header: { - __typename: 'Header'; - applicationHash: string; - consensusParametersVersion: string; - daHeight: string; - eventInboxRoot: string; - height: string; - id: string; - messageOutboxRoot: string; - messageReceiptCount: string; - prevRoot: string; - stateTransitionBytecodeVersion: string; - time: string; - transactionsCount: string; - transactionsRoot: string; - }; - transactions: Array<{ - __typename: 'Transaction'; - bytecodeRoot?: string | null; - bytecodeWitnessIndex?: string | null; - id: string; - inputAssetIds?: Array | null; - inputContracts?: Array | null; - isCreate: boolean; - isMint: boolean; - isScript: boolean; - isUpgrade: boolean; - isUpload: boolean; - maturity?: string | null; - mintAmount?: string | null; - mintAssetId?: string | null; - mintGasPrice?: string | null; - proofSet?: Array | null; - rawPayload: string; - receiptsRoot?: string | null; - salt?: string | null; - script?: string | null; - scriptData?: string | null; - scriptGasLimit?: string | null; - storageSlots?: Array | null; - subsectionIndex?: string | null; - subsectionsNumber?: string | null; - txPointer?: string | null; - witnesses?: Array | null; - inputContract?: { - __typename: 'InputContract'; - balanceRoot: string; - contractId: string; - stateRoot: string; - txPointer: string; - utxoId: string; - } | null; - inputs?: Array< - | { - __typename: 'InputCoin'; - amount: string; - assetId: string; - owner: string; - predicate: string; - predicateData: string; - predicateGasUsed: string; - txPointer: string; - utxoId: string; - witnessIndex: string; - } - | { - __typename: 'InputContract'; - balanceRoot: string; - contractId: string; - stateRoot: string; - txPointer: string; - utxoId: string; - } - | { - __typename: 'InputMessage'; - amount: string; - data: string; - nonce: string; - predicate: string; - predicateData: string; - predicateGasUsed: string; - recipient: string; - sender: string; - witnessIndex: string; - } - > | null; - outputContract?: { - __typename: 'ContractOutput'; - balanceRoot: string; - inputIndex: string; - stateRoot: string; - } | null; - outputs: Array< - | { - __typename: 'ChangeOutput'; - amount: string; - assetId: string; - to: string; - } - | { - __typename: 'CoinOutput'; - amount: string; - assetId: string; - to: string; - } - | { - __typename: 'ContractCreated'; - contract: string; - stateRoot: string; - } - | { - __typename: 'ContractOutput'; - balanceRoot: string; - inputIndex: string; - stateRoot: string; - } - | { - __typename: 'VariableOutput'; - amount: string; - assetId: string; - to: string; - } - >; - policies?: { - __typename: 'Policies'; - maturity?: string | null; - maxFee?: string | null; - tip?: string | null; - witnessLimit?: string | null; - } | null; - status?: - | { - __typename: 'FailureStatus'; - reason: string; - time: string; - totalFee: string; - totalGas: string; - transactionId: string; - } - | { __typename: 'SqueezedOutStatus'; reason: string } - | { __typename: 'SubmittedStatus'; time: string } - | { - __typename: 'SuccessStatus'; - time: string; - totalFee: string; - totalGas: string; - transactionId: string; - } - | null; - upgradePurpose?: - | { - __typename: 'ConsensusParametersPurpose'; - checksum: string; - witnessIndex: string; - } - | { __typename: 'StateTransitionPurpose'; root: string } - | null; - }>; - }; - programState?: { - __typename: 'ProgramState'; - data: string; - returnType: GQLReturnType; - } | null; - receipts: Array<{ - __typename: 'Receipt'; - amount?: string | null; - assetId?: string | null; - contractId?: string | null; - data?: string | null; - digest?: string | null; - gas?: string | null; - gasUsed?: string | null; - id?: string | null; - is?: string | null; - len?: string | null; - nonce?: string | null; - param1?: string | null; - param2?: string | null; - pc?: string | null; - ptr?: string | null; - ra?: string | null; - rb?: string | null; - rc?: string | null; - rd?: string | null; - reason?: string | null; - receiptType: GQLReceiptType; - recipient?: string | null; - result?: string | null; - sender?: string | null; - subId?: string | null; - to?: string | null; - toAddress?: string | null; - val?: string | null; - }>; - } - | { __typename: 'SqueezedOutStatus'; reason: string } - | { __typename: 'SubmittedStatus'; time: string } - | { - __typename: 'SuccessStatus'; - time: string; - totalFee: string; - totalGas: string; - transactionId: string; - block: { - __typename: 'Block'; - height: string; - id: string; - consensus: - | { - __typename: 'Genesis'; - chainConfigHash: string; - coinsRoot: string; - contractsRoot: string; - messagesRoot: string; - transactionsRoot: string; - } - | { __typename: 'PoAConsensus'; signature: string }; - header: { - __typename: 'Header'; - applicationHash: string; - consensusParametersVersion: string; - daHeight: string; - eventInboxRoot: string; - height: string; - id: string; - messageOutboxRoot: string; - messageReceiptCount: string; - prevRoot: string; - stateTransitionBytecodeVersion: string; - time: string; - transactionsCount: string; - transactionsRoot: string; - }; - transactions: Array<{ - __typename: 'Transaction'; - bytecodeRoot?: string | null; - bytecodeWitnessIndex?: string | null; - id: string; - inputAssetIds?: Array | null; - inputContracts?: Array | null; - isCreate: boolean; - isMint: boolean; - isScript: boolean; - isUpgrade: boolean; - isUpload: boolean; - maturity?: string | null; - mintAmount?: string | null; - mintAssetId?: string | null; - mintGasPrice?: string | null; - proofSet?: Array | null; - rawPayload: string; - receiptsRoot?: string | null; - salt?: string | null; - script?: string | null; - scriptData?: string | null; - scriptGasLimit?: string | null; - storageSlots?: Array | null; - subsectionIndex?: string | null; - subsectionsNumber?: string | null; - txPointer?: string | null; - witnesses?: Array | null; - inputContract?: { - __typename: 'InputContract'; - balanceRoot: string; - contractId: string; - stateRoot: string; - txPointer: string; - utxoId: string; - } | null; - inputs?: Array< - | { - __typename: 'InputCoin'; - amount: string; - assetId: string; - owner: string; - predicate: string; - predicateData: string; - predicateGasUsed: string; - txPointer: string; - utxoId: string; - witnessIndex: string; - } - | { - __typename: 'InputContract'; - balanceRoot: string; - contractId: string; - stateRoot: string; - txPointer: string; - utxoId: string; - } - | { - __typename: 'InputMessage'; - amount: string; - data: string; - nonce: string; - predicate: string; - predicateData: string; - predicateGasUsed: string; - recipient: string; - sender: string; - witnessIndex: string; - } - > | null; - outputContract?: { - __typename: 'ContractOutput'; - balanceRoot: string; - inputIndex: string; - stateRoot: string; - } | null; - outputs: Array< - | { - __typename: 'ChangeOutput'; - amount: string; - assetId: string; - to: string; - } - | { - __typename: 'CoinOutput'; - amount: string; - assetId: string; - to: string; - } - | { - __typename: 'ContractCreated'; - contract: string; - stateRoot: string; - } - | { - __typename: 'ContractOutput'; - balanceRoot: string; - inputIndex: string; - stateRoot: string; - } - | { - __typename: 'VariableOutput'; - amount: string; - assetId: string; - to: string; - } - >; - policies?: { - __typename: 'Policies'; - maturity?: string | null; - maxFee?: string | null; - tip?: string | null; - witnessLimit?: string | null; - } | null; - status?: - | { - __typename: 'FailureStatus'; - reason: string; - time: string; - totalFee: string; - totalGas: string; - transactionId: string; - } - | { __typename: 'SqueezedOutStatus'; reason: string } - | { __typename: 'SubmittedStatus'; time: string } - | { - __typename: 'SuccessStatus'; - time: string; - totalFee: string; - totalGas: string; - transactionId: string; - } - | null; - upgradePurpose?: - | { - __typename: 'ConsensusParametersPurpose'; - checksum: string; - witnessIndex: string; - } - | { __typename: 'StateTransitionPurpose'; root: string } - | null; - }>; - }; - programState?: { - __typename: 'ProgramState'; - data: string; - returnType: GQLReturnType; - } | null; - receipts: Array<{ - __typename: 'Receipt'; - amount?: string | null; - assetId?: string | null; - contractId?: string | null; - data?: string | null; - digest?: string | null; - gas?: string | null; - gasUsed?: string | null; - id?: string | null; - is?: string | null; - len?: string | null; - nonce?: string | null; - param1?: string | null; - param2?: string | null; - pc?: string | null; - ptr?: string | null; - ra?: string | null; - rb?: string | null; - rc?: string | null; - rd?: string | null; - reason?: string | null; - receiptType: GQLReceiptType; - recipient?: string | null; - result?: string | null; - sender?: string | null; - subId?: string | null; - to?: string | null; - toAddress?: string | null; - val?: string | null; - }>; - } - | null; - upgradePurpose?: - | { - __typename: 'ConsensusParametersPurpose'; - checksum: string; - witnessIndex: string; - } - | { __typename: 'StateTransitionPurpose'; root: string } - | null; - }>; - }; - }; -}; +export type GQLChainQueryVariables = Exact<{ [key: string]: never; }>; + + +export type GQLChainQuery = { __typename: 'Query', chain: { __typename: 'ChainInfo', daHeight: string, name: string, consensusParameters: { __typename: 'ConsensusParameters', baseAssetId: string, blockGasLimit: string, chainId: string, privilegedAddress: string, contractParams: { __typename: 'ContractParameters', contractMaxSize: string, maxStorageSlots: string }, feeParams: { __typename: 'FeeParameters', gasPerByte: string, gasPriceFactor: string }, gasCosts: { __typename: 'GasCosts', add: string, addi: string, aloc: string, and: string, andi: string, bal: string, bhei: string, bhsh: string, burn: string, cb: string, cfei: string, cfsi: string, div: string, divi: string, eck1: string, ecr1: string, ed19: string, eq: string, exp: string, expi: string, flag: string, gm: string, gt: string, gtf: string, ji: string, jmp: string, jmpb: string, jmpf: string, jne: string, jneb: string, jnef: string, jnei: string, jnzb: string, jnzf: string, jnzi: string, lb: string, log: string, lt: string, lw: string, mint: string, mldv: string, mlog: string, modOp: string, modi: string, moveOp: string, movi: string, mroo: string, mul: string, muli: string, newStoragePerByte: string, noop: string, not: string, or: string, ori: string, poph: string, popl: string, pshh: string, pshl: string, ret: string, rvrt: string, sb: string, sll: string, slli: string, srl: string, srli: string, srw: string, sub: string, subi: string, sw: string, sww: string, time: string, tr: string, tro: string, wdam: string, wdcm: string, wddv: string, wdmd: string, wdml: string, wdmm: string, wdop: string, wqam: string, wqcm: string, wqdv: string, wqmd: string, wqml: string, wqmm: string, wqop: string, xor: string, xori: string, call: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, ccp: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, contractRoot: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, croo: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, csiz: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, k256: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, ldc: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, logd: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, mcl: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, mcli: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, mcp: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, mcpi: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, meq: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, retd: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, s256: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, scwq: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, smo: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, srwq: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, stateRoot: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, swwq: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, vmInitialization: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string } }, predicateParams: { __typename: 'PredicateParameters', maxGasPerPredicate: string, maxMessageDataLength: string, maxPredicateDataLength: string, maxPredicateLength: string }, scriptParams: { __typename: 'ScriptParameters', maxScriptDataLength: string, maxScriptLength: string }, txParams: { __typename: 'TxParameters', maxBytecodeSubsections: string, maxGasPerTx: string, maxInputs: string, maxOutputs: string, maxSize: string, maxWitnesses: string } }, gasCosts: { __typename: 'GasCosts', add: string, addi: string, aloc: string, and: string, andi: string, bal: string, bhei: string, bhsh: string, burn: string, cb: string, cfei: string, cfsi: string, div: string, divi: string, eck1: string, ecr1: string, ed19: string, eq: string, exp: string, expi: string, flag: string, gm: string, gt: string, gtf: string, ji: string, jmp: string, jmpb: string, jmpf: string, jne: string, jneb: string, jnef: string, jnei: string, jnzb: string, jnzf: string, jnzi: string, lb: string, log: string, lt: string, lw: string, mint: string, mldv: string, mlog: string, modOp: string, modi: string, moveOp: string, movi: string, mroo: string, mul: string, muli: string, newStoragePerByte: string, noop: string, not: string, or: string, ori: string, poph: string, popl: string, pshh: string, pshl: string, ret: string, rvrt: string, sb: string, sll: string, slli: string, srl: string, srli: string, srw: string, sub: string, subi: string, sw: string, sww: string, time: string, tr: string, tro: string, wdam: string, wdcm: string, wddv: string, wdmd: string, wdml: string, wdmm: string, wdop: string, wqam: string, wqcm: string, wqdv: string, wqmd: string, wqml: string, wqmm: string, wqop: string, xor: string, xori: string, call: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, ccp: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, contractRoot: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, croo: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, csiz: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, k256: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, ldc: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, logd: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, mcl: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, mcli: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, mcp: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, mcpi: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, meq: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, retd: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, s256: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, scwq: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, smo: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, srwq: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, stateRoot: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, swwq: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, vmInitialization: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string } }, latestBlock: { __typename: 'Block', height: string, id: string, consensus: { __typename: 'Genesis', chainConfigHash: string, coinsRoot: string, contractsRoot: string, messagesRoot: string, transactionsRoot: string } | { __typename: 'PoAConsensus', signature: string }, header: { __typename: 'Header', applicationHash: string, consensusParametersVersion: string, daHeight: string, eventInboxRoot: string, height: string, id: string, messageOutboxRoot: string, messageReceiptCount: string, prevRoot: string, stateTransitionBytecodeVersion: string, time: string, transactionsCount: string, transactionsRoot: string }, transactions: Array<{ __typename: 'Transaction', bytecodeRoot?: string | null, bytecodeWitnessIndex?: string | null, id: string, inputAssetIds?: Array | null, inputContracts?: Array | null, isCreate: boolean, isMint: boolean, isScript: boolean, isUpgrade: boolean, isUpload: boolean, maturity?: string | null, mintAmount?: string | null, mintAssetId?: string | null, mintGasPrice?: string | null, proofSet?: Array | null, rawPayload: string, receiptsRoot?: string | null, salt?: string | null, script?: string | null, scriptData?: string | null, scriptGasLimit?: string | null, storageSlots?: Array | null, subsectionIndex?: string | null, subsectionsNumber?: string | null, txPointer?: string | null, witnesses?: Array | null, inputContract?: { __typename: 'InputContract', balanceRoot: string, contractId: string, stateRoot: string, txPointer: string, utxoId: string } | null, inputs?: Array<{ __typename: 'InputCoin', amount: string, assetId: string, owner: string, predicate: string, predicateData: string, predicateGasUsed: string, txPointer: string, utxoId: string, witnessIndex: string } | { __typename: 'InputContract', balanceRoot: string, contractId: string, stateRoot: string, txPointer: string, utxoId: string } | { __typename: 'InputMessage', amount: string, data: string, nonce: string, predicate: string, predicateData: string, predicateGasUsed: string, recipient: string, sender: string, witnessIndex: string }> | null, outputContract?: { __typename: 'ContractOutput', balanceRoot: string, inputIndex: string, stateRoot: string } | null, outputs: Array<{ __typename: 'ChangeOutput', amount: string, assetId: string, to: string } | { __typename: 'CoinOutput', amount: string, assetId: string, to: string } | { __typename: 'ContractCreated', contract: string, stateRoot: string } | { __typename: 'ContractOutput', balanceRoot: string, inputIndex: string, stateRoot: string } | { __typename: 'VariableOutput', amount: string, assetId: string, to: string }>, policies?: { __typename: 'Policies', maturity?: string | null, maxFee?: string | null, tip?: string | null, witnessLimit?: string | null } | null, status?: { __typename: 'FailureStatus', reason: string, time: string, totalFee: string, totalGas: string, transactionId: string, block: { __typename: 'Block', height: string, id: string, consensus: { __typename: 'Genesis', chainConfigHash: string, coinsRoot: string, contractsRoot: string, messagesRoot: string, transactionsRoot: string } | { __typename: 'PoAConsensus', signature: string }, header: { __typename: 'Header', applicationHash: string, consensusParametersVersion: string, daHeight: string, eventInboxRoot: string, height: string, id: string, messageOutboxRoot: string, messageReceiptCount: string, prevRoot: string, stateTransitionBytecodeVersion: string, time: string, transactionsCount: string, transactionsRoot: string }, transactions: Array<{ __typename: 'Transaction', bytecodeRoot?: string | null, bytecodeWitnessIndex?: string | null, id: string, inputAssetIds?: Array | null, inputContracts?: Array | null, isCreate: boolean, isMint: boolean, isScript: boolean, isUpgrade: boolean, isUpload: boolean, maturity?: string | null, mintAmount?: string | null, mintAssetId?: string | null, mintGasPrice?: string | null, proofSet?: Array | null, rawPayload: string, receiptsRoot?: string | null, salt?: string | null, script?: string | null, scriptData?: string | null, scriptGasLimit?: string | null, storageSlots?: Array | null, subsectionIndex?: string | null, subsectionsNumber?: string | null, txPointer?: string | null, witnesses?: Array | null, inputContract?: { __typename: 'InputContract', balanceRoot: string, contractId: string, stateRoot: string, txPointer: string, utxoId: string } | null, inputs?: Array<{ __typename: 'InputCoin', amount: string, assetId: string, owner: string, predicate: string, predicateData: string, predicateGasUsed: string, txPointer: string, utxoId: string, witnessIndex: string } | { __typename: 'InputContract', balanceRoot: string, contractId: string, stateRoot: string, txPointer: string, utxoId: string } | { __typename: 'InputMessage', amount: string, data: string, nonce: string, predicate: string, predicateData: string, predicateGasUsed: string, recipient: string, sender: string, witnessIndex: string }> | null, outputContract?: { __typename: 'ContractOutput', balanceRoot: string, inputIndex: string, stateRoot: string } | null, outputs: Array<{ __typename: 'ChangeOutput', amount: string, assetId: string, to: string } | { __typename: 'CoinOutput', amount: string, assetId: string, to: string } | { __typename: 'ContractCreated', contract: string, stateRoot: string } | { __typename: 'ContractOutput', balanceRoot: string, inputIndex: string, stateRoot: string } | { __typename: 'VariableOutput', amount: string, assetId: string, to: string }>, policies?: { __typename: 'Policies', maturity?: string | null, maxFee?: string | null, tip?: string | null, witnessLimit?: string | null } | null, status?: { __typename: 'FailureStatus', reason: string, time: string, totalFee: string, totalGas: string, transactionId: string } | { __typename: 'SqueezedOutStatus', reason: string } | { __typename: 'SubmittedStatus', time: string } | { __typename: 'SuccessStatus', time: string, totalFee: string, totalGas: string, transactionId: string } | null, upgradePurpose?: { __typename: 'ConsensusParametersPurpose', checksum: string, witnessIndex: string } | { __typename: 'StateTransitionPurpose', root: string } | null }> }, programState?: { __typename: 'ProgramState', data: string, returnType: GQLReturnType } | null, receipts: Array<{ __typename: 'Receipt', amount?: string | null, assetId?: string | null, contractId?: string | null, data?: string | null, digest?: string | null, gas?: string | null, gasUsed?: string | null, id?: string | null, is?: string | null, len?: string | null, nonce?: string | null, param1?: string | null, param2?: string | null, pc?: string | null, ptr?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, reason?: string | null, receiptType: GQLReceiptType, recipient?: string | null, result?: string | null, sender?: string | null, subId?: string | null, to?: string | null, toAddress?: string | null, val?: string | null }> } | { __typename: 'SqueezedOutStatus', reason: string } | { __typename: 'SubmittedStatus', time: string } | { __typename: 'SuccessStatus', time: string, totalFee: string, totalGas: string, transactionId: string, block: { __typename: 'Block', height: string, id: string, consensus: { __typename: 'Genesis', chainConfigHash: string, coinsRoot: string, contractsRoot: string, messagesRoot: string, transactionsRoot: string } | { __typename: 'PoAConsensus', signature: string }, header: { __typename: 'Header', applicationHash: string, consensusParametersVersion: string, daHeight: string, eventInboxRoot: string, height: string, id: string, messageOutboxRoot: string, messageReceiptCount: string, prevRoot: string, stateTransitionBytecodeVersion: string, time: string, transactionsCount: string, transactionsRoot: string }, transactions: Array<{ __typename: 'Transaction', bytecodeRoot?: string | null, bytecodeWitnessIndex?: string | null, id: string, inputAssetIds?: Array | null, inputContracts?: Array | null, isCreate: boolean, isMint: boolean, isScript: boolean, isUpgrade: boolean, isUpload: boolean, maturity?: string | null, mintAmount?: string | null, mintAssetId?: string | null, mintGasPrice?: string | null, proofSet?: Array | null, rawPayload: string, receiptsRoot?: string | null, salt?: string | null, script?: string | null, scriptData?: string | null, scriptGasLimit?: string | null, storageSlots?: Array | null, subsectionIndex?: string | null, subsectionsNumber?: string | null, txPointer?: string | null, witnesses?: Array | null, inputContract?: { __typename: 'InputContract', balanceRoot: string, contractId: string, stateRoot: string, txPointer: string, utxoId: string } | null, inputs?: Array<{ __typename: 'InputCoin', amount: string, assetId: string, owner: string, predicate: string, predicateData: string, predicateGasUsed: string, txPointer: string, utxoId: string, witnessIndex: string } | { __typename: 'InputContract', balanceRoot: string, contractId: string, stateRoot: string, txPointer: string, utxoId: string } | { __typename: 'InputMessage', amount: string, data: string, nonce: string, predicate: string, predicateData: string, predicateGasUsed: string, recipient: string, sender: string, witnessIndex: string }> | null, outputContract?: { __typename: 'ContractOutput', balanceRoot: string, inputIndex: string, stateRoot: string } | null, outputs: Array<{ __typename: 'ChangeOutput', amount: string, assetId: string, to: string } | { __typename: 'CoinOutput', amount: string, assetId: string, to: string } | { __typename: 'ContractCreated', contract: string, stateRoot: string } | { __typename: 'ContractOutput', balanceRoot: string, inputIndex: string, stateRoot: string } | { __typename: 'VariableOutput', amount: string, assetId: string, to: string }>, policies?: { __typename: 'Policies', maturity?: string | null, maxFee?: string | null, tip?: string | null, witnessLimit?: string | null } | null, status?: { __typename: 'FailureStatus', reason: string, time: string, totalFee: string, totalGas: string, transactionId: string } | { __typename: 'SqueezedOutStatus', reason: string } | { __typename: 'SubmittedStatus', time: string } | { __typename: 'SuccessStatus', time: string, totalFee: string, totalGas: string, transactionId: string } | null, upgradePurpose?: { __typename: 'ConsensusParametersPurpose', checksum: string, witnessIndex: string } | { __typename: 'StateTransitionPurpose', root: string } | null }> }, programState?: { __typename: 'ProgramState', data: string, returnType: GQLReturnType } | null, receipts: Array<{ __typename: 'Receipt', amount?: string | null, assetId?: string | null, contractId?: string | null, data?: string | null, digest?: string | null, gas?: string | null, gasUsed?: string | null, id?: string | null, is?: string | null, len?: string | null, nonce?: string | null, param1?: string | null, param2?: string | null, pc?: string | null, ptr?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, reason?: string | null, receiptType: GQLReceiptType, recipient?: string | null, result?: string | null, sender?: string | null, subId?: string | null, to?: string | null, toAddress?: string | null, val?: string | null }> } | null, upgradePurpose?: { __typename: 'ConsensusParametersPurpose', checksum: string, witnessIndex: string } | { __typename: 'StateTransitionPurpose', root: string } | null }> } } }; export type GQLCoinsQueryVariables = Exact<{ after?: InputMaybe; @@ -2623,72 +1515,19 @@ export type GQLCoinsQueryVariables = Exact<{ last?: InputMaybe; }>; -export type GQLCoinsQuery = { - __typename: 'Query'; - coins: { - __typename: 'CoinConnection'; - edges: Array<{ - __typename: 'CoinEdge'; - cursor: string; - node: { - __typename: 'Coin'; - amount: string; - assetId: string; - blockCreated: string; - owner: string; - txCreatedIdx: string; - utxoId: string; - }; - }>; - nodes: Array<{ - __typename: 'Coin'; - amount: string; - assetId: string; - blockCreated: string; - owner: string; - txCreatedIdx: string; - utxoId: string; - }>; - pageInfo: { - __typename: 'PageInfo'; - endCursor?: string | null; - hasNextPage: boolean; - hasPreviousPage: boolean; - startCursor?: string | null; - }; - }; -}; + +export type GQLCoinsQuery = { __typename: 'Query', coins: { __typename: 'CoinConnection', edges: Array<{ __typename: 'CoinEdge', cursor: string, node: { __typename: 'Coin', amount: string, assetId: string, blockCreated: string, owner: string, txCreatedIdx: string, utxoId: string } }>, nodes: Array<{ __typename: 'Coin', amount: string, assetId: string, blockCreated: string, owner: string, txCreatedIdx: string, utxoId: string }>, pageInfo: { __typename: 'PageInfo', endCursor?: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor?: string | null } } }; export type GQLContractQueryVariables = Exact<{ id: Scalars['ContractId']['input']; }>; -export type GQLContractQuery = { - __typename: 'Query'; - contract?: { __typename: 'Contract'; bytecode: string } | null; -}; -export type GQLContractBalanceNodeFragment = { - __typename: 'ContractBalance'; - amount: string; - assetId: string; -}; +export type GQLContractQuery = { __typename: 'Query', contract?: { __typename: 'Contract', bytecode: string } | null }; -export type GQLContractBalanceConnectionNodeFragment = { - __typename: 'ContractBalanceConnection'; - edges: Array<{ - __typename: 'ContractBalanceEdge'; - cursor: string; - node: { __typename: 'ContractBalance'; amount: string; assetId: string }; - }>; - pageInfo: { - __typename: 'PageInfo'; - hasNextPage: boolean; - hasPreviousPage: boolean; - endCursor?: string | null; - startCursor?: string | null; - }; -}; +export type GQLContractBalanceNodeFragment = { __typename: 'ContractBalance', amount: string, assetId: string }; + +export type GQLContractBalanceConnectionNodeFragment = { __typename: 'ContractBalanceConnection', edges: Array<{ __typename: 'ContractBalanceEdge', cursor: string, node: { __typename: 'ContractBalance', amount: string, assetId: string } }>, pageInfo: { __typename: 'PageInfo', hasNextPage: boolean, hasPreviousPage: boolean, endCursor?: string | null, startCursor?: string | null } }; export type GQLContractBalancesQueryVariables = Exact<{ after?: InputMaybe; @@ -2698,69 +1537,22 @@ export type GQLContractBalancesQueryVariables = Exact<{ last?: InputMaybe; }>; -export type GQLContractBalancesQuery = { - __typename: 'Query'; - contractBalances: { - __typename: 'ContractBalanceConnection'; - edges: Array<{ - __typename: 'ContractBalanceEdge'; - cursor: string; - node: { __typename: 'ContractBalance'; amount: string; assetId: string }; - }>; - pageInfo: { - __typename: 'PageInfo'; - hasNextPage: boolean; - hasPreviousPage: boolean; - endCursor?: string | null; - startCursor?: string | null; - }; - }; -}; -export type GQLGetBlocksDashboardQueryVariables = Exact<{ - [key: string]: never; -}>; +export type GQLContractBalancesQuery = { __typename: 'Query', contractBalances: { __typename: 'ContractBalanceConnection', edges: Array<{ __typename: 'ContractBalanceEdge', cursor: string, node: { __typename: 'ContractBalance', amount: string, assetId: string } }>, pageInfo: { __typename: 'PageInfo', hasNextPage: boolean, hasPreviousPage: boolean, endCursor?: string | null, startCursor?: string | null } } }; + +export type GQLGetBlocksDashboardQueryVariables = Exact<{ [key: string]: never; }>; -export type GQLGetBlocksDashboardQuery = { - __typename: 'Query'; - getBlocksDashboard: { - __typename: 'BlocksDashboardConnection'; - nodes: Array<{ - __typename: 'BlocksDashboard'; - timestamp: string; - gasUsed: string; - blockNo: string; - producer?: string | null; - }>; - }; -}; + +export type GQLGetBlocksDashboardQuery = { __typename: 'Query', getBlocksDashboard: { __typename: 'BlocksDashboardConnection', nodes: Array<{ __typename: 'BlocksDashboard', timestamp: string, gasUsed: string, blockNo: string, producer?: string | null }> } }; export type GQLPredicateQueryVariables = Exact<{ address: Scalars['String']['input']; }>; -export type GQLPredicateQuery = { - __typename: 'Query'; - predicate?: { - __typename: 'PredicateItem'; - address?: string | null; - bytecode?: string | null; - } | null; -}; -export type GQLRecentTransactionFragment = { - __typename: 'Transaction'; - _id?: string | null; - id: string; - title: string; - statusType?: string | null; - time: { - __typename: 'ParsedTime'; - fromNow?: string | null; - rawUnix?: string | null; - }; - gasCosts?: { __typename: 'TransactionGasCosts'; fee?: string | null } | null; -}; +export type GQLPredicateQuery = { __typename: 'Query', predicate?: { __typename: 'PredicateItem', address?: string | null, bytecode?: string | null } | null }; + +export type GQLRecentTransactionFragment = { __typename: 'Transaction', _id?: string | null, id: string, title: string, statusType?: string | null, time: { __typename: 'ParsedTime', fromNow?: string | null, rawUnix?: string | null }, gasCosts?: { __typename: 'TransactionGasCosts', fee?: string | null } | null }; export type GQLRecentTransactionsQueryVariables = Exact<{ after?: InputMaybe; @@ -2769,582 +1561,27 @@ export type GQLRecentTransactionsQueryVariables = Exact<{ last?: InputMaybe; }>; -export type GQLRecentTransactionsQuery = { - __typename: 'Query'; - transactions: { - __typename: 'TransactionConnection'; - nodes: Array<{ - __typename: 'Transaction'; - _id?: string | null; - id: string; - title: string; - statusType?: string | null; - time: { - __typename: 'ParsedTime'; - fromNow?: string | null; - rawUnix?: string | null; - }; - gasCosts?: { - __typename: 'TransactionGasCosts'; - fee?: string | null; - } | null; - }>; - pageInfo: { - __typename: 'PageInfo'; - endCursor?: string | null; - hasNextPage: boolean; - hasPreviousPage: boolean; - startCursor?: string | null; - }; - }; -}; + +export type GQLRecentTransactionsQuery = { __typename: 'Query', transactions: { __typename: 'TransactionConnection', nodes: Array<{ __typename: 'Transaction', _id?: string | null, id: string, title: string, statusType?: string | null, time: { __typename: 'ParsedTime', fromNow?: string | null, rawUnix?: string | null }, gasCosts?: { __typename: 'TransactionGasCosts', fee?: string | null } | null }>, pageInfo: { __typename: 'PageInfo', endCursor?: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor?: string | null } } }; export type GQLSearchQueryVariables = Exact<{ query: Scalars['String']['input']; }>; -export type GQLSearchQuery = { - __typename: 'Query'; - search?: { - __typename: 'SearchResult'; - account?: { - __typename: 'SearchAccount'; - address?: string | null; - transactions?: Array<{ - __typename: 'SearchTransaction'; - id?: string | null; - } | null> | null; - } | null; - block?: { - __typename: 'SearchBlock'; - height?: string | null; - id?: string | null; - } | null; - contract?: { __typename: 'SearchContract'; id?: string | null } | null; - transaction?: { - __typename: 'SearchTransaction'; - id?: string | null; - } | null; - } | null; -}; - -export type GQLTpsQueryVariables = Exact<{ [key: string]: never }>; - -export type GQLTpsQuery = { - __typename: 'Query'; - tps: { - __typename: 'TPSConnection'; - nodes: Array<{ - __typename: 'TPS'; - start?: string | null; - end?: string | null; - txCount: string; - totalGas: string; - }>; - }; -}; + +export type GQLSearchQuery = { __typename: 'Query', search?: { __typename: 'SearchResult', account?: { __typename: 'SearchAccount', address?: string | null, transactions?: Array<{ __typename: 'SearchTransaction', id?: string | null } | null> | null } | null, block?: { __typename: 'SearchBlock', height?: string | null, id?: string | null } | null, contract?: { __typename: 'SearchContract', id?: string | null } | null, transaction?: { __typename: 'SearchTransaction', id?: string | null } | null } | null }; + +export type GQLTpsQueryVariables = Exact<{ [key: string]: never; }>; + + +export type GQLTpsQuery = { __typename: 'Query', tps: { __typename: 'TPSConnection', nodes: Array<{ __typename: 'TPS', start?: string | null, end?: string | null, txCount: string, totalGas: string }> } }; export type GQLTransactionDetailsQueryVariables = Exact<{ id: Scalars['TransactionId']['input']; }>; -export type GQLTransactionDetailsQuery = { - __typename: 'Query'; - transaction?: { - __typename: 'Transaction'; - id: string; - blockHeight?: string | null; - hasPredicate?: boolean | null; - statusType?: string | null; - title: string; - maturity?: string | null; - txPointer?: string | null; - isScript: boolean; - isCreate: boolean; - isMint: boolean; - witnesses?: Array | null; - receiptsRoot?: string | null; - script?: string | null; - scriptData?: string | null; - bytecodeWitnessIndex?: string | null; - salt?: string | null; - storageSlots?: Array | null; - rawPayload: string; - mintAmount?: string | null; - mintAssetId?: string | null; - inputAssetIds?: Array | null; - inputContracts?: Array | null; - gasCosts?: { - __typename: 'TransactionGasCosts'; - fee?: string | null; - gasUsed?: string | null; - } | null; - groupedInputs: Array< - | { - __typename: 'GroupedInputCoin'; - type?: GQLGroupedInputType | null; - totalAmount?: string | null; - owner?: string | null; - assetId?: string | null; - inputs?: Array< - | { __typename: 'InputCoin'; amount: string; utxoId: string } - | { __typename: 'InputContract' } - | { __typename: 'InputMessage' } - > | null; - } - | { - __typename: 'GroupedInputContract'; - type?: GQLGroupedInputType | null; - contractId?: string | null; - } - | { - __typename: 'GroupedInputMessage'; - type?: GQLGroupedInputType | null; - sender?: string | null; - data?: string | null; - recipient?: string | null; - } - >; - groupedOutputs: Array< - | { - __typename: 'GroupedOutputChanged'; - type?: GQLGroupedOutputType | null; - assetId?: string | null; - totalAmount?: string | null; - to?: string | null; - outputs?: Array< - | { __typename: 'ChangeOutput' } - | { __typename: 'CoinOutput' } - | { __typename: 'ContractCreated' } - | { __typename: 'ContractOutput' } - | { __typename: 'VariableOutput' } - | null - > | null; - } - | { - __typename: 'GroupedOutputCoin'; - type?: GQLGroupedOutputType | null; - assetId?: string | null; - totalAmount?: string | null; - to?: string | null; - outputs?: Array< - | { __typename: 'ChangeOutput' } - | { __typename: 'CoinOutput' } - | { __typename: 'ContractCreated' } - | { __typename: 'ContractOutput' } - | { __typename: 'VariableOutput' } - | null - > | null; - } - | { - __typename: 'GroupedOutputContractCreated'; - type?: GQLGroupedOutputType | null; - contractId?: string | null; - } - >; - operations?: Array<{ - __typename: 'Operation'; - type?: GQLOperationType | null; - receipts?: Array<{ - __typename: 'OperationReceipt'; - receipts?: Array<{ - __typename: 'OperationReceipt'; - receipts?: Array<{ - __typename: 'OperationReceipt'; - receipts?: Array<{ - __typename: 'OperationReceipt'; - receipts?: Array<{ - __typename: 'OperationReceipt'; - receipts?: Array<{ - __typename: 'OperationReceipt'; - receipts?: Array<{ - __typename: 'OperationReceipt'; - receipts?: Array<{ - __typename: 'OperationReceipt'; - item?: { - __typename: 'Receipt'; - id?: string | null; - to?: string | null; - pc?: string | null; - is?: string | null; - toAddress?: string | null; - amount?: string | null; - assetId?: string | null; - gas?: string | null; - param1?: string | null; - param2?: string | null; - val?: string | null; - ptr?: string | null; - digest?: string | null; - reason?: string | null; - ra?: string | null; - rb?: string | null; - rc?: string | null; - rd?: string | null; - len?: string | null; - receiptType: GQLReceiptType; - result?: string | null; - gasUsed?: string | null; - data?: string | null; - sender?: string | null; - recipient?: string | null; - nonce?: string | null; - contractId?: string | null; - subId?: string | null; - } | null; - }> | null; - item?: { - __typename: 'Receipt'; - id?: string | null; - to?: string | null; - pc?: string | null; - is?: string | null; - toAddress?: string | null; - amount?: string | null; - assetId?: string | null; - gas?: string | null; - param1?: string | null; - param2?: string | null; - val?: string | null; - ptr?: string | null; - digest?: string | null; - reason?: string | null; - ra?: string | null; - rb?: string | null; - rc?: string | null; - rd?: string | null; - len?: string | null; - receiptType: GQLReceiptType; - result?: string | null; - gasUsed?: string | null; - data?: string | null; - sender?: string | null; - recipient?: string | null; - nonce?: string | null; - contractId?: string | null; - subId?: string | null; - } | null; - }> | null; - item?: { - __typename: 'Receipt'; - id?: string | null; - to?: string | null; - pc?: string | null; - is?: string | null; - toAddress?: string | null; - amount?: string | null; - assetId?: string | null; - gas?: string | null; - param1?: string | null; - param2?: string | null; - val?: string | null; - ptr?: string | null; - digest?: string | null; - reason?: string | null; - ra?: string | null; - rb?: string | null; - rc?: string | null; - rd?: string | null; - len?: string | null; - receiptType: GQLReceiptType; - result?: string | null; - gasUsed?: string | null; - data?: string | null; - sender?: string | null; - recipient?: string | null; - nonce?: string | null; - contractId?: string | null; - subId?: string | null; - } | null; - }> | null; - item?: { - __typename: 'Receipt'; - id?: string | null; - to?: string | null; - pc?: string | null; - is?: string | null; - toAddress?: string | null; - amount?: string | null; - assetId?: string | null; - gas?: string | null; - param1?: string | null; - param2?: string | null; - val?: string | null; - ptr?: string | null; - digest?: string | null; - reason?: string | null; - ra?: string | null; - rb?: string | null; - rc?: string | null; - rd?: string | null; - len?: string | null; - receiptType: GQLReceiptType; - result?: string | null; - gasUsed?: string | null; - data?: string | null; - sender?: string | null; - recipient?: string | null; - nonce?: string | null; - contractId?: string | null; - subId?: string | null; - } | null; - }> | null; - item?: { - __typename: 'Receipt'; - id?: string | null; - to?: string | null; - pc?: string | null; - is?: string | null; - toAddress?: string | null; - amount?: string | null; - assetId?: string | null; - gas?: string | null; - param1?: string | null; - param2?: string | null; - val?: string | null; - ptr?: string | null; - digest?: string | null; - reason?: string | null; - ra?: string | null; - rb?: string | null; - rc?: string | null; - rd?: string | null; - len?: string | null; - receiptType: GQLReceiptType; - result?: string | null; - gasUsed?: string | null; - data?: string | null; - sender?: string | null; - recipient?: string | null; - nonce?: string | null; - contractId?: string | null; - subId?: string | null; - } | null; - }> | null; - item?: { - __typename: 'Receipt'; - id?: string | null; - to?: string | null; - pc?: string | null; - is?: string | null; - toAddress?: string | null; - amount?: string | null; - assetId?: string | null; - gas?: string | null; - param1?: string | null; - param2?: string | null; - val?: string | null; - ptr?: string | null; - digest?: string | null; - reason?: string | null; - ra?: string | null; - rb?: string | null; - rc?: string | null; - rd?: string | null; - len?: string | null; - receiptType: GQLReceiptType; - result?: string | null; - gasUsed?: string | null; - data?: string | null; - sender?: string | null; - recipient?: string | null; - nonce?: string | null; - contractId?: string | null; - subId?: string | null; - } | null; - }> | null; - item?: { - __typename: 'Receipt'; - id?: string | null; - to?: string | null; - pc?: string | null; - is?: string | null; - toAddress?: string | null; - amount?: string | null; - assetId?: string | null; - gas?: string | null; - param1?: string | null; - param2?: string | null; - val?: string | null; - ptr?: string | null; - digest?: string | null; - reason?: string | null; - ra?: string | null; - rb?: string | null; - rc?: string | null; - rd?: string | null; - len?: string | null; - receiptType: GQLReceiptType; - result?: string | null; - gasUsed?: string | null; - data?: string | null; - sender?: string | null; - recipient?: string | null; - nonce?: string | null; - contractId?: string | null; - subId?: string | null; - } | null; - }> | null; - item?: { - __typename: 'Receipt'; - id?: string | null; - to?: string | null; - pc?: string | null; - is?: string | null; - toAddress?: string | null; - amount?: string | null; - assetId?: string | null; - gas?: string | null; - param1?: string | null; - param2?: string | null; - val?: string | null; - ptr?: string | null; - digest?: string | null; - reason?: string | null; - ra?: string | null; - rb?: string | null; - rc?: string | null; - rd?: string | null; - len?: string | null; - receiptType: GQLReceiptType; - result?: string | null; - gasUsed?: string | null; - data?: string | null; - sender?: string | null; - recipient?: string | null; - nonce?: string | null; - contractId?: string | null; - subId?: string | null; - } | null; - }> | null; - }> | null; - receipts?: Array<{ - __typename: 'Receipt'; - id?: string | null; - to?: string | null; - pc?: string | null; - is?: string | null; - toAddress?: string | null; - amount?: string | null; - assetId?: string | null; - gas?: string | null; - param1?: string | null; - param2?: string | null; - val?: string | null; - ptr?: string | null; - digest?: string | null; - reason?: string | null; - ra?: string | null; - rb?: string | null; - rc?: string | null; - rd?: string | null; - len?: string | null; - receiptType: GQLReceiptType; - result?: string | null; - gasUsed?: string | null; - data?: string | null; - sender?: string | null; - recipient?: string | null; - nonce?: string | null; - contractId?: string | null; - subId?: string | null; - }> | null; - time: { - __typename: 'ParsedTime'; - fromNow?: string | null; - full?: string | null; - rawUnix?: string | null; - }; - inputContract?: { __typename: 'InputContract'; contractId: string } | null; - outputContract?: { - __typename: 'ContractOutput'; - inputIndex: string; - } | null; - status?: - | { - __typename: 'FailureStatus'; - time: string; - programState?: { __typename: 'ProgramState'; data: string } | null; - } - | { __typename: 'SqueezedOutStatus'; reason: string } - | { __typename: 'SubmittedStatus'; time: string } - | { - __typename: 'SuccessStatus'; - time: string; - block: { - __typename: 'Block'; - id: string; - header: { - __typename: 'Header'; - id: string; - height: string; - daHeight: string; - applicationHash: string; - messageReceiptCount: string; - time: string; - }; - }; - programState?: { __typename: 'ProgramState'; data: string } | null; - } - | null; - inputs?: Array< - | { - __typename: 'InputCoin'; - amount: string; - assetId: string; - owner: string; - predicate: string; - predicateData: string; - txPointer: string; - utxoId: string; - witnessIndex: string; - } - | { - __typename: 'InputContract'; - utxoId: string; - balanceRoot: string; - txPointer: string; - contractId: string; - } - | { - __typename: 'InputMessage'; - sender: string; - recipient: string; - amount: string; - nonce: string; - data: string; - predicate: string; - predicateData: string; - } - > | null; - outputs: Array< - | { - __typename: 'ChangeOutput'; - to: string; - amount: string; - assetId: string; - } - | { - __typename: 'CoinOutput'; - to: string; - amount: string; - assetId: string; - } - | { __typename: 'ContractCreated'; contract: string } - | { - __typename: 'ContractOutput'; - inputIndex: string; - balanceRoot: string; - } - | { - __typename: 'VariableOutput'; - to: string; - amount: string; - assetId: string; - } - >; - } | null; -}; + +export type GQLTransactionDetailsQuery = { __typename: 'Query', transaction?: { __typename: 'Transaction', id: string, blockHeight?: string | null, hasPredicate?: boolean | null, statusType?: string | null, title: string, maturity?: string | null, txPointer?: string | null, isScript: boolean, isCreate: boolean, isMint: boolean, witnesses?: Array | null, receiptsRoot?: string | null, script?: string | null, scriptData?: string | null, bytecodeWitnessIndex?: string | null, salt?: string | null, storageSlots?: Array | null, rawPayload: string, mintAmount?: string | null, mintAssetId?: string | null, inputAssetIds?: Array | null, inputContracts?: Array | null, gasCosts?: { __typename: 'TransactionGasCosts', fee?: string | null, gasUsed?: string | null } | null, groupedInputs: Array<{ __typename: 'GroupedInputCoin', type?: GQLGroupedInputType | null, totalAmount?: string | null, owner?: string | null, assetId?: string | null, inputs?: Array<{ __typename: 'InputCoin', amount: string, utxoId: string } | { __typename: 'InputContract' } | { __typename: 'InputMessage' }> | null } | { __typename: 'GroupedInputContract', type?: GQLGroupedInputType | null, contractId?: string | null } | { __typename: 'GroupedInputMessage', type?: GQLGroupedInputType | null, sender?: string | null, data?: string | null, recipient?: string | null }>, groupedOutputs: Array<{ __typename: 'GroupedOutputChanged', type?: GQLGroupedOutputType | null, assetId?: string | null, totalAmount?: string | null, to?: string | null, outputs?: Array<{ __typename: 'ChangeOutput' } | { __typename: 'CoinOutput' } | { __typename: 'ContractCreated' } | { __typename: 'ContractOutput' } | { __typename: 'VariableOutput' } | null> | null } | { __typename: 'GroupedOutputCoin', type?: GQLGroupedOutputType | null, assetId?: string | null, totalAmount?: string | null, to?: string | null, outputs?: Array<{ __typename: 'ChangeOutput' } | { __typename: 'CoinOutput' } | { __typename: 'ContractCreated' } | { __typename: 'ContractOutput' } | { __typename: 'VariableOutput' } | null> | null } | { __typename: 'GroupedOutputContractCreated', type?: GQLGroupedOutputType | null, contractId?: string | null }>, operations?: Array<{ __typename: 'Operation', type?: GQLOperationType | null, receipts?: Array<{ __typename: 'OperationReceipt', receipts?: Array<{ __typename: 'OperationReceipt', receipts?: Array<{ __typename: 'OperationReceipt', receipts?: Array<{ __typename: 'OperationReceipt', receipts?: Array<{ __typename: 'OperationReceipt', receipts?: Array<{ __typename: 'OperationReceipt', receipts?: Array<{ __typename: 'OperationReceipt', receipts?: Array<{ __typename: 'OperationReceipt', item?: { __typename: 'Receipt', id?: string | null, to?: string | null, pc?: string | null, is?: string | null, toAddress?: string | null, amount?: string | null, assetId?: string | null, gas?: string | null, param1?: string | null, param2?: string | null, val?: string | null, ptr?: string | null, digest?: string | null, reason?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, len?: string | null, receiptType: GQLReceiptType, result?: string | null, gasUsed?: string | null, data?: string | null, sender?: string | null, recipient?: string | null, nonce?: string | null, contractId?: string | null, subId?: string | null } | null }> | null, item?: { __typename: 'Receipt', id?: string | null, to?: string | null, pc?: string | null, is?: string | null, toAddress?: string | null, amount?: string | null, assetId?: string | null, gas?: string | null, param1?: string | null, param2?: string | null, val?: string | null, ptr?: string | null, digest?: string | null, reason?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, len?: string | null, receiptType: GQLReceiptType, result?: string | null, gasUsed?: string | null, data?: string | null, sender?: string | null, recipient?: string | null, nonce?: string | null, contractId?: string | null, subId?: string | null } | null }> | null, item?: { __typename: 'Receipt', id?: string | null, to?: string | null, pc?: string | null, is?: string | null, toAddress?: string | null, amount?: string | null, assetId?: string | null, gas?: string | null, param1?: string | null, param2?: string | null, val?: string | null, ptr?: string | null, digest?: string | null, reason?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, len?: string | null, receiptType: GQLReceiptType, result?: string | null, gasUsed?: string | null, data?: string | null, sender?: string | null, recipient?: string | null, nonce?: string | null, contractId?: string | null, subId?: string | null } | null }> | null, item?: { __typename: 'Receipt', id?: string | null, to?: string | null, pc?: string | null, is?: string | null, toAddress?: string | null, amount?: string | null, assetId?: string | null, gas?: string | null, param1?: string | null, param2?: string | null, val?: string | null, ptr?: string | null, digest?: string | null, reason?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, len?: string | null, receiptType: GQLReceiptType, result?: string | null, gasUsed?: string | null, data?: string | null, sender?: string | null, recipient?: string | null, nonce?: string | null, contractId?: string | null, subId?: string | null } | null }> | null, item?: { __typename: 'Receipt', id?: string | null, to?: string | null, pc?: string | null, is?: string | null, toAddress?: string | null, amount?: string | null, assetId?: string | null, gas?: string | null, param1?: string | null, param2?: string | null, val?: string | null, ptr?: string | null, digest?: string | null, reason?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, len?: string | null, receiptType: GQLReceiptType, result?: string | null, gasUsed?: string | null, data?: string | null, sender?: string | null, recipient?: string | null, nonce?: string | null, contractId?: string | null, subId?: string | null } | null }> | null, item?: { __typename: 'Receipt', id?: string | null, to?: string | null, pc?: string | null, is?: string | null, toAddress?: string | null, amount?: string | null, assetId?: string | null, gas?: string | null, param1?: string | null, param2?: string | null, val?: string | null, ptr?: string | null, digest?: string | null, reason?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, len?: string | null, receiptType: GQLReceiptType, result?: string | null, gasUsed?: string | null, data?: string | null, sender?: string | null, recipient?: string | null, nonce?: string | null, contractId?: string | null, subId?: string | null } | null }> | null, item?: { __typename: 'Receipt', id?: string | null, to?: string | null, pc?: string | null, is?: string | null, toAddress?: string | null, amount?: string | null, assetId?: string | null, gas?: string | null, param1?: string | null, param2?: string | null, val?: string | null, ptr?: string | null, digest?: string | null, reason?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, len?: string | null, receiptType: GQLReceiptType, result?: string | null, gasUsed?: string | null, data?: string | null, sender?: string | null, recipient?: string | null, nonce?: string | null, contractId?: string | null, subId?: string | null } | null }> | null, item?: { __typename: 'Receipt', id?: string | null, to?: string | null, pc?: string | null, is?: string | null, toAddress?: string | null, amount?: string | null, assetId?: string | null, gas?: string | null, param1?: string | null, param2?: string | null, val?: string | null, ptr?: string | null, digest?: string | null, reason?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, len?: string | null, receiptType: GQLReceiptType, result?: string | null, gasUsed?: string | null, data?: string | null, sender?: string | null, recipient?: string | null, nonce?: string | null, contractId?: string | null, subId?: string | null } | null }> | null }> | null, receipts?: Array<{ __typename: 'Receipt', id?: string | null, to?: string | null, pc?: string | null, is?: string | null, toAddress?: string | null, amount?: string | null, assetId?: string | null, gas?: string | null, param1?: string | null, param2?: string | null, val?: string | null, ptr?: string | null, digest?: string | null, reason?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, len?: string | null, receiptType: GQLReceiptType, result?: string | null, gasUsed?: string | null, data?: string | null, sender?: string | null, recipient?: string | null, nonce?: string | null, contractId?: string | null, subId?: string | null }> | null, time: { __typename: 'ParsedTime', fromNow?: string | null, full?: string | null, rawUnix?: string | null }, inputContract?: { __typename: 'InputContract', contractId: string } | null, outputContract?: { __typename: 'ContractOutput', inputIndex: string } | null, status?: { __typename: 'FailureStatus', time: string, programState?: { __typename: 'ProgramState', data: string } | null } | { __typename: 'SqueezedOutStatus', reason: string } | { __typename: 'SubmittedStatus', time: string } | { __typename: 'SuccessStatus', time: string, block: { __typename: 'Block', id: string, header: { __typename: 'Header', id: string, height: string, daHeight: string, applicationHash: string, messageReceiptCount: string, time: string } }, programState?: { __typename: 'ProgramState', data: string } | null } | null, inputs?: Array<{ __typename: 'InputCoin', amount: string, assetId: string, owner: string, predicate: string, predicateData: string, txPointer: string, utxoId: string, witnessIndex: string } | { __typename: 'InputContract', utxoId: string, balanceRoot: string, txPointer: string, contractId: string } | { __typename: 'InputMessage', sender: string, recipient: string, amount: string, nonce: string, data: string, predicate: string, predicateData: string }> | null, outputs: Array<{ __typename: 'ChangeOutput', to: string, amount: string, assetId: string } | { __typename: 'CoinOutput', to: string, amount: string, assetId: string } | { __typename: 'ContractCreated', contract: string } | { __typename: 'ContractOutput', inputIndex: string, balanceRoot: string } | { __typename: 'VariableOutput', to: string, amount: string, assetId: string }> } | null }; export type GQLTransactionsByBlockIdQueryVariables = Exact<{ after?: InputMaybe; @@ -3354,35 +1591,8 @@ export type GQLTransactionsByBlockIdQueryVariables = Exact<{ blockId: Scalars['String']['input']; }>; -export type GQLTransactionsByBlockIdQuery = { - __typename: 'Query'; - transactionsByBlockId: { - __typename: 'TransactionConnection'; - nodes: Array<{ - __typename: 'Transaction'; - _id?: string | null; - id: string; - title: string; - statusType?: string | null; - time: { - __typename: 'ParsedTime'; - fromNow?: string | null; - rawUnix?: string | null; - }; - gasCosts?: { - __typename: 'TransactionGasCosts'; - fee?: string | null; - } | null; - }>; - pageInfo: { - __typename: 'PageInfo'; - endCursor?: string | null; - hasNextPage: boolean; - hasPreviousPage: boolean; - startCursor?: string | null; - }; - }; -}; + +export type GQLTransactionsByBlockIdQuery = { __typename: 'Query', transactionsByBlockId: { __typename: 'TransactionConnection', nodes: Array<{ __typename: 'Transaction', _id?: string | null, id: string, title: string, statusType?: string | null, time: { __typename: 'ParsedTime', fromNow?: string | null, rawUnix?: string | null }, gasCosts?: { __typename: 'TransactionGasCosts', fee?: string | null } | null }>, pageInfo: { __typename: 'PageInfo', endCursor?: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor?: string | null } } }; export type GQLTransactionsByOwnerQueryVariables = Exact<{ after?: InputMaybe; @@ -3392,1180 +1602,60 @@ export type GQLTransactionsByOwnerQueryVariables = Exact<{ owner: Scalars['Address']['input']; }>; -export type GQLTransactionsByOwnerQuery = { - __typename: 'Query'; - transactionsByOwner: { - __typename: 'TransactionConnection'; - nodes: Array<{ - __typename: 'Transaction'; - _id?: string | null; - id: string; - title: string; - statusType?: string | null; - time: { - __typename: 'ParsedTime'; - fromNow?: string | null; - rawUnix?: string | null; - }; - gasCosts?: { - __typename: 'TransactionGasCosts'; - fee?: string | null; - } | null; - }>; - pageInfo: { - __typename: 'PageInfo'; - endCursor?: string | null; - hasNextPage: boolean; - hasPreviousPage: boolean; - startCursor?: string | null; - }; - }; -}; -type GQLTransactionStatus_FailureStatus_Fragment = { - __typename: 'FailureStatus'; - time: string; - programState?: { __typename: 'ProgramState'; data: string } | null; -}; +export type GQLTransactionsByOwnerQuery = { __typename: 'Query', transactionsByOwner: { __typename: 'TransactionConnection', nodes: Array<{ __typename: 'Transaction', _id?: string | null, id: string, title: string, statusType?: string | null, time: { __typename: 'ParsedTime', fromNow?: string | null, rawUnix?: string | null }, gasCosts?: { __typename: 'TransactionGasCosts', fee?: string | null } | null }>, pageInfo: { __typename: 'PageInfo', endCursor?: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor?: string | null } } }; -type GQLTransactionStatus_SqueezedOutStatus_Fragment = { - __typename: 'SqueezedOutStatus'; - reason: string; -}; +type GQLTransactionStatus_FailureStatus_Fragment = { __typename: 'FailureStatus', time: string, programState?: { __typename: 'ProgramState', data: string } | null }; -type GQLTransactionStatus_SubmittedStatus_Fragment = { - __typename: 'SubmittedStatus'; - time: string; -}; +type GQLTransactionStatus_SqueezedOutStatus_Fragment = { __typename: 'SqueezedOutStatus', reason: string }; -type GQLTransactionStatus_SuccessStatus_Fragment = { - __typename: 'SuccessStatus'; - time: string; - block: { - __typename: 'Block'; - id: string; - header: { - __typename: 'Header'; - id: string; - height: string; - daHeight: string; - applicationHash: string; - messageReceiptCount: string; - time: string; - }; - }; - programState?: { __typename: 'ProgramState'; data: string } | null; -}; +type GQLTransactionStatus_SubmittedStatus_Fragment = { __typename: 'SubmittedStatus', time: string }; -export type GQLTransactionStatusFragment = - | GQLTransactionStatus_FailureStatus_Fragment - | GQLTransactionStatus_SqueezedOutStatus_Fragment - | GQLTransactionStatus_SubmittedStatus_Fragment - | GQLTransactionStatus_SuccessStatus_Fragment; +type GQLTransactionStatus_SuccessStatus_Fragment = { __typename: 'SuccessStatus', time: string, block: { __typename: 'Block', id: string, header: { __typename: 'Header', id: string, height: string, daHeight: string, applicationHash: string, messageReceiptCount: string, time: string } }, programState?: { __typename: 'ProgramState', data: string } | null }; -type GQLTransactionInput_InputCoin_Fragment = { - __typename: 'InputCoin'; - amount: string; - assetId: string; - owner: string; - predicate: string; - predicateData: string; - txPointer: string; - utxoId: string; - witnessIndex: string; -}; +export type GQLTransactionStatusFragment = GQLTransactionStatus_FailureStatus_Fragment | GQLTransactionStatus_SqueezedOutStatus_Fragment | GQLTransactionStatus_SubmittedStatus_Fragment | GQLTransactionStatus_SuccessStatus_Fragment; -type GQLTransactionInput_InputContract_Fragment = { - __typename: 'InputContract'; - utxoId: string; - balanceRoot: string; - txPointer: string; - contractId: string; -}; +type GQLTransactionInput_InputCoin_Fragment = { __typename: 'InputCoin', amount: string, assetId: string, owner: string, predicate: string, predicateData: string, txPointer: string, utxoId: string, witnessIndex: string }; -type GQLTransactionInput_InputMessage_Fragment = { - __typename: 'InputMessage'; - sender: string; - recipient: string; - amount: string; - nonce: string; - data: string; - predicate: string; - predicateData: string; -}; +type GQLTransactionInput_InputContract_Fragment = { __typename: 'InputContract', utxoId: string, balanceRoot: string, txPointer: string, contractId: string }; -export type GQLTransactionInputFragment = - | GQLTransactionInput_InputCoin_Fragment - | GQLTransactionInput_InputContract_Fragment - | GQLTransactionInput_InputMessage_Fragment; +type GQLTransactionInput_InputMessage_Fragment = { __typename: 'InputMessage', sender: string, recipient: string, amount: string, nonce: string, data: string, predicate: string, predicateData: string }; -type GQLTransactionOutput_ChangeOutput_Fragment = { - __typename: 'ChangeOutput'; - to: string; - amount: string; - assetId: string; -}; +export type GQLTransactionInputFragment = GQLTransactionInput_InputCoin_Fragment | GQLTransactionInput_InputContract_Fragment | GQLTransactionInput_InputMessage_Fragment; -type GQLTransactionOutput_CoinOutput_Fragment = { - __typename: 'CoinOutput'; - to: string; - amount: string; - assetId: string; -}; +type GQLTransactionOutput_ChangeOutput_Fragment = { __typename: 'ChangeOutput', to: string, amount: string, assetId: string }; -type GQLTransactionOutput_ContractCreated_Fragment = { - __typename: 'ContractCreated'; - contract: string; -}; +type GQLTransactionOutput_CoinOutput_Fragment = { __typename: 'CoinOutput', to: string, amount: string, assetId: string }; -type GQLTransactionOutput_ContractOutput_Fragment = { - __typename: 'ContractOutput'; - inputIndex: string; - balanceRoot: string; -}; +type GQLTransactionOutput_ContractCreated_Fragment = { __typename: 'ContractCreated', contract: string }; -type GQLTransactionOutput_VariableOutput_Fragment = { - __typename: 'VariableOutput'; - to: string; - amount: string; - assetId: string; -}; +type GQLTransactionOutput_ContractOutput_Fragment = { __typename: 'ContractOutput', inputIndex: string, balanceRoot: string }; -export type GQLTransactionOutputFragment = - | GQLTransactionOutput_ChangeOutput_Fragment - | GQLTransactionOutput_CoinOutput_Fragment - | GQLTransactionOutput_ContractCreated_Fragment - | GQLTransactionOutput_ContractOutput_Fragment - | GQLTransactionOutput_VariableOutput_Fragment; +type GQLTransactionOutput_VariableOutput_Fragment = { __typename: 'VariableOutput', to: string, amount: string, assetId: string }; -export type GQLTransactionReceiptFragment = { - __typename: 'Receipt'; - id?: string | null; - to?: string | null; - pc?: string | null; - is?: string | null; - toAddress?: string | null; - amount?: string | null; - assetId?: string | null; - gas?: string | null; - param1?: string | null; - param2?: string | null; - val?: string | null; - ptr?: string | null; - digest?: string | null; - reason?: string | null; - ra?: string | null; - rb?: string | null; - rc?: string | null; - rd?: string | null; - len?: string | null; - receiptType: GQLReceiptType; - result?: string | null; - gasUsed?: string | null; - data?: string | null; - sender?: string | null; - recipient?: string | null; - nonce?: string | null; - contractId?: string | null; - subId?: string | null; -}; +export type GQLTransactionOutputFragment = GQLTransactionOutput_ChangeOutput_Fragment | GQLTransactionOutput_CoinOutput_Fragment | GQLTransactionOutput_ContractCreated_Fragment | GQLTransactionOutput_ContractOutput_Fragment | GQLTransactionOutput_VariableOutput_Fragment; -export type GQLInnerReceiptItemFragment = { - __typename: 'OperationReceipt'; - item?: { - __typename: 'Receipt'; - id?: string | null; - to?: string | null; - pc?: string | null; - is?: string | null; - toAddress?: string | null; - amount?: string | null; - assetId?: string | null; - gas?: string | null; - param1?: string | null; - param2?: string | null; - val?: string | null; - ptr?: string | null; - digest?: string | null; - reason?: string | null; - ra?: string | null; - rb?: string | null; - rc?: string | null; - rd?: string | null; - len?: string | null; - receiptType: GQLReceiptType; - result?: string | null; - gasUsed?: string | null; - data?: string | null; - sender?: string | null; - recipient?: string | null; - nonce?: string | null; - contractId?: string | null; - subId?: string | null; - } | null; -}; - -export type GQLOperationReceiptItemFragment = { - __typename: 'OperationReceipt'; - receipts?: Array<{ - __typename: 'OperationReceipt'; - receipts?: Array<{ - __typename: 'OperationReceipt'; - receipts?: Array<{ - __typename: 'OperationReceipt'; - item?: { - __typename: 'Receipt'; - id?: string | null; - to?: string | null; - pc?: string | null; - is?: string | null; - toAddress?: string | null; - amount?: string | null; - assetId?: string | null; - gas?: string | null; - param1?: string | null; - param2?: string | null; - val?: string | null; - ptr?: string | null; - digest?: string | null; - reason?: string | null; - ra?: string | null; - rb?: string | null; - rc?: string | null; - rd?: string | null; - len?: string | null; - receiptType: GQLReceiptType; - result?: string | null; - gasUsed?: string | null; - data?: string | null; - sender?: string | null; - recipient?: string | null; - nonce?: string | null; - contractId?: string | null; - subId?: string | null; - } | null; - }> | null; - item?: { - __typename: 'Receipt'; - id?: string | null; - to?: string | null; - pc?: string | null; - is?: string | null; - toAddress?: string | null; - amount?: string | null; - assetId?: string | null; - gas?: string | null; - param1?: string | null; - param2?: string | null; - val?: string | null; - ptr?: string | null; - digest?: string | null; - reason?: string | null; - ra?: string | null; - rb?: string | null; - rc?: string | null; - rd?: string | null; - len?: string | null; - receiptType: GQLReceiptType; - result?: string | null; - gasUsed?: string | null; - data?: string | null; - sender?: string | null; - recipient?: string | null; - nonce?: string | null; - contractId?: string | null; - subId?: string | null; - } | null; - }> | null; - item?: { - __typename: 'Receipt'; - id?: string | null; - to?: string | null; - pc?: string | null; - is?: string | null; - toAddress?: string | null; - amount?: string | null; - assetId?: string | null; - gas?: string | null; - param1?: string | null; - param2?: string | null; - val?: string | null; - ptr?: string | null; - digest?: string | null; - reason?: string | null; - ra?: string | null; - rb?: string | null; - rc?: string | null; - rd?: string | null; - len?: string | null; - receiptType: GQLReceiptType; - result?: string | null; - gasUsed?: string | null; - data?: string | null; - sender?: string | null; - recipient?: string | null; - nonce?: string | null; - contractId?: string | null; - subId?: string | null; - } | null; - }> | null; - item?: { - __typename: 'Receipt'; - id?: string | null; - to?: string | null; - pc?: string | null; - is?: string | null; - toAddress?: string | null; - amount?: string | null; - assetId?: string | null; - gas?: string | null; - param1?: string | null; - param2?: string | null; - val?: string | null; - ptr?: string | null; - digest?: string | null; - reason?: string | null; - ra?: string | null; - rb?: string | null; - rc?: string | null; - rd?: string | null; - len?: string | null; - receiptType: GQLReceiptType; - result?: string | null; - gasUsed?: string | null; - data?: string | null; - sender?: string | null; - recipient?: string | null; - nonce?: string | null; - contractId?: string | null; - subId?: string | null; - } | null; -}; - -export type GQLOperationItemFragment = { - __typename: 'Operation'; - type?: GQLOperationType | null; - receipts?: Array<{ - __typename: 'OperationReceipt'; - receipts?: Array<{ - __typename: 'OperationReceipt'; - receipts?: Array<{ - __typename: 'OperationReceipt'; - receipts?: Array<{ - __typename: 'OperationReceipt'; - receipts?: Array<{ - __typename: 'OperationReceipt'; - receipts?: Array<{ - __typename: 'OperationReceipt'; - receipts?: Array<{ - __typename: 'OperationReceipt'; - receipts?: Array<{ - __typename: 'OperationReceipt'; - item?: { - __typename: 'Receipt'; - id?: string | null; - to?: string | null; - pc?: string | null; - is?: string | null; - toAddress?: string | null; - amount?: string | null; - assetId?: string | null; - gas?: string | null; - param1?: string | null; - param2?: string | null; - val?: string | null; - ptr?: string | null; - digest?: string | null; - reason?: string | null; - ra?: string | null; - rb?: string | null; - rc?: string | null; - rd?: string | null; - len?: string | null; - receiptType: GQLReceiptType; - result?: string | null; - gasUsed?: string | null; - data?: string | null; - sender?: string | null; - recipient?: string | null; - nonce?: string | null; - contractId?: string | null; - subId?: string | null; - } | null; - }> | null; - item?: { - __typename: 'Receipt'; - id?: string | null; - to?: string | null; - pc?: string | null; - is?: string | null; - toAddress?: string | null; - amount?: string | null; - assetId?: string | null; - gas?: string | null; - param1?: string | null; - param2?: string | null; - val?: string | null; - ptr?: string | null; - digest?: string | null; - reason?: string | null; - ra?: string | null; - rb?: string | null; - rc?: string | null; - rd?: string | null; - len?: string | null; - receiptType: GQLReceiptType; - result?: string | null; - gasUsed?: string | null; - data?: string | null; - sender?: string | null; - recipient?: string | null; - nonce?: string | null; - contractId?: string | null; - subId?: string | null; - } | null; - }> | null; - item?: { - __typename: 'Receipt'; - id?: string | null; - to?: string | null; - pc?: string | null; - is?: string | null; - toAddress?: string | null; - amount?: string | null; - assetId?: string | null; - gas?: string | null; - param1?: string | null; - param2?: string | null; - val?: string | null; - ptr?: string | null; - digest?: string | null; - reason?: string | null; - ra?: string | null; - rb?: string | null; - rc?: string | null; - rd?: string | null; - len?: string | null; - receiptType: GQLReceiptType; - result?: string | null; - gasUsed?: string | null; - data?: string | null; - sender?: string | null; - recipient?: string | null; - nonce?: string | null; - contractId?: string | null; - subId?: string | null; - } | null; - }> | null; - item?: { - __typename: 'Receipt'; - id?: string | null; - to?: string | null; - pc?: string | null; - is?: string | null; - toAddress?: string | null; - amount?: string | null; - assetId?: string | null; - gas?: string | null; - param1?: string | null; - param2?: string | null; - val?: string | null; - ptr?: string | null; - digest?: string | null; - reason?: string | null; - ra?: string | null; - rb?: string | null; - rc?: string | null; - rd?: string | null; - len?: string | null; - receiptType: GQLReceiptType; - result?: string | null; - gasUsed?: string | null; - data?: string | null; - sender?: string | null; - recipient?: string | null; - nonce?: string | null; - contractId?: string | null; - subId?: string | null; - } | null; - }> | null; - item?: { - __typename: 'Receipt'; - id?: string | null; - to?: string | null; - pc?: string | null; - is?: string | null; - toAddress?: string | null; - amount?: string | null; - assetId?: string | null; - gas?: string | null; - param1?: string | null; - param2?: string | null; - val?: string | null; - ptr?: string | null; - digest?: string | null; - reason?: string | null; - ra?: string | null; - rb?: string | null; - rc?: string | null; - rd?: string | null; - len?: string | null; - receiptType: GQLReceiptType; - result?: string | null; - gasUsed?: string | null; - data?: string | null; - sender?: string | null; - recipient?: string | null; - nonce?: string | null; - contractId?: string | null; - subId?: string | null; - } | null; - }> | null; - item?: { - __typename: 'Receipt'; - id?: string | null; - to?: string | null; - pc?: string | null; - is?: string | null; - toAddress?: string | null; - amount?: string | null; - assetId?: string | null; - gas?: string | null; - param1?: string | null; - param2?: string | null; - val?: string | null; - ptr?: string | null; - digest?: string | null; - reason?: string | null; - ra?: string | null; - rb?: string | null; - rc?: string | null; - rd?: string | null; - len?: string | null; - receiptType: GQLReceiptType; - result?: string | null; - gasUsed?: string | null; - data?: string | null; - sender?: string | null; - recipient?: string | null; - nonce?: string | null; - contractId?: string | null; - subId?: string | null; - } | null; - }> | null; - item?: { - __typename: 'Receipt'; - id?: string | null; - to?: string | null; - pc?: string | null; - is?: string | null; - toAddress?: string | null; - amount?: string | null; - assetId?: string | null; - gas?: string | null; - param1?: string | null; - param2?: string | null; - val?: string | null; - ptr?: string | null; - digest?: string | null; - reason?: string | null; - ra?: string | null; - rb?: string | null; - rc?: string | null; - rd?: string | null; - len?: string | null; - receiptType: GQLReceiptType; - result?: string | null; - gasUsed?: string | null; - data?: string | null; - sender?: string | null; - recipient?: string | null; - nonce?: string | null; - contractId?: string | null; - subId?: string | null; - } | null; - }> | null; - item?: { - __typename: 'Receipt'; - id?: string | null; - to?: string | null; - pc?: string | null; - is?: string | null; - toAddress?: string | null; - amount?: string | null; - assetId?: string | null; - gas?: string | null; - param1?: string | null; - param2?: string | null; - val?: string | null; - ptr?: string | null; - digest?: string | null; - reason?: string | null; - ra?: string | null; - rb?: string | null; - rc?: string | null; - rd?: string | null; - len?: string | null; - receiptType: GQLReceiptType; - result?: string | null; - gasUsed?: string | null; - data?: string | null; - sender?: string | null; - recipient?: string | null; - nonce?: string | null; - contractId?: string | null; - subId?: string | null; - } | null; - }> | null; -}; - -export type GQLTxDetailsGroupedInputCoinFragment = { - __typename: 'GroupedInputCoin'; - type?: GQLGroupedInputType | null; - totalAmount?: string | null; - owner?: string | null; - assetId?: string | null; - inputs?: Array< - | { __typename: 'InputCoin'; amount: string; utxoId: string } - | { __typename: 'InputContract' } - | { __typename: 'InputMessage' } - > | null; -}; - -export type GQLTxDetailsGroupedInputMessageFragment = { - __typename: 'GroupedInputMessage'; - type?: GQLGroupedInputType | null; - sender?: string | null; - data?: string | null; - recipient?: string | null; -}; +export type GQLTransactionReceiptFragment = { __typename: 'Receipt', id?: string | null, to?: string | null, pc?: string | null, is?: string | null, toAddress?: string | null, amount?: string | null, assetId?: string | null, gas?: string | null, param1?: string | null, param2?: string | null, val?: string | null, ptr?: string | null, digest?: string | null, reason?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, len?: string | null, receiptType: GQLReceiptType, result?: string | null, gasUsed?: string | null, data?: string | null, sender?: string | null, recipient?: string | null, nonce?: string | null, contractId?: string | null, subId?: string | null }; -export type GQLTxDetailsGroupedInputContractFragment = { - __typename: 'GroupedInputContract'; - type?: GQLGroupedInputType | null; - contractId?: string | null; -}; +export type GQLInnerReceiptItemFragment = { __typename: 'OperationReceipt', item?: { __typename: 'Receipt', id?: string | null, to?: string | null, pc?: string | null, is?: string | null, toAddress?: string | null, amount?: string | null, assetId?: string | null, gas?: string | null, param1?: string | null, param2?: string | null, val?: string | null, ptr?: string | null, digest?: string | null, reason?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, len?: string | null, receiptType: GQLReceiptType, result?: string | null, gasUsed?: string | null, data?: string | null, sender?: string | null, recipient?: string | null, nonce?: string | null, contractId?: string | null, subId?: string | null } | null }; -export type GQLTxDetailsGroupedOutputCoinFragment = { - __typename: 'GroupedOutputCoin'; - type?: GQLGroupedOutputType | null; - assetId?: string | null; - totalAmount?: string | null; - to?: string | null; - outputs?: Array< - | { __typename: 'ChangeOutput' } - | { __typename: 'CoinOutput' } - | { __typename: 'ContractCreated' } - | { __typename: 'ContractOutput' } - | { __typename: 'VariableOutput' } - | null - > | null; -}; - -export type GQLTxDetailsGroupedOutputChangedFragment = { - __typename: 'GroupedOutputChanged'; - type?: GQLGroupedOutputType | null; - assetId?: string | null; - totalAmount?: string | null; - to?: string | null; - outputs?: Array< - | { __typename: 'ChangeOutput' } - | { __typename: 'CoinOutput' } - | { __typename: 'ContractCreated' } - | { __typename: 'ContractOutput' } - | { __typename: 'VariableOutput' } - | null - > | null; -}; - -export type GQLTxDetailsGroupedOutputContractCreatedFragment = { - __typename: 'GroupedOutputContractCreated'; - type?: GQLGroupedOutputType | null; - contractId?: string | null; -}; +export type GQLOperationReceiptItemFragment = { __typename: 'OperationReceipt', receipts?: Array<{ __typename: 'OperationReceipt', receipts?: Array<{ __typename: 'OperationReceipt', receipts?: Array<{ __typename: 'OperationReceipt', item?: { __typename: 'Receipt', id?: string | null, to?: string | null, pc?: string | null, is?: string | null, toAddress?: string | null, amount?: string | null, assetId?: string | null, gas?: string | null, param1?: string | null, param2?: string | null, val?: string | null, ptr?: string | null, digest?: string | null, reason?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, len?: string | null, receiptType: GQLReceiptType, result?: string | null, gasUsed?: string | null, data?: string | null, sender?: string | null, recipient?: string | null, nonce?: string | null, contractId?: string | null, subId?: string | null } | null }> | null, item?: { __typename: 'Receipt', id?: string | null, to?: string | null, pc?: string | null, is?: string | null, toAddress?: string | null, amount?: string | null, assetId?: string | null, gas?: string | null, param1?: string | null, param2?: string | null, val?: string | null, ptr?: string | null, digest?: string | null, reason?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, len?: string | null, receiptType: GQLReceiptType, result?: string | null, gasUsed?: string | null, data?: string | null, sender?: string | null, recipient?: string | null, nonce?: string | null, contractId?: string | null, subId?: string | null } | null }> | null, item?: { __typename: 'Receipt', id?: string | null, to?: string | null, pc?: string | null, is?: string | null, toAddress?: string | null, amount?: string | null, assetId?: string | null, gas?: string | null, param1?: string | null, param2?: string | null, val?: string | null, ptr?: string | null, digest?: string | null, reason?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, len?: string | null, receiptType: GQLReceiptType, result?: string | null, gasUsed?: string | null, data?: string | null, sender?: string | null, recipient?: string | null, nonce?: string | null, contractId?: string | null, subId?: string | null } | null }> | null, item?: { __typename: 'Receipt', id?: string | null, to?: string | null, pc?: string | null, is?: string | null, toAddress?: string | null, amount?: string | null, assetId?: string | null, gas?: string | null, param1?: string | null, param2?: string | null, val?: string | null, ptr?: string | null, digest?: string | null, reason?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, len?: string | null, receiptType: GQLReceiptType, result?: string | null, gasUsed?: string | null, data?: string | null, sender?: string | null, recipient?: string | null, nonce?: string | null, contractId?: string | null, subId?: string | null } | null }; -export type GQLTransactionItemFragment = { - __typename: 'Transaction'; - id: string; - blockHeight?: string | null; - hasPredicate?: boolean | null; - statusType?: string | null; - title: string; - maturity?: string | null; - txPointer?: string | null; - isScript: boolean; - isCreate: boolean; - isMint: boolean; - witnesses?: Array | null; - receiptsRoot?: string | null; - script?: string | null; - scriptData?: string | null; - bytecodeWitnessIndex?: string | null; - salt?: string | null; - storageSlots?: Array | null; - rawPayload: string; - mintAmount?: string | null; - mintAssetId?: string | null; - inputAssetIds?: Array | null; - inputContracts?: Array | null; - gasCosts?: { - __typename: 'TransactionGasCosts'; - fee?: string | null; - gasUsed?: string | null; - } | null; - groupedInputs: Array< - | { - __typename: 'GroupedInputCoin'; - type?: GQLGroupedInputType | null; - totalAmount?: string | null; - owner?: string | null; - assetId?: string | null; - inputs?: Array< - | { __typename: 'InputCoin'; amount: string; utxoId: string } - | { __typename: 'InputContract' } - | { __typename: 'InputMessage' } - > | null; - } - | { - __typename: 'GroupedInputContract'; - type?: GQLGroupedInputType | null; - contractId?: string | null; - } - | { - __typename: 'GroupedInputMessage'; - type?: GQLGroupedInputType | null; - sender?: string | null; - data?: string | null; - recipient?: string | null; - } - >; - groupedOutputs: Array< - | { - __typename: 'GroupedOutputChanged'; - type?: GQLGroupedOutputType | null; - assetId?: string | null; - totalAmount?: string | null; - to?: string | null; - outputs?: Array< - | { __typename: 'ChangeOutput' } - | { __typename: 'CoinOutput' } - | { __typename: 'ContractCreated' } - | { __typename: 'ContractOutput' } - | { __typename: 'VariableOutput' } - | null - > | null; - } - | { - __typename: 'GroupedOutputCoin'; - type?: GQLGroupedOutputType | null; - assetId?: string | null; - totalAmount?: string | null; - to?: string | null; - outputs?: Array< - | { __typename: 'ChangeOutput' } - | { __typename: 'CoinOutput' } - | { __typename: 'ContractCreated' } - | { __typename: 'ContractOutput' } - | { __typename: 'VariableOutput' } - | null - > | null; - } - | { - __typename: 'GroupedOutputContractCreated'; - type?: GQLGroupedOutputType | null; - contractId?: string | null; - } - >; - operations?: Array<{ - __typename: 'Operation'; - type?: GQLOperationType | null; - receipts?: Array<{ - __typename: 'OperationReceipt'; - receipts?: Array<{ - __typename: 'OperationReceipt'; - receipts?: Array<{ - __typename: 'OperationReceipt'; - receipts?: Array<{ - __typename: 'OperationReceipt'; - receipts?: Array<{ - __typename: 'OperationReceipt'; - receipts?: Array<{ - __typename: 'OperationReceipt'; - receipts?: Array<{ - __typename: 'OperationReceipt'; - receipts?: Array<{ - __typename: 'OperationReceipt'; - item?: { - __typename: 'Receipt'; - id?: string | null; - to?: string | null; - pc?: string | null; - is?: string | null; - toAddress?: string | null; - amount?: string | null; - assetId?: string | null; - gas?: string | null; - param1?: string | null; - param2?: string | null; - val?: string | null; - ptr?: string | null; - digest?: string | null; - reason?: string | null; - ra?: string | null; - rb?: string | null; - rc?: string | null; - rd?: string | null; - len?: string | null; - receiptType: GQLReceiptType; - result?: string | null; - gasUsed?: string | null; - data?: string | null; - sender?: string | null; - recipient?: string | null; - nonce?: string | null; - contractId?: string | null; - subId?: string | null; - } | null; - }> | null; - item?: { - __typename: 'Receipt'; - id?: string | null; - to?: string | null; - pc?: string | null; - is?: string | null; - toAddress?: string | null; - amount?: string | null; - assetId?: string | null; - gas?: string | null; - param1?: string | null; - param2?: string | null; - val?: string | null; - ptr?: string | null; - digest?: string | null; - reason?: string | null; - ra?: string | null; - rb?: string | null; - rc?: string | null; - rd?: string | null; - len?: string | null; - receiptType: GQLReceiptType; - result?: string | null; - gasUsed?: string | null; - data?: string | null; - sender?: string | null; - recipient?: string | null; - nonce?: string | null; - contractId?: string | null; - subId?: string | null; - } | null; - }> | null; - item?: { - __typename: 'Receipt'; - id?: string | null; - to?: string | null; - pc?: string | null; - is?: string | null; - toAddress?: string | null; - amount?: string | null; - assetId?: string | null; - gas?: string | null; - param1?: string | null; - param2?: string | null; - val?: string | null; - ptr?: string | null; - digest?: string | null; - reason?: string | null; - ra?: string | null; - rb?: string | null; - rc?: string | null; - rd?: string | null; - len?: string | null; - receiptType: GQLReceiptType; - result?: string | null; - gasUsed?: string | null; - data?: string | null; - sender?: string | null; - recipient?: string | null; - nonce?: string | null; - contractId?: string | null; - subId?: string | null; - } | null; - }> | null; - item?: { - __typename: 'Receipt'; - id?: string | null; - to?: string | null; - pc?: string | null; - is?: string | null; - toAddress?: string | null; - amount?: string | null; - assetId?: string | null; - gas?: string | null; - param1?: string | null; - param2?: string | null; - val?: string | null; - ptr?: string | null; - digest?: string | null; - reason?: string | null; - ra?: string | null; - rb?: string | null; - rc?: string | null; - rd?: string | null; - len?: string | null; - receiptType: GQLReceiptType; - result?: string | null; - gasUsed?: string | null; - data?: string | null; - sender?: string | null; - recipient?: string | null; - nonce?: string | null; - contractId?: string | null; - subId?: string | null; - } | null; - }> | null; - item?: { - __typename: 'Receipt'; - id?: string | null; - to?: string | null; - pc?: string | null; - is?: string | null; - toAddress?: string | null; - amount?: string | null; - assetId?: string | null; - gas?: string | null; - param1?: string | null; - param2?: string | null; - val?: string | null; - ptr?: string | null; - digest?: string | null; - reason?: string | null; - ra?: string | null; - rb?: string | null; - rc?: string | null; - rd?: string | null; - len?: string | null; - receiptType: GQLReceiptType; - result?: string | null; - gasUsed?: string | null; - data?: string | null; - sender?: string | null; - recipient?: string | null; - nonce?: string | null; - contractId?: string | null; - subId?: string | null; - } | null; - }> | null; - item?: { - __typename: 'Receipt'; - id?: string | null; - to?: string | null; - pc?: string | null; - is?: string | null; - toAddress?: string | null; - amount?: string | null; - assetId?: string | null; - gas?: string | null; - param1?: string | null; - param2?: string | null; - val?: string | null; - ptr?: string | null; - digest?: string | null; - reason?: string | null; - ra?: string | null; - rb?: string | null; - rc?: string | null; - rd?: string | null; - len?: string | null; - receiptType: GQLReceiptType; - result?: string | null; - gasUsed?: string | null; - data?: string | null; - sender?: string | null; - recipient?: string | null; - nonce?: string | null; - contractId?: string | null; - subId?: string | null; - } | null; - }> | null; - item?: { - __typename: 'Receipt'; - id?: string | null; - to?: string | null; - pc?: string | null; - is?: string | null; - toAddress?: string | null; - amount?: string | null; - assetId?: string | null; - gas?: string | null; - param1?: string | null; - param2?: string | null; - val?: string | null; - ptr?: string | null; - digest?: string | null; - reason?: string | null; - ra?: string | null; - rb?: string | null; - rc?: string | null; - rd?: string | null; - len?: string | null; - receiptType: GQLReceiptType; - result?: string | null; - gasUsed?: string | null; - data?: string | null; - sender?: string | null; - recipient?: string | null; - nonce?: string | null; - contractId?: string | null; - subId?: string | null; - } | null; - }> | null; - item?: { - __typename: 'Receipt'; - id?: string | null; - to?: string | null; - pc?: string | null; - is?: string | null; - toAddress?: string | null; - amount?: string | null; - assetId?: string | null; - gas?: string | null; - param1?: string | null; - param2?: string | null; - val?: string | null; - ptr?: string | null; - digest?: string | null; - reason?: string | null; - ra?: string | null; - rb?: string | null; - rc?: string | null; - rd?: string | null; - len?: string | null; - receiptType: GQLReceiptType; - result?: string | null; - gasUsed?: string | null; - data?: string | null; - sender?: string | null; - recipient?: string | null; - nonce?: string | null; - contractId?: string | null; - subId?: string | null; - } | null; - }> | null; - }> | null; - receipts?: Array<{ - __typename: 'Receipt'; - id?: string | null; - to?: string | null; - pc?: string | null; - is?: string | null; - toAddress?: string | null; - amount?: string | null; - assetId?: string | null; - gas?: string | null; - param1?: string | null; - param2?: string | null; - val?: string | null; - ptr?: string | null; - digest?: string | null; - reason?: string | null; - ra?: string | null; - rb?: string | null; - rc?: string | null; - rd?: string | null; - len?: string | null; - receiptType: GQLReceiptType; - result?: string | null; - gasUsed?: string | null; - data?: string | null; - sender?: string | null; - recipient?: string | null; - nonce?: string | null; - contractId?: string | null; - subId?: string | null; - }> | null; - time: { - __typename: 'ParsedTime'; - fromNow?: string | null; - full?: string | null; - rawUnix?: string | null; - }; - inputContract?: { __typename: 'InputContract'; contractId: string } | null; - outputContract?: { __typename: 'ContractOutput'; inputIndex: string } | null; - status?: - | { - __typename: 'FailureStatus'; - time: string; - programState?: { __typename: 'ProgramState'; data: string } | null; - } - | { __typename: 'SqueezedOutStatus'; reason: string } - | { __typename: 'SubmittedStatus'; time: string } - | { - __typename: 'SuccessStatus'; - time: string; - block: { - __typename: 'Block'; - id: string; - header: { - __typename: 'Header'; - id: string; - height: string; - daHeight: string; - applicationHash: string; - messageReceiptCount: string; - time: string; - }; - }; - programState?: { __typename: 'ProgramState'; data: string } | null; - } - | null; - inputs?: Array< - | { - __typename: 'InputCoin'; - amount: string; - assetId: string; - owner: string; - predicate: string; - predicateData: string; - txPointer: string; - utxoId: string; - witnessIndex: string; - } - | { - __typename: 'InputContract'; - utxoId: string; - balanceRoot: string; - txPointer: string; - contractId: string; - } - | { - __typename: 'InputMessage'; - sender: string; - recipient: string; - amount: string; - nonce: string; - data: string; - predicate: string; - predicateData: string; - } - > | null; - outputs: Array< - | { - __typename: 'ChangeOutput'; - to: string; - amount: string; - assetId: string; - } - | { __typename: 'CoinOutput'; to: string; amount: string; assetId: string } - | { __typename: 'ContractCreated'; contract: string } - | { __typename: 'ContractOutput'; inputIndex: string; balanceRoot: string } - | { - __typename: 'VariableOutput'; - to: string; - amount: string; - assetId: string; - } - >; -}; +export type GQLOperationItemFragment = { __typename: 'Operation', type?: GQLOperationType | null, receipts?: Array<{ __typename: 'OperationReceipt', receipts?: Array<{ __typename: 'OperationReceipt', receipts?: Array<{ __typename: 'OperationReceipt', receipts?: Array<{ __typename: 'OperationReceipt', receipts?: Array<{ __typename: 'OperationReceipt', receipts?: Array<{ __typename: 'OperationReceipt', receipts?: Array<{ __typename: 'OperationReceipt', receipts?: Array<{ __typename: 'OperationReceipt', item?: { __typename: 'Receipt', id?: string | null, to?: string | null, pc?: string | null, is?: string | null, toAddress?: string | null, amount?: string | null, assetId?: string | null, gas?: string | null, param1?: string | null, param2?: string | null, val?: string | null, ptr?: string | null, digest?: string | null, reason?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, len?: string | null, receiptType: GQLReceiptType, result?: string | null, gasUsed?: string | null, data?: string | null, sender?: string | null, recipient?: string | null, nonce?: string | null, contractId?: string | null, subId?: string | null } | null }> | null, item?: { __typename: 'Receipt', id?: string | null, to?: string | null, pc?: string | null, is?: string | null, toAddress?: string | null, amount?: string | null, assetId?: string | null, gas?: string | null, param1?: string | null, param2?: string | null, val?: string | null, ptr?: string | null, digest?: string | null, reason?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, len?: string | null, receiptType: GQLReceiptType, result?: string | null, gasUsed?: string | null, data?: string | null, sender?: string | null, recipient?: string | null, nonce?: string | null, contractId?: string | null, subId?: string | null } | null }> | null, item?: { __typename: 'Receipt', id?: string | null, to?: string | null, pc?: string | null, is?: string | null, toAddress?: string | null, amount?: string | null, assetId?: string | null, gas?: string | null, param1?: string | null, param2?: string | null, val?: string | null, ptr?: string | null, digest?: string | null, reason?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, len?: string | null, receiptType: GQLReceiptType, result?: string | null, gasUsed?: string | null, data?: string | null, sender?: string | null, recipient?: string | null, nonce?: string | null, contractId?: string | null, subId?: string | null } | null }> | null, item?: { __typename: 'Receipt', id?: string | null, to?: string | null, pc?: string | null, is?: string | null, toAddress?: string | null, amount?: string | null, assetId?: string | null, gas?: string | null, param1?: string | null, param2?: string | null, val?: string | null, ptr?: string | null, digest?: string | null, reason?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, len?: string | null, receiptType: GQLReceiptType, result?: string | null, gasUsed?: string | null, data?: string | null, sender?: string | null, recipient?: string | null, nonce?: string | null, contractId?: string | null, subId?: string | null } | null }> | null, item?: { __typename: 'Receipt', id?: string | null, to?: string | null, pc?: string | null, is?: string | null, toAddress?: string | null, amount?: string | null, assetId?: string | null, gas?: string | null, param1?: string | null, param2?: string | null, val?: string | null, ptr?: string | null, digest?: string | null, reason?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, len?: string | null, receiptType: GQLReceiptType, result?: string | null, gasUsed?: string | null, data?: string | null, sender?: string | null, recipient?: string | null, nonce?: string | null, contractId?: string | null, subId?: string | null } | null }> | null, item?: { __typename: 'Receipt', id?: string | null, to?: string | null, pc?: string | null, is?: string | null, toAddress?: string | null, amount?: string | null, assetId?: string | null, gas?: string | null, param1?: string | null, param2?: string | null, val?: string | null, ptr?: string | null, digest?: string | null, reason?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, len?: string | null, receiptType: GQLReceiptType, result?: string | null, gasUsed?: string | null, data?: string | null, sender?: string | null, recipient?: string | null, nonce?: string | null, contractId?: string | null, subId?: string | null } | null }> | null, item?: { __typename: 'Receipt', id?: string | null, to?: string | null, pc?: string | null, is?: string | null, toAddress?: string | null, amount?: string | null, assetId?: string | null, gas?: string | null, param1?: string | null, param2?: string | null, val?: string | null, ptr?: string | null, digest?: string | null, reason?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, len?: string | null, receiptType: GQLReceiptType, result?: string | null, gasUsed?: string | null, data?: string | null, sender?: string | null, recipient?: string | null, nonce?: string | null, contractId?: string | null, subId?: string | null } | null }> | null, item?: { __typename: 'Receipt', id?: string | null, to?: string | null, pc?: string | null, is?: string | null, toAddress?: string | null, amount?: string | null, assetId?: string | null, gas?: string | null, param1?: string | null, param2?: string | null, val?: string | null, ptr?: string | null, digest?: string | null, reason?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, len?: string | null, receiptType: GQLReceiptType, result?: string | null, gasUsed?: string | null, data?: string | null, sender?: string | null, recipient?: string | null, nonce?: string | null, contractId?: string | null, subId?: string | null } | null }> | null }; + +export type GQLTxDetailsGroupedInputCoinFragment = { __typename: 'GroupedInputCoin', type?: GQLGroupedInputType | null, totalAmount?: string | null, owner?: string | null, assetId?: string | null, inputs?: Array<{ __typename: 'InputCoin', amount: string, utxoId: string } | { __typename: 'InputContract' } | { __typename: 'InputMessage' }> | null }; + +export type GQLTxDetailsGroupedInputMessageFragment = { __typename: 'GroupedInputMessage', type?: GQLGroupedInputType | null, sender?: string | null, data?: string | null, recipient?: string | null }; + +export type GQLTxDetailsGroupedInputContractFragment = { __typename: 'GroupedInputContract', type?: GQLGroupedInputType | null, contractId?: string | null }; + +export type GQLTxDetailsGroupedOutputCoinFragment = { __typename: 'GroupedOutputCoin', type?: GQLGroupedOutputType | null, assetId?: string | null, totalAmount?: string | null, to?: string | null, outputs?: Array<{ __typename: 'ChangeOutput' } | { __typename: 'CoinOutput' } | { __typename: 'ContractCreated' } | { __typename: 'ContractOutput' } | { __typename: 'VariableOutput' } | null> | null }; + +export type GQLTxDetailsGroupedOutputChangedFragment = { __typename: 'GroupedOutputChanged', type?: GQLGroupedOutputType | null, assetId?: string | null, totalAmount?: string | null, to?: string | null, outputs?: Array<{ __typename: 'ChangeOutput' } | { __typename: 'CoinOutput' } | { __typename: 'ContractCreated' } | { __typename: 'ContractOutput' } | { __typename: 'VariableOutput' } | null> | null }; + +export type GQLTxDetailsGroupedOutputContractCreatedFragment = { __typename: 'GroupedOutputContractCreated', type?: GQLGroupedOutputType | null, contractId?: string | null }; + +export type GQLTransactionItemFragment = { __typename: 'Transaction', id: string, blockHeight?: string | null, hasPredicate?: boolean | null, statusType?: string | null, title: string, maturity?: string | null, txPointer?: string | null, isScript: boolean, isCreate: boolean, isMint: boolean, witnesses?: Array | null, receiptsRoot?: string | null, script?: string | null, scriptData?: string | null, bytecodeWitnessIndex?: string | null, salt?: string | null, storageSlots?: Array | null, rawPayload: string, mintAmount?: string | null, mintAssetId?: string | null, inputAssetIds?: Array | null, inputContracts?: Array | null, gasCosts?: { __typename: 'TransactionGasCosts', fee?: string | null, gasUsed?: string | null } | null, groupedInputs: Array<{ __typename: 'GroupedInputCoin', type?: GQLGroupedInputType | null, totalAmount?: string | null, owner?: string | null, assetId?: string | null, inputs?: Array<{ __typename: 'InputCoin', amount: string, utxoId: string } | { __typename: 'InputContract' } | { __typename: 'InputMessage' }> | null } | { __typename: 'GroupedInputContract', type?: GQLGroupedInputType | null, contractId?: string | null } | { __typename: 'GroupedInputMessage', type?: GQLGroupedInputType | null, sender?: string | null, data?: string | null, recipient?: string | null }>, groupedOutputs: Array<{ __typename: 'GroupedOutputChanged', type?: GQLGroupedOutputType | null, assetId?: string | null, totalAmount?: string | null, to?: string | null, outputs?: Array<{ __typename: 'ChangeOutput' } | { __typename: 'CoinOutput' } | { __typename: 'ContractCreated' } | { __typename: 'ContractOutput' } | { __typename: 'VariableOutput' } | null> | null } | { __typename: 'GroupedOutputCoin', type?: GQLGroupedOutputType | null, assetId?: string | null, totalAmount?: string | null, to?: string | null, outputs?: Array<{ __typename: 'ChangeOutput' } | { __typename: 'CoinOutput' } | { __typename: 'ContractCreated' } | { __typename: 'ContractOutput' } | { __typename: 'VariableOutput' } | null> | null } | { __typename: 'GroupedOutputContractCreated', type?: GQLGroupedOutputType | null, contractId?: string | null }>, operations?: Array<{ __typename: 'Operation', type?: GQLOperationType | null, receipts?: Array<{ __typename: 'OperationReceipt', receipts?: Array<{ __typename: 'OperationReceipt', receipts?: Array<{ __typename: 'OperationReceipt', receipts?: Array<{ __typename: 'OperationReceipt', receipts?: Array<{ __typename: 'OperationReceipt', receipts?: Array<{ __typename: 'OperationReceipt', receipts?: Array<{ __typename: 'OperationReceipt', receipts?: Array<{ __typename: 'OperationReceipt', item?: { __typename: 'Receipt', id?: string | null, to?: string | null, pc?: string | null, is?: string | null, toAddress?: string | null, amount?: string | null, assetId?: string | null, gas?: string | null, param1?: string | null, param2?: string | null, val?: string | null, ptr?: string | null, digest?: string | null, reason?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, len?: string | null, receiptType: GQLReceiptType, result?: string | null, gasUsed?: string | null, data?: string | null, sender?: string | null, recipient?: string | null, nonce?: string | null, contractId?: string | null, subId?: string | null } | null }> | null, item?: { __typename: 'Receipt', id?: string | null, to?: string | null, pc?: string | null, is?: string | null, toAddress?: string | null, amount?: string | null, assetId?: string | null, gas?: string | null, param1?: string | null, param2?: string | null, val?: string | null, ptr?: string | null, digest?: string | null, reason?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, len?: string | null, receiptType: GQLReceiptType, result?: string | null, gasUsed?: string | null, data?: string | null, sender?: string | null, recipient?: string | null, nonce?: string | null, contractId?: string | null, subId?: string | null } | null }> | null, item?: { __typename: 'Receipt', id?: string | null, to?: string | null, pc?: string | null, is?: string | null, toAddress?: string | null, amount?: string | null, assetId?: string | null, gas?: string | null, param1?: string | null, param2?: string | null, val?: string | null, ptr?: string | null, digest?: string | null, reason?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, len?: string | null, receiptType: GQLReceiptType, result?: string | null, gasUsed?: string | null, data?: string | null, sender?: string | null, recipient?: string | null, nonce?: string | null, contractId?: string | null, subId?: string | null } | null }> | null, item?: { __typename: 'Receipt', id?: string | null, to?: string | null, pc?: string | null, is?: string | null, toAddress?: string | null, amount?: string | null, assetId?: string | null, gas?: string | null, param1?: string | null, param2?: string | null, val?: string | null, ptr?: string | null, digest?: string | null, reason?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, len?: string | null, receiptType: GQLReceiptType, result?: string | null, gasUsed?: string | null, data?: string | null, sender?: string | null, recipient?: string | null, nonce?: string | null, contractId?: string | null, subId?: string | null } | null }> | null, item?: { __typename: 'Receipt', id?: string | null, to?: string | null, pc?: string | null, is?: string | null, toAddress?: string | null, amount?: string | null, assetId?: string | null, gas?: string | null, param1?: string | null, param2?: string | null, val?: string | null, ptr?: string | null, digest?: string | null, reason?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, len?: string | null, receiptType: GQLReceiptType, result?: string | null, gasUsed?: string | null, data?: string | null, sender?: string | null, recipient?: string | null, nonce?: string | null, contractId?: string | null, subId?: string | null } | null }> | null, item?: { __typename: 'Receipt', id?: string | null, to?: string | null, pc?: string | null, is?: string | null, toAddress?: string | null, amount?: string | null, assetId?: string | null, gas?: string | null, param1?: string | null, param2?: string | null, val?: string | null, ptr?: string | null, digest?: string | null, reason?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, len?: string | null, receiptType: GQLReceiptType, result?: string | null, gasUsed?: string | null, data?: string | null, sender?: string | null, recipient?: string | null, nonce?: string | null, contractId?: string | null, subId?: string | null } | null }> | null, item?: { __typename: 'Receipt', id?: string | null, to?: string | null, pc?: string | null, is?: string | null, toAddress?: string | null, amount?: string | null, assetId?: string | null, gas?: string | null, param1?: string | null, param2?: string | null, val?: string | null, ptr?: string | null, digest?: string | null, reason?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, len?: string | null, receiptType: GQLReceiptType, result?: string | null, gasUsed?: string | null, data?: string | null, sender?: string | null, recipient?: string | null, nonce?: string | null, contractId?: string | null, subId?: string | null } | null }> | null, item?: { __typename: 'Receipt', id?: string | null, to?: string | null, pc?: string | null, is?: string | null, toAddress?: string | null, amount?: string | null, assetId?: string | null, gas?: string | null, param1?: string | null, param2?: string | null, val?: string | null, ptr?: string | null, digest?: string | null, reason?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, len?: string | null, receiptType: GQLReceiptType, result?: string | null, gasUsed?: string | null, data?: string | null, sender?: string | null, recipient?: string | null, nonce?: string | null, contractId?: string | null, subId?: string | null } | null }> | null }> | null, receipts?: Array<{ __typename: 'Receipt', id?: string | null, to?: string | null, pc?: string | null, is?: string | null, toAddress?: string | null, amount?: string | null, assetId?: string | null, gas?: string | null, param1?: string | null, param2?: string | null, val?: string | null, ptr?: string | null, digest?: string | null, reason?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, len?: string | null, receiptType: GQLReceiptType, result?: string | null, gasUsed?: string | null, data?: string | null, sender?: string | null, recipient?: string | null, nonce?: string | null, contractId?: string | null, subId?: string | null }> | null, time: { __typename: 'ParsedTime', fromNow?: string | null, full?: string | null, rawUnix?: string | null }, inputContract?: { __typename: 'InputContract', contractId: string } | null, outputContract?: { __typename: 'ContractOutput', inputIndex: string } | null, status?: { __typename: 'FailureStatus', time: string, programState?: { __typename: 'ProgramState', data: string } | null } | { __typename: 'SqueezedOutStatus', reason: string } | { __typename: 'SubmittedStatus', time: string } | { __typename: 'SuccessStatus', time: string, block: { __typename: 'Block', id: string, header: { __typename: 'Header', id: string, height: string, daHeight: string, applicationHash: string, messageReceiptCount: string, time: string } }, programState?: { __typename: 'ProgramState', data: string } | null } | null, inputs?: Array<{ __typename: 'InputCoin', amount: string, assetId: string, owner: string, predicate: string, predicateData: string, txPointer: string, utxoId: string, witnessIndex: string } | { __typename: 'InputContract', utxoId: string, balanceRoot: string, txPointer: string, contractId: string } | { __typename: 'InputMessage', sender: string, recipient: string, amount: string, nonce: string, data: string, predicate: string, predicateData: string }> | null, outputs: Array<{ __typename: 'ChangeOutput', to: string, amount: string, assetId: string } | { __typename: 'CoinOutput', to: string, amount: string, assetId: string } | { __typename: 'ContractCreated', contract: string } | { __typename: 'ContractOutput', inputIndex: string, balanceRoot: string } | { __typename: 'VariableOutput', to: string, amount: string, assetId: string }> }; export const BalanceItemFragmentDoc = gql` fragment BalanceItem on Balance { @@ -6451,19 +3541,10 @@ export const TransactionsByOwnerDocument = gql` } ${RecentTransactionFragmentDoc}`; -export type SdkFunctionWrapper = ( - action: (requestHeaders?: Record) => Promise, - operationName: string, - operationType?: string, - variables?: any, -) => Promise; - -const defaultWrapper: SdkFunctionWrapper = ( - action, - _operationName, - _operationType, - _variables, -) => action(); +export type SdkFunctionWrapper = (action: (requestHeaders?:Record) => Promise, operationName: string, operationType?: string, variables?: any) => Promise; + + +const defaultWrapper: SdkFunctionWrapper = (action, _operationName, _operationType, _variables) => action(); const BalancesDocumentString = print(BalancesDocument); const BlockDocumentString = print(BlockDocument); const BlocksDocumentString = print(BlocksDocument); @@ -6477,339 +3558,55 @@ const RecentTransactionsDocumentString = print(RecentTransactionsDocument); const SearchDocumentString = print(SearchDocument); const TpsDocumentString = print(TpsDocument); const TransactionDetailsDocumentString = print(TransactionDetailsDocument); -const TransactionsByBlockIdDocumentString = print( - TransactionsByBlockIdDocument, -); +const TransactionsByBlockIdDocumentString = print(TransactionsByBlockIdDocument); const TransactionsByOwnerDocumentString = print(TransactionsByOwnerDocument); -export function getSdk( - client: GraphQLClient, - withWrapper: SdkFunctionWrapper = defaultWrapper, -) { +export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = defaultWrapper) { return { - balances( - variables: GQLBalancesQueryVariables, - requestHeaders?: GraphQLClientRequestHeaders, - ): Promise<{ - data: GQLBalancesQuery; - errors?: GraphQLError[]; - extensions?: any; - headers: Headers; - status: number; - }> { - return withWrapper( - (wrappedRequestHeaders) => - client.rawRequest( - BalancesDocumentString, - variables, - { ...requestHeaders, ...wrappedRequestHeaders }, - ), - 'balances', - 'query', - variables, - ); - }, - block( - variables?: GQLBlockQueryVariables, - requestHeaders?: GraphQLClientRequestHeaders, - ): Promise<{ - data: GQLBlockQuery; - errors?: GraphQLError[]; - extensions?: any; - headers: Headers; - status: number; - }> { - return withWrapper( - (wrappedRequestHeaders) => - client.rawRequest(BlockDocumentString, variables, { - ...requestHeaders, - ...wrappedRequestHeaders, - }), - 'block', - 'query', - variables, - ); + balances(variables: GQLBalancesQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: GQLBalancesQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> { + return withWrapper((wrappedRequestHeaders) => client.rawRequest(BalancesDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'balances', 'query', variables); }, - blocks( - variables?: GQLBlocksQueryVariables, - requestHeaders?: GraphQLClientRequestHeaders, - ): Promise<{ - data: GQLBlocksQuery; - errors?: GraphQLError[]; - extensions?: any; - headers: Headers; - status: number; - }> { - return withWrapper( - (wrappedRequestHeaders) => - client.rawRequest(BlocksDocumentString, variables, { - ...requestHeaders, - ...wrappedRequestHeaders, - }), - 'blocks', - 'query', - variables, - ); + block(variables?: GQLBlockQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: GQLBlockQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> { + return withWrapper((wrappedRequestHeaders) => client.rawRequest(BlockDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'block', 'query', variables); }, - chain( - variables?: GQLChainQueryVariables, - requestHeaders?: GraphQLClientRequestHeaders, - ): Promise<{ - data: GQLChainQuery; - errors?: GraphQLError[]; - extensions?: any; - headers: Headers; - status: number; - }> { - return withWrapper( - (wrappedRequestHeaders) => - client.rawRequest(ChainDocumentString, variables, { - ...requestHeaders, - ...wrappedRequestHeaders, - }), - 'chain', - 'query', - variables, - ); + blocks(variables?: GQLBlocksQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: GQLBlocksQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> { + return withWrapper((wrappedRequestHeaders) => client.rawRequest(BlocksDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'blocks', 'query', variables); }, - coins( - variables: GQLCoinsQueryVariables, - requestHeaders?: GraphQLClientRequestHeaders, - ): Promise<{ - data: GQLCoinsQuery; - errors?: GraphQLError[]; - extensions?: any; - headers: Headers; - status: number; - }> { - return withWrapper( - (wrappedRequestHeaders) => - client.rawRequest(CoinsDocumentString, variables, { - ...requestHeaders, - ...wrappedRequestHeaders, - }), - 'coins', - 'query', - variables, - ); + chain(variables?: GQLChainQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: GQLChainQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> { + return withWrapper((wrappedRequestHeaders) => client.rawRequest(ChainDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'chain', 'query', variables); }, - contract( - variables: GQLContractQueryVariables, - requestHeaders?: GraphQLClientRequestHeaders, - ): Promise<{ - data: GQLContractQuery; - errors?: GraphQLError[]; - extensions?: any; - headers: Headers; - status: number; - }> { - return withWrapper( - (wrappedRequestHeaders) => - client.rawRequest( - ContractDocumentString, - variables, - { ...requestHeaders, ...wrappedRequestHeaders }, - ), - 'contract', - 'query', - variables, - ); + coins(variables: GQLCoinsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: GQLCoinsQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> { + return withWrapper((wrappedRequestHeaders) => client.rawRequest(CoinsDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'coins', 'query', variables); }, - contractBalances( - variables: GQLContractBalancesQueryVariables, - requestHeaders?: GraphQLClientRequestHeaders, - ): Promise<{ - data: GQLContractBalancesQuery; - errors?: GraphQLError[]; - extensions?: any; - headers: Headers; - status: number; - }> { - return withWrapper( - (wrappedRequestHeaders) => - client.rawRequest( - ContractBalancesDocumentString, - variables, - { ...requestHeaders, ...wrappedRequestHeaders }, - ), - 'contractBalances', - 'query', - variables, - ); + contract(variables: GQLContractQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: GQLContractQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> { + return withWrapper((wrappedRequestHeaders) => client.rawRequest(ContractDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'contract', 'query', variables); }, - getBlocksDashboard( - variables?: GQLGetBlocksDashboardQueryVariables, - requestHeaders?: GraphQLClientRequestHeaders, - ): Promise<{ - data: GQLGetBlocksDashboardQuery; - errors?: GraphQLError[]; - extensions?: any; - headers: Headers; - status: number; - }> { - return withWrapper( - (wrappedRequestHeaders) => - client.rawRequest( - GetBlocksDashboardDocumentString, - variables, - { ...requestHeaders, ...wrappedRequestHeaders }, - ), - 'getBlocksDashboard', - 'query', - variables, - ); + contractBalances(variables: GQLContractBalancesQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: GQLContractBalancesQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> { + return withWrapper((wrappedRequestHeaders) => client.rawRequest(ContractBalancesDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'contractBalances', 'query', variables); }, - predicate( - variables: GQLPredicateQueryVariables, - requestHeaders?: GraphQLClientRequestHeaders, - ): Promise<{ - data: GQLPredicateQuery; - errors?: GraphQLError[]; - extensions?: any; - headers: Headers; - status: number; - }> { - return withWrapper( - (wrappedRequestHeaders) => - client.rawRequest( - PredicateDocumentString, - variables, - { ...requestHeaders, ...wrappedRequestHeaders }, - ), - 'predicate', - 'query', - variables, - ); + getBlocksDashboard(variables?: GQLGetBlocksDashboardQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: GQLGetBlocksDashboardQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> { + return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetBlocksDashboardDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'getBlocksDashboard', 'query', variables); }, - recentTransactions( - variables?: GQLRecentTransactionsQueryVariables, - requestHeaders?: GraphQLClientRequestHeaders, - ): Promise<{ - data: GQLRecentTransactionsQuery; - errors?: GraphQLError[]; - extensions?: any; - headers: Headers; - status: number; - }> { - return withWrapper( - (wrappedRequestHeaders) => - client.rawRequest( - RecentTransactionsDocumentString, - variables, - { ...requestHeaders, ...wrappedRequestHeaders }, - ), - 'recentTransactions', - 'query', - variables, - ); + predicate(variables: GQLPredicateQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: GQLPredicateQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> { + return withWrapper((wrappedRequestHeaders) => client.rawRequest(PredicateDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'predicate', 'query', variables); }, - search( - variables: GQLSearchQueryVariables, - requestHeaders?: GraphQLClientRequestHeaders, - ): Promise<{ - data: GQLSearchQuery; - errors?: GraphQLError[]; - extensions?: any; - headers: Headers; - status: number; - }> { - return withWrapper( - (wrappedRequestHeaders) => - client.rawRequest(SearchDocumentString, variables, { - ...requestHeaders, - ...wrappedRequestHeaders, - }), - 'search', - 'query', - variables, - ); + recentTransactions(variables?: GQLRecentTransactionsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: GQLRecentTransactionsQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> { + return withWrapper((wrappedRequestHeaders) => client.rawRequest(RecentTransactionsDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'recentTransactions', 'query', variables); }, - tps( - variables?: GQLTpsQueryVariables, - requestHeaders?: GraphQLClientRequestHeaders, - ): Promise<{ - data: GQLTpsQuery; - errors?: GraphQLError[]; - extensions?: any; - headers: Headers; - status: number; - }> { - return withWrapper( - (wrappedRequestHeaders) => - client.rawRequest(TpsDocumentString, variables, { - ...requestHeaders, - ...wrappedRequestHeaders, - }), - 'tps', - 'query', - variables, - ); + search(variables: GQLSearchQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: GQLSearchQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> { + return withWrapper((wrappedRequestHeaders) => client.rawRequest(SearchDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'search', 'query', variables); }, - transactionDetails( - variables: GQLTransactionDetailsQueryVariables, - requestHeaders?: GraphQLClientRequestHeaders, - ): Promise<{ - data: GQLTransactionDetailsQuery; - errors?: GraphQLError[]; - extensions?: any; - headers: Headers; - status: number; - }> { - return withWrapper( - (wrappedRequestHeaders) => - client.rawRequest( - TransactionDetailsDocumentString, - variables, - { ...requestHeaders, ...wrappedRequestHeaders }, - ), - 'transactionDetails', - 'query', - variables, - ); + tps(variables?: GQLTpsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: GQLTpsQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> { + return withWrapper((wrappedRequestHeaders) => client.rawRequest(TpsDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'tps', 'query', variables); }, - transactionsByBlockId( - variables: GQLTransactionsByBlockIdQueryVariables, - requestHeaders?: GraphQLClientRequestHeaders, - ): Promise<{ - data: GQLTransactionsByBlockIdQuery; - errors?: GraphQLError[]; - extensions?: any; - headers: Headers; - status: number; - }> { - return withWrapper( - (wrappedRequestHeaders) => - client.rawRequest( - TransactionsByBlockIdDocumentString, - variables, - { ...requestHeaders, ...wrappedRequestHeaders }, - ), - 'transactionsByBlockId', - 'query', - variables, - ); + transactionDetails(variables: GQLTransactionDetailsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: GQLTransactionDetailsQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> { + return withWrapper((wrappedRequestHeaders) => client.rawRequest(TransactionDetailsDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'transactionDetails', 'query', variables); }, - transactionsByOwner( - variables: GQLTransactionsByOwnerQueryVariables, - requestHeaders?: GraphQLClientRequestHeaders, - ): Promise<{ - data: GQLTransactionsByOwnerQuery; - errors?: GraphQLError[]; - extensions?: any; - headers: Headers; - status: number; - }> { - return withWrapper( - (wrappedRequestHeaders) => - client.rawRequest( - TransactionsByOwnerDocumentString, - variables, - { ...requestHeaders, ...wrappedRequestHeaders }, - ), - 'transactionsByOwner', - 'query', - variables, - ); + transactionsByBlockId(variables: GQLTransactionsByBlockIdQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: GQLTransactionsByBlockIdQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> { + return withWrapper((wrappedRequestHeaders) => client.rawRequest(TransactionsByBlockIdDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'transactionsByBlockId', 'query', variables); }, + transactionsByOwner(variables: GQLTransactionsByOwnerQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: GQLTransactionsByOwnerQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> { + return withWrapper((wrappedRequestHeaders) => client.rawRequest(TransactionsByOwnerDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'transactionsByOwner', 'query', variables); + } }; } -export type Sdk = ReturnType; +export type Sdk = ReturnType; \ No newline at end of file