diff --git a/bun.lock b/bun.lock index 08e62c5..98264ca 100644 --- a/bun.lock +++ b/bun.lock @@ -25,7 +25,7 @@ "clsx": "^2.1.1", "date-fns": "^4.1.0", "graphql": "^16.11.0", - "human-readable-checksum": "./package/human-readable-checksum-0.2.0.tgz", + "human-readable-checksum": "./package/human-readable-checksum-0.3.0.tgz", "lucide-react": "^0.516.0", "nuqs": "2.4.3", "react": "19.1.1", @@ -1550,7 +1550,7 @@ "https-proxy-agent": ["https-proxy-agent@7.0.6", "", { "dependencies": { "agent-base": "^7.1.2", "debug": "4" } }, "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw=="], - "human-readable-checksum": ["human-readable-checksum@./package/human-readable-checksum-0.2.0.tgz", { "dependencies": { "pbkdf2": "^3.1.3" } }], + "human-readable-checksum": ["human-readable-checksum@./package/human-readable-checksum-0.3.0.tgz", { "dependencies": { "pbkdf2": "^3.1.3" } }, "sha512-B1O/e+o+dzo4NPIS4RER+rRQis5SJh/oGNht+ZyFJ+YgJpEcWghJyV3fnTuA1m+2ucgExI3myldZ5JuJRj8eeA=="], "human-signals": ["human-signals@5.0.0", "", {}, "sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ=="], diff --git a/codegen.ts b/codegen.ts index 1d70e7a..05fa8e2 100644 --- a/codegen.ts +++ b/codegen.ts @@ -1,7 +1,7 @@ import type { CodegenConfig } from '@graphql-codegen/cli'; const config: CodegenConfig = { - schema: process.env.CODEGEN_SCHEMA_URL || 'http://localhost:4350/graphql', + schema: process.env.CODEGEN_SCHEMA_URL || 'http://localhost:4350/v1/graphql', documents: ['src/**/*.{ts,tsx}'], generates: { './src/__generated__/': { diff --git a/package.json b/package.json index 0b07200..3218898 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "clsx": "^2.1.1", "date-fns": "^4.1.0", "graphql": "^16.11.0", - "human-readable-checksum": "./package/human-readable-checksum-0.2.0.tgz", + "human-readable-checksum": "./package/human-readable-checksum-0.3.0.tgz", "lucide-react": "^0.516.0", "nuqs": "2.4.3", "react": "19.1.1", diff --git a/package/human-readable-checksum-0.2.0.tgz b/package/human-readable-checksum-0.2.0.tgz deleted file mode 100644 index e243199..0000000 Binary files a/package/human-readable-checksum-0.2.0.tgz and /dev/null differ diff --git a/package/human-readable-checksum-0.3.0.tgz b/package/human-readable-checksum-0.3.0.tgz new file mode 100644 index 0000000..f6b439e Binary files /dev/null and b/package/human-readable-checksum-0.3.0.tgz differ diff --git a/scripts/graphql-bench.ts b/scripts/graphql-bench.ts index 802b946..a03642a 100644 --- a/scripts/graphql-bench.ts +++ b/scripts/graphql-bench.ts @@ -1,6 +1,6 @@ import { runGraphqlBenchmarks } from '../src/lib/graphql-benchmark/run'; -const defaultUrl = 'https://subsquid.quantus.com/blue/graphql'; +const defaultUrl = 'https://sub2.quantus.com/v1/graphql'; const endpoint = process.env.GRAPHQL_BENCH_URL ?? defaultUrl; async function main() { diff --git a/src/__generated__/gql.ts b/src/__generated__/gql.ts index ceee893..58d6175 100644 --- a/src/__generated__/gql.ts +++ b/src/__generated__/gql.ts @@ -14,127 +14,130 @@ import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/ * Learn more about it here: https://the-guild.dev/graphql/codegen/plugins/presets/preset-client#reducing-bundle-size */ type Documents = { - '\n query GetAccounts(\n $limit: Int\n $offset: Int\n $orderBy: [AccountOrderByInput!]\n ) {\n accounts(limit: $limit, offset: $offset, orderBy: $orderBy) {\n id\n free\n frozen\n reserved\n }\n meta: accountsConnection(orderBy: id_ASC) {\n totalCount\n }\n }\n ': typeof types.GetAccountsDocument; - '\n query GetAccountById($id: String!, $limit: Int!) {\n account: accountById(id: $id) {\n id\n free\n frozen\n reserved\n }\n transactions: transfersConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n extrinsic_isNull: false\n AND: { from: { id_eq: $id }, OR: { to: { id_eq: $id } } }\n }\n ) {\n edges {\n node {\n fee\n extrinsic {\n id\n pallet\n call\n }\n block {\n height\n }\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n }\n }\n\n totalCount\n }\n scheduledReversibleTransactions: scheduledReversibleTransfersConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: { from: { id_eq: $id }, OR: { to: { id_eq: $id } } }\n ) {\n edges {\n node {\n extrinsic {\n id\n pallet\n call\n }\n timestamp\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n totalCount\n }\n executedReversibleTransactions: executedReversibleTransfersConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n scheduledTransfer: {\n from: { id_eq: $id }\n OR: { to: { id_eq: $id } }\n }\n }\n ) {\n edges {\n node {\n timestamp\n txId\n block {\n height\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n totalCount\n }\n cancelledReversibleTransactions: cancelledReversibleTransfersConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n scheduledTransfer: {\n from: { id_eq: $id }\n OR: { to: { id_eq: $id } }\n }\n OR: { cancelledBy: { id_eq: $id } }\n }\n ) {\n edges {\n node {\n timestamp\n txId\n block {\n height\n }\n cancelledBy {\n id\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n totalCount\n }\n minerRewards: minerRewardsConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: { miner: { id_eq: $id } }\n ) {\n edges {\n node {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n }\n\n totalCount\n }\n guardian: highSecuritySetsConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: { who: { id_eq: $id } }\n ) {\n edges {\n node {\n timestamp\n block {\n height\n }\n interceptor {\n id\n free\n frozen\n reserved\n }\n }\n }\n\n totalCount\n }\n beneficiaries: highSecuritySetsConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: { interceptor: { id_eq: $id } }\n ) {\n edges {\n node {\n timestamp\n block {\n height\n }\n who {\n id\n free\n frozen\n reserved\n }\n }\n }\n\n totalCount\n }\n wormholeOutputs: wormholeOutputs(\n orderBy: wormholeExtrinsic_timestamp_DESC\n limit: $limit\n where: { exitAccount: { id_eq: $id } }\n ) {\n id\n amount\n exitAccount {\n id\n }\n wormholeExtrinsic {\n id\n extrinsic {\n id\n pallet\n call\n }\n totalAmount\n outputCount\n timestamp\n block {\n height\n }\n outputs {\n id\n exitAccount {\n id\n }\n amount\n }\n }\n }\n }\n ': typeof types.GetAccountByIdDocument; - '\n query GetAccountsStats($startDate: DateTime!, $endDate: DateTime!) {\n all: accountsConnection(orderBy: id_ASC) {\n totalCount\n }\n recentlyActive: accountsConnection(\n orderBy: id_ASC\n where: {\n transfersFrom_some: {\n timestamp_gte: $startDate\n timestamp_lte: $endDate\n }\n }\n ) {\n totalCount\n }\n recentlyDeposited: accountsConnection(\n orderBy: id_ASC\n where: {\n transfersTo_some: {\n timestamp_gte: $startDate\n timestamp_lte: $endDate\n }\n }\n ) {\n totalCount\n }\n }\n ': typeof types.GetAccountsStatsDocument; - '\n query GetBlocks(\n $limit: Int\n $offset: Int\n $orderBy: [BlockOrderByInput!]!\n $where: BlockWhereInput\n ) {\n blocks(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n id\n hash\n height\n reward\n timestamp\n extrinsics {\n id\n }\n }\n meta: blocksConnection(orderBy: id_ASC) {\n totalCount\n }\n }\n ': typeof types.GetBlocksDocument; - '\n query GetRecentBlocks(\n $limit: Int\n $offset: Int\n $orderBy: [BlockOrderByInput!]\n ) {\n blocks(limit: $limit, offset: $offset, orderBy: $orderBy) {\n id\n hash\n height\n reward\n timestamp\n extrinsics {\n id\n }\n }\n }\n ': typeof types.GetRecentBlocksDocument; - '\n query GetBlockById($height: Int!, $hash: String!, $limit: Int!) {\n blocks(where: { height_eq: $height, OR: { hash_eq: $hash } }) {\n id\n hash\n height\n reward\n timestamp\n extrinsics(orderBy: indexInBlock_ASC) {\n id\n pallet\n call\n success\n fee\n timestamp\n indexInBlock\n signer {\n id\n }\n }\n }\n minerRewards(\n where: {\n block: { height_eq: $height }\n OR: { block: { hash_eq: $hash } }\n }\n ) {\n reward\n timestamp\n miner {\n id\n }\n block {\n height\n hash\n }\n }\n transactions: transfersConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n extrinsic_isNull: false\n AND: {\n block: { height_eq: $height }\n OR: { block: { hash_eq: $hash } }\n }\n }\n ) {\n edges {\n node {\n fee\n extrinsic {\n id\n pallet\n call\n }\n block {\n height\n }\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n }\n }\n\n totalCount\n }\n scheduledReversibleTransactions: scheduledReversibleTransfersConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n block: { height_eq: $height }\n OR: { block: { hash_eq: $hash } }\n }\n ) {\n edges {\n node {\n extrinsic {\n id\n pallet\n call\n }\n timestamp\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n totalCount\n }\n executedReversibleTransactions: executedReversibleTransfersConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n block: { height_eq: $height }\n OR: { block: { hash_eq: $hash } }\n }\n ) {\n edges {\n node {\n timestamp\n txId\n block {\n height\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n totalCount\n }\n cancelledReversibleTransactions: cancelledReversibleTransfersConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n block: { height_eq: $height }\n OR: { block: { hash_eq: $hash } }\n }\n ) {\n edges {\n node {\n timestamp\n txId\n block {\n height\n }\n cancelledBy {\n id\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n totalCount\n }\n highSecuritySets: highSecuritySetsConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n block: { height_eq: $height }\n OR: { block: { hash_eq: $hash } }\n }\n ) {\n edges {\n node {\n extrinsic {\n id\n pallet\n call\n }\n timestamp\n delay\n block {\n height\n }\n who {\n id\n }\n interceptor {\n id\n }\n }\n }\n\n totalCount\n }\n errorEvents: errorEventsConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n block: { height_eq: $height }\n OR: { block: { hash_eq: $hash } }\n }\n ) {\n edges {\n node {\n errorDocs\n errorModule\n errorName\n errorType\n extrinsic {\n id\n pallet\n call\n }\n timestamp\n block {\n height\n }\n }\n }\n\n totalCount\n }\n wormholeExtrinsics(\n orderBy: timestamp_DESC\n limit: $limit\n where: {\n block: { height_eq: $height }\n OR: { block: { hash_eq: $hash } }\n }\n ) {\n id\n extrinsic {\n id\n pallet\n call\n }\n totalAmount\n outputCount\n timestamp\n block {\n height\n }\n outputs {\n id\n exitAccount {\n id\n }\n amount\n }\n }\n }\n ': typeof types.GetBlockByIdDocument; - '\n query GetCancelledReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [CancelledReversibleTransferOrderByInput!]\n $where: CancelledReversibleTransferWhereInput\n ) {\n cancelledReversibleTransactions: cancelledReversibleTransfers(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n timestamp\n txId\n block {\n height\n }\n cancelledBy {\n id\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n meta: cancelledReversibleTransfersConnection(\n orderBy: id_ASC\n where: $where\n ) {\n totalCount\n }\n }\n ': typeof types.GetCancelledReversibleTransactionsDocument; - '\n query GetRecentCancelledReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [CancelledReversibleTransferOrderByInput!]\n ) {\n cancelledReversibleTransactions: cancelledReversibleTransfers(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n ) {\n timestamp\n txId\n block {\n height\n }\n cancelledBy {\n id\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n ': typeof types.GetRecentCancelledReversibleTransactionsDocument; - '\n query GetCancelledReversibleTransactionsStats(\n $startDate: DateTime!\n $endDate: DateTime!\n ) {\n last24Hour: cancelledReversibleTransfersConnection(\n orderBy: id_ASC\n where: { timestamp_gte: $startDate, timestamp_lte: $endDate }\n ) {\n totalCount\n }\n allTime: cancelledReversibleTransfersConnection(orderBy: id_ASC) {\n totalCount\n }\n }\n ': typeof types.GetCancelledReversibleTransactionsStatsDocument; - '\n query GetCancelledReversibleTransactionByTxId($txId: String!) {\n cancelledReversibleTransactions: cancelledReversibleTransfers(\n where: { txId_eq: $txId }\n ) {\n timestamp\n txId\n block {\n height\n }\n cancelledBy {\n id\n }\n extrinsic {\n id\n pallet\n call\n }\n scheduledTransfer {\n amount\n scheduledAt\n fee\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n ': typeof types.GetCancelledReversibleTransactionByTxIdDocument; - '\n query GetStatus {\n status: squidStatus {\n hash\n height\n finalizedHeight\n finalizedHash\n }\n }\n ': typeof types.GetStatusDocument; - '\n query GetErrorEvents(\n $limit: Int\n $offset: Int\n $orderBy: [ErrorEventOrderByInput!]\n $where: ErrorEventWhereInput\n ) {\n errorEvents(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n errorDocs\n errorModule\n errorName\n errorType\n extrinsic {\n id\n pallet\n call\n }\n id\n timestamp\n block {\n height\n }\n }\n meta: errorEventsConnection(orderBy: id_ASC, where: $where) {\n totalCount\n }\n }\n ': typeof types.GetErrorEventsDocument; - '\n query GetRecentErrorEvents(\n $limit: Int\n $offset: Int\n $orderBy: [ErrorEventOrderByInput!]\n $where: ErrorEventWhereInput\n ) {\n errorEvents(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n errorDocs\n errorModule\n errorName\n errorType\n extrinsic {\n id\n pallet\n call\n }\n id\n timestamp\n block {\n height\n }\n }\n }\n ': typeof types.GetRecentErrorEventsDocument; - '\n query GetErrorEventsStats($startDate: DateTime!, $endDate: DateTime!) {\n last24Hour: errorEventsConnection(\n orderBy: id_ASC\n where: { timestamp_gte: $startDate, timestamp_lte: $endDate }\n ) {\n totalCount\n }\n allTime: errorEventsConnection(orderBy: id_ASC) {\n totalCount\n }\n }\n ': typeof types.GetErrorEventsStatsDocument; - '\n query GetErrorEventByHash($hash: String!) {\n errorEvents: errorEvents(where: { extrinsic: { id_eq: $hash } }) {\n errorDocs\n errorModule\n errorName\n errorType\n extrinsic {\n id\n pallet\n call\n }\n id\n timestamp\n block {\n height\n }\n }\n }\n ': typeof types.GetErrorEventByHashDocument; - '\n query GetExecutedReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [ExecutedReversibleTransferOrderByInput!]\n $where: ExecutedReversibleTransferWhereInput\n ) {\n executedReversibleTransactions: executedReversibleTransfers(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n timestamp\n txId\n block {\n height\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n meta: executedReversibleTransfersConnection(\n orderBy: id_ASC\n where: $where\n ) {\n totalCount\n }\n }\n ': typeof types.GetExecutedReversibleTransactionsDocument; - '\n query GetRecentExecutedReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [ExecutedReversibleTransferOrderByInput!]\n ) {\n executedReversibleTransactions: executedReversibleTransfers(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n ) {\n timestamp\n txId\n block {\n height\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n ': typeof types.GetRecentExecutedReversibleTransactionsDocument; - '\n query GetExecutedReversibleTransactionsStats(\n $startDate: DateTime!\n $endDate: DateTime!\n ) {\n last24Hour: executedReversibleTransfersConnection(\n orderBy: id_ASC\n where: { timestamp_gte: $startDate, timestamp_lte: $endDate }\n ) {\n totalCount\n }\n allTime: executedReversibleTransfersConnection(orderBy: id_ASC) {\n totalCount\n }\n }\n ': typeof types.GetExecutedReversibleTransactionsStatsDocument; - '\n query GetExecutedReversibleTransactionByTxId($txId: String!) {\n executedReversibleTransactions: executedReversibleTransfers(\n where: { txId_eq: $txId }\n ) {\n timestamp\n txId\n block {\n height\n }\n scheduledTransfer {\n amount\n scheduledAt\n fee\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n ': typeof types.GetExecutedReversibleTransactionByTxIdDocument; - '\n query GetHighSecuritySets(\n $limit: Int\n $offset: Int\n $orderBy: [HighSecuritySetOrderByInput!]\n $where: HighSecuritySetWhereInput\n ) {\n highSecuritySets(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n id\n extrinsic {\n id\n pallet\n call\n }\n who {\n id\n }\n interceptor {\n id\n }\n timestamp\n delay\n block {\n height\n }\n }\n meta: highSecuritySetsConnection(orderBy: id_ASC, where: $where) {\n totalCount\n }\n }\n ': typeof types.GetHighSecuritySetsDocument; - '\n query GetRecentHighSecuritySets(\n $limit: Int\n $offset: Int\n $orderBy: [HighSecuritySetOrderByInput!]\n $where: HighSecuritySetWhereInput\n ) {\n highSecuritySets(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n id\n extrinsic {\n id\n pallet\n call\n }\n who {\n id\n }\n interceptor {\n id\n }\n timestamp\n delay\n block {\n height\n }\n }\n }\n ': typeof types.GetRecentHighSecuritySetsDocument; - '\n query GetHighSecuritySetsStats(\n $startDate: DateTime!\n $endDate: DateTime!\n ) {\n last24Hour: highSecuritySetsConnection(\n orderBy: id_ASC\n where: { timestamp_gte: $startDate, timestamp_lte: $endDate }\n ) {\n totalCount\n }\n allTime: highSecuritySetsConnection(orderBy: id_ASC) {\n totalCount\n }\n }\n ': typeof types.GetHighSecuritySetsStatsDocument; - '\n query GetHighSecuritySetByHash($hash: String!) {\n highSecuritySets(where: { extrinsic: { id_eq: $hash } }) {\n id\n extrinsic {\n id\n pallet\n call\n }\n who {\n id\n }\n interceptor {\n id\n }\n timestamp\n delay\n block {\n height\n }\n }\n }\n ': typeof types.GetHighSecuritySetByHashDocument; - '\n query GetMinerLeaderboard($limit: Int, $offset: Int) {\n leaderboardEntries: minerStats(\n limit: $limit\n offset: $offset\n orderBy: totalMinedBlocks_DESC\n ) {\n id\n totalMinedBlocks\n totalRewards\n }\n meta: minerStatsConnection(orderBy: id_ASC) {\n totalCount\n }\n }\n ': typeof types.GetMinerLeaderboardDocument; - '\n query GetMinerRewards(\n $limit: Int\n $offset: Int\n $orderBy: [MinerRewardOrderByInput!]\n $where: MinerRewardWhereInput\n ) {\n minerRewards(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n meta: minerRewardsConnection(orderBy: id_ASC, where: $where) {\n totalCount\n }\n }\n ': typeof types.GetMinerRewardsDocument; - '\n query GetRecentMinerRewards(\n $limit: Int\n $offset: Int\n $orderBy: [MinerRewardOrderByInput!]\n $where: MinerRewardWhereInput\n ) {\n minerRewards(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n }\n ': typeof types.GetRecentMinerRewardsDocument; - '\n query GetMinerRewardsStats($startDate: DateTime!, $endDate: DateTime!) {\n last24Hour: minerRewardsConnection(\n orderBy: id_ASC\n where: { timestamp_gte: $startDate, timestamp_lte: $endDate }\n ) {\n totalCount\n }\n allTime: minerRewardsConnection(orderBy: id_ASC) {\n totalCount\n }\n }\n ': typeof types.GetMinerRewardsStatsDocument; - '\n query GetMinerRewardByHash($hash: String!) {\n minerRewards(where: { block: { hash_eq: $hash } }) {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n }\n ': typeof types.GetMinerRewardByHashDocument; - '\n query GetScheduledReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [ScheduledReversibleTransferOrderByInput!]\n $where: ScheduledReversibleTransferWhereInput\n ) {\n scheduledReversibleTransactions: scheduledReversibleTransfers(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n meta: scheduledReversibleTransfersConnection(\n orderBy: id_ASC\n where: $where\n ) {\n totalCount\n }\n }\n ': typeof types.GetScheduledReversibleTransactionsDocument; - '\n query GetRecentScheduledReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [ScheduledReversibleTransferOrderByInput!]\n ) {\n scheduledReversibleTransactions: scheduledReversibleTransfers(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n ) {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n ': typeof types.GetRecentScheduledReversibleTransactionsDocument; - '\n query GetScheduledReversibleTransactionsStats(\n $startDate: DateTime!\n $endDate: DateTime!\n ) {\n last24Hour: scheduledReversibleTransfersConnection(\n orderBy: id_ASC\n where: { timestamp_gte: $startDate, timestamp_lte: $endDate }\n ) {\n totalCount\n }\n allTime: scheduledReversibleTransfersConnection(orderBy: id_ASC) {\n totalCount\n }\n }\n ': typeof types.GetScheduledReversibleTransactionsStatsDocument; - '\n query GetScheduledReversibleTransactionByTxId($txId: String!) {\n scheduledReversibleTransactions: scheduledReversibleTransfers(\n where: { txId_eq: $txId }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n ': typeof types.GetScheduledReversibleTransactionByTxIdDocument; - '\n query SearchAll($keyword: String, $keyword_number: Int, $limit: Int) {\n transactions: transfers(\n limit: $limit\n where: { extrinsic: { id_startsWith: $keyword } }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n }\n scheduledReversibleTransactions: scheduledReversibleTransfers(\n limit: $limit\n where: { txId_startsWith: $keyword }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n txId\n }\n executedReversibleTransactions: executedReversibleTransfers(\n limit: $limit\n where: { txId_startsWith: $keyword }\n ) {\n txId\n }\n cancelledReversibleTransactions: cancelledReversibleTransfers(\n limit: $limit\n where: { txId_startsWith: $keyword }\n ) {\n txId\n }\n accounts(limit: $limit, where: { id_startsWith: $keyword }) {\n id\n }\n blocks(\n limit: $limit\n where: {\n hash_startsWith: $keyword\n OR: { height_eq: $keyword_number }\n }\n ) {\n height\n }\n highSecuritySets(\n limit: $limit\n where: { extrinsic: { id_startsWith: $keyword } }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n }\n minerRewards(\n limit: $limit\n where: { block: { hash_startsWith: $keyword } }\n ) {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n errorEvents(\n limit: $limit\n where: {\n errorType_containsInsensitive: $keyword\n OR: { errorName_containsInsensitive: $keyword }\n }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n }\n }\n ': typeof types.SearchAllDocument; - '\n query GetTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [TransferOrderByInput!]\n $where: TransferWhereInput\n ) {\n transactions: transfers(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n fee\n extrinsic {\n id\n pallet\n call\n }\n block {\n height\n }\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n }\n meta: transfersConnection(orderBy: id_ASC, where: $where) {\n totalCount\n }\n }\n ': typeof types.GetTransactionsDocument; - '\n query GetRecentTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [TransferOrderByInput!]\n $where: TransferWhereInput\n ) {\n transactions: transfers(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n fee\n extrinsic {\n id\n pallet\n call\n }\n block {\n height\n }\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n }\n }\n ': typeof types.GetRecentTransactionsDocument; - '\n query GetTransactionsStats($startDate: DateTime!, $endDate: DateTime!) {\n last24Hour: transfersConnection(\n orderBy: id_ASC\n where: {\n timestamp_gte: $startDate\n timestamp_lte: $endDate\n extrinsic_isNull: false\n }\n ) {\n totalCount\n }\n allTime: transfersConnection(\n orderBy: id_ASC\n where: { extrinsic_isNull: false }\n ) {\n totalCount\n }\n allTime: transfersConnection(\n orderBy: id_ASC\n where: { extrinsic_isNull: false }\n ) {\n totalCount\n }\n }\n ': typeof types.GetTransactionsStatsDocument; - '\n query GetExtrinsicByHash($hash: String!) {\n extrinsics(where: { id_eq: $hash }) {\n id\n pallet\n call\n success\n fee\n timestamp\n indexInBlock\n signer {\n id\n }\n block {\n height\n }\n }\n transfers(\n where: { extrinsic: { id_eq: $hash } }\n orderBy: timestamp_ASC\n ) {\n id\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n }\n }\n ': typeof types.GetExtrinsicByHashDocument; - '\n query GetWormholeExtrinsics(\n $limit: Int\n $offset: Int\n $orderBy: [WormholeExtrinsicOrderByInput!]!\n $where: WormholeExtrinsicWhereInput\n ) {\n wormholeExtrinsics(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n id\n extrinsic {\n id\n pallet\n call\n }\n totalAmount\n outputCount\n timestamp\n privacyScore\n privacyLabel\n block {\n height\n }\n }\n meta: wormholeExtrinsicsConnection(orderBy: id_ASC) {\n totalCount\n }\n }\n': typeof types.GetWormholeExtrinsicsDocument; - '\n query GetWormholeExtrinsicById($id: String!) {\n wormholeExtrinsicById(id: $id) {\n id\n extrinsic {\n id\n pallet\n call\n }\n totalAmount\n outputCount\n timestamp\n privacyScore\n privacyScore01Pct\n privacyScore1Pct\n privacyScore5Pct\n privacyLabel\n poolSnapshot\n block {\n id\n height\n hash\n timestamp\n }\n outputs {\n id\n exitAccount {\n id\n }\n amount\n }\n }\n wormholeNullifiers(\n where: { wormholeExtrinsic: { extrinsic: { id_eq: $id } } }\n ) {\n nullifier\n nullifierHash\n }\n }\n': typeof types.GetWormholeExtrinsicByIdDocument; - '\n query GetDepositPoolStats {\n depositPoolStatsById(id: "global") {\n lastUpdatedBlock\n buckets\n }\n }\n': typeof types.GetDepositPoolStatsDocument; + '\n query GetAccounts(\n $limit: Int\n $offset: Int\n $orderBy: [account_order_by!]\n ) {\n accounts: account(limit: $limit, offset: $offset, order_by: $orderBy) {\n id\n free\n frozen\n reserved\n }\n meta: chain_stats_by_pk(id: "global") {\n totalCount: total_accounts\n }\n }\n ': typeof types.GetAccountsDocument; + '\n query GetAccountById($id: String!, $limit: Int!) {\n account: account_by_pk(id: $id) {\n id\n free\n frozen\n reserved\n }\n accountStats: account_stats_by_pk(id: $id) {\n total_cancelled_transfers\n total_executed_transfers\n total_immediate_transfers\n total_mined_blocks\n total_rewards\n total_scheduled_transfers\n }\n accountEvents: account_event(\n limit: $limit\n where: { account_id: { _eq: $id } }\n ) {\n transfer {\n fee\n extrinsic {\n id\n pallet\n call\n }\n block {\n height\n }\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n }\n scheduledReversibleTransfer {\n extrinsic {\n id\n pallet\n call\n }\n timestamp\n amount\n timestamp\n scheduled_at\n tx_id\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n executedReversibleTransfer {\n timestamp\n tx_id\n block {\n height\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduled_at\n tx_id\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n cancelledReversibleTransfer {\n timestamp\n tx_id\n block {\n height\n }\n cancelledBy {\n id\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduled_at\n tx_id\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n minerReward {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n }\n\n guardian: high_security_set_aggregate(\n order_by: { timestamp: desc }\n limit: $limit\n where: { who: { id: { _eq: $id } } }\n ) {\n nodes {\n timestamp\n block {\n height\n }\n interceptor {\n id\n free\n frozen\n reserved\n }\n }\n aggregate {\n totalCount: count\n }\n }\n\n beneficiaries: high_security_set_aggregate(\n order_by: { timestamp: desc }\n limit: $limit\n where: { interceptor: { id: { _eq: $id } } }\n ) {\n nodes {\n timestamp\n block {\n height\n }\n who {\n id\n free\n frozen\n reserved\n }\n }\n aggregate {\n totalCount: count\n }\n }\n\n wormholeOutputs: wormhole_output(\n order_by: { wormholeExtrinsic: { timestamp: desc } }\n limit: $limit\n where: { exitAccount: { id: { _eq: $id } } }\n ) {\n id\n amount\n exitAccount {\n id\n }\n wormholeExtrinsic {\n id\n extrinsic {\n id\n pallet\n call\n }\n total_amount\n output_count\n timestamp\n block {\n height\n }\n outputs {\n id\n exitAccount {\n id\n }\n amount\n }\n }\n }\n }\n ': typeof types.GetAccountByIdDocument; + '\n query GetAccountsStats($startDate: timestamptz!, $endDate: timestamptz!) {\n all: chain_stats_by_pk(id: "global") {\n total_accounts\n }\n\n recentlyActive: account_aggregate(\n where: {\n transfersFrom: { timestamp: { _gte: $startDate, _lte: $endDate } }\n }\n ) {\n aggregate {\n count\n }\n }\n\n recentlyDeposited: account_aggregate(\n where: {\n transfersTo: { timestamp: { _gte: $startDate, _lte: $endDate } }\n }\n ) {\n aggregate {\n count\n }\n }\n }\n ': typeof types.GetAccountsStatsDocument; + '\n query GetBlocks(\n $limit: Int\n $offset: Int\n $orderBy: [block_order_by!]!\n $where: block_bool_exp\n ) {\n blocks: block(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n id\n hash\n height\n reward\n timestamp\n extrinsics {\n id\n }\n }\n meta: chain_stats_by_pk(id: "global") {\n totalCount: block_height\n }\n }\n ': typeof types.GetBlocksDocument; + '\n query GetRecentBlocks(\n $limit: Int\n $offset: Int\n $orderBy: [block_order_by!]\n ) {\n blocks: block(limit: $limit, offset: $offset, order_by: $orderBy) {\n id\n hash\n height\n reward\n timestamp\n extrinsics {\n id\n }\n }\n }\n ': typeof types.GetRecentBlocksDocument; + '\n query GetBlockById($height: Int!, $hash: String!) {\n blocks: block(\n where: {\n _or: [{ height: { _eq: $height } }, { hash: { _eq: $hash } }]\n }\n ) {\n id\n hash\n height\n reward\n timestamp\n extrinsics(order_by: { index_in_block: asc }) {\n id\n pallet\n call\n success\n fee\n timestamp\n index_in_block: index_in_block\n signer {\n id\n }\n }\n }\n minerRewards: miner_reward(\n where: {\n block: {\n _or: [{ height: { _eq: $height } }, { hash: { _eq: $hash } }]\n }\n }\n ) {\n reward\n timestamp\n miner {\n id\n }\n block {\n height\n hash\n }\n }\n }\n ': typeof types.GetBlockByIdDocument; + '\n query GetBlockStats($startDate: timestamptz!, $endDate: timestamptz!) {\n chain: chain_stats_by_pk(id: "global") {\n block_height\n finalized_block_height\n }\n minedIn24Hours: block_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n }\n ': typeof types.GetBlockStatsDocument; + '\n query GetCancelledReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [cancelled_reversible_transfer_order_by!]\n $where: cancelled_reversible_transfer_bool_exp\n ) {\n cancelledReversibleTransactions: cancelled_reversible_transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n timestamp\n tx_id\n block {\n height\n }\n cancelledBy {\n id\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduled_at\n tx_id\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n meta: cancelled_reversible_transfer_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ': typeof types.GetCancelledReversibleTransactionsDocument; + '\n query GetRecentCancelledReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [cancelled_reversible_transfer_order_by!]\n ) {\n cancelledReversibleTransactions: cancelled_reversible_transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n ) {\n timestamp\n tx_id\n block {\n height\n }\n cancelledBy {\n id\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduled_at\n tx_id\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n ': typeof types.GetRecentCancelledReversibleTransactionsDocument; + '\n query GetCancelledReversibleTransactionsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: cancelled_reversible_transfer_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_cancelled_transfers\n }\n }\n ': typeof types.GetCancelledReversibleTransactionsStatsDocument; + '\n query GetCancelledReversibleTransactionByTxId($tx_id: String!) {\n cancelledReversibleTransactions: cancelled_reversible_transfer(\n where: { tx_id: { _eq: $tx_id } }\n ) {\n timestamp\n tx_id\n block {\n height\n }\n cancelledBy {\n id\n }\n extrinsic {\n id\n pallet\n call\n }\n scheduledTransfer {\n amount\n scheduled_at\n fee\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n ': typeof types.GetCancelledReversibleTransactionByTxIdDocument; + '\n query GetStatus {\n status: chain_stats_by_pk(id: "global") {\n block_height\n total_accounts\n total_deposit_accounts\n total_executed_transfers\n total_immediate_transfers\n total_scheduled_transfers\n total_cancelled_transfers\n }\n }\n ': typeof types.GetStatusDocument; + '\n query GetErrorEvents(\n $limit: Int\n $offset: Int\n $orderBy: [error_event_order_by!]\n $where: error_event_bool_exp\n ) {\n errorEvents: error_event(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n error_docs\n error_module\n error_name\n error_type\n extrinsic {\n id\n pallet\n call\n }\n id\n timestamp\n block {\n height\n }\n }\n meta: error_event_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ': typeof types.GetErrorEventsDocument; + '\n query GetRecentErrorEvents(\n $limit: Int\n $offset: Int\n $orderBy: [error_event_order_by!]\n $where: error_event_bool_exp\n ) {\n errorEvents: error_event(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n error_docs\n error_module\n error_name\n error_type\n extrinsic {\n id\n pallet\n call\n }\n id\n timestamp\n block {\n height\n }\n }\n }\n ': typeof types.GetRecentErrorEventsDocument; + '\n query GetErrorEventsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: error_event_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_error_events\n }\n }\n ': typeof types.GetErrorEventsStatsDocument; + '\n query GetErrorEventByHash($hash: String!) {\n errorEvents: error_event(where: { extrinsic: { id: { _eq: $hash } } }) {\n error_docs\n error_module\n error_name\n error_type\n extrinsic {\n id\n pallet\n call\n }\n id\n timestamp\n block {\n height\n }\n }\n }\n ': typeof types.GetErrorEventByHashDocument; + '\n query GetExecutedReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [executed_reversible_transfer_order_by!]\n $where: executed_reversible_transfer_bool_exp\n ) {\n executedReversibleTransactions: executed_reversible_transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n timestamp\n tx_id\n block {\n height\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduled_at\n tx_id\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n meta: executed_reversible_transfer_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ': typeof types.GetExecutedReversibleTransactionsDocument; + '\n query GetRecentExecutedReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [executed_reversible_transfer_order_by!]\n ) {\n executedReversibleTransactions: executed_reversible_transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n ) {\n timestamp\n tx_id\n block {\n height\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduled_at\n tx_id\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n ': typeof types.GetRecentExecutedReversibleTransactionsDocument; + '\n query GetExecutedReversibleTransactionsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: executed_reversible_transfer_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_executed_transfers\n }\n }\n ': typeof types.GetExecutedReversibleTransactionsStatsDocument; + '\n query GetExecutedReversibleTransactionByTxId($tx_id: String!) {\n executedReversibleTransactions: executed_reversible_transfer(\n where: { tx_id: { _eq: $tx_id } }\n ) {\n timestamp\n tx_id\n block {\n height\n }\n scheduledTransfer {\n amount\n scheduled_at\n fee\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n ': typeof types.GetExecutedReversibleTransactionByTxIdDocument; + '\n query GetHighSecuritySets(\n $limit: Int\n $offset: Int\n $orderBy: [high_security_set_order_by!]\n $where: high_security_set_bool_exp\n ) {\n highSecuritySets: high_security_set(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n id\n extrinsic {\n id\n pallet\n call\n }\n who {\n id\n }\n interceptor {\n id\n }\n timestamp\n delay\n block {\n height\n }\n }\n meta: high_security_set_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ': typeof types.GetHighSecuritySetsDocument; + '\n query GetRecentHighSecuritySets(\n $limit: Int\n $offset: Int\n $orderBy: [high_security_set_order_by!]\n $where: high_security_set_bool_exp\n ) {\n highSecuritySets: high_security_set(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n id\n extrinsic {\n id\n pallet\n call\n }\n who {\n id\n }\n interceptor {\n id\n }\n timestamp\n delay\n block {\n height\n }\n }\n }\n ': typeof types.GetRecentHighSecuritySetsDocument; + '\n query GetHighSecuritySetsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: high_security_set_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_high_security_sets\n }\n }\n ': typeof types.GetHighSecuritySetsStatsDocument; + '\n query GetHighSecuritySetByHash($hash: String!) {\n highSecuritySets: high_security_set(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n id\n extrinsic {\n id\n pallet\n call\n }\n who {\n id\n }\n interceptor {\n id\n }\n timestamp\n delay\n block {\n height\n }\n }\n }\n ': typeof types.GetHighSecuritySetByHashDocument; + '\n query GetMinerLeaderboard($limit: Int, $offset: Int) {\n leaderboardEntries: account_stats(\n limit: $limit\n offset: $offset\n order_by: { total_rewards: desc }\n ) {\n id\n total_mined_blocks\n total_rewards\n }\n meta: chain_stats_by_pk(id: "global") {\n totalCount: total_miner_rewards\n }\n }\n ': typeof types.GetMinerLeaderboardDocument; + '\n query GetMinerRewards(\n $limit: Int\n $offset: Int\n $orderBy: [miner_reward_order_by!]\n $where: miner_reward_bool_exp\n ) {\n minerRewards: miner_reward(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n meta: miner_reward_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ': typeof types.GetMinerRewardsDocument; + '\n query GetRecentMinerRewards(\n $limit: Int\n $offset: Int\n $orderBy: [miner_reward_order_by!]\n $where: miner_reward_bool_exp\n ) {\n minerRewards: miner_reward(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n }\n ': typeof types.GetRecentMinerRewardsDocument; + '\n query GetMinerRewardsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: miner_reward_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_miner_rewards\n }\n }\n ': typeof types.GetMinerRewardsStatsDocument; + '\n query GetMinerRewardByHash($hash: String!) {\n minerRewards: miner_reward(where: { block: { hash: { _eq: $hash } } }) {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n }\n ': typeof types.GetMinerRewardByHashDocument; + '\n query GetScheduledReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [scheduled_reversible_transfer_order_by!]\n $where: scheduled_reversible_transfer_bool_exp\n ) {\n scheduledReversibleTransactions: scheduled_reversible_transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduled_at\n tx_id\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n meta: scheduled_reversible_transfer_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ': typeof types.GetScheduledReversibleTransactionsDocument; + '\n query GetRecentScheduledReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [scheduled_reversible_transfer_order_by!]\n ) {\n scheduledReversibleTransactions: scheduled_reversible_transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n ) {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduled_at\n tx_id\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n ': typeof types.GetRecentScheduledReversibleTransactionsDocument; + '\n query GetScheduledReversibleTransactionsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: scheduled_reversible_transfer_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_scheduled_transfers\n }\n }\n ': typeof types.GetScheduledReversibleTransactionsStatsDocument; + '\n query GetScheduledReversibleTransactionByTxId($tx_id: String!) {\n scheduledReversibleTransactions: scheduled_reversible_transfer(\n where: { tx_id: { _eq: $tx_id } }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduled_at\n tx_id\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n ': typeof types.GetScheduledReversibleTransactionByTxIdDocument; + '\n query SearchAll($keyword: String, $keyword_number: Int, $limit: Int) {\n transactions: transfer(\n limit: $limit\n where: { extrinsic: { id: { _ilike: $keyword } } }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n }\n scheduledReversibleTransactions: scheduled_reversible_transfer(\n limit: $limit\n where: { tx_id: { _ilike: $keyword } }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n tx_id\n }\n executedReversibleTransactions: executed_reversible_transfer(\n limit: $limit\n where: { tx_id: { _ilike: $keyword } }\n ) {\n tx_id\n }\n cancelledReversibleTransactions: cancelled_reversible_transfer(\n limit: $limit\n where: { tx_id: { _ilike: $keyword } }\n ) {\n tx_id\n }\n accounts: account(limit: $limit, where: { id: { _ilike: $keyword } }) {\n id\n }\n blocks: block(\n limit: $limit\n where: {\n _or: [\n { hash: { _ilike: $keyword } }\n { height: { _eq: $keyword_number } }\n ]\n }\n ) {\n height\n }\n highSecuritySets: high_security_set(\n limit: $limit\n where: { extrinsic: { id: { _ilike: $keyword } } }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n }\n minerRewards: miner_reward(\n limit: $limit\n where: { block: { hash: { _ilike: $keyword } } }\n ) {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n errorEvents: error_event(\n limit: $limit\n where: {\n _or: [\n { error_type: { _ilike: $keyword } }\n { error_name: { _ilike: $keyword } }\n ]\n }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n }\n }\n ': typeof types.SearchAllDocument; + '\n query GetTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [transfer_order_by!]\n $where: transfer_bool_exp\n ) {\n transactions: transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n fee\n extrinsic {\n id\n pallet\n call\n }\n block {\n height\n }\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n }\n meta: transfer_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ': typeof types.GetTransactionsDocument; + '\n query GetRecentTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [transfer_order_by!]\n $where: transfer_bool_exp\n ) {\n transactions: transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n fee\n extrinsic {\n id\n pallet\n call\n }\n block {\n height\n }\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n }\n }\n ': typeof types.GetRecentTransactionsDocument; + '\n query GetTransactionsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: transfer_aggregate(\n where: {\n timestamp: { _gte: $startDate, _lte: $endDate }\n extrinsic_id: { _is_null: false }\n }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_immediate_transfers\n }\n }\n ': typeof types.GetTransactionsStatsDocument; + '\n query GetExtrinsicByHash($hash: String!) {\n extrinsics: extrinsic(where: { id: { _eq: $hash } }) {\n id\n pallet\n call\n success\n fee\n timestamp\n index_in_block\n signer {\n id\n }\n block {\n height\n }\n }\n transfers: transfer(\n where: { extrinsic: { id: { _eq: $hash } } }\n order_by: { timestamp: asc }\n ) {\n id\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n }\n }\n ': typeof types.GetExtrinsicByHashDocument; + '\n query GetWormholeExtrinsics(\n $limit: Int\n $offset: Int\n $orderBy: [wormhole_extrinsic_order_by!]!\n $where: wormhole_extrinsic_bool_exp\n ) {\n wormholeExtrinsics: wormhole_extrinsic(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n id\n extrinsic {\n id\n pallet\n call\n }\n total_amount\n output_count\n timestamp\n privacy_score\n privacy_label\n block {\n height\n }\n }\n meta: wormhole_extrinsic_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n': typeof types.GetWormholeExtrinsicsDocument; + '\n query GetWormholeExtrinsicById($id: String!) {\n wormholeExtrinsicById: wormhole_extrinsic_by_pk(id: $id) {\n id\n extrinsic {\n id\n pallet\n call\n }\n total_amount\n output_count\n timestamp\n privacy_score\n privacy_score01_pct\n privacy_score1_pct\n privacy_score5_pct\n privacy_label\n pool_snapshot\n block {\n id\n height\n hash\n timestamp\n }\n outputs {\n id\n exitAccount {\n id\n }\n amount\n }\n }\n wormholeNullifiers: wormhole_nullifier(\n where: { wormholeExtrinsic: { id: { _eq: $id } } }\n ) {\n nullifier\n nullifier_hash\n }\n }\n': typeof types.GetWormholeExtrinsicByIdDocument; + '\n query GetDepositPoolStats {\n depositPoolStatsById: deposit_pool_stats_by_pk(id: "global") {\n last_updated_block\n buckets\n }\n }\n': typeof types.GetDepositPoolStatsDocument; }; const documents: Documents = { - '\n query GetAccounts(\n $limit: Int\n $offset: Int\n $orderBy: [AccountOrderByInput!]\n ) {\n accounts(limit: $limit, offset: $offset, orderBy: $orderBy) {\n id\n free\n frozen\n reserved\n }\n meta: accountsConnection(orderBy: id_ASC) {\n totalCount\n }\n }\n ': + '\n query GetAccounts(\n $limit: Int\n $offset: Int\n $orderBy: [account_order_by!]\n ) {\n accounts: account(limit: $limit, offset: $offset, order_by: $orderBy) {\n id\n free\n frozen\n reserved\n }\n meta: chain_stats_by_pk(id: "global") {\n totalCount: total_accounts\n }\n }\n ': types.GetAccountsDocument, - '\n query GetAccountById($id: String!, $limit: Int!) {\n account: accountById(id: $id) {\n id\n free\n frozen\n reserved\n }\n transactions: transfersConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n extrinsic_isNull: false\n AND: { from: { id_eq: $id }, OR: { to: { id_eq: $id } } }\n }\n ) {\n edges {\n node {\n fee\n extrinsic {\n id\n pallet\n call\n }\n block {\n height\n }\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n }\n }\n\n totalCount\n }\n scheduledReversibleTransactions: scheduledReversibleTransfersConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: { from: { id_eq: $id }, OR: { to: { id_eq: $id } } }\n ) {\n edges {\n node {\n extrinsic {\n id\n pallet\n call\n }\n timestamp\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n totalCount\n }\n executedReversibleTransactions: executedReversibleTransfersConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n scheduledTransfer: {\n from: { id_eq: $id }\n OR: { to: { id_eq: $id } }\n }\n }\n ) {\n edges {\n node {\n timestamp\n txId\n block {\n height\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n totalCount\n }\n cancelledReversibleTransactions: cancelledReversibleTransfersConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n scheduledTransfer: {\n from: { id_eq: $id }\n OR: { to: { id_eq: $id } }\n }\n OR: { cancelledBy: { id_eq: $id } }\n }\n ) {\n edges {\n node {\n timestamp\n txId\n block {\n height\n }\n cancelledBy {\n id\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n totalCount\n }\n minerRewards: minerRewardsConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: { miner: { id_eq: $id } }\n ) {\n edges {\n node {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n }\n\n totalCount\n }\n guardian: highSecuritySetsConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: { who: { id_eq: $id } }\n ) {\n edges {\n node {\n timestamp\n block {\n height\n }\n interceptor {\n id\n free\n frozen\n reserved\n }\n }\n }\n\n totalCount\n }\n beneficiaries: highSecuritySetsConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: { interceptor: { id_eq: $id } }\n ) {\n edges {\n node {\n timestamp\n block {\n height\n }\n who {\n id\n free\n frozen\n reserved\n }\n }\n }\n\n totalCount\n }\n wormholeOutputs: wormholeOutputs(\n orderBy: wormholeExtrinsic_timestamp_DESC\n limit: $limit\n where: { exitAccount: { id_eq: $id } }\n ) {\n id\n amount\n exitAccount {\n id\n }\n wormholeExtrinsic {\n id\n extrinsic {\n id\n pallet\n call\n }\n totalAmount\n outputCount\n timestamp\n block {\n height\n }\n outputs {\n id\n exitAccount {\n id\n }\n amount\n }\n }\n }\n }\n ': + '\n query GetAccountById($id: String!, $limit: Int!) {\n account: account_by_pk(id: $id) {\n id\n free\n frozen\n reserved\n }\n accountStats: account_stats_by_pk(id: $id) {\n total_cancelled_transfers\n total_executed_transfers\n total_immediate_transfers\n total_mined_blocks\n total_rewards\n total_scheduled_transfers\n }\n accountEvents: account_event(\n limit: $limit\n where: { account_id: { _eq: $id } }\n ) {\n transfer {\n fee\n extrinsic {\n id\n pallet\n call\n }\n block {\n height\n }\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n }\n scheduledReversibleTransfer {\n extrinsic {\n id\n pallet\n call\n }\n timestamp\n amount\n timestamp\n scheduled_at\n tx_id\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n executedReversibleTransfer {\n timestamp\n tx_id\n block {\n height\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduled_at\n tx_id\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n cancelledReversibleTransfer {\n timestamp\n tx_id\n block {\n height\n }\n cancelledBy {\n id\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduled_at\n tx_id\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n minerReward {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n }\n\n guardian: high_security_set_aggregate(\n order_by: { timestamp: desc }\n limit: $limit\n where: { who: { id: { _eq: $id } } }\n ) {\n nodes {\n timestamp\n block {\n height\n }\n interceptor {\n id\n free\n frozen\n reserved\n }\n }\n aggregate {\n totalCount: count\n }\n }\n\n beneficiaries: high_security_set_aggregate(\n order_by: { timestamp: desc }\n limit: $limit\n where: { interceptor: { id: { _eq: $id } } }\n ) {\n nodes {\n timestamp\n block {\n height\n }\n who {\n id\n free\n frozen\n reserved\n }\n }\n aggregate {\n totalCount: count\n }\n }\n\n wormholeOutputs: wormhole_output(\n order_by: { wormholeExtrinsic: { timestamp: desc } }\n limit: $limit\n where: { exitAccount: { id: { _eq: $id } } }\n ) {\n id\n amount\n exitAccount {\n id\n }\n wormholeExtrinsic {\n id\n extrinsic {\n id\n pallet\n call\n }\n total_amount\n output_count\n timestamp\n block {\n height\n }\n outputs {\n id\n exitAccount {\n id\n }\n amount\n }\n }\n }\n }\n ': types.GetAccountByIdDocument, - '\n query GetAccountsStats($startDate: DateTime!, $endDate: DateTime!) {\n all: accountsConnection(orderBy: id_ASC) {\n totalCount\n }\n recentlyActive: accountsConnection(\n orderBy: id_ASC\n where: {\n transfersFrom_some: {\n timestamp_gte: $startDate\n timestamp_lte: $endDate\n }\n }\n ) {\n totalCount\n }\n recentlyDeposited: accountsConnection(\n orderBy: id_ASC\n where: {\n transfersTo_some: {\n timestamp_gte: $startDate\n timestamp_lte: $endDate\n }\n }\n ) {\n totalCount\n }\n }\n ': + '\n query GetAccountsStats($startDate: timestamptz!, $endDate: timestamptz!) {\n all: chain_stats_by_pk(id: "global") {\n total_accounts\n }\n\n recentlyActive: account_aggregate(\n where: {\n transfersFrom: { timestamp: { _gte: $startDate, _lte: $endDate } }\n }\n ) {\n aggregate {\n count\n }\n }\n\n recentlyDeposited: account_aggregate(\n where: {\n transfersTo: { timestamp: { _gte: $startDate, _lte: $endDate } }\n }\n ) {\n aggregate {\n count\n }\n }\n }\n ': types.GetAccountsStatsDocument, - '\n query GetBlocks(\n $limit: Int\n $offset: Int\n $orderBy: [BlockOrderByInput!]!\n $where: BlockWhereInput\n ) {\n blocks(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n id\n hash\n height\n reward\n timestamp\n extrinsics {\n id\n }\n }\n meta: blocksConnection(orderBy: id_ASC) {\n totalCount\n }\n }\n ': + '\n query GetBlocks(\n $limit: Int\n $offset: Int\n $orderBy: [block_order_by!]!\n $where: block_bool_exp\n ) {\n blocks: block(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n id\n hash\n height\n reward\n timestamp\n extrinsics {\n id\n }\n }\n meta: chain_stats_by_pk(id: "global") {\n totalCount: block_height\n }\n }\n ': types.GetBlocksDocument, - '\n query GetRecentBlocks(\n $limit: Int\n $offset: Int\n $orderBy: [BlockOrderByInput!]\n ) {\n blocks(limit: $limit, offset: $offset, orderBy: $orderBy) {\n id\n hash\n height\n reward\n timestamp\n extrinsics {\n id\n }\n }\n }\n ': + '\n query GetRecentBlocks(\n $limit: Int\n $offset: Int\n $orderBy: [block_order_by!]\n ) {\n blocks: block(limit: $limit, offset: $offset, order_by: $orderBy) {\n id\n hash\n height\n reward\n timestamp\n extrinsics {\n id\n }\n }\n }\n ': types.GetRecentBlocksDocument, - '\n query GetBlockById($height: Int!, $hash: String!, $limit: Int!) {\n blocks(where: { height_eq: $height, OR: { hash_eq: $hash } }) {\n id\n hash\n height\n reward\n timestamp\n extrinsics(orderBy: indexInBlock_ASC) {\n id\n pallet\n call\n success\n fee\n timestamp\n indexInBlock\n signer {\n id\n }\n }\n }\n minerRewards(\n where: {\n block: { height_eq: $height }\n OR: { block: { hash_eq: $hash } }\n }\n ) {\n reward\n timestamp\n miner {\n id\n }\n block {\n height\n hash\n }\n }\n transactions: transfersConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n extrinsic_isNull: false\n AND: {\n block: { height_eq: $height }\n OR: { block: { hash_eq: $hash } }\n }\n }\n ) {\n edges {\n node {\n fee\n extrinsic {\n id\n pallet\n call\n }\n block {\n height\n }\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n }\n }\n\n totalCount\n }\n scheduledReversibleTransactions: scheduledReversibleTransfersConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n block: { height_eq: $height }\n OR: { block: { hash_eq: $hash } }\n }\n ) {\n edges {\n node {\n extrinsic {\n id\n pallet\n call\n }\n timestamp\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n totalCount\n }\n executedReversibleTransactions: executedReversibleTransfersConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n block: { height_eq: $height }\n OR: { block: { hash_eq: $hash } }\n }\n ) {\n edges {\n node {\n timestamp\n txId\n block {\n height\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n totalCount\n }\n cancelledReversibleTransactions: cancelledReversibleTransfersConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n block: { height_eq: $height }\n OR: { block: { hash_eq: $hash } }\n }\n ) {\n edges {\n node {\n timestamp\n txId\n block {\n height\n }\n cancelledBy {\n id\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n totalCount\n }\n highSecuritySets: highSecuritySetsConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n block: { height_eq: $height }\n OR: { block: { hash_eq: $hash } }\n }\n ) {\n edges {\n node {\n extrinsic {\n id\n pallet\n call\n }\n timestamp\n delay\n block {\n height\n }\n who {\n id\n }\n interceptor {\n id\n }\n }\n }\n\n totalCount\n }\n errorEvents: errorEventsConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n block: { height_eq: $height }\n OR: { block: { hash_eq: $hash } }\n }\n ) {\n edges {\n node {\n errorDocs\n errorModule\n errorName\n errorType\n extrinsic {\n id\n pallet\n call\n }\n timestamp\n block {\n height\n }\n }\n }\n\n totalCount\n }\n wormholeExtrinsics(\n orderBy: timestamp_DESC\n limit: $limit\n where: {\n block: { height_eq: $height }\n OR: { block: { hash_eq: $hash } }\n }\n ) {\n id\n extrinsic {\n id\n pallet\n call\n }\n totalAmount\n outputCount\n timestamp\n block {\n height\n }\n outputs {\n id\n exitAccount {\n id\n }\n amount\n }\n }\n }\n ': + '\n query GetBlockById($height: Int!, $hash: String!) {\n blocks: block(\n where: {\n _or: [{ height: { _eq: $height } }, { hash: { _eq: $hash } }]\n }\n ) {\n id\n hash\n height\n reward\n timestamp\n extrinsics(order_by: { index_in_block: asc }) {\n id\n pallet\n call\n success\n fee\n timestamp\n index_in_block: index_in_block\n signer {\n id\n }\n }\n }\n minerRewards: miner_reward(\n where: {\n block: {\n _or: [{ height: { _eq: $height } }, { hash: { _eq: $hash } }]\n }\n }\n ) {\n reward\n timestamp\n miner {\n id\n }\n block {\n height\n hash\n }\n }\n }\n ': types.GetBlockByIdDocument, - '\n query GetCancelledReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [CancelledReversibleTransferOrderByInput!]\n $where: CancelledReversibleTransferWhereInput\n ) {\n cancelledReversibleTransactions: cancelledReversibleTransfers(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n timestamp\n txId\n block {\n height\n }\n cancelledBy {\n id\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n meta: cancelledReversibleTransfersConnection(\n orderBy: id_ASC\n where: $where\n ) {\n totalCount\n }\n }\n ': + '\n query GetBlockStats($startDate: timestamptz!, $endDate: timestamptz!) {\n chain: chain_stats_by_pk(id: "global") {\n block_height\n finalized_block_height\n }\n minedIn24Hours: block_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n }\n ': + types.GetBlockStatsDocument, + '\n query GetCancelledReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [cancelled_reversible_transfer_order_by!]\n $where: cancelled_reversible_transfer_bool_exp\n ) {\n cancelledReversibleTransactions: cancelled_reversible_transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n timestamp\n tx_id\n block {\n height\n }\n cancelledBy {\n id\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduled_at\n tx_id\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n meta: cancelled_reversible_transfer_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ': types.GetCancelledReversibleTransactionsDocument, - '\n query GetRecentCancelledReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [CancelledReversibleTransferOrderByInput!]\n ) {\n cancelledReversibleTransactions: cancelledReversibleTransfers(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n ) {\n timestamp\n txId\n block {\n height\n }\n cancelledBy {\n id\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n ': + '\n query GetRecentCancelledReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [cancelled_reversible_transfer_order_by!]\n ) {\n cancelledReversibleTransactions: cancelled_reversible_transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n ) {\n timestamp\n tx_id\n block {\n height\n }\n cancelledBy {\n id\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduled_at\n tx_id\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n ': types.GetRecentCancelledReversibleTransactionsDocument, - '\n query GetCancelledReversibleTransactionsStats(\n $startDate: DateTime!\n $endDate: DateTime!\n ) {\n last24Hour: cancelledReversibleTransfersConnection(\n orderBy: id_ASC\n where: { timestamp_gte: $startDate, timestamp_lte: $endDate }\n ) {\n totalCount\n }\n allTime: cancelledReversibleTransfersConnection(orderBy: id_ASC) {\n totalCount\n }\n }\n ': + '\n query GetCancelledReversibleTransactionsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: cancelled_reversible_transfer_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_cancelled_transfers\n }\n }\n ': types.GetCancelledReversibleTransactionsStatsDocument, - '\n query GetCancelledReversibleTransactionByTxId($txId: String!) {\n cancelledReversibleTransactions: cancelledReversibleTransfers(\n where: { txId_eq: $txId }\n ) {\n timestamp\n txId\n block {\n height\n }\n cancelledBy {\n id\n }\n extrinsic {\n id\n pallet\n call\n }\n scheduledTransfer {\n amount\n scheduledAt\n fee\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n ': + '\n query GetCancelledReversibleTransactionByTxId($tx_id: String!) {\n cancelledReversibleTransactions: cancelled_reversible_transfer(\n where: { tx_id: { _eq: $tx_id } }\n ) {\n timestamp\n tx_id\n block {\n height\n }\n cancelledBy {\n id\n }\n extrinsic {\n id\n pallet\n call\n }\n scheduledTransfer {\n amount\n scheduled_at\n fee\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n ': types.GetCancelledReversibleTransactionByTxIdDocument, - '\n query GetStatus {\n status: squidStatus {\n hash\n height\n finalizedHeight\n finalizedHash\n }\n }\n ': + '\n query GetStatus {\n status: chain_stats_by_pk(id: "global") {\n block_height\n total_accounts\n total_deposit_accounts\n total_executed_transfers\n total_immediate_transfers\n total_scheduled_transfers\n total_cancelled_transfers\n }\n }\n ': types.GetStatusDocument, - '\n query GetErrorEvents(\n $limit: Int\n $offset: Int\n $orderBy: [ErrorEventOrderByInput!]\n $where: ErrorEventWhereInput\n ) {\n errorEvents(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n errorDocs\n errorModule\n errorName\n errorType\n extrinsic {\n id\n pallet\n call\n }\n id\n timestamp\n block {\n height\n }\n }\n meta: errorEventsConnection(orderBy: id_ASC, where: $where) {\n totalCount\n }\n }\n ': + '\n query GetErrorEvents(\n $limit: Int\n $offset: Int\n $orderBy: [error_event_order_by!]\n $where: error_event_bool_exp\n ) {\n errorEvents: error_event(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n error_docs\n error_module\n error_name\n error_type\n extrinsic {\n id\n pallet\n call\n }\n id\n timestamp\n block {\n height\n }\n }\n meta: error_event_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ': types.GetErrorEventsDocument, - '\n query GetRecentErrorEvents(\n $limit: Int\n $offset: Int\n $orderBy: [ErrorEventOrderByInput!]\n $where: ErrorEventWhereInput\n ) {\n errorEvents(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n errorDocs\n errorModule\n errorName\n errorType\n extrinsic {\n id\n pallet\n call\n }\n id\n timestamp\n block {\n height\n }\n }\n }\n ': + '\n query GetRecentErrorEvents(\n $limit: Int\n $offset: Int\n $orderBy: [error_event_order_by!]\n $where: error_event_bool_exp\n ) {\n errorEvents: error_event(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n error_docs\n error_module\n error_name\n error_type\n extrinsic {\n id\n pallet\n call\n }\n id\n timestamp\n block {\n height\n }\n }\n }\n ': types.GetRecentErrorEventsDocument, - '\n query GetErrorEventsStats($startDate: DateTime!, $endDate: DateTime!) {\n last24Hour: errorEventsConnection(\n orderBy: id_ASC\n where: { timestamp_gte: $startDate, timestamp_lte: $endDate }\n ) {\n totalCount\n }\n allTime: errorEventsConnection(orderBy: id_ASC) {\n totalCount\n }\n }\n ': + '\n query GetErrorEventsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: error_event_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_error_events\n }\n }\n ': types.GetErrorEventsStatsDocument, - '\n query GetErrorEventByHash($hash: String!) {\n errorEvents: errorEvents(where: { extrinsic: { id_eq: $hash } }) {\n errorDocs\n errorModule\n errorName\n errorType\n extrinsic {\n id\n pallet\n call\n }\n id\n timestamp\n block {\n height\n }\n }\n }\n ': + '\n query GetErrorEventByHash($hash: String!) {\n errorEvents: error_event(where: { extrinsic: { id: { _eq: $hash } } }) {\n error_docs\n error_module\n error_name\n error_type\n extrinsic {\n id\n pallet\n call\n }\n id\n timestamp\n block {\n height\n }\n }\n }\n ': types.GetErrorEventByHashDocument, - '\n query GetExecutedReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [ExecutedReversibleTransferOrderByInput!]\n $where: ExecutedReversibleTransferWhereInput\n ) {\n executedReversibleTransactions: executedReversibleTransfers(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n timestamp\n txId\n block {\n height\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n meta: executedReversibleTransfersConnection(\n orderBy: id_ASC\n where: $where\n ) {\n totalCount\n }\n }\n ': + '\n query GetExecutedReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [executed_reversible_transfer_order_by!]\n $where: executed_reversible_transfer_bool_exp\n ) {\n executedReversibleTransactions: executed_reversible_transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n timestamp\n tx_id\n block {\n height\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduled_at\n tx_id\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n meta: executed_reversible_transfer_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ': types.GetExecutedReversibleTransactionsDocument, - '\n query GetRecentExecutedReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [ExecutedReversibleTransferOrderByInput!]\n ) {\n executedReversibleTransactions: executedReversibleTransfers(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n ) {\n timestamp\n txId\n block {\n height\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n ': + '\n query GetRecentExecutedReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [executed_reversible_transfer_order_by!]\n ) {\n executedReversibleTransactions: executed_reversible_transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n ) {\n timestamp\n tx_id\n block {\n height\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduled_at\n tx_id\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n ': types.GetRecentExecutedReversibleTransactionsDocument, - '\n query GetExecutedReversibleTransactionsStats(\n $startDate: DateTime!\n $endDate: DateTime!\n ) {\n last24Hour: executedReversibleTransfersConnection(\n orderBy: id_ASC\n where: { timestamp_gte: $startDate, timestamp_lte: $endDate }\n ) {\n totalCount\n }\n allTime: executedReversibleTransfersConnection(orderBy: id_ASC) {\n totalCount\n }\n }\n ': + '\n query GetExecutedReversibleTransactionsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: executed_reversible_transfer_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_executed_transfers\n }\n }\n ': types.GetExecutedReversibleTransactionsStatsDocument, - '\n query GetExecutedReversibleTransactionByTxId($txId: String!) {\n executedReversibleTransactions: executedReversibleTransfers(\n where: { txId_eq: $txId }\n ) {\n timestamp\n txId\n block {\n height\n }\n scheduledTransfer {\n amount\n scheduledAt\n fee\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n ': + '\n query GetExecutedReversibleTransactionByTxId($tx_id: String!) {\n executedReversibleTransactions: executed_reversible_transfer(\n where: { tx_id: { _eq: $tx_id } }\n ) {\n timestamp\n tx_id\n block {\n height\n }\n scheduledTransfer {\n amount\n scheduled_at\n fee\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n ': types.GetExecutedReversibleTransactionByTxIdDocument, - '\n query GetHighSecuritySets(\n $limit: Int\n $offset: Int\n $orderBy: [HighSecuritySetOrderByInput!]\n $where: HighSecuritySetWhereInput\n ) {\n highSecuritySets(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n id\n extrinsic {\n id\n pallet\n call\n }\n who {\n id\n }\n interceptor {\n id\n }\n timestamp\n delay\n block {\n height\n }\n }\n meta: highSecuritySetsConnection(orderBy: id_ASC, where: $where) {\n totalCount\n }\n }\n ': + '\n query GetHighSecuritySets(\n $limit: Int\n $offset: Int\n $orderBy: [high_security_set_order_by!]\n $where: high_security_set_bool_exp\n ) {\n highSecuritySets: high_security_set(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n id\n extrinsic {\n id\n pallet\n call\n }\n who {\n id\n }\n interceptor {\n id\n }\n timestamp\n delay\n block {\n height\n }\n }\n meta: high_security_set_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ': types.GetHighSecuritySetsDocument, - '\n query GetRecentHighSecuritySets(\n $limit: Int\n $offset: Int\n $orderBy: [HighSecuritySetOrderByInput!]\n $where: HighSecuritySetWhereInput\n ) {\n highSecuritySets(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n id\n extrinsic {\n id\n pallet\n call\n }\n who {\n id\n }\n interceptor {\n id\n }\n timestamp\n delay\n block {\n height\n }\n }\n }\n ': + '\n query GetRecentHighSecuritySets(\n $limit: Int\n $offset: Int\n $orderBy: [high_security_set_order_by!]\n $where: high_security_set_bool_exp\n ) {\n highSecuritySets: high_security_set(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n id\n extrinsic {\n id\n pallet\n call\n }\n who {\n id\n }\n interceptor {\n id\n }\n timestamp\n delay\n block {\n height\n }\n }\n }\n ': types.GetRecentHighSecuritySetsDocument, - '\n query GetHighSecuritySetsStats(\n $startDate: DateTime!\n $endDate: DateTime!\n ) {\n last24Hour: highSecuritySetsConnection(\n orderBy: id_ASC\n where: { timestamp_gte: $startDate, timestamp_lte: $endDate }\n ) {\n totalCount\n }\n allTime: highSecuritySetsConnection(orderBy: id_ASC) {\n totalCount\n }\n }\n ': + '\n query GetHighSecuritySetsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: high_security_set_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_high_security_sets\n }\n }\n ': types.GetHighSecuritySetsStatsDocument, - '\n query GetHighSecuritySetByHash($hash: String!) {\n highSecuritySets(where: { extrinsic: { id_eq: $hash } }) {\n id\n extrinsic {\n id\n pallet\n call\n }\n who {\n id\n }\n interceptor {\n id\n }\n timestamp\n delay\n block {\n height\n }\n }\n }\n ': + '\n query GetHighSecuritySetByHash($hash: String!) {\n highSecuritySets: high_security_set(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n id\n extrinsic {\n id\n pallet\n call\n }\n who {\n id\n }\n interceptor {\n id\n }\n timestamp\n delay\n block {\n height\n }\n }\n }\n ': types.GetHighSecuritySetByHashDocument, - '\n query GetMinerLeaderboard($limit: Int, $offset: Int) {\n leaderboardEntries: minerStats(\n limit: $limit\n offset: $offset\n orderBy: totalMinedBlocks_DESC\n ) {\n id\n totalMinedBlocks\n totalRewards\n }\n meta: minerStatsConnection(orderBy: id_ASC) {\n totalCount\n }\n }\n ': + '\n query GetMinerLeaderboard($limit: Int, $offset: Int) {\n leaderboardEntries: account_stats(\n limit: $limit\n offset: $offset\n order_by: { total_rewards: desc }\n ) {\n id\n total_mined_blocks\n total_rewards\n }\n meta: chain_stats_by_pk(id: "global") {\n totalCount: total_miner_rewards\n }\n }\n ': types.GetMinerLeaderboardDocument, - '\n query GetMinerRewards(\n $limit: Int\n $offset: Int\n $orderBy: [MinerRewardOrderByInput!]\n $where: MinerRewardWhereInput\n ) {\n minerRewards(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n meta: minerRewardsConnection(orderBy: id_ASC, where: $where) {\n totalCount\n }\n }\n ': + '\n query GetMinerRewards(\n $limit: Int\n $offset: Int\n $orderBy: [miner_reward_order_by!]\n $where: miner_reward_bool_exp\n ) {\n minerRewards: miner_reward(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n meta: miner_reward_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ': types.GetMinerRewardsDocument, - '\n query GetRecentMinerRewards(\n $limit: Int\n $offset: Int\n $orderBy: [MinerRewardOrderByInput!]\n $where: MinerRewardWhereInput\n ) {\n minerRewards(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n }\n ': + '\n query GetRecentMinerRewards(\n $limit: Int\n $offset: Int\n $orderBy: [miner_reward_order_by!]\n $where: miner_reward_bool_exp\n ) {\n minerRewards: miner_reward(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n }\n ': types.GetRecentMinerRewardsDocument, - '\n query GetMinerRewardsStats($startDate: DateTime!, $endDate: DateTime!) {\n last24Hour: minerRewardsConnection(\n orderBy: id_ASC\n where: { timestamp_gte: $startDate, timestamp_lte: $endDate }\n ) {\n totalCount\n }\n allTime: minerRewardsConnection(orderBy: id_ASC) {\n totalCount\n }\n }\n ': + '\n query GetMinerRewardsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: miner_reward_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_miner_rewards\n }\n }\n ': types.GetMinerRewardsStatsDocument, - '\n query GetMinerRewardByHash($hash: String!) {\n minerRewards(where: { block: { hash_eq: $hash } }) {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n }\n ': + '\n query GetMinerRewardByHash($hash: String!) {\n minerRewards: miner_reward(where: { block: { hash: { _eq: $hash } } }) {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n }\n ': types.GetMinerRewardByHashDocument, - '\n query GetScheduledReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [ScheduledReversibleTransferOrderByInput!]\n $where: ScheduledReversibleTransferWhereInput\n ) {\n scheduledReversibleTransactions: scheduledReversibleTransfers(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n meta: scheduledReversibleTransfersConnection(\n orderBy: id_ASC\n where: $where\n ) {\n totalCount\n }\n }\n ': + '\n query GetScheduledReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [scheduled_reversible_transfer_order_by!]\n $where: scheduled_reversible_transfer_bool_exp\n ) {\n scheduledReversibleTransactions: scheduled_reversible_transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduled_at\n tx_id\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n meta: scheduled_reversible_transfer_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ': types.GetScheduledReversibleTransactionsDocument, - '\n query GetRecentScheduledReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [ScheduledReversibleTransferOrderByInput!]\n ) {\n scheduledReversibleTransactions: scheduledReversibleTransfers(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n ) {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n ': + '\n query GetRecentScheduledReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [scheduled_reversible_transfer_order_by!]\n ) {\n scheduledReversibleTransactions: scheduled_reversible_transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n ) {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduled_at\n tx_id\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n ': types.GetRecentScheduledReversibleTransactionsDocument, - '\n query GetScheduledReversibleTransactionsStats(\n $startDate: DateTime!\n $endDate: DateTime!\n ) {\n last24Hour: scheduledReversibleTransfersConnection(\n orderBy: id_ASC\n where: { timestamp_gte: $startDate, timestamp_lte: $endDate }\n ) {\n totalCount\n }\n allTime: scheduledReversibleTransfersConnection(orderBy: id_ASC) {\n totalCount\n }\n }\n ': + '\n query GetScheduledReversibleTransactionsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: scheduled_reversible_transfer_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_scheduled_transfers\n }\n }\n ': types.GetScheduledReversibleTransactionsStatsDocument, - '\n query GetScheduledReversibleTransactionByTxId($txId: String!) {\n scheduledReversibleTransactions: scheduledReversibleTransfers(\n where: { txId_eq: $txId }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n ': + '\n query GetScheduledReversibleTransactionByTxId($tx_id: String!) {\n scheduledReversibleTransactions: scheduled_reversible_transfer(\n where: { tx_id: { _eq: $tx_id } }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduled_at\n tx_id\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n ': types.GetScheduledReversibleTransactionByTxIdDocument, - '\n query SearchAll($keyword: String, $keyword_number: Int, $limit: Int) {\n transactions: transfers(\n limit: $limit\n where: { extrinsic: { id_startsWith: $keyword } }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n }\n scheduledReversibleTransactions: scheduledReversibleTransfers(\n limit: $limit\n where: { txId_startsWith: $keyword }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n txId\n }\n executedReversibleTransactions: executedReversibleTransfers(\n limit: $limit\n where: { txId_startsWith: $keyword }\n ) {\n txId\n }\n cancelledReversibleTransactions: cancelledReversibleTransfers(\n limit: $limit\n where: { txId_startsWith: $keyword }\n ) {\n txId\n }\n accounts(limit: $limit, where: { id_startsWith: $keyword }) {\n id\n }\n blocks(\n limit: $limit\n where: {\n hash_startsWith: $keyword\n OR: { height_eq: $keyword_number }\n }\n ) {\n height\n }\n highSecuritySets(\n limit: $limit\n where: { extrinsic: { id_startsWith: $keyword } }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n }\n minerRewards(\n limit: $limit\n where: { block: { hash_startsWith: $keyword } }\n ) {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n errorEvents(\n limit: $limit\n where: {\n errorType_containsInsensitive: $keyword\n OR: { errorName_containsInsensitive: $keyword }\n }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n }\n }\n ': + '\n query SearchAll($keyword: String, $keyword_number: Int, $limit: Int) {\n transactions: transfer(\n limit: $limit\n where: { extrinsic: { id: { _ilike: $keyword } } }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n }\n scheduledReversibleTransactions: scheduled_reversible_transfer(\n limit: $limit\n where: { tx_id: { _ilike: $keyword } }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n tx_id\n }\n executedReversibleTransactions: executed_reversible_transfer(\n limit: $limit\n where: { tx_id: { _ilike: $keyword } }\n ) {\n tx_id\n }\n cancelledReversibleTransactions: cancelled_reversible_transfer(\n limit: $limit\n where: { tx_id: { _ilike: $keyword } }\n ) {\n tx_id\n }\n accounts: account(limit: $limit, where: { id: { _ilike: $keyword } }) {\n id\n }\n blocks: block(\n limit: $limit\n where: {\n _or: [\n { hash: { _ilike: $keyword } }\n { height: { _eq: $keyword_number } }\n ]\n }\n ) {\n height\n }\n highSecuritySets: high_security_set(\n limit: $limit\n where: { extrinsic: { id: { _ilike: $keyword } } }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n }\n minerRewards: miner_reward(\n limit: $limit\n where: { block: { hash: { _ilike: $keyword } } }\n ) {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n errorEvents: error_event(\n limit: $limit\n where: {\n _or: [\n { error_type: { _ilike: $keyword } }\n { error_name: { _ilike: $keyword } }\n ]\n }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n }\n }\n ': types.SearchAllDocument, - '\n query GetTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [TransferOrderByInput!]\n $where: TransferWhereInput\n ) {\n transactions: transfers(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n fee\n extrinsic {\n id\n pallet\n call\n }\n block {\n height\n }\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n }\n meta: transfersConnection(orderBy: id_ASC, where: $where) {\n totalCount\n }\n }\n ': + '\n query GetTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [transfer_order_by!]\n $where: transfer_bool_exp\n ) {\n transactions: transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n fee\n extrinsic {\n id\n pallet\n call\n }\n block {\n height\n }\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n }\n meta: transfer_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ': types.GetTransactionsDocument, - '\n query GetRecentTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [TransferOrderByInput!]\n $where: TransferWhereInput\n ) {\n transactions: transfers(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n fee\n extrinsic {\n id\n pallet\n call\n }\n block {\n height\n }\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n }\n }\n ': + '\n query GetRecentTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [transfer_order_by!]\n $where: transfer_bool_exp\n ) {\n transactions: transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n fee\n extrinsic {\n id\n pallet\n call\n }\n block {\n height\n }\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n }\n }\n ': types.GetRecentTransactionsDocument, - '\n query GetTransactionsStats($startDate: DateTime!, $endDate: DateTime!) {\n last24Hour: transfersConnection(\n orderBy: id_ASC\n where: {\n timestamp_gte: $startDate\n timestamp_lte: $endDate\n extrinsic_isNull: false\n }\n ) {\n totalCount\n }\n allTime: transfersConnection(\n orderBy: id_ASC\n where: { extrinsic_isNull: false }\n ) {\n totalCount\n }\n allTime: transfersConnection(\n orderBy: id_ASC\n where: { extrinsic_isNull: false }\n ) {\n totalCount\n }\n }\n ': + '\n query GetTransactionsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: transfer_aggregate(\n where: {\n timestamp: { _gte: $startDate, _lte: $endDate }\n extrinsic_id: { _is_null: false }\n }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_immediate_transfers\n }\n }\n ': types.GetTransactionsStatsDocument, - '\n query GetExtrinsicByHash($hash: String!) {\n extrinsics(where: { id_eq: $hash }) {\n id\n pallet\n call\n success\n fee\n timestamp\n indexInBlock\n signer {\n id\n }\n block {\n height\n }\n }\n transfers(\n where: { extrinsic: { id_eq: $hash } }\n orderBy: timestamp_ASC\n ) {\n id\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n }\n }\n ': + '\n query GetExtrinsicByHash($hash: String!) {\n extrinsics: extrinsic(where: { id: { _eq: $hash } }) {\n id\n pallet\n call\n success\n fee\n timestamp\n index_in_block\n signer {\n id\n }\n block {\n height\n }\n }\n transfers: transfer(\n where: { extrinsic: { id: { _eq: $hash } } }\n order_by: { timestamp: asc }\n ) {\n id\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n }\n }\n ': types.GetExtrinsicByHashDocument, - '\n query GetWormholeExtrinsics(\n $limit: Int\n $offset: Int\n $orderBy: [WormholeExtrinsicOrderByInput!]!\n $where: WormholeExtrinsicWhereInput\n ) {\n wormholeExtrinsics(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n id\n extrinsic {\n id\n pallet\n call\n }\n totalAmount\n outputCount\n timestamp\n privacyScore\n privacyLabel\n block {\n height\n }\n }\n meta: wormholeExtrinsicsConnection(orderBy: id_ASC) {\n totalCount\n }\n }\n': + '\n query GetWormholeExtrinsics(\n $limit: Int\n $offset: Int\n $orderBy: [wormhole_extrinsic_order_by!]!\n $where: wormhole_extrinsic_bool_exp\n ) {\n wormholeExtrinsics: wormhole_extrinsic(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n id\n extrinsic {\n id\n pallet\n call\n }\n total_amount\n output_count\n timestamp\n privacy_score\n privacy_label\n block {\n height\n }\n }\n meta: wormhole_extrinsic_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n': types.GetWormholeExtrinsicsDocument, - '\n query GetWormholeExtrinsicById($id: String!) {\n wormholeExtrinsicById(id: $id) {\n id\n extrinsic {\n id\n pallet\n call\n }\n totalAmount\n outputCount\n timestamp\n privacyScore\n privacyScore01Pct\n privacyScore1Pct\n privacyScore5Pct\n privacyLabel\n poolSnapshot\n block {\n id\n height\n hash\n timestamp\n }\n outputs {\n id\n exitAccount {\n id\n }\n amount\n }\n }\n wormholeNullifiers(\n where: { wormholeExtrinsic: { extrinsic: { id_eq: $id } } }\n ) {\n nullifier\n nullifierHash\n }\n }\n': + '\n query GetWormholeExtrinsicById($id: String!) {\n wormholeExtrinsicById: wormhole_extrinsic_by_pk(id: $id) {\n id\n extrinsic {\n id\n pallet\n call\n }\n total_amount\n output_count\n timestamp\n privacy_score\n privacy_score01_pct\n privacy_score1_pct\n privacy_score5_pct\n privacy_label\n pool_snapshot\n block {\n id\n height\n hash\n timestamp\n }\n outputs {\n id\n exitAccount {\n id\n }\n amount\n }\n }\n wormholeNullifiers: wormhole_nullifier(\n where: { wormholeExtrinsic: { id: { _eq: $id } } }\n ) {\n nullifier\n nullifier_hash\n }\n }\n': types.GetWormholeExtrinsicByIdDocument, - '\n query GetDepositPoolStats {\n depositPoolStatsById(id: "global") {\n lastUpdatedBlock\n buckets\n }\n }\n': + '\n query GetDepositPoolStats {\n depositPoolStatsById: deposit_pool_stats_by_pk(id: "global") {\n last_updated_block\n buckets\n }\n }\n': types.GetDepositPoolStatsDocument }; @@ -156,242 +159,248 @@ export function gql(source: string): unknown; * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ export function gql( - source: '\n query GetAccounts(\n $limit: Int\n $offset: Int\n $orderBy: [AccountOrderByInput!]\n ) {\n accounts(limit: $limit, offset: $offset, orderBy: $orderBy) {\n id\n free\n frozen\n reserved\n }\n meta: accountsConnection(orderBy: id_ASC) {\n totalCount\n }\n }\n ' -): (typeof documents)['\n query GetAccounts(\n $limit: Int\n $offset: Int\n $orderBy: [AccountOrderByInput!]\n ) {\n accounts(limit: $limit, offset: $offset, orderBy: $orderBy) {\n id\n free\n frozen\n reserved\n }\n meta: accountsConnection(orderBy: id_ASC) {\n totalCount\n }\n }\n ']; + source: '\n query GetAccounts(\n $limit: Int\n $offset: Int\n $orderBy: [account_order_by!]\n ) {\n accounts: account(limit: $limit, offset: $offset, order_by: $orderBy) {\n id\n free\n frozen\n reserved\n }\n meta: chain_stats_by_pk(id: "global") {\n totalCount: total_accounts\n }\n }\n ' +): (typeof documents)['\n query GetAccounts(\n $limit: Int\n $offset: Int\n $orderBy: [account_order_by!]\n ) {\n accounts: account(limit: $limit, offset: $offset, order_by: $orderBy) {\n id\n free\n frozen\n reserved\n }\n meta: chain_stats_by_pk(id: "global") {\n totalCount: total_accounts\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ export function gql( - source: '\n query GetAccountById($id: String!, $limit: Int!) {\n account: accountById(id: $id) {\n id\n free\n frozen\n reserved\n }\n transactions: transfersConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n extrinsic_isNull: false\n AND: { from: { id_eq: $id }, OR: { to: { id_eq: $id } } }\n }\n ) {\n edges {\n node {\n fee\n extrinsic {\n id\n pallet\n call\n }\n block {\n height\n }\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n }\n }\n\n totalCount\n }\n scheduledReversibleTransactions: scheduledReversibleTransfersConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: { from: { id_eq: $id }, OR: { to: { id_eq: $id } } }\n ) {\n edges {\n node {\n extrinsic {\n id\n pallet\n call\n }\n timestamp\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n totalCount\n }\n executedReversibleTransactions: executedReversibleTransfersConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n scheduledTransfer: {\n from: { id_eq: $id }\n OR: { to: { id_eq: $id } }\n }\n }\n ) {\n edges {\n node {\n timestamp\n txId\n block {\n height\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n totalCount\n }\n cancelledReversibleTransactions: cancelledReversibleTransfersConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n scheduledTransfer: {\n from: { id_eq: $id }\n OR: { to: { id_eq: $id } }\n }\n OR: { cancelledBy: { id_eq: $id } }\n }\n ) {\n edges {\n node {\n timestamp\n txId\n block {\n height\n }\n cancelledBy {\n id\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n totalCount\n }\n minerRewards: minerRewardsConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: { miner: { id_eq: $id } }\n ) {\n edges {\n node {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n }\n\n totalCount\n }\n guardian: highSecuritySetsConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: { who: { id_eq: $id } }\n ) {\n edges {\n node {\n timestamp\n block {\n height\n }\n interceptor {\n id\n free\n frozen\n reserved\n }\n }\n }\n\n totalCount\n }\n beneficiaries: highSecuritySetsConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: { interceptor: { id_eq: $id } }\n ) {\n edges {\n node {\n timestamp\n block {\n height\n }\n who {\n id\n free\n frozen\n reserved\n }\n }\n }\n\n totalCount\n }\n wormholeOutputs: wormholeOutputs(\n orderBy: wormholeExtrinsic_timestamp_DESC\n limit: $limit\n where: { exitAccount: { id_eq: $id } }\n ) {\n id\n amount\n exitAccount {\n id\n }\n wormholeExtrinsic {\n id\n extrinsic {\n id\n pallet\n call\n }\n totalAmount\n outputCount\n timestamp\n block {\n height\n }\n outputs {\n id\n exitAccount {\n id\n }\n amount\n }\n }\n }\n }\n ' -): (typeof documents)['\n query GetAccountById($id: String!, $limit: Int!) {\n account: accountById(id: $id) {\n id\n free\n frozen\n reserved\n }\n transactions: transfersConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n extrinsic_isNull: false\n AND: { from: { id_eq: $id }, OR: { to: { id_eq: $id } } }\n }\n ) {\n edges {\n node {\n fee\n extrinsic {\n id\n pallet\n call\n }\n block {\n height\n }\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n }\n }\n\n totalCount\n }\n scheduledReversibleTransactions: scheduledReversibleTransfersConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: { from: { id_eq: $id }, OR: { to: { id_eq: $id } } }\n ) {\n edges {\n node {\n extrinsic {\n id\n pallet\n call\n }\n timestamp\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n totalCount\n }\n executedReversibleTransactions: executedReversibleTransfersConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n scheduledTransfer: {\n from: { id_eq: $id }\n OR: { to: { id_eq: $id } }\n }\n }\n ) {\n edges {\n node {\n timestamp\n txId\n block {\n height\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n totalCount\n }\n cancelledReversibleTransactions: cancelledReversibleTransfersConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n scheduledTransfer: {\n from: { id_eq: $id }\n OR: { to: { id_eq: $id } }\n }\n OR: { cancelledBy: { id_eq: $id } }\n }\n ) {\n edges {\n node {\n timestamp\n txId\n block {\n height\n }\n cancelledBy {\n id\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n totalCount\n }\n minerRewards: minerRewardsConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: { miner: { id_eq: $id } }\n ) {\n edges {\n node {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n }\n\n totalCount\n }\n guardian: highSecuritySetsConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: { who: { id_eq: $id } }\n ) {\n edges {\n node {\n timestamp\n block {\n height\n }\n interceptor {\n id\n free\n frozen\n reserved\n }\n }\n }\n\n totalCount\n }\n beneficiaries: highSecuritySetsConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: { interceptor: { id_eq: $id } }\n ) {\n edges {\n node {\n timestamp\n block {\n height\n }\n who {\n id\n free\n frozen\n reserved\n }\n }\n }\n\n totalCount\n }\n wormholeOutputs: wormholeOutputs(\n orderBy: wormholeExtrinsic_timestamp_DESC\n limit: $limit\n where: { exitAccount: { id_eq: $id } }\n ) {\n id\n amount\n exitAccount {\n id\n }\n wormholeExtrinsic {\n id\n extrinsic {\n id\n pallet\n call\n }\n totalAmount\n outputCount\n timestamp\n block {\n height\n }\n outputs {\n id\n exitAccount {\n id\n }\n amount\n }\n }\n }\n }\n ']; + source: '\n query GetAccountById($id: String!, $limit: Int!) {\n account: account_by_pk(id: $id) {\n id\n free\n frozen\n reserved\n }\n accountStats: account_stats_by_pk(id: $id) {\n total_cancelled_transfers\n total_executed_transfers\n total_immediate_transfers\n total_mined_blocks\n total_rewards\n total_scheduled_transfers\n }\n accountEvents: account_event(\n limit: $limit\n where: { account_id: { _eq: $id } }\n ) {\n transfer {\n fee\n extrinsic {\n id\n pallet\n call\n }\n block {\n height\n }\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n }\n scheduledReversibleTransfer {\n extrinsic {\n id\n pallet\n call\n }\n timestamp\n amount\n timestamp\n scheduled_at\n tx_id\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n executedReversibleTransfer {\n timestamp\n tx_id\n block {\n height\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduled_at\n tx_id\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n cancelledReversibleTransfer {\n timestamp\n tx_id\n block {\n height\n }\n cancelledBy {\n id\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduled_at\n tx_id\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n minerReward {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n }\n\n guardian: high_security_set_aggregate(\n order_by: { timestamp: desc }\n limit: $limit\n where: { who: { id: { _eq: $id } } }\n ) {\n nodes {\n timestamp\n block {\n height\n }\n interceptor {\n id\n free\n frozen\n reserved\n }\n }\n aggregate {\n totalCount: count\n }\n }\n\n beneficiaries: high_security_set_aggregate(\n order_by: { timestamp: desc }\n limit: $limit\n where: { interceptor: { id: { _eq: $id } } }\n ) {\n nodes {\n timestamp\n block {\n height\n }\n who {\n id\n free\n frozen\n reserved\n }\n }\n aggregate {\n totalCount: count\n }\n }\n\n wormholeOutputs: wormhole_output(\n order_by: { wormholeExtrinsic: { timestamp: desc } }\n limit: $limit\n where: { exitAccount: { id: { _eq: $id } } }\n ) {\n id\n amount\n exitAccount {\n id\n }\n wormholeExtrinsic {\n id\n extrinsic {\n id\n pallet\n call\n }\n total_amount\n output_count\n timestamp\n block {\n height\n }\n outputs {\n id\n exitAccount {\n id\n }\n amount\n }\n }\n }\n }\n ' +): (typeof documents)['\n query GetAccountById($id: String!, $limit: Int!) {\n account: account_by_pk(id: $id) {\n id\n free\n frozen\n reserved\n }\n accountStats: account_stats_by_pk(id: $id) {\n total_cancelled_transfers\n total_executed_transfers\n total_immediate_transfers\n total_mined_blocks\n total_rewards\n total_scheduled_transfers\n }\n accountEvents: account_event(\n limit: $limit\n where: { account_id: { _eq: $id } }\n ) {\n transfer {\n fee\n extrinsic {\n id\n pallet\n call\n }\n block {\n height\n }\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n }\n scheduledReversibleTransfer {\n extrinsic {\n id\n pallet\n call\n }\n timestamp\n amount\n timestamp\n scheduled_at\n tx_id\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n executedReversibleTransfer {\n timestamp\n tx_id\n block {\n height\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduled_at\n tx_id\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n cancelledReversibleTransfer {\n timestamp\n tx_id\n block {\n height\n }\n cancelledBy {\n id\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduled_at\n tx_id\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n minerReward {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n }\n\n guardian: high_security_set_aggregate(\n order_by: { timestamp: desc }\n limit: $limit\n where: { who: { id: { _eq: $id } } }\n ) {\n nodes {\n timestamp\n block {\n height\n }\n interceptor {\n id\n free\n frozen\n reserved\n }\n }\n aggregate {\n totalCount: count\n }\n }\n\n beneficiaries: high_security_set_aggregate(\n order_by: { timestamp: desc }\n limit: $limit\n where: { interceptor: { id: { _eq: $id } } }\n ) {\n nodes {\n timestamp\n block {\n height\n }\n who {\n id\n free\n frozen\n reserved\n }\n }\n aggregate {\n totalCount: count\n }\n }\n\n wormholeOutputs: wormhole_output(\n order_by: { wormholeExtrinsic: { timestamp: desc } }\n limit: $limit\n where: { exitAccount: { id: { _eq: $id } } }\n ) {\n id\n amount\n exitAccount {\n id\n }\n wormholeExtrinsic {\n id\n extrinsic {\n id\n pallet\n call\n }\n total_amount\n output_count\n timestamp\n block {\n height\n }\n outputs {\n id\n exitAccount {\n id\n }\n amount\n }\n }\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ export function gql( - source: '\n query GetAccountsStats($startDate: DateTime!, $endDate: DateTime!) {\n all: accountsConnection(orderBy: id_ASC) {\n totalCount\n }\n recentlyActive: accountsConnection(\n orderBy: id_ASC\n where: {\n transfersFrom_some: {\n timestamp_gte: $startDate\n timestamp_lte: $endDate\n }\n }\n ) {\n totalCount\n }\n recentlyDeposited: accountsConnection(\n orderBy: id_ASC\n where: {\n transfersTo_some: {\n timestamp_gte: $startDate\n timestamp_lte: $endDate\n }\n }\n ) {\n totalCount\n }\n }\n ' -): (typeof documents)['\n query GetAccountsStats($startDate: DateTime!, $endDate: DateTime!) {\n all: accountsConnection(orderBy: id_ASC) {\n totalCount\n }\n recentlyActive: accountsConnection(\n orderBy: id_ASC\n where: {\n transfersFrom_some: {\n timestamp_gte: $startDate\n timestamp_lte: $endDate\n }\n }\n ) {\n totalCount\n }\n recentlyDeposited: accountsConnection(\n orderBy: id_ASC\n where: {\n transfersTo_some: {\n timestamp_gte: $startDate\n timestamp_lte: $endDate\n }\n }\n ) {\n totalCount\n }\n }\n ']; + source: '\n query GetAccountsStats($startDate: timestamptz!, $endDate: timestamptz!) {\n all: chain_stats_by_pk(id: "global") {\n total_accounts\n }\n\n recentlyActive: account_aggregate(\n where: {\n transfersFrom: { timestamp: { _gte: $startDate, _lte: $endDate } }\n }\n ) {\n aggregate {\n count\n }\n }\n\n recentlyDeposited: account_aggregate(\n where: {\n transfersTo: { timestamp: { _gte: $startDate, _lte: $endDate } }\n }\n ) {\n aggregate {\n count\n }\n }\n }\n ' +): (typeof documents)['\n query GetAccountsStats($startDate: timestamptz!, $endDate: timestamptz!) {\n all: chain_stats_by_pk(id: "global") {\n total_accounts\n }\n\n recentlyActive: account_aggregate(\n where: {\n transfersFrom: { timestamp: { _gte: $startDate, _lte: $endDate } }\n }\n ) {\n aggregate {\n count\n }\n }\n\n recentlyDeposited: account_aggregate(\n where: {\n transfersTo: { timestamp: { _gte: $startDate, _lte: $endDate } }\n }\n ) {\n aggregate {\n count\n }\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ export function gql( - source: '\n query GetBlocks(\n $limit: Int\n $offset: Int\n $orderBy: [BlockOrderByInput!]!\n $where: BlockWhereInput\n ) {\n blocks(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n id\n hash\n height\n reward\n timestamp\n extrinsics {\n id\n }\n }\n meta: blocksConnection(orderBy: id_ASC) {\n totalCount\n }\n }\n ' -): (typeof documents)['\n query GetBlocks(\n $limit: Int\n $offset: Int\n $orderBy: [BlockOrderByInput!]!\n $where: BlockWhereInput\n ) {\n blocks(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n id\n hash\n height\n reward\n timestamp\n extrinsics {\n id\n }\n }\n meta: blocksConnection(orderBy: id_ASC) {\n totalCount\n }\n }\n ']; + source: '\n query GetBlocks(\n $limit: Int\n $offset: Int\n $orderBy: [block_order_by!]!\n $where: block_bool_exp\n ) {\n blocks: block(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n id\n hash\n height\n reward\n timestamp\n extrinsics {\n id\n }\n }\n meta: chain_stats_by_pk(id: "global") {\n totalCount: block_height\n }\n }\n ' +): (typeof documents)['\n query GetBlocks(\n $limit: Int\n $offset: Int\n $orderBy: [block_order_by!]!\n $where: block_bool_exp\n ) {\n blocks: block(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n id\n hash\n height\n reward\n timestamp\n extrinsics {\n id\n }\n }\n meta: chain_stats_by_pk(id: "global") {\n totalCount: block_height\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ export function gql( - source: '\n query GetRecentBlocks(\n $limit: Int\n $offset: Int\n $orderBy: [BlockOrderByInput!]\n ) {\n blocks(limit: $limit, offset: $offset, orderBy: $orderBy) {\n id\n hash\n height\n reward\n timestamp\n extrinsics {\n id\n }\n }\n }\n ' -): (typeof documents)['\n query GetRecentBlocks(\n $limit: Int\n $offset: Int\n $orderBy: [BlockOrderByInput!]\n ) {\n blocks(limit: $limit, offset: $offset, orderBy: $orderBy) {\n id\n hash\n height\n reward\n timestamp\n extrinsics {\n id\n }\n }\n }\n ']; + source: '\n query GetRecentBlocks(\n $limit: Int\n $offset: Int\n $orderBy: [block_order_by!]\n ) {\n blocks: block(limit: $limit, offset: $offset, order_by: $orderBy) {\n id\n hash\n height\n reward\n timestamp\n extrinsics {\n id\n }\n }\n }\n ' +): (typeof documents)['\n query GetRecentBlocks(\n $limit: Int\n $offset: Int\n $orderBy: [block_order_by!]\n ) {\n blocks: block(limit: $limit, offset: $offset, order_by: $orderBy) {\n id\n hash\n height\n reward\n timestamp\n extrinsics {\n id\n }\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ export function gql( - source: '\n query GetBlockById($height: Int!, $hash: String!, $limit: Int!) {\n blocks(where: { height_eq: $height, OR: { hash_eq: $hash } }) {\n id\n hash\n height\n reward\n timestamp\n extrinsics(orderBy: indexInBlock_ASC) {\n id\n pallet\n call\n success\n fee\n timestamp\n indexInBlock\n signer {\n id\n }\n }\n }\n minerRewards(\n where: {\n block: { height_eq: $height }\n OR: { block: { hash_eq: $hash } }\n }\n ) {\n reward\n timestamp\n miner {\n id\n }\n block {\n height\n hash\n }\n }\n transactions: transfersConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n extrinsic_isNull: false\n AND: {\n block: { height_eq: $height }\n OR: { block: { hash_eq: $hash } }\n }\n }\n ) {\n edges {\n node {\n fee\n extrinsic {\n id\n pallet\n call\n }\n block {\n height\n }\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n }\n }\n\n totalCount\n }\n scheduledReversibleTransactions: scheduledReversibleTransfersConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n block: { height_eq: $height }\n OR: { block: { hash_eq: $hash } }\n }\n ) {\n edges {\n node {\n extrinsic {\n id\n pallet\n call\n }\n timestamp\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n totalCount\n }\n executedReversibleTransactions: executedReversibleTransfersConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n block: { height_eq: $height }\n OR: { block: { hash_eq: $hash } }\n }\n ) {\n edges {\n node {\n timestamp\n txId\n block {\n height\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n totalCount\n }\n cancelledReversibleTransactions: cancelledReversibleTransfersConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n block: { height_eq: $height }\n OR: { block: { hash_eq: $hash } }\n }\n ) {\n edges {\n node {\n timestamp\n txId\n block {\n height\n }\n cancelledBy {\n id\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n totalCount\n }\n highSecuritySets: highSecuritySetsConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n block: { height_eq: $height }\n OR: { block: { hash_eq: $hash } }\n }\n ) {\n edges {\n node {\n extrinsic {\n id\n pallet\n call\n }\n timestamp\n delay\n block {\n height\n }\n who {\n id\n }\n interceptor {\n id\n }\n }\n }\n\n totalCount\n }\n errorEvents: errorEventsConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n block: { height_eq: $height }\n OR: { block: { hash_eq: $hash } }\n }\n ) {\n edges {\n node {\n errorDocs\n errorModule\n errorName\n errorType\n extrinsic {\n id\n pallet\n call\n }\n timestamp\n block {\n height\n }\n }\n }\n\n totalCount\n }\n wormholeExtrinsics(\n orderBy: timestamp_DESC\n limit: $limit\n where: {\n block: { height_eq: $height }\n OR: { block: { hash_eq: $hash } }\n }\n ) {\n id\n extrinsic {\n id\n pallet\n call\n }\n totalAmount\n outputCount\n timestamp\n block {\n height\n }\n outputs {\n id\n exitAccount {\n id\n }\n amount\n }\n }\n }\n ' -): (typeof documents)['\n query GetBlockById($height: Int!, $hash: String!, $limit: Int!) {\n blocks(where: { height_eq: $height, OR: { hash_eq: $hash } }) {\n id\n hash\n height\n reward\n timestamp\n extrinsics(orderBy: indexInBlock_ASC) {\n id\n pallet\n call\n success\n fee\n timestamp\n indexInBlock\n signer {\n id\n }\n }\n }\n minerRewards(\n where: {\n block: { height_eq: $height }\n OR: { block: { hash_eq: $hash } }\n }\n ) {\n reward\n timestamp\n miner {\n id\n }\n block {\n height\n hash\n }\n }\n transactions: transfersConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n extrinsic_isNull: false\n AND: {\n block: { height_eq: $height }\n OR: { block: { hash_eq: $hash } }\n }\n }\n ) {\n edges {\n node {\n fee\n extrinsic {\n id\n pallet\n call\n }\n block {\n height\n }\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n }\n }\n\n totalCount\n }\n scheduledReversibleTransactions: scheduledReversibleTransfersConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n block: { height_eq: $height }\n OR: { block: { hash_eq: $hash } }\n }\n ) {\n edges {\n node {\n extrinsic {\n id\n pallet\n call\n }\n timestamp\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n totalCount\n }\n executedReversibleTransactions: executedReversibleTransfersConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n block: { height_eq: $height }\n OR: { block: { hash_eq: $hash } }\n }\n ) {\n edges {\n node {\n timestamp\n txId\n block {\n height\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n totalCount\n }\n cancelledReversibleTransactions: cancelledReversibleTransfersConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n block: { height_eq: $height }\n OR: { block: { hash_eq: $hash } }\n }\n ) {\n edges {\n node {\n timestamp\n txId\n block {\n height\n }\n cancelledBy {\n id\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n totalCount\n }\n highSecuritySets: highSecuritySetsConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n block: { height_eq: $height }\n OR: { block: { hash_eq: $hash } }\n }\n ) {\n edges {\n node {\n extrinsic {\n id\n pallet\n call\n }\n timestamp\n delay\n block {\n height\n }\n who {\n id\n }\n interceptor {\n id\n }\n }\n }\n\n totalCount\n }\n errorEvents: errorEventsConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n block: { height_eq: $height }\n OR: { block: { hash_eq: $hash } }\n }\n ) {\n edges {\n node {\n errorDocs\n errorModule\n errorName\n errorType\n extrinsic {\n id\n pallet\n call\n }\n timestamp\n block {\n height\n }\n }\n }\n\n totalCount\n }\n wormholeExtrinsics(\n orderBy: timestamp_DESC\n limit: $limit\n where: {\n block: { height_eq: $height }\n OR: { block: { hash_eq: $hash } }\n }\n ) {\n id\n extrinsic {\n id\n pallet\n call\n }\n totalAmount\n outputCount\n timestamp\n block {\n height\n }\n outputs {\n id\n exitAccount {\n id\n }\n amount\n }\n }\n }\n ']; + source: '\n query GetBlockById($height: Int!, $hash: String!) {\n blocks: block(\n where: {\n _or: [{ height: { _eq: $height } }, { hash: { _eq: $hash } }]\n }\n ) {\n id\n hash\n height\n reward\n timestamp\n extrinsics(order_by: { index_in_block: asc }) {\n id\n pallet\n call\n success\n fee\n timestamp\n index_in_block: index_in_block\n signer {\n id\n }\n }\n }\n minerRewards: miner_reward(\n where: {\n block: {\n _or: [{ height: { _eq: $height } }, { hash: { _eq: $hash } }]\n }\n }\n ) {\n reward\n timestamp\n miner {\n id\n }\n block {\n height\n hash\n }\n }\n }\n ' +): (typeof documents)['\n query GetBlockById($height: Int!, $hash: String!) {\n blocks: block(\n where: {\n _or: [{ height: { _eq: $height } }, { hash: { _eq: $hash } }]\n }\n ) {\n id\n hash\n height\n reward\n timestamp\n extrinsics(order_by: { index_in_block: asc }) {\n id\n pallet\n call\n success\n fee\n timestamp\n index_in_block: index_in_block\n signer {\n id\n }\n }\n }\n minerRewards: miner_reward(\n where: {\n block: {\n _or: [{ height: { _eq: $height } }, { hash: { _eq: $hash } }]\n }\n }\n ) {\n reward\n timestamp\n miner {\n id\n }\n block {\n height\n hash\n }\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ export function gql( - source: '\n query GetCancelledReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [CancelledReversibleTransferOrderByInput!]\n $where: CancelledReversibleTransferWhereInput\n ) {\n cancelledReversibleTransactions: cancelledReversibleTransfers(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n timestamp\n txId\n block {\n height\n }\n cancelledBy {\n id\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n meta: cancelledReversibleTransfersConnection(\n orderBy: id_ASC\n where: $where\n ) {\n totalCount\n }\n }\n ' -): (typeof documents)['\n query GetCancelledReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [CancelledReversibleTransferOrderByInput!]\n $where: CancelledReversibleTransferWhereInput\n ) {\n cancelledReversibleTransactions: cancelledReversibleTransfers(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n timestamp\n txId\n block {\n height\n }\n cancelledBy {\n id\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n meta: cancelledReversibleTransfersConnection(\n orderBy: id_ASC\n where: $where\n ) {\n totalCount\n }\n }\n ']; + source: '\n query GetBlockStats($startDate: timestamptz!, $endDate: timestamptz!) {\n chain: chain_stats_by_pk(id: "global") {\n block_height\n finalized_block_height\n }\n minedIn24Hours: block_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n }\n ' +): (typeof documents)['\n query GetBlockStats($startDate: timestamptz!, $endDate: timestamptz!) {\n chain: chain_stats_by_pk(id: "global") {\n block_height\n finalized_block_height\n }\n minedIn24Hours: block_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ export function gql( - source: '\n query GetRecentCancelledReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [CancelledReversibleTransferOrderByInput!]\n ) {\n cancelledReversibleTransactions: cancelledReversibleTransfers(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n ) {\n timestamp\n txId\n block {\n height\n }\n cancelledBy {\n id\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n ' -): (typeof documents)['\n query GetRecentCancelledReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [CancelledReversibleTransferOrderByInput!]\n ) {\n cancelledReversibleTransactions: cancelledReversibleTransfers(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n ) {\n timestamp\n txId\n block {\n height\n }\n cancelledBy {\n id\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n ']; + source: '\n query GetCancelledReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [cancelled_reversible_transfer_order_by!]\n $where: cancelled_reversible_transfer_bool_exp\n ) {\n cancelledReversibleTransactions: cancelled_reversible_transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n timestamp\n tx_id\n block {\n height\n }\n cancelledBy {\n id\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduled_at\n tx_id\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n meta: cancelled_reversible_transfer_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ' +): (typeof documents)['\n query GetCancelledReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [cancelled_reversible_transfer_order_by!]\n $where: cancelled_reversible_transfer_bool_exp\n ) {\n cancelledReversibleTransactions: cancelled_reversible_transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n timestamp\n tx_id\n block {\n height\n }\n cancelledBy {\n id\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduled_at\n tx_id\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n meta: cancelled_reversible_transfer_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ export function gql( - source: '\n query GetCancelledReversibleTransactionsStats(\n $startDate: DateTime!\n $endDate: DateTime!\n ) {\n last24Hour: cancelledReversibleTransfersConnection(\n orderBy: id_ASC\n where: { timestamp_gte: $startDate, timestamp_lte: $endDate }\n ) {\n totalCount\n }\n allTime: cancelledReversibleTransfersConnection(orderBy: id_ASC) {\n totalCount\n }\n }\n ' -): (typeof documents)['\n query GetCancelledReversibleTransactionsStats(\n $startDate: DateTime!\n $endDate: DateTime!\n ) {\n last24Hour: cancelledReversibleTransfersConnection(\n orderBy: id_ASC\n where: { timestamp_gte: $startDate, timestamp_lte: $endDate }\n ) {\n totalCount\n }\n allTime: cancelledReversibleTransfersConnection(orderBy: id_ASC) {\n totalCount\n }\n }\n ']; + source: '\n query GetRecentCancelledReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [cancelled_reversible_transfer_order_by!]\n ) {\n cancelledReversibleTransactions: cancelled_reversible_transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n ) {\n timestamp\n tx_id\n block {\n height\n }\n cancelledBy {\n id\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduled_at\n tx_id\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n ' +): (typeof documents)['\n query GetRecentCancelledReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [cancelled_reversible_transfer_order_by!]\n ) {\n cancelledReversibleTransactions: cancelled_reversible_transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n ) {\n timestamp\n tx_id\n block {\n height\n }\n cancelledBy {\n id\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduled_at\n tx_id\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ export function gql( - source: '\n query GetCancelledReversibleTransactionByTxId($txId: String!) {\n cancelledReversibleTransactions: cancelledReversibleTransfers(\n where: { txId_eq: $txId }\n ) {\n timestamp\n txId\n block {\n height\n }\n cancelledBy {\n id\n }\n extrinsic {\n id\n pallet\n call\n }\n scheduledTransfer {\n amount\n scheduledAt\n fee\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n ' -): (typeof documents)['\n query GetCancelledReversibleTransactionByTxId($txId: String!) {\n cancelledReversibleTransactions: cancelledReversibleTransfers(\n where: { txId_eq: $txId }\n ) {\n timestamp\n txId\n block {\n height\n }\n cancelledBy {\n id\n }\n extrinsic {\n id\n pallet\n call\n }\n scheduledTransfer {\n amount\n scheduledAt\n fee\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n ']; + source: '\n query GetCancelledReversibleTransactionsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: cancelled_reversible_transfer_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_cancelled_transfers\n }\n }\n ' +): (typeof documents)['\n query GetCancelledReversibleTransactionsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: cancelled_reversible_transfer_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_cancelled_transfers\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ export function gql( - source: '\n query GetStatus {\n status: squidStatus {\n hash\n height\n finalizedHeight\n finalizedHash\n }\n }\n ' -): (typeof documents)['\n query GetStatus {\n status: squidStatus {\n hash\n height\n finalizedHeight\n finalizedHash\n }\n }\n ']; + source: '\n query GetCancelledReversibleTransactionByTxId($tx_id: String!) {\n cancelledReversibleTransactions: cancelled_reversible_transfer(\n where: { tx_id: { _eq: $tx_id } }\n ) {\n timestamp\n tx_id\n block {\n height\n }\n cancelledBy {\n id\n }\n extrinsic {\n id\n pallet\n call\n }\n scheduledTransfer {\n amount\n scheduled_at\n fee\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n ' +): (typeof documents)['\n query GetCancelledReversibleTransactionByTxId($tx_id: String!) {\n cancelledReversibleTransactions: cancelled_reversible_transfer(\n where: { tx_id: { _eq: $tx_id } }\n ) {\n timestamp\n tx_id\n block {\n height\n }\n cancelledBy {\n id\n }\n extrinsic {\n id\n pallet\n call\n }\n scheduledTransfer {\n amount\n scheduled_at\n fee\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ export function gql( - source: '\n query GetErrorEvents(\n $limit: Int\n $offset: Int\n $orderBy: [ErrorEventOrderByInput!]\n $where: ErrorEventWhereInput\n ) {\n errorEvents(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n errorDocs\n errorModule\n errorName\n errorType\n extrinsic {\n id\n pallet\n call\n }\n id\n timestamp\n block {\n height\n }\n }\n meta: errorEventsConnection(orderBy: id_ASC, where: $where) {\n totalCount\n }\n }\n ' -): (typeof documents)['\n query GetErrorEvents(\n $limit: Int\n $offset: Int\n $orderBy: [ErrorEventOrderByInput!]\n $where: ErrorEventWhereInput\n ) {\n errorEvents(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n errorDocs\n errorModule\n errorName\n errorType\n extrinsic {\n id\n pallet\n call\n }\n id\n timestamp\n block {\n height\n }\n }\n meta: errorEventsConnection(orderBy: id_ASC, where: $where) {\n totalCount\n }\n }\n ']; + source: '\n query GetStatus {\n status: chain_stats_by_pk(id: "global") {\n block_height\n total_accounts\n total_deposit_accounts\n total_executed_transfers\n total_immediate_transfers\n total_scheduled_transfers\n total_cancelled_transfers\n }\n }\n ' +): (typeof documents)['\n query GetStatus {\n status: chain_stats_by_pk(id: "global") {\n block_height\n total_accounts\n total_deposit_accounts\n total_executed_transfers\n total_immediate_transfers\n total_scheduled_transfers\n total_cancelled_transfers\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ export function gql( - source: '\n query GetRecentErrorEvents(\n $limit: Int\n $offset: Int\n $orderBy: [ErrorEventOrderByInput!]\n $where: ErrorEventWhereInput\n ) {\n errorEvents(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n errorDocs\n errorModule\n errorName\n errorType\n extrinsic {\n id\n pallet\n call\n }\n id\n timestamp\n block {\n height\n }\n }\n }\n ' -): (typeof documents)['\n query GetRecentErrorEvents(\n $limit: Int\n $offset: Int\n $orderBy: [ErrorEventOrderByInput!]\n $where: ErrorEventWhereInput\n ) {\n errorEvents(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n errorDocs\n errorModule\n errorName\n errorType\n extrinsic {\n id\n pallet\n call\n }\n id\n timestamp\n block {\n height\n }\n }\n }\n ']; + source: '\n query GetErrorEvents(\n $limit: Int\n $offset: Int\n $orderBy: [error_event_order_by!]\n $where: error_event_bool_exp\n ) {\n errorEvents: error_event(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n error_docs\n error_module\n error_name\n error_type\n extrinsic {\n id\n pallet\n call\n }\n id\n timestamp\n block {\n height\n }\n }\n meta: error_event_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ' +): (typeof documents)['\n query GetErrorEvents(\n $limit: Int\n $offset: Int\n $orderBy: [error_event_order_by!]\n $where: error_event_bool_exp\n ) {\n errorEvents: error_event(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n error_docs\n error_module\n error_name\n error_type\n extrinsic {\n id\n pallet\n call\n }\n id\n timestamp\n block {\n height\n }\n }\n meta: error_event_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ export function gql( - source: '\n query GetErrorEventsStats($startDate: DateTime!, $endDate: DateTime!) {\n last24Hour: errorEventsConnection(\n orderBy: id_ASC\n where: { timestamp_gte: $startDate, timestamp_lte: $endDate }\n ) {\n totalCount\n }\n allTime: errorEventsConnection(orderBy: id_ASC) {\n totalCount\n }\n }\n ' -): (typeof documents)['\n query GetErrorEventsStats($startDate: DateTime!, $endDate: DateTime!) {\n last24Hour: errorEventsConnection(\n orderBy: id_ASC\n where: { timestamp_gte: $startDate, timestamp_lte: $endDate }\n ) {\n totalCount\n }\n allTime: errorEventsConnection(orderBy: id_ASC) {\n totalCount\n }\n }\n ']; + source: '\n query GetRecentErrorEvents(\n $limit: Int\n $offset: Int\n $orderBy: [error_event_order_by!]\n $where: error_event_bool_exp\n ) {\n errorEvents: error_event(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n error_docs\n error_module\n error_name\n error_type\n extrinsic {\n id\n pallet\n call\n }\n id\n timestamp\n block {\n height\n }\n }\n }\n ' +): (typeof documents)['\n query GetRecentErrorEvents(\n $limit: Int\n $offset: Int\n $orderBy: [error_event_order_by!]\n $where: error_event_bool_exp\n ) {\n errorEvents: error_event(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n error_docs\n error_module\n error_name\n error_type\n extrinsic {\n id\n pallet\n call\n }\n id\n timestamp\n block {\n height\n }\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ export function gql( - source: '\n query GetErrorEventByHash($hash: String!) {\n errorEvents: errorEvents(where: { extrinsic: { id_eq: $hash } }) {\n errorDocs\n errorModule\n errorName\n errorType\n extrinsic {\n id\n pallet\n call\n }\n id\n timestamp\n block {\n height\n }\n }\n }\n ' -): (typeof documents)['\n query GetErrorEventByHash($hash: String!) {\n errorEvents: errorEvents(where: { extrinsic: { id_eq: $hash } }) {\n errorDocs\n errorModule\n errorName\n errorType\n extrinsic {\n id\n pallet\n call\n }\n id\n timestamp\n block {\n height\n }\n }\n }\n ']; + source: '\n query GetErrorEventsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: error_event_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_error_events\n }\n }\n ' +): (typeof documents)['\n query GetErrorEventsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: error_event_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_error_events\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ export function gql( - source: '\n query GetExecutedReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [ExecutedReversibleTransferOrderByInput!]\n $where: ExecutedReversibleTransferWhereInput\n ) {\n executedReversibleTransactions: executedReversibleTransfers(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n timestamp\n txId\n block {\n height\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n meta: executedReversibleTransfersConnection(\n orderBy: id_ASC\n where: $where\n ) {\n totalCount\n }\n }\n ' -): (typeof documents)['\n query GetExecutedReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [ExecutedReversibleTransferOrderByInput!]\n $where: ExecutedReversibleTransferWhereInput\n ) {\n executedReversibleTransactions: executedReversibleTransfers(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n timestamp\n txId\n block {\n height\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n meta: executedReversibleTransfersConnection(\n orderBy: id_ASC\n where: $where\n ) {\n totalCount\n }\n }\n ']; + source: '\n query GetErrorEventByHash($hash: String!) {\n errorEvents: error_event(where: { extrinsic: { id: { _eq: $hash } } }) {\n error_docs\n error_module\n error_name\n error_type\n extrinsic {\n id\n pallet\n call\n }\n id\n timestamp\n block {\n height\n }\n }\n }\n ' +): (typeof documents)['\n query GetErrorEventByHash($hash: String!) {\n errorEvents: error_event(where: { extrinsic: { id: { _eq: $hash } } }) {\n error_docs\n error_module\n error_name\n error_type\n extrinsic {\n id\n pallet\n call\n }\n id\n timestamp\n block {\n height\n }\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ export function gql( - source: '\n query GetRecentExecutedReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [ExecutedReversibleTransferOrderByInput!]\n ) {\n executedReversibleTransactions: executedReversibleTransfers(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n ) {\n timestamp\n txId\n block {\n height\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n ' -): (typeof documents)['\n query GetRecentExecutedReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [ExecutedReversibleTransferOrderByInput!]\n ) {\n executedReversibleTransactions: executedReversibleTransfers(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n ) {\n timestamp\n txId\n block {\n height\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n ']; + source: '\n query GetExecutedReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [executed_reversible_transfer_order_by!]\n $where: executed_reversible_transfer_bool_exp\n ) {\n executedReversibleTransactions: executed_reversible_transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n timestamp\n tx_id\n block {\n height\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduled_at\n tx_id\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n meta: executed_reversible_transfer_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ' +): (typeof documents)['\n query GetExecutedReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [executed_reversible_transfer_order_by!]\n $where: executed_reversible_transfer_bool_exp\n ) {\n executedReversibleTransactions: executed_reversible_transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n timestamp\n tx_id\n block {\n height\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduled_at\n tx_id\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n meta: executed_reversible_transfer_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ export function gql( - source: '\n query GetExecutedReversibleTransactionsStats(\n $startDate: DateTime!\n $endDate: DateTime!\n ) {\n last24Hour: executedReversibleTransfersConnection(\n orderBy: id_ASC\n where: { timestamp_gte: $startDate, timestamp_lte: $endDate }\n ) {\n totalCount\n }\n allTime: executedReversibleTransfersConnection(orderBy: id_ASC) {\n totalCount\n }\n }\n ' -): (typeof documents)['\n query GetExecutedReversibleTransactionsStats(\n $startDate: DateTime!\n $endDate: DateTime!\n ) {\n last24Hour: executedReversibleTransfersConnection(\n orderBy: id_ASC\n where: { timestamp_gte: $startDate, timestamp_lte: $endDate }\n ) {\n totalCount\n }\n allTime: executedReversibleTransfersConnection(orderBy: id_ASC) {\n totalCount\n }\n }\n ']; + source: '\n query GetRecentExecutedReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [executed_reversible_transfer_order_by!]\n ) {\n executedReversibleTransactions: executed_reversible_transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n ) {\n timestamp\n tx_id\n block {\n height\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduled_at\n tx_id\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n ' +): (typeof documents)['\n query GetRecentExecutedReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [executed_reversible_transfer_order_by!]\n ) {\n executedReversibleTransactions: executed_reversible_transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n ) {\n timestamp\n tx_id\n block {\n height\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduled_at\n tx_id\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ export function gql( - source: '\n query GetExecutedReversibleTransactionByTxId($txId: String!) {\n executedReversibleTransactions: executedReversibleTransfers(\n where: { txId_eq: $txId }\n ) {\n timestamp\n txId\n block {\n height\n }\n scheduledTransfer {\n amount\n scheduledAt\n fee\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n ' -): (typeof documents)['\n query GetExecutedReversibleTransactionByTxId($txId: String!) {\n executedReversibleTransactions: executedReversibleTransfers(\n where: { txId_eq: $txId }\n ) {\n timestamp\n txId\n block {\n height\n }\n scheduledTransfer {\n amount\n scheduledAt\n fee\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n ']; + source: '\n query GetExecutedReversibleTransactionsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: executed_reversible_transfer_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_executed_transfers\n }\n }\n ' +): (typeof documents)['\n query GetExecutedReversibleTransactionsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: executed_reversible_transfer_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_executed_transfers\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ export function gql( - source: '\n query GetHighSecuritySets(\n $limit: Int\n $offset: Int\n $orderBy: [HighSecuritySetOrderByInput!]\n $where: HighSecuritySetWhereInput\n ) {\n highSecuritySets(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n id\n extrinsic {\n id\n pallet\n call\n }\n who {\n id\n }\n interceptor {\n id\n }\n timestamp\n delay\n block {\n height\n }\n }\n meta: highSecuritySetsConnection(orderBy: id_ASC, where: $where) {\n totalCount\n }\n }\n ' -): (typeof documents)['\n query GetHighSecuritySets(\n $limit: Int\n $offset: Int\n $orderBy: [HighSecuritySetOrderByInput!]\n $where: HighSecuritySetWhereInput\n ) {\n highSecuritySets(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n id\n extrinsic {\n id\n pallet\n call\n }\n who {\n id\n }\n interceptor {\n id\n }\n timestamp\n delay\n block {\n height\n }\n }\n meta: highSecuritySetsConnection(orderBy: id_ASC, where: $where) {\n totalCount\n }\n }\n ']; + source: '\n query GetExecutedReversibleTransactionByTxId($tx_id: String!) {\n executedReversibleTransactions: executed_reversible_transfer(\n where: { tx_id: { _eq: $tx_id } }\n ) {\n timestamp\n tx_id\n block {\n height\n }\n scheduledTransfer {\n amount\n scheduled_at\n fee\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n ' +): (typeof documents)['\n query GetExecutedReversibleTransactionByTxId($tx_id: String!) {\n executedReversibleTransactions: executed_reversible_transfer(\n where: { tx_id: { _eq: $tx_id } }\n ) {\n timestamp\n tx_id\n block {\n height\n }\n scheduledTransfer {\n amount\n scheduled_at\n fee\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ export function gql( - source: '\n query GetRecentHighSecuritySets(\n $limit: Int\n $offset: Int\n $orderBy: [HighSecuritySetOrderByInput!]\n $where: HighSecuritySetWhereInput\n ) {\n highSecuritySets(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n id\n extrinsic {\n id\n pallet\n call\n }\n who {\n id\n }\n interceptor {\n id\n }\n timestamp\n delay\n block {\n height\n }\n }\n }\n ' -): (typeof documents)['\n query GetRecentHighSecuritySets(\n $limit: Int\n $offset: Int\n $orderBy: [HighSecuritySetOrderByInput!]\n $where: HighSecuritySetWhereInput\n ) {\n highSecuritySets(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n id\n extrinsic {\n id\n pallet\n call\n }\n who {\n id\n }\n interceptor {\n id\n }\n timestamp\n delay\n block {\n height\n }\n }\n }\n ']; + source: '\n query GetHighSecuritySets(\n $limit: Int\n $offset: Int\n $orderBy: [high_security_set_order_by!]\n $where: high_security_set_bool_exp\n ) {\n highSecuritySets: high_security_set(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n id\n extrinsic {\n id\n pallet\n call\n }\n who {\n id\n }\n interceptor {\n id\n }\n timestamp\n delay\n block {\n height\n }\n }\n meta: high_security_set_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ' +): (typeof documents)['\n query GetHighSecuritySets(\n $limit: Int\n $offset: Int\n $orderBy: [high_security_set_order_by!]\n $where: high_security_set_bool_exp\n ) {\n highSecuritySets: high_security_set(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n id\n extrinsic {\n id\n pallet\n call\n }\n who {\n id\n }\n interceptor {\n id\n }\n timestamp\n delay\n block {\n height\n }\n }\n meta: high_security_set_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ export function gql( - source: '\n query GetHighSecuritySetsStats(\n $startDate: DateTime!\n $endDate: DateTime!\n ) {\n last24Hour: highSecuritySetsConnection(\n orderBy: id_ASC\n where: { timestamp_gte: $startDate, timestamp_lte: $endDate }\n ) {\n totalCount\n }\n allTime: highSecuritySetsConnection(orderBy: id_ASC) {\n totalCount\n }\n }\n ' -): (typeof documents)['\n query GetHighSecuritySetsStats(\n $startDate: DateTime!\n $endDate: DateTime!\n ) {\n last24Hour: highSecuritySetsConnection(\n orderBy: id_ASC\n where: { timestamp_gte: $startDate, timestamp_lte: $endDate }\n ) {\n totalCount\n }\n allTime: highSecuritySetsConnection(orderBy: id_ASC) {\n totalCount\n }\n }\n ']; + source: '\n query GetRecentHighSecuritySets(\n $limit: Int\n $offset: Int\n $orderBy: [high_security_set_order_by!]\n $where: high_security_set_bool_exp\n ) {\n highSecuritySets: high_security_set(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n id\n extrinsic {\n id\n pallet\n call\n }\n who {\n id\n }\n interceptor {\n id\n }\n timestamp\n delay\n block {\n height\n }\n }\n }\n ' +): (typeof documents)['\n query GetRecentHighSecuritySets(\n $limit: Int\n $offset: Int\n $orderBy: [high_security_set_order_by!]\n $where: high_security_set_bool_exp\n ) {\n highSecuritySets: high_security_set(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n id\n extrinsic {\n id\n pallet\n call\n }\n who {\n id\n }\n interceptor {\n id\n }\n timestamp\n delay\n block {\n height\n }\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ export function gql( - source: '\n query GetHighSecuritySetByHash($hash: String!) {\n highSecuritySets(where: { extrinsic: { id_eq: $hash } }) {\n id\n extrinsic {\n id\n pallet\n call\n }\n who {\n id\n }\n interceptor {\n id\n }\n timestamp\n delay\n block {\n height\n }\n }\n }\n ' -): (typeof documents)['\n query GetHighSecuritySetByHash($hash: String!) {\n highSecuritySets(where: { extrinsic: { id_eq: $hash } }) {\n id\n extrinsic {\n id\n pallet\n call\n }\n who {\n id\n }\n interceptor {\n id\n }\n timestamp\n delay\n block {\n height\n }\n }\n }\n ']; + source: '\n query GetHighSecuritySetsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: high_security_set_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_high_security_sets\n }\n }\n ' +): (typeof documents)['\n query GetHighSecuritySetsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: high_security_set_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_high_security_sets\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ export function gql( - source: '\n query GetMinerLeaderboard($limit: Int, $offset: Int) {\n leaderboardEntries: minerStats(\n limit: $limit\n offset: $offset\n orderBy: totalMinedBlocks_DESC\n ) {\n id\n totalMinedBlocks\n totalRewards\n }\n meta: minerStatsConnection(orderBy: id_ASC) {\n totalCount\n }\n }\n ' -): (typeof documents)['\n query GetMinerLeaderboard($limit: Int, $offset: Int) {\n leaderboardEntries: minerStats(\n limit: $limit\n offset: $offset\n orderBy: totalMinedBlocks_DESC\n ) {\n id\n totalMinedBlocks\n totalRewards\n }\n meta: minerStatsConnection(orderBy: id_ASC) {\n totalCount\n }\n }\n ']; + source: '\n query GetHighSecuritySetByHash($hash: String!) {\n highSecuritySets: high_security_set(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n id\n extrinsic {\n id\n pallet\n call\n }\n who {\n id\n }\n interceptor {\n id\n }\n timestamp\n delay\n block {\n height\n }\n }\n }\n ' +): (typeof documents)['\n query GetHighSecuritySetByHash($hash: String!) {\n highSecuritySets: high_security_set(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n id\n extrinsic {\n id\n pallet\n call\n }\n who {\n id\n }\n interceptor {\n id\n }\n timestamp\n delay\n block {\n height\n }\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ export function gql( - source: '\n query GetMinerRewards(\n $limit: Int\n $offset: Int\n $orderBy: [MinerRewardOrderByInput!]\n $where: MinerRewardWhereInput\n ) {\n minerRewards(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n meta: minerRewardsConnection(orderBy: id_ASC, where: $where) {\n totalCount\n }\n }\n ' -): (typeof documents)['\n query GetMinerRewards(\n $limit: Int\n $offset: Int\n $orderBy: [MinerRewardOrderByInput!]\n $where: MinerRewardWhereInput\n ) {\n minerRewards(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n meta: minerRewardsConnection(orderBy: id_ASC, where: $where) {\n totalCount\n }\n }\n ']; + source: '\n query GetMinerLeaderboard($limit: Int, $offset: Int) {\n leaderboardEntries: account_stats(\n limit: $limit\n offset: $offset\n order_by: { total_rewards: desc }\n ) {\n id\n total_mined_blocks\n total_rewards\n }\n meta: chain_stats_by_pk(id: "global") {\n totalCount: total_miner_rewards\n }\n }\n ' +): (typeof documents)['\n query GetMinerLeaderboard($limit: Int, $offset: Int) {\n leaderboardEntries: account_stats(\n limit: $limit\n offset: $offset\n order_by: { total_rewards: desc }\n ) {\n id\n total_mined_blocks\n total_rewards\n }\n meta: chain_stats_by_pk(id: "global") {\n totalCount: total_miner_rewards\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ export function gql( - source: '\n query GetRecentMinerRewards(\n $limit: Int\n $offset: Int\n $orderBy: [MinerRewardOrderByInput!]\n $where: MinerRewardWhereInput\n ) {\n minerRewards(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n }\n ' -): (typeof documents)['\n query GetRecentMinerRewards(\n $limit: Int\n $offset: Int\n $orderBy: [MinerRewardOrderByInput!]\n $where: MinerRewardWhereInput\n ) {\n minerRewards(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n }\n ']; + source: '\n query GetMinerRewards(\n $limit: Int\n $offset: Int\n $orderBy: [miner_reward_order_by!]\n $where: miner_reward_bool_exp\n ) {\n minerRewards: miner_reward(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n meta: miner_reward_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ' +): (typeof documents)['\n query GetMinerRewards(\n $limit: Int\n $offset: Int\n $orderBy: [miner_reward_order_by!]\n $where: miner_reward_bool_exp\n ) {\n minerRewards: miner_reward(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n meta: miner_reward_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ export function gql( - source: '\n query GetMinerRewardsStats($startDate: DateTime!, $endDate: DateTime!) {\n last24Hour: minerRewardsConnection(\n orderBy: id_ASC\n where: { timestamp_gte: $startDate, timestamp_lte: $endDate }\n ) {\n totalCount\n }\n allTime: minerRewardsConnection(orderBy: id_ASC) {\n totalCount\n }\n }\n ' -): (typeof documents)['\n query GetMinerRewardsStats($startDate: DateTime!, $endDate: DateTime!) {\n last24Hour: minerRewardsConnection(\n orderBy: id_ASC\n where: { timestamp_gte: $startDate, timestamp_lte: $endDate }\n ) {\n totalCount\n }\n allTime: minerRewardsConnection(orderBy: id_ASC) {\n totalCount\n }\n }\n ']; + source: '\n query GetRecentMinerRewards(\n $limit: Int\n $offset: Int\n $orderBy: [miner_reward_order_by!]\n $where: miner_reward_bool_exp\n ) {\n minerRewards: miner_reward(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n }\n ' +): (typeof documents)['\n query GetRecentMinerRewards(\n $limit: Int\n $offset: Int\n $orderBy: [miner_reward_order_by!]\n $where: miner_reward_bool_exp\n ) {\n minerRewards: miner_reward(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ export function gql( - source: '\n query GetMinerRewardByHash($hash: String!) {\n minerRewards(where: { block: { hash_eq: $hash } }) {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n }\n ' -): (typeof documents)['\n query GetMinerRewardByHash($hash: String!) {\n minerRewards(where: { block: { hash_eq: $hash } }) {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n }\n ']; + source: '\n query GetMinerRewardsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: miner_reward_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_miner_rewards\n }\n }\n ' +): (typeof documents)['\n query GetMinerRewardsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: miner_reward_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_miner_rewards\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ export function gql( - source: '\n query GetScheduledReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [ScheduledReversibleTransferOrderByInput!]\n $where: ScheduledReversibleTransferWhereInput\n ) {\n scheduledReversibleTransactions: scheduledReversibleTransfers(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n meta: scheduledReversibleTransfersConnection(\n orderBy: id_ASC\n where: $where\n ) {\n totalCount\n }\n }\n ' -): (typeof documents)['\n query GetScheduledReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [ScheduledReversibleTransferOrderByInput!]\n $where: ScheduledReversibleTransferWhereInput\n ) {\n scheduledReversibleTransactions: scheduledReversibleTransfers(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n meta: scheduledReversibleTransfersConnection(\n orderBy: id_ASC\n where: $where\n ) {\n totalCount\n }\n }\n ']; + source: '\n query GetMinerRewardByHash($hash: String!) {\n minerRewards: miner_reward(where: { block: { hash: { _eq: $hash } } }) {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n }\n ' +): (typeof documents)['\n query GetMinerRewardByHash($hash: String!) {\n minerRewards: miner_reward(where: { block: { hash: { _eq: $hash } } }) {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ export function gql( - source: '\n query GetRecentScheduledReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [ScheduledReversibleTransferOrderByInput!]\n ) {\n scheduledReversibleTransactions: scheduledReversibleTransfers(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n ) {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n ' -): (typeof documents)['\n query GetRecentScheduledReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [ScheduledReversibleTransferOrderByInput!]\n ) {\n scheduledReversibleTransactions: scheduledReversibleTransfers(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n ) {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n ']; + source: '\n query GetScheduledReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [scheduled_reversible_transfer_order_by!]\n $where: scheduled_reversible_transfer_bool_exp\n ) {\n scheduledReversibleTransactions: scheduled_reversible_transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduled_at\n tx_id\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n meta: scheduled_reversible_transfer_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ' +): (typeof documents)['\n query GetScheduledReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [scheduled_reversible_transfer_order_by!]\n $where: scheduled_reversible_transfer_bool_exp\n ) {\n scheduledReversibleTransactions: scheduled_reversible_transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduled_at\n tx_id\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n meta: scheduled_reversible_transfer_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ export function gql( - source: '\n query GetScheduledReversibleTransactionsStats(\n $startDate: DateTime!\n $endDate: DateTime!\n ) {\n last24Hour: scheduledReversibleTransfersConnection(\n orderBy: id_ASC\n where: { timestamp_gte: $startDate, timestamp_lte: $endDate }\n ) {\n totalCount\n }\n allTime: scheduledReversibleTransfersConnection(orderBy: id_ASC) {\n totalCount\n }\n }\n ' -): (typeof documents)['\n query GetScheduledReversibleTransactionsStats(\n $startDate: DateTime!\n $endDate: DateTime!\n ) {\n last24Hour: scheduledReversibleTransfersConnection(\n orderBy: id_ASC\n where: { timestamp_gte: $startDate, timestamp_lte: $endDate }\n ) {\n totalCount\n }\n allTime: scheduledReversibleTransfersConnection(orderBy: id_ASC) {\n totalCount\n }\n }\n ']; + source: '\n query GetRecentScheduledReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [scheduled_reversible_transfer_order_by!]\n ) {\n scheduledReversibleTransactions: scheduled_reversible_transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n ) {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduled_at\n tx_id\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n ' +): (typeof documents)['\n query GetRecentScheduledReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [scheduled_reversible_transfer_order_by!]\n ) {\n scheduledReversibleTransactions: scheduled_reversible_transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n ) {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduled_at\n tx_id\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ export function gql( - source: '\n query GetScheduledReversibleTransactionByTxId($txId: String!) {\n scheduledReversibleTransactions: scheduledReversibleTransfers(\n where: { txId_eq: $txId }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n ' -): (typeof documents)['\n query GetScheduledReversibleTransactionByTxId($txId: String!) {\n scheduledReversibleTransactions: scheduledReversibleTransfers(\n where: { txId_eq: $txId }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n ']; + source: '\n query GetScheduledReversibleTransactionsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: scheduled_reversible_transfer_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_scheduled_transfers\n }\n }\n ' +): (typeof documents)['\n query GetScheduledReversibleTransactionsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: scheduled_reversible_transfer_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_scheduled_transfers\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ export function gql( - source: '\n query SearchAll($keyword: String, $keyword_number: Int, $limit: Int) {\n transactions: transfers(\n limit: $limit\n where: { extrinsic: { id_startsWith: $keyword } }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n }\n scheduledReversibleTransactions: scheduledReversibleTransfers(\n limit: $limit\n where: { txId_startsWith: $keyword }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n txId\n }\n executedReversibleTransactions: executedReversibleTransfers(\n limit: $limit\n where: { txId_startsWith: $keyword }\n ) {\n txId\n }\n cancelledReversibleTransactions: cancelledReversibleTransfers(\n limit: $limit\n where: { txId_startsWith: $keyword }\n ) {\n txId\n }\n accounts(limit: $limit, where: { id_startsWith: $keyword }) {\n id\n }\n blocks(\n limit: $limit\n where: {\n hash_startsWith: $keyword\n OR: { height_eq: $keyword_number }\n }\n ) {\n height\n }\n highSecuritySets(\n limit: $limit\n where: { extrinsic: { id_startsWith: $keyword } }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n }\n minerRewards(\n limit: $limit\n where: { block: { hash_startsWith: $keyword } }\n ) {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n errorEvents(\n limit: $limit\n where: {\n errorType_containsInsensitive: $keyword\n OR: { errorName_containsInsensitive: $keyword }\n }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n }\n }\n ' -): (typeof documents)['\n query SearchAll($keyword: String, $keyword_number: Int, $limit: Int) {\n transactions: transfers(\n limit: $limit\n where: { extrinsic: { id_startsWith: $keyword } }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n }\n scheduledReversibleTransactions: scheduledReversibleTransfers(\n limit: $limit\n where: { txId_startsWith: $keyword }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n txId\n }\n executedReversibleTransactions: executedReversibleTransfers(\n limit: $limit\n where: { txId_startsWith: $keyword }\n ) {\n txId\n }\n cancelledReversibleTransactions: cancelledReversibleTransfers(\n limit: $limit\n where: { txId_startsWith: $keyword }\n ) {\n txId\n }\n accounts(limit: $limit, where: { id_startsWith: $keyword }) {\n id\n }\n blocks(\n limit: $limit\n where: {\n hash_startsWith: $keyword\n OR: { height_eq: $keyword_number }\n }\n ) {\n height\n }\n highSecuritySets(\n limit: $limit\n where: { extrinsic: { id_startsWith: $keyword } }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n }\n minerRewards(\n limit: $limit\n where: { block: { hash_startsWith: $keyword } }\n ) {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n errorEvents(\n limit: $limit\n where: {\n errorType_containsInsensitive: $keyword\n OR: { errorName_containsInsensitive: $keyword }\n }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n }\n }\n ']; + source: '\n query GetScheduledReversibleTransactionByTxId($tx_id: String!) {\n scheduledReversibleTransactions: scheduled_reversible_transfer(\n where: { tx_id: { _eq: $tx_id } }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduled_at\n tx_id\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n ' +): (typeof documents)['\n query GetScheduledReversibleTransactionByTxId($tx_id: String!) {\n scheduledReversibleTransactions: scheduled_reversible_transfer(\n where: { tx_id: { _eq: $tx_id } }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduled_at\n tx_id\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ export function gql( - source: '\n query GetTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [TransferOrderByInput!]\n $where: TransferWhereInput\n ) {\n transactions: transfers(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n fee\n extrinsic {\n id\n pallet\n call\n }\n block {\n height\n }\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n }\n meta: transfersConnection(orderBy: id_ASC, where: $where) {\n totalCount\n }\n }\n ' -): (typeof documents)['\n query GetTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [TransferOrderByInput!]\n $where: TransferWhereInput\n ) {\n transactions: transfers(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n fee\n extrinsic {\n id\n pallet\n call\n }\n block {\n height\n }\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n }\n meta: transfersConnection(orderBy: id_ASC, where: $where) {\n totalCount\n }\n }\n ']; + source: '\n query SearchAll($keyword: String, $keyword_number: Int, $limit: Int) {\n transactions: transfer(\n limit: $limit\n where: { extrinsic: { id: { _ilike: $keyword } } }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n }\n scheduledReversibleTransactions: scheduled_reversible_transfer(\n limit: $limit\n where: { tx_id: { _ilike: $keyword } }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n tx_id\n }\n executedReversibleTransactions: executed_reversible_transfer(\n limit: $limit\n where: { tx_id: { _ilike: $keyword } }\n ) {\n tx_id\n }\n cancelledReversibleTransactions: cancelled_reversible_transfer(\n limit: $limit\n where: { tx_id: { _ilike: $keyword } }\n ) {\n tx_id\n }\n accounts: account(limit: $limit, where: { id: { _ilike: $keyword } }) {\n id\n }\n blocks: block(\n limit: $limit\n where: {\n _or: [\n { hash: { _ilike: $keyword } }\n { height: { _eq: $keyword_number } }\n ]\n }\n ) {\n height\n }\n highSecuritySets: high_security_set(\n limit: $limit\n where: { extrinsic: { id: { _ilike: $keyword } } }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n }\n minerRewards: miner_reward(\n limit: $limit\n where: { block: { hash: { _ilike: $keyword } } }\n ) {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n errorEvents: error_event(\n limit: $limit\n where: {\n _or: [\n { error_type: { _ilike: $keyword } }\n { error_name: { _ilike: $keyword } }\n ]\n }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n }\n }\n ' +): (typeof documents)['\n query SearchAll($keyword: String, $keyword_number: Int, $limit: Int) {\n transactions: transfer(\n limit: $limit\n where: { extrinsic: { id: { _ilike: $keyword } } }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n }\n scheduledReversibleTransactions: scheduled_reversible_transfer(\n limit: $limit\n where: { tx_id: { _ilike: $keyword } }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n tx_id\n }\n executedReversibleTransactions: executed_reversible_transfer(\n limit: $limit\n where: { tx_id: { _ilike: $keyword } }\n ) {\n tx_id\n }\n cancelledReversibleTransactions: cancelled_reversible_transfer(\n limit: $limit\n where: { tx_id: { _ilike: $keyword } }\n ) {\n tx_id\n }\n accounts: account(limit: $limit, where: { id: { _ilike: $keyword } }) {\n id\n }\n blocks: block(\n limit: $limit\n where: {\n _or: [\n { hash: { _ilike: $keyword } }\n { height: { _eq: $keyword_number } }\n ]\n }\n ) {\n height\n }\n highSecuritySets: high_security_set(\n limit: $limit\n where: { extrinsic: { id: { _ilike: $keyword } } }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n }\n minerRewards: miner_reward(\n limit: $limit\n where: { block: { hash: { _ilike: $keyword } } }\n ) {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n errorEvents: error_event(\n limit: $limit\n where: {\n _or: [\n { error_type: { _ilike: $keyword } }\n { error_name: { _ilike: $keyword } }\n ]\n }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ export function gql( - source: '\n query GetRecentTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [TransferOrderByInput!]\n $where: TransferWhereInput\n ) {\n transactions: transfers(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n fee\n extrinsic {\n id\n pallet\n call\n }\n block {\n height\n }\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n }\n }\n ' -): (typeof documents)['\n query GetRecentTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [TransferOrderByInput!]\n $where: TransferWhereInput\n ) {\n transactions: transfers(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n fee\n extrinsic {\n id\n pallet\n call\n }\n block {\n height\n }\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n }\n }\n ']; + source: '\n query GetTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [transfer_order_by!]\n $where: transfer_bool_exp\n ) {\n transactions: transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n fee\n extrinsic {\n id\n pallet\n call\n }\n block {\n height\n }\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n }\n meta: transfer_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ' +): (typeof documents)['\n query GetTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [transfer_order_by!]\n $where: transfer_bool_exp\n ) {\n transactions: transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n fee\n extrinsic {\n id\n pallet\n call\n }\n block {\n height\n }\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n }\n meta: transfer_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ export function gql( - source: '\n query GetTransactionsStats($startDate: DateTime!, $endDate: DateTime!) {\n last24Hour: transfersConnection(\n orderBy: id_ASC\n where: {\n timestamp_gte: $startDate\n timestamp_lte: $endDate\n extrinsic_isNull: false\n }\n ) {\n totalCount\n }\n allTime: transfersConnection(\n orderBy: id_ASC\n where: { extrinsic_isNull: false }\n ) {\n totalCount\n }\n allTime: transfersConnection(\n orderBy: id_ASC\n where: { extrinsic_isNull: false }\n ) {\n totalCount\n }\n }\n ' -): (typeof documents)['\n query GetTransactionsStats($startDate: DateTime!, $endDate: DateTime!) {\n last24Hour: transfersConnection(\n orderBy: id_ASC\n where: {\n timestamp_gte: $startDate\n timestamp_lte: $endDate\n extrinsic_isNull: false\n }\n ) {\n totalCount\n }\n allTime: transfersConnection(\n orderBy: id_ASC\n where: { extrinsic_isNull: false }\n ) {\n totalCount\n }\n allTime: transfersConnection(\n orderBy: id_ASC\n where: { extrinsic_isNull: false }\n ) {\n totalCount\n }\n }\n ']; + source: '\n query GetRecentTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [transfer_order_by!]\n $where: transfer_bool_exp\n ) {\n transactions: transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n fee\n extrinsic {\n id\n pallet\n call\n }\n block {\n height\n }\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n }\n }\n ' +): (typeof documents)['\n query GetRecentTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [transfer_order_by!]\n $where: transfer_bool_exp\n ) {\n transactions: transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n fee\n extrinsic {\n id\n pallet\n call\n }\n block {\n height\n }\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ export function gql( - source: '\n query GetExtrinsicByHash($hash: String!) {\n extrinsics(where: { id_eq: $hash }) {\n id\n pallet\n call\n success\n fee\n timestamp\n indexInBlock\n signer {\n id\n }\n block {\n height\n }\n }\n transfers(\n where: { extrinsic: { id_eq: $hash } }\n orderBy: timestamp_ASC\n ) {\n id\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n }\n }\n ' -): (typeof documents)['\n query GetExtrinsicByHash($hash: String!) {\n extrinsics(where: { id_eq: $hash }) {\n id\n pallet\n call\n success\n fee\n timestamp\n indexInBlock\n signer {\n id\n }\n block {\n height\n }\n }\n transfers(\n where: { extrinsic: { id_eq: $hash } }\n orderBy: timestamp_ASC\n ) {\n id\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n }\n }\n ']; + source: '\n query GetTransactionsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: transfer_aggregate(\n where: {\n timestamp: { _gte: $startDate, _lte: $endDate }\n extrinsic_id: { _is_null: false }\n }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_immediate_transfers\n }\n }\n ' +): (typeof documents)['\n query GetTransactionsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: transfer_aggregate(\n where: {\n timestamp: { _gte: $startDate, _lte: $endDate }\n extrinsic_id: { _is_null: false }\n }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_immediate_transfers\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ export function gql( - source: '\n query GetWormholeExtrinsics(\n $limit: Int\n $offset: Int\n $orderBy: [WormholeExtrinsicOrderByInput!]!\n $where: WormholeExtrinsicWhereInput\n ) {\n wormholeExtrinsics(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n id\n extrinsic {\n id\n pallet\n call\n }\n totalAmount\n outputCount\n timestamp\n privacyScore\n privacyLabel\n block {\n height\n }\n }\n meta: wormholeExtrinsicsConnection(orderBy: id_ASC) {\n totalCount\n }\n }\n' -): (typeof documents)['\n query GetWormholeExtrinsics(\n $limit: Int\n $offset: Int\n $orderBy: [WormholeExtrinsicOrderByInput!]!\n $where: WormholeExtrinsicWhereInput\n ) {\n wormholeExtrinsics(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n id\n extrinsic {\n id\n pallet\n call\n }\n totalAmount\n outputCount\n timestamp\n privacyScore\n privacyLabel\n block {\n height\n }\n }\n meta: wormholeExtrinsicsConnection(orderBy: id_ASC) {\n totalCount\n }\n }\n']; + source: '\n query GetExtrinsicByHash($hash: String!) {\n extrinsics: extrinsic(where: { id: { _eq: $hash } }) {\n id\n pallet\n call\n success\n fee\n timestamp\n index_in_block\n signer {\n id\n }\n block {\n height\n }\n }\n transfers: transfer(\n where: { extrinsic: { id: { _eq: $hash } } }\n order_by: { timestamp: asc }\n ) {\n id\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n }\n }\n ' +): (typeof documents)['\n query GetExtrinsicByHash($hash: String!) {\n extrinsics: extrinsic(where: { id: { _eq: $hash } }) {\n id\n pallet\n call\n success\n fee\n timestamp\n index_in_block\n signer {\n id\n }\n block {\n height\n }\n }\n transfers: transfer(\n where: { extrinsic: { id: { _eq: $hash } } }\n order_by: { timestamp: asc }\n ) {\n id\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ export function gql( - source: '\n query GetWormholeExtrinsicById($id: String!) {\n wormholeExtrinsicById(id: $id) {\n id\n extrinsic {\n id\n pallet\n call\n }\n totalAmount\n outputCount\n timestamp\n privacyScore\n privacyScore01Pct\n privacyScore1Pct\n privacyScore5Pct\n privacyLabel\n poolSnapshot\n block {\n id\n height\n hash\n timestamp\n }\n outputs {\n id\n exitAccount {\n id\n }\n amount\n }\n }\n wormholeNullifiers(\n where: { wormholeExtrinsic: { extrinsic: { id_eq: $id } } }\n ) {\n nullifier\n nullifierHash\n }\n }\n' -): (typeof documents)['\n query GetWormholeExtrinsicById($id: String!) {\n wormholeExtrinsicById(id: $id) {\n id\n extrinsic {\n id\n pallet\n call\n }\n totalAmount\n outputCount\n timestamp\n privacyScore\n privacyScore01Pct\n privacyScore1Pct\n privacyScore5Pct\n privacyLabel\n poolSnapshot\n block {\n id\n height\n hash\n timestamp\n }\n outputs {\n id\n exitAccount {\n id\n }\n amount\n }\n }\n wormholeNullifiers(\n where: { wormholeExtrinsic: { extrinsic: { id_eq: $id } } }\n ) {\n nullifier\n nullifierHash\n }\n }\n']; + source: '\n query GetWormholeExtrinsics(\n $limit: Int\n $offset: Int\n $orderBy: [wormhole_extrinsic_order_by!]!\n $where: wormhole_extrinsic_bool_exp\n ) {\n wormholeExtrinsics: wormhole_extrinsic(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n id\n extrinsic {\n id\n pallet\n call\n }\n total_amount\n output_count\n timestamp\n privacy_score\n privacy_label\n block {\n height\n }\n }\n meta: wormhole_extrinsic_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n' +): (typeof documents)['\n query GetWormholeExtrinsics(\n $limit: Int\n $offset: Int\n $orderBy: [wormhole_extrinsic_order_by!]!\n $where: wormhole_extrinsic_bool_exp\n ) {\n wormholeExtrinsics: wormhole_extrinsic(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n id\n extrinsic {\n id\n pallet\n call\n }\n total_amount\n output_count\n timestamp\n privacy_score\n privacy_label\n block {\n height\n }\n }\n meta: wormhole_extrinsic_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ export function gql( - source: '\n query GetDepositPoolStats {\n depositPoolStatsById(id: "global") {\n lastUpdatedBlock\n buckets\n }\n }\n' -): (typeof documents)['\n query GetDepositPoolStats {\n depositPoolStatsById(id: "global") {\n lastUpdatedBlock\n buckets\n }\n }\n']; + source: '\n query GetWormholeExtrinsicById($id: String!) {\n wormholeExtrinsicById: wormhole_extrinsic_by_pk(id: $id) {\n id\n extrinsic {\n id\n pallet\n call\n }\n total_amount\n output_count\n timestamp\n privacy_score\n privacy_score01_pct\n privacy_score1_pct\n privacy_score5_pct\n privacy_label\n pool_snapshot\n block {\n id\n height\n hash\n timestamp\n }\n outputs {\n id\n exitAccount {\n id\n }\n amount\n }\n }\n wormholeNullifiers: wormhole_nullifier(\n where: { wormholeExtrinsic: { id: { _eq: $id } } }\n ) {\n nullifier\n nullifier_hash\n }\n }\n' +): (typeof documents)['\n query GetWormholeExtrinsicById($id: String!) {\n wormholeExtrinsicById: wormhole_extrinsic_by_pk(id: $id) {\n id\n extrinsic {\n id\n pallet\n call\n }\n total_amount\n output_count\n timestamp\n privacy_score\n privacy_score01_pct\n privacy_score1_pct\n privacy_score5_pct\n privacy_label\n pool_snapshot\n block {\n id\n height\n hash\n timestamp\n }\n outputs {\n id\n exitAccount {\n id\n }\n amount\n }\n }\n wormholeNullifiers: wormhole_nullifier(\n where: { wormholeExtrinsic: { id: { _eq: $id } } }\n ) {\n nullifier\n nullifier_hash\n }\n }\n']; +/** + * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. + */ +export function gql( + source: '\n query GetDepositPoolStats {\n depositPoolStatsById: deposit_pool_stats_by_pk(id: "global") {\n last_updated_block\n buckets\n }\n }\n' +): (typeof documents)['\n query GetDepositPoolStats {\n depositPoolStatsById: deposit_pool_stats_by_pk(id: "global") {\n last_updated_block\n buckets\n }\n }\n']; export function gql(source: string) { return (documents as any)[source] ?? {}; diff --git a/src/__generated__/graphql.ts b/src/__generated__/graphql.ts index 42bbad4..be5cce6 100644 --- a/src/__generated__/graphql.ts +++ b/src/__generated__/graphql.ts @@ -27,7974 +27,6513 @@ export type Scalars = { Boolean: { input: boolean; output: boolean }; Int: { input: number; output: number }; Float: { input: number; output: number }; - /** Big number integer */ - BigInt: { input: any; output: any }; - /** A date-time string in simplified extended ISO 8601 format (YYYY-MM-DDTHH:mm:ss.sssZ) */ - DateTime: { input: any; output: any }; -}; - + numeric: { input: any; output: any }; + timestamptz: { input: any; output: any }; +}; + +/** Boolean expression to compare columns of type "Boolean". All fields are combined with logical 'AND'. */ +export type Boolean_Comparison_Exp = { + _eq?: InputMaybe; + _gt?: InputMaybe; + _gte?: InputMaybe; + _in?: InputMaybe>; + _is_null?: InputMaybe; + _lt?: InputMaybe; + _lte?: InputMaybe; + _neq?: InputMaybe; + _nin?: InputMaybe>; +}; + +/** Boolean expression to compare columns of type "Int". All fields are combined with logical 'AND'. */ +export type Int_Comparison_Exp = { + _eq?: InputMaybe; + _gt?: InputMaybe; + _gte?: InputMaybe; + _in?: InputMaybe>; + _is_null?: InputMaybe; + _lt?: InputMaybe; + _lte?: InputMaybe; + _neq?: InputMaybe; + _nin?: InputMaybe>; +}; + +/** Boolean expression to compare columns of type "String". All fields are combined with logical 'AND'. */ +export type String_Comparison_Exp = { + _eq?: InputMaybe; + _gt?: InputMaybe; + _gte?: InputMaybe; + /** does the column match the given case-insensitive pattern */ + _ilike?: InputMaybe; + _in?: InputMaybe>; + /** does the column match the given POSIX regular expression, case insensitive */ + _iregex?: InputMaybe; + _is_null?: InputMaybe; + /** does the column match the given pattern */ + _like?: InputMaybe; + _lt?: InputMaybe; + _lte?: InputMaybe; + _neq?: InputMaybe; + /** does the column NOT match the given case-insensitive pattern */ + _nilike?: InputMaybe; + _nin?: InputMaybe>; + /** does the column NOT match the given POSIX regular expression, case insensitive */ + _niregex?: InputMaybe; + /** does the column NOT match the given pattern */ + _nlike?: InputMaybe; + /** does the column NOT match the given POSIX regular expression, case sensitive */ + _nregex?: InputMaybe; + /** does the column NOT match the given SQL regular expression */ + _nsimilar?: InputMaybe; + /** does the column match the given POSIX regular expression, case sensitive */ + _regex?: InputMaybe; + /** does the column match the given SQL regular expression */ + _similar?: InputMaybe; +}; + +/** columns and relationships of "account" */ export type Account = { - __typename?: 'Account'; - accountEvents: Array; - /** Extrinsics signed by this account */ + __typename?: 'account'; + /** An array relationship */ + accountEvents: Array; + /** An aggregate relationship */ + accountEvents_aggregate: Account_Event_Aggregate; + /** An array relationship */ extrinsics: Array; - free: Scalars['BigInt']['output']; - frozen: Scalars['BigInt']['output']; - /** Account address */ + /** An aggregate relationship */ + extrinsics_aggregate: Extrinsic_Aggregate; + free: Scalars['numeric']['output']; + frozen: Scalars['numeric']['output']; id: Scalars['String']['output']; - /** Whether this account has only received transfers (never sent). Used for deposit pool tracking. */ - isDepositOnly: Scalars['Boolean']['output']; - lastUpdated: Scalars['Int']['output']; - /** Individual privacy deposit amounts (JSON array of planck strings). Cleared when account sends. */ - privacyDeposits: Scalars['String']['output']; - reserved: Scalars['BigInt']['output']; + is_deposit_only: Scalars['Boolean']['output']; + last_updated: Scalars['Int']['output']; + privacy_deposits: Scalars['String']['output']; + reserved: Scalars['numeric']['output']; + /** An array relationship */ transfersFrom: Array; + /** An aggregate relationship */ + transfersFrom_aggregate: Transfer_Aggregate; + /** An array relationship */ transfersTo: Array; + /** An aggregate relationship */ + transfersTo_aggregate: Transfer_Aggregate; }; +/** columns and relationships of "account" */ export type AccountAccountEventsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + +/** columns and relationships of "account" */ +export type AccountAccountEvents_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - orderBy?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; +/** columns and relationships of "account" */ export type AccountExtrinsicsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + +/** columns and relationships of "account" */ +export type AccountExtrinsics_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - orderBy?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; +/** columns and relationships of "account" */ export type AccountTransfersFromArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - orderBy?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type AccountTransfersToArgs = { +/** columns and relationships of "account" */ +export type AccountTransfersFrom_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - orderBy?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type AccountEdge = { - __typename?: 'AccountEdge'; - cursor: Scalars['String']['output']; - node: Account; +/** columns and relationships of "account" */ +export type AccountTransfersToArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type AccountEvent = { - __typename?: 'AccountEvent'; - account: Account; - balanceEvent?: Maybe; - cancelledReversibleTransfer?: Maybe; - executedReversibleTransfer?: Maybe; - highSecuritySet?: Maybe; +/** columns and relationships of "account" */ +export type AccountTransfersTo_AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + +/** aggregated selection of "account" */ +export type Account_Aggregate = { + __typename?: 'account_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "account" */ +export type Account_Aggregate_Fields = { + __typename?: 'account_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + +/** aggregate fields of "account" */ +export type Account_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type Account_Avg_Fields = { + __typename?: 'account_avg_fields'; + free?: Maybe; + frozen?: Maybe; + last_updated?: Maybe; + reserved?: Maybe; +}; + +/** Boolean expression to filter rows from the table "account". All fields are combined with a logical 'AND'. */ +export type Account_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + accountEvents?: InputMaybe; + accountEvents_aggregate?: InputMaybe; + extrinsics?: InputMaybe; + extrinsics_aggregate?: InputMaybe; + free?: InputMaybe; + frozen?: InputMaybe; + id?: InputMaybe; + is_deposit_only?: InputMaybe; + last_updated?: InputMaybe; + privacy_deposits?: InputMaybe; + reserved?: InputMaybe; + transfersFrom?: InputMaybe; + transfersFrom_aggregate?: InputMaybe; + transfersTo?: InputMaybe; + transfersTo_aggregate?: InputMaybe; +}; + +/** columns and relationships of "account_event" */ +export type Account_Event = { + __typename?: 'account_event'; + /** An object relationship */ + account?: Maybe; + account_id?: Maybe; + /** An object relationship */ + cancelledReversibleTransfer?: Maybe; + cancelled_reversible_transfer_id?: Maybe; + /** An object relationship */ + executedReversibleTransfer?: Maybe; + executed_reversible_transfer_id?: Maybe; + /** An object relationship */ + highSecuritySet?: Maybe; + high_security_set_id?: Maybe; id: Scalars['String']['output']; - minerReward?: Maybe; - scheduledReversibleTransfer?: Maybe; - timestamp: Scalars['DateTime']['output']; + /** An object relationship */ + minerReward?: Maybe; + miner_reward_id?: Maybe; + /** An object relationship */ + scheduledReversibleTransfer?: Maybe; + scheduled_reversible_transfer_id?: Maybe; + timestamp: Scalars['timestamptz']['output']; + /** An object relationship */ transfer?: Maybe; -}; - -export type AccountEventEdge = { - __typename?: 'AccountEventEdge'; - cursor: Scalars['String']['output']; - node: AccountEvent; -}; - -export enum AccountEventOrderByInput { - AccountFreeAsc = 'account_free_ASC', - AccountFreeAscNullsFirst = 'account_free_ASC_NULLS_FIRST', - AccountFreeAscNullsLast = 'account_free_ASC_NULLS_LAST', - AccountFreeDesc = 'account_free_DESC', - AccountFreeDescNullsFirst = 'account_free_DESC_NULLS_FIRST', - AccountFreeDescNullsLast = 'account_free_DESC_NULLS_LAST', - AccountFrozenAsc = 'account_frozen_ASC', - AccountFrozenAscNullsFirst = 'account_frozen_ASC_NULLS_FIRST', - AccountFrozenAscNullsLast = 'account_frozen_ASC_NULLS_LAST', - AccountFrozenDesc = 'account_frozen_DESC', - AccountFrozenDescNullsFirst = 'account_frozen_DESC_NULLS_FIRST', - AccountFrozenDescNullsLast = 'account_frozen_DESC_NULLS_LAST', - AccountIdAsc = 'account_id_ASC', - AccountIdAscNullsFirst = 'account_id_ASC_NULLS_FIRST', - AccountIdAscNullsLast = 'account_id_ASC_NULLS_LAST', - AccountIdDesc = 'account_id_DESC', - AccountIdDescNullsFirst = 'account_id_DESC_NULLS_FIRST', - AccountIdDescNullsLast = 'account_id_DESC_NULLS_LAST', - AccountIsDepositOnlyAsc = 'account_isDepositOnly_ASC', - AccountIsDepositOnlyAscNullsFirst = 'account_isDepositOnly_ASC_NULLS_FIRST', - AccountIsDepositOnlyAscNullsLast = 'account_isDepositOnly_ASC_NULLS_LAST', - AccountIsDepositOnlyDesc = 'account_isDepositOnly_DESC', - AccountIsDepositOnlyDescNullsFirst = 'account_isDepositOnly_DESC_NULLS_FIRST', - AccountIsDepositOnlyDescNullsLast = 'account_isDepositOnly_DESC_NULLS_LAST', - AccountLastUpdatedAsc = 'account_lastUpdated_ASC', - AccountLastUpdatedAscNullsFirst = 'account_lastUpdated_ASC_NULLS_FIRST', - AccountLastUpdatedAscNullsLast = 'account_lastUpdated_ASC_NULLS_LAST', - AccountLastUpdatedDesc = 'account_lastUpdated_DESC', - AccountLastUpdatedDescNullsFirst = 'account_lastUpdated_DESC_NULLS_FIRST', - AccountLastUpdatedDescNullsLast = 'account_lastUpdated_DESC_NULLS_LAST', - AccountPrivacyDepositsAsc = 'account_privacyDeposits_ASC', - AccountPrivacyDepositsAscNullsFirst = 'account_privacyDeposits_ASC_NULLS_FIRST', - AccountPrivacyDepositsAscNullsLast = 'account_privacyDeposits_ASC_NULLS_LAST', - AccountPrivacyDepositsDesc = 'account_privacyDeposits_DESC', - AccountPrivacyDepositsDescNullsFirst = 'account_privacyDeposits_DESC_NULLS_FIRST', - AccountPrivacyDepositsDescNullsLast = 'account_privacyDeposits_DESC_NULLS_LAST', - AccountReservedAsc = 'account_reserved_ASC', - AccountReservedAscNullsFirst = 'account_reserved_ASC_NULLS_FIRST', - AccountReservedAscNullsLast = 'account_reserved_ASC_NULLS_LAST', - AccountReservedDesc = 'account_reserved_DESC', - AccountReservedDescNullsFirst = 'account_reserved_DESC_NULLS_FIRST', - AccountReservedDescNullsLast = 'account_reserved_DESC_NULLS_LAST', - BalanceEventAmountAsc = 'balanceEvent_amount_ASC', - BalanceEventAmountAscNullsFirst = 'balanceEvent_amount_ASC_NULLS_FIRST', - BalanceEventAmountAscNullsLast = 'balanceEvent_amount_ASC_NULLS_LAST', - BalanceEventAmountDesc = 'balanceEvent_amount_DESC', - BalanceEventAmountDescNullsFirst = 'balanceEvent_amount_DESC_NULLS_FIRST', - BalanceEventAmountDescNullsLast = 'balanceEvent_amount_DESC_NULLS_LAST', - BalanceEventIdAsc = 'balanceEvent_id_ASC', - BalanceEventIdAscNullsFirst = 'balanceEvent_id_ASC_NULLS_FIRST', - BalanceEventIdAscNullsLast = 'balanceEvent_id_ASC_NULLS_LAST', - BalanceEventIdDesc = 'balanceEvent_id_DESC', - BalanceEventIdDescNullsFirst = 'balanceEvent_id_DESC_NULLS_FIRST', - BalanceEventIdDescNullsLast = 'balanceEvent_id_DESC_NULLS_LAST', - BalanceEventTimestampAsc = 'balanceEvent_timestamp_ASC', - BalanceEventTimestampAscNullsFirst = 'balanceEvent_timestamp_ASC_NULLS_FIRST', - BalanceEventTimestampAscNullsLast = 'balanceEvent_timestamp_ASC_NULLS_LAST', - BalanceEventTimestampDesc = 'balanceEvent_timestamp_DESC', - BalanceEventTimestampDescNullsFirst = 'balanceEvent_timestamp_DESC_NULLS_FIRST', - BalanceEventTimestampDescNullsLast = 'balanceEvent_timestamp_DESC_NULLS_LAST', - BalanceEventTypeAsc = 'balanceEvent_type_ASC', - BalanceEventTypeAscNullsFirst = 'balanceEvent_type_ASC_NULLS_FIRST', - BalanceEventTypeAscNullsLast = 'balanceEvent_type_ASC_NULLS_LAST', - BalanceEventTypeDesc = 'balanceEvent_type_DESC', - BalanceEventTypeDescNullsFirst = 'balanceEvent_type_DESC_NULLS_FIRST', - BalanceEventTypeDescNullsLast = 'balanceEvent_type_DESC_NULLS_LAST', - CancelledReversibleTransferIdAsc = 'cancelledReversibleTransfer_id_ASC', - CancelledReversibleTransferIdAscNullsFirst = 'cancelledReversibleTransfer_id_ASC_NULLS_FIRST', - CancelledReversibleTransferIdAscNullsLast = 'cancelledReversibleTransfer_id_ASC_NULLS_LAST', - CancelledReversibleTransferIdDesc = 'cancelledReversibleTransfer_id_DESC', - CancelledReversibleTransferIdDescNullsFirst = 'cancelledReversibleTransfer_id_DESC_NULLS_FIRST', - CancelledReversibleTransferIdDescNullsLast = 'cancelledReversibleTransfer_id_DESC_NULLS_LAST', - CancelledReversibleTransferTimestampAsc = 'cancelledReversibleTransfer_timestamp_ASC', - CancelledReversibleTransferTimestampAscNullsFirst = 'cancelledReversibleTransfer_timestamp_ASC_NULLS_FIRST', - CancelledReversibleTransferTimestampAscNullsLast = 'cancelledReversibleTransfer_timestamp_ASC_NULLS_LAST', - CancelledReversibleTransferTimestampDesc = 'cancelledReversibleTransfer_timestamp_DESC', - CancelledReversibleTransferTimestampDescNullsFirst = 'cancelledReversibleTransfer_timestamp_DESC_NULLS_FIRST', - CancelledReversibleTransferTimestampDescNullsLast = 'cancelledReversibleTransfer_timestamp_DESC_NULLS_LAST', - CancelledReversibleTransferTxIdAsc = 'cancelledReversibleTransfer_txId_ASC', - CancelledReversibleTransferTxIdAscNullsFirst = 'cancelledReversibleTransfer_txId_ASC_NULLS_FIRST', - CancelledReversibleTransferTxIdAscNullsLast = 'cancelledReversibleTransfer_txId_ASC_NULLS_LAST', - CancelledReversibleTransferTxIdDesc = 'cancelledReversibleTransfer_txId_DESC', - CancelledReversibleTransferTxIdDescNullsFirst = 'cancelledReversibleTransfer_txId_DESC_NULLS_FIRST', - CancelledReversibleTransferTxIdDescNullsLast = 'cancelledReversibleTransfer_txId_DESC_NULLS_LAST', - ExecutedReversibleTransferIdAsc = 'executedReversibleTransfer_id_ASC', - ExecutedReversibleTransferIdAscNullsFirst = 'executedReversibleTransfer_id_ASC_NULLS_FIRST', - ExecutedReversibleTransferIdAscNullsLast = 'executedReversibleTransfer_id_ASC_NULLS_LAST', - ExecutedReversibleTransferIdDesc = 'executedReversibleTransfer_id_DESC', - ExecutedReversibleTransferIdDescNullsFirst = 'executedReversibleTransfer_id_DESC_NULLS_FIRST', - ExecutedReversibleTransferIdDescNullsLast = 'executedReversibleTransfer_id_DESC_NULLS_LAST', - ExecutedReversibleTransferTimestampAsc = 'executedReversibleTransfer_timestamp_ASC', - ExecutedReversibleTransferTimestampAscNullsFirst = 'executedReversibleTransfer_timestamp_ASC_NULLS_FIRST', - ExecutedReversibleTransferTimestampAscNullsLast = 'executedReversibleTransfer_timestamp_ASC_NULLS_LAST', - ExecutedReversibleTransferTimestampDesc = 'executedReversibleTransfer_timestamp_DESC', - ExecutedReversibleTransferTimestampDescNullsFirst = 'executedReversibleTransfer_timestamp_DESC_NULLS_FIRST', - ExecutedReversibleTransferTimestampDescNullsLast = 'executedReversibleTransfer_timestamp_DESC_NULLS_LAST', - ExecutedReversibleTransferTxIdAsc = 'executedReversibleTransfer_txId_ASC', - ExecutedReversibleTransferTxIdAscNullsFirst = 'executedReversibleTransfer_txId_ASC_NULLS_FIRST', - ExecutedReversibleTransferTxIdAscNullsLast = 'executedReversibleTransfer_txId_ASC_NULLS_LAST', - ExecutedReversibleTransferTxIdDesc = 'executedReversibleTransfer_txId_DESC', - ExecutedReversibleTransferTxIdDescNullsFirst = 'executedReversibleTransfer_txId_DESC_NULLS_FIRST', - ExecutedReversibleTransferTxIdDescNullsLast = 'executedReversibleTransfer_txId_DESC_NULLS_LAST', - HighSecuritySetDelayAsc = 'highSecuritySet_delay_ASC', - HighSecuritySetDelayAscNullsFirst = 'highSecuritySet_delay_ASC_NULLS_FIRST', - HighSecuritySetDelayAscNullsLast = 'highSecuritySet_delay_ASC_NULLS_LAST', - HighSecuritySetDelayDesc = 'highSecuritySet_delay_DESC', - HighSecuritySetDelayDescNullsFirst = 'highSecuritySet_delay_DESC_NULLS_FIRST', - HighSecuritySetDelayDescNullsLast = 'highSecuritySet_delay_DESC_NULLS_LAST', - HighSecuritySetIdAsc = 'highSecuritySet_id_ASC', - HighSecuritySetIdAscNullsFirst = 'highSecuritySet_id_ASC_NULLS_FIRST', - HighSecuritySetIdAscNullsLast = 'highSecuritySet_id_ASC_NULLS_LAST', - HighSecuritySetIdDesc = 'highSecuritySet_id_DESC', - HighSecuritySetIdDescNullsFirst = 'highSecuritySet_id_DESC_NULLS_FIRST', - HighSecuritySetIdDescNullsLast = 'highSecuritySet_id_DESC_NULLS_LAST', - HighSecuritySetTimestampAsc = 'highSecuritySet_timestamp_ASC', - HighSecuritySetTimestampAscNullsFirst = 'highSecuritySet_timestamp_ASC_NULLS_FIRST', - HighSecuritySetTimestampAscNullsLast = 'highSecuritySet_timestamp_ASC_NULLS_LAST', - HighSecuritySetTimestampDesc = 'highSecuritySet_timestamp_DESC', - HighSecuritySetTimestampDescNullsFirst = 'highSecuritySet_timestamp_DESC_NULLS_FIRST', - HighSecuritySetTimestampDescNullsLast = 'highSecuritySet_timestamp_DESC_NULLS_LAST', - IdAsc = 'id_ASC', - IdAscNullsFirst = 'id_ASC_NULLS_FIRST', - IdAscNullsLast = 'id_ASC_NULLS_LAST', - IdDesc = 'id_DESC', - IdDescNullsFirst = 'id_DESC_NULLS_FIRST', - IdDescNullsLast = 'id_DESC_NULLS_LAST', - MinerRewardIdAsc = 'minerReward_id_ASC', - MinerRewardIdAscNullsFirst = 'minerReward_id_ASC_NULLS_FIRST', - MinerRewardIdAscNullsLast = 'minerReward_id_ASC_NULLS_LAST', - MinerRewardIdDesc = 'minerReward_id_DESC', - MinerRewardIdDescNullsFirst = 'minerReward_id_DESC_NULLS_FIRST', - MinerRewardIdDescNullsLast = 'minerReward_id_DESC_NULLS_LAST', - MinerRewardRewardAsc = 'minerReward_reward_ASC', - MinerRewardRewardAscNullsFirst = 'minerReward_reward_ASC_NULLS_FIRST', - MinerRewardRewardAscNullsLast = 'minerReward_reward_ASC_NULLS_LAST', - MinerRewardRewardDesc = 'minerReward_reward_DESC', - MinerRewardRewardDescNullsFirst = 'minerReward_reward_DESC_NULLS_FIRST', - MinerRewardRewardDescNullsLast = 'minerReward_reward_DESC_NULLS_LAST', - MinerRewardTimestampAsc = 'minerReward_timestamp_ASC', - MinerRewardTimestampAscNullsFirst = 'minerReward_timestamp_ASC_NULLS_FIRST', - MinerRewardTimestampAscNullsLast = 'minerReward_timestamp_ASC_NULLS_LAST', - MinerRewardTimestampDesc = 'minerReward_timestamp_DESC', - MinerRewardTimestampDescNullsFirst = 'minerReward_timestamp_DESC_NULLS_FIRST', - MinerRewardTimestampDescNullsLast = 'minerReward_timestamp_DESC_NULLS_LAST', - ScheduledReversibleTransferAmountAsc = 'scheduledReversibleTransfer_amount_ASC', - ScheduledReversibleTransferAmountAscNullsFirst = 'scheduledReversibleTransfer_amount_ASC_NULLS_FIRST', - ScheduledReversibleTransferAmountAscNullsLast = 'scheduledReversibleTransfer_amount_ASC_NULLS_LAST', - ScheduledReversibleTransferAmountDesc = 'scheduledReversibleTransfer_amount_DESC', - ScheduledReversibleTransferAmountDescNullsFirst = 'scheduledReversibleTransfer_amount_DESC_NULLS_FIRST', - ScheduledReversibleTransferAmountDescNullsLast = 'scheduledReversibleTransfer_amount_DESC_NULLS_LAST', - ScheduledReversibleTransferFeeAsc = 'scheduledReversibleTransfer_fee_ASC', - ScheduledReversibleTransferFeeAscNullsFirst = 'scheduledReversibleTransfer_fee_ASC_NULLS_FIRST', - ScheduledReversibleTransferFeeAscNullsLast = 'scheduledReversibleTransfer_fee_ASC_NULLS_LAST', - ScheduledReversibleTransferFeeDesc = 'scheduledReversibleTransfer_fee_DESC', - ScheduledReversibleTransferFeeDescNullsFirst = 'scheduledReversibleTransfer_fee_DESC_NULLS_FIRST', - ScheduledReversibleTransferFeeDescNullsLast = 'scheduledReversibleTransfer_fee_DESC_NULLS_LAST', - ScheduledReversibleTransferIdAsc = 'scheduledReversibleTransfer_id_ASC', - ScheduledReversibleTransferIdAscNullsFirst = 'scheduledReversibleTransfer_id_ASC_NULLS_FIRST', - ScheduledReversibleTransferIdAscNullsLast = 'scheduledReversibleTransfer_id_ASC_NULLS_LAST', - ScheduledReversibleTransferIdDesc = 'scheduledReversibleTransfer_id_DESC', - ScheduledReversibleTransferIdDescNullsFirst = 'scheduledReversibleTransfer_id_DESC_NULLS_FIRST', - ScheduledReversibleTransferIdDescNullsLast = 'scheduledReversibleTransfer_id_DESC_NULLS_LAST', - ScheduledReversibleTransferScheduledAtAsc = 'scheduledReversibleTransfer_scheduledAt_ASC', - ScheduledReversibleTransferScheduledAtAscNullsFirst = 'scheduledReversibleTransfer_scheduledAt_ASC_NULLS_FIRST', - ScheduledReversibleTransferScheduledAtAscNullsLast = 'scheduledReversibleTransfer_scheduledAt_ASC_NULLS_LAST', - ScheduledReversibleTransferScheduledAtDesc = 'scheduledReversibleTransfer_scheduledAt_DESC', - ScheduledReversibleTransferScheduledAtDescNullsFirst = 'scheduledReversibleTransfer_scheduledAt_DESC_NULLS_FIRST', - ScheduledReversibleTransferScheduledAtDescNullsLast = 'scheduledReversibleTransfer_scheduledAt_DESC_NULLS_LAST', - ScheduledReversibleTransferTimestampAsc = 'scheduledReversibleTransfer_timestamp_ASC', - ScheduledReversibleTransferTimestampAscNullsFirst = 'scheduledReversibleTransfer_timestamp_ASC_NULLS_FIRST', - ScheduledReversibleTransferTimestampAscNullsLast = 'scheduledReversibleTransfer_timestamp_ASC_NULLS_LAST', - ScheduledReversibleTransferTimestampDesc = 'scheduledReversibleTransfer_timestamp_DESC', - ScheduledReversibleTransferTimestampDescNullsFirst = 'scheduledReversibleTransfer_timestamp_DESC_NULLS_FIRST', - ScheduledReversibleTransferTimestampDescNullsLast = 'scheduledReversibleTransfer_timestamp_DESC_NULLS_LAST', - ScheduledReversibleTransferTxIdAsc = 'scheduledReversibleTransfer_txId_ASC', - ScheduledReversibleTransferTxIdAscNullsFirst = 'scheduledReversibleTransfer_txId_ASC_NULLS_FIRST', - ScheduledReversibleTransferTxIdAscNullsLast = 'scheduledReversibleTransfer_txId_ASC_NULLS_LAST', - ScheduledReversibleTransferTxIdDesc = 'scheduledReversibleTransfer_txId_DESC', - ScheduledReversibleTransferTxIdDescNullsFirst = 'scheduledReversibleTransfer_txId_DESC_NULLS_FIRST', - ScheduledReversibleTransferTxIdDescNullsLast = 'scheduledReversibleTransfer_txId_DESC_NULLS_LAST', - TimestampAsc = 'timestamp_ASC', - TimestampAscNullsFirst = 'timestamp_ASC_NULLS_FIRST', - TimestampAscNullsLast = 'timestamp_ASC_NULLS_LAST', - TimestampDesc = 'timestamp_DESC', - TimestampDescNullsFirst = 'timestamp_DESC_NULLS_FIRST', - TimestampDescNullsLast = 'timestamp_DESC_NULLS_LAST', - TransferAmountAsc = 'transfer_amount_ASC', - TransferAmountAscNullsFirst = 'transfer_amount_ASC_NULLS_FIRST', - TransferAmountAscNullsLast = 'transfer_amount_ASC_NULLS_LAST', - TransferAmountDesc = 'transfer_amount_DESC', - TransferAmountDescNullsFirst = 'transfer_amount_DESC_NULLS_FIRST', - TransferAmountDescNullsLast = 'transfer_amount_DESC_NULLS_LAST', - TransferFeeAsc = 'transfer_fee_ASC', - TransferFeeAscNullsFirst = 'transfer_fee_ASC_NULLS_FIRST', - TransferFeeAscNullsLast = 'transfer_fee_ASC_NULLS_LAST', - TransferFeeDesc = 'transfer_fee_DESC', - TransferFeeDescNullsFirst = 'transfer_fee_DESC_NULLS_FIRST', - TransferFeeDescNullsLast = 'transfer_fee_DESC_NULLS_LAST', - TransferFromHashAsc = 'transfer_fromHash_ASC', - TransferFromHashAscNullsFirst = 'transfer_fromHash_ASC_NULLS_FIRST', - TransferFromHashAscNullsLast = 'transfer_fromHash_ASC_NULLS_LAST', - TransferFromHashDesc = 'transfer_fromHash_DESC', - TransferFromHashDescNullsFirst = 'transfer_fromHash_DESC_NULLS_FIRST', - TransferFromHashDescNullsLast = 'transfer_fromHash_DESC_NULLS_LAST', - TransferIdAsc = 'transfer_id_ASC', - TransferIdAscNullsFirst = 'transfer_id_ASC_NULLS_FIRST', - TransferIdAscNullsLast = 'transfer_id_ASC_NULLS_LAST', - TransferIdDesc = 'transfer_id_DESC', - TransferIdDescNullsFirst = 'transfer_id_DESC_NULLS_FIRST', - TransferIdDescNullsLast = 'transfer_id_DESC_NULLS_LAST', - TransferLeafIndexAsc = 'transfer_leafIndex_ASC', - TransferLeafIndexAscNullsFirst = 'transfer_leafIndex_ASC_NULLS_FIRST', - TransferLeafIndexAscNullsLast = 'transfer_leafIndex_ASC_NULLS_LAST', - TransferLeafIndexDesc = 'transfer_leafIndex_DESC', - TransferLeafIndexDescNullsFirst = 'transfer_leafIndex_DESC_NULLS_FIRST', - TransferLeafIndexDescNullsLast = 'transfer_leafIndex_DESC_NULLS_LAST', - TransferTimestampAsc = 'transfer_timestamp_ASC', - TransferTimestampAscNullsFirst = 'transfer_timestamp_ASC_NULLS_FIRST', - TransferTimestampAscNullsLast = 'transfer_timestamp_ASC_NULLS_LAST', - TransferTimestampDesc = 'transfer_timestamp_DESC', - TransferTimestampDescNullsFirst = 'transfer_timestamp_DESC_NULLS_FIRST', - TransferTimestampDescNullsLast = 'transfer_timestamp_DESC_NULLS_LAST', - TransferToHashAsc = 'transfer_toHash_ASC', - TransferToHashAscNullsFirst = 'transfer_toHash_ASC_NULLS_FIRST', - TransferToHashAscNullsLast = 'transfer_toHash_ASC_NULLS_LAST', - TransferToHashDesc = 'transfer_toHash_DESC', - TransferToHashDescNullsFirst = 'transfer_toHash_DESC_NULLS_FIRST', - TransferToHashDescNullsLast = 'transfer_toHash_DESC_NULLS_LAST', - TransferTransferCountAsc = 'transfer_transferCount_ASC', - TransferTransferCountAscNullsFirst = 'transfer_transferCount_ASC_NULLS_FIRST', - TransferTransferCountAscNullsLast = 'transfer_transferCount_ASC_NULLS_LAST', - TransferTransferCountDesc = 'transfer_transferCount_DESC', - TransferTransferCountDescNullsFirst = 'transfer_transferCount_DESC_NULLS_FIRST', - TransferTransferCountDescNullsLast = 'transfer_transferCount_DESC_NULLS_LAST' + transfer_id?: Maybe; +}; + +/** aggregated selection of "account_event" */ +export type Account_Event_Aggregate = { + __typename?: 'account_event_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +export type Account_Event_Aggregate_Bool_Exp = { + count?: InputMaybe; +}; + +export type Account_Event_Aggregate_Bool_Exp_Count = { + arguments?: InputMaybe>; + distinct?: InputMaybe; + filter?: InputMaybe; + predicate: Int_Comparison_Exp; +}; + +/** aggregate fields of "account_event" */ +export type Account_Event_Aggregate_Fields = { + __typename?: 'account_event_aggregate_fields'; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; +}; + +/** aggregate fields of "account_event" */ +export type Account_Event_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** order by aggregate values of table "account_event" */ +export type Account_Event_Aggregate_Order_By = { + count?: InputMaybe; + max?: InputMaybe; + min?: InputMaybe; +}; + +/** Boolean expression to filter rows from the table "account_event". All fields are combined with a logical 'AND'. */ +export type Account_Event_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + account?: InputMaybe; + account_id?: InputMaybe; + cancelledReversibleTransfer?: InputMaybe; + cancelled_reversible_transfer_id?: InputMaybe; + executedReversibleTransfer?: InputMaybe; + executed_reversible_transfer_id?: InputMaybe; + highSecuritySet?: InputMaybe; + high_security_set_id?: InputMaybe; + id?: InputMaybe; + minerReward?: InputMaybe; + miner_reward_id?: InputMaybe; + scheduledReversibleTransfer?: InputMaybe; + scheduled_reversible_transfer_id?: InputMaybe; + timestamp?: InputMaybe; + transfer?: InputMaybe; + transfer_id?: InputMaybe; +}; + +/** aggregate max on columns */ +export type Account_Event_Max_Fields = { + __typename?: 'account_event_max_fields'; + account_id?: Maybe; + cancelled_reversible_transfer_id?: Maybe; + executed_reversible_transfer_id?: Maybe; + high_security_set_id?: Maybe; + id?: Maybe; + miner_reward_id?: Maybe; + scheduled_reversible_transfer_id?: Maybe; + timestamp?: Maybe; + transfer_id?: Maybe; +}; + +/** order by max() on columns of table "account_event" */ +export type Account_Event_Max_Order_By = { + account_id?: InputMaybe; + cancelled_reversible_transfer_id?: InputMaybe; + executed_reversible_transfer_id?: InputMaybe; + high_security_set_id?: InputMaybe; + id?: InputMaybe; + miner_reward_id?: InputMaybe; + scheduled_reversible_transfer_id?: InputMaybe; + timestamp?: InputMaybe; + transfer_id?: InputMaybe; +}; + +/** aggregate min on columns */ +export type Account_Event_Min_Fields = { + __typename?: 'account_event_min_fields'; + account_id?: Maybe; + cancelled_reversible_transfer_id?: Maybe; + executed_reversible_transfer_id?: Maybe; + high_security_set_id?: Maybe; + id?: Maybe; + miner_reward_id?: Maybe; + scheduled_reversible_transfer_id?: Maybe; + timestamp?: Maybe; + transfer_id?: Maybe; +}; + +/** order by min() on columns of table "account_event" */ +export type Account_Event_Min_Order_By = { + account_id?: InputMaybe; + cancelled_reversible_transfer_id?: InputMaybe; + executed_reversible_transfer_id?: InputMaybe; + high_security_set_id?: InputMaybe; + id?: InputMaybe; + miner_reward_id?: InputMaybe; + scheduled_reversible_transfer_id?: InputMaybe; + timestamp?: InputMaybe; + transfer_id?: InputMaybe; +}; + +/** Ordering options when selecting data from "account_event". */ +export type Account_Event_Order_By = { + account?: InputMaybe; + account_id?: InputMaybe; + cancelledReversibleTransfer?: InputMaybe; + cancelled_reversible_transfer_id?: InputMaybe; + executedReversibleTransfer?: InputMaybe; + executed_reversible_transfer_id?: InputMaybe; + highSecuritySet?: InputMaybe; + high_security_set_id?: InputMaybe; + id?: InputMaybe; + minerReward?: InputMaybe; + miner_reward_id?: InputMaybe; + scheduledReversibleTransfer?: InputMaybe; + scheduled_reversible_transfer_id?: InputMaybe; + timestamp?: InputMaybe; + transfer?: InputMaybe; + transfer_id?: InputMaybe; +}; + +/** select columns of table "account_event" */ +export enum Account_Event_Select_Column { + /** column name */ + AccountId = 'account_id', + /** column name */ + CancelledReversibleTransferId = 'cancelled_reversible_transfer_id', + /** column name */ + ExecutedReversibleTransferId = 'executed_reversible_transfer_id', + /** column name */ + HighSecuritySetId = 'high_security_set_id', + /** column name */ + Id = 'id', + /** column name */ + MinerRewardId = 'miner_reward_id', + /** column name */ + ScheduledReversibleTransferId = 'scheduled_reversible_transfer_id', + /** column name */ + Timestamp = 'timestamp', + /** column name */ + TransferId = 'transfer_id' } -export type AccountEventWhereInput = { - AND?: InputMaybe>; - OR?: InputMaybe>; - account?: InputMaybe; - account_isNull?: InputMaybe; - balanceEvent?: InputMaybe; - balanceEvent_isNull?: InputMaybe; - cancelledReversibleTransfer?: InputMaybe; - cancelledReversibleTransfer_isNull?: InputMaybe; - executedReversibleTransfer?: InputMaybe; - executedReversibleTransfer_isNull?: InputMaybe; - highSecuritySet?: InputMaybe; - highSecuritySet_isNull?: InputMaybe; - id_contains?: InputMaybe; - id_containsInsensitive?: InputMaybe; - id_endsWith?: InputMaybe; - id_eq?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_isNull?: InputMaybe; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not_contains?: InputMaybe; - id_not_containsInsensitive?: InputMaybe; - id_not_endsWith?: InputMaybe; - id_not_eq?: InputMaybe; - id_not_in?: InputMaybe>; - id_not_startsWith?: InputMaybe; - id_startsWith?: InputMaybe; - minerReward?: InputMaybe; - minerReward_isNull?: InputMaybe; - scheduledReversibleTransfer?: InputMaybe; - scheduledReversibleTransfer_isNull?: InputMaybe; - timestamp_eq?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_isNull?: InputMaybe; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not_eq?: InputMaybe; - timestamp_not_in?: InputMaybe>; - transfer?: InputMaybe; - transfer_isNull?: InputMaybe; -}; - -export type AccountEventsConnection = { - __typename?: 'AccountEventsConnection'; - edges: Array; - pageInfo: PageInfo; - totalCount: Scalars['Int']['output']; -}; - -export enum AccountOrderByInput { - FreeAsc = 'free_ASC', - FreeAscNullsFirst = 'free_ASC_NULLS_FIRST', - FreeAscNullsLast = 'free_ASC_NULLS_LAST', - FreeDesc = 'free_DESC', - FreeDescNullsFirst = 'free_DESC_NULLS_FIRST', - FreeDescNullsLast = 'free_DESC_NULLS_LAST', - FrozenAsc = 'frozen_ASC', - FrozenAscNullsFirst = 'frozen_ASC_NULLS_FIRST', - FrozenAscNullsLast = 'frozen_ASC_NULLS_LAST', - FrozenDesc = 'frozen_DESC', - FrozenDescNullsFirst = 'frozen_DESC_NULLS_FIRST', - FrozenDescNullsLast = 'frozen_DESC_NULLS_LAST', - IdAsc = 'id_ASC', - IdAscNullsFirst = 'id_ASC_NULLS_FIRST', - IdAscNullsLast = 'id_ASC_NULLS_LAST', - IdDesc = 'id_DESC', - IdDescNullsFirst = 'id_DESC_NULLS_FIRST', - IdDescNullsLast = 'id_DESC_NULLS_LAST', - IsDepositOnlyAsc = 'isDepositOnly_ASC', - IsDepositOnlyAscNullsFirst = 'isDepositOnly_ASC_NULLS_FIRST', - IsDepositOnlyAscNullsLast = 'isDepositOnly_ASC_NULLS_LAST', - IsDepositOnlyDesc = 'isDepositOnly_DESC', - IsDepositOnlyDescNullsFirst = 'isDepositOnly_DESC_NULLS_FIRST', - IsDepositOnlyDescNullsLast = 'isDepositOnly_DESC_NULLS_LAST', - LastUpdatedAsc = 'lastUpdated_ASC', - LastUpdatedAscNullsFirst = 'lastUpdated_ASC_NULLS_FIRST', - LastUpdatedAscNullsLast = 'lastUpdated_ASC_NULLS_LAST', - LastUpdatedDesc = 'lastUpdated_DESC', - LastUpdatedDescNullsFirst = 'lastUpdated_DESC_NULLS_FIRST', - LastUpdatedDescNullsLast = 'lastUpdated_DESC_NULLS_LAST', - PrivacyDepositsAsc = 'privacyDeposits_ASC', - PrivacyDepositsAscNullsFirst = 'privacyDeposits_ASC_NULLS_FIRST', - PrivacyDepositsAscNullsLast = 'privacyDeposits_ASC_NULLS_LAST', - PrivacyDepositsDesc = 'privacyDeposits_DESC', - PrivacyDepositsDescNullsFirst = 'privacyDeposits_DESC_NULLS_FIRST', - PrivacyDepositsDescNullsLast = 'privacyDeposits_DESC_NULLS_LAST', - ReservedAsc = 'reserved_ASC', - ReservedAscNullsFirst = 'reserved_ASC_NULLS_FIRST', - ReservedAscNullsLast = 'reserved_ASC_NULLS_LAST', - ReservedDesc = 'reserved_DESC', - ReservedDescNullsFirst = 'reserved_DESC_NULLS_FIRST', - ReservedDescNullsLast = 'reserved_DESC_NULLS_LAST' +/** Streaming cursor of the table "account_event" */ +export type Account_Event_Stream_Cursor_Input = { + /** Stream column input with initial value */ + initial_value: Account_Event_Stream_Cursor_Value_Input; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type Account_Event_Stream_Cursor_Value_Input = { + account_id?: InputMaybe; + cancelled_reversible_transfer_id?: InputMaybe; + executed_reversible_transfer_id?: InputMaybe; + high_security_set_id?: InputMaybe; + id?: InputMaybe; + miner_reward_id?: InputMaybe; + scheduled_reversible_transfer_id?: InputMaybe; + timestamp?: InputMaybe; + transfer_id?: InputMaybe; +}; + +/** aggregate max on columns */ +export type Account_Max_Fields = { + __typename?: 'account_max_fields'; + free?: Maybe; + frozen?: Maybe; + id?: Maybe; + last_updated?: Maybe; + privacy_deposits?: Maybe; + reserved?: Maybe; +}; + +/** aggregate min on columns */ +export type Account_Min_Fields = { + __typename?: 'account_min_fields'; + free?: Maybe; + frozen?: Maybe; + id?: Maybe; + last_updated?: Maybe; + privacy_deposits?: Maybe; + reserved?: Maybe; +}; + +/** Ordering options when selecting data from "account". */ +export type Account_Order_By = { + accountEvents_aggregate?: InputMaybe; + extrinsics_aggregate?: InputMaybe; + free?: InputMaybe; + frozen?: InputMaybe; + id?: InputMaybe; + is_deposit_only?: InputMaybe; + last_updated?: InputMaybe; + privacy_deposits?: InputMaybe; + reserved?: InputMaybe; + transfersFrom_aggregate?: InputMaybe; + transfersTo_aggregate?: InputMaybe; +}; + +/** select columns of table "account" */ +export enum Account_Select_Column { + /** column name */ + Free = 'free', + /** column name */ + Frozen = 'frozen', + /** column name */ + Id = 'id', + /** column name */ + IsDepositOnly = 'is_deposit_only', + /** column name */ + LastUpdated = 'last_updated', + /** column name */ + PrivacyDeposits = 'privacy_deposits', + /** column name */ + Reserved = 'reserved' } -export type AccountWhereInput = { - AND?: InputMaybe>; - OR?: InputMaybe>; - accountEvents_every?: InputMaybe; - accountEvents_none?: InputMaybe; - accountEvents_some?: InputMaybe; - extrinsics_every?: InputMaybe; - extrinsics_none?: InputMaybe; - extrinsics_some?: InputMaybe; - free_eq?: InputMaybe; - free_gt?: InputMaybe; - free_gte?: InputMaybe; - free_in?: InputMaybe>; - free_isNull?: InputMaybe; - free_lt?: InputMaybe; - free_lte?: InputMaybe; - free_not_eq?: InputMaybe; - free_not_in?: InputMaybe>; - frozen_eq?: InputMaybe; - frozen_gt?: InputMaybe; - frozen_gte?: InputMaybe; - frozen_in?: InputMaybe>; - frozen_isNull?: InputMaybe; - frozen_lt?: InputMaybe; - frozen_lte?: InputMaybe; - frozen_not_eq?: InputMaybe; - frozen_not_in?: InputMaybe>; - id_contains?: InputMaybe; - id_containsInsensitive?: InputMaybe; - id_endsWith?: InputMaybe; - id_eq?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_isNull?: InputMaybe; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not_contains?: InputMaybe; - id_not_containsInsensitive?: InputMaybe; - id_not_endsWith?: InputMaybe; - id_not_eq?: InputMaybe; - id_not_in?: InputMaybe>; - id_not_startsWith?: InputMaybe; - id_startsWith?: InputMaybe; - isDepositOnly_eq?: InputMaybe; - isDepositOnly_isNull?: InputMaybe; - isDepositOnly_not_eq?: InputMaybe; - lastUpdated_eq?: InputMaybe; - lastUpdated_gt?: InputMaybe; - lastUpdated_gte?: InputMaybe; - lastUpdated_in?: InputMaybe>; - lastUpdated_isNull?: InputMaybe; - lastUpdated_lt?: InputMaybe; - lastUpdated_lte?: InputMaybe; - lastUpdated_not_eq?: InputMaybe; - lastUpdated_not_in?: InputMaybe>; - privacyDeposits_contains?: InputMaybe; - privacyDeposits_containsInsensitive?: InputMaybe; - privacyDeposits_endsWith?: InputMaybe; - privacyDeposits_eq?: InputMaybe; - privacyDeposits_gt?: InputMaybe; - privacyDeposits_gte?: InputMaybe; - privacyDeposits_in?: InputMaybe>; - privacyDeposits_isNull?: InputMaybe; - privacyDeposits_lt?: InputMaybe; - privacyDeposits_lte?: InputMaybe; - privacyDeposits_not_contains?: InputMaybe; - privacyDeposits_not_containsInsensitive?: InputMaybe< - Scalars['String']['input'] - >; - privacyDeposits_not_endsWith?: InputMaybe; - privacyDeposits_not_eq?: InputMaybe; - privacyDeposits_not_in?: InputMaybe>; - privacyDeposits_not_startsWith?: InputMaybe; - privacyDeposits_startsWith?: InputMaybe; - reserved_eq?: InputMaybe; - reserved_gt?: InputMaybe; - reserved_gte?: InputMaybe; - reserved_in?: InputMaybe>; - reserved_isNull?: InputMaybe; - reserved_lt?: InputMaybe; - reserved_lte?: InputMaybe; - reserved_not_eq?: InputMaybe; - reserved_not_in?: InputMaybe>; - transfersFrom_every?: InputMaybe; - transfersFrom_none?: InputMaybe; - transfersFrom_some?: InputMaybe; - transfersTo_every?: InputMaybe; - transfersTo_none?: InputMaybe; - transfersTo_some?: InputMaybe; -}; - -export type AccountsConnection = { - __typename?: 'AccountsConnection'; - edges: Array; - pageInfo: PageInfo; - totalCount: Scalars['Int']['output']; -}; - -export type BalanceEvent = { - __typename?: 'BalanceEvent'; - account: Account; - amount: Scalars['BigInt']['output']; - event?: Maybe; - from?: Maybe; +/** columns and relationships of "account_stats" */ +export type Account_Stats = { + __typename?: 'account_stats'; id: Scalars['String']['output']; - timestamp: Scalars['DateTime']['output']; - to?: Maybe; - type: BalanceEventType; -}; - -export type BalanceEventEdge = { - __typename?: 'BalanceEventEdge'; - cursor: Scalars['String']['output']; - node: BalanceEvent; -}; - -export enum BalanceEventOrderByInput { - AccountFreeAsc = 'account_free_ASC', - AccountFreeAscNullsFirst = 'account_free_ASC_NULLS_FIRST', - AccountFreeAscNullsLast = 'account_free_ASC_NULLS_LAST', - AccountFreeDesc = 'account_free_DESC', - AccountFreeDescNullsFirst = 'account_free_DESC_NULLS_FIRST', - AccountFreeDescNullsLast = 'account_free_DESC_NULLS_LAST', - AccountFrozenAsc = 'account_frozen_ASC', - AccountFrozenAscNullsFirst = 'account_frozen_ASC_NULLS_FIRST', - AccountFrozenAscNullsLast = 'account_frozen_ASC_NULLS_LAST', - AccountFrozenDesc = 'account_frozen_DESC', - AccountFrozenDescNullsFirst = 'account_frozen_DESC_NULLS_FIRST', - AccountFrozenDescNullsLast = 'account_frozen_DESC_NULLS_LAST', - AccountIdAsc = 'account_id_ASC', - AccountIdAscNullsFirst = 'account_id_ASC_NULLS_FIRST', - AccountIdAscNullsLast = 'account_id_ASC_NULLS_LAST', - AccountIdDesc = 'account_id_DESC', - AccountIdDescNullsFirst = 'account_id_DESC_NULLS_FIRST', - AccountIdDescNullsLast = 'account_id_DESC_NULLS_LAST', - AccountIsDepositOnlyAsc = 'account_isDepositOnly_ASC', - AccountIsDepositOnlyAscNullsFirst = 'account_isDepositOnly_ASC_NULLS_FIRST', - AccountIsDepositOnlyAscNullsLast = 'account_isDepositOnly_ASC_NULLS_LAST', - AccountIsDepositOnlyDesc = 'account_isDepositOnly_DESC', - AccountIsDepositOnlyDescNullsFirst = 'account_isDepositOnly_DESC_NULLS_FIRST', - AccountIsDepositOnlyDescNullsLast = 'account_isDepositOnly_DESC_NULLS_LAST', - AccountLastUpdatedAsc = 'account_lastUpdated_ASC', - AccountLastUpdatedAscNullsFirst = 'account_lastUpdated_ASC_NULLS_FIRST', - AccountLastUpdatedAscNullsLast = 'account_lastUpdated_ASC_NULLS_LAST', - AccountLastUpdatedDesc = 'account_lastUpdated_DESC', - AccountLastUpdatedDescNullsFirst = 'account_lastUpdated_DESC_NULLS_FIRST', - AccountLastUpdatedDescNullsLast = 'account_lastUpdated_DESC_NULLS_LAST', - AccountPrivacyDepositsAsc = 'account_privacyDeposits_ASC', - AccountPrivacyDepositsAscNullsFirst = 'account_privacyDeposits_ASC_NULLS_FIRST', - AccountPrivacyDepositsAscNullsLast = 'account_privacyDeposits_ASC_NULLS_LAST', - AccountPrivacyDepositsDesc = 'account_privacyDeposits_DESC', - AccountPrivacyDepositsDescNullsFirst = 'account_privacyDeposits_DESC_NULLS_FIRST', - AccountPrivacyDepositsDescNullsLast = 'account_privacyDeposits_DESC_NULLS_LAST', - AccountReservedAsc = 'account_reserved_ASC', - AccountReservedAscNullsFirst = 'account_reserved_ASC_NULLS_FIRST', - AccountReservedAscNullsLast = 'account_reserved_ASC_NULLS_LAST', - AccountReservedDesc = 'account_reserved_DESC', - AccountReservedDescNullsFirst = 'account_reserved_DESC_NULLS_FIRST', - AccountReservedDescNullsLast = 'account_reserved_DESC_NULLS_LAST', - AmountAsc = 'amount_ASC', - AmountAscNullsFirst = 'amount_ASC_NULLS_FIRST', - AmountAscNullsLast = 'amount_ASC_NULLS_LAST', - AmountDesc = 'amount_DESC', - AmountDescNullsFirst = 'amount_DESC_NULLS_FIRST', - AmountDescNullsLast = 'amount_DESC_NULLS_LAST', - EventIdAsc = 'event_id_ASC', - EventIdAscNullsFirst = 'event_id_ASC_NULLS_FIRST', - EventIdAscNullsLast = 'event_id_ASC_NULLS_LAST', - EventIdDesc = 'event_id_DESC', - EventIdDescNullsFirst = 'event_id_DESC_NULLS_FIRST', - EventIdDescNullsLast = 'event_id_DESC_NULLS_LAST', - EventTimestampAsc = 'event_timestamp_ASC', - EventTimestampAscNullsFirst = 'event_timestamp_ASC_NULLS_FIRST', - EventTimestampAscNullsLast = 'event_timestamp_ASC_NULLS_LAST', - EventTimestampDesc = 'event_timestamp_DESC', - EventTimestampDescNullsFirst = 'event_timestamp_DESC_NULLS_FIRST', - EventTimestampDescNullsLast = 'event_timestamp_DESC_NULLS_LAST', - EventTypeAsc = 'event_type_ASC', - EventTypeAscNullsFirst = 'event_type_ASC_NULLS_FIRST', - EventTypeAscNullsLast = 'event_type_ASC_NULLS_LAST', - EventTypeDesc = 'event_type_DESC', - EventTypeDescNullsFirst = 'event_type_DESC_NULLS_FIRST', - EventTypeDescNullsLast = 'event_type_DESC_NULLS_LAST', - FromFreeAsc = 'from_free_ASC', - FromFreeAscNullsFirst = 'from_free_ASC_NULLS_FIRST', - FromFreeAscNullsLast = 'from_free_ASC_NULLS_LAST', - FromFreeDesc = 'from_free_DESC', - FromFreeDescNullsFirst = 'from_free_DESC_NULLS_FIRST', - FromFreeDescNullsLast = 'from_free_DESC_NULLS_LAST', - FromFrozenAsc = 'from_frozen_ASC', - FromFrozenAscNullsFirst = 'from_frozen_ASC_NULLS_FIRST', - FromFrozenAscNullsLast = 'from_frozen_ASC_NULLS_LAST', - FromFrozenDesc = 'from_frozen_DESC', - FromFrozenDescNullsFirst = 'from_frozen_DESC_NULLS_FIRST', - FromFrozenDescNullsLast = 'from_frozen_DESC_NULLS_LAST', - FromIdAsc = 'from_id_ASC', - FromIdAscNullsFirst = 'from_id_ASC_NULLS_FIRST', - FromIdAscNullsLast = 'from_id_ASC_NULLS_LAST', - FromIdDesc = 'from_id_DESC', - FromIdDescNullsFirst = 'from_id_DESC_NULLS_FIRST', - FromIdDescNullsLast = 'from_id_DESC_NULLS_LAST', - FromIsDepositOnlyAsc = 'from_isDepositOnly_ASC', - FromIsDepositOnlyAscNullsFirst = 'from_isDepositOnly_ASC_NULLS_FIRST', - FromIsDepositOnlyAscNullsLast = 'from_isDepositOnly_ASC_NULLS_LAST', - FromIsDepositOnlyDesc = 'from_isDepositOnly_DESC', - FromIsDepositOnlyDescNullsFirst = 'from_isDepositOnly_DESC_NULLS_FIRST', - FromIsDepositOnlyDescNullsLast = 'from_isDepositOnly_DESC_NULLS_LAST', - FromLastUpdatedAsc = 'from_lastUpdated_ASC', - FromLastUpdatedAscNullsFirst = 'from_lastUpdated_ASC_NULLS_FIRST', - FromLastUpdatedAscNullsLast = 'from_lastUpdated_ASC_NULLS_LAST', - FromLastUpdatedDesc = 'from_lastUpdated_DESC', - FromLastUpdatedDescNullsFirst = 'from_lastUpdated_DESC_NULLS_FIRST', - FromLastUpdatedDescNullsLast = 'from_lastUpdated_DESC_NULLS_LAST', - FromPrivacyDepositsAsc = 'from_privacyDeposits_ASC', - FromPrivacyDepositsAscNullsFirst = 'from_privacyDeposits_ASC_NULLS_FIRST', - FromPrivacyDepositsAscNullsLast = 'from_privacyDeposits_ASC_NULLS_LAST', - FromPrivacyDepositsDesc = 'from_privacyDeposits_DESC', - FromPrivacyDepositsDescNullsFirst = 'from_privacyDeposits_DESC_NULLS_FIRST', - FromPrivacyDepositsDescNullsLast = 'from_privacyDeposits_DESC_NULLS_LAST', - FromReservedAsc = 'from_reserved_ASC', - FromReservedAscNullsFirst = 'from_reserved_ASC_NULLS_FIRST', - FromReservedAscNullsLast = 'from_reserved_ASC_NULLS_LAST', - FromReservedDesc = 'from_reserved_DESC', - FromReservedDescNullsFirst = 'from_reserved_DESC_NULLS_FIRST', - FromReservedDescNullsLast = 'from_reserved_DESC_NULLS_LAST', - IdAsc = 'id_ASC', - IdAscNullsFirst = 'id_ASC_NULLS_FIRST', - IdAscNullsLast = 'id_ASC_NULLS_LAST', - IdDesc = 'id_DESC', - IdDescNullsFirst = 'id_DESC_NULLS_FIRST', - IdDescNullsLast = 'id_DESC_NULLS_LAST', - TimestampAsc = 'timestamp_ASC', - TimestampAscNullsFirst = 'timestamp_ASC_NULLS_FIRST', - TimestampAscNullsLast = 'timestamp_ASC_NULLS_LAST', - TimestampDesc = 'timestamp_DESC', - TimestampDescNullsFirst = 'timestamp_DESC_NULLS_FIRST', - TimestampDescNullsLast = 'timestamp_DESC_NULLS_LAST', - ToFreeAsc = 'to_free_ASC', - ToFreeAscNullsFirst = 'to_free_ASC_NULLS_FIRST', - ToFreeAscNullsLast = 'to_free_ASC_NULLS_LAST', - ToFreeDesc = 'to_free_DESC', - ToFreeDescNullsFirst = 'to_free_DESC_NULLS_FIRST', - ToFreeDescNullsLast = 'to_free_DESC_NULLS_LAST', - ToFrozenAsc = 'to_frozen_ASC', - ToFrozenAscNullsFirst = 'to_frozen_ASC_NULLS_FIRST', - ToFrozenAscNullsLast = 'to_frozen_ASC_NULLS_LAST', - ToFrozenDesc = 'to_frozen_DESC', - ToFrozenDescNullsFirst = 'to_frozen_DESC_NULLS_FIRST', - ToFrozenDescNullsLast = 'to_frozen_DESC_NULLS_LAST', - ToIdAsc = 'to_id_ASC', - ToIdAscNullsFirst = 'to_id_ASC_NULLS_FIRST', - ToIdAscNullsLast = 'to_id_ASC_NULLS_LAST', - ToIdDesc = 'to_id_DESC', - ToIdDescNullsFirst = 'to_id_DESC_NULLS_FIRST', - ToIdDescNullsLast = 'to_id_DESC_NULLS_LAST', - ToIsDepositOnlyAsc = 'to_isDepositOnly_ASC', - ToIsDepositOnlyAscNullsFirst = 'to_isDepositOnly_ASC_NULLS_FIRST', - ToIsDepositOnlyAscNullsLast = 'to_isDepositOnly_ASC_NULLS_LAST', - ToIsDepositOnlyDesc = 'to_isDepositOnly_DESC', - ToIsDepositOnlyDescNullsFirst = 'to_isDepositOnly_DESC_NULLS_FIRST', - ToIsDepositOnlyDescNullsLast = 'to_isDepositOnly_DESC_NULLS_LAST', - ToLastUpdatedAsc = 'to_lastUpdated_ASC', - ToLastUpdatedAscNullsFirst = 'to_lastUpdated_ASC_NULLS_FIRST', - ToLastUpdatedAscNullsLast = 'to_lastUpdated_ASC_NULLS_LAST', - ToLastUpdatedDesc = 'to_lastUpdated_DESC', - ToLastUpdatedDescNullsFirst = 'to_lastUpdated_DESC_NULLS_FIRST', - ToLastUpdatedDescNullsLast = 'to_lastUpdated_DESC_NULLS_LAST', - ToPrivacyDepositsAsc = 'to_privacyDeposits_ASC', - ToPrivacyDepositsAscNullsFirst = 'to_privacyDeposits_ASC_NULLS_FIRST', - ToPrivacyDepositsAscNullsLast = 'to_privacyDeposits_ASC_NULLS_LAST', - ToPrivacyDepositsDesc = 'to_privacyDeposits_DESC', - ToPrivacyDepositsDescNullsFirst = 'to_privacyDeposits_DESC_NULLS_FIRST', - ToPrivacyDepositsDescNullsLast = 'to_privacyDeposits_DESC_NULLS_LAST', - ToReservedAsc = 'to_reserved_ASC', - ToReservedAscNullsFirst = 'to_reserved_ASC_NULLS_FIRST', - ToReservedAscNullsLast = 'to_reserved_ASC_NULLS_LAST', - ToReservedDesc = 'to_reserved_DESC', - ToReservedDescNullsFirst = 'to_reserved_DESC_NULLS_FIRST', - ToReservedDescNullsLast = 'to_reserved_DESC_NULLS_LAST', - TypeAsc = 'type_ASC', - TypeAscNullsFirst = 'type_ASC_NULLS_FIRST', - TypeAscNullsLast = 'type_ASC_NULLS_LAST', - TypeDesc = 'type_DESC', - TypeDescNullsFirst = 'type_DESC_NULLS_FIRST', - TypeDescNullsLast = 'type_DESC_NULLS_LAST' -} - -export enum BalanceEventType { - BalanceSet = 'BalanceSet', - Burned = 'Burned', - Deposit = 'Deposit', - DustLost = 'DustLost', - Endowed = 'Endowed', - Frozen = 'Frozen', - Locked = 'Locked', - Minted = 'Minted', - ReserveRepatriated = 'ReserveRepatriated', - Reserved = 'Reserved', - Restored = 'Restored', - Slashed = 'Slashed', - Suspended = 'Suspended', - Thawed = 'Thawed', - Unlocked = 'Unlocked', - Unreserved = 'Unreserved', - Upgraded = 'Upgraded', - Withdraw = 'Withdraw' + total_cancelled_transfers: Scalars['Int']['output']; + total_executed_transfers: Scalars['Int']['output']; + total_immediate_transfers: Scalars['Int']['output']; + total_mined_blocks: Scalars['Int']['output']; + total_rewards: Scalars['numeric']['output']; + total_scheduled_transfers: Scalars['Int']['output']; +}; + +/** aggregated selection of "account_stats" */ +export type Account_Stats_Aggregate = { + __typename?: 'account_stats_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "account_stats" */ +export type Account_Stats_Aggregate_Fields = { + __typename?: 'account_stats_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + +/** aggregate fields of "account_stats" */ +export type Account_Stats_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type Account_Stats_Avg_Fields = { + __typename?: 'account_stats_avg_fields'; + total_cancelled_transfers?: Maybe; + total_executed_transfers?: Maybe; + total_immediate_transfers?: Maybe; + total_mined_blocks?: Maybe; + total_rewards?: Maybe; + total_scheduled_transfers?: Maybe; +}; + +/** Boolean expression to filter rows from the table "account_stats". All fields are combined with a logical 'AND'. */ +export type Account_Stats_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + id?: InputMaybe; + total_cancelled_transfers?: InputMaybe; + total_executed_transfers?: InputMaybe; + total_immediate_transfers?: InputMaybe; + total_mined_blocks?: InputMaybe; + total_rewards?: InputMaybe; + total_scheduled_transfers?: InputMaybe; +}; + +/** aggregate max on columns */ +export type Account_Stats_Max_Fields = { + __typename?: 'account_stats_max_fields'; + id?: Maybe; + total_cancelled_transfers?: Maybe; + total_executed_transfers?: Maybe; + total_immediate_transfers?: Maybe; + total_mined_blocks?: Maybe; + total_rewards?: Maybe; + total_scheduled_transfers?: Maybe; +}; + +/** aggregate min on columns */ +export type Account_Stats_Min_Fields = { + __typename?: 'account_stats_min_fields'; + id?: Maybe; + total_cancelled_transfers?: Maybe; + total_executed_transfers?: Maybe; + total_immediate_transfers?: Maybe; + total_mined_blocks?: Maybe; + total_rewards?: Maybe; + total_scheduled_transfers?: Maybe; +}; + +/** Ordering options when selecting data from "account_stats". */ +export type Account_Stats_Order_By = { + id?: InputMaybe; + total_cancelled_transfers?: InputMaybe; + total_executed_transfers?: InputMaybe; + total_immediate_transfers?: InputMaybe; + total_mined_blocks?: InputMaybe; + total_rewards?: InputMaybe; + total_scheduled_transfers?: InputMaybe; +}; + +/** select columns of table "account_stats" */ +export enum Account_Stats_Select_Column { + /** column name */ + Id = 'id', + /** column name */ + TotalCancelledTransfers = 'total_cancelled_transfers', + /** column name */ + TotalExecutedTransfers = 'total_executed_transfers', + /** column name */ + TotalImmediateTransfers = 'total_immediate_transfers', + /** column name */ + TotalMinedBlocks = 'total_mined_blocks', + /** column name */ + TotalRewards = 'total_rewards', + /** column name */ + TotalScheduledTransfers = 'total_scheduled_transfers' } -export type BalanceEventWhereInput = { - AND?: InputMaybe>; - OR?: InputMaybe>; - account?: InputMaybe; - account_isNull?: InputMaybe; - amount_eq?: InputMaybe; - amount_gt?: InputMaybe; - amount_gte?: InputMaybe; - amount_in?: InputMaybe>; - amount_isNull?: InputMaybe; - amount_lt?: InputMaybe; - amount_lte?: InputMaybe; - amount_not_eq?: InputMaybe; - amount_not_in?: InputMaybe>; - event?: InputMaybe; - event_isNull?: InputMaybe; - from?: InputMaybe; - from_isNull?: InputMaybe; - id_contains?: InputMaybe; - id_containsInsensitive?: InputMaybe; - id_endsWith?: InputMaybe; - id_eq?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_isNull?: InputMaybe; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not_contains?: InputMaybe; - id_not_containsInsensitive?: InputMaybe; - id_not_endsWith?: InputMaybe; - id_not_eq?: InputMaybe; - id_not_in?: InputMaybe>; - id_not_startsWith?: InputMaybe; - id_startsWith?: InputMaybe; - timestamp_eq?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_isNull?: InputMaybe; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not_eq?: InputMaybe; - timestamp_not_in?: InputMaybe>; - to?: InputMaybe; - to_isNull?: InputMaybe; - type_eq?: InputMaybe; - type_in?: InputMaybe>; - type_isNull?: InputMaybe; - type_not_eq?: InputMaybe; - type_not_in?: InputMaybe>; -}; - -export type BalanceEventsConnection = { - __typename?: 'BalanceEventsConnection'; - edges: Array; - pageInfo: PageInfo; - totalCount: Scalars['Int']['output']; -}; - +/** aggregate stddev on columns */ +export type Account_Stats_Stddev_Fields = { + __typename?: 'account_stats_stddev_fields'; + total_cancelled_transfers?: Maybe; + total_executed_transfers?: Maybe; + total_immediate_transfers?: Maybe; + total_mined_blocks?: Maybe; + total_rewards?: Maybe; + total_scheduled_transfers?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type Account_Stats_Stddev_Pop_Fields = { + __typename?: 'account_stats_stddev_pop_fields'; + total_cancelled_transfers?: Maybe; + total_executed_transfers?: Maybe; + total_immediate_transfers?: Maybe; + total_mined_blocks?: Maybe; + total_rewards?: Maybe; + total_scheduled_transfers?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type Account_Stats_Stddev_Samp_Fields = { + __typename?: 'account_stats_stddev_samp_fields'; + total_cancelled_transfers?: Maybe; + total_executed_transfers?: Maybe; + total_immediate_transfers?: Maybe; + total_mined_blocks?: Maybe; + total_rewards?: Maybe; + total_scheduled_transfers?: Maybe; +}; + +/** Streaming cursor of the table "account_stats" */ +export type Account_Stats_Stream_Cursor_Input = { + /** Stream column input with initial value */ + initial_value: Account_Stats_Stream_Cursor_Value_Input; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type Account_Stats_Stream_Cursor_Value_Input = { + id?: InputMaybe; + total_cancelled_transfers?: InputMaybe; + total_executed_transfers?: InputMaybe; + total_immediate_transfers?: InputMaybe; + total_mined_blocks?: InputMaybe; + total_rewards?: InputMaybe; + total_scheduled_transfers?: InputMaybe; +}; + +/** aggregate sum on columns */ +export type Account_Stats_Sum_Fields = { + __typename?: 'account_stats_sum_fields'; + total_cancelled_transfers?: Maybe; + total_executed_transfers?: Maybe; + total_immediate_transfers?: Maybe; + total_mined_blocks?: Maybe; + total_rewards?: Maybe; + total_scheduled_transfers?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type Account_Stats_Var_Pop_Fields = { + __typename?: 'account_stats_var_pop_fields'; + total_cancelled_transfers?: Maybe; + total_executed_transfers?: Maybe; + total_immediate_transfers?: Maybe; + total_mined_blocks?: Maybe; + total_rewards?: Maybe; + total_scheduled_transfers?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type Account_Stats_Var_Samp_Fields = { + __typename?: 'account_stats_var_samp_fields'; + total_cancelled_transfers?: Maybe; + total_executed_transfers?: Maybe; + total_immediate_transfers?: Maybe; + total_mined_blocks?: Maybe; + total_rewards?: Maybe; + total_scheduled_transfers?: Maybe; +}; + +/** aggregate variance on columns */ +export type Account_Stats_Variance_Fields = { + __typename?: 'account_stats_variance_fields'; + total_cancelled_transfers?: Maybe; + total_executed_transfers?: Maybe; + total_immediate_transfers?: Maybe; + total_mined_blocks?: Maybe; + total_rewards?: Maybe; + total_scheduled_transfers?: Maybe; +}; + +/** aggregate stddev on columns */ +export type Account_Stddev_Fields = { + __typename?: 'account_stddev_fields'; + free?: Maybe; + frozen?: Maybe; + last_updated?: Maybe; + reserved?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type Account_Stddev_Pop_Fields = { + __typename?: 'account_stddev_pop_fields'; + free?: Maybe; + frozen?: Maybe; + last_updated?: Maybe; + reserved?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type Account_Stddev_Samp_Fields = { + __typename?: 'account_stddev_samp_fields'; + free?: Maybe; + frozen?: Maybe; + last_updated?: Maybe; + reserved?: Maybe; +}; + +/** Streaming cursor of the table "account" */ +export type Account_Stream_Cursor_Input = { + /** Stream column input with initial value */ + initial_value: Account_Stream_Cursor_Value_Input; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type Account_Stream_Cursor_Value_Input = { + free?: InputMaybe; + frozen?: InputMaybe; + id?: InputMaybe; + is_deposit_only?: InputMaybe; + last_updated?: InputMaybe; + privacy_deposits?: InputMaybe; + reserved?: InputMaybe; +}; + +/** aggregate sum on columns */ +export type Account_Sum_Fields = { + __typename?: 'account_sum_fields'; + free?: Maybe; + frozen?: Maybe; + last_updated?: Maybe; + reserved?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type Account_Var_Pop_Fields = { + __typename?: 'account_var_pop_fields'; + free?: Maybe; + frozen?: Maybe; + last_updated?: Maybe; + reserved?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type Account_Var_Samp_Fields = { + __typename?: 'account_var_samp_fields'; + free?: Maybe; + frozen?: Maybe; + last_updated?: Maybe; + reserved?: Maybe; +}; + +/** aggregate variance on columns */ +export type Account_Variance_Fields = { + __typename?: 'account_variance_fields'; + free?: Maybe; + frozen?: Maybe; + last_updated?: Maybe; + reserved?: Maybe; +}; + +/** columns and relationships of "block" */ export type Block = { - __typename?: 'Block'; + __typename?: 'block'; + /** An array relationship */ events: Array; + /** An aggregate relationship */ + events_aggregate: Event_Aggregate; + /** An array relationship */ extrinsics: Array; + /** An aggregate relationship */ + extrinsics_aggregate: Extrinsic_Aggregate; hash: Scalars['String']['output']; height: Scalars['Int']['output']; id: Scalars['String']['output']; - reward: Scalars['BigInt']['output']; - timestamp: Scalars['DateTime']['output']; + reward: Scalars['numeric']['output']; + timestamp: Scalars['timestamptz']['output']; + /** An array relationship */ transactions: Array; + /** An aggregate relationship */ + transactions_aggregate: Transfer_Aggregate; }; +/** columns and relationships of "block" */ export type BlockEventsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + +/** columns and relationships of "block" */ +export type BlockEvents_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - orderBy?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; +/** columns and relationships of "block" */ export type BlockExtrinsicsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + +/** columns and relationships of "block" */ +export type BlockExtrinsics_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - orderBy?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; +/** columns and relationships of "block" */ export type BlockTransactionsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + +/** columns and relationships of "block" */ +export type BlockTransactions_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - orderBy?: InputMaybe>; - where?: InputMaybe; -}; - -export type BlockEdge = { - __typename?: 'BlockEdge'; - cursor: Scalars['String']['output']; - node: Block; -}; - -export enum BlockOrderByInput { - HashAsc = 'hash_ASC', - HashAscNullsFirst = 'hash_ASC_NULLS_FIRST', - HashAscNullsLast = 'hash_ASC_NULLS_LAST', - HashDesc = 'hash_DESC', - HashDescNullsFirst = 'hash_DESC_NULLS_FIRST', - HashDescNullsLast = 'hash_DESC_NULLS_LAST', - HeightAsc = 'height_ASC', - HeightAscNullsFirst = 'height_ASC_NULLS_FIRST', - HeightAscNullsLast = 'height_ASC_NULLS_LAST', - HeightDesc = 'height_DESC', - HeightDescNullsFirst = 'height_DESC_NULLS_FIRST', - HeightDescNullsLast = 'height_DESC_NULLS_LAST', - IdAsc = 'id_ASC', - IdAscNullsFirst = 'id_ASC_NULLS_FIRST', - IdAscNullsLast = 'id_ASC_NULLS_LAST', - IdDesc = 'id_DESC', - IdDescNullsFirst = 'id_DESC_NULLS_FIRST', - IdDescNullsLast = 'id_DESC_NULLS_LAST', - RewardAsc = 'reward_ASC', - RewardAscNullsFirst = 'reward_ASC_NULLS_FIRST', - RewardAscNullsLast = 'reward_ASC_NULLS_LAST', - RewardDesc = 'reward_DESC', - RewardDescNullsFirst = 'reward_DESC_NULLS_FIRST', - RewardDescNullsLast = 'reward_DESC_NULLS_LAST', - TimestampAsc = 'timestamp_ASC', - TimestampAscNullsFirst = 'timestamp_ASC_NULLS_FIRST', - TimestampAscNullsLast = 'timestamp_ASC_NULLS_LAST', - TimestampDesc = 'timestamp_DESC', - TimestampDescNullsFirst = 'timestamp_DESC_NULLS_FIRST', - TimestampDescNullsLast = 'timestamp_DESC_NULLS_LAST' + order_by?: InputMaybe>; + where?: InputMaybe; +}; + +/** aggregated selection of "block" */ +export type Block_Aggregate = { + __typename?: 'block_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "block" */ +export type Block_Aggregate_Fields = { + __typename?: 'block_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + +/** aggregate fields of "block" */ +export type Block_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type Block_Avg_Fields = { + __typename?: 'block_avg_fields'; + height?: Maybe; + reward?: Maybe; +}; + +/** Boolean expression to filter rows from the table "block". All fields are combined with a logical 'AND'. */ +export type Block_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + events?: InputMaybe; + events_aggregate?: InputMaybe; + extrinsics?: InputMaybe; + extrinsics_aggregate?: InputMaybe; + hash?: InputMaybe; + height?: InputMaybe; + id?: InputMaybe; + reward?: InputMaybe; + timestamp?: InputMaybe; + transactions?: InputMaybe; + transactions_aggregate?: InputMaybe; +}; + +/** aggregate max on columns */ +export type Block_Max_Fields = { + __typename?: 'block_max_fields'; + hash?: Maybe; + height?: Maybe; + id?: Maybe; + reward?: Maybe; + timestamp?: Maybe; +}; + +/** aggregate min on columns */ +export type Block_Min_Fields = { + __typename?: 'block_min_fields'; + hash?: Maybe; + height?: Maybe; + id?: Maybe; + reward?: Maybe; + timestamp?: Maybe; +}; + +/** Ordering options when selecting data from "block". */ +export type Block_Order_By = { + events_aggregate?: InputMaybe; + extrinsics_aggregate?: InputMaybe; + hash?: InputMaybe; + height?: InputMaybe; + id?: InputMaybe; + reward?: InputMaybe; + timestamp?: InputMaybe; + transactions_aggregate?: InputMaybe; +}; + +/** select columns of table "block" */ +export enum Block_Select_Column { + /** column name */ + Hash = 'hash', + /** column name */ + Height = 'height', + /** column name */ + Id = 'id', + /** column name */ + Reward = 'reward', + /** column name */ + Timestamp = 'timestamp' } -export type BlockWhereInput = { - AND?: InputMaybe>; - OR?: InputMaybe>; - events_every?: InputMaybe; - events_none?: InputMaybe; - events_some?: InputMaybe; - extrinsics_every?: InputMaybe; - extrinsics_none?: InputMaybe; - extrinsics_some?: InputMaybe; - hash_contains?: InputMaybe; - hash_containsInsensitive?: InputMaybe; - hash_endsWith?: InputMaybe; - hash_eq?: InputMaybe; - hash_gt?: InputMaybe; - hash_gte?: InputMaybe; - hash_in?: InputMaybe>; - hash_isNull?: InputMaybe; - hash_lt?: InputMaybe; - hash_lte?: InputMaybe; - hash_not_contains?: InputMaybe; - hash_not_containsInsensitive?: InputMaybe; - hash_not_endsWith?: InputMaybe; - hash_not_eq?: InputMaybe; - hash_not_in?: InputMaybe>; - hash_not_startsWith?: InputMaybe; - hash_startsWith?: InputMaybe; - height_eq?: InputMaybe; - height_gt?: InputMaybe; - height_gte?: InputMaybe; - height_in?: InputMaybe>; - height_isNull?: InputMaybe; - height_lt?: InputMaybe; - height_lte?: InputMaybe; - height_not_eq?: InputMaybe; - height_not_in?: InputMaybe>; - id_contains?: InputMaybe; - id_containsInsensitive?: InputMaybe; - id_endsWith?: InputMaybe; - id_eq?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_isNull?: InputMaybe; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not_contains?: InputMaybe; - id_not_containsInsensitive?: InputMaybe; - id_not_endsWith?: InputMaybe; - id_not_eq?: InputMaybe; - id_not_in?: InputMaybe>; - id_not_startsWith?: InputMaybe; - id_startsWith?: InputMaybe; - reward_eq?: InputMaybe; - reward_gt?: InputMaybe; - reward_gte?: InputMaybe; - reward_in?: InputMaybe>; - reward_isNull?: InputMaybe; - reward_lt?: InputMaybe; - reward_lte?: InputMaybe; - reward_not_eq?: InputMaybe; - reward_not_in?: InputMaybe>; - timestamp_eq?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_isNull?: InputMaybe; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not_eq?: InputMaybe; - timestamp_not_in?: InputMaybe>; - transactions_every?: InputMaybe; - transactions_none?: InputMaybe; - transactions_some?: InputMaybe; -}; - -export type BlocksConnection = { - __typename?: 'BlocksConnection'; - edges: Array; - pageInfo: PageInfo; - totalCount: Scalars['Int']['output']; -}; - -export type CancelledReversibleTransfer = { - __typename?: 'CancelledReversibleTransfer'; - block: Block; - cancelledBy: Account; +/** aggregate stddev on columns */ +export type Block_Stddev_Fields = { + __typename?: 'block_stddev_fields'; + height?: Maybe; + reward?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type Block_Stddev_Pop_Fields = { + __typename?: 'block_stddev_pop_fields'; + height?: Maybe; + reward?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type Block_Stddev_Samp_Fields = { + __typename?: 'block_stddev_samp_fields'; + height?: Maybe; + reward?: Maybe; +}; + +/** Streaming cursor of the table "block" */ +export type Block_Stream_Cursor_Input = { + /** Stream column input with initial value */ + initial_value: Block_Stream_Cursor_Value_Input; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type Block_Stream_Cursor_Value_Input = { + hash?: InputMaybe; + height?: InputMaybe; + id?: InputMaybe; + reward?: InputMaybe; + timestamp?: InputMaybe; +}; + +/** aggregate sum on columns */ +export type Block_Sum_Fields = { + __typename?: 'block_sum_fields'; + height?: Maybe; + reward?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type Block_Var_Pop_Fields = { + __typename?: 'block_var_pop_fields'; + height?: Maybe; + reward?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type Block_Var_Samp_Fields = { + __typename?: 'block_var_samp_fields'; + height?: Maybe; + reward?: Maybe; +}; + +/** aggregate variance on columns */ +export type Block_Variance_Fields = { + __typename?: 'block_variance_fields'; + height?: Maybe; + reward?: Maybe; +}; + +/** columns and relationships of "cancelled_reversible_transfer" */ +export type Cancelled_Reversible_Transfer = { + __typename?: 'cancelled_reversible_transfer'; + /** An object relationship */ + block?: Maybe; + block_id?: Maybe; + /** An object relationship */ + cancelledBy?: Maybe; + cancelled_by_id?: Maybe; + /** An object relationship */ event?: Maybe; + /** An object relationship */ extrinsic?: Maybe; + extrinsic_id?: Maybe; + id: Scalars['String']['output']; + /** An object relationship */ + scheduledTransfer?: Maybe; + scheduled_transfer_id?: Maybe; + timestamp: Scalars['timestamptz']['output']; + tx_id: Scalars['String']['output']; +}; + +/** aggregated selection of "cancelled_reversible_transfer" */ +export type Cancelled_Reversible_Transfer_Aggregate = { + __typename?: 'cancelled_reversible_transfer_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "cancelled_reversible_transfer" */ +export type Cancelled_Reversible_Transfer_Aggregate_Fields = { + __typename?: 'cancelled_reversible_transfer_aggregate_fields'; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; +}; + +/** aggregate fields of "cancelled_reversible_transfer" */ +export type Cancelled_Reversible_Transfer_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** Boolean expression to filter rows from the table "cancelled_reversible_transfer". All fields are combined with a logical 'AND'. */ +export type Cancelled_Reversible_Transfer_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + block?: InputMaybe; + block_id?: InputMaybe; + cancelledBy?: InputMaybe; + cancelled_by_id?: InputMaybe; + event?: InputMaybe; + extrinsic?: InputMaybe; + extrinsic_id?: InputMaybe; + id?: InputMaybe; + scheduledTransfer?: InputMaybe; + scheduled_transfer_id?: InputMaybe; + timestamp?: InputMaybe; + tx_id?: InputMaybe; +}; + +/** aggregate max on columns */ +export type Cancelled_Reversible_Transfer_Max_Fields = { + __typename?: 'cancelled_reversible_transfer_max_fields'; + block_id?: Maybe; + cancelled_by_id?: Maybe; + extrinsic_id?: Maybe; + id?: Maybe; + scheduled_transfer_id?: Maybe; + timestamp?: Maybe; + tx_id?: Maybe; +}; + +/** aggregate min on columns */ +export type Cancelled_Reversible_Transfer_Min_Fields = { + __typename?: 'cancelled_reversible_transfer_min_fields'; + block_id?: Maybe; + cancelled_by_id?: Maybe; + extrinsic_id?: Maybe; + id?: Maybe; + scheduled_transfer_id?: Maybe; + timestamp?: Maybe; + tx_id?: Maybe; +}; + +/** Ordering options when selecting data from "cancelled_reversible_transfer". */ +export type Cancelled_Reversible_Transfer_Order_By = { + block?: InputMaybe; + block_id?: InputMaybe; + cancelledBy?: InputMaybe; + cancelled_by_id?: InputMaybe; + event?: InputMaybe; + extrinsic?: InputMaybe; + extrinsic_id?: InputMaybe; + id?: InputMaybe; + scheduledTransfer?: InputMaybe; + scheduled_transfer_id?: InputMaybe; + timestamp?: InputMaybe; + tx_id?: InputMaybe; +}; + +/** select columns of table "cancelled_reversible_transfer" */ +export enum Cancelled_Reversible_Transfer_Select_Column { + /** column name */ + BlockId = 'block_id', + /** column name */ + CancelledById = 'cancelled_by_id', + /** column name */ + ExtrinsicId = 'extrinsic_id', + /** column name */ + Id = 'id', + /** column name */ + ScheduledTransferId = 'scheduled_transfer_id', + /** column name */ + Timestamp = 'timestamp', + /** column name */ + TxId = 'tx_id' +} + +/** Streaming cursor of the table "cancelled_reversible_transfer" */ +export type Cancelled_Reversible_Transfer_Stream_Cursor_Input = { + /** Stream column input with initial value */ + initial_value: Cancelled_Reversible_Transfer_Stream_Cursor_Value_Input; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type Cancelled_Reversible_Transfer_Stream_Cursor_Value_Input = { + block_id?: InputMaybe; + cancelled_by_id?: InputMaybe; + extrinsic_id?: InputMaybe; + id?: InputMaybe; + scheduled_transfer_id?: InputMaybe; + timestamp?: InputMaybe; + tx_id?: InputMaybe; +}; + +/** columns and relationships of "chain_stats" */ +export type Chain_Stats = { + __typename?: 'chain_stats'; + block_height: Scalars['Int']['output']; + finalized_block_height: Scalars['Int']['output']; id: Scalars['String']['output']; - scheduledTransfer: ScheduledReversibleTransfer; - timestamp: Scalars['DateTime']['output']; - txId: Scalars['String']['output']; -}; - -export type CancelledReversibleTransferEdge = { - __typename?: 'CancelledReversibleTransferEdge'; - cursor: Scalars['String']['output']; - node: CancelledReversibleTransfer; -}; - -export enum CancelledReversibleTransferOrderByInput { - BlockHashAsc = 'block_hash_ASC', - BlockHashAscNullsFirst = 'block_hash_ASC_NULLS_FIRST', - BlockHashAscNullsLast = 'block_hash_ASC_NULLS_LAST', - BlockHashDesc = 'block_hash_DESC', - BlockHashDescNullsFirst = 'block_hash_DESC_NULLS_FIRST', - BlockHashDescNullsLast = 'block_hash_DESC_NULLS_LAST', - BlockHeightAsc = 'block_height_ASC', - BlockHeightAscNullsFirst = 'block_height_ASC_NULLS_FIRST', - BlockHeightAscNullsLast = 'block_height_ASC_NULLS_LAST', - BlockHeightDesc = 'block_height_DESC', - BlockHeightDescNullsFirst = 'block_height_DESC_NULLS_FIRST', - BlockHeightDescNullsLast = 'block_height_DESC_NULLS_LAST', - BlockIdAsc = 'block_id_ASC', - BlockIdAscNullsFirst = 'block_id_ASC_NULLS_FIRST', - BlockIdAscNullsLast = 'block_id_ASC_NULLS_LAST', - BlockIdDesc = 'block_id_DESC', - BlockIdDescNullsFirst = 'block_id_DESC_NULLS_FIRST', - BlockIdDescNullsLast = 'block_id_DESC_NULLS_LAST', - BlockRewardAsc = 'block_reward_ASC', - BlockRewardAscNullsFirst = 'block_reward_ASC_NULLS_FIRST', - BlockRewardAscNullsLast = 'block_reward_ASC_NULLS_LAST', - BlockRewardDesc = 'block_reward_DESC', - BlockRewardDescNullsFirst = 'block_reward_DESC_NULLS_FIRST', - BlockRewardDescNullsLast = 'block_reward_DESC_NULLS_LAST', - BlockTimestampAsc = 'block_timestamp_ASC', - BlockTimestampAscNullsFirst = 'block_timestamp_ASC_NULLS_FIRST', - BlockTimestampAscNullsLast = 'block_timestamp_ASC_NULLS_LAST', - BlockTimestampDesc = 'block_timestamp_DESC', - BlockTimestampDescNullsFirst = 'block_timestamp_DESC_NULLS_FIRST', - BlockTimestampDescNullsLast = 'block_timestamp_DESC_NULLS_LAST', - CancelledByFreeAsc = 'cancelledBy_free_ASC', - CancelledByFreeAscNullsFirst = 'cancelledBy_free_ASC_NULLS_FIRST', - CancelledByFreeAscNullsLast = 'cancelledBy_free_ASC_NULLS_LAST', - CancelledByFreeDesc = 'cancelledBy_free_DESC', - CancelledByFreeDescNullsFirst = 'cancelledBy_free_DESC_NULLS_FIRST', - CancelledByFreeDescNullsLast = 'cancelledBy_free_DESC_NULLS_LAST', - CancelledByFrozenAsc = 'cancelledBy_frozen_ASC', - CancelledByFrozenAscNullsFirst = 'cancelledBy_frozen_ASC_NULLS_FIRST', - CancelledByFrozenAscNullsLast = 'cancelledBy_frozen_ASC_NULLS_LAST', - CancelledByFrozenDesc = 'cancelledBy_frozen_DESC', - CancelledByFrozenDescNullsFirst = 'cancelledBy_frozen_DESC_NULLS_FIRST', - CancelledByFrozenDescNullsLast = 'cancelledBy_frozen_DESC_NULLS_LAST', - CancelledByIdAsc = 'cancelledBy_id_ASC', - CancelledByIdAscNullsFirst = 'cancelledBy_id_ASC_NULLS_FIRST', - CancelledByIdAscNullsLast = 'cancelledBy_id_ASC_NULLS_LAST', - CancelledByIdDesc = 'cancelledBy_id_DESC', - CancelledByIdDescNullsFirst = 'cancelledBy_id_DESC_NULLS_FIRST', - CancelledByIdDescNullsLast = 'cancelledBy_id_DESC_NULLS_LAST', - CancelledByIsDepositOnlyAsc = 'cancelledBy_isDepositOnly_ASC', - CancelledByIsDepositOnlyAscNullsFirst = 'cancelledBy_isDepositOnly_ASC_NULLS_FIRST', - CancelledByIsDepositOnlyAscNullsLast = 'cancelledBy_isDepositOnly_ASC_NULLS_LAST', - CancelledByIsDepositOnlyDesc = 'cancelledBy_isDepositOnly_DESC', - CancelledByIsDepositOnlyDescNullsFirst = 'cancelledBy_isDepositOnly_DESC_NULLS_FIRST', - CancelledByIsDepositOnlyDescNullsLast = 'cancelledBy_isDepositOnly_DESC_NULLS_LAST', - CancelledByLastUpdatedAsc = 'cancelledBy_lastUpdated_ASC', - CancelledByLastUpdatedAscNullsFirst = 'cancelledBy_lastUpdated_ASC_NULLS_FIRST', - CancelledByLastUpdatedAscNullsLast = 'cancelledBy_lastUpdated_ASC_NULLS_LAST', - CancelledByLastUpdatedDesc = 'cancelledBy_lastUpdated_DESC', - CancelledByLastUpdatedDescNullsFirst = 'cancelledBy_lastUpdated_DESC_NULLS_FIRST', - CancelledByLastUpdatedDescNullsLast = 'cancelledBy_lastUpdated_DESC_NULLS_LAST', - CancelledByPrivacyDepositsAsc = 'cancelledBy_privacyDeposits_ASC', - CancelledByPrivacyDepositsAscNullsFirst = 'cancelledBy_privacyDeposits_ASC_NULLS_FIRST', - CancelledByPrivacyDepositsAscNullsLast = 'cancelledBy_privacyDeposits_ASC_NULLS_LAST', - CancelledByPrivacyDepositsDesc = 'cancelledBy_privacyDeposits_DESC', - CancelledByPrivacyDepositsDescNullsFirst = 'cancelledBy_privacyDeposits_DESC_NULLS_FIRST', - CancelledByPrivacyDepositsDescNullsLast = 'cancelledBy_privacyDeposits_DESC_NULLS_LAST', - CancelledByReservedAsc = 'cancelledBy_reserved_ASC', - CancelledByReservedAscNullsFirst = 'cancelledBy_reserved_ASC_NULLS_FIRST', - CancelledByReservedAscNullsLast = 'cancelledBy_reserved_ASC_NULLS_LAST', - CancelledByReservedDesc = 'cancelledBy_reserved_DESC', - CancelledByReservedDescNullsFirst = 'cancelledBy_reserved_DESC_NULLS_FIRST', - CancelledByReservedDescNullsLast = 'cancelledBy_reserved_DESC_NULLS_LAST', - EventIdAsc = 'event_id_ASC', - EventIdAscNullsFirst = 'event_id_ASC_NULLS_FIRST', - EventIdAscNullsLast = 'event_id_ASC_NULLS_LAST', - EventIdDesc = 'event_id_DESC', - EventIdDescNullsFirst = 'event_id_DESC_NULLS_FIRST', - EventIdDescNullsLast = 'event_id_DESC_NULLS_LAST', - EventTimestampAsc = 'event_timestamp_ASC', - EventTimestampAscNullsFirst = 'event_timestamp_ASC_NULLS_FIRST', - EventTimestampAscNullsLast = 'event_timestamp_ASC_NULLS_LAST', - EventTimestampDesc = 'event_timestamp_DESC', - EventTimestampDescNullsFirst = 'event_timestamp_DESC_NULLS_FIRST', - EventTimestampDescNullsLast = 'event_timestamp_DESC_NULLS_LAST', - EventTypeAsc = 'event_type_ASC', - EventTypeAscNullsFirst = 'event_type_ASC_NULLS_FIRST', - EventTypeAscNullsLast = 'event_type_ASC_NULLS_LAST', - EventTypeDesc = 'event_type_DESC', - EventTypeDescNullsFirst = 'event_type_DESC_NULLS_FIRST', - EventTypeDescNullsLast = 'event_type_DESC_NULLS_LAST', - ExtrinsicArgsAsc = 'extrinsic_args_ASC', - ExtrinsicArgsAscNullsFirst = 'extrinsic_args_ASC_NULLS_FIRST', - ExtrinsicArgsAscNullsLast = 'extrinsic_args_ASC_NULLS_LAST', - ExtrinsicArgsDesc = 'extrinsic_args_DESC', - ExtrinsicArgsDescNullsFirst = 'extrinsic_args_DESC_NULLS_FIRST', - ExtrinsicArgsDescNullsLast = 'extrinsic_args_DESC_NULLS_LAST', - ExtrinsicCallAsc = 'extrinsic_call_ASC', - ExtrinsicCallAscNullsFirst = 'extrinsic_call_ASC_NULLS_FIRST', - ExtrinsicCallAscNullsLast = 'extrinsic_call_ASC_NULLS_LAST', - ExtrinsicCallDesc = 'extrinsic_call_DESC', - ExtrinsicCallDescNullsFirst = 'extrinsic_call_DESC_NULLS_FIRST', - ExtrinsicCallDescNullsLast = 'extrinsic_call_DESC_NULLS_LAST', - ExtrinsicFeeAsc = 'extrinsic_fee_ASC', - ExtrinsicFeeAscNullsFirst = 'extrinsic_fee_ASC_NULLS_FIRST', - ExtrinsicFeeAscNullsLast = 'extrinsic_fee_ASC_NULLS_LAST', - ExtrinsicFeeDesc = 'extrinsic_fee_DESC', - ExtrinsicFeeDescNullsFirst = 'extrinsic_fee_DESC_NULLS_FIRST', - ExtrinsicFeeDescNullsLast = 'extrinsic_fee_DESC_NULLS_LAST', - ExtrinsicIdAsc = 'extrinsic_id_ASC', - ExtrinsicIdAscNullsFirst = 'extrinsic_id_ASC_NULLS_FIRST', - ExtrinsicIdAscNullsLast = 'extrinsic_id_ASC_NULLS_LAST', - ExtrinsicIdDesc = 'extrinsic_id_DESC', - ExtrinsicIdDescNullsFirst = 'extrinsic_id_DESC_NULLS_FIRST', - ExtrinsicIdDescNullsLast = 'extrinsic_id_DESC_NULLS_LAST', - ExtrinsicIndexInBlockAsc = 'extrinsic_indexInBlock_ASC', - ExtrinsicIndexInBlockAscNullsFirst = 'extrinsic_indexInBlock_ASC_NULLS_FIRST', - ExtrinsicIndexInBlockAscNullsLast = 'extrinsic_indexInBlock_ASC_NULLS_LAST', - ExtrinsicIndexInBlockDesc = 'extrinsic_indexInBlock_DESC', - ExtrinsicIndexInBlockDescNullsFirst = 'extrinsic_indexInBlock_DESC_NULLS_FIRST', - ExtrinsicIndexInBlockDescNullsLast = 'extrinsic_indexInBlock_DESC_NULLS_LAST', - ExtrinsicPalletAsc = 'extrinsic_pallet_ASC', - ExtrinsicPalletAscNullsFirst = 'extrinsic_pallet_ASC_NULLS_FIRST', - ExtrinsicPalletAscNullsLast = 'extrinsic_pallet_ASC_NULLS_LAST', - ExtrinsicPalletDesc = 'extrinsic_pallet_DESC', - ExtrinsicPalletDescNullsFirst = 'extrinsic_pallet_DESC_NULLS_FIRST', - ExtrinsicPalletDescNullsLast = 'extrinsic_pallet_DESC_NULLS_LAST', - ExtrinsicSuccessAsc = 'extrinsic_success_ASC', - ExtrinsicSuccessAscNullsFirst = 'extrinsic_success_ASC_NULLS_FIRST', - ExtrinsicSuccessAscNullsLast = 'extrinsic_success_ASC_NULLS_LAST', - ExtrinsicSuccessDesc = 'extrinsic_success_DESC', - ExtrinsicSuccessDescNullsFirst = 'extrinsic_success_DESC_NULLS_FIRST', - ExtrinsicSuccessDescNullsLast = 'extrinsic_success_DESC_NULLS_LAST', - ExtrinsicTimestampAsc = 'extrinsic_timestamp_ASC', - ExtrinsicTimestampAscNullsFirst = 'extrinsic_timestamp_ASC_NULLS_FIRST', - ExtrinsicTimestampAscNullsLast = 'extrinsic_timestamp_ASC_NULLS_LAST', - ExtrinsicTimestampDesc = 'extrinsic_timestamp_DESC', - ExtrinsicTimestampDescNullsFirst = 'extrinsic_timestamp_DESC_NULLS_FIRST', - ExtrinsicTimestampDescNullsLast = 'extrinsic_timestamp_DESC_NULLS_LAST', - IdAsc = 'id_ASC', - IdAscNullsFirst = 'id_ASC_NULLS_FIRST', - IdAscNullsLast = 'id_ASC_NULLS_LAST', - IdDesc = 'id_DESC', - IdDescNullsFirst = 'id_DESC_NULLS_FIRST', - IdDescNullsLast = 'id_DESC_NULLS_LAST', - ScheduledTransferAmountAsc = 'scheduledTransfer_amount_ASC', - ScheduledTransferAmountAscNullsFirst = 'scheduledTransfer_amount_ASC_NULLS_FIRST', - ScheduledTransferAmountAscNullsLast = 'scheduledTransfer_amount_ASC_NULLS_LAST', - ScheduledTransferAmountDesc = 'scheduledTransfer_amount_DESC', - ScheduledTransferAmountDescNullsFirst = 'scheduledTransfer_amount_DESC_NULLS_FIRST', - ScheduledTransferAmountDescNullsLast = 'scheduledTransfer_amount_DESC_NULLS_LAST', - ScheduledTransferFeeAsc = 'scheduledTransfer_fee_ASC', - ScheduledTransferFeeAscNullsFirst = 'scheduledTransfer_fee_ASC_NULLS_FIRST', - ScheduledTransferFeeAscNullsLast = 'scheduledTransfer_fee_ASC_NULLS_LAST', - ScheduledTransferFeeDesc = 'scheduledTransfer_fee_DESC', - ScheduledTransferFeeDescNullsFirst = 'scheduledTransfer_fee_DESC_NULLS_FIRST', - ScheduledTransferFeeDescNullsLast = 'scheduledTransfer_fee_DESC_NULLS_LAST', - ScheduledTransferIdAsc = 'scheduledTransfer_id_ASC', - ScheduledTransferIdAscNullsFirst = 'scheduledTransfer_id_ASC_NULLS_FIRST', - ScheduledTransferIdAscNullsLast = 'scheduledTransfer_id_ASC_NULLS_LAST', - ScheduledTransferIdDesc = 'scheduledTransfer_id_DESC', - ScheduledTransferIdDescNullsFirst = 'scheduledTransfer_id_DESC_NULLS_FIRST', - ScheduledTransferIdDescNullsLast = 'scheduledTransfer_id_DESC_NULLS_LAST', - ScheduledTransferScheduledAtAsc = 'scheduledTransfer_scheduledAt_ASC', - ScheduledTransferScheduledAtAscNullsFirst = 'scheduledTransfer_scheduledAt_ASC_NULLS_FIRST', - ScheduledTransferScheduledAtAscNullsLast = 'scheduledTransfer_scheduledAt_ASC_NULLS_LAST', - ScheduledTransferScheduledAtDesc = 'scheduledTransfer_scheduledAt_DESC', - ScheduledTransferScheduledAtDescNullsFirst = 'scheduledTransfer_scheduledAt_DESC_NULLS_FIRST', - ScheduledTransferScheduledAtDescNullsLast = 'scheduledTransfer_scheduledAt_DESC_NULLS_LAST', - ScheduledTransferTimestampAsc = 'scheduledTransfer_timestamp_ASC', - ScheduledTransferTimestampAscNullsFirst = 'scheduledTransfer_timestamp_ASC_NULLS_FIRST', - ScheduledTransferTimestampAscNullsLast = 'scheduledTransfer_timestamp_ASC_NULLS_LAST', - ScheduledTransferTimestampDesc = 'scheduledTransfer_timestamp_DESC', - ScheduledTransferTimestampDescNullsFirst = 'scheduledTransfer_timestamp_DESC_NULLS_FIRST', - ScheduledTransferTimestampDescNullsLast = 'scheduledTransfer_timestamp_DESC_NULLS_LAST', - ScheduledTransferTxIdAsc = 'scheduledTransfer_txId_ASC', - ScheduledTransferTxIdAscNullsFirst = 'scheduledTransfer_txId_ASC_NULLS_FIRST', - ScheduledTransferTxIdAscNullsLast = 'scheduledTransfer_txId_ASC_NULLS_LAST', - ScheduledTransferTxIdDesc = 'scheduledTransfer_txId_DESC', - ScheduledTransferTxIdDescNullsFirst = 'scheduledTransfer_txId_DESC_NULLS_FIRST', - ScheduledTransferTxIdDescNullsLast = 'scheduledTransfer_txId_DESC_NULLS_LAST', - TimestampAsc = 'timestamp_ASC', - TimestampAscNullsFirst = 'timestamp_ASC_NULLS_FIRST', - TimestampAscNullsLast = 'timestamp_ASC_NULLS_LAST', - TimestampDesc = 'timestamp_DESC', - TimestampDescNullsFirst = 'timestamp_DESC_NULLS_FIRST', - TimestampDescNullsLast = 'timestamp_DESC_NULLS_LAST', - TxIdAsc = 'txId_ASC', - TxIdAscNullsFirst = 'txId_ASC_NULLS_FIRST', - TxIdAscNullsLast = 'txId_ASC_NULLS_LAST', - TxIdDesc = 'txId_DESC', - TxIdDescNullsFirst = 'txId_DESC_NULLS_FIRST', - TxIdDescNullsLast = 'txId_DESC_NULLS_LAST' + total_accounts: Scalars['Int']['output']; + total_cancelled_transfers: Scalars['Int']['output']; + total_deposit_accounts: Scalars['Int']['output']; + total_error_events: Scalars['Int']['output']; + total_executed_transfers: Scalars['Int']['output']; + total_high_security_sets: Scalars['Int']['output']; + total_immediate_transfers: Scalars['Int']['output']; + total_miner_rewards: Scalars['Int']['output']; + total_scheduled_transfers: Scalars['Int']['output']; +}; + +/** aggregated selection of "chain_stats" */ +export type Chain_Stats_Aggregate = { + __typename?: 'chain_stats_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "chain_stats" */ +export type Chain_Stats_Aggregate_Fields = { + __typename?: 'chain_stats_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + +/** aggregate fields of "chain_stats" */ +export type Chain_Stats_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type Chain_Stats_Avg_Fields = { + __typename?: 'chain_stats_avg_fields'; + block_height?: Maybe; + finalized_block_height?: Maybe; + total_accounts?: Maybe; + total_cancelled_transfers?: Maybe; + total_deposit_accounts?: Maybe; + total_error_events?: Maybe; + total_executed_transfers?: Maybe; + total_high_security_sets?: Maybe; + total_immediate_transfers?: Maybe; + total_miner_rewards?: Maybe; + total_scheduled_transfers?: Maybe; +}; + +/** Boolean expression to filter rows from the table "chain_stats". All fields are combined with a logical 'AND'. */ +export type Chain_Stats_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + block_height?: InputMaybe; + finalized_block_height?: InputMaybe; + id?: InputMaybe; + total_accounts?: InputMaybe; + total_cancelled_transfers?: InputMaybe; + total_deposit_accounts?: InputMaybe; + total_error_events?: InputMaybe; + total_executed_transfers?: InputMaybe; + total_high_security_sets?: InputMaybe; + total_immediate_transfers?: InputMaybe; + total_miner_rewards?: InputMaybe; + total_scheduled_transfers?: InputMaybe; +}; + +/** aggregate max on columns */ +export type Chain_Stats_Max_Fields = { + __typename?: 'chain_stats_max_fields'; + block_height?: Maybe; + finalized_block_height?: Maybe; + id?: Maybe; + total_accounts?: Maybe; + total_cancelled_transfers?: Maybe; + total_deposit_accounts?: Maybe; + total_error_events?: Maybe; + total_executed_transfers?: Maybe; + total_high_security_sets?: Maybe; + total_immediate_transfers?: Maybe; + total_miner_rewards?: Maybe; + total_scheduled_transfers?: Maybe; +}; + +/** aggregate min on columns */ +export type Chain_Stats_Min_Fields = { + __typename?: 'chain_stats_min_fields'; + block_height?: Maybe; + finalized_block_height?: Maybe; + id?: Maybe; + total_accounts?: Maybe; + total_cancelled_transfers?: Maybe; + total_deposit_accounts?: Maybe; + total_error_events?: Maybe; + total_executed_transfers?: Maybe; + total_high_security_sets?: Maybe; + total_immediate_transfers?: Maybe; + total_miner_rewards?: Maybe; + total_scheduled_transfers?: Maybe; +}; + +/** Ordering options when selecting data from "chain_stats". */ +export type Chain_Stats_Order_By = { + block_height?: InputMaybe; + finalized_block_height?: InputMaybe; + id?: InputMaybe; + total_accounts?: InputMaybe; + total_cancelled_transfers?: InputMaybe; + total_deposit_accounts?: InputMaybe; + total_error_events?: InputMaybe; + total_executed_transfers?: InputMaybe; + total_high_security_sets?: InputMaybe; + total_immediate_transfers?: InputMaybe; + total_miner_rewards?: InputMaybe; + total_scheduled_transfers?: InputMaybe; +}; + +/** select columns of table "chain_stats" */ +export enum Chain_Stats_Select_Column { + /** column name */ + BlockHeight = 'block_height', + /** column name */ + FinalizedBlockHeight = 'finalized_block_height', + /** column name */ + Id = 'id', + /** column name */ + TotalAccounts = 'total_accounts', + /** column name */ + TotalCancelledTransfers = 'total_cancelled_transfers', + /** column name */ + TotalDepositAccounts = 'total_deposit_accounts', + /** column name */ + TotalErrorEvents = 'total_error_events', + /** column name */ + TotalExecutedTransfers = 'total_executed_transfers', + /** column name */ + TotalHighSecuritySets = 'total_high_security_sets', + /** column name */ + TotalImmediateTransfers = 'total_immediate_transfers', + /** column name */ + TotalMinerRewards = 'total_miner_rewards', + /** column name */ + TotalScheduledTransfers = 'total_scheduled_transfers' +} + +/** aggregate stddev on columns */ +export type Chain_Stats_Stddev_Fields = { + __typename?: 'chain_stats_stddev_fields'; + block_height?: Maybe; + finalized_block_height?: Maybe; + total_accounts?: Maybe; + total_cancelled_transfers?: Maybe; + total_deposit_accounts?: Maybe; + total_error_events?: Maybe; + total_executed_transfers?: Maybe; + total_high_security_sets?: Maybe; + total_immediate_transfers?: Maybe; + total_miner_rewards?: Maybe; + total_scheduled_transfers?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type Chain_Stats_Stddev_Pop_Fields = { + __typename?: 'chain_stats_stddev_pop_fields'; + block_height?: Maybe; + finalized_block_height?: Maybe; + total_accounts?: Maybe; + total_cancelled_transfers?: Maybe; + total_deposit_accounts?: Maybe; + total_error_events?: Maybe; + total_executed_transfers?: Maybe; + total_high_security_sets?: Maybe; + total_immediate_transfers?: Maybe; + total_miner_rewards?: Maybe; + total_scheduled_transfers?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type Chain_Stats_Stddev_Samp_Fields = { + __typename?: 'chain_stats_stddev_samp_fields'; + block_height?: Maybe; + finalized_block_height?: Maybe; + total_accounts?: Maybe; + total_cancelled_transfers?: Maybe; + total_deposit_accounts?: Maybe; + total_error_events?: Maybe; + total_executed_transfers?: Maybe; + total_high_security_sets?: Maybe; + total_immediate_transfers?: Maybe; + total_miner_rewards?: Maybe; + total_scheduled_transfers?: Maybe; +}; + +/** Streaming cursor of the table "chain_stats" */ +export type Chain_Stats_Stream_Cursor_Input = { + /** Stream column input with initial value */ + initial_value: Chain_Stats_Stream_Cursor_Value_Input; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type Chain_Stats_Stream_Cursor_Value_Input = { + block_height?: InputMaybe; + finalized_block_height?: InputMaybe; + id?: InputMaybe; + total_accounts?: InputMaybe; + total_cancelled_transfers?: InputMaybe; + total_deposit_accounts?: InputMaybe; + total_error_events?: InputMaybe; + total_executed_transfers?: InputMaybe; + total_high_security_sets?: InputMaybe; + total_immediate_transfers?: InputMaybe; + total_miner_rewards?: InputMaybe; + total_scheduled_transfers?: InputMaybe; +}; + +/** aggregate sum on columns */ +export type Chain_Stats_Sum_Fields = { + __typename?: 'chain_stats_sum_fields'; + block_height?: Maybe; + finalized_block_height?: Maybe; + total_accounts?: Maybe; + total_cancelled_transfers?: Maybe; + total_deposit_accounts?: Maybe; + total_error_events?: Maybe; + total_executed_transfers?: Maybe; + total_high_security_sets?: Maybe; + total_immediate_transfers?: Maybe; + total_miner_rewards?: Maybe; + total_scheduled_transfers?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type Chain_Stats_Var_Pop_Fields = { + __typename?: 'chain_stats_var_pop_fields'; + block_height?: Maybe; + finalized_block_height?: Maybe; + total_accounts?: Maybe; + total_cancelled_transfers?: Maybe; + total_deposit_accounts?: Maybe; + total_error_events?: Maybe; + total_executed_transfers?: Maybe; + total_high_security_sets?: Maybe; + total_immediate_transfers?: Maybe; + total_miner_rewards?: Maybe; + total_scheduled_transfers?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type Chain_Stats_Var_Samp_Fields = { + __typename?: 'chain_stats_var_samp_fields'; + block_height?: Maybe; + finalized_block_height?: Maybe; + total_accounts?: Maybe; + total_cancelled_transfers?: Maybe; + total_deposit_accounts?: Maybe; + total_error_events?: Maybe; + total_executed_transfers?: Maybe; + total_high_security_sets?: Maybe; + total_immediate_transfers?: Maybe; + total_miner_rewards?: Maybe; + total_scheduled_transfers?: Maybe; +}; + +/** aggregate variance on columns */ +export type Chain_Stats_Variance_Fields = { + __typename?: 'chain_stats_variance_fields'; + block_height?: Maybe; + finalized_block_height?: Maybe; + total_accounts?: Maybe; + total_cancelled_transfers?: Maybe; + total_deposit_accounts?: Maybe; + total_error_events?: Maybe; + total_executed_transfers?: Maybe; + total_high_security_sets?: Maybe; + total_immediate_transfers?: Maybe; + total_miner_rewards?: Maybe; + total_scheduled_transfers?: Maybe; +}; + +/** ordering argument of a cursor */ +export enum Cursor_Ordering { + /** ascending ordering of the cursor */ + Asc = 'ASC', + /** descending ordering of the cursor */ + Desc = 'DESC' } -export type CancelledReversibleTransferWhereInput = { - AND?: InputMaybe>; - OR?: InputMaybe>; - block?: InputMaybe; - block_isNull?: InputMaybe; - cancelledBy?: InputMaybe; - cancelledBy_isNull?: InputMaybe; - event?: InputMaybe; - event_isNull?: InputMaybe; - extrinsic?: InputMaybe; - extrinsic_isNull?: InputMaybe; - id_contains?: InputMaybe; - id_containsInsensitive?: InputMaybe; - id_endsWith?: InputMaybe; - id_eq?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_isNull?: InputMaybe; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not_contains?: InputMaybe; - id_not_containsInsensitive?: InputMaybe; - id_not_endsWith?: InputMaybe; - id_not_eq?: InputMaybe; - id_not_in?: InputMaybe>; - id_not_startsWith?: InputMaybe; - id_startsWith?: InputMaybe; - scheduledTransfer?: InputMaybe; - scheduledTransfer_isNull?: InputMaybe; - timestamp_eq?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_isNull?: InputMaybe; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not_eq?: InputMaybe; - timestamp_not_in?: InputMaybe>; - txId_contains?: InputMaybe; - txId_containsInsensitive?: InputMaybe; - txId_endsWith?: InputMaybe; - txId_eq?: InputMaybe; - txId_gt?: InputMaybe; - txId_gte?: InputMaybe; - txId_in?: InputMaybe>; - txId_isNull?: InputMaybe; - txId_lt?: InputMaybe; - txId_lte?: InputMaybe; - txId_not_contains?: InputMaybe; - txId_not_containsInsensitive?: InputMaybe; - txId_not_endsWith?: InputMaybe; - txId_not_eq?: InputMaybe; - txId_not_in?: InputMaybe>; - txId_not_startsWith?: InputMaybe; - txId_startsWith?: InputMaybe; -}; - -export type CancelledReversibleTransfersConnection = { - __typename?: 'CancelledReversibleTransfersConnection'; - edges: Array; - pageInfo: PageInfo; - totalCount: Scalars['Int']['output']; -}; - -/** Bucketed deposit pool statistics for privacy score computation. Each bucket covers a bounded range of deposit amounts with overlapping ranges growing by factor 4. */ -export type DepositPoolStats = { - __typename?: 'DepositPoolStats'; - /** Bucket definitions and stats as JSON. Each bucket has: lo, hi (planck), count, sumAmounts, sumAmountsSquared */ +/** columns and relationships of "deposit_pool_stats" */ +export type Deposit_Pool_Stats = { + __typename?: 'deposit_pool_stats'; buckets: Scalars['String']['output']; - /** Singleton entity (id='global') */ id: Scalars['String']['output']; - /** Block number of last update */ - lastUpdatedBlock: Scalars['Int']['output']; -}; - -export type DepositPoolStatsConnection = { - __typename?: 'DepositPoolStatsConnection'; - edges: Array; - pageInfo: PageInfo; - totalCount: Scalars['Int']['output']; -}; - -export type DepositPoolStatsEdge = { - __typename?: 'DepositPoolStatsEdge'; - cursor: Scalars['String']['output']; - node: DepositPoolStats; -}; - -export enum DepositPoolStatsOrderByInput { - BucketsAsc = 'buckets_ASC', - BucketsAscNullsFirst = 'buckets_ASC_NULLS_FIRST', - BucketsAscNullsLast = 'buckets_ASC_NULLS_LAST', - BucketsDesc = 'buckets_DESC', - BucketsDescNullsFirst = 'buckets_DESC_NULLS_FIRST', - BucketsDescNullsLast = 'buckets_DESC_NULLS_LAST', - IdAsc = 'id_ASC', - IdAscNullsFirst = 'id_ASC_NULLS_FIRST', - IdAscNullsLast = 'id_ASC_NULLS_LAST', - IdDesc = 'id_DESC', - IdDescNullsFirst = 'id_DESC_NULLS_FIRST', - IdDescNullsLast = 'id_DESC_NULLS_LAST', - LastUpdatedBlockAsc = 'lastUpdatedBlock_ASC', - LastUpdatedBlockAscNullsFirst = 'lastUpdatedBlock_ASC_NULLS_FIRST', - LastUpdatedBlockAscNullsLast = 'lastUpdatedBlock_ASC_NULLS_LAST', - LastUpdatedBlockDesc = 'lastUpdatedBlock_DESC', - LastUpdatedBlockDescNullsFirst = 'lastUpdatedBlock_DESC_NULLS_FIRST', - LastUpdatedBlockDescNullsLast = 'lastUpdatedBlock_DESC_NULLS_LAST' + last_updated_block: Scalars['Int']['output']; +}; + +/** aggregated selection of "deposit_pool_stats" */ +export type Deposit_Pool_Stats_Aggregate = { + __typename?: 'deposit_pool_stats_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "deposit_pool_stats" */ +export type Deposit_Pool_Stats_Aggregate_Fields = { + __typename?: 'deposit_pool_stats_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + +/** aggregate fields of "deposit_pool_stats" */ +export type Deposit_Pool_Stats_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type Deposit_Pool_Stats_Avg_Fields = { + __typename?: 'deposit_pool_stats_avg_fields'; + last_updated_block?: Maybe; +}; + +/** Boolean expression to filter rows from the table "deposit_pool_stats". All fields are combined with a logical 'AND'. */ +export type Deposit_Pool_Stats_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + buckets?: InputMaybe; + id?: InputMaybe; + last_updated_block?: InputMaybe; +}; + +/** aggregate max on columns */ +export type Deposit_Pool_Stats_Max_Fields = { + __typename?: 'deposit_pool_stats_max_fields'; + buckets?: Maybe; + id?: Maybe; + last_updated_block?: Maybe; +}; + +/** aggregate min on columns */ +export type Deposit_Pool_Stats_Min_Fields = { + __typename?: 'deposit_pool_stats_min_fields'; + buckets?: Maybe; + id?: Maybe; + last_updated_block?: Maybe; +}; + +/** Ordering options when selecting data from "deposit_pool_stats". */ +export type Deposit_Pool_Stats_Order_By = { + buckets?: InputMaybe; + id?: InputMaybe; + last_updated_block?: InputMaybe; +}; + +/** select columns of table "deposit_pool_stats" */ +export enum Deposit_Pool_Stats_Select_Column { + /** column name */ + Buckets = 'buckets', + /** column name */ + Id = 'id', + /** column name */ + LastUpdatedBlock = 'last_updated_block' } -export type DepositPoolStatsWhereInput = { - AND?: InputMaybe>; - OR?: InputMaybe>; - buckets_contains?: InputMaybe; - buckets_containsInsensitive?: InputMaybe; - buckets_endsWith?: InputMaybe; - buckets_eq?: InputMaybe; - buckets_gt?: InputMaybe; - buckets_gte?: InputMaybe; - buckets_in?: InputMaybe>; - buckets_isNull?: InputMaybe; - buckets_lt?: InputMaybe; - buckets_lte?: InputMaybe; - buckets_not_contains?: InputMaybe; - buckets_not_containsInsensitive?: InputMaybe; - buckets_not_endsWith?: InputMaybe; - buckets_not_eq?: InputMaybe; - buckets_not_in?: InputMaybe>; - buckets_not_startsWith?: InputMaybe; - buckets_startsWith?: InputMaybe; - id_contains?: InputMaybe; - id_containsInsensitive?: InputMaybe; - id_endsWith?: InputMaybe; - id_eq?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_isNull?: InputMaybe; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not_contains?: InputMaybe; - id_not_containsInsensitive?: InputMaybe; - id_not_endsWith?: InputMaybe; - id_not_eq?: InputMaybe; - id_not_in?: InputMaybe>; - id_not_startsWith?: InputMaybe; - id_startsWith?: InputMaybe; - lastUpdatedBlock_eq?: InputMaybe; - lastUpdatedBlock_gt?: InputMaybe; - lastUpdatedBlock_gte?: InputMaybe; - lastUpdatedBlock_in?: InputMaybe>; - lastUpdatedBlock_isNull?: InputMaybe; - lastUpdatedBlock_lt?: InputMaybe; - lastUpdatedBlock_lte?: InputMaybe; - lastUpdatedBlock_not_eq?: InputMaybe; - lastUpdatedBlock_not_in?: InputMaybe>; -}; - -export type ErrorEvent = { - __typename?: 'ErrorEvent'; - block: Block; - errorDocs?: Maybe; - errorModule?: Maybe; - errorName?: Maybe; - errorType: Scalars['String']['output']; +/** aggregate stddev on columns */ +export type Deposit_Pool_Stats_Stddev_Fields = { + __typename?: 'deposit_pool_stats_stddev_fields'; + last_updated_block?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type Deposit_Pool_Stats_Stddev_Pop_Fields = { + __typename?: 'deposit_pool_stats_stddev_pop_fields'; + last_updated_block?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type Deposit_Pool_Stats_Stddev_Samp_Fields = { + __typename?: 'deposit_pool_stats_stddev_samp_fields'; + last_updated_block?: Maybe; +}; + +/** Streaming cursor of the table "deposit_pool_stats" */ +export type Deposit_Pool_Stats_Stream_Cursor_Input = { + /** Stream column input with initial value */ + initial_value: Deposit_Pool_Stats_Stream_Cursor_Value_Input; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type Deposit_Pool_Stats_Stream_Cursor_Value_Input = { + buckets?: InputMaybe; + id?: InputMaybe; + last_updated_block?: InputMaybe; +}; + +/** aggregate sum on columns */ +export type Deposit_Pool_Stats_Sum_Fields = { + __typename?: 'deposit_pool_stats_sum_fields'; + last_updated_block?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type Deposit_Pool_Stats_Var_Pop_Fields = { + __typename?: 'deposit_pool_stats_var_pop_fields'; + last_updated_block?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type Deposit_Pool_Stats_Var_Samp_Fields = { + __typename?: 'deposit_pool_stats_var_samp_fields'; + last_updated_block?: Maybe; +}; + +/** aggregate variance on columns */ +export type Deposit_Pool_Stats_Variance_Fields = { + __typename?: 'deposit_pool_stats_variance_fields'; + last_updated_block?: Maybe; +}; + +/** columns and relationships of "error_event" */ +export type Error_Event = { + __typename?: 'error_event'; + /** An object relationship */ + block?: Maybe; + block_id?: Maybe; + error_docs?: Maybe; + error_module?: Maybe; + error_name?: Maybe; + error_type: Scalars['String']['output']; + /** An object relationship */ event?: Maybe; - /** Link to the extrinsic that failed */ + /** An object relationship */ extrinsic?: Maybe; + extrinsic_id?: Maybe; id: Scalars['String']['output']; - timestamp: Scalars['DateTime']['output']; -}; - -export type ErrorEventEdge = { - __typename?: 'ErrorEventEdge'; - cursor: Scalars['String']['output']; - node: ErrorEvent; -}; - -export enum ErrorEventOrderByInput { - BlockHashAsc = 'block_hash_ASC', - BlockHashAscNullsFirst = 'block_hash_ASC_NULLS_FIRST', - BlockHashAscNullsLast = 'block_hash_ASC_NULLS_LAST', - BlockHashDesc = 'block_hash_DESC', - BlockHashDescNullsFirst = 'block_hash_DESC_NULLS_FIRST', - BlockHashDescNullsLast = 'block_hash_DESC_NULLS_LAST', - BlockHeightAsc = 'block_height_ASC', - BlockHeightAscNullsFirst = 'block_height_ASC_NULLS_FIRST', - BlockHeightAscNullsLast = 'block_height_ASC_NULLS_LAST', - BlockHeightDesc = 'block_height_DESC', - BlockHeightDescNullsFirst = 'block_height_DESC_NULLS_FIRST', - BlockHeightDescNullsLast = 'block_height_DESC_NULLS_LAST', - BlockIdAsc = 'block_id_ASC', - BlockIdAscNullsFirst = 'block_id_ASC_NULLS_FIRST', - BlockIdAscNullsLast = 'block_id_ASC_NULLS_LAST', - BlockIdDesc = 'block_id_DESC', - BlockIdDescNullsFirst = 'block_id_DESC_NULLS_FIRST', - BlockIdDescNullsLast = 'block_id_DESC_NULLS_LAST', - BlockRewardAsc = 'block_reward_ASC', - BlockRewardAscNullsFirst = 'block_reward_ASC_NULLS_FIRST', - BlockRewardAscNullsLast = 'block_reward_ASC_NULLS_LAST', - BlockRewardDesc = 'block_reward_DESC', - BlockRewardDescNullsFirst = 'block_reward_DESC_NULLS_FIRST', - BlockRewardDescNullsLast = 'block_reward_DESC_NULLS_LAST', - BlockTimestampAsc = 'block_timestamp_ASC', - BlockTimestampAscNullsFirst = 'block_timestamp_ASC_NULLS_FIRST', - BlockTimestampAscNullsLast = 'block_timestamp_ASC_NULLS_LAST', - BlockTimestampDesc = 'block_timestamp_DESC', - BlockTimestampDescNullsFirst = 'block_timestamp_DESC_NULLS_FIRST', - BlockTimestampDescNullsLast = 'block_timestamp_DESC_NULLS_LAST', - ErrorDocsAsc = 'errorDocs_ASC', - ErrorDocsAscNullsFirst = 'errorDocs_ASC_NULLS_FIRST', - ErrorDocsAscNullsLast = 'errorDocs_ASC_NULLS_LAST', - ErrorDocsDesc = 'errorDocs_DESC', - ErrorDocsDescNullsFirst = 'errorDocs_DESC_NULLS_FIRST', - ErrorDocsDescNullsLast = 'errorDocs_DESC_NULLS_LAST', - ErrorModuleAsc = 'errorModule_ASC', - ErrorModuleAscNullsFirst = 'errorModule_ASC_NULLS_FIRST', - ErrorModuleAscNullsLast = 'errorModule_ASC_NULLS_LAST', - ErrorModuleDesc = 'errorModule_DESC', - ErrorModuleDescNullsFirst = 'errorModule_DESC_NULLS_FIRST', - ErrorModuleDescNullsLast = 'errorModule_DESC_NULLS_LAST', - ErrorNameAsc = 'errorName_ASC', - ErrorNameAscNullsFirst = 'errorName_ASC_NULLS_FIRST', - ErrorNameAscNullsLast = 'errorName_ASC_NULLS_LAST', - ErrorNameDesc = 'errorName_DESC', - ErrorNameDescNullsFirst = 'errorName_DESC_NULLS_FIRST', - ErrorNameDescNullsLast = 'errorName_DESC_NULLS_LAST', - ErrorTypeAsc = 'errorType_ASC', - ErrorTypeAscNullsFirst = 'errorType_ASC_NULLS_FIRST', - ErrorTypeAscNullsLast = 'errorType_ASC_NULLS_LAST', - ErrorTypeDesc = 'errorType_DESC', - ErrorTypeDescNullsFirst = 'errorType_DESC_NULLS_FIRST', - ErrorTypeDescNullsLast = 'errorType_DESC_NULLS_LAST', - EventIdAsc = 'event_id_ASC', - EventIdAscNullsFirst = 'event_id_ASC_NULLS_FIRST', - EventIdAscNullsLast = 'event_id_ASC_NULLS_LAST', - EventIdDesc = 'event_id_DESC', - EventIdDescNullsFirst = 'event_id_DESC_NULLS_FIRST', - EventIdDescNullsLast = 'event_id_DESC_NULLS_LAST', - EventTimestampAsc = 'event_timestamp_ASC', - EventTimestampAscNullsFirst = 'event_timestamp_ASC_NULLS_FIRST', - EventTimestampAscNullsLast = 'event_timestamp_ASC_NULLS_LAST', - EventTimestampDesc = 'event_timestamp_DESC', - EventTimestampDescNullsFirst = 'event_timestamp_DESC_NULLS_FIRST', - EventTimestampDescNullsLast = 'event_timestamp_DESC_NULLS_LAST', - EventTypeAsc = 'event_type_ASC', - EventTypeAscNullsFirst = 'event_type_ASC_NULLS_FIRST', - EventTypeAscNullsLast = 'event_type_ASC_NULLS_LAST', - EventTypeDesc = 'event_type_DESC', - EventTypeDescNullsFirst = 'event_type_DESC_NULLS_FIRST', - EventTypeDescNullsLast = 'event_type_DESC_NULLS_LAST', - ExtrinsicArgsAsc = 'extrinsic_args_ASC', - ExtrinsicArgsAscNullsFirst = 'extrinsic_args_ASC_NULLS_FIRST', - ExtrinsicArgsAscNullsLast = 'extrinsic_args_ASC_NULLS_LAST', - ExtrinsicArgsDesc = 'extrinsic_args_DESC', - ExtrinsicArgsDescNullsFirst = 'extrinsic_args_DESC_NULLS_FIRST', - ExtrinsicArgsDescNullsLast = 'extrinsic_args_DESC_NULLS_LAST', - ExtrinsicCallAsc = 'extrinsic_call_ASC', - ExtrinsicCallAscNullsFirst = 'extrinsic_call_ASC_NULLS_FIRST', - ExtrinsicCallAscNullsLast = 'extrinsic_call_ASC_NULLS_LAST', - ExtrinsicCallDesc = 'extrinsic_call_DESC', - ExtrinsicCallDescNullsFirst = 'extrinsic_call_DESC_NULLS_FIRST', - ExtrinsicCallDescNullsLast = 'extrinsic_call_DESC_NULLS_LAST', - ExtrinsicFeeAsc = 'extrinsic_fee_ASC', - ExtrinsicFeeAscNullsFirst = 'extrinsic_fee_ASC_NULLS_FIRST', - ExtrinsicFeeAscNullsLast = 'extrinsic_fee_ASC_NULLS_LAST', - ExtrinsicFeeDesc = 'extrinsic_fee_DESC', - ExtrinsicFeeDescNullsFirst = 'extrinsic_fee_DESC_NULLS_FIRST', - ExtrinsicFeeDescNullsLast = 'extrinsic_fee_DESC_NULLS_LAST', - ExtrinsicIdAsc = 'extrinsic_id_ASC', - ExtrinsicIdAscNullsFirst = 'extrinsic_id_ASC_NULLS_FIRST', - ExtrinsicIdAscNullsLast = 'extrinsic_id_ASC_NULLS_LAST', - ExtrinsicIdDesc = 'extrinsic_id_DESC', - ExtrinsicIdDescNullsFirst = 'extrinsic_id_DESC_NULLS_FIRST', - ExtrinsicIdDescNullsLast = 'extrinsic_id_DESC_NULLS_LAST', - ExtrinsicIndexInBlockAsc = 'extrinsic_indexInBlock_ASC', - ExtrinsicIndexInBlockAscNullsFirst = 'extrinsic_indexInBlock_ASC_NULLS_FIRST', - ExtrinsicIndexInBlockAscNullsLast = 'extrinsic_indexInBlock_ASC_NULLS_LAST', - ExtrinsicIndexInBlockDesc = 'extrinsic_indexInBlock_DESC', - ExtrinsicIndexInBlockDescNullsFirst = 'extrinsic_indexInBlock_DESC_NULLS_FIRST', - ExtrinsicIndexInBlockDescNullsLast = 'extrinsic_indexInBlock_DESC_NULLS_LAST', - ExtrinsicPalletAsc = 'extrinsic_pallet_ASC', - ExtrinsicPalletAscNullsFirst = 'extrinsic_pallet_ASC_NULLS_FIRST', - ExtrinsicPalletAscNullsLast = 'extrinsic_pallet_ASC_NULLS_LAST', - ExtrinsicPalletDesc = 'extrinsic_pallet_DESC', - ExtrinsicPalletDescNullsFirst = 'extrinsic_pallet_DESC_NULLS_FIRST', - ExtrinsicPalletDescNullsLast = 'extrinsic_pallet_DESC_NULLS_LAST', - ExtrinsicSuccessAsc = 'extrinsic_success_ASC', - ExtrinsicSuccessAscNullsFirst = 'extrinsic_success_ASC_NULLS_FIRST', - ExtrinsicSuccessAscNullsLast = 'extrinsic_success_ASC_NULLS_LAST', - ExtrinsicSuccessDesc = 'extrinsic_success_DESC', - ExtrinsicSuccessDescNullsFirst = 'extrinsic_success_DESC_NULLS_FIRST', - ExtrinsicSuccessDescNullsLast = 'extrinsic_success_DESC_NULLS_LAST', - ExtrinsicTimestampAsc = 'extrinsic_timestamp_ASC', - ExtrinsicTimestampAscNullsFirst = 'extrinsic_timestamp_ASC_NULLS_FIRST', - ExtrinsicTimestampAscNullsLast = 'extrinsic_timestamp_ASC_NULLS_LAST', - ExtrinsicTimestampDesc = 'extrinsic_timestamp_DESC', - ExtrinsicTimestampDescNullsFirst = 'extrinsic_timestamp_DESC_NULLS_FIRST', - ExtrinsicTimestampDescNullsLast = 'extrinsic_timestamp_DESC_NULLS_LAST', - IdAsc = 'id_ASC', - IdAscNullsFirst = 'id_ASC_NULLS_FIRST', - IdAscNullsLast = 'id_ASC_NULLS_LAST', - IdDesc = 'id_DESC', - IdDescNullsFirst = 'id_DESC_NULLS_FIRST', - IdDescNullsLast = 'id_DESC_NULLS_LAST', - TimestampAsc = 'timestamp_ASC', - TimestampAscNullsFirst = 'timestamp_ASC_NULLS_FIRST', - TimestampAscNullsLast = 'timestamp_ASC_NULLS_LAST', - TimestampDesc = 'timestamp_DESC', - TimestampDescNullsFirst = 'timestamp_DESC_NULLS_FIRST', - TimestampDescNullsLast = 'timestamp_DESC_NULLS_LAST' + timestamp: Scalars['timestamptz']['output']; +}; + +/** aggregated selection of "error_event" */ +export type Error_Event_Aggregate = { + __typename?: 'error_event_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "error_event" */ +export type Error_Event_Aggregate_Fields = { + __typename?: 'error_event_aggregate_fields'; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; +}; + +/** aggregate fields of "error_event" */ +export type Error_Event_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** Boolean expression to filter rows from the table "error_event". All fields are combined with a logical 'AND'. */ +export type Error_Event_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + block?: InputMaybe; + block_id?: InputMaybe; + error_docs?: InputMaybe; + error_module?: InputMaybe; + error_name?: InputMaybe; + error_type?: InputMaybe; + event?: InputMaybe; + extrinsic?: InputMaybe; + extrinsic_id?: InputMaybe; + id?: InputMaybe; + timestamp?: InputMaybe; +}; + +/** aggregate max on columns */ +export type Error_Event_Max_Fields = { + __typename?: 'error_event_max_fields'; + block_id?: Maybe; + error_docs?: Maybe; + error_module?: Maybe; + error_name?: Maybe; + error_type?: Maybe; + extrinsic_id?: Maybe; + id?: Maybe; + timestamp?: Maybe; +}; + +/** aggregate min on columns */ +export type Error_Event_Min_Fields = { + __typename?: 'error_event_min_fields'; + block_id?: Maybe; + error_docs?: Maybe; + error_module?: Maybe; + error_name?: Maybe; + error_type?: Maybe; + extrinsic_id?: Maybe; + id?: Maybe; + timestamp?: Maybe; +}; + +/** Ordering options when selecting data from "error_event". */ +export type Error_Event_Order_By = { + block?: InputMaybe; + block_id?: InputMaybe; + error_docs?: InputMaybe; + error_module?: InputMaybe; + error_name?: InputMaybe; + error_type?: InputMaybe; + event?: InputMaybe; + extrinsic?: InputMaybe; + extrinsic_id?: InputMaybe; + id?: InputMaybe; + timestamp?: InputMaybe; +}; + +/** select columns of table "error_event" */ +export enum Error_Event_Select_Column { + /** column name */ + BlockId = 'block_id', + /** column name */ + ErrorDocs = 'error_docs', + /** column name */ + ErrorModule = 'error_module', + /** column name */ + ErrorName = 'error_name', + /** column name */ + ErrorType = 'error_type', + /** column name */ + ExtrinsicId = 'extrinsic_id', + /** column name */ + Id = 'id', + /** column name */ + Timestamp = 'timestamp' } -export type ErrorEventWhereInput = { - AND?: InputMaybe>; - OR?: InputMaybe>; - block?: InputMaybe; - block_isNull?: InputMaybe; - errorDocs_contains?: InputMaybe; - errorDocs_containsInsensitive?: InputMaybe; - errorDocs_endsWith?: InputMaybe; - errorDocs_eq?: InputMaybe; - errorDocs_gt?: InputMaybe; - errorDocs_gte?: InputMaybe; - errorDocs_in?: InputMaybe>; - errorDocs_isNull?: InputMaybe; - errorDocs_lt?: InputMaybe; - errorDocs_lte?: InputMaybe; - errorDocs_not_contains?: InputMaybe; - errorDocs_not_containsInsensitive?: InputMaybe; - errorDocs_not_endsWith?: InputMaybe; - errorDocs_not_eq?: InputMaybe; - errorDocs_not_in?: InputMaybe>; - errorDocs_not_startsWith?: InputMaybe; - errorDocs_startsWith?: InputMaybe; - errorModule_contains?: InputMaybe; - errorModule_containsInsensitive?: InputMaybe; - errorModule_endsWith?: InputMaybe; - errorModule_eq?: InputMaybe; - errorModule_gt?: InputMaybe; - errorModule_gte?: InputMaybe; - errorModule_in?: InputMaybe>; - errorModule_isNull?: InputMaybe; - errorModule_lt?: InputMaybe; - errorModule_lte?: InputMaybe; - errorModule_not_contains?: InputMaybe; - errorModule_not_containsInsensitive?: InputMaybe; - errorModule_not_endsWith?: InputMaybe; - errorModule_not_eq?: InputMaybe; - errorModule_not_in?: InputMaybe>; - errorModule_not_startsWith?: InputMaybe; - errorModule_startsWith?: InputMaybe; - errorName_contains?: InputMaybe; - errorName_containsInsensitive?: InputMaybe; - errorName_endsWith?: InputMaybe; - errorName_eq?: InputMaybe; - errorName_gt?: InputMaybe; - errorName_gte?: InputMaybe; - errorName_in?: InputMaybe>; - errorName_isNull?: InputMaybe; - errorName_lt?: InputMaybe; - errorName_lte?: InputMaybe; - errorName_not_contains?: InputMaybe; - errorName_not_containsInsensitive?: InputMaybe; - errorName_not_endsWith?: InputMaybe; - errorName_not_eq?: InputMaybe; - errorName_not_in?: InputMaybe>; - errorName_not_startsWith?: InputMaybe; - errorName_startsWith?: InputMaybe; - errorType_contains?: InputMaybe; - errorType_containsInsensitive?: InputMaybe; - errorType_endsWith?: InputMaybe; - errorType_eq?: InputMaybe; - errorType_gt?: InputMaybe; - errorType_gte?: InputMaybe; - errorType_in?: InputMaybe>; - errorType_isNull?: InputMaybe; - errorType_lt?: InputMaybe; - errorType_lte?: InputMaybe; - errorType_not_contains?: InputMaybe; - errorType_not_containsInsensitive?: InputMaybe; - errorType_not_endsWith?: InputMaybe; - errorType_not_eq?: InputMaybe; - errorType_not_in?: InputMaybe>; - errorType_not_startsWith?: InputMaybe; - errorType_startsWith?: InputMaybe; - event?: InputMaybe; - event_isNull?: InputMaybe; - extrinsic?: InputMaybe; - extrinsic_isNull?: InputMaybe; - id_contains?: InputMaybe; - id_containsInsensitive?: InputMaybe; - id_endsWith?: InputMaybe; - id_eq?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_isNull?: InputMaybe; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not_contains?: InputMaybe; - id_not_containsInsensitive?: InputMaybe; - id_not_endsWith?: InputMaybe; - id_not_eq?: InputMaybe; - id_not_in?: InputMaybe>; - id_not_startsWith?: InputMaybe; - id_startsWith?: InputMaybe; - timestamp_eq?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_isNull?: InputMaybe; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not_eq?: InputMaybe; - timestamp_not_in?: InputMaybe>; -}; - -export type ErrorEventsConnection = { - __typename?: 'ErrorEventsConnection'; - edges: Array; - pageInfo: PageInfo; - totalCount: Scalars['Int']['output']; +/** Streaming cursor of the table "error_event" */ +export type Error_Event_Stream_Cursor_Input = { + /** Stream column input with initial value */ + initial_value: Error_Event_Stream_Cursor_Value_Input; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type Error_Event_Stream_Cursor_Value_Input = { + block_id?: InputMaybe; + error_docs?: InputMaybe; + error_module?: InputMaybe; + error_name?: InputMaybe; + error_type?: InputMaybe; + extrinsic_id?: InputMaybe; + id?: InputMaybe; + timestamp?: InputMaybe; }; +/** columns and relationships of "event" */ export type Event = { - __typename?: 'Event'; - balanceEvent?: Maybe; - block: Block; - cancelledReversibleTransfer?: Maybe; - errorEvent?: Maybe; - executedReversibleTransfer?: Maybe; - /** Link to the extrinsic that emitted this event (null for inherent events like miner rewards) */ + __typename?: 'event'; + /** An object relationship */ + block?: Maybe; + block_id?: Maybe; + /** An object relationship */ + cancelledReversibleTransfer?: Maybe; + cancelled_reversible_transfer_id?: Maybe; + /** An object relationship */ + errorEvent?: Maybe; + error_event_id?: Maybe; + /** An object relationship */ + executedReversibleTransfer?: Maybe; + executed_reversible_transfer_id?: Maybe; + /** An object relationship */ extrinsic?: Maybe; - highSecuritySet?: Maybe; + extrinsic_id?: Maybe; + /** An object relationship */ + highSecuritySet?: Maybe; + high_security_set_id?: Maybe; id: Scalars['String']['output']; - minerReward?: Maybe; - scheduledReversibleTransfer?: Maybe; - timestamp: Scalars['DateTime']['output']; + /** An object relationship */ + minerReward?: Maybe; + miner_reward_id?: Maybe; + /** An object relationship */ + scheduledReversibleTransfer?: Maybe; + scheduled_reversible_transfer_id?: Maybe; + timestamp: Scalars['timestamptz']['output']; + /** An object relationship */ transfer?: Maybe; - type: EventType; -}; - -export type EventEdge = { - __typename?: 'EventEdge'; - cursor: Scalars['String']['output']; - node: Event; -}; - -export enum EventOrderByInput { - BalanceEventAmountAsc = 'balanceEvent_amount_ASC', - BalanceEventAmountAscNullsFirst = 'balanceEvent_amount_ASC_NULLS_FIRST', - BalanceEventAmountAscNullsLast = 'balanceEvent_amount_ASC_NULLS_LAST', - BalanceEventAmountDesc = 'balanceEvent_amount_DESC', - BalanceEventAmountDescNullsFirst = 'balanceEvent_amount_DESC_NULLS_FIRST', - BalanceEventAmountDescNullsLast = 'balanceEvent_amount_DESC_NULLS_LAST', - BalanceEventIdAsc = 'balanceEvent_id_ASC', - BalanceEventIdAscNullsFirst = 'balanceEvent_id_ASC_NULLS_FIRST', - BalanceEventIdAscNullsLast = 'balanceEvent_id_ASC_NULLS_LAST', - BalanceEventIdDesc = 'balanceEvent_id_DESC', - BalanceEventIdDescNullsFirst = 'balanceEvent_id_DESC_NULLS_FIRST', - BalanceEventIdDescNullsLast = 'balanceEvent_id_DESC_NULLS_LAST', - BalanceEventTimestampAsc = 'balanceEvent_timestamp_ASC', - BalanceEventTimestampAscNullsFirst = 'balanceEvent_timestamp_ASC_NULLS_FIRST', - BalanceEventTimestampAscNullsLast = 'balanceEvent_timestamp_ASC_NULLS_LAST', - BalanceEventTimestampDesc = 'balanceEvent_timestamp_DESC', - BalanceEventTimestampDescNullsFirst = 'balanceEvent_timestamp_DESC_NULLS_FIRST', - BalanceEventTimestampDescNullsLast = 'balanceEvent_timestamp_DESC_NULLS_LAST', - BalanceEventTypeAsc = 'balanceEvent_type_ASC', - BalanceEventTypeAscNullsFirst = 'balanceEvent_type_ASC_NULLS_FIRST', - BalanceEventTypeAscNullsLast = 'balanceEvent_type_ASC_NULLS_LAST', - BalanceEventTypeDesc = 'balanceEvent_type_DESC', - BalanceEventTypeDescNullsFirst = 'balanceEvent_type_DESC_NULLS_FIRST', - BalanceEventTypeDescNullsLast = 'balanceEvent_type_DESC_NULLS_LAST', - BlockHashAsc = 'block_hash_ASC', - BlockHashAscNullsFirst = 'block_hash_ASC_NULLS_FIRST', - BlockHashAscNullsLast = 'block_hash_ASC_NULLS_LAST', - BlockHashDesc = 'block_hash_DESC', - BlockHashDescNullsFirst = 'block_hash_DESC_NULLS_FIRST', - BlockHashDescNullsLast = 'block_hash_DESC_NULLS_LAST', - BlockHeightAsc = 'block_height_ASC', - BlockHeightAscNullsFirst = 'block_height_ASC_NULLS_FIRST', - BlockHeightAscNullsLast = 'block_height_ASC_NULLS_LAST', - BlockHeightDesc = 'block_height_DESC', - BlockHeightDescNullsFirst = 'block_height_DESC_NULLS_FIRST', - BlockHeightDescNullsLast = 'block_height_DESC_NULLS_LAST', - BlockIdAsc = 'block_id_ASC', - BlockIdAscNullsFirst = 'block_id_ASC_NULLS_FIRST', - BlockIdAscNullsLast = 'block_id_ASC_NULLS_LAST', - BlockIdDesc = 'block_id_DESC', - BlockIdDescNullsFirst = 'block_id_DESC_NULLS_FIRST', - BlockIdDescNullsLast = 'block_id_DESC_NULLS_LAST', - BlockRewardAsc = 'block_reward_ASC', - BlockRewardAscNullsFirst = 'block_reward_ASC_NULLS_FIRST', - BlockRewardAscNullsLast = 'block_reward_ASC_NULLS_LAST', - BlockRewardDesc = 'block_reward_DESC', - BlockRewardDescNullsFirst = 'block_reward_DESC_NULLS_FIRST', - BlockRewardDescNullsLast = 'block_reward_DESC_NULLS_LAST', - BlockTimestampAsc = 'block_timestamp_ASC', - BlockTimestampAscNullsFirst = 'block_timestamp_ASC_NULLS_FIRST', - BlockTimestampAscNullsLast = 'block_timestamp_ASC_NULLS_LAST', - BlockTimestampDesc = 'block_timestamp_DESC', - BlockTimestampDescNullsFirst = 'block_timestamp_DESC_NULLS_FIRST', - BlockTimestampDescNullsLast = 'block_timestamp_DESC_NULLS_LAST', - CancelledReversibleTransferIdAsc = 'cancelledReversibleTransfer_id_ASC', - CancelledReversibleTransferIdAscNullsFirst = 'cancelledReversibleTransfer_id_ASC_NULLS_FIRST', - CancelledReversibleTransferIdAscNullsLast = 'cancelledReversibleTransfer_id_ASC_NULLS_LAST', - CancelledReversibleTransferIdDesc = 'cancelledReversibleTransfer_id_DESC', - CancelledReversibleTransferIdDescNullsFirst = 'cancelledReversibleTransfer_id_DESC_NULLS_FIRST', - CancelledReversibleTransferIdDescNullsLast = 'cancelledReversibleTransfer_id_DESC_NULLS_LAST', - CancelledReversibleTransferTimestampAsc = 'cancelledReversibleTransfer_timestamp_ASC', - CancelledReversibleTransferTimestampAscNullsFirst = 'cancelledReversibleTransfer_timestamp_ASC_NULLS_FIRST', - CancelledReversibleTransferTimestampAscNullsLast = 'cancelledReversibleTransfer_timestamp_ASC_NULLS_LAST', - CancelledReversibleTransferTimestampDesc = 'cancelledReversibleTransfer_timestamp_DESC', - CancelledReversibleTransferTimestampDescNullsFirst = 'cancelledReversibleTransfer_timestamp_DESC_NULLS_FIRST', - CancelledReversibleTransferTimestampDescNullsLast = 'cancelledReversibleTransfer_timestamp_DESC_NULLS_LAST', - CancelledReversibleTransferTxIdAsc = 'cancelledReversibleTransfer_txId_ASC', - CancelledReversibleTransferTxIdAscNullsFirst = 'cancelledReversibleTransfer_txId_ASC_NULLS_FIRST', - CancelledReversibleTransferTxIdAscNullsLast = 'cancelledReversibleTransfer_txId_ASC_NULLS_LAST', - CancelledReversibleTransferTxIdDesc = 'cancelledReversibleTransfer_txId_DESC', - CancelledReversibleTransferTxIdDescNullsFirst = 'cancelledReversibleTransfer_txId_DESC_NULLS_FIRST', - CancelledReversibleTransferTxIdDescNullsLast = 'cancelledReversibleTransfer_txId_DESC_NULLS_LAST', - ErrorEventErrorDocsAsc = 'errorEvent_errorDocs_ASC', - ErrorEventErrorDocsAscNullsFirst = 'errorEvent_errorDocs_ASC_NULLS_FIRST', - ErrorEventErrorDocsAscNullsLast = 'errorEvent_errorDocs_ASC_NULLS_LAST', - ErrorEventErrorDocsDesc = 'errorEvent_errorDocs_DESC', - ErrorEventErrorDocsDescNullsFirst = 'errorEvent_errorDocs_DESC_NULLS_FIRST', - ErrorEventErrorDocsDescNullsLast = 'errorEvent_errorDocs_DESC_NULLS_LAST', - ErrorEventErrorModuleAsc = 'errorEvent_errorModule_ASC', - ErrorEventErrorModuleAscNullsFirst = 'errorEvent_errorModule_ASC_NULLS_FIRST', - ErrorEventErrorModuleAscNullsLast = 'errorEvent_errorModule_ASC_NULLS_LAST', - ErrorEventErrorModuleDesc = 'errorEvent_errorModule_DESC', - ErrorEventErrorModuleDescNullsFirst = 'errorEvent_errorModule_DESC_NULLS_FIRST', - ErrorEventErrorModuleDescNullsLast = 'errorEvent_errorModule_DESC_NULLS_LAST', - ErrorEventErrorNameAsc = 'errorEvent_errorName_ASC', - ErrorEventErrorNameAscNullsFirst = 'errorEvent_errorName_ASC_NULLS_FIRST', - ErrorEventErrorNameAscNullsLast = 'errorEvent_errorName_ASC_NULLS_LAST', - ErrorEventErrorNameDesc = 'errorEvent_errorName_DESC', - ErrorEventErrorNameDescNullsFirst = 'errorEvent_errorName_DESC_NULLS_FIRST', - ErrorEventErrorNameDescNullsLast = 'errorEvent_errorName_DESC_NULLS_LAST', - ErrorEventErrorTypeAsc = 'errorEvent_errorType_ASC', - ErrorEventErrorTypeAscNullsFirst = 'errorEvent_errorType_ASC_NULLS_FIRST', - ErrorEventErrorTypeAscNullsLast = 'errorEvent_errorType_ASC_NULLS_LAST', - ErrorEventErrorTypeDesc = 'errorEvent_errorType_DESC', - ErrorEventErrorTypeDescNullsFirst = 'errorEvent_errorType_DESC_NULLS_FIRST', - ErrorEventErrorTypeDescNullsLast = 'errorEvent_errorType_DESC_NULLS_LAST', - ErrorEventIdAsc = 'errorEvent_id_ASC', - ErrorEventIdAscNullsFirst = 'errorEvent_id_ASC_NULLS_FIRST', - ErrorEventIdAscNullsLast = 'errorEvent_id_ASC_NULLS_LAST', - ErrorEventIdDesc = 'errorEvent_id_DESC', - ErrorEventIdDescNullsFirst = 'errorEvent_id_DESC_NULLS_FIRST', - ErrorEventIdDescNullsLast = 'errorEvent_id_DESC_NULLS_LAST', - ErrorEventTimestampAsc = 'errorEvent_timestamp_ASC', - ErrorEventTimestampAscNullsFirst = 'errorEvent_timestamp_ASC_NULLS_FIRST', - ErrorEventTimestampAscNullsLast = 'errorEvent_timestamp_ASC_NULLS_LAST', - ErrorEventTimestampDesc = 'errorEvent_timestamp_DESC', - ErrorEventTimestampDescNullsFirst = 'errorEvent_timestamp_DESC_NULLS_FIRST', - ErrorEventTimestampDescNullsLast = 'errorEvent_timestamp_DESC_NULLS_LAST', - ExecutedReversibleTransferIdAsc = 'executedReversibleTransfer_id_ASC', - ExecutedReversibleTransferIdAscNullsFirst = 'executedReversibleTransfer_id_ASC_NULLS_FIRST', - ExecutedReversibleTransferIdAscNullsLast = 'executedReversibleTransfer_id_ASC_NULLS_LAST', - ExecutedReversibleTransferIdDesc = 'executedReversibleTransfer_id_DESC', - ExecutedReversibleTransferIdDescNullsFirst = 'executedReversibleTransfer_id_DESC_NULLS_FIRST', - ExecutedReversibleTransferIdDescNullsLast = 'executedReversibleTransfer_id_DESC_NULLS_LAST', - ExecutedReversibleTransferTimestampAsc = 'executedReversibleTransfer_timestamp_ASC', - ExecutedReversibleTransferTimestampAscNullsFirst = 'executedReversibleTransfer_timestamp_ASC_NULLS_FIRST', - ExecutedReversibleTransferTimestampAscNullsLast = 'executedReversibleTransfer_timestamp_ASC_NULLS_LAST', - ExecutedReversibleTransferTimestampDesc = 'executedReversibleTransfer_timestamp_DESC', - ExecutedReversibleTransferTimestampDescNullsFirst = 'executedReversibleTransfer_timestamp_DESC_NULLS_FIRST', - ExecutedReversibleTransferTimestampDescNullsLast = 'executedReversibleTransfer_timestamp_DESC_NULLS_LAST', - ExecutedReversibleTransferTxIdAsc = 'executedReversibleTransfer_txId_ASC', - ExecutedReversibleTransferTxIdAscNullsFirst = 'executedReversibleTransfer_txId_ASC_NULLS_FIRST', - ExecutedReversibleTransferTxIdAscNullsLast = 'executedReversibleTransfer_txId_ASC_NULLS_LAST', - ExecutedReversibleTransferTxIdDesc = 'executedReversibleTransfer_txId_DESC', - ExecutedReversibleTransferTxIdDescNullsFirst = 'executedReversibleTransfer_txId_DESC_NULLS_FIRST', - ExecutedReversibleTransferTxIdDescNullsLast = 'executedReversibleTransfer_txId_DESC_NULLS_LAST', - ExtrinsicArgsAsc = 'extrinsic_args_ASC', - ExtrinsicArgsAscNullsFirst = 'extrinsic_args_ASC_NULLS_FIRST', - ExtrinsicArgsAscNullsLast = 'extrinsic_args_ASC_NULLS_LAST', - ExtrinsicArgsDesc = 'extrinsic_args_DESC', - ExtrinsicArgsDescNullsFirst = 'extrinsic_args_DESC_NULLS_FIRST', - ExtrinsicArgsDescNullsLast = 'extrinsic_args_DESC_NULLS_LAST', - ExtrinsicCallAsc = 'extrinsic_call_ASC', - ExtrinsicCallAscNullsFirst = 'extrinsic_call_ASC_NULLS_FIRST', - ExtrinsicCallAscNullsLast = 'extrinsic_call_ASC_NULLS_LAST', - ExtrinsicCallDesc = 'extrinsic_call_DESC', - ExtrinsicCallDescNullsFirst = 'extrinsic_call_DESC_NULLS_FIRST', - ExtrinsicCallDescNullsLast = 'extrinsic_call_DESC_NULLS_LAST', - ExtrinsicFeeAsc = 'extrinsic_fee_ASC', - ExtrinsicFeeAscNullsFirst = 'extrinsic_fee_ASC_NULLS_FIRST', - ExtrinsicFeeAscNullsLast = 'extrinsic_fee_ASC_NULLS_LAST', - ExtrinsicFeeDesc = 'extrinsic_fee_DESC', - ExtrinsicFeeDescNullsFirst = 'extrinsic_fee_DESC_NULLS_FIRST', - ExtrinsicFeeDescNullsLast = 'extrinsic_fee_DESC_NULLS_LAST', - ExtrinsicIdAsc = 'extrinsic_id_ASC', - ExtrinsicIdAscNullsFirst = 'extrinsic_id_ASC_NULLS_FIRST', - ExtrinsicIdAscNullsLast = 'extrinsic_id_ASC_NULLS_LAST', - ExtrinsicIdDesc = 'extrinsic_id_DESC', - ExtrinsicIdDescNullsFirst = 'extrinsic_id_DESC_NULLS_FIRST', - ExtrinsicIdDescNullsLast = 'extrinsic_id_DESC_NULLS_LAST', - ExtrinsicIndexInBlockAsc = 'extrinsic_indexInBlock_ASC', - ExtrinsicIndexInBlockAscNullsFirst = 'extrinsic_indexInBlock_ASC_NULLS_FIRST', - ExtrinsicIndexInBlockAscNullsLast = 'extrinsic_indexInBlock_ASC_NULLS_LAST', - ExtrinsicIndexInBlockDesc = 'extrinsic_indexInBlock_DESC', - ExtrinsicIndexInBlockDescNullsFirst = 'extrinsic_indexInBlock_DESC_NULLS_FIRST', - ExtrinsicIndexInBlockDescNullsLast = 'extrinsic_indexInBlock_DESC_NULLS_LAST', - ExtrinsicPalletAsc = 'extrinsic_pallet_ASC', - ExtrinsicPalletAscNullsFirst = 'extrinsic_pallet_ASC_NULLS_FIRST', - ExtrinsicPalletAscNullsLast = 'extrinsic_pallet_ASC_NULLS_LAST', - ExtrinsicPalletDesc = 'extrinsic_pallet_DESC', - ExtrinsicPalletDescNullsFirst = 'extrinsic_pallet_DESC_NULLS_FIRST', - ExtrinsicPalletDescNullsLast = 'extrinsic_pallet_DESC_NULLS_LAST', - ExtrinsicSuccessAsc = 'extrinsic_success_ASC', - ExtrinsicSuccessAscNullsFirst = 'extrinsic_success_ASC_NULLS_FIRST', - ExtrinsicSuccessAscNullsLast = 'extrinsic_success_ASC_NULLS_LAST', - ExtrinsicSuccessDesc = 'extrinsic_success_DESC', - ExtrinsicSuccessDescNullsFirst = 'extrinsic_success_DESC_NULLS_FIRST', - ExtrinsicSuccessDescNullsLast = 'extrinsic_success_DESC_NULLS_LAST', - ExtrinsicTimestampAsc = 'extrinsic_timestamp_ASC', - ExtrinsicTimestampAscNullsFirst = 'extrinsic_timestamp_ASC_NULLS_FIRST', - ExtrinsicTimestampAscNullsLast = 'extrinsic_timestamp_ASC_NULLS_LAST', - ExtrinsicTimestampDesc = 'extrinsic_timestamp_DESC', - ExtrinsicTimestampDescNullsFirst = 'extrinsic_timestamp_DESC_NULLS_FIRST', - ExtrinsicTimestampDescNullsLast = 'extrinsic_timestamp_DESC_NULLS_LAST', - HighSecuritySetDelayAsc = 'highSecuritySet_delay_ASC', - HighSecuritySetDelayAscNullsFirst = 'highSecuritySet_delay_ASC_NULLS_FIRST', - HighSecuritySetDelayAscNullsLast = 'highSecuritySet_delay_ASC_NULLS_LAST', - HighSecuritySetDelayDesc = 'highSecuritySet_delay_DESC', - HighSecuritySetDelayDescNullsFirst = 'highSecuritySet_delay_DESC_NULLS_FIRST', - HighSecuritySetDelayDescNullsLast = 'highSecuritySet_delay_DESC_NULLS_LAST', - HighSecuritySetIdAsc = 'highSecuritySet_id_ASC', - HighSecuritySetIdAscNullsFirst = 'highSecuritySet_id_ASC_NULLS_FIRST', - HighSecuritySetIdAscNullsLast = 'highSecuritySet_id_ASC_NULLS_LAST', - HighSecuritySetIdDesc = 'highSecuritySet_id_DESC', - HighSecuritySetIdDescNullsFirst = 'highSecuritySet_id_DESC_NULLS_FIRST', - HighSecuritySetIdDescNullsLast = 'highSecuritySet_id_DESC_NULLS_LAST', - HighSecuritySetTimestampAsc = 'highSecuritySet_timestamp_ASC', - HighSecuritySetTimestampAscNullsFirst = 'highSecuritySet_timestamp_ASC_NULLS_FIRST', - HighSecuritySetTimestampAscNullsLast = 'highSecuritySet_timestamp_ASC_NULLS_LAST', - HighSecuritySetTimestampDesc = 'highSecuritySet_timestamp_DESC', - HighSecuritySetTimestampDescNullsFirst = 'highSecuritySet_timestamp_DESC_NULLS_FIRST', - HighSecuritySetTimestampDescNullsLast = 'highSecuritySet_timestamp_DESC_NULLS_LAST', - IdAsc = 'id_ASC', - IdAscNullsFirst = 'id_ASC_NULLS_FIRST', - IdAscNullsLast = 'id_ASC_NULLS_LAST', - IdDesc = 'id_DESC', - IdDescNullsFirst = 'id_DESC_NULLS_FIRST', - IdDescNullsLast = 'id_DESC_NULLS_LAST', - MinerRewardIdAsc = 'minerReward_id_ASC', - MinerRewardIdAscNullsFirst = 'minerReward_id_ASC_NULLS_FIRST', - MinerRewardIdAscNullsLast = 'minerReward_id_ASC_NULLS_LAST', - MinerRewardIdDesc = 'minerReward_id_DESC', - MinerRewardIdDescNullsFirst = 'minerReward_id_DESC_NULLS_FIRST', - MinerRewardIdDescNullsLast = 'minerReward_id_DESC_NULLS_LAST', - MinerRewardRewardAsc = 'minerReward_reward_ASC', - MinerRewardRewardAscNullsFirst = 'minerReward_reward_ASC_NULLS_FIRST', - MinerRewardRewardAscNullsLast = 'minerReward_reward_ASC_NULLS_LAST', - MinerRewardRewardDesc = 'minerReward_reward_DESC', - MinerRewardRewardDescNullsFirst = 'minerReward_reward_DESC_NULLS_FIRST', - MinerRewardRewardDescNullsLast = 'minerReward_reward_DESC_NULLS_LAST', - MinerRewardTimestampAsc = 'minerReward_timestamp_ASC', - MinerRewardTimestampAscNullsFirst = 'minerReward_timestamp_ASC_NULLS_FIRST', - MinerRewardTimestampAscNullsLast = 'minerReward_timestamp_ASC_NULLS_LAST', - MinerRewardTimestampDesc = 'minerReward_timestamp_DESC', - MinerRewardTimestampDescNullsFirst = 'minerReward_timestamp_DESC_NULLS_FIRST', - MinerRewardTimestampDescNullsLast = 'minerReward_timestamp_DESC_NULLS_LAST', - ScheduledReversibleTransferAmountAsc = 'scheduledReversibleTransfer_amount_ASC', - ScheduledReversibleTransferAmountAscNullsFirst = 'scheduledReversibleTransfer_amount_ASC_NULLS_FIRST', - ScheduledReversibleTransferAmountAscNullsLast = 'scheduledReversibleTransfer_amount_ASC_NULLS_LAST', - ScheduledReversibleTransferAmountDesc = 'scheduledReversibleTransfer_amount_DESC', - ScheduledReversibleTransferAmountDescNullsFirst = 'scheduledReversibleTransfer_amount_DESC_NULLS_FIRST', - ScheduledReversibleTransferAmountDescNullsLast = 'scheduledReversibleTransfer_amount_DESC_NULLS_LAST', - ScheduledReversibleTransferFeeAsc = 'scheduledReversibleTransfer_fee_ASC', - ScheduledReversibleTransferFeeAscNullsFirst = 'scheduledReversibleTransfer_fee_ASC_NULLS_FIRST', - ScheduledReversibleTransferFeeAscNullsLast = 'scheduledReversibleTransfer_fee_ASC_NULLS_LAST', - ScheduledReversibleTransferFeeDesc = 'scheduledReversibleTransfer_fee_DESC', - ScheduledReversibleTransferFeeDescNullsFirst = 'scheduledReversibleTransfer_fee_DESC_NULLS_FIRST', - ScheduledReversibleTransferFeeDescNullsLast = 'scheduledReversibleTransfer_fee_DESC_NULLS_LAST', - ScheduledReversibleTransferIdAsc = 'scheduledReversibleTransfer_id_ASC', - ScheduledReversibleTransferIdAscNullsFirst = 'scheduledReversibleTransfer_id_ASC_NULLS_FIRST', - ScheduledReversibleTransferIdAscNullsLast = 'scheduledReversibleTransfer_id_ASC_NULLS_LAST', - ScheduledReversibleTransferIdDesc = 'scheduledReversibleTransfer_id_DESC', - ScheduledReversibleTransferIdDescNullsFirst = 'scheduledReversibleTransfer_id_DESC_NULLS_FIRST', - ScheduledReversibleTransferIdDescNullsLast = 'scheduledReversibleTransfer_id_DESC_NULLS_LAST', - ScheduledReversibleTransferScheduledAtAsc = 'scheduledReversibleTransfer_scheduledAt_ASC', - ScheduledReversibleTransferScheduledAtAscNullsFirst = 'scheduledReversibleTransfer_scheduledAt_ASC_NULLS_FIRST', - ScheduledReversibleTransferScheduledAtAscNullsLast = 'scheduledReversibleTransfer_scheduledAt_ASC_NULLS_LAST', - ScheduledReversibleTransferScheduledAtDesc = 'scheduledReversibleTransfer_scheduledAt_DESC', - ScheduledReversibleTransferScheduledAtDescNullsFirst = 'scheduledReversibleTransfer_scheduledAt_DESC_NULLS_FIRST', - ScheduledReversibleTransferScheduledAtDescNullsLast = 'scheduledReversibleTransfer_scheduledAt_DESC_NULLS_LAST', - ScheduledReversibleTransferTimestampAsc = 'scheduledReversibleTransfer_timestamp_ASC', - ScheduledReversibleTransferTimestampAscNullsFirst = 'scheduledReversibleTransfer_timestamp_ASC_NULLS_FIRST', - ScheduledReversibleTransferTimestampAscNullsLast = 'scheduledReversibleTransfer_timestamp_ASC_NULLS_LAST', - ScheduledReversibleTransferTimestampDesc = 'scheduledReversibleTransfer_timestamp_DESC', - ScheduledReversibleTransferTimestampDescNullsFirst = 'scheduledReversibleTransfer_timestamp_DESC_NULLS_FIRST', - ScheduledReversibleTransferTimestampDescNullsLast = 'scheduledReversibleTransfer_timestamp_DESC_NULLS_LAST', - ScheduledReversibleTransferTxIdAsc = 'scheduledReversibleTransfer_txId_ASC', - ScheduledReversibleTransferTxIdAscNullsFirst = 'scheduledReversibleTransfer_txId_ASC_NULLS_FIRST', - ScheduledReversibleTransferTxIdAscNullsLast = 'scheduledReversibleTransfer_txId_ASC_NULLS_LAST', - ScheduledReversibleTransferTxIdDesc = 'scheduledReversibleTransfer_txId_DESC', - ScheduledReversibleTransferTxIdDescNullsFirst = 'scheduledReversibleTransfer_txId_DESC_NULLS_FIRST', - ScheduledReversibleTransferTxIdDescNullsLast = 'scheduledReversibleTransfer_txId_DESC_NULLS_LAST', - TimestampAsc = 'timestamp_ASC', - TimestampAscNullsFirst = 'timestamp_ASC_NULLS_FIRST', - TimestampAscNullsLast = 'timestamp_ASC_NULLS_LAST', - TimestampDesc = 'timestamp_DESC', - TimestampDescNullsFirst = 'timestamp_DESC_NULLS_FIRST', - TimestampDescNullsLast = 'timestamp_DESC_NULLS_LAST', - TransferAmountAsc = 'transfer_amount_ASC', - TransferAmountAscNullsFirst = 'transfer_amount_ASC_NULLS_FIRST', - TransferAmountAscNullsLast = 'transfer_amount_ASC_NULLS_LAST', - TransferAmountDesc = 'transfer_amount_DESC', - TransferAmountDescNullsFirst = 'transfer_amount_DESC_NULLS_FIRST', - TransferAmountDescNullsLast = 'transfer_amount_DESC_NULLS_LAST', - TransferFeeAsc = 'transfer_fee_ASC', - TransferFeeAscNullsFirst = 'transfer_fee_ASC_NULLS_FIRST', - TransferFeeAscNullsLast = 'transfer_fee_ASC_NULLS_LAST', - TransferFeeDesc = 'transfer_fee_DESC', - TransferFeeDescNullsFirst = 'transfer_fee_DESC_NULLS_FIRST', - TransferFeeDescNullsLast = 'transfer_fee_DESC_NULLS_LAST', - TransferFromHashAsc = 'transfer_fromHash_ASC', - TransferFromHashAscNullsFirst = 'transfer_fromHash_ASC_NULLS_FIRST', - TransferFromHashAscNullsLast = 'transfer_fromHash_ASC_NULLS_LAST', - TransferFromHashDesc = 'transfer_fromHash_DESC', - TransferFromHashDescNullsFirst = 'transfer_fromHash_DESC_NULLS_FIRST', - TransferFromHashDescNullsLast = 'transfer_fromHash_DESC_NULLS_LAST', - TransferIdAsc = 'transfer_id_ASC', - TransferIdAscNullsFirst = 'transfer_id_ASC_NULLS_FIRST', - TransferIdAscNullsLast = 'transfer_id_ASC_NULLS_LAST', - TransferIdDesc = 'transfer_id_DESC', - TransferIdDescNullsFirst = 'transfer_id_DESC_NULLS_FIRST', - TransferIdDescNullsLast = 'transfer_id_DESC_NULLS_LAST', - TransferLeafIndexAsc = 'transfer_leafIndex_ASC', - TransferLeafIndexAscNullsFirst = 'transfer_leafIndex_ASC_NULLS_FIRST', - TransferLeafIndexAscNullsLast = 'transfer_leafIndex_ASC_NULLS_LAST', - TransferLeafIndexDesc = 'transfer_leafIndex_DESC', - TransferLeafIndexDescNullsFirst = 'transfer_leafIndex_DESC_NULLS_FIRST', - TransferLeafIndexDescNullsLast = 'transfer_leafIndex_DESC_NULLS_LAST', - TransferTimestampAsc = 'transfer_timestamp_ASC', - TransferTimestampAscNullsFirst = 'transfer_timestamp_ASC_NULLS_FIRST', - TransferTimestampAscNullsLast = 'transfer_timestamp_ASC_NULLS_LAST', - TransferTimestampDesc = 'transfer_timestamp_DESC', - TransferTimestampDescNullsFirst = 'transfer_timestamp_DESC_NULLS_FIRST', - TransferTimestampDescNullsLast = 'transfer_timestamp_DESC_NULLS_LAST', - TransferToHashAsc = 'transfer_toHash_ASC', - TransferToHashAscNullsFirst = 'transfer_toHash_ASC_NULLS_FIRST', - TransferToHashAscNullsLast = 'transfer_toHash_ASC_NULLS_LAST', - TransferToHashDesc = 'transfer_toHash_DESC', - TransferToHashDescNullsFirst = 'transfer_toHash_DESC_NULLS_FIRST', - TransferToHashDescNullsLast = 'transfer_toHash_DESC_NULLS_LAST', - TransferTransferCountAsc = 'transfer_transferCount_ASC', - TransferTransferCountAscNullsFirst = 'transfer_transferCount_ASC_NULLS_FIRST', - TransferTransferCountAscNullsLast = 'transfer_transferCount_ASC_NULLS_LAST', - TransferTransferCountDesc = 'transfer_transferCount_DESC', - TransferTransferCountDescNullsFirst = 'transfer_transferCount_DESC_NULLS_FIRST', - TransferTransferCountDescNullsLast = 'transfer_transferCount_DESC_NULLS_LAST', - TypeAsc = 'type_ASC', - TypeAscNullsFirst = 'type_ASC_NULLS_FIRST', - TypeAscNullsLast = 'type_ASC_NULLS_LAST', - TypeDesc = 'type_DESC', - TypeDescNullsFirst = 'type_DESC_NULLS_FIRST', - TypeDescNullsLast = 'type_DESC_NULLS_LAST' + transfer_id?: Maybe; + type: Scalars['String']['output']; +}; + +/** aggregated selection of "event" */ +export type Event_Aggregate = { + __typename?: 'event_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +export type Event_Aggregate_Bool_Exp = { + count?: InputMaybe; +}; + +export type Event_Aggregate_Bool_Exp_Count = { + arguments?: InputMaybe>; + distinct?: InputMaybe; + filter?: InputMaybe; + predicate: Int_Comparison_Exp; +}; + +/** aggregate fields of "event" */ +export type Event_Aggregate_Fields = { + __typename?: 'event_aggregate_fields'; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; +}; + +/** aggregate fields of "event" */ +export type Event_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** order by aggregate values of table "event" */ +export type Event_Aggregate_Order_By = { + count?: InputMaybe; + max?: InputMaybe; + min?: InputMaybe; +}; + +/** Boolean expression to filter rows from the table "event". All fields are combined with a logical 'AND'. */ +export type Event_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + block?: InputMaybe; + block_id?: InputMaybe; + cancelledReversibleTransfer?: InputMaybe; + cancelled_reversible_transfer_id?: InputMaybe; + errorEvent?: InputMaybe; + error_event_id?: InputMaybe; + executedReversibleTransfer?: InputMaybe; + executed_reversible_transfer_id?: InputMaybe; + extrinsic?: InputMaybe; + extrinsic_id?: InputMaybe; + highSecuritySet?: InputMaybe; + high_security_set_id?: InputMaybe; + id?: InputMaybe; + minerReward?: InputMaybe; + miner_reward_id?: InputMaybe; + scheduledReversibleTransfer?: InputMaybe; + scheduled_reversible_transfer_id?: InputMaybe; + timestamp?: InputMaybe; + transfer?: InputMaybe; + transfer_id?: InputMaybe; + type?: InputMaybe; +}; + +/** aggregate max on columns */ +export type Event_Max_Fields = { + __typename?: 'event_max_fields'; + block_id?: Maybe; + cancelled_reversible_transfer_id?: Maybe; + error_event_id?: Maybe; + executed_reversible_transfer_id?: Maybe; + extrinsic_id?: Maybe; + high_security_set_id?: Maybe; + id?: Maybe; + miner_reward_id?: Maybe; + scheduled_reversible_transfer_id?: Maybe; + timestamp?: Maybe; + transfer_id?: Maybe; + type?: Maybe; +}; + +/** order by max() on columns of table "event" */ +export type Event_Max_Order_By = { + block_id?: InputMaybe; + cancelled_reversible_transfer_id?: InputMaybe; + error_event_id?: InputMaybe; + executed_reversible_transfer_id?: InputMaybe; + extrinsic_id?: InputMaybe; + high_security_set_id?: InputMaybe; + id?: InputMaybe; + miner_reward_id?: InputMaybe; + scheduled_reversible_transfer_id?: InputMaybe; + timestamp?: InputMaybe; + transfer_id?: InputMaybe; + type?: InputMaybe; +}; + +/** aggregate min on columns */ +export type Event_Min_Fields = { + __typename?: 'event_min_fields'; + block_id?: Maybe; + cancelled_reversible_transfer_id?: Maybe; + error_event_id?: Maybe; + executed_reversible_transfer_id?: Maybe; + extrinsic_id?: Maybe; + high_security_set_id?: Maybe; + id?: Maybe; + miner_reward_id?: Maybe; + scheduled_reversible_transfer_id?: Maybe; + timestamp?: Maybe; + transfer_id?: Maybe; + type?: Maybe; +}; + +/** order by min() on columns of table "event" */ +export type Event_Min_Order_By = { + block_id?: InputMaybe; + cancelled_reversible_transfer_id?: InputMaybe; + error_event_id?: InputMaybe; + executed_reversible_transfer_id?: InputMaybe; + extrinsic_id?: InputMaybe; + high_security_set_id?: InputMaybe; + id?: InputMaybe; + miner_reward_id?: InputMaybe; + scheduled_reversible_transfer_id?: InputMaybe; + timestamp?: InputMaybe; + transfer_id?: InputMaybe; + type?: InputMaybe; +}; + +/** Ordering options when selecting data from "event". */ +export type Event_Order_By = { + block?: InputMaybe; + block_id?: InputMaybe; + cancelledReversibleTransfer?: InputMaybe; + cancelled_reversible_transfer_id?: InputMaybe; + errorEvent?: InputMaybe; + error_event_id?: InputMaybe; + executedReversibleTransfer?: InputMaybe; + executed_reversible_transfer_id?: InputMaybe; + extrinsic?: InputMaybe; + extrinsic_id?: InputMaybe; + highSecuritySet?: InputMaybe; + high_security_set_id?: InputMaybe; + id?: InputMaybe; + minerReward?: InputMaybe; + miner_reward_id?: InputMaybe; + scheduledReversibleTransfer?: InputMaybe; + scheduled_reversible_transfer_id?: InputMaybe; + timestamp?: InputMaybe; + transfer?: InputMaybe; + transfer_id?: InputMaybe; + type?: InputMaybe; +}; + +/** select columns of table "event" */ +export enum Event_Select_Column { + /** column name */ + BlockId = 'block_id', + /** column name */ + CancelledReversibleTransferId = 'cancelled_reversible_transfer_id', + /** column name */ + ErrorEventId = 'error_event_id', + /** column name */ + ExecutedReversibleTransferId = 'executed_reversible_transfer_id', + /** column name */ + ExtrinsicId = 'extrinsic_id', + /** column name */ + HighSecuritySetId = 'high_security_set_id', + /** column name */ + Id = 'id', + /** column name */ + MinerRewardId = 'miner_reward_id', + /** column name */ + ScheduledReversibleTransferId = 'scheduled_reversible_transfer_id', + /** column name */ + Timestamp = 'timestamp', + /** column name */ + TransferId = 'transfer_id', + /** column name */ + Type = 'type' } -export enum EventType { - Balance = 'BALANCE', - CancelledReversibleTransfer = 'CANCELLED_REVERSIBLE_TRANSFER', - Error = 'ERROR', - ExecutedReversibleTransfer = 'EXECUTED_REVERSIBLE_TRANSFER', - HighSecuritySet = 'HIGH_SECURITY_SET', - MinerReward = 'MINER_REWARD', - ScheduledReversibleTransfer = 'SCHEDULED_REVERSIBLE_TRANSFER', - Transfer = 'TRANSFER' -} - -export type EventWhereInput = { - AND?: InputMaybe>; - OR?: InputMaybe>; - balanceEvent?: InputMaybe; - balanceEvent_isNull?: InputMaybe; - block?: InputMaybe; - block_isNull?: InputMaybe; - cancelledReversibleTransfer?: InputMaybe; - cancelledReversibleTransfer_isNull?: InputMaybe; - errorEvent?: InputMaybe; - errorEvent_isNull?: InputMaybe; - executedReversibleTransfer?: InputMaybe; - executedReversibleTransfer_isNull?: InputMaybe; - extrinsic?: InputMaybe; - extrinsic_isNull?: InputMaybe; - highSecuritySet?: InputMaybe; - highSecuritySet_isNull?: InputMaybe; - id_contains?: InputMaybe; - id_containsInsensitive?: InputMaybe; - id_endsWith?: InputMaybe; - id_eq?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_isNull?: InputMaybe; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not_contains?: InputMaybe; - id_not_containsInsensitive?: InputMaybe; - id_not_endsWith?: InputMaybe; - id_not_eq?: InputMaybe; - id_not_in?: InputMaybe>; - id_not_startsWith?: InputMaybe; - id_startsWith?: InputMaybe; - minerReward?: InputMaybe; - minerReward_isNull?: InputMaybe; - scheduledReversibleTransfer?: InputMaybe; - scheduledReversibleTransfer_isNull?: InputMaybe; - timestamp_eq?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_isNull?: InputMaybe; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not_eq?: InputMaybe; - timestamp_not_in?: InputMaybe>; - transfer?: InputMaybe; - transfer_isNull?: InputMaybe; - type_eq?: InputMaybe; - type_in?: InputMaybe>; - type_isNull?: InputMaybe; - type_not_eq?: InputMaybe; - type_not_in?: InputMaybe>; -}; - -export type EventsConnection = { - __typename?: 'EventsConnection'; - edges: Array; - pageInfo: PageInfo; - totalCount: Scalars['Int']['output']; -}; - -export type ExecutedReversibleTransfer = { - __typename?: 'ExecutedReversibleTransfer'; - block: Block; +/** Streaming cursor of the table "event" */ +export type Event_Stream_Cursor_Input = { + /** Stream column input with initial value */ + initial_value: Event_Stream_Cursor_Value_Input; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type Event_Stream_Cursor_Value_Input = { + block_id?: InputMaybe; + cancelled_reversible_transfer_id?: InputMaybe; + error_event_id?: InputMaybe; + executed_reversible_transfer_id?: InputMaybe; + extrinsic_id?: InputMaybe; + high_security_set_id?: InputMaybe; + id?: InputMaybe; + miner_reward_id?: InputMaybe; + scheduled_reversible_transfer_id?: InputMaybe; + timestamp?: InputMaybe; + transfer_id?: InputMaybe; + type?: InputMaybe; +}; + +/** columns and relationships of "executed_reversible_transfer" */ +export type Executed_Reversible_Transfer = { + __typename?: 'executed_reversible_transfer'; + /** An object relationship */ + block?: Maybe; + block_id?: Maybe; + /** An object relationship */ event?: Maybe; + /** An object relationship */ executedTransfer?: Maybe; + executed_transfer_id?: Maybe; id: Scalars['String']['output']; - scheduledTransfer: ScheduledReversibleTransfer; - timestamp: Scalars['DateTime']['output']; - txId: Scalars['String']['output']; -}; - -export type ExecutedReversibleTransferEdge = { - __typename?: 'ExecutedReversibleTransferEdge'; - cursor: Scalars['String']['output']; - node: ExecutedReversibleTransfer; -}; - -export enum ExecutedReversibleTransferOrderByInput { - BlockHashAsc = 'block_hash_ASC', - BlockHashAscNullsFirst = 'block_hash_ASC_NULLS_FIRST', - BlockHashAscNullsLast = 'block_hash_ASC_NULLS_LAST', - BlockHashDesc = 'block_hash_DESC', - BlockHashDescNullsFirst = 'block_hash_DESC_NULLS_FIRST', - BlockHashDescNullsLast = 'block_hash_DESC_NULLS_LAST', - BlockHeightAsc = 'block_height_ASC', - BlockHeightAscNullsFirst = 'block_height_ASC_NULLS_FIRST', - BlockHeightAscNullsLast = 'block_height_ASC_NULLS_LAST', - BlockHeightDesc = 'block_height_DESC', - BlockHeightDescNullsFirst = 'block_height_DESC_NULLS_FIRST', - BlockHeightDescNullsLast = 'block_height_DESC_NULLS_LAST', - BlockIdAsc = 'block_id_ASC', - BlockIdAscNullsFirst = 'block_id_ASC_NULLS_FIRST', - BlockIdAscNullsLast = 'block_id_ASC_NULLS_LAST', - BlockIdDesc = 'block_id_DESC', - BlockIdDescNullsFirst = 'block_id_DESC_NULLS_FIRST', - BlockIdDescNullsLast = 'block_id_DESC_NULLS_LAST', - BlockRewardAsc = 'block_reward_ASC', - BlockRewardAscNullsFirst = 'block_reward_ASC_NULLS_FIRST', - BlockRewardAscNullsLast = 'block_reward_ASC_NULLS_LAST', - BlockRewardDesc = 'block_reward_DESC', - BlockRewardDescNullsFirst = 'block_reward_DESC_NULLS_FIRST', - BlockRewardDescNullsLast = 'block_reward_DESC_NULLS_LAST', - BlockTimestampAsc = 'block_timestamp_ASC', - BlockTimestampAscNullsFirst = 'block_timestamp_ASC_NULLS_FIRST', - BlockTimestampAscNullsLast = 'block_timestamp_ASC_NULLS_LAST', - BlockTimestampDesc = 'block_timestamp_DESC', - BlockTimestampDescNullsFirst = 'block_timestamp_DESC_NULLS_FIRST', - BlockTimestampDescNullsLast = 'block_timestamp_DESC_NULLS_LAST', - EventIdAsc = 'event_id_ASC', - EventIdAscNullsFirst = 'event_id_ASC_NULLS_FIRST', - EventIdAscNullsLast = 'event_id_ASC_NULLS_LAST', - EventIdDesc = 'event_id_DESC', - EventIdDescNullsFirst = 'event_id_DESC_NULLS_FIRST', - EventIdDescNullsLast = 'event_id_DESC_NULLS_LAST', - EventTimestampAsc = 'event_timestamp_ASC', - EventTimestampAscNullsFirst = 'event_timestamp_ASC_NULLS_FIRST', - EventTimestampAscNullsLast = 'event_timestamp_ASC_NULLS_LAST', - EventTimestampDesc = 'event_timestamp_DESC', - EventTimestampDescNullsFirst = 'event_timestamp_DESC_NULLS_FIRST', - EventTimestampDescNullsLast = 'event_timestamp_DESC_NULLS_LAST', - EventTypeAsc = 'event_type_ASC', - EventTypeAscNullsFirst = 'event_type_ASC_NULLS_FIRST', - EventTypeAscNullsLast = 'event_type_ASC_NULLS_LAST', - EventTypeDesc = 'event_type_DESC', - EventTypeDescNullsFirst = 'event_type_DESC_NULLS_FIRST', - EventTypeDescNullsLast = 'event_type_DESC_NULLS_LAST', - ExecutedTransferAmountAsc = 'executedTransfer_amount_ASC', - ExecutedTransferAmountAscNullsFirst = 'executedTransfer_amount_ASC_NULLS_FIRST', - ExecutedTransferAmountAscNullsLast = 'executedTransfer_amount_ASC_NULLS_LAST', - ExecutedTransferAmountDesc = 'executedTransfer_amount_DESC', - ExecutedTransferAmountDescNullsFirst = 'executedTransfer_amount_DESC_NULLS_FIRST', - ExecutedTransferAmountDescNullsLast = 'executedTransfer_amount_DESC_NULLS_LAST', - ExecutedTransferFeeAsc = 'executedTransfer_fee_ASC', - ExecutedTransferFeeAscNullsFirst = 'executedTransfer_fee_ASC_NULLS_FIRST', - ExecutedTransferFeeAscNullsLast = 'executedTransfer_fee_ASC_NULLS_LAST', - ExecutedTransferFeeDesc = 'executedTransfer_fee_DESC', - ExecutedTransferFeeDescNullsFirst = 'executedTransfer_fee_DESC_NULLS_FIRST', - ExecutedTransferFeeDescNullsLast = 'executedTransfer_fee_DESC_NULLS_LAST', - ExecutedTransferFromHashAsc = 'executedTransfer_fromHash_ASC', - ExecutedTransferFromHashAscNullsFirst = 'executedTransfer_fromHash_ASC_NULLS_FIRST', - ExecutedTransferFromHashAscNullsLast = 'executedTransfer_fromHash_ASC_NULLS_LAST', - ExecutedTransferFromHashDesc = 'executedTransfer_fromHash_DESC', - ExecutedTransferFromHashDescNullsFirst = 'executedTransfer_fromHash_DESC_NULLS_FIRST', - ExecutedTransferFromHashDescNullsLast = 'executedTransfer_fromHash_DESC_NULLS_LAST', - ExecutedTransferIdAsc = 'executedTransfer_id_ASC', - ExecutedTransferIdAscNullsFirst = 'executedTransfer_id_ASC_NULLS_FIRST', - ExecutedTransferIdAscNullsLast = 'executedTransfer_id_ASC_NULLS_LAST', - ExecutedTransferIdDesc = 'executedTransfer_id_DESC', - ExecutedTransferIdDescNullsFirst = 'executedTransfer_id_DESC_NULLS_FIRST', - ExecutedTransferIdDescNullsLast = 'executedTransfer_id_DESC_NULLS_LAST', - ExecutedTransferLeafIndexAsc = 'executedTransfer_leafIndex_ASC', - ExecutedTransferLeafIndexAscNullsFirst = 'executedTransfer_leafIndex_ASC_NULLS_FIRST', - ExecutedTransferLeafIndexAscNullsLast = 'executedTransfer_leafIndex_ASC_NULLS_LAST', - ExecutedTransferLeafIndexDesc = 'executedTransfer_leafIndex_DESC', - ExecutedTransferLeafIndexDescNullsFirst = 'executedTransfer_leafIndex_DESC_NULLS_FIRST', - ExecutedTransferLeafIndexDescNullsLast = 'executedTransfer_leafIndex_DESC_NULLS_LAST', - ExecutedTransferTimestampAsc = 'executedTransfer_timestamp_ASC', - ExecutedTransferTimestampAscNullsFirst = 'executedTransfer_timestamp_ASC_NULLS_FIRST', - ExecutedTransferTimestampAscNullsLast = 'executedTransfer_timestamp_ASC_NULLS_LAST', - ExecutedTransferTimestampDesc = 'executedTransfer_timestamp_DESC', - ExecutedTransferTimestampDescNullsFirst = 'executedTransfer_timestamp_DESC_NULLS_FIRST', - ExecutedTransferTimestampDescNullsLast = 'executedTransfer_timestamp_DESC_NULLS_LAST', - ExecutedTransferToHashAsc = 'executedTransfer_toHash_ASC', - ExecutedTransferToHashAscNullsFirst = 'executedTransfer_toHash_ASC_NULLS_FIRST', - ExecutedTransferToHashAscNullsLast = 'executedTransfer_toHash_ASC_NULLS_LAST', - ExecutedTransferToHashDesc = 'executedTransfer_toHash_DESC', - ExecutedTransferToHashDescNullsFirst = 'executedTransfer_toHash_DESC_NULLS_FIRST', - ExecutedTransferToHashDescNullsLast = 'executedTransfer_toHash_DESC_NULLS_LAST', - ExecutedTransferTransferCountAsc = 'executedTransfer_transferCount_ASC', - ExecutedTransferTransferCountAscNullsFirst = 'executedTransfer_transferCount_ASC_NULLS_FIRST', - ExecutedTransferTransferCountAscNullsLast = 'executedTransfer_transferCount_ASC_NULLS_LAST', - ExecutedTransferTransferCountDesc = 'executedTransfer_transferCount_DESC', - ExecutedTransferTransferCountDescNullsFirst = 'executedTransfer_transferCount_DESC_NULLS_FIRST', - ExecutedTransferTransferCountDescNullsLast = 'executedTransfer_transferCount_DESC_NULLS_LAST', - IdAsc = 'id_ASC', - IdAscNullsFirst = 'id_ASC_NULLS_FIRST', - IdAscNullsLast = 'id_ASC_NULLS_LAST', - IdDesc = 'id_DESC', - IdDescNullsFirst = 'id_DESC_NULLS_FIRST', - IdDescNullsLast = 'id_DESC_NULLS_LAST', - ScheduledTransferAmountAsc = 'scheduledTransfer_amount_ASC', - ScheduledTransferAmountAscNullsFirst = 'scheduledTransfer_amount_ASC_NULLS_FIRST', - ScheduledTransferAmountAscNullsLast = 'scheduledTransfer_amount_ASC_NULLS_LAST', - ScheduledTransferAmountDesc = 'scheduledTransfer_amount_DESC', - ScheduledTransferAmountDescNullsFirst = 'scheduledTransfer_amount_DESC_NULLS_FIRST', - ScheduledTransferAmountDescNullsLast = 'scheduledTransfer_amount_DESC_NULLS_LAST', - ScheduledTransferFeeAsc = 'scheduledTransfer_fee_ASC', - ScheduledTransferFeeAscNullsFirst = 'scheduledTransfer_fee_ASC_NULLS_FIRST', - ScheduledTransferFeeAscNullsLast = 'scheduledTransfer_fee_ASC_NULLS_LAST', - ScheduledTransferFeeDesc = 'scheduledTransfer_fee_DESC', - ScheduledTransferFeeDescNullsFirst = 'scheduledTransfer_fee_DESC_NULLS_FIRST', - ScheduledTransferFeeDescNullsLast = 'scheduledTransfer_fee_DESC_NULLS_LAST', - ScheduledTransferIdAsc = 'scheduledTransfer_id_ASC', - ScheduledTransferIdAscNullsFirst = 'scheduledTransfer_id_ASC_NULLS_FIRST', - ScheduledTransferIdAscNullsLast = 'scheduledTransfer_id_ASC_NULLS_LAST', - ScheduledTransferIdDesc = 'scheduledTransfer_id_DESC', - ScheduledTransferIdDescNullsFirst = 'scheduledTransfer_id_DESC_NULLS_FIRST', - ScheduledTransferIdDescNullsLast = 'scheduledTransfer_id_DESC_NULLS_LAST', - ScheduledTransferScheduledAtAsc = 'scheduledTransfer_scheduledAt_ASC', - ScheduledTransferScheduledAtAscNullsFirst = 'scheduledTransfer_scheduledAt_ASC_NULLS_FIRST', - ScheduledTransferScheduledAtAscNullsLast = 'scheduledTransfer_scheduledAt_ASC_NULLS_LAST', - ScheduledTransferScheduledAtDesc = 'scheduledTransfer_scheduledAt_DESC', - ScheduledTransferScheduledAtDescNullsFirst = 'scheduledTransfer_scheduledAt_DESC_NULLS_FIRST', - ScheduledTransferScheduledAtDescNullsLast = 'scheduledTransfer_scheduledAt_DESC_NULLS_LAST', - ScheduledTransferTimestampAsc = 'scheduledTransfer_timestamp_ASC', - ScheduledTransferTimestampAscNullsFirst = 'scheduledTransfer_timestamp_ASC_NULLS_FIRST', - ScheduledTransferTimestampAscNullsLast = 'scheduledTransfer_timestamp_ASC_NULLS_LAST', - ScheduledTransferTimestampDesc = 'scheduledTransfer_timestamp_DESC', - ScheduledTransferTimestampDescNullsFirst = 'scheduledTransfer_timestamp_DESC_NULLS_FIRST', - ScheduledTransferTimestampDescNullsLast = 'scheduledTransfer_timestamp_DESC_NULLS_LAST', - ScheduledTransferTxIdAsc = 'scheduledTransfer_txId_ASC', - ScheduledTransferTxIdAscNullsFirst = 'scheduledTransfer_txId_ASC_NULLS_FIRST', - ScheduledTransferTxIdAscNullsLast = 'scheduledTransfer_txId_ASC_NULLS_LAST', - ScheduledTransferTxIdDesc = 'scheduledTransfer_txId_DESC', - ScheduledTransferTxIdDescNullsFirst = 'scheduledTransfer_txId_DESC_NULLS_FIRST', - ScheduledTransferTxIdDescNullsLast = 'scheduledTransfer_txId_DESC_NULLS_LAST', - TimestampAsc = 'timestamp_ASC', - TimestampAscNullsFirst = 'timestamp_ASC_NULLS_FIRST', - TimestampAscNullsLast = 'timestamp_ASC_NULLS_LAST', - TimestampDesc = 'timestamp_DESC', - TimestampDescNullsFirst = 'timestamp_DESC_NULLS_FIRST', - TimestampDescNullsLast = 'timestamp_DESC_NULLS_LAST', - TxIdAsc = 'txId_ASC', - TxIdAscNullsFirst = 'txId_ASC_NULLS_FIRST', - TxIdAscNullsLast = 'txId_ASC_NULLS_LAST', - TxIdDesc = 'txId_DESC', - TxIdDescNullsFirst = 'txId_DESC_NULLS_FIRST', - TxIdDescNullsLast = 'txId_DESC_NULLS_LAST' + /** An object relationship */ + scheduledTransfer?: Maybe; + scheduled_transfer_id?: Maybe; + timestamp: Scalars['timestamptz']['output']; + tx_id: Scalars['String']['output']; +}; + +/** aggregated selection of "executed_reversible_transfer" */ +export type Executed_Reversible_Transfer_Aggregate = { + __typename?: 'executed_reversible_transfer_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "executed_reversible_transfer" */ +export type Executed_Reversible_Transfer_Aggregate_Fields = { + __typename?: 'executed_reversible_transfer_aggregate_fields'; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; +}; + +/** aggregate fields of "executed_reversible_transfer" */ +export type Executed_Reversible_Transfer_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** Boolean expression to filter rows from the table "executed_reversible_transfer". All fields are combined with a logical 'AND'. */ +export type Executed_Reversible_Transfer_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + block?: InputMaybe; + block_id?: InputMaybe; + event?: InputMaybe; + executedTransfer?: InputMaybe; + executed_transfer_id?: InputMaybe; + id?: InputMaybe; + scheduledTransfer?: InputMaybe; + scheduled_transfer_id?: InputMaybe; + timestamp?: InputMaybe; + tx_id?: InputMaybe; +}; + +/** aggregate max on columns */ +export type Executed_Reversible_Transfer_Max_Fields = { + __typename?: 'executed_reversible_transfer_max_fields'; + block_id?: Maybe; + executed_transfer_id?: Maybe; + id?: Maybe; + scheduled_transfer_id?: Maybe; + timestamp?: Maybe; + tx_id?: Maybe; +}; + +/** aggregate min on columns */ +export type Executed_Reversible_Transfer_Min_Fields = { + __typename?: 'executed_reversible_transfer_min_fields'; + block_id?: Maybe; + executed_transfer_id?: Maybe; + id?: Maybe; + scheduled_transfer_id?: Maybe; + timestamp?: Maybe; + tx_id?: Maybe; +}; + +/** Ordering options when selecting data from "executed_reversible_transfer". */ +export type Executed_Reversible_Transfer_Order_By = { + block?: InputMaybe; + block_id?: InputMaybe; + event?: InputMaybe; + executedTransfer?: InputMaybe; + executed_transfer_id?: InputMaybe; + id?: InputMaybe; + scheduledTransfer?: InputMaybe; + scheduled_transfer_id?: InputMaybe; + timestamp?: InputMaybe; + tx_id?: InputMaybe; +}; + +/** select columns of table "executed_reversible_transfer" */ +export enum Executed_Reversible_Transfer_Select_Column { + /** column name */ + BlockId = 'block_id', + /** column name */ + ExecutedTransferId = 'executed_transfer_id', + /** column name */ + Id = 'id', + /** column name */ + ScheduledTransferId = 'scheduled_transfer_id', + /** column name */ + Timestamp = 'timestamp', + /** column name */ + TxId = 'tx_id' } -export type ExecutedReversibleTransferWhereInput = { - AND?: InputMaybe>; - OR?: InputMaybe>; - block?: InputMaybe; - block_isNull?: InputMaybe; - event?: InputMaybe; - event_isNull?: InputMaybe; - executedTransfer?: InputMaybe; - executedTransfer_isNull?: InputMaybe; - id_contains?: InputMaybe; - id_containsInsensitive?: InputMaybe; - id_endsWith?: InputMaybe; - id_eq?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_isNull?: InputMaybe; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not_contains?: InputMaybe; - id_not_containsInsensitive?: InputMaybe; - id_not_endsWith?: InputMaybe; - id_not_eq?: InputMaybe; - id_not_in?: InputMaybe>; - id_not_startsWith?: InputMaybe; - id_startsWith?: InputMaybe; - scheduledTransfer?: InputMaybe; - scheduledTransfer_isNull?: InputMaybe; - timestamp_eq?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_isNull?: InputMaybe; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not_eq?: InputMaybe; - timestamp_not_in?: InputMaybe>; - txId_contains?: InputMaybe; - txId_containsInsensitive?: InputMaybe; - txId_endsWith?: InputMaybe; - txId_eq?: InputMaybe; - txId_gt?: InputMaybe; - txId_gte?: InputMaybe; - txId_in?: InputMaybe>; - txId_isNull?: InputMaybe; - txId_lt?: InputMaybe; - txId_lte?: InputMaybe; - txId_not_contains?: InputMaybe; - txId_not_containsInsensitive?: InputMaybe; - txId_not_endsWith?: InputMaybe; - txId_not_eq?: InputMaybe; - txId_not_in?: InputMaybe>; - txId_not_startsWith?: InputMaybe; - txId_startsWith?: InputMaybe; -}; - -export type ExecutedReversibleTransfersConnection = { - __typename?: 'ExecutedReversibleTransfersConnection'; - edges: Array; - pageInfo: PageInfo; - totalCount: Scalars['Int']['output']; -}; - -/** An extrinsic (transaction) submitted to the chain */ +/** Streaming cursor of the table "executed_reversible_transfer" */ +export type Executed_Reversible_Transfer_Stream_Cursor_Input = { + /** Stream column input with initial value */ + initial_value: Executed_Reversible_Transfer_Stream_Cursor_Value_Input; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type Executed_Reversible_Transfer_Stream_Cursor_Value_Input = { + block_id?: InputMaybe; + executed_transfer_id?: InputMaybe; + id?: InputMaybe; + scheduled_transfer_id?: InputMaybe; + timestamp?: InputMaybe; + tx_id?: InputMaybe; +}; + +/** columns and relationships of "extrinsic" */ export type Extrinsic = { - __typename?: 'Extrinsic'; - /** Decoded call arguments as JSON */ + __typename?: 'extrinsic'; args: Scalars['String']['output']; - block: Block; - /** Call name (e.g., 'transfer', 'transfer_keep_alive') */ + /** An object relationship */ + block?: Maybe; + block_id?: Maybe; call: Scalars['String']['output']; - /** Events emitted by this extrinsic */ + /** An array relationship */ events: Array; - /** Transaction fee paid */ - fee: Scalars['BigInt']['output']; - /** Extrinsic hash */ + /** An aggregate relationship */ + events_aggregate: Event_Aggregate; + fee: Scalars['numeric']['output']; id: Scalars['String']['output']; - /** Index of the extrinsic within the block */ - indexInBlock: Scalars['Int']['output']; - /** Pallet name (e.g., 'Balances', 'ReversibleTransfers') */ + index_in_block: Scalars['Int']['output']; pallet: Scalars['String']['output']; - /** Account that signed and submitted the extrinsic (null for unsigned extrinsics like wormhole proofs) */ + /** An object relationship */ signer?: Maybe; - /** Whether the extrinsic succeeded */ + signer_id?: Maybe; success: Scalars['Boolean']['output']; - timestamp: Scalars['DateTime']['output']; + timestamp: Scalars['timestamptz']['output']; }; -/** An extrinsic (transaction) submitted to the chain */ +/** columns and relationships of "extrinsic" */ export type ExtrinsicEventsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + +/** columns and relationships of "extrinsic" */ +export type ExtrinsicEvents_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - orderBy?: InputMaybe>; - where?: InputMaybe; -}; - -export type ExtrinsicEdge = { - __typename?: 'ExtrinsicEdge'; - cursor: Scalars['String']['output']; - node: Extrinsic; -}; - -export enum ExtrinsicOrderByInput { - ArgsAsc = 'args_ASC', - ArgsAscNullsFirst = 'args_ASC_NULLS_FIRST', - ArgsAscNullsLast = 'args_ASC_NULLS_LAST', - ArgsDesc = 'args_DESC', - ArgsDescNullsFirst = 'args_DESC_NULLS_FIRST', - ArgsDescNullsLast = 'args_DESC_NULLS_LAST', - BlockHashAsc = 'block_hash_ASC', - BlockHashAscNullsFirst = 'block_hash_ASC_NULLS_FIRST', - BlockHashAscNullsLast = 'block_hash_ASC_NULLS_LAST', - BlockHashDesc = 'block_hash_DESC', - BlockHashDescNullsFirst = 'block_hash_DESC_NULLS_FIRST', - BlockHashDescNullsLast = 'block_hash_DESC_NULLS_LAST', - BlockHeightAsc = 'block_height_ASC', - BlockHeightAscNullsFirst = 'block_height_ASC_NULLS_FIRST', - BlockHeightAscNullsLast = 'block_height_ASC_NULLS_LAST', - BlockHeightDesc = 'block_height_DESC', - BlockHeightDescNullsFirst = 'block_height_DESC_NULLS_FIRST', - BlockHeightDescNullsLast = 'block_height_DESC_NULLS_LAST', - BlockIdAsc = 'block_id_ASC', - BlockIdAscNullsFirst = 'block_id_ASC_NULLS_FIRST', - BlockIdAscNullsLast = 'block_id_ASC_NULLS_LAST', - BlockIdDesc = 'block_id_DESC', - BlockIdDescNullsFirst = 'block_id_DESC_NULLS_FIRST', - BlockIdDescNullsLast = 'block_id_DESC_NULLS_LAST', - BlockRewardAsc = 'block_reward_ASC', - BlockRewardAscNullsFirst = 'block_reward_ASC_NULLS_FIRST', - BlockRewardAscNullsLast = 'block_reward_ASC_NULLS_LAST', - BlockRewardDesc = 'block_reward_DESC', - BlockRewardDescNullsFirst = 'block_reward_DESC_NULLS_FIRST', - BlockRewardDescNullsLast = 'block_reward_DESC_NULLS_LAST', - BlockTimestampAsc = 'block_timestamp_ASC', - BlockTimestampAscNullsFirst = 'block_timestamp_ASC_NULLS_FIRST', - BlockTimestampAscNullsLast = 'block_timestamp_ASC_NULLS_LAST', - BlockTimestampDesc = 'block_timestamp_DESC', - BlockTimestampDescNullsFirst = 'block_timestamp_DESC_NULLS_FIRST', - BlockTimestampDescNullsLast = 'block_timestamp_DESC_NULLS_LAST', - CallAsc = 'call_ASC', - CallAscNullsFirst = 'call_ASC_NULLS_FIRST', - CallAscNullsLast = 'call_ASC_NULLS_LAST', - CallDesc = 'call_DESC', - CallDescNullsFirst = 'call_DESC_NULLS_FIRST', - CallDescNullsLast = 'call_DESC_NULLS_LAST', - FeeAsc = 'fee_ASC', - FeeAscNullsFirst = 'fee_ASC_NULLS_FIRST', - FeeAscNullsLast = 'fee_ASC_NULLS_LAST', - FeeDesc = 'fee_DESC', - FeeDescNullsFirst = 'fee_DESC_NULLS_FIRST', - FeeDescNullsLast = 'fee_DESC_NULLS_LAST', - IdAsc = 'id_ASC', - IdAscNullsFirst = 'id_ASC_NULLS_FIRST', - IdAscNullsLast = 'id_ASC_NULLS_LAST', - IdDesc = 'id_DESC', - IdDescNullsFirst = 'id_DESC_NULLS_FIRST', - IdDescNullsLast = 'id_DESC_NULLS_LAST', - IndexInBlockAsc = 'indexInBlock_ASC', - IndexInBlockAscNullsFirst = 'indexInBlock_ASC_NULLS_FIRST', - IndexInBlockAscNullsLast = 'indexInBlock_ASC_NULLS_LAST', - IndexInBlockDesc = 'indexInBlock_DESC', - IndexInBlockDescNullsFirst = 'indexInBlock_DESC_NULLS_FIRST', - IndexInBlockDescNullsLast = 'indexInBlock_DESC_NULLS_LAST', - PalletAsc = 'pallet_ASC', - PalletAscNullsFirst = 'pallet_ASC_NULLS_FIRST', - PalletAscNullsLast = 'pallet_ASC_NULLS_LAST', - PalletDesc = 'pallet_DESC', - PalletDescNullsFirst = 'pallet_DESC_NULLS_FIRST', - PalletDescNullsLast = 'pallet_DESC_NULLS_LAST', - SignerFreeAsc = 'signer_free_ASC', - SignerFreeAscNullsFirst = 'signer_free_ASC_NULLS_FIRST', - SignerFreeAscNullsLast = 'signer_free_ASC_NULLS_LAST', - SignerFreeDesc = 'signer_free_DESC', - SignerFreeDescNullsFirst = 'signer_free_DESC_NULLS_FIRST', - SignerFreeDescNullsLast = 'signer_free_DESC_NULLS_LAST', - SignerFrozenAsc = 'signer_frozen_ASC', - SignerFrozenAscNullsFirst = 'signer_frozen_ASC_NULLS_FIRST', - SignerFrozenAscNullsLast = 'signer_frozen_ASC_NULLS_LAST', - SignerFrozenDesc = 'signer_frozen_DESC', - SignerFrozenDescNullsFirst = 'signer_frozen_DESC_NULLS_FIRST', - SignerFrozenDescNullsLast = 'signer_frozen_DESC_NULLS_LAST', - SignerIdAsc = 'signer_id_ASC', - SignerIdAscNullsFirst = 'signer_id_ASC_NULLS_FIRST', - SignerIdAscNullsLast = 'signer_id_ASC_NULLS_LAST', - SignerIdDesc = 'signer_id_DESC', - SignerIdDescNullsFirst = 'signer_id_DESC_NULLS_FIRST', - SignerIdDescNullsLast = 'signer_id_DESC_NULLS_LAST', - SignerIsDepositOnlyAsc = 'signer_isDepositOnly_ASC', - SignerIsDepositOnlyAscNullsFirst = 'signer_isDepositOnly_ASC_NULLS_FIRST', - SignerIsDepositOnlyAscNullsLast = 'signer_isDepositOnly_ASC_NULLS_LAST', - SignerIsDepositOnlyDesc = 'signer_isDepositOnly_DESC', - SignerIsDepositOnlyDescNullsFirst = 'signer_isDepositOnly_DESC_NULLS_FIRST', - SignerIsDepositOnlyDescNullsLast = 'signer_isDepositOnly_DESC_NULLS_LAST', - SignerLastUpdatedAsc = 'signer_lastUpdated_ASC', - SignerLastUpdatedAscNullsFirst = 'signer_lastUpdated_ASC_NULLS_FIRST', - SignerLastUpdatedAscNullsLast = 'signer_lastUpdated_ASC_NULLS_LAST', - SignerLastUpdatedDesc = 'signer_lastUpdated_DESC', - SignerLastUpdatedDescNullsFirst = 'signer_lastUpdated_DESC_NULLS_FIRST', - SignerLastUpdatedDescNullsLast = 'signer_lastUpdated_DESC_NULLS_LAST', - SignerPrivacyDepositsAsc = 'signer_privacyDeposits_ASC', - SignerPrivacyDepositsAscNullsFirst = 'signer_privacyDeposits_ASC_NULLS_FIRST', - SignerPrivacyDepositsAscNullsLast = 'signer_privacyDeposits_ASC_NULLS_LAST', - SignerPrivacyDepositsDesc = 'signer_privacyDeposits_DESC', - SignerPrivacyDepositsDescNullsFirst = 'signer_privacyDeposits_DESC_NULLS_FIRST', - SignerPrivacyDepositsDescNullsLast = 'signer_privacyDeposits_DESC_NULLS_LAST', - SignerReservedAsc = 'signer_reserved_ASC', - SignerReservedAscNullsFirst = 'signer_reserved_ASC_NULLS_FIRST', - SignerReservedAscNullsLast = 'signer_reserved_ASC_NULLS_LAST', - SignerReservedDesc = 'signer_reserved_DESC', - SignerReservedDescNullsFirst = 'signer_reserved_DESC_NULLS_FIRST', - SignerReservedDescNullsLast = 'signer_reserved_DESC_NULLS_LAST', - SuccessAsc = 'success_ASC', - SuccessAscNullsFirst = 'success_ASC_NULLS_FIRST', - SuccessAscNullsLast = 'success_ASC_NULLS_LAST', - SuccessDesc = 'success_DESC', - SuccessDescNullsFirst = 'success_DESC_NULLS_FIRST', - SuccessDescNullsLast = 'success_DESC_NULLS_LAST', - TimestampAsc = 'timestamp_ASC', - TimestampAscNullsFirst = 'timestamp_ASC_NULLS_FIRST', - TimestampAscNullsLast = 'timestamp_ASC_NULLS_LAST', - TimestampDesc = 'timestamp_DESC', - TimestampDescNullsFirst = 'timestamp_DESC_NULLS_FIRST', - TimestampDescNullsLast = 'timestamp_DESC_NULLS_LAST' + order_by?: InputMaybe>; + where?: InputMaybe; +}; + +/** aggregated selection of "extrinsic" */ +export type Extrinsic_Aggregate = { + __typename?: 'extrinsic_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +export type Extrinsic_Aggregate_Bool_Exp = { + bool_and?: InputMaybe; + bool_or?: InputMaybe; + count?: InputMaybe; +}; + +export type Extrinsic_Aggregate_Bool_Exp_Bool_And = { + arguments: Extrinsic_Select_Column_Extrinsic_Aggregate_Bool_Exp_Bool_And_Arguments_Columns; + distinct?: InputMaybe; + filter?: InputMaybe; + predicate: Boolean_Comparison_Exp; +}; + +export type Extrinsic_Aggregate_Bool_Exp_Bool_Or = { + arguments: Extrinsic_Select_Column_Extrinsic_Aggregate_Bool_Exp_Bool_Or_Arguments_Columns; + distinct?: InputMaybe; + filter?: InputMaybe; + predicate: Boolean_Comparison_Exp; +}; + +export type Extrinsic_Aggregate_Bool_Exp_Count = { + arguments?: InputMaybe>; + distinct?: InputMaybe; + filter?: InputMaybe; + predicate: Int_Comparison_Exp; +}; + +/** aggregate fields of "extrinsic" */ +export type Extrinsic_Aggregate_Fields = { + __typename?: 'extrinsic_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + +/** aggregate fields of "extrinsic" */ +export type Extrinsic_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** order by aggregate values of table "extrinsic" */ +export type Extrinsic_Aggregate_Order_By = { + avg?: InputMaybe; + count?: InputMaybe; + max?: InputMaybe; + min?: InputMaybe; + stddev?: InputMaybe; + stddev_pop?: InputMaybe; + stddev_samp?: InputMaybe; + sum?: InputMaybe; + var_pop?: InputMaybe; + var_samp?: InputMaybe; + variance?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type Extrinsic_Avg_Fields = { + __typename?: 'extrinsic_avg_fields'; + fee?: Maybe; + index_in_block?: Maybe; +}; + +/** order by avg() on columns of table "extrinsic" */ +export type Extrinsic_Avg_Order_By = { + fee?: InputMaybe; + index_in_block?: InputMaybe; +}; + +/** Boolean expression to filter rows from the table "extrinsic". All fields are combined with a logical 'AND'. */ +export type Extrinsic_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + args?: InputMaybe; + block?: InputMaybe; + block_id?: InputMaybe; + call?: InputMaybe; + events?: InputMaybe; + events_aggregate?: InputMaybe; + fee?: InputMaybe; + id?: InputMaybe; + index_in_block?: InputMaybe; + pallet?: InputMaybe; + signer?: InputMaybe; + signer_id?: InputMaybe; + success?: InputMaybe; + timestamp?: InputMaybe; +}; + +/** aggregate max on columns */ +export type Extrinsic_Max_Fields = { + __typename?: 'extrinsic_max_fields'; + args?: Maybe; + block_id?: Maybe; + call?: Maybe; + fee?: Maybe; + id?: Maybe; + index_in_block?: Maybe; + pallet?: Maybe; + signer_id?: Maybe; + timestamp?: Maybe; +}; + +/** order by max() on columns of table "extrinsic" */ +export type Extrinsic_Max_Order_By = { + args?: InputMaybe; + block_id?: InputMaybe; + call?: InputMaybe; + fee?: InputMaybe; + id?: InputMaybe; + index_in_block?: InputMaybe; + pallet?: InputMaybe; + signer_id?: InputMaybe; + timestamp?: InputMaybe; +}; + +/** aggregate min on columns */ +export type Extrinsic_Min_Fields = { + __typename?: 'extrinsic_min_fields'; + args?: Maybe; + block_id?: Maybe; + call?: Maybe; + fee?: Maybe; + id?: Maybe; + index_in_block?: Maybe; + pallet?: Maybe; + signer_id?: Maybe; + timestamp?: Maybe; +}; + +/** order by min() on columns of table "extrinsic" */ +export type Extrinsic_Min_Order_By = { + args?: InputMaybe; + block_id?: InputMaybe; + call?: InputMaybe; + fee?: InputMaybe; + id?: InputMaybe; + index_in_block?: InputMaybe; + pallet?: InputMaybe; + signer_id?: InputMaybe; + timestamp?: InputMaybe; +}; + +/** Ordering options when selecting data from "extrinsic". */ +export type Extrinsic_Order_By = { + args?: InputMaybe; + block?: InputMaybe; + block_id?: InputMaybe; + call?: InputMaybe; + events_aggregate?: InputMaybe; + fee?: InputMaybe; + id?: InputMaybe; + index_in_block?: InputMaybe; + pallet?: InputMaybe; + signer?: InputMaybe; + signer_id?: InputMaybe; + success?: InputMaybe; + timestamp?: InputMaybe; +}; + +/** select columns of table "extrinsic" */ +export enum Extrinsic_Select_Column { + /** column name */ + Args = 'args', + /** column name */ + BlockId = 'block_id', + /** column name */ + Call = 'call', + /** column name */ + Fee = 'fee', + /** column name */ + Id = 'id', + /** column name */ + IndexInBlock = 'index_in_block', + /** column name */ + Pallet = 'pallet', + /** column name */ + SignerId = 'signer_id', + /** column name */ + Success = 'success', + /** column name */ + Timestamp = 'timestamp' +} + +/** select "extrinsic_aggregate_bool_exp_bool_and_arguments_columns" columns of table "extrinsic" */ +export enum Extrinsic_Select_Column_Extrinsic_Aggregate_Bool_Exp_Bool_And_Arguments_Columns { + /** column name */ + Success = 'success' } -export type ExtrinsicWhereInput = { - AND?: InputMaybe>; - OR?: InputMaybe>; - args_contains?: InputMaybe; - args_containsInsensitive?: InputMaybe; - args_endsWith?: InputMaybe; - args_eq?: InputMaybe; - args_gt?: InputMaybe; - args_gte?: InputMaybe; - args_in?: InputMaybe>; - args_isNull?: InputMaybe; - args_lt?: InputMaybe; - args_lte?: InputMaybe; - args_not_contains?: InputMaybe; - args_not_containsInsensitive?: InputMaybe; - args_not_endsWith?: InputMaybe; - args_not_eq?: InputMaybe; - args_not_in?: InputMaybe>; - args_not_startsWith?: InputMaybe; - args_startsWith?: InputMaybe; - block?: InputMaybe; - block_isNull?: InputMaybe; - call_contains?: InputMaybe; - call_containsInsensitive?: InputMaybe; - call_endsWith?: InputMaybe; - call_eq?: InputMaybe; - call_gt?: InputMaybe; - call_gte?: InputMaybe; - call_in?: InputMaybe>; - call_isNull?: InputMaybe; - call_lt?: InputMaybe; - call_lte?: InputMaybe; - call_not_contains?: InputMaybe; - call_not_containsInsensitive?: InputMaybe; - call_not_endsWith?: InputMaybe; - call_not_eq?: InputMaybe; - call_not_in?: InputMaybe>; - call_not_startsWith?: InputMaybe; - call_startsWith?: InputMaybe; - events_every?: InputMaybe; - events_none?: InputMaybe; - events_some?: InputMaybe; - fee_eq?: InputMaybe; - fee_gt?: InputMaybe; - fee_gte?: InputMaybe; - fee_in?: InputMaybe>; - fee_isNull?: InputMaybe; - fee_lt?: InputMaybe; - fee_lte?: InputMaybe; - fee_not_eq?: InputMaybe; - fee_not_in?: InputMaybe>; - id_contains?: InputMaybe; - id_containsInsensitive?: InputMaybe; - id_endsWith?: InputMaybe; - id_eq?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_isNull?: InputMaybe; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not_contains?: InputMaybe; - id_not_containsInsensitive?: InputMaybe; - id_not_endsWith?: InputMaybe; - id_not_eq?: InputMaybe; - id_not_in?: InputMaybe>; - id_not_startsWith?: InputMaybe; - id_startsWith?: InputMaybe; - indexInBlock_eq?: InputMaybe; - indexInBlock_gt?: InputMaybe; - indexInBlock_gte?: InputMaybe; - indexInBlock_in?: InputMaybe>; - indexInBlock_isNull?: InputMaybe; - indexInBlock_lt?: InputMaybe; - indexInBlock_lte?: InputMaybe; - indexInBlock_not_eq?: InputMaybe; - indexInBlock_not_in?: InputMaybe>; - pallet_contains?: InputMaybe; - pallet_containsInsensitive?: InputMaybe; - pallet_endsWith?: InputMaybe; - pallet_eq?: InputMaybe; - pallet_gt?: InputMaybe; - pallet_gte?: InputMaybe; - pallet_in?: InputMaybe>; - pallet_isNull?: InputMaybe; - pallet_lt?: InputMaybe; - pallet_lte?: InputMaybe; - pallet_not_contains?: InputMaybe; - pallet_not_containsInsensitive?: InputMaybe; - pallet_not_endsWith?: InputMaybe; - pallet_not_eq?: InputMaybe; - pallet_not_in?: InputMaybe>; - pallet_not_startsWith?: InputMaybe; - pallet_startsWith?: InputMaybe; - signer?: InputMaybe; - signer_isNull?: InputMaybe; - success_eq?: InputMaybe; - success_isNull?: InputMaybe; - success_not_eq?: InputMaybe; - timestamp_eq?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_isNull?: InputMaybe; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not_eq?: InputMaybe; - timestamp_not_in?: InputMaybe>; -}; - -export type ExtrinsicsConnection = { - __typename?: 'ExtrinsicsConnection'; - edges: Array; - pageInfo: PageInfo; - totalCount: Scalars['Int']['output']; -}; - -export type HighSecuritySet = { - __typename?: 'HighSecuritySet'; - block: Block; - delay: Scalars['BigInt']['output']; +/** select "extrinsic_aggregate_bool_exp_bool_or_arguments_columns" columns of table "extrinsic" */ +export enum Extrinsic_Select_Column_Extrinsic_Aggregate_Bool_Exp_Bool_Or_Arguments_Columns { + /** column name */ + Success = 'success' +} + +/** aggregate stddev on columns */ +export type Extrinsic_Stddev_Fields = { + __typename?: 'extrinsic_stddev_fields'; + fee?: Maybe; + index_in_block?: Maybe; +}; + +/** order by stddev() on columns of table "extrinsic" */ +export type Extrinsic_Stddev_Order_By = { + fee?: InputMaybe; + index_in_block?: InputMaybe; +}; + +/** aggregate stddev_pop on columns */ +export type Extrinsic_Stddev_Pop_Fields = { + __typename?: 'extrinsic_stddev_pop_fields'; + fee?: Maybe; + index_in_block?: Maybe; +}; + +/** order by stddev_pop() on columns of table "extrinsic" */ +export type Extrinsic_Stddev_Pop_Order_By = { + fee?: InputMaybe; + index_in_block?: InputMaybe; +}; + +/** aggregate stddev_samp on columns */ +export type Extrinsic_Stddev_Samp_Fields = { + __typename?: 'extrinsic_stddev_samp_fields'; + fee?: Maybe; + index_in_block?: Maybe; +}; + +/** order by stddev_samp() on columns of table "extrinsic" */ +export type Extrinsic_Stddev_Samp_Order_By = { + fee?: InputMaybe; + index_in_block?: InputMaybe; +}; + +/** Streaming cursor of the table "extrinsic" */ +export type Extrinsic_Stream_Cursor_Input = { + /** Stream column input with initial value */ + initial_value: Extrinsic_Stream_Cursor_Value_Input; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type Extrinsic_Stream_Cursor_Value_Input = { + args?: InputMaybe; + block_id?: InputMaybe; + call?: InputMaybe; + fee?: InputMaybe; + id?: InputMaybe; + index_in_block?: InputMaybe; + pallet?: InputMaybe; + signer_id?: InputMaybe; + success?: InputMaybe; + timestamp?: InputMaybe; +}; + +/** aggregate sum on columns */ +export type Extrinsic_Sum_Fields = { + __typename?: 'extrinsic_sum_fields'; + fee?: Maybe; + index_in_block?: Maybe; +}; + +/** order by sum() on columns of table "extrinsic" */ +export type Extrinsic_Sum_Order_By = { + fee?: InputMaybe; + index_in_block?: InputMaybe; +}; + +/** aggregate var_pop on columns */ +export type Extrinsic_Var_Pop_Fields = { + __typename?: 'extrinsic_var_pop_fields'; + fee?: Maybe; + index_in_block?: Maybe; +}; + +/** order by var_pop() on columns of table "extrinsic" */ +export type Extrinsic_Var_Pop_Order_By = { + fee?: InputMaybe; + index_in_block?: InputMaybe; +}; + +/** aggregate var_samp on columns */ +export type Extrinsic_Var_Samp_Fields = { + __typename?: 'extrinsic_var_samp_fields'; + fee?: Maybe; + index_in_block?: Maybe; +}; + +/** order by var_samp() on columns of table "extrinsic" */ +export type Extrinsic_Var_Samp_Order_By = { + fee?: InputMaybe; + index_in_block?: InputMaybe; +}; + +/** aggregate variance on columns */ +export type Extrinsic_Variance_Fields = { + __typename?: 'extrinsic_variance_fields'; + fee?: Maybe; + index_in_block?: Maybe; +}; + +/** order by variance() on columns of table "extrinsic" */ +export type Extrinsic_Variance_Order_By = { + fee?: InputMaybe; + index_in_block?: InputMaybe; +}; + +/** columns and relationships of "high_security_set" */ +export type High_Security_Set = { + __typename?: 'high_security_set'; + /** An object relationship */ + block?: Maybe; + block_id?: Maybe; + delay: Scalars['numeric']['output']; + /** An object relationship */ event?: Maybe; - /** Link to the extrinsic that set high security */ + /** An object relationship */ extrinsic?: Maybe; + extrinsic_id?: Maybe; id: Scalars['String']['output']; - interceptor: Account; - timestamp: Scalars['DateTime']['output']; - who: Account; -}; - -export type HighSecuritySetEdge = { - __typename?: 'HighSecuritySetEdge'; - cursor: Scalars['String']['output']; - node: HighSecuritySet; -}; - -export enum HighSecuritySetOrderByInput { - BlockHashAsc = 'block_hash_ASC', - BlockHashAscNullsFirst = 'block_hash_ASC_NULLS_FIRST', - BlockHashAscNullsLast = 'block_hash_ASC_NULLS_LAST', - BlockHashDesc = 'block_hash_DESC', - BlockHashDescNullsFirst = 'block_hash_DESC_NULLS_FIRST', - BlockHashDescNullsLast = 'block_hash_DESC_NULLS_LAST', - BlockHeightAsc = 'block_height_ASC', - BlockHeightAscNullsFirst = 'block_height_ASC_NULLS_FIRST', - BlockHeightAscNullsLast = 'block_height_ASC_NULLS_LAST', - BlockHeightDesc = 'block_height_DESC', - BlockHeightDescNullsFirst = 'block_height_DESC_NULLS_FIRST', - BlockHeightDescNullsLast = 'block_height_DESC_NULLS_LAST', - BlockIdAsc = 'block_id_ASC', - BlockIdAscNullsFirst = 'block_id_ASC_NULLS_FIRST', - BlockIdAscNullsLast = 'block_id_ASC_NULLS_LAST', - BlockIdDesc = 'block_id_DESC', - BlockIdDescNullsFirst = 'block_id_DESC_NULLS_FIRST', - BlockIdDescNullsLast = 'block_id_DESC_NULLS_LAST', - BlockRewardAsc = 'block_reward_ASC', - BlockRewardAscNullsFirst = 'block_reward_ASC_NULLS_FIRST', - BlockRewardAscNullsLast = 'block_reward_ASC_NULLS_LAST', - BlockRewardDesc = 'block_reward_DESC', - BlockRewardDescNullsFirst = 'block_reward_DESC_NULLS_FIRST', - BlockRewardDescNullsLast = 'block_reward_DESC_NULLS_LAST', - BlockTimestampAsc = 'block_timestamp_ASC', - BlockTimestampAscNullsFirst = 'block_timestamp_ASC_NULLS_FIRST', - BlockTimestampAscNullsLast = 'block_timestamp_ASC_NULLS_LAST', - BlockTimestampDesc = 'block_timestamp_DESC', - BlockTimestampDescNullsFirst = 'block_timestamp_DESC_NULLS_FIRST', - BlockTimestampDescNullsLast = 'block_timestamp_DESC_NULLS_LAST', - DelayAsc = 'delay_ASC', - DelayAscNullsFirst = 'delay_ASC_NULLS_FIRST', - DelayAscNullsLast = 'delay_ASC_NULLS_LAST', - DelayDesc = 'delay_DESC', - DelayDescNullsFirst = 'delay_DESC_NULLS_FIRST', - DelayDescNullsLast = 'delay_DESC_NULLS_LAST', - EventIdAsc = 'event_id_ASC', - EventIdAscNullsFirst = 'event_id_ASC_NULLS_FIRST', - EventIdAscNullsLast = 'event_id_ASC_NULLS_LAST', - EventIdDesc = 'event_id_DESC', - EventIdDescNullsFirst = 'event_id_DESC_NULLS_FIRST', - EventIdDescNullsLast = 'event_id_DESC_NULLS_LAST', - EventTimestampAsc = 'event_timestamp_ASC', - EventTimestampAscNullsFirst = 'event_timestamp_ASC_NULLS_FIRST', - EventTimestampAscNullsLast = 'event_timestamp_ASC_NULLS_LAST', - EventTimestampDesc = 'event_timestamp_DESC', - EventTimestampDescNullsFirst = 'event_timestamp_DESC_NULLS_FIRST', - EventTimestampDescNullsLast = 'event_timestamp_DESC_NULLS_LAST', - EventTypeAsc = 'event_type_ASC', - EventTypeAscNullsFirst = 'event_type_ASC_NULLS_FIRST', - EventTypeAscNullsLast = 'event_type_ASC_NULLS_LAST', - EventTypeDesc = 'event_type_DESC', - EventTypeDescNullsFirst = 'event_type_DESC_NULLS_FIRST', - EventTypeDescNullsLast = 'event_type_DESC_NULLS_LAST', - ExtrinsicArgsAsc = 'extrinsic_args_ASC', - ExtrinsicArgsAscNullsFirst = 'extrinsic_args_ASC_NULLS_FIRST', - ExtrinsicArgsAscNullsLast = 'extrinsic_args_ASC_NULLS_LAST', - ExtrinsicArgsDesc = 'extrinsic_args_DESC', - ExtrinsicArgsDescNullsFirst = 'extrinsic_args_DESC_NULLS_FIRST', - ExtrinsicArgsDescNullsLast = 'extrinsic_args_DESC_NULLS_LAST', - ExtrinsicCallAsc = 'extrinsic_call_ASC', - ExtrinsicCallAscNullsFirst = 'extrinsic_call_ASC_NULLS_FIRST', - ExtrinsicCallAscNullsLast = 'extrinsic_call_ASC_NULLS_LAST', - ExtrinsicCallDesc = 'extrinsic_call_DESC', - ExtrinsicCallDescNullsFirst = 'extrinsic_call_DESC_NULLS_FIRST', - ExtrinsicCallDescNullsLast = 'extrinsic_call_DESC_NULLS_LAST', - ExtrinsicFeeAsc = 'extrinsic_fee_ASC', - ExtrinsicFeeAscNullsFirst = 'extrinsic_fee_ASC_NULLS_FIRST', - ExtrinsicFeeAscNullsLast = 'extrinsic_fee_ASC_NULLS_LAST', - ExtrinsicFeeDesc = 'extrinsic_fee_DESC', - ExtrinsicFeeDescNullsFirst = 'extrinsic_fee_DESC_NULLS_FIRST', - ExtrinsicFeeDescNullsLast = 'extrinsic_fee_DESC_NULLS_LAST', - ExtrinsicIdAsc = 'extrinsic_id_ASC', - ExtrinsicIdAscNullsFirst = 'extrinsic_id_ASC_NULLS_FIRST', - ExtrinsicIdAscNullsLast = 'extrinsic_id_ASC_NULLS_LAST', - ExtrinsicIdDesc = 'extrinsic_id_DESC', - ExtrinsicIdDescNullsFirst = 'extrinsic_id_DESC_NULLS_FIRST', - ExtrinsicIdDescNullsLast = 'extrinsic_id_DESC_NULLS_LAST', - ExtrinsicIndexInBlockAsc = 'extrinsic_indexInBlock_ASC', - ExtrinsicIndexInBlockAscNullsFirst = 'extrinsic_indexInBlock_ASC_NULLS_FIRST', - ExtrinsicIndexInBlockAscNullsLast = 'extrinsic_indexInBlock_ASC_NULLS_LAST', - ExtrinsicIndexInBlockDesc = 'extrinsic_indexInBlock_DESC', - ExtrinsicIndexInBlockDescNullsFirst = 'extrinsic_indexInBlock_DESC_NULLS_FIRST', - ExtrinsicIndexInBlockDescNullsLast = 'extrinsic_indexInBlock_DESC_NULLS_LAST', - ExtrinsicPalletAsc = 'extrinsic_pallet_ASC', - ExtrinsicPalletAscNullsFirst = 'extrinsic_pallet_ASC_NULLS_FIRST', - ExtrinsicPalletAscNullsLast = 'extrinsic_pallet_ASC_NULLS_LAST', - ExtrinsicPalletDesc = 'extrinsic_pallet_DESC', - ExtrinsicPalletDescNullsFirst = 'extrinsic_pallet_DESC_NULLS_FIRST', - ExtrinsicPalletDescNullsLast = 'extrinsic_pallet_DESC_NULLS_LAST', - ExtrinsicSuccessAsc = 'extrinsic_success_ASC', - ExtrinsicSuccessAscNullsFirst = 'extrinsic_success_ASC_NULLS_FIRST', - ExtrinsicSuccessAscNullsLast = 'extrinsic_success_ASC_NULLS_LAST', - ExtrinsicSuccessDesc = 'extrinsic_success_DESC', - ExtrinsicSuccessDescNullsFirst = 'extrinsic_success_DESC_NULLS_FIRST', - ExtrinsicSuccessDescNullsLast = 'extrinsic_success_DESC_NULLS_LAST', - ExtrinsicTimestampAsc = 'extrinsic_timestamp_ASC', - ExtrinsicTimestampAscNullsFirst = 'extrinsic_timestamp_ASC_NULLS_FIRST', - ExtrinsicTimestampAscNullsLast = 'extrinsic_timestamp_ASC_NULLS_LAST', - ExtrinsicTimestampDesc = 'extrinsic_timestamp_DESC', - ExtrinsicTimestampDescNullsFirst = 'extrinsic_timestamp_DESC_NULLS_FIRST', - ExtrinsicTimestampDescNullsLast = 'extrinsic_timestamp_DESC_NULLS_LAST', - IdAsc = 'id_ASC', - IdAscNullsFirst = 'id_ASC_NULLS_FIRST', - IdAscNullsLast = 'id_ASC_NULLS_LAST', - IdDesc = 'id_DESC', - IdDescNullsFirst = 'id_DESC_NULLS_FIRST', - IdDescNullsLast = 'id_DESC_NULLS_LAST', - InterceptorFreeAsc = 'interceptor_free_ASC', - InterceptorFreeAscNullsFirst = 'interceptor_free_ASC_NULLS_FIRST', - InterceptorFreeAscNullsLast = 'interceptor_free_ASC_NULLS_LAST', - InterceptorFreeDesc = 'interceptor_free_DESC', - InterceptorFreeDescNullsFirst = 'interceptor_free_DESC_NULLS_FIRST', - InterceptorFreeDescNullsLast = 'interceptor_free_DESC_NULLS_LAST', - InterceptorFrozenAsc = 'interceptor_frozen_ASC', - InterceptorFrozenAscNullsFirst = 'interceptor_frozen_ASC_NULLS_FIRST', - InterceptorFrozenAscNullsLast = 'interceptor_frozen_ASC_NULLS_LAST', - InterceptorFrozenDesc = 'interceptor_frozen_DESC', - InterceptorFrozenDescNullsFirst = 'interceptor_frozen_DESC_NULLS_FIRST', - InterceptorFrozenDescNullsLast = 'interceptor_frozen_DESC_NULLS_LAST', - InterceptorIdAsc = 'interceptor_id_ASC', - InterceptorIdAscNullsFirst = 'interceptor_id_ASC_NULLS_FIRST', - InterceptorIdAscNullsLast = 'interceptor_id_ASC_NULLS_LAST', - InterceptorIdDesc = 'interceptor_id_DESC', - InterceptorIdDescNullsFirst = 'interceptor_id_DESC_NULLS_FIRST', - InterceptorIdDescNullsLast = 'interceptor_id_DESC_NULLS_LAST', - InterceptorIsDepositOnlyAsc = 'interceptor_isDepositOnly_ASC', - InterceptorIsDepositOnlyAscNullsFirst = 'interceptor_isDepositOnly_ASC_NULLS_FIRST', - InterceptorIsDepositOnlyAscNullsLast = 'interceptor_isDepositOnly_ASC_NULLS_LAST', - InterceptorIsDepositOnlyDesc = 'interceptor_isDepositOnly_DESC', - InterceptorIsDepositOnlyDescNullsFirst = 'interceptor_isDepositOnly_DESC_NULLS_FIRST', - InterceptorIsDepositOnlyDescNullsLast = 'interceptor_isDepositOnly_DESC_NULLS_LAST', - InterceptorLastUpdatedAsc = 'interceptor_lastUpdated_ASC', - InterceptorLastUpdatedAscNullsFirst = 'interceptor_lastUpdated_ASC_NULLS_FIRST', - InterceptorLastUpdatedAscNullsLast = 'interceptor_lastUpdated_ASC_NULLS_LAST', - InterceptorLastUpdatedDesc = 'interceptor_lastUpdated_DESC', - InterceptorLastUpdatedDescNullsFirst = 'interceptor_lastUpdated_DESC_NULLS_FIRST', - InterceptorLastUpdatedDescNullsLast = 'interceptor_lastUpdated_DESC_NULLS_LAST', - InterceptorPrivacyDepositsAsc = 'interceptor_privacyDeposits_ASC', - InterceptorPrivacyDepositsAscNullsFirst = 'interceptor_privacyDeposits_ASC_NULLS_FIRST', - InterceptorPrivacyDepositsAscNullsLast = 'interceptor_privacyDeposits_ASC_NULLS_LAST', - InterceptorPrivacyDepositsDesc = 'interceptor_privacyDeposits_DESC', - InterceptorPrivacyDepositsDescNullsFirst = 'interceptor_privacyDeposits_DESC_NULLS_FIRST', - InterceptorPrivacyDepositsDescNullsLast = 'interceptor_privacyDeposits_DESC_NULLS_LAST', - InterceptorReservedAsc = 'interceptor_reserved_ASC', - InterceptorReservedAscNullsFirst = 'interceptor_reserved_ASC_NULLS_FIRST', - InterceptorReservedAscNullsLast = 'interceptor_reserved_ASC_NULLS_LAST', - InterceptorReservedDesc = 'interceptor_reserved_DESC', - InterceptorReservedDescNullsFirst = 'interceptor_reserved_DESC_NULLS_FIRST', - InterceptorReservedDescNullsLast = 'interceptor_reserved_DESC_NULLS_LAST', - TimestampAsc = 'timestamp_ASC', - TimestampAscNullsFirst = 'timestamp_ASC_NULLS_FIRST', - TimestampAscNullsLast = 'timestamp_ASC_NULLS_LAST', - TimestampDesc = 'timestamp_DESC', - TimestampDescNullsFirst = 'timestamp_DESC_NULLS_FIRST', - TimestampDescNullsLast = 'timestamp_DESC_NULLS_LAST', - WhoFreeAsc = 'who_free_ASC', - WhoFreeAscNullsFirst = 'who_free_ASC_NULLS_FIRST', - WhoFreeAscNullsLast = 'who_free_ASC_NULLS_LAST', - WhoFreeDesc = 'who_free_DESC', - WhoFreeDescNullsFirst = 'who_free_DESC_NULLS_FIRST', - WhoFreeDescNullsLast = 'who_free_DESC_NULLS_LAST', - WhoFrozenAsc = 'who_frozen_ASC', - WhoFrozenAscNullsFirst = 'who_frozen_ASC_NULLS_FIRST', - WhoFrozenAscNullsLast = 'who_frozen_ASC_NULLS_LAST', - WhoFrozenDesc = 'who_frozen_DESC', - WhoFrozenDescNullsFirst = 'who_frozen_DESC_NULLS_FIRST', - WhoFrozenDescNullsLast = 'who_frozen_DESC_NULLS_LAST', - WhoIdAsc = 'who_id_ASC', - WhoIdAscNullsFirst = 'who_id_ASC_NULLS_FIRST', - WhoIdAscNullsLast = 'who_id_ASC_NULLS_LAST', - WhoIdDesc = 'who_id_DESC', - WhoIdDescNullsFirst = 'who_id_DESC_NULLS_FIRST', - WhoIdDescNullsLast = 'who_id_DESC_NULLS_LAST', - WhoIsDepositOnlyAsc = 'who_isDepositOnly_ASC', - WhoIsDepositOnlyAscNullsFirst = 'who_isDepositOnly_ASC_NULLS_FIRST', - WhoIsDepositOnlyAscNullsLast = 'who_isDepositOnly_ASC_NULLS_LAST', - WhoIsDepositOnlyDesc = 'who_isDepositOnly_DESC', - WhoIsDepositOnlyDescNullsFirst = 'who_isDepositOnly_DESC_NULLS_FIRST', - WhoIsDepositOnlyDescNullsLast = 'who_isDepositOnly_DESC_NULLS_LAST', - WhoLastUpdatedAsc = 'who_lastUpdated_ASC', - WhoLastUpdatedAscNullsFirst = 'who_lastUpdated_ASC_NULLS_FIRST', - WhoLastUpdatedAscNullsLast = 'who_lastUpdated_ASC_NULLS_LAST', - WhoLastUpdatedDesc = 'who_lastUpdated_DESC', - WhoLastUpdatedDescNullsFirst = 'who_lastUpdated_DESC_NULLS_FIRST', - WhoLastUpdatedDescNullsLast = 'who_lastUpdated_DESC_NULLS_LAST', - WhoPrivacyDepositsAsc = 'who_privacyDeposits_ASC', - WhoPrivacyDepositsAscNullsFirst = 'who_privacyDeposits_ASC_NULLS_FIRST', - WhoPrivacyDepositsAscNullsLast = 'who_privacyDeposits_ASC_NULLS_LAST', - WhoPrivacyDepositsDesc = 'who_privacyDeposits_DESC', - WhoPrivacyDepositsDescNullsFirst = 'who_privacyDeposits_DESC_NULLS_FIRST', - WhoPrivacyDepositsDescNullsLast = 'who_privacyDeposits_DESC_NULLS_LAST', - WhoReservedAsc = 'who_reserved_ASC', - WhoReservedAscNullsFirst = 'who_reserved_ASC_NULLS_FIRST', - WhoReservedAscNullsLast = 'who_reserved_ASC_NULLS_LAST', - WhoReservedDesc = 'who_reserved_DESC', - WhoReservedDescNullsFirst = 'who_reserved_DESC_NULLS_FIRST', - WhoReservedDescNullsLast = 'who_reserved_DESC_NULLS_LAST' + /** An object relationship */ + interceptor?: Maybe; + interceptor_id?: Maybe; + timestamp: Scalars['timestamptz']['output']; + /** An object relationship */ + who?: Maybe; + who_id?: Maybe; +}; + +/** aggregated selection of "high_security_set" */ +export type High_Security_Set_Aggregate = { + __typename?: 'high_security_set_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "high_security_set" */ +export type High_Security_Set_Aggregate_Fields = { + __typename?: 'high_security_set_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + +/** aggregate fields of "high_security_set" */ +export type High_Security_Set_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type High_Security_Set_Avg_Fields = { + __typename?: 'high_security_set_avg_fields'; + delay?: Maybe; +}; + +/** Boolean expression to filter rows from the table "high_security_set". All fields are combined with a logical 'AND'. */ +export type High_Security_Set_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + block?: InputMaybe; + block_id?: InputMaybe; + delay?: InputMaybe; + event?: InputMaybe; + extrinsic?: InputMaybe; + extrinsic_id?: InputMaybe; + id?: InputMaybe; + interceptor?: InputMaybe; + interceptor_id?: InputMaybe; + timestamp?: InputMaybe; + who?: InputMaybe; + who_id?: InputMaybe; +}; + +/** aggregate max on columns */ +export type High_Security_Set_Max_Fields = { + __typename?: 'high_security_set_max_fields'; + block_id?: Maybe; + delay?: Maybe; + extrinsic_id?: Maybe; + id?: Maybe; + interceptor_id?: Maybe; + timestamp?: Maybe; + who_id?: Maybe; +}; + +/** aggregate min on columns */ +export type High_Security_Set_Min_Fields = { + __typename?: 'high_security_set_min_fields'; + block_id?: Maybe; + delay?: Maybe; + extrinsic_id?: Maybe; + id?: Maybe; + interceptor_id?: Maybe; + timestamp?: Maybe; + who_id?: Maybe; +}; + +/** Ordering options when selecting data from "high_security_set". */ +export type High_Security_Set_Order_By = { + block?: InputMaybe; + block_id?: InputMaybe; + delay?: InputMaybe; + event?: InputMaybe; + extrinsic?: InputMaybe; + extrinsic_id?: InputMaybe; + id?: InputMaybe; + interceptor?: InputMaybe; + interceptor_id?: InputMaybe; + timestamp?: InputMaybe; + who?: InputMaybe; + who_id?: InputMaybe; +}; + +/** select columns of table "high_security_set" */ +export enum High_Security_Set_Select_Column { + /** column name */ + BlockId = 'block_id', + /** column name */ + Delay = 'delay', + /** column name */ + ExtrinsicId = 'extrinsic_id', + /** column name */ + Id = 'id', + /** column name */ + InterceptorId = 'interceptor_id', + /** column name */ + Timestamp = 'timestamp', + /** column name */ + WhoId = 'who_id' } -export type HighSecuritySetWhereInput = { - AND?: InputMaybe>; - OR?: InputMaybe>; - block?: InputMaybe; - block_isNull?: InputMaybe; - delay_eq?: InputMaybe; - delay_gt?: InputMaybe; - delay_gte?: InputMaybe; - delay_in?: InputMaybe>; - delay_isNull?: InputMaybe; - delay_lt?: InputMaybe; - delay_lte?: InputMaybe; - delay_not_eq?: InputMaybe; - delay_not_in?: InputMaybe>; - event?: InputMaybe; - event_isNull?: InputMaybe; - extrinsic?: InputMaybe; - extrinsic_isNull?: InputMaybe; - id_contains?: InputMaybe; - id_containsInsensitive?: InputMaybe; - id_endsWith?: InputMaybe; - id_eq?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_isNull?: InputMaybe; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not_contains?: InputMaybe; - id_not_containsInsensitive?: InputMaybe; - id_not_endsWith?: InputMaybe; - id_not_eq?: InputMaybe; - id_not_in?: InputMaybe>; - id_not_startsWith?: InputMaybe; - id_startsWith?: InputMaybe; - interceptor?: InputMaybe; - interceptor_isNull?: InputMaybe; - timestamp_eq?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_isNull?: InputMaybe; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not_eq?: InputMaybe; - timestamp_not_in?: InputMaybe>; - who?: InputMaybe; - who_isNull?: InputMaybe; -}; - -export type HighSecuritySetsConnection = { - __typename?: 'HighSecuritySetsConnection'; - edges: Array; - pageInfo: PageInfo; - totalCount: Scalars['Int']['output']; -}; - -export type MinerReward = { - __typename?: 'MinerReward'; - block: Block; +/** aggregate stddev on columns */ +export type High_Security_Set_Stddev_Fields = { + __typename?: 'high_security_set_stddev_fields'; + delay?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type High_Security_Set_Stddev_Pop_Fields = { + __typename?: 'high_security_set_stddev_pop_fields'; + delay?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type High_Security_Set_Stddev_Samp_Fields = { + __typename?: 'high_security_set_stddev_samp_fields'; + delay?: Maybe; +}; + +/** Streaming cursor of the table "high_security_set" */ +export type High_Security_Set_Stream_Cursor_Input = { + /** Stream column input with initial value */ + initial_value: High_Security_Set_Stream_Cursor_Value_Input; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type High_Security_Set_Stream_Cursor_Value_Input = { + block_id?: InputMaybe; + delay?: InputMaybe; + extrinsic_id?: InputMaybe; + id?: InputMaybe; + interceptor_id?: InputMaybe; + timestamp?: InputMaybe; + who_id?: InputMaybe; +}; + +/** aggregate sum on columns */ +export type High_Security_Set_Sum_Fields = { + __typename?: 'high_security_set_sum_fields'; + delay?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type High_Security_Set_Var_Pop_Fields = { + __typename?: 'high_security_set_var_pop_fields'; + delay?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type High_Security_Set_Var_Samp_Fields = { + __typename?: 'high_security_set_var_samp_fields'; + delay?: Maybe; +}; + +/** aggregate variance on columns */ +export type High_Security_Set_Variance_Fields = { + __typename?: 'high_security_set_variance_fields'; + delay?: Maybe; +}; + +/** columns and relationships of "miner_reward" */ +export type Miner_Reward = { + __typename?: 'miner_reward'; + /** An object relationship */ + block?: Maybe; + block_id?: Maybe; + /** An object relationship */ event?: Maybe; id: Scalars['String']['output']; - miner: Account; - reward: Scalars['BigInt']['output']; - timestamp: Scalars['DateTime']['output']; -}; - -export type MinerRewardEdge = { - __typename?: 'MinerRewardEdge'; - cursor: Scalars['String']['output']; - node: MinerReward; -}; - -export enum MinerRewardOrderByInput { - BlockHashAsc = 'block_hash_ASC', - BlockHashAscNullsFirst = 'block_hash_ASC_NULLS_FIRST', - BlockHashAscNullsLast = 'block_hash_ASC_NULLS_LAST', - BlockHashDesc = 'block_hash_DESC', - BlockHashDescNullsFirst = 'block_hash_DESC_NULLS_FIRST', - BlockHashDescNullsLast = 'block_hash_DESC_NULLS_LAST', - BlockHeightAsc = 'block_height_ASC', - BlockHeightAscNullsFirst = 'block_height_ASC_NULLS_FIRST', - BlockHeightAscNullsLast = 'block_height_ASC_NULLS_LAST', - BlockHeightDesc = 'block_height_DESC', - BlockHeightDescNullsFirst = 'block_height_DESC_NULLS_FIRST', - BlockHeightDescNullsLast = 'block_height_DESC_NULLS_LAST', - BlockIdAsc = 'block_id_ASC', - BlockIdAscNullsFirst = 'block_id_ASC_NULLS_FIRST', - BlockIdAscNullsLast = 'block_id_ASC_NULLS_LAST', - BlockIdDesc = 'block_id_DESC', - BlockIdDescNullsFirst = 'block_id_DESC_NULLS_FIRST', - BlockIdDescNullsLast = 'block_id_DESC_NULLS_LAST', - BlockRewardAsc = 'block_reward_ASC', - BlockRewardAscNullsFirst = 'block_reward_ASC_NULLS_FIRST', - BlockRewardAscNullsLast = 'block_reward_ASC_NULLS_LAST', - BlockRewardDesc = 'block_reward_DESC', - BlockRewardDescNullsFirst = 'block_reward_DESC_NULLS_FIRST', - BlockRewardDescNullsLast = 'block_reward_DESC_NULLS_LAST', - BlockTimestampAsc = 'block_timestamp_ASC', - BlockTimestampAscNullsFirst = 'block_timestamp_ASC_NULLS_FIRST', - BlockTimestampAscNullsLast = 'block_timestamp_ASC_NULLS_LAST', - BlockTimestampDesc = 'block_timestamp_DESC', - BlockTimestampDescNullsFirst = 'block_timestamp_DESC_NULLS_FIRST', - BlockTimestampDescNullsLast = 'block_timestamp_DESC_NULLS_LAST', - EventIdAsc = 'event_id_ASC', - EventIdAscNullsFirst = 'event_id_ASC_NULLS_FIRST', - EventIdAscNullsLast = 'event_id_ASC_NULLS_LAST', - EventIdDesc = 'event_id_DESC', - EventIdDescNullsFirst = 'event_id_DESC_NULLS_FIRST', - EventIdDescNullsLast = 'event_id_DESC_NULLS_LAST', - EventTimestampAsc = 'event_timestamp_ASC', - EventTimestampAscNullsFirst = 'event_timestamp_ASC_NULLS_FIRST', - EventTimestampAscNullsLast = 'event_timestamp_ASC_NULLS_LAST', - EventTimestampDesc = 'event_timestamp_DESC', - EventTimestampDescNullsFirst = 'event_timestamp_DESC_NULLS_FIRST', - EventTimestampDescNullsLast = 'event_timestamp_DESC_NULLS_LAST', - EventTypeAsc = 'event_type_ASC', - EventTypeAscNullsFirst = 'event_type_ASC_NULLS_FIRST', - EventTypeAscNullsLast = 'event_type_ASC_NULLS_LAST', - EventTypeDesc = 'event_type_DESC', - EventTypeDescNullsFirst = 'event_type_DESC_NULLS_FIRST', - EventTypeDescNullsLast = 'event_type_DESC_NULLS_LAST', - IdAsc = 'id_ASC', - IdAscNullsFirst = 'id_ASC_NULLS_FIRST', - IdAscNullsLast = 'id_ASC_NULLS_LAST', - IdDesc = 'id_DESC', - IdDescNullsFirst = 'id_DESC_NULLS_FIRST', - IdDescNullsLast = 'id_DESC_NULLS_LAST', - MinerFreeAsc = 'miner_free_ASC', - MinerFreeAscNullsFirst = 'miner_free_ASC_NULLS_FIRST', - MinerFreeAscNullsLast = 'miner_free_ASC_NULLS_LAST', - MinerFreeDesc = 'miner_free_DESC', - MinerFreeDescNullsFirst = 'miner_free_DESC_NULLS_FIRST', - MinerFreeDescNullsLast = 'miner_free_DESC_NULLS_LAST', - MinerFrozenAsc = 'miner_frozen_ASC', - MinerFrozenAscNullsFirst = 'miner_frozen_ASC_NULLS_FIRST', - MinerFrozenAscNullsLast = 'miner_frozen_ASC_NULLS_LAST', - MinerFrozenDesc = 'miner_frozen_DESC', - MinerFrozenDescNullsFirst = 'miner_frozen_DESC_NULLS_FIRST', - MinerFrozenDescNullsLast = 'miner_frozen_DESC_NULLS_LAST', - MinerIdAsc = 'miner_id_ASC', - MinerIdAscNullsFirst = 'miner_id_ASC_NULLS_FIRST', - MinerIdAscNullsLast = 'miner_id_ASC_NULLS_LAST', - MinerIdDesc = 'miner_id_DESC', - MinerIdDescNullsFirst = 'miner_id_DESC_NULLS_FIRST', - MinerIdDescNullsLast = 'miner_id_DESC_NULLS_LAST', - MinerIsDepositOnlyAsc = 'miner_isDepositOnly_ASC', - MinerIsDepositOnlyAscNullsFirst = 'miner_isDepositOnly_ASC_NULLS_FIRST', - MinerIsDepositOnlyAscNullsLast = 'miner_isDepositOnly_ASC_NULLS_LAST', - MinerIsDepositOnlyDesc = 'miner_isDepositOnly_DESC', - MinerIsDepositOnlyDescNullsFirst = 'miner_isDepositOnly_DESC_NULLS_FIRST', - MinerIsDepositOnlyDescNullsLast = 'miner_isDepositOnly_DESC_NULLS_LAST', - MinerLastUpdatedAsc = 'miner_lastUpdated_ASC', - MinerLastUpdatedAscNullsFirst = 'miner_lastUpdated_ASC_NULLS_FIRST', - MinerLastUpdatedAscNullsLast = 'miner_lastUpdated_ASC_NULLS_LAST', - MinerLastUpdatedDesc = 'miner_lastUpdated_DESC', - MinerLastUpdatedDescNullsFirst = 'miner_lastUpdated_DESC_NULLS_FIRST', - MinerLastUpdatedDescNullsLast = 'miner_lastUpdated_DESC_NULLS_LAST', - MinerPrivacyDepositsAsc = 'miner_privacyDeposits_ASC', - MinerPrivacyDepositsAscNullsFirst = 'miner_privacyDeposits_ASC_NULLS_FIRST', - MinerPrivacyDepositsAscNullsLast = 'miner_privacyDeposits_ASC_NULLS_LAST', - MinerPrivacyDepositsDesc = 'miner_privacyDeposits_DESC', - MinerPrivacyDepositsDescNullsFirst = 'miner_privacyDeposits_DESC_NULLS_FIRST', - MinerPrivacyDepositsDescNullsLast = 'miner_privacyDeposits_DESC_NULLS_LAST', - MinerReservedAsc = 'miner_reserved_ASC', - MinerReservedAscNullsFirst = 'miner_reserved_ASC_NULLS_FIRST', - MinerReservedAscNullsLast = 'miner_reserved_ASC_NULLS_LAST', - MinerReservedDesc = 'miner_reserved_DESC', - MinerReservedDescNullsFirst = 'miner_reserved_DESC_NULLS_FIRST', - MinerReservedDescNullsLast = 'miner_reserved_DESC_NULLS_LAST', - RewardAsc = 'reward_ASC', - RewardAscNullsFirst = 'reward_ASC_NULLS_FIRST', - RewardAscNullsLast = 'reward_ASC_NULLS_LAST', - RewardDesc = 'reward_DESC', - RewardDescNullsFirst = 'reward_DESC_NULLS_FIRST', - RewardDescNullsLast = 'reward_DESC_NULLS_LAST', - TimestampAsc = 'timestamp_ASC', - TimestampAscNullsFirst = 'timestamp_ASC_NULLS_FIRST', - TimestampAscNullsLast = 'timestamp_ASC_NULLS_LAST', - TimestampDesc = 'timestamp_DESC', - TimestampDescNullsFirst = 'timestamp_DESC_NULLS_FIRST', - TimestampDescNullsLast = 'timestamp_DESC_NULLS_LAST' + /** An object relationship */ + miner?: Maybe; + miner_id?: Maybe; + reward: Scalars['numeric']['output']; + timestamp: Scalars['timestamptz']['output']; +}; + +/** aggregated selection of "miner_reward" */ +export type Miner_Reward_Aggregate = { + __typename?: 'miner_reward_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "miner_reward" */ +export type Miner_Reward_Aggregate_Fields = { + __typename?: 'miner_reward_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + +/** aggregate fields of "miner_reward" */ +export type Miner_Reward_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type Miner_Reward_Avg_Fields = { + __typename?: 'miner_reward_avg_fields'; + reward?: Maybe; +}; + +/** Boolean expression to filter rows from the table "miner_reward". All fields are combined with a logical 'AND'. */ +export type Miner_Reward_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + block?: InputMaybe; + block_id?: InputMaybe; + event?: InputMaybe; + id?: InputMaybe; + miner?: InputMaybe; + miner_id?: InputMaybe; + reward?: InputMaybe; + timestamp?: InputMaybe; +}; + +/** aggregate max on columns */ +export type Miner_Reward_Max_Fields = { + __typename?: 'miner_reward_max_fields'; + block_id?: Maybe; + id?: Maybe; + miner_id?: Maybe; + reward?: Maybe; + timestamp?: Maybe; +}; + +/** aggregate min on columns */ +export type Miner_Reward_Min_Fields = { + __typename?: 'miner_reward_min_fields'; + block_id?: Maybe; + id?: Maybe; + miner_id?: Maybe; + reward?: Maybe; + timestamp?: Maybe; +}; + +/** Ordering options when selecting data from "miner_reward". */ +export type Miner_Reward_Order_By = { + block?: InputMaybe; + block_id?: InputMaybe; + event?: InputMaybe; + id?: InputMaybe; + miner?: InputMaybe; + miner_id?: InputMaybe; + reward?: InputMaybe; + timestamp?: InputMaybe; +}; + +/** select columns of table "miner_reward" */ +export enum Miner_Reward_Select_Column { + /** column name */ + BlockId = 'block_id', + /** column name */ + Id = 'id', + /** column name */ + MinerId = 'miner_id', + /** column name */ + Reward = 'reward', + /** column name */ + Timestamp = 'timestamp' } -export type MinerRewardWhereInput = { - AND?: InputMaybe>; - OR?: InputMaybe>; - block?: InputMaybe; - block_isNull?: InputMaybe; - event?: InputMaybe; - event_isNull?: InputMaybe; - id_contains?: InputMaybe; - id_containsInsensitive?: InputMaybe; - id_endsWith?: InputMaybe; - id_eq?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_isNull?: InputMaybe; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not_contains?: InputMaybe; - id_not_containsInsensitive?: InputMaybe; - id_not_endsWith?: InputMaybe; - id_not_eq?: InputMaybe; - id_not_in?: InputMaybe>; - id_not_startsWith?: InputMaybe; - id_startsWith?: InputMaybe; - miner?: InputMaybe; - miner_isNull?: InputMaybe; - reward_eq?: InputMaybe; - reward_gt?: InputMaybe; - reward_gte?: InputMaybe; - reward_in?: InputMaybe>; - reward_isNull?: InputMaybe; - reward_lt?: InputMaybe; - reward_lte?: InputMaybe; - reward_not_eq?: InputMaybe; - reward_not_in?: InputMaybe>; - timestamp_eq?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_isNull?: InputMaybe; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not_eq?: InputMaybe; - timestamp_not_in?: InputMaybe>; -}; - -export type MinerRewardsConnection = { - __typename?: 'MinerRewardsConnection'; - edges: Array; - pageInfo: PageInfo; - totalCount: Scalars['Int']['output']; -}; - -export type MinerStats = { - __typename?: 'MinerStats'; - /** Miner address */ - id: Scalars['String']['output']; - totalMinedBlocks: Scalars['Int']['output']; - totalRewards: Scalars['BigInt']['output']; -}; - -export type MinerStatsConnection = { - __typename?: 'MinerStatsConnection'; - edges: Array; - pageInfo: PageInfo; - totalCount: Scalars['Int']['output']; -}; - -export type MinerStatsEdge = { - __typename?: 'MinerStatsEdge'; - cursor: Scalars['String']['output']; - node: MinerStats; -}; - -export enum MinerStatsOrderByInput { - IdAsc = 'id_ASC', - IdAscNullsFirst = 'id_ASC_NULLS_FIRST', - IdAscNullsLast = 'id_ASC_NULLS_LAST', - IdDesc = 'id_DESC', - IdDescNullsFirst = 'id_DESC_NULLS_FIRST', - IdDescNullsLast = 'id_DESC_NULLS_LAST', - TotalMinedBlocksAsc = 'totalMinedBlocks_ASC', - TotalMinedBlocksAscNullsFirst = 'totalMinedBlocks_ASC_NULLS_FIRST', - TotalMinedBlocksAscNullsLast = 'totalMinedBlocks_ASC_NULLS_LAST', - TotalMinedBlocksDesc = 'totalMinedBlocks_DESC', - TotalMinedBlocksDescNullsFirst = 'totalMinedBlocks_DESC_NULLS_FIRST', - TotalMinedBlocksDescNullsLast = 'totalMinedBlocks_DESC_NULLS_LAST', - TotalRewardsAsc = 'totalRewards_ASC', - TotalRewardsAscNullsFirst = 'totalRewards_ASC_NULLS_FIRST', - TotalRewardsAscNullsLast = 'totalRewards_ASC_NULLS_LAST', - TotalRewardsDesc = 'totalRewards_DESC', - TotalRewardsDescNullsFirst = 'totalRewards_DESC_NULLS_FIRST', - TotalRewardsDescNullsLast = 'totalRewards_DESC_NULLS_LAST' -} +/** aggregate stddev on columns */ +export type Miner_Reward_Stddev_Fields = { + __typename?: 'miner_reward_stddev_fields'; + reward?: Maybe; +}; -export type MinerStatsWhereInput = { - AND?: InputMaybe>; - OR?: InputMaybe>; - id_contains?: InputMaybe; - id_containsInsensitive?: InputMaybe; - id_endsWith?: InputMaybe; - id_eq?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_isNull?: InputMaybe; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not_contains?: InputMaybe; - id_not_containsInsensitive?: InputMaybe; - id_not_endsWith?: InputMaybe; - id_not_eq?: InputMaybe; - id_not_in?: InputMaybe>; - id_not_startsWith?: InputMaybe; - id_startsWith?: InputMaybe; - totalMinedBlocks_eq?: InputMaybe; - totalMinedBlocks_gt?: InputMaybe; - totalMinedBlocks_gte?: InputMaybe; - totalMinedBlocks_in?: InputMaybe>; - totalMinedBlocks_isNull?: InputMaybe; - totalMinedBlocks_lt?: InputMaybe; - totalMinedBlocks_lte?: InputMaybe; - totalMinedBlocks_not_eq?: InputMaybe; - totalMinedBlocks_not_in?: InputMaybe>; - totalRewards_eq?: InputMaybe; - totalRewards_gt?: InputMaybe; - totalRewards_gte?: InputMaybe; - totalRewards_in?: InputMaybe>; - totalRewards_isNull?: InputMaybe; - totalRewards_lt?: InputMaybe; - totalRewards_lte?: InputMaybe; - totalRewards_not_eq?: InputMaybe; - totalRewards_not_in?: InputMaybe>; -}; - -export type NullifierResult = { - __typename?: 'NullifierResult'; - blockHeight: Scalars['Int']['output']; - extrinsicHash: Scalars['String']['output']; - nullifier: Scalars['String']['output']; - nullifierHash: Scalars['String']['output']; - timestamp: Scalars['DateTime']['output']; -}; - -export type NullifiersByPrefixInput = { - afterBlock?: InputMaybe; - hashPrefixes: Array; -}; - -export type NullifiersByPrefixResponse = { - __typename?: 'NullifiersByPrefixResponse'; - nullifiers: Array; - totalCount: Scalars['Int']['output']; -}; - -export type PageInfo = { - __typename?: 'PageInfo'; - endCursor: Scalars['String']['output']; - hasNextPage: Scalars['Boolean']['output']; - hasPreviousPage: Scalars['Boolean']['output']; - startCursor: Scalars['String']['output']; -}; - -export type Query = { - __typename?: 'Query'; - accountById?: Maybe; - accountEventById?: Maybe; - accountEvents: Array; - accountEventsConnection: AccountEventsConnection; - accounts: Array; - accountsConnection: AccountsConnection; - balanceEventById?: Maybe; - balanceEvents: Array; - balanceEventsConnection: BalanceEventsConnection; - blockById?: Maybe; - blocks: Array; - blocksConnection: BlocksConnection; - cancelledReversibleTransferById?: Maybe; - cancelledReversibleTransfers: Array; - cancelledReversibleTransfersConnection: CancelledReversibleTransfersConnection; - depositPoolStats: Array; - depositPoolStatsById?: Maybe; - depositPoolStatsConnection: DepositPoolStatsConnection; - errorEventById?: Maybe; - errorEvents: Array; - errorEventsConnection: ErrorEventsConnection; - eventById?: Maybe; - events: Array; - eventsConnection: EventsConnection; - executedReversibleTransferById?: Maybe; - executedReversibleTransfers: Array; - executedReversibleTransfersConnection: ExecutedReversibleTransfersConnection; - extrinsicById?: Maybe; - extrinsics: Array; - extrinsicsConnection: ExtrinsicsConnection; - highSecuritySetById?: Maybe; - highSecuritySets: Array; - highSecuritySetsConnection: HighSecuritySetsConnection; - minerRewardById?: Maybe; - minerRewards: Array; - minerRewardsConnection: MinerRewardsConnection; - minerStats: Array; - minerStatsById?: Maybe; - minerStatsConnection: MinerStatsConnection; - nullifiersByPrefix: NullifiersByPrefixResponse; - scheduledReversibleTransferById?: Maybe; - scheduledReversibleTransfers: Array; - scheduledReversibleTransfersConnection: ScheduledReversibleTransfersConnection; - squidStatus?: Maybe; - transferById?: Maybe; - transfers: Array; - transfersByHashPrefix: TransfersByPrefixResult; - transfersConnection: TransfersConnection; - wormholeExtrinsicById?: Maybe; - wormholeExtrinsics: Array; - wormholeExtrinsicsConnection: WormholeExtrinsicsConnection; - wormholeNullifierById?: Maybe; - wormholeNullifiers: Array; - wormholeNullifiersConnection: WormholeNullifiersConnection; - wormholeOutputById?: Maybe; - wormholeOutputs: Array; - wormholeOutputsConnection: WormholeOutputsConnection; -}; - -export type QueryAccountByIdArgs = { - id: Scalars['String']['input']; +/** aggregate stddev_pop on columns */ +export type Miner_Reward_Stddev_Pop_Fields = { + __typename?: 'miner_reward_stddev_pop_fields'; + reward?: Maybe; }; -export type QueryAccountEventByIdArgs = { - id: Scalars['String']['input']; +/** aggregate stddev_samp on columns */ +export type Miner_Reward_Stddev_Samp_Fields = { + __typename?: 'miner_reward_stddev_samp_fields'; + reward?: Maybe; }; -export type QueryAccountEventsArgs = { - limit?: InputMaybe; - offset?: InputMaybe; - orderBy?: InputMaybe>; - where?: InputMaybe; +/** Streaming cursor of the table "miner_reward" */ +export type Miner_Reward_Stream_Cursor_Input = { + /** Stream column input with initial value */ + initial_value: Miner_Reward_Stream_Cursor_Value_Input; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type Miner_Reward_Stream_Cursor_Value_Input = { + block_id?: InputMaybe; + id?: InputMaybe; + miner_id?: InputMaybe; + reward?: InputMaybe; + timestamp?: InputMaybe; +}; + +/** aggregate sum on columns */ +export type Miner_Reward_Sum_Fields = { + __typename?: 'miner_reward_sum_fields'; + reward?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type Miner_Reward_Var_Pop_Fields = { + __typename?: 'miner_reward_var_pop_fields'; + reward?: Maybe; }; -export type QueryAccountEventsConnectionArgs = { - after?: InputMaybe; - first?: InputMaybe; - orderBy: Array; - where?: InputMaybe; +/** aggregate var_samp on columns */ +export type Miner_Reward_Var_Samp_Fields = { + __typename?: 'miner_reward_var_samp_fields'; + reward?: Maybe; }; -export type QueryAccountsArgs = { +/** aggregate variance on columns */ +export type Miner_Reward_Variance_Fields = { + __typename?: 'miner_reward_variance_fields'; + reward?: Maybe; +}; + +/** Boolean expression to compare columns of type "numeric". All fields are combined with logical 'AND'. */ +export type Numeric_Comparison_Exp = { + _eq?: InputMaybe; + _gt?: InputMaybe; + _gte?: InputMaybe; + _in?: InputMaybe>; + _is_null?: InputMaybe; + _lt?: InputMaybe; + _lte?: InputMaybe; + _neq?: InputMaybe; + _nin?: InputMaybe>; +}; + +/** column ordering options */ +export enum Order_By { + /** in ascending order, nulls last */ + Asc = 'asc', + /** in ascending order, nulls first */ + AscNullsFirst = 'asc_nulls_first', + /** in ascending order, nulls last */ + AscNullsLast = 'asc_nulls_last', + /** in descending order, nulls first */ + Desc = 'desc', + /** in descending order, nulls first */ + DescNullsFirst = 'desc_nulls_first', + /** in descending order, nulls last */ + DescNullsLast = 'desc_nulls_last' +} + +export type Query_Root = { + __typename?: 'query_root'; + /** fetch data from the table: "account" */ + account: Array; + /** fetch aggregated fields from the table: "account" */ + account_aggregate: Account_Aggregate; + /** fetch data from the table: "account" using primary key columns */ + account_by_pk?: Maybe; + /** fetch data from the table: "account_event" */ + account_event: Array; + /** fetch aggregated fields from the table: "account_event" */ + account_event_aggregate: Account_Event_Aggregate; + /** fetch data from the table: "account_event" using primary key columns */ + account_event_by_pk?: Maybe; + /** fetch data from the table: "account_stats" */ + account_stats: Array; + /** fetch aggregated fields from the table: "account_stats" */ + account_stats_aggregate: Account_Stats_Aggregate; + /** fetch data from the table: "account_stats" using primary key columns */ + account_stats_by_pk?: Maybe; + /** fetch data from the table: "block" */ + block: Array; + /** fetch aggregated fields from the table: "block" */ + block_aggregate: Block_Aggregate; + /** fetch data from the table: "block" using primary key columns */ + block_by_pk?: Maybe; + /** fetch data from the table: "cancelled_reversible_transfer" */ + cancelled_reversible_transfer: Array; + /** fetch aggregated fields from the table: "cancelled_reversible_transfer" */ + cancelled_reversible_transfer_aggregate: Cancelled_Reversible_Transfer_Aggregate; + /** fetch data from the table: "cancelled_reversible_transfer" using primary key columns */ + cancelled_reversible_transfer_by_pk?: Maybe; + /** fetch data from the table: "chain_stats" */ + chain_stats: Array; + /** fetch aggregated fields from the table: "chain_stats" */ + chain_stats_aggregate: Chain_Stats_Aggregate; + /** fetch data from the table: "chain_stats" using primary key columns */ + chain_stats_by_pk?: Maybe; + /** fetch data from the table: "deposit_pool_stats" */ + deposit_pool_stats: Array; + /** fetch aggregated fields from the table: "deposit_pool_stats" */ + deposit_pool_stats_aggregate: Deposit_Pool_Stats_Aggregate; + /** fetch data from the table: "deposit_pool_stats" using primary key columns */ + deposit_pool_stats_by_pk?: Maybe; + /** fetch data from the table: "error_event" */ + error_event: Array; + /** fetch aggregated fields from the table: "error_event" */ + error_event_aggregate: Error_Event_Aggregate; + /** fetch data from the table: "error_event" using primary key columns */ + error_event_by_pk?: Maybe; + /** fetch data from the table: "event" */ + event: Array; + /** fetch aggregated fields from the table: "event" */ + event_aggregate: Event_Aggregate; + /** fetch data from the table: "event" using primary key columns */ + event_by_pk?: Maybe; + /** fetch data from the table: "executed_reversible_transfer" */ + executed_reversible_transfer: Array; + /** fetch aggregated fields from the table: "executed_reversible_transfer" */ + executed_reversible_transfer_aggregate: Executed_Reversible_Transfer_Aggregate; + /** fetch data from the table: "executed_reversible_transfer" using primary key columns */ + executed_reversible_transfer_by_pk?: Maybe; + /** fetch data from the table: "extrinsic" */ + extrinsic: Array; + /** fetch aggregated fields from the table: "extrinsic" */ + extrinsic_aggregate: Extrinsic_Aggregate; + /** fetch data from the table: "extrinsic" using primary key columns */ + extrinsic_by_pk?: Maybe; + /** fetch data from the table: "high_security_set" */ + high_security_set: Array; + /** fetch aggregated fields from the table: "high_security_set" */ + high_security_set_aggregate: High_Security_Set_Aggregate; + /** fetch data from the table: "high_security_set" using primary key columns */ + high_security_set_by_pk?: Maybe; + /** fetch data from the table: "miner_reward" */ + miner_reward: Array; + /** fetch aggregated fields from the table: "miner_reward" */ + miner_reward_aggregate: Miner_Reward_Aggregate; + /** fetch data from the table: "miner_reward" using primary key columns */ + miner_reward_by_pk?: Maybe; + /** fetch data from the table: "scheduled_reversible_transfer" */ + scheduled_reversible_transfer: Array; + /** fetch aggregated fields from the table: "scheduled_reversible_transfer" */ + scheduled_reversible_transfer_aggregate: Scheduled_Reversible_Transfer_Aggregate; + /** fetch data from the table: "scheduled_reversible_transfer" using primary key columns */ + scheduled_reversible_transfer_by_pk?: Maybe; + /** fetch data from the table: "transfer" */ + transfer: Array; + /** fetch aggregated fields from the table: "transfer" */ + transfer_aggregate: Transfer_Aggregate; + /** fetch data from the table: "transfer" using primary key columns */ + transfer_by_pk?: Maybe; + /** fetch data from the table: "wormhole_extrinsic" */ + wormhole_extrinsic: Array; + /** fetch aggregated fields from the table: "wormhole_extrinsic" */ + wormhole_extrinsic_aggregate: Wormhole_Extrinsic_Aggregate; + /** fetch data from the table: "wormhole_extrinsic" using primary key columns */ + wormhole_extrinsic_by_pk?: Maybe; + /** fetch data from the table: "wormhole_nullifier" */ + wormhole_nullifier: Array; + /** fetch aggregated fields from the table: "wormhole_nullifier" */ + wormhole_nullifier_aggregate: Wormhole_Nullifier_Aggregate; + /** fetch data from the table: "wormhole_nullifier" using primary key columns */ + wormhole_nullifier_by_pk?: Maybe; + /** fetch data from the table: "wormhole_output" */ + wormhole_output: Array; + /** fetch aggregated fields from the table: "wormhole_output" */ + wormhole_output_aggregate: Wormhole_Output_Aggregate; + /** fetch data from the table: "wormhole_output" using primary key columns */ + wormhole_output_by_pk?: Maybe; +}; + +export type Query_RootAccountArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - orderBy?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryAccountsConnectionArgs = { - after?: InputMaybe; - first?: InputMaybe; - orderBy: Array; - where?: InputMaybe; +export type Query_RootAccount_AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryBalanceEventByIdArgs = { +export type Query_RootAccount_By_PkArgs = { id: Scalars['String']['input']; }; -export type QueryBalanceEventsArgs = { +export type Query_RootAccount_EventArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - orderBy?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryBalanceEventsConnectionArgs = { - after?: InputMaybe; - first?: InputMaybe; - orderBy: Array; - where?: InputMaybe; +export type Query_RootAccount_Event_AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryBlockByIdArgs = { +export type Query_RootAccount_Event_By_PkArgs = { id: Scalars['String']['input']; }; -export type QueryBlocksArgs = { +export type Query_RootAccount_StatsArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - orderBy?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryBlocksConnectionArgs = { - after?: InputMaybe; - first?: InputMaybe; - orderBy: Array; - where?: InputMaybe; +export type Query_RootAccount_Stats_AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryCancelledReversibleTransferByIdArgs = { +export type Query_RootAccount_Stats_By_PkArgs = { id: Scalars['String']['input']; }; -export type QueryCancelledReversibleTransfersArgs = { +export type Query_RootBlockArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - orderBy?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryCancelledReversibleTransfersConnectionArgs = { - after?: InputMaybe; - first?: InputMaybe; - orderBy: Array; - where?: InputMaybe; -}; - -export type QueryDepositPoolStatsArgs = { +export type Query_RootBlock_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - orderBy?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryDepositPoolStatsByIdArgs = { +export type Query_RootBlock_By_PkArgs = { id: Scalars['String']['input']; }; -export type QueryDepositPoolStatsConnectionArgs = { - after?: InputMaybe; - first?: InputMaybe; - orderBy: Array; - where?: InputMaybe; +export type Query_RootCancelled_Reversible_TransferArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + +export type Query_RootCancelled_Reversible_Transfer_AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryErrorEventByIdArgs = { +export type Query_RootCancelled_Reversible_Transfer_By_PkArgs = { id: Scalars['String']['input']; }; -export type QueryErrorEventsArgs = { +export type Query_RootChain_StatsArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - orderBy?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryErrorEventsConnectionArgs = { - after?: InputMaybe; - first?: InputMaybe; - orderBy: Array; - where?: InputMaybe; +export type Query_RootChain_Stats_AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryEventByIdArgs = { +export type Query_RootChain_Stats_By_PkArgs = { id: Scalars['String']['input']; }; -export type QueryEventsArgs = { +export type Query_RootDeposit_Pool_StatsArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - orderBy?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryEventsConnectionArgs = { - after?: InputMaybe; - first?: InputMaybe; - orderBy: Array; - where?: InputMaybe; +export type Query_RootDeposit_Pool_Stats_AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryExecutedReversibleTransferByIdArgs = { +export type Query_RootDeposit_Pool_Stats_By_PkArgs = { id: Scalars['String']['input']; }; -export type QueryExecutedReversibleTransfersArgs = { +export type Query_RootError_EventArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - orderBy?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryExecutedReversibleTransfersConnectionArgs = { - after?: InputMaybe; - first?: InputMaybe; - orderBy: Array; - where?: InputMaybe; +export type Query_RootError_Event_AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryExtrinsicByIdArgs = { +export type Query_RootError_Event_By_PkArgs = { id: Scalars['String']['input']; }; -export type QueryExtrinsicsArgs = { +export type Query_RootEventArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - orderBy?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryExtrinsicsConnectionArgs = { - after?: InputMaybe; - first?: InputMaybe; - orderBy: Array; - where?: InputMaybe; +export type Query_RootEvent_AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryHighSecuritySetByIdArgs = { +export type Query_RootEvent_By_PkArgs = { id: Scalars['String']['input']; }; -export type QueryHighSecuritySetsArgs = { +export type Query_RootExecuted_Reversible_TransferArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - orderBy?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryHighSecuritySetsConnectionArgs = { - after?: InputMaybe; - first?: InputMaybe; - orderBy: Array; - where?: InputMaybe; +export type Query_RootExecuted_Reversible_Transfer_AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryMinerRewardByIdArgs = { +export type Query_RootExecuted_Reversible_Transfer_By_PkArgs = { id: Scalars['String']['input']; }; -export type QueryMinerRewardsArgs = { +export type Query_RootExtrinsicArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - orderBy?: InputMaybe>; - where?: InputMaybe; -}; - -export type QueryMinerRewardsConnectionArgs = { - after?: InputMaybe; - first?: InputMaybe; - orderBy: Array; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryMinerStatsArgs = { +export type Query_RootExtrinsic_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - orderBy?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryMinerStatsByIdArgs = { +export type Query_RootExtrinsic_By_PkArgs = { id: Scalars['String']['input']; }; -export type QueryMinerStatsConnectionArgs = { - after?: InputMaybe; - first?: InputMaybe; - orderBy: Array; - where?: InputMaybe; +export type Query_RootHigh_Security_SetArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryNullifiersByPrefixArgs = { - input: NullifiersByPrefixInput; +export type Query_RootHigh_Security_Set_AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryScheduledReversibleTransferByIdArgs = { +export type Query_RootHigh_Security_Set_By_PkArgs = { id: Scalars['String']['input']; }; -export type QueryScheduledReversibleTransfersArgs = { +export type Query_RootMiner_RewardArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - orderBy?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryScheduledReversibleTransfersConnectionArgs = { - after?: InputMaybe; - first?: InputMaybe; - orderBy: Array; - where?: InputMaybe; +export type Query_RootMiner_Reward_AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryTransferByIdArgs = { +export type Query_RootMiner_Reward_By_PkArgs = { id: Scalars['String']['input']; }; -export type QueryTransfersArgs = { +export type Query_RootScheduled_Reversible_TransferArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + +export type Query_RootScheduled_Reversible_Transfer_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - orderBy?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + +export type Query_RootScheduled_Reversible_Transfer_By_PkArgs = { + id: Scalars['String']['input']; }; -export type QueryTransfersByHashPrefixArgs = { - input: TransfersByPrefixInput; +export type Query_RootTransferArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryTransfersConnectionArgs = { - after?: InputMaybe; - first?: InputMaybe; - orderBy: Array; - where?: InputMaybe; +export type Query_RootTransfer_AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryWormholeExtrinsicByIdArgs = { +export type Query_RootTransfer_By_PkArgs = { id: Scalars['String']['input']; }; -export type QueryWormholeExtrinsicsArgs = { +export type Query_RootWormhole_ExtrinsicArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - orderBy?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryWormholeExtrinsicsConnectionArgs = { - after?: InputMaybe; - first?: InputMaybe; - orderBy: Array; - where?: InputMaybe; +export type Query_RootWormhole_Extrinsic_AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryWormholeNullifierByIdArgs = { +export type Query_RootWormhole_Extrinsic_By_PkArgs = { id: Scalars['String']['input']; }; -export type QueryWormholeNullifiersArgs = { +export type Query_RootWormhole_NullifierArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - orderBy?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryWormholeNullifiersConnectionArgs = { - after?: InputMaybe; - first?: InputMaybe; - orderBy: Array; - where?: InputMaybe; +export type Query_RootWormhole_Nullifier_AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryWormholeOutputByIdArgs = { +export type Query_RootWormhole_Nullifier_By_PkArgs = { id: Scalars['String']['input']; }; -export type QueryWormholeOutputsArgs = { +export type Query_RootWormhole_OutputArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - orderBy?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryWormholeOutputsConnectionArgs = { - after?: InputMaybe; - first?: InputMaybe; - orderBy: Array; - where?: InputMaybe; +export type Query_RootWormhole_Output_AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type ScheduledReversibleTransfer = { - __typename?: 'ScheduledReversibleTransfer'; - amount: Scalars['BigInt']['output']; - block: Block; - event?: Maybe; - /** Link to the extrinsic that scheduled this transfer */ - extrinsic?: Maybe; - fee: Scalars['BigInt']['output']; - from: Account; - id: Scalars['String']['output']; - scheduledAt: Scalars['DateTime']['output']; - timestamp: Scalars['DateTime']['output']; - to: Account; - txId: Scalars['String']['output']; -}; - -export type ScheduledReversibleTransferEdge = { - __typename?: 'ScheduledReversibleTransferEdge'; - cursor: Scalars['String']['output']; - node: ScheduledReversibleTransfer; -}; - -export enum ScheduledReversibleTransferOrderByInput { - AmountAsc = 'amount_ASC', - AmountAscNullsFirst = 'amount_ASC_NULLS_FIRST', - AmountAscNullsLast = 'amount_ASC_NULLS_LAST', - AmountDesc = 'amount_DESC', - AmountDescNullsFirst = 'amount_DESC_NULLS_FIRST', - AmountDescNullsLast = 'amount_DESC_NULLS_LAST', - BlockHashAsc = 'block_hash_ASC', - BlockHashAscNullsFirst = 'block_hash_ASC_NULLS_FIRST', - BlockHashAscNullsLast = 'block_hash_ASC_NULLS_LAST', - BlockHashDesc = 'block_hash_DESC', - BlockHashDescNullsFirst = 'block_hash_DESC_NULLS_FIRST', - BlockHashDescNullsLast = 'block_hash_DESC_NULLS_LAST', - BlockHeightAsc = 'block_height_ASC', - BlockHeightAscNullsFirst = 'block_height_ASC_NULLS_FIRST', - BlockHeightAscNullsLast = 'block_height_ASC_NULLS_LAST', - BlockHeightDesc = 'block_height_DESC', - BlockHeightDescNullsFirst = 'block_height_DESC_NULLS_FIRST', - BlockHeightDescNullsLast = 'block_height_DESC_NULLS_LAST', - BlockIdAsc = 'block_id_ASC', - BlockIdAscNullsFirst = 'block_id_ASC_NULLS_FIRST', - BlockIdAscNullsLast = 'block_id_ASC_NULLS_LAST', - BlockIdDesc = 'block_id_DESC', - BlockIdDescNullsFirst = 'block_id_DESC_NULLS_FIRST', - BlockIdDescNullsLast = 'block_id_DESC_NULLS_LAST', - BlockRewardAsc = 'block_reward_ASC', - BlockRewardAscNullsFirst = 'block_reward_ASC_NULLS_FIRST', - BlockRewardAscNullsLast = 'block_reward_ASC_NULLS_LAST', - BlockRewardDesc = 'block_reward_DESC', - BlockRewardDescNullsFirst = 'block_reward_DESC_NULLS_FIRST', - BlockRewardDescNullsLast = 'block_reward_DESC_NULLS_LAST', - BlockTimestampAsc = 'block_timestamp_ASC', - BlockTimestampAscNullsFirst = 'block_timestamp_ASC_NULLS_FIRST', - BlockTimestampAscNullsLast = 'block_timestamp_ASC_NULLS_LAST', - BlockTimestampDesc = 'block_timestamp_DESC', - BlockTimestampDescNullsFirst = 'block_timestamp_DESC_NULLS_FIRST', - BlockTimestampDescNullsLast = 'block_timestamp_DESC_NULLS_LAST', - EventIdAsc = 'event_id_ASC', - EventIdAscNullsFirst = 'event_id_ASC_NULLS_FIRST', - EventIdAscNullsLast = 'event_id_ASC_NULLS_LAST', - EventIdDesc = 'event_id_DESC', - EventIdDescNullsFirst = 'event_id_DESC_NULLS_FIRST', - EventIdDescNullsLast = 'event_id_DESC_NULLS_LAST', - EventTimestampAsc = 'event_timestamp_ASC', - EventTimestampAscNullsFirst = 'event_timestamp_ASC_NULLS_FIRST', - EventTimestampAscNullsLast = 'event_timestamp_ASC_NULLS_LAST', - EventTimestampDesc = 'event_timestamp_DESC', - EventTimestampDescNullsFirst = 'event_timestamp_DESC_NULLS_FIRST', - EventTimestampDescNullsLast = 'event_timestamp_DESC_NULLS_LAST', - EventTypeAsc = 'event_type_ASC', - EventTypeAscNullsFirst = 'event_type_ASC_NULLS_FIRST', - EventTypeAscNullsLast = 'event_type_ASC_NULLS_LAST', - EventTypeDesc = 'event_type_DESC', - EventTypeDescNullsFirst = 'event_type_DESC_NULLS_FIRST', - EventTypeDescNullsLast = 'event_type_DESC_NULLS_LAST', - ExtrinsicArgsAsc = 'extrinsic_args_ASC', - ExtrinsicArgsAscNullsFirst = 'extrinsic_args_ASC_NULLS_FIRST', - ExtrinsicArgsAscNullsLast = 'extrinsic_args_ASC_NULLS_LAST', - ExtrinsicArgsDesc = 'extrinsic_args_DESC', - ExtrinsicArgsDescNullsFirst = 'extrinsic_args_DESC_NULLS_FIRST', - ExtrinsicArgsDescNullsLast = 'extrinsic_args_DESC_NULLS_LAST', - ExtrinsicCallAsc = 'extrinsic_call_ASC', - ExtrinsicCallAscNullsFirst = 'extrinsic_call_ASC_NULLS_FIRST', - ExtrinsicCallAscNullsLast = 'extrinsic_call_ASC_NULLS_LAST', - ExtrinsicCallDesc = 'extrinsic_call_DESC', - ExtrinsicCallDescNullsFirst = 'extrinsic_call_DESC_NULLS_FIRST', - ExtrinsicCallDescNullsLast = 'extrinsic_call_DESC_NULLS_LAST', - ExtrinsicFeeAsc = 'extrinsic_fee_ASC', - ExtrinsicFeeAscNullsFirst = 'extrinsic_fee_ASC_NULLS_FIRST', - ExtrinsicFeeAscNullsLast = 'extrinsic_fee_ASC_NULLS_LAST', - ExtrinsicFeeDesc = 'extrinsic_fee_DESC', - ExtrinsicFeeDescNullsFirst = 'extrinsic_fee_DESC_NULLS_FIRST', - ExtrinsicFeeDescNullsLast = 'extrinsic_fee_DESC_NULLS_LAST', - ExtrinsicIdAsc = 'extrinsic_id_ASC', - ExtrinsicIdAscNullsFirst = 'extrinsic_id_ASC_NULLS_FIRST', - ExtrinsicIdAscNullsLast = 'extrinsic_id_ASC_NULLS_LAST', - ExtrinsicIdDesc = 'extrinsic_id_DESC', - ExtrinsicIdDescNullsFirst = 'extrinsic_id_DESC_NULLS_FIRST', - ExtrinsicIdDescNullsLast = 'extrinsic_id_DESC_NULLS_LAST', - ExtrinsicIndexInBlockAsc = 'extrinsic_indexInBlock_ASC', - ExtrinsicIndexInBlockAscNullsFirst = 'extrinsic_indexInBlock_ASC_NULLS_FIRST', - ExtrinsicIndexInBlockAscNullsLast = 'extrinsic_indexInBlock_ASC_NULLS_LAST', - ExtrinsicIndexInBlockDesc = 'extrinsic_indexInBlock_DESC', - ExtrinsicIndexInBlockDescNullsFirst = 'extrinsic_indexInBlock_DESC_NULLS_FIRST', - ExtrinsicIndexInBlockDescNullsLast = 'extrinsic_indexInBlock_DESC_NULLS_LAST', - ExtrinsicPalletAsc = 'extrinsic_pallet_ASC', - ExtrinsicPalletAscNullsFirst = 'extrinsic_pallet_ASC_NULLS_FIRST', - ExtrinsicPalletAscNullsLast = 'extrinsic_pallet_ASC_NULLS_LAST', - ExtrinsicPalletDesc = 'extrinsic_pallet_DESC', - ExtrinsicPalletDescNullsFirst = 'extrinsic_pallet_DESC_NULLS_FIRST', - ExtrinsicPalletDescNullsLast = 'extrinsic_pallet_DESC_NULLS_LAST', - ExtrinsicSuccessAsc = 'extrinsic_success_ASC', - ExtrinsicSuccessAscNullsFirst = 'extrinsic_success_ASC_NULLS_FIRST', - ExtrinsicSuccessAscNullsLast = 'extrinsic_success_ASC_NULLS_LAST', - ExtrinsicSuccessDesc = 'extrinsic_success_DESC', - ExtrinsicSuccessDescNullsFirst = 'extrinsic_success_DESC_NULLS_FIRST', - ExtrinsicSuccessDescNullsLast = 'extrinsic_success_DESC_NULLS_LAST', - ExtrinsicTimestampAsc = 'extrinsic_timestamp_ASC', - ExtrinsicTimestampAscNullsFirst = 'extrinsic_timestamp_ASC_NULLS_FIRST', - ExtrinsicTimestampAscNullsLast = 'extrinsic_timestamp_ASC_NULLS_LAST', - ExtrinsicTimestampDesc = 'extrinsic_timestamp_DESC', - ExtrinsicTimestampDescNullsFirst = 'extrinsic_timestamp_DESC_NULLS_FIRST', - ExtrinsicTimestampDescNullsLast = 'extrinsic_timestamp_DESC_NULLS_LAST', - FeeAsc = 'fee_ASC', - FeeAscNullsFirst = 'fee_ASC_NULLS_FIRST', - FeeAscNullsLast = 'fee_ASC_NULLS_LAST', - FeeDesc = 'fee_DESC', - FeeDescNullsFirst = 'fee_DESC_NULLS_FIRST', - FeeDescNullsLast = 'fee_DESC_NULLS_LAST', - FromFreeAsc = 'from_free_ASC', - FromFreeAscNullsFirst = 'from_free_ASC_NULLS_FIRST', - FromFreeAscNullsLast = 'from_free_ASC_NULLS_LAST', - FromFreeDesc = 'from_free_DESC', - FromFreeDescNullsFirst = 'from_free_DESC_NULLS_FIRST', - FromFreeDescNullsLast = 'from_free_DESC_NULLS_LAST', - FromFrozenAsc = 'from_frozen_ASC', - FromFrozenAscNullsFirst = 'from_frozen_ASC_NULLS_FIRST', - FromFrozenAscNullsLast = 'from_frozen_ASC_NULLS_LAST', - FromFrozenDesc = 'from_frozen_DESC', - FromFrozenDescNullsFirst = 'from_frozen_DESC_NULLS_FIRST', - FromFrozenDescNullsLast = 'from_frozen_DESC_NULLS_LAST', - FromIdAsc = 'from_id_ASC', - FromIdAscNullsFirst = 'from_id_ASC_NULLS_FIRST', - FromIdAscNullsLast = 'from_id_ASC_NULLS_LAST', - FromIdDesc = 'from_id_DESC', - FromIdDescNullsFirst = 'from_id_DESC_NULLS_FIRST', - FromIdDescNullsLast = 'from_id_DESC_NULLS_LAST', - FromIsDepositOnlyAsc = 'from_isDepositOnly_ASC', - FromIsDepositOnlyAscNullsFirst = 'from_isDepositOnly_ASC_NULLS_FIRST', - FromIsDepositOnlyAscNullsLast = 'from_isDepositOnly_ASC_NULLS_LAST', - FromIsDepositOnlyDesc = 'from_isDepositOnly_DESC', - FromIsDepositOnlyDescNullsFirst = 'from_isDepositOnly_DESC_NULLS_FIRST', - FromIsDepositOnlyDescNullsLast = 'from_isDepositOnly_DESC_NULLS_LAST', - FromLastUpdatedAsc = 'from_lastUpdated_ASC', - FromLastUpdatedAscNullsFirst = 'from_lastUpdated_ASC_NULLS_FIRST', - FromLastUpdatedAscNullsLast = 'from_lastUpdated_ASC_NULLS_LAST', - FromLastUpdatedDesc = 'from_lastUpdated_DESC', - FromLastUpdatedDescNullsFirst = 'from_lastUpdated_DESC_NULLS_FIRST', - FromLastUpdatedDescNullsLast = 'from_lastUpdated_DESC_NULLS_LAST', - FromPrivacyDepositsAsc = 'from_privacyDeposits_ASC', - FromPrivacyDepositsAscNullsFirst = 'from_privacyDeposits_ASC_NULLS_FIRST', - FromPrivacyDepositsAscNullsLast = 'from_privacyDeposits_ASC_NULLS_LAST', - FromPrivacyDepositsDesc = 'from_privacyDeposits_DESC', - FromPrivacyDepositsDescNullsFirst = 'from_privacyDeposits_DESC_NULLS_FIRST', - FromPrivacyDepositsDescNullsLast = 'from_privacyDeposits_DESC_NULLS_LAST', - FromReservedAsc = 'from_reserved_ASC', - FromReservedAscNullsFirst = 'from_reserved_ASC_NULLS_FIRST', - FromReservedAscNullsLast = 'from_reserved_ASC_NULLS_LAST', - FromReservedDesc = 'from_reserved_DESC', - FromReservedDescNullsFirst = 'from_reserved_DESC_NULLS_FIRST', - FromReservedDescNullsLast = 'from_reserved_DESC_NULLS_LAST', - IdAsc = 'id_ASC', - IdAscNullsFirst = 'id_ASC_NULLS_FIRST', - IdAscNullsLast = 'id_ASC_NULLS_LAST', - IdDesc = 'id_DESC', - IdDescNullsFirst = 'id_DESC_NULLS_FIRST', - IdDescNullsLast = 'id_DESC_NULLS_LAST', - ScheduledAtAsc = 'scheduledAt_ASC', - ScheduledAtAscNullsFirst = 'scheduledAt_ASC_NULLS_FIRST', - ScheduledAtAscNullsLast = 'scheduledAt_ASC_NULLS_LAST', - ScheduledAtDesc = 'scheduledAt_DESC', - ScheduledAtDescNullsFirst = 'scheduledAt_DESC_NULLS_FIRST', - ScheduledAtDescNullsLast = 'scheduledAt_DESC_NULLS_LAST', - TimestampAsc = 'timestamp_ASC', - TimestampAscNullsFirst = 'timestamp_ASC_NULLS_FIRST', - TimestampAscNullsLast = 'timestamp_ASC_NULLS_LAST', - TimestampDesc = 'timestamp_DESC', - TimestampDescNullsFirst = 'timestamp_DESC_NULLS_FIRST', - TimestampDescNullsLast = 'timestamp_DESC_NULLS_LAST', - ToFreeAsc = 'to_free_ASC', - ToFreeAscNullsFirst = 'to_free_ASC_NULLS_FIRST', - ToFreeAscNullsLast = 'to_free_ASC_NULLS_LAST', - ToFreeDesc = 'to_free_DESC', - ToFreeDescNullsFirst = 'to_free_DESC_NULLS_FIRST', - ToFreeDescNullsLast = 'to_free_DESC_NULLS_LAST', - ToFrozenAsc = 'to_frozen_ASC', - ToFrozenAscNullsFirst = 'to_frozen_ASC_NULLS_FIRST', - ToFrozenAscNullsLast = 'to_frozen_ASC_NULLS_LAST', - ToFrozenDesc = 'to_frozen_DESC', - ToFrozenDescNullsFirst = 'to_frozen_DESC_NULLS_FIRST', - ToFrozenDescNullsLast = 'to_frozen_DESC_NULLS_LAST', - ToIdAsc = 'to_id_ASC', - ToIdAscNullsFirst = 'to_id_ASC_NULLS_FIRST', - ToIdAscNullsLast = 'to_id_ASC_NULLS_LAST', - ToIdDesc = 'to_id_DESC', - ToIdDescNullsFirst = 'to_id_DESC_NULLS_FIRST', - ToIdDescNullsLast = 'to_id_DESC_NULLS_LAST', - ToIsDepositOnlyAsc = 'to_isDepositOnly_ASC', - ToIsDepositOnlyAscNullsFirst = 'to_isDepositOnly_ASC_NULLS_FIRST', - ToIsDepositOnlyAscNullsLast = 'to_isDepositOnly_ASC_NULLS_LAST', - ToIsDepositOnlyDesc = 'to_isDepositOnly_DESC', - ToIsDepositOnlyDescNullsFirst = 'to_isDepositOnly_DESC_NULLS_FIRST', - ToIsDepositOnlyDescNullsLast = 'to_isDepositOnly_DESC_NULLS_LAST', - ToLastUpdatedAsc = 'to_lastUpdated_ASC', - ToLastUpdatedAscNullsFirst = 'to_lastUpdated_ASC_NULLS_FIRST', - ToLastUpdatedAscNullsLast = 'to_lastUpdated_ASC_NULLS_LAST', - ToLastUpdatedDesc = 'to_lastUpdated_DESC', - ToLastUpdatedDescNullsFirst = 'to_lastUpdated_DESC_NULLS_FIRST', - ToLastUpdatedDescNullsLast = 'to_lastUpdated_DESC_NULLS_LAST', - ToPrivacyDepositsAsc = 'to_privacyDeposits_ASC', - ToPrivacyDepositsAscNullsFirst = 'to_privacyDeposits_ASC_NULLS_FIRST', - ToPrivacyDepositsAscNullsLast = 'to_privacyDeposits_ASC_NULLS_LAST', - ToPrivacyDepositsDesc = 'to_privacyDeposits_DESC', - ToPrivacyDepositsDescNullsFirst = 'to_privacyDeposits_DESC_NULLS_FIRST', - ToPrivacyDepositsDescNullsLast = 'to_privacyDeposits_DESC_NULLS_LAST', - ToReservedAsc = 'to_reserved_ASC', - ToReservedAscNullsFirst = 'to_reserved_ASC_NULLS_FIRST', - ToReservedAscNullsLast = 'to_reserved_ASC_NULLS_LAST', - ToReservedDesc = 'to_reserved_DESC', - ToReservedDescNullsFirst = 'to_reserved_DESC_NULLS_FIRST', - ToReservedDescNullsLast = 'to_reserved_DESC_NULLS_LAST', - TxIdAsc = 'txId_ASC', - TxIdAscNullsFirst = 'txId_ASC_NULLS_FIRST', - TxIdAscNullsLast = 'txId_ASC_NULLS_LAST', - TxIdDesc = 'txId_DESC', - TxIdDescNullsFirst = 'txId_DESC_NULLS_FIRST', - TxIdDescNullsLast = 'txId_DESC_NULLS_LAST' -} - -export type ScheduledReversibleTransferWhereInput = { - AND?: InputMaybe>; - OR?: InputMaybe>; - amount_eq?: InputMaybe; - amount_gt?: InputMaybe; - amount_gte?: InputMaybe; - amount_in?: InputMaybe>; - amount_isNull?: InputMaybe; - amount_lt?: InputMaybe; - amount_lte?: InputMaybe; - amount_not_eq?: InputMaybe; - amount_not_in?: InputMaybe>; - block?: InputMaybe; - block_isNull?: InputMaybe; - event?: InputMaybe; - event_isNull?: InputMaybe; - extrinsic?: InputMaybe; - extrinsic_isNull?: InputMaybe; - fee_eq?: InputMaybe; - fee_gt?: InputMaybe; - fee_gte?: InputMaybe; - fee_in?: InputMaybe>; - fee_isNull?: InputMaybe; - fee_lt?: InputMaybe; - fee_lte?: InputMaybe; - fee_not_eq?: InputMaybe; - fee_not_in?: InputMaybe>; - from?: InputMaybe; - from_isNull?: InputMaybe; - id_contains?: InputMaybe; - id_containsInsensitive?: InputMaybe; - id_endsWith?: InputMaybe; - id_eq?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_isNull?: InputMaybe; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not_contains?: InputMaybe; - id_not_containsInsensitive?: InputMaybe; - id_not_endsWith?: InputMaybe; - id_not_eq?: InputMaybe; - id_not_in?: InputMaybe>; - id_not_startsWith?: InputMaybe; - id_startsWith?: InputMaybe; - scheduledAt_eq?: InputMaybe; - scheduledAt_gt?: InputMaybe; - scheduledAt_gte?: InputMaybe; - scheduledAt_in?: InputMaybe>; - scheduledAt_isNull?: InputMaybe; - scheduledAt_lt?: InputMaybe; - scheduledAt_lte?: InputMaybe; - scheduledAt_not_eq?: InputMaybe; - scheduledAt_not_in?: InputMaybe>; - timestamp_eq?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_isNull?: InputMaybe; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not_eq?: InputMaybe; - timestamp_not_in?: InputMaybe>; - to?: InputMaybe; - to_isNull?: InputMaybe; - txId_contains?: InputMaybe; - txId_containsInsensitive?: InputMaybe; - txId_endsWith?: InputMaybe; - txId_eq?: InputMaybe; - txId_gt?: InputMaybe; - txId_gte?: InputMaybe; - txId_in?: InputMaybe>; - txId_isNull?: InputMaybe; - txId_lt?: InputMaybe; - txId_lte?: InputMaybe; - txId_not_contains?: InputMaybe; - txId_not_containsInsensitive?: InputMaybe; - txId_not_endsWith?: InputMaybe; - txId_not_eq?: InputMaybe; - txId_not_in?: InputMaybe>; - txId_not_startsWith?: InputMaybe; - txId_startsWith?: InputMaybe; -}; - -export type ScheduledReversibleTransfersConnection = { - __typename?: 'ScheduledReversibleTransfersConnection'; - edges: Array; - pageInfo: PageInfo; - totalCount: Scalars['Int']['output']; -}; - -export type SquidStatus = { - __typename?: 'SquidStatus'; - /** The hash of the last processed finalized block */ - finalizedHash?: Maybe; - /** The height of the last processed finalized block */ - finalizedHeight?: Maybe; - /** The hash of the last processed block */ - hash?: Maybe; - /** The height of the last processed block */ - height?: Maybe; +export type Query_RootWormhole_Output_By_PkArgs = { + id: Scalars['String']['input']; }; -export type Transfer = { - __typename?: 'Transfer'; - amount: Scalars['BigInt']['output']; - block: Block; +/** columns and relationships of "scheduled_reversible_transfer" */ +export type Scheduled_Reversible_Transfer = { + __typename?: 'scheduled_reversible_transfer'; + amount: Scalars['numeric']['output']; + /** An object relationship */ + block?: Maybe; + block_id?: Maybe; + /** An object relationship */ event?: Maybe; - executedBy?: Maybe; - /** Link to the extrinsic that caused this transfer (null for transfers from reversible execution) */ + /** An object relationship */ extrinsic?: Maybe; - fee: Scalars['BigInt']['output']; - from: Account; - /** Blake3 hash of raw 'from' address bytes (hex string) for privacy-preserving prefix queries */ - fromHash: Scalars['String']['output']; + extrinsic_id?: Maybe; + fee: Scalars['numeric']['output']; + /** An object relationship */ + from?: Maybe; + from_id?: Maybe; id: Scalars['String']['output']; - /** Index in the ZK trie for Merkle proof generation */ - leafIndex: Scalars['BigInt']['output']; - timestamp: Scalars['DateTime']['output']; - to: Account; - /** Blake3 hash of raw 'to' address bytes (hex string) for privacy-preserving prefix queries */ - toHash: Scalars['String']['output']; - transferCount: Scalars['BigInt']['output']; -}; - -export type TransferEdge = { - __typename?: 'TransferEdge'; - cursor: Scalars['String']['output']; - node: Transfer; -}; - -export enum TransferOrderByInput { - AmountAsc = 'amount_ASC', - AmountAscNullsFirst = 'amount_ASC_NULLS_FIRST', - AmountAscNullsLast = 'amount_ASC_NULLS_LAST', - AmountDesc = 'amount_DESC', - AmountDescNullsFirst = 'amount_DESC_NULLS_FIRST', - AmountDescNullsLast = 'amount_DESC_NULLS_LAST', - BlockHashAsc = 'block_hash_ASC', - BlockHashAscNullsFirst = 'block_hash_ASC_NULLS_FIRST', - BlockHashAscNullsLast = 'block_hash_ASC_NULLS_LAST', - BlockHashDesc = 'block_hash_DESC', - BlockHashDescNullsFirst = 'block_hash_DESC_NULLS_FIRST', - BlockHashDescNullsLast = 'block_hash_DESC_NULLS_LAST', - BlockHeightAsc = 'block_height_ASC', - BlockHeightAscNullsFirst = 'block_height_ASC_NULLS_FIRST', - BlockHeightAscNullsLast = 'block_height_ASC_NULLS_LAST', - BlockHeightDesc = 'block_height_DESC', - BlockHeightDescNullsFirst = 'block_height_DESC_NULLS_FIRST', - BlockHeightDescNullsLast = 'block_height_DESC_NULLS_LAST', - BlockIdAsc = 'block_id_ASC', - BlockIdAscNullsFirst = 'block_id_ASC_NULLS_FIRST', - BlockIdAscNullsLast = 'block_id_ASC_NULLS_LAST', - BlockIdDesc = 'block_id_DESC', - BlockIdDescNullsFirst = 'block_id_DESC_NULLS_FIRST', - BlockIdDescNullsLast = 'block_id_DESC_NULLS_LAST', - BlockRewardAsc = 'block_reward_ASC', - BlockRewardAscNullsFirst = 'block_reward_ASC_NULLS_FIRST', - BlockRewardAscNullsLast = 'block_reward_ASC_NULLS_LAST', - BlockRewardDesc = 'block_reward_DESC', - BlockRewardDescNullsFirst = 'block_reward_DESC_NULLS_FIRST', - BlockRewardDescNullsLast = 'block_reward_DESC_NULLS_LAST', - BlockTimestampAsc = 'block_timestamp_ASC', - BlockTimestampAscNullsFirst = 'block_timestamp_ASC_NULLS_FIRST', - BlockTimestampAscNullsLast = 'block_timestamp_ASC_NULLS_LAST', - BlockTimestampDesc = 'block_timestamp_DESC', - BlockTimestampDescNullsFirst = 'block_timestamp_DESC_NULLS_FIRST', - BlockTimestampDescNullsLast = 'block_timestamp_DESC_NULLS_LAST', - EventIdAsc = 'event_id_ASC', - EventIdAscNullsFirst = 'event_id_ASC_NULLS_FIRST', - EventIdAscNullsLast = 'event_id_ASC_NULLS_LAST', - EventIdDesc = 'event_id_DESC', - EventIdDescNullsFirst = 'event_id_DESC_NULLS_FIRST', - EventIdDescNullsLast = 'event_id_DESC_NULLS_LAST', - EventTimestampAsc = 'event_timestamp_ASC', - EventTimestampAscNullsFirst = 'event_timestamp_ASC_NULLS_FIRST', - EventTimestampAscNullsLast = 'event_timestamp_ASC_NULLS_LAST', - EventTimestampDesc = 'event_timestamp_DESC', - EventTimestampDescNullsFirst = 'event_timestamp_DESC_NULLS_FIRST', - EventTimestampDescNullsLast = 'event_timestamp_DESC_NULLS_LAST', - EventTypeAsc = 'event_type_ASC', - EventTypeAscNullsFirst = 'event_type_ASC_NULLS_FIRST', - EventTypeAscNullsLast = 'event_type_ASC_NULLS_LAST', - EventTypeDesc = 'event_type_DESC', - EventTypeDescNullsFirst = 'event_type_DESC_NULLS_FIRST', - EventTypeDescNullsLast = 'event_type_DESC_NULLS_LAST', - ExecutedByIdAsc = 'executedBy_id_ASC', - ExecutedByIdAscNullsFirst = 'executedBy_id_ASC_NULLS_FIRST', - ExecutedByIdAscNullsLast = 'executedBy_id_ASC_NULLS_LAST', - ExecutedByIdDesc = 'executedBy_id_DESC', - ExecutedByIdDescNullsFirst = 'executedBy_id_DESC_NULLS_FIRST', - ExecutedByIdDescNullsLast = 'executedBy_id_DESC_NULLS_LAST', - ExecutedByTimestampAsc = 'executedBy_timestamp_ASC', - ExecutedByTimestampAscNullsFirst = 'executedBy_timestamp_ASC_NULLS_FIRST', - ExecutedByTimestampAscNullsLast = 'executedBy_timestamp_ASC_NULLS_LAST', - ExecutedByTimestampDesc = 'executedBy_timestamp_DESC', - ExecutedByTimestampDescNullsFirst = 'executedBy_timestamp_DESC_NULLS_FIRST', - ExecutedByTimestampDescNullsLast = 'executedBy_timestamp_DESC_NULLS_LAST', - ExecutedByTxIdAsc = 'executedBy_txId_ASC', - ExecutedByTxIdAscNullsFirst = 'executedBy_txId_ASC_NULLS_FIRST', - ExecutedByTxIdAscNullsLast = 'executedBy_txId_ASC_NULLS_LAST', - ExecutedByTxIdDesc = 'executedBy_txId_DESC', - ExecutedByTxIdDescNullsFirst = 'executedBy_txId_DESC_NULLS_FIRST', - ExecutedByTxIdDescNullsLast = 'executedBy_txId_DESC_NULLS_LAST', - ExtrinsicArgsAsc = 'extrinsic_args_ASC', - ExtrinsicArgsAscNullsFirst = 'extrinsic_args_ASC_NULLS_FIRST', - ExtrinsicArgsAscNullsLast = 'extrinsic_args_ASC_NULLS_LAST', - ExtrinsicArgsDesc = 'extrinsic_args_DESC', - ExtrinsicArgsDescNullsFirst = 'extrinsic_args_DESC_NULLS_FIRST', - ExtrinsicArgsDescNullsLast = 'extrinsic_args_DESC_NULLS_LAST', - ExtrinsicCallAsc = 'extrinsic_call_ASC', - ExtrinsicCallAscNullsFirst = 'extrinsic_call_ASC_NULLS_FIRST', - ExtrinsicCallAscNullsLast = 'extrinsic_call_ASC_NULLS_LAST', - ExtrinsicCallDesc = 'extrinsic_call_DESC', - ExtrinsicCallDescNullsFirst = 'extrinsic_call_DESC_NULLS_FIRST', - ExtrinsicCallDescNullsLast = 'extrinsic_call_DESC_NULLS_LAST', - ExtrinsicFeeAsc = 'extrinsic_fee_ASC', - ExtrinsicFeeAscNullsFirst = 'extrinsic_fee_ASC_NULLS_FIRST', - ExtrinsicFeeAscNullsLast = 'extrinsic_fee_ASC_NULLS_LAST', - ExtrinsicFeeDesc = 'extrinsic_fee_DESC', - ExtrinsicFeeDescNullsFirst = 'extrinsic_fee_DESC_NULLS_FIRST', - ExtrinsicFeeDescNullsLast = 'extrinsic_fee_DESC_NULLS_LAST', - ExtrinsicIdAsc = 'extrinsic_id_ASC', - ExtrinsicIdAscNullsFirst = 'extrinsic_id_ASC_NULLS_FIRST', - ExtrinsicIdAscNullsLast = 'extrinsic_id_ASC_NULLS_LAST', - ExtrinsicIdDesc = 'extrinsic_id_DESC', - ExtrinsicIdDescNullsFirst = 'extrinsic_id_DESC_NULLS_FIRST', - ExtrinsicIdDescNullsLast = 'extrinsic_id_DESC_NULLS_LAST', - ExtrinsicIndexInBlockAsc = 'extrinsic_indexInBlock_ASC', - ExtrinsicIndexInBlockAscNullsFirst = 'extrinsic_indexInBlock_ASC_NULLS_FIRST', - ExtrinsicIndexInBlockAscNullsLast = 'extrinsic_indexInBlock_ASC_NULLS_LAST', - ExtrinsicIndexInBlockDesc = 'extrinsic_indexInBlock_DESC', - ExtrinsicIndexInBlockDescNullsFirst = 'extrinsic_indexInBlock_DESC_NULLS_FIRST', - ExtrinsicIndexInBlockDescNullsLast = 'extrinsic_indexInBlock_DESC_NULLS_LAST', - ExtrinsicPalletAsc = 'extrinsic_pallet_ASC', - ExtrinsicPalletAscNullsFirst = 'extrinsic_pallet_ASC_NULLS_FIRST', - ExtrinsicPalletAscNullsLast = 'extrinsic_pallet_ASC_NULLS_LAST', - ExtrinsicPalletDesc = 'extrinsic_pallet_DESC', - ExtrinsicPalletDescNullsFirst = 'extrinsic_pallet_DESC_NULLS_FIRST', - ExtrinsicPalletDescNullsLast = 'extrinsic_pallet_DESC_NULLS_LAST', - ExtrinsicSuccessAsc = 'extrinsic_success_ASC', - ExtrinsicSuccessAscNullsFirst = 'extrinsic_success_ASC_NULLS_FIRST', - ExtrinsicSuccessAscNullsLast = 'extrinsic_success_ASC_NULLS_LAST', - ExtrinsicSuccessDesc = 'extrinsic_success_DESC', - ExtrinsicSuccessDescNullsFirst = 'extrinsic_success_DESC_NULLS_FIRST', - ExtrinsicSuccessDescNullsLast = 'extrinsic_success_DESC_NULLS_LAST', - ExtrinsicTimestampAsc = 'extrinsic_timestamp_ASC', - ExtrinsicTimestampAscNullsFirst = 'extrinsic_timestamp_ASC_NULLS_FIRST', - ExtrinsicTimestampAscNullsLast = 'extrinsic_timestamp_ASC_NULLS_LAST', - ExtrinsicTimestampDesc = 'extrinsic_timestamp_DESC', - ExtrinsicTimestampDescNullsFirst = 'extrinsic_timestamp_DESC_NULLS_FIRST', - ExtrinsicTimestampDescNullsLast = 'extrinsic_timestamp_DESC_NULLS_LAST', - FeeAsc = 'fee_ASC', - FeeAscNullsFirst = 'fee_ASC_NULLS_FIRST', - FeeAscNullsLast = 'fee_ASC_NULLS_LAST', - FeeDesc = 'fee_DESC', - FeeDescNullsFirst = 'fee_DESC_NULLS_FIRST', - FeeDescNullsLast = 'fee_DESC_NULLS_LAST', - FromHashAsc = 'fromHash_ASC', - FromHashAscNullsFirst = 'fromHash_ASC_NULLS_FIRST', - FromHashAscNullsLast = 'fromHash_ASC_NULLS_LAST', - FromHashDesc = 'fromHash_DESC', - FromHashDescNullsFirst = 'fromHash_DESC_NULLS_FIRST', - FromHashDescNullsLast = 'fromHash_DESC_NULLS_LAST', - FromFreeAsc = 'from_free_ASC', - FromFreeAscNullsFirst = 'from_free_ASC_NULLS_FIRST', - FromFreeAscNullsLast = 'from_free_ASC_NULLS_LAST', - FromFreeDesc = 'from_free_DESC', - FromFreeDescNullsFirst = 'from_free_DESC_NULLS_FIRST', - FromFreeDescNullsLast = 'from_free_DESC_NULLS_LAST', - FromFrozenAsc = 'from_frozen_ASC', - FromFrozenAscNullsFirst = 'from_frozen_ASC_NULLS_FIRST', - FromFrozenAscNullsLast = 'from_frozen_ASC_NULLS_LAST', - FromFrozenDesc = 'from_frozen_DESC', - FromFrozenDescNullsFirst = 'from_frozen_DESC_NULLS_FIRST', - FromFrozenDescNullsLast = 'from_frozen_DESC_NULLS_LAST', - FromIdAsc = 'from_id_ASC', - FromIdAscNullsFirst = 'from_id_ASC_NULLS_FIRST', - FromIdAscNullsLast = 'from_id_ASC_NULLS_LAST', - FromIdDesc = 'from_id_DESC', - FromIdDescNullsFirst = 'from_id_DESC_NULLS_FIRST', - FromIdDescNullsLast = 'from_id_DESC_NULLS_LAST', - FromIsDepositOnlyAsc = 'from_isDepositOnly_ASC', - FromIsDepositOnlyAscNullsFirst = 'from_isDepositOnly_ASC_NULLS_FIRST', - FromIsDepositOnlyAscNullsLast = 'from_isDepositOnly_ASC_NULLS_LAST', - FromIsDepositOnlyDesc = 'from_isDepositOnly_DESC', - FromIsDepositOnlyDescNullsFirst = 'from_isDepositOnly_DESC_NULLS_FIRST', - FromIsDepositOnlyDescNullsLast = 'from_isDepositOnly_DESC_NULLS_LAST', - FromLastUpdatedAsc = 'from_lastUpdated_ASC', - FromLastUpdatedAscNullsFirst = 'from_lastUpdated_ASC_NULLS_FIRST', - FromLastUpdatedAscNullsLast = 'from_lastUpdated_ASC_NULLS_LAST', - FromLastUpdatedDesc = 'from_lastUpdated_DESC', - FromLastUpdatedDescNullsFirst = 'from_lastUpdated_DESC_NULLS_FIRST', - FromLastUpdatedDescNullsLast = 'from_lastUpdated_DESC_NULLS_LAST', - FromPrivacyDepositsAsc = 'from_privacyDeposits_ASC', - FromPrivacyDepositsAscNullsFirst = 'from_privacyDeposits_ASC_NULLS_FIRST', - FromPrivacyDepositsAscNullsLast = 'from_privacyDeposits_ASC_NULLS_LAST', - FromPrivacyDepositsDesc = 'from_privacyDeposits_DESC', - FromPrivacyDepositsDescNullsFirst = 'from_privacyDeposits_DESC_NULLS_FIRST', - FromPrivacyDepositsDescNullsLast = 'from_privacyDeposits_DESC_NULLS_LAST', - FromReservedAsc = 'from_reserved_ASC', - FromReservedAscNullsFirst = 'from_reserved_ASC_NULLS_FIRST', - FromReservedAscNullsLast = 'from_reserved_ASC_NULLS_LAST', - FromReservedDesc = 'from_reserved_DESC', - FromReservedDescNullsFirst = 'from_reserved_DESC_NULLS_FIRST', - FromReservedDescNullsLast = 'from_reserved_DESC_NULLS_LAST', - IdAsc = 'id_ASC', - IdAscNullsFirst = 'id_ASC_NULLS_FIRST', - IdAscNullsLast = 'id_ASC_NULLS_LAST', - IdDesc = 'id_DESC', - IdDescNullsFirst = 'id_DESC_NULLS_FIRST', - IdDescNullsLast = 'id_DESC_NULLS_LAST', - LeafIndexAsc = 'leafIndex_ASC', - LeafIndexAscNullsFirst = 'leafIndex_ASC_NULLS_FIRST', - LeafIndexAscNullsLast = 'leafIndex_ASC_NULLS_LAST', - LeafIndexDesc = 'leafIndex_DESC', - LeafIndexDescNullsFirst = 'leafIndex_DESC_NULLS_FIRST', - LeafIndexDescNullsLast = 'leafIndex_DESC_NULLS_LAST', - TimestampAsc = 'timestamp_ASC', - TimestampAscNullsFirst = 'timestamp_ASC_NULLS_FIRST', - TimestampAscNullsLast = 'timestamp_ASC_NULLS_LAST', - TimestampDesc = 'timestamp_DESC', - TimestampDescNullsFirst = 'timestamp_DESC_NULLS_FIRST', - TimestampDescNullsLast = 'timestamp_DESC_NULLS_LAST', - ToHashAsc = 'toHash_ASC', - ToHashAscNullsFirst = 'toHash_ASC_NULLS_FIRST', - ToHashAscNullsLast = 'toHash_ASC_NULLS_LAST', - ToHashDesc = 'toHash_DESC', - ToHashDescNullsFirst = 'toHash_DESC_NULLS_FIRST', - ToHashDescNullsLast = 'toHash_DESC_NULLS_LAST', - ToFreeAsc = 'to_free_ASC', - ToFreeAscNullsFirst = 'to_free_ASC_NULLS_FIRST', - ToFreeAscNullsLast = 'to_free_ASC_NULLS_LAST', - ToFreeDesc = 'to_free_DESC', - ToFreeDescNullsFirst = 'to_free_DESC_NULLS_FIRST', - ToFreeDescNullsLast = 'to_free_DESC_NULLS_LAST', - ToFrozenAsc = 'to_frozen_ASC', - ToFrozenAscNullsFirst = 'to_frozen_ASC_NULLS_FIRST', - ToFrozenAscNullsLast = 'to_frozen_ASC_NULLS_LAST', - ToFrozenDesc = 'to_frozen_DESC', - ToFrozenDescNullsFirst = 'to_frozen_DESC_NULLS_FIRST', - ToFrozenDescNullsLast = 'to_frozen_DESC_NULLS_LAST', - ToIdAsc = 'to_id_ASC', - ToIdAscNullsFirst = 'to_id_ASC_NULLS_FIRST', - ToIdAscNullsLast = 'to_id_ASC_NULLS_LAST', - ToIdDesc = 'to_id_DESC', - ToIdDescNullsFirst = 'to_id_DESC_NULLS_FIRST', - ToIdDescNullsLast = 'to_id_DESC_NULLS_LAST', - ToIsDepositOnlyAsc = 'to_isDepositOnly_ASC', - ToIsDepositOnlyAscNullsFirst = 'to_isDepositOnly_ASC_NULLS_FIRST', - ToIsDepositOnlyAscNullsLast = 'to_isDepositOnly_ASC_NULLS_LAST', - ToIsDepositOnlyDesc = 'to_isDepositOnly_DESC', - ToIsDepositOnlyDescNullsFirst = 'to_isDepositOnly_DESC_NULLS_FIRST', - ToIsDepositOnlyDescNullsLast = 'to_isDepositOnly_DESC_NULLS_LAST', - ToLastUpdatedAsc = 'to_lastUpdated_ASC', - ToLastUpdatedAscNullsFirst = 'to_lastUpdated_ASC_NULLS_FIRST', - ToLastUpdatedAscNullsLast = 'to_lastUpdated_ASC_NULLS_LAST', - ToLastUpdatedDesc = 'to_lastUpdated_DESC', - ToLastUpdatedDescNullsFirst = 'to_lastUpdated_DESC_NULLS_FIRST', - ToLastUpdatedDescNullsLast = 'to_lastUpdated_DESC_NULLS_LAST', - ToPrivacyDepositsAsc = 'to_privacyDeposits_ASC', - ToPrivacyDepositsAscNullsFirst = 'to_privacyDeposits_ASC_NULLS_FIRST', - ToPrivacyDepositsAscNullsLast = 'to_privacyDeposits_ASC_NULLS_LAST', - ToPrivacyDepositsDesc = 'to_privacyDeposits_DESC', - ToPrivacyDepositsDescNullsFirst = 'to_privacyDeposits_DESC_NULLS_FIRST', - ToPrivacyDepositsDescNullsLast = 'to_privacyDeposits_DESC_NULLS_LAST', - ToReservedAsc = 'to_reserved_ASC', - ToReservedAscNullsFirst = 'to_reserved_ASC_NULLS_FIRST', - ToReservedAscNullsLast = 'to_reserved_ASC_NULLS_LAST', - ToReservedDesc = 'to_reserved_DESC', - ToReservedDescNullsFirst = 'to_reserved_DESC_NULLS_FIRST', - ToReservedDescNullsLast = 'to_reserved_DESC_NULLS_LAST', - TransferCountAsc = 'transferCount_ASC', - TransferCountAscNullsFirst = 'transferCount_ASC_NULLS_FIRST', - TransferCountAscNullsLast = 'transferCount_ASC_NULLS_LAST', - TransferCountDesc = 'transferCount_DESC', - TransferCountDescNullsFirst = 'transferCount_DESC_NULLS_FIRST', - TransferCountDescNullsLast = 'transferCount_DESC_NULLS_LAST' + scheduled_at: Scalars['timestamptz']['output']; + timestamp: Scalars['timestamptz']['output']; + /** An object relationship */ + to?: Maybe; + to_id?: Maybe; + tx_id: Scalars['String']['output']; +}; + +/** aggregated selection of "scheduled_reversible_transfer" */ +export type Scheduled_Reversible_Transfer_Aggregate = { + __typename?: 'scheduled_reversible_transfer_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "scheduled_reversible_transfer" */ +export type Scheduled_Reversible_Transfer_Aggregate_Fields = { + __typename?: 'scheduled_reversible_transfer_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + +/** aggregate fields of "scheduled_reversible_transfer" */ +export type Scheduled_Reversible_Transfer_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type Scheduled_Reversible_Transfer_Avg_Fields = { + __typename?: 'scheduled_reversible_transfer_avg_fields'; + amount?: Maybe; + fee?: Maybe; +}; + +/** Boolean expression to filter rows from the table "scheduled_reversible_transfer". All fields are combined with a logical 'AND'. */ +export type Scheduled_Reversible_Transfer_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + amount?: InputMaybe; + block?: InputMaybe; + block_id?: InputMaybe; + event?: InputMaybe; + extrinsic?: InputMaybe; + extrinsic_id?: InputMaybe; + fee?: InputMaybe; + from?: InputMaybe; + from_id?: InputMaybe; + id?: InputMaybe; + scheduled_at?: InputMaybe; + timestamp?: InputMaybe; + to?: InputMaybe; + to_id?: InputMaybe; + tx_id?: InputMaybe; +}; + +/** aggregate max on columns */ +export type Scheduled_Reversible_Transfer_Max_Fields = { + __typename?: 'scheduled_reversible_transfer_max_fields'; + amount?: Maybe; + block_id?: Maybe; + extrinsic_id?: Maybe; + fee?: Maybe; + from_id?: Maybe; + id?: Maybe; + scheduled_at?: Maybe; + timestamp?: Maybe; + to_id?: Maybe; + tx_id?: Maybe; +}; + +/** aggregate min on columns */ +export type Scheduled_Reversible_Transfer_Min_Fields = { + __typename?: 'scheduled_reversible_transfer_min_fields'; + amount?: Maybe; + block_id?: Maybe; + extrinsic_id?: Maybe; + fee?: Maybe; + from_id?: Maybe; + id?: Maybe; + scheduled_at?: Maybe; + timestamp?: Maybe; + to_id?: Maybe; + tx_id?: Maybe; +}; + +/** Ordering options when selecting data from "scheduled_reversible_transfer". */ +export type Scheduled_Reversible_Transfer_Order_By = { + amount?: InputMaybe; + block?: InputMaybe; + block_id?: InputMaybe; + event?: InputMaybe; + extrinsic?: InputMaybe; + extrinsic_id?: InputMaybe; + fee?: InputMaybe; + from?: InputMaybe; + from_id?: InputMaybe; + id?: InputMaybe; + scheduled_at?: InputMaybe; + timestamp?: InputMaybe; + to?: InputMaybe; + to_id?: InputMaybe; + tx_id?: InputMaybe; +}; + +/** select columns of table "scheduled_reversible_transfer" */ +export enum Scheduled_Reversible_Transfer_Select_Column { + /** column name */ + Amount = 'amount', + /** column name */ + BlockId = 'block_id', + /** column name */ + ExtrinsicId = 'extrinsic_id', + /** column name */ + Fee = 'fee', + /** column name */ + FromId = 'from_id', + /** column name */ + Id = 'id', + /** column name */ + ScheduledAt = 'scheduled_at', + /** column name */ + Timestamp = 'timestamp', + /** column name */ + ToId = 'to_id', + /** column name */ + TxId = 'tx_id' } -export type TransferWhereInput = { - AND?: InputMaybe>; - OR?: InputMaybe>; - amount_eq?: InputMaybe; - amount_gt?: InputMaybe; - amount_gte?: InputMaybe; - amount_in?: InputMaybe>; - amount_isNull?: InputMaybe; - amount_lt?: InputMaybe; - amount_lte?: InputMaybe; - amount_not_eq?: InputMaybe; - amount_not_in?: InputMaybe>; - block?: InputMaybe; - block_isNull?: InputMaybe; - event?: InputMaybe; - event_isNull?: InputMaybe; - executedBy?: InputMaybe; - executedBy_isNull?: InputMaybe; - extrinsic?: InputMaybe; - extrinsic_isNull?: InputMaybe; - fee_eq?: InputMaybe; - fee_gt?: InputMaybe; - fee_gte?: InputMaybe; - fee_in?: InputMaybe>; - fee_isNull?: InputMaybe; - fee_lt?: InputMaybe; - fee_lte?: InputMaybe; - fee_not_eq?: InputMaybe; - fee_not_in?: InputMaybe>; - from?: InputMaybe; - fromHash_contains?: InputMaybe; - fromHash_containsInsensitive?: InputMaybe; - fromHash_endsWith?: InputMaybe; - fromHash_eq?: InputMaybe; - fromHash_gt?: InputMaybe; - fromHash_gte?: InputMaybe; - fromHash_in?: InputMaybe>; - fromHash_isNull?: InputMaybe; - fromHash_lt?: InputMaybe; - fromHash_lte?: InputMaybe; - fromHash_not_contains?: InputMaybe; - fromHash_not_containsInsensitive?: InputMaybe; - fromHash_not_endsWith?: InputMaybe; - fromHash_not_eq?: InputMaybe; - fromHash_not_in?: InputMaybe>; - fromHash_not_startsWith?: InputMaybe; - fromHash_startsWith?: InputMaybe; - from_isNull?: InputMaybe; - id_contains?: InputMaybe; - id_containsInsensitive?: InputMaybe; - id_endsWith?: InputMaybe; - id_eq?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_isNull?: InputMaybe; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not_contains?: InputMaybe; - id_not_containsInsensitive?: InputMaybe; - id_not_endsWith?: InputMaybe; - id_not_eq?: InputMaybe; - id_not_in?: InputMaybe>; - id_not_startsWith?: InputMaybe; - id_startsWith?: InputMaybe; - leafIndex_eq?: InputMaybe; - leafIndex_gt?: InputMaybe; - leafIndex_gte?: InputMaybe; - leafIndex_in?: InputMaybe>; - leafIndex_isNull?: InputMaybe; - leafIndex_lt?: InputMaybe; - leafIndex_lte?: InputMaybe; - leafIndex_not_eq?: InputMaybe; - leafIndex_not_in?: InputMaybe>; - timestamp_eq?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_isNull?: InputMaybe; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not_eq?: InputMaybe; - timestamp_not_in?: InputMaybe>; - to?: InputMaybe; - toHash_contains?: InputMaybe; - toHash_containsInsensitive?: InputMaybe; - toHash_endsWith?: InputMaybe; - toHash_eq?: InputMaybe; - toHash_gt?: InputMaybe; - toHash_gte?: InputMaybe; - toHash_in?: InputMaybe>; - toHash_isNull?: InputMaybe; - toHash_lt?: InputMaybe; - toHash_lte?: InputMaybe; - toHash_not_contains?: InputMaybe; - toHash_not_containsInsensitive?: InputMaybe; - toHash_not_endsWith?: InputMaybe; - toHash_not_eq?: InputMaybe; - toHash_not_in?: InputMaybe>; - toHash_not_startsWith?: InputMaybe; - toHash_startsWith?: InputMaybe; - to_isNull?: InputMaybe; - transferCount_eq?: InputMaybe; - transferCount_gt?: InputMaybe; - transferCount_gte?: InputMaybe; - transferCount_in?: InputMaybe>; - transferCount_isNull?: InputMaybe; - transferCount_lt?: InputMaybe; - transferCount_lte?: InputMaybe; - transferCount_not_eq?: InputMaybe; - transferCount_not_in?: InputMaybe>; -}; - -export type TransferWithHash = { - __typename?: 'TransferWithHash'; - amount: Scalars['BigInt']['output']; - blockHeight: Scalars['Int']['output']; - blockId: Scalars['String']['output']; - extrinsicHash?: Maybe; - fee: Scalars['BigInt']['output']; - fromHash: Scalars['String']['output']; - fromId: Scalars['String']['output']; - id: Scalars['String']['output']; - leafIndex: Scalars['BigInt']['output']; - timestamp: Scalars['DateTime']['output']; - toHash: Scalars['String']['output']; - toId: Scalars['String']['output']; - transferCount: Scalars['BigInt']['output']; +/** aggregate stddev on columns */ +export type Scheduled_Reversible_Transfer_Stddev_Fields = { + __typename?: 'scheduled_reversible_transfer_stddev_fields'; + amount?: Maybe; + fee?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type Scheduled_Reversible_Transfer_Stddev_Pop_Fields = { + __typename?: 'scheduled_reversible_transfer_stddev_pop_fields'; + amount?: Maybe; + fee?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type Scheduled_Reversible_Transfer_Stddev_Samp_Fields = { + __typename?: 'scheduled_reversible_transfer_stddev_samp_fields'; + amount?: Maybe; + fee?: Maybe; +}; + +/** Streaming cursor of the table "scheduled_reversible_transfer" */ +export type Scheduled_Reversible_Transfer_Stream_Cursor_Input = { + /** Stream column input with initial value */ + initial_value: Scheduled_Reversible_Transfer_Stream_Cursor_Value_Input; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type Scheduled_Reversible_Transfer_Stream_Cursor_Value_Input = { + amount?: InputMaybe; + block_id?: InputMaybe; + extrinsic_id?: InputMaybe; + fee?: InputMaybe; + from_id?: InputMaybe; + id?: InputMaybe; + scheduled_at?: InputMaybe; + timestamp?: InputMaybe; + to_id?: InputMaybe; + tx_id?: InputMaybe; +}; + +/** aggregate sum on columns */ +export type Scheduled_Reversible_Transfer_Sum_Fields = { + __typename?: 'scheduled_reversible_transfer_sum_fields'; + amount?: Maybe; + fee?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type Scheduled_Reversible_Transfer_Var_Pop_Fields = { + __typename?: 'scheduled_reversible_transfer_var_pop_fields'; + amount?: Maybe; + fee?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type Scheduled_Reversible_Transfer_Var_Samp_Fields = { + __typename?: 'scheduled_reversible_transfer_var_samp_fields'; + amount?: Maybe; + fee?: Maybe; +}; + +/** aggregate variance on columns */ +export type Scheduled_Reversible_Transfer_Variance_Fields = { + __typename?: 'scheduled_reversible_transfer_variance_fields'; + amount?: Maybe; + fee?: Maybe; +}; + +export type Subscription_Root = { + __typename?: 'subscription_root'; + /** fetch data from the table: "account" */ + account: Array; + /** fetch aggregated fields from the table: "account" */ + account_aggregate: Account_Aggregate; + /** fetch data from the table: "account" using primary key columns */ + account_by_pk?: Maybe; + /** fetch data from the table: "account_event" */ + account_event: Array; + /** fetch aggregated fields from the table: "account_event" */ + account_event_aggregate: Account_Event_Aggregate; + /** fetch data from the table: "account_event" using primary key columns */ + account_event_by_pk?: Maybe; + /** fetch data from the table in a streaming manner: "account_event" */ + account_event_stream: Array; + /** fetch data from the table: "account_stats" */ + account_stats: Array; + /** fetch aggregated fields from the table: "account_stats" */ + account_stats_aggregate: Account_Stats_Aggregate; + /** fetch data from the table: "account_stats" using primary key columns */ + account_stats_by_pk?: Maybe; + /** fetch data from the table in a streaming manner: "account_stats" */ + account_stats_stream: Array; + /** fetch data from the table in a streaming manner: "account" */ + account_stream: Array; + /** fetch data from the table: "block" */ + block: Array; + /** fetch aggregated fields from the table: "block" */ + block_aggregate: Block_Aggregate; + /** fetch data from the table: "block" using primary key columns */ + block_by_pk?: Maybe; + /** fetch data from the table in a streaming manner: "block" */ + block_stream: Array; + /** fetch data from the table: "cancelled_reversible_transfer" */ + cancelled_reversible_transfer: Array; + /** fetch aggregated fields from the table: "cancelled_reversible_transfer" */ + cancelled_reversible_transfer_aggregate: Cancelled_Reversible_Transfer_Aggregate; + /** fetch data from the table: "cancelled_reversible_transfer" using primary key columns */ + cancelled_reversible_transfer_by_pk?: Maybe; + /** fetch data from the table in a streaming manner: "cancelled_reversible_transfer" */ + cancelled_reversible_transfer_stream: Array; + /** fetch data from the table: "chain_stats" */ + chain_stats: Array; + /** fetch aggregated fields from the table: "chain_stats" */ + chain_stats_aggregate: Chain_Stats_Aggregate; + /** fetch data from the table: "chain_stats" using primary key columns */ + chain_stats_by_pk?: Maybe; + /** fetch data from the table in a streaming manner: "chain_stats" */ + chain_stats_stream: Array; + /** fetch data from the table: "deposit_pool_stats" */ + deposit_pool_stats: Array; + /** fetch aggregated fields from the table: "deposit_pool_stats" */ + deposit_pool_stats_aggregate: Deposit_Pool_Stats_Aggregate; + /** fetch data from the table: "deposit_pool_stats" using primary key columns */ + deposit_pool_stats_by_pk?: Maybe; + /** fetch data from the table in a streaming manner: "deposit_pool_stats" */ + deposit_pool_stats_stream: Array; + /** fetch data from the table: "error_event" */ + error_event: Array; + /** fetch aggregated fields from the table: "error_event" */ + error_event_aggregate: Error_Event_Aggregate; + /** fetch data from the table: "error_event" using primary key columns */ + error_event_by_pk?: Maybe; + /** fetch data from the table in a streaming manner: "error_event" */ + error_event_stream: Array; + /** fetch data from the table: "event" */ + event: Array; + /** fetch aggregated fields from the table: "event" */ + event_aggregate: Event_Aggregate; + /** fetch data from the table: "event" using primary key columns */ + event_by_pk?: Maybe; + /** fetch data from the table in a streaming manner: "event" */ + event_stream: Array; + /** fetch data from the table: "executed_reversible_transfer" */ + executed_reversible_transfer: Array; + /** fetch aggregated fields from the table: "executed_reversible_transfer" */ + executed_reversible_transfer_aggregate: Executed_Reversible_Transfer_Aggregate; + /** fetch data from the table: "executed_reversible_transfer" using primary key columns */ + executed_reversible_transfer_by_pk?: Maybe; + /** fetch data from the table in a streaming manner: "executed_reversible_transfer" */ + executed_reversible_transfer_stream: Array; + /** fetch data from the table: "extrinsic" */ + extrinsic: Array; + /** fetch aggregated fields from the table: "extrinsic" */ + extrinsic_aggregate: Extrinsic_Aggregate; + /** fetch data from the table: "extrinsic" using primary key columns */ + extrinsic_by_pk?: Maybe; + /** fetch data from the table in a streaming manner: "extrinsic" */ + extrinsic_stream: Array; + /** fetch data from the table: "high_security_set" */ + high_security_set: Array; + /** fetch aggregated fields from the table: "high_security_set" */ + high_security_set_aggregate: High_Security_Set_Aggregate; + /** fetch data from the table: "high_security_set" using primary key columns */ + high_security_set_by_pk?: Maybe; + /** fetch data from the table in a streaming manner: "high_security_set" */ + high_security_set_stream: Array; + /** fetch data from the table: "miner_reward" */ + miner_reward: Array; + /** fetch aggregated fields from the table: "miner_reward" */ + miner_reward_aggregate: Miner_Reward_Aggregate; + /** fetch data from the table: "miner_reward" using primary key columns */ + miner_reward_by_pk?: Maybe; + /** fetch data from the table in a streaming manner: "miner_reward" */ + miner_reward_stream: Array; + /** fetch data from the table: "scheduled_reversible_transfer" */ + scheduled_reversible_transfer: Array; + /** fetch aggregated fields from the table: "scheduled_reversible_transfer" */ + scheduled_reversible_transfer_aggregate: Scheduled_Reversible_Transfer_Aggregate; + /** fetch data from the table: "scheduled_reversible_transfer" using primary key columns */ + scheduled_reversible_transfer_by_pk?: Maybe; + /** fetch data from the table in a streaming manner: "scheduled_reversible_transfer" */ + scheduled_reversible_transfer_stream: Array; + /** fetch data from the table: "transfer" */ + transfer: Array; + /** fetch aggregated fields from the table: "transfer" */ + transfer_aggregate: Transfer_Aggregate; + /** fetch data from the table: "transfer" using primary key columns */ + transfer_by_pk?: Maybe; + /** fetch data from the table in a streaming manner: "transfer" */ + transfer_stream: Array; + /** fetch data from the table: "wormhole_extrinsic" */ + wormhole_extrinsic: Array; + /** fetch aggregated fields from the table: "wormhole_extrinsic" */ + wormhole_extrinsic_aggregate: Wormhole_Extrinsic_Aggregate; + /** fetch data from the table: "wormhole_extrinsic" using primary key columns */ + wormhole_extrinsic_by_pk?: Maybe; + /** fetch data from the table in a streaming manner: "wormhole_extrinsic" */ + wormhole_extrinsic_stream: Array; + /** fetch data from the table: "wormhole_nullifier" */ + wormhole_nullifier: Array; + /** fetch aggregated fields from the table: "wormhole_nullifier" */ + wormhole_nullifier_aggregate: Wormhole_Nullifier_Aggregate; + /** fetch data from the table: "wormhole_nullifier" using primary key columns */ + wormhole_nullifier_by_pk?: Maybe; + /** fetch data from the table in a streaming manner: "wormhole_nullifier" */ + wormhole_nullifier_stream: Array; + /** fetch data from the table: "wormhole_output" */ + wormhole_output: Array; + /** fetch aggregated fields from the table: "wormhole_output" */ + wormhole_output_aggregate: Wormhole_Output_Aggregate; + /** fetch data from the table: "wormhole_output" using primary key columns */ + wormhole_output_by_pk?: Maybe; + /** fetch data from the table in a streaming manner: "wormhole_output" */ + wormhole_output_stream: Array; +}; + +export type Subscription_RootAccountArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type TransfersByPrefixInput = { - afterBlock?: InputMaybe; - beforeBlock?: InputMaybe; - fromHashPrefixes?: InputMaybe>; +export type Subscription_RootAccount_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; - maxAmount?: InputMaybe; - minAmount?: InputMaybe; offset?: InputMaybe; - toHashPrefixes?: InputMaybe>; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type TransfersByPrefixResult = { - __typename?: 'TransfersByPrefixResult'; - totalCount: Scalars['Int']['output']; - transfers: Array; +export type Subscription_RootAccount_By_PkArgs = { + id: Scalars['String']['input']; }; -export type TransfersConnection = { - __typename?: 'TransfersConnection'; - edges: Array; - pageInfo: PageInfo; - totalCount: Scalars['Int']['output']; +export type Subscription_RootAccount_EventArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -/** A single wormhole proof verification extrinsic, containing one or more exit outputs. */ -export type WormholeExtrinsic = { - __typename?: 'WormholeExtrinsic'; - block: Block; - /** Link to the generic Extrinsic entity */ - extrinsic?: Maybe; - id: Scalars['String']['output']; - /** Number of non-zero exit outputs */ - outputCount: Scalars['Int']['output']; - /** Individual exit outputs in this extrinsic */ - outputs: Array; - /** Pool snapshot at time of proof verification (JSON bucket data) */ - poolSnapshot: Scalars['String']['output']; - /** Human-readable privacy label */ - privacyLabel: Scalars['String']['output']; - /** Privacy score at 0.01 DEV precision, in bits */ - privacyScore: Scalars['Float']['output']; - /** Privacy score with 0.1% sacrifice, in bits */ - privacyScore01Pct: Scalars['Float']['output']; - /** Privacy score with 1% sacrifice, in bits */ - privacyScore1Pct: Scalars['Float']['output']; - /** Privacy score with 5% sacrifice, in bits */ - privacyScore5Pct: Scalars['Float']['output']; - timestamp: Scalars['DateTime']['output']; - /** Total amount across all outputs in this extrinsic */ - totalAmount: Scalars['BigInt']['output']; -}; - -/** A single wormhole proof verification extrinsic, containing one or more exit outputs. */ -export type WormholeExtrinsicOutputsArgs = { +export type Subscription_RootAccount_Event_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - orderBy?: InputMaybe>; - where?: InputMaybe; -}; - -export type WormholeExtrinsicEdge = { - __typename?: 'WormholeExtrinsicEdge'; - cursor: Scalars['String']['output']; - node: WormholeExtrinsic; -}; - -export enum WormholeExtrinsicOrderByInput { - BlockHashAsc = 'block_hash_ASC', - BlockHashAscNullsFirst = 'block_hash_ASC_NULLS_FIRST', - BlockHashAscNullsLast = 'block_hash_ASC_NULLS_LAST', - BlockHashDesc = 'block_hash_DESC', - BlockHashDescNullsFirst = 'block_hash_DESC_NULLS_FIRST', - BlockHashDescNullsLast = 'block_hash_DESC_NULLS_LAST', - BlockHeightAsc = 'block_height_ASC', - BlockHeightAscNullsFirst = 'block_height_ASC_NULLS_FIRST', - BlockHeightAscNullsLast = 'block_height_ASC_NULLS_LAST', - BlockHeightDesc = 'block_height_DESC', - BlockHeightDescNullsFirst = 'block_height_DESC_NULLS_FIRST', - BlockHeightDescNullsLast = 'block_height_DESC_NULLS_LAST', - BlockIdAsc = 'block_id_ASC', - BlockIdAscNullsFirst = 'block_id_ASC_NULLS_FIRST', - BlockIdAscNullsLast = 'block_id_ASC_NULLS_LAST', - BlockIdDesc = 'block_id_DESC', - BlockIdDescNullsFirst = 'block_id_DESC_NULLS_FIRST', - BlockIdDescNullsLast = 'block_id_DESC_NULLS_LAST', - BlockRewardAsc = 'block_reward_ASC', - BlockRewardAscNullsFirst = 'block_reward_ASC_NULLS_FIRST', - BlockRewardAscNullsLast = 'block_reward_ASC_NULLS_LAST', - BlockRewardDesc = 'block_reward_DESC', - BlockRewardDescNullsFirst = 'block_reward_DESC_NULLS_FIRST', - BlockRewardDescNullsLast = 'block_reward_DESC_NULLS_LAST', - BlockTimestampAsc = 'block_timestamp_ASC', - BlockTimestampAscNullsFirst = 'block_timestamp_ASC_NULLS_FIRST', - BlockTimestampAscNullsLast = 'block_timestamp_ASC_NULLS_LAST', - BlockTimestampDesc = 'block_timestamp_DESC', - BlockTimestampDescNullsFirst = 'block_timestamp_DESC_NULLS_FIRST', - BlockTimestampDescNullsLast = 'block_timestamp_DESC_NULLS_LAST', - ExtrinsicArgsAsc = 'extrinsic_args_ASC', - ExtrinsicArgsAscNullsFirst = 'extrinsic_args_ASC_NULLS_FIRST', - ExtrinsicArgsAscNullsLast = 'extrinsic_args_ASC_NULLS_LAST', - ExtrinsicArgsDesc = 'extrinsic_args_DESC', - ExtrinsicArgsDescNullsFirst = 'extrinsic_args_DESC_NULLS_FIRST', - ExtrinsicArgsDescNullsLast = 'extrinsic_args_DESC_NULLS_LAST', - ExtrinsicCallAsc = 'extrinsic_call_ASC', - ExtrinsicCallAscNullsFirst = 'extrinsic_call_ASC_NULLS_FIRST', - ExtrinsicCallAscNullsLast = 'extrinsic_call_ASC_NULLS_LAST', - ExtrinsicCallDesc = 'extrinsic_call_DESC', - ExtrinsicCallDescNullsFirst = 'extrinsic_call_DESC_NULLS_FIRST', - ExtrinsicCallDescNullsLast = 'extrinsic_call_DESC_NULLS_LAST', - ExtrinsicFeeAsc = 'extrinsic_fee_ASC', - ExtrinsicFeeAscNullsFirst = 'extrinsic_fee_ASC_NULLS_FIRST', - ExtrinsicFeeAscNullsLast = 'extrinsic_fee_ASC_NULLS_LAST', - ExtrinsicFeeDesc = 'extrinsic_fee_DESC', - ExtrinsicFeeDescNullsFirst = 'extrinsic_fee_DESC_NULLS_FIRST', - ExtrinsicFeeDescNullsLast = 'extrinsic_fee_DESC_NULLS_LAST', - ExtrinsicIdAsc = 'extrinsic_id_ASC', - ExtrinsicIdAscNullsFirst = 'extrinsic_id_ASC_NULLS_FIRST', - ExtrinsicIdAscNullsLast = 'extrinsic_id_ASC_NULLS_LAST', - ExtrinsicIdDesc = 'extrinsic_id_DESC', - ExtrinsicIdDescNullsFirst = 'extrinsic_id_DESC_NULLS_FIRST', - ExtrinsicIdDescNullsLast = 'extrinsic_id_DESC_NULLS_LAST', - ExtrinsicIndexInBlockAsc = 'extrinsic_indexInBlock_ASC', - ExtrinsicIndexInBlockAscNullsFirst = 'extrinsic_indexInBlock_ASC_NULLS_FIRST', - ExtrinsicIndexInBlockAscNullsLast = 'extrinsic_indexInBlock_ASC_NULLS_LAST', - ExtrinsicIndexInBlockDesc = 'extrinsic_indexInBlock_DESC', - ExtrinsicIndexInBlockDescNullsFirst = 'extrinsic_indexInBlock_DESC_NULLS_FIRST', - ExtrinsicIndexInBlockDescNullsLast = 'extrinsic_indexInBlock_DESC_NULLS_LAST', - ExtrinsicPalletAsc = 'extrinsic_pallet_ASC', - ExtrinsicPalletAscNullsFirst = 'extrinsic_pallet_ASC_NULLS_FIRST', - ExtrinsicPalletAscNullsLast = 'extrinsic_pallet_ASC_NULLS_LAST', - ExtrinsicPalletDesc = 'extrinsic_pallet_DESC', - ExtrinsicPalletDescNullsFirst = 'extrinsic_pallet_DESC_NULLS_FIRST', - ExtrinsicPalletDescNullsLast = 'extrinsic_pallet_DESC_NULLS_LAST', - ExtrinsicSuccessAsc = 'extrinsic_success_ASC', - ExtrinsicSuccessAscNullsFirst = 'extrinsic_success_ASC_NULLS_FIRST', - ExtrinsicSuccessAscNullsLast = 'extrinsic_success_ASC_NULLS_LAST', - ExtrinsicSuccessDesc = 'extrinsic_success_DESC', - ExtrinsicSuccessDescNullsFirst = 'extrinsic_success_DESC_NULLS_FIRST', - ExtrinsicSuccessDescNullsLast = 'extrinsic_success_DESC_NULLS_LAST', - ExtrinsicTimestampAsc = 'extrinsic_timestamp_ASC', - ExtrinsicTimestampAscNullsFirst = 'extrinsic_timestamp_ASC_NULLS_FIRST', - ExtrinsicTimestampAscNullsLast = 'extrinsic_timestamp_ASC_NULLS_LAST', - ExtrinsicTimestampDesc = 'extrinsic_timestamp_DESC', - ExtrinsicTimestampDescNullsFirst = 'extrinsic_timestamp_DESC_NULLS_FIRST', - ExtrinsicTimestampDescNullsLast = 'extrinsic_timestamp_DESC_NULLS_LAST', - IdAsc = 'id_ASC', - IdAscNullsFirst = 'id_ASC_NULLS_FIRST', - IdAscNullsLast = 'id_ASC_NULLS_LAST', - IdDesc = 'id_DESC', - IdDescNullsFirst = 'id_DESC_NULLS_FIRST', - IdDescNullsLast = 'id_DESC_NULLS_LAST', - OutputCountAsc = 'outputCount_ASC', - OutputCountAscNullsFirst = 'outputCount_ASC_NULLS_FIRST', - OutputCountAscNullsLast = 'outputCount_ASC_NULLS_LAST', - OutputCountDesc = 'outputCount_DESC', - OutputCountDescNullsFirst = 'outputCount_DESC_NULLS_FIRST', - OutputCountDescNullsLast = 'outputCount_DESC_NULLS_LAST', - PoolSnapshotAsc = 'poolSnapshot_ASC', - PoolSnapshotAscNullsFirst = 'poolSnapshot_ASC_NULLS_FIRST', - PoolSnapshotAscNullsLast = 'poolSnapshot_ASC_NULLS_LAST', - PoolSnapshotDesc = 'poolSnapshot_DESC', - PoolSnapshotDescNullsFirst = 'poolSnapshot_DESC_NULLS_FIRST', - PoolSnapshotDescNullsLast = 'poolSnapshot_DESC_NULLS_LAST', - PrivacyLabelAsc = 'privacyLabel_ASC', - PrivacyLabelAscNullsFirst = 'privacyLabel_ASC_NULLS_FIRST', - PrivacyLabelAscNullsLast = 'privacyLabel_ASC_NULLS_LAST', - PrivacyLabelDesc = 'privacyLabel_DESC', - PrivacyLabelDescNullsFirst = 'privacyLabel_DESC_NULLS_FIRST', - PrivacyLabelDescNullsLast = 'privacyLabel_DESC_NULLS_LAST', - PrivacyScore01PctAsc = 'privacyScore01Pct_ASC', - PrivacyScore01PctAscNullsFirst = 'privacyScore01Pct_ASC_NULLS_FIRST', - PrivacyScore01PctAscNullsLast = 'privacyScore01Pct_ASC_NULLS_LAST', - PrivacyScore01PctDesc = 'privacyScore01Pct_DESC', - PrivacyScore01PctDescNullsFirst = 'privacyScore01Pct_DESC_NULLS_FIRST', - PrivacyScore01PctDescNullsLast = 'privacyScore01Pct_DESC_NULLS_LAST', - PrivacyScore1PctAsc = 'privacyScore1Pct_ASC', - PrivacyScore1PctAscNullsFirst = 'privacyScore1Pct_ASC_NULLS_FIRST', - PrivacyScore1PctAscNullsLast = 'privacyScore1Pct_ASC_NULLS_LAST', - PrivacyScore1PctDesc = 'privacyScore1Pct_DESC', - PrivacyScore1PctDescNullsFirst = 'privacyScore1Pct_DESC_NULLS_FIRST', - PrivacyScore1PctDescNullsLast = 'privacyScore1Pct_DESC_NULLS_LAST', - PrivacyScore5PctAsc = 'privacyScore5Pct_ASC', - PrivacyScore5PctAscNullsFirst = 'privacyScore5Pct_ASC_NULLS_FIRST', - PrivacyScore5PctAscNullsLast = 'privacyScore5Pct_ASC_NULLS_LAST', - PrivacyScore5PctDesc = 'privacyScore5Pct_DESC', - PrivacyScore5PctDescNullsFirst = 'privacyScore5Pct_DESC_NULLS_FIRST', - PrivacyScore5PctDescNullsLast = 'privacyScore5Pct_DESC_NULLS_LAST', - PrivacyScoreAsc = 'privacyScore_ASC', - PrivacyScoreAscNullsFirst = 'privacyScore_ASC_NULLS_FIRST', - PrivacyScoreAscNullsLast = 'privacyScore_ASC_NULLS_LAST', - PrivacyScoreDesc = 'privacyScore_DESC', - PrivacyScoreDescNullsFirst = 'privacyScore_DESC_NULLS_FIRST', - PrivacyScoreDescNullsLast = 'privacyScore_DESC_NULLS_LAST', - TimestampAsc = 'timestamp_ASC', - TimestampAscNullsFirst = 'timestamp_ASC_NULLS_FIRST', - TimestampAscNullsLast = 'timestamp_ASC_NULLS_LAST', - TimestampDesc = 'timestamp_DESC', - TimestampDescNullsFirst = 'timestamp_DESC_NULLS_FIRST', - TimestampDescNullsLast = 'timestamp_DESC_NULLS_LAST', - TotalAmountAsc = 'totalAmount_ASC', - TotalAmountAscNullsFirst = 'totalAmount_ASC_NULLS_FIRST', - TotalAmountAscNullsLast = 'totalAmount_ASC_NULLS_LAST', - TotalAmountDesc = 'totalAmount_DESC', - TotalAmountDescNullsFirst = 'totalAmount_DESC_NULLS_FIRST', - TotalAmountDescNullsLast = 'totalAmount_DESC_NULLS_LAST' -} - -export type WormholeExtrinsicWhereInput = { - AND?: InputMaybe>; - OR?: InputMaybe>; - block?: InputMaybe; - block_isNull?: InputMaybe; - extrinsic?: InputMaybe; - extrinsic_isNull?: InputMaybe; - id_contains?: InputMaybe; - id_containsInsensitive?: InputMaybe; - id_endsWith?: InputMaybe; - id_eq?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_isNull?: InputMaybe; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not_contains?: InputMaybe; - id_not_containsInsensitive?: InputMaybe; - id_not_endsWith?: InputMaybe; - id_not_eq?: InputMaybe; - id_not_in?: InputMaybe>; - id_not_startsWith?: InputMaybe; - id_startsWith?: InputMaybe; - outputCount_eq?: InputMaybe; - outputCount_gt?: InputMaybe; - outputCount_gte?: InputMaybe; - outputCount_in?: InputMaybe>; - outputCount_isNull?: InputMaybe; - outputCount_lt?: InputMaybe; - outputCount_lte?: InputMaybe; - outputCount_not_eq?: InputMaybe; - outputCount_not_in?: InputMaybe>; - outputs_every?: InputMaybe; - outputs_none?: InputMaybe; - outputs_some?: InputMaybe; - poolSnapshot_contains?: InputMaybe; - poolSnapshot_containsInsensitive?: InputMaybe; - poolSnapshot_endsWith?: InputMaybe; - poolSnapshot_eq?: InputMaybe; - poolSnapshot_gt?: InputMaybe; - poolSnapshot_gte?: InputMaybe; - poolSnapshot_in?: InputMaybe>; - poolSnapshot_isNull?: InputMaybe; - poolSnapshot_lt?: InputMaybe; - poolSnapshot_lte?: InputMaybe; - poolSnapshot_not_contains?: InputMaybe; - poolSnapshot_not_containsInsensitive?: InputMaybe; - poolSnapshot_not_endsWith?: InputMaybe; - poolSnapshot_not_eq?: InputMaybe; - poolSnapshot_not_in?: InputMaybe>; - poolSnapshot_not_startsWith?: InputMaybe; - poolSnapshot_startsWith?: InputMaybe; - privacyLabel_contains?: InputMaybe; - privacyLabel_containsInsensitive?: InputMaybe; - privacyLabel_endsWith?: InputMaybe; - privacyLabel_eq?: InputMaybe; - privacyLabel_gt?: InputMaybe; - privacyLabel_gte?: InputMaybe; - privacyLabel_in?: InputMaybe>; - privacyLabel_isNull?: InputMaybe; - privacyLabel_lt?: InputMaybe; - privacyLabel_lte?: InputMaybe; - privacyLabel_not_contains?: InputMaybe; - privacyLabel_not_containsInsensitive?: InputMaybe; - privacyLabel_not_endsWith?: InputMaybe; - privacyLabel_not_eq?: InputMaybe; - privacyLabel_not_in?: InputMaybe>; - privacyLabel_not_startsWith?: InputMaybe; - privacyLabel_startsWith?: InputMaybe; - privacyScore01Pct_eq?: InputMaybe; - privacyScore01Pct_gt?: InputMaybe; - privacyScore01Pct_gte?: InputMaybe; - privacyScore01Pct_in?: InputMaybe>; - privacyScore01Pct_isNull?: InputMaybe; - privacyScore01Pct_lt?: InputMaybe; - privacyScore01Pct_lte?: InputMaybe; - privacyScore01Pct_not_eq?: InputMaybe; - privacyScore01Pct_not_in?: InputMaybe>; - privacyScore1Pct_eq?: InputMaybe; - privacyScore1Pct_gt?: InputMaybe; - privacyScore1Pct_gte?: InputMaybe; - privacyScore1Pct_in?: InputMaybe>; - privacyScore1Pct_isNull?: InputMaybe; - privacyScore1Pct_lt?: InputMaybe; - privacyScore1Pct_lte?: InputMaybe; - privacyScore1Pct_not_eq?: InputMaybe; - privacyScore1Pct_not_in?: InputMaybe>; - privacyScore5Pct_eq?: InputMaybe; - privacyScore5Pct_gt?: InputMaybe; - privacyScore5Pct_gte?: InputMaybe; - privacyScore5Pct_in?: InputMaybe>; - privacyScore5Pct_isNull?: InputMaybe; - privacyScore5Pct_lt?: InputMaybe; - privacyScore5Pct_lte?: InputMaybe; - privacyScore5Pct_not_eq?: InputMaybe; - privacyScore5Pct_not_in?: InputMaybe>; - privacyScore_eq?: InputMaybe; - privacyScore_gt?: InputMaybe; - privacyScore_gte?: InputMaybe; - privacyScore_in?: InputMaybe>; - privacyScore_isNull?: InputMaybe; - privacyScore_lt?: InputMaybe; - privacyScore_lte?: InputMaybe; - privacyScore_not_eq?: InputMaybe; - privacyScore_not_in?: InputMaybe>; - timestamp_eq?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_isNull?: InputMaybe; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not_eq?: InputMaybe; - timestamp_not_in?: InputMaybe>; - totalAmount_eq?: InputMaybe; - totalAmount_gt?: InputMaybe; - totalAmount_gte?: InputMaybe; - totalAmount_in?: InputMaybe>; - totalAmount_isNull?: InputMaybe; - totalAmount_lt?: InputMaybe; - totalAmount_lte?: InputMaybe; - totalAmount_not_eq?: InputMaybe; - totalAmount_not_in?: InputMaybe>; -}; - -export type WormholeExtrinsicsConnection = { - __typename?: 'WormholeExtrinsicsConnection'; - edges: Array; - pageInfo: PageInfo; - totalCount: Scalars['Int']['output']; -}; - -/** A nullifier consumed by a wormhole proof verification. */ -export type WormholeNullifier = { - __typename?: 'WormholeNullifier'; - /** Block where the nullifier was consumed */ - block: Block; - id: Scalars['String']['output']; - /** The nullifier bytes as hex */ - nullifier: Scalars['String']['output']; - /** Blake3 hash of the nullifier for prefix queries */ - nullifierHash: Scalars['String']['output']; - timestamp: Scalars['DateTime']['output']; - /** The wormhole extrinsic that consumed this nullifier */ - wormholeExtrinsic: WormholeExtrinsic; -}; - -export type WormholeNullifierEdge = { - __typename?: 'WormholeNullifierEdge'; - cursor: Scalars['String']['output']; - node: WormholeNullifier; -}; - -export enum WormholeNullifierOrderByInput { - BlockHashAsc = 'block_hash_ASC', - BlockHashAscNullsFirst = 'block_hash_ASC_NULLS_FIRST', - BlockHashAscNullsLast = 'block_hash_ASC_NULLS_LAST', - BlockHashDesc = 'block_hash_DESC', - BlockHashDescNullsFirst = 'block_hash_DESC_NULLS_FIRST', - BlockHashDescNullsLast = 'block_hash_DESC_NULLS_LAST', - BlockHeightAsc = 'block_height_ASC', - BlockHeightAscNullsFirst = 'block_height_ASC_NULLS_FIRST', - BlockHeightAscNullsLast = 'block_height_ASC_NULLS_LAST', - BlockHeightDesc = 'block_height_DESC', - BlockHeightDescNullsFirst = 'block_height_DESC_NULLS_FIRST', - BlockHeightDescNullsLast = 'block_height_DESC_NULLS_LAST', - BlockIdAsc = 'block_id_ASC', - BlockIdAscNullsFirst = 'block_id_ASC_NULLS_FIRST', - BlockIdAscNullsLast = 'block_id_ASC_NULLS_LAST', - BlockIdDesc = 'block_id_DESC', - BlockIdDescNullsFirst = 'block_id_DESC_NULLS_FIRST', - BlockIdDescNullsLast = 'block_id_DESC_NULLS_LAST', - BlockRewardAsc = 'block_reward_ASC', - BlockRewardAscNullsFirst = 'block_reward_ASC_NULLS_FIRST', - BlockRewardAscNullsLast = 'block_reward_ASC_NULLS_LAST', - BlockRewardDesc = 'block_reward_DESC', - BlockRewardDescNullsFirst = 'block_reward_DESC_NULLS_FIRST', - BlockRewardDescNullsLast = 'block_reward_DESC_NULLS_LAST', - BlockTimestampAsc = 'block_timestamp_ASC', - BlockTimestampAscNullsFirst = 'block_timestamp_ASC_NULLS_FIRST', - BlockTimestampAscNullsLast = 'block_timestamp_ASC_NULLS_LAST', - BlockTimestampDesc = 'block_timestamp_DESC', - BlockTimestampDescNullsFirst = 'block_timestamp_DESC_NULLS_FIRST', - BlockTimestampDescNullsLast = 'block_timestamp_DESC_NULLS_LAST', - IdAsc = 'id_ASC', - IdAscNullsFirst = 'id_ASC_NULLS_FIRST', - IdAscNullsLast = 'id_ASC_NULLS_LAST', - IdDesc = 'id_DESC', - IdDescNullsFirst = 'id_DESC_NULLS_FIRST', - IdDescNullsLast = 'id_DESC_NULLS_LAST', - NullifierHashAsc = 'nullifierHash_ASC', - NullifierHashAscNullsFirst = 'nullifierHash_ASC_NULLS_FIRST', - NullifierHashAscNullsLast = 'nullifierHash_ASC_NULLS_LAST', - NullifierHashDesc = 'nullifierHash_DESC', - NullifierHashDescNullsFirst = 'nullifierHash_DESC_NULLS_FIRST', - NullifierHashDescNullsLast = 'nullifierHash_DESC_NULLS_LAST', - NullifierAsc = 'nullifier_ASC', - NullifierAscNullsFirst = 'nullifier_ASC_NULLS_FIRST', - NullifierAscNullsLast = 'nullifier_ASC_NULLS_LAST', - NullifierDesc = 'nullifier_DESC', - NullifierDescNullsFirst = 'nullifier_DESC_NULLS_FIRST', - NullifierDescNullsLast = 'nullifier_DESC_NULLS_LAST', - TimestampAsc = 'timestamp_ASC', - TimestampAscNullsFirst = 'timestamp_ASC_NULLS_FIRST', - TimestampAscNullsLast = 'timestamp_ASC_NULLS_LAST', - TimestampDesc = 'timestamp_DESC', - TimestampDescNullsFirst = 'timestamp_DESC_NULLS_FIRST', - TimestampDescNullsLast = 'timestamp_DESC_NULLS_LAST', - WormholeExtrinsicIdAsc = 'wormholeExtrinsic_id_ASC', - WormholeExtrinsicIdAscNullsFirst = 'wormholeExtrinsic_id_ASC_NULLS_FIRST', - WormholeExtrinsicIdAscNullsLast = 'wormholeExtrinsic_id_ASC_NULLS_LAST', - WormholeExtrinsicIdDesc = 'wormholeExtrinsic_id_DESC', - WormholeExtrinsicIdDescNullsFirst = 'wormholeExtrinsic_id_DESC_NULLS_FIRST', - WormholeExtrinsicIdDescNullsLast = 'wormholeExtrinsic_id_DESC_NULLS_LAST', - WormholeExtrinsicOutputCountAsc = 'wormholeExtrinsic_outputCount_ASC', - WormholeExtrinsicOutputCountAscNullsFirst = 'wormholeExtrinsic_outputCount_ASC_NULLS_FIRST', - WormholeExtrinsicOutputCountAscNullsLast = 'wormholeExtrinsic_outputCount_ASC_NULLS_LAST', - WormholeExtrinsicOutputCountDesc = 'wormholeExtrinsic_outputCount_DESC', - WormholeExtrinsicOutputCountDescNullsFirst = 'wormholeExtrinsic_outputCount_DESC_NULLS_FIRST', - WormholeExtrinsicOutputCountDescNullsLast = 'wormholeExtrinsic_outputCount_DESC_NULLS_LAST', - WormholeExtrinsicPoolSnapshotAsc = 'wormholeExtrinsic_poolSnapshot_ASC', - WormholeExtrinsicPoolSnapshotAscNullsFirst = 'wormholeExtrinsic_poolSnapshot_ASC_NULLS_FIRST', - WormholeExtrinsicPoolSnapshotAscNullsLast = 'wormholeExtrinsic_poolSnapshot_ASC_NULLS_LAST', - WormholeExtrinsicPoolSnapshotDesc = 'wormholeExtrinsic_poolSnapshot_DESC', - WormholeExtrinsicPoolSnapshotDescNullsFirst = 'wormholeExtrinsic_poolSnapshot_DESC_NULLS_FIRST', - WormholeExtrinsicPoolSnapshotDescNullsLast = 'wormholeExtrinsic_poolSnapshot_DESC_NULLS_LAST', - WormholeExtrinsicPrivacyLabelAsc = 'wormholeExtrinsic_privacyLabel_ASC', - WormholeExtrinsicPrivacyLabelAscNullsFirst = 'wormholeExtrinsic_privacyLabel_ASC_NULLS_FIRST', - WormholeExtrinsicPrivacyLabelAscNullsLast = 'wormholeExtrinsic_privacyLabel_ASC_NULLS_LAST', - WormholeExtrinsicPrivacyLabelDesc = 'wormholeExtrinsic_privacyLabel_DESC', - WormholeExtrinsicPrivacyLabelDescNullsFirst = 'wormholeExtrinsic_privacyLabel_DESC_NULLS_FIRST', - WormholeExtrinsicPrivacyLabelDescNullsLast = 'wormholeExtrinsic_privacyLabel_DESC_NULLS_LAST', - WormholeExtrinsicPrivacyScore01PctAsc = 'wormholeExtrinsic_privacyScore01Pct_ASC', - WormholeExtrinsicPrivacyScore01PctAscNullsFirst = 'wormholeExtrinsic_privacyScore01Pct_ASC_NULLS_FIRST', - WormholeExtrinsicPrivacyScore01PctAscNullsLast = 'wormholeExtrinsic_privacyScore01Pct_ASC_NULLS_LAST', - WormholeExtrinsicPrivacyScore01PctDesc = 'wormholeExtrinsic_privacyScore01Pct_DESC', - WormholeExtrinsicPrivacyScore01PctDescNullsFirst = 'wormholeExtrinsic_privacyScore01Pct_DESC_NULLS_FIRST', - WormholeExtrinsicPrivacyScore01PctDescNullsLast = 'wormholeExtrinsic_privacyScore01Pct_DESC_NULLS_LAST', - WormholeExtrinsicPrivacyScore1PctAsc = 'wormholeExtrinsic_privacyScore1Pct_ASC', - WormholeExtrinsicPrivacyScore1PctAscNullsFirst = 'wormholeExtrinsic_privacyScore1Pct_ASC_NULLS_FIRST', - WormholeExtrinsicPrivacyScore1PctAscNullsLast = 'wormholeExtrinsic_privacyScore1Pct_ASC_NULLS_LAST', - WormholeExtrinsicPrivacyScore1PctDesc = 'wormholeExtrinsic_privacyScore1Pct_DESC', - WormholeExtrinsicPrivacyScore1PctDescNullsFirst = 'wormholeExtrinsic_privacyScore1Pct_DESC_NULLS_FIRST', - WormholeExtrinsicPrivacyScore1PctDescNullsLast = 'wormholeExtrinsic_privacyScore1Pct_DESC_NULLS_LAST', - WormholeExtrinsicPrivacyScore5PctAsc = 'wormholeExtrinsic_privacyScore5Pct_ASC', - WormholeExtrinsicPrivacyScore5PctAscNullsFirst = 'wormholeExtrinsic_privacyScore5Pct_ASC_NULLS_FIRST', - WormholeExtrinsicPrivacyScore5PctAscNullsLast = 'wormholeExtrinsic_privacyScore5Pct_ASC_NULLS_LAST', - WormholeExtrinsicPrivacyScore5PctDesc = 'wormholeExtrinsic_privacyScore5Pct_DESC', - WormholeExtrinsicPrivacyScore5PctDescNullsFirst = 'wormholeExtrinsic_privacyScore5Pct_DESC_NULLS_FIRST', - WormholeExtrinsicPrivacyScore5PctDescNullsLast = 'wormholeExtrinsic_privacyScore5Pct_DESC_NULLS_LAST', - WormholeExtrinsicPrivacyScoreAsc = 'wormholeExtrinsic_privacyScore_ASC', - WormholeExtrinsicPrivacyScoreAscNullsFirst = 'wormholeExtrinsic_privacyScore_ASC_NULLS_FIRST', - WormholeExtrinsicPrivacyScoreAscNullsLast = 'wormholeExtrinsic_privacyScore_ASC_NULLS_LAST', - WormholeExtrinsicPrivacyScoreDesc = 'wormholeExtrinsic_privacyScore_DESC', - WormholeExtrinsicPrivacyScoreDescNullsFirst = 'wormholeExtrinsic_privacyScore_DESC_NULLS_FIRST', - WormholeExtrinsicPrivacyScoreDescNullsLast = 'wormholeExtrinsic_privacyScore_DESC_NULLS_LAST', - WormholeExtrinsicTimestampAsc = 'wormholeExtrinsic_timestamp_ASC', - WormholeExtrinsicTimestampAscNullsFirst = 'wormholeExtrinsic_timestamp_ASC_NULLS_FIRST', - WormholeExtrinsicTimestampAscNullsLast = 'wormholeExtrinsic_timestamp_ASC_NULLS_LAST', - WormholeExtrinsicTimestampDesc = 'wormholeExtrinsic_timestamp_DESC', - WormholeExtrinsicTimestampDescNullsFirst = 'wormholeExtrinsic_timestamp_DESC_NULLS_FIRST', - WormholeExtrinsicTimestampDescNullsLast = 'wormholeExtrinsic_timestamp_DESC_NULLS_LAST', - WormholeExtrinsicTotalAmountAsc = 'wormholeExtrinsic_totalAmount_ASC', - WormholeExtrinsicTotalAmountAscNullsFirst = 'wormholeExtrinsic_totalAmount_ASC_NULLS_FIRST', - WormholeExtrinsicTotalAmountAscNullsLast = 'wormholeExtrinsic_totalAmount_ASC_NULLS_LAST', - WormholeExtrinsicTotalAmountDesc = 'wormholeExtrinsic_totalAmount_DESC', - WormholeExtrinsicTotalAmountDescNullsFirst = 'wormholeExtrinsic_totalAmount_DESC_NULLS_FIRST', - WormholeExtrinsicTotalAmountDescNullsLast = 'wormholeExtrinsic_totalAmount_DESC_NULLS_LAST' -} + order_by?: InputMaybe>; + where?: InputMaybe; +}; -export type WormholeNullifierWhereInput = { - AND?: InputMaybe>; - OR?: InputMaybe>; - block?: InputMaybe; - block_isNull?: InputMaybe; - id_contains?: InputMaybe; - id_containsInsensitive?: InputMaybe; - id_endsWith?: InputMaybe; - id_eq?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_isNull?: InputMaybe; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not_contains?: InputMaybe; - id_not_containsInsensitive?: InputMaybe; - id_not_endsWith?: InputMaybe; - id_not_eq?: InputMaybe; - id_not_in?: InputMaybe>; - id_not_startsWith?: InputMaybe; - id_startsWith?: InputMaybe; - nullifierHash_contains?: InputMaybe; - nullifierHash_containsInsensitive?: InputMaybe; - nullifierHash_endsWith?: InputMaybe; - nullifierHash_eq?: InputMaybe; - nullifierHash_gt?: InputMaybe; - nullifierHash_gte?: InputMaybe; - nullifierHash_in?: InputMaybe>; - nullifierHash_isNull?: InputMaybe; - nullifierHash_lt?: InputMaybe; - nullifierHash_lte?: InputMaybe; - nullifierHash_not_contains?: InputMaybe; - nullifierHash_not_containsInsensitive?: InputMaybe< - Scalars['String']['input'] - >; - nullifierHash_not_endsWith?: InputMaybe; - nullifierHash_not_eq?: InputMaybe; - nullifierHash_not_in?: InputMaybe>; - nullifierHash_not_startsWith?: InputMaybe; - nullifierHash_startsWith?: InputMaybe; - nullifier_contains?: InputMaybe; - nullifier_containsInsensitive?: InputMaybe; - nullifier_endsWith?: InputMaybe; - nullifier_eq?: InputMaybe; - nullifier_gt?: InputMaybe; - nullifier_gte?: InputMaybe; - nullifier_in?: InputMaybe>; - nullifier_isNull?: InputMaybe; - nullifier_lt?: InputMaybe; - nullifier_lte?: InputMaybe; - nullifier_not_contains?: InputMaybe; - nullifier_not_containsInsensitive?: InputMaybe; - nullifier_not_endsWith?: InputMaybe; - nullifier_not_eq?: InputMaybe; - nullifier_not_in?: InputMaybe>; - nullifier_not_startsWith?: InputMaybe; - nullifier_startsWith?: InputMaybe; - timestamp_eq?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_isNull?: InputMaybe; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not_eq?: InputMaybe; - timestamp_not_in?: InputMaybe>; - wormholeExtrinsic?: InputMaybe; - wormholeExtrinsic_isNull?: InputMaybe; -}; - -export type WormholeNullifiersConnection = { - __typename?: 'WormholeNullifiersConnection'; - edges: Array; - pageInfo: PageInfo; - totalCount: Scalars['Int']['output']; -}; - -/** An individual exit output within a wormhole proof verification. */ -export type WormholeOutput = { - __typename?: 'WormholeOutput'; - amount: Scalars['BigInt']['output']; - exitAccount: Account; - id: Scalars['String']['output']; - wormholeExtrinsic: WormholeExtrinsic; -}; - -export type WormholeOutputEdge = { - __typename?: 'WormholeOutputEdge'; - cursor: Scalars['String']['output']; - node: WormholeOutput; -}; - -export enum WormholeOutputOrderByInput { - AmountAsc = 'amount_ASC', - AmountAscNullsFirst = 'amount_ASC_NULLS_FIRST', - AmountAscNullsLast = 'amount_ASC_NULLS_LAST', - AmountDesc = 'amount_DESC', - AmountDescNullsFirst = 'amount_DESC_NULLS_FIRST', - AmountDescNullsLast = 'amount_DESC_NULLS_LAST', - ExitAccountFreeAsc = 'exitAccount_free_ASC', - ExitAccountFreeAscNullsFirst = 'exitAccount_free_ASC_NULLS_FIRST', - ExitAccountFreeAscNullsLast = 'exitAccount_free_ASC_NULLS_LAST', - ExitAccountFreeDesc = 'exitAccount_free_DESC', - ExitAccountFreeDescNullsFirst = 'exitAccount_free_DESC_NULLS_FIRST', - ExitAccountFreeDescNullsLast = 'exitAccount_free_DESC_NULLS_LAST', - ExitAccountFrozenAsc = 'exitAccount_frozen_ASC', - ExitAccountFrozenAscNullsFirst = 'exitAccount_frozen_ASC_NULLS_FIRST', - ExitAccountFrozenAscNullsLast = 'exitAccount_frozen_ASC_NULLS_LAST', - ExitAccountFrozenDesc = 'exitAccount_frozen_DESC', - ExitAccountFrozenDescNullsFirst = 'exitAccount_frozen_DESC_NULLS_FIRST', - ExitAccountFrozenDescNullsLast = 'exitAccount_frozen_DESC_NULLS_LAST', - ExitAccountIdAsc = 'exitAccount_id_ASC', - ExitAccountIdAscNullsFirst = 'exitAccount_id_ASC_NULLS_FIRST', - ExitAccountIdAscNullsLast = 'exitAccount_id_ASC_NULLS_LAST', - ExitAccountIdDesc = 'exitAccount_id_DESC', - ExitAccountIdDescNullsFirst = 'exitAccount_id_DESC_NULLS_FIRST', - ExitAccountIdDescNullsLast = 'exitAccount_id_DESC_NULLS_LAST', - ExitAccountIsDepositOnlyAsc = 'exitAccount_isDepositOnly_ASC', - ExitAccountIsDepositOnlyAscNullsFirst = 'exitAccount_isDepositOnly_ASC_NULLS_FIRST', - ExitAccountIsDepositOnlyAscNullsLast = 'exitAccount_isDepositOnly_ASC_NULLS_LAST', - ExitAccountIsDepositOnlyDesc = 'exitAccount_isDepositOnly_DESC', - ExitAccountIsDepositOnlyDescNullsFirst = 'exitAccount_isDepositOnly_DESC_NULLS_FIRST', - ExitAccountIsDepositOnlyDescNullsLast = 'exitAccount_isDepositOnly_DESC_NULLS_LAST', - ExitAccountLastUpdatedAsc = 'exitAccount_lastUpdated_ASC', - ExitAccountLastUpdatedAscNullsFirst = 'exitAccount_lastUpdated_ASC_NULLS_FIRST', - ExitAccountLastUpdatedAscNullsLast = 'exitAccount_lastUpdated_ASC_NULLS_LAST', - ExitAccountLastUpdatedDesc = 'exitAccount_lastUpdated_DESC', - ExitAccountLastUpdatedDescNullsFirst = 'exitAccount_lastUpdated_DESC_NULLS_FIRST', - ExitAccountLastUpdatedDescNullsLast = 'exitAccount_lastUpdated_DESC_NULLS_LAST', - ExitAccountPrivacyDepositsAsc = 'exitAccount_privacyDeposits_ASC', - ExitAccountPrivacyDepositsAscNullsFirst = 'exitAccount_privacyDeposits_ASC_NULLS_FIRST', - ExitAccountPrivacyDepositsAscNullsLast = 'exitAccount_privacyDeposits_ASC_NULLS_LAST', - ExitAccountPrivacyDepositsDesc = 'exitAccount_privacyDeposits_DESC', - ExitAccountPrivacyDepositsDescNullsFirst = 'exitAccount_privacyDeposits_DESC_NULLS_FIRST', - ExitAccountPrivacyDepositsDescNullsLast = 'exitAccount_privacyDeposits_DESC_NULLS_LAST', - ExitAccountReservedAsc = 'exitAccount_reserved_ASC', - ExitAccountReservedAscNullsFirst = 'exitAccount_reserved_ASC_NULLS_FIRST', - ExitAccountReservedAscNullsLast = 'exitAccount_reserved_ASC_NULLS_LAST', - ExitAccountReservedDesc = 'exitAccount_reserved_DESC', - ExitAccountReservedDescNullsFirst = 'exitAccount_reserved_DESC_NULLS_FIRST', - ExitAccountReservedDescNullsLast = 'exitAccount_reserved_DESC_NULLS_LAST', - IdAsc = 'id_ASC', - IdAscNullsFirst = 'id_ASC_NULLS_FIRST', - IdAscNullsLast = 'id_ASC_NULLS_LAST', - IdDesc = 'id_DESC', - IdDescNullsFirst = 'id_DESC_NULLS_FIRST', - IdDescNullsLast = 'id_DESC_NULLS_LAST', - WormholeExtrinsicIdAsc = 'wormholeExtrinsic_id_ASC', - WormholeExtrinsicIdAscNullsFirst = 'wormholeExtrinsic_id_ASC_NULLS_FIRST', - WormholeExtrinsicIdAscNullsLast = 'wormholeExtrinsic_id_ASC_NULLS_LAST', - WormholeExtrinsicIdDesc = 'wormholeExtrinsic_id_DESC', - WormholeExtrinsicIdDescNullsFirst = 'wormholeExtrinsic_id_DESC_NULLS_FIRST', - WormholeExtrinsicIdDescNullsLast = 'wormholeExtrinsic_id_DESC_NULLS_LAST', - WormholeExtrinsicOutputCountAsc = 'wormholeExtrinsic_outputCount_ASC', - WormholeExtrinsicOutputCountAscNullsFirst = 'wormholeExtrinsic_outputCount_ASC_NULLS_FIRST', - WormholeExtrinsicOutputCountAscNullsLast = 'wormholeExtrinsic_outputCount_ASC_NULLS_LAST', - WormholeExtrinsicOutputCountDesc = 'wormholeExtrinsic_outputCount_DESC', - WormholeExtrinsicOutputCountDescNullsFirst = 'wormholeExtrinsic_outputCount_DESC_NULLS_FIRST', - WormholeExtrinsicOutputCountDescNullsLast = 'wormholeExtrinsic_outputCount_DESC_NULLS_LAST', - WormholeExtrinsicPoolSnapshotAsc = 'wormholeExtrinsic_poolSnapshot_ASC', - WormholeExtrinsicPoolSnapshotAscNullsFirst = 'wormholeExtrinsic_poolSnapshot_ASC_NULLS_FIRST', - WormholeExtrinsicPoolSnapshotAscNullsLast = 'wormholeExtrinsic_poolSnapshot_ASC_NULLS_LAST', - WormholeExtrinsicPoolSnapshotDesc = 'wormholeExtrinsic_poolSnapshot_DESC', - WormholeExtrinsicPoolSnapshotDescNullsFirst = 'wormholeExtrinsic_poolSnapshot_DESC_NULLS_FIRST', - WormholeExtrinsicPoolSnapshotDescNullsLast = 'wormholeExtrinsic_poolSnapshot_DESC_NULLS_LAST', - WormholeExtrinsicPrivacyLabelAsc = 'wormholeExtrinsic_privacyLabel_ASC', - WormholeExtrinsicPrivacyLabelAscNullsFirst = 'wormholeExtrinsic_privacyLabel_ASC_NULLS_FIRST', - WormholeExtrinsicPrivacyLabelAscNullsLast = 'wormholeExtrinsic_privacyLabel_ASC_NULLS_LAST', - WormholeExtrinsicPrivacyLabelDesc = 'wormholeExtrinsic_privacyLabel_DESC', - WormholeExtrinsicPrivacyLabelDescNullsFirst = 'wormholeExtrinsic_privacyLabel_DESC_NULLS_FIRST', - WormholeExtrinsicPrivacyLabelDescNullsLast = 'wormholeExtrinsic_privacyLabel_DESC_NULLS_LAST', - WormholeExtrinsicPrivacyScore01PctAsc = 'wormholeExtrinsic_privacyScore01Pct_ASC', - WormholeExtrinsicPrivacyScore01PctAscNullsFirst = 'wormholeExtrinsic_privacyScore01Pct_ASC_NULLS_FIRST', - WormholeExtrinsicPrivacyScore01PctAscNullsLast = 'wormholeExtrinsic_privacyScore01Pct_ASC_NULLS_LAST', - WormholeExtrinsicPrivacyScore01PctDesc = 'wormholeExtrinsic_privacyScore01Pct_DESC', - WormholeExtrinsicPrivacyScore01PctDescNullsFirst = 'wormholeExtrinsic_privacyScore01Pct_DESC_NULLS_FIRST', - WormholeExtrinsicPrivacyScore01PctDescNullsLast = 'wormholeExtrinsic_privacyScore01Pct_DESC_NULLS_LAST', - WormholeExtrinsicPrivacyScore1PctAsc = 'wormholeExtrinsic_privacyScore1Pct_ASC', - WormholeExtrinsicPrivacyScore1PctAscNullsFirst = 'wormholeExtrinsic_privacyScore1Pct_ASC_NULLS_FIRST', - WormholeExtrinsicPrivacyScore1PctAscNullsLast = 'wormholeExtrinsic_privacyScore1Pct_ASC_NULLS_LAST', - WormholeExtrinsicPrivacyScore1PctDesc = 'wormholeExtrinsic_privacyScore1Pct_DESC', - WormholeExtrinsicPrivacyScore1PctDescNullsFirst = 'wormholeExtrinsic_privacyScore1Pct_DESC_NULLS_FIRST', - WormholeExtrinsicPrivacyScore1PctDescNullsLast = 'wormholeExtrinsic_privacyScore1Pct_DESC_NULLS_LAST', - WormholeExtrinsicPrivacyScore5PctAsc = 'wormholeExtrinsic_privacyScore5Pct_ASC', - WormholeExtrinsicPrivacyScore5PctAscNullsFirst = 'wormholeExtrinsic_privacyScore5Pct_ASC_NULLS_FIRST', - WormholeExtrinsicPrivacyScore5PctAscNullsLast = 'wormholeExtrinsic_privacyScore5Pct_ASC_NULLS_LAST', - WormholeExtrinsicPrivacyScore5PctDesc = 'wormholeExtrinsic_privacyScore5Pct_DESC', - WormholeExtrinsicPrivacyScore5PctDescNullsFirst = 'wormholeExtrinsic_privacyScore5Pct_DESC_NULLS_FIRST', - WormholeExtrinsicPrivacyScore5PctDescNullsLast = 'wormholeExtrinsic_privacyScore5Pct_DESC_NULLS_LAST', - WormholeExtrinsicPrivacyScoreAsc = 'wormholeExtrinsic_privacyScore_ASC', - WormholeExtrinsicPrivacyScoreAscNullsFirst = 'wormholeExtrinsic_privacyScore_ASC_NULLS_FIRST', - WormholeExtrinsicPrivacyScoreAscNullsLast = 'wormholeExtrinsic_privacyScore_ASC_NULLS_LAST', - WormholeExtrinsicPrivacyScoreDesc = 'wormholeExtrinsic_privacyScore_DESC', - WormholeExtrinsicPrivacyScoreDescNullsFirst = 'wormholeExtrinsic_privacyScore_DESC_NULLS_FIRST', - WormholeExtrinsicPrivacyScoreDescNullsLast = 'wormholeExtrinsic_privacyScore_DESC_NULLS_LAST', - WormholeExtrinsicTimestampAsc = 'wormholeExtrinsic_timestamp_ASC', - WormholeExtrinsicTimestampAscNullsFirst = 'wormholeExtrinsic_timestamp_ASC_NULLS_FIRST', - WormholeExtrinsicTimestampAscNullsLast = 'wormholeExtrinsic_timestamp_ASC_NULLS_LAST', - WormholeExtrinsicTimestampDesc = 'wormholeExtrinsic_timestamp_DESC', - WormholeExtrinsicTimestampDescNullsFirst = 'wormholeExtrinsic_timestamp_DESC_NULLS_FIRST', - WormholeExtrinsicTimestampDescNullsLast = 'wormholeExtrinsic_timestamp_DESC_NULLS_LAST', - WormholeExtrinsicTotalAmountAsc = 'wormholeExtrinsic_totalAmount_ASC', - WormholeExtrinsicTotalAmountAscNullsFirst = 'wormholeExtrinsic_totalAmount_ASC_NULLS_FIRST', - WormholeExtrinsicTotalAmountAscNullsLast = 'wormholeExtrinsic_totalAmount_ASC_NULLS_LAST', - WormholeExtrinsicTotalAmountDesc = 'wormholeExtrinsic_totalAmount_DESC', - WormholeExtrinsicTotalAmountDescNullsFirst = 'wormholeExtrinsic_totalAmount_DESC_NULLS_FIRST', - WormholeExtrinsicTotalAmountDescNullsLast = 'wormholeExtrinsic_totalAmount_DESC_NULLS_LAST' -} +export type Subscription_RootAccount_Event_By_PkArgs = { + id: Scalars['String']['input']; +}; -export type WormholeOutputWhereInput = { - AND?: InputMaybe>; - OR?: InputMaybe>; - amount_eq?: InputMaybe; - amount_gt?: InputMaybe; - amount_gte?: InputMaybe; - amount_in?: InputMaybe>; - amount_isNull?: InputMaybe; - amount_lt?: InputMaybe; - amount_lte?: InputMaybe; - amount_not_eq?: InputMaybe; - amount_not_in?: InputMaybe>; - exitAccount?: InputMaybe; - exitAccount_isNull?: InputMaybe; - id_contains?: InputMaybe; - id_containsInsensitive?: InputMaybe; - id_endsWith?: InputMaybe; - id_eq?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_isNull?: InputMaybe; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not_contains?: InputMaybe; - id_not_containsInsensitive?: InputMaybe; - id_not_endsWith?: InputMaybe; - id_not_eq?: InputMaybe; - id_not_in?: InputMaybe>; - id_not_startsWith?: InputMaybe; - id_startsWith?: InputMaybe; - wormholeExtrinsic?: InputMaybe; - wormholeExtrinsic_isNull?: InputMaybe; -}; - -export type WormholeOutputsConnection = { - __typename?: 'WormholeOutputsConnection'; - edges: Array; - pageInfo: PageInfo; - totalCount: Scalars['Int']['output']; +export type Subscription_RootAccount_Event_StreamArgs = { + batch_size: Scalars['Int']['input']; + cursor: Array>; + where?: InputMaybe; }; -export type GetAccountsQueryVariables = Exact<{ +export type Subscription_RootAccount_StatsArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - orderBy?: InputMaybe | AccountOrderByInput>; -}>; + order_by?: InputMaybe>; + where?: InputMaybe; +}; -export type GetAccountsQuery = { - __typename?: 'Query'; - accounts: Array<{ - __typename?: 'Account'; - id: string; - free: any; - frozen: any; - reserved: any; - }>; - meta: { __typename?: 'AccountsConnection'; totalCount: number }; +export type Subscription_RootAccount_Stats_AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type GetAccountByIdQueryVariables = Exact<{ +export type Subscription_RootAccount_Stats_By_PkArgs = { id: Scalars['String']['input']; - limit: Scalars['Int']['input']; -}>; - -export type GetAccountByIdQuery = { - __typename?: 'Query'; - account?: { - __typename?: 'Account'; - id: string; - free: any; - frozen: any; - reserved: any; - } | null; - transactions: { - __typename?: 'TransfersConnection'; - totalCount: number; - edges: Array<{ - __typename?: 'TransferEdge'; - node: { - __typename?: 'Transfer'; - fee: any; - amount: any; - timestamp: any; - extrinsic?: { - __typename?: 'Extrinsic'; - id: string; - pallet: string; - call: string; - } | null; - block: { __typename?: 'Block'; height: number }; - from: { __typename?: 'Account'; id: string }; - to: { __typename?: 'Account'; id: string }; - }; - }>; - }; - scheduledReversibleTransactions: { - __typename?: 'ScheduledReversibleTransfersConnection'; - totalCount: number; - edges: Array<{ - __typename?: 'ScheduledReversibleTransferEdge'; - node: { - __typename?: 'ScheduledReversibleTransfer'; - timestamp: any; - amount: any; - scheduledAt: any; - txId: string; - fee: any; - extrinsic?: { - __typename?: 'Extrinsic'; - id: string; - pallet: string; - call: string; - } | null; - block: { __typename?: 'Block'; height: number }; - from: { __typename?: 'Account'; id: string }; - to: { __typename?: 'Account'; id: string }; - }; - }>; - }; - executedReversibleTransactions: { - __typename?: 'ExecutedReversibleTransfersConnection'; - totalCount: number; - edges: Array<{ - __typename?: 'ExecutedReversibleTransferEdge'; - node: { - __typename?: 'ExecutedReversibleTransfer'; - timestamp: any; - txId: string; - block: { __typename?: 'Block'; height: number }; - scheduledTransfer: { - __typename?: 'ScheduledReversibleTransfer'; - amount: any; - timestamp: any; - scheduledAt: any; - txId: string; - fee: any; - extrinsic?: { - __typename?: 'Extrinsic'; - id: string; - pallet: string; - call: string; - } | null; - block: { __typename?: 'Block'; height: number }; - from: { __typename?: 'Account'; id: string }; - to: { __typename?: 'Account'; id: string }; - }; - }; - }>; - }; - cancelledReversibleTransactions: { - __typename?: 'CancelledReversibleTransfersConnection'; - totalCount: number; - edges: Array<{ - __typename?: 'CancelledReversibleTransferEdge'; - node: { - __typename?: 'CancelledReversibleTransfer'; - timestamp: any; - txId: string; - block: { __typename?: 'Block'; height: number }; - cancelledBy: { __typename?: 'Account'; id: string }; - scheduledTransfer: { - __typename?: 'ScheduledReversibleTransfer'; - amount: any; - timestamp: any; - scheduledAt: any; - txId: string; - fee: any; - extrinsic?: { - __typename?: 'Extrinsic'; - id: string; - pallet: string; - call: string; - } | null; - block: { __typename?: 'Block'; height: number }; - from: { __typename?: 'Account'; id: string }; - to: { __typename?: 'Account'; id: string }; - }; - }; - }>; - }; - minerRewards: { - __typename?: 'MinerRewardsConnection'; - totalCount: number; - edges: Array<{ - __typename?: 'MinerRewardEdge'; - node: { - __typename?: 'MinerReward'; - reward: any; - timestamp: any; - block: { __typename?: 'Block'; height: number; hash: string }; - miner: { __typename?: 'Account'; id: string }; - }; - }>; - }; - guardian: { - __typename?: 'HighSecuritySetsConnection'; - totalCount: number; - edges: Array<{ - __typename?: 'HighSecuritySetEdge'; - node: { - __typename?: 'HighSecuritySet'; - timestamp: any; - block: { __typename?: 'Block'; height: number }; - interceptor: { - __typename?: 'Account'; - id: string; - free: any; - frozen: any; - reserved: any; - }; - }; - }>; - }; - beneficiaries: { - __typename?: 'HighSecuritySetsConnection'; - totalCount: number; - edges: Array<{ - __typename?: 'HighSecuritySetEdge'; - node: { - __typename?: 'HighSecuritySet'; - timestamp: any; - block: { __typename?: 'Block'; height: number }; - who: { - __typename?: 'Account'; - id: string; - free: any; - frozen: any; - reserved: any; - }; - }; - }>; - }; - wormholeOutputs: Array<{ - __typename?: 'WormholeOutput'; - id: string; - amount: any; - exitAccount: { __typename?: 'Account'; id: string }; - wormholeExtrinsic: { - __typename?: 'WormholeExtrinsic'; - id: string; - totalAmount: any; - outputCount: number; - timestamp: any; - extrinsic?: { - __typename?: 'Extrinsic'; - id: string; - pallet: string; - call: string; - } | null; - block: { __typename?: 'Block'; height: number }; - outputs: Array<{ - __typename?: 'WormholeOutput'; - id: string; - amount: any; - exitAccount: { __typename?: 'Account'; id: string }; - }>; - }; - }>; }; -export type GetAccountsStatsQueryVariables = Exact<{ - startDate: Scalars['DateTime']['input']; - endDate: Scalars['DateTime']['input']; -}>; +export type Subscription_RootAccount_Stats_StreamArgs = { + batch_size: Scalars['Int']['input']; + cursor: Array>; + where?: InputMaybe; +}; -export type GetAccountsStatsQuery = { - __typename?: 'Query'; - all: { __typename?: 'AccountsConnection'; totalCount: number }; - recentlyActive: { __typename?: 'AccountsConnection'; totalCount: number }; - recentlyDeposited: { __typename?: 'AccountsConnection'; totalCount: number }; +export type Subscription_RootAccount_StreamArgs = { + batch_size: Scalars['Int']['input']; + cursor: Array>; + where?: InputMaybe; }; -export type GetBlocksQueryVariables = Exact<{ +export type Subscription_RootBlockArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - orderBy: Array | BlockOrderByInput; - where?: InputMaybe; -}>; - -export type GetBlocksQuery = { - __typename?: 'Query'; - blocks: Array<{ - __typename?: 'Block'; - id: string; - hash: string; - height: number; - reward: any; - timestamp: any; - extrinsics: Array<{ __typename?: 'Extrinsic'; id: string }>; - }>; - meta: { __typename?: 'BlocksConnection'; totalCount: number }; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type GetRecentBlocksQueryVariables = Exact<{ +export type Subscription_RootBlock_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - orderBy?: InputMaybe | BlockOrderByInput>; -}>; - -export type GetRecentBlocksQuery = { - __typename?: 'Query'; - blocks: Array<{ - __typename?: 'Block'; - id: string; - hash: string; - height: number; - reward: any; - timestamp: any; - extrinsics: Array<{ __typename?: 'Extrinsic'; id: string }>; - }>; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type GetBlockByIdQueryVariables = Exact<{ - height: Scalars['Int']['input']; - hash: Scalars['String']['input']; - limit: Scalars['Int']['input']; -}>; +export type Subscription_RootBlock_By_PkArgs = { + id: Scalars['String']['input']; +}; -export type GetBlockByIdQuery = { - __typename?: 'Query'; - blocks: Array<{ - __typename?: 'Block'; - id: string; - hash: string; - height: number; - reward: any; - timestamp: any; - extrinsics: Array<{ - __typename?: 'Extrinsic'; - id: string; - pallet: string; - call: string; - success: boolean; - fee: any; - timestamp: any; - indexInBlock: number; - signer?: { __typename?: 'Account'; id: string } | null; - }>; - }>; - minerRewards: Array<{ - __typename?: 'MinerReward'; - reward: any; - timestamp: any; - miner: { __typename?: 'Account'; id: string }; - block: { __typename?: 'Block'; height: number; hash: string }; - }>; - transactions: { - __typename?: 'TransfersConnection'; - totalCount: number; - edges: Array<{ - __typename?: 'TransferEdge'; - node: { - __typename?: 'Transfer'; - fee: any; - amount: any; - timestamp: any; - extrinsic?: { - __typename?: 'Extrinsic'; - id: string; - pallet: string; - call: string; - } | null; - block: { __typename?: 'Block'; height: number }; - from: { __typename?: 'Account'; id: string }; - to: { __typename?: 'Account'; id: string }; - }; - }>; - }; - scheduledReversibleTransactions: { - __typename?: 'ScheduledReversibleTransfersConnection'; - totalCount: number; - edges: Array<{ - __typename?: 'ScheduledReversibleTransferEdge'; - node: { - __typename?: 'ScheduledReversibleTransfer'; - timestamp: any; - amount: any; - scheduledAt: any; - txId: string; - fee: any; - extrinsic?: { - __typename?: 'Extrinsic'; - id: string; - pallet: string; - call: string; - } | null; - block: { __typename?: 'Block'; height: number }; - from: { __typename?: 'Account'; id: string }; - to: { __typename?: 'Account'; id: string }; - }; - }>; - }; - executedReversibleTransactions: { - __typename?: 'ExecutedReversibleTransfersConnection'; - totalCount: number; - edges: Array<{ - __typename?: 'ExecutedReversibleTransferEdge'; - node: { - __typename?: 'ExecutedReversibleTransfer'; - timestamp: any; - txId: string; - block: { __typename?: 'Block'; height: number }; - scheduledTransfer: { - __typename?: 'ScheduledReversibleTransfer'; - amount: any; - timestamp: any; - scheduledAt: any; - txId: string; - fee: any; - extrinsic?: { - __typename?: 'Extrinsic'; - id: string; - pallet: string; - call: string; - } | null; - block: { __typename?: 'Block'; height: number }; - from: { __typename?: 'Account'; id: string }; - to: { __typename?: 'Account'; id: string }; - }; - }; - }>; - }; - cancelledReversibleTransactions: { - __typename?: 'CancelledReversibleTransfersConnection'; - totalCount: number; - edges: Array<{ - __typename?: 'CancelledReversibleTransferEdge'; - node: { - __typename?: 'CancelledReversibleTransfer'; - timestamp: any; - txId: string; - block: { __typename?: 'Block'; height: number }; - cancelledBy: { __typename?: 'Account'; id: string }; - scheduledTransfer: { - __typename?: 'ScheduledReversibleTransfer'; - amount: any; - timestamp: any; - scheduledAt: any; - txId: string; - fee: any; - extrinsic?: { - __typename?: 'Extrinsic'; - id: string; - pallet: string; - call: string; - } | null; - block: { __typename?: 'Block'; height: number }; - from: { __typename?: 'Account'; id: string }; - to: { __typename?: 'Account'; id: string }; - }; - }; - }>; - }; - highSecuritySets: { - __typename?: 'HighSecuritySetsConnection'; - totalCount: number; - edges: Array<{ - __typename?: 'HighSecuritySetEdge'; - node: { - __typename?: 'HighSecuritySet'; - timestamp: any; - delay: any; - extrinsic?: { - __typename?: 'Extrinsic'; - id: string; - pallet: string; - call: string; - } | null; - block: { __typename?: 'Block'; height: number }; - who: { __typename?: 'Account'; id: string }; - interceptor: { __typename?: 'Account'; id: string }; - }; - }>; - }; - errorEvents: { - __typename?: 'ErrorEventsConnection'; - totalCount: number; - edges: Array<{ - __typename?: 'ErrorEventEdge'; - node: { - __typename?: 'ErrorEvent'; - errorDocs?: string | null; - errorModule?: string | null; - errorName?: string | null; - errorType: string; - timestamp: any; - extrinsic?: { - __typename?: 'Extrinsic'; - id: string; - pallet: string; - call: string; - } | null; - block: { __typename?: 'Block'; height: number }; - }; - }>; - }; - wormholeExtrinsics: Array<{ - __typename?: 'WormholeExtrinsic'; - id: string; - totalAmount: any; - outputCount: number; - timestamp: any; - extrinsic?: { - __typename?: 'Extrinsic'; - id: string; - pallet: string; - call: string; - } | null; - block: { __typename?: 'Block'; height: number }; - outputs: Array<{ - __typename?: 'WormholeOutput'; - id: string; - amount: any; - exitAccount: { __typename?: 'Account'; id: string }; - }>; - }>; +export type Subscription_RootBlock_StreamArgs = { + batch_size: Scalars['Int']['input']; + cursor: Array>; + where?: InputMaybe; }; -export type GetCancelledReversibleTransactionsQueryVariables = Exact<{ +export type Subscription_RootCancelled_Reversible_TransferArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - orderBy?: InputMaybe< - | Array - | CancelledReversibleTransferOrderByInput - >; - where?: InputMaybe; -}>; - -export type GetCancelledReversibleTransactionsQuery = { - __typename?: 'Query'; - cancelledReversibleTransactions: Array<{ - __typename?: 'CancelledReversibleTransfer'; - timestamp: any; - txId: string; - block: { __typename?: 'Block'; height: number }; - cancelledBy: { __typename?: 'Account'; id: string }; - scheduledTransfer: { - __typename?: 'ScheduledReversibleTransfer'; - amount: any; - timestamp: any; - scheduledAt: any; - txId: string; - fee: any; - extrinsic?: { - __typename?: 'Extrinsic'; - id: string; - pallet: string; - call: string; - } | null; - block: { __typename?: 'Block'; height: number }; - from: { __typename?: 'Account'; id: string }; - to: { __typename?: 'Account'; id: string }; - }; - }>; - meta: { - __typename?: 'CancelledReversibleTransfersConnection'; - totalCount: number; - }; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type GetRecentCancelledReversibleTransactionsQueryVariables = Exact<{ +export type Subscription_RootCancelled_Reversible_Transfer_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - orderBy?: InputMaybe< - | Array - | CancelledReversibleTransferOrderByInput - >; -}>; - -export type GetRecentCancelledReversibleTransactionsQuery = { - __typename?: 'Query'; - cancelledReversibleTransactions: Array<{ - __typename?: 'CancelledReversibleTransfer'; - timestamp: any; - txId: string; - block: { __typename?: 'Block'; height: number }; - cancelledBy: { __typename?: 'Account'; id: string }; - scheduledTransfer: { - __typename?: 'ScheduledReversibleTransfer'; - amount: any; - timestamp: any; - scheduledAt: any; - txId: string; - fee: any; - extrinsic?: { - __typename?: 'Extrinsic'; - id: string; - pallet: string; - call: string; - } | null; - block: { __typename?: 'Block'; height: number }; - from: { __typename?: 'Account'; id: string }; - to: { __typename?: 'Account'; id: string }; - }; - }>; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type GetCancelledReversibleTransactionsStatsQueryVariables = Exact<{ - startDate: Scalars['DateTime']['input']; - endDate: Scalars['DateTime']['input']; -}>; +export type Subscription_RootCancelled_Reversible_Transfer_By_PkArgs = { + id: Scalars['String']['input']; +}; -export type GetCancelledReversibleTransactionsStatsQuery = { - __typename?: 'Query'; - last24Hour: { - __typename?: 'CancelledReversibleTransfersConnection'; - totalCount: number; - }; - allTime: { - __typename?: 'CancelledReversibleTransfersConnection'; - totalCount: number; - }; +export type Subscription_RootCancelled_Reversible_Transfer_StreamArgs = { + batch_size: Scalars['Int']['input']; + cursor: Array>; + where?: InputMaybe; }; -export type GetCancelledReversibleTransactionByTxIdQueryVariables = Exact<{ - txId: Scalars['String']['input']; -}>; +export type Subscription_RootChain_StatsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; -export type GetCancelledReversibleTransactionByTxIdQuery = { - __typename?: 'Query'; - cancelledReversibleTransactions: Array<{ - __typename?: 'CancelledReversibleTransfer'; - timestamp: any; - txId: string; - block: { __typename?: 'Block'; height: number }; - cancelledBy: { __typename?: 'Account'; id: string }; - extrinsic?: { - __typename?: 'Extrinsic'; - id: string; - pallet: string; - call: string; - } | null; - scheduledTransfer: { - __typename?: 'ScheduledReversibleTransfer'; - amount: any; - scheduledAt: any; - fee: any; - from: { __typename?: 'Account'; id: string }; - to: { __typename?: 'Account'; id: string }; - }; - }>; +export type Subscription_RootChain_Stats_AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type GetStatusQueryVariables = Exact<{ [key: string]: never }>; +export type Subscription_RootChain_Stats_By_PkArgs = { + id: Scalars['String']['input']; +}; -export type GetStatusQuery = { - __typename?: 'Query'; - status?: { - __typename?: 'SquidStatus'; - hash?: string | null; - height?: number | null; - finalizedHeight?: number | null; - finalizedHash?: string | null; - } | null; +export type Subscription_RootChain_Stats_StreamArgs = { + batch_size: Scalars['Int']['input']; + cursor: Array>; + where?: InputMaybe; }; -export type GetErrorEventsQueryVariables = Exact<{ +export type Subscription_RootDeposit_Pool_StatsArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - orderBy?: InputMaybe | ErrorEventOrderByInput>; - where?: InputMaybe; -}>; - -export type GetErrorEventsQuery = { - __typename?: 'Query'; - errorEvents: Array<{ - __typename?: 'ErrorEvent'; - errorDocs?: string | null; - errorModule?: string | null; - errorName?: string | null; - errorType: string; - id: string; - timestamp: any; - extrinsic?: { - __typename?: 'Extrinsic'; - id: string; - pallet: string; - call: string; - } | null; - block: { __typename?: 'Block'; height: number }; - }>; - meta: { __typename?: 'ErrorEventsConnection'; totalCount: number }; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type GetRecentErrorEventsQueryVariables = Exact<{ +export type Subscription_RootDeposit_Pool_Stats_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - orderBy?: InputMaybe | ErrorEventOrderByInput>; - where?: InputMaybe; -}>; - -export type GetRecentErrorEventsQuery = { - __typename?: 'Query'; - errorEvents: Array<{ - __typename?: 'ErrorEvent'; - errorDocs?: string | null; - errorModule?: string | null; - errorName?: string | null; - errorType: string; - id: string; - timestamp: any; - extrinsic?: { - __typename?: 'Extrinsic'; - id: string; - pallet: string; - call: string; - } | null; - block: { __typename?: 'Block'; height: number }; - }>; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type GetErrorEventsStatsQueryVariables = Exact<{ - startDate: Scalars['DateTime']['input']; - endDate: Scalars['DateTime']['input']; -}>; - -export type GetErrorEventsStatsQuery = { - __typename?: 'Query'; - last24Hour: { __typename?: 'ErrorEventsConnection'; totalCount: number }; - allTime: { __typename?: 'ErrorEventsConnection'; totalCount: number }; +export type Subscription_RootDeposit_Pool_Stats_By_PkArgs = { + id: Scalars['String']['input']; }; -export type GetErrorEventByHashQueryVariables = Exact<{ - hash: Scalars['String']['input']; -}>; +export type Subscription_RootDeposit_Pool_Stats_StreamArgs = { + batch_size: Scalars['Int']['input']; + cursor: Array>; + where?: InputMaybe; +}; -export type GetErrorEventByHashQuery = { - __typename?: 'Query'; - errorEvents: Array<{ - __typename?: 'ErrorEvent'; - errorDocs?: string | null; - errorModule?: string | null; - errorName?: string | null; - errorType: string; - id: string; - timestamp: any; - extrinsic?: { - __typename?: 'Extrinsic'; - id: string; - pallet: string; - call: string; - } | null; - block: { __typename?: 'Block'; height: number }; - }>; +export type Subscription_RootError_EventArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type GetExecutedReversibleTransactionsQueryVariables = Exact<{ +export type Subscription_RootError_Event_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - orderBy?: InputMaybe< - | Array - | ExecutedReversibleTransferOrderByInput - >; - where?: InputMaybe; -}>; + order_by?: InputMaybe>; + where?: InputMaybe; +}; -export type GetExecutedReversibleTransactionsQuery = { - __typename?: 'Query'; - executedReversibleTransactions: Array<{ - __typename?: 'ExecutedReversibleTransfer'; - timestamp: any; - txId: string; - block: { __typename?: 'Block'; height: number }; - scheduledTransfer: { - __typename?: 'ScheduledReversibleTransfer'; - amount: any; - timestamp: any; - scheduledAt: any; - txId: string; - fee: any; - extrinsic?: { - __typename?: 'Extrinsic'; - id: string; - pallet: string; - call: string; - } | null; - block: { __typename?: 'Block'; height: number }; - from: { __typename?: 'Account'; id: string }; - to: { __typename?: 'Account'; id: string }; - }; - }>; - meta: { - __typename?: 'ExecutedReversibleTransfersConnection'; - totalCount: number; - }; +export type Subscription_RootError_Event_By_PkArgs = { + id: Scalars['String']['input']; }; -export type GetRecentExecutedReversibleTransactionsQueryVariables = Exact<{ +export type Subscription_RootError_Event_StreamArgs = { + batch_size: Scalars['Int']['input']; + cursor: Array>; + where?: InputMaybe; +}; + +export type Subscription_RootEventArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - orderBy?: InputMaybe< - | Array - | ExecutedReversibleTransferOrderByInput - >; -}>; - -export type GetRecentExecutedReversibleTransactionsQuery = { - __typename?: 'Query'; - executedReversibleTransactions: Array<{ - __typename?: 'ExecutedReversibleTransfer'; - timestamp: any; - txId: string; - block: { __typename?: 'Block'; height: number }; - scheduledTransfer: { - __typename?: 'ScheduledReversibleTransfer'; - amount: any; - timestamp: any; - scheduledAt: any; - txId: string; - fee: any; - extrinsic?: { - __typename?: 'Extrinsic'; - id: string; - pallet: string; - call: string; - } | null; - block: { __typename?: 'Block'; height: number }; - from: { __typename?: 'Account'; id: string }; - to: { __typename?: 'Account'; id: string }; - }; - }>; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type GetExecutedReversibleTransactionsStatsQueryVariables = Exact<{ - startDate: Scalars['DateTime']['input']; - endDate: Scalars['DateTime']['input']; -}>; +export type Subscription_RootEvent_AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; -export type GetExecutedReversibleTransactionsStatsQuery = { - __typename?: 'Query'; - last24Hour: { - __typename?: 'ExecutedReversibleTransfersConnection'; - totalCount: number; - }; - allTime: { - __typename?: 'ExecutedReversibleTransfersConnection'; - totalCount: number; - }; +export type Subscription_RootEvent_By_PkArgs = { + id: Scalars['String']['input']; }; -export type GetExecutedReversibleTransactionByTxIdQueryVariables = Exact<{ - txId: Scalars['String']['input']; -}>; +export type Subscription_RootEvent_StreamArgs = { + batch_size: Scalars['Int']['input']; + cursor: Array>; + where?: InputMaybe; +}; -export type GetExecutedReversibleTransactionByTxIdQuery = { - __typename?: 'Query'; - executedReversibleTransactions: Array<{ - __typename?: 'ExecutedReversibleTransfer'; - timestamp: any; - txId: string; - block: { __typename?: 'Block'; height: number }; - scheduledTransfer: { - __typename?: 'ScheduledReversibleTransfer'; - amount: any; - scheduledAt: any; - fee: any; - from: { __typename?: 'Account'; id: string }; - to: { __typename?: 'Account'; id: string }; - }; - }>; +export type Subscription_RootExecuted_Reversible_TransferArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type GetHighSecuritySetsQueryVariables = Exact<{ +export type Subscription_RootExecuted_Reversible_Transfer_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - orderBy?: InputMaybe< - Array | HighSecuritySetOrderByInput - >; - where?: InputMaybe; -}>; + order_by?: InputMaybe>; + where?: InputMaybe; +}; -export type GetHighSecuritySetsQuery = { - __typename?: 'Query'; - highSecuritySets: Array<{ - __typename?: 'HighSecuritySet'; - id: string; - timestamp: any; - delay: any; - extrinsic?: { - __typename?: 'Extrinsic'; - id: string; - pallet: string; - call: string; - } | null; - who: { __typename?: 'Account'; id: string }; - interceptor: { __typename?: 'Account'; id: string }; - block: { __typename?: 'Block'; height: number }; - }>; - meta: { __typename?: 'HighSecuritySetsConnection'; totalCount: number }; +export type Subscription_RootExecuted_Reversible_Transfer_By_PkArgs = { + id: Scalars['String']['input']; }; -export type GetRecentHighSecuritySetsQueryVariables = Exact<{ +export type Subscription_RootExecuted_Reversible_Transfer_StreamArgs = { + batch_size: Scalars['Int']['input']; + cursor: Array>; + where?: InputMaybe; +}; + +export type Subscription_RootExtrinsicArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - orderBy?: InputMaybe< - Array | HighSecuritySetOrderByInput - >; - where?: InputMaybe; -}>; - -export type GetRecentHighSecuritySetsQuery = { - __typename?: 'Query'; - highSecuritySets: Array<{ - __typename?: 'HighSecuritySet'; - id: string; - timestamp: any; - delay: any; - extrinsic?: { - __typename?: 'Extrinsic'; - id: string; - pallet: string; - call: string; - } | null; - who: { __typename?: 'Account'; id: string }; - interceptor: { __typename?: 'Account'; id: string }; - block: { __typename?: 'Block'; height: number }; - }>; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type GetHighSecuritySetsStatsQueryVariables = Exact<{ - startDate: Scalars['DateTime']['input']; - endDate: Scalars['DateTime']['input']; -}>; +export type Subscription_RootExtrinsic_AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; -export type GetHighSecuritySetsStatsQuery = { - __typename?: 'Query'; - last24Hour: { __typename?: 'HighSecuritySetsConnection'; totalCount: number }; - allTime: { __typename?: 'HighSecuritySetsConnection'; totalCount: number }; +export type Subscription_RootExtrinsic_By_PkArgs = { + id: Scalars['String']['input']; }; -export type GetHighSecuritySetByHashQueryVariables = Exact<{ - hash: Scalars['String']['input']; -}>; +export type Subscription_RootExtrinsic_StreamArgs = { + batch_size: Scalars['Int']['input']; + cursor: Array>; + where?: InputMaybe; +}; -export type GetHighSecuritySetByHashQuery = { - __typename?: 'Query'; - highSecuritySets: Array<{ - __typename?: 'HighSecuritySet'; - id: string; - timestamp: any; - delay: any; - extrinsic?: { - __typename?: 'Extrinsic'; - id: string; - pallet: string; - call: string; - } | null; - who: { __typename?: 'Account'; id: string }; - interceptor: { __typename?: 'Account'; id: string }; - block: { __typename?: 'Block'; height: number }; - }>; +export type Subscription_RootHigh_Security_SetArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type GetMinerLeaderboardQueryVariables = Exact<{ +export type Subscription_RootHigh_Security_Set_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; -}>; + order_by?: InputMaybe>; + where?: InputMaybe; +}; -export type GetMinerLeaderboardQuery = { - __typename?: 'Query'; - leaderboardEntries: Array<{ - __typename?: 'MinerStats'; - id: string; - totalMinedBlocks: number; - totalRewards: any; - }>; - meta: { __typename?: 'MinerStatsConnection'; totalCount: number }; +export type Subscription_RootHigh_Security_Set_By_PkArgs = { + id: Scalars['String']['input']; }; -export type GetMinerRewardsQueryVariables = Exact<{ +export type Subscription_RootHigh_Security_Set_StreamArgs = { + batch_size: Scalars['Int']['input']; + cursor: Array>; + where?: InputMaybe; +}; + +export type Subscription_RootMiner_RewardArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - orderBy?: InputMaybe< - Array | MinerRewardOrderByInput - >; - where?: InputMaybe; -}>; - -export type GetMinerRewardsQuery = { - __typename?: 'Query'; - minerRewards: Array<{ - __typename?: 'MinerReward'; - reward: any; - timestamp: any; - block: { __typename?: 'Block'; height: number; hash: string }; - miner: { __typename?: 'Account'; id: string }; - }>; - meta: { __typename?: 'MinerRewardsConnection'; totalCount: number }; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type GetRecentMinerRewardsQueryVariables = Exact<{ +export type Subscription_RootMiner_Reward_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - orderBy?: InputMaybe< - Array | MinerRewardOrderByInput - >; - where?: InputMaybe; -}>; + order_by?: InputMaybe>; + where?: InputMaybe; +}; -export type GetRecentMinerRewardsQuery = { - __typename?: 'Query'; - minerRewards: Array<{ - __typename?: 'MinerReward'; - reward: any; - timestamp: any; - block: { __typename?: 'Block'; height: number; hash: string }; - miner: { __typename?: 'Account'; id: string }; - }>; +export type Subscription_RootMiner_Reward_By_PkArgs = { + id: Scalars['String']['input']; }; -export type GetMinerRewardsStatsQueryVariables = Exact<{ - startDate: Scalars['DateTime']['input']; - endDate: Scalars['DateTime']['input']; -}>; +export type Subscription_RootMiner_Reward_StreamArgs = { + batch_size: Scalars['Int']['input']; + cursor: Array>; + where?: InputMaybe; +}; -export type GetMinerRewardsStatsQuery = { - __typename?: 'Query'; - last24Hour: { __typename?: 'MinerRewardsConnection'; totalCount: number }; - allTime: { __typename?: 'MinerRewardsConnection'; totalCount: number }; +export type Subscription_RootScheduled_Reversible_TransferArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type GetMinerRewardByHashQueryVariables = Exact<{ - hash: Scalars['String']['input']; -}>; +export type Subscription_RootScheduled_Reversible_Transfer_AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; -export type GetMinerRewardByHashQuery = { - __typename?: 'Query'; - minerRewards: Array<{ - __typename?: 'MinerReward'; - reward: any; - timestamp: any; - block: { __typename?: 'Block'; height: number; hash: string }; - miner: { __typename?: 'Account'; id: string }; - }>; +export type Subscription_RootScheduled_Reversible_Transfer_By_PkArgs = { + id: Scalars['String']['input']; }; -export type GetScheduledReversibleTransactionsQueryVariables = Exact<{ +export type Subscription_RootScheduled_Reversible_Transfer_StreamArgs = { + batch_size: Scalars['Int']['input']; + cursor: Array>; + where?: InputMaybe; +}; + +export type Subscription_RootTransferArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - orderBy?: InputMaybe< - | Array - | ScheduledReversibleTransferOrderByInput - >; - where?: InputMaybe; -}>; - -export type GetScheduledReversibleTransactionsQuery = { - __typename?: 'Query'; - scheduledReversibleTransactions: Array<{ - __typename?: 'ScheduledReversibleTransfer'; - amount: any; - timestamp: any; - scheduledAt: any; - txId: string; - fee: any; - extrinsic?: { - __typename?: 'Extrinsic'; - id: string; - pallet: string; - call: string; - } | null; - block: { __typename?: 'Block'; height: number }; - from: { __typename?: 'Account'; id: string }; - to: { __typename?: 'Account'; id: string }; - }>; - meta: { - __typename?: 'ScheduledReversibleTransfersConnection'; - totalCount: number; - }; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type GetRecentScheduledReversibleTransactionsQueryVariables = Exact<{ +export type Subscription_RootTransfer_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - orderBy?: InputMaybe< - | Array - | ScheduledReversibleTransferOrderByInput - >; -}>; + order_by?: InputMaybe>; + where?: InputMaybe; +}; -export type GetRecentScheduledReversibleTransactionsQuery = { - __typename?: 'Query'; - scheduledReversibleTransactions: Array<{ - __typename?: 'ScheduledReversibleTransfer'; - amount: any; - timestamp: any; - scheduledAt: any; - txId: string; - fee: any; - extrinsic?: { - __typename?: 'Extrinsic'; - id: string; - pallet: string; - call: string; - } | null; - block: { __typename?: 'Block'; height: number }; - from: { __typename?: 'Account'; id: string }; - to: { __typename?: 'Account'; id: string }; - }>; +export type Subscription_RootTransfer_By_PkArgs = { + id: Scalars['String']['input']; }; -export type GetScheduledReversibleTransactionsStatsQueryVariables = Exact<{ - startDate: Scalars['DateTime']['input']; - endDate: Scalars['DateTime']['input']; -}>; +export type Subscription_RootTransfer_StreamArgs = { + batch_size: Scalars['Int']['input']; + cursor: Array>; + where?: InputMaybe; +}; -export type GetScheduledReversibleTransactionsStatsQuery = { - __typename?: 'Query'; - last24Hour: { - __typename?: 'ScheduledReversibleTransfersConnection'; - totalCount: number; - }; - allTime: { - __typename?: 'ScheduledReversibleTransfersConnection'; - totalCount: number; - }; +export type Subscription_RootWormhole_ExtrinsicArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type GetScheduledReversibleTransactionByTxIdQueryVariables = Exact<{ - txId: Scalars['String']['input']; -}>; +export type Subscription_RootWormhole_Extrinsic_AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; -export type GetScheduledReversibleTransactionByTxIdQuery = { - __typename?: 'Query'; - scheduledReversibleTransactions: Array<{ - __typename?: 'ScheduledReversibleTransfer'; - amount: any; - timestamp: any; - scheduledAt: any; - txId: string; - fee: any; - extrinsic?: { - __typename?: 'Extrinsic'; - id: string; - pallet: string; - call: string; - } | null; - block: { __typename?: 'Block'; height: number }; - from: { __typename?: 'Account'; id: string }; - to: { __typename?: 'Account'; id: string }; - }>; +export type Subscription_RootWormhole_Extrinsic_By_PkArgs = { + id: Scalars['String']['input']; }; -export type SearchAllQueryVariables = Exact<{ - keyword?: InputMaybe; - keyword_number?: InputMaybe; +export type Subscription_RootWormhole_Extrinsic_StreamArgs = { + batch_size: Scalars['Int']['input']; + cursor: Array>; + where?: InputMaybe; +}; + +export type Subscription_RootWormhole_NullifierArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; -}>; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; -export type SearchAllQuery = { - __typename?: 'Query'; - transactions: Array<{ - __typename?: 'Transfer'; - extrinsic?: { - __typename?: 'Extrinsic'; - id: string; - pallet: string; - call: string; - } | null; - }>; - scheduledReversibleTransactions: Array<{ - __typename?: 'ScheduledReversibleTransfer'; - txId: string; - extrinsic?: { - __typename?: 'Extrinsic'; - id: string; - pallet: string; - call: string; - } | null; - }>; - executedReversibleTransactions: Array<{ - __typename?: 'ExecutedReversibleTransfer'; - txId: string; - }>; - cancelledReversibleTransactions: Array<{ - __typename?: 'CancelledReversibleTransfer'; - txId: string; - }>; - accounts: Array<{ __typename?: 'Account'; id: string }>; - blocks: Array<{ __typename?: 'Block'; height: number }>; - highSecuritySets: Array<{ - __typename?: 'HighSecuritySet'; - extrinsic?: { - __typename?: 'Extrinsic'; - id: string; - pallet: string; - call: string; - } | null; - }>; - minerRewards: Array<{ - __typename?: 'MinerReward'; - reward: any; - timestamp: any; - block: { __typename?: 'Block'; height: number; hash: string }; - miner: { __typename?: 'Account'; id: string }; - }>; - errorEvents: Array<{ - __typename?: 'ErrorEvent'; - extrinsic?: { - __typename?: 'Extrinsic'; - id: string; - pallet: string; - call: string; - } | null; - }>; +export type Subscription_RootWormhole_Nullifier_AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type GetTransactionsQueryVariables = Exact<{ +export type Subscription_RootWormhole_Nullifier_By_PkArgs = { + id: Scalars['String']['input']; +}; + +export type Subscription_RootWormhole_Nullifier_StreamArgs = { + batch_size: Scalars['Int']['input']; + cursor: Array>; + where?: InputMaybe; +}; + +export type Subscription_RootWormhole_OutputArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - orderBy?: InputMaybe | TransferOrderByInput>; - where?: InputMaybe; -}>; + order_by?: InputMaybe>; + where?: InputMaybe; +}; -export type GetTransactionsQuery = { - __typename?: 'Query'; - transactions: Array<{ - __typename?: 'Transfer'; - fee: any; - amount: any; - timestamp: any; - extrinsic?: { - __typename?: 'Extrinsic'; - id: string; - pallet: string; - call: string; - } | null; - block: { __typename?: 'Block'; height: number }; - from: { __typename?: 'Account'; id: string }; - to: { __typename?: 'Account'; id: string }; - }>; - meta: { __typename?: 'TransfersConnection'; totalCount: number }; +export type Subscription_RootWormhole_Output_AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type GetRecentTransactionsQueryVariables = Exact<{ +export type Subscription_RootWormhole_Output_By_PkArgs = { + id: Scalars['String']['input']; +}; + +export type Subscription_RootWormhole_Output_StreamArgs = { + batch_size: Scalars['Int']['input']; + cursor: Array>; + where?: InputMaybe; +}; + +/** Boolean expression to compare columns of type "timestamptz". All fields are combined with logical 'AND'. */ +export type Timestamptz_Comparison_Exp = { + _eq?: InputMaybe; + _gt?: InputMaybe; + _gte?: InputMaybe; + _in?: InputMaybe>; + _is_null?: InputMaybe; + _lt?: InputMaybe; + _lte?: InputMaybe; + _neq?: InputMaybe; + _nin?: InputMaybe>; +}; + +/** columns and relationships of "transfer" */ +export type Transfer = { + __typename?: 'transfer'; + amount: Scalars['numeric']['output']; + /** An object relationship */ + block?: Maybe; + block_id?: Maybe; + /** An object relationship */ + event?: Maybe; + /** An object relationship */ + executedBy?: Maybe; + /** An object relationship */ + extrinsic?: Maybe; + extrinsic_id?: Maybe; + fee: Scalars['numeric']['output']; + /** An object relationship */ + from?: Maybe; + from_hash: Scalars['String']['output']; + from_id?: Maybe; + id: Scalars['String']['output']; + leaf_index: Scalars['numeric']['output']; + timestamp: Scalars['timestamptz']['output']; + /** An object relationship */ + to?: Maybe; + to_hash: Scalars['String']['output']; + to_id?: Maybe; + transfer_count: Scalars['numeric']['output']; +}; + +/** aggregated selection of "transfer" */ +export type Transfer_Aggregate = { + __typename?: 'transfer_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +export type Transfer_Aggregate_Bool_Exp = { + count?: InputMaybe; +}; + +export type Transfer_Aggregate_Bool_Exp_Count = { + arguments?: InputMaybe>; + distinct?: InputMaybe; + filter?: InputMaybe; + predicate: Int_Comparison_Exp; +}; + +/** aggregate fields of "transfer" */ +export type Transfer_Aggregate_Fields = { + __typename?: 'transfer_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + +/** aggregate fields of "transfer" */ +export type Transfer_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** order by aggregate values of table "transfer" */ +export type Transfer_Aggregate_Order_By = { + avg?: InputMaybe; + count?: InputMaybe; + max?: InputMaybe; + min?: InputMaybe; + stddev?: InputMaybe; + stddev_pop?: InputMaybe; + stddev_samp?: InputMaybe; + sum?: InputMaybe; + var_pop?: InputMaybe; + var_samp?: InputMaybe; + variance?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type Transfer_Avg_Fields = { + __typename?: 'transfer_avg_fields'; + amount?: Maybe; + fee?: Maybe; + leaf_index?: Maybe; + transfer_count?: Maybe; +}; + +/** order by avg() on columns of table "transfer" */ +export type Transfer_Avg_Order_By = { + amount?: InputMaybe; + fee?: InputMaybe; + leaf_index?: InputMaybe; + transfer_count?: InputMaybe; +}; + +/** Boolean expression to filter rows from the table "transfer". All fields are combined with a logical 'AND'. */ +export type Transfer_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + amount?: InputMaybe; + block?: InputMaybe; + block_id?: InputMaybe; + event?: InputMaybe; + executedBy?: InputMaybe; + extrinsic?: InputMaybe; + extrinsic_id?: InputMaybe; + fee?: InputMaybe; + from?: InputMaybe; + from_hash?: InputMaybe; + from_id?: InputMaybe; + id?: InputMaybe; + leaf_index?: InputMaybe; + timestamp?: InputMaybe; + to?: InputMaybe; + to_hash?: InputMaybe; + to_id?: InputMaybe; + transfer_count?: InputMaybe; +}; + +/** aggregate max on columns */ +export type Transfer_Max_Fields = { + __typename?: 'transfer_max_fields'; + amount?: Maybe; + block_id?: Maybe; + extrinsic_id?: Maybe; + fee?: Maybe; + from_hash?: Maybe; + from_id?: Maybe; + id?: Maybe; + leaf_index?: Maybe; + timestamp?: Maybe; + to_hash?: Maybe; + to_id?: Maybe; + transfer_count?: Maybe; +}; + +/** order by max() on columns of table "transfer" */ +export type Transfer_Max_Order_By = { + amount?: InputMaybe; + block_id?: InputMaybe; + extrinsic_id?: InputMaybe; + fee?: InputMaybe; + from_hash?: InputMaybe; + from_id?: InputMaybe; + id?: InputMaybe; + leaf_index?: InputMaybe; + timestamp?: InputMaybe; + to_hash?: InputMaybe; + to_id?: InputMaybe; + transfer_count?: InputMaybe; +}; + +/** aggregate min on columns */ +export type Transfer_Min_Fields = { + __typename?: 'transfer_min_fields'; + amount?: Maybe; + block_id?: Maybe; + extrinsic_id?: Maybe; + fee?: Maybe; + from_hash?: Maybe; + from_id?: Maybe; + id?: Maybe; + leaf_index?: Maybe; + timestamp?: Maybe; + to_hash?: Maybe; + to_id?: Maybe; + transfer_count?: Maybe; +}; + +/** order by min() on columns of table "transfer" */ +export type Transfer_Min_Order_By = { + amount?: InputMaybe; + block_id?: InputMaybe; + extrinsic_id?: InputMaybe; + fee?: InputMaybe; + from_hash?: InputMaybe; + from_id?: InputMaybe; + id?: InputMaybe; + leaf_index?: InputMaybe; + timestamp?: InputMaybe; + to_hash?: InputMaybe; + to_id?: InputMaybe; + transfer_count?: InputMaybe; +}; + +/** Ordering options when selecting data from "transfer". */ +export type Transfer_Order_By = { + amount?: InputMaybe; + block?: InputMaybe; + block_id?: InputMaybe; + event?: InputMaybe; + executedBy?: InputMaybe; + extrinsic?: InputMaybe; + extrinsic_id?: InputMaybe; + fee?: InputMaybe; + from?: InputMaybe; + from_hash?: InputMaybe; + from_id?: InputMaybe; + id?: InputMaybe; + leaf_index?: InputMaybe; + timestamp?: InputMaybe; + to?: InputMaybe; + to_hash?: InputMaybe; + to_id?: InputMaybe; + transfer_count?: InputMaybe; +}; + +/** select columns of table "transfer" */ +export enum Transfer_Select_Column { + /** column name */ + Amount = 'amount', + /** column name */ + BlockId = 'block_id', + /** column name */ + ExtrinsicId = 'extrinsic_id', + /** column name */ + Fee = 'fee', + /** column name */ + FromHash = 'from_hash', + /** column name */ + FromId = 'from_id', + /** column name */ + Id = 'id', + /** column name */ + LeafIndex = 'leaf_index', + /** column name */ + Timestamp = 'timestamp', + /** column name */ + ToHash = 'to_hash', + /** column name */ + ToId = 'to_id', + /** column name */ + TransferCount = 'transfer_count' +} + +/** aggregate stddev on columns */ +export type Transfer_Stddev_Fields = { + __typename?: 'transfer_stddev_fields'; + amount?: Maybe; + fee?: Maybe; + leaf_index?: Maybe; + transfer_count?: Maybe; +}; + +/** order by stddev() on columns of table "transfer" */ +export type Transfer_Stddev_Order_By = { + amount?: InputMaybe; + fee?: InputMaybe; + leaf_index?: InputMaybe; + transfer_count?: InputMaybe; +}; + +/** aggregate stddev_pop on columns */ +export type Transfer_Stddev_Pop_Fields = { + __typename?: 'transfer_stddev_pop_fields'; + amount?: Maybe; + fee?: Maybe; + leaf_index?: Maybe; + transfer_count?: Maybe; +}; + +/** order by stddev_pop() on columns of table "transfer" */ +export type Transfer_Stddev_Pop_Order_By = { + amount?: InputMaybe; + fee?: InputMaybe; + leaf_index?: InputMaybe; + transfer_count?: InputMaybe; +}; + +/** aggregate stddev_samp on columns */ +export type Transfer_Stddev_Samp_Fields = { + __typename?: 'transfer_stddev_samp_fields'; + amount?: Maybe; + fee?: Maybe; + leaf_index?: Maybe; + transfer_count?: Maybe; +}; + +/** order by stddev_samp() on columns of table "transfer" */ +export type Transfer_Stddev_Samp_Order_By = { + amount?: InputMaybe; + fee?: InputMaybe; + leaf_index?: InputMaybe; + transfer_count?: InputMaybe; +}; + +/** Streaming cursor of the table "transfer" */ +export type Transfer_Stream_Cursor_Input = { + /** Stream column input with initial value */ + initial_value: Transfer_Stream_Cursor_Value_Input; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type Transfer_Stream_Cursor_Value_Input = { + amount?: InputMaybe; + block_id?: InputMaybe; + extrinsic_id?: InputMaybe; + fee?: InputMaybe; + from_hash?: InputMaybe; + from_id?: InputMaybe; + id?: InputMaybe; + leaf_index?: InputMaybe; + timestamp?: InputMaybe; + to_hash?: InputMaybe; + to_id?: InputMaybe; + transfer_count?: InputMaybe; +}; + +/** aggregate sum on columns */ +export type Transfer_Sum_Fields = { + __typename?: 'transfer_sum_fields'; + amount?: Maybe; + fee?: Maybe; + leaf_index?: Maybe; + transfer_count?: Maybe; +}; + +/** order by sum() on columns of table "transfer" */ +export type Transfer_Sum_Order_By = { + amount?: InputMaybe; + fee?: InputMaybe; + leaf_index?: InputMaybe; + transfer_count?: InputMaybe; +}; + +/** aggregate var_pop on columns */ +export type Transfer_Var_Pop_Fields = { + __typename?: 'transfer_var_pop_fields'; + amount?: Maybe; + fee?: Maybe; + leaf_index?: Maybe; + transfer_count?: Maybe; +}; + +/** order by var_pop() on columns of table "transfer" */ +export type Transfer_Var_Pop_Order_By = { + amount?: InputMaybe; + fee?: InputMaybe; + leaf_index?: InputMaybe; + transfer_count?: InputMaybe; +}; + +/** aggregate var_samp on columns */ +export type Transfer_Var_Samp_Fields = { + __typename?: 'transfer_var_samp_fields'; + amount?: Maybe; + fee?: Maybe; + leaf_index?: Maybe; + transfer_count?: Maybe; +}; + +/** order by var_samp() on columns of table "transfer" */ +export type Transfer_Var_Samp_Order_By = { + amount?: InputMaybe; + fee?: InputMaybe; + leaf_index?: InputMaybe; + transfer_count?: InputMaybe; +}; + +/** aggregate variance on columns */ +export type Transfer_Variance_Fields = { + __typename?: 'transfer_variance_fields'; + amount?: Maybe; + fee?: Maybe; + leaf_index?: Maybe; + transfer_count?: Maybe; +}; + +/** order by variance() on columns of table "transfer" */ +export type Transfer_Variance_Order_By = { + amount?: InputMaybe; + fee?: InputMaybe; + leaf_index?: InputMaybe; + transfer_count?: InputMaybe; +}; + +/** columns and relationships of "wormhole_extrinsic" */ +export type Wormhole_Extrinsic = { + __typename?: 'wormhole_extrinsic'; + /** An object relationship */ + block?: Maybe; + block_id?: Maybe; + /** An object relationship */ + extrinsic?: Maybe; + extrinsic_id?: Maybe; + id: Scalars['String']['output']; + output_count: Scalars['Int']['output']; + /** An array relationship */ + outputs: Array; + /** An aggregate relationship */ + outputs_aggregate: Wormhole_Output_Aggregate; + pool_snapshot: Scalars['String']['output']; + privacy_label: Scalars['String']['output']; + privacy_score: Scalars['numeric']['output']; + privacy_score01_pct: Scalars['numeric']['output']; + privacy_score1_pct: Scalars['numeric']['output']; + privacy_score5_pct: Scalars['numeric']['output']; + timestamp: Scalars['timestamptz']['output']; + total_amount: Scalars['numeric']['output']; +}; + +/** columns and relationships of "wormhole_extrinsic" */ +export type Wormhole_ExtrinsicOutputsArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - orderBy?: InputMaybe | TransferOrderByInput>; - where?: InputMaybe; -}>; + order_by?: InputMaybe>; + where?: InputMaybe; +}; -export type GetRecentTransactionsQuery = { - __typename?: 'Query'; - transactions: Array<{ - __typename?: 'Transfer'; - fee: any; - amount: any; - timestamp: any; - extrinsic?: { - __typename?: 'Extrinsic'; - id: string; - pallet: string; - call: string; - } | null; - block: { __typename?: 'Block'; height: number }; - from: { __typename?: 'Account'; id: string }; - to: { __typename?: 'Account'; id: string }; - }>; +/** columns and relationships of "wormhole_extrinsic" */ +export type Wormhole_ExtrinsicOutputs_AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + +/** aggregated selection of "wormhole_extrinsic" */ +export type Wormhole_Extrinsic_Aggregate = { + __typename?: 'wormhole_extrinsic_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "wormhole_extrinsic" */ +export type Wormhole_Extrinsic_Aggregate_Fields = { + __typename?: 'wormhole_extrinsic_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + +/** aggregate fields of "wormhole_extrinsic" */ +export type Wormhole_Extrinsic_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type Wormhole_Extrinsic_Avg_Fields = { + __typename?: 'wormhole_extrinsic_avg_fields'; + output_count?: Maybe; + privacy_score?: Maybe; + privacy_score01_pct?: Maybe; + privacy_score1_pct?: Maybe; + privacy_score5_pct?: Maybe; + total_amount?: Maybe; +}; + +/** Boolean expression to filter rows from the table "wormhole_extrinsic". All fields are combined with a logical 'AND'. */ +export type Wormhole_Extrinsic_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + block?: InputMaybe; + block_id?: InputMaybe; + extrinsic?: InputMaybe; + extrinsic_id?: InputMaybe; + id?: InputMaybe; + output_count?: InputMaybe; + outputs?: InputMaybe; + outputs_aggregate?: InputMaybe; + pool_snapshot?: InputMaybe; + privacy_label?: InputMaybe; + privacy_score?: InputMaybe; + privacy_score01_pct?: InputMaybe; + privacy_score1_pct?: InputMaybe; + privacy_score5_pct?: InputMaybe; + timestamp?: InputMaybe; + total_amount?: InputMaybe; +}; + +/** aggregate max on columns */ +export type Wormhole_Extrinsic_Max_Fields = { + __typename?: 'wormhole_extrinsic_max_fields'; + block_id?: Maybe; + extrinsic_id?: Maybe; + id?: Maybe; + output_count?: Maybe; + pool_snapshot?: Maybe; + privacy_label?: Maybe; + privacy_score?: Maybe; + privacy_score01_pct?: Maybe; + privacy_score1_pct?: Maybe; + privacy_score5_pct?: Maybe; + timestamp?: Maybe; + total_amount?: Maybe; +}; + +/** aggregate min on columns */ +export type Wormhole_Extrinsic_Min_Fields = { + __typename?: 'wormhole_extrinsic_min_fields'; + block_id?: Maybe; + extrinsic_id?: Maybe; + id?: Maybe; + output_count?: Maybe; + pool_snapshot?: Maybe; + privacy_label?: Maybe; + privacy_score?: Maybe; + privacy_score01_pct?: Maybe; + privacy_score1_pct?: Maybe; + privacy_score5_pct?: Maybe; + timestamp?: Maybe; + total_amount?: Maybe; +}; + +/** Ordering options when selecting data from "wormhole_extrinsic". */ +export type Wormhole_Extrinsic_Order_By = { + block?: InputMaybe; + block_id?: InputMaybe; + extrinsic?: InputMaybe; + extrinsic_id?: InputMaybe; + id?: InputMaybe; + output_count?: InputMaybe; + outputs_aggregate?: InputMaybe; + pool_snapshot?: InputMaybe; + privacy_label?: InputMaybe; + privacy_score?: InputMaybe; + privacy_score01_pct?: InputMaybe; + privacy_score1_pct?: InputMaybe; + privacy_score5_pct?: InputMaybe; + timestamp?: InputMaybe; + total_amount?: InputMaybe; +}; + +/** select columns of table "wormhole_extrinsic" */ +export enum Wormhole_Extrinsic_Select_Column { + /** column name */ + BlockId = 'block_id', + /** column name */ + ExtrinsicId = 'extrinsic_id', + /** column name */ + Id = 'id', + /** column name */ + OutputCount = 'output_count', + /** column name */ + PoolSnapshot = 'pool_snapshot', + /** column name */ + PrivacyLabel = 'privacy_label', + /** column name */ + PrivacyScore = 'privacy_score', + /** column name */ + PrivacyScore01Pct = 'privacy_score01_pct', + /** column name */ + PrivacyScore1Pct = 'privacy_score1_pct', + /** column name */ + PrivacyScore5Pct = 'privacy_score5_pct', + /** column name */ + Timestamp = 'timestamp', + /** column name */ + TotalAmount = 'total_amount' +} + +/** aggregate stddev on columns */ +export type Wormhole_Extrinsic_Stddev_Fields = { + __typename?: 'wormhole_extrinsic_stddev_fields'; + output_count?: Maybe; + privacy_score?: Maybe; + privacy_score01_pct?: Maybe; + privacy_score1_pct?: Maybe; + privacy_score5_pct?: Maybe; + total_amount?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type Wormhole_Extrinsic_Stddev_Pop_Fields = { + __typename?: 'wormhole_extrinsic_stddev_pop_fields'; + output_count?: Maybe; + privacy_score?: Maybe; + privacy_score01_pct?: Maybe; + privacy_score1_pct?: Maybe; + privacy_score5_pct?: Maybe; + total_amount?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type Wormhole_Extrinsic_Stddev_Samp_Fields = { + __typename?: 'wormhole_extrinsic_stddev_samp_fields'; + output_count?: Maybe; + privacy_score?: Maybe; + privacy_score01_pct?: Maybe; + privacy_score1_pct?: Maybe; + privacy_score5_pct?: Maybe; + total_amount?: Maybe; +}; + +/** Streaming cursor of the table "wormhole_extrinsic" */ +export type Wormhole_Extrinsic_Stream_Cursor_Input = { + /** Stream column input with initial value */ + initial_value: Wormhole_Extrinsic_Stream_Cursor_Value_Input; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type Wormhole_Extrinsic_Stream_Cursor_Value_Input = { + block_id?: InputMaybe; + extrinsic_id?: InputMaybe; + id?: InputMaybe; + output_count?: InputMaybe; + pool_snapshot?: InputMaybe; + privacy_label?: InputMaybe; + privacy_score?: InputMaybe; + privacy_score01_pct?: InputMaybe; + privacy_score1_pct?: InputMaybe; + privacy_score5_pct?: InputMaybe; + timestamp?: InputMaybe; + total_amount?: InputMaybe; +}; + +/** aggregate sum on columns */ +export type Wormhole_Extrinsic_Sum_Fields = { + __typename?: 'wormhole_extrinsic_sum_fields'; + output_count?: Maybe; + privacy_score?: Maybe; + privacy_score01_pct?: Maybe; + privacy_score1_pct?: Maybe; + privacy_score5_pct?: Maybe; + total_amount?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type Wormhole_Extrinsic_Var_Pop_Fields = { + __typename?: 'wormhole_extrinsic_var_pop_fields'; + output_count?: Maybe; + privacy_score?: Maybe; + privacy_score01_pct?: Maybe; + privacy_score1_pct?: Maybe; + privacy_score5_pct?: Maybe; + total_amount?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type Wormhole_Extrinsic_Var_Samp_Fields = { + __typename?: 'wormhole_extrinsic_var_samp_fields'; + output_count?: Maybe; + privacy_score?: Maybe; + privacy_score01_pct?: Maybe; + privacy_score1_pct?: Maybe; + privacy_score5_pct?: Maybe; + total_amount?: Maybe; +}; + +/** aggregate variance on columns */ +export type Wormhole_Extrinsic_Variance_Fields = { + __typename?: 'wormhole_extrinsic_variance_fields'; + output_count?: Maybe; + privacy_score?: Maybe; + privacy_score01_pct?: Maybe; + privacy_score1_pct?: Maybe; + privacy_score5_pct?: Maybe; + total_amount?: Maybe; +}; + +/** columns and relationships of "wormhole_nullifier" */ +export type Wormhole_Nullifier = { + __typename?: 'wormhole_nullifier'; + /** An object relationship */ + block?: Maybe; + block_id?: Maybe; + id: Scalars['String']['output']; + nullifier: Scalars['String']['output']; + nullifier_hash: Scalars['String']['output']; + timestamp: Scalars['timestamptz']['output']; + /** An object relationship */ + wormholeExtrinsic?: Maybe; + wormhole_extrinsic_id?: Maybe; +}; + +/** aggregated selection of "wormhole_nullifier" */ +export type Wormhole_Nullifier_Aggregate = { + __typename?: 'wormhole_nullifier_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "wormhole_nullifier" */ +export type Wormhole_Nullifier_Aggregate_Fields = { + __typename?: 'wormhole_nullifier_aggregate_fields'; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; +}; + +/** aggregate fields of "wormhole_nullifier" */ +export type Wormhole_Nullifier_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** Boolean expression to filter rows from the table "wormhole_nullifier". All fields are combined with a logical 'AND'. */ +export type Wormhole_Nullifier_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + block?: InputMaybe; + block_id?: InputMaybe; + id?: InputMaybe; + nullifier?: InputMaybe; + nullifier_hash?: InputMaybe; + timestamp?: InputMaybe; + wormholeExtrinsic?: InputMaybe; + wormhole_extrinsic_id?: InputMaybe; +}; + +/** aggregate max on columns */ +export type Wormhole_Nullifier_Max_Fields = { + __typename?: 'wormhole_nullifier_max_fields'; + block_id?: Maybe; + id?: Maybe; + nullifier?: Maybe; + nullifier_hash?: Maybe; + timestamp?: Maybe; + wormhole_extrinsic_id?: Maybe; +}; + +/** aggregate min on columns */ +export type Wormhole_Nullifier_Min_Fields = { + __typename?: 'wormhole_nullifier_min_fields'; + block_id?: Maybe; + id?: Maybe; + nullifier?: Maybe; + nullifier_hash?: Maybe; + timestamp?: Maybe; + wormhole_extrinsic_id?: Maybe; +}; + +/** Ordering options when selecting data from "wormhole_nullifier". */ +export type Wormhole_Nullifier_Order_By = { + block?: InputMaybe; + block_id?: InputMaybe; + id?: InputMaybe; + nullifier?: InputMaybe; + nullifier_hash?: InputMaybe; + timestamp?: InputMaybe; + wormholeExtrinsic?: InputMaybe; + wormhole_extrinsic_id?: InputMaybe; +}; + +/** select columns of table "wormhole_nullifier" */ +export enum Wormhole_Nullifier_Select_Column { + /** column name */ + BlockId = 'block_id', + /** column name */ + Id = 'id', + /** column name */ + Nullifier = 'nullifier', + /** column name */ + NullifierHash = 'nullifier_hash', + /** column name */ + Timestamp = 'timestamp', + /** column name */ + WormholeExtrinsicId = 'wormhole_extrinsic_id' +} + +/** Streaming cursor of the table "wormhole_nullifier" */ +export type Wormhole_Nullifier_Stream_Cursor_Input = { + /** Stream column input with initial value */ + initial_value: Wormhole_Nullifier_Stream_Cursor_Value_Input; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type Wormhole_Nullifier_Stream_Cursor_Value_Input = { + block_id?: InputMaybe; + id?: InputMaybe; + nullifier?: InputMaybe; + nullifier_hash?: InputMaybe; + timestamp?: InputMaybe; + wormhole_extrinsic_id?: InputMaybe; +}; + +/** columns and relationships of "wormhole_output" */ +export type Wormhole_Output = { + __typename?: 'wormhole_output'; + amount: Scalars['numeric']['output']; + /** An object relationship */ + exitAccount?: Maybe; + exit_account_id?: Maybe; + id: Scalars['String']['output']; + /** An object relationship */ + wormholeExtrinsic?: Maybe; + wormhole_extrinsic_id?: Maybe; +}; + +/** aggregated selection of "wormhole_output" */ +export type Wormhole_Output_Aggregate = { + __typename?: 'wormhole_output_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +export type Wormhole_Output_Aggregate_Bool_Exp = { + count?: InputMaybe; +}; + +export type Wormhole_Output_Aggregate_Bool_Exp_Count = { + arguments?: InputMaybe>; + distinct?: InputMaybe; + filter?: InputMaybe; + predicate: Int_Comparison_Exp; +}; + +/** aggregate fields of "wormhole_output" */ +export type Wormhole_Output_Aggregate_Fields = { + __typename?: 'wormhole_output_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + +/** aggregate fields of "wormhole_output" */ +export type Wormhole_Output_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** order by aggregate values of table "wormhole_output" */ +export type Wormhole_Output_Aggregate_Order_By = { + avg?: InputMaybe; + count?: InputMaybe; + max?: InputMaybe; + min?: InputMaybe; + stddev?: InputMaybe; + stddev_pop?: InputMaybe; + stddev_samp?: InputMaybe; + sum?: InputMaybe; + var_pop?: InputMaybe; + var_samp?: InputMaybe; + variance?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type Wormhole_Output_Avg_Fields = { + __typename?: 'wormhole_output_avg_fields'; + amount?: Maybe; +}; + +/** order by avg() on columns of table "wormhole_output" */ +export type Wormhole_Output_Avg_Order_By = { + amount?: InputMaybe; +}; + +/** Boolean expression to filter rows from the table "wormhole_output". All fields are combined with a logical 'AND'. */ +export type Wormhole_Output_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + amount?: InputMaybe; + exitAccount?: InputMaybe; + exit_account_id?: InputMaybe; + id?: InputMaybe; + wormholeExtrinsic?: InputMaybe; + wormhole_extrinsic_id?: InputMaybe; +}; + +/** aggregate max on columns */ +export type Wormhole_Output_Max_Fields = { + __typename?: 'wormhole_output_max_fields'; + amount?: Maybe; + exit_account_id?: Maybe; + id?: Maybe; + wormhole_extrinsic_id?: Maybe; +}; + +/** order by max() on columns of table "wormhole_output" */ +export type Wormhole_Output_Max_Order_By = { + amount?: InputMaybe; + exit_account_id?: InputMaybe; + id?: InputMaybe; + wormhole_extrinsic_id?: InputMaybe; +}; + +/** aggregate min on columns */ +export type Wormhole_Output_Min_Fields = { + __typename?: 'wormhole_output_min_fields'; + amount?: Maybe; + exit_account_id?: Maybe; + id?: Maybe; + wormhole_extrinsic_id?: Maybe; +}; + +/** order by min() on columns of table "wormhole_output" */ +export type Wormhole_Output_Min_Order_By = { + amount?: InputMaybe; + exit_account_id?: InputMaybe; + id?: InputMaybe; + wormhole_extrinsic_id?: InputMaybe; +}; + +/** Ordering options when selecting data from "wormhole_output". */ +export type Wormhole_Output_Order_By = { + amount?: InputMaybe; + exitAccount?: InputMaybe; + exit_account_id?: InputMaybe; + id?: InputMaybe; + wormholeExtrinsic?: InputMaybe; + wormhole_extrinsic_id?: InputMaybe; +}; + +/** select columns of table "wormhole_output" */ +export enum Wormhole_Output_Select_Column { + /** column name */ + Amount = 'amount', + /** column name */ + ExitAccountId = 'exit_account_id', + /** column name */ + Id = 'id', + /** column name */ + WormholeExtrinsicId = 'wormhole_extrinsic_id' +} + +/** aggregate stddev on columns */ +export type Wormhole_Output_Stddev_Fields = { + __typename?: 'wormhole_output_stddev_fields'; + amount?: Maybe; }; -export type GetTransactionsStatsQueryVariables = Exact<{ - startDate: Scalars['DateTime']['input']; - endDate: Scalars['DateTime']['input']; -}>; +/** order by stddev() on columns of table "wormhole_output" */ +export type Wormhole_Output_Stddev_Order_By = { + amount?: InputMaybe; +}; -export type GetTransactionsStatsQuery = { - __typename?: 'Query'; - last24Hour: { __typename?: 'TransfersConnection'; totalCount: number }; - allTime: { __typename?: 'TransfersConnection'; totalCount: number }; +/** aggregate stddev_pop on columns */ +export type Wormhole_Output_Stddev_Pop_Fields = { + __typename?: 'wormhole_output_stddev_pop_fields'; + amount?: Maybe; }; -export type GetExtrinsicByHashQueryVariables = Exact<{ - hash: Scalars['String']['input']; -}>; +/** order by stddev_pop() on columns of table "wormhole_output" */ +export type Wormhole_Output_Stddev_Pop_Order_By = { + amount?: InputMaybe; +}; -export type GetExtrinsicByHashQuery = { - __typename?: 'Query'; - extrinsics: Array<{ - __typename?: 'Extrinsic'; - id: string; - pallet: string; - call: string; - success: boolean; - fee: any; - timestamp: any; - indexInBlock: number; - signer?: { __typename?: 'Account'; id: string } | null; - block: { __typename?: 'Block'; height: number }; - }>; - transfers: Array<{ - __typename?: 'Transfer'; - id: string; - amount: any; - timestamp: any; - from: { __typename?: 'Account'; id: string }; - to: { __typename?: 'Account'; id: string }; - }>; +/** aggregate stddev_samp on columns */ +export type Wormhole_Output_Stddev_Samp_Fields = { + __typename?: 'wormhole_output_stddev_samp_fields'; + amount?: Maybe; }; -export type GetWormholeExtrinsicsQueryVariables = Exact<{ +/** order by stddev_samp() on columns of table "wormhole_output" */ +export type Wormhole_Output_Stddev_Samp_Order_By = { + amount?: InputMaybe; +}; + +/** Streaming cursor of the table "wormhole_output" */ +export type Wormhole_Output_Stream_Cursor_Input = { + /** Stream column input with initial value */ + initial_value: Wormhole_Output_Stream_Cursor_Value_Input; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type Wormhole_Output_Stream_Cursor_Value_Input = { + amount?: InputMaybe; + exit_account_id?: InputMaybe; + id?: InputMaybe; + wormhole_extrinsic_id?: InputMaybe; +}; + +/** aggregate sum on columns */ +export type Wormhole_Output_Sum_Fields = { + __typename?: 'wormhole_output_sum_fields'; + amount?: Maybe; +}; + +/** order by sum() on columns of table "wormhole_output" */ +export type Wormhole_Output_Sum_Order_By = { + amount?: InputMaybe; +}; + +/** aggregate var_pop on columns */ +export type Wormhole_Output_Var_Pop_Fields = { + __typename?: 'wormhole_output_var_pop_fields'; + amount?: Maybe; +}; + +/** order by var_pop() on columns of table "wormhole_output" */ +export type Wormhole_Output_Var_Pop_Order_By = { + amount?: InputMaybe; +}; + +/** aggregate var_samp on columns */ +export type Wormhole_Output_Var_Samp_Fields = { + __typename?: 'wormhole_output_var_samp_fields'; + amount?: Maybe; +}; + +/** order by var_samp() on columns of table "wormhole_output" */ +export type Wormhole_Output_Var_Samp_Order_By = { + amount?: InputMaybe; +}; + +/** aggregate variance on columns */ +export type Wormhole_Output_Variance_Fields = { + __typename?: 'wormhole_output_variance_fields'; + amount?: Maybe; +}; + +/** order by variance() on columns of table "wormhole_output" */ +export type Wormhole_Output_Variance_Order_By = { + amount?: InputMaybe; +}; + +export type GetAccountsQueryVariables = Exact<{ limit?: InputMaybe; offset?: InputMaybe; - orderBy: Array | WormholeExtrinsicOrderByInput; - where?: InputMaybe; + orderBy?: InputMaybe | Account_Order_By>; }>; -export type GetWormholeExtrinsicsQuery = { - __typename?: 'Query'; - wormholeExtrinsics: Array<{ - __typename?: 'WormholeExtrinsic'; +export type GetAccountsQuery = { + __typename?: 'query_root'; + accounts: Array<{ + __typename?: 'account'; id: string; - totalAmount: any; - outputCount: number; - timestamp: any; - privacyScore: number; - privacyLabel: string; - extrinsic?: { - __typename?: 'Extrinsic'; - id: string; - pallet: string; - call: string; - } | null; - block: { __typename?: 'Block'; height: number }; + free: any; + frozen: any; + reserved: any; }>; - meta: { __typename?: 'WormholeExtrinsicsConnection'; totalCount: number }; + meta?: { __typename?: 'chain_stats'; totalCount: number } | null; }; -export type GetWormholeExtrinsicByIdQueryVariables = Exact<{ +export type GetAccountByIdQueryVariables = Exact<{ id: Scalars['String']['input']; + limit: Scalars['Int']['input']; }>; -export type GetWormholeExtrinsicByIdQuery = { - __typename?: 'Query'; - wormholeExtrinsicById?: { - __typename?: 'WormholeExtrinsic'; +export type GetAccountByIdQuery = { + __typename?: 'query_root'; + account?: { + __typename?: 'account'; id: string; - totalAmount: any; - outputCount: number; - timestamp: any; - privacyScore: number; - privacyScore01Pct: number; - privacyScore1Pct: number; - privacyScore5Pct: number; - privacyLabel: string; - poolSnapshot: string; - extrinsic?: { - __typename?: 'Extrinsic'; - id: string; - pallet: string; - call: string; + free: any; + frozen: any; + reserved: any; + } | null; + accountStats?: { + __typename?: 'account_stats'; + total_cancelled_transfers: number; + total_executed_transfers: number; + total_immediate_transfers: number; + total_mined_blocks: number; + total_rewards: any; + total_scheduled_transfers: number; + } | null; + accountEvents: Array<{ + __typename?: 'account_event'; + transfer?: { + __typename?: 'transfer'; + fee: any; + amount: any; + timestamp: any; + extrinsic?: { + __typename?: 'extrinsic'; + id: string; + pallet: string; + call: string; + } | null; + block?: { __typename?: 'block'; height: number } | null; + from?: { __typename?: 'account'; id: string } | null; + to?: { __typename?: 'account'; id: string } | null; } | null; - block: { - __typename?: 'Block'; - id: string; - height: number; - hash: string; + scheduledReversibleTransfer?: { + __typename?: 'scheduled_reversible_transfer'; timestamp: any; - }; - outputs: Array<{ - __typename?: 'WormholeOutput'; - id: string; amount: any; - exitAccount: { __typename?: 'Account'; id: string }; - }>; - } | null; - wormholeNullifiers: Array<{ - __typename?: 'WormholeNullifier'; - nullifier: string; - nullifierHash: string; - }>; -}; - -export type GetDepositPoolStatsQueryVariables = Exact<{ [key: string]: never }>; - -export type GetDepositPoolStatsQuery = { - __typename?: 'Query'; - depositPoolStatsById?: { - __typename?: 'DepositPoolStats'; - lastUpdatedBlock: number; - buckets: string; - } | null; -}; - -export const GetAccountsDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'GetAccounts' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'limit' } - }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'offset' } - }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'orderBy' } - }, - type: { - kind: 'ListType', - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'AccountOrderByInput' } - } - } - } - } - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'accounts' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'limit' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'limit' } - } - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'offset' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'offset' } - } - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'orderBy' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'orderBy' } - } - } - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'free' } }, - { kind: 'Field', name: { kind: 'Name', value: 'frozen' } }, - { kind: 'Field', name: { kind: 'Name', value: 'reserved' } } - ] - } - }, - { - kind: 'Field', - alias: { kind: 'Name', value: 'meta' }, - name: { kind: 'Name', value: 'accountsConnection' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'orderBy' }, - value: { kind: 'EnumValue', value: 'id_ASC' } - } - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } - ] - } - } - ] - } - } - ] -} as unknown as DocumentNode; -export const GetAccountByIdDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'GetAccountById' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { kind: 'Variable', name: { kind: 'Name', value: 'id' } }, - type: { - kind: 'NonNullType', - type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } } - } - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'limit' } - }, - type: { - kind: 'NonNullType', - type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } - } - } - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - alias: { kind: 'Name', value: 'account' }, - name: { kind: 'Name', value: 'accountById' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'id' }, - value: { kind: 'Variable', name: { kind: 'Name', value: 'id' } } - } - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'free' } }, - { kind: 'Field', name: { kind: 'Name', value: 'frozen' } }, - { kind: 'Field', name: { kind: 'Name', value: 'reserved' } } - ] - } - }, - { - kind: 'Field', - alias: { kind: 'Name', value: 'transactions' }, - name: { kind: 'Name', value: 'transfersConnection' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'orderBy' }, - value: { kind: 'EnumValue', value: 'timestamp_DESC' } - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'first' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'limit' } - } - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'where' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'extrinsic_isNull' }, - value: { kind: 'BooleanValue', value: false } - }, - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'AND' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'from' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'id_eq' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'id' } - } - } - ] - } - }, - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'OR' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'to' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'id_eq' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'id' } - } - } - ] - } - } - ] - } - } - ] - } - } - ] - } - } - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'edges' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'node' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'fee' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'extrinsic' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'pallet' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'call' } - } - ] - } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'block' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'height' } - } - ] - } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'amount' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'timestamp' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'from' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' } - } - ] - } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'to' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' } - } - ] - } - } - ] - } - } - ] - } - }, - { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } - ] - } - }, - { - kind: 'Field', - alias: { kind: 'Name', value: 'scheduledReversibleTransactions' }, - name: { - kind: 'Name', - value: 'scheduledReversibleTransfersConnection' - }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'orderBy' }, - value: { kind: 'EnumValue', value: 'timestamp_DESC' } - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'first' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'limit' } - } - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'where' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'from' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'id_eq' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'id' } - } - } - ] - } - }, - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'OR' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'to' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'id_eq' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'id' } - } - } - ] - } - } - ] - } - } - ] - } - } - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'edges' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'node' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'extrinsic' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'pallet' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'call' } - } - ] - } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'timestamp' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'amount' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'timestamp' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'scheduledAt' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'txId' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'fee' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'block' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'height' } - } - ] - } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'from' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' } - } - ] - } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'to' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' } - } - ] - } - } - ] - } - } - ] - } - }, - { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } - ] - } - }, - { - kind: 'Field', - alias: { kind: 'Name', value: 'executedReversibleTransactions' }, - name: { - kind: 'Name', - value: 'executedReversibleTransfersConnection' - }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'orderBy' }, - value: { kind: 'EnumValue', value: 'timestamp_DESC' } - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'first' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'limit' } - } - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'where' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'scheduledTransfer' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'from' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'id_eq' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'id' } - } - } - ] - } - }, - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'OR' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'to' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'id_eq' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'id' } - } - } - ] - } - } - ] - } - } - ] - } - } - ] - } - } - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'edges' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'node' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'timestamp' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'txId' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'block' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'height' } - } - ] - } - }, - { - kind: 'Field', - name: { - kind: 'Name', - value: 'scheduledTransfer' - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'extrinsic' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' } - }, - { - kind: 'Field', - name: { - kind: 'Name', - value: 'pallet' - } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'call' } - } - ] - } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'amount' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'timestamp' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'scheduledAt' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'txId' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'fee' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'block' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { - kind: 'Name', - value: 'height' - } - } - ] - } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'from' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' } - } - ] - } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'to' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' } - } - ] - } - } - ] - } - } - ] - } - } - ] - } - }, - { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } - ] - } - }, - { - kind: 'Field', - alias: { kind: 'Name', value: 'cancelledReversibleTransactions' }, - name: { - kind: 'Name', - value: 'cancelledReversibleTransfersConnection' - }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'orderBy' }, - value: { kind: 'EnumValue', value: 'timestamp_DESC' } - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'first' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'limit' } - } - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'where' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'scheduledTransfer' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'from' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'id_eq' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'id' } - } - } - ] - } - }, - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'OR' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'to' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'id_eq' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'id' } - } - } - ] - } - } - ] - } - } - ] - } - }, - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'OR' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'cancelledBy' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'id_eq' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'id' } - } - } - ] - } - } - ] - } - } - ] - } - } - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'edges' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'node' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'timestamp' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'txId' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'block' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'height' } - } - ] - } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'cancelledBy' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' } - } - ] - } - }, - { - kind: 'Field', - name: { - kind: 'Name', - value: 'scheduledTransfer' - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'extrinsic' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' } - }, - { - kind: 'Field', - name: { - kind: 'Name', - value: 'pallet' - } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'call' } - } - ] - } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'amount' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'timestamp' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'scheduledAt' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'txId' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'fee' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'block' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { - kind: 'Name', - value: 'height' - } - } - ] - } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'from' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' } - } - ] - } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'to' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' } - } - ] - } - } - ] - } - } - ] - } - } - ] - } - }, - { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } - ] - } - }, - { - kind: 'Field', - alias: { kind: 'Name', value: 'minerRewards' }, - name: { kind: 'Name', value: 'minerRewardsConnection' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'orderBy' }, - value: { kind: 'EnumValue', value: 'timestamp_DESC' } - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'first' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'limit' } - } - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'where' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'miner' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'id_eq' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'id' } - } - } - ] - } - } - ] - } - } - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'edges' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'node' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'block' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'height' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'hash' } - } - ] - } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'reward' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'miner' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' } - } - ] - } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'timestamp' } - } - ] - } - } - ] - } - }, - { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } - ] - } - }, - { - kind: 'Field', - alias: { kind: 'Name', value: 'guardian' }, - name: { kind: 'Name', value: 'highSecuritySetsConnection' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'orderBy' }, - value: { kind: 'EnumValue', value: 'timestamp_DESC' } - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'first' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'limit' } - } - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'where' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'who' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'id_eq' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'id' } - } - } - ] - } - } - ] - } - } - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'edges' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'node' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'timestamp' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'block' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'height' } - } - ] - } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'interceptor' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'free' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'frozen' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'reserved' } - } - ] - } - } - ] - } - } - ] - } - }, - { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } - ] - } - }, - { - kind: 'Field', - alias: { kind: 'Name', value: 'beneficiaries' }, - name: { kind: 'Name', value: 'highSecuritySetsConnection' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'orderBy' }, - value: { kind: 'EnumValue', value: 'timestamp_DESC' } - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'first' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'limit' } - } - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'where' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'interceptor' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'id_eq' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'id' } - } - } - ] - } - } - ] - } - } - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'edges' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'node' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'timestamp' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'block' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'height' } - } - ] - } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'who' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'free' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'frozen' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'reserved' } - } - ] - } - } - ] - } - } - ] - } - }, - { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } - ] - } - }, - { - kind: 'Field', - alias: { kind: 'Name', value: 'wormholeOutputs' }, - name: { kind: 'Name', value: 'wormholeOutputs' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'orderBy' }, - value: { - kind: 'EnumValue', - value: 'wormholeExtrinsic_timestamp_DESC' - } - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'limit' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'limit' } - } - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'where' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'exitAccount' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'id_eq' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'id' } - } - } - ] - } - } - ] - } - } - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'amount' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'exitAccount' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } } - ] - } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'wormholeExtrinsic' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'extrinsic' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'pallet' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'call' } - } - ] - } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'totalAmount' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'outputCount' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'timestamp' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'block' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'height' } - } - ] - } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'outputs' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'exitAccount' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' } - } - ] - } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'amount' } - } - ] - } - } - ] - } - } - ] - } - } - ] - } - } - ] -} as unknown as DocumentNode; -export const GetAccountsStatsDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'GetAccountsStats' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'startDate' } - }, - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'DateTime' } - } - } - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'endDate' } - }, - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'DateTime' } - } - } - } - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - alias: { kind: 'Name', value: 'all' }, - name: { kind: 'Name', value: 'accountsConnection' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'orderBy' }, - value: { kind: 'EnumValue', value: 'id_ASC' } - } - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } - ] - } - }, - { - kind: 'Field', - alias: { kind: 'Name', value: 'recentlyActive' }, - name: { kind: 'Name', value: 'accountsConnection' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'orderBy' }, - value: { kind: 'EnumValue', value: 'id_ASC' } - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'where' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'transfersFrom_some' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'timestamp_gte' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'startDate' } - } - }, - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'timestamp_lte' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'endDate' } - } - } - ] - } - } - ] - } - } - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } - ] - } - }, - { - kind: 'Field', - alias: { kind: 'Name', value: 'recentlyDeposited' }, - name: { kind: 'Name', value: 'accountsConnection' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'orderBy' }, - value: { kind: 'EnumValue', value: 'id_ASC' } - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'where' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'transfersTo_some' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'timestamp_gte' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'startDate' } - } - }, - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'timestamp_lte' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'endDate' } - } - } - ] - } - } - ] - } - } - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } - ] - } - } - ] - } - } - ] -} as unknown as DocumentNode< - GetAccountsStatsQuery, - GetAccountsStatsQueryVariables ->; -export const GetBlocksDocument = { + scheduled_at: any; + tx_id: string; + fee: any; + extrinsic?: { + __typename?: 'extrinsic'; + id: string; + pallet: string; + call: string; + } | null; + block?: { __typename?: 'block'; height: number } | null; + from?: { __typename?: 'account'; id: string } | null; + to?: { __typename?: 'account'; id: string } | null; + } | null; + executedReversibleTransfer?: { + __typename?: 'executed_reversible_transfer'; + timestamp: any; + tx_id: string; + block?: { __typename?: 'block'; height: number } | null; + scheduledTransfer?: { + __typename?: 'scheduled_reversible_transfer'; + amount: any; + timestamp: any; + scheduled_at: any; + tx_id: string; + fee: any; + extrinsic?: { + __typename?: 'extrinsic'; + id: string; + pallet: string; + call: string; + } | null; + block?: { __typename?: 'block'; height: number } | null; + from?: { __typename?: 'account'; id: string } | null; + to?: { __typename?: 'account'; id: string } | null; + } | null; + } | null; + cancelledReversibleTransfer?: { + __typename?: 'cancelled_reversible_transfer'; + timestamp: any; + tx_id: string; + block?: { __typename?: 'block'; height: number } | null; + cancelledBy?: { __typename?: 'account'; id: string } | null; + scheduledTransfer?: { + __typename?: 'scheduled_reversible_transfer'; + amount: any; + timestamp: any; + scheduled_at: any; + tx_id: string; + fee: any; + extrinsic?: { + __typename?: 'extrinsic'; + id: string; + pallet: string; + call: string; + } | null; + block?: { __typename?: 'block'; height: number } | null; + from?: { __typename?: 'account'; id: string } | null; + to?: { __typename?: 'account'; id: string } | null; + } | null; + } | null; + minerReward?: { + __typename?: 'miner_reward'; + reward: any; + timestamp: any; + block?: { __typename?: 'block'; height: number; hash: string } | null; + miner?: { __typename?: 'account'; id: string } | null; + } | null; + }>; + guardian: { + __typename?: 'high_security_set_aggregate'; + nodes: Array<{ + __typename?: 'high_security_set'; + timestamp: any; + block?: { __typename?: 'block'; height: number } | null; + interceptor?: { + __typename?: 'account'; + id: string; + free: any; + frozen: any; + reserved: any; + } | null; + }>; + aggregate?: { + __typename?: 'high_security_set_aggregate_fields'; + totalCount: number; + } | null; + }; + beneficiaries: { + __typename?: 'high_security_set_aggregate'; + nodes: Array<{ + __typename?: 'high_security_set'; + timestamp: any; + block?: { __typename?: 'block'; height: number } | null; + who?: { + __typename?: 'account'; + id: string; + free: any; + frozen: any; + reserved: any; + } | null; + }>; + aggregate?: { + __typename?: 'high_security_set_aggregate_fields'; + totalCount: number; + } | null; + }; + wormholeOutputs: Array<{ + __typename?: 'wormhole_output'; + id: string; + amount: any; + exitAccount?: { __typename?: 'account'; id: string } | null; + wormholeExtrinsic?: { + __typename?: 'wormhole_extrinsic'; + id: string; + total_amount: any; + output_count: number; + timestamp: any; + extrinsic?: { + __typename?: 'extrinsic'; + id: string; + pallet: string; + call: string; + } | null; + block?: { __typename?: 'block'; height: number } | null; + outputs: Array<{ + __typename?: 'wormhole_output'; + id: string; + amount: any; + exitAccount?: { __typename?: 'account'; id: string } | null; + }>; + } | null; + }>; +}; + +export type GetAccountsStatsQueryVariables = Exact<{ + startDate: Scalars['timestamptz']['input']; + endDate: Scalars['timestamptz']['input']; +}>; + +export type GetAccountsStatsQuery = { + __typename?: 'query_root'; + all?: { __typename?: 'chain_stats'; total_accounts: number } | null; + recentlyActive: { + __typename?: 'account_aggregate'; + aggregate?: { + __typename?: 'account_aggregate_fields'; + count: number; + } | null; + }; + recentlyDeposited: { + __typename?: 'account_aggregate'; + aggregate?: { + __typename?: 'account_aggregate_fields'; + count: number; + } | null; + }; +}; + +export type GetBlocksQueryVariables = Exact<{ + limit?: InputMaybe; + offset?: InputMaybe; + orderBy: Array | Block_Order_By; + where?: InputMaybe; +}>; + +export type GetBlocksQuery = { + __typename?: 'query_root'; + blocks: Array<{ + __typename?: 'block'; + id: string; + hash: string; + height: number; + reward: any; + timestamp: any; + extrinsics: Array<{ __typename?: 'extrinsic'; id: string }>; + }>; + meta?: { __typename?: 'chain_stats'; totalCount: number } | null; +}; + +export type GetRecentBlocksQueryVariables = Exact<{ + limit?: InputMaybe; + offset?: InputMaybe; + orderBy?: InputMaybe | Block_Order_By>; +}>; + +export type GetRecentBlocksQuery = { + __typename?: 'query_root'; + blocks: Array<{ + __typename?: 'block'; + id: string; + hash: string; + height: number; + reward: any; + timestamp: any; + extrinsics: Array<{ __typename?: 'extrinsic'; id: string }>; + }>; +}; + +export type GetBlockByIdQueryVariables = Exact<{ + height: Scalars['Int']['input']; + hash: Scalars['String']['input']; +}>; + +export type GetBlockByIdQuery = { + __typename?: 'query_root'; + blocks: Array<{ + __typename?: 'block'; + id: string; + hash: string; + height: number; + reward: any; + timestamp: any; + extrinsics: Array<{ + __typename?: 'extrinsic'; + id: string; + pallet: string; + call: string; + success: boolean; + fee: any; + timestamp: any; + index_in_block: number; + signer?: { __typename?: 'account'; id: string } | null; + }>; + }>; + minerRewards: Array<{ + __typename?: 'miner_reward'; + reward: any; + timestamp: any; + miner?: { __typename?: 'account'; id: string } | null; + block?: { __typename?: 'block'; height: number; hash: string } | null; + }>; +}; + +export type GetBlockStatsQueryVariables = Exact<{ + startDate: Scalars['timestamptz']['input']; + endDate: Scalars['timestamptz']['input']; +}>; + +export type GetBlockStatsQuery = { + __typename?: 'query_root'; + chain?: { + __typename?: 'chain_stats'; + block_height: number; + finalized_block_height: number; + } | null; + minedIn24Hours: { + __typename?: 'block_aggregate'; + aggregate?: { + __typename?: 'block_aggregate_fields'; + totalCount: number; + } | null; + }; +}; + +export type GetCancelledReversibleTransactionsQueryVariables = Exact<{ + limit?: InputMaybe; + offset?: InputMaybe; + orderBy?: InputMaybe< + | Array + | Cancelled_Reversible_Transfer_Order_By + >; + where?: InputMaybe; +}>; + +export type GetCancelledReversibleTransactionsQuery = { + __typename?: 'query_root'; + cancelledReversibleTransactions: Array<{ + __typename?: 'cancelled_reversible_transfer'; + timestamp: any; + tx_id: string; + block?: { __typename?: 'block'; height: number } | null; + cancelledBy?: { __typename?: 'account'; id: string } | null; + scheduledTransfer?: { + __typename?: 'scheduled_reversible_transfer'; + amount: any; + timestamp: any; + scheduled_at: any; + tx_id: string; + fee: any; + extrinsic?: { + __typename?: 'extrinsic'; + id: string; + pallet: string; + call: string; + } | null; + block?: { __typename?: 'block'; height: number } | null; + from?: { __typename?: 'account'; id: string } | null; + to?: { __typename?: 'account'; id: string } | null; + } | null; + }>; + meta: { + __typename?: 'cancelled_reversible_transfer_aggregate'; + aggregate?: { + __typename?: 'cancelled_reversible_transfer_aggregate_fields'; + totalCount: number; + } | null; + }; +}; + +export type GetRecentCancelledReversibleTransactionsQueryVariables = Exact<{ + limit?: InputMaybe; + offset?: InputMaybe; + orderBy?: InputMaybe< + | Array + | Cancelled_Reversible_Transfer_Order_By + >; +}>; + +export type GetRecentCancelledReversibleTransactionsQuery = { + __typename?: 'query_root'; + cancelledReversibleTransactions: Array<{ + __typename?: 'cancelled_reversible_transfer'; + timestamp: any; + tx_id: string; + block?: { __typename?: 'block'; height: number } | null; + cancelledBy?: { __typename?: 'account'; id: string } | null; + scheduledTransfer?: { + __typename?: 'scheduled_reversible_transfer'; + amount: any; + timestamp: any; + scheduled_at: any; + tx_id: string; + fee: any; + extrinsic?: { + __typename?: 'extrinsic'; + id: string; + pallet: string; + call: string; + } | null; + block?: { __typename?: 'block'; height: number } | null; + from?: { __typename?: 'account'; id: string } | null; + to?: { __typename?: 'account'; id: string } | null; + } | null; + }>; +}; + +export type GetCancelledReversibleTransactionsStatsQueryVariables = Exact<{ + startDate: Scalars['timestamptz']['input']; + endDate: Scalars['timestamptz']['input']; +}>; + +export type GetCancelledReversibleTransactionsStatsQuery = { + __typename?: 'query_root'; + last24Hour: { + __typename?: 'cancelled_reversible_transfer_aggregate'; + aggregate?: { + __typename?: 'cancelled_reversible_transfer_aggregate_fields'; + totalCount: number; + } | null; + }; + allTime?: { + __typename?: 'chain_stats'; + total_cancelled_transfers: number; + } | null; +}; + +export type GetCancelledReversibleTransactionByTxIdQueryVariables = Exact<{ + tx_id: Scalars['String']['input']; +}>; + +export type GetCancelledReversibleTransactionByTxIdQuery = { + __typename?: 'query_root'; + cancelledReversibleTransactions: Array<{ + __typename?: 'cancelled_reversible_transfer'; + timestamp: any; + tx_id: string; + block?: { __typename?: 'block'; height: number } | null; + cancelledBy?: { __typename?: 'account'; id: string } | null; + extrinsic?: { + __typename?: 'extrinsic'; + id: string; + pallet: string; + call: string; + } | null; + scheduledTransfer?: { + __typename?: 'scheduled_reversible_transfer'; + amount: any; + scheduled_at: any; + fee: any; + from?: { __typename?: 'account'; id: string } | null; + to?: { __typename?: 'account'; id: string } | null; + } | null; + }>; +}; + +export type GetStatusQueryVariables = Exact<{ [key: string]: never }>; + +export type GetStatusQuery = { + __typename?: 'query_root'; + status?: { + __typename?: 'chain_stats'; + block_height: number; + total_accounts: number; + total_deposit_accounts: number; + total_executed_transfers: number; + total_immediate_transfers: number; + total_scheduled_transfers: number; + total_cancelled_transfers: number; + } | null; +}; + +export type GetErrorEventsQueryVariables = Exact<{ + limit?: InputMaybe; + offset?: InputMaybe; + orderBy?: InputMaybe | Error_Event_Order_By>; + where?: InputMaybe; +}>; + +export type GetErrorEventsQuery = { + __typename?: 'query_root'; + errorEvents: Array<{ + __typename?: 'error_event'; + error_docs?: string | null; + error_module?: string | null; + error_name?: string | null; + error_type: string; + id: string; + timestamp: any; + extrinsic?: { + __typename?: 'extrinsic'; + id: string; + pallet: string; + call: string; + } | null; + block?: { __typename?: 'block'; height: number } | null; + }>; + meta: { + __typename?: 'error_event_aggregate'; + aggregate?: { + __typename?: 'error_event_aggregate_fields'; + totalCount: number; + } | null; + }; +}; + +export type GetRecentErrorEventsQueryVariables = Exact<{ + limit?: InputMaybe; + offset?: InputMaybe; + orderBy?: InputMaybe | Error_Event_Order_By>; + where?: InputMaybe; +}>; + +export type GetRecentErrorEventsQuery = { + __typename?: 'query_root'; + errorEvents: Array<{ + __typename?: 'error_event'; + error_docs?: string | null; + error_module?: string | null; + error_name?: string | null; + error_type: string; + id: string; + timestamp: any; + extrinsic?: { + __typename?: 'extrinsic'; + id: string; + pallet: string; + call: string; + } | null; + block?: { __typename?: 'block'; height: number } | null; + }>; +}; + +export type GetErrorEventsStatsQueryVariables = Exact<{ + startDate: Scalars['timestamptz']['input']; + endDate: Scalars['timestamptz']['input']; +}>; + +export type GetErrorEventsStatsQuery = { + __typename?: 'query_root'; + last24Hour: { + __typename?: 'error_event_aggregate'; + aggregate?: { + __typename?: 'error_event_aggregate_fields'; + totalCount: number; + } | null; + }; + allTime?: { __typename?: 'chain_stats'; total_error_events: number } | null; +}; + +export type GetErrorEventByHashQueryVariables = Exact<{ + hash: Scalars['String']['input']; +}>; + +export type GetErrorEventByHashQuery = { + __typename?: 'query_root'; + errorEvents: Array<{ + __typename?: 'error_event'; + error_docs?: string | null; + error_module?: string | null; + error_name?: string | null; + error_type: string; + id: string; + timestamp: any; + extrinsic?: { + __typename?: 'extrinsic'; + id: string; + pallet: string; + call: string; + } | null; + block?: { __typename?: 'block'; height: number } | null; + }>; +}; + +export type GetExecutedReversibleTransactionsQueryVariables = Exact<{ + limit?: InputMaybe; + offset?: InputMaybe; + orderBy?: InputMaybe< + | Array + | Executed_Reversible_Transfer_Order_By + >; + where?: InputMaybe; +}>; + +export type GetExecutedReversibleTransactionsQuery = { + __typename?: 'query_root'; + executedReversibleTransactions: Array<{ + __typename?: 'executed_reversible_transfer'; + timestamp: any; + tx_id: string; + block?: { __typename?: 'block'; height: number } | null; + scheduledTransfer?: { + __typename?: 'scheduled_reversible_transfer'; + amount: any; + timestamp: any; + scheduled_at: any; + tx_id: string; + fee: any; + extrinsic?: { + __typename?: 'extrinsic'; + id: string; + pallet: string; + call: string; + } | null; + block?: { __typename?: 'block'; height: number } | null; + from?: { __typename?: 'account'; id: string } | null; + to?: { __typename?: 'account'; id: string } | null; + } | null; + }>; + meta: { + __typename?: 'executed_reversible_transfer_aggregate'; + aggregate?: { + __typename?: 'executed_reversible_transfer_aggregate_fields'; + totalCount: number; + } | null; + }; +}; + +export type GetRecentExecutedReversibleTransactionsQueryVariables = Exact<{ + limit?: InputMaybe; + offset?: InputMaybe; + orderBy?: InputMaybe< + | Array + | Executed_Reversible_Transfer_Order_By + >; +}>; + +export type GetRecentExecutedReversibleTransactionsQuery = { + __typename?: 'query_root'; + executedReversibleTransactions: Array<{ + __typename?: 'executed_reversible_transfer'; + timestamp: any; + tx_id: string; + block?: { __typename?: 'block'; height: number } | null; + scheduledTransfer?: { + __typename?: 'scheduled_reversible_transfer'; + amount: any; + timestamp: any; + scheduled_at: any; + tx_id: string; + fee: any; + extrinsic?: { + __typename?: 'extrinsic'; + id: string; + pallet: string; + call: string; + } | null; + block?: { __typename?: 'block'; height: number } | null; + from?: { __typename?: 'account'; id: string } | null; + to?: { __typename?: 'account'; id: string } | null; + } | null; + }>; +}; + +export type GetExecutedReversibleTransactionsStatsQueryVariables = Exact<{ + startDate: Scalars['timestamptz']['input']; + endDate: Scalars['timestamptz']['input']; +}>; + +export type GetExecutedReversibleTransactionsStatsQuery = { + __typename?: 'query_root'; + last24Hour: { + __typename?: 'executed_reversible_transfer_aggregate'; + aggregate?: { + __typename?: 'executed_reversible_transfer_aggregate_fields'; + totalCount: number; + } | null; + }; + allTime?: { + __typename?: 'chain_stats'; + total_executed_transfers: number; + } | null; +}; + +export type GetExecutedReversibleTransactionByTxIdQueryVariables = Exact<{ + tx_id: Scalars['String']['input']; +}>; + +export type GetExecutedReversibleTransactionByTxIdQuery = { + __typename?: 'query_root'; + executedReversibleTransactions: Array<{ + __typename?: 'executed_reversible_transfer'; + timestamp: any; + tx_id: string; + block?: { __typename?: 'block'; height: number } | null; + scheduledTransfer?: { + __typename?: 'scheduled_reversible_transfer'; + amount: any; + scheduled_at: any; + fee: any; + from?: { __typename?: 'account'; id: string } | null; + to?: { __typename?: 'account'; id: string } | null; + } | null; + }>; +}; + +export type GetHighSecuritySetsQueryVariables = Exact<{ + limit?: InputMaybe; + offset?: InputMaybe; + orderBy?: InputMaybe< + Array | High_Security_Set_Order_By + >; + where?: InputMaybe; +}>; + +export type GetHighSecuritySetsQuery = { + __typename?: 'query_root'; + highSecuritySets: Array<{ + __typename?: 'high_security_set'; + id: string; + timestamp: any; + delay: any; + extrinsic?: { + __typename?: 'extrinsic'; + id: string; + pallet: string; + call: string; + } | null; + who?: { __typename?: 'account'; id: string } | null; + interceptor?: { __typename?: 'account'; id: string } | null; + block?: { __typename?: 'block'; height: number } | null; + }>; + meta: { + __typename?: 'high_security_set_aggregate'; + aggregate?: { + __typename?: 'high_security_set_aggregate_fields'; + totalCount: number; + } | null; + }; +}; + +export type GetRecentHighSecuritySetsQueryVariables = Exact<{ + limit?: InputMaybe; + offset?: InputMaybe; + orderBy?: InputMaybe< + Array | High_Security_Set_Order_By + >; + where?: InputMaybe; +}>; + +export type GetRecentHighSecuritySetsQuery = { + __typename?: 'query_root'; + highSecuritySets: Array<{ + __typename?: 'high_security_set'; + id: string; + timestamp: any; + delay: any; + extrinsic?: { + __typename?: 'extrinsic'; + id: string; + pallet: string; + call: string; + } | null; + who?: { __typename?: 'account'; id: string } | null; + interceptor?: { __typename?: 'account'; id: string } | null; + block?: { __typename?: 'block'; height: number } | null; + }>; +}; + +export type GetHighSecuritySetsStatsQueryVariables = Exact<{ + startDate: Scalars['timestamptz']['input']; + endDate: Scalars['timestamptz']['input']; +}>; + +export type GetHighSecuritySetsStatsQuery = { + __typename?: 'query_root'; + last24Hour: { + __typename?: 'high_security_set_aggregate'; + aggregate?: { + __typename?: 'high_security_set_aggregate_fields'; + totalCount: number; + } | null; + }; + allTime?: { + __typename?: 'chain_stats'; + total_high_security_sets: number; + } | null; +}; + +export type GetHighSecuritySetByHashQueryVariables = Exact<{ + hash: Scalars['String']['input']; +}>; + +export type GetHighSecuritySetByHashQuery = { + __typename?: 'query_root'; + highSecuritySets: Array<{ + __typename?: 'high_security_set'; + id: string; + timestamp: any; + delay: any; + extrinsic?: { + __typename?: 'extrinsic'; + id: string; + pallet: string; + call: string; + } | null; + who?: { __typename?: 'account'; id: string } | null; + interceptor?: { __typename?: 'account'; id: string } | null; + block?: { __typename?: 'block'; height: number } | null; + }>; +}; + +export type GetMinerLeaderboardQueryVariables = Exact<{ + limit?: InputMaybe; + offset?: InputMaybe; +}>; + +export type GetMinerLeaderboardQuery = { + __typename?: 'query_root'; + leaderboardEntries: Array<{ + __typename?: 'account_stats'; + id: string; + total_mined_blocks: number; + total_rewards: any; + }>; + meta?: { __typename?: 'chain_stats'; totalCount: number } | null; +}; + +export type GetMinerRewardsQueryVariables = Exact<{ + limit?: InputMaybe; + offset?: InputMaybe; + orderBy?: InputMaybe | Miner_Reward_Order_By>; + where?: InputMaybe; +}>; + +export type GetMinerRewardsQuery = { + __typename?: 'query_root'; + minerRewards: Array<{ + __typename?: 'miner_reward'; + reward: any; + timestamp: any; + block?: { __typename?: 'block'; height: number; hash: string } | null; + miner?: { __typename?: 'account'; id: string } | null; + }>; + meta: { + __typename?: 'miner_reward_aggregate'; + aggregate?: { + __typename?: 'miner_reward_aggregate_fields'; + totalCount: number; + } | null; + }; +}; + +export type GetRecentMinerRewardsQueryVariables = Exact<{ + limit?: InputMaybe; + offset?: InputMaybe; + orderBy?: InputMaybe | Miner_Reward_Order_By>; + where?: InputMaybe; +}>; + +export type GetRecentMinerRewardsQuery = { + __typename?: 'query_root'; + minerRewards: Array<{ + __typename?: 'miner_reward'; + reward: any; + timestamp: any; + block?: { __typename?: 'block'; height: number; hash: string } | null; + miner?: { __typename?: 'account'; id: string } | null; + }>; +}; + +export type GetMinerRewardsStatsQueryVariables = Exact<{ + startDate: Scalars['timestamptz']['input']; + endDate: Scalars['timestamptz']['input']; +}>; + +export type GetMinerRewardsStatsQuery = { + __typename?: 'query_root'; + last24Hour: { + __typename?: 'miner_reward_aggregate'; + aggregate?: { + __typename?: 'miner_reward_aggregate_fields'; + totalCount: number; + } | null; + }; + allTime?: { __typename?: 'chain_stats'; total_miner_rewards: number } | null; +}; + +export type GetMinerRewardByHashQueryVariables = Exact<{ + hash: Scalars['String']['input']; +}>; + +export type GetMinerRewardByHashQuery = { + __typename?: 'query_root'; + minerRewards: Array<{ + __typename?: 'miner_reward'; + reward: any; + timestamp: any; + block?: { __typename?: 'block'; height: number; hash: string } | null; + miner?: { __typename?: 'account'; id: string } | null; + }>; +}; + +export type GetScheduledReversibleTransactionsQueryVariables = Exact<{ + limit?: InputMaybe; + offset?: InputMaybe; + orderBy?: InputMaybe< + | Array + | Scheduled_Reversible_Transfer_Order_By + >; + where?: InputMaybe; +}>; + +export type GetScheduledReversibleTransactionsQuery = { + __typename?: 'query_root'; + scheduledReversibleTransactions: Array<{ + __typename?: 'scheduled_reversible_transfer'; + amount: any; + timestamp: any; + scheduled_at: any; + tx_id: string; + fee: any; + extrinsic?: { + __typename?: 'extrinsic'; + id: string; + pallet: string; + call: string; + } | null; + block?: { __typename?: 'block'; height: number } | null; + from?: { __typename?: 'account'; id: string } | null; + to?: { __typename?: 'account'; id: string } | null; + }>; + meta: { + __typename?: 'scheduled_reversible_transfer_aggregate'; + aggregate?: { + __typename?: 'scheduled_reversible_transfer_aggregate_fields'; + totalCount: number; + } | null; + }; +}; + +export type GetRecentScheduledReversibleTransactionsQueryVariables = Exact<{ + limit?: InputMaybe; + offset?: InputMaybe; + orderBy?: InputMaybe< + | Array + | Scheduled_Reversible_Transfer_Order_By + >; +}>; + +export type GetRecentScheduledReversibleTransactionsQuery = { + __typename?: 'query_root'; + scheduledReversibleTransactions: Array<{ + __typename?: 'scheduled_reversible_transfer'; + amount: any; + timestamp: any; + scheduled_at: any; + tx_id: string; + fee: any; + extrinsic?: { + __typename?: 'extrinsic'; + id: string; + pallet: string; + call: string; + } | null; + block?: { __typename?: 'block'; height: number } | null; + from?: { __typename?: 'account'; id: string } | null; + to?: { __typename?: 'account'; id: string } | null; + }>; +}; + +export type GetScheduledReversibleTransactionsStatsQueryVariables = Exact<{ + startDate: Scalars['timestamptz']['input']; + endDate: Scalars['timestamptz']['input']; +}>; + +export type GetScheduledReversibleTransactionsStatsQuery = { + __typename?: 'query_root'; + last24Hour: { + __typename?: 'scheduled_reversible_transfer_aggregate'; + aggregate?: { + __typename?: 'scheduled_reversible_transfer_aggregate_fields'; + totalCount: number; + } | null; + }; + allTime?: { + __typename?: 'chain_stats'; + total_scheduled_transfers: number; + } | null; +}; + +export type GetScheduledReversibleTransactionByTxIdQueryVariables = Exact<{ + tx_id: Scalars['String']['input']; +}>; + +export type GetScheduledReversibleTransactionByTxIdQuery = { + __typename?: 'query_root'; + scheduledReversibleTransactions: Array<{ + __typename?: 'scheduled_reversible_transfer'; + amount: any; + timestamp: any; + scheduled_at: any; + tx_id: string; + fee: any; + extrinsic?: { + __typename?: 'extrinsic'; + id: string; + pallet: string; + call: string; + } | null; + block?: { __typename?: 'block'; height: number } | null; + from?: { __typename?: 'account'; id: string } | null; + to?: { __typename?: 'account'; id: string } | null; + }>; +}; + +export type SearchAllQueryVariables = Exact<{ + keyword?: InputMaybe; + keyword_number?: InputMaybe; + limit?: InputMaybe; +}>; + +export type SearchAllQuery = { + __typename?: 'query_root'; + transactions: Array<{ + __typename?: 'transfer'; + extrinsic?: { + __typename?: 'extrinsic'; + id: string; + pallet: string; + call: string; + } | null; + }>; + scheduledReversibleTransactions: Array<{ + __typename?: 'scheduled_reversible_transfer'; + tx_id: string; + extrinsic?: { + __typename?: 'extrinsic'; + id: string; + pallet: string; + call: string; + } | null; + }>; + executedReversibleTransactions: Array<{ + __typename?: 'executed_reversible_transfer'; + tx_id: string; + }>; + cancelledReversibleTransactions: Array<{ + __typename?: 'cancelled_reversible_transfer'; + tx_id: string; + }>; + accounts: Array<{ __typename?: 'account'; id: string }>; + blocks: Array<{ __typename?: 'block'; height: number }>; + highSecuritySets: Array<{ + __typename?: 'high_security_set'; + extrinsic?: { + __typename?: 'extrinsic'; + id: string; + pallet: string; + call: string; + } | null; + }>; + minerRewards: Array<{ + __typename?: 'miner_reward'; + reward: any; + timestamp: any; + block?: { __typename?: 'block'; height: number; hash: string } | null; + miner?: { __typename?: 'account'; id: string } | null; + }>; + errorEvents: Array<{ + __typename?: 'error_event'; + extrinsic?: { + __typename?: 'extrinsic'; + id: string; + pallet: string; + call: string; + } | null; + }>; +}; + +export type GetTransactionsQueryVariables = Exact<{ + limit?: InputMaybe; + offset?: InputMaybe; + orderBy?: InputMaybe | Transfer_Order_By>; + where?: InputMaybe; +}>; + +export type GetTransactionsQuery = { + __typename?: 'query_root'; + transactions: Array<{ + __typename?: 'transfer'; + fee: any; + amount: any; + timestamp: any; + extrinsic?: { + __typename?: 'extrinsic'; + id: string; + pallet: string; + call: string; + } | null; + block?: { __typename?: 'block'; height: number } | null; + from?: { __typename?: 'account'; id: string } | null; + to?: { __typename?: 'account'; id: string } | null; + }>; + meta: { + __typename?: 'transfer_aggregate'; + aggregate?: { + __typename?: 'transfer_aggregate_fields'; + totalCount: number; + } | null; + }; +}; + +export type GetRecentTransactionsQueryVariables = Exact<{ + limit?: InputMaybe; + offset?: InputMaybe; + orderBy?: InputMaybe | Transfer_Order_By>; + where?: InputMaybe; +}>; + +export type GetRecentTransactionsQuery = { + __typename?: 'query_root'; + transactions: Array<{ + __typename?: 'transfer'; + fee: any; + amount: any; + timestamp: any; + extrinsic?: { + __typename?: 'extrinsic'; + id: string; + pallet: string; + call: string; + } | null; + block?: { __typename?: 'block'; height: number } | null; + from?: { __typename?: 'account'; id: string } | null; + to?: { __typename?: 'account'; id: string } | null; + }>; +}; + +export type GetTransactionsStatsQueryVariables = Exact<{ + startDate: Scalars['timestamptz']['input']; + endDate: Scalars['timestamptz']['input']; +}>; + +export type GetTransactionsStatsQuery = { + __typename?: 'query_root'; + last24Hour: { + __typename?: 'transfer_aggregate'; + aggregate?: { + __typename?: 'transfer_aggregate_fields'; + totalCount: number; + } | null; + }; + allTime?: { + __typename?: 'chain_stats'; + total_immediate_transfers: number; + } | null; +}; + +export type GetExtrinsicByHashQueryVariables = Exact<{ + hash: Scalars['String']['input']; +}>; + +export type GetExtrinsicByHashQuery = { + __typename?: 'query_root'; + extrinsics: Array<{ + __typename?: 'extrinsic'; + id: string; + pallet: string; + call: string; + success: boolean; + fee: any; + timestamp: any; + index_in_block: number; + signer?: { __typename?: 'account'; id: string } | null; + block?: { __typename?: 'block'; height: number } | null; + }>; + transfers: Array<{ + __typename?: 'transfer'; + id: string; + amount: any; + timestamp: any; + from?: { __typename?: 'account'; id: string } | null; + to?: { __typename?: 'account'; id: string } | null; + }>; +}; + +export type GetWormholeExtrinsicsQueryVariables = Exact<{ + limit?: InputMaybe; + offset?: InputMaybe; + orderBy: Array | Wormhole_Extrinsic_Order_By; + where?: InputMaybe; +}>; + +export type GetWormholeExtrinsicsQuery = { + __typename?: 'query_root'; + wormholeExtrinsics: Array<{ + __typename?: 'wormhole_extrinsic'; + id: string; + total_amount: any; + output_count: number; + timestamp: any; + privacy_score: any; + privacy_label: string; + extrinsic?: { + __typename?: 'extrinsic'; + id: string; + pallet: string; + call: string; + } | null; + block?: { __typename?: 'block'; height: number } | null; + }>; + meta: { + __typename?: 'wormhole_extrinsic_aggregate'; + aggregate?: { + __typename?: 'wormhole_extrinsic_aggregate_fields'; + totalCount: number; + } | null; + }; +}; + +export type GetWormholeExtrinsicByIdQueryVariables = Exact<{ + id: Scalars['String']['input']; +}>; + +export type GetWormholeExtrinsicByIdQuery = { + __typename?: 'query_root'; + wormholeExtrinsicById?: { + __typename?: 'wormhole_extrinsic'; + id: string; + total_amount: any; + output_count: number; + timestamp: any; + privacy_score: any; + privacy_score01_pct: any; + privacy_score1_pct: any; + privacy_score5_pct: any; + privacy_label: string; + pool_snapshot: string; + extrinsic?: { + __typename?: 'extrinsic'; + id: string; + pallet: string; + call: string; + } | null; + block?: { + __typename?: 'block'; + id: string; + height: number; + hash: string; + timestamp: any; + } | null; + outputs: Array<{ + __typename?: 'wormhole_output'; + id: string; + amount: any; + exitAccount?: { __typename?: 'account'; id: string } | null; + }>; + } | null; + wormholeNullifiers: Array<{ + __typename?: 'wormhole_nullifier'; + nullifier: string; + nullifier_hash: string; + }>; +}; + +export type GetDepositPoolStatsQueryVariables = Exact<{ [key: string]: never }>; + +export type GetDepositPoolStatsQuery = { + __typename?: 'query_root'; + depositPoolStatsById?: { + __typename?: 'deposit_pool_stats'; + last_updated_block: number; + buckets: string; + } | null; +}; + +export const GetAccountsDocument = { kind: 'Document', definitions: [ { kind: 'OperationDefinition', operation: 'query', - name: { kind: 'Name', value: 'GetBlocks' }, + name: { kind: 'Name', value: 'GetAccounts' }, variableDefinitions: [ { kind: 'VariableDefinition', @@ -8019,29 +6558,15 @@ export const GetBlocksDocument = { name: { kind: 'Name', value: 'orderBy' } }, type: { - kind: 'NonNullType', + kind: 'ListType', type: { - kind: 'ListType', + kind: 'NonNullType', type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'BlockOrderByInput' } - } + kind: 'NamedType', + name: { kind: 'Name', value: 'account_order_by' } } } } - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'where' } - }, - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'BlockWhereInput' } - } } ], selectionSet: { @@ -8049,7 +6574,8 @@ export const GetBlocksDocument = { selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'blocks' }, + alias: { kind: 'Name', value: 'accounts' }, + name: { kind: 'Name', value: 'account' }, arguments: [ { kind: 'Argument', @@ -8069,57 +6595,42 @@ export const GetBlocksDocument = { }, { kind: 'Argument', - name: { kind: 'Name', value: 'orderBy' }, + name: { kind: 'Name', value: 'order_by' }, value: { kind: 'Variable', name: { kind: 'Name', value: 'orderBy' } } - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'where' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'where' } - } } ], selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'hash' } }, - { kind: 'Field', name: { kind: 'Name', value: 'height' } }, - { kind: 'Field', name: { kind: 'Name', value: 'reward' } }, - { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'extrinsics' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } } - ] - } - } + { kind: 'Field', name: { kind: 'Name', value: 'free' } }, + { kind: 'Field', name: { kind: 'Name', value: 'frozen' } }, + { kind: 'Field', name: { kind: 'Name', value: 'reserved' } } ] } }, { kind: 'Field', alias: { kind: 'Name', value: 'meta' }, - name: { kind: 'Name', value: 'blocksConnection' }, + name: { kind: 'Name', value: 'chain_stats_by_pk' }, arguments: [ { kind: 'Argument', - name: { kind: 'Name', value: 'orderBy' }, - value: { kind: 'EnumValue', value: 'id_ASC' } + name: { kind: 'Name', value: 'id' }, + value: { kind: 'StringValue', value: 'global', block: false } } ], selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } + { + kind: 'Field', + alias: { kind: 'Name', value: 'totalCount' }, + name: { kind: 'Name', value: 'total_accounts' } + } ] } } @@ -8127,46 +6638,32 @@ export const GetBlocksDocument = { } } ] -} as unknown as DocumentNode; -export const GetRecentBlocksDocument = { +} as unknown as DocumentNode; +export const GetAccountByIdDocument = { kind: 'Document', definitions: [ { kind: 'OperationDefinition', operation: 'query', - name: { kind: 'Name', value: 'GetRecentBlocks' }, + name: { kind: 'Name', value: 'GetAccountById' }, variableDefinitions: [ { kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'limit' } - }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'offset' } - }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + variable: { kind: 'Variable', name: { kind: 'Name', value: 'id' } }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } } + } }, { kind: 'VariableDefinition', variable: { kind: 'Variable', - name: { kind: 'Name', value: 'orderBy' } + name: { kind: 'Name', value: 'limit' } }, type: { - kind: 'ListType', - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'BlockOrderByInput' } - } - } + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } } } ], @@ -8175,186 +6672,417 @@ export const GetRecentBlocksDocument = { selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'blocks' }, + alias: { kind: 'Name', value: 'account' }, + name: { kind: 'Name', value: 'account_by_pk' }, arguments: [ { kind: 'Argument', - name: { kind: 'Name', value: 'limit' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'limit' } - } - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'offset' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'offset' } - } - }, + name: { kind: 'Name', value: 'id' }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'id' } } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'free' } }, + { kind: 'Field', name: { kind: 'Name', value: 'frozen' } }, + { kind: 'Field', name: { kind: 'Name', value: 'reserved' } } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'accountStats' }, + name: { kind: 'Name', value: 'account_stats_by_pk' }, + arguments: [ { kind: 'Argument', - name: { kind: 'Name', value: 'orderBy' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'orderBy' } - } + name: { kind: 'Name', value: 'id' }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'id' } } } ], selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'hash' } }, - { kind: 'Field', name: { kind: 'Name', value: 'height' } }, - { kind: 'Field', name: { kind: 'Name', value: 'reward' } }, - { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, { kind: 'Field', - name: { kind: 'Name', value: 'extrinsics' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } } - ] - } + name: { kind: 'Name', value: 'total_cancelled_transfers' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'total_executed_transfers' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'total_immediate_transfers' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'total_mined_blocks' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'total_rewards' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'total_scheduled_transfers' } } ] } - } - ] - } - } - ] -} as unknown as DocumentNode< - GetRecentBlocksQuery, - GetRecentBlocksQueryVariables ->; -export const GetBlockByIdDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'GetBlockById' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'height' } - }, - type: { - kind: 'NonNullType', - type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } - } - }, - { - kind: 'VariableDefinition', - variable: { kind: 'Variable', name: { kind: 'Name', value: 'hash' } }, - type: { - kind: 'NonNullType', - type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } } - } - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'limit' } }, - type: { - kind: 'NonNullType', - type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } - } - } - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'blocks' }, + alias: { kind: 'Name', value: 'accountEvents' }, + name: { kind: 'Name', value: 'account_event' }, arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + } + }, { kind: 'Argument', name: { kind: 'Name', value: 'where' }, value: { kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'height_eq' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'height' } - } - }, + fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'OR' }, + name: { kind: 'Name', value: 'account_id' }, value: { kind: 'ObjectValue', fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'hash_eq' }, + name: { kind: 'Name', value: '_eq' }, value: { kind: 'Variable', - name: { kind: 'Name', value: 'hash' } + name: { kind: 'Name', value: 'id' } + } + } + ] + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'transfer' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'fee' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'pallet' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'call' } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'height' } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'timestamp' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'from' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'to' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } + } + ] + } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'scheduledReversibleTransfer' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'pallet' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'call' } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'timestamp' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'timestamp' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'scheduled_at' } + }, + { kind: 'Field', name: { kind: 'Name', value: 'tx_id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'fee' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'height' } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'from' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'to' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } + } + ] + } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'executedReversibleTransfer' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'timestamp' } + }, + { kind: 'Field', name: { kind: 'Name', value: 'tx_id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'height' } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'scheduledTransfer' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'pallet' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'call' } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'timestamp' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'scheduled_at' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'tx_id' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'fee' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'height' } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'from' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'to' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } + } + ] + } } - } - ] + ] + } } - } - ] - } - } - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'hash' } }, - { kind: 'Field', name: { kind: 'Name', value: 'height' } }, - { kind: 'Field', name: { kind: 'Name', value: 'reward' } }, - { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, + ] + } + }, { kind: 'Field', - name: { kind: 'Name', value: 'extrinsics' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'orderBy' }, - value: { kind: 'EnumValue', value: 'indexInBlock_ASC' } - } - ], + name: { kind: 'Name', value: 'cancelledReversibleTransfer' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'pallet' } - }, - { kind: 'Field', name: { kind: 'Name', value: 'call' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'success' } - }, - { kind: 'Field', name: { kind: 'Name', value: 'fee' } }, { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, + { kind: 'Field', name: { kind: 'Name', value: 'tx_id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'indexInBlock' } + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'height' } + } + ] + } }, { kind: 'Field', - name: { kind: 'Name', value: 'signer' }, + name: { kind: 'Name', value: 'cancelledBy' }, selectionSet: { kind: 'SelectionSet', selections: [ @@ -8364,96 +7092,143 @@ export const GetBlockByIdDocument = { } ] } - } - ] - } - } - ] - } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'minerRewards' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'where' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'block' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'height_eq' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'height' } - } - } - ] - } - }, - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'OR' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'block' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'hash_eq' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'hash' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'scheduledTransfer' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'pallet' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'call' } } - } - ] + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'timestamp' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'scheduled_at' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'tx_id' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'fee' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'height' } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'from' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'to' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } + } + ] + } } - } - ] + ] + } } - } - ] - } - } - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'reward' } }, - { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'miner' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } } ] } }, { kind: 'Field', - name: { kind: 'Name', value: 'block' }, + name: { kind: 'Name', value: 'minerReward' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'height' } + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'height' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'hash' } + } + ] + } }, - { kind: 'Field', name: { kind: 'Name', value: 'hash' } } + { + kind: 'Field', + name: { kind: 'Name', value: 'reward' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'miner' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'timestamp' } + } ] } } @@ -8462,17 +7237,26 @@ export const GetBlockByIdDocument = { }, { kind: 'Field', - alias: { kind: 'Name', value: 'transactions' }, - name: { kind: 'Name', value: 'transfersConnection' }, + alias: { kind: 'Name', value: 'guardian' }, + name: { kind: 'Name', value: 'high_security_set_aggregate' }, arguments: [ { kind: 'Argument', - name: { kind: 'Name', value: 'orderBy' }, - value: { kind: 'EnumValue', value: 'timestamp_DESC' } + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'timestamp' }, + value: { kind: 'EnumValue', value: 'desc' } + } + ] + } }, { kind: 'Argument', - name: { kind: 'Name', value: 'first' }, + name: { kind: 'Name', value: 'limit' }, value: { kind: 'Variable', name: { kind: 'Name', value: 'limit' } @@ -8486,56 +7270,22 @@ export const GetBlockByIdDocument = { fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'extrinsic_isNull' }, - value: { kind: 'BooleanValue', value: false } - }, - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'AND' }, + name: { kind: 'Name', value: 'who' }, value: { kind: 'ObjectValue', fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'block' }, + name: { kind: 'Name', value: 'id' }, value: { kind: 'ObjectValue', fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'height_eq' }, + name: { kind: 'Name', value: '_eq' }, value: { kind: 'Variable', - name: { kind: 'Name', value: 'height' } - } - } - ] - } - }, - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'OR' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'block' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { - kind: 'Name', - value: 'hash_eq' - }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'hash' } - } - } - ] + name: { kind: 'Name', value: 'id' } } } ] @@ -8553,87 +7303,48 @@ export const GetBlockByIdDocument = { selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'edges' }, + name: { kind: 'Name', value: 'nodes' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'node' }, + name: { kind: 'Name', value: 'timestamp' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'fee' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'extrinsic' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'pallet' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'call' } - } - ] - } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'block' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'height' } - } - ] - } - }, + name: { kind: 'Name', value: 'height' } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'interceptor' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'amount' } + name: { kind: 'Name', value: 'id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'timestamp' } + name: { kind: 'Name', value: 'free' } }, { kind: 'Field', - name: { kind: 'Name', value: 'from' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' } - } - ] - } + name: { kind: 'Name', value: 'frozen' } }, { kind: 'Field', - name: { kind: 'Name', value: 'to' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' } - } - ] - } + name: { kind: 'Name', value: 'reserved' } } ] } @@ -8641,26 +7352,45 @@ export const GetBlockByIdDocument = { ] } }, - { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'totalCount' }, + name: { kind: 'Name', value: 'count' } + } + ] + } + } ] } }, { kind: 'Field', - alias: { kind: 'Name', value: 'scheduledReversibleTransactions' }, - name: { - kind: 'Name', - value: 'scheduledReversibleTransfersConnection' - }, + alias: { kind: 'Name', value: 'beneficiaries' }, + name: { kind: 'Name', value: 'high_security_set_aggregate' }, arguments: [ { kind: 'Argument', - name: { kind: 'Name', value: 'orderBy' }, - value: { kind: 'EnumValue', value: 'timestamp_DESC' } + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'timestamp' }, + value: { kind: 'EnumValue', value: 'desc' } + } + ] + } }, { kind: 'Argument', - name: { kind: 'Name', value: 'first' }, + name: { kind: 'Name', value: 'limit' }, value: { kind: 'Variable', name: { kind: 'Name', value: 'limit' } @@ -8674,39 +7404,22 @@ export const GetBlockByIdDocument = { fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'block' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'height_eq' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'height' } - } - } - ] - } - }, - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'OR' }, + name: { kind: 'Name', value: 'interceptor' }, value: { kind: 'ObjectValue', fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'block' }, + name: { kind: 'Name', value: 'id' }, value: { kind: 'ObjectValue', fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'hash_eq' }, + name: { kind: 'Name', value: '_eq' }, value: { kind: 'Variable', - name: { kind: 'Name', value: 'hash' } + name: { kind: 'Name', value: 'id' } } } ] @@ -8724,99 +7437,48 @@ export const GetBlockByIdDocument = { selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'edges' }, + name: { kind: 'Name', value: 'nodes' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'node' }, + name: { kind: 'Name', value: 'timestamp' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'extrinsic' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'pallet' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'call' } - } - ] - } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'timestamp' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'amount' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'timestamp' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'scheduledAt' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'txId' } - }, + name: { kind: 'Name', value: 'height' } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'who' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'fee' } + name: { kind: 'Name', value: 'id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'block' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'height' } - } - ] - } + name: { kind: 'Name', value: 'free' } }, { kind: 'Field', - name: { kind: 'Name', value: 'from' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' } - } - ] - } + name: { kind: 'Name', value: 'frozen' } }, { kind: 'Field', - name: { kind: 'Name', value: 'to' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' } - } - ] - } + name: { kind: 'Name', value: 'reserved' } } ] } @@ -8824,26 +7486,54 @@ export const GetBlockByIdDocument = { ] } }, - { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'totalCount' }, + name: { kind: 'Name', value: 'count' } + } + ] + } + } ] } }, { kind: 'Field', - alias: { kind: 'Name', value: 'executedReversibleTransactions' }, - name: { - kind: 'Name', - value: 'executedReversibleTransfersConnection' - }, + alias: { kind: 'Name', value: 'wormholeOutputs' }, + name: { kind: 'Name', value: 'wormhole_output' }, arguments: [ { kind: 'Argument', - name: { kind: 'Name', value: 'orderBy' }, - value: { kind: 'EnumValue', value: 'timestamp_DESC' } + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'wormholeExtrinsic' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'timestamp' }, + value: { kind: 'EnumValue', value: 'desc' } + } + ] + } + } + ] + } }, { kind: 'Argument', - name: { kind: 'Name', value: 'first' }, + name: { kind: 'Name', value: 'limit' }, value: { kind: 'Variable', name: { kind: 'Name', value: 'limit' } @@ -8857,39 +7547,22 @@ export const GetBlockByIdDocument = { fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'block' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'height_eq' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'height' } - } - } - ] - } - }, - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'OR' }, + name: { kind: 'Name', value: 'exitAccount' }, value: { kind: 'ObjectValue', fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'block' }, + name: { kind: 'Name', value: 'id' }, value: { kind: 'ObjectValue', fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'hash_eq' }, + name: { kind: 'Name', value: '_eq' }, value: { kind: 'Variable', - name: { kind: 'Name', value: 'hash' } + name: { kind: 'Name', value: 'id' } } } ] @@ -8905,168 +7578,243 @@ export const GetBlockByIdDocument = { selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'amount' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'exitAccount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, { kind: 'Field', - name: { kind: 'Name', value: 'edges' }, + name: { kind: 'Name', value: 'wormholeExtrinsic' }, selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'node' }, + name: { kind: 'Name', value: 'extrinsic' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'timestamp' } + name: { kind: 'Name', value: 'id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'txId' } + name: { kind: 'Name', value: 'pallet' } }, { kind: 'Field', - name: { kind: 'Name', value: 'block' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'height' } - } - ] - } + name: { kind: 'Name', value: 'call' } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'total_amount' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'output_count' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'timestamp' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'height' } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'outputs' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } }, { kind: 'Field', - name: { - kind: 'Name', - value: 'scheduledTransfer' - }, + name: { kind: 'Name', value: 'exitAccount' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'extrinsic' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' } - }, - { - kind: 'Field', - name: { - kind: 'Name', - value: 'pallet' - } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'call' } - } - ] - } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'amount' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'timestamp' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'scheduledAt' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'txId' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'fee' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'block' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { - kind: 'Name', - value: 'height' - } - } - ] - } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'from' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' } - } - ] - } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'to' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' } - } - ] - } + name: { kind: 'Name', value: 'id' } } ] } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' } } ] } } ] } - }, - { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } + } ] } + } + ] + } + } + ] +} as unknown as DocumentNode; +export const GetAccountsStatsDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetAccountsStats' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'startDate' } + }, + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'timestamptz' } + } + } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'endDate' } }, + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'timestamptz' } + } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ { kind: 'Field', - alias: { kind: 'Name', value: 'cancelledReversibleTransactions' }, - name: { - kind: 'Name', - value: 'cancelledReversibleTransfersConnection' - }, + alias: { kind: 'Name', value: 'all' }, + name: { kind: 'Name', value: 'chain_stats_by_pk' }, arguments: [ { kind: 'Argument', - name: { kind: 'Name', value: 'orderBy' }, - value: { kind: 'EnumValue', value: 'timestamp_DESC' } - }, + name: { kind: 'Name', value: 'id' }, + value: { kind: 'StringValue', value: 'global', block: false } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'total_accounts' } + } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'recentlyActive' }, + name: { kind: 'Name', value: 'account_aggregate' }, + arguments: [ { kind: 'Argument', - name: { kind: 'Name', value: 'first' }, + name: { kind: 'Name', value: 'where' }, value: { - kind: 'Variable', - name: { kind: 'Name', value: 'limit' } + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'transfersFrom' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'timestamp' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_gte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'startDate' } + } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_lte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'endDate' } + } + } + ] + } + } + ] + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'count' } } + ] + } } - }, + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'recentlyDeposited' }, + name: { kind: 'Name', value: 'account_aggregate' }, + arguments: [ { kind: 'Argument', name: { kind: 'Name', value: 'where' }, @@ -9075,39 +7823,30 @@ export const GetBlockByIdDocument = { fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'block' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'height_eq' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'height' } - } - } - ] - } - }, - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'OR' }, + name: { kind: 'Name', value: 'transfersTo' }, value: { kind: 'ObjectValue', fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'block' }, + name: { kind: 'Name', value: 'timestamp' }, value: { kind: 'ObjectValue', fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'hash_eq' }, + name: { kind: 'Name', value: '_gte' }, value: { kind: 'Variable', - name: { kind: 'Name', value: 'hash' } + name: { kind: 'Name', value: 'startDate' } + } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_lte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'endDate' } } } ] @@ -9125,176 +7864,310 @@ export const GetBlockByIdDocument = { selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'edges' }, + name: { kind: 'Name', value: 'aggregate' }, selectionSet: { kind: 'SelectionSet', selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'node' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'timestamp' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'txId' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'block' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'height' } - } - ] - } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'cancelledBy' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' } - } - ] - } - }, - { - kind: 'Field', - name: { - kind: 'Name', - value: 'scheduledTransfer' - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'extrinsic' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' } - }, - { - kind: 'Field', - name: { - kind: 'Name', - value: 'pallet' - } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'call' } - } - ] - } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'amount' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'timestamp' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'scheduledAt' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'txId' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'fee' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'block' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { - kind: 'Name', - value: 'height' - } - } - ] - } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'from' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' } - } - ] - } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'to' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' } - } - ] - } - } - ] - } - } - ] - } - } + { kind: 'Field', name: { kind: 'Name', value: 'count' } } ] } - }, - { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } + } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetAccountsStatsQuery, + GetAccountsStatsQueryVariables +>; +export const GetBlocksDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetBlocks' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' } + }, + type: { + kind: 'NonNullType', + type: { + kind: 'ListType', + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'block_order_by' } + } + } + } + } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + }, + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'block_bool_exp' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'blocks' }, + name: { kind: 'Name', value: 'block' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'offset' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'hash' } }, + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'reward' } }, + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsics' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'meta' }, + name: { kind: 'Name', value: 'chain_stats_by_pk' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'id' }, + value: { kind: 'StringValue', value: 'global', block: false } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'totalCount' }, + name: { kind: 'Name', value: 'block_height' } + } ] } + } + ] + } + } + ] +} as unknown as DocumentNode; +export const GetRecentBlocksDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetRecentBlocks' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' } }, + type: { + kind: 'ListType', + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'block_order_by' } + } + } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ { kind: 'Field', - alias: { kind: 'Name', value: 'highSecuritySets' }, - name: { kind: 'Name', value: 'highSecuritySetsConnection' }, + alias: { kind: 'Name', value: 'blocks' }, + name: { kind: 'Name', value: 'block' }, arguments: [ { kind: 'Argument', - name: { kind: 'Name', value: 'orderBy' }, - value: { kind: 'EnumValue', value: 'timestamp_DESC' } + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + } }, { kind: 'Argument', - name: { kind: 'Name', value: 'first' }, + name: { kind: 'Name', value: 'offset' }, value: { kind: 'Variable', - name: { kind: 'Name', value: 'limit' } + name: { kind: 'Name', value: 'offset' } } }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'hash' } }, + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'reward' } }, + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsics' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetRecentBlocksQuery, + GetRecentBlocksQueryVariables +>; +export const GetBlockByIdDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetBlockById' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'height' } + }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + } + }, + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'hash' } }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'blocks' }, + name: { kind: 'Name', value: 'block' }, + arguments: [ { kind: 'Argument', name: { kind: 'Name', value: 'where' }, @@ -9303,43 +8176,53 @@ export const GetBlockByIdDocument = { fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'block' }, + name: { kind: 'Name', value: '_or' }, value: { - kind: 'ObjectValue', - fields: [ + kind: 'ListValue', + values: [ { - kind: 'ObjectField', - name: { kind: 'Name', value: 'height_eq' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'height' } - } - } - ] - } - }, - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'OR' }, - value: { - kind: 'ObjectValue', - fields: [ + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'height' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'height' } + } + } + ] + } + } + ] + }, { - kind: 'ObjectField', - name: { kind: 'Name', value: 'block' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'hash_eq' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'hash' } - } + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'hash' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'hash' } + } + } + ] } - ] - } + } + ] } ] } @@ -9351,114 +8234,77 @@ export const GetBlockByIdDocument = { selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'hash' } }, + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'reward' } }, + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, { kind: 'Field', - name: { kind: 'Name', value: 'edges' }, + name: { kind: 'Name', value: 'extrinsics' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'index_in_block' }, + value: { kind: 'EnumValue', value: 'asc' } + } + ] + } + } + ], selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'node' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'extrinsic' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'pallet' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'call' } - } - ] - } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'timestamp' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'delay' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'block' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'height' } - } - ] - } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'who' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' } - } - ] - } - }, + name: { kind: 'Name', value: 'pallet' } + }, + { kind: 'Field', name: { kind: 'Name', value: 'call' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'success' } + }, + { kind: 'Field', name: { kind: 'Name', value: 'fee' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'timestamp' } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'index_in_block' }, + name: { kind: 'Name', value: 'index_in_block' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'signer' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'interceptor' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' } - } - ] - } + name: { kind: 'Name', value: 'id' } } ] } } ] } - }, - { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } + } ] } }, { kind: 'Field', - alias: { kind: 'Name', value: 'errorEvents' }, - name: { kind: 'Name', value: 'errorEventsConnection' }, + alias: { kind: 'Name', value: 'minerRewards' }, + name: { kind: 'Name', value: 'miner_reward' }, arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'orderBy' }, - value: { kind: 'EnumValue', value: 'timestamp_DESC' } - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'first' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'limit' } - } - }, { kind: 'Argument', name: { kind: 'Name', value: 'where' }, @@ -9473,34 +8319,65 @@ export const GetBlockByIdDocument = { fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'height_eq' }, + name: { kind: 'Name', value: '_or' }, value: { - kind: 'Variable', - name: { kind: 'Name', value: 'height' } - } - } - ] - } - }, - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'OR' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'block' }, - value: { - kind: 'ObjectValue', - fields: [ + kind: 'ListValue', + values: [ { - kind: 'ObjectField', - name: { kind: 'Name', value: 'hash_eq' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'hash' } - } + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'height' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { + kind: 'Name', + value: '_eq' + }, + value: { + kind: 'Variable', + name: { + kind: 'Name', + value: 'height' + } + } + } + ] + } + } + ] + }, + { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'hash' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { + kind: 'Name', + value: '_eq' + }, + value: { + kind: 'Variable', + name: { + kind: 'Name', + value: 'hash' + } + } + } + ] + } + } + ] } ] } @@ -9515,99 +8392,110 @@ export const GetBlockByIdDocument = { selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'reward' } }, + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'miner' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, { kind: 'Field', - name: { kind: 'Name', value: 'edges' }, + name: { kind: 'Name', value: 'block' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'node' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'errorDocs' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'errorModule' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'errorName' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'errorType' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'extrinsic' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'pallet' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'call' } - } - ] - } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'timestamp' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'block' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'height' } - } - ] - } - } - ] - } - } + name: { kind: 'Name', value: 'height' } + }, + { kind: 'Field', name: { kind: 'Name', value: 'hash' } } ] } - }, - { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } + } ] } + } + ] + } + } + ] +} as unknown as DocumentNode; +export const GetBlockStatsDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetBlockStats' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'startDate' } + }, + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'timestamptz' } + } + } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'endDate' } }, + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'timestamptz' } + } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'wormholeExtrinsics' }, + alias: { kind: 'Name', value: 'chain' }, + name: { kind: 'Name', value: 'chain_stats_by_pk' }, arguments: [ { kind: 'Argument', - name: { kind: 'Name', value: 'orderBy' }, - value: { kind: 'EnumValue', value: 'timestamp_DESC' } - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'limit' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'limit' } + name: { kind: 'Name', value: 'id' }, + value: { kind: 'StringValue', value: 'global', block: false } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'block_height' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'finalized_block_height' } } - }, + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'minedIn24Hours' }, + name: { kind: 'Name', value: 'block_aggregate' }, + arguments: [ { kind: 'Argument', name: { kind: 'Name', value: 'where' }, @@ -9616,42 +8504,24 @@ export const GetBlockByIdDocument = { fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'block' }, + name: { kind: 'Name', value: 'timestamp' }, value: { kind: 'ObjectValue', fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'height_eq' }, + name: { kind: 'Name', value: '_gte' }, value: { kind: 'Variable', - name: { kind: 'Name', value: 'height' } + name: { kind: 'Name', value: 'startDate' } } - } - ] - } - }, - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'OR' }, - value: { - kind: 'ObjectValue', - fields: [ + }, { kind: 'ObjectField', - name: { kind: 'Name', value: 'block' }, + name: { kind: 'Name', value: '_lte' }, value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'hash_eq' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'hash' } - } - } - ] + kind: 'Variable', + name: { kind: 'Name', value: 'endDate' } } } ] @@ -9664,56 +8534,17 @@ export const GetBlockByIdDocument = { selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'extrinsic' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'pallet' } - }, - { kind: 'Field', name: { kind: 'Name', value: 'call' } } - ] - } - }, - { kind: 'Field', name: { kind: 'Name', value: 'totalAmount' } }, - { kind: 'Field', name: { kind: 'Name', value: 'outputCount' } }, - { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'block' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'height' } } - ] - } - }, { kind: 'Field', - name: { kind: 'Name', value: 'outputs' }, + name: { kind: 'Name', value: 'aggregate' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'exitAccount' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' } - } - ] - } - }, - { kind: 'Field', name: { kind: 'Name', value: 'amount' } } + alias: { kind: 'Name', value: 'totalCount' }, + name: { kind: 'Name', value: 'count' } + } ] } } @@ -9724,7 +8555,7 @@ export const GetBlockByIdDocument = { } } ] -} as unknown as DocumentNode; +} as unknown as DocumentNode; export const GetCancelledReversibleTransactionsDocument = { kind: 'Document', definitions: [ @@ -9763,7 +8594,7 @@ export const GetCancelledReversibleTransactionsDocument = { kind: 'NamedType', name: { kind: 'Name', - value: 'CancelledReversibleTransferOrderByInput' + value: 'cancelled_reversible_transfer_order_by' } } } @@ -9779,7 +8610,7 @@ export const GetCancelledReversibleTransactionsDocument = { kind: 'NamedType', name: { kind: 'Name', - value: 'CancelledReversibleTransferWhereInput' + value: 'cancelled_reversible_transfer_bool_exp' } } } @@ -9790,7 +8621,7 @@ export const GetCancelledReversibleTransactionsDocument = { { kind: 'Field', alias: { kind: 'Name', value: 'cancelledReversibleTransactions' }, - name: { kind: 'Name', value: 'cancelledReversibleTransfers' }, + name: { kind: 'Name', value: 'cancelled_reversible_transfer' }, arguments: [ { kind: 'Argument', @@ -9810,7 +8641,7 @@ export const GetCancelledReversibleTransactionsDocument = { }, { kind: 'Argument', - name: { kind: 'Name', value: 'orderBy' }, + name: { kind: 'Name', value: 'order_by' }, value: { kind: 'Variable', name: { kind: 'Name', value: 'orderBy' } @@ -9829,7 +8660,7 @@ export const GetCancelledReversibleTransactionsDocument = { kind: 'SelectionSet', selections: [ { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, - { kind: 'Field', name: { kind: 'Name', value: 'txId' } }, + { kind: 'Field', name: { kind: 'Name', value: 'tx_id' } }, { kind: 'Field', name: { kind: 'Name', value: 'block' }, @@ -9887,9 +8718,9 @@ export const GetCancelledReversibleTransactionsDocument = { }, { kind: 'Field', - name: { kind: 'Name', value: 'scheduledAt' } + name: { kind: 'Name', value: 'scheduled_at' } }, - { kind: 'Field', name: { kind: 'Name', value: 'txId' } }, + { kind: 'Field', name: { kind: 'Name', value: 'tx_id' } }, { kind: 'Field', name: { kind: 'Name', value: 'fee' } }, { kind: 'Field', @@ -9941,14 +8772,9 @@ export const GetCancelledReversibleTransactionsDocument = { alias: { kind: 'Name', value: 'meta' }, name: { kind: 'Name', - value: 'cancelledReversibleTransfersConnection' + value: 'cancelled_reversible_transfer_aggregate' }, arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'orderBy' }, - value: { kind: 'EnumValue', value: 'id_ASC' } - }, { kind: 'Argument', name: { kind: 'Name', value: 'where' }, @@ -9961,7 +8787,20 @@ export const GetCancelledReversibleTransactionsDocument = { selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'totalCount' }, + name: { kind: 'Name', value: 'count' } + } + ] + } + } ] } } @@ -10011,7 +8850,7 @@ export const GetRecentCancelledReversibleTransactionsDocument = { kind: 'NamedType', name: { kind: 'Name', - value: 'CancelledReversibleTransferOrderByInput' + value: 'cancelled_reversible_transfer_order_by' } } } @@ -10024,7 +8863,7 @@ export const GetRecentCancelledReversibleTransactionsDocument = { { kind: 'Field', alias: { kind: 'Name', value: 'cancelledReversibleTransactions' }, - name: { kind: 'Name', value: 'cancelledReversibleTransfers' }, + name: { kind: 'Name', value: 'cancelled_reversible_transfer' }, arguments: [ { kind: 'Argument', @@ -10044,7 +8883,7 @@ export const GetRecentCancelledReversibleTransactionsDocument = { }, { kind: 'Argument', - name: { kind: 'Name', value: 'orderBy' }, + name: { kind: 'Name', value: 'order_by' }, value: { kind: 'Variable', name: { kind: 'Name', value: 'orderBy' } @@ -10055,7 +8894,7 @@ export const GetRecentCancelledReversibleTransactionsDocument = { kind: 'SelectionSet', selections: [ { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, - { kind: 'Field', name: { kind: 'Name', value: 'txId' } }, + { kind: 'Field', name: { kind: 'Name', value: 'tx_id' } }, { kind: 'Field', name: { kind: 'Name', value: 'block' }, @@ -10113,9 +8952,9 @@ export const GetRecentCancelledReversibleTransactionsDocument = { }, { kind: 'Field', - name: { kind: 'Name', value: 'scheduledAt' } + name: { kind: 'Name', value: 'scheduled_at' } }, - { kind: 'Field', name: { kind: 'Name', value: 'txId' } }, + { kind: 'Field', name: { kind: 'Name', value: 'tx_id' } }, { kind: 'Field', name: { kind: 'Name', value: 'fee' } }, { kind: 'Field', @@ -10188,7 +9027,7 @@ export const GetCancelledReversibleTransactionsStatsDocument = { kind: 'NonNullType', type: { kind: 'NamedType', - name: { kind: 'Name', value: 'DateTime' } + name: { kind: 'Name', value: 'timestamptz' } } } }, @@ -10202,7 +9041,7 @@ export const GetCancelledReversibleTransactionsStatsDocument = { kind: 'NonNullType', type: { kind: 'NamedType', - name: { kind: 'Name', value: 'DateTime' } + name: { kind: 'Name', value: 'timestamptz' } } } } @@ -10215,14 +9054,9 @@ export const GetCancelledReversibleTransactionsStatsDocument = { alias: { kind: 'Name', value: 'last24Hour' }, name: { kind: 'Name', - value: 'cancelledReversibleTransfersConnection' + value: 'cancelled_reversible_transfer_aggregate' }, arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'orderBy' }, - value: { kind: 'EnumValue', value: 'id_ASC' } - }, { kind: 'Argument', name: { kind: 'Name', value: 'where' }, @@ -10231,18 +9065,27 @@ export const GetCancelledReversibleTransactionsStatsDocument = { fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'timestamp_gte' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'startDate' } - } - }, - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'timestamp_lte' }, + name: { kind: 'Name', value: 'timestamp' }, value: { - kind: 'Variable', - name: { kind: 'Name', value: 'endDate' } + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_gte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'startDate' } + } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_lte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'endDate' } + } + } + ] } } ] @@ -10252,28 +9095,41 @@ export const GetCancelledReversibleTransactionsStatsDocument = { selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'totalCount' }, + name: { kind: 'Name', value: 'count' } + } + ] + } + } ] } }, { kind: 'Field', alias: { kind: 'Name', value: 'allTime' }, - name: { - kind: 'Name', - value: 'cancelledReversibleTransfersConnection' - }, + name: { kind: 'Name', value: 'chain_stats_by_pk' }, arguments: [ { kind: 'Argument', - name: { kind: 'Name', value: 'orderBy' }, - value: { kind: 'EnumValue', value: 'id_ASC' } + name: { kind: 'Name', value: 'id' }, + value: { kind: 'StringValue', value: 'global', block: false } } ], selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } + { + kind: 'Field', + name: { kind: 'Name', value: 'total_cancelled_transfers' } + } ] } } @@ -10295,7 +9151,10 @@ export const GetCancelledReversibleTransactionByTxIdDocument = { variableDefinitions: [ { kind: 'VariableDefinition', - variable: { kind: 'Variable', name: { kind: 'Name', value: 'txId' } }, + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'tx_id' } + }, type: { kind: 'NonNullType', type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } } @@ -10308,7 +9167,7 @@ export const GetCancelledReversibleTransactionByTxIdDocument = { { kind: 'Field', alias: { kind: 'Name', value: 'cancelledReversibleTransactions' }, - name: { kind: 'Name', value: 'cancelledReversibleTransfers' }, + name: { kind: 'Name', value: 'cancelled_reversible_transfer' }, arguments: [ { kind: 'Argument', @@ -10318,10 +9177,19 @@ export const GetCancelledReversibleTransactionByTxIdDocument = { fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'txId_eq' }, + name: { kind: 'Name', value: 'tx_id' }, value: { - kind: 'Variable', - name: { kind: 'Name', value: 'txId' } + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'tx_id' } + } + } + ] } } ] @@ -10332,7 +9200,7 @@ export const GetCancelledReversibleTransactionByTxIdDocument = { kind: 'SelectionSet', selections: [ { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, - { kind: 'Field', name: { kind: 'Name', value: 'txId' } }, + { kind: 'Field', name: { kind: 'Name', value: 'tx_id' } }, { kind: 'Field', name: { kind: 'Name', value: 'block' }, @@ -10380,7 +9248,7 @@ export const GetCancelledReversibleTransactionByTxIdDocument = { }, { kind: 'Field', - name: { kind: 'Name', value: 'scheduledAt' } + name: { kind: 'Name', value: 'scheduled_at' } }, { kind: 'Field', name: { kind: 'Name', value: 'fee' } }, { @@ -10436,19 +9304,44 @@ export const GetStatusDocument = { { kind: 'Field', alias: { kind: 'Name', value: 'status' }, - name: { kind: 'Name', value: 'squidStatus' }, + name: { kind: 'Name', value: 'chain_stats_by_pk' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'id' }, + value: { kind: 'StringValue', value: 'global', block: false } + } + ], selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'hash' } }, - { kind: 'Field', name: { kind: 'Name', value: 'height' } }, { kind: 'Field', - name: { kind: 'Name', value: 'finalizedHeight' } + name: { kind: 'Name', value: 'block_height' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'total_accounts' } }, { kind: 'Field', - name: { kind: 'Name', value: 'finalizedHash' } + name: { kind: 'Name', value: 'total_deposit_accounts' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'total_executed_transfers' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'total_immediate_transfers' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'total_scheduled_transfers' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'total_cancelled_transfers' } } ] } @@ -10494,7 +9387,7 @@ export const GetErrorEventsDocument = { kind: 'NonNullType', type: { kind: 'NamedType', - name: { kind: 'Name', value: 'ErrorEventOrderByInput' } + name: { kind: 'Name', value: 'error_event_order_by' } } } } @@ -10507,7 +9400,7 @@ export const GetErrorEventsDocument = { }, type: { kind: 'NamedType', - name: { kind: 'Name', value: 'ErrorEventWhereInput' } + name: { kind: 'Name', value: 'error_event_bool_exp' } } } ], @@ -10516,7 +9409,8 @@ export const GetErrorEventsDocument = { selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'errorEvents' }, + alias: { kind: 'Name', value: 'errorEvents' }, + name: { kind: 'Name', value: 'error_event' }, arguments: [ { kind: 'Argument', @@ -10536,7 +9430,7 @@ export const GetErrorEventsDocument = { }, { kind: 'Argument', - name: { kind: 'Name', value: 'orderBy' }, + name: { kind: 'Name', value: 'order_by' }, value: { kind: 'Variable', name: { kind: 'Name', value: 'orderBy' } @@ -10554,10 +9448,13 @@ export const GetErrorEventsDocument = { selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'errorDocs' } }, - { kind: 'Field', name: { kind: 'Name', value: 'errorModule' } }, - { kind: 'Field', name: { kind: 'Name', value: 'errorName' } }, - { kind: 'Field', name: { kind: 'Name', value: 'errorType' } }, + { kind: 'Field', name: { kind: 'Name', value: 'error_docs' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'error_module' } + }, + { kind: 'Field', name: { kind: 'Name', value: 'error_name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'error_type' } }, { kind: 'Field', name: { kind: 'Name', value: 'extrinsic' }, @@ -10591,13 +9488,8 @@ export const GetErrorEventsDocument = { { kind: 'Field', alias: { kind: 'Name', value: 'meta' }, - name: { kind: 'Name', value: 'errorEventsConnection' }, + name: { kind: 'Name', value: 'error_event_aggregate' }, arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'orderBy' }, - value: { kind: 'EnumValue', value: 'id_ASC' } - }, { kind: 'Argument', name: { kind: 'Name', value: 'where' }, @@ -10610,7 +9502,20 @@ export const GetErrorEventsDocument = { selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'totalCount' }, + name: { kind: 'Name', value: 'count' } + } + ] + } + } ] } } @@ -10655,7 +9560,7 @@ export const GetRecentErrorEventsDocument = { kind: 'NonNullType', type: { kind: 'NamedType', - name: { kind: 'Name', value: 'ErrorEventOrderByInput' } + name: { kind: 'Name', value: 'error_event_order_by' } } } } @@ -10668,7 +9573,7 @@ export const GetRecentErrorEventsDocument = { }, type: { kind: 'NamedType', - name: { kind: 'Name', value: 'ErrorEventWhereInput' } + name: { kind: 'Name', value: 'error_event_bool_exp' } } } ], @@ -10677,7 +9582,8 @@ export const GetRecentErrorEventsDocument = { selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'errorEvents' }, + alias: { kind: 'Name', value: 'errorEvents' }, + name: { kind: 'Name', value: 'error_event' }, arguments: [ { kind: 'Argument', @@ -10697,7 +9603,7 @@ export const GetRecentErrorEventsDocument = { }, { kind: 'Argument', - name: { kind: 'Name', value: 'orderBy' }, + name: { kind: 'Name', value: 'order_by' }, value: { kind: 'Variable', name: { kind: 'Name', value: 'orderBy' } @@ -10715,10 +9621,13 @@ export const GetRecentErrorEventsDocument = { selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'errorDocs' } }, - { kind: 'Field', name: { kind: 'Name', value: 'errorModule' } }, - { kind: 'Field', name: { kind: 'Name', value: 'errorName' } }, - { kind: 'Field', name: { kind: 'Name', value: 'errorType' } }, + { kind: 'Field', name: { kind: 'Name', value: 'error_docs' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'error_module' } + }, + { kind: 'Field', name: { kind: 'Name', value: 'error_name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'error_type' } }, { kind: 'Field', name: { kind: 'Name', value: 'extrinsic' }, @@ -10775,7 +9684,7 @@ export const GetErrorEventsStatsDocument = { kind: 'NonNullType', type: { kind: 'NamedType', - name: { kind: 'Name', value: 'DateTime' } + name: { kind: 'Name', value: 'timestamptz' } } } }, @@ -10789,7 +9698,7 @@ export const GetErrorEventsStatsDocument = { kind: 'NonNullType', type: { kind: 'NamedType', - name: { kind: 'Name', value: 'DateTime' } + name: { kind: 'Name', value: 'timestamptz' } } } } @@ -10800,13 +9709,8 @@ export const GetErrorEventsStatsDocument = { { kind: 'Field', alias: { kind: 'Name', value: 'last24Hour' }, - name: { kind: 'Name', value: 'errorEventsConnection' }, + name: { kind: 'Name', value: 'error_event_aggregate' }, arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'orderBy' }, - value: { kind: 'EnumValue', value: 'id_ASC' } - }, { kind: 'Argument', name: { kind: 'Name', value: 'where' }, @@ -10815,18 +9719,27 @@ export const GetErrorEventsStatsDocument = { fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'timestamp_gte' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'startDate' } - } - }, - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'timestamp_lte' }, + name: { kind: 'Name', value: 'timestamp' }, value: { - kind: 'Variable', - name: { kind: 'Name', value: 'endDate' } + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_gte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'startDate' } + } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_lte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'endDate' } + } + } + ] } } ] @@ -10836,25 +9749,41 @@ export const GetErrorEventsStatsDocument = { selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'totalCount' }, + name: { kind: 'Name', value: 'count' } + } + ] + } + } ] } }, { kind: 'Field', alias: { kind: 'Name', value: 'allTime' }, - name: { kind: 'Name', value: 'errorEventsConnection' }, + name: { kind: 'Name', value: 'chain_stats_by_pk' }, arguments: [ { kind: 'Argument', - name: { kind: 'Name', value: 'orderBy' }, - value: { kind: 'EnumValue', value: 'id_ASC' } + name: { kind: 'Name', value: 'id' }, + value: { kind: 'StringValue', value: 'global', block: false } } ], selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } + { + kind: 'Field', + name: { kind: 'Name', value: 'total_error_events' } + } ] } } @@ -10889,7 +9818,7 @@ export const GetErrorEventByHashDocument = { { kind: 'Field', alias: { kind: 'Name', value: 'errorEvents' }, - name: { kind: 'Name', value: 'errorEvents' }, + name: { kind: 'Name', value: 'error_event' }, arguments: [ { kind: 'Argument', @@ -10905,10 +9834,19 @@ export const GetErrorEventByHashDocument = { fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'id_eq' }, + name: { kind: 'Name', value: 'id' }, value: { - kind: 'Variable', - name: { kind: 'Name', value: 'hash' } + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'hash' } + } + } + ] } } ] @@ -10921,10 +9859,13 @@ export const GetErrorEventByHashDocument = { selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'errorDocs' } }, - { kind: 'Field', name: { kind: 'Name', value: 'errorModule' } }, - { kind: 'Field', name: { kind: 'Name', value: 'errorName' } }, - { kind: 'Field', name: { kind: 'Name', value: 'errorType' } }, + { kind: 'Field', name: { kind: 'Name', value: 'error_docs' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'error_module' } + }, + { kind: 'Field', name: { kind: 'Name', value: 'error_name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'error_type' } }, { kind: 'Field', name: { kind: 'Name', value: 'extrinsic' }, @@ -11001,7 +9942,7 @@ export const GetExecutedReversibleTransactionsDocument = { kind: 'NamedType', name: { kind: 'Name', - value: 'ExecutedReversibleTransferOrderByInput' + value: 'executed_reversible_transfer_order_by' } } } @@ -11017,7 +9958,7 @@ export const GetExecutedReversibleTransactionsDocument = { kind: 'NamedType', name: { kind: 'Name', - value: 'ExecutedReversibleTransferWhereInput' + value: 'executed_reversible_transfer_bool_exp' } } } @@ -11028,7 +9969,7 @@ export const GetExecutedReversibleTransactionsDocument = { { kind: 'Field', alias: { kind: 'Name', value: 'executedReversibleTransactions' }, - name: { kind: 'Name', value: 'executedReversibleTransfers' }, + name: { kind: 'Name', value: 'executed_reversible_transfer' }, arguments: [ { kind: 'Argument', @@ -11048,7 +9989,7 @@ export const GetExecutedReversibleTransactionsDocument = { }, { kind: 'Argument', - name: { kind: 'Name', value: 'orderBy' }, + name: { kind: 'Name', value: 'order_by' }, value: { kind: 'Variable', name: { kind: 'Name', value: 'orderBy' } @@ -11067,7 +10008,7 @@ export const GetExecutedReversibleTransactionsDocument = { kind: 'SelectionSet', selections: [ { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, - { kind: 'Field', name: { kind: 'Name', value: 'txId' } }, + { kind: 'Field', name: { kind: 'Name', value: 'tx_id' } }, { kind: 'Field', name: { kind: 'Name', value: 'block' }, @@ -11115,9 +10056,9 @@ export const GetExecutedReversibleTransactionsDocument = { }, { kind: 'Field', - name: { kind: 'Name', value: 'scheduledAt' } + name: { kind: 'Name', value: 'scheduled_at' } }, - { kind: 'Field', name: { kind: 'Name', value: 'txId' } }, + { kind: 'Field', name: { kind: 'Name', value: 'tx_id' } }, { kind: 'Field', name: { kind: 'Name', value: 'fee' } }, { kind: 'Field', @@ -11169,14 +10110,9 @@ export const GetExecutedReversibleTransactionsDocument = { alias: { kind: 'Name', value: 'meta' }, name: { kind: 'Name', - value: 'executedReversibleTransfersConnection' + value: 'executed_reversible_transfer_aggregate' }, arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'orderBy' }, - value: { kind: 'EnumValue', value: 'id_ASC' } - }, { kind: 'Argument', name: { kind: 'Name', value: 'where' }, @@ -11189,7 +10125,20 @@ export const GetExecutedReversibleTransactionsDocument = { selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'totalCount' }, + name: { kind: 'Name', value: 'count' } + } + ] + } + } ] } } @@ -11239,7 +10188,7 @@ export const GetRecentExecutedReversibleTransactionsDocument = { kind: 'NamedType', name: { kind: 'Name', - value: 'ExecutedReversibleTransferOrderByInput' + value: 'executed_reversible_transfer_order_by' } } } @@ -11252,7 +10201,7 @@ export const GetRecentExecutedReversibleTransactionsDocument = { { kind: 'Field', alias: { kind: 'Name', value: 'executedReversibleTransactions' }, - name: { kind: 'Name', value: 'executedReversibleTransfers' }, + name: { kind: 'Name', value: 'executed_reversible_transfer' }, arguments: [ { kind: 'Argument', @@ -11272,7 +10221,7 @@ export const GetRecentExecutedReversibleTransactionsDocument = { }, { kind: 'Argument', - name: { kind: 'Name', value: 'orderBy' }, + name: { kind: 'Name', value: 'order_by' }, value: { kind: 'Variable', name: { kind: 'Name', value: 'orderBy' } @@ -11283,7 +10232,7 @@ export const GetRecentExecutedReversibleTransactionsDocument = { kind: 'SelectionSet', selections: [ { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, - { kind: 'Field', name: { kind: 'Name', value: 'txId' } }, + { kind: 'Field', name: { kind: 'Name', value: 'tx_id' } }, { kind: 'Field', name: { kind: 'Name', value: 'block' }, @@ -11331,9 +10280,9 @@ export const GetRecentExecutedReversibleTransactionsDocument = { }, { kind: 'Field', - name: { kind: 'Name', value: 'scheduledAt' } + name: { kind: 'Name', value: 'scheduled_at' } }, - { kind: 'Field', name: { kind: 'Name', value: 'txId' } }, + { kind: 'Field', name: { kind: 'Name', value: 'tx_id' } }, { kind: 'Field', name: { kind: 'Name', value: 'fee' } }, { kind: 'Field', @@ -11406,7 +10355,7 @@ export const GetExecutedReversibleTransactionsStatsDocument = { kind: 'NonNullType', type: { kind: 'NamedType', - name: { kind: 'Name', value: 'DateTime' } + name: { kind: 'Name', value: 'timestamptz' } } } }, @@ -11420,7 +10369,7 @@ export const GetExecutedReversibleTransactionsStatsDocument = { kind: 'NonNullType', type: { kind: 'NamedType', - name: { kind: 'Name', value: 'DateTime' } + name: { kind: 'Name', value: 'timestamptz' } } } } @@ -11433,14 +10382,9 @@ export const GetExecutedReversibleTransactionsStatsDocument = { alias: { kind: 'Name', value: 'last24Hour' }, name: { kind: 'Name', - value: 'executedReversibleTransfersConnection' + value: 'executed_reversible_transfer_aggregate' }, arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'orderBy' }, - value: { kind: 'EnumValue', value: 'id_ASC' } - }, { kind: 'Argument', name: { kind: 'Name', value: 'where' }, @@ -11449,18 +10393,27 @@ export const GetExecutedReversibleTransactionsStatsDocument = { fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'timestamp_gte' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'startDate' } - } - }, - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'timestamp_lte' }, + name: { kind: 'Name', value: 'timestamp' }, value: { - kind: 'Variable', - name: { kind: 'Name', value: 'endDate' } + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_gte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'startDate' } + } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_lte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'endDate' } + } + } + ] } } ] @@ -11470,28 +10423,41 @@ export const GetExecutedReversibleTransactionsStatsDocument = { selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'totalCount' }, + name: { kind: 'Name', value: 'count' } + } + ] + } + } ] } }, { kind: 'Field', alias: { kind: 'Name', value: 'allTime' }, - name: { - kind: 'Name', - value: 'executedReversibleTransfersConnection' - }, + name: { kind: 'Name', value: 'chain_stats_by_pk' }, arguments: [ { kind: 'Argument', - name: { kind: 'Name', value: 'orderBy' }, - value: { kind: 'EnumValue', value: 'id_ASC' } + name: { kind: 'Name', value: 'id' }, + value: { kind: 'StringValue', value: 'global', block: false } } ], selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } + { + kind: 'Field', + name: { kind: 'Name', value: 'total_executed_transfers' } + } ] } } @@ -11513,7 +10479,10 @@ export const GetExecutedReversibleTransactionByTxIdDocument = { variableDefinitions: [ { kind: 'VariableDefinition', - variable: { kind: 'Variable', name: { kind: 'Name', value: 'txId' } }, + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'tx_id' } + }, type: { kind: 'NonNullType', type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } } @@ -11526,7 +10495,7 @@ export const GetExecutedReversibleTransactionByTxIdDocument = { { kind: 'Field', alias: { kind: 'Name', value: 'executedReversibleTransactions' }, - name: { kind: 'Name', value: 'executedReversibleTransfers' }, + name: { kind: 'Name', value: 'executed_reversible_transfer' }, arguments: [ { kind: 'Argument', @@ -11536,10 +10505,19 @@ export const GetExecutedReversibleTransactionByTxIdDocument = { fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'txId_eq' }, + name: { kind: 'Name', value: 'tx_id' }, value: { - kind: 'Variable', - name: { kind: 'Name', value: 'txId' } + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'tx_id' } + } + } + ] } } ] @@ -11550,7 +10528,7 @@ export const GetExecutedReversibleTransactionByTxIdDocument = { kind: 'SelectionSet', selections: [ { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, - { kind: 'Field', name: { kind: 'Name', value: 'txId' } }, + { kind: 'Field', name: { kind: 'Name', value: 'tx_id' } }, { kind: 'Field', name: { kind: 'Name', value: 'block' }, @@ -11573,7 +10551,7 @@ export const GetExecutedReversibleTransactionByTxIdDocument = { }, { kind: 'Field', - name: { kind: 'Name', value: 'scheduledAt' } + name: { kind: 'Name', value: 'scheduled_at' } }, { kind: 'Field', name: { kind: 'Name', value: 'fee' } }, { @@ -11652,7 +10630,7 @@ export const GetHighSecuritySetsDocument = { kind: 'NonNullType', type: { kind: 'NamedType', - name: { kind: 'Name', value: 'HighSecuritySetOrderByInput' } + name: { kind: 'Name', value: 'high_security_set_order_by' } } } } @@ -11665,7 +10643,7 @@ export const GetHighSecuritySetsDocument = { }, type: { kind: 'NamedType', - name: { kind: 'Name', value: 'HighSecuritySetWhereInput' } + name: { kind: 'Name', value: 'high_security_set_bool_exp' } } } ], @@ -11674,7 +10652,8 @@ export const GetHighSecuritySetsDocument = { selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'highSecuritySets' }, + alias: { kind: 'Name', value: 'highSecuritySets' }, + name: { kind: 'Name', value: 'high_security_set' }, arguments: [ { kind: 'Argument', @@ -11694,7 +10673,7 @@ export const GetHighSecuritySetsDocument = { }, { kind: 'Argument', - name: { kind: 'Name', value: 'orderBy' }, + name: { kind: 'Name', value: 'order_by' }, value: { kind: 'Variable', name: { kind: 'Name', value: 'orderBy' } @@ -11766,13 +10745,8 @@ export const GetHighSecuritySetsDocument = { { kind: 'Field', alias: { kind: 'Name', value: 'meta' }, - name: { kind: 'Name', value: 'highSecuritySetsConnection' }, + name: { kind: 'Name', value: 'high_security_set_aggregate' }, arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'orderBy' }, - value: { kind: 'EnumValue', value: 'id_ASC' } - }, { kind: 'Argument', name: { kind: 'Name', value: 'where' }, @@ -11785,7 +10759,20 @@ export const GetHighSecuritySetsDocument = { selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'totalCount' }, + name: { kind: 'Name', value: 'count' } + } + ] + } + } ] } } @@ -11833,7 +10820,7 @@ export const GetRecentHighSecuritySetsDocument = { kind: 'NonNullType', type: { kind: 'NamedType', - name: { kind: 'Name', value: 'HighSecuritySetOrderByInput' } + name: { kind: 'Name', value: 'high_security_set_order_by' } } } } @@ -11846,7 +10833,7 @@ export const GetRecentHighSecuritySetsDocument = { }, type: { kind: 'NamedType', - name: { kind: 'Name', value: 'HighSecuritySetWhereInput' } + name: { kind: 'Name', value: 'high_security_set_bool_exp' } } } ], @@ -11855,7 +10842,8 @@ export const GetRecentHighSecuritySetsDocument = { selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'highSecuritySets' }, + alias: { kind: 'Name', value: 'highSecuritySets' }, + name: { kind: 'Name', value: 'high_security_set' }, arguments: [ { kind: 'Argument', @@ -11875,7 +10863,7 @@ export const GetRecentHighSecuritySetsDocument = { }, { kind: 'Argument', - name: { kind: 'Name', value: 'orderBy' }, + name: { kind: 'Name', value: 'order_by' }, value: { kind: 'Variable', name: { kind: 'Name', value: 'orderBy' } @@ -11970,7 +10958,7 @@ export const GetHighSecuritySetsStatsDocument = { kind: 'NonNullType', type: { kind: 'NamedType', - name: { kind: 'Name', value: 'DateTime' } + name: { kind: 'Name', value: 'timestamptz' } } } }, @@ -11984,7 +10972,7 @@ export const GetHighSecuritySetsStatsDocument = { kind: 'NonNullType', type: { kind: 'NamedType', - name: { kind: 'Name', value: 'DateTime' } + name: { kind: 'Name', value: 'timestamptz' } } } } @@ -11995,13 +10983,8 @@ export const GetHighSecuritySetsStatsDocument = { { kind: 'Field', alias: { kind: 'Name', value: 'last24Hour' }, - name: { kind: 'Name', value: 'highSecuritySetsConnection' }, + name: { kind: 'Name', value: 'high_security_set_aggregate' }, arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'orderBy' }, - value: { kind: 'EnumValue', value: 'id_ASC' } - }, { kind: 'Argument', name: { kind: 'Name', value: 'where' }, @@ -12010,18 +10993,27 @@ export const GetHighSecuritySetsStatsDocument = { fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'timestamp_gte' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'startDate' } - } - }, - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'timestamp_lte' }, + name: { kind: 'Name', value: 'timestamp' }, value: { - kind: 'Variable', - name: { kind: 'Name', value: 'endDate' } + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_gte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'startDate' } + } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_lte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'endDate' } + } + } + ] } } ] @@ -12031,25 +11023,41 @@ export const GetHighSecuritySetsStatsDocument = { selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'totalCount' }, + name: { kind: 'Name', value: 'count' } + } + ] + } + } ] } }, { kind: 'Field', alias: { kind: 'Name', value: 'allTime' }, - name: { kind: 'Name', value: 'highSecuritySetsConnection' }, + name: { kind: 'Name', value: 'chain_stats_by_pk' }, arguments: [ { kind: 'Argument', - name: { kind: 'Name', value: 'orderBy' }, - value: { kind: 'EnumValue', value: 'id_ASC' } + name: { kind: 'Name', value: 'id' }, + value: { kind: 'StringValue', value: 'global', block: false } } ], selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } + { + kind: 'Field', + name: { kind: 'Name', value: 'total_high_security_sets' } + } ] } } @@ -12083,7 +11091,8 @@ export const GetHighSecuritySetByHashDocument = { selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'highSecuritySets' }, + alias: { kind: 'Name', value: 'highSecuritySets' }, + name: { kind: 'Name', value: 'high_security_set' }, arguments: [ { kind: 'Argument', @@ -12099,10 +11108,19 @@ export const GetHighSecuritySetByHashDocument = { fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'id_eq' }, + name: { kind: 'Name', value: 'id' }, value: { - kind: 'Variable', - name: { kind: 'Name', value: 'hash' } + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'hash' } + } + } + ] } } ] @@ -12205,7 +11223,7 @@ export const GetMinerLeaderboardDocument = { { kind: 'Field', alias: { kind: 'Name', value: 'leaderboardEntries' }, - name: { kind: 'Name', value: 'minerStats' }, + name: { kind: 'Name', value: 'account_stats' }, arguments: [ { kind: 'Argument', @@ -12225,8 +11243,17 @@ export const GetMinerLeaderboardDocument = { }, { kind: 'Argument', - name: { kind: 'Name', value: 'orderBy' }, - value: { kind: 'EnumValue', value: 'totalMinedBlocks_DESC' } + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'total_rewards' }, + value: { kind: 'EnumValue', value: 'desc' } + } + ] + } } ], selectionSet: { @@ -12235,27 +11262,34 @@ export const GetMinerLeaderboardDocument = { { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'totalMinedBlocks' } + name: { kind: 'Name', value: 'total_mined_blocks' } }, - { kind: 'Field', name: { kind: 'Name', value: 'totalRewards' } } + { + kind: 'Field', + name: { kind: 'Name', value: 'total_rewards' } + } ] } }, { kind: 'Field', alias: { kind: 'Name', value: 'meta' }, - name: { kind: 'Name', value: 'minerStatsConnection' }, + name: { kind: 'Name', value: 'chain_stats_by_pk' }, arguments: [ { kind: 'Argument', - name: { kind: 'Name', value: 'orderBy' }, - value: { kind: 'EnumValue', value: 'id_ASC' } + name: { kind: 'Name', value: 'id' }, + value: { kind: 'StringValue', value: 'global', block: false } } ], selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } + { + kind: 'Field', + alias: { kind: 'Name', value: 'totalCount' }, + name: { kind: 'Name', value: 'total_miner_rewards' } + } ] } } @@ -12303,7 +11337,7 @@ export const GetMinerRewardsDocument = { kind: 'NonNullType', type: { kind: 'NamedType', - name: { kind: 'Name', value: 'MinerRewardOrderByInput' } + name: { kind: 'Name', value: 'miner_reward_order_by' } } } } @@ -12316,7 +11350,7 @@ export const GetMinerRewardsDocument = { }, type: { kind: 'NamedType', - name: { kind: 'Name', value: 'MinerRewardWhereInput' } + name: { kind: 'Name', value: 'miner_reward_bool_exp' } } } ], @@ -12325,7 +11359,8 @@ export const GetMinerRewardsDocument = { selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'minerRewards' }, + alias: { kind: 'Name', value: 'minerRewards' }, + name: { kind: 'Name', value: 'miner_reward' }, arguments: [ { kind: 'Argument', @@ -12345,7 +11380,7 @@ export const GetMinerRewardsDocument = { }, { kind: 'Argument', - name: { kind: 'Name', value: 'orderBy' }, + name: { kind: 'Name', value: 'order_by' }, value: { kind: 'Variable', name: { kind: 'Name', value: 'orderBy' } @@ -12395,13 +11430,8 @@ export const GetMinerRewardsDocument = { { kind: 'Field', alias: { kind: 'Name', value: 'meta' }, - name: { kind: 'Name', value: 'minerRewardsConnection' }, + name: { kind: 'Name', value: 'miner_reward_aggregate' }, arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'orderBy' }, - value: { kind: 'EnumValue', value: 'id_ASC' } - }, { kind: 'Argument', name: { kind: 'Name', value: 'where' }, @@ -12414,7 +11444,20 @@ export const GetMinerRewardsDocument = { selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'totalCount' }, + name: { kind: 'Name', value: 'count' } + } + ] + } + } ] } } @@ -12462,7 +11505,7 @@ export const GetRecentMinerRewardsDocument = { kind: 'NonNullType', type: { kind: 'NamedType', - name: { kind: 'Name', value: 'MinerRewardOrderByInput' } + name: { kind: 'Name', value: 'miner_reward_order_by' } } } } @@ -12475,7 +11518,7 @@ export const GetRecentMinerRewardsDocument = { }, type: { kind: 'NamedType', - name: { kind: 'Name', value: 'MinerRewardWhereInput' } + name: { kind: 'Name', value: 'miner_reward_bool_exp' } } } ], @@ -12484,7 +11527,8 @@ export const GetRecentMinerRewardsDocument = { selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'minerRewards' }, + alias: { kind: 'Name', value: 'minerRewards' }, + name: { kind: 'Name', value: 'miner_reward' }, arguments: [ { kind: 'Argument', @@ -12504,7 +11548,7 @@ export const GetRecentMinerRewardsDocument = { }, { kind: 'Argument', - name: { kind: 'Name', value: 'orderBy' }, + name: { kind: 'Name', value: 'order_by' }, value: { kind: 'Variable', name: { kind: 'Name', value: 'orderBy' } @@ -12577,7 +11621,7 @@ export const GetMinerRewardsStatsDocument = { kind: 'NonNullType', type: { kind: 'NamedType', - name: { kind: 'Name', value: 'DateTime' } + name: { kind: 'Name', value: 'timestamptz' } } } }, @@ -12591,7 +11635,7 @@ export const GetMinerRewardsStatsDocument = { kind: 'NonNullType', type: { kind: 'NamedType', - name: { kind: 'Name', value: 'DateTime' } + name: { kind: 'Name', value: 'timestamptz' } } } } @@ -12602,13 +11646,8 @@ export const GetMinerRewardsStatsDocument = { { kind: 'Field', alias: { kind: 'Name', value: 'last24Hour' }, - name: { kind: 'Name', value: 'minerRewardsConnection' }, + name: { kind: 'Name', value: 'miner_reward_aggregate' }, arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'orderBy' }, - value: { kind: 'EnumValue', value: 'id_ASC' } - }, { kind: 'Argument', name: { kind: 'Name', value: 'where' }, @@ -12617,18 +11656,27 @@ export const GetMinerRewardsStatsDocument = { fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'timestamp_gte' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'startDate' } - } - }, - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'timestamp_lte' }, + name: { kind: 'Name', value: 'timestamp' }, value: { - kind: 'Variable', - name: { kind: 'Name', value: 'endDate' } + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_gte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'startDate' } + } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_lte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'endDate' } + } + } + ] } } ] @@ -12638,25 +11686,41 @@ export const GetMinerRewardsStatsDocument = { selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'totalCount' }, + name: { kind: 'Name', value: 'count' } + } + ] + } + } ] } }, { kind: 'Field', alias: { kind: 'Name', value: 'allTime' }, - name: { kind: 'Name', value: 'minerRewardsConnection' }, + name: { kind: 'Name', value: 'chain_stats_by_pk' }, arguments: [ { kind: 'Argument', - name: { kind: 'Name', value: 'orderBy' }, - value: { kind: 'EnumValue', value: 'id_ASC' } + name: { kind: 'Name', value: 'id' }, + value: { kind: 'StringValue', value: 'global', block: false } } ], selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } + { + kind: 'Field', + name: { kind: 'Name', value: 'total_miner_rewards' } + } ] } } @@ -12690,7 +11754,8 @@ export const GetMinerRewardByHashDocument = { selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'minerRewards' }, + alias: { kind: 'Name', value: 'minerRewards' }, + name: { kind: 'Name', value: 'miner_reward' }, arguments: [ { kind: 'Argument', @@ -12706,10 +11771,19 @@ export const GetMinerRewardByHashDocument = { fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'hash_eq' }, + name: { kind: 'Name', value: 'hash' }, value: { - kind: 'Variable', - name: { kind: 'Name', value: 'hash' } + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'hash' } + } + } + ] } } ] @@ -12797,7 +11871,7 @@ export const GetScheduledReversibleTransactionsDocument = { kind: 'NamedType', name: { kind: 'Name', - value: 'ScheduledReversibleTransferOrderByInput' + value: 'scheduled_reversible_transfer_order_by' } } } @@ -12813,7 +11887,7 @@ export const GetScheduledReversibleTransactionsDocument = { kind: 'NamedType', name: { kind: 'Name', - value: 'ScheduledReversibleTransferWhereInput' + value: 'scheduled_reversible_transfer_bool_exp' } } } @@ -12824,7 +11898,7 @@ export const GetScheduledReversibleTransactionsDocument = { { kind: 'Field', alias: { kind: 'Name', value: 'scheduledReversibleTransactions' }, - name: { kind: 'Name', value: 'scheduledReversibleTransfers' }, + name: { kind: 'Name', value: 'scheduled_reversible_transfer' }, arguments: [ { kind: 'Argument', @@ -12844,7 +11918,7 @@ export const GetScheduledReversibleTransactionsDocument = { }, { kind: 'Argument', - name: { kind: 'Name', value: 'orderBy' }, + name: { kind: 'Name', value: 'order_by' }, value: { kind: 'Variable', name: { kind: 'Name', value: 'orderBy' } @@ -12879,8 +11953,11 @@ export const GetScheduledReversibleTransactionsDocument = { }, { kind: 'Field', name: { kind: 'Name', value: 'amount' } }, { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, - { kind: 'Field', name: { kind: 'Name', value: 'scheduledAt' } }, - { kind: 'Field', name: { kind: 'Name', value: 'txId' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'scheduled_at' } + }, + { kind: 'Field', name: { kind: 'Name', value: 'tx_id' } }, { kind: 'Field', name: { kind: 'Name', value: 'fee' } }, { kind: 'Field', @@ -12920,14 +11997,9 @@ export const GetScheduledReversibleTransactionsDocument = { alias: { kind: 'Name', value: 'meta' }, name: { kind: 'Name', - value: 'scheduledReversibleTransfersConnection' + value: 'scheduled_reversible_transfer_aggregate' }, arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'orderBy' }, - value: { kind: 'EnumValue', value: 'id_ASC' } - }, { kind: 'Argument', name: { kind: 'Name', value: 'where' }, @@ -12940,7 +12012,20 @@ export const GetScheduledReversibleTransactionsDocument = { selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'totalCount' }, + name: { kind: 'Name', value: 'count' } + } + ] + } + } ] } } @@ -12990,7 +12075,7 @@ export const GetRecentScheduledReversibleTransactionsDocument = { kind: 'NamedType', name: { kind: 'Name', - value: 'ScheduledReversibleTransferOrderByInput' + value: 'scheduled_reversible_transfer_order_by' } } } @@ -13003,7 +12088,7 @@ export const GetRecentScheduledReversibleTransactionsDocument = { { kind: 'Field', alias: { kind: 'Name', value: 'scheduledReversibleTransactions' }, - name: { kind: 'Name', value: 'scheduledReversibleTransfers' }, + name: { kind: 'Name', value: 'scheduled_reversible_transfer' }, arguments: [ { kind: 'Argument', @@ -13023,7 +12108,7 @@ export const GetRecentScheduledReversibleTransactionsDocument = { }, { kind: 'Argument', - name: { kind: 'Name', value: 'orderBy' }, + name: { kind: 'Name', value: 'order_by' }, value: { kind: 'Variable', name: { kind: 'Name', value: 'orderBy' } @@ -13050,8 +12135,11 @@ export const GetRecentScheduledReversibleTransactionsDocument = { }, { kind: 'Field', name: { kind: 'Name', value: 'amount' } }, { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, - { kind: 'Field', name: { kind: 'Name', value: 'scheduledAt' } }, - { kind: 'Field', name: { kind: 'Name', value: 'txId' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'scheduled_at' } + }, + { kind: 'Field', name: { kind: 'Name', value: 'tx_id' } }, { kind: 'Field', name: { kind: 'Name', value: 'fee' } }, { kind: 'Field', @@ -13112,7 +12200,7 @@ export const GetScheduledReversibleTransactionsStatsDocument = { kind: 'NonNullType', type: { kind: 'NamedType', - name: { kind: 'Name', value: 'DateTime' } + name: { kind: 'Name', value: 'timestamptz' } } } }, @@ -13126,7 +12214,7 @@ export const GetScheduledReversibleTransactionsStatsDocument = { kind: 'NonNullType', type: { kind: 'NamedType', - name: { kind: 'Name', value: 'DateTime' } + name: { kind: 'Name', value: 'timestamptz' } } } } @@ -13139,14 +12227,9 @@ export const GetScheduledReversibleTransactionsStatsDocument = { alias: { kind: 'Name', value: 'last24Hour' }, name: { kind: 'Name', - value: 'scheduledReversibleTransfersConnection' + value: 'scheduled_reversible_transfer_aggregate' }, arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'orderBy' }, - value: { kind: 'EnumValue', value: 'id_ASC' } - }, { kind: 'Argument', name: { kind: 'Name', value: 'where' }, @@ -13155,18 +12238,27 @@ export const GetScheduledReversibleTransactionsStatsDocument = { fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'timestamp_gte' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'startDate' } - } - }, - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'timestamp_lte' }, + name: { kind: 'Name', value: 'timestamp' }, value: { - kind: 'Variable', - name: { kind: 'Name', value: 'endDate' } + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_gte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'startDate' } + } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_lte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'endDate' } + } + } + ] } } ] @@ -13176,28 +12268,41 @@ export const GetScheduledReversibleTransactionsStatsDocument = { selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'totalCount' }, + name: { kind: 'Name', value: 'count' } + } + ] + } + } ] } }, { kind: 'Field', alias: { kind: 'Name', value: 'allTime' }, - name: { - kind: 'Name', - value: 'scheduledReversibleTransfersConnection' - }, + name: { kind: 'Name', value: 'chain_stats_by_pk' }, arguments: [ { kind: 'Argument', - name: { kind: 'Name', value: 'orderBy' }, - value: { kind: 'EnumValue', value: 'id_ASC' } + name: { kind: 'Name', value: 'id' }, + value: { kind: 'StringValue', value: 'global', block: false } } ], selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } + { + kind: 'Field', + name: { kind: 'Name', value: 'total_scheduled_transfers' } + } ] } } @@ -13219,7 +12324,10 @@ export const GetScheduledReversibleTransactionByTxIdDocument = { variableDefinitions: [ { kind: 'VariableDefinition', - variable: { kind: 'Variable', name: { kind: 'Name', value: 'txId' } }, + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'tx_id' } + }, type: { kind: 'NonNullType', type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } } @@ -13232,7 +12340,7 @@ export const GetScheduledReversibleTransactionByTxIdDocument = { { kind: 'Field', alias: { kind: 'Name', value: 'scheduledReversibleTransactions' }, - name: { kind: 'Name', value: 'scheduledReversibleTransfers' }, + name: { kind: 'Name', value: 'scheduled_reversible_transfer' }, arguments: [ { kind: 'Argument', @@ -13242,10 +12350,19 @@ export const GetScheduledReversibleTransactionByTxIdDocument = { fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'txId_eq' }, + name: { kind: 'Name', value: 'tx_id' }, value: { - kind: 'Variable', - name: { kind: 'Name', value: 'txId' } + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'tx_id' } + } + } + ] } } ] @@ -13272,8 +12389,11 @@ export const GetScheduledReversibleTransactionByTxIdDocument = { }, { kind: 'Field', name: { kind: 'Name', value: 'amount' } }, { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, - { kind: 'Field', name: { kind: 'Name', value: 'scheduledAt' } }, - { kind: 'Field', name: { kind: 'Name', value: 'txId' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'scheduled_at' } + }, + { kind: 'Field', name: { kind: 'Name', value: 'tx_id' } }, { kind: 'Field', name: { kind: 'Name', value: 'fee' } }, { kind: 'Field', @@ -13355,7 +12475,7 @@ export const SearchAllDocument = { { kind: 'Field', alias: { kind: 'Name', value: 'transactions' }, - name: { kind: 'Name', value: 'transfers' }, + name: { kind: 'Name', value: 'transfer' }, arguments: [ { kind: 'Argument', @@ -13379,10 +12499,19 @@ export const SearchAllDocument = { fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'id_startsWith' }, + name: { kind: 'Name', value: 'id' }, value: { - kind: 'Variable', - name: { kind: 'Name', value: 'keyword' } + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_ilike' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'keyword' } + } + } + ] } } ] @@ -13416,7 +12545,7 @@ export const SearchAllDocument = { { kind: 'Field', alias: { kind: 'Name', value: 'scheduledReversibleTransactions' }, - name: { kind: 'Name', value: 'scheduledReversibleTransfers' }, + name: { kind: 'Name', value: 'scheduled_reversible_transfer' }, arguments: [ { kind: 'Argument', @@ -13434,10 +12563,19 @@ export const SearchAllDocument = { fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'txId_startsWith' }, + name: { kind: 'Name', value: 'tx_id' }, value: { - kind: 'Variable', - name: { kind: 'Name', value: 'keyword' } + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_ilike' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'keyword' } + } + } + ] } } ] @@ -13462,14 +12600,14 @@ export const SearchAllDocument = { ] } }, - { kind: 'Field', name: { kind: 'Name', value: 'txId' } } + { kind: 'Field', name: { kind: 'Name', value: 'tx_id' } } ] } }, { kind: 'Field', alias: { kind: 'Name', value: 'executedReversibleTransactions' }, - name: { kind: 'Name', value: 'executedReversibleTransfers' }, + name: { kind: 'Name', value: 'executed_reversible_transfer' }, arguments: [ { kind: 'Argument', @@ -13487,10 +12625,19 @@ export const SearchAllDocument = { fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'txId_startsWith' }, + name: { kind: 'Name', value: 'tx_id' }, value: { - kind: 'Variable', - name: { kind: 'Name', value: 'keyword' } + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_ilike' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'keyword' } + } + } + ] } } ] @@ -13500,14 +12647,14 @@ export const SearchAllDocument = { selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'txId' } } + { kind: 'Field', name: { kind: 'Name', value: 'tx_id' } } ] } }, { kind: 'Field', alias: { kind: 'Name', value: 'cancelledReversibleTransactions' }, - name: { kind: 'Name', value: 'cancelledReversibleTransfers' }, + name: { kind: 'Name', value: 'cancelled_reversible_transfer' }, arguments: [ { kind: 'Argument', @@ -13525,10 +12672,19 @@ export const SearchAllDocument = { fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'txId_startsWith' }, + name: { kind: 'Name', value: 'tx_id' }, value: { - kind: 'Variable', - name: { kind: 'Name', value: 'keyword' } + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_ilike' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'keyword' } + } + } + ] } } ] @@ -13538,13 +12694,14 @@ export const SearchAllDocument = { selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'txId' } } + { kind: 'Field', name: { kind: 'Name', value: 'tx_id' } } ] } }, { kind: 'Field', - name: { kind: 'Name', value: 'accounts' }, + alias: { kind: 'Name', value: 'accounts' }, + name: { kind: 'Name', value: 'account' }, arguments: [ { kind: 'Argument', @@ -13562,10 +12719,19 @@ export const SearchAllDocument = { fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'id_startsWith' }, + name: { kind: 'Name', value: 'id' }, value: { - kind: 'Variable', - name: { kind: 'Name', value: 'keyword' } + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_ilike' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'keyword' } + } + } + ] } } ] @@ -13581,7 +12747,8 @@ export const SearchAllDocument = { }, { kind: 'Field', - name: { kind: 'Name', value: 'blocks' }, + alias: { kind: 'Name', value: 'blocks' }, + name: { kind: 'Name', value: 'block' }, arguments: [ { kind: 'Argument', @@ -13599,25 +12766,56 @@ export const SearchAllDocument = { fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'hash_startsWith' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'keyword' } - } - }, - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'OR' }, + name: { kind: 'Name', value: '_or' }, value: { - kind: 'ObjectValue', - fields: [ + kind: 'ListValue', + values: [ { - kind: 'ObjectField', - name: { kind: 'Name', value: 'height_eq' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'keyword_number' } - } + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'hash' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_ilike' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'keyword' } + } + } + ] + } + } + ] + }, + { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'height' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'Variable', + name: { + kind: 'Name', + value: 'keyword_number' + } + } + } + ] + } + } + ] } ] } @@ -13635,7 +12833,8 @@ export const SearchAllDocument = { }, { kind: 'Field', - name: { kind: 'Name', value: 'highSecuritySets' }, + alias: { kind: 'Name', value: 'highSecuritySets' }, + name: { kind: 'Name', value: 'high_security_set' }, arguments: [ { kind: 'Argument', @@ -13659,10 +12858,19 @@ export const SearchAllDocument = { fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'id_startsWith' }, + name: { kind: 'Name', value: 'id' }, value: { - kind: 'Variable', - name: { kind: 'Name', value: 'keyword' } + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_ilike' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'keyword' } + } + } + ] } } ] @@ -13695,7 +12903,8 @@ export const SearchAllDocument = { }, { kind: 'Field', - name: { kind: 'Name', value: 'minerRewards' }, + alias: { kind: 'Name', value: 'minerRewards' }, + name: { kind: 'Name', value: 'miner_reward' }, arguments: [ { kind: 'Argument', @@ -13719,10 +12928,19 @@ export const SearchAllDocument = { fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'hash_startsWith' }, + name: { kind: 'Name', value: 'hash' }, value: { - kind: 'Variable', - name: { kind: 'Name', value: 'keyword' } + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_ilike' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'keyword' } + } + } + ] } } ] @@ -13766,7 +12984,8 @@ export const SearchAllDocument = { }, { kind: 'Field', - name: { kind: 'Name', value: 'errorEvents' }, + alias: { kind: 'Name', value: 'errorEvents' }, + name: { kind: 'Name', value: 'error_event' }, arguments: [ { kind: 'Argument', @@ -13784,31 +13003,53 @@ export const SearchAllDocument = { fields: [ { kind: 'ObjectField', - name: { - kind: 'Name', - value: 'errorType_containsInsensitive' - }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'keyword' } - } - }, - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'OR' }, + name: { kind: 'Name', value: '_or' }, value: { - kind: 'ObjectValue', - fields: [ + kind: 'ListValue', + values: [ { - kind: 'ObjectField', - name: { - kind: 'Name', - value: 'errorName_containsInsensitive' - }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'keyword' } - } + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'error_type' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_ilike' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'keyword' } + } + } + ] + } + } + ] + }, + { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'error_name' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_ilike' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'keyword' } + } + } + ] + } + } + ] } ] } @@ -13879,7 +13120,7 @@ export const GetTransactionsDocument = { kind: 'NonNullType', type: { kind: 'NamedType', - name: { kind: 'Name', value: 'TransferOrderByInput' } + name: { kind: 'Name', value: 'transfer_order_by' } } } } @@ -13892,7 +13133,7 @@ export const GetTransactionsDocument = { }, type: { kind: 'NamedType', - name: { kind: 'Name', value: 'TransferWhereInput' } + name: { kind: 'Name', value: 'transfer_bool_exp' } } } ], @@ -13902,7 +13143,7 @@ export const GetTransactionsDocument = { { kind: 'Field', alias: { kind: 'Name', value: 'transactions' }, - name: { kind: 'Name', value: 'transfers' }, + name: { kind: 'Name', value: 'transfer' }, arguments: [ { kind: 'Argument', @@ -13922,7 +13163,7 @@ export const GetTransactionsDocument = { }, { kind: 'Argument', - name: { kind: 'Name', value: 'orderBy' }, + name: { kind: 'Name', value: 'order_by' }, value: { kind: 'Variable', name: { kind: 'Name', value: 'orderBy' } @@ -13994,13 +13235,8 @@ export const GetTransactionsDocument = { { kind: 'Field', alias: { kind: 'Name', value: 'meta' }, - name: { kind: 'Name', value: 'transfersConnection' }, + name: { kind: 'Name', value: 'transfer_aggregate' }, arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'orderBy' }, - value: { kind: 'EnumValue', value: 'id_ASC' } - }, { kind: 'Argument', name: { kind: 'Name', value: 'where' }, @@ -14013,7 +13249,20 @@ export const GetTransactionsDocument = { selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'totalCount' }, + name: { kind: 'Name', value: 'count' } + } + ] + } + } ] } } @@ -14061,7 +13310,7 @@ export const GetRecentTransactionsDocument = { kind: 'NonNullType', type: { kind: 'NamedType', - name: { kind: 'Name', value: 'TransferOrderByInput' } + name: { kind: 'Name', value: 'transfer_order_by' } } } } @@ -14074,7 +13323,7 @@ export const GetRecentTransactionsDocument = { }, type: { kind: 'NamedType', - name: { kind: 'Name', value: 'TransferWhereInput' } + name: { kind: 'Name', value: 'transfer_bool_exp' } } } ], @@ -14084,7 +13333,7 @@ export const GetRecentTransactionsDocument = { { kind: 'Field', alias: { kind: 'Name', value: 'transactions' }, - name: { kind: 'Name', value: 'transfers' }, + name: { kind: 'Name', value: 'transfer' }, arguments: [ { kind: 'Argument', @@ -14104,7 +13353,7 @@ export const GetRecentTransactionsDocument = { }, { kind: 'Argument', - name: { kind: 'Name', value: 'orderBy' }, + name: { kind: 'Name', value: 'order_by' }, value: { kind: 'Variable', name: { kind: 'Name', value: 'orderBy' } @@ -14199,7 +13448,7 @@ export const GetTransactionsStatsDocument = { kind: 'NonNullType', type: { kind: 'NamedType', - name: { kind: 'Name', value: 'DateTime' } + name: { kind: 'Name', value: 'timestamptz' } } } }, @@ -14213,7 +13462,7 @@ export const GetTransactionsStatsDocument = { kind: 'NonNullType', type: { kind: 'NamedType', - name: { kind: 'Name', value: 'DateTime' } + name: { kind: 'Name', value: 'timestamptz' } } } } @@ -14224,13 +13473,8 @@ export const GetTransactionsStatsDocument = { { kind: 'Field', alias: { kind: 'Name', value: 'last24Hour' }, - name: { kind: 'Name', value: 'transfersConnection' }, + name: { kind: 'Name', value: 'transfer_aggregate' }, arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'orderBy' }, - value: { kind: 'EnumValue', value: 'id_ASC' } - }, { kind: 'Argument', name: { kind: 'Name', value: 'where' }, @@ -14239,24 +13483,42 @@ export const GetTransactionsStatsDocument = { fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'timestamp_gte' }, + name: { kind: 'Name', value: 'timestamp' }, value: { - kind: 'Variable', - name: { kind: 'Name', value: 'startDate' } + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_gte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'startDate' } + } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_lte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'endDate' } + } + } + ] } }, { kind: 'ObjectField', - name: { kind: 'Name', value: 'timestamp_lte' }, + name: { kind: 'Name', value: 'extrinsic_id' }, value: { - kind: 'Variable', - name: { kind: 'Name', value: 'endDate' } + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_is_null' }, + value: { kind: 'BooleanValue', value: false } + } + ] } - }, - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'extrinsic_isNull' }, - value: { kind: 'BooleanValue', value: false } } ] } @@ -14265,71 +13527,41 @@ export const GetTransactionsStatsDocument = { selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } - ] - } - }, - { - kind: 'Field', - alias: { kind: 'Name', value: 'allTime' }, - name: { kind: 'Name', value: 'transfersConnection' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'orderBy' }, - value: { kind: 'EnumValue', value: 'id_ASC' } - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'where' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'extrinsic_isNull' }, - value: { kind: 'BooleanValue', value: false } - } - ] + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'totalCount' }, + name: { kind: 'Name', value: 'count' } + } + ] + } } - } - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } ] } }, { kind: 'Field', alias: { kind: 'Name', value: 'allTime' }, - name: { kind: 'Name', value: 'transfersConnection' }, + name: { kind: 'Name', value: 'chain_stats_by_pk' }, arguments: [ { kind: 'Argument', - name: { kind: 'Name', value: 'orderBy' }, - value: { kind: 'EnumValue', value: 'id_ASC' } - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'where' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'extrinsic_isNull' }, - value: { kind: 'BooleanValue', value: false } - } - ] - } + name: { kind: 'Name', value: 'id' }, + value: { kind: 'StringValue', value: 'global', block: false } } ], selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } + { + kind: 'Field', + name: { kind: 'Name', value: 'total_immediate_transfers' } + } ] } } @@ -14363,7 +13595,8 @@ export const GetExtrinsicByHashDocument = { selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'extrinsics' }, + alias: { kind: 'Name', value: 'extrinsics' }, + name: { kind: 'Name', value: 'extrinsic' }, arguments: [ { kind: 'Argument', @@ -14373,10 +13606,19 @@ export const GetExtrinsicByHashDocument = { fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'id_eq' }, + name: { kind: 'Name', value: 'id' }, value: { - kind: 'Variable', - name: { kind: 'Name', value: 'hash' } + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'hash' } + } + } + ] } } ] @@ -14394,7 +13636,7 @@ export const GetExtrinsicByHashDocument = { { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, { kind: 'Field', - name: { kind: 'Name', value: 'indexInBlock' } + name: { kind: 'Name', value: 'index_in_block' } }, { kind: 'Field', @@ -14421,7 +13663,8 @@ export const GetExtrinsicByHashDocument = { }, { kind: 'Field', - name: { kind: 'Name', value: 'transfers' }, + alias: { kind: 'Name', value: 'transfers' }, + name: { kind: 'Name', value: 'transfer' }, arguments: [ { kind: 'Argument', @@ -14437,10 +13680,19 @@ export const GetExtrinsicByHashDocument = { fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'id_eq' }, + name: { kind: 'Name', value: 'id' }, value: { - kind: 'Variable', - name: { kind: 'Name', value: 'hash' } + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'hash' } + } + } + ] } } ] @@ -14451,8 +13703,17 @@ export const GetExtrinsicByHashDocument = { }, { kind: 'Argument', - name: { kind: 'Name', value: 'orderBy' }, - value: { kind: 'EnumValue', value: 'timestamp_ASC' } + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'timestamp' }, + value: { kind: 'EnumValue', value: 'asc' } + } + ] + } } ], selectionSet: { @@ -14530,7 +13791,7 @@ export const GetWormholeExtrinsicsDocument = { kind: 'NonNullType', type: { kind: 'NamedType', - name: { kind: 'Name', value: 'WormholeExtrinsicOrderByInput' } + name: { kind: 'Name', value: 'wormhole_extrinsic_order_by' } } } } @@ -14544,7 +13805,7 @@ export const GetWormholeExtrinsicsDocument = { }, type: { kind: 'NamedType', - name: { kind: 'Name', value: 'WormholeExtrinsicWhereInput' } + name: { kind: 'Name', value: 'wormhole_extrinsic_bool_exp' } } } ], @@ -14553,7 +13814,8 @@ export const GetWormholeExtrinsicsDocument = { selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'wormholeExtrinsics' }, + alias: { kind: 'Name', value: 'wormholeExtrinsics' }, + name: { kind: 'Name', value: 'wormhole_extrinsic' }, arguments: [ { kind: 'Argument', @@ -14573,7 +13835,7 @@ export const GetWormholeExtrinsicsDocument = { }, { kind: 'Argument', - name: { kind: 'Name', value: 'orderBy' }, + name: { kind: 'Name', value: 'order_by' }, value: { kind: 'Variable', name: { kind: 'Name', value: 'orderBy' } @@ -14607,16 +13869,22 @@ export const GetWormholeExtrinsicsDocument = { ] } }, - { kind: 'Field', name: { kind: 'Name', value: 'totalAmount' } }, - { kind: 'Field', name: { kind: 'Name', value: 'outputCount' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'total_amount' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'output_count' } + }, { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, { kind: 'Field', - name: { kind: 'Name', value: 'privacyScore' } + name: { kind: 'Name', value: 'privacy_score' } }, { kind: 'Field', - name: { kind: 'Name', value: 'privacyLabel' } + name: { kind: 'Name', value: 'privacy_label' } }, { kind: 'Field', @@ -14634,18 +13902,34 @@ export const GetWormholeExtrinsicsDocument = { { kind: 'Field', alias: { kind: 'Name', value: 'meta' }, - name: { kind: 'Name', value: 'wormholeExtrinsicsConnection' }, + name: { kind: 'Name', value: 'wormhole_extrinsic_aggregate' }, arguments: [ { kind: 'Argument', - name: { kind: 'Name', value: 'orderBy' }, - value: { kind: 'EnumValue', value: 'id_ASC' } + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + } } ], selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'totalCount' }, + name: { kind: 'Name', value: 'count' } + } + ] + } + } ] } } @@ -14679,7 +13963,8 @@ export const GetWormholeExtrinsicByIdDocument = { selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'wormholeExtrinsicById' }, + alias: { kind: 'Name', value: 'wormholeExtrinsicById' }, + name: { kind: 'Name', value: 'wormhole_extrinsic_by_pk' }, arguments: [ { kind: 'Argument', @@ -14706,32 +13991,38 @@ export const GetWormholeExtrinsicByIdDocument = { ] } }, - { kind: 'Field', name: { kind: 'Name', value: 'totalAmount' } }, - { kind: 'Field', name: { kind: 'Name', value: 'outputCount' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'total_amount' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'output_count' } + }, { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, { kind: 'Field', - name: { kind: 'Name', value: 'privacyScore' } + name: { kind: 'Name', value: 'privacy_score' } }, { kind: 'Field', - name: { kind: 'Name', value: 'privacyScore01Pct' } + name: { kind: 'Name', value: 'privacy_score01_pct' } }, { kind: 'Field', - name: { kind: 'Name', value: 'privacyScore1Pct' } + name: { kind: 'Name', value: 'privacy_score1_pct' } }, { kind: 'Field', - name: { kind: 'Name', value: 'privacyScore5Pct' } + name: { kind: 'Name', value: 'privacy_score5_pct' } }, { kind: 'Field', - name: { kind: 'Name', value: 'privacyLabel' } + name: { kind: 'Name', value: 'privacy_label' } }, { kind: 'Field', - name: { kind: 'Name', value: 'poolSnapshot' } + name: { kind: 'Name', value: 'pool_snapshot' } }, { kind: 'Field', @@ -14781,7 +14072,8 @@ export const GetWormholeExtrinsicByIdDocument = { }, { kind: 'Field', - name: { kind: 'Name', value: 'wormholeNullifiers' }, + alias: { kind: 'Name', value: 'wormholeNullifiers' }, + name: { kind: 'Name', value: 'wormhole_nullifier' }, arguments: [ { kind: 'Argument', @@ -14797,13 +14089,13 @@ export const GetWormholeExtrinsicByIdDocument = { fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'extrinsic' }, + name: { kind: 'Name', value: 'id' }, value: { kind: 'ObjectValue', fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'id_eq' }, + name: { kind: 'Name', value: '_eq' }, value: { kind: 'Variable', name: { kind: 'Name', value: 'id' } @@ -14825,7 +14117,7 @@ export const GetWormholeExtrinsicByIdDocument = { { kind: 'Field', name: { kind: 'Name', value: 'nullifier' } }, { kind: 'Field', - name: { kind: 'Name', value: 'nullifierHash' } + name: { kind: 'Name', value: 'nullifier_hash' } } ] } @@ -14850,7 +14142,8 @@ export const GetDepositPoolStatsDocument = { selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'depositPoolStatsById' }, + alias: { kind: 'Name', value: 'depositPoolStatsById' }, + name: { kind: 'Name', value: 'deposit_pool_stats_by_pk' }, arguments: [ { kind: 'Argument', @@ -14863,7 +14156,7 @@ export const GetDepositPoolStatsDocument = { selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'lastUpdatedBlock' } + name: { kind: 'Name', value: 'last_updated_block' } }, { kind: 'Field', name: { kind: 'Name', value: 'buckets' } } ] diff --git a/src/api/README.md b/src/api/README.md deleted file mode 100644 index 350f10b..0000000 --- a/src/api/README.md +++ /dev/null @@ -1 +0,0 @@ -# API Client diff --git a/src/api/accounts.tsx b/src/api/accounts.tsx index 9fe6d2b..f77837a 100644 --- a/src/api/accounts.tsx +++ b/src/api/accounts.tsx @@ -6,7 +6,6 @@ import { subDays } from 'date-fns/subDays'; import { QUERY_DEFAULT_LIMIT } from '@/constants/query-default-limit'; import type { AccountSorts } from '@/constants/query-sorts'; -import { ACCOUNT_SORTS } from '@/constants/query-sorts'; import { QUERY_UNIFIED_LIMIT } from '@/constants/query-unified-limit'; import type { AccountListResponse, @@ -26,16 +25,16 @@ export const accounts = { query GetAccounts( $limit: Int $offset: Int - $orderBy: [AccountOrderByInput!] + $orderBy: [account_order_by!] ) { - accounts(limit: $limit, offset: $offset, orderBy: $orderBy) { + accounts: account(limit: $limit, offset: $offset, order_by: $orderBy) { id free frozen reserved } - meta: accountsConnection(orderBy: id_ASC) { - totalCount + meta: chain_stats_by_pk(id: "global") { + totalCount: total_accounts } } `; @@ -45,7 +44,7 @@ export const accounts = { { ...config, variables: { - orderBy: config?.variables?.orderBy ?? ACCOUNT_SORTS.id.DESC, + orderBy: config?.variables?.orderBy ?? { id: 'desc' }, limit: config?.variables?.limit ?? QUERY_DEFAULT_LIMIT, offset: config?.variables?.offset ?? 0 } @@ -55,33 +54,85 @@ export const accounts = { getById: () => { const GET_ACCOUNT = gql` query GetAccountById($id: String!, $limit: Int!) { - account: accountById(id: $id) { + account: account_by_pk(id: $id) { id free frozen reserved } - transactions: transfersConnection( - orderBy: timestamp_DESC - first: $limit - where: { - extrinsic_isNull: false - AND: { from: { id_eq: $id }, OR: { to: { id_eq: $id } } } - } + accountStats: account_stats_by_pk(id: $id) { + total_cancelled_transfers + total_executed_transfers + total_immediate_transfers + total_mined_blocks + total_rewards + total_scheduled_transfers + } + accountEvents: account_event( + limit: $limit + where: { account_id: { _eq: $id } } ) { - edges { - node { - fee + transfer { + fee + extrinsic { + id + pallet + call + } + block { + height + } + amount + timestamp + from { + id + } + to { + id + } + } + scheduledReversibleTransfer { + extrinsic { + id + pallet + call + } + timestamp + amount + timestamp + scheduled_at + tx_id + fee + block { + height + } + from { + id + } + to { + id + } + } + executedReversibleTransfer { + timestamp + tx_id + block { + height + } + scheduledTransfer { extrinsic { id pallet call } + amount + timestamp + scheduled_at + tx_id + fee block { height } - amount - timestamp from { id } @@ -90,26 +141,25 @@ export const accounts = { } } } - - totalCount - } - scheduledReversibleTransactions: scheduledReversibleTransfersConnection( - orderBy: timestamp_DESC - first: $limit - where: { from: { id_eq: $id }, OR: { to: { id_eq: $id } } } - ) { - edges { - node { + cancelledReversibleTransfer { + timestamp + tx_id + block { + height + } + cancelledBy { + id + } + scheduledTransfer { extrinsic { id pallet call } - timestamp amount timestamp - scheduledAt - txId + scheduled_at + tx_id fee block { height @@ -122,165 +172,67 @@ export const accounts = { } } } - totalCount - } - executedReversibleTransactions: executedReversibleTransfersConnection( - orderBy: timestamp_DESC - first: $limit - where: { - scheduledTransfer: { - from: { id_eq: $id } - OR: { to: { id_eq: $id } } + minerReward { + block { + height + hash } - } - ) { - edges { - node { - timestamp - txId - block { - height - } - scheduledTransfer { - extrinsic { - id - pallet - call - } - amount - timestamp - scheduledAt - txId - fee - block { - height - } - from { - id - } - to { - id - } - } + reward + miner { + id } + timestamp } - totalCount } - cancelledReversibleTransactions: cancelledReversibleTransfersConnection( - orderBy: timestamp_DESC - first: $limit - where: { - scheduledTransfer: { - from: { id_eq: $id } - OR: { to: { id_eq: $id } } - } - OR: { cancelledBy: { id_eq: $id } } - } + + guardian: high_security_set_aggregate( + order_by: { timestamp: desc } + limit: $limit + where: { who: { id: { _eq: $id } } } ) { - edges { - node { - timestamp - txId - block { - height - } - cancelledBy { - id - } - scheduledTransfer { - extrinsic { - id - pallet - call - } - amount - timestamp - scheduledAt - txId - fee - block { - height - } - from { - id - } - to { - id - } - } + nodes { + timestamp + block { + height } - } - totalCount - } - minerRewards: minerRewardsConnection( - orderBy: timestamp_DESC - first: $limit - where: { miner: { id_eq: $id } } - ) { - edges { - node { - block { - height - hash - } - reward - miner { - id - } - timestamp + interceptor { + id + free + frozen + reserved } } - - totalCount - } - guardian: highSecuritySetsConnection( - orderBy: timestamp_DESC - first: $limit - where: { who: { id_eq: $id } } - ) { - edges { - node { - timestamp - block { - height - } - interceptor { - id - free - frozen - reserved - } - } + aggregate { + totalCount: count } - - totalCount } - beneficiaries: highSecuritySetsConnection( - orderBy: timestamp_DESC - first: $limit - where: { interceptor: { id_eq: $id } } + + beneficiaries: high_security_set_aggregate( + order_by: { timestamp: desc } + limit: $limit + where: { interceptor: { id: { _eq: $id } } } ) { - edges { - node { - timestamp - block { - height - } - who { - id - free - frozen - reserved - } + nodes { + timestamp + block { + height + } + who { + id + free + frozen + reserved } } - - totalCount + aggregate { + totalCount: count + } } - wormholeOutputs: wormholeOutputs( - orderBy: wormholeExtrinsic_timestamp_DESC + + wormholeOutputs: wormhole_output( + order_by: { wormholeExtrinsic: { timestamp: desc } } limit: $limit - where: { exitAccount: { id_eq: $id } } + where: { exitAccount: { id: { _eq: $id } } } ) { id amount @@ -294,8 +246,8 @@ export const accounts = { pallet call } - totalAmount - outputCount + total_amount + output_count timestamp block { height @@ -330,31 +282,29 @@ export const accounts = { const endDate = endOfToday().toISOString(); const GET_ACCOUNTS_STATS = gql` - query GetAccountsStats($startDate: DateTime!, $endDate: DateTime!) { - all: accountsConnection(orderBy: id_ASC) { - totalCount + query GetAccountsStats($startDate: timestamptz!, $endDate: timestamptz!) { + all: chain_stats_by_pk(id: "global") { + total_accounts } - recentlyActive: accountsConnection( - orderBy: id_ASC + + recentlyActive: account_aggregate( where: { - transfersFrom_some: { - timestamp_gte: $startDate - timestamp_lte: $endDate - } + transfersFrom: { timestamp: { _gte: $startDate, _lte: $endDate } } } ) { - totalCount + aggregate { + count + } } - recentlyDeposited: accountsConnection( - orderBy: id_ASC + + recentlyDeposited: account_aggregate( where: { - transfersTo_some: { - timestamp_gte: $startDate - timestamp_lte: $endDate - } + transfersTo: { timestamp: { _gte: $startDate, _lte: $endDate } } } ) { - totalCount + aggregate { + count + } } } `; diff --git a/src/api/blocks.tsx b/src/api/blocks.tsx index dceedad..4c7480d 100644 --- a/src/api/blocks.tsx +++ b/src/api/blocks.tsx @@ -1,15 +1,16 @@ import type { QueryHookOptions } from '@apollo/client'; import { gql, useQuery } from '@apollo/client'; +import { endOfToday } from 'date-fns/endOfToday'; +import { startOfToday } from 'date-fns/startOfToday'; -import type { BlockWhereInput } from '@/__generated__/graphql'; +import type { Block_Bool_Exp } from '@/__generated__/graphql'; import { QUERY_DEFAULT_LIMIT } from '@/constants/query-default-limit'; import { QUERY_RECENT_LIMIT } from '@/constants/query-recent-limit'; import type { BlockSorts } from '@/constants/query-sorts'; -import { BLOCK_SORTS } from '@/constants/query-sorts'; -import { QUERY_UNIFIED_LIMIT } from '@/constants/query-unified-limit'; import type { BlockListResponse, BlockResponse, + BlockStatsResponse, RecentBlocksResponse } from '@/schemas'; import type { PaginatedQueryVariables } from '@/types/query'; @@ -18,20 +19,20 @@ export const blocks = { useGetAll: ( config?: QueryHookOptions< BlockListResponse, - PaginatedQueryVariables + PaginatedQueryVariables > ) => { const GET_BLOCKS = gql` query GetBlocks( $limit: Int $offset: Int - $orderBy: [BlockOrderByInput!]! - $where: BlockWhereInput + $orderBy: [block_order_by!]! + $where: block_bool_exp ) { - blocks( + blocks: block( limit: $limit offset: $offset - orderBy: $orderBy + order_by: $orderBy where: $where ) { id @@ -43,19 +44,19 @@ export const blocks = { id } } - meta: blocksConnection(orderBy: id_ASC) { - totalCount + meta: chain_stats_by_pk(id: "global") { + totalCount: block_height } } `; return useQuery< BlockListResponse, - PaginatedQueryVariables + PaginatedQueryVariables >(GET_BLOCKS, { ...config, variables: { - orderBy: config?.variables?.orderBy ?? BLOCK_SORTS.timestamp.DESC, + orderBy: config?.variables?.orderBy ?? { timestamp: 'desc' }, limit: config?.variables?.limit ?? QUERY_DEFAULT_LIMIT, offset: config?.variables?.offset ?? 0, where: config?.variables?.where @@ -69,9 +70,9 @@ export const blocks = { query GetRecentBlocks( $limit: Int $offset: Int - $orderBy: [BlockOrderByInput!] + $orderBy: [block_order_by!] ) { - blocks(limit: $limit, offset: $offset, orderBy: $orderBy) { + blocks: block(limit: $limit, offset: $offset, order_by: $orderBy) { id hash height @@ -89,38 +90,43 @@ export const blocks = { { ...config, variables: { - orderBy: BLOCK_SORTS.timestamp.DESC, + orderBy: { timestamp: 'desc' }, limit: QUERY_RECENT_LIMIT } } ); }, getById: () => { - const QUERY = gql` - query GetBlockById($height: Int!, $hash: String!, $limit: Int!) { - blocks(where: { height_eq: $height, OR: { hash_eq: $hash } }) { + const GET_BLOCK_BY_ID = gql` + query GetBlockById($height: Int!, $hash: String!) { + blocks: block( + where: { + _or: [{ height: { _eq: $height } }, { hash: { _eq: $hash } }] + } + ) { id hash height reward timestamp - extrinsics(orderBy: indexInBlock_ASC) { + extrinsics(order_by: { index_in_block: asc }) { id pallet call success fee timestamp - indexInBlock + index_in_block: index_in_block signer { id } } } - minerRewards( + minerRewards: miner_reward( where: { - block: { height_eq: $height } - OR: { block: { hash_eq: $hash } } + block: { + _or: [{ height: { _eq: $height } }, { hash: { _eq: $hash } }] + } } ) { reward @@ -133,258 +139,50 @@ export const blocks = { hash } } - transactions: transfersConnection( - orderBy: timestamp_DESC - first: $limit - where: { - extrinsic_isNull: false - AND: { - block: { height_eq: $height } - OR: { block: { hash_eq: $hash } } - } - } - ) { - edges { - node { - fee - extrinsic { - id - pallet - call - } - block { - height - } - amount - timestamp - from { - id - } - to { - id - } - } - } + } + `; - totalCount - } - scheduledReversibleTransactions: scheduledReversibleTransfersConnection( - orderBy: timestamp_DESC - first: $limit - where: { - block: { height_eq: $height } - OR: { block: { hash_eq: $hash } } - } - ) { - edges { - node { - extrinsic { - id - pallet - call - } - timestamp - amount - timestamp - scheduledAt - txId - fee - block { - height - } - from { - id - } - to { - id - } - } - } - totalCount - } - executedReversibleTransactions: executedReversibleTransfersConnection( - orderBy: timestamp_DESC - first: $limit - where: { - block: { height_eq: $height } - OR: { block: { hash_eq: $hash } } - } - ) { - edges { - node { - timestamp - txId - block { - height - } - scheduledTransfer { - extrinsic { - id - pallet - call - } - amount - timestamp - scheduledAt - txId - fee - block { - height - } - from { - id - } - to { - id - } - } - } - } - totalCount - } - cancelledReversibleTransactions: cancelledReversibleTransfersConnection( - orderBy: timestamp_DESC - first: $limit - where: { - block: { height_eq: $height } - OR: { block: { hash_eq: $hash } } - } - ) { - edges { - node { - timestamp - txId - block { - height - } - cancelledBy { - id - } - scheduledTransfer { - extrinsic { - id - pallet - call - } - amount - timestamp - scheduledAt - txId - fee - block { - height - } - from { - id - } - to { - id - } - } - } - } - totalCount - } - highSecuritySets: highSecuritySetsConnection( - orderBy: timestamp_DESC - first: $limit - where: { - block: { height_eq: $height } - OR: { block: { hash_eq: $hash } } - } - ) { - edges { - node { - extrinsic { - id - pallet - call - } - timestamp - delay - block { - height - } - who { - id - } - interceptor { - id - } - } - } + return { + useQuery: (id: string, config?: QueryHookOptions) => { + const isHash = id.startsWith('0x'); - totalCount - } - errorEvents: errorEventsConnection( - orderBy: timestamp_DESC - first: $limit - where: { - block: { height_eq: $height } - OR: { block: { hash_eq: $hash } } - } - ) { - edges { - node { - errorDocs - errorModule - errorName - errorType - extrinsic { - id - pallet - call - } - timestamp - block { - height - } - } + return useQuery(GET_BLOCK_BY_ID, { + ...config, + variables: { + height: !isHash ? Number(id) : -1, + hash: isHash ? id : '' } + }); + } + }; + }, + getStats: () => { + const startDate = startOfToday().toISOString(); + const endDate = endOfToday().toISOString(); - totalCount + const QUERY = gql` + query GetBlockStats($startDate: timestamptz!, $endDate: timestamptz!) { + chain: chain_stats_by_pk(id: "global") { + block_height + finalized_block_height } - wormholeExtrinsics( - orderBy: timestamp_DESC - limit: $limit - where: { - block: { height_eq: $height } - OR: { block: { hash_eq: $hash } } - } + minedIn24Hours: block_aggregate( + where: { timestamp: { _gte: $startDate, _lte: $endDate } } ) { - id - extrinsic { - id - pallet - call - } - totalAmount - outputCount - timestamp - block { - height - } - outputs { - id - exitAccount { - id - } - amount + aggregate { + totalCount: count } } } `; return { - useQuery: (id: string, config?: QueryHookOptions) => { - const isHash = id.startsWith('0x'); - - return useQuery(QUERY, { + useQuery: (config?: QueryHookOptions) => { + return useQuery(QUERY, { ...config, variables: { - height: !isHash ? Number(id) : -1, - hash: isHash ? id : '', - limit: QUERY_UNIFIED_LIMIT + startDate, + endDate } }); } diff --git a/src/api/cancelled-reversible-transactions.tsx b/src/api/cancelled-reversible-transactions.tsx index 685270a..f347118 100644 --- a/src/api/cancelled-reversible-transactions.tsx +++ b/src/api/cancelled-reversible-transactions.tsx @@ -3,11 +3,10 @@ import { gql, useQuery } from '@apollo/client'; import { endOfToday } from 'date-fns/endOfToday'; import { startOfToday } from 'date-fns/startOfToday'; -import type { CancelledReversibleTransferWhereInput } from '@/__generated__/graphql'; +import type { Cancelled_Reversible_Transfer_Bool_Exp } from '@/__generated__/graphql'; import { QUERY_DEFAULT_LIMIT } from '@/constants/query-default-limit'; import { QUERY_RECENT_LIMIT } from '@/constants/query-recent-limit'; import type { CancelledReversibleTransactionSorts } from '@/constants/query-sorts'; -import { CANCELLED_REVERSIBLE_TRANSACTION_SORTS } from '@/constants/query-sorts'; import type { CancelledReversibleTransactionListResponse, CancelledReversibleTransactionResponse, @@ -22,7 +21,7 @@ export const cancelledReversibleTransactions = { CancelledReversibleTransactionListResponse, PaginatedQueryVariables< CancelledReversibleTransactionSorts, - CancelledReversibleTransferWhereInput + Cancelled_Reversible_Transfer_Bool_Exp > > ) => { @@ -30,17 +29,17 @@ export const cancelledReversibleTransactions = { query GetCancelledReversibleTransactions( $limit: Int $offset: Int - $orderBy: [CancelledReversibleTransferOrderByInput!] - $where: CancelledReversibleTransferWhereInput + $orderBy: [cancelled_reversible_transfer_order_by!] + $where: cancelled_reversible_transfer_bool_exp ) { - cancelledReversibleTransactions: cancelledReversibleTransfers( + cancelledReversibleTransactions: cancelled_reversible_transfer( limit: $limit offset: $offset - orderBy: $orderBy + order_by: $orderBy where: $where ) { timestamp - txId + tx_id block { height } @@ -55,8 +54,8 @@ export const cancelledReversibleTransactions = { } amount timestamp - scheduledAt - txId + scheduled_at + tx_id fee block { height @@ -69,11 +68,10 @@ export const cancelledReversibleTransactions = { } } } - meta: cancelledReversibleTransfersConnection( - orderBy: id_ASC - where: $where - ) { - totalCount + meta: cancelled_reversible_transfer_aggregate(where: $where) { + aggregate { + totalCount: count + } } } `; @@ -82,14 +80,12 @@ export const cancelledReversibleTransactions = { CancelledReversibleTransactionListResponse, PaginatedQueryVariables< CancelledReversibleTransactionSorts, - CancelledReversibleTransferWhereInput + Cancelled_Reversible_Transfer_Bool_Exp > >(GET_CANCELLED_REVERSIBLE_TRANSACTIONS, { ...config, variables: { - orderBy: - config?.variables?.orderBy ?? - CANCELLED_REVERSIBLE_TRANSACTION_SORTS.timestamp.DESC, + orderBy: config?.variables?.orderBy ?? { timestamp: 'desc' }, limit: config?.variables?.limit ?? QUERY_DEFAULT_LIMIT, offset: config?.variables?.offset ?? 0, where: config?.variables?.where @@ -106,15 +102,15 @@ export const cancelledReversibleTransactions = { query GetRecentCancelledReversibleTransactions( $limit: Int $offset: Int - $orderBy: [CancelledReversibleTransferOrderByInput!] + $orderBy: [cancelled_reversible_transfer_order_by!] ) { - cancelledReversibleTransactions: cancelledReversibleTransfers( + cancelledReversibleTransactions: cancelled_reversible_transfer( limit: $limit offset: $offset - orderBy: $orderBy + order_by: $orderBy ) { timestamp - txId + tx_id block { height } @@ -129,8 +125,8 @@ export const cancelledReversibleTransactions = { } amount timestamp - scheduledAt - txId + scheduled_at + tx_id fee block { height @@ -152,7 +148,7 @@ export const cancelledReversibleTransactions = { >(GET_RECENT_CANCELLED_REVERSIBLE_TRANSACTIONS, { ...config, variables: { - orderBy: CANCELLED_REVERSIBLE_TRANSACTION_SORTS.timestamp.DESC, + orderBy: { timestamp: 'desc' }, limit: QUERY_RECENT_LIMIT } }); @@ -168,17 +164,18 @@ export const cancelledReversibleTransactions = { const GET_CANCELLED_REVERSIBLE_TRANSACTIONS_STATS = gql` query GetCancelledReversibleTransactionsStats( - $startDate: DateTime! - $endDate: DateTime! + $startDate: timestamptz! + $endDate: timestamptz! ) { - last24Hour: cancelledReversibleTransfersConnection( - orderBy: id_ASC - where: { timestamp_gte: $startDate, timestamp_lte: $endDate } + last24Hour: cancelled_reversible_transfer_aggregate( + where: { timestamp: { _gte: $startDate, _lte: $endDate } } ) { - totalCount + aggregate { + totalCount: count + } } - allTime: cancelledReversibleTransfersConnection(orderBy: id_ASC) { - totalCount + allTime: chain_stats_by_pk(id: "global") { + total_cancelled_transfers } } `; @@ -196,12 +193,12 @@ export const cancelledReversibleTransactions = { }, getByTxId: () => { const QUERY = gql` - query GetCancelledReversibleTransactionByTxId($txId: String!) { - cancelledReversibleTransactions: cancelledReversibleTransfers( - where: { txId_eq: $txId } + query GetCancelledReversibleTransactionByTxId($tx_id: String!) { + cancelledReversibleTransactions: cancelled_reversible_transfer( + where: { tx_id: { _eq: $tx_id } } ) { timestamp - txId + tx_id block { height } @@ -215,7 +212,7 @@ export const cancelledReversibleTransactions = { } scheduledTransfer { amount - scheduledAt + scheduled_at fee from { id @@ -230,13 +227,13 @@ export const cancelledReversibleTransactions = { return { useQuery: ( - txId: string, + tx_id: string, config?: QueryHookOptions ) => useQuery(QUERY, { ...config, variables: { - txId + tx_id } }) }; diff --git a/src/api/chain-status.tsx b/src/api/chain-status.tsx index 1041cbc..677164d 100644 --- a/src/api/chain-status.tsx +++ b/src/api/chain-status.tsx @@ -7,11 +7,14 @@ export const chainStatus = { useGetStatus: (config?: QueryHookOptions) => { const GET_STATUS = gql` query GetStatus { - status: squidStatus { - hash - height - finalizedHeight - finalizedHash + status: chain_stats_by_pk(id: "global") { + block_height + total_accounts + total_deposit_accounts + total_executed_transfers + total_immediate_transfers + total_scheduled_transfers + total_cancelled_transfers } } `; diff --git a/src/api/errors.tsx b/src/api/errors.tsx index 38f1e6e..932bff6 100644 --- a/src/api/errors.tsx +++ b/src/api/errors.tsx @@ -3,11 +3,10 @@ import { gql, useQuery } from '@apollo/client'; import { endOfToday } from 'date-fns/endOfToday'; import { startOfToday } from 'date-fns/startOfToday'; -import type { ErrorEventWhereInput } from '@/__generated__/graphql'; +import type { Error_Event_Bool_Exp } from '@/__generated__/graphql'; import { QUERY_DEFAULT_LIMIT } from '@/constants/query-default-limit'; import { QUERY_RECENT_LIMIT } from '@/constants/query-recent-limit'; import type { ErrorEventSorts } from '@/constants/query-sorts'; -import { ERROR_EVENT_SORTS } from '@/constants/query-sorts'; import type { ErrorEventListResponse, ErrorEventResponse, @@ -20,26 +19,26 @@ export const errors = { useGetAll: ( config?: QueryHookOptions< ErrorEventListResponse, - PaginatedQueryVariables + PaginatedQueryVariables > ) => { const GET_ERROR_EVENTS = gql` query GetErrorEvents( $limit: Int $offset: Int - $orderBy: [ErrorEventOrderByInput!] - $where: ErrorEventWhereInput + $orderBy: [error_event_order_by!] + $where: error_event_bool_exp ) { - errorEvents( + errorEvents: error_event( limit: $limit offset: $offset - orderBy: $orderBy + order_by: $orderBy where: $where ) { - errorDocs - errorModule - errorName - errorType + error_docs + error_module + error_name + error_type extrinsic { id pallet @@ -51,19 +50,21 @@ export const errors = { height } } - meta: errorEventsConnection(orderBy: id_ASC, where: $where) { - totalCount + meta: error_event_aggregate(where: $where) { + aggregate { + totalCount: count + } } } `; return useQuery< ErrorEventListResponse, - PaginatedQueryVariables + PaginatedQueryVariables >(GET_ERROR_EVENTS, { ...config, variables: { - orderBy: config?.variables?.orderBy ?? ERROR_EVENT_SORTS.timestamp.DESC, + orderBy: config?.variables?.orderBy ?? { timestamp: 'desc' }, limit: config?.variables?.limit ?? QUERY_DEFAULT_LIMIT, offset: config?.variables?.offset ?? 0, where: config?.variables?.where @@ -77,19 +78,19 @@ export const errors = { query GetRecentErrorEvents( $limit: Int $offset: Int - $orderBy: [ErrorEventOrderByInput!] - $where: ErrorEventWhereInput + $orderBy: [error_event_order_by!] + $where: error_event_bool_exp ) { - errorEvents( + errorEvents: error_event( limit: $limit offset: $offset - orderBy: $orderBy + order_by: $orderBy where: $where ) { - errorDocs - errorModule - errorName - errorType + error_docs + error_module + error_name + error_type extrinsic { id pallet @@ -106,11 +107,11 @@ export const errors = { return useQuery< RecentErrorEventsResponse, - PaginatedQueryVariables + PaginatedQueryVariables >(GET_RECENT_ERROR_EVENTS, { ...config, variables: { - orderBy: ERROR_EVENT_SORTS.timestamp.DESC, + orderBy: { timestamp: 'desc' }, limit: QUERY_RECENT_LIMIT } }); @@ -122,15 +123,19 @@ export const errors = { const endDate = endOfToday().toISOString(); const GET_ERROR_EVENTS_STATS = gql` - query GetErrorEventsStats($startDate: DateTime!, $endDate: DateTime!) { - last24Hour: errorEventsConnection( - orderBy: id_ASC - where: { timestamp_gte: $startDate, timestamp_lte: $endDate } + query GetErrorEventsStats( + $startDate: timestamptz! + $endDate: timestamptz! + ) { + last24Hour: error_event_aggregate( + where: { timestamp: { _gte: $startDate, _lte: $endDate } } ) { - totalCount + aggregate { + totalCount: count + } } - allTime: errorEventsConnection(orderBy: id_ASC) { - totalCount + allTime: chain_stats_by_pk(id: "global") { + total_error_events } } `; @@ -146,11 +151,11 @@ export const errors = { getByHash: () => { const GET_ERROR_EVENT_BY_HASH = gql` query GetErrorEventByHash($hash: String!) { - errorEvents: errorEvents(where: { extrinsic: { id_eq: $hash } }) { - errorDocs - errorModule - errorName - errorType + errorEvents: error_event(where: { extrinsic: { id: { _eq: $hash } } }) { + error_docs + error_module + error_name + error_type extrinsic { id pallet diff --git a/src/api/executed-reversible-transactions.tsx b/src/api/executed-reversible-transactions.tsx index 07bce2a..5a6f3a0 100644 --- a/src/api/executed-reversible-transactions.tsx +++ b/src/api/executed-reversible-transactions.tsx @@ -3,11 +3,10 @@ import { gql, useQuery } from '@apollo/client'; import { endOfToday } from 'date-fns/endOfToday'; import { startOfToday } from 'date-fns/startOfToday'; -import type { ExecutedReversibleTransferWhereInput } from '@/__generated__/graphql'; +import type { Executed_Reversible_Transfer_Bool_Exp } from '@/__generated__/graphql'; import { QUERY_DEFAULT_LIMIT } from '@/constants/query-default-limit'; import { QUERY_RECENT_LIMIT } from '@/constants/query-recent-limit'; import type { ExecutedReversibleTransactionSorts } from '@/constants/query-sorts'; -import { EXECUTED_REVERSIBLE_TRANSACTION_SORTS } from '@/constants/query-sorts'; import type { ExecutedReversibleTransactionListResponse, ExecutedReversibleTransactionResponse, @@ -22,7 +21,7 @@ export const executedReversibleTransactions = { ExecutedReversibleTransactionListResponse, PaginatedQueryVariables< ExecutedReversibleTransactionSorts, - ExecutedReversibleTransferWhereInput + Executed_Reversible_Transfer_Bool_Exp > > ) => { @@ -30,17 +29,17 @@ export const executedReversibleTransactions = { query GetExecutedReversibleTransactions( $limit: Int $offset: Int - $orderBy: [ExecutedReversibleTransferOrderByInput!] - $where: ExecutedReversibleTransferWhereInput + $orderBy: [executed_reversible_transfer_order_by!] + $where: executed_reversible_transfer_bool_exp ) { - executedReversibleTransactions: executedReversibleTransfers( + executedReversibleTransactions: executed_reversible_transfer( limit: $limit offset: $offset - orderBy: $orderBy + order_by: $orderBy where: $where ) { timestamp - txId + tx_id block { height } @@ -52,8 +51,8 @@ export const executedReversibleTransactions = { } amount timestamp - scheduledAt - txId + scheduled_at + tx_id fee block { height @@ -66,11 +65,10 @@ export const executedReversibleTransactions = { } } } - meta: executedReversibleTransfersConnection( - orderBy: id_ASC - where: $where - ) { - totalCount + meta: executed_reversible_transfer_aggregate(where: $where) { + aggregate { + totalCount: count + } } } `; @@ -79,14 +77,12 @@ export const executedReversibleTransactions = { ExecutedReversibleTransactionListResponse, PaginatedQueryVariables< ExecutedReversibleTransactionSorts, - ExecutedReversibleTransferWhereInput + Executed_Reversible_Transfer_Bool_Exp > >(GET_EXECUTED_REVERSIBLE_TRANSACTIONS, { ...config, variables: { - orderBy: - config?.variables?.orderBy ?? - EXECUTED_REVERSIBLE_TRANSACTION_SORTS.timestamp.DESC, + orderBy: config?.variables?.orderBy ?? { timestamp: 'desc' }, limit: config?.variables?.limit ?? QUERY_DEFAULT_LIMIT, offset: config?.variables?.offset ?? 0, where: config?.variables?.where @@ -103,15 +99,15 @@ export const executedReversibleTransactions = { query GetRecentExecutedReversibleTransactions( $limit: Int $offset: Int - $orderBy: [ExecutedReversibleTransferOrderByInput!] + $orderBy: [executed_reversible_transfer_order_by!] ) { - executedReversibleTransactions: executedReversibleTransfers( + executedReversibleTransactions: executed_reversible_transfer( limit: $limit offset: $offset - orderBy: $orderBy + order_by: $orderBy ) { timestamp - txId + tx_id block { height } @@ -123,8 +119,8 @@ export const executedReversibleTransactions = { } amount timestamp - scheduledAt - txId + scheduled_at + tx_id fee block { height @@ -146,7 +142,7 @@ export const executedReversibleTransactions = { >(GET_RECENT_EXECUTED_REVERSIBLE_TRANSACTIONS, { ...config, variables: { - orderBy: EXECUTED_REVERSIBLE_TRANSACTION_SORTS.timestamp.DESC, + orderBy: { timestamp: 'desc' }, limit: QUERY_RECENT_LIMIT } }); @@ -162,17 +158,18 @@ export const executedReversibleTransactions = { const GET_EXECUTED_REVERSIBLE_TRANSACTIONS_STATS = gql` query GetExecutedReversibleTransactionsStats( - $startDate: DateTime! - $endDate: DateTime! + $startDate: timestamptz! + $endDate: timestamptz! ) { - last24Hour: executedReversibleTransfersConnection( - orderBy: id_ASC - where: { timestamp_gte: $startDate, timestamp_lte: $endDate } + last24Hour: executed_reversible_transfer_aggregate( + where: { timestamp: { _gte: $startDate, _lte: $endDate } } ) { - totalCount + aggregate { + totalCount: count + } } - allTime: executedReversibleTransfersConnection(orderBy: id_ASC) { - totalCount + allTime: chain_stats_by_pk(id: "global") { + total_executed_transfers } } `; @@ -190,18 +187,18 @@ export const executedReversibleTransactions = { }, getByTxId: () => { const QUERY = gql` - query GetExecutedReversibleTransactionByTxId($txId: String!) { - executedReversibleTransactions: executedReversibleTransfers( - where: { txId_eq: $txId } + query GetExecutedReversibleTransactionByTxId($tx_id: String!) { + executedReversibleTransactions: executed_reversible_transfer( + where: { tx_id: { _eq: $tx_id } } ) { timestamp - txId + tx_id block { height } scheduledTransfer { amount - scheduledAt + scheduled_at fee from { id @@ -216,13 +213,13 @@ export const executedReversibleTransactions = { return { useQuery: ( - txId: string, + tx_id: string, config?: QueryHookOptions ) => useQuery(QUERY, { ...config, variables: { - txId + tx_id } }) }; diff --git a/src/api/high-security-sets.tsx b/src/api/high-security-sets.tsx index cc372d7..a6fed27 100644 --- a/src/api/high-security-sets.tsx +++ b/src/api/high-security-sets.tsx @@ -3,11 +3,10 @@ import { gql, useQuery } from '@apollo/client'; import { endOfToday } from 'date-fns/endOfToday'; import { startOfToday } from 'date-fns/startOfToday'; -import type { HighSecuritySetWhereInput } from '@/__generated__/graphql'; +import type { High_Security_Set_Bool_Exp } from '@/__generated__/graphql'; import { QUERY_DEFAULT_LIMIT } from '@/constants/query-default-limit'; import { QUERY_RECENT_LIMIT } from '@/constants/query-recent-limit'; import type { HighSecuritySetSorts } from '@/constants/query-sorts'; -import { HIGH_SECURITY_SET_SORTS } from '@/constants/query-sorts'; import type { HighSecuritySetListResponse, HighSecuritySetResponse, @@ -20,20 +19,20 @@ export const highSecuritySets = { useGetAll: ( config?: QueryHookOptions< HighSecuritySetListResponse, - PaginatedQueryVariables + PaginatedQueryVariables > ) => { const GET_HIGH_SECURITY_SETS = gql` query GetHighSecuritySets( $limit: Int $offset: Int - $orderBy: [HighSecuritySetOrderByInput!] - $where: HighSecuritySetWhereInput + $orderBy: [high_security_set_order_by!] + $where: high_security_set_bool_exp ) { - highSecuritySets( + highSecuritySets: high_security_set( limit: $limit offset: $offset - orderBy: $orderBy + order_by: $orderBy where: $where ) { id @@ -54,20 +53,21 @@ export const highSecuritySets = { height } } - meta: highSecuritySetsConnection(orderBy: id_ASC, where: $where) { - totalCount + meta: high_security_set_aggregate(where: $where) { + aggregate { + totalCount: count + } } } `; return useQuery< HighSecuritySetListResponse, - PaginatedQueryVariables + PaginatedQueryVariables >(GET_HIGH_SECURITY_SETS, { ...config, variables: { - orderBy: - config?.variables?.orderBy ?? HIGH_SECURITY_SET_SORTS.timestamp.DESC, + orderBy: config?.variables?.orderBy ?? { timestamp: 'desc' }, limit: config?.variables?.limit ?? QUERY_DEFAULT_LIMIT, offset: config?.variables?.offset ?? 0, where: config?.variables?.where @@ -81,13 +81,13 @@ export const highSecuritySets = { query GetRecentHighSecuritySets( $limit: Int $offset: Int - $orderBy: [HighSecuritySetOrderByInput!] - $where: HighSecuritySetWhereInput + $orderBy: [high_security_set_order_by!] + $where: high_security_set_bool_exp ) { - highSecuritySets( + highSecuritySets: high_security_set( limit: $limit offset: $offset - orderBy: $orderBy + order_by: $orderBy where: $where ) { id @@ -113,11 +113,11 @@ export const highSecuritySets = { return useQuery< RecentHighSecuritySetsResponse, - PaginatedQueryVariables + PaginatedQueryVariables >(GET_RECENT_HIGH_SECURITY_SETS, { ...config, variables: { - orderBy: HIGH_SECURITY_SET_SORTS.timestamp.DESC, + orderBy: { timestamp: 'desc' }, limit: QUERY_RECENT_LIMIT, where: {} } @@ -131,17 +131,18 @@ export const highSecuritySets = { const GET_HIGH_SECURITY_SETS_STATS = gql` query GetHighSecuritySetsStats( - $startDate: DateTime! - $endDate: DateTime! + $startDate: timestamptz! + $endDate: timestamptz! ) { - last24Hour: highSecuritySetsConnection( - orderBy: id_ASC - where: { timestamp_gte: $startDate, timestamp_lte: $endDate } + last24Hour: high_security_set_aggregate( + where: { timestamp: { _gte: $startDate, _lte: $endDate } } ) { - totalCount + aggregate { + totalCount: count + } } - allTime: highSecuritySetsConnection(orderBy: id_ASC) { - totalCount + allTime: chain_stats_by_pk(id: "global") { + total_high_security_sets } } `; @@ -160,7 +161,9 @@ export const highSecuritySets = { getByHash: () => { const QUERY = gql` query GetHighSecuritySetByHash($hash: String!) { - highSecuritySets(where: { extrinsic: { id_eq: $hash } }) { + highSecuritySets: high_security_set( + where: { extrinsic: { id: { _eq: $hash } } } + ) { id extrinsic { id diff --git a/src/api/miner-leaderboard.tsx b/src/api/miner-leaderboard.tsx index 28a11be..3e768d1 100644 --- a/src/api/miner-leaderboard.tsx +++ b/src/api/miner-leaderboard.tsx @@ -11,17 +11,17 @@ export const minerLeaderboard = { ) => { const GET_MINER_LEADERBOARD = gql` query GetMinerLeaderboard($limit: Int, $offset: Int) { - leaderboardEntries: minerStats( + leaderboardEntries: account_stats( limit: $limit offset: $offset - orderBy: totalMinedBlocks_DESC + order_by: { total_rewards: desc } ) { id - totalMinedBlocks - totalRewards + total_mined_blocks + total_rewards } - meta: minerStatsConnection(orderBy: id_ASC) { - totalCount + meta: chain_stats_by_pk(id: "global") { + totalCount: total_miner_rewards } } `; diff --git a/src/api/miner-rewards.tsx b/src/api/miner-rewards.tsx index a1faf11..c1fb908 100644 --- a/src/api/miner-rewards.tsx +++ b/src/api/miner-rewards.tsx @@ -3,11 +3,10 @@ import { gql, useQuery } from '@apollo/client'; import { endOfToday } from 'date-fns/endOfToday'; import { startOfToday } from 'date-fns/startOfToday'; -import type { MinerRewardWhereInput } from '@/__generated__/graphql'; +import type { Miner_Reward_Bool_Exp } from '@/__generated__/graphql'; import { QUERY_DEFAULT_LIMIT } from '@/constants/query-default-limit'; import { QUERY_RECENT_LIMIT } from '@/constants/query-recent-limit'; import type { MinerRewardSorts } from '@/constants/query-sorts'; -import { TRANSACTION_SORTS } from '@/constants/query-sorts'; import type { MinerRewardListResponse, MinerRewardResponse, @@ -20,20 +19,20 @@ export const minerRewards = { useGetAll: ( config?: QueryHookOptions< MinerRewardListResponse, - PaginatedQueryVariables + PaginatedQueryVariables > ) => { const GET_MINER_REWARDS = gql` query GetMinerRewards( $limit: Int $offset: Int - $orderBy: [MinerRewardOrderByInput!] - $where: MinerRewardWhereInput + $orderBy: [miner_reward_order_by!] + $where: miner_reward_bool_exp ) { - minerRewards( + minerRewards: miner_reward( limit: $limit offset: $offset - orderBy: $orderBy + order_by: $orderBy where: $where ) { block { @@ -46,19 +45,21 @@ export const minerRewards = { } timestamp } - meta: minerRewardsConnection(orderBy: id_ASC, where: $where) { - totalCount + meta: miner_reward_aggregate(where: $where) { + aggregate { + totalCount: count + } } } `; return useQuery< MinerRewardListResponse, - PaginatedQueryVariables + PaginatedQueryVariables >(GET_MINER_REWARDS, { ...config, variables: { - orderBy: config?.variables?.orderBy ?? TRANSACTION_SORTS.timestamp.DESC, + orderBy: config?.variables?.orderBy ?? { timestamp: 'desc' }, limit: config?.variables?.limit ?? QUERY_DEFAULT_LIMIT, offset: config?.variables?.offset ?? 0, where: config?.variables?.where @@ -72,13 +73,13 @@ export const minerRewards = { query GetRecentMinerRewards( $limit: Int $offset: Int - $orderBy: [MinerRewardOrderByInput!] - $where: MinerRewardWhereInput + $orderBy: [miner_reward_order_by!] + $where: miner_reward_bool_exp ) { - minerRewards( + minerRewards: miner_reward( limit: $limit offset: $offset - orderBy: $orderBy + order_by: $orderBy where: $where ) { block { @@ -96,11 +97,11 @@ export const minerRewards = { return useQuery< RecentMinerRewardsResponse, - PaginatedQueryVariables + PaginatedQueryVariables >(GET_RECENT_MINER_REWARDS, { ...config, variables: { - orderBy: TRANSACTION_SORTS.timestamp.DESC, + orderBy: { timestamp: 'desc' }, limit: QUERY_RECENT_LIMIT } }); @@ -112,15 +113,19 @@ export const minerRewards = { const endDate = endOfToday().toISOString(); const GET_MINER_REWARDS_STATS = gql` - query GetMinerRewardsStats($startDate: DateTime!, $endDate: DateTime!) { - last24Hour: minerRewardsConnection( - orderBy: id_ASC - where: { timestamp_gte: $startDate, timestamp_lte: $endDate } + query GetMinerRewardsStats( + $startDate: timestamptz! + $endDate: timestamptz! + ) { + last24Hour: miner_reward_aggregate( + where: { timestamp: { _gte: $startDate, _lte: $endDate } } ) { - totalCount + aggregate { + totalCount: count + } } - allTime: minerRewardsConnection(orderBy: id_ASC) { - totalCount + allTime: chain_stats_by_pk(id: "global") { + total_miner_rewards } } `; @@ -136,7 +141,7 @@ export const minerRewards = { getByHash: () => { const QUERY = gql` query GetMinerRewardByHash($hash: String!) { - minerRewards(where: { block: { hash_eq: $hash } }) { + minerRewards: miner_reward(where: { block: { hash: { _eq: $hash } } }) { block { height hash diff --git a/src/api/scheduled-reversible-transactions.tsx b/src/api/scheduled-reversible-transactions.tsx index bc77d23..ee98313 100644 --- a/src/api/scheduled-reversible-transactions.tsx +++ b/src/api/scheduled-reversible-transactions.tsx @@ -3,11 +3,10 @@ import { gql, useQuery } from '@apollo/client'; import { endOfToday } from 'date-fns/endOfToday'; import { startOfToday } from 'date-fns/startOfToday'; -import type { ScheduledReversibleTransferWhereInput } from '@/__generated__/graphql'; +import type { Scheduled_Reversible_Transfer_Bool_Exp } from '@/__generated__/graphql'; import { QUERY_DEFAULT_LIMIT } from '@/constants/query-default-limit'; import { QUERY_RECENT_LIMIT } from '@/constants/query-recent-limit'; import type { ScheduledReversibleTransactionSorts } from '@/constants/query-sorts'; -import { SCHEDULED_REVERSIBLE_TRANSACTION_SORTS } from '@/constants/query-sorts'; import type { RecentScheduledReversibleTransactionsResponse, ScheduledReversibleTransactionListResponse, @@ -22,7 +21,7 @@ export const scheduledReversibleTransactions = { ScheduledReversibleTransactionListResponse, PaginatedQueryVariables< ScheduledReversibleTransactionSorts, - ScheduledReversibleTransferWhereInput + Scheduled_Reversible_Transfer_Bool_Exp > > ) => { @@ -30,13 +29,13 @@ export const scheduledReversibleTransactions = { query GetScheduledReversibleTransactions( $limit: Int $offset: Int - $orderBy: [ScheduledReversibleTransferOrderByInput!] - $where: ScheduledReversibleTransferWhereInput + $orderBy: [scheduled_reversible_transfer_order_by!] + $where: scheduled_reversible_transfer_bool_exp ) { - scheduledReversibleTransactions: scheduledReversibleTransfers( + scheduledReversibleTransactions: scheduled_reversible_transfer( limit: $limit offset: $offset - orderBy: $orderBy + order_by: $orderBy where: $where ) { extrinsic { @@ -46,8 +45,8 @@ export const scheduledReversibleTransactions = { } amount timestamp - scheduledAt - txId + scheduled_at + tx_id fee block { height @@ -59,11 +58,10 @@ export const scheduledReversibleTransactions = { id } } - meta: scheduledReversibleTransfersConnection( - orderBy: id_ASC - where: $where - ) { - totalCount + meta: scheduled_reversible_transfer_aggregate(where: $where) { + aggregate { + totalCount: count + } } } `; @@ -72,14 +70,12 @@ export const scheduledReversibleTransactions = { ScheduledReversibleTransactionListResponse, PaginatedQueryVariables< ScheduledReversibleTransactionSorts, - ScheduledReversibleTransferWhereInput + Scheduled_Reversible_Transfer_Bool_Exp > >(GET_SCHEDULED_REVERSIBLE_TRANSACTIONS, { ...config, variables: { - orderBy: - config?.variables?.orderBy ?? - SCHEDULED_REVERSIBLE_TRANSACTION_SORTS.timestamp.DESC, + orderBy: config?.variables?.orderBy ?? { timestamp: 'desc' }, limit: config?.variables?.limit ?? QUERY_DEFAULT_LIMIT, offset: config?.variables?.offset ?? 0, where: config?.variables?.where @@ -96,12 +92,12 @@ export const scheduledReversibleTransactions = { query GetRecentScheduledReversibleTransactions( $limit: Int $offset: Int - $orderBy: [ScheduledReversibleTransferOrderByInput!] + $orderBy: [scheduled_reversible_transfer_order_by!] ) { - scheduledReversibleTransactions: scheduledReversibleTransfers( + scheduledReversibleTransactions: scheduled_reversible_transfer( limit: $limit offset: $offset - orderBy: $orderBy + order_by: $orderBy ) { extrinsic { id @@ -110,8 +106,8 @@ export const scheduledReversibleTransactions = { } amount timestamp - scheduledAt - txId + scheduled_at + tx_id fee block { height @@ -132,7 +128,7 @@ export const scheduledReversibleTransactions = { >(GET_RECENT_SCHEDULED_REVERSIBLE_TRANSACTIONS, { ...config, variables: { - orderBy: SCHEDULED_REVERSIBLE_TRANSACTION_SORTS.timestamp.DESC, + orderBy: { timestamp: 'desc' }, limit: QUERY_RECENT_LIMIT } }); @@ -148,17 +144,18 @@ export const scheduledReversibleTransactions = { const GET_SCHEDULED_REVERSIBLE_TRANSACTIONS_STATS = gql` query GetScheduledReversibleTransactionsStats( - $startDate: DateTime! - $endDate: DateTime! + $startDate: timestamptz! + $endDate: timestamptz! ) { - last24Hour: scheduledReversibleTransfersConnection( - orderBy: id_ASC - where: { timestamp_gte: $startDate, timestamp_lte: $endDate } + last24Hour: scheduled_reversible_transfer_aggregate( + where: { timestamp: { _gte: $startDate, _lte: $endDate } } ) { - totalCount + aggregate { + totalCount: count + } } - allTime: scheduledReversibleTransfersConnection(orderBy: id_ASC) { - totalCount + allTime: chain_stats_by_pk(id: "global") { + total_scheduled_transfers } } `; @@ -176,9 +173,9 @@ export const scheduledReversibleTransactions = { }, getByTxId: () => { const QUERY = gql` - query GetScheduledReversibleTransactionByTxId($txId: String!) { - scheduledReversibleTransactions: scheduledReversibleTransfers( - where: { txId_eq: $txId } + query GetScheduledReversibleTransactionByTxId($tx_id: String!) { + scheduledReversibleTransactions: scheduled_reversible_transfer( + where: { tx_id: { _eq: $tx_id } } ) { extrinsic { id @@ -187,8 +184,8 @@ export const scheduledReversibleTransactions = { } amount timestamp - scheduledAt - txId + scheduled_at + tx_id fee block { height @@ -205,13 +202,13 @@ export const scheduledReversibleTransactions = { return { useQuery: ( - txId: string, + tx_id: string, config?: QueryHookOptions ) => useQuery(QUERY, { ...config, variables: { - txId + tx_id } }) }; diff --git a/src/api/search.tsx b/src/api/search.tsx index 32e0673..a925bfb 100644 --- a/src/api/search.tsx +++ b/src/api/search.tsx @@ -10,9 +10,9 @@ export const search = (fetcher: DataFetcher) => ({ all: () => { const SEARCH_ALL = gql` query SearchAll($keyword: String, $keyword_number: Int, $limit: Int) { - transactions: transfers( + transactions: transfer( limit: $limit - where: { extrinsic: { id_startsWith: $keyword } } + where: { extrinsic: { id: { _ilike: $keyword } } } ) { extrinsic { id @@ -20,44 +20,46 @@ export const search = (fetcher: DataFetcher) => ({ call } } - scheduledReversibleTransactions: scheduledReversibleTransfers( + scheduledReversibleTransactions: scheduled_reversible_transfer( limit: $limit - where: { txId_startsWith: $keyword } + where: { tx_id: { _ilike: $keyword } } ) { extrinsic { id pallet call } - txId + tx_id } - executedReversibleTransactions: executedReversibleTransfers( + executedReversibleTransactions: executed_reversible_transfer( limit: $limit - where: { txId_startsWith: $keyword } + where: { tx_id: { _ilike: $keyword } } ) { - txId + tx_id } - cancelledReversibleTransactions: cancelledReversibleTransfers( + cancelledReversibleTransactions: cancelled_reversible_transfer( limit: $limit - where: { txId_startsWith: $keyword } + where: { tx_id: { _ilike: $keyword } } ) { - txId + tx_id } - accounts(limit: $limit, where: { id_startsWith: $keyword }) { + accounts: account(limit: $limit, where: { id: { _ilike: $keyword } }) { id } - blocks( + blocks: block( limit: $limit where: { - hash_startsWith: $keyword - OR: { height_eq: $keyword_number } + _or: [ + { hash: { _ilike: $keyword } } + { height: { _eq: $keyword_number } } + ] } ) { height } - highSecuritySets( + highSecuritySets: high_security_set( limit: $limit - where: { extrinsic: { id_startsWith: $keyword } } + where: { extrinsic: { id: { _ilike: $keyword } } } ) { extrinsic { id @@ -65,9 +67,9 @@ export const search = (fetcher: DataFetcher) => ({ call } } - minerRewards( + minerRewards: miner_reward( limit: $limit - where: { block: { hash_startsWith: $keyword } } + where: { block: { hash: { _ilike: $keyword } } } ) { block { height @@ -79,11 +81,13 @@ export const search = (fetcher: DataFetcher) => ({ } timestamp } - errorEvents( + errorEvents: error_event( limit: $limit where: { - errorType_containsInsensitive: $keyword - OR: { errorName_containsInsensitive: $keyword } + _or: [ + { error_type: { _ilike: $keyword } } + { error_name: { _ilike: $keyword } } + ] } ) { extrinsic { diff --git a/src/api/transactions.tsx b/src/api/transactions.tsx index ed0b7cf..d3fb818 100644 --- a/src/api/transactions.tsx +++ b/src/api/transactions.tsx @@ -3,11 +3,10 @@ import { gql, useQuery } from '@apollo/client'; import { endOfToday } from 'date-fns/endOfToday'; import { startOfToday } from 'date-fns/startOfToday'; -import type { TransferWhereInput } from '@/__generated__/graphql'; +import type { Transfer_Bool_Exp } from '@/__generated__/graphql'; import { QUERY_DEFAULT_LIMIT } from '@/constants/query-default-limit'; import { QUERY_RECENT_LIMIT } from '@/constants/query-recent-limit'; import type { TransactionSorts } from '@/constants/query-sorts'; -import { TRANSACTION_SORTS } from '@/constants/query-sorts'; import type { ExtrinsicDetailResponse, RecentTransactionsResponse, @@ -20,20 +19,20 @@ export const transactions = { useGetAll: ( config?: QueryHookOptions< TransactionListResponse, - PaginatedQueryVariables + PaginatedQueryVariables > ) => { const GET_TRANSACTIONS = gql` query GetTransactions( $limit: Int $offset: Int - $orderBy: [TransferOrderByInput!] - $where: TransferWhereInput + $orderBy: [transfer_order_by!] + $where: transfer_bool_exp ) { - transactions: transfers( + transactions: transfer( limit: $limit offset: $offset - orderBy: $orderBy + order_by: $orderBy where: $where ) { fee @@ -54,23 +53,28 @@ export const transactions = { id } } - meta: transfersConnection(orderBy: id_ASC, where: $where) { - totalCount + meta: transfer_aggregate(where: $where) { + aggregate { + totalCount: count + } } } `; return useQuery< TransactionListResponse, - PaginatedQueryVariables + PaginatedQueryVariables >(GET_TRANSACTIONS, { ...config, variables: { - orderBy: config?.variables?.orderBy ?? TRANSACTION_SORTS.timestamp.DESC, + orderBy: config?.variables?.orderBy ?? { timestamp: 'desc' }, limit: config?.variables?.limit ?? QUERY_DEFAULT_LIMIT, offset: config?.variables?.offset ?? 0, where: { - AND: [{ extrinsic_isNull: false }, { ...config?.variables?.where }] + _and: [ + { extrinsic_id: { _is_null: false } }, + { ...config?.variables?.where } + ] } } }); @@ -82,13 +86,13 @@ export const transactions = { query GetRecentTransactions( $limit: Int $offset: Int - $orderBy: [TransferOrderByInput!] - $where: TransferWhereInput + $orderBy: [transfer_order_by!] + $where: transfer_bool_exp ) { - transactions: transfers( + transactions: transfer( limit: $limit offset: $offset - orderBy: $orderBy + order_by: $orderBy where: $where ) { fee @@ -114,13 +118,13 @@ export const transactions = { return useQuery< RecentTransactionsResponse, - PaginatedQueryVariables + PaginatedQueryVariables >(GET_RECENT_TRANSACTIONS, { ...config, variables: { - orderBy: TRANSACTION_SORTS.timestamp.DESC, + orderBy: { timestamp: 'desc' }, limit: QUERY_RECENT_LIMIT, - where: { extrinsic_isNull: false } + where: { extrinsic_id: { _is_null: false } } } }); }, @@ -131,28 +135,22 @@ export const transactions = { const endDate = endOfToday().toISOString(); const GET_TRANSACTIONS_STATS = gql` - query GetTransactionsStats($startDate: DateTime!, $endDate: DateTime!) { - last24Hour: transfersConnection( - orderBy: id_ASC + query GetTransactionsStats( + $startDate: timestamptz! + $endDate: timestamptz! + ) { + last24Hour: transfer_aggregate( where: { - timestamp_gte: $startDate - timestamp_lte: $endDate - extrinsic_isNull: false + timestamp: { _gte: $startDate, _lte: $endDate } + extrinsic_id: { _is_null: false } } ) { - totalCount - } - allTime: transfersConnection( - orderBy: id_ASC - where: { extrinsic_isNull: false } - ) { - totalCount + aggregate { + totalCount: count + } } - allTime: transfersConnection( - orderBy: id_ASC - where: { extrinsic_isNull: false } - ) { - totalCount + allTime: chain_stats_by_pk(id: "global") { + total_immediate_transfers } } `; @@ -168,14 +166,14 @@ export const transactions = { getByHash: () => { const QUERY = gql` query GetExtrinsicByHash($hash: String!) { - extrinsics(where: { id_eq: $hash }) { + extrinsics: extrinsic(where: { id: { _eq: $hash } }) { id pallet call success fee timestamp - indexInBlock + index_in_block signer { id } @@ -183,9 +181,9 @@ export const transactions = { height } } - transfers( - where: { extrinsic: { id_eq: $hash } } - orderBy: timestamp_ASC + transfers: transfer( + where: { extrinsic: { id: { _eq: $hash } } } + order_by: { timestamp: asc } ) { id amount diff --git a/src/api/wormhole.tsx b/src/api/wormhole.tsx index 2580440..f02f19a 100644 --- a/src/api/wormhole.tsx +++ b/src/api/wormhole.tsx @@ -1,11 +1,8 @@ import { gql, useQuery } from '@apollo/client'; -import type { WormholeExtrinsicWhereInput } from '@/__generated__/graphql'; +import type { Wormhole_Extrinsic_Bool_Exp } from '@/__generated__/graphql'; import { DATA_POOL_INTERVAL } from '@/constants/data-pool-interval'; -import { - WORMHOLE_EXTRINSIC_SORTS, - type WormholeExtrinsicSorts -} from '@/constants/query-sorts'; +import { type WormholeExtrinsicSorts } from '@/constants/query-sorts'; import type { DepositPoolStatsResponse, WormholeExtrinsicListResponse, @@ -17,13 +14,13 @@ const GET_WORMHOLE_EXTRINSICS = gql` query GetWormholeExtrinsics( $limit: Int $offset: Int - $orderBy: [WormholeExtrinsicOrderByInput!]! - $where: WormholeExtrinsicWhereInput + $orderBy: [wormhole_extrinsic_order_by!]! + $where: wormhole_extrinsic_bool_exp ) { - wormholeExtrinsics( + wormholeExtrinsics: wormhole_extrinsic( limit: $limit offset: $offset - orderBy: $orderBy + order_by: $orderBy where: $where ) { id @@ -32,39 +29,41 @@ const GET_WORMHOLE_EXTRINSICS = gql` pallet call } - totalAmount - outputCount + total_amount + output_count timestamp - privacyScore - privacyLabel + privacy_score + privacy_label block { height } } - meta: wormholeExtrinsicsConnection(orderBy: id_ASC) { - totalCount + meta: wormhole_extrinsic_aggregate(where: $where) { + aggregate { + totalCount: count + } } } `; const GET_WORMHOLE_EXTRINSIC_BY_ID = gql` query GetWormholeExtrinsicById($id: String!) { - wormholeExtrinsicById(id: $id) { + wormholeExtrinsicById: wormhole_extrinsic_by_pk(id: $id) { id extrinsic { id pallet call } - totalAmount - outputCount + total_amount + output_count timestamp - privacyScore - privacyScore01Pct - privacyScore1Pct - privacyScore5Pct - privacyLabel - poolSnapshot + privacy_score + privacy_score01_pct + privacy_score1_pct + privacy_score5_pct + privacy_label + pool_snapshot block { id height @@ -79,19 +78,19 @@ const GET_WORMHOLE_EXTRINSIC_BY_ID = gql` amount } } - wormholeNullifiers( - where: { wormholeExtrinsic: { extrinsic: { id_eq: $id } } } + wormholeNullifiers: wormhole_nullifier( + where: { wormholeExtrinsic: { id: { _eq: $id } } } ) { nullifier - nullifierHash + nullifier_hash } } `; const GET_DEPOSIT_POOL_STATS = gql` query GetDepositPoolStats { - depositPoolStatsById(id: "global") { - lastUpdatedBlock + depositPoolStatsById: deposit_pool_stats_by_pk(id: "global") { + last_updated_block buckets } } @@ -102,18 +101,18 @@ export const wormhole = { pollInterval?: number; variables?: PaginatedQueryVariables< WormholeExtrinsicSorts, - WormholeExtrinsicWhereInput + Wormhole_Extrinsic_Bool_Exp >; }) => { const { pollInterval = DATA_POOL_INTERVAL, variables = {} } = config ?? {}; const { - orderBy = WORMHOLE_EXTRINSIC_SORTS.timestamp.DESC, + orderBy = { timestamp: 'desc' }, limit = 25, offset = 0, where } = variables as PaginatedQueryVariables< WormholeExtrinsicSorts, - WormholeExtrinsicWhereInput + Wormhole_Extrinsic_Bool_Exp >; return useQuery(GET_WORMHOLE_EXTRINSICS, { diff --git a/src/components/common/network-provider/network-provider.tsx b/src/components/common/network-provider/network-provider.tsx index 9ee6996..4654012 100644 --- a/src/components/common/network-provider/network-provider.tsx +++ b/src/components/common/network-provider/network-provider.tsx @@ -4,11 +4,11 @@ const ENABLE_LOCAL_NETWORK = import.meta.env.VITE_ENABLE_LOCAL_NETWORK === 'true'; const BASE_NETWORKS = { - planck: 'https://subsquid.quantus.com/blue/graphql' + planck: 'https://sub2.quantus.com/v1/graphql' } as const; const LOCAL_NETWORK = { - local: 'http://localhost:4350/graphql' + local: 'http://localhost:8080/v1/graphql' } as const; export const NETWORKS: Record = ENABLE_LOCAL_NETWORK diff --git a/src/components/common/table-columns/ACCOUNT_CANCELLED_REVERSIBLE_COLUMNS.tsx b/src/components/common/table-columns/ACCOUNT_CANCELLED_REVERSIBLE_COLUMNS.tsx index 06bdd33..88c4904 100644 --- a/src/components/common/table-columns/ACCOUNT_CANCELLED_REVERSIBLE_COLUMNS.tsx +++ b/src/components/common/table-columns/ACCOUNT_CANCELLED_REVERSIBLE_COLUMNS.tsx @@ -10,12 +10,12 @@ const columnHelper = createColumnHelper(); export const ACCOUNT_CANCELLED_REVERSIBLE_COLUMNS = [ - columnHelper.accessor('node.scheduledTransfer.txId', { + columnHelper.accessor('node.scheduledTransfer.tx_id', { id: 'tx-id', header: 'Tx ID', cell: (props) => ( diff --git a/src/components/common/table-columns/ACCOUNT_EXECUTED_REVERSIBLE_COLUMNS.tsx b/src/components/common/table-columns/ACCOUNT_EXECUTED_REVERSIBLE_COLUMNS.tsx index 03f3f2a..2cca26d 100644 --- a/src/components/common/table-columns/ACCOUNT_EXECUTED_REVERSIBLE_COLUMNS.tsx +++ b/src/components/common/table-columns/ACCOUNT_EXECUTED_REVERSIBLE_COLUMNS.tsx @@ -9,12 +9,12 @@ import { formatMonetaryValue, formatTxAddress } from '@/utils/formatter'; const columnHelper = createColumnHelper(); export const ACCOUNT_EXECUTED_REVERSIBLE_COLUMNS = [ - columnHelper.accessor('node.scheduledTransfer.txId', { + columnHelper.accessor('node.scheduledTransfer.tx_id', { id: 'tx-id', header: 'Tx ID', cell: (props) => ( diff --git a/src/components/common/table-columns/ACCOUNT_MINER_REWARDS_COLUMNS.tsx b/src/components/common/table-columns/ACCOUNT_MINER_REWARDS_COLUMNS.tsx index 5ad2f7e..6bbb7a8 100644 --- a/src/components/common/table-columns/ACCOUNT_MINER_REWARDS_COLUMNS.tsx +++ b/src/components/common/table-columns/ACCOUNT_MINER_REWARDS_COLUMNS.tsx @@ -16,6 +16,7 @@ export const ACCOUNT_MINER_REWARDS_COLUMNS = [ ), enableSorting: true @@ -27,6 +28,7 @@ export const ACCOUNT_MINER_REWARDS_COLUMNS = [ ), enableSorting: true @@ -38,6 +40,7 @@ export const ACCOUNT_MINER_REWARDS_COLUMNS = [ ), enableSorting: false diff --git a/src/components/common/table-columns/ACCOUNT_SCHEDULED_REVERSIBLE_COLUMNS.tsx b/src/components/common/table-columns/ACCOUNT_SCHEDULED_REVERSIBLE_COLUMNS.tsx index 3b4a9e3..6e56fa3 100644 --- a/src/components/common/table-columns/ACCOUNT_SCHEDULED_REVERSIBLE_COLUMNS.tsx +++ b/src/components/common/table-columns/ACCOUNT_SCHEDULED_REVERSIBLE_COLUMNS.tsx @@ -10,12 +10,12 @@ const columnHelper = createColumnHelper(); export const ACCOUNT_SCHEDULED_REVERSIBLE_COLUMNS = [ - columnHelper.accessor('node.txId', { + columnHelper.accessor('node.tx_id', { id: 'tx-id', header: 'Tx ID', cell: (props) => ( @@ -40,7 +40,7 @@ export const ACCOUNT_SCHEDULED_REVERSIBLE_COLUMNS = [ cell: (props) => , enableSorting: true }), - columnHelper.accessor('node.scheduledAt', { + columnHelper.accessor('node.scheduled_at', { id: 'scheduledAt', header: 'Scheduled At', cell: (props) => , diff --git a/src/components/common/table-columns/BLOCK_CANCELLED_REVERSIBLE_COLUMNS.tsx b/src/components/common/table-columns/BLOCK_CANCELLED_REVERSIBLE_COLUMNS.tsx index 0476f16..1e0bf70 100644 --- a/src/components/common/table-columns/BLOCK_CANCELLED_REVERSIBLE_COLUMNS.tsx +++ b/src/components/common/table-columns/BLOCK_CANCELLED_REVERSIBLE_COLUMNS.tsx @@ -9,7 +9,7 @@ import { formatMonetaryValue, formatTxAddress } from '@/utils/formatter'; const columnHelper = createColumnHelper(); export const BLOCK_CANCELLED_REVERSIBLE_COLUMNS = [ - columnHelper.accessor('node.txId', { + columnHelper.accessor('node.tx_id', { id: 'tx-id', header: 'Tx ID', cell: (props) => ( diff --git a/src/components/common/table-columns/BLOCK_ERROR_EVENT_COLUMNS.tsx b/src/components/common/table-columns/BLOCK_ERROR_EVENT_COLUMNS.tsx index a1173df..714978e 100644 --- a/src/components/common/table-columns/BLOCK_ERROR_EVENT_COLUMNS.tsx +++ b/src/components/common/table-columns/BLOCK_ERROR_EVENT_COLUMNS.tsx @@ -41,13 +41,13 @@ export const BLOCK_ERROR_EVENT_COLUMNS = [ cell: (props) => , enableSorting: true }), - columnHelper.accessor('node.errorType', { + columnHelper.accessor('node.error_type', { id: 'errorType', header: 'Type', cell: (props) => props.getValue(), enableSorting: true }), - columnHelper.accessor('node.errorName', { + columnHelper.accessor('node.error_name', { id: 'errorName', header: 'Name', cell: (props) => props.getValue() ?? '-', diff --git a/src/components/common/table-columns/BLOCK_EXECUTED_REVERSIBLE_COLUMNS.tsx b/src/components/common/table-columns/BLOCK_EXECUTED_REVERSIBLE_COLUMNS.tsx index c9343d7..74be939 100644 --- a/src/components/common/table-columns/BLOCK_EXECUTED_REVERSIBLE_COLUMNS.tsx +++ b/src/components/common/table-columns/BLOCK_EXECUTED_REVERSIBLE_COLUMNS.tsx @@ -9,7 +9,7 @@ import { formatMonetaryValue, formatTxAddress } from '@/utils/formatter'; const columnHelper = createColumnHelper(); export const BLOCK_EXECUTED_REVERSIBLE_COLUMNS = [ - columnHelper.accessor('node.txId', { + columnHelper.accessor('node.tx_id', { id: 'tx-id', header: 'Tx ID', cell: (props) => ( diff --git a/src/components/common/table-columns/BLOCK_SCHEDULED_REVERSIBLE_COLUMNS.tsx b/src/components/common/table-columns/BLOCK_SCHEDULED_REVERSIBLE_COLUMNS.tsx index c410bfe..b4a1bfb 100644 --- a/src/components/common/table-columns/BLOCK_SCHEDULED_REVERSIBLE_COLUMNS.tsx +++ b/src/components/common/table-columns/BLOCK_SCHEDULED_REVERSIBLE_COLUMNS.tsx @@ -9,7 +9,7 @@ import { formatMonetaryValue, formatTxAddress } from '@/utils/formatter'; const columnHelper = createColumnHelper(); export const BLOCK_SCHEDULED_REVERSIBLE_COLUMNS = [ - columnHelper.accessor('node.txId', { + columnHelper.accessor('node.tx_id', { id: 'tx-id', header: 'Tx ID', cell: (props) => ( @@ -27,7 +27,7 @@ export const BLOCK_SCHEDULED_REVERSIBLE_COLUMNS = [ cell: (props) => , enableSorting: true }), - columnHelper.accessor('node.scheduledAt', { + columnHelper.accessor('node.scheduled_at', { id: 'scheduledAt', header: 'Scheduled At', cell: (props) => , diff --git a/src/components/common/table-columns/CANCELLED_REVERSIBLE_TRANSACTION_COLUMNS.tsx b/src/components/common/table-columns/CANCELLED_REVERSIBLE_TRANSACTION_COLUMNS.tsx index 26d7ffa..01fe0e1 100644 --- a/src/components/common/table-columns/CANCELLED_REVERSIBLE_TRANSACTION_COLUMNS.tsx +++ b/src/components/common/table-columns/CANCELLED_REVERSIBLE_TRANSACTION_COLUMNS.tsx @@ -9,7 +9,7 @@ import { formatMonetaryValue, formatTxAddress } from '@/utils/formatter'; const columnHelper = createColumnHelper(); export const CANCELLED_REVERSIBLE_TRANSACTION_COLUMNS = [ - columnHelper.accessor('txId', { + columnHelper.accessor('node.tx_id', { id: 'tx-id', header: 'Tx ID', cell: (props) => ( @@ -21,7 +21,7 @@ export const CANCELLED_REVERSIBLE_TRANSACTION_COLUMNS = [ ), enableSorting: false }), - columnHelper.accessor('block.height', { + columnHelper.accessor('node.block.height', { id: 'block_height', header: 'Block', cell: (props) => ( @@ -32,13 +32,13 @@ export const CANCELLED_REVERSIBLE_TRANSACTION_COLUMNS = [ ), enableSorting: true }), - columnHelper.accessor('timestamp', { + columnHelper.accessor('node.timestamp', { id: 'timestamp', header: 'Timestamp', cell: (props) => , enableSorting: true }), - columnHelper.accessor('cancelledBy.id', { + columnHelper.accessor('node.cancelledBy.id', { id: 'cancelledBy', header: 'Cancelled By', cell: (props) => ( @@ -50,7 +50,7 @@ export const CANCELLED_REVERSIBLE_TRANSACTION_COLUMNS = [ ), enableSorting: false }), - columnHelper.accessor('scheduledTransfer.from.id', { + columnHelper.accessor('node.scheduledTransfer.from.id', { id: 'from', header: 'From', cell: (props) => ( @@ -62,7 +62,7 @@ export const CANCELLED_REVERSIBLE_TRANSACTION_COLUMNS = [ ), enableSorting: false }), - columnHelper.accessor('scheduledTransfer.to.id', { + columnHelper.accessor('node.scheduledTransfer.to.id', { id: 'to', header: 'To', cell: (props) => ( @@ -74,7 +74,7 @@ export const CANCELLED_REVERSIBLE_TRANSACTION_COLUMNS = [ ), enableSorting: false }), - columnHelper.accessor('scheduledTransfer.amount', { + columnHelper.accessor('node.scheduledTransfer.amount', { id: 'amount', header: 'Amount', cell: (props) => formatMonetaryValue(props.getValue(), 5), diff --git a/src/components/common/table-columns/ERROR_EVENT_COLUMNS.tsx b/src/components/common/table-columns/ERROR_EVENT_COLUMNS.tsx index c071046..50b9a56 100644 --- a/src/components/common/table-columns/ERROR_EVENT_COLUMNS.tsx +++ b/src/components/common/table-columns/ERROR_EVENT_COLUMNS.tsx @@ -9,7 +9,7 @@ import { formatTxAddress } from '@/utils/formatter'; const columnHelper = createColumnHelper(); export const ERROR_EVENT_COLUMNS = [ - columnHelper.accessor('extrinsic.id', { + columnHelper.accessor('node.extrinsic.id', { id: 'extrinsicHash', header: 'Extrinsic Hash', cell: (props) => @@ -24,7 +24,7 @@ export const ERROR_EVENT_COLUMNS = [ ), enableSorting: false }), - columnHelper.accessor('block.height', { + columnHelper.accessor('node.block.height', { id: 'block_height', header: 'Block', cell: (props) => ( @@ -35,19 +35,19 @@ export const ERROR_EVENT_COLUMNS = [ ), enableSorting: true }), - columnHelper.accessor('timestamp', { + columnHelper.accessor('node.timestamp', { id: 'timestamp', header: 'Timestamp', cell: (props) => , enableSorting: true }), - columnHelper.accessor('errorType', { + columnHelper.accessor('node.error_type', { id: 'errorType', header: 'Type', cell: (props) => props.getValue(), enableSorting: true }), - columnHelper.accessor('errorName', { + columnHelper.accessor('node.error_name', { id: 'errorName', header: 'Name', cell: (props) => props.getValue() ?? '-', diff --git a/src/components/common/table-columns/EXECUTED_REVERSIBLE_TRANSACTION_COLUMNS.tsx b/src/components/common/table-columns/EXECUTED_REVERSIBLE_TRANSACTION_COLUMNS.tsx index f6c9b12..53d3f23 100644 --- a/src/components/common/table-columns/EXECUTED_REVERSIBLE_TRANSACTION_COLUMNS.tsx +++ b/src/components/common/table-columns/EXECUTED_REVERSIBLE_TRANSACTION_COLUMNS.tsx @@ -9,7 +9,7 @@ import { formatMonetaryValue, formatTxAddress } from '@/utils/formatter'; const columnHelper = createColumnHelper(); export const EXECUTED_REVERSIBLE_TRANSACTION_COLUMNS = [ - columnHelper.accessor('txId', { + columnHelper.accessor('node.tx_id', { id: 'tx-id', header: 'Tx ID', cell: (props) => ( @@ -21,7 +21,7 @@ export const EXECUTED_REVERSIBLE_TRANSACTION_COLUMNS = [ ), enableSorting: false }), - columnHelper.accessor('block.height', { + columnHelper.accessor('node.block.height', { id: 'block_height', header: 'Block', cell: (props) => ( @@ -32,13 +32,13 @@ export const EXECUTED_REVERSIBLE_TRANSACTION_COLUMNS = [ ), enableSorting: true }), - columnHelper.accessor('timestamp', { + columnHelper.accessor('node.timestamp', { id: 'timestamp', header: 'Timestamp', cell: (props) => , enableSorting: true }), - columnHelper.accessor('scheduledTransfer.from.id', { + columnHelper.accessor('node.scheduledTransfer.from.id', { id: 'from', header: 'From', cell: (props) => ( @@ -50,7 +50,7 @@ export const EXECUTED_REVERSIBLE_TRANSACTION_COLUMNS = [ ), enableSorting: false }), - columnHelper.accessor('scheduledTransfer.to.id', { + columnHelper.accessor('node.scheduledTransfer.to.id', { id: 'to', header: 'To', cell: (props) => ( @@ -62,7 +62,7 @@ export const EXECUTED_REVERSIBLE_TRANSACTION_COLUMNS = [ ), enableSorting: false }), - columnHelper.accessor('scheduledTransfer.amount', { + columnHelper.accessor('node.scheduledTransfer.amount', { id: 'amount', header: 'Amount', cell: (props) => formatMonetaryValue(props.getValue(), 5), diff --git a/src/components/common/table-columns/HIGH_SECURITY_SET_COLUMNS.tsx b/src/components/common/table-columns/HIGH_SECURITY_SET_COLUMNS.tsx index ec09641..bf1134f 100644 --- a/src/components/common/table-columns/HIGH_SECURITY_SET_COLUMNS.tsx +++ b/src/components/common/table-columns/HIGH_SECURITY_SET_COLUMNS.tsx @@ -9,7 +9,7 @@ import { formatDuration, formatTxAddress } from '@/utils/formatter'; const columnHelper = createColumnHelper(); export const HIGH_SECURITY_SET_COLUMNS = [ - columnHelper.accessor('extrinsic.id', { + columnHelper.accessor('node.extrinsic.id', { id: 'tx-hash', header: 'Hash', cell: (props) => @@ -24,7 +24,7 @@ export const HIGH_SECURITY_SET_COLUMNS = [ ), enableSorting: false }), - columnHelper.accessor('block.height', { + columnHelper.accessor('node.block.height', { id: 'block_height', header: 'Block', cell: (props) => ( @@ -35,13 +35,13 @@ export const HIGH_SECURITY_SET_COLUMNS = [ ), enableSorting: true }), - columnHelper.accessor('timestamp', { + columnHelper.accessor('node.timestamp', { id: 'timestamp', header: 'Timestamp', cell: (props) => , enableSorting: true }), - columnHelper.accessor('who.id', { + columnHelper.accessor('node.who.id', { id: 'who', header: 'Beneficiary', cell: (props) => ( @@ -53,7 +53,7 @@ export const HIGH_SECURITY_SET_COLUMNS = [ ), enableSorting: false }), - columnHelper.accessor('interceptor.id', { + columnHelper.accessor('node.interceptor.id', { id: 'interceptor', header: 'Guardian', cell: (props) => ( @@ -65,7 +65,7 @@ export const HIGH_SECURITY_SET_COLUMNS = [ ), enableSorting: false }), - columnHelper.accessor('delay', { + columnHelper.accessor('node.delay', { id: 'delay', header: 'Reversible Time', cell: (props) => formatDuration(props.getValue()), diff --git a/src/components/common/table-columns/MINER_LEADERBOARD_COLUMNS.tsx b/src/components/common/table-columns/MINER_LEADERBOARD_COLUMNS.tsx index 44fea80..14c988a 100644 --- a/src/components/common/table-columns/MINER_LEADERBOARD_COLUMNS.tsx +++ b/src/components/common/table-columns/MINER_LEADERBOARD_COLUMNS.tsx @@ -35,13 +35,13 @@ export const MINER_LEADERBOARD_COLUMNS = [ ), enableSorting: false }), - columnHelper.accessor('totalMinedBlocks', { + columnHelper.accessor('total_mined_blocks', { id: 'total_mined_blocks', header: 'Mined Blocks', cell: (props) => props.getValue(), enableSorting: false }), - columnHelper.accessor('totalRewards', { + columnHelper.accessor('total_rewards', { id: 'total_rewards', header: 'Total Rewards', cell: (props) => formatMonetaryValue(props.getValue(), 5), diff --git a/src/components/common/table-columns/MINER_REWARD_COLUMNS.tsx b/src/components/common/table-columns/MINER_REWARD_COLUMNS.tsx index b48fc21..ad01a4b 100644 --- a/src/components/common/table-columns/MINER_REWARD_COLUMNS.tsx +++ b/src/components/common/table-columns/MINER_REWARD_COLUMNS.tsx @@ -9,7 +9,7 @@ import { formatMonetaryValue, formatTxAddress } from '@/utils/formatter'; const columnHelper = createColumnHelper(); export const MINER_REWARD_COLUMNS = [ - columnHelper.accessor('block.hash', { + columnHelper.accessor('node.block.hash', { id: 'block_hash', header: 'Hash', cell: (props) => ( @@ -20,7 +20,7 @@ export const MINER_REWARD_COLUMNS = [ ), enableSorting: true }), - columnHelper.accessor('block.height', { + columnHelper.accessor('node.block.height', { id: 'block_height', header: 'Block', cell: (props) => ( @@ -31,7 +31,7 @@ export const MINER_REWARD_COLUMNS = [ ), enableSorting: true }), - columnHelper.accessor('miner.id', { + columnHelper.accessor('node.miner.id', { id: 'miner', header: 'Mined by', cell: (props) => ( @@ -42,13 +42,13 @@ export const MINER_REWARD_COLUMNS = [ ), enableSorting: false }), - columnHelper.accessor('reward', { + columnHelper.accessor('node.reward', { id: 'reward', header: 'Reward', cell: (props) => formatMonetaryValue(props.getValue()), enableSorting: true }), - columnHelper.accessor('timestamp', { + columnHelper.accessor('node.timestamp', { id: 'timestamp', header: 'Timestamp', cell: (props) => , diff --git a/src/components/common/table-columns/SCHEDULED_REVERSIBLE_TRANSACTION_COLUMNS.tsx b/src/components/common/table-columns/SCHEDULED_REVERSIBLE_TRANSACTION_COLUMNS.tsx index b89d573..073bcac 100644 --- a/src/components/common/table-columns/SCHEDULED_REVERSIBLE_TRANSACTION_COLUMNS.tsx +++ b/src/components/common/table-columns/SCHEDULED_REVERSIBLE_TRANSACTION_COLUMNS.tsx @@ -9,7 +9,7 @@ import { formatMonetaryValue, formatTxAddress } from '@/utils/formatter'; const columnHelper = createColumnHelper(); export const SCHEDULED_REVERSIBLE_TRANSACTION_COLUMNS = [ - columnHelper.accessor('txId', { + columnHelper.accessor('node.tx_id', { id: 'tx-id', header: 'Tx ID', cell: (props) => ( @@ -21,7 +21,7 @@ export const SCHEDULED_REVERSIBLE_TRANSACTION_COLUMNS = [ ), enableSorting: false }), - columnHelper.accessor('block.height', { + columnHelper.accessor('node.block.height', { id: 'block_height', header: 'Block', cell: (props) => ( @@ -32,19 +32,19 @@ export const SCHEDULED_REVERSIBLE_TRANSACTION_COLUMNS = [ ), enableSorting: true }), - columnHelper.accessor('timestamp', { + columnHelper.accessor('node.timestamp', { id: 'timestamp', header: 'Timestamp', cell: (props) => , enableSorting: true }), - columnHelper.accessor('scheduledAt', { - id: 'scheduledAt', + columnHelper.accessor('node.scheduled_at', { + id: 'scheduled_at', header: 'Scheduled At', cell: (props) => , enableSorting: true }), - columnHelper.accessor('from.id', { + columnHelper.accessor('node.from.id', { id: 'from', header: 'From', cell: (props) => ( @@ -56,7 +56,7 @@ export const SCHEDULED_REVERSIBLE_TRANSACTION_COLUMNS = [ ), enableSorting: false }), - columnHelper.accessor('to.id', { + columnHelper.accessor('node.to.id', { id: 'to', header: 'To', cell: (props) => ( @@ -68,7 +68,7 @@ export const SCHEDULED_REVERSIBLE_TRANSACTION_COLUMNS = [ ), enableSorting: false }), - columnHelper.accessor('amount', { + columnHelper.accessor('node.amount', { id: 'amount', header: 'Amount', cell: (props) => formatMonetaryValue(props.getValue(), 5), diff --git a/src/components/common/table-columns/TRANSACTION_COLUMNS.tsx b/src/components/common/table-columns/TRANSACTION_COLUMNS.tsx index a056847..e0feb45 100644 --- a/src/components/common/table-columns/TRANSACTION_COLUMNS.tsx +++ b/src/components/common/table-columns/TRANSACTION_COLUMNS.tsx @@ -9,7 +9,7 @@ import { formatMonetaryValue, formatTxAddress } from '@/utils/formatter'; const columnHelper = createColumnHelper(); export const TRANSACTION_COLUMNS = [ - columnHelper.accessor('extrinsic.id', { + columnHelper.accessor('node.extrinsic.id', { id: 'tx-hash', header: 'Hash', cell: (props) => @@ -24,7 +24,7 @@ export const TRANSACTION_COLUMNS = [ ), enableSorting: false }), - columnHelper.accessor('block.height', { + columnHelper.accessor('node.block.height', { id: 'block_height', header: 'Block', cell: (props) => ( @@ -35,13 +35,13 @@ export const TRANSACTION_COLUMNS = [ ), enableSorting: true }), - columnHelper.accessor('timestamp', { + columnHelper.accessor('node.timestamp', { id: 'timestamp', header: 'Timestamp', cell: (props) => , enableSorting: true }), - columnHelper.accessor('from.id', { + columnHelper.accessor('node.from.id', { id: 'from', header: 'From', cell: (props) => ( @@ -53,7 +53,7 @@ export const TRANSACTION_COLUMNS = [ ), enableSorting: false }), - columnHelper.accessor('to.id', { + columnHelper.accessor('node.to.id', { id: 'to', header: 'To', cell: (props) => ( @@ -65,13 +65,13 @@ export const TRANSACTION_COLUMNS = [ ), enableSorting: false }), - columnHelper.accessor('amount', { + columnHelper.accessor('node.amount', { id: 'amount', header: 'Amount', cell: (props) => formatMonetaryValue(props.getValue(), 5), enableSorting: true }), - columnHelper.accessor('fee', { + columnHelper.accessor('node.fee', { id: 'fee', header: 'Fee', cell: (props) => formatMonetaryValue(props.getValue(), 5), diff --git a/src/components/common/table-columns/WORMHOLE_OUTPUT_COLUMNS.tsx b/src/components/common/table-columns/WORMHOLE_OUTPUT_COLUMNS.tsx index 48ac705..67bc046 100644 --- a/src/components/common/table-columns/WORMHOLE_OUTPUT_COLUMNS.tsx +++ b/src/components/common/table-columns/WORMHOLE_OUTPUT_COLUMNS.tsx @@ -27,25 +27,25 @@ export const WORMHOLE_EXTRINSIC_COLUMNS = [ }, enableSorting: false }), - columnHelper.accessor('totalAmount', { + columnHelper.accessor('total_amount', { id: 'total_amount', header: 'Total Amount', cell: (props) => formatMonetaryValue(Number(props.getValue())), enableSorting: true }), - columnHelper.accessor('outputCount', { + columnHelper.accessor('output_count', { id: 'output_count', header: 'Outputs', cell: (props) => props.getValue(), enableSorting: false }), - columnHelper.accessor('privacyScore', { + columnHelper.accessor('privacy_score', { id: 'privacy_score', header: 'Privacy', cell: (props) => ( ), enableSorting: true diff --git a/src/components/features/account-details/account-all-transactions/hook.tsx b/src/components/features/account-details/account-all-transactions/hook.tsx index 1d904b6..69f3a3f 100644 --- a/src/components/features/account-details/account-all-transactions/hook.tsx +++ b/src/components/features/account-details/account-all-transactions/hook.tsx @@ -10,13 +10,19 @@ import { createUnifiedTransactionColumns } from '@/components/common/table-colum import { QUERY_DEFAULT_LIMIT } from '@/constants/query-default-limit'; import { sortByTimestampDesc, + transformCancelledTransaction, + transformExecutedTransaction, transformHighSecuritySet, transformImmediateTransaction, transformMinerReward, - transformReversibleTransaction, + transformScheduledTransaction, transformWormholeOutput } from '@/hooks/useUnifiedTransactions'; -import type { AccountResponse, UnifiedTransaction } from '@/schemas'; +import type { + AccountResponse, + HighSecuritySet, + UnifiedTransaction +} from '@/schemas'; // Account page shows block column const columns = createUnifiedTransactionColumns({ showBlockColumn: true }); @@ -37,51 +43,64 @@ export const useAccountAllTransactions = ( const unified: UnifiedTransaction[] = []; // Add immediate transactions - data.transactions?.edges?.forEach((edge, idx) => { - unified.push(transformImmediateTransaction(edge.node, idx)); - }); - - // Add reversible transactions - data.scheduledReversibleTransactions?.edges?.forEach((edge, idx) => { - unified.push(transformReversibleTransaction(edge.node, idx)); - }); + data.accountEvents?.forEach((event, idx) => { + if (event.transfer) { + unified.push(transformImmediateTransaction(event.transfer, idx)); + } + if (event.scheduledReversibleTransfer) { + unified.push( + transformScheduledTransaction(event.scheduledReversibleTransfer) + ); + } + if (event.executedReversibleTransfer) { + unified.push( + transformExecutedTransaction(event.executedReversibleTransfer) + ); + } + if (event.cancelledReversibleTransfer) { + unified.push( + transformCancelledTransaction(event.cancelledReversibleTransfer) + ); + } - // Add miner rewards - data.minerRewards?.edges?.forEach((edge, idx) => { - unified.push(transformMinerReward(edge.node, idx)); + if (event.minerReward) { + unified.push(transformMinerReward(event.minerReward, idx)); + } }); // Add guardian relationships (as high-security type) - data.guardian?.edges?.forEach((edge, idx) => { - const guardian = edge.node; + data.guardian?.nodes?.forEach((guardian, idx) => { unified.push( transformHighSecuritySet( { - timestamp: (guardian as { timestamp?: string }).timestamp ?? '', - block: (guardian as { block?: { height: number } }).block ?? { - height: 0 - }, - who: { id: '' }, // Guardian view doesn't have who (it's the current account) - interceptor: guardian.interceptor - }, + node: { + timestamp: (guardian as any).timestamp ?? '', + block: (guardian as any).block ?? { + height: 0 + }, + who: { id: '' }, // Guardian view doesn't have who (it's the current account) + interceptor: guardian.node.interceptor + } + } as HighSecuritySet, idx ) ); }); // Add beneficiary relationships (as high-security type) - data.beneficiaries?.edges?.forEach((edge, idx) => { - const beneficiary = edge.node; + data.beneficiaries?.nodes?.forEach((beneficiary, idx) => { unified.push( transformHighSecuritySet( { - timestamp: (beneficiary as { timestamp?: string }).timestamp ?? '', - block: (beneficiary as { block?: { height: number } }).block ?? { - height: 0 - }, - who: beneficiary.who, - interceptor: { id: '' } // Beneficiary view doesn't have interceptor (it's the current account) - }, + node: { + timestamp: (beneficiary as any).timestamp ?? '', + block: (beneficiary as any).block ?? { + height: 0 + }, + who: beneficiary.node.who, + interceptor: { id: '' } // Beneficiary view doesn't have interceptor (it's the current account) + } + } as HighSecuritySet, idx ) ); diff --git a/src/components/features/account-details/account-beneficiaries/AccountBeneficiaries.tsx b/src/components/features/account-details/account-beneficiaries/AccountBeneficiaries.tsx index 5bfba36..3fb2e9e 100644 --- a/src/components/features/account-details/account-beneficiaries/AccountBeneficiaries.tsx +++ b/src/components/features/account-details/account-beneficiaries/AccountBeneficiaries.tsx @@ -30,13 +30,14 @@ export const AccountBeneficiaries: React.FC = ({ query, accountId }) => { }} /> - {!query.loading && query.data?.beneficiaries.totalCount !== 0 && ( - - )} + {!query.loading && + query.data?.beneficiaries.aggregate.totalCount !== 0 && ( + + )} ); }; diff --git a/src/components/features/account-details/account-beneficiaries/hook.tsx b/src/components/features/account-details/account-beneficiaries/hook.tsx index 71f8158..23ff8a1 100644 --- a/src/components/features/account-details/account-beneficiaries/hook.tsx +++ b/src/components/features/account-details/account-beneficiaries/hook.tsx @@ -12,8 +12,8 @@ export const useAccountBeneficiaries = ( const beneficiariesColumns = useMemo(() => ACCOUNT_BENEFICIARIES_COLUMNS, []); const tableData = useMemo( - () => data?.beneficiaries?.edges ?? [], - [data?.beneficiaries?.edges] + () => data?.beneficiaries?.nodes ?? [], + [data?.beneficiaries?.nodes] ); const table = useReactTable({ diff --git a/src/components/features/account-details/account-cancelled-reversible-transactions/AccountCancelledReversibleTransactions.tsx b/src/components/features/account-details/account-cancelled-reversible-transactions/AccountCancelledReversibleTransactions.tsx index 9d01730..afe8d01 100644 --- a/src/components/features/account-details/account-cancelled-reversible-transactions/AccountCancelledReversibleTransactions.tsx +++ b/src/components/features/account-details/account-cancelled-reversible-transactions/AccountCancelledReversibleTransactions.tsx @@ -35,7 +35,8 @@ export const AccountCancelledReversibleTransactions: FC = ({ /> {!query.loading && - query.data?.cancelledReversibleTransactions.totalCount !== 0 && ( + query.data?.cancelledReversibleTransactions.aggregate.totalCount !== + 0 && ( - )} + {!query.loading && + query.data?.minerRewards.aggregate.totalCount !== 0 && ( + + )} ); }; diff --git a/src/components/features/account-details/account-miner-rewards/hook.tsx b/src/components/features/account-details/account-miner-rewards/hook.tsx index 9ec9d54..33a803d 100644 --- a/src/components/features/account-details/account-miner-rewards/hook.tsx +++ b/src/components/features/account-details/account-miner-rewards/hook.tsx @@ -10,8 +10,8 @@ export const useAccountMinerRewards = (query: QueryResult) => { const minerRewardColumns = useMemo(() => ACCOUNT_MINER_REWARDS_COLUMNS, []); const tableData = useMemo( - () => data?.minerRewards?.edges ?? [], - [data?.minerRewards?.edges] + () => data?.minerRewards?.nodes ?? [], + [data?.minerRewards?.nodes] ); const table = useReactTable({ diff --git a/src/components/features/account-details/account-scheduled-reversible-transactions/AccountScheduledReversibleTransactions.tsx b/src/components/features/account-details/account-scheduled-reversible-transactions/AccountScheduledReversibleTransactions.tsx index bcf7334..bf1bdbe 100644 --- a/src/components/features/account-details/account-scheduled-reversible-transactions/AccountScheduledReversibleTransactions.tsx +++ b/src/components/features/account-details/account-scheduled-reversible-transactions/AccountScheduledReversibleTransactions.tsx @@ -35,7 +35,8 @@ export const AccountScheduledReversibleTransactions: FC = ({ /> {!query.loading && - query.data?.scheduledReversibleTransactions.totalCount !== 0 && ( + query.data?.scheduledReversibleTransactions.aggregate.totalCount !== + 0 && ( - )} + {!query.loading && + query.data?.transactions.aggregate.totalCount !== 0 && ( + + )} ); }; diff --git a/src/components/features/account-details/account-transactions/hook.tsx b/src/components/features/account-details/account-transactions/hook.tsx index 292f54a..6f1de7a 100644 --- a/src/components/features/account-details/account-transactions/hook.tsx +++ b/src/components/features/account-details/account-transactions/hook.tsx @@ -10,8 +10,8 @@ export const useAccountTransactions = (query: QueryResult) => { const transactionColumns = useMemo(() => ACCOUNT_TRANSACTION_COLUMNS, []); const tableData = useMemo( - () => data?.transactions?.edges ?? [], - [data?.transactions?.edges] + () => data?.transactions?.nodes ?? [], + [data?.transactions?.nodes] ); const table = useReactTable({ diff --git a/src/components/features/account-listing/accounts-stats/AccountsStats.tsx b/src/components/features/account-listing/accounts-stats/AccountsStats.tsx index 3b41223..17885eb 100644 --- a/src/components/features/account-listing/accounts-stats/AccountsStats.tsx +++ b/src/components/features/account-listing/accounts-stats/AccountsStats.tsx @@ -31,7 +31,7 @@ export const AccountsStats: React.FC = () => { - {success &&

{data?.all.totalCount}

} + {success &&

{data?.all.total_accounts}

} {loading && } {error &&

Error: {error.message}

}
@@ -44,7 +44,7 @@ export const AccountsStats: React.FC = () => { - {success &&

{data?.recentlyActive.totalCount}

} + {success &&

{data?.recentlyActive.aggregate.count}

} {loading && } {error &&

Error: {error.message}

}
@@ -57,7 +57,7 @@ export const AccountsStats: React.FC = () => { - {success &&

{data?.recentlyDeposited.totalCount}

} + {success &&

{data?.recentlyDeposited.aggregate.count}

} {loading && } {error &&

Error: {error.message}

}
diff --git a/src/components/features/account-listing/accounts-table/hook.tsx b/src/components/features/account-listing/accounts-table/hook.tsx index 88ce06e..591fdb3 100644 --- a/src/components/features/account-listing/accounts-table/hook.tsx +++ b/src/components/features/account-listing/accounts-table/hook.tsx @@ -1,10 +1,4 @@ -import type { - OnChangeFn, - PaginationState, - SortingState -} from '@tanstack/react-table'; import { getCoreRowModel, useReactTable } from '@tanstack/react-table'; -import { parseAsInteger, parseAsStringLiteral, useQueryState } from 'nuqs'; import { useEffect, useMemo, useState } from 'react'; import useApiClient from '@/api'; @@ -12,65 +6,26 @@ import { ACCOUNT_COLUMNS } from '@/components/common/table-columns/ACCOUNT_COLUM import { DATA_POOL_INTERVAL } from '@/constants/data-pool-interval'; import { QUERY_DEFAULT_LIMIT } from '@/constants/query-default-limit'; import type { AccountSorts } from '@/constants/query-sorts'; -import { ACCOUNT_SORTS_LITERALS } from '@/constants/query-sorts'; +import { useOrderBy } from '@/hooks/useOrderBy'; +import { useTableState } from '@/hooks/useTableState'; import type { Account } from '@/schemas'; import { transformSortLiteral } from '@/utils/transform-sort'; export const useAccountsTable = () => { const api = useApiClient(); - const [page, setPage] = useQueryState('page', parseAsInteger.withDefault(1)); - const [limit, setLimit] = useQueryState( - 'limit', - parseAsInteger.withDefault(QUERY_DEFAULT_LIMIT) - ); - const [sortBy, setSortBy] = useQueryState( - 'sortBy', - parseAsStringLiteral(ACCOUNT_SORTS_LITERALS).withDefault('lastUpdated_DESC') + const { + orderBy, + limit, + currentPageIndex, + handleChangeSorting, + handleChangePagination, + paginationValue + } = useTableState('last_updated:desc', QUERY_DEFAULT_LIMIT); + + const orderByObject = useOrderBy( + orderBy ?? 'last_updated:desc' ); - - const currentPageIndex = page - 1; - - const sortingValue: SortingState = transformSortLiteral(sortBy); - const paginationValue: PaginationState = { - pageSize: limit, - pageIndex: currentPageIndex - }; - - const handleChangeSorting: OnChangeFn = (sorting) => { - if (typeof sorting === 'function') { - const newValue = sorting(sortingValue); - - if (newValue[0]?.id) { - const key = newValue[0].id; - const order = newValue[0].desc ? 'DESC' : 'ASC'; - - const newSortBy = `${key}_${order}` as AccountSorts; - - setSortBy(newSortBy); - } else { - setSortBy(null); - } - } else if (sorting[0]?.id) { - const key = sorting[0].id; - const order = sorting[0].desc ? 'DESC' : 'ASC'; - - const newSortBy = `${key}_${order}` as AccountSorts; - - setSortBy(newSortBy); - } - }; - - const handleChangePagination: OnChangeFn = (pagination) => { - if (typeof pagination === 'function') { - const newPagination = pagination(paginationValue); - - setPage(newPagination.pageIndex + 1); - setLimit(newPagination.pageSize); - } else { - setPage(pagination.pageIndex + 1); - setLimit(pagination.pageSize); - } - }; + const sortingValue = transformSortLiteral(orderBy); const { loading, @@ -79,7 +34,7 @@ export const useAccountsTable = () => { } = api.accounts.useGetAll({ pollInterval: DATA_POOL_INTERVAL, variables: { - orderBy: sortBy, + orderBy: orderByObject, limit, offset: currentPageIndex * limit } diff --git a/src/components/features/block-details/block-cancelled-reversible-transactions/BlockCancelledReversibleTransactions.tsx b/src/components/features/block-details/block-cancelled-reversible-transactions/BlockCancelledReversibleTransactions.tsx index 464f478..0e05b26 100644 --- a/src/components/features/block-details/block-cancelled-reversible-transactions/BlockCancelledReversibleTransactions.tsx +++ b/src/components/features/block-details/block-cancelled-reversible-transactions/BlockCancelledReversibleTransactions.tsx @@ -33,7 +33,8 @@ export const BlockCancelledReversibleTransactions: React.FC = ({ /> {!query.loading && - query.data?.cancelledReversibleTransactions.totalCount !== 0 && ( + query.data?.cancelledReversibleTransactions.aggregate.totalCount !== + 0 && ( - )} + {!query.loading && + query.data?.highSecuritySets.aggregate.totalCount !== 0 && ( + + )} ); }; diff --git a/src/components/features/block-details/block-high-security-sets/hook.tsx b/src/components/features/block-details/block-high-security-sets/hook.tsx index b0a6187..8c45a62 100644 --- a/src/components/features/block-details/block-high-security-sets/hook.tsx +++ b/src/components/features/block-details/block-high-security-sets/hook.tsx @@ -10,7 +10,7 @@ export const useBlockHighSecuritySets = (query: QueryResult) => { const blockColumns = useMemo(() => BLOCK_HIGH_SECURITY_SET_COLUMNS, []); const table = useReactTable({ - data: data?.highSecuritySets?.edges ?? [], + data: data?.highSecuritySets?.nodes ?? [], columns: blockColumns, getCoreRowModel: getCoreRowModel(), enableSorting: false diff --git a/src/components/features/block-details/block-scheduled-reversible-transactions/BlockScheduledReversibleTransactions.tsx b/src/components/features/block-details/block-scheduled-reversible-transactions/BlockScheduledReversibleTransactions.tsx index f359baf..664e195 100644 --- a/src/components/features/block-details/block-scheduled-reversible-transactions/BlockScheduledReversibleTransactions.tsx +++ b/src/components/features/block-details/block-scheduled-reversible-transactions/BlockScheduledReversibleTransactions.tsx @@ -33,7 +33,8 @@ export const BlockScheduledReversibleTransactions: React.FC = ({ /> {!query.loading && - query.data?.scheduledReversibleTransactions.totalCount !== 0 && ( + query.data?.scheduledReversibleTransactions.aggregate.totalCount !== + 0 && ( - )} + {!query.loading && + query.data?.transactions.aggregate.totalCount !== 0 && ( + + )} ); }; diff --git a/src/components/features/block-details/block-transactions/hook.tsx b/src/components/features/block-details/block-transactions/hook.tsx index 8d4af68..eab0239 100644 --- a/src/components/features/block-details/block-transactions/hook.tsx +++ b/src/components/features/block-details/block-transactions/hook.tsx @@ -10,7 +10,7 @@ export const useBlockTransactions = (query: QueryResult) => { const blockColumns = useMemo(() => BLOCK_TRANSACTION_COLUMNS, []); const table = useReactTable({ - data: data?.transactions?.edges ?? [], + data: data?.transactions?.nodes ?? [], columns: blockColumns, getCoreRowModel: getCoreRowModel(), enableSorting: false diff --git a/src/components/features/block-listing/blocks-stats/BlocksStats.tsx b/src/components/features/block-listing/blocks-stats/BlocksStats.tsx index 758d349..3dd5ba6 100644 --- a/src/components/features/block-listing/blocks-stats/BlocksStats.tsx +++ b/src/components/features/block-listing/blocks-stats/BlocksStats.tsx @@ -9,7 +9,7 @@ export interface BlocksStatsProps {} export const BlocksStats: React.FC = () => { const api = useApiClient(); - const { loading, data, error } = api.chainStatus.useGetStatus({ + const { loading, data, error } = api.blocks.getStats().useQuery({ pollInterval: DATA_POOL_INTERVAL }); @@ -24,7 +24,7 @@ export const BlocksStats: React.FC = () => { - {success &&

{data?.status.height}

} + {success &&

{data?.chain.block_height}

} {loading && } {error &&

Error: {error.message}

}
@@ -37,7 +37,20 @@ export const BlocksStats: React.FC = () => { - {success &&

{data?.status.finalizedHeight}

} + {success &&

{data?.chain.finalized_block_height}

} + {loading && } + {error &&

Error: {error.message}

} +
+ + + + + +

Mined Blocks (24H)

+
+
+ + {success &&

{data?.minedIn24Hours.aggregate.totalCount}

} {loading && } {error &&

Error: {error.message}

}
diff --git a/src/components/features/block-listing/blocks-table/hook.tsx b/src/components/features/block-listing/blocks-table/hook.tsx index de39171..36911cf 100644 --- a/src/components/features/block-listing/blocks-table/hook.tsx +++ b/src/components/features/block-listing/blocks-table/hook.tsx @@ -1,10 +1,4 @@ -import type { - OnChangeFn, - PaginationState, - SortingState -} from '@tanstack/react-table'; import { getCoreRowModel, useReactTable } from '@tanstack/react-table'; -import { parseAsInteger, parseAsStringLiteral, useQueryState } from 'nuqs'; import { useEffect, useMemo, useState } from 'react'; import useApiClient from '@/api'; @@ -12,65 +6,24 @@ import { BLOCK_COLUMNS } from '@/components/common/table-columns/BLOCK_COLUMNS'; import { DATA_POOL_INTERVAL } from '@/constants/data-pool-interval'; import { QUERY_DEFAULT_LIMIT } from '@/constants/query-default-limit'; import type { BlockSorts } from '@/constants/query-sorts'; -import { BLOCK_SORTS_LITERALS } from '@/constants/query-sorts'; +import { useOrderBy } from '@/hooks/useOrderBy'; +import { useTableState } from '@/hooks/useTableState'; import type { Block } from '@/schemas'; import { transformSortLiteral } from '@/utils/transform-sort'; export const useBlocksTable = () => { const api = useApiClient(); - const [page, setPage] = useQueryState('page', parseAsInteger.withDefault(1)); - const [limit, setLimit] = useQueryState( - 'limit', - parseAsInteger.withDefault(QUERY_DEFAULT_LIMIT) - ); - const [sortBy, setSortBy] = useQueryState( - 'sortBy', - parseAsStringLiteral(BLOCK_SORTS_LITERALS) - ); - - const currentPageIndex = page - 1; - - const sortingValue: SortingState = transformSortLiteral(sortBy); - const paginationValue: PaginationState = { - pageSize: limit, - pageIndex: currentPageIndex - }; - - const handleChangeSorting: OnChangeFn = (sorting) => { - if (typeof sorting === 'function') { - const newValue = sorting(sortingValue); - - if (newValue[0]?.id) { - const key = newValue[0].id; - const order = newValue[0].desc ? 'DESC' : 'ASC'; - - const newSortBy = `${key}_${order}` as BlockSorts; - - setSortBy(newSortBy); - } else { - setSortBy(null); - } - } else if (sorting[0]?.id) { - const key = sorting[0].id; - const order = sorting[0].desc ? 'DESC' : 'ASC'; - - const newSortBy = `${key}_${order}` as BlockSorts; - - setSortBy(newSortBy); - } - }; - - const handleChangePagination: OnChangeFn = (pagination) => { - if (typeof pagination === 'function') { - const newPagination = pagination(paginationValue); + const { + orderBy, + limit, + currentPageIndex, + handleChangeSorting, + handleChangePagination, + paginationValue + } = useTableState('timestamp:desc', QUERY_DEFAULT_LIMIT); - setPage(newPagination.pageIndex + 1); - setLimit(newPagination.pageSize); - } else { - setPage(pagination.pageIndex + 1); - setLimit(pagination.pageSize); - } - }; + const orderByObject = useOrderBy(orderBy ?? 'timestamp:desc'); + const sortingValue = transformSortLiteral(orderBy); const { loading, @@ -79,7 +32,7 @@ export const useBlocksTable = () => { } = api.blocks.useGetAll({ pollInterval: DATA_POOL_INTERVAL, variables: { - orderBy: sortBy, + orderBy: orderByObject, limit, offset: currentPageIndex * limit } diff --git a/src/components/features/cancelled-reversible-transaction-details/cancelled-reversible-transaction-information/CancelledReversibleTransactionInformation.tsx b/src/components/features/cancelled-reversible-transaction-details/cancelled-reversible-transaction-information/CancelledReversibleTransactionInformation.tsx index a5d4c45..aae8734 100644 --- a/src/components/features/cancelled-reversible-transaction-details/cancelled-reversible-transaction-information/CancelledReversibleTransactionInformation.tsx +++ b/src/components/features/cancelled-reversible-transaction-details/cancelled-reversible-transaction-information/CancelledReversibleTransactionInformation.tsx @@ -29,25 +29,25 @@ export const CancelledReversibleTransactionInformation: React.FC< const tx = data?.cancelledReversibleTransactions[0]; - const information: Partial[] = [ + const information: Partial[] = [ { - txId: tx?.txId, - block: tx?.block, - timestamp: tx?.timestamp, - cancelledBy: tx?.cancelledBy, - extrinsic: tx?.extrinsic, - scheduledTransfer: tx?.scheduledTransfer + tx_id: tx?.node.tx_id, + block: tx?.node.block, + timestamp: tx?.node.timestamp, + cancelledBy: tx?.node.cancelledBy, + extrinsic: tx?.node.extrinsic, + scheduledTransfer: tx?.node.scheduledTransfer } ]; return ( - > + > loading={loading} data={information} fields={[ { label: 'ID', - key: 'txId', + key: 'tx_id', render: (value) => ( ) @@ -56,7 +56,7 @@ export const CancelledReversibleTransactionInformation: React.FC< label: 'Extrinsic Hash', key: 'extrinsic', render: (value) => ( - + ) }, { @@ -64,8 +64,8 @@ export const CancelledReversibleTransactionInformation: React.FC< key: 'block', render: (value) => ( ) @@ -73,15 +73,15 @@ export const CancelledReversibleTransactionInformation: React.FC< { label: 'Timestamp', key: 'timestamp', - render: (value) => formatTimestamp(value, true) + render: (value) => formatTimestamp(value as string, true) }, { label: 'Cancelled By', key: 'cancelledBy', render: (value) => ( ) @@ -91,8 +91,8 @@ export const CancelledReversibleTransactionInformation: React.FC< key: 'scheduledTransfer', render: (value) => ( ) @@ -102,8 +102,8 @@ export const CancelledReversibleTransactionInformation: React.FC< key: 'scheduledTransfer', render: (value) => ( ) @@ -111,12 +111,12 @@ export const CancelledReversibleTransactionInformation: React.FC< { label: 'Amount', key: 'scheduledTransfer', - render: (value) => formatMonetaryValue(value.amount) + render: (value) => formatMonetaryValue(value?.amount) }, { label: 'Fee', key: 'scheduledTransfer', - render: (value) => formatMonetaryValue(value.fee) + render: (value) => formatMonetaryValue((value as any)?.fee) } ]} /> diff --git a/src/components/features/cancelled-reversible-transaction-listing/cancelled-reversible-transactions-stats/CancelledReversibleTransactionsStats.tsx b/src/components/features/cancelled-reversible-transaction-listing/cancelled-reversible-transactions-stats/CancelledReversibleTransactionsStats.tsx index 99e93ab..f6743e8 100644 --- a/src/components/features/cancelled-reversible-transaction-listing/cancelled-reversible-transactions-stats/CancelledReversibleTransactionsStats.tsx +++ b/src/components/features/cancelled-reversible-transaction-listing/cancelled-reversible-transactions-stats/CancelledReversibleTransactionsStats.tsx @@ -34,7 +34,7 @@ export const CancelledReversibleTransactionsStats: React.FC< - {success &&

{data?.allTime.totalCount}

} + {success &&

{data?.allTime.total_cancelled_transfers}

} {loading && } {error &&

Error: {error.message}

}
@@ -47,7 +47,7 @@ export const CancelledReversibleTransactionsStats: React.FC< - {success &&

{data?.last24Hour.totalCount}

} + {success &&

{data?.last24Hour.aggregate.totalCount}

} {loading && } {error &&

Error: {error.message}

}
diff --git a/src/components/features/cancelled-reversible-transaction-listing/cancelled-reversible-transactions-table/hook.tsx b/src/components/features/cancelled-reversible-transaction-listing/cancelled-reversible-transactions-table/hook.tsx index 1e5717c..d8d0061 100644 --- a/src/components/features/cancelled-reversible-transaction-listing/cancelled-reversible-transactions-table/hook.tsx +++ b/src/components/features/cancelled-reversible-transaction-listing/cancelled-reversible-transactions-table/hook.tsx @@ -1,11 +1,5 @@ import { useSearch } from '@tanstack/react-router'; -import type { - OnChangeFn, - PaginationState, - SortingState -} from '@tanstack/react-table'; import { getCoreRowModel, useReactTable } from '@tanstack/react-table'; -import { parseAsInteger, parseAsStringLiteral, useQueryState } from 'nuqs'; import { useEffect, useMemo, useState } from 'react'; import useApiClient from '@/api'; @@ -13,7 +7,8 @@ import { CANCELLED_REVERSIBLE_TRANSACTION_COLUMNS } from '@/components/common/ta import { DATA_POOL_INTERVAL } from '@/constants/data-pool-interval'; import { QUERY_DEFAULT_LIMIT } from '@/constants/query-default-limit'; import type { CancelledReversibleTransactionSorts } from '@/constants/query-sorts'; -import { CANCELLED_REVERSIBLE_TRANSACTION_SORTS_LITERALS } from '@/constants/query-sorts'; +import { useOrderBy } from '@/hooks/useOrderBy'; +import { useTableState } from '@/hooks/useTableState'; import type { CancelledReversibleTransaction } from '@/schemas'; import { transformSortLiteral } from '@/utils/transform-sort'; @@ -23,61 +18,19 @@ export const useCancelledReversibleTransactionsTable = () => { strict: false }) as any; - const [page, setPage] = useQueryState('page', parseAsInteger.withDefault(1)); - const [limit, setLimit] = useQueryState( - 'limit', - parseAsInteger.withDefault(QUERY_DEFAULT_LIMIT) - ); - const [sortBy, setSortBy] = useQueryState( - 'sortBy', - parseAsStringLiteral(CANCELLED_REVERSIBLE_TRANSACTION_SORTS_LITERALS) + const { + orderBy, + limit, + currentPageIndex, + handleChangeSorting, + handleChangePagination, + paginationValue + } = useTableState(null, QUERY_DEFAULT_LIMIT); + + const orderByObject = useOrderBy( + orderBy ?? '' ); - - const currentPageIndex = page - 1; - - const sortingValue: SortingState = transformSortLiteral(sortBy); - const paginationValue: PaginationState = { - pageSize: limit, - pageIndex: currentPageIndex - }; - - const handleChangeSorting: OnChangeFn = (sorting) => { - if (typeof sorting === 'function') { - const newValue = sorting(sortingValue); - - if (newValue[0]?.id) { - const key = newValue[0].id; - const order = newValue[0].desc ? 'DESC' : 'ASC'; - - const newSortBy = - `${key}_${order}` as CancelledReversibleTransactionSorts; - - setSortBy(newSortBy); - } else { - setSortBy(null); - } - } else if (sorting[0]?.id) { - const key = sorting[0].id; - const order = sorting[0].desc ? 'DESC' : 'ASC'; - - const newSortBy = - `${key}_${order}` as CancelledReversibleTransactionSorts; - - setSortBy(newSortBy); - } - }; - - const handleChangePagination: OnChangeFn = (pagination) => { - if (typeof pagination === 'function') { - const newPagination = pagination(paginationValue); - - setPage(newPagination.pageIndex + 1); - setLimit(newPagination.pageSize); - } else { - setPage(pagination.pageIndex + 1); - setLimit(pagination.pageSize); - } - }; + const sortingValue = transformSortLiteral(orderBy); const { loading, @@ -86,7 +39,7 @@ export const useCancelledReversibleTransactionsTable = () => { } = api.cancelledReversibleTransactions.useGetAll({ pollInterval: DATA_POOL_INTERVAL, variables: { - orderBy: sortBy, + orderBy: orderByObject, limit, offset: currentPageIndex * limit, ...(accountId && { @@ -107,7 +60,9 @@ export const useCancelledReversibleTransactionsTable = () => { }); const columns = useMemo(() => CANCELLED_REVERSIBLE_TRANSACTION_COLUMNS, []); - const [rowCount, setRowCount] = useState(data?.meta.totalCount ?? 0); + const [rowCount, setRowCount] = useState( + data?.meta.aggregate.totalCount ?? 0 + ); const table = useReactTable({ data: data?.cancelledReversibleTransactions ?? [], @@ -141,8 +96,9 @@ export const useCancelledReversibleTransactionsTable = () => { }; useEffect(() => { - if (!loading && data?.meta.totalCount) setRowCount(data.meta.totalCount); - }, [loading, data?.meta.totalCount]); + if (!loading && data?.meta.aggregate.totalCount) + setRowCount(data.meta.aggregate.totalCount); + }, [loading, data?.meta.aggregate.totalCount]); return { table, diff --git a/src/components/features/error-event-details/error-event-information/ErrorEventInformation.tsx b/src/components/features/error-event-details/error-event-information/ErrorEventInformation.tsx index b237d69..94e4fea 100644 --- a/src/components/features/error-event-details/error-event-information/ErrorEventInformation.tsx +++ b/src/components/features/error-event-details/error-event-information/ErrorEventInformation.tsx @@ -23,74 +23,80 @@ export const ErrorEventInformation: React.FC = ({ const event = data?.errorEvents[0]; - const information: Partial[] = [ + const information: Partial[] = [ { - timestamp: event?.timestamp, - block: event?.block, - extrinsic: event?.extrinsic, - errorType: event?.errorType, - errorModule: event?.errorModule, - errorName: event?.errorName, - errorDocs: event?.errorDocs + timestamp: event?.node.timestamp, + block: event?.node.block, + extrinsic: event?.node.extrinsic, + error_type: event?.node.error_type, + error_module: event?.node.error_module, + error_name: event?.node.error_name, + error_docs: event?.node.error_docs } ]; return ( - > - loading={loading} - data={information} - fields={[ - { - label: 'Extrinsic', - key: 'extrinsic', - render: (value) => ( - - ) - }, - { - label: 'Timestamp', - key: 'timestamp', - render: (value) => formatTimestamp(value, true) - }, - { - label: 'Block', - key: 'block', - render: (value) => ( - - ) - }, - { - label: 'Error Type', - key: 'errorType' - }, - { - label: 'Error Module', - key: 'errorModule', - render: (value) => (value ? (value as string) : '-') - }, - { - label: 'Error Name', - key: 'errorName', - render: (value) => (value ? (value as string) : '-') - }, - { - label: 'Error Docs', - key: 'errorDocs', - render: (value) => - value ? ( - - ) : ( - '-' + <> +

Event Information

+ > + loading={loading} + data={information} + fields={[ + { + label: 'Extrinsic Hash', + key: 'extrinsic', + render: (value) => + (value as ErrorEvent['node']['extrinsic'])?.id ? ( + + ) : ( + '-' + ) + }, + { + label: 'Timestamp', + key: 'timestamp', + render: (value) => formatTimestamp(value as string, true) + }, + { + label: 'Block', + key: 'block', + render: (value) => ( + ) - } - ]} - /> + }, + { + label: 'Error Type', + key: 'error_type' + }, + { + label: 'Error Module', + key: 'error_module', + render: (value) => (value ? (value as string) : '-') + }, + { + label: 'Error Name', + key: 'error_name', + render: (value) => (value ? (value as string) : '-') + }, + { + label: 'Error Docs', + key: 'error_docs', + render: (value) => + value ? ( + + ) : ( + '-' + ) + } + ]} + /> + ); }; diff --git a/src/components/features/error-events-listing/error-events-heading/ErrorEventsHeading.tsx b/src/components/features/error-events-listing/error-events-heading/ErrorEventsHeading.tsx index 2b948af..21f0e02 100644 --- a/src/components/features/error-events-listing/error-events-heading/ErrorEventsHeading.tsx +++ b/src/components/features/error-events-listing/error-events-heading/ErrorEventsHeading.tsx @@ -11,14 +11,21 @@ export const ErrorEventsHeading: React.FC = () => { return (

Error Events

- - {block && ( -
+ {block ? ( +
In block - + {block}
+ ) : ( +

+ A list of all error events that occurred on the network. +

)}
); diff --git a/src/components/features/error-events-listing/error-events-stats/ErrorEventsStats.tsx b/src/components/features/error-events-listing/error-events-stats/ErrorEventsStats.tsx index dd7281c..2bc54fc 100644 --- a/src/components/features/error-events-listing/error-events-stats/ErrorEventsStats.tsx +++ b/src/components/features/error-events-listing/error-events-stats/ErrorEventsStats.tsx @@ -26,27 +26,35 @@ export const ErrorEventsStats: React.FC = () => {
- -

Total Error Events

-
+ Total Error Events
- {success &&

{data?.allTime.totalCount}

} - {loading && } - {error &&

Error: {error.message}

} + {success && ( +

+ {data?.allTime.total_error_events.toLocaleString()} +

+ )} + {loading && } + {error && ( +

Error: {error.message}

+ )}
- -

Recent Error Events (24H)

-
+ Recent Error Events (24H)
- {success &&

{data?.last24Hour.totalCount}

} - {loading && } - {error &&

Error: {error.message}

} + {success && ( +

+ {data?.last24Hour.aggregate.totalCount.toLocaleString()} +

+ )} + {loading && } + {error && ( +

Error: {error.message}

+ )}
diff --git a/src/components/features/error-events-listing/error-events-table/hook.tsx b/src/components/features/error-events-listing/error-events-table/hook.tsx index f28f75e..0c7185a 100644 --- a/src/components/features/error-events-listing/error-events-table/hook.tsx +++ b/src/components/features/error-events-listing/error-events-table/hook.tsx @@ -1,11 +1,5 @@ import { useSearch } from '@tanstack/react-router'; -import type { - OnChangeFn, - PaginationState, - SortingState -} from '@tanstack/react-table'; import { getCoreRowModel, useReactTable } from '@tanstack/react-table'; -import { parseAsInteger, parseAsStringLiteral, useQueryState } from 'nuqs'; import { useEffect, useMemo, useState } from 'react'; import useApiClient from '@/api'; @@ -13,7 +7,8 @@ import { ERROR_EVENT_COLUMNS } from '@/components/common/table-columns/ERROR_EVE import { DATA_POOL_INTERVAL } from '@/constants/data-pool-interval'; import { QUERY_DEFAULT_LIMIT } from '@/constants/query-default-limit'; import type { ErrorEventSorts } from '@/constants/query-sorts'; -import { ERROR_EVENT_SORTS_LITERALS } from '@/constants/query-sorts'; +import { useOrderBy } from '@/hooks/useOrderBy'; +import { useTableState } from '@/hooks/useTableState'; import type { ErrorEvent } from '@/schemas'; import { transformSortLiteral } from '@/utils/transform-sort'; @@ -23,59 +18,17 @@ export const useErrorEventsTable = () => { strict: false }) as any; - const [page, setPage] = useQueryState('page', parseAsInteger.withDefault(1)); - const [limit, setLimit] = useQueryState( - 'limit', - parseAsInteger.withDefault(QUERY_DEFAULT_LIMIT) - ); - const [sortBy, setSortBy] = useQueryState( - 'sortBy', - parseAsStringLiteral(ERROR_EVENT_SORTS_LITERALS) - ); - - const currentPageIndex = page - 1; - - const sortingValue: SortingState = transformSortLiteral(sortBy); - const paginationValue: PaginationState = { - pageSize: limit, - pageIndex: currentPageIndex - }; - - const handleChangeSorting: OnChangeFn = (sorting) => { - if (typeof sorting === 'function') { - const newValue = sorting(sortingValue); - - if (newValue[0]?.id) { - const key = newValue[0].id; - const order = newValue[0].desc ? 'DESC' : 'ASC'; - - const newSortBy = `${key}_${order}` as ErrorEventSorts; - - setSortBy(newSortBy); - } else { - setSortBy(null); - } - } else if (sorting[0]?.id) { - const key = sorting[0].id; - const order = sorting[0].desc ? 'DESC' : 'ASC'; - - const newSortBy = `${key}_${order}` as ErrorEventSorts; - - setSortBy(newSortBy); - } - }; - - const handleChangePagination: OnChangeFn = (pagination) => { - if (typeof pagination === 'function') { - const newPagination = pagination(paginationValue); + const { + orderBy, + limit, + currentPageIndex, + handleChangeSorting, + handleChangePagination, + paginationValue + } = useTableState(null, QUERY_DEFAULT_LIMIT); - setPage(newPagination.pageIndex + 1); - setLimit(newPagination.pageSize); - } else { - setPage(pagination.pageIndex + 1); - setLimit(pagination.pageSize); - } - }; + const orderByObject = useOrderBy(orderBy ?? ''); + const sortingValue = transformSortLiteral(orderBy); const { loading, @@ -84,7 +37,7 @@ export const useErrorEventsTable = () => { } = api.errors.useGetAll({ pollInterval: DATA_POOL_INTERVAL, variables: { - orderBy: sortBy, + orderBy: orderByObject, limit, offset: currentPageIndex * limit, ...(block && { @@ -96,7 +49,9 @@ export const useErrorEventsTable = () => { }); const errorEventColumns = useMemo(() => ERROR_EVENT_COLUMNS, []); - const [rowCount, setRowCount] = useState(data?.meta.totalCount ?? 0); + const [rowCount, setRowCount] = useState( + data?.meta.aggregate.totalCount ?? 0 + ); const table = useReactTable({ data: data?.errorEvents ?? [], @@ -130,8 +85,9 @@ export const useErrorEventsTable = () => { }; useEffect(() => { - if (!loading && data?.meta.totalCount) setRowCount(data.meta.totalCount); - }, [loading, data?.meta.totalCount]); + if (!loading && data?.meta.aggregate.totalCount) + setRowCount(data.meta.aggregate.totalCount); + }, [loading, data?.meta.aggregate.totalCount]); return { table, diff --git a/src/components/features/executed-reversible-transaction-details/executed-reversible-transaction-information/ExecutedReversibleTransactionInformation.tsx b/src/components/features/executed-reversible-transaction-details/executed-reversible-transaction-information/ExecutedReversibleTransactionInformation.tsx index 45fbf55..da3533c 100644 --- a/src/components/features/executed-reversible-transaction-details/executed-reversible-transaction-information/ExecutedReversibleTransactionInformation.tsx +++ b/src/components/features/executed-reversible-transaction-details/executed-reversible-transaction-information/ExecutedReversibleTransactionInformation.tsx @@ -29,23 +29,23 @@ export const ExecutedReversibleTransactionInformation: React.FC< const tx = data?.executedReversibleTransactions[0]; - const information: Partial[] = [ + const information: Partial[] = [ { - txId: tx?.txId, - block: tx?.block, - timestamp: tx?.timestamp, - scheduledTransfer: tx?.scheduledTransfer + tx_id: tx?.node.tx_id, + block: tx?.node.block, + timestamp: tx?.node.timestamp, + scheduledTransfer: tx?.node.scheduledTransfer } ]; return ( - > + > loading={loading} data={information} fields={[ { label: 'ID', - key: 'txId', + key: 'tx_id', render: (value) => ( ) @@ -55,8 +55,8 @@ export const ExecutedReversibleTransactionInformation: React.FC< key: 'block', render: (value) => ( ) @@ -64,15 +64,15 @@ export const ExecutedReversibleTransactionInformation: React.FC< { label: 'Timestamp', key: 'timestamp', - render: (value) => formatTimestamp(value, true) + render: (value) => formatTimestamp(value as string, true) }, { label: 'From', key: 'scheduledTransfer', render: (value) => ( ) @@ -82,8 +82,8 @@ export const ExecutedReversibleTransactionInformation: React.FC< key: 'scheduledTransfer', render: (value) => ( ) @@ -91,12 +91,12 @@ export const ExecutedReversibleTransactionInformation: React.FC< { label: 'Amount', key: 'scheduledTransfer', - render: (value) => formatMonetaryValue(value.amount) + render: (value) => formatMonetaryValue(value?.amount) }, { label: 'Fee', key: 'scheduledTransfer', - render: (value) => formatMonetaryValue(value.fee) + render: (value) => formatMonetaryValue((value as any)?.fee) } ]} /> diff --git a/src/components/features/executed-reversible-transaction-listing/executed-reversible-transactions-stats/ExecutedReversibleTransactionsStats.tsx b/src/components/features/executed-reversible-transaction-listing/executed-reversible-transactions-stats/ExecutedReversibleTransactionsStats.tsx index 684c786..9b398a5 100644 --- a/src/components/features/executed-reversible-transaction-listing/executed-reversible-transactions-stats/ExecutedReversibleTransactionsStats.tsx +++ b/src/components/features/executed-reversible-transaction-listing/executed-reversible-transactions-stats/ExecutedReversibleTransactionsStats.tsx @@ -34,7 +34,7 @@ export const ExecutedReversibleTransactionsStats: React.FC< - {success &&

{data?.allTime.totalCount}

} + {success &&

{data?.allTime.total_executed_transfers}

} {loading && } {error &&

Error: {error.message}

}
@@ -47,7 +47,7 @@ export const ExecutedReversibleTransactionsStats: React.FC< - {success &&

{data?.last24Hour.totalCount}

} + {success &&

{data?.last24Hour.aggregate.totalCount}

} {loading && } {error &&

Error: {error.message}

}
diff --git a/src/components/features/executed-reversible-transaction-listing/executed-reversible-transactions-table/hook.tsx b/src/components/features/executed-reversible-transaction-listing/executed-reversible-transactions-table/hook.tsx index ea4bf6b..c51788c 100644 --- a/src/components/features/executed-reversible-transaction-listing/executed-reversible-transactions-table/hook.tsx +++ b/src/components/features/executed-reversible-transaction-listing/executed-reversible-transactions-table/hook.tsx @@ -1,11 +1,5 @@ import { useSearch } from '@tanstack/react-router'; -import type { - OnChangeFn, - PaginationState, - SortingState -} from '@tanstack/react-table'; import { getCoreRowModel, useReactTable } from '@tanstack/react-table'; -import { parseAsInteger, parseAsStringLiteral, useQueryState } from 'nuqs'; import { useEffect, useMemo, useState } from 'react'; import useApiClient from '@/api'; @@ -13,7 +7,8 @@ import { EXECUTED_REVERSIBLE_TRANSACTION_COLUMNS } from '@/components/common/tab import { DATA_POOL_INTERVAL } from '@/constants/data-pool-interval'; import { QUERY_DEFAULT_LIMIT } from '@/constants/query-default-limit'; import type { ExecutedReversibleTransactionSorts } from '@/constants/query-sorts'; -import { EXECUTED_REVERSIBLE_TRANSACTION_SORTS_LITERALS } from '@/constants/query-sorts'; +import { useOrderBy } from '@/hooks/useOrderBy'; +import { useTableState } from '@/hooks/useTableState'; import type { ExecutedReversibleTransaction } from '@/schemas'; import { transformSortLiteral } from '@/utils/transform-sort'; @@ -23,60 +18,19 @@ export const useExecutedReversibleTransactionsTable = () => { strict: false }) as any; - const [page, setPage] = useQueryState('page', parseAsInteger.withDefault(1)); - const [limit, setLimit] = useQueryState( - 'limit', - parseAsInteger.withDefault(QUERY_DEFAULT_LIMIT) - ); - const [sortBy, setSortBy] = useQueryState( - 'sortBy', - parseAsStringLiteral(EXECUTED_REVERSIBLE_TRANSACTION_SORTS_LITERALS) + const { + orderBy, + limit, + currentPageIndex, + handleChangeSorting, + handleChangePagination, + paginationValue + } = useTableState(null, QUERY_DEFAULT_LIMIT); + + const orderByObject = useOrderBy( + orderBy ?? '' ); - - const currentPageIndex = page - 1; - - const sortingValue: SortingState = transformSortLiteral(sortBy); - const paginationValue: PaginationState = { - pageSize: limit, - pageIndex: currentPageIndex - }; - - const handleChangeSorting: OnChangeFn = (sorting) => { - if (typeof sorting === 'function') { - const newValue = sorting(sortingValue); - - if (newValue[0]?.id) { - const key = newValue[0].id; - const order = newValue[0].desc ? 'DESC' : 'ASC'; - - const newSortBy = - `${key}_${order}` as ExecutedReversibleTransactionSorts; - - setSortBy(newSortBy); - } else { - setSortBy(null); - } - } else if (sorting[0]?.id) { - const key = sorting[0].id; - const order = sorting[0].desc ? 'DESC' : 'ASC'; - - const newSortBy = `${key}_${order}` as ExecutedReversibleTransactionSorts; - - setSortBy(newSortBy); - } - }; - - const handleChangePagination: OnChangeFn = (pagination) => { - if (typeof pagination === 'function') { - const newPagination = pagination(paginationValue); - - setPage(newPagination.pageIndex + 1); - setLimit(newPagination.pageSize); - } else { - setPage(pagination.pageIndex + 1); - setLimit(pagination.pageSize); - } - }; + const sortingValue = transformSortLiteral(orderBy); const { loading, @@ -85,7 +39,7 @@ export const useExecutedReversibleTransactionsTable = () => { } = api.executedReversibleTransactions.useGetAll({ pollInterval: DATA_POOL_INTERVAL, variables: { - orderBy: sortBy, + orderBy: orderByObject, limit, offset: currentPageIndex * limit, ...(accountId && { @@ -105,7 +59,9 @@ export const useExecutedReversibleTransactionsTable = () => { }); const columns = useMemo(() => EXECUTED_REVERSIBLE_TRANSACTION_COLUMNS, []); - const [rowCount, setRowCount] = useState(data?.meta.totalCount ?? 0); + const [rowCount, setRowCount] = useState( + data?.meta.aggregate.totalCount ?? 0 + ); const table = useReactTable({ data: data?.executedReversibleTransactions ?? [], @@ -139,8 +95,9 @@ export const useExecutedReversibleTransactionsTable = () => { }; useEffect(() => { - if (!loading && data?.meta.totalCount) setRowCount(data.meta.totalCount); - }, [loading, data?.meta.totalCount]); + if (!loading && data?.meta.aggregate.totalCount) + setRowCount(data.meta.aggregate.totalCount); + }, [loading, data?.meta.aggregate.totalCount]); return { table, diff --git a/src/components/features/high-security-set-details/high-security-set-information/HighSecuritySetInformation.tsx b/src/components/features/high-security-set-details/high-security-set-information/HighSecuritySetInformation.tsx index 830c37a..9f9007c 100644 --- a/src/components/features/high-security-set-details/high-security-set-information/HighSecuritySetInformation.tsx +++ b/src/components/features/high-security-set-details/high-security-set-information/HighSecuritySetInformation.tsx @@ -26,19 +26,19 @@ export const HighSecuritySetInformation: React.FC< const highSecuritySet = data?.highSecuritySets[0]; - const information: Partial[] = [ + const information: Partial[] = [ { - extrinsic: highSecuritySet?.extrinsic, - block: highSecuritySet?.block, - timestamp: highSecuritySet?.timestamp, - who: highSecuritySet?.who, - interceptor: highSecuritySet?.interceptor, - delay: highSecuritySet?.delay + extrinsic: highSecuritySet?.node.extrinsic, + block: highSecuritySet?.node.block, + timestamp: highSecuritySet?.node.timestamp, + who: highSecuritySet?.node.who, + interceptor: highSecuritySet?.node.interceptor, + delay: highSecuritySet?.node.delay } ]; return ( - > + > loading={loading} data={information} fields={[ @@ -47,7 +47,7 @@ export const HighSecuritySetInformation: React.FC< key: 'extrinsic', render: (value) => ( ) @@ -57,9 +57,11 @@ export const HighSecuritySetInformation: React.FC< key: 'block', render: (value) => ( @@ -68,7 +70,7 @@ export const HighSecuritySetInformation: React.FC< { label: 'Timestamp', key: 'timestamp', - render: (value) => formatTimestamp(value, true) + render: (value) => formatTimestamp(value as string, true) }, { label: 'Beneficiary', @@ -76,9 +78,9 @@ export const HighSecuritySetInformation: React.FC< key: 'who', render: (value) => ( @@ -90,9 +92,9 @@ export const HighSecuritySetInformation: React.FC< key: 'interceptor', render: (value) => ( diff --git a/src/components/features/high-security-sets-listing/high-security-sets-stats/HighSecuritySetsStats.tsx b/src/components/features/high-security-sets-listing/high-security-sets-stats/HighSecuritySetsStats.tsx index 804cb0b..0a95116 100644 --- a/src/components/features/high-security-sets-listing/high-security-sets-stats/HighSecuritySetsStats.tsx +++ b/src/components/features/high-security-sets-listing/high-security-sets-stats/HighSecuritySetsStats.tsx @@ -33,7 +33,7 @@ export const HighSecuritySetsStats: React.FC< - {success &&

{data?.allTime.totalCount}

} + {success &&

{data?.allTime.total_high_security_sets}

} {loading && } {error &&

Error: {error.message}

}
@@ -46,7 +46,7 @@ export const HighSecuritySetsStats: React.FC< - {success &&

{data?.last24Hour.totalCount}

} + {success &&

{data?.last24Hour.aggregate.totalCount}

} {loading && } {error &&

Error: {error.message}

}
diff --git a/src/components/features/high-security-sets-listing/high-security-sets-table/hook.tsx b/src/components/features/high-security-sets-listing/high-security-sets-table/hook.tsx index 4735312..1546f55 100644 --- a/src/components/features/high-security-sets-listing/high-security-sets-table/hook.tsx +++ b/src/components/features/high-security-sets-listing/high-security-sets-table/hook.tsx @@ -1,11 +1,5 @@ import { useSearch } from '@tanstack/react-router'; -import type { - OnChangeFn, - PaginationState, - SortingState -} from '@tanstack/react-table'; import { getCoreRowModel, useReactTable } from '@tanstack/react-table'; -import { parseAsInteger, parseAsStringLiteral, useQueryState } from 'nuqs'; import { useEffect, useMemo, useState } from 'react'; import useApiClient from '@/api'; @@ -13,7 +7,8 @@ import { HIGH_SECURITY_SET_COLUMNS } from '@/components/common/table-columns/HIG import { DATA_POOL_INTERVAL } from '@/constants/data-pool-interval'; import { QUERY_DEFAULT_LIMIT } from '@/constants/query-default-limit'; import type { HighSecuritySetSorts } from '@/constants/query-sorts'; -import { HIGH_SECURITY_SET_SORTS_LITERALS } from '@/constants/query-sorts'; +import { useOrderBy } from '@/hooks/useOrderBy'; +import { useTableState } from '@/hooks/useTableState'; import type { HighSecuritySet } from '@/schemas'; import { transformSortLiteral } from '@/utils/transform-sort'; @@ -23,59 +18,17 @@ export const useHighSecuritySetsTable = () => { strict: false }) as any; - const [page, setPage] = useQueryState('page', parseAsInteger.withDefault(1)); - const [limit, setLimit] = useQueryState( - 'limit', - parseAsInteger.withDefault(QUERY_DEFAULT_LIMIT) - ); - const [sortBy, setSortBy] = useQueryState( - 'sortBy', - parseAsStringLiteral(HIGH_SECURITY_SET_SORTS_LITERALS) - ); - - const currentPageIndex = page - 1; - - const sortingValue: SortingState = transformSortLiteral(sortBy); - const paginationValue: PaginationState = { - pageSize: limit, - pageIndex: currentPageIndex - }; - - const handleChangeSorting: OnChangeFn = (sorting) => { - if (typeof sorting === 'function') { - const newValue = sorting(sortingValue); - - if (newValue[0]?.id) { - const key = newValue[0].id; - const order = newValue[0].desc ? 'DESC' : 'ASC'; - - const newSortBy = `${key}_${order}` as HighSecuritySetSorts; - - setSortBy(newSortBy); - } else { - setSortBy(null); - } - } else if (sorting[0]?.id) { - const key = sorting[0].id; - const order = sorting[0].desc ? 'DESC' : 'ASC'; - - const newSortBy = `${key}_${order}` as HighSecuritySetSorts; - - setSortBy(newSortBy); - } - }; - - const handleChangePagination: OnChangeFn = (pagination) => { - if (typeof pagination === 'function') { - const newPagination = pagination(paginationValue); + const { + orderBy, + limit, + currentPageIndex, + handleChangeSorting, + handleChangePagination, + paginationValue + } = useTableState(null, QUERY_DEFAULT_LIMIT); - setPage(newPagination.pageIndex + 1); - setLimit(newPagination.pageSize); - } else { - setPage(pagination.pageIndex + 1); - setLimit(pagination.pageSize); - } - }; + const orderByObject = useOrderBy(orderBy ?? ''); + const sortingValue = transformSortLiteral(orderBy); const { loading, @@ -84,7 +37,7 @@ export const useHighSecuritySetsTable = () => { } = api.highSecuritySets.useGetAll({ pollInterval: DATA_POOL_INTERVAL, variables: { - orderBy: sortBy, + orderBy: orderByObject, limit, offset: currentPageIndex * limit, ...(accountId && { @@ -104,7 +57,9 @@ export const useHighSecuritySetsTable = () => { }); const highSecuritySetColumns = useMemo(() => HIGH_SECURITY_SET_COLUMNS, []); - const [rowCount, setRowCount] = useState(data?.meta.totalCount ?? 0); + const [rowCount, setRowCount] = useState( + data?.meta.aggregate.totalCount ?? 0 + ); const table = useReactTable({ data: data?.highSecuritySets ?? [], @@ -138,8 +93,9 @@ export const useHighSecuritySetsTable = () => { }; useEffect(() => { - if (!loading && data?.meta.totalCount) setRowCount(data.meta.totalCount); - }, [loading, data?.meta.totalCount]); + if (!loading && data?.meta.aggregate.totalCount) + setRowCount(data.meta.aggregate.totalCount); + }, [loading, data?.meta.aggregate.totalCount]); return { table, diff --git a/src/components/features/landing/block-tables/hook.tsx b/src/components/features/landing/block-tables/hook.tsx index ddd5ad5..91ce21a 100644 --- a/src/components/features/landing/block-tables/hook.tsx +++ b/src/components/features/landing/block-tables/hook.tsx @@ -4,25 +4,52 @@ import { useMemo } from 'react'; import useApiClient from '@/api'; import { BLOCK_COLUMNS } from '@/components/common/table-columns/BLOCK_COLUMNS'; import { DATA_POOL_INTERVAL } from '@/constants/data-pool-interval'; +import type { BlockSorts } from '@/constants/query-sorts'; +import { useOrderBy } from '@/hooks/useOrderBy'; +import { useTableState } from '@/hooks/useTableState'; import type { Block } from '@/schemas'; +import { transformSortLiteral } from '@/utils/transform-sort'; export const useBlocksTable = () => { const api = useApiClient(); + const { + orderBy, + limit, + currentPageIndex, + handleChangeSorting, + handleChangePagination, + paginationValue + } = useTableState('timestamp:desc'); + + const orderByObject = useOrderBy(orderBy ?? 'timestamp:desc'); + const sortingValue = transformSortLiteral(orderBy); + const { loading, data, error: fetchError - } = api.blocks.useGetRecent({ - pollInterval: DATA_POOL_INTERVAL + } = api.blocks.useGetAll({ + pollInterval: DATA_POOL_INTERVAL, + variables: { + orderBy: orderByObject, + limit, + offset: currentPageIndex * limit + } }); + const blockColumns = useMemo(() => BLOCK_COLUMNS, []); const table = useReactTable({ data: data?.blocks ?? [], columns: blockColumns, getCoreRowModel: getCoreRowModel(), - enableSorting: false, - rowCount: data?.blocks?.length ?? 0, + state: { + sorting: sortingValue, + pagination: paginationValue + }, + onSortingChange: handleChangeSorting, + onPaginationChange: handleChangePagination, + rowCount: data?.meta?.totalCount ?? 0, manualPagination: true, manualSorting: true }); diff --git a/src/components/features/landing/hero/Hero.stories.tsx b/src/components/features/landing/hero/Hero.stories.tsx index 4979ee8..2ba482f 100644 --- a/src/components/features/landing/hero/Hero.stories.tsx +++ b/src/components/features/landing/hero/Hero.stories.tsx @@ -2,9 +2,9 @@ import type { Meta, StoryObj } from '@storybook/react-vite'; import { WithProviders } from '@/decorators/WithProviders'; -import { Hero, type HeroProps } from './Hero'; +import { Hero } from './Hero'; -const meta: Meta = { +const meta: Meta = { title: 'Components/Features/Landing/Hero', component: Hero, parameters: { @@ -16,7 +16,7 @@ const meta: Meta = { export default meta; -type Story = StoryObj; +type Story = StoryObj; export const Default: Story = { args: {} diff --git a/src/components/features/landing/hero/Hero.tsx b/src/components/features/landing/hero/Hero.tsx index ed09180..08e03c0 100644 --- a/src/components/features/landing/hero/Hero.tsx +++ b/src/components/features/landing/hero/Hero.tsx @@ -6,9 +6,7 @@ import { SearchPreview } from '../../../ui/composites/search-preview/SearchPrevi import { ChainStats } from './chain-stats/ChainStats'; import { useHero } from './hook'; -export interface HeroProps {} - -export const Hero = (props: HeroProps) => { +export const Hero = () => { const { handleKeywordChange, handleInputFocus, diff --git a/src/components/features/landing/hero/chain-stats/ChainStats.tsx b/src/components/features/landing/hero/chain-stats/ChainStats.tsx index a68499c..f4e219d 100644 --- a/src/components/features/landing/hero/chain-stats/ChainStats.tsx +++ b/src/components/features/landing/hero/chain-stats/ChainStats.tsx @@ -16,8 +16,25 @@ export const ChainStats: React.FC = () => { const success = !loading && !error; + const depositAccounts = data?.status?.total_deposit_accounts ?? 0; + const totalAccounts = data?.status?.total_accounts ?? 0; + const activeAccounts = totalAccounts - depositAccounts; + + const totalImmediateTransactions = + data?.status?.total_immediate_transfers ?? 0; + const totalScheduledTransactions = + data?.status?.total_scheduled_transfers ?? 0; + const totalExecutedTransactions = data?.status?.total_executed_transfers ?? 0; + const totalCancelledTransactions = + data?.status?.total_cancelled_transfers ?? 0; + const totalTransactions = + totalImmediateTransactions + + totalScheduledTransactions + + totalExecutedTransactions + + totalCancelledTransactions; + return ( -
+
@@ -25,7 +42,39 @@ export const ChainStats: React.FC = () => { - {success &&

#{data?.status?.height}

} + {success &&

#{data?.status?.block_height}

} + {loading && } + {error &&

Error: {error.message}

} +
+
+ + + + +

Transactions

+ + + Total count of immediate transactions and reversible transactions + +
+
+ + {success &&

{totalTransactions}

} + {loading && } + {error &&

Error: {error.message}

} +
+
+ + + + +

Active Accounts

+ + Account that has an activity. +
+
+ + {success &&

{activeAccounts}

} {loading && } {error &&

Error: {error.message}

}
@@ -34,13 +83,13 @@ export const ChainStats: React.FC = () => { -

Finalized Block

+

Deposit Accounts

- The last block that has been finalized. + Account receiving transfers.
- {success &&

#{data?.status?.finalizedHeight}

} + {success &&

{depositAccounts}

} {loading && } {error &&

Error: {error.message}

}
diff --git a/src/components/features/miner-leaderboard/miner-leaderboard-table/hook.tsx b/src/components/features/miner-leaderboard/miner-leaderboard-table/hook.tsx index fd2895b..a26e850 100644 --- a/src/components/features/miner-leaderboard/miner-leaderboard-table/hook.tsx +++ b/src/components/features/miner-leaderboard/miner-leaderboard-table/hook.tsx @@ -1,40 +1,17 @@ -import type { OnChangeFn, PaginationState } from '@tanstack/react-table'; import { getCoreRowModel, useReactTable } from '@tanstack/react-table'; -import { parseAsInteger, useQueryState } from 'nuqs'; import { useEffect, useMemo, useState } from 'react'; import useApiClient from '@/api'; import { MINER_LEADERBOARD_COLUMNS } from '@/components/common/table-columns/MINER_LEADERBOARD_COLUMNS'; import { DATA_POOL_INTERVAL } from '@/constants/data-pool-interval'; import { QUERY_DEFAULT_LIMIT } from '@/constants/query-default-limit'; +import { useTableState } from '@/hooks/useTableState'; import type { MinerStats } from '@/schemas'; export const useMinerLeaderboardTable = () => { const api = useApiClient(); - const [page, setPage] = useQueryState('page', parseAsInteger.withDefault(1)); - const [limit, setLimit] = useQueryState( - 'limit', - parseAsInteger.withDefault(QUERY_DEFAULT_LIMIT) - ); - - const currentPageIndex = page - 1; - - const paginationValue: PaginationState = { - pageSize: limit, - pageIndex: currentPageIndex - }; - - const handleChangePagination: OnChangeFn = (pagination) => { - if (typeof pagination === 'function') { - const newPagination = pagination(paginationValue); - - setPage(newPagination.pageIndex + 1); - setLimit(newPagination.pageSize); - } else { - setPage(pagination.pageIndex + 1); - setLimit(pagination.pageSize); - } - }; + const { limit, currentPageIndex, handleChangePagination, paginationValue } = + useTableState(null, QUERY_DEFAULT_LIMIT); const { loading, diff --git a/src/components/features/miner-reward-details/miner-reward-information/MinerRewardInformation.tsx b/src/components/features/miner-reward-details/miner-reward-information/MinerRewardInformation.tsx index 025f3b0..0497250 100644 --- a/src/components/features/miner-reward-details/miner-reward-information/MinerRewardInformation.tsx +++ b/src/components/features/miner-reward-details/miner-reward-information/MinerRewardInformation.tsx @@ -25,17 +25,14 @@ export const MinerRewardInformation: React.FC = ({ (prev: MinerReward | undefined, curr: MinerReward) => { if (!prev) return curr; - const newReward = BigInt(prev.reward) + BigInt(curr.reward); + const newReward = BigInt(prev.node.reward) + BigInt(curr.node.reward); const acc: MinerReward = { ...prev, - block: { - ...prev.block - }, - miner: { - ...prev.miner - }, - reward: newReward.toString() + node: { + ...prev.node, + reward: newReward.toString() + } }; return acc; @@ -43,19 +40,17 @@ export const MinerRewardInformation: React.FC = ({ undefined ); - const information: Partial[] = [ + const information: Partial[] = [ { - block: minerReward?.block, - miner: minerReward?.miner, - reward: minerReward?.reward, - timestamp: minerReward?.timestamp + block: minerReward?.node.block, + miner: minerReward?.node.miner, + reward: minerReward?.node.reward, + timestamp: minerReward?.node.timestamp } ]; - console.log(minerReward); - return ( - > + > loading={loading} data={information} fields={[ @@ -64,7 +59,7 @@ export const MinerRewardInformation: React.FC = ({ key: 'block', render: (value) => ( ) @@ -74,8 +69,8 @@ export const MinerRewardInformation: React.FC = ({ key: 'block', render: (value) => ( ) @@ -85,8 +80,8 @@ export const MinerRewardInformation: React.FC = ({ key: 'miner', render: (value) => ( ) @@ -94,12 +89,12 @@ export const MinerRewardInformation: React.FC = ({ { label: 'Reward', key: 'reward', - render: (value) => formatMonetaryValue(value) + render: (value) => formatMonetaryValue(value as string) }, { label: 'Timestamp', key: 'timestamp', - render: (value) => formatTimestamp(value, true) + render: (value) => formatTimestamp(value as string, true) } ]} /> diff --git a/src/components/features/miner-reward-listing/miner-rewards-stats/MinerRewardsStats.tsx b/src/components/features/miner-reward-listing/miner-rewards-stats/MinerRewardsStats.tsx index acde41d..1603424 100644 --- a/src/components/features/miner-reward-listing/miner-rewards-stats/MinerRewardsStats.tsx +++ b/src/components/features/miner-reward-listing/miner-rewards-stats/MinerRewardsStats.tsx @@ -31,7 +31,7 @@ export const MinerRewardsStats: React.FC = () => { - {success &&

{data?.allTime?.totalCount}

} + {success &&

{data?.allTime?.total_miner_rewards}

} {loading && } {error &&

Error: {error.message}

}
@@ -44,7 +44,7 @@ export const MinerRewardsStats: React.FC = () => { - {success &&

{data?.last24Hour.totalCount}

} + {success &&

{data?.last24Hour.aggregate.totalCount}

} {loading && } {error &&

Error: {error.message}

}
diff --git a/src/components/features/miner-reward-listing/miner-rewards-table/hook.tsx b/src/components/features/miner-reward-listing/miner-rewards-table/hook.tsx index 115c1a6..bc036e7 100644 --- a/src/components/features/miner-reward-listing/miner-rewards-table/hook.tsx +++ b/src/components/features/miner-reward-listing/miner-rewards-table/hook.tsx @@ -1,11 +1,5 @@ import { useSearch } from '@tanstack/react-router'; -import type { - OnChangeFn, - PaginationState, - SortingState -} from '@tanstack/react-table'; import { getCoreRowModel, useReactTable } from '@tanstack/react-table'; -import { parseAsInteger, parseAsStringLiteral, useQueryState } from 'nuqs'; import { useEffect, useMemo, useState } from 'react'; import useApiClient from '@/api'; @@ -13,7 +7,8 @@ import { MINER_REWARD_COLUMNS } from '@/components/common/table-columns/MINER_RE import { DATA_POOL_INTERVAL } from '@/constants/data-pool-interval'; import { QUERY_DEFAULT_LIMIT } from '@/constants/query-default-limit'; import type { MinerRewardSorts } from '@/constants/query-sorts'; -import { MINER_REWARD_SORTS_LITERALS } from '@/constants/query-sorts'; +import { useOrderBy } from '@/hooks/useOrderBy'; +import { useTableState } from '@/hooks/useTableState'; import type { MinerReward } from '@/schemas'; import { transformSortLiteral } from '@/utils/transform-sort'; @@ -23,59 +18,17 @@ export const useMinerRewardsTable = () => { strict: false }) as any; - const [page, setPage] = useQueryState('page', parseAsInteger.withDefault(1)); - const [limit, setLimit] = useQueryState( - 'limit', - parseAsInteger.withDefault(QUERY_DEFAULT_LIMIT) - ); - const [sortBy, setSortBy] = useQueryState( - 'sortBy', - parseAsStringLiteral(MINER_REWARD_SORTS_LITERALS) - ); - - const currentPageIndex = page - 1; - - const sortingValue: SortingState = transformSortLiteral(sortBy); - const paginationValue: PaginationState = { - pageSize: limit, - pageIndex: currentPageIndex - }; - - const handleChangeSorting: OnChangeFn = (sorting) => { - if (typeof sorting === 'function') { - const newValue = sorting(sortingValue); - - if (newValue[0]?.id) { - const key = newValue[0].id; - const order = newValue[0].desc ? 'DESC' : 'ASC'; - - const newSortBy = `${key}_${order}` as MinerRewardSorts; - - setSortBy(newSortBy); - } else { - setSortBy(null); - } - } else if (sorting[0]?.id) { - const key = sorting[0].id; - const order = sorting[0].desc ? 'DESC' : 'ASC'; - - const newSortBy = `${key}_${order}` as MinerRewardSorts; - - setSortBy(newSortBy); - } - }; - - const handleChangePagination: OnChangeFn = (pagination) => { - if (typeof pagination === 'function') { - const newPagination = pagination(paginationValue); + const { + orderBy, + limit, + currentPageIndex, + handleChangeSorting, + handleChangePagination, + paginationValue + } = useTableState(null, QUERY_DEFAULT_LIMIT); - setPage(newPagination.pageIndex + 1); - setLimit(newPagination.pageSize); - } else { - setPage(pagination.pageIndex + 1); - setLimit(pagination.pageSize); - } - }; + const orderByObject = useOrderBy(orderBy ?? ''); + const sortingValue = transformSortLiteral(orderBy); const { loading, @@ -84,7 +37,7 @@ export const useMinerRewardsTable = () => { } = api.minerRewards.useGetAll({ pollInterval: DATA_POOL_INTERVAL, variables: { - orderBy: sortBy, + orderBy: orderByObject, limit, offset: currentPageIndex * limit, ...(accountId && { diff --git a/src/components/features/scheduled-reversible-transaction-details/scheduled-reversible-transaction-information/ScheduledReversibleTransactionInformation.tsx b/src/components/features/scheduled-reversible-transaction-details/scheduled-reversible-transaction-information/ScheduledReversibleTransactionInformation.tsx index 90c58b2..f9cb22b 100644 --- a/src/components/features/scheduled-reversible-transaction-details/scheduled-reversible-transaction-information/ScheduledReversibleTransactionInformation.tsx +++ b/src/components/features/scheduled-reversible-transaction-details/scheduled-reversible-transaction-information/ScheduledReversibleTransactionInformation.tsx @@ -29,28 +29,28 @@ export const ScheduledReversibleTransactionInformation: React.FC< const tx = data?.scheduledReversibleTransactions[0]; - const information: Partial[] = [ + const information: Partial[] = [ { - txId: tx?.txId, - amount: tx?.amount, - extrinsic: tx?.extrinsic, - block: tx?.block, - timestamp: tx?.timestamp, - scheduledAt: tx?.scheduledAt, - from: tx?.from, - to: tx?.to, - fee: tx?.fee + tx_id: tx?.node.tx_id, + amount: tx?.node.amount, + extrinsic: tx?.node.extrinsic, + block: tx?.node.block, + timestamp: tx?.node.timestamp, + scheduled_at: tx?.node.scheduled_at, + from: tx?.node.from, + to: tx?.node.to, + fee: (tx?.node as any).fee } ]; return ( - > + > loading={loading} data={information} fields={[ { label: 'ID', - key: 'txId', + key: 'tx_id', render: (value) => ( ) @@ -61,8 +61,8 @@ export const ScheduledReversibleTransactionInformation: React.FC< render: (value) => ( @@ -73,8 +73,8 @@ export const ScheduledReversibleTransactionInformation: React.FC< key: 'block', render: (value) => ( ) @@ -82,20 +82,20 @@ export const ScheduledReversibleTransactionInformation: React.FC< { label: 'Timestamp', key: 'timestamp', - render: (value) => formatTimestamp(value, true) + render: (value) => formatTimestamp(value as string, true) }, { label: 'Scheduled At', - key: 'scheduledAt', - render: (value) => formatTimestamp(value, true) + key: 'scheduled_at', + render: (value) => formatTimestamp(value as string, true) }, { label: 'From', key: 'from', render: (value) => ( ) @@ -105,8 +105,8 @@ export const ScheduledReversibleTransactionInformation: React.FC< key: 'to', render: (value) => ( ) @@ -114,12 +114,12 @@ export const ScheduledReversibleTransactionInformation: React.FC< { label: 'Amount', key: 'amount', - render: (value) => formatMonetaryValue(value) + render: (value) => formatMonetaryValue(value as string) }, { label: 'Fee', key: 'fee', - render: (value) => formatMonetaryValue(value) + render: (value) => formatMonetaryValue(value as string) } ]} /> diff --git a/src/components/features/scheduled-reversible-transaction-listing/scheduled-reversible-transactions-stats/ScheduledReversibleTransactionsStats.tsx b/src/components/features/scheduled-reversible-transaction-listing/scheduled-reversible-transactions-stats/ScheduledReversibleTransactionsStats.tsx index 59894df..0126c2d 100644 --- a/src/components/features/scheduled-reversible-transaction-listing/scheduled-reversible-transactions-stats/ScheduledReversibleTransactionsStats.tsx +++ b/src/components/features/scheduled-reversible-transaction-listing/scheduled-reversible-transactions-stats/ScheduledReversibleTransactionsStats.tsx @@ -34,7 +34,7 @@ export const ScheduledReversibleTransactionsStats: React.FC< - {success &&

{data?.allTime.totalCount}

} + {success &&

{data?.allTime.total_scheduled_transfers}

} {loading && } {error &&

Error: {error.message}

}
@@ -47,7 +47,7 @@ export const ScheduledReversibleTransactionsStats: React.FC< - {success &&

{data?.last24Hour.totalCount}

} + {success &&

{data?.last24Hour.aggregate.totalCount}

} {loading && } {error &&

Error: {error.message}

}
diff --git a/src/components/features/scheduled-reversible-transaction-listing/scheduled-reversible-transactions-table/hook.tsx b/src/components/features/scheduled-reversible-transaction-listing/scheduled-reversible-transactions-table/hook.tsx index 5b229aa..2dd39b0 100644 --- a/src/components/features/scheduled-reversible-transaction-listing/scheduled-reversible-transactions-table/hook.tsx +++ b/src/components/features/scheduled-reversible-transaction-listing/scheduled-reversible-transactions-table/hook.tsx @@ -1,11 +1,5 @@ import { useSearch } from '@tanstack/react-router'; -import type { - OnChangeFn, - PaginationState, - SortingState -} from '@tanstack/react-table'; import { getCoreRowModel, useReactTable } from '@tanstack/react-table'; -import { parseAsInteger, parseAsStringLiteral, useQueryState } from 'nuqs'; import { useEffect, useMemo, useState } from 'react'; import useApiClient from '@/api'; @@ -13,7 +7,8 @@ import { SCHEDULED_REVERSIBLE_TRANSACTION_COLUMNS } from '@/components/common/ta import { DATA_POOL_INTERVAL } from '@/constants/data-pool-interval'; import { QUERY_DEFAULT_LIMIT } from '@/constants/query-default-limit'; import type { ScheduledReversibleTransactionSorts } from '@/constants/query-sorts'; -import { SCHEDULED_REVERSIBLE_TRANSACTION_SORTS_LITERALS } from '@/constants/query-sorts'; +import { useOrderBy } from '@/hooks/useOrderBy'; +import { useTableState } from '@/hooks/useTableState'; import type { ScheduledReversibleTransaction } from '@/schemas'; import { transformSortLiteral } from '@/utils/transform-sort'; @@ -23,61 +18,19 @@ export const useScheduledReversibleTransactionsTable = () => { strict: false }) as any; - const [page, setPage] = useQueryState('page', parseAsInteger.withDefault(1)); - const [limit, setLimit] = useQueryState( - 'limit', - parseAsInteger.withDefault(QUERY_DEFAULT_LIMIT) - ); - const [sortBy, setSortBy] = useQueryState( - 'sortBy', - parseAsStringLiteral(SCHEDULED_REVERSIBLE_TRANSACTION_SORTS_LITERALS) + const { + orderBy, + limit, + currentPageIndex, + handleChangeSorting, + handleChangePagination, + paginationValue + } = useTableState(null, QUERY_DEFAULT_LIMIT); + + const orderByObject = useOrderBy( + orderBy ?? '' ); - - const currentPageIndex = page - 1; - - const sortingValue: SortingState = transformSortLiteral(sortBy); - const paginationValue: PaginationState = { - pageSize: limit, - pageIndex: currentPageIndex - }; - - const handleChangeSorting: OnChangeFn = (sorting) => { - if (typeof sorting === 'function') { - const newValue = sorting(sortingValue); - - if (newValue[0]?.id) { - const key = newValue[0].id; - const order = newValue[0].desc ? 'DESC' : 'ASC'; - - const newSortBy = - `${key}_${order}` as ScheduledReversibleTransactionSorts; - - setSortBy(newSortBy); - } else { - setSortBy(null); - } - } else if (sorting[0]?.id) { - const key = sorting[0].id; - const order = sorting[0].desc ? 'DESC' : 'ASC'; - - const newSortBy = - `${key}_${order}` as ScheduledReversibleTransactionSorts; - - setSortBy(newSortBy); - } - }; - - const handleChangePagination: OnChangeFn = (pagination) => { - if (typeof pagination === 'function') { - const newPagination = pagination(paginationValue); - - setPage(newPagination.pageIndex + 1); - setLimit(newPagination.pageSize); - } else { - setPage(pagination.pageIndex + 1); - setLimit(pagination.pageSize); - } - }; + const sortingValue = transformSortLiteral(orderBy); const { loading, @@ -86,7 +39,7 @@ export const useScheduledReversibleTransactionsTable = () => { } = api.scheduledReversibleTransactions.useGetAll({ pollInterval: DATA_POOL_INTERVAL, variables: { - orderBy: sortBy, + orderBy: orderByObject, limit, offset: currentPageIndex * limit, ...(accountId && { @@ -103,7 +56,9 @@ export const useScheduledReversibleTransactionsTable = () => { }); const columns = useMemo(() => SCHEDULED_REVERSIBLE_TRANSACTION_COLUMNS, []); - const [rowCount, setRowCount] = useState(data?.meta.totalCount ?? 0); + const [rowCount, setRowCount] = useState( + data?.meta.aggregate.totalCount ?? 0 + ); const table = useReactTable({ data: data?.scheduledReversibleTransactions ?? [], @@ -137,8 +92,9 @@ export const useScheduledReversibleTransactionsTable = () => { }; useEffect(() => { - if (!loading && data?.meta.totalCount) setRowCount(data.meta.totalCount); - }, [loading, data?.meta.totalCount]); + if (!loading && data?.meta.aggregate.totalCount) + setRowCount(data.meta.aggregate.totalCount); + }, [loading, data?.meta.aggregate.totalCount]); return { table, diff --git a/src/components/features/transaction-listing/transactions-stats/TransactionsStats.tsx b/src/components/features/transaction-listing/transactions-stats/TransactionsStats.tsx index 746f1b8..26b9567 100644 --- a/src/components/features/transaction-listing/transactions-stats/TransactionsStats.tsx +++ b/src/components/features/transaction-listing/transactions-stats/TransactionsStats.tsx @@ -31,7 +31,7 @@ export const TransactionsStats: React.FC = () => { - {success &&

{data?.allTime.totalCount}

} + {success &&

{data?.allTime.total_immediate_transfers}

} {loading && } {error &&

Error: {error.message}

}
@@ -44,7 +44,7 @@ export const TransactionsStats: React.FC = () => { - {success &&

{data?.last24Hour.totalCount}

} + {success &&

{data?.last24Hour.aggregate.totalCount}

} {loading && } {error &&

Error: {error.message}

}
diff --git a/src/components/features/transaction-listing/transactions-table/hook.tsx b/src/components/features/transaction-listing/transactions-table/hook.tsx index 45a4eaf..6aac804 100644 --- a/src/components/features/transaction-listing/transactions-table/hook.tsx +++ b/src/components/features/transaction-listing/transactions-table/hook.tsx @@ -1,11 +1,5 @@ import { useSearch } from '@tanstack/react-router'; -import type { - OnChangeFn, - PaginationState, - SortingState -} from '@tanstack/react-table'; import { getCoreRowModel, useReactTable } from '@tanstack/react-table'; -import { parseAsInteger, parseAsStringLiteral, useQueryState } from 'nuqs'; import { useEffect, useMemo, useState } from 'react'; import useApiClient from '@/api'; @@ -13,7 +7,8 @@ import { TRANSACTION_COLUMNS } from '@/components/common/table-columns/TRANSACTI import { DATA_POOL_INTERVAL } from '@/constants/data-pool-interval'; import { QUERY_DEFAULT_LIMIT } from '@/constants/query-default-limit'; import type { TransactionSorts } from '@/constants/query-sorts'; -import { TRANSACTION_SORTS_LITERALS } from '@/constants/query-sorts'; +import { useOrderBy } from '@/hooks/useOrderBy'; +import { useTableState } from '@/hooks/useTableState'; import type { Transaction } from '@/schemas'; import { transformSortLiteral } from '@/utils/transform-sort'; @@ -23,59 +18,17 @@ export const useTransactionsTable = () => { strict: false }) as any; - const [page, setPage] = useQueryState('page', parseAsInteger.withDefault(1)); - const [limit, setLimit] = useQueryState( - 'limit', - parseAsInteger.withDefault(QUERY_DEFAULT_LIMIT) - ); - const [sortBy, setSortBy] = useQueryState( - 'sortBy', - parseAsStringLiteral(TRANSACTION_SORTS_LITERALS) - ); - - const currentPageIndex = page - 1; - - const sortingValue: SortingState = transformSortLiteral(sortBy); - const paginationValue: PaginationState = { - pageSize: limit, - pageIndex: currentPageIndex - }; - - const handleChangeSorting: OnChangeFn = (sorting) => { - if (typeof sorting === 'function') { - const newValue = sorting(sortingValue); - - if (newValue[0]?.id) { - const key = newValue[0].id; - const order = newValue[0].desc ? 'DESC' : 'ASC'; - - const newSortBy = `${key}_${order}` as TransactionSorts; - - setSortBy(newSortBy); - } else { - setSortBy(null); - } - } else if (sorting[0]?.id) { - const key = sorting[0].id; - const order = sorting[0].desc ? 'DESC' : 'ASC'; - - const newSortBy = `${key}_${order}` as TransactionSorts; - - setSortBy(newSortBy); - } - }; - - const handleChangePagination: OnChangeFn = (pagination) => { - if (typeof pagination === 'function') { - const newPagination = pagination(paginationValue); + const { + orderBy, + limit, + currentPageIndex, + handleChangeSorting, + handleChangePagination, + paginationValue + } = useTableState(null, QUERY_DEFAULT_LIMIT); - setPage(newPagination.pageIndex + 1); - setLimit(newPagination.pageSize); - } else { - setPage(pagination.pageIndex + 1); - setLimit(pagination.pageSize); - } - }; + const orderByObject = useOrderBy(orderBy ?? ''); + const sortingValue = transformSortLiteral(orderBy); const { loading, @@ -84,7 +37,7 @@ export const useTransactionsTable = () => { } = api.transactions.useGetAll({ pollInterval: DATA_POOL_INTERVAL, variables: { - orderBy: sortBy, + orderBy: orderByObject, limit, offset: currentPageIndex * limit, ...(accountId && { @@ -101,7 +54,9 @@ export const useTransactionsTable = () => { }); const transactionColumns = useMemo(() => TRANSACTION_COLUMNS, []); - const [rowCount, setRowCount] = useState(data?.meta.totalCount ?? 0); + const [rowCount, setRowCount] = useState( + data?.meta.aggregate.totalCount ?? 0 + ); const table = useReactTable({ data: data?.transactions ?? [], @@ -135,8 +90,9 @@ export const useTransactionsTable = () => { }; useEffect(() => { - if (!loading && data?.meta.totalCount) setRowCount(data.meta.totalCount); - }, [loading, data?.meta.totalCount]); + if (!loading && data?.meta.aggregate.totalCount) + setRowCount(data.meta.aggregate.totalCount); + }, [loading, data?.meta.aggregate.totalCount]); return { table, diff --git a/src/components/features/wormhole/DepositPoolStats.tsx b/src/components/features/wormhole/DepositPoolStats.tsx index 6fcb0f1..3bb2476 100644 --- a/src/components/features/wormhole/DepositPoolStats.tsx +++ b/src/components/features/wormhole/DepositPoolStats.tsx @@ -65,7 +65,9 @@ export const DepositPoolStatsCard = () => {

Last Updated

-

Block {stats.lastUpdatedBlock}

+

+ Block {stats.last_updated_block} +

diff --git a/src/components/features/wormhole/WormholeOutputDetails.tsx b/src/components/features/wormhole/WormholeOutputDetails.tsx index 0f09e25..084752a 100644 --- a/src/components/features/wormhole/WormholeOutputDetails.tsx +++ b/src/components/features/wormhole/WormholeOutputDetails.tsx @@ -42,16 +42,16 @@ export const WormholeOutputInformation = ({ const extrinsicInfo: Partial[] = [ { extrinsic: extrinsic?.extrinsic, - totalAmount: extrinsic?.totalAmount, - outputCount: extrinsic?.outputCount, + totalAmount: extrinsic?.total_amount, + outputCount: extrinsic?.output_count, block: extrinsic?.block, timestamp: extrinsic?.timestamp, - privacyScore: extrinsic?.privacyScore, - privacyLabel: extrinsic?.privacyLabel, - privacyScore01Pct: extrinsic?.privacyScore01Pct, - privacyScore1Pct: extrinsic?.privacyScore1Pct, - privacyScore5Pct: extrinsic?.privacyScore5Pct, - poolSnapshot: extrinsic?.poolSnapshot + privacyScore: extrinsic?.privacy_score, + privacyLabel: extrinsic?.privacy_label, + privacyScore01Pct: extrinsic?.privacy_score01_pct, + privacyScore1Pct: extrinsic?.privacy_score1_pct, + privacyScore5Pct: extrinsic?.privacy_score5_pct, + poolSnapshot: extrinsic?.pool_snapshot } ]; @@ -187,7 +187,7 @@ export const WormholeOutputInformation = ({
- Output {idx + 1} of {extrinsic.outputCount} + Output {idx + 1} of {extrinsic.output_count}
{formatMonetaryValue(Number(output.amount))}
@@ -224,7 +224,7 @@ export const WormholeOutputInformation = ({
{nullifiers.map( ( - n: { nullifier: string; nullifierHash: string }, + n: { nullifier: string; nullifier_hash: string }, idx: number ) => (
@@ -245,7 +245,7 @@ export const WormholeOutputInformation = ({ Hash (blake3)
- {n.nullifierHash} + {n.nullifier_hash}
diff --git a/src/components/features/wormhole/WormholeOutputsTable.tsx b/src/components/features/wormhole/WormholeOutputsTable.tsx index 2cff088..2d881e8 100644 --- a/src/components/features/wormhole/WormholeOutputsTable.tsx +++ b/src/components/features/wormhole/WormholeOutputsTable.tsx @@ -1,5 +1,4 @@ import { getCoreRowModel, useReactTable } from '@tanstack/react-table'; -import { parseAsInteger, parseAsStringLiteral, useQueryState } from 'nuqs'; import { useMemo } from 'react'; import useApiClient from '@/api'; @@ -10,35 +9,34 @@ import { import { DataTable } from '@/components/ui/composites/data-table/DataTable'; import { DATA_POOL_INTERVAL } from '@/constants/data-pool-interval'; import { QUERY_DEFAULT_LIMIT } from '@/constants/query-default-limit'; - -const SORT_OPTIONS = [ - 'timestamp_DESC', - 'timestamp_ASC', - 'totalAmount_DESC', - 'totalAmount_ASC' -] as const; +import { type WormholeExtrinsicSorts } from '@/constants/query-sorts'; +import { useOrderBy } from '@/hooks/useOrderBy'; +import { useTableState } from '@/hooks/useTableState'; +import { transformSortLiteral } from '@/utils/transform-sort'; export const WormholeOutputsTable = () => { const api = useApiClient(); - const [page, setPage] = useQueryState('page', parseAsInteger.withDefault(1)); - const [limit, setLimit] = useQueryState( - 'limit', - parseAsInteger.withDefault(QUERY_DEFAULT_LIMIT) - ); - const [sortBy] = useQueryState( - 'sortBy', - parseAsStringLiteral(SORT_OPTIONS).withDefault('timestamp_DESC') - ); + const { + orderBy, + limit, + currentPageIndex, + handleChangeSorting, + handleChangePagination, + paginationValue + } = useTableState('timestamp:desc', QUERY_DEFAULT_LIMIT); - const offset = (page - 1) * limit; + const orderByObject = useOrderBy( + orderBy ?? 'timestamp:desc' + ); + const sortingValue = transformSortLiteral(orderBy); const { data, loading, error } = api.wormhole.useGetAll({ pollInterval: DATA_POOL_INTERVAL, variables: { - orderBy: sortBy, + orderBy: orderByObject, limit, - offset, - where: { extrinsic_isNull: false } + offset: currentPageIndex * limit, + where: { extrinsic: { id: { _is_null: false } } } } }); @@ -46,7 +44,7 @@ export const WormholeOutputsTable = () => { () => data?.wormholeExtrinsics ?? [], [data] ); - const totalCount = data?.meta?.totalCount ?? 0; + const totalCount = data?.meta?.aggregate?.totalCount ?? 0; const table = useReactTable({ data: rows, @@ -54,17 +52,13 @@ export const WormholeOutputsTable = () => { getCoreRowModel: getCoreRowModel(), manualSorting: true, manualPagination: true, - pageCount: Math.ceil(totalCount / limit), + rowCount: totalCount, state: { - pagination: { pageIndex: page - 1, pageSize: limit } + pagination: paginationValue, + sorting: sortingValue }, - onPaginationChange: (updater) => { - if (typeof updater === 'function') { - const next = updater({ pageIndex: page - 1, pageSize: limit }); - setPage(next.pageIndex + 1); - setLimit(next.pageSize); - } - } + onPaginationChange: handleChangePagination, + onSortingChange: handleChangeSorting }); const getStatus = () => { diff --git a/src/components/ui/composites/data-table/DataTable.stories.tsx b/src/components/ui/composites/data-table/DataTable.stories.tsx index a61cd4a..9905304 100644 --- a/src/components/ui/composites/data-table/DataTable.stories.tsx +++ b/src/components/ui/composites/data-table/DataTable.stories.tsx @@ -28,72 +28,80 @@ export const Primary: Omit = { const transactionDataTable = useReactTable({ data: [ { - block: { height: 293293 }, - extrinsic: { - id: '0xjdwjaidwjaidj', - pallet: 'balances', - call: 'transfer' - } as any, - fee: '120000000', - amount: '999999', - transferCount: 1, - from: { id: '0x2131313' }, - to: { id: '0xdjwaidjiajdi' }, - fromHash: '0x2131313', - toHash: '0xdjwaidjiajdi', - timestamp: new Date().toISOString(), - leafIndex: 0 + node: { + block: { height: 293293 }, + extrinsic: { + id: '0xjdwjaidwjaidj', + pallet: 'balances', + call: 'transfer' + } as any, + fee: '120000000', + amount: '999999', + transfer_count: 1, + from: { id: '0x2131313' }, + to: { id: '0xdjwaidjiajdi' }, + timestamp: new Date().toISOString(), + from_hash: '0x2131313', + to_hash: '0xdjwaidjiajdi', + leaf_index: 0 + } }, { - block: { height: 293293 }, - extrinsic: { - id: '0xjdwjaidwjaidj', - pallet: 'balances', - call: 'transfer' - } as any, - fee: '120000000', - amount: '999999', - transferCount: 1, - from: { id: '0x2131313' }, - to: { id: '0xdjwaidjiajdi' }, - fromHash: '0x2131313', - toHash: '0xdjwaidjiajdi', - timestamp: new Date().toISOString(), - leafIndex: 0 + node: { + block: { height: 293293 }, + extrinsic: { + id: '0xjdwjaidwjaidj', + pallet: 'balances', + call: 'transfer' + } as any, + fee: '120000000', + amount: '999999', + transfer_count: 1, + from: { id: '0x2131313' }, + to: { id: '0xdjwaidjiajdi' }, + timestamp: new Date().toISOString(), + from_hash: '0x2131313', + to_hash: '0xdjwaidjiajdi', + leaf_index: 0 + } }, { - block: { height: 293293 }, - extrinsic: { - id: '0xjdwjaidwjaidj', - pallet: 'balances', - call: 'transfer' - } as any, - fee: '120000000', - amount: '999999', - transferCount: 1, - from: { id: '0x2131313' }, - to: { id: '0xdjwaidjiajdi' }, - fromHash: '0x2131313', - toHash: '0xdjwaidjiajdi', - timestamp: new Date().toISOString(), - leafIndex: 0 + node: { + block: { height: 293293 }, + extrinsic: { + id: '0xjdwjaidwjaidj', + pallet: 'balances', + call: 'transfer' + } as any, + fee: '120000000', + amount: '999999', + transfer_count: 1, + from: { id: '0x2131313' }, + to: { id: '0xdjwaidjiajdi' }, + timestamp: new Date().toISOString(), + from_hash: '0x2131313', + to_hash: '0xdjwaidjiajdi', + leaf_index: 0 + } }, { - block: { height: 293293 }, - extrinsic: { - id: '0xjdwjaidwjaidj', - pallet: 'balances', - call: 'transfer' - } as any, - fee: '120000000', - amount: '999999', - from: { id: '0x2131313' }, - to: { id: '0xdjwaidjiajdi' }, - transferCount: 1, - fromHash: '0x2131313', - toHash: '0xdjwaidjiajdi', - timestamp: new Date().toISOString(), - leafIndex: 0 + node: { + block: { height: 293293 }, + extrinsic: { + id: '0xjdwjaidwjaidj', + pallet: 'balances', + call: 'transfer' + } as any, + fee: '120000000', + amount: '999999', + from: { id: '0x2131313' }, + to: { id: '0xdjwaidjiajdi' }, + transfer_count: 1, + timestamp: new Date().toISOString(), + from_hash: '0x2131313', + to_hash: '0xdjwaidjiajdi', + leaf_index: 0 + } } ], columns: transactionColumns, diff --git a/src/constants/query-sorts/accounts.ts b/src/constants/query-sorts/accounts.ts index 5c6a4c2..67c3b2f 100644 --- a/src/constants/query-sorts/accounts.ts +++ b/src/constants/query-sorts/accounts.ts @@ -1,23 +1,16 @@ -export const ACCOUNT_SORTS = { - id: { - ASC: 'id_ASC', - DESC: 'id_DESC' - }, - balance: { - ASC: 'balance_ASC', - DESC: 'balance_DESC' - }, - lastUpdated: { - ASC: 'lastUpdated_ASC', - DESC: 'lastUpdated_DESC' - } -} as const; +import type { SortDirection } from '@/types/query'; -export const ACCOUNT_SORTS_LITERALS = Object.values(ACCOUNT_SORTS).flatMap( - (sort) => Object.values(sort) -); +export interface AccountSorts { + id?: SortDirection; + free?: SortDirection; + lastUpdated?: SortDirection; +} -export const ACCOUNT_SORTS_KEY = Object.keys(ACCOUNT_SORTS); - -// Adding null, because we can sort by null to indicate no sorting -export type AccountSorts = (typeof ACCOUNT_SORTS_LITERALS)[number] | null; +export const ACCOUNT_SORTS_LITERALS = [ + 'id:desc', + 'free:desc', + 'last_updated:desc', + 'id:asc', + 'free:asc', + 'last_updated:asc' +]; diff --git a/src/constants/query-sorts/blocks.ts b/src/constants/query-sorts/blocks.ts index 4ccc188..6900e5d 100644 --- a/src/constants/query-sorts/blocks.ts +++ b/src/constants/query-sorts/blocks.ts @@ -1,31 +1,22 @@ -export const BLOCK_SORTS = { - id: { - ASC: 'id_ASC', - DESC: 'id_DESC' - }, - hash: { - ASC: 'hash_ASC', - DESC: 'hash_DESC' - }, - height: { - ASC: 'height_ASC', - DESC: 'height_DESC' - }, - reward: { - ASC: 'reward_ASC', - DESC: 'reward_DESC' - }, - timestamp: { - ASC: 'timestamp_ASC', - DESC: 'timestamp_DESC' - } -} as const; +import type { SortDirection } from '@/types/query'; -export const BLOCK_SORTS_LITERALS = Object.values(BLOCK_SORTS).flatMap((sort) => - Object.values(sort) -); +export interface BlockSorts { + id?: SortDirection; + hash?: SortDirection; + height?: SortDirection; + reward?: SortDirection; + timestamp?: SortDirection; +} -export const BLOCK_SORTS_KEY = Object.keys(BLOCK_SORTS); - -// Adding null, because we can sort by null to indicate no sorting -export type BlockSorts = (typeof BLOCK_SORTS_LITERALS)[number] | null; +export const BLOCK_SORTS_LITERALS = [ + 'id:desc', + 'hash:desc', + 'height:desc', + 'reward:desc', + 'timestamp:desc', + 'id:asc', + 'hash:asc', + 'height:asc', + 'reward:asc', + 'timestamp:asc' +]; diff --git a/src/constants/query-sorts/errors.ts b/src/constants/query-sorts/errors.ts index 07ce7d6..237018d 100644 --- a/src/constants/query-sorts/errors.ts +++ b/src/constants/query-sorts/errors.ts @@ -1,41 +1,28 @@ -export const ERROR_EVENT_SORTS = { - id: { - ASC: 'id_ASC', - DESC: 'id_DESC' - }, - timestamp: { - ASC: 'timestamp_ASC', - DESC: 'timestamp_DESC' - }, - errorType: { - ASC: 'errorType_ASC', - DESC: 'errorType_DESC' - }, - errorModule: { - ASC: 'errorModule_ASC', - DESC: 'errorModule_DESC' - }, - errorName: { - ASC: 'errorName_ASC', - DESC: 'errorName_DESC' - }, - extrinsic: { - ASC: 'extrinsic_id_ASC', - DESC: 'extrinsic_id_DESC' - }, - blockHeight: { - ASC: 'block_height_ASC', - DESC: 'block_height_DESC' - } -} as const; +import type { SortDirection } from '@/types/query'; -export const ERROR_EVENT_SORTS_LITERALS = Object.values( - ERROR_EVENT_SORTS -).flatMap((sort) => Object.values(sort)); +export interface ErrorEventSorts { + id?: SortDirection; + timestamp?: SortDirection; + error_type?: SortDirection; + error_module?: SortDirection; + error_name?: SortDirection; + extrinsic_id?: SortDirection; + block_height?: SortDirection; +} -export const ERROR_EVENT_SORTS_KEY = Object.keys(ERROR_EVENT_SORTS); - -// Adding null, because we can sort by null to indicate no sorting -export type ErrorEventSorts = - | (typeof ERROR_EVENT_SORTS_LITERALS)[number] - | null; +export const ERROR_EVENT_SORTS_LITERALS = [ + 'id:desc', + 'timestamp:desc', + 'error_type:desc', + 'error_module:desc', + 'error_name:desc', + 'extrinsic_id:desc', + 'block_height:desc', + 'id:asc', + 'timestamp:asc', + 'error_type:asc', + 'error_module:asc', + 'error_name:asc', + 'extrinsic_id:asc', + 'block_height:asc' +]; diff --git a/src/constants/query-sorts/high-security-sets.ts b/src/constants/query-sorts/high-security-sets.ts index cc7805c..c290e82 100644 --- a/src/constants/query-sorts/high-security-sets.ts +++ b/src/constants/query-sorts/high-security-sets.ts @@ -1,41 +1,28 @@ -export const HIGH_SECURITY_SET_SORTS = { - id: { - ASC: 'id_ASC', - DESC: 'id_DESC' - }, - timestamp: { - ASC: 'timestamp_ASC', - DESC: 'timestamp_DESC' - }, - delay: { - ASC: 'delay_ASC', - DESC: 'delay_DESC' - }, - extrinsic: { - ASC: 'extrinsic_id_ASC', - DESC: 'extrinsic_id_DESC' - }, - blockHeight: { - ASC: 'block_height_ASC', - DESC: 'block_height_DESC' - }, - who: { - id_ASC: 'who_id_ASC', - id_DESC: 'who_id_DESC' - }, - interceptor: { - id_ASC: 'interceptor_id_ASC', - id_DESC: 'interceptor_id_DESC' - } -} as const; +import type { SortDirection } from '@/types/query'; -export const HIGH_SECURITY_SET_SORTS_LITERALS = Object.values( - HIGH_SECURITY_SET_SORTS -).flatMap((sort) => Object.values(sort)); +export interface HighSecuritySetSorts { + id?: SortDirection; + timestamp?: SortDirection; + delay?: SortDirection; + extrinsic_id?: SortDirection; + block_height?: SortDirection; + who_id?: SortDirection; + interceptor_id?: SortDirection; +} -export const HIGH_SECURITY_SET_SORTS_KEY = Object.keys(HIGH_SECURITY_SET_SORTS); - -// Adding null, because we can sort by null to indicate no sorting -export type HighSecuritySetSorts = - | (typeof HIGH_SECURITY_SET_SORTS_LITERALS)[number] - | null; +export const HIGH_SECURITY_SET_SORTS_LITERALS = [ + 'id:desc', + 'timestamp:desc', + 'delay:desc', + 'extrinsic_id:desc', + 'block_height:desc', + 'who_id:desc', + 'interceptor_id:desc', + 'id:asc', + 'timestamp:asc', + 'delay:asc', + 'extrinsic_id:asc', + 'block_height:asc', + 'who_id:asc', + 'interceptor_id:asc' +]; diff --git a/src/constants/query-sorts/miner-rewards.ts b/src/constants/query-sorts/miner-rewards.ts index c532ba4..c98eb85 100644 --- a/src/constants/query-sorts/miner-rewards.ts +++ b/src/constants/query-sorts/miner-rewards.ts @@ -1,33 +1,22 @@ -export const MINER_REWARD_SORTS = { - id: { - ASC: 'id_ASC', - DESC: 'id_DESC' - }, - timestamp: { - ASC: 'timestamp_ASC', - DESC: 'timestamp_DESC' - }, - blockHeight: { - ASC: 'block_height_ASC', - DESC: 'block_height_DESC' - }, - reward: { - ASC: 'reward_ASC', - DESC: 'reward_DESC' - }, - miner: { - id_ASC: 'miner_id_ASC', - id_DESC: 'miner_id_DESC' - } -} as const; +import type { SortDirection } from '@/types/query'; -export const MINER_REWARD_SORTS_LITERALS = Object.values( - MINER_REWARD_SORTS -).flatMap((sort) => Object.values(sort)); +export interface MinerRewardSorts { + id?: SortDirection; + timestamp?: SortDirection; + block_height?: SortDirection; + reward?: SortDirection; + miner_id?: SortDirection; +} -export const MINER_REWARD_SORTS_KEY = Object.keys(MINER_REWARD_SORTS); - -// Adding null, because we can sort by null to indicate no sorting -export type MinerRewardSorts = - | (typeof MINER_REWARD_SORTS_LITERALS)[number] - | null; +export const MINER_REWARD_SORTS_LITERALS = [ + 'id:desc', + 'timestamp:desc', + 'block_height:desc', + 'reward:desc', + 'miner_id:desc', + 'id:asc', + 'timestamp:asc', + 'block_height:asc', + 'reward:asc', + 'miner_id:asc' +]; diff --git a/src/constants/query-sorts/reversible-transactions.ts b/src/constants/query-sorts/reversible-transactions.ts index dc1d299..6680758 100644 --- a/src/constants/query-sorts/reversible-transactions.ts +++ b/src/constants/query-sorts/reversible-transactions.ts @@ -1,100 +1,64 @@ -export const REVERSIBLE_TRANSACTION_SORTS = { - id: { - ASC: 'id_ASC', - DESC: 'id_DESC' - }, - timestamp: { - ASC: 'timestamp_ASC', - DESC: 'timestamp_DESC' - }, - scheduledAt: { - ASC: 'scheduledAt_ASC', - DESC: 'scheduledAt_DESC' - }, - status: { - ASC: 'status_ASC', - DESC: 'status_DESC' - }, - extrinsic: { - ASC: 'extrinsic_id_ASC', - DESC: 'extrinsic_id_DESC' - }, - tx: { - ASC: 'tx_ASC', - DESC: 'tx_DESC' - }, - blockHeight: { - ASC: 'block_height_ASC', - DESC: 'block_height_DESC' - }, - who: { - id_ASC: 'who_id_ASC', - id_DESC: 'who_id_DESC' - } -} as const; +import type { SortDirection } from '@/types/query'; -export const REVERSIBLE_TRANSACTION_SORTS_LITERALS = Object.values( - REVERSIBLE_TRANSACTION_SORTS -).flatMap((sort) => Object.values(sort)); +export interface ReversibleTransactionSorts { + id?: SortDirection; + timestamp?: SortDirection; + scheduled_at?: SortDirection; + status?: SortDirection; + extrinsic_id?: SortDirection; + tx_id?: SortDirection; + block_height?: SortDirection; + who_id?: SortDirection; +} -export const REVERSIBLE_TRANSACTION_SORTS_KEY = Object.keys( - REVERSIBLE_TRANSACTION_SORTS -); +export const REVERSIBLE_TRANSACTION_SORTS_LITERALS = [ + 'id:desc', + 'timestamp:desc', + 'scheduled_at:desc', + 'status:desc', + 'extrinsic_id:desc', + 'tx_id:desc', + 'block_height:desc', + 'who_id:desc', + 'id:asc', + 'timestamp:asc', + 'scheduled_at:asc', + 'status:asc', + 'extrinsic_id:asc', + 'tx_id:asc', + 'block_height:asc', + 'who_id:asc' +]; -// Adding null, because we can sort by null to indicate no sorting -export type ReversibleTransactionSorts = - | (typeof REVERSIBLE_TRANSACTION_SORTS_LITERALS)[number] - | null; +export interface ScheduledReversibleTransactionSorts { + timestamp?: SortDirection; + scheduled_at?: SortDirection; + amount?: SortDirection; +} -export const SCHEDULED_REVERSIBLE_TRANSACTION_SORTS = { - timestamp: { - ASC: 'timestamp_ASC', - DESC: 'timestamp_DESC' - }, - scheduledAt: { - ASC: 'scheduledAt_ASC', - DESC: 'scheduledAt_DESC' - }, - amount: { - ASC: 'amount_ASC', - DESC: 'amount_DESC' - } -} as const; +export const SCHEDULED_REVERSIBLE_TRANSACTION_SORTS_LITERALS = [ + 'timestamp:desc', + 'scheduled_at:desc', + 'amount:desc', + 'timestamp:asc', + 'scheduled_at:asc', + 'amount:asc' +]; -export const SCHEDULED_REVERSIBLE_TRANSACTION_SORTS_LITERALS = Object.values( - SCHEDULED_REVERSIBLE_TRANSACTION_SORTS -).flatMap((sort) => Object.values(sort)); +export interface ExecutedReversibleTransactionSorts { + timestamp?: SortDirection; +} -export type ScheduledReversibleTransactionSorts = - | (typeof SCHEDULED_REVERSIBLE_TRANSACTION_SORTS_LITERALS)[number] - | null; +export const EXECUTED_REVERSIBLE_TRANSACTION_SORTS_LITERALS = [ + 'timestamp:desc', + 'timestamp:asc' +]; -export const EXECUTED_REVERSIBLE_TRANSACTION_SORTS = { - timestamp: { - ASC: 'timestamp_ASC', - DESC: 'timestamp_DESC' - } -} as const; +export interface CancelledReversibleTransactionSorts { + timestamp?: SortDirection; +} -export const EXECUTED_REVERSIBLE_TRANSACTION_SORTS_LITERALS = Object.values( - EXECUTED_REVERSIBLE_TRANSACTION_SORTS -).flatMap((sort) => Object.values(sort)); - -export type ExecutedReversibleTransactionSorts = - | (typeof EXECUTED_REVERSIBLE_TRANSACTION_SORTS_LITERALS)[number] - | null; - -export const CANCELLED_REVERSIBLE_TRANSACTION_SORTS = { - timestamp: { - ASC: 'timestamp_ASC', - DESC: 'timestamp_DESC' - } -} as const; - -export const CANCELLED_REVERSIBLE_TRANSACTION_SORTS_LITERALS = Object.values( - CANCELLED_REVERSIBLE_TRANSACTION_SORTS -).flatMap((sort) => Object.values(sort)); - -export type CancelledReversibleTransactionSorts = - | (typeof CANCELLED_REVERSIBLE_TRANSACTION_SORTS_LITERALS)[number] - | null; +export const CANCELLED_REVERSIBLE_TRANSACTION_SORTS_LITERALS = [ + 'timestamp:desc', + 'timestamp:asc' +]; diff --git a/src/constants/query-sorts/transactions.ts b/src/constants/query-sorts/transactions.ts index aa679ee..69027c6 100644 --- a/src/constants/query-sorts/transactions.ts +++ b/src/constants/query-sorts/transactions.ts @@ -1,45 +1,31 @@ -export const TRANSACTION_SORTS = { - id: { - ASC: 'id_ASC', - DESC: 'id_DESC' - }, - timestamp: { - ASC: 'timestamp_ASC', - DESC: 'timestamp_DESC' - }, - fee: { - ASC: 'fee_ASC', - DESC: 'fee_DESC' - }, - extrinsic: { - ASC: 'extrinsic_id_ASC', - DESC: 'extrinsic_id_DESC' - }, - blockHeight: { - ASC: 'block_height_ASC', - DESC: 'block_height_DESC' - }, - amount: { - ASC: 'amount_ASC', - DESC: 'amount_DESC' - }, - from: { - id_ASC: 'from_id_ASC', - id_DESC: 'from_id_DESC' - }, - to: { - id_ASC: 'to_id_ASC', - id_DESC: 'to_id_DESC' - } -} as const; +import type { SortDirection } from '@/types/query'; -export const TRANSACTION_SORTS_LITERALS = Object.values( - TRANSACTION_SORTS -).flatMap((sort) => Object.values(sort)); +export interface TransactionSorts { + id?: SortDirection; + timestamp?: SortDirection; + fee?: SortDirection; + extrinsic_id?: SortDirection; + block_height?: SortDirection; + amount?: SortDirection; + from_id?: SortDirection; + to_id?: SortDirection; +} -export const TRANSACTION_SORTS_KEY = Object.keys(TRANSACTION_SORTS); - -// Adding null, because we can sort by null to indicate no sorting -export type TransactionSorts = - | (typeof TRANSACTION_SORTS_LITERALS)[number] - | null; +export const TRANSACTION_SORTS_LITERALS = [ + 'id:desc', + 'timestamp:desc', + 'fee:desc', + 'extrinsic_id:desc', + 'block_height:desc', + 'amount:desc', + 'from_id:desc', + 'to_id:desc', + 'id:asc', + 'timestamp:asc', + 'fee:asc', + 'extrinsic_id:asc', + 'block_height:asc', + 'amount:asc', + 'from_id:asc', + 'to_id:asc' +]; diff --git a/src/constants/query-sorts/wormhole.ts b/src/constants/query-sorts/wormhole.ts index 997bb00..3ed7a8f 100644 --- a/src/constants/query-sorts/wormhole.ts +++ b/src/constants/query-sorts/wormhole.ts @@ -1,39 +1,25 @@ -export const WORMHOLE_EXTRINSIC_SORTS = { - id: { - ASC: 'id_ASC', - DESC: 'id_DESC' - }, - privacyScore: { - ASC: 'privacyScore_ASC', - DESC: 'privacyScore_DESC' - }, - totalAmount: { - ASC: 'totalAmount_ASC', - DESC: 'totalAmount_DESC' - }, - outputCount: { - ASC: 'outputCount_ASC', - DESC: 'outputCount_DESC' - }, - timestamp: { - ASC: 'timestamp_ASC', - DESC: 'timestamp_DESC' - }, - privacyLabel: { - ASC: 'privacyLabel_ASC', - DESC: 'privacyLabel_DESC' - } -} as const; +import type { SortDirection } from '@/types/query'; -export const WORMHOLE_EXTRINSIC_SORTS_LITERALS = Object.values( - WORMHOLE_EXTRINSIC_SORTS -).flatMap((sort) => Object.values(sort)); +export interface WormholeExtrinsicSorts { + id?: SortDirection; + privacy_score?: SortDirection; + total_amount?: SortDirection; + output_count?: SortDirection; + timestamp?: SortDirection; + privacy_label?: SortDirection; +} -export const WORMHOLE_EXTRINSIC_SORTS_KEY = Object.keys( - WORMHOLE_EXTRINSIC_SORTS -); - -// Adding null, because we can sort by null to indicate no sorting -export type WormholeExtrinsicSorts = - | (typeof WORMHOLE_EXTRINSIC_SORTS_LITERALS)[number] - | null; +export const WORMHOLE_EXTRINSIC_SORTS_LITERALS = [ + 'id:desc', + 'privacy_score:desc', + 'total_amount:desc', + 'output_count:desc', + 'timestamp:desc', + 'privacy_label:desc', + 'id:asc', + 'privacy_score:asc', + 'total_amount:asc', + 'output_count:asc', + 'timestamp:asc', + 'privacy_label:asc' +]; diff --git a/src/hooks/useOrderBy.tsx b/src/hooks/useOrderBy.tsx new file mode 100644 index 0000000..8b5f558 --- /dev/null +++ b/src/hooks/useOrderBy.tsx @@ -0,0 +1,14 @@ +import { useMemo } from 'react'; + +export const useOrderBy = (orderBy: string): T | undefined => { + const orderByObject = useMemo(() => { + const [key, order] = orderBy.split(':'); + if (!key || !order) return undefined; + + return { + [key]: order + } as T; + }, [orderBy]); + + return orderByObject; +}; diff --git a/src/hooks/useTableState.tsx b/src/hooks/useTableState.tsx new file mode 100644 index 0000000..02c34f1 --- /dev/null +++ b/src/hooks/useTableState.tsx @@ -0,0 +1,80 @@ +import type { + OnChangeFn, + PaginationState, + SortingState +} from '@tanstack/react-table'; +import { parseAsInteger, useQueryState } from 'nuqs'; +import { useCallback } from 'react'; + +export const useTableState = ( + initialOrderBy: string | null = null, + initialLimit: number = 10 +) => { + const [page, setPage] = useQueryState('page', parseAsInteger.withDefault(1)); + const [limit, setLimit] = useQueryState( + 'limit', + parseAsInteger.withDefault(initialLimit) + ); + const [orderBy, setOrderBy] = useQueryState('order_by'); + + const currentPageIndex = page - 1; + + const handleChangeSorting: OnChangeFn = useCallback( + (sorting) => { + const [id, order] = orderBy?.split(':') ?? []; + const currentSorting: SortingState = + id && order + ? [ + { + id, + desc: order === 'desc' + } + ] + : []; + + const nextSorting = + typeof sorting === 'function' ? sorting(currentSorting) : sorting; + + if (nextSorting[0]?.id) { + const key = nextSorting[0].id; + const newOrder = nextSorting[0].desc ? 'desc' : 'asc'; + setOrderBy(`${key}:${newOrder}`); + } else { + setOrderBy(null); + } + }, + [orderBy, setOrderBy] + ); + + const handleChangePagination: OnChangeFn = useCallback( + (pagination) => { + const currentPagination: PaginationState = { + pageSize: limit, + pageIndex: currentPageIndex + }; + + const nextPagination = + typeof pagination === 'function' + ? pagination(currentPagination) + : pagination; + + setPage(nextPagination.pageIndex + 1); + setLimit(nextPagination.pageSize); + }, + [currentPageIndex, limit, setLimit, setPage] + ); + + return { + page, + limit, + orderBy: orderBy || initialOrderBy, + setOrderBy, + currentPageIndex, + handleChangeSorting, + handleChangePagination, + paginationValue: { + pageSize: limit, + pageIndex: currentPageIndex + } + }; +}; diff --git a/src/hooks/useUnifiedTransactions.ts b/src/hooks/useUnifiedTransactions.ts index be6b613..890547b 100644 --- a/src/hooks/useUnifiedTransactions.ts +++ b/src/hooks/useUnifiedTransactions.ts @@ -1,3 +1,11 @@ +import type { + CancelledReversibleTransaction, + ExecutedReversibleTransaction, + HighSecuritySet, + MinerReward, + ScheduledReversibleTransaction, + Transaction +} from '@/schemas'; import type { ExtrinsicInfo, UnifiedTransaction, @@ -6,32 +14,6 @@ import type { import type { WormholeOutput } from '@/schemas/wormhole'; // Common transformer input types -interface TransferInput { - extrinsic?: ExtrinsicInfo | null; - timestamp: string; - amount: number; - fee?: number; - from: { id: string }; - to: { id: string }; - block: { height: number }; -} - -interface MinerRewardInput { - reward: string | number; - timestamp: string; - miner: { id: string }; - block: { height: number; hash?: string }; -} - -interface HighSecuritySetInput { - extrinsic?: ExtrinsicInfo | null; - timestamp: string; - who: { id: string }; - interceptor: { id: string }; - delay?: number; - block: { height: number }; -} - interface WormholeInput { id: string; extrinsic?: ExtrinsicInfo | null; @@ -54,58 +36,88 @@ interface ErrorEventInput { // Transformer functions export const transformImmediateTransaction = ( - tx: TransferInput, + tx: Transaction, idx: number ): UnifiedTransaction => ({ - id: `immediate-${tx.extrinsic?.id ?? idx}`, + id: `immediate-${tx.node.extrinsic?.id ?? idx}`, type: 'immediate' as UnifiedTransactionType, - timestamp: tx.timestamp, - block: tx.block, - extrinsic: tx.extrinsic, - from: tx.from, - to: tx.to, - amount: tx.amount, - fee: tx.fee + timestamp: tx.node.timestamp, + block: tx.node.block, + extrinsic: tx.node.extrinsic, + from: tx.node.from, + to: tx.node.to, + amount: Number(tx.node.amount), + fee: Number(tx.node.fee) }); -export const transformReversibleTransaction = ( - tx: TransferInput, - idx: number +export const transformScheduledTransaction = ( + tx: ScheduledReversibleTransaction +): UnifiedTransaction => ({ + id: `scheduled-${tx.node.tx_id}`, + type: 'scheduled-reversible' as UnifiedTransactionType, + timestamp: tx.node.timestamp, + block: tx.node.block, + extrinsic: tx.node.extrinsic, + from: tx.node.from, + to: tx.node.to, + amount: Number(tx.node.amount), + scheduled_at: tx.node.scheduled_at +}); + +export const transformExecutedTransaction = ( + tx: ExecutedReversibleTransaction +): UnifiedTransaction => ({ + id: `executed-${tx.node.tx_id}`, + type: 'executed-reversible' as UnifiedTransactionType, + timestamp: tx.node.timestamp, + block: tx.node.block, + extrinsic: { + id: 'N/A (unsigned)', + pallet: 'ReversibleTransfers', + call: 'transaction_executed' + }, + from: tx.node.scheduledTransfer.from, + to: tx.node.scheduledTransfer.to, + amount: Number(tx.node.scheduledTransfer.amount) +}); + +export const transformCancelledTransaction = ( + tx: CancelledReversibleTransaction ): UnifiedTransaction => ({ - id: `reversible-${tx.extrinsic?.id ?? idx}`, - type: 'reversible' as UnifiedTransactionType, - timestamp: tx.timestamp, - block: tx.block, - extrinsic: tx.extrinsic, - from: tx.from, - to: tx.to, - amount: tx.amount + id: `cancelled-${tx.node.tx_id}`, + type: 'cancelled-reversible' as UnifiedTransactionType, + timestamp: tx.node.timestamp, + block: tx.node.block, + extrinsic: tx.node.extrinsic, + from: tx.node.scheduledTransfer.from, + to: tx.node.scheduledTransfer.to, + amount: Number(tx.node.scheduledTransfer.amount) }); export const transformMinerReward = ( - reward: MinerRewardInput, + reward: MinerReward, idx: number ): UnifiedTransaction => ({ - id: `miner-reward-${reward.block?.hash ?? idx}`, + id: `miner-reward-${reward.node.block?.hash ?? idx}`, type: 'miner-reward' as UnifiedTransactionType, - timestamp: reward.timestamp, - block: reward.block, - reward: String(reward.reward), - miner: reward.miner + timestamp: reward.node.timestamp, + block: reward.node.block, + reward: String(reward.node.reward), + miner: reward.node.miner }); export const transformHighSecuritySet = ( - hss: HighSecuritySetInput, + hss: HighSecuritySet, idx: number ): UnifiedTransaction => ({ - id: `high-security-${hss.extrinsic?.id ?? idx}`, + id: `high-security-${hss.node.extrinsic?.id ?? idx}`, type: 'high-security' as UnifiedTransactionType, - timestamp: hss.timestamp, - block: hss.block, - extrinsic: hss.extrinsic, - who: hss.who, - interceptor: hss.interceptor, - delay: hss.delay + timestamp: hss.node.timestamp, + block: hss.node.block, + extrinsic: hss.node.extrinsic, + who: hss.node.who, + interceptor: hss.node.interceptor, + delay: hss.node.delay }); export const transformWormholeOutput = ( diff --git a/src/lib/graphql-benchmark/bootstrap.ts b/src/lib/graphql-benchmark/bootstrap.ts index 5001ae6..c9a4a2d 100644 --- a/src/lib/graphql-benchmark/bootstrap.ts +++ b/src/lib/graphql-benchmark/bootstrap.ts @@ -1,11 +1,6 @@ import type { ApolloClient, NormalizedCacheObject } from '@apollo/client'; import { - AccountOrderByInput, - BlockOrderByInput, - CancelledReversibleTransferOrderByInput, - ErrorEventOrderByInput, - ExecutedReversibleTransferOrderByInput, GetAccountsDocument, GetBlockByIdDocument, GetCancelledReversibleTransactionsDocument, @@ -17,14 +12,9 @@ import { GetRecentTransactionsDocument, GetScheduledReversibleTransactionsDocument, GetWormholeExtrinsicsDocument, - HighSecuritySetOrderByInput, - MinerRewardOrderByInput, - ScheduledReversibleTransferOrderByInput, - TransferOrderByInput, - WormholeExtrinsicOrderByInput + Order_By } from '@/__generated__/graphql'; import { QUERY_DEFAULT_LIMIT } from '@/constants/query-default-limit'; -import { QUERY_UNIFIED_LIMIT } from '@/constants/query-unified-limit'; import type { GraphqlBenchmarkContext } from './types'; @@ -45,7 +35,7 @@ export async function loadGraphqlBenchmarkContext( client.query({ query: GetRecentBlocksDocument, variables: { - orderBy: BlockOrderByInput.TimestampDesc, + orderBy: { timestamp: Order_By.Desc }, limit: 1, offset: 0 } @@ -61,7 +51,7 @@ export async function loadGraphqlBenchmarkContext( client.query({ query: GetAccountsDocument, variables: { - orderBy: AccountOrderByInput.IdAsc, + orderBy: { id: Order_By.Asc }, limit: 1, offset: 0 } @@ -76,10 +66,10 @@ export async function loadGraphqlBenchmarkContext( client.query({ query: GetRecentTransactionsDocument, variables: { - orderBy: TransferOrderByInput.TimestampDesc, + orderBy: { timestamp: Order_By.Desc }, limit: 1, offset: 0, - where: { extrinsic_isNull: false } + where: { extrinsic_id: { _is_null: false } } } }) ); @@ -92,52 +82,52 @@ export async function loadGraphqlBenchmarkContext( client.query({ query: GetScheduledReversibleTransactionsDocument, variables: { - orderBy: ScheduledReversibleTransferOrderByInput.TimestampDesc, + orderBy: { timestamp: Order_By.Desc }, limit: 1, offset: 0 } }) ); const firstSched = scheduled?.data?.scheduledReversibleTransactions?.[0]; - if (firstSched?.txId) { - ctx.scheduledTxId = firstSched.txId; + if (firstSched?.tx_id) { + ctx.scheduledTxId = firstSched.tx_id; } const executed = await safeQuery(() => client.query({ query: GetExecutedReversibleTransactionsDocument, variables: { - orderBy: ExecutedReversibleTransferOrderByInput.TimestampDesc, + orderBy: { timestamp: Order_By.Desc }, limit: 1, offset: 0 } }) ); const firstEx = executed?.data?.executedReversibleTransactions?.[0]; - if (firstEx?.txId) { - ctx.executedTxId = firstEx.txId; + if (firstEx?.tx_id) { + ctx.executedTxId = firstEx.tx_id; } const cancelled = await safeQuery(() => client.query({ query: GetCancelledReversibleTransactionsDocument, variables: { - orderBy: CancelledReversibleTransferOrderByInput.TimestampDesc, + orderBy: { timestamp: Order_By.Desc }, limit: 1, offset: 0 } }) ); const firstCanc = cancelled?.data?.cancelledReversibleTransactions?.[0]; - if (firstCanc?.txId) { - ctx.cancelledTxId = firstCanc.txId; + if (firstCanc?.tx_id) { + ctx.cancelledTxId = firstCanc.tx_id; } const worm = await safeQuery(() => client.query({ query: GetWormholeExtrinsicsDocument, variables: { - orderBy: [WormholeExtrinsicOrderByInput.TimestampDesc], + orderBy: [{ timestamp: Order_By.Desc }], limit: 1, offset: 0 } @@ -152,7 +142,7 @@ export async function loadGraphqlBenchmarkContext( client.query({ query: GetErrorEventsDocument, variables: { - orderBy: ErrorEventOrderByInput.TimestampDesc, + orderBy: { timestamp: Order_By.Desc }, limit: QUERY_DEFAULT_LIMIT, offset: 0 } @@ -167,7 +157,7 @@ export async function loadGraphqlBenchmarkContext( client.query({ query: GetHighSecuritySetsDocument, variables: { - orderBy: HighSecuritySetOrderByInput.TimestampDesc, + orderBy: { timestamp: Order_By.Desc }, limit: QUERY_DEFAULT_LIMIT, offset: 0 } @@ -182,7 +172,7 @@ export async function loadGraphqlBenchmarkContext( client.query({ query: GetRecentMinerRewardsDocument, variables: { - orderBy: MinerRewardOrderByInput.TimestampDesc, + orderBy: { timestamp: Order_By.Desc }, limit: 1 } }) @@ -201,41 +191,15 @@ export async function loadGraphqlBenchmarkContext( variables: { height: sampleHeight, hash: sampleHash, - limit: QUERY_UNIFIED_LIMIT + limit: QUERY_DEFAULT_LIMIT } }) ); const r = blockDetail?.data; if (r) { - if (!ctx.scheduledTxId) { - const id = r.scheduledReversibleTransactions?.edges?.[0]?.node?.txId; - if (id) { - ctx.scheduledTxId = id; - } - } - if (!ctx.executedTxId) { - const id = r.executedReversibleTransactions?.edges?.[0]?.node?.txId; - if (id) { - ctx.executedTxId = id; - } - } - if (!ctx.cancelledTxId) { - const id = r.cancelledReversibleTransactions?.edges?.[0]?.node?.txId; - if (id) { - ctx.cancelledTxId = id; - } - } - if (!ctx.errorExtrinsicHash) { - const h = r.errorEvents?.edges?.[0]?.node?.extrinsic?.id; - if (h) { - ctx.errorExtrinsicHash = h; - } - } - if (!ctx.highSecurityExtrinsicHash) { - const h = r.highSecuritySets?.edges?.[0]?.node?.extrinsic?.id; - if (h) { - ctx.highSecurityExtrinsicHash = h; - } + const b = r.blocks?.[0]; + if (b) { + // We need to find sample IDs from the block details if not already found } } } diff --git a/src/lib/graphql-benchmark/registry.ts b/src/lib/graphql-benchmark/registry.ts index 1e854bd..300180f 100644 --- a/src/lib/graphql-benchmark/registry.ts +++ b/src/lib/graphql-benchmark/registry.ts @@ -46,17 +46,6 @@ import { } from '@/__generated__/graphql'; import { QUERY_DEFAULT_LIMIT } from '@/constants/query-default-limit'; import { QUERY_RECENT_LIMIT } from '@/constants/query-recent-limit'; -import { BLOCK_SORTS } from '@/constants/query-sorts'; -import { ACCOUNT_SORTS } from '@/constants/query-sorts/accounts'; -import { ERROR_EVENT_SORTS } from '@/constants/query-sorts/errors'; -import { HIGH_SECURITY_SET_SORTS } from '@/constants/query-sorts/high-security-sets'; -import { - CANCELLED_REVERSIBLE_TRANSACTION_SORTS, - EXECUTED_REVERSIBLE_TRANSACTION_SORTS, - SCHEDULED_REVERSIBLE_TRANSACTION_SORTS -} from '@/constants/query-sorts/reversible-transactions'; -import { TRANSACTION_SORTS } from '@/constants/query-sorts/transactions'; -import { WORMHOLE_EXTRINSIC_SORTS } from '@/constants/query-sorts/wormhole'; import { QUERY_UNIFIED_LIMIT } from '@/constants/query-unified-limit'; import { SEARCH_PREVIEW_RESULTS_LIMIT } from '@/constants/search-preview-results-limit'; @@ -80,7 +69,7 @@ export const graphqlBenchmarkRegistry: GraphqlBenchmarkRegistryEntry[] = [ name: 'GetAccounts', document: GetAccountsDocument, getVariables: () => ({ - orderBy: ACCOUNT_SORTS.id.DESC, + orderBy: { id: 'desc' }, limit: QUERY_DEFAULT_LIMIT, offset: 0 }) @@ -100,7 +89,7 @@ export const graphqlBenchmarkRegistry: GraphqlBenchmarkRegistryEntry[] = [ name: 'GetBlocks', document: GetBlocksDocument, getVariables: () => ({ - orderBy: BLOCK_SORTS.timestamp.DESC, + orderBy: [{ timestamp: 'desc' }], limit: QUERY_DEFAULT_LIMIT, offset: 0 }) @@ -109,7 +98,7 @@ export const graphqlBenchmarkRegistry: GraphqlBenchmarkRegistryEntry[] = [ name: 'GetRecentBlocks', document: GetRecentBlocksDocument, getVariables: () => ({ - orderBy: BLOCK_SORTS.timestamp.DESC, + orderBy: { timestamp: 'desc' }, limit: QUERY_RECENT_LIMIT }) }, @@ -120,8 +109,7 @@ export const graphqlBenchmarkRegistry: GraphqlBenchmarkRegistryEntry[] = [ ctx.blockHeight != null && ctx.blockHash != null ? { height: ctx.blockHeight, - hash: ctx.blockHash, - limit: QUERY_UNIFIED_LIMIT + hash: ctx.blockHash } : null }, @@ -129,7 +117,7 @@ export const graphqlBenchmarkRegistry: GraphqlBenchmarkRegistryEntry[] = [ name: 'GetCancelledReversibleTransactions', document: GetCancelledReversibleTransactionsDocument, getVariables: () => ({ - orderBy: CANCELLED_REVERSIBLE_TRANSACTION_SORTS.timestamp.DESC, + orderBy: { timestamp: 'desc' }, limit: QUERY_DEFAULT_LIMIT, offset: 0 }) @@ -138,7 +126,7 @@ export const graphqlBenchmarkRegistry: GraphqlBenchmarkRegistryEntry[] = [ name: 'GetRecentCancelledReversibleTransactions', document: GetRecentCancelledReversibleTransactionsDocument, getVariables: () => ({ - orderBy: CANCELLED_REVERSIBLE_TRANSACTION_SORTS.timestamp.DESC, + orderBy: { timestamp: 'desc' }, limit: QUERY_RECENT_LIMIT }) }, @@ -151,7 +139,7 @@ export const graphqlBenchmarkRegistry: GraphqlBenchmarkRegistryEntry[] = [ name: 'GetCancelledReversibleTransactionByTxId', document: GetCancelledReversibleTransactionByTxIdDocument, getVariables: (ctx) => - ctx.cancelledTxId ? { txId: ctx.cancelledTxId } : null + ctx.cancelledTxId ? { tx_id: ctx.cancelledTxId } : null }, { name: 'GetStatus', @@ -162,7 +150,7 @@ export const graphqlBenchmarkRegistry: GraphqlBenchmarkRegistryEntry[] = [ name: 'GetErrorEvents', document: GetErrorEventsDocument, getVariables: () => ({ - orderBy: ERROR_EVENT_SORTS.timestamp.DESC, + orderBy: { timestamp: 'desc' }, limit: QUERY_DEFAULT_LIMIT, offset: 0 }) @@ -171,7 +159,7 @@ export const graphqlBenchmarkRegistry: GraphqlBenchmarkRegistryEntry[] = [ name: 'GetRecentErrorEvents', document: GetRecentErrorEventsDocument, getVariables: () => ({ - orderBy: ERROR_EVENT_SORTS.timestamp.DESC, + orderBy: { timestamp: 'desc' }, limit: QUERY_RECENT_LIMIT }) }, @@ -192,7 +180,7 @@ export const graphqlBenchmarkRegistry: GraphqlBenchmarkRegistryEntry[] = [ name: 'GetExecutedReversibleTransactions', document: GetExecutedReversibleTransactionsDocument, getVariables: () => ({ - orderBy: EXECUTED_REVERSIBLE_TRANSACTION_SORTS.timestamp.DESC, + orderBy: { timestamp: 'desc' }, limit: QUERY_DEFAULT_LIMIT, offset: 0 }) @@ -201,7 +189,7 @@ export const graphqlBenchmarkRegistry: GraphqlBenchmarkRegistryEntry[] = [ name: 'GetRecentExecutedReversibleTransactions', document: GetRecentExecutedReversibleTransactionsDocument, getVariables: () => ({ - orderBy: EXECUTED_REVERSIBLE_TRANSACTION_SORTS.timestamp.DESC, + orderBy: { timestamp: 'desc' }, limit: QUERY_RECENT_LIMIT }) }, @@ -214,13 +202,13 @@ export const graphqlBenchmarkRegistry: GraphqlBenchmarkRegistryEntry[] = [ name: 'GetExecutedReversibleTransactionByTxId', document: GetExecutedReversibleTransactionByTxIdDocument, getVariables: (ctx) => - ctx.executedTxId ? { txId: ctx.executedTxId } : null + ctx.executedTxId ? { tx_id: ctx.executedTxId } : null }, { name: 'GetHighSecuritySets', document: GetHighSecuritySetsDocument, getVariables: () => ({ - orderBy: HIGH_SECURITY_SET_SORTS.timestamp.DESC, + orderBy: { timestamp: 'desc' }, limit: QUERY_DEFAULT_LIMIT, offset: 0 }) @@ -229,7 +217,7 @@ export const graphqlBenchmarkRegistry: GraphqlBenchmarkRegistryEntry[] = [ name: 'GetRecentHighSecuritySets', document: GetRecentHighSecuritySetsDocument, getVariables: () => ({ - orderBy: HIGH_SECURITY_SET_SORTS.timestamp.DESC, + orderBy: { timestamp: 'desc' }, limit: QUERY_RECENT_LIMIT, where: {} }) @@ -259,7 +247,7 @@ export const graphqlBenchmarkRegistry: GraphqlBenchmarkRegistryEntry[] = [ name: 'GetMinerRewards', document: GetMinerRewardsDocument, getVariables: () => ({ - orderBy: TRANSACTION_SORTS.timestamp.DESC, + orderBy: { timestamp: 'desc' }, limit: QUERY_DEFAULT_LIMIT, offset: 0 }) @@ -268,7 +256,7 @@ export const graphqlBenchmarkRegistry: GraphqlBenchmarkRegistryEntry[] = [ name: 'GetRecentMinerRewards', document: GetRecentMinerRewardsDocument, getVariables: () => ({ - orderBy: TRANSACTION_SORTS.timestamp.DESC, + orderBy: { timestamp: 'desc' }, limit: QUERY_RECENT_LIMIT }) }, @@ -287,7 +275,7 @@ export const graphqlBenchmarkRegistry: GraphqlBenchmarkRegistryEntry[] = [ name: 'GetScheduledReversibleTransactions', document: GetScheduledReversibleTransactionsDocument, getVariables: () => ({ - orderBy: SCHEDULED_REVERSIBLE_TRANSACTION_SORTS.timestamp.DESC, + orderBy: { timestamp: 'desc' }, limit: QUERY_DEFAULT_LIMIT, offset: 0 }) @@ -296,7 +284,7 @@ export const graphqlBenchmarkRegistry: GraphqlBenchmarkRegistryEntry[] = [ name: 'GetRecentScheduledReversibleTransactions', document: GetRecentScheduledReversibleTransactionsDocument, getVariables: () => ({ - orderBy: SCHEDULED_REVERSIBLE_TRANSACTION_SORTS.timestamp.DESC, + orderBy: { timestamp: 'desc' }, limit: QUERY_RECENT_LIMIT }) }, @@ -309,7 +297,7 @@ export const graphqlBenchmarkRegistry: GraphqlBenchmarkRegistryEntry[] = [ name: 'GetScheduledReversibleTransactionByTxId', document: GetScheduledReversibleTransactionByTxIdDocument, getVariables: (ctx) => - ctx.scheduledTxId ? { txId: ctx.scheduledTxId } : null + ctx.scheduledTxId ? { tx_id: ctx.scheduledTxId } : null }, { name: 'SearchAll', @@ -324,19 +312,19 @@ export const graphqlBenchmarkRegistry: GraphqlBenchmarkRegistryEntry[] = [ name: 'GetTransactions', document: GetTransactionsDocument, getVariables: () => ({ - orderBy: TRANSACTION_SORTS.timestamp.DESC, + orderBy: { timestamp: 'desc' }, limit: QUERY_DEFAULT_LIMIT, offset: 0, - where: { extrinsic_isNull: false } + where: { extrinsic_id: { _is_null: false } } }) }, { name: 'GetRecentTransactions', document: GetRecentTransactionsDocument, getVariables: () => ({ - orderBy: TRANSACTION_SORTS.timestamp.DESC, + orderBy: { timestamp: 'desc' }, limit: QUERY_RECENT_LIMIT, - where: { extrinsic_isNull: false } + where: { extrinsic_id: { _is_null: false } } }) }, { @@ -354,7 +342,7 @@ export const graphqlBenchmarkRegistry: GraphqlBenchmarkRegistryEntry[] = [ name: 'GetWormholeExtrinsics', document: GetWormholeExtrinsicsDocument, getVariables: () => ({ - orderBy: [WORMHOLE_EXTRINSIC_SORTS.timestamp.DESC], + orderBy: [{ timestamp: 'desc' }], limit: 25, offset: 0 }) diff --git a/src/routes/errors/$id.tsx b/src/routes/errors/$id.tsx index c96a9fc..d13467d 100644 --- a/src/routes/errors/$id.tsx +++ b/src/routes/errors/$id.tsx @@ -15,7 +15,12 @@ function ErrorEventDetails() { return ( -

Error Event Details

+
+

Error Event

+

+ Detailed information about a specific error event. +

+
diff --git a/src/schemas/account.ts b/src/schemas/account.ts index fe3a44c..6c17152 100644 --- a/src/schemas/account.ts +++ b/src/schemas/account.ts @@ -28,42 +28,70 @@ export interface AccountWormholeOutput { }; } +export interface AccountStats { + total_cancelled_transfers: number; + total_executed_transfers: number; + total_immediate_transfers: number; + total_mined_blocks: number; + total_rewards: number; + total_scheduled_transfers: number; +} + +export interface AccountEvent { + transfer?: Transaction; + scheduledReversibleTransfer?: ScheduledReversibleTransaction; + executedReversibleTransfer?: ExecutedReversibleTransaction; + cancelledReversibleTransfer?: CancelledReversibleTransaction; + minerReward?: MinerReward; +} + export interface AccountResponse { account: Account; + accountStats: AccountStats; + accountEvents: AccountEvent[]; + beneficiaries: { + nodes: AccountBeneficiary[]; + /** @description the grand total of the beneficiary high security sets regardless of the return node limit using `first` parameter */ + aggregate: { + totalCount: number; + }; + }; + guardian: { + nodes: AccountGuardian[]; + /** @description the grand total of the guardian high security sets regardless of the return node limit using `first` parameter */ + aggregate: { + totalCount: number; + }; + }; transactions: { - edges: AccountTransaction[]; - /** @description the grand total of the transactions regardless of the return node limit using `first` parameter */ - totalCount: number; + nodes: Transaction[]; + aggregate: { + totalCount: number; + }; }; scheduledReversibleTransactions: { - edges: AccountScheduledReversibleTransaction[]; - /** @description the grand total of the reversible transactions regardless of the return node limit using `first` parameter */ - totalCount: number; + nodes: ScheduledReversibleTransaction[]; + aggregate: { + totalCount: number; + }; }; executedReversibleTransactions: { - edges: AccountExecutedReversibleTransaction[]; - /** @description the grand total of the reversible transactions regardless of the return node limit using `first` parameter */ - totalCount: number; + nodes: ExecutedReversibleTransaction[]; + aggregate: { + totalCount: number; + }; }; cancelledReversibleTransactions: { - edges: AccountCancelledReversibleTransaction[]; - /** @description the grand total of the reversible transactions regardless of the return node limit using `first` parameter */ - totalCount: number; + nodes: CancelledReversibleTransaction[]; + aggregate: { + totalCount: number; + }; }; minerRewards: { - edges: AccountMinerRewards[]; - /** @description the grand total of the reversible transactions regardless of the return node limit using `first` parameter */ - totalCount: number; - }; - beneficiaries: { - edges: AccountBeneficiary[]; - /** @description the grand total of the beneficiary high security sets regardless of the return node limit using `first` parameter */ - totalCount: number; - }; - guardian: { - edges: AccountGuardian[]; - /** @description the grand total of the guardian high security sets regardless of the return node limit using `first` parameter */ - totalCount: number; + nodes: MinerReward[]; + aggregate: { + totalCount: number; + }; }; wormholeOutputs: AccountWormholeOutput[]; } @@ -75,26 +103,6 @@ export interface AccountListResponse { }; } -export interface AccountTransaction { - node: Transaction; -} - -export interface AccountMinerRewards { - node: MinerReward; -} - -export interface AccountScheduledReversibleTransaction { - node: ScheduledReversibleTransaction; -} - -export interface AccountExecutedReversibleTransaction { - node: ExecutedReversibleTransaction; -} - -export interface AccountCancelledReversibleTransaction { - node: CancelledReversibleTransaction; -} - export interface AccountBeneficiary { node: { who: Account; @@ -107,14 +115,27 @@ export interface AccountGuardian { }; } +export type AccountTransaction = Transaction; +export type AccountScheduledReversibleTransaction = + ScheduledReversibleTransaction; +export type AccountExecutedReversibleTransaction = + ExecutedReversibleTransaction; +export type AccountCancelledReversibleTransaction = + CancelledReversibleTransaction; +export type AccountMinerRewards = MinerReward; + export interface AccountStatsResponse { all: { - totalCount: number; + total_accounts: number; }; recentlyActive: { - totalCount: number; + aggregate: { + count: number; + }; }; recentlyDeposited: { - totalCount: number; + aggregate: { + count: number; + }; }; } diff --git a/src/schemas/blocks.ts b/src/schemas/blocks.ts index ccd43c5..953b4bc 100644 --- a/src/schemas/blocks.ts +++ b/src/schemas/blocks.ts @@ -56,36 +56,41 @@ export interface BlockResponse { blocks: [Block]; minerRewards: BlockMinerReward[]; transactions: { - edges: BlockTransaction[]; - /** @description the grand total of the transactions regardless of the return node limit using `first` parameter */ - totalCount: number; + nodes: Transaction[]; + aggregate: { + totalCount: number; + }; }; scheduledReversibleTransactions: { - edges: BlockScheduledReversibleTransaction[]; - /** @description the grand total of the transactions regardless of the return node limit using `first` parameter */ - totalCount: number; + nodes: ScheduledReversibleTransaction[]; + aggregate: { + totalCount: number; + }; }; executedReversibleTransactions: { - edges: BlockExecutedReversibleTransaction[]; - /** @description the grand total of the transactions regardless of the return node limit using `first` parameter */ - totalCount: number; + nodes: ExecutedReversibleTransaction[]; + aggregate: { + totalCount: number; + }; }; cancelledReversibleTransactions: { - edges: BlockCancelledReversibleTransaction[]; - /** @description the grand total of the transactions regardless of the return node limit using `first` parameter */ - totalCount: number; + nodes: CancelledReversibleTransaction[]; + aggregate: { + totalCount: number; + }; }; highSecuritySets: { - edges: BlockHighSecuritySet[]; - /** @description the grand total of the transactions regardless of the return node limit using `first` parameter */ - totalCount: number; + nodes: HighSecuritySet[]; + aggregate: { + totalCount: number; + }; }; errorEvents: { - edges: BlockErrorEvent[]; - /** @description the grand total of the transactions regardless of the return node limit using `first` parameter */ - totalCount: number; + nodes: ErrorEvent[]; + aggregate: { + totalCount: number; + }; }; - wormholeExtrinsics: BlockWormholeExtrinsic[]; } export interface BlockListResponse { @@ -100,25 +105,37 @@ export interface RecentBlocksResponse { } export interface BlockTransaction { - node: Transaction; + node: Transaction['node']; } export interface BlockScheduledReversibleTransaction { - node: ScheduledReversibleTransaction; + node: ScheduledReversibleTransaction['node']; } export interface BlockExecutedReversibleTransaction { - node: ExecutedReversibleTransaction; + node: ExecutedReversibleTransaction['node']; } export interface BlockCancelledReversibleTransaction { - node: CancelledReversibleTransaction; + node: CancelledReversibleTransaction['node']; } export interface BlockHighSecuritySet { - node: HighSecuritySet; + node: HighSecuritySet['node']; } export interface BlockErrorEvent { - node: ErrorEvent; + node: ErrorEvent['node']; +} + +export interface BlockStatsResponse { + chain: { + block_height: number; + finalized_block_height: number; + }; + minedIn24Hours: { + aggregate: { + totalCount: number; + }; + }; } diff --git a/src/schemas/cancelled-reversible-transaction.ts b/src/schemas/cancelled-reversible-transaction.ts index 5143927..1ee58f1 100644 --- a/src/schemas/cancelled-reversible-transaction.ts +++ b/src/schemas/cancelled-reversible-transaction.ts @@ -1,14 +1,15 @@ import type * as gql from '../__generated__/graphql'; import type { ScheduledReversibleTransaction } from './scheduled-reversible-transaction'; -export interface CancelledReversibleTransaction - extends Omit< - gql.CancelledReversibleTransfer, +export interface CancelledReversibleTransaction { + node: Omit< + gql.Cancelled_Reversible_Transfer, 'id' | 'block' | 'event' | 'cancelledBy' | 'scheduledTransfer' - > { - block: Pick; - cancelledBy: Pick; - scheduledTransfer: ScheduledReversibleTransaction; + > & { + block: Pick; + cancelledBy: Pick; + scheduledTransfer: ScheduledReversibleTransaction['node']; + }; } export interface CancelledReversibleTransactionResponse { @@ -18,7 +19,9 @@ export interface CancelledReversibleTransactionResponse { export interface CancelledReversibleTransactionListResponse { cancelledReversibleTransactions: CancelledReversibleTransaction[]; meta: { - totalCount: number; + aggregate: { + totalCount: number; + }; }; } @@ -28,9 +31,11 @@ export interface RecentCancelledReversibleTransactionsResponse { export interface CancelledReversibleTransactionsStatsResponse { allTime: { - totalCount: number; + total_cancelled_transfers: number; }; last24Hour: { - totalCount: number; + aggregate: { + totalCount: number; + }; }; } diff --git a/src/schemas/chain-status.ts b/src/schemas/chain-status.ts index 7c3a2d0..3db8306 100644 --- a/src/schemas/chain-status.ts +++ b/src/schemas/chain-status.ts @@ -1,6 +1,16 @@ import type * as gql from '../__generated__/graphql'; -export interface ChainStatus extends gql.SquidStatus {} +export interface ChainStatus + extends Pick< + gql.Chain_Stats, + | 'block_height' + | 'total_accounts' + | 'total_deposit_accounts' + | 'total_executed_transfers' + | 'total_immediate_transfers' + | 'total_scheduled_transfers' + | 'total_cancelled_transfers' + > {} export interface ChainStatusResponse { status: ChainStatus; diff --git a/src/schemas/errors.ts b/src/schemas/errors.ts index 85da080..0281e82 100644 --- a/src/schemas/errors.ts +++ b/src/schemas/errors.ts @@ -1,7 +1,9 @@ import type * as gql from '../__generated__/graphql'; -export interface ErrorEvent extends Omit { - block: Pick; +export interface ErrorEvent { + node: Omit & { + block: Pick; + }; } export interface ErrorEventResponse { @@ -11,7 +13,9 @@ export interface ErrorEventResponse { export interface ErrorEventListResponse { errorEvents: ErrorEvent[]; meta: { - totalCount: number; + aggregate: { + totalCount: number; + }; }; } @@ -21,9 +25,11 @@ export interface RecentErrorEventsResponse { export interface ErrorEventsStatsResponse { allTime: { - totalCount: number; + total_error_events: number; }; last24Hour: { - totalCount: number; + aggregate: { + totalCount: number; + }; }; } diff --git a/src/schemas/executed-reversible-transaction.ts b/src/schemas/executed-reversible-transaction.ts index c5e92c2..644bc54 100644 --- a/src/schemas/executed-reversible-transaction.ts +++ b/src/schemas/executed-reversible-transaction.ts @@ -1,13 +1,14 @@ import type * as gql from '../__generated__/graphql'; import type { ScheduledReversibleTransaction } from './scheduled-reversible-transaction'; -export interface ExecutedReversibleTransaction - extends Omit< - gql.ExecutedReversibleTransfer, +export interface ExecutedReversibleTransaction { + node: Omit< + gql.Executed_Reversible_Transfer, 'id' | 'block' | 'event' | 'executedTransfer' | 'scheduledTransfer' - > { - block: Pick; - scheduledTransfer: ScheduledReversibleTransaction; + > & { + block: Pick; + scheduledTransfer: ScheduledReversibleTransaction['node']; + }; } export interface ExecutedReversibleTransactionResponse { @@ -17,7 +18,9 @@ export interface ExecutedReversibleTransactionResponse { export interface ExecutedReversibleTransactionListResponse { executedReversibleTransactions: ExecutedReversibleTransaction[]; meta: { - totalCount: number; + aggregate: { + totalCount: number; + }; }; } @@ -27,9 +30,11 @@ export interface RecentExecutedReversibleTransactionsResponse { export interface ExecutedReversibleTransactionsStatsResponse { allTime: { - totalCount: number; + total_executed_transfers: number; }; last24Hour: { - totalCount: number; + aggregate: { + totalCount: number; + }; }; } diff --git a/src/schemas/high-security-set.ts b/src/schemas/high-security-set.ts index b43f6d7..5dfbfa0 100644 --- a/src/schemas/high-security-set.ts +++ b/src/schemas/high-security-set.ts @@ -1,13 +1,14 @@ import type * as gql from '../__generated__/graphql'; -export interface HighSecuritySet - extends Omit< - gql.HighSecuritySet, +export interface HighSecuritySet { + node: Omit< + gql.High_Security_Set, 'id' | 'who' | 'interceptor' | 'block' | 'event' - > { - who: Pick; - interceptor: Pick; - block: Pick; + > & { + who: Pick; + interceptor: Pick; + block: Pick; + }; } export interface HighSecuritySetResponse { @@ -17,7 +18,9 @@ export interface HighSecuritySetResponse { export interface HighSecuritySetListResponse { highSecuritySets: HighSecuritySet[]; meta: { - totalCount: number; + aggregate: { + totalCount: number; + }; }; } @@ -27,9 +30,11 @@ export interface RecentHighSecuritySetsResponse { export interface HighSecuritySetsStatsResponse { allTime: { - totalCount: number; + total_high_security_sets: number; }; last24Hour: { - totalCount: number; + aggregate: { + totalCount: number; + }; }; } diff --git a/src/schemas/miner-leaderboard.ts b/src/schemas/miner-leaderboard.ts index 30f36bb..7a0a858 100644 --- a/src/schemas/miner-leaderboard.ts +++ b/src/schemas/miner-leaderboard.ts @@ -1,6 +1,10 @@ import type * as gql from '../__generated__/graphql'; -export interface MinerStats extends gql.MinerStats {} +export interface MinerStats + extends Pick< + gql.Account_Stats, + 'id' | 'total_mined_blocks' | 'total_rewards' + > {} export interface MinerLeaderboardResponse { leaderboardEntries: MinerStats[]; diff --git a/src/schemas/miner-reward.ts b/src/schemas/miner-reward.ts index 97122cd..b5fb843 100644 --- a/src/schemas/miner-reward.ts +++ b/src/schemas/miner-reward.ts @@ -1,9 +1,10 @@ import type * as gql from '../__generated__/graphql'; -export interface MinerReward - extends Omit { - miner: Pick; - block: Pick; +export interface MinerReward { + node: Omit & { + miner: Pick; + block: Pick; + }; } export interface MinerRewardResponse { @@ -23,9 +24,11 @@ export interface RecentMinerRewardsResponse { export interface MinerRewardsStatsResponse { allTime: { - totalCount: number; + total_miner_rewards: number; }; last24Hour: { - totalCount: number; + aggregate: { + totalCount: number; + }; }; } diff --git a/src/schemas/scheduled-reversible-transaction.ts b/src/schemas/scheduled-reversible-transaction.ts index 06e2e48..1cc6208 100644 --- a/src/schemas/scheduled-reversible-transaction.ts +++ b/src/schemas/scheduled-reversible-transaction.ts @@ -1,13 +1,14 @@ import type * as gql from '../__generated__/graphql'; -export interface ScheduledReversibleTransaction - extends Omit< - gql.ScheduledReversibleTransfer, +export interface ScheduledReversibleTransaction { + node: Omit< + gql.Scheduled_Reversible_Transfer, 'id' | 'block' | 'event' | 'from' | 'to' - > { - block: Pick; - from: Pick; - to: Pick; + > & { + block: Pick; + from: Pick; + to: Pick; + }; } export interface ScheduledReversibleTransactionResponse { @@ -17,7 +18,9 @@ export interface ScheduledReversibleTransactionResponse { export interface ScheduledReversibleTransactionListResponse { scheduledReversibleTransactions: ScheduledReversibleTransaction[]; meta: { - totalCount: number; + aggregate: { + totalCount: number; + }; }; } @@ -27,9 +30,11 @@ export interface RecentScheduledReversibleTransactionsResponse { export interface ScheduledReversibleTransactionsStatsResponse { allTime: { - totalCount: number; + total_scheduled_transfers: number; }; last24Hour: { - totalCount: number; + aggregate: { + totalCount: number; + }; }; } diff --git a/src/schemas/searchs.ts b/src/schemas/searchs.ts index cf04fe7..cfeba40 100644 --- a/src/schemas/searchs.ts +++ b/src/schemas/searchs.ts @@ -9,19 +9,19 @@ import type { ScheduledReversibleTransaction } from './scheduled-reversible-tran import type { Transaction } from './transcation'; export interface SearchAllResponse { - transactions: Pick[]; - scheduledReversibleTransactions: Pick< - ScheduledReversibleTransaction, - 'extrinsic' | 'txId' - >[]; - executedReversibleTransactions: Pick[]; - cancelledReversibleTransactions: Pick< - CancelledReversibleTransaction, - 'txId' - >[]; + transactions: { node: Pick }[]; + scheduledReversibleTransactions: { + node: Pick; + }[]; + executedReversibleTransactions: { + node: Pick; + }[]; + cancelledReversibleTransactions: { + node: Pick; + }[]; accounts: Pick[]; blocks: Pick[]; - highSecuritySets: Pick[]; - minerRewards: Pick[]; - errorEvents: Pick[]; + highSecuritySets: { node: Pick }[]; + minerRewards: { node: Pick }[]; + errorEvents: { node: Pick }[]; } diff --git a/src/schemas/transcation.ts b/src/schemas/transcation.ts index 210dc32..e26f694 100644 --- a/src/schemas/transcation.ts +++ b/src/schemas/transcation.ts @@ -1,10 +1,11 @@ import type * as gql from '../__generated__/graphql'; -export interface Transaction - extends Omit { - from: Pick; - to: Pick; - block: Pick; +export interface Transaction { + node: Omit & { + from: Pick; + to: Pick; + block: Pick; + }; } export interface TransactionResponse { @@ -14,7 +15,9 @@ export interface TransactionResponse { export interface TransactionListResponse { transactions: Transaction[]; meta: { - totalCount: number; + aggregate: { + totalCount: number; + }; }; } @@ -24,10 +27,12 @@ export interface RecentTransactionsResponse { export interface TransactionsStatsResponse { allTime: { - totalCount: number; + total_immediate_transfers: number; }; last24Hour: { - totalCount: number; + aggregate: { + totalCount: number; + }; }; } diff --git a/src/schemas/unified-transaction.ts b/src/schemas/unified-transaction.ts index 6e6e624..7d68618 100644 --- a/src/schemas/unified-transaction.ts +++ b/src/schemas/unified-transaction.ts @@ -31,6 +31,7 @@ export interface UnifiedTransaction { to?: { id: string }; amount?: string | number; fee?: number; + scheduled_at?: string; // Miner reward fields reward?: string; diff --git a/src/schemas/wormhole.ts b/src/schemas/wormhole.ts index d07cb88..b162573 100644 --- a/src/schemas/wormhole.ts +++ b/src/schemas/wormhole.ts @@ -3,13 +3,13 @@ import type * as gql from '../__generated__/graphql'; // Core wormhole extrinsic for list views export interface WormholeExtrinsic extends Pick< - gql.WormholeExtrinsic, + gql.Wormhole_Extrinsic, | 'id' - | 'totalAmount' - | 'outputCount' + | 'total_amount' + | 'output_count' | 'timestamp' - | 'privacyScore' - | 'privacyLabel' + | 'privacy_score' + | 'privacy_label' > { extrinsic: Pick | null; block: Pick; @@ -18,17 +18,17 @@ export interface WormholeExtrinsic // Full wormhole extrinsic for detail view export interface WormholeExtrinsicDetail extends Pick< - gql.WormholeExtrinsic, + gql.Wormhole_Extrinsic, | 'id' - | 'totalAmount' - | 'outputCount' + | 'total_amount' + | 'output_count' | 'timestamp' - | 'privacyScore' - | 'privacyScore01Pct' - | 'privacyScore1Pct' - | 'privacyScore5Pct' - | 'privacyLabel' - | 'poolSnapshot' + | 'privacy_score' + | 'privacy_score01_pct' + | 'privacy_score1_pct' + | 'privacy_score5_pct' + | 'privacy_label' + | 'pool_snapshot' > { extrinsic: Pick | null; block: Pick; @@ -38,20 +38,22 @@ export interface WormholeExtrinsicDetail export interface WormholeOutput { id: string; exitAccount: Pick; - amount: gql.Scalars['BigInt']['output']; + amount: gql.Scalars['numeric']['output']; } export interface WormholeNullifier - extends Pick {} + extends Pick {} export interface DepositPoolStats - extends Pick {} + extends Pick {} // API Response types export interface WormholeExtrinsicListResponse { wormholeExtrinsics: WormholeExtrinsic[]; meta: { - totalCount: number; + aggregate: { + totalCount: number; + }; }; } diff --git a/src/types/query.ts b/src/types/query.ts index 43bf86c..5abf9a8 100644 --- a/src/types/query.ts +++ b/src/types/query.ts @@ -4,3 +4,5 @@ export interface PaginatedQueryVariables { orderBy?: T; where?: U; } + +export type SortDirection = 'asc' | 'desc'; diff --git a/src/utils/formatter.ts b/src/utils/formatter.ts index d1d57d9..5598a42 100644 --- a/src/utils/formatter.ts +++ b/src/utils/formatter.ts @@ -36,9 +36,22 @@ export const formatDistanceTimestamp = (timestamp?: string | Date) => { return distance; }; -export const formatMonetaryValue = (value: number, digits?: number) => { +export const formatMonetaryValue = ( + value: number | string | bigint, + digits?: number +) => { const denominator = 10 ** 12; - const convertedValue = value / denominator; + let numValue: number; + + if (typeof value === 'string') { + numValue = Number.parseFloat(value); + } else if (typeof value === 'bigint') { + numValue = Number(value); + } else { + numValue = value; + } + + const convertedValue = numValue / denominator; if (!digits) return `${convertedValue} ${env.COIN_SYMBOL}`; diff --git a/src/utils/transform-sort.ts b/src/utils/transform-sort.ts index 9468d41..364f723 100644 --- a/src/utils/transform-sort.ts +++ b/src/utils/transform-sort.ts @@ -3,20 +3,20 @@ import type { SortingState } from '@tanstack/react-table'; /** * Use this function to transform a graphql sort literal into a SortingState object. * - * @param sort - the graphql sort literal. E.g. "id_ASC" + * @param sort - the graphql sort literal. E.g. "id:asc" * @returns the transformed sort literal */ export const transformSortLiteral = (sort: string | null): SortingState => { if (!sort) return []; - const parts = sort.split('_'); - const order = parts.pop(); // Remove and get the last part (ASC or DESC) - const id = parts.join('_'); // Join the remaining parts to form the id + const [id, order] = sort.split(':'); + + if (!id || !order) return []; return [ { id, - desc: order === 'DESC' + desc: order.toLowerCase() === 'desc' } ]; };