From 519ca0f17526d649bacee1105a6e9484ce16f673 Mon Sep 17 00:00:00 2001 From: illuzen Date: Fri, 20 Feb 2026 15:18:10 +0800 Subject: [PATCH] refactor --- src/__generated__/gql.ts | 176 +- src/__generated__/graphql.ts | 2220 +++++++++++++---- src/api/accounts.tsx | 57 +- src/api/blocks.tsx | 83 +- src/api/chain-status.tsx | 2 +- src/api/errors.tsx | 20 +- src/api/high-security-sets.tsx | 20 +- src/api/reversible-transactions.tsx | 22 +- src/api/search.tsx | 30 +- src/api/transactions.tsx | 55 +- src/api/wormhole.tsx | 14 +- ...ACCOUNT_REVERSIBLE_TRANSACTION_COLUMNS.tsx | 2 +- .../ACCOUNT_TRANSACTION_COLUMNS.tsx | 2 +- .../common/table-columns/BLOCK_COLUMNS.tsx | 6 + .../BLOCK_ERROR_EVENT_COLUMNS.tsx | 2 +- .../BLOCK_HIGH_SECURITY_SET_COLUMNS.tsx | 2 +- .../BLOCK_REVERSIBLE_TRANSACTION_COLUMNS.tsx | 2 +- .../BLOCK_TRANSACTION_COLUMNS.tsx | 2 +- .../table-columns/ERROR_EVENT_COLUMNS.tsx | 2 +- .../table-columns/EXTRINSIC_COLUMNS.tsx | 143 ++ .../HIGH_SECURITY_SET_COLUMNS.tsx | 2 +- .../REVERSIBLE_TRANSACTION_COLUMNS.tsx | 2 +- .../table-columns/TRANSACTION_COLUMNS.tsx | 2 +- .../UNIFIED_TRANSACTION_COLUMNS.tsx | 319 +++ .../table-columns/WORMHOLE_OUTPUT_COLUMNS.tsx | 27 +- .../AccountAllTransactions.tsx | 32 + .../account-all-transactions/hook.tsx | 147 ++ .../account-all-transactions/index.ts | 2 + .../account-data-tabs/AccountDataTabs.tsx | 75 +- .../BlockAllTransactions.tsx | 31 + .../block-all-transactions/hook.tsx | 66 + .../block-all-transactions/index.ts | 2 + .../block-data-tabs/BlockDataTabs.tsx | 67 +- .../block-information/BlockInformation.tsx | 25 +- .../ErrorEventInformation.tsx | 11 +- .../HighSecuritySetInformation.tsx | 11 +- .../features/landing/data-tabs/DataTabs.tsx | 76 +- .../ReversibleTransactionInformation.tsx | 11 +- .../TransactionInformation.tsx | 214 +- .../wormhole/WormholeOutputDetails.tsx | 17 +- .../data-table/DataTable.stories.tsx | 24 +- src/constants/query-unified-limit.ts | 3 + src/constants/transaction-types.ts | 31 + src/hooks/useUnifiedTransactions.ts | 152 ++ src/routes/immediate-transactions/$hash.tsx | 2 +- src/schemas/account.ts | 21 + src/schemas/blocks.ts | 49 +- src/schemas/index.ts | 1 + src/schemas/searchs.ts | 8 +- src/schemas/transcation.ts | 26 + src/schemas/unified-transaction.ts | 54 + src/schemas/wormhole.ts | 4 +- 52 files changed, 3430 insertions(+), 946 deletions(-) create mode 100644 src/components/common/table-columns/EXTRINSIC_COLUMNS.tsx create mode 100644 src/components/common/table-columns/UNIFIED_TRANSACTION_COLUMNS.tsx create mode 100644 src/components/features/account-details/account-all-transactions/AccountAllTransactions.tsx create mode 100644 src/components/features/account-details/account-all-transactions/hook.tsx create mode 100644 src/components/features/account-details/account-all-transactions/index.ts create mode 100644 src/components/features/block-details/block-all-transactions/BlockAllTransactions.tsx create mode 100644 src/components/features/block-details/block-all-transactions/hook.tsx create mode 100644 src/components/features/block-details/block-all-transactions/index.ts create mode 100644 src/constants/query-unified-limit.ts create mode 100644 src/constants/transaction-types.ts create mode 100644 src/hooks/useUnifiedTransactions.ts create mode 100644 src/schemas/unified-transaction.ts diff --git a/src/__generated__/gql.ts b/src/__generated__/gql.ts index a223cf2..93cd942 100644 --- a/src/__generated__/gql.ts +++ b/src/__generated__/gql.ts @@ -15,69 +15,69 @@ import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/ */ 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 extrinsicHash_isNull: false\n AND: { from: { id_eq: $id }, OR: { to: { id_eq: $id } } }\n }\n ) {\n edges {\n node {\n fee\n extrinsicHash\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 reversibleTransactions: reversibleTransfersConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: { from: { id_eq: $id }, OR: { to: { id_eq: $id } } }\n ) {\n edges {\n node {\n extrinsicHash\n timestamp\n status\n amount\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 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 who {\n id\n free\n frozen\n reserved\n }\n }\n }\n\n totalCount\n }\n }\n ': typeof types.GetAccountByIdDocument; + '\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 reversibleTransactions: reversibleTransfersConnection(\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 status\n amount\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 }\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 }\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 }\n miners: minerRewards(\n where: {\n block: { height_eq: $height }\n OR: { block: { hash_eq: $hash } }\n }\n ) {\n miner {\n id\n }\n }\n transactions: transfersConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n extrinsicHash_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 extrinsicHash\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 reversibleTransactions: reversibleTransfersConnection(\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 extrinsicHash\n timestamp\n status\n amount\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 extrinsicHash\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 extrinsicHash\n timestamp\n block {\n height\n }\n }\n }\n\n totalCount\n }\n }\n ': typeof types.GetBlockByIdDocument; - '\n query GetStatus(\n $beginningDate: DateTime!\n $todayDate: DateTime!\n $endDate: DateTime!\n ) {\n transactions: transfersConnection(\n orderBy: id_ASC\n where: { extrinsicHash_isNull: false }\n ) {\n totalCount\n }\n reversibleTransactions: reversibleTransfersConnection(orderBy: id_ASC) {\n totalCount\n }\n status: squidStatus {\n hash\n height\n finalizedHeight\n finalizedHash\n }\n minedBlocks24Hours: blocksConnection(\n orderBy: id_ASC\n where: { timestamp_gte: $todayDate, timestamp_lte: $endDate }\n ) {\n totalCount\n }\n allActiveAccounts: accountsConnection(\n orderBy: id_ASC\n where: {\n transfersFrom_some: {\n timestamp_gte: $beginningDate\n timestamp_lte: $endDate\n }\n }\n ) {\n totalCount\n }\n allDepositAccounts: accountsConnection(\n orderBy: id_ASC\n where: {\n transfersTo_some: {\n timestamp_gte: $beginningDate\n timestamp_lte: $endDate\n }\n }\n ) {\n totalCount\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 extrinsicHash\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 extrinsicHash\n id\n timestamp\n block {\n height\n }\n }\n }\n ': typeof types.GetRecentErrorEventsDocument; + '\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 }\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 reversibleTransactions: reversibleTransfersConnection(\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 status\n amount\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 GetStatus(\n $beginningDate: DateTime!\n $todayDate: DateTime!\n $endDate: DateTime!\n ) {\n transactions: transfersConnection(\n orderBy: id_ASC\n where: { extrinsic_isNull: false }\n ) {\n totalCount\n }\n reversibleTransactions: reversibleTransfersConnection(orderBy: id_ASC) {\n totalCount\n }\n status: squidStatus {\n hash\n height\n finalizedHeight\n finalizedHash\n }\n minedBlocks24Hours: blocksConnection(\n orderBy: id_ASC\n where: { timestamp_gte: $todayDate, timestamp_lte: $endDate }\n ) {\n totalCount\n }\n allActiveAccounts: accountsConnection(\n orderBy: id_ASC\n where: {\n transfersFrom_some: {\n timestamp_gte: $beginningDate\n timestamp_lte: $endDate\n }\n }\n ) {\n totalCount\n }\n allDepositAccounts: accountsConnection(\n orderBy: id_ASC\n where: {\n transfersTo_some: {\n timestamp_gte: $beginningDate\n timestamp_lte: $endDate\n }\n }\n ) {\n totalCount\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: { extrinsicHash_eq: $hash }) {\n errorDocs\n errorModule\n errorName\n errorType\n extrinsicHash\n id\n timestamp\n block {\n height\n }\n }\n }\n ': typeof types.GetErrorEventByHashDocument; - '\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 extrinsicHash\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 extrinsicHash\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 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 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: { extrinsicHash_eq: $hash }) {\n id\n extrinsicHash\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 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 GetReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [ReversibleTransferOrderByInput!]\n $where: ReversibleTransferWhereInput\n ) {\n reversibleTransactions: reversibleTransfers(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n extrinsicHash\n amount\n timestamp\n status\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n meta: reversibleTransfersConnection(orderBy: id_ASC, where: $where) {\n totalCount\n }\n }\n ': typeof types.GetReversibleTransactionsDocument; - '\n query GetRecentReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [ReversibleTransferOrderByInput!]\n ) {\n reversibleTransactions: reversibleTransfers(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n ) {\n extrinsicHash\n amount\n timestamp\n status\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n ': typeof types.GetRecentReversibleTransactionsDocument; + '\n query GetReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [ReversibleTransferOrderByInput!]\n $where: ReversibleTransferWhereInput\n ) {\n reversibleTransactions: reversibleTransfers(\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 status\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n meta: reversibleTransfersConnection(orderBy: id_ASC, where: $where) {\n totalCount\n }\n }\n ': typeof types.GetReversibleTransactionsDocument; + '\n query GetRecentReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [ReversibleTransferOrderByInput!]\n ) {\n reversibleTransactions: reversibleTransfers(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n ) {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n status\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n ': typeof types.GetRecentReversibleTransactionsDocument; '\n query GetReversibleTransactionsStats(\n $startDate: DateTime!\n $endDate: DateTime!\n ) {\n last24Hour: reversibleTransfersConnection(\n orderBy: id_ASC\n where: { timestamp_gte: $startDate, timestamp_lte: $endDate }\n ) {\n totalCount\n }\n allTime: reversibleTransfersConnection(orderBy: id_ASC) {\n totalCount\n }\n }\n ': typeof types.GetReversibleTransactionsStatsDocument; - '\n query GetReversibleTransactionByHash($hash: String!) {\n reversibleTransactions: reversibleTransfers(\n where: { extrinsicHash_eq: $hash }\n ) {\n fee\n amount\n extrinsicHash\n txId\n scheduledAt\n timestamp\n status\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n ': typeof types.GetReversibleTransactionByHashDocument; - '\n query GetReversibleTransactionStatusByHash($hash: String!) {\n reversibleTransactions: reversibleTransfers(\n where: { extrinsicHash_eq: $hash }\n ) {\n status\n }\n }\n ': typeof types.GetReversibleTransactionStatusByHashDocument; - '\n query SearchAll($keyword: String, $keyword_number: Int, $limit: Int) {\n transactions: transfers(\n limit: $limit\n where: { extrinsicHash_startsWith: $keyword }\n ) {\n extrinsicHash\n }\n reversibleTransactions: reversibleTransfers(\n limit: $limit\n where: { extrinsicHash_startsWith: $keyword }\n ) {\n extrinsicHash\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: { extrinsicHash_startsWith: $keyword }\n ) {\n extrinsicHash\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 extrinsicHash\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 extrinsicHash\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 extrinsicHash\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 extrinsicHash_isNull: false\n }\n ) {\n totalCount\n }\n allTime: transfersConnection(\n orderBy: id_ASC\n where: { extrinsicHash_isNull: false }\n ) {\n totalCount\n }\n }\n ': typeof types.GetTransactionsStatsDocument; - '\n query GetTransactionByHash($hash: String!) {\n transactions: transfers(where: { extrinsicHash_eq: $hash }) {\n fee\n extrinsicHash\n block {\n height\n }\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n }\n }\n ': typeof types.GetTransactionByHashDocument; - '\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 extrinsicHash\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 extrinsicHash\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(where: { extrinsic: { id_eq: $id } }) {\n nullifier\n nullifierHash\n }\n }\n': typeof types.GetWormholeExtrinsicByIdDocument; + '\n query GetReversibleTransactionByHash($hash: String!) {\n reversibleTransactions: reversibleTransfers(\n where: { extrinsic: { id_eq: $hash } }\n ) {\n fee\n amount\n extrinsic {\n id\n pallet\n call\n }\n txId\n scheduledAt\n timestamp\n status\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n ': typeof types.GetReversibleTransactionByHashDocument; + '\n query GetReversibleTransactionStatusByHash($hash: String!) {\n reversibleTransactions: reversibleTransfers(\n where: { extrinsic: { id_eq: $hash } }\n ) {\n status\n }\n }\n ': typeof types.GetReversibleTransactionStatusByHashDocument; + '\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 reversibleTransactions: reversibleTransfers(\n limit: $limit\n where: { extrinsic: { id_startsWith: $keyword } }\n ) {\n extrinsic {\n id\n pallet\n call\n }\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 GetTransactionByHash($hash: String!) {\n transactions: transfers(where: { extrinsic: { id_eq: $hash } }) {\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.GetTransactionByHashDocument; + '\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(where: { wormholeExtrinsic: { id_eq: $id } }) {\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; }; 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 ': 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 extrinsicHash_isNull: false\n AND: { from: { id_eq: $id }, OR: { to: { id_eq: $id } } }\n }\n ) {\n edges {\n node {\n fee\n extrinsicHash\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 reversibleTransactions: reversibleTransfersConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: { from: { id_eq: $id }, OR: { to: { id_eq: $id } } }\n ) {\n edges {\n node {\n extrinsicHash\n timestamp\n status\n amount\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 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 who {\n id\n free\n frozen\n reserved\n }\n }\n }\n\n totalCount\n }\n }\n ': + '\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 reversibleTransactions: reversibleTransfersConnection(\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 status\n amount\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 ': 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 ': 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 }\n meta: blocksConnection(orderBy: id_ASC) {\n totalCount\n }\n }\n ': + '\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 ': 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 }\n }\n ': + '\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 ': 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 }\n miners: minerRewards(\n where: {\n block: { height_eq: $height }\n OR: { block: { hash_eq: $hash } }\n }\n ) {\n miner {\n id\n }\n }\n transactions: transfersConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n extrinsicHash_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 extrinsicHash\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 reversibleTransactions: reversibleTransfersConnection(\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 extrinsicHash\n timestamp\n status\n amount\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 extrinsicHash\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 extrinsicHash\n timestamp\n block {\n height\n }\n }\n }\n\n totalCount\n }\n }\n ': + '\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 }\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 reversibleTransactions: reversibleTransfersConnection(\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 status\n amount\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 ': types.GetBlockByIdDocument, - '\n query GetStatus(\n $beginningDate: DateTime!\n $todayDate: DateTime!\n $endDate: DateTime!\n ) {\n transactions: transfersConnection(\n orderBy: id_ASC\n where: { extrinsicHash_isNull: false }\n ) {\n totalCount\n }\n reversibleTransactions: reversibleTransfersConnection(orderBy: id_ASC) {\n totalCount\n }\n status: squidStatus {\n hash\n height\n finalizedHeight\n finalizedHash\n }\n minedBlocks24Hours: blocksConnection(\n orderBy: id_ASC\n where: { timestamp_gte: $todayDate, timestamp_lte: $endDate }\n ) {\n totalCount\n }\n allActiveAccounts: accountsConnection(\n orderBy: id_ASC\n where: {\n transfersFrom_some: {\n timestamp_gte: $beginningDate\n timestamp_lte: $endDate\n }\n }\n ) {\n totalCount\n }\n allDepositAccounts: accountsConnection(\n orderBy: id_ASC\n where: {\n transfersTo_some: {\n timestamp_gte: $beginningDate\n timestamp_lte: $endDate\n }\n }\n ) {\n totalCount\n }\n }\n ': + '\n query GetStatus(\n $beginningDate: DateTime!\n $todayDate: DateTime!\n $endDate: DateTime!\n ) {\n transactions: transfersConnection(\n orderBy: id_ASC\n where: { extrinsic_isNull: false }\n ) {\n totalCount\n }\n reversibleTransactions: reversibleTransfersConnection(orderBy: id_ASC) {\n totalCount\n }\n status: squidStatus {\n hash\n height\n finalizedHeight\n finalizedHash\n }\n minedBlocks24Hours: blocksConnection(\n orderBy: id_ASC\n where: { timestamp_gte: $todayDate, timestamp_lte: $endDate }\n ) {\n totalCount\n }\n allActiveAccounts: accountsConnection(\n orderBy: id_ASC\n where: {\n transfersFrom_some: {\n timestamp_gte: $beginningDate\n timestamp_lte: $endDate\n }\n }\n ) {\n totalCount\n }\n allDepositAccounts: accountsConnection(\n orderBy: id_ASC\n where: {\n transfersTo_some: {\n timestamp_gte: $beginningDate\n timestamp_lte: $endDate\n }\n }\n ) {\n totalCount\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 extrinsicHash\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: [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 ': 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 extrinsicHash\n id\n timestamp\n block {\n height\n }\n }\n }\n ': + '\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 ': 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 ': types.GetErrorEventsStatsDocument, - '\n query GetErrorEventByHash($hash: String!) {\n errorEvents: errorEvents(where: { extrinsicHash_eq: $hash }) {\n errorDocs\n errorModule\n errorName\n errorType\n extrinsicHash\n id\n timestamp\n block {\n height\n }\n }\n }\n ': + '\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 ': types.GetErrorEventByHashDocument, - '\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 extrinsicHash\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: [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 ': 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 extrinsicHash\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: [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 ': 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 ': types.GetHighSecuritySetsStatsDocument, - '\n query GetHighSecuritySetByHash($hash: String!) {\n highSecuritySets(where: { extrinsicHash_eq: $hash }) {\n id\n extrinsicHash\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(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 ': 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 ': types.GetMinerLeaderboardDocument, @@ -89,29 +89,29 @@ const documents: Documents = { 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 ': types.GetMinerRewardByHashDocument, - '\n query GetReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [ReversibleTransferOrderByInput!]\n $where: ReversibleTransferWhereInput\n ) {\n reversibleTransactions: reversibleTransfers(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n extrinsicHash\n amount\n timestamp\n status\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n meta: reversibleTransfersConnection(orderBy: id_ASC, where: $where) {\n totalCount\n }\n }\n ': + '\n query GetReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [ReversibleTransferOrderByInput!]\n $where: ReversibleTransferWhereInput\n ) {\n reversibleTransactions: reversibleTransfers(\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 status\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n meta: reversibleTransfersConnection(orderBy: id_ASC, where: $where) {\n totalCount\n }\n }\n ': types.GetReversibleTransactionsDocument, - '\n query GetRecentReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [ReversibleTransferOrderByInput!]\n ) {\n reversibleTransactions: reversibleTransfers(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n ) {\n extrinsicHash\n amount\n timestamp\n status\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n ': + '\n query GetRecentReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [ReversibleTransferOrderByInput!]\n ) {\n reversibleTransactions: reversibleTransfers(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n ) {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n status\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n ': types.GetRecentReversibleTransactionsDocument, '\n query GetReversibleTransactionsStats(\n $startDate: DateTime!\n $endDate: DateTime!\n ) {\n last24Hour: reversibleTransfersConnection(\n orderBy: id_ASC\n where: { timestamp_gte: $startDate, timestamp_lte: $endDate }\n ) {\n totalCount\n }\n allTime: reversibleTransfersConnection(orderBy: id_ASC) {\n totalCount\n }\n }\n ': types.GetReversibleTransactionsStatsDocument, - '\n query GetReversibleTransactionByHash($hash: String!) {\n reversibleTransactions: reversibleTransfers(\n where: { extrinsicHash_eq: $hash }\n ) {\n fee\n amount\n extrinsicHash\n txId\n scheduledAt\n timestamp\n status\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n ': + '\n query GetReversibleTransactionByHash($hash: String!) {\n reversibleTransactions: reversibleTransfers(\n where: { extrinsic: { id_eq: $hash } }\n ) {\n fee\n amount\n extrinsic {\n id\n pallet\n call\n }\n txId\n scheduledAt\n timestamp\n status\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n ': types.GetReversibleTransactionByHashDocument, - '\n query GetReversibleTransactionStatusByHash($hash: String!) {\n reversibleTransactions: reversibleTransfers(\n where: { extrinsicHash_eq: $hash }\n ) {\n status\n }\n }\n ': + '\n query GetReversibleTransactionStatusByHash($hash: String!) {\n reversibleTransactions: reversibleTransfers(\n where: { extrinsic: { id_eq: $hash } }\n ) {\n status\n }\n }\n ': types.GetReversibleTransactionStatusByHashDocument, - '\n query SearchAll($keyword: String, $keyword_number: Int, $limit: Int) {\n transactions: transfers(\n limit: $limit\n where: { extrinsicHash_startsWith: $keyword }\n ) {\n extrinsicHash\n }\n reversibleTransactions: reversibleTransfers(\n limit: $limit\n where: { extrinsicHash_startsWith: $keyword }\n ) {\n extrinsicHash\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: { extrinsicHash_startsWith: $keyword }\n ) {\n extrinsicHash\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 extrinsicHash\n }\n }\n ': + '\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 reversibleTransactions: reversibleTransfers(\n limit: $limit\n where: { extrinsic: { id_startsWith: $keyword } }\n ) {\n extrinsic {\n id\n pallet\n call\n }\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 ': 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 extrinsicHash\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: [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 ': 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 extrinsicHash\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: [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 ': 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 extrinsicHash_isNull: false\n }\n ) {\n totalCount\n }\n allTime: transfersConnection(\n orderBy: id_ASC\n where: { extrinsicHash_isNull: false }\n ) {\n totalCount\n }\n }\n ': + '\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 ': types.GetTransactionsStatsDocument, - '\n query GetTransactionByHash($hash: String!) {\n transactions: transfers(where: { extrinsicHash_eq: $hash }) {\n fee\n extrinsicHash\n block {\n height\n }\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n }\n }\n ': + '\n query GetTransactionByHash($hash: String!) {\n transactions: transfers(where: { extrinsic: { id_eq: $hash } }) {\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.GetTransactionByHashDocument, - '\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 extrinsicHash\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: [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': types.GetWormholeExtrinsicsDocument, - '\n query GetWormholeExtrinsicById($id: String!) {\n wormholeExtrinsicById(id: $id) {\n id\n extrinsicHash\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(where: { extrinsic: { id_eq: $id } }) {\n nullifier\n nullifierHash\n }\n }\n': + '\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(where: { wormholeExtrinsic: { id_eq: $id } }) {\n nullifier\n nullifierHash\n }\n }\n': types.GetWormholeExtrinsicByIdDocument, '\n query GetDepositPoolStats {\n depositPoolStatsById(id: "global") {\n lastUpdatedBlock\n buckets\n }\n }\n': types.GetDepositPoolStatsDocument @@ -141,8 +141,8 @@ export function gql( * 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 extrinsicHash_isNull: false\n AND: { from: { id_eq: $id }, OR: { to: { id_eq: $id } } }\n }\n ) {\n edges {\n node {\n fee\n extrinsicHash\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 reversibleTransactions: reversibleTransfersConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: { from: { id_eq: $id }, OR: { to: { id_eq: $id } } }\n ) {\n edges {\n node {\n extrinsicHash\n timestamp\n status\n amount\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 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 who {\n id\n free\n frozen\n reserved\n }\n }\n }\n\n totalCount\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 extrinsicHash_isNull: false\n AND: { from: { id_eq: $id }, OR: { to: { id_eq: $id } } }\n }\n ) {\n edges {\n node {\n fee\n extrinsicHash\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 reversibleTransactions: reversibleTransfersConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: { from: { id_eq: $id }, OR: { to: { id_eq: $id } } }\n ) {\n edges {\n node {\n extrinsicHash\n timestamp\n status\n amount\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 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 who {\n id\n free\n frozen\n reserved\n }\n }\n }\n\n totalCount\n }\n }\n ']; + 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 reversibleTransactions: reversibleTransfersConnection(\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 status\n amount\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 reversibleTransactions: reversibleTransfersConnection(\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 status\n amount\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 ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ @@ -153,38 +153,38 @@ export function gql( * 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 }\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 }\n meta: blocksConnection(orderBy: id_ASC) {\n totalCount\n }\n }\n ']; + 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 ']; /** * 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 }\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 }\n }\n ']; + 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 ']; /** * 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 }\n miners: minerRewards(\n where: {\n block: { height_eq: $height }\n OR: { block: { hash_eq: $hash } }\n }\n ) {\n miner {\n id\n }\n }\n transactions: transfersConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n extrinsicHash_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 extrinsicHash\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 reversibleTransactions: reversibleTransfersConnection(\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 extrinsicHash\n timestamp\n status\n amount\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 extrinsicHash\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 extrinsicHash\n timestamp\n block {\n height\n }\n }\n }\n\n totalCount\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 }\n miners: minerRewards(\n where: {\n block: { height_eq: $height }\n OR: { block: { hash_eq: $hash } }\n }\n ) {\n miner {\n id\n }\n }\n transactions: transfersConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n extrinsicHash_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 extrinsicHash\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 reversibleTransactions: reversibleTransfersConnection(\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 extrinsicHash\n timestamp\n status\n amount\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 extrinsicHash\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 extrinsicHash\n timestamp\n block {\n height\n }\n }\n }\n\n totalCount\n }\n }\n ']; + 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 }\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 reversibleTransactions: reversibleTransfersConnection(\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 status\n amount\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 }\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 reversibleTransactions: reversibleTransfersConnection(\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 status\n amount\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 ']; /** * 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 $beginningDate: DateTime!\n $todayDate: DateTime!\n $endDate: DateTime!\n ) {\n transactions: transfersConnection(\n orderBy: id_ASC\n where: { extrinsicHash_isNull: false }\n ) {\n totalCount\n }\n reversibleTransactions: reversibleTransfersConnection(orderBy: id_ASC) {\n totalCount\n }\n status: squidStatus {\n hash\n height\n finalizedHeight\n finalizedHash\n }\n minedBlocks24Hours: blocksConnection(\n orderBy: id_ASC\n where: { timestamp_gte: $todayDate, timestamp_lte: $endDate }\n ) {\n totalCount\n }\n allActiveAccounts: accountsConnection(\n orderBy: id_ASC\n where: {\n transfersFrom_some: {\n timestamp_gte: $beginningDate\n timestamp_lte: $endDate\n }\n }\n ) {\n totalCount\n }\n allDepositAccounts: accountsConnection(\n orderBy: id_ASC\n where: {\n transfersTo_some: {\n timestamp_gte: $beginningDate\n timestamp_lte: $endDate\n }\n }\n ) {\n totalCount\n }\n }\n ' -): (typeof documents)['\n query GetStatus(\n $beginningDate: DateTime!\n $todayDate: DateTime!\n $endDate: DateTime!\n ) {\n transactions: transfersConnection(\n orderBy: id_ASC\n where: { extrinsicHash_isNull: false }\n ) {\n totalCount\n }\n reversibleTransactions: reversibleTransfersConnection(orderBy: id_ASC) {\n totalCount\n }\n status: squidStatus {\n hash\n height\n finalizedHeight\n finalizedHash\n }\n minedBlocks24Hours: blocksConnection(\n orderBy: id_ASC\n where: { timestamp_gte: $todayDate, timestamp_lte: $endDate }\n ) {\n totalCount\n }\n allActiveAccounts: accountsConnection(\n orderBy: id_ASC\n where: {\n transfersFrom_some: {\n timestamp_gte: $beginningDate\n timestamp_lte: $endDate\n }\n }\n ) {\n totalCount\n }\n allDepositAccounts: accountsConnection(\n orderBy: id_ASC\n where: {\n transfersTo_some: {\n timestamp_gte: $beginningDate\n timestamp_lte: $endDate\n }\n }\n ) {\n totalCount\n }\n }\n ']; + source: '\n query GetStatus(\n $beginningDate: DateTime!\n $todayDate: DateTime!\n $endDate: DateTime!\n ) {\n transactions: transfersConnection(\n orderBy: id_ASC\n where: { extrinsic_isNull: false }\n ) {\n totalCount\n }\n reversibleTransactions: reversibleTransfersConnection(orderBy: id_ASC) {\n totalCount\n }\n status: squidStatus {\n hash\n height\n finalizedHeight\n finalizedHash\n }\n minedBlocks24Hours: blocksConnection(\n orderBy: id_ASC\n where: { timestamp_gte: $todayDate, timestamp_lte: $endDate }\n ) {\n totalCount\n }\n allActiveAccounts: accountsConnection(\n orderBy: id_ASC\n where: {\n transfersFrom_some: {\n timestamp_gte: $beginningDate\n timestamp_lte: $endDate\n }\n }\n ) {\n totalCount\n }\n allDepositAccounts: accountsConnection(\n orderBy: id_ASC\n where: {\n transfersTo_some: {\n timestamp_gte: $beginningDate\n timestamp_lte: $endDate\n }\n }\n ) {\n totalCount\n }\n }\n ' +): (typeof documents)['\n query GetStatus(\n $beginningDate: DateTime!\n $todayDate: DateTime!\n $endDate: DateTime!\n ) {\n transactions: transfersConnection(\n orderBy: id_ASC\n where: { extrinsic_isNull: false }\n ) {\n totalCount\n }\n reversibleTransactions: reversibleTransfersConnection(orderBy: id_ASC) {\n totalCount\n }\n status: squidStatus {\n hash\n height\n finalizedHeight\n finalizedHash\n }\n minedBlocks24Hours: blocksConnection(\n orderBy: id_ASC\n where: { timestamp_gte: $todayDate, timestamp_lte: $endDate }\n ) {\n totalCount\n }\n allActiveAccounts: accountsConnection(\n orderBy: id_ASC\n where: {\n transfersFrom_some: {\n timestamp_gte: $beginningDate\n timestamp_lte: $endDate\n }\n }\n ) {\n totalCount\n }\n allDepositAccounts: accountsConnection(\n orderBy: id_ASC\n where: {\n transfersTo_some: {\n timestamp_gte: $beginningDate\n timestamp_lte: $endDate\n }\n }\n ) {\n totalCount\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 extrinsicHash\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 extrinsicHash\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 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 ']; /** * 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 extrinsicHash\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 extrinsicHash\n id\n timestamp\n block {\n height\n }\n }\n }\n ']; + 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 ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ @@ -195,20 +195,20 @@ export function gql( * 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: { extrinsicHash_eq: $hash }) {\n errorDocs\n errorModule\n errorName\n errorType\n extrinsicHash\n id\n timestamp\n block {\n height\n }\n }\n }\n ' -): (typeof documents)['\n query GetErrorEventByHash($hash: String!) {\n errorEvents: errorEvents(where: { extrinsicHash_eq: $hash }) {\n errorDocs\n errorModule\n errorName\n errorType\n extrinsicHash\n id\n timestamp\n block {\n height\n }\n }\n }\n ']; + 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 ']; /** * 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 extrinsicHash\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 extrinsicHash\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 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 ']; /** * 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 extrinsicHash\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 extrinsicHash\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 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 ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ @@ -219,8 +219,8 @@ export function gql( * 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: { extrinsicHash_eq: $hash }) {\n id\n extrinsicHash\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: { extrinsicHash_eq: $hash }) {\n id\n extrinsicHash\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 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 ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ @@ -255,14 +255,14 @@ export function gql( * 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 GetReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [ReversibleTransferOrderByInput!]\n $where: ReversibleTransferWhereInput\n ) {\n reversibleTransactions: reversibleTransfers(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n extrinsicHash\n amount\n timestamp\n status\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n meta: reversibleTransfersConnection(orderBy: id_ASC, where: $where) {\n totalCount\n }\n }\n ' -): (typeof documents)['\n query GetReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [ReversibleTransferOrderByInput!]\n $where: ReversibleTransferWhereInput\n ) {\n reversibleTransactions: reversibleTransfers(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n extrinsicHash\n amount\n timestamp\n status\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n meta: reversibleTransfersConnection(orderBy: id_ASC, where: $where) {\n totalCount\n }\n }\n ']; + source: '\n query GetReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [ReversibleTransferOrderByInput!]\n $where: ReversibleTransferWhereInput\n ) {\n reversibleTransactions: reversibleTransfers(\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 status\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n meta: reversibleTransfersConnection(orderBy: id_ASC, where: $where) {\n totalCount\n }\n }\n ' +): (typeof documents)['\n query GetReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [ReversibleTransferOrderByInput!]\n $where: ReversibleTransferWhereInput\n ) {\n reversibleTransactions: reversibleTransfers(\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 status\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n meta: reversibleTransfersConnection(orderBy: id_ASC, where: $where) {\n totalCount\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 GetRecentReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [ReversibleTransferOrderByInput!]\n ) {\n reversibleTransactions: reversibleTransfers(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n ) {\n extrinsicHash\n amount\n timestamp\n status\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n ' -): (typeof documents)['\n query GetRecentReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [ReversibleTransferOrderByInput!]\n ) {\n reversibleTransactions: reversibleTransfers(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n ) {\n extrinsicHash\n amount\n timestamp\n status\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n ']; + source: '\n query GetRecentReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [ReversibleTransferOrderByInput!]\n ) {\n reversibleTransactions: reversibleTransfers(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n ) {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n status\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n ' +): (typeof documents)['\n query GetRecentReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [ReversibleTransferOrderByInput!]\n ) {\n reversibleTransactions: reversibleTransfers(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n ) {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n status\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. */ @@ -273,56 +273,56 @@ export function gql( * 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 GetReversibleTransactionByHash($hash: String!) {\n reversibleTransactions: reversibleTransfers(\n where: { extrinsicHash_eq: $hash }\n ) {\n fee\n amount\n extrinsicHash\n txId\n scheduledAt\n timestamp\n status\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n ' -): (typeof documents)['\n query GetReversibleTransactionByHash($hash: String!) {\n reversibleTransactions: reversibleTransfers(\n where: { extrinsicHash_eq: $hash }\n ) {\n fee\n amount\n extrinsicHash\n txId\n scheduledAt\n timestamp\n status\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n ']; + source: '\n query GetReversibleTransactionByHash($hash: String!) {\n reversibleTransactions: reversibleTransfers(\n where: { extrinsic: { id_eq: $hash } }\n ) {\n fee\n amount\n extrinsic {\n id\n pallet\n call\n }\n txId\n scheduledAt\n timestamp\n status\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n ' +): (typeof documents)['\n query GetReversibleTransactionByHash($hash: String!) {\n reversibleTransactions: reversibleTransfers(\n where: { extrinsic: { id_eq: $hash } }\n ) {\n fee\n amount\n extrinsic {\n id\n pallet\n call\n }\n txId\n scheduledAt\n timestamp\n status\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 GetReversibleTransactionStatusByHash($hash: String!) {\n reversibleTransactions: reversibleTransfers(\n where: { extrinsicHash_eq: $hash }\n ) {\n status\n }\n }\n ' -): (typeof documents)['\n query GetReversibleTransactionStatusByHash($hash: String!) {\n reversibleTransactions: reversibleTransfers(\n where: { extrinsicHash_eq: $hash }\n ) {\n status\n }\n }\n ']; + source: '\n query GetReversibleTransactionStatusByHash($hash: String!) {\n reversibleTransactions: reversibleTransfers(\n where: { extrinsic: { id_eq: $hash } }\n ) {\n status\n }\n }\n ' +): (typeof documents)['\n query GetReversibleTransactionStatusByHash($hash: String!) {\n reversibleTransactions: reversibleTransfers(\n where: { extrinsic: { id_eq: $hash } }\n ) {\n status\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: { extrinsicHash_startsWith: $keyword }\n ) {\n extrinsicHash\n }\n reversibleTransactions: reversibleTransfers(\n limit: $limit\n where: { extrinsicHash_startsWith: $keyword }\n ) {\n extrinsicHash\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: { extrinsicHash_startsWith: $keyword }\n ) {\n extrinsicHash\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 extrinsicHash\n }\n }\n ' -): (typeof documents)['\n query SearchAll($keyword: String, $keyword_number: Int, $limit: Int) {\n transactions: transfers(\n limit: $limit\n where: { extrinsicHash_startsWith: $keyword }\n ) {\n extrinsicHash\n }\n reversibleTransactions: reversibleTransfers(\n limit: $limit\n where: { extrinsicHash_startsWith: $keyword }\n ) {\n extrinsicHash\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: { extrinsicHash_startsWith: $keyword }\n ) {\n extrinsicHash\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 extrinsicHash\n }\n }\n ']; + 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 reversibleTransactions: reversibleTransfers(\n limit: $limit\n where: { extrinsic: { id_startsWith: $keyword } }\n ) {\n extrinsic {\n id\n pallet\n call\n }\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 reversibleTransactions: reversibleTransfers(\n limit: $limit\n where: { extrinsic: { id_startsWith: $keyword } }\n ) {\n extrinsic {\n id\n pallet\n call\n }\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 ']; /** * 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 extrinsicHash\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 extrinsicHash\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 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 ']; /** * 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 extrinsicHash\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 extrinsicHash\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 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 ']; /** * 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 extrinsicHash_isNull: false\n }\n ) {\n totalCount\n }\n allTime: transfersConnection(\n orderBy: id_ASC\n where: { extrinsicHash_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 extrinsicHash_isNull: false\n }\n ) {\n totalCount\n }\n allTime: transfersConnection(\n orderBy: id_ASC\n where: { extrinsicHash_isNull: false }\n ) {\n totalCount\n }\n }\n ']; + 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 ']; /** * 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 GetTransactionByHash($hash: String!) {\n transactions: transfers(where: { extrinsicHash_eq: $hash }) {\n fee\n extrinsicHash\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 GetTransactionByHash($hash: String!) {\n transactions: transfers(where: { extrinsicHash_eq: $hash }) {\n fee\n extrinsicHash\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 GetTransactionByHash($hash: String!) {\n transactions: transfers(where: { extrinsic: { id_eq: $hash } }) {\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 GetTransactionByHash($hash: String!) {\n transactions: transfers(where: { extrinsic: { id_eq: $hash } }) {\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 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 extrinsicHash\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 extrinsicHash\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 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']; /** * 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 extrinsicHash\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(where: { extrinsic: { id_eq: $id } }) {\n nullifier\n nullifierHash\n }\n }\n' -): (typeof documents)['\n query GetWormholeExtrinsicById($id: String!) {\n wormholeExtrinsicById(id: $id) {\n id\n extrinsicHash\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(where: { extrinsic: { id_eq: $id } }) {\n nullifier\n nullifierHash\n }\n }\n']; + 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(where: { wormholeExtrinsic: { id_eq: $id } }) {\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(where: { wormholeExtrinsic: { id_eq: $id } }) {\n nullifier\n nullifierHash\n }\n }\n']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ diff --git a/src/__generated__/graphql.ts b/src/__generated__/graphql.ts index 4bd3c82..5812c3d 100644 --- a/src/__generated__/graphql.ts +++ b/src/__generated__/graphql.ts @@ -35,6 +35,8 @@ export type Scalars = { export type Account = { __typename?: 'Account'; + /** Extrinsics signed by this account */ + extrinsics: Array; free: Scalars['BigInt']['output']; frozen: Scalars['BigInt']['output']; /** Account address */ @@ -47,6 +49,13 @@ export type Account = { transfersTo: Array; }; +export type AccountExtrinsicsArgs = { + limit?: InputMaybe; + offset?: InputMaybe; + orderBy?: InputMaybe>; + where?: InputMaybe; +}; + export type AccountTransfersFromArgs = { limit?: InputMaybe; offset?: InputMaybe; @@ -109,6 +118,9 @@ export enum AccountOrderByInput { export type AccountWhereInput = { AND?: InputMaybe>; OR?: InputMaybe>; + extrinsics_every?: InputMaybe; + extrinsics_none?: InputMaybe; + extrinsics_some?: InputMaybe; free_eq?: InputMaybe; free_gt?: InputMaybe; free_gte?: InputMaybe; @@ -240,12 +252,6 @@ export enum BalanceEventOrderByInput { AmountDesc = 'amount_DESC', AmountDescNullsFirst = 'amount_DESC_NULLS_FIRST', AmountDescNullsLast = 'amount_DESC_NULLS_LAST', - EventExtrinsicHashAsc = 'event_extrinsicHash_ASC', - EventExtrinsicHashAscNullsFirst = 'event_extrinsicHash_ASC_NULLS_FIRST', - EventExtrinsicHashAscNullsLast = 'event_extrinsicHash_ASC_NULLS_LAST', - EventExtrinsicHashDesc = 'event_extrinsicHash_DESC', - EventExtrinsicHashDescNullsFirst = 'event_extrinsicHash_DESC_NULLS_FIRST', - EventExtrinsicHashDescNullsLast = 'event_extrinsicHash_DESC_NULLS_LAST', EventIdAsc = 'event_id_ASC', EventIdAscNullsFirst = 'event_id_ASC_NULLS_FIRST', EventIdAscNullsLast = 'event_id_ASC_NULLS_LAST', @@ -431,6 +437,7 @@ export type BalanceEventsConnection = { export type Block = { __typename?: 'Block'; events: Array; + extrinsics: Array; hash: Scalars['String']['output']; height: Scalars['Int']['output']; id: Scalars['String']['output']; @@ -446,6 +453,13 @@ export type BlockEventsArgs = { where?: InputMaybe; }; +export type BlockExtrinsicsArgs = { + limit?: InputMaybe; + offset?: InputMaybe; + orderBy?: InputMaybe>; + where?: InputMaybe; +}; + export type BlockTransactionsArgs = { limit?: InputMaybe; offset?: InputMaybe; @@ -498,6 +512,9 @@ export type BlockWhereInput = { 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; @@ -672,7 +689,8 @@ export type ErrorEvent = { errorName?: Maybe; errorType: Scalars['String']['output']; event?: Maybe; - extrinsicHash?: Maybe; + /** Link to the extrinsic that failed */ + extrinsic?: Maybe; id: Scalars['String']['output']; timestamp: Scalars['DateTime']['output']; }; @@ -738,12 +756,6 @@ export enum ErrorEventOrderByInput { ErrorTypeDesc = 'errorType_DESC', ErrorTypeDescNullsFirst = 'errorType_DESC_NULLS_FIRST', ErrorTypeDescNullsLast = 'errorType_DESC_NULLS_LAST', - EventExtrinsicHashAsc = 'event_extrinsicHash_ASC', - EventExtrinsicHashAscNullsFirst = 'event_extrinsicHash_ASC_NULLS_FIRST', - EventExtrinsicHashAscNullsLast = 'event_extrinsicHash_ASC_NULLS_LAST', - EventExtrinsicHashDesc = 'event_extrinsicHash_DESC', - EventExtrinsicHashDescNullsFirst = 'event_extrinsicHash_DESC_NULLS_FIRST', - EventExtrinsicHashDescNullsLast = 'event_extrinsicHash_DESC_NULLS_LAST', EventIdAsc = 'event_id_ASC', EventIdAscNullsFirst = 'event_id_ASC_NULLS_FIRST', EventIdAscNullsLast = 'event_id_ASC_NULLS_LAST', @@ -768,12 +780,54 @@ export enum ErrorEventOrderByInput { EventTypeDesc = 'event_type_DESC', EventTypeDescNullsFirst = 'event_type_DESC_NULLS_FIRST', EventTypeDescNullsLast = 'event_type_DESC_NULLS_LAST', - ExtrinsicHashAsc = 'extrinsicHash_ASC', - ExtrinsicHashAscNullsFirst = 'extrinsicHash_ASC_NULLS_FIRST', - ExtrinsicHashAscNullsLast = 'extrinsicHash_ASC_NULLS_LAST', - ExtrinsicHashDesc = 'extrinsicHash_DESC', - ExtrinsicHashDescNullsFirst = 'extrinsicHash_DESC_NULLS_FIRST', - ExtrinsicHashDescNullsLast = 'extrinsicHash_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', @@ -863,25 +917,8 @@ export type ErrorEventWhereInput = { errorType_startsWith?: InputMaybe; event?: InputMaybe; event_isNull?: InputMaybe; - extrinsicHash_contains?: InputMaybe; - extrinsicHash_containsInsensitive?: InputMaybe; - extrinsicHash_endsWith?: InputMaybe; - extrinsicHash_eq?: InputMaybe; - extrinsicHash_gt?: InputMaybe; - extrinsicHash_gte?: InputMaybe; - extrinsicHash_in?: InputMaybe>; - extrinsicHash_isNull?: InputMaybe; - extrinsicHash_lt?: InputMaybe; - extrinsicHash_lte?: InputMaybe; - extrinsicHash_not_contains?: InputMaybe; - extrinsicHash_not_containsInsensitive?: InputMaybe< - Scalars['String']['input'] - >; - extrinsicHash_not_endsWith?: InputMaybe; - extrinsicHash_not_eq?: InputMaybe; - extrinsicHash_not_in?: InputMaybe>; - extrinsicHash_not_startsWith?: InputMaybe; - extrinsicHash_startsWith?: InputMaybe; + extrinsic?: InputMaybe; + extrinsic_isNull?: InputMaybe; id_contains?: InputMaybe; id_containsInsensitive?: InputMaybe; id_endsWith?: InputMaybe; @@ -922,7 +959,8 @@ export type Event = { balanceEvent?: Maybe; block: Block; errorEvent?: Maybe; - extrinsicHash?: Maybe; + /** Link to the extrinsic that emitted this event (null for inherent events like miner rewards) */ + extrinsic?: Maybe; highSecuritySet?: Maybe; id: Scalars['String']['output']; isScheduled: Scalars['Boolean']['output']; @@ -1012,12 +1050,6 @@ export enum EventOrderByInput { ErrorEventErrorTypeDesc = 'errorEvent_errorType_DESC', ErrorEventErrorTypeDescNullsFirst = 'errorEvent_errorType_DESC_NULLS_FIRST', ErrorEventErrorTypeDescNullsLast = 'errorEvent_errorType_DESC_NULLS_LAST', - ErrorEventExtrinsicHashAsc = 'errorEvent_extrinsicHash_ASC', - ErrorEventExtrinsicHashAscNullsFirst = 'errorEvent_extrinsicHash_ASC_NULLS_FIRST', - ErrorEventExtrinsicHashAscNullsLast = 'errorEvent_extrinsicHash_ASC_NULLS_LAST', - ErrorEventExtrinsicHashDesc = 'errorEvent_extrinsicHash_DESC', - ErrorEventExtrinsicHashDescNullsFirst = 'errorEvent_extrinsicHash_DESC_NULLS_FIRST', - ErrorEventExtrinsicHashDescNullsLast = 'errorEvent_extrinsicHash_DESC_NULLS_LAST', ErrorEventIdAsc = 'errorEvent_id_ASC', ErrorEventIdAscNullsFirst = 'errorEvent_id_ASC_NULLS_FIRST', ErrorEventIdAscNullsLast = 'errorEvent_id_ASC_NULLS_LAST', @@ -1030,24 +1062,60 @@ export enum EventOrderByInput { ErrorEventTimestampDesc = 'errorEvent_timestamp_DESC', ErrorEventTimestampDescNullsFirst = 'errorEvent_timestamp_DESC_NULLS_FIRST', ErrorEventTimestampDescNullsLast = 'errorEvent_timestamp_DESC_NULLS_LAST', - ExtrinsicHashAsc = 'extrinsicHash_ASC', - ExtrinsicHashAscNullsFirst = 'extrinsicHash_ASC_NULLS_FIRST', - ExtrinsicHashAscNullsLast = 'extrinsicHash_ASC_NULLS_LAST', - ExtrinsicHashDesc = 'extrinsicHash_DESC', - ExtrinsicHashDescNullsFirst = 'extrinsicHash_DESC_NULLS_FIRST', - ExtrinsicHashDescNullsLast = 'extrinsicHash_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', - HighSecuritySetExtrinsicHashAsc = 'highSecuritySet_extrinsicHash_ASC', - HighSecuritySetExtrinsicHashAscNullsFirst = 'highSecuritySet_extrinsicHash_ASC_NULLS_FIRST', - HighSecuritySetExtrinsicHashAscNullsLast = 'highSecuritySet_extrinsicHash_ASC_NULLS_LAST', - HighSecuritySetExtrinsicHashDesc = 'highSecuritySet_extrinsicHash_DESC', - HighSecuritySetExtrinsicHashDescNullsFirst = 'highSecuritySet_extrinsicHash_DESC_NULLS_FIRST', - HighSecuritySetExtrinsicHashDescNullsLast = 'highSecuritySet_extrinsicHash_DESC_NULLS_LAST', HighSecuritySetIdAsc = 'highSecuritySet_id_ASC', HighSecuritySetIdAscNullsFirst = 'highSecuritySet_id_ASC_NULLS_FIRST', HighSecuritySetIdAscNullsLast = 'highSecuritySet_id_ASC_NULLS_LAST', @@ -1096,12 +1164,6 @@ export enum EventOrderByInput { ReversibleTransferAmountDesc = 'reversibleTransfer_amount_DESC', ReversibleTransferAmountDescNullsFirst = 'reversibleTransfer_amount_DESC_NULLS_FIRST', ReversibleTransferAmountDescNullsLast = 'reversibleTransfer_amount_DESC_NULLS_LAST', - ReversibleTransferExtrinsicHashAsc = 'reversibleTransfer_extrinsicHash_ASC', - ReversibleTransferExtrinsicHashAscNullsFirst = 'reversibleTransfer_extrinsicHash_ASC_NULLS_FIRST', - ReversibleTransferExtrinsicHashAscNullsLast = 'reversibleTransfer_extrinsicHash_ASC_NULLS_LAST', - ReversibleTransferExtrinsicHashDesc = 'reversibleTransfer_extrinsicHash_DESC', - ReversibleTransferExtrinsicHashDescNullsFirst = 'reversibleTransfer_extrinsicHash_DESC_NULLS_FIRST', - ReversibleTransferExtrinsicHashDescNullsLast = 'reversibleTransfer_extrinsicHash_DESC_NULLS_LAST', ReversibleTransferFeeAsc = 'reversibleTransfer_fee_ASC', ReversibleTransferFeeAscNullsFirst = 'reversibleTransfer_fee_ASC_NULLS_FIRST', ReversibleTransferFeeAscNullsLast = 'reversibleTransfer_fee_ASC_NULLS_LAST', @@ -1150,12 +1212,6 @@ export enum EventOrderByInput { TransferAmountDesc = 'transfer_amount_DESC', TransferAmountDescNullsFirst = 'transfer_amount_DESC_NULLS_FIRST', TransferAmountDescNullsLast = 'transfer_amount_DESC_NULLS_LAST', - TransferExtrinsicHashAsc = 'transfer_extrinsicHash_ASC', - TransferExtrinsicHashAscNullsFirst = 'transfer_extrinsicHash_ASC_NULLS_FIRST', - TransferExtrinsicHashAscNullsLast = 'transfer_extrinsicHash_ASC_NULLS_LAST', - TransferExtrinsicHashDesc = 'transfer_extrinsicHash_DESC', - TransferExtrinsicHashDescNullsFirst = 'transfer_extrinsicHash_DESC_NULLS_FIRST', - TransferExtrinsicHashDescNullsLast = 'transfer_extrinsicHash_DESC_NULLS_LAST', TransferFeeAsc = 'transfer_fee_ASC', TransferFeeAscNullsFirst = 'transfer_fee_ASC_NULLS_FIRST', TransferFeeAscNullsLast = 'transfer_fee_ASC_NULLS_LAST', @@ -1212,25 +1268,8 @@ export type EventWhereInput = { block_isNull?: InputMaybe; errorEvent?: InputMaybe; errorEvent_isNull?: InputMaybe; - extrinsicHash_contains?: InputMaybe; - extrinsicHash_containsInsensitive?: InputMaybe; - extrinsicHash_endsWith?: InputMaybe; - extrinsicHash_eq?: InputMaybe; - extrinsicHash_gt?: InputMaybe; - extrinsicHash_gte?: InputMaybe; - extrinsicHash_in?: InputMaybe>; - extrinsicHash_isNull?: InputMaybe; - extrinsicHash_lt?: InputMaybe; - extrinsicHash_lte?: InputMaybe; - extrinsicHash_not_contains?: InputMaybe; - extrinsicHash_not_containsInsensitive?: InputMaybe< - Scalars['String']['input'] - >; - extrinsicHash_not_endsWith?: InputMaybe; - extrinsicHash_not_eq?: InputMaybe; - extrinsicHash_not_in?: InputMaybe>; - extrinsicHash_not_startsWith?: InputMaybe; - extrinsicHash_startsWith?: InputMaybe; + extrinsic?: InputMaybe; + extrinsic_isNull?: InputMaybe; highSecuritySet?: InputMaybe; highSecuritySet_isNull?: InputMaybe; id_contains?: InputMaybe; @@ -1282,12 +1321,286 @@ export type EventsConnection = { totalCount: Scalars['Int']['output']; }; +/** An extrinsic (transaction) submitted to the chain */ +export type Extrinsic = { + __typename?: 'Extrinsic'; + /** Decoded call arguments as JSON */ + args: Scalars['String']['output']; + block: Block; + /** Call name (e.g., 'transfer', 'transfer_keep_alive') */ + call: Scalars['String']['output']; + /** Events emitted by this extrinsic */ + events: Array; + /** Transaction fee paid */ + fee: Scalars['BigInt']['output']; + /** Extrinsic hash */ + id: Scalars['String']['output']; + /** Index of the extrinsic within the block */ + indexInBlock: Scalars['Int']['output']; + /** Pallet name (e.g., 'Balances', 'ReversibleTransfers') */ + pallet: Scalars['String']['output']; + /** Account that signed and submitted the extrinsic (null for unsigned extrinsics like wormhole proofs) */ + signer?: Maybe; + /** Whether the extrinsic succeeded */ + success: Scalars['Boolean']['output']; + timestamp: Scalars['DateTime']['output']; +}; + +/** An extrinsic (transaction) submitted to the chain */ +export type ExtrinsicEventsArgs = { + 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', + 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' +} + +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']; event?: Maybe; - extrinsicHash?: Maybe; + /** Link to the extrinsic that set high security */ + extrinsic?: Maybe; id: Scalars['String']['output']; interceptor: Account; timestamp: Scalars['DateTime']['output']; @@ -1337,12 +1650,6 @@ export enum HighSecuritySetOrderByInput { DelayDesc = 'delay_DESC', DelayDescNullsFirst = 'delay_DESC_NULLS_FIRST', DelayDescNullsLast = 'delay_DESC_NULLS_LAST', - EventExtrinsicHashAsc = 'event_extrinsicHash_ASC', - EventExtrinsicHashAscNullsFirst = 'event_extrinsicHash_ASC_NULLS_FIRST', - EventExtrinsicHashAscNullsLast = 'event_extrinsicHash_ASC_NULLS_LAST', - EventExtrinsicHashDesc = 'event_extrinsicHash_DESC', - EventExtrinsicHashDescNullsFirst = 'event_extrinsicHash_DESC_NULLS_FIRST', - EventExtrinsicHashDescNullsLast = 'event_extrinsicHash_DESC_NULLS_LAST', EventIdAsc = 'event_id_ASC', EventIdAscNullsFirst = 'event_id_ASC_NULLS_FIRST', EventIdAscNullsLast = 'event_id_ASC_NULLS_LAST', @@ -1367,12 +1674,54 @@ export enum HighSecuritySetOrderByInput { EventTypeDesc = 'event_type_DESC', EventTypeDescNullsFirst = 'event_type_DESC_NULLS_FIRST', EventTypeDescNullsLast = 'event_type_DESC_NULLS_LAST', - ExtrinsicHashAsc = 'extrinsicHash_ASC', - ExtrinsicHashAscNullsFirst = 'extrinsicHash_ASC_NULLS_FIRST', - ExtrinsicHashAscNullsLast = 'extrinsicHash_ASC_NULLS_LAST', - ExtrinsicHashDesc = 'extrinsicHash_DESC', - ExtrinsicHashDescNullsFirst = 'extrinsicHash_DESC_NULLS_FIRST', - ExtrinsicHashDescNullsLast = 'extrinsicHash_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', @@ -1475,25 +1824,8 @@ export type HighSecuritySetWhereInput = { delay_not_in?: InputMaybe>; event?: InputMaybe; event_isNull?: InputMaybe; - extrinsicHash_contains?: InputMaybe; - extrinsicHash_containsInsensitive?: InputMaybe; - extrinsicHash_endsWith?: InputMaybe; - extrinsicHash_eq?: InputMaybe; - extrinsicHash_gt?: InputMaybe; - extrinsicHash_gte?: InputMaybe; - extrinsicHash_in?: InputMaybe>; - extrinsicHash_isNull?: InputMaybe; - extrinsicHash_lt?: InputMaybe; - extrinsicHash_lte?: InputMaybe; - extrinsicHash_not_contains?: InputMaybe; - extrinsicHash_not_containsInsensitive?: InputMaybe< - Scalars['String']['input'] - >; - extrinsicHash_not_endsWith?: InputMaybe; - extrinsicHash_not_eq?: InputMaybe; - extrinsicHash_not_in?: InputMaybe>; - extrinsicHash_not_startsWith?: InputMaybe; - extrinsicHash_startsWith?: InputMaybe; + extrinsic?: InputMaybe; + extrinsic_isNull?: InputMaybe; id_contains?: InputMaybe; id_containsInsensitive?: InputMaybe; id_endsWith?: InputMaybe; @@ -1580,12 +1912,6 @@ export enum MinerRewardOrderByInput { BlockTimestampDesc = 'block_timestamp_DESC', BlockTimestampDescNullsFirst = 'block_timestamp_DESC_NULLS_FIRST', BlockTimestampDescNullsLast = 'block_timestamp_DESC_NULLS_LAST', - EventExtrinsicHashAsc = 'event_extrinsicHash_ASC', - EventExtrinsicHashAscNullsFirst = 'event_extrinsicHash_ASC_NULLS_FIRST', - EventExtrinsicHashAscNullsLast = 'event_extrinsicHash_ASC_NULLS_LAST', - EventExtrinsicHashDesc = 'event_extrinsicHash_DESC', - EventExtrinsicHashDescNullsFirst = 'event_extrinsicHash_DESC_NULLS_FIRST', - EventExtrinsicHashDescNullsLast = 'event_extrinsicHash_DESC_NULLS_LAST', EventIdAsc = 'event_id_ASC', EventIdAscNullsFirst = 'event_id_ASC_NULLS_FIRST', EventIdAscNullsLast = 'event_id_ASC_NULLS_LAST', @@ -1849,6 +2175,9 @@ export type Query = { eventById?: Maybe; events: Array; eventsConnection: EventsConnection; + extrinsicById?: Maybe; + extrinsics: Array; + extrinsicsConnection: ExtrinsicsConnection; highSecuritySetById?: Maybe; highSecuritySets: Array; highSecuritySetsConnection: HighSecuritySetsConnection; @@ -1986,6 +2315,24 @@ export type QueryEventsConnectionArgs = { where?: InputMaybe; }; +export type QueryExtrinsicByIdArgs = { + id: Scalars['String']['input']; +}; + +export type QueryExtrinsicsArgs = { + limit?: InputMaybe; + offset?: InputMaybe; + orderBy?: InputMaybe>; + where?: InputMaybe; +}; + +export type QueryExtrinsicsConnectionArgs = { + after?: InputMaybe; + first?: InputMaybe; + orderBy: Array; + where?: InputMaybe; +}; + export type QueryHighSecuritySetByIdArgs = { id: Scalars['String']['input']; }; @@ -2145,7 +2492,8 @@ export type ReversibleTransfer = { cancelledBy?: Maybe; event?: Maybe; executedTransfer?: Maybe; - extrinsicHash?: Maybe; + /** Link to the extrinsic that scheduled this transfer */ + extrinsic?: Maybe; fee: Scalars['BigInt']['output']; from: Account; id: Scalars['String']['output']; @@ -2235,12 +2583,6 @@ export enum ReversibleTransferOrderByInput { CancelledByReservedDesc = 'cancelledBy_reserved_DESC', CancelledByReservedDescNullsFirst = 'cancelledBy_reserved_DESC_NULLS_FIRST', CancelledByReservedDescNullsLast = 'cancelledBy_reserved_DESC_NULLS_LAST', - EventExtrinsicHashAsc = 'event_extrinsicHash_ASC', - EventExtrinsicHashAscNullsFirst = 'event_extrinsicHash_ASC_NULLS_FIRST', - EventExtrinsicHashAscNullsLast = 'event_extrinsicHash_ASC_NULLS_LAST', - EventExtrinsicHashDesc = 'event_extrinsicHash_DESC', - EventExtrinsicHashDescNullsFirst = 'event_extrinsicHash_DESC_NULLS_FIRST', - EventExtrinsicHashDescNullsLast = 'event_extrinsicHash_DESC_NULLS_LAST', EventIdAsc = 'event_id_ASC', EventIdAscNullsFirst = 'event_id_ASC_NULLS_FIRST', EventIdAscNullsLast = 'event_id_ASC_NULLS_LAST', @@ -2271,12 +2613,6 @@ export enum ReversibleTransferOrderByInput { ExecutedTransferAmountDesc = 'executedTransfer_amount_DESC', ExecutedTransferAmountDescNullsFirst = 'executedTransfer_amount_DESC_NULLS_FIRST', ExecutedTransferAmountDescNullsLast = 'executedTransfer_amount_DESC_NULLS_LAST', - ExecutedTransferExtrinsicHashAsc = 'executedTransfer_extrinsicHash_ASC', - ExecutedTransferExtrinsicHashAscNullsFirst = 'executedTransfer_extrinsicHash_ASC_NULLS_FIRST', - ExecutedTransferExtrinsicHashAscNullsLast = 'executedTransfer_extrinsicHash_ASC_NULLS_LAST', - ExecutedTransferExtrinsicHashDesc = 'executedTransfer_extrinsicHash_DESC', - ExecutedTransferExtrinsicHashDescNullsFirst = 'executedTransfer_extrinsicHash_DESC_NULLS_FIRST', - ExecutedTransferExtrinsicHashDescNullsLast = 'executedTransfer_extrinsicHash_DESC_NULLS_LAST', ExecutedTransferFeeAsc = 'executedTransfer_fee_ASC', ExecutedTransferFeeAscNullsFirst = 'executedTransfer_fee_ASC_NULLS_FIRST', ExecutedTransferFeeAscNullsLast = 'executedTransfer_fee_ASC_NULLS_LAST', @@ -2307,12 +2643,54 @@ export enum ReversibleTransferOrderByInput { ExecutedTransferToHashDesc = 'executedTransfer_toHash_DESC', ExecutedTransferToHashDescNullsFirst = 'executedTransfer_toHash_DESC_NULLS_FIRST', ExecutedTransferToHashDescNullsLast = 'executedTransfer_toHash_DESC_NULLS_LAST', - ExtrinsicHashAsc = 'extrinsicHash_ASC', - ExtrinsicHashAscNullsFirst = 'extrinsicHash_ASC_NULLS_FIRST', - ExtrinsicHashAscNullsLast = 'extrinsicHash_ASC_NULLS_LAST', - ExtrinsicHashDesc = 'extrinsicHash_DESC', - ExtrinsicHashDescNullsFirst = 'extrinsicHash_DESC_NULLS_FIRST', - ExtrinsicHashDescNullsLast = 'extrinsicHash_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', @@ -2449,25 +2827,8 @@ export type ReversibleTransferWhereInput = { event_isNull?: InputMaybe; executedTransfer?: InputMaybe; executedTransfer_isNull?: InputMaybe; - extrinsicHash_contains?: InputMaybe; - extrinsicHash_containsInsensitive?: InputMaybe; - extrinsicHash_endsWith?: InputMaybe; - extrinsicHash_eq?: InputMaybe; - extrinsicHash_gt?: InputMaybe; - extrinsicHash_gte?: InputMaybe; - extrinsicHash_in?: InputMaybe>; - extrinsicHash_isNull?: InputMaybe; - extrinsicHash_lt?: InputMaybe; - extrinsicHash_lte?: InputMaybe; - extrinsicHash_not_contains?: InputMaybe; - extrinsicHash_not_containsInsensitive?: InputMaybe< - Scalars['String']['input'] - >; - extrinsicHash_not_endsWith?: InputMaybe; - extrinsicHash_not_eq?: InputMaybe; - extrinsicHash_not_in?: InputMaybe>; - extrinsicHash_not_startsWith?: InputMaybe; - extrinsicHash_startsWith?: InputMaybe; + extrinsic?: InputMaybe; + extrinsic_isNull?: InputMaybe; fee_eq?: InputMaybe; fee_gt?: InputMaybe; fee_gte?: InputMaybe; @@ -2565,7 +2926,8 @@ export type Transfer = { block: Block; event?: Maybe; executedBy?: Maybe; - extrinsicHash?: Maybe; + /** Link to the extrinsic that caused this transfer (null for transfers from reversible execution) */ + extrinsic?: Maybe; fee: Scalars['BigInt']['output']; from: Account; /** Blake3 hash of raw 'from' address bytes (hex string) for privacy-preserving prefix queries */ @@ -2620,12 +2982,6 @@ export enum TransferOrderByInput { BlockTimestampDesc = 'block_timestamp_DESC', BlockTimestampDescNullsFirst = 'block_timestamp_DESC_NULLS_FIRST', BlockTimestampDescNullsLast = 'block_timestamp_DESC_NULLS_LAST', - EventExtrinsicHashAsc = 'event_extrinsicHash_ASC', - EventExtrinsicHashAscNullsFirst = 'event_extrinsicHash_ASC_NULLS_FIRST', - EventExtrinsicHashAscNullsLast = 'event_extrinsicHash_ASC_NULLS_LAST', - EventExtrinsicHashDesc = 'event_extrinsicHash_DESC', - EventExtrinsicHashDescNullsFirst = 'event_extrinsicHash_DESC_NULLS_FIRST', - EventExtrinsicHashDescNullsLast = 'event_extrinsicHash_DESC_NULLS_LAST', EventIdAsc = 'event_id_ASC', EventIdAscNullsFirst = 'event_id_ASC_NULLS_FIRST', EventIdAscNullsLast = 'event_id_ASC_NULLS_LAST', @@ -2656,12 +3012,6 @@ export enum TransferOrderByInput { ExecutedByAmountDesc = 'executedBy_amount_DESC', ExecutedByAmountDescNullsFirst = 'executedBy_amount_DESC_NULLS_FIRST', ExecutedByAmountDescNullsLast = 'executedBy_amount_DESC_NULLS_LAST', - ExecutedByExtrinsicHashAsc = 'executedBy_extrinsicHash_ASC', - ExecutedByExtrinsicHashAscNullsFirst = 'executedBy_extrinsicHash_ASC_NULLS_FIRST', - ExecutedByExtrinsicHashAscNullsLast = 'executedBy_extrinsicHash_ASC_NULLS_LAST', - ExecutedByExtrinsicHashDesc = 'executedBy_extrinsicHash_DESC', - ExecutedByExtrinsicHashDescNullsFirst = 'executedBy_extrinsicHash_DESC_NULLS_FIRST', - ExecutedByExtrinsicHashDescNullsLast = 'executedBy_extrinsicHash_DESC_NULLS_LAST', ExecutedByFeeAsc = 'executedBy_fee_ASC', ExecutedByFeeAscNullsFirst = 'executedBy_fee_ASC_NULLS_FIRST', ExecutedByFeeAscNullsLast = 'executedBy_fee_ASC_NULLS_LAST', @@ -2698,12 +3048,54 @@ export enum TransferOrderByInput { ExecutedByTxIdDesc = 'executedBy_txId_DESC', ExecutedByTxIdDescNullsFirst = 'executedBy_txId_DESC_NULLS_FIRST', ExecutedByTxIdDescNullsLast = 'executedBy_txId_DESC_NULLS_LAST', - ExtrinsicHashAsc = 'extrinsicHash_ASC', - ExtrinsicHashAscNullsFirst = 'extrinsicHash_ASC_NULLS_FIRST', - ExtrinsicHashAscNullsLast = 'extrinsicHash_ASC_NULLS_LAST', - ExtrinsicHashDesc = 'extrinsicHash_DESC', - ExtrinsicHashDescNullsFirst = 'extrinsicHash_DESC_NULLS_FIRST', - ExtrinsicHashDescNullsLast = 'extrinsicHash_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', @@ -2826,25 +3218,8 @@ export type TransferWhereInput = { event_isNull?: InputMaybe; executedBy?: InputMaybe; executedBy_isNull?: InputMaybe; - extrinsicHash_contains?: InputMaybe; - extrinsicHash_containsInsensitive?: InputMaybe; - extrinsicHash_endsWith?: InputMaybe; - extrinsicHash_eq?: InputMaybe; - extrinsicHash_gt?: InputMaybe; - extrinsicHash_gte?: InputMaybe; - extrinsicHash_in?: InputMaybe>; - extrinsicHash_isNull?: InputMaybe; - extrinsicHash_lt?: InputMaybe; - extrinsicHash_lte?: InputMaybe; - extrinsicHash_not_contains?: InputMaybe; - extrinsicHash_not_containsInsensitive?: InputMaybe< - Scalars['String']['input'] - >; - extrinsicHash_not_endsWith?: InputMaybe; - extrinsicHash_not_eq?: InputMaybe; - extrinsicHash_not_in?: InputMaybe>; - extrinsicHash_not_startsWith?: InputMaybe; - extrinsicHash_startsWith?: InputMaybe; + extrinsic?: InputMaybe; + extrinsic_isNull?: InputMaybe; fee_eq?: InputMaybe; fee_gt?: InputMaybe; fee_gte?: InputMaybe; @@ -2963,7 +3338,8 @@ export type TransfersConnection = { export type WormholeExtrinsic = { __typename?: 'WormholeExtrinsic'; block: Block; - extrinsicHash?: Maybe; + /** Link to the generic Extrinsic entity */ + extrinsic?: Maybe; id: Scalars['String']['output']; /** Number of non-zero exit outputs */ outputCount: Scalars['Int']['output']; @@ -3031,12 +3407,54 @@ export enum WormholeExtrinsicOrderByInput { BlockTimestampDesc = 'block_timestamp_DESC', BlockTimestampDescNullsFirst = 'block_timestamp_DESC_NULLS_FIRST', BlockTimestampDescNullsLast = 'block_timestamp_DESC_NULLS_LAST', - ExtrinsicHashAsc = 'extrinsicHash_ASC', - ExtrinsicHashAscNullsFirst = 'extrinsicHash_ASC_NULLS_FIRST', - ExtrinsicHashAscNullsLast = 'extrinsicHash_ASC_NULLS_LAST', - ExtrinsicHashDesc = 'extrinsicHash_DESC', - ExtrinsicHashDescNullsFirst = 'extrinsicHash_DESC_NULLS_FIRST', - ExtrinsicHashDescNullsLast = 'extrinsicHash_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', @@ -3104,25 +3522,8 @@ export type WormholeExtrinsicWhereInput = { OR?: InputMaybe>; block?: InputMaybe; block_isNull?: InputMaybe; - extrinsicHash_contains?: InputMaybe; - extrinsicHash_containsInsensitive?: InputMaybe; - extrinsicHash_endsWith?: InputMaybe; - extrinsicHash_eq?: InputMaybe; - extrinsicHash_gt?: InputMaybe; - extrinsicHash_gte?: InputMaybe; - extrinsicHash_in?: InputMaybe>; - extrinsicHash_isNull?: InputMaybe; - extrinsicHash_lt?: InputMaybe; - extrinsicHash_lte?: InputMaybe; - extrinsicHash_not_contains?: InputMaybe; - extrinsicHash_not_containsInsensitive?: InputMaybe< - Scalars['String']['input'] - >; - extrinsicHash_not_endsWith?: InputMaybe; - extrinsicHash_not_eq?: InputMaybe; - extrinsicHash_not_in?: InputMaybe>; - extrinsicHash_not_startsWith?: InputMaybe; - extrinsicHash_startsWith?: InputMaybe; + extrinsic?: InputMaybe; + extrinsic_isNull?: InputMaybe; id_contains?: InputMaybe; id_containsInsensitive?: InputMaybe; id_endsWith?: InputMaybe; @@ -3254,14 +3655,14 @@ export type WormholeNullifier = { __typename?: 'WormholeNullifier'; /** Block where the nullifier was consumed */ block: Block; - /** The wormhole extrinsic that consumed this nullifier */ - extrinsic: WormholeExtrinsic; 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 = { @@ -3301,72 +3702,6 @@ export enum WormholeNullifierOrderByInput { BlockTimestampDesc = 'block_timestamp_DESC', BlockTimestampDescNullsFirst = 'block_timestamp_DESC_NULLS_FIRST', BlockTimestampDescNullsLast = 'block_timestamp_DESC_NULLS_LAST', - ExtrinsicExtrinsicHashAsc = 'extrinsic_extrinsicHash_ASC', - ExtrinsicExtrinsicHashAscNullsFirst = 'extrinsic_extrinsicHash_ASC_NULLS_FIRST', - ExtrinsicExtrinsicHashAscNullsLast = 'extrinsic_extrinsicHash_ASC_NULLS_LAST', - ExtrinsicExtrinsicHashDesc = 'extrinsic_extrinsicHash_DESC', - ExtrinsicExtrinsicHashDescNullsFirst = 'extrinsic_extrinsicHash_DESC_NULLS_FIRST', - ExtrinsicExtrinsicHashDescNullsLast = 'extrinsic_extrinsicHash_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', - ExtrinsicOutputCountAsc = 'extrinsic_outputCount_ASC', - ExtrinsicOutputCountAscNullsFirst = 'extrinsic_outputCount_ASC_NULLS_FIRST', - ExtrinsicOutputCountAscNullsLast = 'extrinsic_outputCount_ASC_NULLS_LAST', - ExtrinsicOutputCountDesc = 'extrinsic_outputCount_DESC', - ExtrinsicOutputCountDescNullsFirst = 'extrinsic_outputCount_DESC_NULLS_FIRST', - ExtrinsicOutputCountDescNullsLast = 'extrinsic_outputCount_DESC_NULLS_LAST', - ExtrinsicPoolSnapshotAsc = 'extrinsic_poolSnapshot_ASC', - ExtrinsicPoolSnapshotAscNullsFirst = 'extrinsic_poolSnapshot_ASC_NULLS_FIRST', - ExtrinsicPoolSnapshotAscNullsLast = 'extrinsic_poolSnapshot_ASC_NULLS_LAST', - ExtrinsicPoolSnapshotDesc = 'extrinsic_poolSnapshot_DESC', - ExtrinsicPoolSnapshotDescNullsFirst = 'extrinsic_poolSnapshot_DESC_NULLS_FIRST', - ExtrinsicPoolSnapshotDescNullsLast = 'extrinsic_poolSnapshot_DESC_NULLS_LAST', - ExtrinsicPrivacyLabelAsc = 'extrinsic_privacyLabel_ASC', - ExtrinsicPrivacyLabelAscNullsFirst = 'extrinsic_privacyLabel_ASC_NULLS_FIRST', - ExtrinsicPrivacyLabelAscNullsLast = 'extrinsic_privacyLabel_ASC_NULLS_LAST', - ExtrinsicPrivacyLabelDesc = 'extrinsic_privacyLabel_DESC', - ExtrinsicPrivacyLabelDescNullsFirst = 'extrinsic_privacyLabel_DESC_NULLS_FIRST', - ExtrinsicPrivacyLabelDescNullsLast = 'extrinsic_privacyLabel_DESC_NULLS_LAST', - ExtrinsicPrivacyScore01PctAsc = 'extrinsic_privacyScore01Pct_ASC', - ExtrinsicPrivacyScore01PctAscNullsFirst = 'extrinsic_privacyScore01Pct_ASC_NULLS_FIRST', - ExtrinsicPrivacyScore01PctAscNullsLast = 'extrinsic_privacyScore01Pct_ASC_NULLS_LAST', - ExtrinsicPrivacyScore01PctDesc = 'extrinsic_privacyScore01Pct_DESC', - ExtrinsicPrivacyScore01PctDescNullsFirst = 'extrinsic_privacyScore01Pct_DESC_NULLS_FIRST', - ExtrinsicPrivacyScore01PctDescNullsLast = 'extrinsic_privacyScore01Pct_DESC_NULLS_LAST', - ExtrinsicPrivacyScore1PctAsc = 'extrinsic_privacyScore1Pct_ASC', - ExtrinsicPrivacyScore1PctAscNullsFirst = 'extrinsic_privacyScore1Pct_ASC_NULLS_FIRST', - ExtrinsicPrivacyScore1PctAscNullsLast = 'extrinsic_privacyScore1Pct_ASC_NULLS_LAST', - ExtrinsicPrivacyScore1PctDesc = 'extrinsic_privacyScore1Pct_DESC', - ExtrinsicPrivacyScore1PctDescNullsFirst = 'extrinsic_privacyScore1Pct_DESC_NULLS_FIRST', - ExtrinsicPrivacyScore1PctDescNullsLast = 'extrinsic_privacyScore1Pct_DESC_NULLS_LAST', - ExtrinsicPrivacyScore5PctAsc = 'extrinsic_privacyScore5Pct_ASC', - ExtrinsicPrivacyScore5PctAscNullsFirst = 'extrinsic_privacyScore5Pct_ASC_NULLS_FIRST', - ExtrinsicPrivacyScore5PctAscNullsLast = 'extrinsic_privacyScore5Pct_ASC_NULLS_LAST', - ExtrinsicPrivacyScore5PctDesc = 'extrinsic_privacyScore5Pct_DESC', - ExtrinsicPrivacyScore5PctDescNullsFirst = 'extrinsic_privacyScore5Pct_DESC_NULLS_FIRST', - ExtrinsicPrivacyScore5PctDescNullsLast = 'extrinsic_privacyScore5Pct_DESC_NULLS_LAST', - ExtrinsicPrivacyScoreAsc = 'extrinsic_privacyScore_ASC', - ExtrinsicPrivacyScoreAscNullsFirst = 'extrinsic_privacyScore_ASC_NULLS_FIRST', - ExtrinsicPrivacyScoreAscNullsLast = 'extrinsic_privacyScore_ASC_NULLS_LAST', - ExtrinsicPrivacyScoreDesc = 'extrinsic_privacyScore_DESC', - ExtrinsicPrivacyScoreDescNullsFirst = 'extrinsic_privacyScore_DESC_NULLS_FIRST', - ExtrinsicPrivacyScoreDescNullsLast = 'extrinsic_privacyScore_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', - ExtrinsicTotalAmountAsc = 'extrinsic_totalAmount_ASC', - ExtrinsicTotalAmountAscNullsFirst = 'extrinsic_totalAmount_ASC_NULLS_FIRST', - ExtrinsicTotalAmountAscNullsLast = 'extrinsic_totalAmount_ASC_NULLS_LAST', - ExtrinsicTotalAmountDesc = 'extrinsic_totalAmount_DESC', - ExtrinsicTotalAmountDescNullsFirst = 'extrinsic_totalAmount_DESC_NULLS_FIRST', - ExtrinsicTotalAmountDescNullsLast = 'extrinsic_totalAmount_DESC_NULLS_LAST', IdAsc = 'id_ASC', IdAscNullsFirst = 'id_ASC_NULLS_FIRST', IdAscNullsLast = 'id_ASC_NULLS_LAST', @@ -3390,7 +3725,67 @@ export enum WormholeNullifierOrderByInput { TimestampAscNullsLast = 'timestamp_ASC_NULLS_LAST', TimestampDesc = 'timestamp_DESC', TimestampDescNullsFirst = 'timestamp_DESC_NULLS_FIRST', - TimestampDescNullsLast = 'timestamp_DESC_NULLS_LAST' + 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' } export type WormholeNullifierWhereInput = { @@ -3398,8 +3793,6 @@ export type WormholeNullifierWhereInput = { OR?: InputMaybe>; block?: InputMaybe; block_isNull?: InputMaybe; - extrinsic?: InputMaybe; - extrinsic_isNull?: InputMaybe; id_contains?: InputMaybe; id_containsInsensitive?: InputMaybe; id_endsWith?: InputMaybe; @@ -3462,6 +3855,8 @@ export type WormholeNullifierWhereInput = { timestamp_lte?: InputMaybe; timestamp_not_eq?: InputMaybe; timestamp_not_in?: InputMaybe>; + wormholeExtrinsic?: InputMaybe; + wormholeExtrinsic_isNull?: InputMaybe; }; export type WormholeNullifiersConnection = { @@ -3476,8 +3871,8 @@ export type WormholeOutput = { __typename?: 'WormholeOutput'; amount: Scalars['BigInt']['output']; exitAccount: Account; - extrinsic: WormholeExtrinsic; id: Scalars['String']['output']; + wormholeExtrinsic: WormholeExtrinsic; }; export type WormholeOutputEdge = { @@ -3529,78 +3924,72 @@ export enum WormholeOutputOrderByInput { ExitAccountReservedDesc = 'exitAccount_reserved_DESC', ExitAccountReservedDescNullsFirst = 'exitAccount_reserved_DESC_NULLS_FIRST', ExitAccountReservedDescNullsLast = 'exitAccount_reserved_DESC_NULLS_LAST', - ExtrinsicExtrinsicHashAsc = 'extrinsic_extrinsicHash_ASC', - ExtrinsicExtrinsicHashAscNullsFirst = 'extrinsic_extrinsicHash_ASC_NULLS_FIRST', - ExtrinsicExtrinsicHashAscNullsLast = 'extrinsic_extrinsicHash_ASC_NULLS_LAST', - ExtrinsicExtrinsicHashDesc = 'extrinsic_extrinsicHash_DESC', - ExtrinsicExtrinsicHashDescNullsFirst = 'extrinsic_extrinsicHash_DESC_NULLS_FIRST', - ExtrinsicExtrinsicHashDescNullsLast = 'extrinsic_extrinsicHash_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', - ExtrinsicOutputCountAsc = 'extrinsic_outputCount_ASC', - ExtrinsicOutputCountAscNullsFirst = 'extrinsic_outputCount_ASC_NULLS_FIRST', - ExtrinsicOutputCountAscNullsLast = 'extrinsic_outputCount_ASC_NULLS_LAST', - ExtrinsicOutputCountDesc = 'extrinsic_outputCount_DESC', - ExtrinsicOutputCountDescNullsFirst = 'extrinsic_outputCount_DESC_NULLS_FIRST', - ExtrinsicOutputCountDescNullsLast = 'extrinsic_outputCount_DESC_NULLS_LAST', - ExtrinsicPoolSnapshotAsc = 'extrinsic_poolSnapshot_ASC', - ExtrinsicPoolSnapshotAscNullsFirst = 'extrinsic_poolSnapshot_ASC_NULLS_FIRST', - ExtrinsicPoolSnapshotAscNullsLast = 'extrinsic_poolSnapshot_ASC_NULLS_LAST', - ExtrinsicPoolSnapshotDesc = 'extrinsic_poolSnapshot_DESC', - ExtrinsicPoolSnapshotDescNullsFirst = 'extrinsic_poolSnapshot_DESC_NULLS_FIRST', - ExtrinsicPoolSnapshotDescNullsLast = 'extrinsic_poolSnapshot_DESC_NULLS_LAST', - ExtrinsicPrivacyLabelAsc = 'extrinsic_privacyLabel_ASC', - ExtrinsicPrivacyLabelAscNullsFirst = 'extrinsic_privacyLabel_ASC_NULLS_FIRST', - ExtrinsicPrivacyLabelAscNullsLast = 'extrinsic_privacyLabel_ASC_NULLS_LAST', - ExtrinsicPrivacyLabelDesc = 'extrinsic_privacyLabel_DESC', - ExtrinsicPrivacyLabelDescNullsFirst = 'extrinsic_privacyLabel_DESC_NULLS_FIRST', - ExtrinsicPrivacyLabelDescNullsLast = 'extrinsic_privacyLabel_DESC_NULLS_LAST', - ExtrinsicPrivacyScore01PctAsc = 'extrinsic_privacyScore01Pct_ASC', - ExtrinsicPrivacyScore01PctAscNullsFirst = 'extrinsic_privacyScore01Pct_ASC_NULLS_FIRST', - ExtrinsicPrivacyScore01PctAscNullsLast = 'extrinsic_privacyScore01Pct_ASC_NULLS_LAST', - ExtrinsicPrivacyScore01PctDesc = 'extrinsic_privacyScore01Pct_DESC', - ExtrinsicPrivacyScore01PctDescNullsFirst = 'extrinsic_privacyScore01Pct_DESC_NULLS_FIRST', - ExtrinsicPrivacyScore01PctDescNullsLast = 'extrinsic_privacyScore01Pct_DESC_NULLS_LAST', - ExtrinsicPrivacyScore1PctAsc = 'extrinsic_privacyScore1Pct_ASC', - ExtrinsicPrivacyScore1PctAscNullsFirst = 'extrinsic_privacyScore1Pct_ASC_NULLS_FIRST', - ExtrinsicPrivacyScore1PctAscNullsLast = 'extrinsic_privacyScore1Pct_ASC_NULLS_LAST', - ExtrinsicPrivacyScore1PctDesc = 'extrinsic_privacyScore1Pct_DESC', - ExtrinsicPrivacyScore1PctDescNullsFirst = 'extrinsic_privacyScore1Pct_DESC_NULLS_FIRST', - ExtrinsicPrivacyScore1PctDescNullsLast = 'extrinsic_privacyScore1Pct_DESC_NULLS_LAST', - ExtrinsicPrivacyScore5PctAsc = 'extrinsic_privacyScore5Pct_ASC', - ExtrinsicPrivacyScore5PctAscNullsFirst = 'extrinsic_privacyScore5Pct_ASC_NULLS_FIRST', - ExtrinsicPrivacyScore5PctAscNullsLast = 'extrinsic_privacyScore5Pct_ASC_NULLS_LAST', - ExtrinsicPrivacyScore5PctDesc = 'extrinsic_privacyScore5Pct_DESC', - ExtrinsicPrivacyScore5PctDescNullsFirst = 'extrinsic_privacyScore5Pct_DESC_NULLS_FIRST', - ExtrinsicPrivacyScore5PctDescNullsLast = 'extrinsic_privacyScore5Pct_DESC_NULLS_LAST', - ExtrinsicPrivacyScoreAsc = 'extrinsic_privacyScore_ASC', - ExtrinsicPrivacyScoreAscNullsFirst = 'extrinsic_privacyScore_ASC_NULLS_FIRST', - ExtrinsicPrivacyScoreAscNullsLast = 'extrinsic_privacyScore_ASC_NULLS_LAST', - ExtrinsicPrivacyScoreDesc = 'extrinsic_privacyScore_DESC', - ExtrinsicPrivacyScoreDescNullsFirst = 'extrinsic_privacyScore_DESC_NULLS_FIRST', - ExtrinsicPrivacyScoreDescNullsLast = 'extrinsic_privacyScore_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', - ExtrinsicTotalAmountAsc = 'extrinsic_totalAmount_ASC', - ExtrinsicTotalAmountAscNullsFirst = 'extrinsic_totalAmount_ASC_NULLS_FIRST', - ExtrinsicTotalAmountAscNullsLast = 'extrinsic_totalAmount_ASC_NULLS_LAST', - ExtrinsicTotalAmountDesc = 'extrinsic_totalAmount_DESC', - ExtrinsicTotalAmountDescNullsFirst = 'extrinsic_totalAmount_DESC_NULLS_FIRST', - ExtrinsicTotalAmountDescNullsLast = 'extrinsic_totalAmount_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' + 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 WormholeOutputWhereInput = { @@ -3617,8 +4006,6 @@ export type WormholeOutputWhereInput = { amount_not_in?: InputMaybe>; exitAccount?: InputMaybe; exitAccount_isNull?: InputMaybe; - extrinsic?: InputMaybe; - extrinsic_isNull?: InputMaybe; id_contains?: InputMaybe; id_containsInsensitive?: InputMaybe; id_endsWith?: InputMaybe; @@ -3636,6 +4023,8 @@ export type WormholeOutputWhereInput = { id_not_in?: InputMaybe>; id_not_startsWith?: InputMaybe; id_startsWith?: InputMaybe; + wormholeExtrinsic?: InputMaybe; + wormholeExtrinsic_isNull?: InputMaybe; }; export type WormholeOutputsConnection = { @@ -3685,9 +4074,14 @@ export type GetAccountByIdQuery = { node: { __typename?: 'Transfer'; fee: any; - extrinsicHash?: string | null; 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 }; @@ -3701,10 +4095,15 @@ export type GetAccountByIdQuery = { __typename?: 'ReversibleTransferEdge'; node: { __typename?: 'ReversibleTransfer'; - extrinsicHash?: string | null; timestamp: any; status: ReversibleTransferStatus; amount: 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 }; @@ -3732,6 +4131,8 @@ export type GetAccountByIdQuery = { __typename?: 'HighSecuritySetEdge'; node: { __typename?: 'HighSecuritySet'; + timestamp: any; + block: { __typename?: 'Block'; height: number }; interceptor: { __typename?: 'Account'; id: string; @@ -3749,6 +4150,8 @@ export type GetAccountByIdQuery = { __typename?: 'HighSecuritySetEdge'; node: { __typename?: 'HighSecuritySet'; + timestamp: any; + block: { __typename?: 'Block'; height: number }; who: { __typename?: 'Account'; id: string; @@ -3759,6 +4162,32 @@ export type GetAccountByIdQuery = { }; }>; }; + 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<{ @@ -3789,6 +4218,7 @@ export type GetBlocksQuery = { height: number; reward: any; timestamp: any; + extrinsics: Array<{ __typename?: 'Extrinsic'; id: string }>; }>; meta: { __typename?: 'BlocksConnection'; totalCount: number }; }; @@ -3808,6 +4238,7 @@ export type GetRecentBlocksQuery = { height: number; reward: any; timestamp: any; + extrinsics: Array<{ __typename?: 'Extrinsic'; id: string }>; }>; }; @@ -3827,9 +4258,12 @@ export type GetBlockByIdQuery = { reward: any; timestamp: any; }>; - miners: Array<{ + minerRewards: Array<{ __typename?: 'MinerReward'; + reward: any; + timestamp: any; miner: { __typename?: 'Account'; id: string }; + block: { __typename?: 'Block'; height: number; hash: string }; }>; transactions: { __typename?: 'TransfersConnection'; @@ -3839,9 +4273,14 @@ export type GetBlockByIdQuery = { node: { __typename?: 'Transfer'; fee: any; - extrinsicHash?: string | null; 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 }; @@ -3855,10 +4294,15 @@ export type GetBlockByIdQuery = { __typename?: 'ReversibleTransferEdge'; node: { __typename?: 'ReversibleTransfer'; - extrinsicHash?: string | null; timestamp: any; status: ReversibleTransferStatus; amount: 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 }; @@ -3872,9 +4316,14 @@ export type GetBlockByIdQuery = { __typename?: 'HighSecuritySetEdge'; node: { __typename?: 'HighSecuritySet'; - extrinsicHash?: string | null; 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 }; @@ -3892,12 +4341,37 @@ export type GetBlockByIdQuery = { errorModule?: string | null; errorName?: string | null; errorType: string; - extrinsicHash?: string | null; 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 GetStatusQueryVariables = Exact<{ @@ -3940,9 +4414,14 @@ export type GetErrorEventsQuery = { errorModule?: string | null; errorName?: string | null; errorType: string; - extrinsicHash?: string | null; id: string; timestamp: any; + extrinsic?: { + __typename?: 'Extrinsic'; + id: string; + pallet: string; + call: string; + } | null; block: { __typename?: 'Block'; height: number }; }>; meta: { __typename?: 'ErrorEventsConnection'; totalCount: number }; @@ -3963,9 +4442,14 @@ export type GetRecentErrorEventsQuery = { errorModule?: string | null; errorName?: string | null; errorType: string; - extrinsicHash?: string | null; id: string; timestamp: any; + extrinsic?: { + __typename?: 'Extrinsic'; + id: string; + pallet: string; + call: string; + } | null; block: { __typename?: 'Block'; height: number }; }>; }; @@ -3993,9 +4477,14 @@ export type GetErrorEventByHashQuery = { errorModule?: string | null; errorName?: string | null; errorType: string; - extrinsicHash?: string | null; id: string; timestamp: any; + extrinsic?: { + __typename?: 'Extrinsic'; + id: string; + pallet: string; + call: string; + } | null; block: { __typename?: 'Block'; height: number }; }>; }; @@ -4014,9 +4503,14 @@ export type GetHighSecuritySetsQuery = { highSecuritySets: Array<{ __typename?: 'HighSecuritySet'; id: string; - extrinsicHash?: string | null; 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 }; @@ -4038,9 +4532,14 @@ export type GetRecentHighSecuritySetsQuery = { highSecuritySets: Array<{ __typename?: 'HighSecuritySet'; id: string; - extrinsicHash?: string | null; 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 }; @@ -4067,9 +4566,14 @@ export type GetHighSecuritySetByHashQuery = { highSecuritySets: Array<{ __typename?: 'HighSecuritySet'; id: string; - extrinsicHash?: string | null; 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 }; @@ -4172,10 +4676,15 @@ export type GetReversibleTransactionsQuery = { __typename?: 'Query'; reversibleTransactions: Array<{ __typename?: 'ReversibleTransfer'; - extrinsicHash?: string | null; amount: any; timestamp: any; status: ReversibleTransferStatus; + 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 }; @@ -4195,10 +4704,15 @@ export type GetRecentReversibleTransactionsQuery = { __typename?: 'Query'; reversibleTransactions: Array<{ __typename?: 'ReversibleTransfer'; - extrinsicHash?: string | null; amount: any; timestamp: any; status: ReversibleTransferStatus; + 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 }; @@ -4229,11 +4743,16 @@ export type GetReversibleTransactionByHashQuery = { __typename?: 'ReversibleTransfer'; fee: any; amount: any; - extrinsicHash?: string | null; txId: string; scheduledAt: any; timestamp: any; status: ReversibleTransferStatus; + 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 }; @@ -4262,17 +4781,32 @@ export type SearchAllQuery = { __typename?: 'Query'; transactions: Array<{ __typename?: 'Transfer'; - extrinsicHash?: string | null; + extrinsic?: { + __typename?: 'Extrinsic'; + id: string; + pallet: string; + call: string; + } | null; }>; reversibleTransactions: Array<{ __typename?: 'ReversibleTransfer'; - extrinsicHash?: string | null; + extrinsic?: { + __typename?: 'Extrinsic'; + id: string; + pallet: string; + call: string; + } | null; }>; accounts: Array<{ __typename?: 'Account'; id: string }>; blocks: Array<{ __typename?: 'Block'; height: number }>; highSecuritySets: Array<{ __typename?: 'HighSecuritySet'; - extrinsicHash?: string | null; + extrinsic?: { + __typename?: 'Extrinsic'; + id: string; + pallet: string; + call: string; + } | null; }>; minerRewards: Array<{ __typename?: 'MinerReward'; @@ -4283,7 +4817,12 @@ export type SearchAllQuery = { }>; errorEvents: Array<{ __typename?: 'ErrorEvent'; - extrinsicHash?: string | null; + extrinsic?: { + __typename?: 'Extrinsic'; + id: string; + pallet: string; + call: string; + } | null; }>; }; @@ -4299,9 +4838,14 @@ export type GetTransactionsQuery = { transactions: Array<{ __typename?: 'Transfer'; fee: any; - extrinsicHash?: string | null; 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 }; @@ -4321,9 +4865,14 @@ export type GetRecentTransactionsQuery = { transactions: Array<{ __typename?: 'Transfer'; fee: any; - extrinsicHash?: string | null; 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 }; @@ -4350,9 +4899,14 @@ export type GetTransactionByHashQuery = { transactions: Array<{ __typename?: 'Transfer'; fee: any; - extrinsicHash?: string | null; 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 }; @@ -4371,12 +4925,17 @@ export type GetWormholeExtrinsicsQuery = { wormholeExtrinsics: Array<{ __typename?: 'WormholeExtrinsic'; id: string; - extrinsicHash?: string | null; 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 }; }>; meta: { __typename?: 'WormholeExtrinsicsConnection'; totalCount: number }; @@ -4391,7 +4950,6 @@ export type GetWormholeExtrinsicByIdQuery = { wormholeExtrinsicById?: { __typename?: 'WormholeExtrinsic'; id: string; - extrinsicHash?: string | null; totalAmount: any; outputCount: number; timestamp: any; @@ -4401,6 +4959,12 @@ export type GetWormholeExtrinsicByIdQuery = { privacyScore5Pct: number; privacyLabel: string; poolSnapshot: string; + extrinsic?: { + __typename?: 'Extrinsic'; + id: string; + pallet: string; + call: string; + } | null; block: { __typename?: 'Block'; id: string; @@ -4618,7 +5182,7 @@ export const GetAccountByIdDocument = { fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'extrinsicHash_isNull' }, + name: { kind: 'Name', value: 'extrinsic_isNull' }, value: { kind: 'BooleanValue', value: false } }, { @@ -4698,7 +5262,24 @@ export const GetAccountByIdDocument = { }, { kind: 'Field', - name: { kind: 'Name', value: 'extrinsicHash' } + 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', @@ -4845,7 +5426,24 @@ export const GetAccountByIdDocument = { selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'extrinsicHash' } + 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', @@ -5076,6 +5674,23 @@ export const GetAccountByIdDocument = { 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' }, @@ -5171,6 +5786,23 @@ export const GetAccountByIdDocument = { 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' }, @@ -5205,6 +5837,158 @@ export const GetAccountByIdDocument = { { 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' } + } + ] + } + } + ] + } + } + ] + } } ] } @@ -5484,7 +6268,17 @@ export const GetBlocksDocument = { { 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: 'timestamp' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsics' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + } ] } }, @@ -5592,7 +6386,17 @@ export const GetRecentBlocksDocument = { { 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: 'timestamp' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsics' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + } ] } } @@ -5698,7 +6502,6 @@ export const GetBlockByIdDocument = { }, { kind: 'Field', - alias: { kind: 'Name', value: 'miners' }, name: { kind: 'Name', value: 'minerRewards' }, arguments: [ { @@ -5757,6 +6560,8 @@ 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' }, @@ -5766,6 +6571,20 @@ export const GetBlockByIdDocument = { { kind: 'Field', name: { kind: 'Name', value: '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: 'hash' } } + ] + } } ] } @@ -5796,7 +6615,7 @@ export const GetBlockByIdDocument = { fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'extrinsicHash_isNull' }, + name: { kind: 'Name', value: 'extrinsic_isNull' }, value: { kind: 'BooleanValue', value: false } }, { @@ -5879,7 +6698,24 @@ export const GetBlockByIdDocument = { }, { kind: 'Field', - name: { kind: 'Name', value: 'extrinsicHash' } + 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', @@ -6026,7 +6862,24 @@ export const GetBlockByIdDocument = { selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'extrinsicHash' } + 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', @@ -6177,7 +7030,24 @@ export const GetBlockByIdDocument = { selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'extrinsicHash' } + 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', @@ -6340,7 +7210,24 @@ export const GetBlockByIdDocument = { }, { kind: 'Field', - name: { kind: 'Name', value: 'extrinsicHash' } + 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', @@ -6368,6 +7255,135 @@ export const GetBlockByIdDocument = { { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } ] } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'wormholeExtrinsics' }, + 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' } + } + }, + { + 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' } + } + } + ] + } + } + ] + } + } + ] + } + } + ], + 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' } } + ] + } + } + ] + } } ] } @@ -6446,7 +7462,7 @@ export const GetStatusDocument = { fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'extrinsicHash_isNull' }, + name: { kind: 'Name', value: 'extrinsic_isNull' }, value: { kind: 'BooleanValue', value: false } } ] @@ -6752,7 +7768,18 @@ export const GetErrorEventsDocument = { { kind: 'Field', name: { kind: 'Name', value: 'errorType' } }, { kind: 'Field', - name: { kind: 'Name', value: 'extrinsicHash' } + 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: 'id' } }, { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, @@ -6902,7 +7929,18 @@ export const GetRecentErrorEventsDocument = { { kind: 'Field', name: { kind: 'Name', value: 'errorType' } }, { kind: 'Field', - name: { kind: 'Name', value: 'extrinsicHash' } + 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: 'id' } }, { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, @@ -7069,10 +8107,19 @@ export const GetErrorEventByHashDocument = { fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'extrinsicHash_eq' }, + name: { kind: 'Name', value: 'extrinsic' }, value: { - kind: 'Variable', - name: { kind: 'Name', value: 'hash' } + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'id_eq' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'hash' } + } + } + ] } } ] @@ -7088,7 +8135,18 @@ export const GetErrorEventByHashDocument = { { kind: 'Field', name: { kind: 'Name', value: 'errorType' } }, { kind: 'Field', - name: { kind: 'Name', value: 'extrinsicHash' } + 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: 'id' } }, { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, @@ -7212,7 +8270,18 @@ export const GetHighSecuritySetsDocument = { { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'extrinsicHash' } + 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', @@ -7382,7 +8451,18 @@ export const GetRecentHighSecuritySetsDocument = { { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'extrinsicHash' } + 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', @@ -7568,10 +8648,19 @@ export const GetHighSecuritySetByHashDocument = { fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'extrinsicHash_eq' }, + name: { kind: 'Name', value: 'extrinsic' }, value: { - kind: 'Variable', - name: { kind: 'Name', value: 'hash' } + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'id_eq' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'hash' } + } + } + ] } } ] @@ -7584,7 +8673,18 @@ export const GetHighSecuritySetByHashDocument = { { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'extrinsicHash' } + 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', @@ -8313,7 +9413,18 @@ export const GetReversibleTransactionsDocument = { selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'extrinsicHash' } + 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' } }, @@ -8465,7 +9576,18 @@ export const GetRecentReversibleTransactionsDocument = { selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'extrinsicHash' } + 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' } }, @@ -8653,10 +9775,19 @@ export const GetReversibleTransactionByHashDocument = { fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'extrinsicHash_eq' }, + name: { kind: 'Name', value: 'extrinsic' }, value: { - kind: 'Variable', - name: { kind: 'Name', value: 'hash' } + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'id_eq' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'hash' } + } + } + ] } } ] @@ -8670,7 +9801,18 @@ export const GetReversibleTransactionByHashDocument = { { kind: 'Field', name: { kind: 'Name', value: 'amount' } }, { kind: 'Field', - name: { kind: 'Name', value: 'extrinsicHash' } + 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: 'txId' } }, { kind: 'Field', name: { kind: 'Name', value: 'scheduledAt' } }, @@ -8750,10 +9892,19 @@ export const GetReversibleTransactionStatusByHashDocument = { fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'extrinsicHash_eq' }, + name: { kind: 'Name', value: 'extrinsic' }, value: { - kind: 'Variable', - name: { kind: 'Name', value: 'hash' } + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'id_eq' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'hash' } + } + } + ] } } ] @@ -8832,10 +9983,19 @@ export const SearchAllDocument = { fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'extrinsicHash_startsWith' }, + name: { kind: 'Name', value: 'extrinsic' }, value: { - kind: 'Variable', - name: { kind: 'Name', value: 'keyword' } + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'id_startsWith' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'keyword' } + } + } + ] } } ] @@ -8847,7 +10007,18 @@ export const SearchAllDocument = { selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'extrinsicHash' } + 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' } } + ] + } } ] } @@ -8873,10 +10044,19 @@ export const SearchAllDocument = { fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'extrinsicHash_startsWith' }, + name: { kind: 'Name', value: 'extrinsic' }, value: { - kind: 'Variable', - name: { kind: 'Name', value: 'keyword' } + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'id_startsWith' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'keyword' } + } + } + ] } } ] @@ -8888,7 +10068,18 @@ export const SearchAllDocument = { selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'extrinsicHash' } + 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' } } + ] + } } ] } @@ -9004,10 +10195,19 @@ export const SearchAllDocument = { fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'extrinsicHash_startsWith' }, + name: { kind: 'Name', value: 'extrinsic' }, value: { - kind: 'Variable', - name: { kind: 'Name', value: 'keyword' } + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'id_startsWith' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'keyword' } + } + } + ] } } ] @@ -9019,7 +10219,18 @@ export const SearchAllDocument = { selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'extrinsicHash' } + 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' } } + ] + } } ] } @@ -9153,7 +10364,18 @@ export const SearchAllDocument = { selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'extrinsicHash' } + 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' } } + ] + } } ] } @@ -9263,7 +10485,18 @@ export const GetTransactionsDocument = { { kind: 'Field', name: { kind: 'Name', value: 'fee' } }, { kind: 'Field', - name: { kind: 'Name', value: 'extrinsicHash' } + 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', @@ -9434,7 +10667,18 @@ export const GetRecentTransactionsDocument = { { kind: 'Field', name: { kind: 'Name', value: 'fee' } }, { kind: 'Field', - name: { kind: 'Name', value: 'extrinsicHash' } + 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', @@ -9553,7 +10797,39 @@ export const GetTransactionsStatsDocument = { }, { kind: 'ObjectField', - name: { kind: 'Name', value: 'extrinsicHash_isNull' }, + name: { kind: 'Name', value: 'extrinsic_isNull' }, + value: { kind: 'BooleanValue', value: false } + } + ] + } + } + ], + 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 } } ] @@ -9585,7 +10861,7 @@ export const GetTransactionsStatsDocument = { fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'extrinsicHash_isNull' }, + name: { kind: 'Name', value: 'extrinsic_isNull' }, value: { kind: 'BooleanValue', value: false } } ] @@ -9640,10 +10916,19 @@ export const GetTransactionByHashDocument = { fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'extrinsicHash_eq' }, + name: { kind: 'Name', value: 'extrinsic' }, value: { - kind: 'Variable', - name: { kind: 'Name', value: 'hash' } + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'id_eq' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'hash' } + } + } + ] } } ] @@ -9656,7 +10941,18 @@ export const GetTransactionByHashDocument = { { kind: 'Field', name: { kind: 'Name', value: 'fee' } }, { kind: 'Field', - name: { kind: 'Name', value: 'extrinsicHash' } + 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', @@ -9803,7 +11099,18 @@ export const GetWormholeExtrinsicsDocument = { { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'extrinsicHash' } + 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' } }, @@ -9891,7 +11198,18 @@ export const GetWormholeExtrinsicByIdDocument = { { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'extrinsicHash' } + 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' } }, @@ -9978,7 +11296,7 @@ export const GetWormholeExtrinsicByIdDocument = { fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'extrinsic' }, + name: { kind: 'Name', value: 'wormholeExtrinsic' }, value: { kind: 'ObjectValue', fields: [ diff --git a/src/api/accounts.tsx b/src/api/accounts.tsx index 01cc229..971472f 100644 --- a/src/api/accounts.tsx +++ b/src/api/accounts.tsx @@ -5,6 +5,7 @@ import { startOfToday } from 'date-fns/startOfToday'; import { subDays } from 'date-fns/subDays'; import { QUERY_DEFAULT_LIMIT } from '@/constants/query-default-limit'; +import { QUERY_UNIFIED_LIMIT } from '@/constants/query-unified-limit'; import type { AccountSorts } from '@/constants/query-sorts'; import { ACCOUNT_SORTS } from '@/constants/query-sorts'; import type { @@ -64,14 +65,18 @@ export const accounts = { orderBy: timestamp_DESC first: $limit where: { - extrinsicHash_isNull: false + extrinsic_isNull: false AND: { from: { id_eq: $id }, OR: { to: { id_eq: $id } } } } ) { edges { node { fee - extrinsicHash + extrinsic { + id + pallet + call + } block { height } @@ -95,7 +100,11 @@ export const accounts = { ) { edges { node { - extrinsicHash + extrinsic { + id + pallet + call + } timestamp status amount @@ -141,6 +150,10 @@ export const accounts = { ) { edges { node { + timestamp + block { + height + } interceptor { id free @@ -159,6 +172,10 @@ export const accounts = { ) { edges { node { + timestamp + block { + height + } who { id free @@ -170,6 +187,38 @@ export const accounts = { totalCount } + wormholeOutputs: wormholeOutputs( + orderBy: wormholeExtrinsic_timestamp_DESC + limit: $limit + where: { exitAccount: { id_eq: $id } } + ) { + id + amount + exitAccount { + id + } + wormholeExtrinsic { + id + extrinsic { + id + pallet + call + } + totalAmount + outputCount + timestamp + block { + height + } + outputs { + id + exitAccount { + id + } + amount + } + } + } } `; @@ -179,7 +228,7 @@ export const accounts = { ...config, variables: { id, - limit: QUERY_DEFAULT_LIMIT + limit: QUERY_UNIFIED_LIMIT } }) }; diff --git a/src/api/blocks.tsx b/src/api/blocks.tsx index 8801666..a477e5e 100644 --- a/src/api/blocks.tsx +++ b/src/api/blocks.tsx @@ -4,6 +4,7 @@ import { gql, useQuery } from '@apollo/client'; import type { BlockWhereInput } from '@/__generated__/graphql'; import { QUERY_DEFAULT_LIMIT } from '@/constants/query-default-limit'; import { QUERY_RECENT_LIMIT } from '@/constants/query-recent-limit'; +import { QUERY_UNIFIED_LIMIT } from '@/constants/query-unified-limit'; import type { BlockSorts } from '@/constants/query-sorts'; import { BLOCK_SORTS } from '@/constants/query-sorts'; import type { @@ -38,6 +39,9 @@ export const blocks = { height reward timestamp + extrinsics { + id + } } meta: blocksConnection(orderBy: id_ASC) { totalCount @@ -73,6 +77,9 @@ export const blocks = { height reward timestamp + extrinsics { + id + } } } `; @@ -97,22 +104,40 @@ export const blocks = { height reward timestamp + extrinsics(orderBy: indexInBlock_ASC) { + id + pallet + call + success + fee + timestamp + indexInBlock + signer { + id + } + } } - miners: minerRewards( + minerRewards( where: { block: { height_eq: $height } OR: { block: { hash_eq: $hash } } } ) { + reward + timestamp miner { id } + block { + height + hash + } } transactions: transfersConnection( orderBy: timestamp_DESC first: $limit where: { - extrinsicHash_isNull: false + extrinsic_isNull: false AND: { block: { height_eq: $height } OR: { block: { hash_eq: $hash } } @@ -122,7 +147,11 @@ export const blocks = { edges { node { fee - extrinsicHash + extrinsic { + id + pallet + call + } block { height } @@ -149,7 +178,11 @@ export const blocks = { ) { edges { node { - extrinsicHash + extrinsic { + id + pallet + call + } timestamp status amount @@ -177,7 +210,11 @@ export const blocks = { ) { edges { node { - extrinsicHash + extrinsic { + id + pallet + call + } timestamp delay block { @@ -208,7 +245,11 @@ export const blocks = { errorModule errorName errorType - extrinsicHash + extrinsic { + id + pallet + call + } timestamp block { height @@ -218,6 +259,34 @@ export const blocks = { totalCount } + wormholeExtrinsics( + orderBy: timestamp_DESC + limit: $limit + where: { + block: { height_eq: $height } + OR: { block: { hash_eq: $hash } } + } + ) { + id + extrinsic { + id + pallet + call + } + totalAmount + outputCount + timestamp + block { + height + } + outputs { + id + exitAccount { + id + } + amount + } + } } `; @@ -230,7 +299,7 @@ export const blocks = { variables: { height: !isHash ? Number(id) : -1, hash: isHash ? id : '', - limit: QUERY_DEFAULT_LIMIT + limit: QUERY_UNIFIED_LIMIT } }); } diff --git a/src/api/chain-status.tsx b/src/api/chain-status.tsx index a51eb97..ed60c33 100644 --- a/src/api/chain-status.tsx +++ b/src/api/chain-status.tsx @@ -19,7 +19,7 @@ export const chainStatus = { ) { transactions: transfersConnection( orderBy: id_ASC - where: { extrinsicHash_isNull: false } + where: { extrinsic_isNull: false } ) { totalCount } diff --git a/src/api/errors.tsx b/src/api/errors.tsx index 6d43fb6..38f1e6e 100644 --- a/src/api/errors.tsx +++ b/src/api/errors.tsx @@ -40,7 +40,11 @@ export const errors = { errorModule errorName errorType - extrinsicHash + extrinsic { + id + pallet + call + } id timestamp block { @@ -86,7 +90,11 @@ export const errors = { errorModule errorName errorType - extrinsicHash + extrinsic { + id + pallet + call + } id timestamp block { @@ -138,12 +146,16 @@ export const errors = { getByHash: () => { const GET_ERROR_EVENT_BY_HASH = gql` query GetErrorEventByHash($hash: String!) { - errorEvents: errorEvents(where: { extrinsicHash_eq: $hash }) { + errorEvents: errorEvents(where: { extrinsic: { id_eq: $hash } }) { errorDocs errorModule errorName errorType - extrinsicHash + extrinsic { + id + pallet + call + } id timestamp block { diff --git a/src/api/high-security-sets.tsx b/src/api/high-security-sets.tsx index d57aa74..cc372d7 100644 --- a/src/api/high-security-sets.tsx +++ b/src/api/high-security-sets.tsx @@ -37,7 +37,11 @@ export const highSecuritySets = { where: $where ) { id - extrinsicHash + extrinsic { + id + pallet + call + } who { id } @@ -87,7 +91,11 @@ export const highSecuritySets = { where: $where ) { id - extrinsicHash + extrinsic { + id + pallet + call + } who { id } @@ -152,9 +160,13 @@ export const highSecuritySets = { getByHash: () => { const QUERY = gql` query GetHighSecuritySetByHash($hash: String!) { - highSecuritySets(where: { extrinsicHash_eq: $hash }) { + highSecuritySets(where: { extrinsic: { id_eq: $hash } }) { id - extrinsicHash + extrinsic { + id + pallet + call + } who { id } diff --git a/src/api/reversible-transactions.tsx b/src/api/reversible-transactions.tsx index 2e37055..867ed19 100644 --- a/src/api/reversible-transactions.tsx +++ b/src/api/reversible-transactions.tsx @@ -40,7 +40,11 @@ export const reversibleTransactions = { orderBy: $orderBy where: $where ) { - extrinsicHash + extrinsic { + id + pallet + call + } amount timestamp status @@ -95,7 +99,11 @@ export const reversibleTransactions = { offset: $offset orderBy: $orderBy ) { - extrinsicHash + extrinsic { + id + pallet + call + } amount timestamp status @@ -164,11 +172,15 @@ export const reversibleTransactions = { const QUERY = gql` query GetReversibleTransactionByHash($hash: String!) { reversibleTransactions: reversibleTransfers( - where: { extrinsicHash_eq: $hash } + where: { extrinsic: { id_eq: $hash } } ) { fee amount - extrinsicHash + extrinsic { + id + pallet + call + } txId scheduledAt timestamp @@ -203,7 +215,7 @@ export const reversibleTransactions = { const QUERY = gql` query GetReversibleTransactionStatusByHash($hash: String!) { reversibleTransactions: reversibleTransfers( - where: { extrinsicHash_eq: $hash } + where: { extrinsic: { id_eq: $hash } } ) { status } diff --git a/src/api/search.tsx b/src/api/search.tsx index 47552a2..7784886 100644 --- a/src/api/search.tsx +++ b/src/api/search.tsx @@ -12,15 +12,23 @@ export const search = (fetcher: DataFetcher) => ({ query SearchAll($keyword: String, $keyword_number: Int, $limit: Int) { transactions: transfers( limit: $limit - where: { extrinsicHash_startsWith: $keyword } + where: { extrinsic: { id_startsWith: $keyword } } ) { - extrinsicHash + extrinsic { + id + pallet + call + } } reversibleTransactions: reversibleTransfers( limit: $limit - where: { extrinsicHash_startsWith: $keyword } + where: { extrinsic: { id_startsWith: $keyword } } ) { - extrinsicHash + extrinsic { + id + pallet + call + } } accounts(limit: $limit, where: { id_startsWith: $keyword }) { id @@ -36,9 +44,13 @@ export const search = (fetcher: DataFetcher) => ({ } highSecuritySets( limit: $limit - where: { extrinsicHash_startsWith: $keyword } + where: { extrinsic: { id_startsWith: $keyword } } ) { - extrinsicHash + extrinsic { + id + pallet + call + } } minerRewards( limit: $limit @@ -61,7 +73,11 @@ export const search = (fetcher: DataFetcher) => ({ OR: { errorName_containsInsensitive: $keyword } } ) { - extrinsicHash + extrinsic { + id + pallet + call + } } } `; diff --git a/src/api/transactions.tsx b/src/api/transactions.tsx index 0649eb9..ed0b7cf 100644 --- a/src/api/transactions.tsx +++ b/src/api/transactions.tsx @@ -9,9 +9,9 @@ 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, TransactionListResponse, - TransactionResponse, TransactionsStatsResponse } from '@/schemas'; import type { PaginatedQueryVariables } from '@/types/query'; @@ -37,7 +37,11 @@ export const transactions = { where: $where ) { fee - extrinsicHash + extrinsic { + id + pallet + call + } block { height } @@ -66,10 +70,7 @@ export const transactions = { limit: config?.variables?.limit ?? QUERY_DEFAULT_LIMIT, offset: config?.variables?.offset ?? 0, where: { - AND: [ - { extrinsicHash_isNull: false }, - { ...config?.variables?.where } - ] + AND: [{ extrinsic_isNull: false }, { ...config?.variables?.where }] } } }); @@ -91,7 +92,11 @@ export const transactions = { where: $where ) { fee - extrinsicHash + extrinsic { + id + pallet + call + } block { height } @@ -115,7 +120,7 @@ export const transactions = { variables: { orderBy: TRANSACTION_SORTS.timestamp.DESC, limit: QUERY_RECENT_LIMIT, - where: { extrinsicHash_isNull: false } + where: { extrinsic_isNull: false } } }); }, @@ -132,14 +137,20 @@ export const transactions = { where: { timestamp_gte: $startDate timestamp_lte: $endDate - extrinsicHash_isNull: false + extrinsic_isNull: false } ) { totalCount } allTime: transfersConnection( orderBy: id_ASC - where: { extrinsicHash_isNull: false } + where: { extrinsic_isNull: false } + ) { + totalCount + } + allTime: transfersConnection( + orderBy: id_ASC + where: { extrinsic_isNull: false } ) { totalCount } @@ -156,13 +167,27 @@ export const transactions = { }, getByHash: () => { const QUERY = gql` - query GetTransactionByHash($hash: String!) { - transactions: transfers(where: { extrinsicHash_eq: $hash }) { + query GetExtrinsicByHash($hash: String!) { + extrinsics(where: { id_eq: $hash }) { + id + pallet + call + success fee - extrinsicHash + timestamp + indexInBlock + signer { + id + } block { height } + } + transfers( + where: { extrinsic: { id_eq: $hash } } + orderBy: timestamp_ASC + ) { + id amount timestamp from { @@ -178,9 +203,9 @@ export const transactions = { return { useQuery: ( hash: string, - config?: QueryHookOptions + config?: QueryHookOptions ) => - useQuery(QUERY, { + useQuery(QUERY, { ...config, variables: { hash diff --git a/src/api/wormhole.tsx b/src/api/wormhole.tsx index 836b03b..b165601 100644 --- a/src/api/wormhole.tsx +++ b/src/api/wormhole.tsx @@ -20,7 +20,11 @@ const GET_WORMHOLE_EXTRINSICS = gql` where: $where ) { id - extrinsicHash + extrinsic { + id + pallet + call + } totalAmount outputCount timestamp @@ -40,7 +44,11 @@ const GET_WORMHOLE_EXTRINSIC_BY_ID = gql` query GetWormholeExtrinsicById($id: String!) { wormholeExtrinsicById(id: $id) { id - extrinsicHash + extrinsic { + id + pallet + call + } totalAmount outputCount timestamp @@ -64,7 +72,7 @@ const GET_WORMHOLE_EXTRINSIC_BY_ID = gql` amount } } - wormholeNullifiers(where: { extrinsic: { id_eq: $id } }) { + wormholeNullifiers(where: { wormholeExtrinsic: { id_eq: $id } }) { nullifier nullifierHash } diff --git a/src/components/common/table-columns/ACCOUNT_REVERSIBLE_TRANSACTION_COLUMNS.tsx b/src/components/common/table-columns/ACCOUNT_REVERSIBLE_TRANSACTION_COLUMNS.tsx index 7e762e9..a6b290a 100644 --- a/src/components/common/table-columns/ACCOUNT_REVERSIBLE_TRANSACTION_COLUMNS.tsx +++ b/src/components/common/table-columns/ACCOUNT_REVERSIBLE_TRANSACTION_COLUMNS.tsx @@ -10,7 +10,7 @@ import { formatMonetaryValue, formatTxAddress } from '@/utils/formatter'; const columnHelper = createColumnHelper(); export const ACCOUNT_REVERSIBLE_TRANSACTION_COLUMNS = [ - columnHelper.accessor('node.extrinsicHash', { + columnHelper.accessor('node.extrinsic.id', { id: 'tx-hash', header: 'Hash', cell: (props) => ( diff --git a/src/components/common/table-columns/ACCOUNT_TRANSACTION_COLUMNS.tsx b/src/components/common/table-columns/ACCOUNT_TRANSACTION_COLUMNS.tsx index 43ec175..f8c9be3 100644 --- a/src/components/common/table-columns/ACCOUNT_TRANSACTION_COLUMNS.tsx +++ b/src/components/common/table-columns/ACCOUNT_TRANSACTION_COLUMNS.tsx @@ -9,7 +9,7 @@ import { formatMonetaryValue, formatTxAddress } from '@/utils/formatter'; const columnHelper = createColumnHelper(); export const ACCOUNT_TRANSACTION_COLUMNS = [ - columnHelper.accessor('node.extrinsicHash', { + columnHelper.accessor('node.extrinsic.id', { id: 'tx-hash', header: 'Hash', cell: (props) => ( diff --git a/src/components/common/table-columns/BLOCK_COLUMNS.tsx b/src/components/common/table-columns/BLOCK_COLUMNS.tsx index 59dea03..efbcd40 100644 --- a/src/components/common/table-columns/BLOCK_COLUMNS.tsx +++ b/src/components/common/table-columns/BLOCK_COLUMNS.tsx @@ -31,6 +31,12 @@ export const BLOCK_COLUMNS = [ ), enableSorting: false }), + columnHelper.accessor((row) => row.extrinsics.length, { + id: 'extrinsicsCount', + header: 'Extrinsics', + cell: (props) => props.getValue(), + enableSorting: false + }), columnHelper.accessor('reward', { id: 'reward', header: 'Reward', 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 bbeaf7a..a1173df 100644 --- a/src/components/common/table-columns/BLOCK_ERROR_EVENT_COLUMNS.tsx +++ b/src/components/common/table-columns/BLOCK_ERROR_EVENT_COLUMNS.tsx @@ -9,7 +9,7 @@ import { formatTxAddress } from '@/utils/formatter'; const columnHelper = createColumnHelper(); export const BLOCK_ERROR_EVENT_COLUMNS = [ - columnHelper.accessor('node.extrinsicHash', { + columnHelper.accessor('node.extrinsic.id', { id: 'extrinsicHash', header: 'Extrinsic Hash', cell: (props) => diff --git a/src/components/common/table-columns/BLOCK_HIGH_SECURITY_SET_COLUMNS.tsx b/src/components/common/table-columns/BLOCK_HIGH_SECURITY_SET_COLUMNS.tsx index 12da72f..cda8242 100644 --- a/src/components/common/table-columns/BLOCK_HIGH_SECURITY_SET_COLUMNS.tsx +++ b/src/components/common/table-columns/BLOCK_HIGH_SECURITY_SET_COLUMNS.tsx @@ -9,7 +9,7 @@ import { formatDuration, formatTxAddress } from '@/utils/formatter'; const columnHelper = createColumnHelper(); export const BLOCK_HIGH_SECURITY_SET_COLUMNS = [ - columnHelper.accessor('node.extrinsicHash', { + columnHelper.accessor('node.extrinsic.id', { id: 'tx-hash', header: 'Hash', cell: (props) => diff --git a/src/components/common/table-columns/BLOCK_REVERSIBLE_TRANSACTION_COLUMNS.tsx b/src/components/common/table-columns/BLOCK_REVERSIBLE_TRANSACTION_COLUMNS.tsx index 4aa6d0d..c3e6733 100644 --- a/src/components/common/table-columns/BLOCK_REVERSIBLE_TRANSACTION_COLUMNS.tsx +++ b/src/components/common/table-columns/BLOCK_REVERSIBLE_TRANSACTION_COLUMNS.tsx @@ -10,7 +10,7 @@ import { formatMonetaryValue, formatTxAddress } from '@/utils/formatter'; const columnHelper = createColumnHelper(); export const BLOCK_REVERSIBLE_TRANSACTION_COLUMNS = [ - columnHelper.accessor('node.extrinsicHash', { + columnHelper.accessor('node.extrinsic.id', { id: 'tx-hash', header: 'Hash', cell: (props) => ( diff --git a/src/components/common/table-columns/BLOCK_TRANSACTION_COLUMNS.tsx b/src/components/common/table-columns/BLOCK_TRANSACTION_COLUMNS.tsx index 88eb9e6..c577f99 100644 --- a/src/components/common/table-columns/BLOCK_TRANSACTION_COLUMNS.tsx +++ b/src/components/common/table-columns/BLOCK_TRANSACTION_COLUMNS.tsx @@ -9,7 +9,7 @@ import { formatMonetaryValue, formatTxAddress } from '@/utils/formatter'; const columnHelper = createColumnHelper(); export const BLOCK_TRANSACTION_COLUMNS = [ - columnHelper.accessor('node.extrinsicHash', { + columnHelper.accessor('node.extrinsic.id', { id: 'tx-hash', header: 'Hash', cell: (props) => ( diff --git a/src/components/common/table-columns/ERROR_EVENT_COLUMNS.tsx b/src/components/common/table-columns/ERROR_EVENT_COLUMNS.tsx index a27c5eb..c071046 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('extrinsicHash', { + columnHelper.accessor('extrinsic.id', { id: 'extrinsicHash', header: 'Extrinsic Hash', cell: (props) => diff --git a/src/components/common/table-columns/EXTRINSIC_COLUMNS.tsx b/src/components/common/table-columns/EXTRINSIC_COLUMNS.tsx new file mode 100644 index 0000000..7cf6c9a --- /dev/null +++ b/src/components/common/table-columns/EXTRINSIC_COLUMNS.tsx @@ -0,0 +1,143 @@ +import { createColumnHelper } from '@tanstack/react-table'; + +import { LinkWithCopy } from '@/components/ui/composites/link-with-copy/LinkWithCopy'; +import { TimestampDisplay } from '@/components/ui/timestamp-display'; +import { RESOURCES } from '@/constants/resources'; +import type { BlockExtrinsic } from '@/schemas/blocks'; +import { formatMonetaryValue, formatTxAddress } from '@/utils/formatter'; +import { cn } from '@/lib/utils'; + +const columnHelper = createColumnHelper(); + +export const createExtrinsicColumns = () => { + const columns = [ + // Index column + columnHelper.accessor('indexInBlock', { + id: 'index', + header: '#', + cell: (props) => props.getValue(), + enableSorting: false + }), + + // Extrinsic Hash column + columnHelper.accessor('id', { + id: 'extrinsic', + header: 'Extrinsic', + cell: (props) => { + const hash = props.getValue(); + const pallet = props.row.original.pallet; + + // Determine the appropriate resource based on pallet + let href = ''; + if (pallet === 'Wormhole') { + href = `${RESOURCES.wormhole}/${hash}`; + } else if (pallet === 'Balances') { + href = `${RESOURCES.transactions}/${hash}`; + } else if (pallet === 'ReversibleTransfers') { + href = `${RESOURCES.reversibleTransactions}/${hash}`; + } else { + // Default to transactions for now + href = `${RESOURCES.transactions}/${hash}`; + } + + return ( + + ); + }, + enableSorting: false + }), + + // Pallet.Call column + columnHelper.display({ + id: 'call', + header: 'Call', + cell: (props) => { + const { pallet, call } = props.row.original; + return ( + + {pallet}.{call} + + ); + } + }), + + // Signer column + columnHelper.accessor('signer', { + id: 'signer', + header: 'Signer', + cell: (props) => { + const signer = props.getValue(); + if (!signer) { + return ( + unsigned + ); + } + return ( + + ); + }, + enableSorting: false + }), + + // Fee column + columnHelper.accessor('fee', { + id: 'fee', + header: 'Fee', + cell: (props) => { + const fee = props.getValue(); + if (!fee || fee === '0') { + return -; + } + return formatMonetaryValue(Number(fee), 5); + }, + enableSorting: false + }), + + // Success column + columnHelper.accessor('success', { + id: 'success', + header: 'Result', + cell: (props) => { + const success = props.getValue(); + return ( + + {success ? 'Success' : 'Failed'} + + ); + }, + enableSorting: false + }), + + // Timestamp column + columnHelper.accessor('timestamp', { + id: 'timestamp', + header: 'Timestamp', + cell: (props) => { + const timestamp = props.getValue(); + if (!timestamp) return -; + return ; + }, + enableSorting: false + }) + ]; + + return columns; +}; + +// Default export +export const EXTRINSIC_COLUMNS = createExtrinsicColumns(); 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 faf4b1e..ec09641 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('extrinsicHash', { + columnHelper.accessor('extrinsic.id', { id: 'tx-hash', header: 'Hash', cell: (props) => diff --git a/src/components/common/table-columns/REVERSIBLE_TRANSACTION_COLUMNS.tsx b/src/components/common/table-columns/REVERSIBLE_TRANSACTION_COLUMNS.tsx index df435d1..c6bb3a3 100644 --- a/src/components/common/table-columns/REVERSIBLE_TRANSACTION_COLUMNS.tsx +++ b/src/components/common/table-columns/REVERSIBLE_TRANSACTION_COLUMNS.tsx @@ -10,7 +10,7 @@ import { formatMonetaryValue, formatTxAddress } from '@/utils/formatter'; const columnHelper = createColumnHelper(); export const REVERSIBLE_TRANSACTION_COLUMNS = [ - columnHelper.accessor('extrinsicHash', { + columnHelper.accessor('extrinsic.id', { id: 'tx-hash', header: 'Hash', cell: (props) => ( diff --git a/src/components/common/table-columns/TRANSACTION_COLUMNS.tsx b/src/components/common/table-columns/TRANSACTION_COLUMNS.tsx index 391bf23..a056847 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('extrinsicHash', { + columnHelper.accessor('extrinsic.id', { id: 'tx-hash', header: 'Hash', cell: (props) => diff --git a/src/components/common/table-columns/UNIFIED_TRANSACTION_COLUMNS.tsx b/src/components/common/table-columns/UNIFIED_TRANSACTION_COLUMNS.tsx new file mode 100644 index 0000000..3c8f59e --- /dev/null +++ b/src/components/common/table-columns/UNIFIED_TRANSACTION_COLUMNS.tsx @@ -0,0 +1,319 @@ +import { createColumnHelper } from '@tanstack/react-table'; + +import { LinkWithCopy } from '@/components/ui/composites/link-with-copy/LinkWithCopy'; +import { TimestampDisplay } from '@/components/ui/timestamp-display'; +import { TransactionStatus } from '@/components/ui/transaction-status'; +import { RESOURCES } from '@/constants/resources'; +import { TRANSACTION_TYPE_CONFIG } from '@/constants/transaction-types'; +import type { UnifiedTransaction } from '@/schemas/unified-transaction'; +import { + formatDuration, + formatMonetaryValue, + formatTxAddress +} from '@/utils/formatter'; +import { cn } from '@/lib/utils'; + +const columnHelper = createColumnHelper(); + +export interface UnifiedTransactionColumnsOptions { + showBlockColumn?: boolean; +} + +export const createUnifiedTransactionColumns = ( + options: UnifiedTransactionColumnsOptions = {} +) => { + const { showBlockColumn = true } = options; + + const columns = [ + // Type column + columnHelper.accessor('type', { + id: 'type', + header: 'Type', + cell: (props) => { + const type = props.getValue(); + const config = TRANSACTION_TYPE_CONFIG[type] ?? { + label: type, + className: 'bg-gray-100 text-gray-800' + }; + return ( + + {config.label} + + ); + }, + enableSorting: false + }), + + // Extrinsic column + columnHelper.accessor('extrinsic', { + id: 'extrinsic', + header: 'Extrinsic', + cell: (props) => { + const extrinsic = props.getValue(); + const row = props.row.original; + + // Determine link target and display text based on type + let href = ''; + let displayText = '-'; + let extrinsicId = extrinsic?.id; + + if (row.type === 'immediate' && extrinsicId) { + href = `${RESOURCES.transactions}/${extrinsicId}`; + displayText = formatTxAddress(extrinsicId); + } else if (row.type === 'reversible' && extrinsicId) { + href = `${RESOURCES.reversibleTransactions}/${extrinsicId}`; + displayText = formatTxAddress(extrinsicId); + } else if (row.type === 'miner-reward' && row.block) { + href = `${RESOURCES.blocks}/${row.block.height}`; + displayText = `Block #${row.block.height}`; + } else if (row.type === 'high-security') { + if (extrinsicId) { + href = `${RESOURCES.highSecuritySets}/${extrinsicId}`; + displayText = formatTxAddress(extrinsicId); + } else if (row.block) { + href = `${RESOURCES.highSecuritySets}`; + displayText = `Block #${row.block.height}`; + } + } else if (row.type === 'wormhole') { + href = `${RESOURCES.wormhole}/${row.id}`; + displayText = extrinsicId + ? formatTxAddress(extrinsicId) + : formatTxAddress(row.id); + } else if (row.type === 'error' && extrinsicId) { + href = `${RESOURCES.errors}/${extrinsicId}`; + displayText = formatTxAddress(extrinsicId); + } + + if (!href) { + return -; + } + + return ( + + ); + }, + enableSorting: false + }), + + // Timestamp column + columnHelper.accessor('timestamp', { + id: 'timestamp', + header: 'Timestamp', + cell: (props) => { + const timestamp = props.getValue(); + if (!timestamp) return -; + return ; + }, + enableSorting: true + }), + + // Details column (parties, error info, etc.) + columnHelper.display({ + id: 'details', + header: 'Details', + cell: (props) => { + const row = props.row.original; + + // For transfers (immediate/reversible) + if (row.type === 'immediate' || row.type === 'reversible') { + return ( +
+ {row.from && ( +
+ From: + +
+ )} + {row.to && ( +
+ To: + +
+ )} +
+ ); + } + + // For miner rewards + if (row.type === 'miner-reward' && row.miner) { + return ( +
+ Miner: + +
+ ); + } + + // For high security sets + if (row.type === 'high-security') { + return ( +
+ {row.who && ( +
+ Beneficiary: + +
+ )} + {row.interceptor && ( +
+ Guardian: + +
+ )} +
+ ); + } + + // For wormhole - show outputs + if (row.type === 'wormhole' && row.outputs && row.outputs.length > 0) { + return ( +
+ {row.outputs.slice(0, 2).map((output, idx) => ( +
+ Exit: + +
+ ))} + {row.outputs.length > 2 && ( + + +{row.outputs.length - 2} more + + )} +
+ ); + } + + // For error events + if (row.type === 'error') { + return ( +
+ {row.errorType && ( +
+ Type: + {row.errorType} +
+ )} + {row.errorName && ( +
+ Name: + {row.errorName} +
+ )} +
+ ); + } + + return -; + } + }), + + // Amount column + columnHelper.display({ + id: 'amount', + header: 'Amount', + cell: (props) => { + const row = props.row.original; + + // For transfers + if ( + (row.type === 'immediate' || row.type === 'reversible') && + row.amount !== undefined + ) { + return formatMonetaryValue(Number(row.amount), 5); + } + + // For miner rewards + if (row.type === 'miner-reward' && row.reward !== undefined) { + return formatMonetaryValue(Number(row.reward), 5); + } + + // For wormhole + if (row.type === 'wormhole' && row.totalAmount !== undefined) { + return formatMonetaryValue(Number(row.totalAmount), 5); + } + + // For high security sets - show delay + if (row.type === 'high-security' && row.delay !== undefined) { + return ( + + {formatDuration(row.delay)} + + ); + } + + return -; + } + }), + + // Status column + columnHelper.accessor('status', { + id: 'status', + header: 'Status', + cell: (props) => { + const status = props.getValue(); + if (!status) return -; + return ; + }, + enableSorting: false + }) + ]; + + // Optionally add block column after timestamp + if (showBlockColumn) { + const blockColumn = columnHelper.display({ + id: 'block', + header: 'Block', + cell: (props) => { + const height = props.row.original.block?.height; + if (!height) return -; + return ( + + ); + } + }); + + // Insert block column after timestamp (index 2) + columns.splice(3, 0, blockColumn); + } + + return columns; +}; + +// Default export for backward compatibility +export const UNIFIED_TRANSACTION_COLUMNS = createUnifiedTransactionColumns(); diff --git a/src/components/common/table-columns/WORMHOLE_OUTPUT_COLUMNS.tsx b/src/components/common/table-columns/WORMHOLE_OUTPUT_COLUMNS.tsx index 210a405..121872b 100644 --- a/src/components/common/table-columns/WORMHOLE_OUTPUT_COLUMNS.tsx +++ b/src/components/common/table-columns/WORMHOLE_OUTPUT_COLUMNS.tsx @@ -4,7 +4,7 @@ import { LinkWithCopy } from '@/components/ui/composites/link-with-copy/LinkWith import { TimestampDisplay } from '@/components/ui/timestamp-display'; import { RESOURCES } from '@/constants/resources'; import { formatMonetaryValue, formatTxAddress } from '@/utils/formatter'; -import { PrivacyScoreBadge } from '@/components/features/wormhole/PrivacyScoreBadge'; +// import { PrivacyScoreBadge } from '@/components/features/wormhole/PrivacyScoreBadge'; import type { WormholeExtrinsic } from '@/schemas/wormhole'; export type WormholeExtrinsicRow = WormholeExtrinsic; @@ -12,7 +12,7 @@ export type WormholeExtrinsicRow = WormholeExtrinsic; const columnHelper = createColumnHelper(); export const WORMHOLE_EXTRINSIC_COLUMNS = [ - columnHelper.accessor('extrinsicHash', { + columnHelper.accessor('extrinsic.id', { id: 'extrinsic_hash', header: 'Extrinsic', cell: (props) => { @@ -39,17 +39,18 @@ export const WORMHOLE_EXTRINSIC_COLUMNS = [ cell: (props) => props.getValue(), enableSorting: false }), - columnHelper.accessor('privacyScore', { - id: 'privacy_score', - header: 'Privacy', - cell: (props) => ( - - ), - enableSorting: true - }), + // Privacy score column temporarily disabled + // columnHelper.accessor('privacyScore', { + // id: 'privacy_score', + // header: 'Privacy', + // cell: (props) => ( + // + // ), + // enableSorting: true + // }), columnHelper.accessor('block.height', { id: 'block_height', header: 'Block', diff --git a/src/components/features/account-details/account-all-transactions/AccountAllTransactions.tsx b/src/components/features/account-details/account-all-transactions/AccountAllTransactions.tsx new file mode 100644 index 0000000..8eecb22 --- /dev/null +++ b/src/components/features/account-details/account-all-transactions/AccountAllTransactions.tsx @@ -0,0 +1,32 @@ +import type { QueryResult } from '@apollo/client'; +import React from 'react'; + +import { DataTable } from '@/components/ui/composites/data-table/DataTable'; +import { ContentContainer } from '@/components/ui/content-container'; +import type { AccountResponse } from '@/schemas'; + +import { useAccountAllTransactions } from './hook'; + +interface Props { + query: QueryResult; + accountId: string; +} + +export const AccountAllTransactions: React.FC = ({ query }) => { + const { getStatus, table, error } = useAccountAllTransactions(query); + + return ( + +

All Account Activity

+ + Error: {error && error.message}

+ }} + withControls + /> +
+ ); +}; diff --git a/src/components/features/account-details/account-all-transactions/hook.tsx b/src/components/features/account-details/account-all-transactions/hook.tsx new file mode 100644 index 0000000..6f51290 --- /dev/null +++ b/src/components/features/account-details/account-all-transactions/hook.tsx @@ -0,0 +1,147 @@ +import type { QueryResult } from '@apollo/client'; +import { + getCoreRowModel, + getPaginationRowModel, + useReactTable +} from '@tanstack/react-table'; +import { useCallback, useMemo, useState } from 'react'; + +import { createUnifiedTransactionColumns } from '@/components/common/table-columns/UNIFIED_TRANSACTION_COLUMNS'; +import { QUERY_DEFAULT_LIMIT } from '@/constants/query-default-limit'; +import { + sortByTimestampDesc, + transformHighSecuritySet, + transformImmediateTransaction, + transformMinerReward, + transformReversibleTransaction, + transformWormholeOutput +} from '@/hooks/useUnifiedTransactions'; +import type { AccountResponse, UnifiedTransaction } from '@/schemas'; + +// Account page shows block column +const columns = createUnifiedTransactionColumns({ showBlockColumn: true }); + +export const useAccountAllTransactions = ( + query: QueryResult +) => { + const { data, error: fetchError, loading } = query; + const [pagination, setPagination] = useState({ + pageIndex: 0, + pageSize: QUERY_DEFAULT_LIMIT + }); + + // Transform all transaction types into unified format + const tableData = useMemo(() => { + if (!data) return []; + + const unified: UnifiedTransaction[] = []; + + // Add immediate transactions + data.transactions?.edges?.forEach((edge, idx) => { + unified.push(transformImmediateTransaction(edge.node, idx)); + }); + + // Add reversible transactions + data.reversibleTransactions?.edges?.forEach((edge, idx) => { + unified.push(transformReversibleTransaction(edge.node, idx)); + }); + + // Add miner rewards + data.minerRewards?.edges?.forEach((edge, idx) => { + unified.push(transformMinerReward(edge.node, idx)); + }); + + // Add guardian relationships (as high-security type) + data.guardian?.edges?.forEach((edge, idx) => { + const guardian = edge.node; + 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 + }, + idx + ) + ); + }); + + // Add beneficiary relationships (as high-security type) + data.beneficiaries?.edges?.forEach((edge, idx) => { + const beneficiary = edge.node; + 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) + }, + idx + ) + ); + }); + + // Add wormhole outputs + data.wormholeOutputs?.forEach((output, idx) => { + const wormholeExtrinsic = output.wormholeExtrinsic; + if (wormholeExtrinsic) { + unified.push( + transformWormholeOutput( + { + id: wormholeExtrinsic.id, + extrinsic: wormholeExtrinsic.extrinsic, + timestamp: wormholeExtrinsic.timestamp, + totalAmount: wormholeExtrinsic.totalAmount, + outputCount: wormholeExtrinsic.outputCount, + outputs: wormholeExtrinsic.outputs, + block: wormholeExtrinsic.block + }, + idx + ) + ); + } + }); + + return sortByTimestampDesc(unified); + }, [data]); + + const table = useReactTable({ + data: tableData, + columns, + getCoreRowModel: getCoreRowModel(), + getPaginationRowModel: getPaginationRowModel(), + enableSorting: false, + state: { + pagination + }, + onPaginationChange: setPagination + }); + + const success = !loading && !fetchError; + const error = !loading && fetchError; + + const getStatus = useCallback(() => { + switch (true) { + case success: + return 'success'; + case !!error: + return 'error'; + case !!loading: + return 'loading'; + default: + return 'idle'; + } + }, [success, error, loading]); + + return { + table, + getStatus, + error: fetchError + }; +}; diff --git a/src/components/features/account-details/account-all-transactions/index.ts b/src/components/features/account-details/account-all-transactions/index.ts new file mode 100644 index 0000000..cf9f248 --- /dev/null +++ b/src/components/features/account-details/account-all-transactions/index.ts @@ -0,0 +1,2 @@ +export { AccountAllTransactions } from './AccountAllTransactions'; +export { useAccountAllTransactions } from './hook'; diff --git a/src/components/features/account-details/account-data-tabs/AccountDataTabs.tsx b/src/components/features/account-details/account-data-tabs/AccountDataTabs.tsx index 9bb6e3d..1b432fb 100644 --- a/src/components/features/account-details/account-data-tabs/AccountDataTabs.tsx +++ b/src/components/features/account-details/account-data-tabs/AccountDataTabs.tsx @@ -1,94 +1,25 @@ import type { QueryResult } from '@apollo/client'; -import React, { useState } from 'react'; +import React from 'react'; import { ContentContainer } from '@/components/ui/content-container'; import { SectionContainer } from '@/components/ui/section-container'; -import { - Select, - SelectContent, - SelectItem, - SelectTrigger, - SelectValue -} from '@/components/ui/select'; -import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs'; import type { AccountResponse } from '@/schemas'; -import { formatOption } from '@/utils/formatter'; -import { AccountBeneficiaries } from '../account-beneficiaries/AccountBeneficiaries'; -import { AccountGuardian } from '../account-guardian/AccountGuardian'; -import { AccountMinerRewards } from '../account-miner-rewards/AccountMinerRewards'; -import { AccountReversibleTransactions } from '../account-reversible-transactions/AccountReversibleTransactions'; -import { AccountTransactions } from '../account-transactions/AccountTransactions'; +import { AccountAllTransactions } from '../account-all-transactions/AccountAllTransactions'; export interface AccountDataTabsProps { accountId: string; query: QueryResult; } -const TAB_OPTIONS = { - immediate: 'immediate-transactions', - reversible: 'reversible-transactions', - miners: 'miner-rewards', - guardian: 'guardian', - beneficiaries: 'beneficiaries' -} as const; -const TAB_LIST = Object.values(TAB_OPTIONS); - export const AccountDataTabs: React.FC = ({ query, accountId }) => { - const [selectedTab, setSelectedTab] = useState(TAB_OPTIONS.immediate); - return ( - - - - - {TAB_LIST.map((val) => ( - setSelectedTab(val)} - value={val} - > - {formatOption(val)} - - ))} - - - - - - - - - - - - - - - - - - + ); diff --git a/src/components/features/block-details/block-all-transactions/BlockAllTransactions.tsx b/src/components/features/block-details/block-all-transactions/BlockAllTransactions.tsx new file mode 100644 index 0000000..d59d955 --- /dev/null +++ b/src/components/features/block-details/block-all-transactions/BlockAllTransactions.tsx @@ -0,0 +1,31 @@ +import type { QueryResult } from '@apollo/client'; +import React from 'react'; + +import { DataTable } from '@/components/ui/composites/data-table/DataTable'; +import { ContentContainer } from '@/components/ui/content-container'; +import type { BlockResponse } from '@/schemas'; + +import { useBlockAllTransactions } from './hook'; + +interface Props { + query: QueryResult; +} + +export const BlockAllTransactions: React.FC = ({ query }) => { + const { getStatus, table, error } = useBlockAllTransactions(query); + + return ( + +

Extrinsics

+ + Error: {error && error.message}

+ }} + withControls + /> +
+ ); +}; diff --git a/src/components/features/block-details/block-all-transactions/hook.tsx b/src/components/features/block-details/block-all-transactions/hook.tsx new file mode 100644 index 0000000..97f6e07 --- /dev/null +++ b/src/components/features/block-details/block-all-transactions/hook.tsx @@ -0,0 +1,66 @@ +import type { QueryResult } from '@apollo/client'; +import { + getCoreRowModel, + getPaginationRowModel, + useReactTable +} from '@tanstack/react-table'; +import { useCallback, useMemo, useState } from 'react'; + +import { createExtrinsicColumns } from '@/components/common/table-columns/EXTRINSIC_COLUMNS'; +import { QUERY_DEFAULT_LIMIT } from '@/constants/query-default-limit'; +import type { BlockExtrinsic, BlockResponse } from '@/schemas'; + +const columns = createExtrinsicColumns(); + +export const useBlockAllTransactions = (query: QueryResult) => { + const { data, error: fetchError, loading } = query; + const [pagination, setPagination] = useState({ + pageIndex: 0, + pageSize: QUERY_DEFAULT_LIMIT + }); + + // Get extrinsics directly from the block + const tableData = useMemo(() => { + if (!data) return []; + + const block = data.blocks?.[0]; + if (!block?.extrinsics) return []; + + // The extrinsics should be BlockExtrinsic[] with full details + return block.extrinsics as BlockExtrinsic[]; + }, [data]); + + const table = useReactTable({ + data: tableData, + columns, + getCoreRowModel: getCoreRowModel(), + getPaginationRowModel: getPaginationRowModel(), + enableSorting: false, + state: { + pagination + }, + onPaginationChange: setPagination + }); + + const success = !loading && !fetchError; + const error = !loading && fetchError; + + const getStatus = useCallback(() => { + switch (true) { + case success: + return 'success'; + case !!error: + return 'error'; + case !!loading: + return 'loading'; + default: + return 'idle'; + } + }, [success, error, loading]); + + return { + table, + getStatus, + error: fetchError + }; +}; diff --git a/src/components/features/block-details/block-all-transactions/index.ts b/src/components/features/block-details/block-all-transactions/index.ts new file mode 100644 index 0000000..d1d7ac7 --- /dev/null +++ b/src/components/features/block-details/block-all-transactions/index.ts @@ -0,0 +1,2 @@ +export { BlockAllTransactions } from './BlockAllTransactions'; +export { useBlockAllTransactions } from './hook'; diff --git a/src/components/features/block-details/block-data-tabs/BlockDataTabs.tsx b/src/components/features/block-details/block-data-tabs/BlockDataTabs.tsx index c65b2e7..8fda7ac 100644 --- a/src/components/features/block-details/block-data-tabs/BlockDataTabs.tsx +++ b/src/components/features/block-details/block-data-tabs/BlockDataTabs.tsx @@ -1,82 +1,21 @@ import type { QueryResult } from '@apollo/client'; -import React, { useState } from 'react'; +import React from 'react'; import { ContentContainer } from '@/components/ui/content-container'; import { SectionContainer } from '@/components/ui/section-container'; -import { - Select, - SelectContent, - SelectItem, - SelectTrigger, - SelectValue -} from '@/components/ui/select'; -import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs'; import type { BlockResponse } from '@/schemas'; -import { formatOption } from '@/utils/formatter'; -import { BlockErrorEvents } from '../block-error-events/BlockErrorEvents'; -import { BlockHighSecuritySets } from '../block-high-security-sets/BlockHighSecuritySets'; -import { BlockReversibleTransactions } from '../block-reversible-transactions/BlockReversibleTransactions'; -import { BlockTransactions } from '../block-transactions/BlockTransactions'; +import { BlockAllTransactions } from '../block-all-transactions/BlockAllTransactions'; export interface BlockDataTabsProps { query: QueryResult; } -const TAB_OPTIONS = { - immediate: 'immediate-transactions', - reversible: 'reversible-transactions', - highSecuritySets: 'high-security-sets', - errorEvents: 'error-events' -} as const; -const TAB_LIST = Object.values(TAB_OPTIONS); - export const BlockDataTabs: React.FC = ({ query }) => { - const [selectedTab, setSelectedTab] = useState(TAB_OPTIONS.immediate); - return ( - - - - - {TAB_LIST.map((val) => ( - setSelectedTab(val)} - value={val} - > - {formatOption(val)} - - ))} - - - - - - - - - - - - - - - + ); diff --git a/src/components/features/block-details/block-information/BlockInformation.tsx b/src/components/features/block-details/block-information/BlockInformation.tsx index a287e61..d31e99a 100644 --- a/src/components/features/block-details/block-information/BlockInformation.tsx +++ b/src/components/features/block-details/block-information/BlockInformation.tsx @@ -18,8 +18,7 @@ interface BlockDetails { timestamp: string; reward: number; miner: string; - transactions: number; - reversibleTransactions: number; + extrinsicsCount: number; } export const BlockInformation: React.FC = ({ @@ -28,9 +27,8 @@ export const BlockInformation: React.FC = ({ const { data, loading } = query; const block = data?.blocks?.[0]; - const transactions = data?.transactions.totalCount; - const reversibleTransactions = data?.reversibleTransactions.totalCount; - const miner = data?.miners[0]?.miner.id; + const extrinsicsCount = block?.extrinsics?.length ?? 0; + const miner = data?.minerRewards?.[0]?.miner.id; const information: Partial[] = [ { @@ -38,9 +36,8 @@ export const BlockInformation: React.FC = ({ hash: block?.hash, reward: block?.reward, timestamp: block?.timestamp, - transactions, - miner, - reversibleTransactions + extrinsicsCount, + miner } ]; @@ -83,16 +80,10 @@ export const BlockInformation: React.FC = ({ render: (value) => formatTimestamp(value, true) }, { - label: 'Immediate Transactions', - key: 'transactions', + label: 'Extrinsics', + key: 'extrinsicsCount', render: (value) => - value > 1 ? `${value} transactions` : `${value} transaction` - }, - { - label: 'Reversible Transactions', - key: 'reversibleTransactions', - render: (value) => - value > 1 ? `${value} transactions` : `${value} transaction` + value === 1 ? `${value} extrinsic` : `${value} extrinsics` } ]} /> 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 fa6ffe7..b237d69 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 @@ -27,7 +27,7 @@ export const ErrorEventInformation: React.FC = ({ { timestamp: event?.timestamp, block: event?.block, - extrinsicHash: event?.extrinsicHash, + extrinsic: event?.extrinsic, errorType: event?.errorType, errorModule: event?.errorModule, errorName: event?.errorName, @@ -41,10 +41,13 @@ export const ErrorEventInformation: React.FC = ({ data={information} fields={[ { - label: 'Extrinsic Hash', - key: 'extrinsicHash', + label: 'Extrinsic', + key: 'extrinsic', render: (value) => ( - + ) }, { 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 41ebb55..830c37a 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 @@ -28,7 +28,7 @@ export const HighSecuritySetInformation: React.FC< const information: Partial[] = [ { - extrinsicHash: highSecuritySet?.extrinsicHash, + extrinsic: highSecuritySet?.extrinsic, block: highSecuritySet?.block, timestamp: highSecuritySet?.timestamp, who: highSecuritySet?.who, @@ -43,10 +43,13 @@ export const HighSecuritySetInformation: React.FC< data={information} fields={[ { - label: 'Extrinsic Hash', - key: 'extrinsicHash', + label: 'Extrinsic', + key: 'extrinsic', render: (value) => ( - + ) }, { diff --git a/src/components/features/landing/data-tabs/DataTabs.tsx b/src/components/features/landing/data-tabs/DataTabs.tsx index a7b9307..b16b13c 100644 --- a/src/components/features/landing/data-tabs/DataTabs.tsx +++ b/src/components/features/landing/data-tabs/DataTabs.tsx @@ -1,89 +1,17 @@ -import { TabsContent } from '@radix-ui/react-tabs'; -import React, { useState } from 'react'; +import React from 'react'; import { ContentContainer } from '@/components/ui/content-container'; import { SectionContainer } from '@/components/ui/section-container'; -import { - Select, - SelectContent, - SelectItem, - SelectTrigger, - SelectValue -} from '@/components/ui/select'; -import { Tabs, TabsList, TabsTrigger } from '@/components/ui/tabs'; -import { formatOption } from '@/utils/formatter'; import { RecentBlocks } from '../recent-blocks/RecentBlocks'; -import { RecentErrorEvents } from '../recent-error-events/RecentErrorEvents'; -import { RecentHighSecuritySets } from '../recent-high-security-sets/RecentHighSecuritySets'; -import { RecentMinerRewards } from '../recent-miner-rewards/RecentMinerRewards'; -import { RecentReversibleTransactions } from '../recent-reversible-transactions/RecentReversibleTransactions'; -import { RecentTransactions } from '../recent-transactions/RecentTransactions'; export interface DataTabsProps {} -const TAB_OPTIONS = { - immediate: 'immediate-transactions', - reversible: 'reversible-transactions', - blocks: 'blocks', - miners: 'miner-rewards', - highSecuritySets: 'high-security-sets', - errors: 'errors' -} as const; -const TAB_LIST = Object.values(TAB_OPTIONS); - export const DataTabs: React.FC = () => { - const [selectedTab, setSelectedTab] = useState(TAB_OPTIONS.immediate); - return ( - - - - - {TAB_LIST.map((val) => ( - setSelectedTab(val)} - value={val} - > - {formatOption(val)} - - ))} - - - - - - - - - - - - - - - - - - - - - + ); diff --git a/src/components/features/reversible-transaction-details/reversible-transaction-information/ReversibleTransactionInformation.tsx b/src/components/features/reversible-transaction-details/reversible-transaction-information/ReversibleTransactionInformation.tsx index 04d59cd..ec79d97 100644 --- a/src/components/features/reversible-transaction-details/reversible-transaction-information/ReversibleTransactionInformation.tsx +++ b/src/components/features/reversible-transaction-details/reversible-transaction-information/ReversibleTransactionInformation.tsx @@ -34,7 +34,7 @@ export const ReversibleTransactionInformation: React.FC< { txId: tx?.txId, amount: tx?.amount, - extrinsicHash: tx?.extrinsicHash, + extrinsic: tx?.extrinsic, block: tx?.block, timestamp: tx?.timestamp, scheduledAt: tx?.scheduledAt, @@ -56,10 +56,13 @@ export const ReversibleTransactionInformation: React.FC< render: (value) => {value} }, { - label: 'Extrinsic Hash', - key: 'extrinsicHash', + label: 'Extrinsic', + key: 'extrinsic', render: (value) => ( - + ) }, { diff --git a/src/components/features/transaction-details/transaction-information/TransactionInformation.tsx b/src/components/features/transaction-details/transaction-information/TransactionInformation.tsx index 3355486..b455b35 100644 --- a/src/components/features/transaction-details/transaction-information/TransactionInformation.tsx +++ b/src/components/features/transaction-details/transaction-information/TransactionInformation.tsx @@ -5,99 +5,163 @@ import useApiClient from '@/api'; import { DataList } from '@/components/ui/composites/data-list/DataList'; import { LinkWithCopy } from '@/components/ui/composites/link-with-copy/LinkWithCopy'; import { TextWithCopy } from '@/components/ui/composites/text-with-copy/TextWithCopy'; +import { ContentContainer } from '@/components/ui/content-container'; import { RESOURCES } from '@/constants/resources'; -import type { TransactionListResponse } from '@/schemas'; -import { formatMonetaryValue, formatTimestamp } from '@/utils/formatter'; +import type { ExtrinsicDetail, ExtrinsicTransfer } from '@/schemas'; +import { + formatMonetaryValue, + formatTimestamp, + formatTxAddress +} from '@/utils/formatter'; +import { cn } from '@/lib/utils'; export interface TransactionInformationProps { hash: string; } -type Transaction = TransactionListResponse['transactions'][0]; - export const TransactionInformation: React.FC = ({ hash }) => { const api = useApiClient(); const { data, loading } = api.transactions.getByHash().useQuery(hash); - if (!loading && (!data || data.transactions.length !== 1)) throw notFound(); + if (!loading && (!data || data.extrinsics.length === 0)) throw notFound(); - const tx = data?.transactions[0]; + const extrinsic = data?.extrinsics[0]; + const transfers = data?.transfers ?? []; - const information: Partial[] = [ + const extrinsicInfo: Partial[] = [ { - amount: tx?.amount, - extrinsicHash: tx?.extrinsicHash, - block: tx?.block, - timestamp: tx?.timestamp, - from: tx?.from, - to: tx?.to, - fee: tx?.fee + id: extrinsic?.id, + pallet: extrinsic?.pallet, + call: extrinsic?.call, + success: extrinsic?.success, + fee: extrinsic?.fee, + timestamp: extrinsic?.timestamp, + signer: extrinsic?.signer, + block: extrinsic?.block } ]; return ( - > - loading={loading} - data={information} - fields={[ - { - label: 'Extrinsic Hash', - key: 'extrinsicHash', - render: (value) => ( - - ) - }, - { - label: 'Block', - key: 'block', - render: (value) => ( - - ) - }, - { - label: 'Timestamp', - key: 'timestamp', - render: (value) => formatTimestamp(value, true) - }, - { - label: 'From', - key: 'from', - render: (value) => ( - - ) - }, - { - label: 'To', - key: 'to', - render: (value) => ( - - ) - }, - { - label: 'Amount', - key: 'amount', - render: (value) => formatMonetaryValue(value) - }, - { - label: 'Fee', - key: 'fee', - render: (value) => formatMonetaryValue(value) - } - ]} - /> +
+ {/* Extrinsic Information */} + > + loading={loading} + data={extrinsicInfo} + fields={[ + { + label: 'Extrinsic Hash', + key: 'id', + render: (value) => ( + + ) + }, + { + label: 'Call', + key: 'pallet', + render: (_, item) => ( + + {item.pallet}.{item.call} + + ) + }, + { + label: 'Block', + key: 'block', + render: (value) => ( + + ) + }, + { + label: 'Timestamp', + key: 'timestamp', + render: (value) => formatTimestamp(value, true) + }, + { + label: 'Signer', + key: 'signer', + render: (value) => { + const signer = value as ExtrinsicDetail['signer']; + if (!signer) { + return unsigned; + } + return ( + + ); + } + }, + { + label: 'Fee', + key: 'fee', + render: (value) => formatMonetaryValue(value) + }, + { + label: 'Result', + key: 'success', + render: (value) => ( + + {value ? 'Success' : 'Failed'} + + ) + } + ]} + /> + + {/* Transfers Table */} + {transfers.length > 0 && ( + +

Transfers ({transfers.length})

+
+ + + + + + + + + + {transfers.map((transfer: ExtrinsicTransfer) => ( + + + + + + ))} + +
FromToAmount
+ + + + + {formatMonetaryValue(Number(transfer.amount), 5)} +
+
+
+ )} +
); }; diff --git a/src/components/features/wormhole/WormholeOutputDetails.tsx b/src/components/features/wormhole/WormholeOutputDetails.tsx index 23ed992..d37de61 100644 --- a/src/components/features/wormhole/WormholeOutputDetails.tsx +++ b/src/components/features/wormhole/WormholeOutputDetails.tsx @@ -7,14 +7,14 @@ import { TextWithCopy } from '@/components/ui/composites/text-with-copy/TextWith import { Card, CardContent } from '@/components/ui/card'; import { RESOURCES } from '@/constants/resources'; import { formatMonetaryValue, formatTimestamp } from '@/utils/formatter'; -import { PrivacyScoreBadge } from './PrivacyScoreBadge'; +// import { PrivacyScoreBadge } from './PrivacyScoreBadge'; interface WormholeOutputDetailsProps { id: string; } interface ExtrinsicInfo { - extrinsicHash: string | null; + extrinsic: { id: string } | null; totalAmount: string; outputCount: number; block: { height: number; hash: string }; @@ -40,7 +40,7 @@ export const WormholeOutputInformation = ({ const extrinsicInfo: Partial[] = [ { - extrinsicHash: extrinsic?.extrinsicHash, + extrinsic: extrinsic?.extrinsic, totalAmount: extrinsic?.totalAmount, outputCount: extrinsic?.outputCount, block: extrinsic?.block, @@ -63,10 +63,13 @@ export const WormholeOutputInformation = ({ fields={[ { label: 'Extrinsic Hash', - key: 'extrinsicHash', + key: 'extrinsic', render: (value) => - value ? ( - + value && (value as ExtrinsicInfo['extrinsic'])?.id ? ( + ) : ( - ) @@ -99,6 +102,7 @@ export const WormholeOutputInformation = ({ ]} /> + {/* Privacy Analysis section temporarily disabled

Privacy Analysis

> loading={loading} @@ -156,6 +160,7 @@ export const WormholeOutputInformation = ({ } ]} /> + */}

Exit Outputs

{loading ? ( diff --git a/src/components/ui/composites/data-table/DataTable.stories.tsx b/src/components/ui/composites/data-table/DataTable.stories.tsx index 6d7ff70..80de16d 100644 --- a/src/components/ui/composites/data-table/DataTable.stories.tsx +++ b/src/components/ui/composites/data-table/DataTable.stories.tsx @@ -29,7 +29,11 @@ export const Primary: Omit = { data: [ { block: { height: 293293 }, - extrinsicHash: '0xjdwjaidwjaidj', + extrinsic: { + id: '0xjdwjaidwjaidj', + pallet: 'balances', + call: 'transfer' + } as any, fee: '120000000', amount: '999999', from: { id: '0x2131313' }, @@ -40,7 +44,11 @@ export const Primary: Omit = { }, { block: { height: 293293 }, - extrinsicHash: '0xjdwjaidwjaidj', + extrinsic: { + id: '0xjdwjaidwjaidj', + pallet: 'balances', + call: 'transfer' + } as any, fee: '120000000', amount: '999999', from: { id: '0x2131313' }, @@ -51,7 +59,11 @@ export const Primary: Omit = { }, { block: { height: 293293 }, - extrinsicHash: '0xjdwjaidwjaidj', + extrinsic: { + id: '0xjdwjaidwjaidj', + pallet: 'balances', + call: 'transfer' + } as any, fee: '120000000', amount: '999999', from: { id: '0x2131313' }, @@ -62,7 +74,11 @@ export const Primary: Omit = { }, { block: { height: 293293 }, - extrinsicHash: '0xjdwjaidwjaidj', + extrinsic: { + id: '0xjdwjaidwjaidj', + pallet: 'balances', + call: 'transfer' + } as any, fee: '120000000', amount: '999999', from: { id: '0x2131313' }, diff --git a/src/constants/query-unified-limit.ts b/src/constants/query-unified-limit.ts new file mode 100644 index 0000000..be977fe --- /dev/null +++ b/src/constants/query-unified-limit.ts @@ -0,0 +1,3 @@ +// Higher limit for unified transaction views that merge multiple data sources +// This allows for better client-side pagination across combined data +export const QUERY_UNIFIED_LIMIT = 100; diff --git a/src/constants/transaction-types.ts b/src/constants/transaction-types.ts new file mode 100644 index 0000000..6729db0 --- /dev/null +++ b/src/constants/transaction-types.ts @@ -0,0 +1,31 @@ +import type { UnifiedTransactionType } from '@/schemas/unified-transaction'; + +export const TRANSACTION_TYPE_CONFIG: Record< + UnifiedTransactionType, + { label: string; className: string } +> = { + immediate: { + label: 'Immediate', + className: 'bg-blue-100 text-blue-800' + }, + reversible: { + label: 'Reversible', + className: 'bg-purple-100 text-purple-800' + }, + 'miner-reward': { + label: 'Miner Reward', + className: 'bg-amber-100 text-amber-800' + }, + 'high-security': { + label: 'High Security', + className: 'bg-emerald-100 text-emerald-800' + }, + wormhole: { + label: 'Wormhole', + className: 'bg-indigo-100 text-indigo-800' + }, + error: { + label: 'Error', + className: 'bg-red-100 text-red-800' + } +}; diff --git a/src/hooks/useUnifiedTransactions.ts b/src/hooks/useUnifiedTransactions.ts new file mode 100644 index 0000000..e55866e --- /dev/null +++ b/src/hooks/useUnifiedTransactions.ts @@ -0,0 +1,152 @@ +import type { + UnifiedTransaction, + UnifiedTransactionType, + ExtrinsicInfo +} from '@/schemas/unified-transaction'; +import type { WormholeOutput } from '@/schemas/wormhole'; +import type * as gql from '@/__generated__/graphql'; + +// Common transformer input types +interface TransferInput { + extrinsic?: ExtrinsicInfo | null; + timestamp: string; + amount: number; + fee?: number; + from: { id: string }; + to: { id: string }; + block: { height: number }; + status?: gql.ReversibleTransferStatus; +} + +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; + timestamp: string; + totalAmount: string; + outputCount: number; + outputs?: WormholeOutput[]; + block: { height: number }; +} + +interface ErrorEventInput { + extrinsic?: ExtrinsicInfo | null; + timestamp: string; + errorType: string; + errorName?: string | null; + errorModule?: string | null; + errorDocs?: string | null; + block: { height: number }; +} + +// Transformer functions +export const transformImmediateTransaction = ( + tx: TransferInput, + idx: number +): UnifiedTransaction => ({ + id: `immediate-${tx.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 +}); + +export const transformReversibleTransaction = ( + tx: TransferInput, + idx: number +): 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, + status: tx.status +}); + +export const transformMinerReward = ( + reward: MinerRewardInput, + idx: number +): UnifiedTransaction => ({ + id: `miner-reward-${reward.block?.hash ?? idx}`, + type: 'miner-reward' as UnifiedTransactionType, + timestamp: reward.timestamp, + block: reward.block, + reward: String(reward.reward), + miner: reward.miner +}); + +export const transformHighSecuritySet = ( + hss: HighSecuritySetInput, + idx: number +): UnifiedTransaction => ({ + id: `high-security-${hss.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 +}); + +export const transformWormholeOutput = ( + wormhole: WormholeInput, + idx: number +): UnifiedTransaction => ({ + id: wormhole.id ?? `wormhole-${idx}`, + type: 'wormhole' as UnifiedTransactionType, + timestamp: wormhole.timestamp, + block: wormhole.block, + extrinsic: wormhole.extrinsic, + totalAmount: wormhole.totalAmount, + outputCount: wormhole.outputCount, + outputs: wormhole.outputs +}); + +export const transformErrorEvent = ( + err: ErrorEventInput, + idx: number +): UnifiedTransaction => ({ + id: `error-${err.extrinsic?.id ?? idx}`, + type: 'error' as UnifiedTransactionType, + timestamp: err.timestamp, + block: err.block, + extrinsic: err.extrinsic, + errorType: err.errorType, + errorName: err.errorName, + errorModule: err.errorModule, + errorDocs: err.errorDocs +}); + +// Sort transactions by timestamp descending +export const sortByTimestampDesc = ( + transactions: UnifiedTransaction[] +): UnifiedTransaction[] => { + return [...transactions].sort((a, b) => { + const timeA = a.timestamp ? new Date(a.timestamp).getTime() : 0; + const timeB = b.timestamp ? new Date(b.timestamp).getTime() : 0; + return timeB - timeA; + }); +}; diff --git a/src/routes/immediate-transactions/$hash.tsx b/src/routes/immediate-transactions/$hash.tsx index 5de6234..2d268b3 100644 --- a/src/routes/immediate-transactions/$hash.tsx +++ b/src/routes/immediate-transactions/$hash.tsx @@ -14,7 +14,7 @@ function TransactionDetails() { return ( -

Immediate Transaction Details

+

Extrinsic Details

diff --git a/src/schemas/account.ts b/src/schemas/account.ts index fef84d8..535e3ba 100644 --- a/src/schemas/account.ts +++ b/src/schemas/account.ts @@ -2,10 +2,30 @@ import type * as gql from '../__generated__/graphql'; import type { MinerReward } from './miner-reward'; import type { ReversibleTransaction } from './reversible-transaction'; import type { Transaction } from './transcation'; +import type { WormholeOutput } from './wormhole'; export interface Account extends Pick {} +export interface AccountWormholeOutput { + id: string; + amount: string; + exitAccount: { id: string }; + wormholeExtrinsic: { + id: string; + extrinsic: { + id: string; + pallet: string; + call: string; + } | null; + totalAmount: string; + outputCount: number; + timestamp: string; + block: { height: number }; + outputs: WormholeOutput[]; + }; +} + export interface AccountResponse { account: Account; transactions: { @@ -33,6 +53,7 @@ export interface AccountResponse { /** @description the grand total of the guardian high security sets regardless of the return node limit using `first` parameter */ totalCount: number; }; + wormholeOutputs: AccountWormholeOutput[]; } export interface AccountListResponse { diff --git a/src/schemas/blocks.ts b/src/schemas/blocks.ts index f36a8e7..a95ad68 100644 --- a/src/schemas/blocks.ts +++ b/src/schemas/blocks.ts @@ -1,16 +1,58 @@ import type * as gql from '../__generated__/graphql'; import type { ErrorEvent } from './errors'; import type { HighSecuritySet } from './high-security-set'; -import type { MinerReward } from './miner-reward'; import type { ReversibleTransaction } from './reversible-transaction'; import type { Transaction } from './transcation'; +import type { WormholeOutput } from './wormhole'; + +// Extrinsic for block listing (minimal) +export interface BlockExtrinsicMinimal { + id: string; +} + +// Extrinsic for block details (full) +export interface BlockExtrinsic { + id: string; + pallet: string; + call: string; + success: boolean; + fee: string; + timestamp: string; + indexInBlock: number; + signer: { id: string } | null; +} export interface Block - extends Pick {} + extends Pick { + extrinsics: BlockExtrinsicMinimal[] | BlockExtrinsic[]; +} + +// Full miner reward for block response (includes all fields needed for unified table) +export interface BlockMinerReward { + reward: string | number; + timestamp: string; + miner: { id: string }; + block: { height: number; hash: string }; +} + +// Wormhole extrinsic for block response +export interface BlockWormholeExtrinsic { + id: string; + extrinsic: { + id: string; + pallet: string; + call: string; + } | null; + totalAmount: string; + outputCount: number; + timestamp: string; + block: { height: number }; + outputs: WormholeOutput[]; +} export interface BlockResponse { blocks: [Block]; - miners: [MinerReward]; + minerRewards: BlockMinerReward[]; transactions: { edges: BlockTransaction[]; /** @description the grand total of the transactions regardless of the return node limit using `first` parameter */ @@ -31,6 +73,7 @@ export interface BlockResponse { /** @description the grand total of the transactions regardless of the return node limit using `first` parameter */ totalCount: number; }; + wormholeExtrinsics: BlockWormholeExtrinsic[]; } export interface BlockListResponse { diff --git a/src/schemas/index.ts b/src/schemas/index.ts index 8b8fbd9..1ae3e99 100644 --- a/src/schemas/index.ts +++ b/src/schemas/index.ts @@ -8,4 +8,5 @@ export * from './miner-reward'; export * from './reversible-transaction'; export * from './searchs'; export * from './transcation'; +export * from './unified-transaction'; export * from './wormhole'; diff --git a/src/schemas/searchs.ts b/src/schemas/searchs.ts index 68e75b5..35fd0d0 100644 --- a/src/schemas/searchs.ts +++ b/src/schemas/searchs.ts @@ -7,11 +7,11 @@ import type { ReversibleTransaction } from './reversible-transaction'; import type { Transaction } from './transcation'; export interface SearchAllResponse { - transactions: Pick[]; - reversibleTransactions: Pick[]; + transactions: Pick[]; + reversibleTransactions: Pick[]; accounts: Pick[]; blocks: Pick[]; - highSecuritySets: Pick[]; + highSecuritySets: Pick[]; minerRewards: Pick[]; - errorEvents: Pick[]; + errorEvents: Pick[]; } diff --git a/src/schemas/transcation.ts b/src/schemas/transcation.ts index f2e7eab..210dc32 100644 --- a/src/schemas/transcation.ts +++ b/src/schemas/transcation.ts @@ -30,3 +30,29 @@ export interface TransactionsStatsResponse { totalCount: number; }; } + +// Extrinsic detail response (for /transactions/{hash} page) +export interface ExtrinsicDetail { + id: string; + pallet: string; + call: string; + success: boolean; + fee: string; + timestamp: string; + indexInBlock: number; + signer: { id: string } | null; + block: { height: number }; +} + +export interface ExtrinsicTransfer { + id: string; + amount: string; + timestamp: string; + from: { id: string }; + to: { id: string }; +} + +export interface ExtrinsicDetailResponse { + extrinsics: ExtrinsicDetail[]; + transfers: ExtrinsicTransfer[]; +} diff --git a/src/schemas/unified-transaction.ts b/src/schemas/unified-transaction.ts new file mode 100644 index 0000000..e6c904e --- /dev/null +++ b/src/schemas/unified-transaction.ts @@ -0,0 +1,54 @@ +import type * as gql from '../__generated__/graphql'; +import type { WormholeOutput } from './wormhole'; + +// All possible transaction types across account and block views +export type UnifiedTransactionType = + | 'immediate' + | 'reversible' + | 'miner-reward' + | 'high-security' + | 'wormhole' + | 'error'; + +// Extrinsic info embedded in transactions +export interface ExtrinsicInfo { + id: string; + pallet: string; + call: string; +} + +// Single unified transaction interface for all contexts +export interface UnifiedTransaction { + id: string; + type: UnifiedTransactionType; + timestamp: string; + block: { height: number; hash?: string }; + extrinsic?: ExtrinsicInfo | null; + + // Transfer fields (immediate/reversible) + from?: { id: string }; + to?: { id: string }; + amount?: string | number; + fee?: number; + status?: gql.ReversibleTransferStatus; + + // Miner reward fields + reward?: string; + miner?: { id: string }; + + // High security set fields + who?: { id: string }; + interceptor?: { id: string }; + delay?: number; + + // Wormhole fields + totalAmount?: string; + outputCount?: number; + outputs?: WormholeOutput[]; + + // Error event fields + errorType?: string; + errorName?: string | null; + errorModule?: string | null; + errorDocs?: string | null; +} diff --git a/src/schemas/wormhole.ts b/src/schemas/wormhole.ts index c20ad2f..d07cb88 100644 --- a/src/schemas/wormhole.ts +++ b/src/schemas/wormhole.ts @@ -5,13 +5,13 @@ export interface WormholeExtrinsic extends Pick< gql.WormholeExtrinsic, | 'id' - | 'extrinsicHash' | 'totalAmount' | 'outputCount' | 'timestamp' | 'privacyScore' | 'privacyLabel' > { + extrinsic: Pick | null; block: Pick; } @@ -20,7 +20,6 @@ export interface WormholeExtrinsicDetail extends Pick< gql.WormholeExtrinsic, | 'id' - | 'extrinsicHash' | 'totalAmount' | 'outputCount' | 'timestamp' @@ -31,6 +30,7 @@ export interface WormholeExtrinsicDetail | 'privacyLabel' | 'poolSnapshot' > { + extrinsic: Pick | null; block: Pick; outputs: WormholeOutput[]; }