From 6a58d85c0bbdbc7becb2fd4a954837db0ade42f3 Mon Sep 17 00:00:00 2001 From: raghukapur9 <64493087+raghukapur9@users.noreply.github.com> Date: Sat, 21 Sep 2024 15:10:07 -0400 Subject: [PATCH 1/5] removed WS and added dashboard queries for graph and blocks --- .../Hero/actions/get-blocks-dashboard.ts | 6 + .../Home/components/Hero/actions/get-tps.ts | 6 + .../queries/getBlocksDashboard.graphql | 10 ++ .../generated/fuelcore/queries/index.js | 143 ++++++++++++++---- .../generated/fuelcore/queries/tps.graphql | 10 ++ .../src/graphql/generated/sdk-provider.ts | 78 ++++++++++ packages/graphql/src/graphql/generated/sdk.ts | 131 ++++++++++++++++ .../src/graphql/queries/provider/tps.graphql | 10 ++ .../queries/sdk/getBlocksDashboard.graphql | 10 ++ .../src/graphql/queries/sdk/tps.graphql | 10 ++ .../src/graphql/resolvers/BlockResolver.ts | 18 +++ .../resolvers/getBlocksDashboard.graphql | 10 ++ .../src/graphql/schemas/fuelcore.graphql | 24 +++ packages/graphql/src/infra/dao/BlockDAO.ts | 90 +++++++++++ packages/graphql/src/infra/dao/utils.ts | 49 ++++++ packages/graphql/src/schemas/fuelcore.graphql | 24 +++ 16 files changed, 602 insertions(+), 27 deletions(-) create mode 100644 packages/app-explorer/src/systems/Home/components/Hero/actions/get-blocks-dashboard.ts create mode 100644 packages/app-explorer/src/systems/Home/components/Hero/actions/get-tps.ts create mode 100644 packages/graphql/src/graphql/generated/fuelcore/queries/getBlocksDashboard.graphql create mode 100644 packages/graphql/src/graphql/generated/fuelcore/queries/tps.graphql create mode 100644 packages/graphql/src/graphql/queries/provider/tps.graphql create mode 100644 packages/graphql/src/graphql/queries/sdk/getBlocksDashboard.graphql create mode 100644 packages/graphql/src/graphql/queries/sdk/tps.graphql create mode 100644 packages/graphql/src/graphql/resolvers/getBlocksDashboard.graphql create mode 100644 packages/graphql/src/infra/dao/utils.ts diff --git a/packages/app-explorer/src/systems/Home/components/Hero/actions/get-blocks-dashboard.ts b/packages/app-explorer/src/systems/Home/components/Hero/actions/get-blocks-dashboard.ts new file mode 100644 index 000000000..ac4622aa0 --- /dev/null +++ b/packages/app-explorer/src/systems/Home/components/Hero/actions/get-blocks-dashboard.ts @@ -0,0 +1,6 @@ +import { sdk } from '~/systems/Core/utils/sdk'; + +export const getBlocksDashboard = async () => { + const { data } = await sdk.getBlocksDashboard(); + return data; +}; diff --git a/packages/app-explorer/src/systems/Home/components/Hero/actions/get-tps.ts b/packages/app-explorer/src/systems/Home/components/Hero/actions/get-tps.ts new file mode 100644 index 000000000..467c7a701 --- /dev/null +++ b/packages/app-explorer/src/systems/Home/components/Hero/actions/get-tps.ts @@ -0,0 +1,6 @@ +import { sdk } from '~/systems/Core/utils/sdk'; + +export const getTPS = async () => { + const { data } = await sdk.tps(); + return data; +}; diff --git a/packages/graphql/src/graphql/generated/fuelcore/queries/getBlocksDashboard.graphql b/packages/graphql/src/graphql/generated/fuelcore/queries/getBlocksDashboard.graphql new file mode 100644 index 000000000..e6f943f4d --- /dev/null +++ b/packages/graphql/src/graphql/generated/fuelcore/queries/getBlocksDashboard.graphql @@ -0,0 +1,10 @@ +query getBlocksDashboard{ + getBlocksDashboard{ + nodes{ + timestamp + gasUsed + blockNo + producer + } + } +} \ No newline at end of file diff --git a/packages/graphql/src/graphql/generated/fuelcore/queries/index.js b/packages/graphql/src/graphql/generated/fuelcore/queries/index.js index f99a6bf08..eae1a0017 100644 --- a/packages/graphql/src/graphql/generated/fuelcore/queries/index.js +++ b/packages/graphql/src/graphql/generated/fuelcore/queries/index.js @@ -1,30 +1,119 @@ 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.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/fuelcore/queries/tps.graphql b/packages/graphql/src/graphql/generated/fuelcore/queries/tps.graphql new file mode 100644 index 000000000..e926f58bb --- /dev/null +++ b/packages/graphql/src/graphql/generated/fuelcore/queries/tps.graphql @@ -0,0 +1,10 @@ +query tps{ + tps{ + nodes{ + start + end + txCount + totalGas + } + } +} \ No newline at end of file diff --git a/packages/graphql/src/graphql/generated/sdk-provider.ts b/packages/graphql/src/graphql/generated/sdk-provider.ts index 04526dc4a..da5d18f5e 100644 --- a/packages/graphql/src/graphql/generated/sdk-provider.ts +++ b/packages/graphql/src/graphql/generated/sdk-provider.ts @@ -117,6 +117,19 @@ export enum GQLBlockVersion { V1 = 'V1', } +export type GQLBlocksDashboard = { + __typename: 'BlocksDashboard'; + blockNo: Scalars['U64']['output']; + gasUsed: Scalars['U64']['output']; + producer?: Maybe; + timestamp: Scalars['U64']['output']; +}; + +export type GQLBlocksDashboardConnection = { + __typename: 'BlocksDashboardConnection'; + nodes: Array; +}; + /** Breakpoint, defined as a tuple of contract ID and relative PC offset inside it */ export type GQLBreakpoint = { contract: Scalars['ContractId']['input']; @@ -968,6 +981,7 @@ export type GQLQuery = { estimateGasPrice: GQLEstimateGasPrice; /** Estimate the predicate gas for the provided transaction */ estimatePredicates: GQLTransaction; + getBlocksDashboard: GQLBlocksDashboardConnection; /** Returns true when the GraphQL API is serving requests. */ health: Scalars['Boolean']['output']; latestGasPrice: GQLLatestGasPrice; @@ -983,6 +997,7 @@ export type GQLQuery = { register: Scalars['U64']['output']; relayedTransactionStatus?: Maybe; search?: Maybe; + tps: GQLTpsConnection; transaction?: Maybe; transactions: GQLTransactionConnection; transactionsByBlockId: GQLTransactionConnection; @@ -1319,6 +1334,19 @@ export type GQLSuccessStatus = { transactionId: Scalars['TransactionId']['output']; }; +export type GQLTps = { + __typename: 'TPS'; + end?: Maybe; + start?: Maybe; + totalGas: Scalars['U64']['output']; + txCount: Scalars['U64']['output']; +}; + +export type GQLTpsConnection = { + __typename: 'TPSConnection'; + nodes: Array; +}; + export type GQLTransaction = { __typename: 'Transaction'; _id?: Maybe; @@ -3516,6 +3544,22 @@ export type GQLNodeInfoQuery = { }; }; +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 { amount @@ -5244,6 +5288,18 @@ export const NodeInfoDocument = gql` } } `; +export const TpsDocument = gql` + query tps { + tps { + nodes { + start + end + txCount + totalGas + } + } +} + `; export type SdkFunctionWrapper = ( action: (requestHeaders?: Record) => Promise, @@ -5267,6 +5323,7 @@ const ContractDocumentString = print(ContractDocument); const ContractBalanceDocumentString = print(ContractBalanceDocument); const ContractBalancesDocumentString = print(ContractBalancesDocument); const NodeInfoDocumentString = print(NodeInfoDocument); +const TpsDocumentString = print(TpsDocument); export function getSdk( client: GraphQLClient, withWrapper: SdkFunctionWrapper = defaultWrapper, @@ -5466,6 +5523,27 @@ export function getSdk( 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; diff --git a/packages/graphql/src/graphql/generated/sdk.ts b/packages/graphql/src/graphql/generated/sdk.ts index 7d00e6408..ffad30630 100644 --- a/packages/graphql/src/graphql/generated/sdk.ts +++ b/packages/graphql/src/graphql/generated/sdk.ts @@ -117,6 +117,19 @@ export enum GQLBlockVersion { V1 = 'V1', } +export type GQLBlocksDashboard = { + __typename: 'BlocksDashboard'; + blockNo: Scalars['U64']['output']; + gasUsed: Scalars['U64']['output']; + producer?: Maybe; + timestamp: Scalars['U64']['output']; +}; + +export type GQLBlocksDashboardConnection = { + __typename: 'BlocksDashboardConnection'; + nodes: Array; +}; + /** Breakpoint, defined as a tuple of contract ID and relative PC offset inside it */ export type GQLBreakpoint = { contract: Scalars['ContractId']['input']; @@ -968,6 +981,7 @@ export type GQLQuery = { estimateGasPrice: GQLEstimateGasPrice; /** Estimate the predicate gas for the provided transaction */ estimatePredicates: GQLTransaction; + getBlocksDashboard: GQLBlocksDashboardConnection; /** Returns true when the GraphQL API is serving requests. */ health: Scalars['Boolean']['output']; latestGasPrice: GQLLatestGasPrice; @@ -983,6 +997,7 @@ export type GQLQuery = { register: Scalars['U64']['output']; relayedTransactionStatus?: Maybe; search?: Maybe; + tps: GQLTpsConnection; transaction?: Maybe; transactions: GQLTransactionConnection; transactionsByBlockId: GQLTransactionConnection; @@ -1319,6 +1334,19 @@ export type GQLSuccessStatus = { transactionId: Scalars['TransactionId']['output']; }; +export type GQLTps = { + __typename: 'TPS'; + end?: Maybe; + start?: Maybe; + totalGas: Scalars['U64']['output']; + txCount: Scalars['U64']['output']; +}; + +export type GQLTpsConnection = { + __typename: 'TPSConnection'; + nodes: Array; +}; + export type GQLTransaction = { __typename: 'Transaction'; _id?: Maybe; @@ -2689,6 +2717,24 @@ export type GQLContractBalancesQuery = { }; }; +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 GQLPredicateQueryVariables = Exact<{ address: Scalars['String']['input']; }>; @@ -2782,6 +2828,22 @@ export type GQLSearchQuery = { } | 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']; }>; @@ -6270,6 +6332,18 @@ export const ContractBalancesDocument = gql` } } ${ContractBalanceConnectionNodeFragmentDoc}`; +export const GetBlocksDashboardDocument = gql` + query getBlocksDashboard { + getBlocksDashboard { + nodes { + timestamp + gasUsed + blockNo + producer + } + } +} + `; export const PredicateDocument = gql` query predicate($address: String!) { predicate(address: $address) { @@ -6315,6 +6389,18 @@ export const SearchDocument = gql` } } `; +export const TpsDocument = gql` + query tps { + tps { + nodes { + start + end + txCount + totalGas + } + } +} + `; export const TransactionDetailsDocument = gql` query transactionDetails($id: TransactionId!) { transaction(id: $id) { @@ -6385,9 +6471,11 @@ const ChainDocumentString = print(ChainDocument); const CoinsDocumentString = print(CoinsDocument); const ContractDocumentString = print(ContractDocument); const ContractBalancesDocumentString = print(ContractBalancesDocument); +const GetBlocksDashboardDocumentString = print(GetBlocksDashboardDocument); const PredicateDocumentString = print(PredicateDocument); const RecentTransactionsDocumentString = print(RecentTransactionsDocument); const SearchDocumentString = print(SearchDocument); +const TpsDocumentString = print(TpsDocument); const TransactionDetailsDocumentString = print(TransactionDetailsDocument); const TransactionsByBlockIdDocumentString = print( TransactionsByBlockIdDocument, @@ -6548,6 +6636,28 @@ export function getSdk( 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, + ); + }, predicate( variables: GQLPredicateQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, @@ -6613,6 +6723,27 @@ export function getSdk( 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, + ); + }, transactionDetails( variables: GQLTransactionDetailsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, diff --git a/packages/graphql/src/graphql/queries/provider/tps.graphql b/packages/graphql/src/graphql/queries/provider/tps.graphql new file mode 100644 index 000000000..9927dcdcd --- /dev/null +++ b/packages/graphql/src/graphql/queries/provider/tps.graphql @@ -0,0 +1,10 @@ +query tps{ + tps{ + nodes { + start + end + txCount + totalGas + } + } +} \ No newline at end of file diff --git a/packages/graphql/src/graphql/queries/sdk/getBlocksDashboard.graphql b/packages/graphql/src/graphql/queries/sdk/getBlocksDashboard.graphql new file mode 100644 index 000000000..e1ad2f02e --- /dev/null +++ b/packages/graphql/src/graphql/queries/sdk/getBlocksDashboard.graphql @@ -0,0 +1,10 @@ +query getBlocksDashboard{ + getBlocksDashboard{ + nodes { + timestamp + gasUsed + blockNo + producer + } + } +} \ No newline at end of file diff --git a/packages/graphql/src/graphql/queries/sdk/tps.graphql b/packages/graphql/src/graphql/queries/sdk/tps.graphql new file mode 100644 index 000000000..9927dcdcd --- /dev/null +++ b/packages/graphql/src/graphql/queries/sdk/tps.graphql @@ -0,0 +1,10 @@ +query tps{ + tps{ + nodes { + start + end + txCount + totalGas + } + } +} \ No newline at end of file diff --git a/packages/graphql/src/graphql/resolvers/BlockResolver.ts b/packages/graphql/src/graphql/resolvers/BlockResolver.ts index 0ca336c7e..e309db74b 100644 --- a/packages/graphql/src/graphql/resolvers/BlockResolver.ts +++ b/packages/graphql/src/graphql/resolvers/BlockResolver.ts @@ -12,6 +12,8 @@ type Source = GQLBlock; type Params = { blocks: GQLQueryBlocksArgs; block: GQLQueryBlockArgs; + tps: null; + getBlocksDashboard: null; }; export class BlockResolver { @@ -21,6 +23,8 @@ export class BlockResolver { Query: { block: resolvers.block, blocks: resolvers.blocks, + tps: resolvers.tps, + getBlocksDashboard: resolvers.getBlocksDashboard, }, }; } @@ -56,4 +60,18 @@ export class BlockResolver { ); return blocks; } + + async getBlocksDashboard(_: Source, _params: Params['getBlocksDashboard']) { + const blockDAO = new BlockDAO(); + const blocks = await blockDAO.getBlocksDashboard(); + + return blocks; + } + + async tps(_: Source, _params: Params['tps']) { + const blockDAO = new BlockDAO(); + const tps = await blockDAO.tps(); + + return tps; + } } diff --git a/packages/graphql/src/graphql/resolvers/getBlocksDashboard.graphql b/packages/graphql/src/graphql/resolvers/getBlocksDashboard.graphql new file mode 100644 index 000000000..e1ad2f02e --- /dev/null +++ b/packages/graphql/src/graphql/resolvers/getBlocksDashboard.graphql @@ -0,0 +1,10 @@ +query getBlocksDashboard{ + getBlocksDashboard{ + nodes { + timestamp + gasUsed + blockNo + producer + } + } +} \ No newline at end of file diff --git a/packages/graphql/src/graphql/schemas/fuelcore.graphql b/packages/graphql/src/graphql/schemas/fuelcore.graphql index ab84ad760..5e880dd0d 100644 --- a/packages/graphql/src/graphql/schemas/fuelcore.graphql +++ b/packages/graphql/src/graphql/schemas/fuelcore.graphql @@ -781,6 +781,8 @@ type Query { transactions(after: String, before: String, first: Int, last: Int): TransactionConnection! transactionsByOwner(after: String, before: String, first: Int, last: Int, owner: Address!): TransactionConnection! transactionsByBlockId(after: String, before: String, first: Int, last: Int, blockId: String!): TransactionConnection! + tps: TPSConnection! + getBlocksDashboard : BlocksDashboardConnection! } type Receipt { @@ -1021,4 +1023,26 @@ type VariableOutput { amount: U64! assetId: AssetId! to: Address! +} + +type TPS { + start: String + end: String + txCount: U64! + totalGas: U64! +} + +type TPSConnection { + nodes: [TPS!]! +} + +type BlocksDashboard { + timestamp: U64! + gasUsed: U64! + blockNo: U64! + producer: String +} + +type BlocksDashboardConnection { + nodes: [BlocksDashboard!]! } \ No newline at end of file diff --git a/packages/graphql/src/infra/dao/BlockDAO.ts b/packages/graphql/src/infra/dao/BlockDAO.ts index 33e1c517f..8f1390577 100644 --- a/packages/graphql/src/infra/dao/BlockDAO.ts +++ b/packages/graphql/src/infra/dao/BlockDAO.ts @@ -1,6 +1,7 @@ import { DatabaseConnection } from '../database/DatabaseConnection'; import PaginatedParams from '../paginator/PaginatedParams'; import Block from './Block'; +import { createIntervals, roundToNearest } from './utils'; export default class BlockDAO { databaseConnection: DatabaseConnection; @@ -121,4 +122,93 @@ export default class BlockDAO { if (!blockData) return; return new Block(blockData); } + + async getBlocksDashboard() { + const blocksData = await this.databaseConnection.query( + ` + select + b._id AS blockno, + b.gas_used AS gasused, + b.producer, + b.timestamp AS timestamp + from + indexer.blocks b + order by + b._id desc + limit 6 + `, + [], + ); + + const formattedBlocksData = blocksData.map((block) => ({ + timestamp: new Date(Number(block.timestamp)).getTime(), + gasUsed: Number(block.gasused), + blockNo: block.blockno, + producer: block.producer, + })); + + return { + nodes: formattedBlocksData, + }; + } + + async tps() { + const currentTime = new Date(); + const timeMinusOneDay = new Date( + currentTime.getTime() - 5 * 24 * 60 * 60 * 1000, + ); + const timeMinusOneDayRoundDown = new Date( + roundToNearest(timeMinusOneDay.getTime()), + ); + const timeMinusOneDayRoundDownISO = timeMinusOneDayRoundDown.toISOString(); + + const blocksData = await this.databaseConnection.query( + ` + SELECT + b.timestamp AS timestamp, + b.data->'header'->>'transactionsCount' AS tps, + b.gas_used AS gasused + FROM + indexer.blocks b + WHERE + b.timestamp >= $1 + ORDER BY _id asc; + `, + [timeMinusOneDayRoundDownISO], + ); + + if (!blocksData) { + return { nodes: [] }; + } + + const lastTimestamp = new Date( + Number(blocksData[blocksData.length - 1].timestamp), + ).getTime(); + const firstTimestamp = new Date(Number(blocksData[0].timestamp)).getTime(); + + const intervals = createIntervals(firstTimestamp, lastTimestamp, 'hour', 1); + + // Process blocks and put them into the correct interval + blocksData.forEach((block) => { + const blockTimestamp = new Date(Number(block.timestamp)).getTime(); + const txCount = Number(block.tps); + const gasUsed = Number(block.gasused); + + // Find the correct interval for the current block + for (const interval of intervals) { + const intervalStart = new Date(interval.start).getTime(); + const intervalEnd = new Date(interval.end).getTime(); + + if (blockTimestamp >= intervalStart && blockTimestamp < intervalEnd) { + interval.txCount += txCount; + interval.totalGas += gasUsed; + break; + } + } + }); + + return { + nodes: intervals, + }; + } } diff --git a/packages/graphql/src/infra/dao/utils.ts b/packages/graphql/src/infra/dao/utils.ts new file mode 100644 index 000000000..fef2cb26a --- /dev/null +++ b/packages/graphql/src/infra/dao/utils.ts @@ -0,0 +1,49 @@ +export function roundToNearest(time: number, roundUp = false): number { + const msInHour = 60 * 60 * 1000; + return roundUp + ? Math.ceil(time / msInHour) * msInHour + : Math.floor(time / msInHour) * msInHour; +} + +// General interval creation function +export function createIntervals( + startTime: number, + endTime: number, + unit: 'minute' | 'hour' | 'day', + intervalSize: number, +): Array<{ start: Date; end: Date; txCount: number; totalGas: number }> { + const roundedStartTime = roundToNearest(startTime); + const roundedEndTime = roundToNearest(endTime, true); + + const intervals: Array<{ + start: Date; + end: Date; + txCount: number; + totalGas: number; + }> = []; + + let currentTime = roundedStartTime; + + // Handle minute, hour, and day intervals + const msInUnit = { + minute: 60 * 1000, + hour: 60 * 60 * 1000, + day: 24 * 60 * 60 * 1000, + }; + + const intervalDuration = intervalSize * msInUnit[unit]; + + while (currentTime < roundedEndTime) { + const startInterval = new Date(currentTime); + const endInterval = new Date(currentTime + intervalDuration); + intervals.push({ + start: startInterval, + end: endInterval, + txCount: 0, + totalGas: 0, + }); + currentTime += intervalDuration; + } + + return intervals; +} diff --git a/packages/graphql/src/schemas/fuelcore.graphql b/packages/graphql/src/schemas/fuelcore.graphql index f265af58a..9b8352dac 100644 --- a/packages/graphql/src/schemas/fuelcore.graphql +++ b/packages/graphql/src/schemas/fuelcore.graphql @@ -782,6 +782,8 @@ type Query { ): Transaction transactions(after: String, before: String, first: Int, last: Int): TransactionConnection! transactionsByOwner(after: String, before: String, first: Int, last: Int, owner: Address!): TransactionConnection! + tps: TPSConnection! + getBlocksDashboard : BlocksDashboardConnection! } type Receipt { @@ -1022,4 +1024,26 @@ type VariableOutput { amount: U64! assetId: AssetId! to: Address! +} + +type TPS { + start: String + end: String + txCount: U64! + totalGas: U64! +} + +type TPSConnection { + nodes: [TPS!]! +} + +type BlocksDashboard { + timestamp: U64! + gasUsed: U64! + blockNo: U64! + producer: String +} + +type BlocksDashboardConnection { + nodes: [BlocksDashboard!]! } \ No newline at end of file From b5ba01f9babe34f603ad83cfb18e30843f54d478 Mon Sep 17 00:00:00 2001 From: raghukapur9 <64493087+raghukapur9@users.noreply.github.com> Date: Sat, 21 Sep 2024 15:10:53 -0400 Subject: [PATCH 2/5] fixed time calculation --- packages/graphql/src/infra/dao/BlockDAO.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/graphql/src/infra/dao/BlockDAO.ts b/packages/graphql/src/infra/dao/BlockDAO.ts index 8f1390577..acc7aa4b8 100644 --- a/packages/graphql/src/infra/dao/BlockDAO.ts +++ b/packages/graphql/src/infra/dao/BlockDAO.ts @@ -155,7 +155,7 @@ export default class BlockDAO { async tps() { const currentTime = new Date(); const timeMinusOneDay = new Date( - currentTime.getTime() - 5 * 24 * 60 * 60 * 1000, + currentTime.getTime() - 24 * 60 * 60 * 1000, ); const timeMinusOneDayRoundDown = new Date( roundToNearest(timeMinusOneDay.getTime()), From 22d1509b20b2960853c6964d02fa744c37dede82 Mon Sep 17 00:00:00 2001 From: raghukapur9 <64493087+raghukapur9@users.noreply.github.com> Date: Sat, 21 Sep 2024 22:07:35 -0400 Subject: [PATCH 3/5] moved tps and dashboard blocks to explorer.graphql --- .../src/graphql/schemas/explorer.graphql | 24 +++++++++++++++++++ packages/graphql/src/infra/dao/BlockDAO.ts | 2 +- packages/graphql/src/schemas/fuelcore.graphql | 24 ------------------- 3 files changed, 25 insertions(+), 25 deletions(-) diff --git a/packages/graphql/src/graphql/schemas/explorer.graphql b/packages/graphql/src/graphql/schemas/explorer.graphql index 9f1d4bc44..f4a0fa195 100644 --- a/packages/graphql/src/graphql/schemas/explorer.graphql +++ b/packages/graphql/src/graphql/schemas/explorer.graphql @@ -223,4 +223,28 @@ type Query { search(query: String!): SearchResult predicate(address: String!): PredicateItem + tps: TPSConnection! + getBlocksDashboard : BlocksDashboardConnection! } + +type TPS { + start: String + end: String + txCount: U64! + totalGas: U64! +} + +type TPSConnection { + nodes: [TPS!]! +} + +type BlocksDashboard { + timestamp: U64! + gasUsed: U64! + blockNo: U64! + producer: String +} + +type BlocksDashboardConnection { + nodes: [BlocksDashboard!]! +} \ No newline at end of file diff --git a/packages/graphql/src/infra/dao/BlockDAO.ts b/packages/graphql/src/infra/dao/BlockDAO.ts index acc7aa4b8..cf9436204 100644 --- a/packages/graphql/src/infra/dao/BlockDAO.ts +++ b/packages/graphql/src/infra/dao/BlockDAO.ts @@ -177,7 +177,7 @@ export default class BlockDAO { [timeMinusOneDayRoundDownISO], ); - if (!blocksData) { + if (blocksData.length === 0) { return { nodes: [] }; } diff --git a/packages/graphql/src/schemas/fuelcore.graphql b/packages/graphql/src/schemas/fuelcore.graphql index 9b8352dac..f265af58a 100644 --- a/packages/graphql/src/schemas/fuelcore.graphql +++ b/packages/graphql/src/schemas/fuelcore.graphql @@ -782,8 +782,6 @@ type Query { ): Transaction transactions(after: String, before: String, first: Int, last: Int): TransactionConnection! transactionsByOwner(after: String, before: String, first: Int, last: Int, owner: Address!): TransactionConnection! - tps: TPSConnection! - getBlocksDashboard : BlocksDashboardConnection! } type Receipt { @@ -1024,26 +1022,4 @@ type VariableOutput { amount: U64! assetId: AssetId! to: Address! -} - -type TPS { - start: String - end: String - txCount: U64! - totalGas: U64! -} - -type TPSConnection { - nodes: [TPS!]! -} - -type BlocksDashboard { - timestamp: U64! - gasUsed: U64! - blockNo: U64! - producer: String -} - -type BlocksDashboardConnection { - nodes: [BlocksDashboard!]! } \ No newline at end of file From b0764cc87edb8c4afc2179886848b96bac6cc4ab Mon Sep 17 00:00:00 2001 From: raghukapur9 <64493087+raghukapur9@users.noreply.github.com> Date: Sat, 21 Sep 2024 22:09:33 -0400 Subject: [PATCH 4/5] formatted getBlocksDashboard --- packages/graphql/src/graphql/schemas/explorer.graphql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/graphql/src/graphql/schemas/explorer.graphql b/packages/graphql/src/graphql/schemas/explorer.graphql index f4a0fa195..efe1b21b4 100644 --- a/packages/graphql/src/graphql/schemas/explorer.graphql +++ b/packages/graphql/src/graphql/schemas/explorer.graphql @@ -224,7 +224,7 @@ type Query { search(query: String!): SearchResult predicate(address: String!): PredicateItem tps: TPSConnection! - getBlocksDashboard : BlocksDashboardConnection! + getBlocksDashboard: BlocksDashboardConnection! } type TPS { 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 5/5] 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 eae1a0017..799296a42 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 364e55959..da354ff40 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 da5d18f5e..a0a28167f 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 ffad30630..d863b5a64 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