diff --git a/README.md b/README.md index 42151b7..9c5459f 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,7 @@ A modern, feature-rich blockchain explorer for the Quantus Network built with Re ## ๐Ÿš€ Features ### Core Functionality + - **๐Ÿ” Universal Search** - Search across transactions, blocks, and accounts with intelligent auto-complete - **๐Ÿ“Š Real-time Data** - Live blockchain statistics and recent activity updates - **๐Ÿ“ฑ Responsive Design** - Optimized for desktop, tablet, and mobile devices @@ -14,12 +15,14 @@ A modern, feature-rich blockchain explorer for the Quantus Network built with Re - **โšก Fast Performance** - Server-side rendering with Next.js 14 App Router ### Data Views + - **๐Ÿ’ฐ Transactions** - Browse all network transactions with detailed information - **๐Ÿงฑ Blocks** - Explore block data including height, hash, and timestamp - **๐Ÿ‘ค Accounts** - View account balances and transaction history - **๐Ÿ“ˆ Chain Statistics** - Network metrics and activity summaries ### Technical Features + - **Type-Safe GraphQL** - Automated code generation for GraphQL queries - **Modern UI Components** - Built with Radix UI primitives and Tailwind CSS - **Accessibility First** - WCAG compliant components and keyboard navigation @@ -27,6 +30,7 @@ A modern, feature-rich blockchain explorer for the Quantus Network built with Re ## ๐Ÿ› ๏ธ Technology Stack ### Frontend + - **React.js 19** - The library for web user interfaces - **Tanstack Router** - Modern and scalable router - **TypeScript** - Type-safe JavaScript @@ -35,11 +39,13 @@ A modern, feature-rich blockchain explorer for the Quantus Network built with Re - **Lucide React** - Beautiful icons ### Data & API + - **Apollo Client** - GraphQL client with caching - **GraphQL Code Generator** - Type-safe GraphQL operations - **Date-fns** - Date manipulation utilities ### Development Tools + - **Storybook** - Component development environment - **Jest** - Testing framework - **ESLint** - Code linting @@ -55,17 +61,20 @@ A modern, feature-rich blockchain explorer for the Quantus Network built with Re ## ๐Ÿš€ Getting Started ### 1. Clone the Repository + ```bash git clone https://github.com/Quantus-Network/explorer.git cd explorer ``` ### 2. Install Dependencies + ```bash bun install ``` ### 3. Environment Setup + Create a `.env.local` file in the root directory: ```env @@ -77,11 +86,13 @@ ANALYZE=false ``` ### 4. Generate GraphQL Types + ```bash bun gql:compile ``` ### 5. Start Development Server + ```bash bun dev ``` @@ -119,25 +130,27 @@ quantus-block-explorer/ ## ๐Ÿ”ง Development Scripts -| Command | Description | -|---------|-------------| -| `bun dev` | Start development server | -| `bun run build` | Build for production | -| `bun start` | Start production server | -| `bun lint` | Run ESLint | -| `bun test` | Run tests | -| `bun format` | Format code with Prettier | -| `bun storybook` | Start Storybook | -| `bun gql:compile` | Generate GraphQL types | +| Command | Description | +| ----------------- | ------------------------- | +| `bun dev` | Start development server | +| `bun run build` | Build for production | +| `bun start` | Start production server | +| `bun lint` | Run ESLint | +| `bun test` | Run tests | +| `bun format` | Format code with Prettier | +| `bun storybook` | Start Storybook | +| `bun gql:compile` | Generate GraphQL types | ## ๐Ÿงช Testing ### Unit Tests + ```bash bun test ``` ### Storybook Tests + ```bash bun storybook bun test-storybook:ci @@ -152,6 +165,7 @@ bun storybook ``` Components are organized by feature and include: + - Stories for different states - Accessibility testing - Visual regression testing @@ -161,11 +175,13 @@ Components are organized by feature and include: The project uses Apollo Client for GraphQL integration with automatic code generation: ### Adding New Queries + 1. Create query in `src/api/` 2. Run `bun gql:compile` to generate types 3. Import and use in components ### Example Query Structure + ```typescript export const exampleQuery = { useGetData: (config?: QueryHookOptions) => { @@ -191,15 +207,16 @@ export const exampleQuery = { ## ๐Ÿ” Environment Variables -| Variable | Description | Required | -|----------|-------------|----------| -| `VITE_SITE_URL` | Site base URL | Yes | -| `VITE_GRAPHQL_URL` | GraphQL API endpoint | Yes | -| `ANALYZE` | Enable bundle analyzer | No | +| Variable | Description | Required | +| ------------------ | ---------------------- | -------- | +| `VITE_SITE_URL` | Site base URL | Yes | +| `VITE_GRAPHQL_URL` | GraphQL API endpoint | Yes | +| `ANALYZE` | Enable bundle analyzer | No | ## ๐Ÿš€ Deployment ### Manual Deployment + ```bash bun run build ``` @@ -230,6 +247,7 @@ We welcome contributions! Please follow these steps: 7. **Open a Pull Request** ### Code Style + - Use TypeScript for all new code - Follow the existing naming conventions - Add tests for new features @@ -238,6 +256,7 @@ We welcome contributions! Please follow these steps: ## ๐Ÿ“ Code Quality This project maintains high code quality through: + - **ESLint** - Airbnb configuration with TypeScript support - **Prettier** - Consistent code formatting - **Husky** - Pre-commit hooks for quality checks @@ -248,17 +267,20 @@ This project maintains high code quality through: ### Common Issues **GraphQL Types Not Generated** + ```bash bun gql:compile ``` **Development Server Won't Start** + ```bash bun clean bun dev ``` ### Getting Help + - Check the [Issues](https://github.com/Quantus-Network/explorer/issues) page - Create a new issue with detailed information diff --git a/codegen.ts b/codegen.ts index 9c2a0f1..1d70e7a 100644 --- a/codegen.ts +++ b/codegen.ts @@ -1,9 +1,7 @@ import type { CodegenConfig } from '@graphql-codegen/cli'; const config: CodegenConfig = { - schema: - process.env.CODEGEN_SCHEMA_URL || - 'https://subsquid.quantus.com/green/graphql', + schema: process.env.CODEGEN_SCHEMA_URL || 'http://localhost:4350/graphql', documents: ['src/**/*.{ts,tsx}'], generates: { './src/__generated__/': { diff --git a/index.html b/index.html index a52ff7b..9677532 100644 --- a/index.html +++ b/index.html @@ -1,4 +1,4 @@ - + diff --git a/package.json b/package.json index 2ec9b74..fc64247 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "storybook:serve": "http-server storybook-static --port 6006 --silent", "serve-storybook": "run-s storybook:*", "test-storybook:ci": "start-server-and-test serve-storybook http://127.0.0.1:6006 test-storybook", - "format": "prettier '**/*.{json,yaml}' --write", + "format": "prettier . --write", "prepare": "husky", "gen-assets": "svgr --template svgr-template.cjs --index-template svgr-index-template.cjs --icon --title-prop --typescript --jsx-runtime automatic --replace-attr-values currentColor=currentColor,#FFEF00=currentColor --filename-case pascal -d src/assets assets", "gql:compile": "graphql-codegen" diff --git a/src/__generated__/gql.ts b/src/__generated__/gql.ts index b9b59f7..3646950 100644 --- a/src/__generated__/gql.ts +++ b/src/__generated__/gql.ts @@ -14,40 +14,93 @@ import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/ * Learn more about it here: https://the-guild.dev/graphql/codegen/plugins/presets/preset-client#reducing-bundle-size */ type Documents = { - '\n query 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 GetAccounts(\n $limit: Int\n $offset: Int\n $orderBy: [AccountOrderByInput!]\n ) {\n accounts(limit: $limit, offset: $offset, orderBy: $orderBy) {\n id\n free\n frozen\n reserved\n }\n meta: accountsConnection(orderBy: id_ASC) {\n totalCount\n }\n }\n ': typeof types.GetAccountsDocument; + '\n query GetAccountById($id: String!, $limit: Int!) {\n account: accountById(id: $id) {\n id\n free\n frozen\n reserved\n }\n transactions: transfersConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n extrinsic_isNull: false\n AND: { from: { id_eq: $id }, OR: { to: { id_eq: $id } } }\n }\n ) {\n edges {\n node {\n fee\n extrinsic {\n id\n pallet\n call\n }\n block {\n height\n }\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n }\n }\n\n totalCount\n }\n scheduledReversibleTransactions: scheduledReversibleTransfersConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: { from: { id_eq: $id }, OR: { to: { id_eq: $id } } }\n ) {\n edges {\n node {\n extrinsic {\n id\n pallet\n call\n }\n timestamp\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n totalCount\n }\n executedReversibleTransactions: executedReversibleTransfersConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n scheduledTransfer: {\n from: { id_eq: $id }\n OR: { to: { id_eq: $id } }\n }\n }\n ) {\n edges {\n node {\n timestamp\n txId\n block {\n height\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n totalCount\n }\n cancelledReversibleTransactions: cancelledReversibleTransfersConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n scheduledTransfer: {\n from: { id_eq: $id }\n OR: { to: { id_eq: $id } }\n }\n OR: { cancelledBy: { id_eq: $id } }\n }\n ) {\n edges {\n node {\n timestamp\n txId\n block {\n height\n }\n cancelledBy {\n id\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n totalCount\n }\n minerRewards: minerRewardsConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: { miner: { id_eq: $id } }\n ) {\n edges {\n node {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n }\n\n totalCount\n }\n guardian: highSecuritySetsConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: { who: { id_eq: $id } }\n ) {\n edges {\n node {\n timestamp\n block {\n height\n }\n interceptor {\n id\n free\n frozen\n reserved\n }\n }\n }\n\n totalCount\n }\n beneficiaries: highSecuritySetsConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: { interceptor: { id_eq: $id } }\n ) {\n edges {\n node {\n timestamp\n block {\n height\n }\n who {\n id\n free\n frozen\n reserved\n }\n }\n }\n\n totalCount\n }\n wormholeOutputs: wormholeOutputs(\n orderBy: wormholeExtrinsic_timestamp_DESC\n limit: $limit\n where: { exitAccount: { id_eq: $id } }\n ) {\n id\n amount\n exitAccount {\n id\n }\n wormholeExtrinsic {\n id\n extrinsic {\n id\n pallet\n call\n }\n totalAmount\n outputCount\n timestamp\n block {\n height\n }\n outputs {\n id\n exitAccount {\n id\n }\n amount\n }\n }\n }\n }\n ': typeof types.GetAccountByIdDocument; + '\n query GetAccountsStats($startDate: DateTime!, $endDate: DateTime!) {\n all: accountsConnection(orderBy: id_ASC) {\n totalCount\n }\n recentlyActive: accountsConnection(\n orderBy: id_ASC\n where: {\n transfersFrom_some: {\n timestamp_gte: $startDate\n timestamp_lte: $endDate\n }\n }\n ) {\n totalCount\n }\n recentlyDeposited: accountsConnection(\n orderBy: id_ASC\n where: {\n transfersTo_some: {\n timestamp_gte: $startDate\n timestamp_lte: $endDate\n }\n }\n ) {\n totalCount\n }\n }\n ': typeof types.GetAccountsStatsDocument; + '\n query GetBlocks(\n $limit: Int\n $offset: Int\n $orderBy: [BlockOrderByInput!]!\n $where: BlockWhereInput\n ) {\n blocks(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n id\n hash\n height\n reward\n timestamp\n extrinsics {\n id\n }\n }\n meta: blocksConnection(orderBy: id_ASC) {\n totalCount\n }\n }\n ': typeof types.GetBlocksDocument; + '\n query GetRecentBlocks(\n $limit: Int\n $offset: Int\n $orderBy: [BlockOrderByInput!]\n ) {\n blocks(limit: $limit, offset: $offset, orderBy: $orderBy) {\n id\n hash\n height\n reward\n timestamp\n extrinsics {\n id\n }\n }\n }\n ': typeof types.GetRecentBlocksDocument; + '\n query GetBlockById($height: Int!, $hash: String!, $limit: Int!) {\n blocks(where: { height_eq: $height, OR: { hash_eq: $hash } }) {\n id\n hash\n height\n reward\n timestamp\n extrinsics(orderBy: indexInBlock_ASC) {\n id\n pallet\n call\n success\n fee\n timestamp\n indexInBlock\n signer {\n id\n }\n }\n }\n minerRewards(\n where: {\n block: { height_eq: $height }\n OR: { block: { hash_eq: $hash } }\n }\n ) {\n reward\n timestamp\n miner {\n id\n }\n block {\n height\n hash\n }\n }\n transactions: transfersConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n extrinsic_isNull: false\n AND: {\n block: { height_eq: $height }\n OR: { block: { hash_eq: $hash } }\n }\n }\n ) {\n edges {\n node {\n fee\n extrinsic {\n id\n pallet\n call\n }\n block {\n height\n }\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n }\n }\n\n totalCount\n }\n scheduledReversibleTransactions: scheduledReversibleTransfersConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n block: { height_eq: $height }\n OR: { block: { hash_eq: $hash } }\n }\n ) {\n edges {\n node {\n extrinsic {\n id\n pallet\n call\n }\n timestamp\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n totalCount\n }\n executedReversibleTransactions: executedReversibleTransfersConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n block: { height_eq: $height }\n OR: { block: { hash_eq: $hash } }\n }\n ) {\n edges {\n node {\n timestamp\n txId\n block {\n height\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n totalCount\n }\n cancelledReversibleTransactions: cancelledReversibleTransfersConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n block: { height_eq: $height }\n OR: { block: { hash_eq: $hash } }\n }\n ) {\n edges {\n node {\n timestamp\n txId\n block {\n height\n }\n cancelledBy {\n id\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n totalCount\n }\n highSecuritySets: highSecuritySetsConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n block: { height_eq: $height }\n OR: { block: { hash_eq: $hash } }\n }\n ) {\n edges {\n node {\n extrinsic {\n id\n pallet\n call\n }\n timestamp\n delay\n block {\n height\n }\n who {\n id\n }\n interceptor {\n id\n }\n }\n }\n\n totalCount\n }\n errorEvents: errorEventsConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n block: { height_eq: $height }\n OR: { block: { hash_eq: $hash } }\n }\n ) {\n edges {\n node {\n errorDocs\n errorModule\n errorName\n errorType\n extrinsic {\n id\n pallet\n call\n }\n timestamp\n block {\n height\n }\n }\n }\n\n totalCount\n }\n wormholeExtrinsics(\n orderBy: timestamp_DESC\n limit: $limit\n where: {\n block: { height_eq: $height }\n OR: { block: { hash_eq: $hash } }\n }\n ) {\n id\n extrinsic {\n id\n pallet\n call\n }\n totalAmount\n outputCount\n timestamp\n block {\n height\n }\n outputs {\n id\n exitAccount {\n id\n }\n amount\n }\n }\n }\n ': typeof types.GetBlockByIdDocument; + '\n query GetCancelledReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [CancelledReversibleTransferOrderByInput!]\n $where: CancelledReversibleTransferWhereInput\n ) {\n cancelledReversibleTransactions: cancelledReversibleTransfers(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n timestamp\n txId\n block {\n height\n }\n cancelledBy {\n id\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n meta: cancelledReversibleTransfersConnection(\n orderBy: id_ASC\n where: $where\n ) {\n totalCount\n }\n }\n ': typeof types.GetCancelledReversibleTransactionsDocument; + '\n query GetRecentCancelledReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [CancelledReversibleTransferOrderByInput!]\n ) {\n cancelledReversibleTransactions: cancelledReversibleTransfers(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n ) {\n timestamp\n txId\n block {\n height\n }\n cancelledBy {\n id\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n ': typeof types.GetRecentCancelledReversibleTransactionsDocument; + '\n query GetCancelledReversibleTransactionsStats(\n $startDate: DateTime!\n $endDate: DateTime!\n ) {\n last24Hour: cancelledReversibleTransfersConnection(\n orderBy: id_ASC\n where: { timestamp_gte: $startDate, timestamp_lte: $endDate }\n ) {\n totalCount\n }\n allTime: cancelledReversibleTransfersConnection(orderBy: id_ASC) {\n totalCount\n }\n }\n ': typeof types.GetCancelledReversibleTransactionsStatsDocument; + '\n query GetCancelledReversibleTransactionByTxId($txId: String!) {\n cancelledReversibleTransactions: cancelledReversibleTransfers(\n where: { txId_eq: $txId }\n ) {\n timestamp\n txId\n block {\n height\n }\n cancelledBy {\n id\n }\n extrinsic {\n id\n pallet\n call\n }\n scheduledTransfer {\n amount\n scheduledAt\n fee\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n ': typeof types.GetCancelledReversibleTransactionByTxIdDocument; + '\n query GetStatus(\n $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 scheduledReversibleTransactions: scheduledReversibleTransfersConnection(\n orderBy: id_ASC\n ) {\n totalCount\n }\n executedReversibleTransactions: executedReversibleTransfersConnection(\n orderBy: id_ASC\n ) {\n totalCount\n }\n cancelledReversibleTransactions: cancelledReversibleTransfersConnection(\n orderBy: id_ASC\n ) {\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 GetExecutedReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [ExecutedReversibleTransferOrderByInput!]\n $where: ExecutedReversibleTransferWhereInput\n ) {\n executedReversibleTransactions: executedReversibleTransfers(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n timestamp\n txId\n block {\n height\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n meta: executedReversibleTransfersConnection(\n orderBy: id_ASC\n where: $where\n ) {\n totalCount\n }\n }\n ': typeof types.GetExecutedReversibleTransactionsDocument; + '\n query GetRecentExecutedReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [ExecutedReversibleTransferOrderByInput!]\n ) {\n executedReversibleTransactions: executedReversibleTransfers(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n ) {\n timestamp\n txId\n block {\n height\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n ': typeof types.GetRecentExecutedReversibleTransactionsDocument; + '\n query GetExecutedReversibleTransactionsStats(\n $startDate: DateTime!\n $endDate: DateTime!\n ) {\n last24Hour: executedReversibleTransfersConnection(\n orderBy: id_ASC\n where: { timestamp_gte: $startDate, timestamp_lte: $endDate }\n ) {\n totalCount\n }\n allTime: executedReversibleTransfersConnection(orderBy: id_ASC) {\n totalCount\n }\n }\n ': typeof types.GetExecutedReversibleTransactionsStatsDocument; + '\n query GetExecutedReversibleTransactionByTxId($txId: String!) {\n executedReversibleTransactions: executedReversibleTransfers(\n where: { txId_eq: $txId }\n ) {\n timestamp\n txId\n block {\n height\n }\n scheduledTransfer {\n amount\n scheduledAt\n fee\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n ': typeof types.GetExecutedReversibleTransactionByTxIdDocument; + '\n query GetHighSecuritySets(\n $limit: Int\n $offset: Int\n $orderBy: [HighSecuritySetOrderByInput!]\n $where: HighSecuritySetWhereInput\n ) {\n highSecuritySets(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n id\n extrinsic {\n id\n pallet\n call\n }\n who {\n id\n }\n interceptor {\n id\n }\n timestamp\n delay\n block {\n height\n }\n }\n meta: highSecuritySetsConnection(orderBy: id_ASC, where: $where) {\n totalCount\n }\n }\n ': typeof types.GetHighSecuritySetsDocument; + '\n query GetRecentHighSecuritySets(\n $limit: Int\n $offset: Int\n $orderBy: [HighSecuritySetOrderByInput!]\n $where: HighSecuritySetWhereInput\n ) {\n highSecuritySets(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n id\n extrinsic {\n id\n pallet\n call\n }\n who {\n id\n }\n interceptor {\n id\n }\n timestamp\n delay\n block {\n height\n }\n }\n }\n ': typeof types.GetRecentHighSecuritySetsDocument; '\n query GetHighSecuritySetsStats(\n $startDate: DateTime!\n $endDate: DateTime!\n ) {\n last24Hour: highSecuritySetsConnection(\n orderBy: id_ASC\n where: { timestamp_gte: $startDate, timestamp_lte: $endDate }\n ) {\n totalCount\n }\n allTime: highSecuritySetsConnection(orderBy: id_ASC) {\n totalCount\n }\n }\n ': typeof types.GetHighSecuritySetsStatsDocument; - '\n query GetHighSecuritySetByHash($hash: String!) {\n highSecuritySets(where: { 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 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 GetScheduledReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [ScheduledReversibleTransferOrderByInput!]\n $where: ScheduledReversibleTransferWhereInput\n ) {\n scheduledReversibleTransactions: scheduledReversibleTransfers(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n meta: scheduledReversibleTransfersConnection(\n orderBy: id_ASC\n where: $where\n ) {\n totalCount\n }\n }\n ': typeof types.GetScheduledReversibleTransactionsDocument; + '\n query GetRecentScheduledReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [ScheduledReversibleTransferOrderByInput!]\n ) {\n scheduledReversibleTransactions: scheduledReversibleTransfers(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n ) {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n ': typeof types.GetRecentScheduledReversibleTransactionsDocument; + '\n query GetScheduledReversibleTransactionsStats(\n $startDate: DateTime!\n $endDate: DateTime!\n ) {\n last24Hour: scheduledReversibleTransfersConnection(\n orderBy: id_ASC\n where: { timestamp_gte: $startDate, timestamp_lte: $endDate }\n ) {\n totalCount\n }\n allTime: scheduledReversibleTransfersConnection(orderBy: id_ASC) {\n totalCount\n }\n }\n ': typeof types.GetScheduledReversibleTransactionsStatsDocument; + '\n query GetScheduledReversibleTransactionByTxId($txId: String!) {\n scheduledReversibleTransactions: scheduledReversibleTransfers(\n where: { txId_eq: $txId }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n ': typeof types.GetScheduledReversibleTransactionByTxIdDocument; + '\n query SearchAll($keyword: String, $keyword_number: Int, $limit: Int) {\n transactions: transfers(\n limit: $limit\n where: { extrinsic: { id_startsWith: $keyword } }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n }\n scheduledReversibleTransactions: scheduledReversibleTransfers(\n limit: $limit\n where: { txId_startsWith: $keyword }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n txId\n }\n executedReversibleTransactions: executedReversibleTransfers(\n limit: $limit\n where: { txId_startsWith: $keyword }\n ) {\n txId\n }\n cancelledReversibleTransactions: cancelledReversibleTransfers(\n limit: $limit\n where: { txId_startsWith: $keyword }\n ) {\n txId\n }\n accounts(limit: $limit, where: { id_startsWith: $keyword }) {\n id\n }\n blocks(\n limit: $limit\n where: {\n hash_startsWith: $keyword\n OR: { height_eq: $keyword_number }\n }\n ) {\n height\n }\n highSecuritySets(\n limit: $limit\n where: { extrinsic: { id_startsWith: $keyword } }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n }\n minerRewards(\n limit: $limit\n where: { block: { hash_startsWith: $keyword } }\n ) {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n errorEvents(\n limit: $limit\n where: {\n errorType_containsInsensitive: $keyword\n OR: { errorName_containsInsensitive: $keyword }\n }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n }\n }\n ': typeof types.SearchAllDocument; + '\n query GetTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [TransferOrderByInput!]\n $where: TransferWhereInput\n ) {\n transactions: transfers(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n fee\n extrinsic {\n id\n pallet\n call\n }\n block {\n height\n }\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n }\n meta: transfersConnection(orderBy: id_ASC, where: $where) {\n totalCount\n }\n }\n ': typeof types.GetTransactionsDocument; + '\n query GetRecentTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [TransferOrderByInput!]\n $where: TransferWhereInput\n ) {\n transactions: transfers(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n fee\n extrinsic {\n id\n pallet\n call\n }\n block {\n height\n }\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n }\n }\n ': typeof types.GetRecentTransactionsDocument; + '\n query GetTransactionsStats($startDate: DateTime!, $endDate: DateTime!) {\n last24Hour: transfersConnection(\n orderBy: id_ASC\n where: {\n timestamp_gte: $startDate\n timestamp_lte: $endDate\n extrinsic_isNull: false\n }\n ) {\n totalCount\n }\n allTime: transfersConnection(\n orderBy: id_ASC\n where: { extrinsic_isNull: false }\n ) {\n totalCount\n }\n allTime: transfersConnection(\n orderBy: id_ASC\n where: { extrinsic_isNull: false }\n ) {\n totalCount\n }\n }\n ': typeof types.GetTransactionsStatsDocument; + '\n query GetExtrinsicByHash($hash: String!) {\n extrinsics(where: { id_eq: $hash }) {\n id\n pallet\n call\n success\n fee\n timestamp\n indexInBlock\n signer {\n id\n }\n block {\n height\n }\n }\n transfers(\n where: { extrinsic: { id_eq: $hash } }\n orderBy: timestamp_ASC\n ) {\n id\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n }\n }\n ': typeof types.GetExtrinsicByHashDocument; + '\n query GetWormholeExtrinsics(\n $limit: Int\n $offset: Int\n $orderBy: [WormholeExtrinsicOrderByInput!]!\n $where: WormholeExtrinsicWhereInput\n ) {\n wormholeExtrinsics(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n id\n extrinsic {\n id\n pallet\n call\n }\n totalAmount\n outputCount\n timestamp\n privacyScore\n privacyLabel\n block {\n height\n }\n }\n meta: wormholeExtrinsicsConnection(orderBy: id_ASC) {\n totalCount\n }\n }\n': typeof types.GetWormholeExtrinsicsDocument; + '\n query GetWormholeExtrinsicById($id: String!) {\n wormholeExtrinsicById(id: $id) {\n id\n extrinsic {\n id\n pallet\n call\n }\n totalAmount\n outputCount\n timestamp\n privacyScore\n privacyScore01Pct\n privacyScore1Pct\n privacyScore5Pct\n privacyLabel\n poolSnapshot\n block {\n id\n height\n hash\n timestamp\n }\n outputs {\n id\n exitAccount {\n id\n }\n amount\n }\n }\n wormholeNullifiers(\n where: { wormholeExtrinsic: { extrinsic: { id_eq: $id } } }\n ) {\n nullifier\n nullifierHash\n }\n }\n': typeof types.GetWormholeExtrinsicByIdDocument; + '\n query GetDepositPoolStats {\n depositPoolStatsById(id: "global") {\n lastUpdatedBlock\n buckets\n }\n }\n': typeof types.GetDepositPoolStatsDocument; }; const documents: 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 ': + '\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 extrinsic_isNull: false\n AND: { from: { id_eq: $id }, OR: { to: { id_eq: $id } } }\n }\n ) {\n edges {\n node {\n fee\n extrinsic {\n id\n pallet\n call\n }\n block {\n height\n }\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n }\n }\n\n totalCount\n }\n scheduledReversibleTransactions: scheduledReversibleTransfersConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: { from: { id_eq: $id }, OR: { to: { id_eq: $id } } }\n ) {\n edges {\n node {\n extrinsic {\n id\n pallet\n call\n }\n timestamp\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n totalCount\n }\n executedReversibleTransactions: executedReversibleTransfersConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n scheduledTransfer: {\n from: { id_eq: $id }\n OR: { to: { id_eq: $id } }\n }\n }\n ) {\n edges {\n node {\n timestamp\n txId\n block {\n height\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n totalCount\n }\n cancelledReversibleTransactions: cancelledReversibleTransfersConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n scheduledTransfer: {\n from: { id_eq: $id }\n OR: { to: { id_eq: $id } }\n }\n OR: { cancelledBy: { id_eq: $id } }\n }\n ) {\n edges {\n node {\n timestamp\n txId\n block {\n height\n }\n cancelledBy {\n id\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n totalCount\n }\n minerRewards: minerRewardsConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: { miner: { id_eq: $id } }\n ) {\n edges {\n node {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n }\n\n totalCount\n }\n guardian: highSecuritySetsConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: { who: { id_eq: $id } }\n ) {\n edges {\n node {\n timestamp\n block {\n height\n }\n interceptor {\n id\n free\n frozen\n reserved\n }\n }\n }\n\n totalCount\n }\n beneficiaries: highSecuritySetsConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: { interceptor: { id_eq: $id } }\n ) {\n edges {\n node {\n timestamp\n block {\n height\n }\n who {\n id\n free\n frozen\n reserved\n }\n }\n }\n\n totalCount\n }\n wormholeOutputs: wormholeOutputs(\n orderBy: wormholeExtrinsic_timestamp_DESC\n limit: $limit\n where: { exitAccount: { id_eq: $id } }\n ) {\n id\n amount\n exitAccount {\n id\n }\n wormholeExtrinsic {\n id\n extrinsic {\n id\n pallet\n call\n }\n totalAmount\n outputCount\n timestamp\n block {\n height\n }\n outputs {\n id\n exitAccount {\n id\n }\n amount\n }\n }\n }\n }\n ': + 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 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 extrinsics {\n id\n }\n }\n }\n ': + types.GetRecentBlocksDocument, + '\n query GetBlockById($height: Int!, $hash: String!, $limit: Int!) {\n blocks(where: { height_eq: $height, OR: { hash_eq: $hash } }) {\n id\n hash\n height\n reward\n timestamp\n extrinsics(orderBy: indexInBlock_ASC) {\n id\n pallet\n call\n success\n fee\n timestamp\n indexInBlock\n signer {\n id\n }\n }\n }\n minerRewards(\n where: {\n block: { height_eq: $height }\n OR: { block: { hash_eq: $hash } }\n }\n ) {\n reward\n timestamp\n miner {\n id\n }\n block {\n height\n hash\n }\n }\n transactions: transfersConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n extrinsic_isNull: false\n AND: {\n block: { height_eq: $height }\n OR: { block: { hash_eq: $hash } }\n }\n }\n ) {\n edges {\n node {\n fee\n extrinsic {\n id\n pallet\n call\n }\n block {\n height\n }\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n }\n }\n\n totalCount\n }\n scheduledReversibleTransactions: scheduledReversibleTransfersConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n block: { height_eq: $height }\n OR: { block: { hash_eq: $hash } }\n }\n ) {\n edges {\n node {\n extrinsic {\n id\n pallet\n call\n }\n timestamp\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n totalCount\n }\n executedReversibleTransactions: executedReversibleTransfersConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n block: { height_eq: $height }\n OR: { block: { hash_eq: $hash } }\n }\n ) {\n edges {\n node {\n timestamp\n txId\n block {\n height\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n totalCount\n }\n cancelledReversibleTransactions: cancelledReversibleTransfersConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n block: { height_eq: $height }\n OR: { block: { hash_eq: $hash } }\n }\n ) {\n edges {\n node {\n timestamp\n txId\n block {\n height\n }\n cancelledBy {\n id\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n totalCount\n }\n highSecuritySets: highSecuritySetsConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n block: { height_eq: $height }\n OR: { block: { hash_eq: $hash } }\n }\n ) {\n edges {\n node {\n extrinsic {\n id\n pallet\n call\n }\n timestamp\n delay\n block {\n height\n }\n who {\n id\n }\n interceptor {\n id\n }\n }\n }\n\n totalCount\n }\n errorEvents: errorEventsConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n block: { height_eq: $height }\n OR: { block: { hash_eq: $hash } }\n }\n ) {\n edges {\n node {\n errorDocs\n errorModule\n errorName\n errorType\n extrinsic {\n id\n pallet\n call\n }\n timestamp\n block {\n height\n }\n }\n }\n\n totalCount\n }\n wormholeExtrinsics(\n orderBy: timestamp_DESC\n limit: $limit\n where: {\n block: { height_eq: $height }\n OR: { block: { hash_eq: $hash } }\n }\n ) {\n id\n extrinsic {\n id\n pallet\n call\n }\n totalAmount\n outputCount\n timestamp\n block {\n height\n }\n outputs {\n id\n exitAccount {\n id\n }\n amount\n }\n }\n }\n ': + types.GetBlockByIdDocument, + '\n query GetCancelledReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [CancelledReversibleTransferOrderByInput!]\n $where: CancelledReversibleTransferWhereInput\n ) {\n cancelledReversibleTransactions: cancelledReversibleTransfers(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n timestamp\n txId\n block {\n height\n }\n cancelledBy {\n id\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n meta: cancelledReversibleTransfersConnection(\n orderBy: id_ASC\n where: $where\n ) {\n totalCount\n }\n }\n ': + types.GetCancelledReversibleTransactionsDocument, + '\n query GetRecentCancelledReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [CancelledReversibleTransferOrderByInput!]\n ) {\n cancelledReversibleTransactions: cancelledReversibleTransfers(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n ) {\n timestamp\n txId\n block {\n height\n }\n cancelledBy {\n id\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n ': + types.GetRecentCancelledReversibleTransactionsDocument, + '\n query GetCancelledReversibleTransactionsStats(\n $startDate: DateTime!\n $endDate: DateTime!\n ) {\n last24Hour: cancelledReversibleTransfersConnection(\n orderBy: id_ASC\n where: { timestamp_gte: $startDate, timestamp_lte: $endDate }\n ) {\n totalCount\n }\n allTime: cancelledReversibleTransfersConnection(orderBy: id_ASC) {\n totalCount\n }\n }\n ': + types.GetCancelledReversibleTransactionsStatsDocument, + '\n query GetCancelledReversibleTransactionByTxId($txId: String!) {\n cancelledReversibleTransactions: cancelledReversibleTransfers(\n where: { txId_eq: $txId }\n ) {\n timestamp\n txId\n block {\n height\n }\n cancelledBy {\n id\n }\n extrinsic {\n id\n pallet\n call\n }\n scheduledTransfer {\n amount\n scheduledAt\n fee\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n ': + types.GetCancelledReversibleTransactionByTxIdDocument, + '\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 scheduledReversibleTransactions: scheduledReversibleTransfersConnection(\n orderBy: id_ASC\n ) {\n totalCount\n }\n executedReversibleTransactions: executedReversibleTransfersConnection(\n orderBy: id_ASC\n ) {\n totalCount\n }\n cancelledReversibleTransactions: cancelledReversibleTransfersConnection(\n orderBy: id_ASC\n ) {\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 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 GetExecutedReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [ExecutedReversibleTransferOrderByInput!]\n $where: ExecutedReversibleTransferWhereInput\n ) {\n executedReversibleTransactions: executedReversibleTransfers(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n timestamp\n txId\n block {\n height\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n meta: executedReversibleTransfersConnection(\n orderBy: id_ASC\n where: $where\n ) {\n totalCount\n }\n }\n ': + types.GetExecutedReversibleTransactionsDocument, + '\n query GetRecentExecutedReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [ExecutedReversibleTransferOrderByInput!]\n ) {\n executedReversibleTransactions: executedReversibleTransfers(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n ) {\n timestamp\n txId\n block {\n height\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n ': + types.GetRecentExecutedReversibleTransactionsDocument, + '\n query GetExecutedReversibleTransactionsStats(\n $startDate: DateTime!\n $endDate: DateTime!\n ) {\n last24Hour: executedReversibleTransfersConnection(\n orderBy: id_ASC\n where: { timestamp_gte: $startDate, timestamp_lte: $endDate }\n ) {\n totalCount\n }\n allTime: executedReversibleTransfersConnection(orderBy: id_ASC) {\n totalCount\n }\n }\n ': + types.GetExecutedReversibleTransactionsStatsDocument, + '\n query GetExecutedReversibleTransactionByTxId($txId: String!) {\n executedReversibleTransactions: executedReversibleTransfers(\n where: { txId_eq: $txId }\n ) {\n timestamp\n txId\n block {\n height\n }\n scheduledTransfer {\n amount\n scheduledAt\n fee\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n ': + types.GetExecutedReversibleTransactionByTxIdDocument, + '\n query GetHighSecuritySets(\n $limit: Int\n $offset: Int\n $orderBy: [HighSecuritySetOrderByInput!]\n $where: HighSecuritySetWhereInput\n ) {\n highSecuritySets(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n id\n extrinsic {\n id\n pallet\n call\n }\n who {\n id\n }\n interceptor {\n id\n }\n timestamp\n delay\n block {\n height\n }\n }\n meta: highSecuritySetsConnection(orderBy: id_ASC, where: $where) {\n totalCount\n }\n }\n ': 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, @@ -59,14 +112,30 @@ 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 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 GetScheduledReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [ScheduledReversibleTransferOrderByInput!]\n $where: ScheduledReversibleTransferWhereInput\n ) {\n scheduledReversibleTransactions: scheduledReversibleTransfers(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n meta: scheduledReversibleTransfersConnection(\n orderBy: id_ASC\n where: $where\n ) {\n totalCount\n }\n }\n ': + types.GetScheduledReversibleTransactionsDocument, + '\n query GetRecentScheduledReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [ScheduledReversibleTransferOrderByInput!]\n ) {\n scheduledReversibleTransactions: scheduledReversibleTransfers(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n ) {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n ': + types.GetRecentScheduledReversibleTransactionsDocument, + '\n query GetScheduledReversibleTransactionsStats(\n $startDate: DateTime!\n $endDate: DateTime!\n ) {\n last24Hour: scheduledReversibleTransfersConnection(\n orderBy: id_ASC\n where: { timestamp_gte: $startDate, timestamp_lte: $endDate }\n ) {\n totalCount\n }\n allTime: scheduledReversibleTransfersConnection(orderBy: id_ASC) {\n totalCount\n }\n }\n ': + types.GetScheduledReversibleTransactionsStatsDocument, + '\n query GetScheduledReversibleTransactionByTxId($txId: String!) {\n scheduledReversibleTransactions: scheduledReversibleTransfers(\n where: { txId_eq: $txId }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n ': + types.GetScheduledReversibleTransactionByTxIdDocument, + '\n query SearchAll($keyword: String, $keyword_number: Int, $limit: Int) {\n transactions: transfers(\n limit: $limit\n where: { extrinsic: { id_startsWith: $keyword } }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n }\n scheduledReversibleTransactions: scheduledReversibleTransfers(\n limit: $limit\n where: { txId_startsWith: $keyword }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n txId\n }\n executedReversibleTransactions: executedReversibleTransfers(\n limit: $limit\n where: { txId_startsWith: $keyword }\n ) {\n txId\n }\n cancelledReversibleTransactions: cancelledReversibleTransfers(\n limit: $limit\n where: { txId_startsWith: $keyword }\n ) {\n txId\n }\n accounts(limit: $limit, where: { id_startsWith: $keyword }) {\n id\n }\n blocks(\n limit: $limit\n where: {\n hash_startsWith: $keyword\n OR: { height_eq: $keyword_number }\n }\n ) {\n height\n }\n highSecuritySets(\n limit: $limit\n where: { extrinsic: { id_startsWith: $keyword } }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n }\n minerRewards(\n limit: $limit\n where: { block: { hash_startsWith: $keyword } }\n ) {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n errorEvents(\n limit: $limit\n where: {\n errorType_containsInsensitive: $keyword\n OR: { errorName_containsInsensitive: $keyword }\n }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n }\n }\n ': + 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 ': 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 ': - types.GetTransactionByHashDocument + '\n query GetExtrinsicByHash($hash: String!) {\n extrinsics(where: { id_eq: $hash }) {\n id\n pallet\n call\n success\n fee\n timestamp\n indexInBlock\n signer {\n id\n }\n block {\n height\n }\n }\n transfers(\n where: { extrinsic: { id_eq: $hash } }\n orderBy: timestamp_ASC\n ) {\n id\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n }\n }\n ': + types.GetExtrinsicByHashDocument, + '\n query GetWormholeExtrinsics(\n $limit: Int\n $offset: Int\n $orderBy: [WormholeExtrinsicOrderByInput!]!\n $where: WormholeExtrinsicWhereInput\n ) {\n wormholeExtrinsics(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n id\n extrinsic {\n id\n pallet\n call\n }\n totalAmount\n outputCount\n timestamp\n privacyScore\n privacyLabel\n block {\n height\n }\n }\n meta: wormholeExtrinsicsConnection(orderBy: id_ASC) {\n totalCount\n }\n }\n': + types.GetWormholeExtrinsicsDocument, + '\n query GetWormholeExtrinsicById($id: String!) {\n wormholeExtrinsicById(id: $id) {\n id\n extrinsic {\n id\n pallet\n call\n }\n totalAmount\n outputCount\n timestamp\n privacyScore\n privacyScore01Pct\n privacyScore1Pct\n privacyScore5Pct\n privacyLabel\n poolSnapshot\n block {\n id\n height\n hash\n timestamp\n }\n outputs {\n id\n exitAccount {\n id\n }\n amount\n }\n }\n wormholeNullifiers(\n where: { wormholeExtrinsic: { extrinsic: { id_eq: $id } } }\n ) {\n nullifier\n nullifierHash\n }\n }\n': + types.GetWormholeExtrinsicByIdDocument, + '\n query GetDepositPoolStats {\n depositPoolStatsById(id: "global") {\n lastUpdatedBlock\n buckets\n }\n }\n': + types.GetDepositPoolStatsDocument }; /** @@ -87,14 +156,80 @@ export function gql(source: string): unknown; * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ export function gql( - source: '\n query 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 GetAccounts(\n $limit: Int\n $offset: Int\n $orderBy: [AccountOrderByInput!]\n ) {\n accounts(limit: $limit, offset: $offset, orderBy: $orderBy) {\n id\n free\n frozen\n reserved\n }\n meta: accountsConnection(orderBy: id_ASC) {\n totalCount\n }\n }\n ' +): (typeof documents)['\n query GetAccounts(\n $limit: Int\n $offset: Int\n $orderBy: [AccountOrderByInput!]\n ) {\n accounts(limit: $limit, offset: $offset, orderBy: $orderBy) {\n id\n free\n frozen\n reserved\n }\n meta: accountsConnection(orderBy: id_ASC) {\n totalCount\n }\n }\n ']; /** * 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 GetAccountById($id: String!, $limit: Int!) {\n account: accountById(id: $id) {\n id\n free\n frozen\n reserved\n }\n transactions: transfersConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n extrinsic_isNull: false\n AND: { from: { id_eq: $id }, OR: { to: { id_eq: $id } } }\n }\n ) {\n edges {\n node {\n fee\n extrinsic {\n id\n pallet\n call\n }\n block {\n height\n }\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n }\n }\n\n totalCount\n }\n scheduledReversibleTransactions: scheduledReversibleTransfersConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: { from: { id_eq: $id }, OR: { to: { id_eq: $id } } }\n ) {\n edges {\n node {\n extrinsic {\n id\n pallet\n call\n }\n timestamp\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n totalCount\n }\n executedReversibleTransactions: executedReversibleTransfersConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n scheduledTransfer: {\n from: { id_eq: $id }\n OR: { to: { id_eq: $id } }\n }\n }\n ) {\n edges {\n node {\n timestamp\n txId\n block {\n height\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n totalCount\n }\n cancelledReversibleTransactions: cancelledReversibleTransfersConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n scheduledTransfer: {\n from: { id_eq: $id }\n OR: { to: { id_eq: $id } }\n }\n OR: { cancelledBy: { id_eq: $id } }\n }\n ) {\n edges {\n node {\n timestamp\n txId\n block {\n height\n }\n cancelledBy {\n id\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n totalCount\n }\n minerRewards: minerRewardsConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: { miner: { id_eq: $id } }\n ) {\n edges {\n node {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n }\n\n totalCount\n }\n guardian: highSecuritySetsConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: { who: { id_eq: $id } }\n ) {\n edges {\n node {\n timestamp\n block {\n height\n }\n interceptor {\n id\n free\n frozen\n reserved\n }\n }\n }\n\n totalCount\n }\n beneficiaries: highSecuritySetsConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: { interceptor: { id_eq: $id } }\n ) {\n edges {\n node {\n timestamp\n block {\n height\n }\n who {\n id\n free\n frozen\n reserved\n }\n }\n }\n\n totalCount\n }\n wormholeOutputs: wormholeOutputs(\n orderBy: wormholeExtrinsic_timestamp_DESC\n limit: $limit\n where: { exitAccount: { id_eq: $id } }\n ) {\n id\n amount\n exitAccount {\n id\n }\n wormholeExtrinsic {\n id\n extrinsic {\n id\n pallet\n call\n }\n totalAmount\n outputCount\n timestamp\n block {\n height\n }\n outputs {\n id\n exitAccount {\n id\n }\n amount\n }\n }\n }\n }\n ' +): (typeof documents)['\n query GetAccountById($id: String!, $limit: Int!) {\n account: accountById(id: $id) {\n id\n free\n frozen\n reserved\n }\n transactions: transfersConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n extrinsic_isNull: false\n AND: { from: { id_eq: $id }, OR: { to: { id_eq: $id } } }\n }\n ) {\n edges {\n node {\n fee\n extrinsic {\n id\n pallet\n call\n }\n block {\n height\n }\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n }\n }\n\n totalCount\n }\n scheduledReversibleTransactions: scheduledReversibleTransfersConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: { from: { id_eq: $id }, OR: { to: { id_eq: $id } } }\n ) {\n edges {\n node {\n extrinsic {\n id\n pallet\n call\n }\n timestamp\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n totalCount\n }\n executedReversibleTransactions: executedReversibleTransfersConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n scheduledTransfer: {\n from: { id_eq: $id }\n OR: { to: { id_eq: $id } }\n }\n }\n ) {\n edges {\n node {\n timestamp\n txId\n block {\n height\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n totalCount\n }\n cancelledReversibleTransactions: cancelledReversibleTransfersConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n scheduledTransfer: {\n from: { id_eq: $id }\n OR: { to: { id_eq: $id } }\n }\n OR: { cancelledBy: { id_eq: $id } }\n }\n ) {\n edges {\n node {\n timestamp\n txId\n block {\n height\n }\n cancelledBy {\n id\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n totalCount\n }\n minerRewards: minerRewardsConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: { miner: { id_eq: $id } }\n ) {\n edges {\n node {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n }\n\n totalCount\n }\n guardian: highSecuritySetsConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: { who: { id_eq: $id } }\n ) {\n edges {\n node {\n timestamp\n block {\n height\n }\n interceptor {\n id\n free\n frozen\n reserved\n }\n }\n }\n\n totalCount\n }\n beneficiaries: highSecuritySetsConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: { interceptor: { id_eq: $id } }\n ) {\n edges {\n node {\n timestamp\n block {\n height\n }\n who {\n id\n free\n frozen\n reserved\n }\n }\n }\n\n totalCount\n }\n wormholeOutputs: wormholeOutputs(\n orderBy: wormholeExtrinsic_timestamp_DESC\n limit: $limit\n where: { exitAccount: { id_eq: $id } }\n ) {\n id\n amount\n exitAccount {\n id\n }\n wormholeExtrinsic {\n id\n extrinsic {\n id\n pallet\n call\n }\n totalAmount\n outputCount\n timestamp\n block {\n height\n }\n outputs {\n id\n exitAccount {\n id\n }\n amount\n }\n }\n }\n }\n ']; +/** + * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. + */ +export function gql( + source: '\n query GetAccountsStats($startDate: DateTime!, $endDate: DateTime!) {\n all: accountsConnection(orderBy: id_ASC) {\n totalCount\n }\n recentlyActive: accountsConnection(\n orderBy: id_ASC\n where: {\n transfersFrom_some: {\n timestamp_gte: $startDate\n timestamp_lte: $endDate\n }\n }\n ) {\n totalCount\n }\n recentlyDeposited: accountsConnection(\n orderBy: id_ASC\n where: {\n transfersTo_some: {\n timestamp_gte: $startDate\n timestamp_lte: $endDate\n }\n }\n ) {\n totalCount\n }\n }\n ' +): (typeof documents)['\n query GetAccountsStats($startDate: DateTime!, $endDate: DateTime!) {\n all: accountsConnection(orderBy: id_ASC) {\n totalCount\n }\n recentlyActive: accountsConnection(\n orderBy: id_ASC\n where: {\n transfersFrom_some: {\n timestamp_gte: $startDate\n timestamp_lte: $endDate\n }\n }\n ) {\n totalCount\n }\n recentlyDeposited: accountsConnection(\n orderBy: id_ASC\n where: {\n transfersTo_some: {\n timestamp_gte: $startDate\n timestamp_lte: $endDate\n }\n }\n ) {\n totalCount\n }\n }\n ']; +/** + * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. + */ +export function gql( + source: '\n query GetBlocks(\n $limit: Int\n $offset: Int\n $orderBy: [BlockOrderByInput!]!\n $where: BlockWhereInput\n ) {\n blocks(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n id\n hash\n height\n reward\n timestamp\n extrinsics {\n id\n }\n }\n meta: blocksConnection(orderBy: id_ASC) {\n totalCount\n }\n }\n ' +): (typeof documents)['\n query GetBlocks(\n $limit: Int\n $offset: Int\n $orderBy: [BlockOrderByInput!]!\n $where: BlockWhereInput\n ) {\n blocks(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n id\n hash\n height\n reward\n timestamp\n extrinsics {\n id\n }\n }\n meta: blocksConnection(orderBy: id_ASC) {\n totalCount\n }\n }\n ']; +/** + * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. + */ +export function gql( + source: '\n query GetRecentBlocks(\n $limit: Int\n $offset: Int\n $orderBy: [BlockOrderByInput!]\n ) {\n blocks(limit: $limit, offset: $offset, orderBy: $orderBy) {\n id\n hash\n height\n reward\n timestamp\n extrinsics {\n id\n }\n }\n }\n ' +): (typeof documents)['\n query GetRecentBlocks(\n $limit: Int\n $offset: Int\n $orderBy: [BlockOrderByInput!]\n ) {\n blocks(limit: $limit, offset: $offset, orderBy: $orderBy) {\n id\n hash\n height\n reward\n timestamp\n extrinsics {\n id\n }\n }\n }\n ']; +/** + * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. + */ +export function gql( + source: '\n query GetBlockById($height: Int!, $hash: String!, $limit: Int!) {\n blocks(where: { height_eq: $height, OR: { hash_eq: $hash } }) {\n id\n hash\n height\n reward\n timestamp\n extrinsics(orderBy: indexInBlock_ASC) {\n id\n pallet\n call\n success\n fee\n timestamp\n indexInBlock\n signer {\n id\n }\n }\n }\n minerRewards(\n where: {\n block: { height_eq: $height }\n OR: { block: { hash_eq: $hash } }\n }\n ) {\n reward\n timestamp\n miner {\n id\n }\n block {\n height\n hash\n }\n }\n transactions: transfersConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n extrinsic_isNull: false\n AND: {\n block: { height_eq: $height }\n OR: { block: { hash_eq: $hash } }\n }\n }\n ) {\n edges {\n node {\n fee\n extrinsic {\n id\n pallet\n call\n }\n block {\n height\n }\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n }\n }\n\n totalCount\n }\n scheduledReversibleTransactions: scheduledReversibleTransfersConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n block: { height_eq: $height }\n OR: { block: { hash_eq: $hash } }\n }\n ) {\n edges {\n node {\n extrinsic {\n id\n pallet\n call\n }\n timestamp\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n totalCount\n }\n executedReversibleTransactions: executedReversibleTransfersConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n block: { height_eq: $height }\n OR: { block: { hash_eq: $hash } }\n }\n ) {\n edges {\n node {\n timestamp\n txId\n block {\n height\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n totalCount\n }\n cancelledReversibleTransactions: cancelledReversibleTransfersConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n block: { height_eq: $height }\n OR: { block: { hash_eq: $hash } }\n }\n ) {\n edges {\n node {\n timestamp\n txId\n block {\n height\n }\n cancelledBy {\n id\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n totalCount\n }\n highSecuritySets: highSecuritySetsConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n block: { height_eq: $height }\n OR: { block: { hash_eq: $hash } }\n }\n ) {\n edges {\n node {\n extrinsic {\n id\n pallet\n call\n }\n timestamp\n delay\n block {\n height\n }\n who {\n id\n }\n interceptor {\n id\n }\n }\n }\n\n totalCount\n }\n errorEvents: errorEventsConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n block: { height_eq: $height }\n OR: { block: { hash_eq: $hash } }\n }\n ) {\n edges {\n node {\n errorDocs\n errorModule\n errorName\n errorType\n extrinsic {\n id\n pallet\n call\n }\n timestamp\n block {\n height\n }\n }\n }\n\n totalCount\n }\n wormholeExtrinsics(\n orderBy: timestamp_DESC\n limit: $limit\n where: {\n block: { height_eq: $height }\n OR: { block: { hash_eq: $hash } }\n }\n ) {\n id\n extrinsic {\n id\n pallet\n call\n }\n totalAmount\n outputCount\n timestamp\n block {\n height\n }\n outputs {\n id\n exitAccount {\n id\n }\n amount\n }\n }\n }\n ' +): (typeof documents)['\n query GetBlockById($height: Int!, $hash: String!, $limit: Int!) {\n blocks(where: { height_eq: $height, OR: { hash_eq: $hash } }) {\n id\n hash\n height\n reward\n timestamp\n extrinsics(orderBy: indexInBlock_ASC) {\n id\n pallet\n call\n success\n fee\n timestamp\n indexInBlock\n signer {\n id\n }\n }\n }\n minerRewards(\n where: {\n block: { height_eq: $height }\n OR: { block: { hash_eq: $hash } }\n }\n ) {\n reward\n timestamp\n miner {\n id\n }\n block {\n height\n hash\n }\n }\n transactions: transfersConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n extrinsic_isNull: false\n AND: {\n block: { height_eq: $height }\n OR: { block: { hash_eq: $hash } }\n }\n }\n ) {\n edges {\n node {\n fee\n extrinsic {\n id\n pallet\n call\n }\n block {\n height\n }\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n }\n }\n\n totalCount\n }\n scheduledReversibleTransactions: scheduledReversibleTransfersConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n block: { height_eq: $height }\n OR: { block: { hash_eq: $hash } }\n }\n ) {\n edges {\n node {\n extrinsic {\n id\n pallet\n call\n }\n timestamp\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n totalCount\n }\n executedReversibleTransactions: executedReversibleTransfersConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n block: { height_eq: $height }\n OR: { block: { hash_eq: $hash } }\n }\n ) {\n edges {\n node {\n timestamp\n txId\n block {\n height\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n totalCount\n }\n cancelledReversibleTransactions: cancelledReversibleTransfersConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n block: { height_eq: $height }\n OR: { block: { hash_eq: $hash } }\n }\n ) {\n edges {\n node {\n timestamp\n txId\n block {\n height\n }\n cancelledBy {\n id\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n totalCount\n }\n highSecuritySets: highSecuritySetsConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n block: { height_eq: $height }\n OR: { block: { hash_eq: $hash } }\n }\n ) {\n edges {\n node {\n extrinsic {\n id\n pallet\n call\n }\n timestamp\n delay\n block {\n height\n }\n who {\n id\n }\n interceptor {\n id\n }\n }\n }\n\n totalCount\n }\n errorEvents: errorEventsConnection(\n orderBy: timestamp_DESC\n first: $limit\n where: {\n block: { height_eq: $height }\n OR: { block: { hash_eq: $hash } }\n }\n ) {\n edges {\n node {\n errorDocs\n errorModule\n errorName\n errorType\n extrinsic {\n id\n pallet\n call\n }\n timestamp\n block {\n height\n }\n }\n }\n\n totalCount\n }\n wormholeExtrinsics(\n orderBy: timestamp_DESC\n limit: $limit\n where: {\n block: { height_eq: $height }\n OR: { block: { hash_eq: $hash } }\n }\n ) {\n id\n extrinsic {\n id\n pallet\n call\n }\n totalAmount\n outputCount\n timestamp\n block {\n height\n }\n outputs {\n id\n exitAccount {\n id\n }\n amount\n }\n }\n }\n ']; +/** + * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. + */ +export function gql( + source: '\n query GetCancelledReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [CancelledReversibleTransferOrderByInput!]\n $where: CancelledReversibleTransferWhereInput\n ) {\n cancelledReversibleTransactions: cancelledReversibleTransfers(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n timestamp\n txId\n block {\n height\n }\n cancelledBy {\n id\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n meta: cancelledReversibleTransfersConnection(\n orderBy: id_ASC\n where: $where\n ) {\n totalCount\n }\n }\n ' +): (typeof documents)['\n query GetCancelledReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [CancelledReversibleTransferOrderByInput!]\n $where: CancelledReversibleTransferWhereInput\n ) {\n cancelledReversibleTransactions: cancelledReversibleTransfers(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n timestamp\n txId\n block {\n height\n }\n cancelledBy {\n id\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n meta: cancelledReversibleTransfersConnection(\n orderBy: id_ASC\n where: $where\n ) {\n totalCount\n }\n }\n ']; +/** + * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. + */ +export function gql( + source: '\n query GetRecentCancelledReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [CancelledReversibleTransferOrderByInput!]\n ) {\n cancelledReversibleTransactions: cancelledReversibleTransfers(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n ) {\n timestamp\n txId\n block {\n height\n }\n cancelledBy {\n id\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n ' +): (typeof documents)['\n query GetRecentCancelledReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [CancelledReversibleTransferOrderByInput!]\n ) {\n cancelledReversibleTransactions: cancelledReversibleTransfers(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n ) {\n timestamp\n txId\n block {\n height\n }\n cancelledBy {\n id\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n ']; +/** + * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. + */ +export function gql( + source: '\n query GetCancelledReversibleTransactionsStats(\n $startDate: DateTime!\n $endDate: DateTime!\n ) {\n last24Hour: cancelledReversibleTransfersConnection(\n orderBy: id_ASC\n where: { timestamp_gte: $startDate, timestamp_lte: $endDate }\n ) {\n totalCount\n }\n allTime: cancelledReversibleTransfersConnection(orderBy: id_ASC) {\n totalCount\n }\n }\n ' +): (typeof documents)['\n query GetCancelledReversibleTransactionsStats(\n $startDate: DateTime!\n $endDate: DateTime!\n ) {\n last24Hour: cancelledReversibleTransfersConnection(\n orderBy: id_ASC\n where: { timestamp_gte: $startDate, timestamp_lte: $endDate }\n ) {\n totalCount\n }\n allTime: cancelledReversibleTransfersConnection(orderBy: id_ASC) {\n totalCount\n }\n }\n ']; +/** + * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. + */ +export function gql( + source: '\n query GetCancelledReversibleTransactionByTxId($txId: String!) {\n cancelledReversibleTransactions: cancelledReversibleTransfers(\n where: { txId_eq: $txId }\n ) {\n timestamp\n txId\n block {\n height\n }\n cancelledBy {\n id\n }\n extrinsic {\n id\n pallet\n call\n }\n scheduledTransfer {\n amount\n scheduledAt\n fee\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n ' +): (typeof documents)['\n query GetCancelledReversibleTransactionByTxId($txId: String!) {\n cancelledReversibleTransactions: cancelledReversibleTransfers(\n where: { txId_eq: $txId }\n ) {\n timestamp\n txId\n block {\n height\n }\n cancelledBy {\n id\n }\n extrinsic {\n id\n pallet\n call\n }\n scheduledTransfer {\n amount\n scheduledAt\n fee\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n ']; +/** + * 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: { extrinsic_isNull: false }\n ) {\n totalCount\n }\n scheduledReversibleTransactions: scheduledReversibleTransfersConnection(\n orderBy: id_ASC\n ) {\n totalCount\n }\n executedReversibleTransactions: executedReversibleTransfersConnection(\n orderBy: id_ASC\n ) {\n totalCount\n }\n cancelledReversibleTransactions: cancelledReversibleTransfersConnection(\n orderBy: id_ASC\n ) {\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 scheduledReversibleTransactions: scheduledReversibleTransfersConnection(\n orderBy: id_ASC\n ) {\n totalCount\n }\n executedReversibleTransactions: executedReversibleTransfersConnection(\n orderBy: id_ASC\n ) {\n totalCount\n }\n cancelledReversibleTransactions: cancelledReversibleTransfersConnection(\n orderBy: id_ASC\n ) {\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 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 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. */ @@ -105,20 +240,44 @@ 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 GetExecutedReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [ExecutedReversibleTransferOrderByInput!]\n $where: ExecutedReversibleTransferWhereInput\n ) {\n executedReversibleTransactions: executedReversibleTransfers(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n timestamp\n txId\n block {\n height\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n meta: executedReversibleTransfersConnection(\n orderBy: id_ASC\n where: $where\n ) {\n totalCount\n }\n }\n ' +): (typeof documents)['\n query GetExecutedReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [ExecutedReversibleTransferOrderByInput!]\n $where: ExecutedReversibleTransferWhereInput\n ) {\n executedReversibleTransactions: executedReversibleTransfers(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n timestamp\n txId\n block {\n height\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n meta: executedReversibleTransfersConnection(\n orderBy: id_ASC\n where: $where\n ) {\n totalCount\n }\n }\n ']; +/** + * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. + */ +export function gql( + source: '\n query GetRecentExecutedReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [ExecutedReversibleTransferOrderByInput!]\n ) {\n executedReversibleTransactions: executedReversibleTransfers(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n ) {\n timestamp\n txId\n block {\n height\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n ' +): (typeof documents)['\n query GetRecentExecutedReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [ExecutedReversibleTransferOrderByInput!]\n ) {\n executedReversibleTransactions: executedReversibleTransfers(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n ) {\n timestamp\n txId\n block {\n height\n }\n scheduledTransfer {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n ']; /** * 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 GetExecutedReversibleTransactionsStats(\n $startDate: DateTime!\n $endDate: DateTime!\n ) {\n last24Hour: executedReversibleTransfersConnection(\n orderBy: id_ASC\n where: { timestamp_gte: $startDate, timestamp_lte: $endDate }\n ) {\n totalCount\n }\n allTime: executedReversibleTransfersConnection(orderBy: id_ASC) {\n totalCount\n }\n }\n ' +): (typeof documents)['\n query GetExecutedReversibleTransactionsStats(\n $startDate: DateTime!\n $endDate: DateTime!\n ) {\n last24Hour: executedReversibleTransfersConnection(\n orderBy: id_ASC\n where: { timestamp_gte: $startDate, timestamp_lte: $endDate }\n ) {\n totalCount\n }\n allTime: executedReversibleTransfersConnection(orderBy: id_ASC) {\n totalCount\n }\n }\n ']; /** * 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 GetExecutedReversibleTransactionByTxId($txId: String!) {\n executedReversibleTransactions: executedReversibleTransfers(\n where: { txId_eq: $txId }\n ) {\n timestamp\n txId\n block {\n height\n }\n scheduledTransfer {\n amount\n scheduledAt\n fee\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n ' +): (typeof documents)['\n query GetExecutedReversibleTransactionByTxId($txId: String!) {\n executedReversibleTransactions: executedReversibleTransfers(\n where: { txId_eq: $txId }\n ) {\n timestamp\n txId\n block {\n height\n }\n scheduledTransfer {\n amount\n scheduledAt\n fee\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n ']; +/** + * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. + */ +export function gql( + source: '\n query GetHighSecuritySets(\n $limit: Int\n $offset: Int\n $orderBy: [HighSecuritySetOrderByInput!]\n $where: HighSecuritySetWhereInput\n ) {\n highSecuritySets(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n id\n extrinsic {\n id\n pallet\n call\n }\n who {\n id\n }\n interceptor {\n id\n }\n timestamp\n delay\n block {\n height\n }\n }\n meta: highSecuritySetsConnection(orderBy: id_ASC, where: $where) {\n totalCount\n }\n }\n ' +): (typeof documents)['\n query GetHighSecuritySets(\n $limit: Int\n $offset: Int\n $orderBy: [HighSecuritySetOrderByInput!]\n $where: HighSecuritySetWhereInput\n ) {\n highSecuritySets(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n id\n extrinsic {\n id\n pallet\n call\n }\n who {\n id\n }\n interceptor {\n id\n }\n timestamp\n delay\n block {\n height\n }\n }\n meta: highSecuritySetsConnection(orderBy: id_ASC, where: $where) {\n totalCount\n }\n }\n ']; +/** + * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. + */ +export function gql( + source: '\n query GetRecentHighSecuritySets(\n $limit: Int\n $offset: Int\n $orderBy: [HighSecuritySetOrderByInput!]\n $where: HighSecuritySetWhereInput\n ) {\n highSecuritySets(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n id\n extrinsic {\n id\n pallet\n call\n }\n who {\n id\n }\n interceptor {\n id\n }\n timestamp\n delay\n block {\n height\n }\n }\n }\n ' +): (typeof documents)['\n query GetRecentHighSecuritySets(\n $limit: Int\n $offset: Int\n $orderBy: [HighSecuritySetOrderByInput!]\n $where: HighSecuritySetWhereInput\n ) {\n highSecuritySets(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n id\n extrinsic {\n id\n pallet\n call\n }\n who {\n id\n }\n interceptor {\n id\n }\n timestamp\n delay\n block {\n height\n }\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ @@ -129,8 +288,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. */ @@ -165,26 +324,74 @@ 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 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 GetScheduledReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [ScheduledReversibleTransferOrderByInput!]\n $where: ScheduledReversibleTransferWhereInput\n ) {\n scheduledReversibleTransactions: scheduledReversibleTransfers(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n meta: scheduledReversibleTransfersConnection(\n orderBy: id_ASC\n where: $where\n ) {\n totalCount\n }\n }\n ' +): (typeof documents)['\n query GetScheduledReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [ScheduledReversibleTransferOrderByInput!]\n $where: ScheduledReversibleTransferWhereInput\n ) {\n scheduledReversibleTransactions: scheduledReversibleTransfers(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n meta: scheduledReversibleTransfersConnection(\n orderBy: id_ASC\n where: $where\n ) {\n totalCount\n }\n }\n ']; +/** + * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. + */ +export function gql( + source: '\n query GetRecentScheduledReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [ScheduledReversibleTransferOrderByInput!]\n ) {\n scheduledReversibleTransactions: scheduledReversibleTransfers(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n ) {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n ' +): (typeof documents)['\n query GetRecentScheduledReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [ScheduledReversibleTransferOrderByInput!]\n ) {\n scheduledReversibleTransactions: scheduledReversibleTransfers(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n ) {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n ']; +/** + * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. + */ +export function gql( + source: '\n query GetScheduledReversibleTransactionsStats(\n $startDate: DateTime!\n $endDate: DateTime!\n ) {\n last24Hour: scheduledReversibleTransfersConnection(\n orderBy: id_ASC\n where: { timestamp_gte: $startDate, timestamp_lte: $endDate }\n ) {\n totalCount\n }\n allTime: scheduledReversibleTransfersConnection(orderBy: id_ASC) {\n totalCount\n }\n }\n ' +): (typeof documents)['\n query GetScheduledReversibleTransactionsStats(\n $startDate: DateTime!\n $endDate: DateTime!\n ) {\n last24Hour: scheduledReversibleTransfersConnection(\n orderBy: id_ASC\n where: { timestamp_gte: $startDate, timestamp_lte: $endDate }\n ) {\n totalCount\n }\n allTime: scheduledReversibleTransfersConnection(orderBy: id_ASC) {\n totalCount\n }\n }\n ']; +/** + * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. + */ +export function gql( + source: '\n query GetScheduledReversibleTransactionByTxId($txId: String!) {\n scheduledReversibleTransactions: scheduledReversibleTransfers(\n where: { txId_eq: $txId }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n ' +): (typeof documents)['\n query GetScheduledReversibleTransactionByTxId($txId: String!) {\n scheduledReversibleTransactions: scheduledReversibleTransfers(\n where: { txId_eq: $txId }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduledAt\n txId\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n ']; +/** + * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. + */ +export function gql( + source: '\n query SearchAll($keyword: String, $keyword_number: Int, $limit: Int) {\n transactions: transfers(\n limit: $limit\n where: { extrinsic: { id_startsWith: $keyword } }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n }\n scheduledReversibleTransactions: scheduledReversibleTransfers(\n limit: $limit\n where: { txId_startsWith: $keyword }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n txId\n }\n executedReversibleTransactions: executedReversibleTransfers(\n limit: $limit\n where: { txId_startsWith: $keyword }\n ) {\n txId\n }\n cancelledReversibleTransactions: cancelledReversibleTransfers(\n limit: $limit\n where: { txId_startsWith: $keyword }\n ) {\n txId\n }\n accounts(limit: $limit, where: { id_startsWith: $keyword }) {\n id\n }\n blocks(\n limit: $limit\n where: {\n hash_startsWith: $keyword\n OR: { height_eq: $keyword_number }\n }\n ) {\n height\n }\n highSecuritySets(\n limit: $limit\n where: { extrinsic: { id_startsWith: $keyword } }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n }\n minerRewards(\n limit: $limit\n where: { block: { hash_startsWith: $keyword } }\n ) {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n errorEvents(\n limit: $limit\n where: {\n errorType_containsInsensitive: $keyword\n OR: { errorName_containsInsensitive: $keyword }\n }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n }\n }\n ' +): (typeof documents)['\n query SearchAll($keyword: String, $keyword_number: Int, $limit: Int) {\n transactions: transfers(\n limit: $limit\n where: { extrinsic: { id_startsWith: $keyword } }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n }\n scheduledReversibleTransactions: scheduledReversibleTransfers(\n limit: $limit\n where: { txId_startsWith: $keyword }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n txId\n }\n executedReversibleTransactions: executedReversibleTransfers(\n limit: $limit\n where: { txId_startsWith: $keyword }\n ) {\n txId\n }\n cancelledReversibleTransactions: cancelledReversibleTransfers(\n limit: $limit\n where: { txId_startsWith: $keyword }\n ) {\n txId\n }\n accounts(limit: $limit, where: { id_startsWith: $keyword }) {\n id\n }\n blocks(\n limit: $limit\n where: {\n hash_startsWith: $keyword\n OR: { height_eq: $keyword_number }\n }\n ) {\n height\n }\n highSecuritySets(\n limit: $limit\n where: { extrinsic: { id_startsWith: $keyword } }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n }\n minerRewards(\n limit: $limit\n where: { block: { hash_startsWith: $keyword } }\n ) {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n errorEvents(\n limit: $limit\n where: {\n errorType_containsInsensitive: $keyword\n OR: { errorName_containsInsensitive: $keyword }\n }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n }\n }\n ']; +/** + * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. + */ +export function gql( + source: '\n query GetTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [TransferOrderByInput!]\n $where: TransferWhereInput\n ) {\n transactions: transfers(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n fee\n extrinsic {\n id\n pallet\n call\n }\n block {\n height\n }\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n }\n meta: transfersConnection(orderBy: id_ASC, where: $where) {\n totalCount\n }\n }\n ' +): (typeof documents)['\n query GetTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [TransferOrderByInput!]\n $where: TransferWhereInput\n ) {\n transactions: transfers(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n fee\n extrinsic {\n id\n pallet\n call\n }\n block {\n height\n }\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n }\n meta: transfersConnection(orderBy: id_ASC, where: $where) {\n totalCount\n }\n }\n ']; +/** + * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. + */ +export function gql( + source: '\n query GetRecentTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [TransferOrderByInput!]\n $where: TransferWhereInput\n ) {\n transactions: transfers(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n fee\n extrinsic {\n id\n pallet\n call\n }\n block {\n height\n }\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n }\n }\n ' +): (typeof documents)['\n query GetRecentTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [TransferOrderByInput!]\n $where: TransferWhereInput\n ) {\n transactions: transfers(\n limit: $limit\n offset: $offset\n orderBy: $orderBy\n where: $where\n ) {\n fee\n extrinsic {\n id\n pallet\n call\n }\n block {\n height\n }\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n }\n }\n ']; +/** + * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. + */ +export function gql( + source: '\n query GetTransactionsStats($startDate: DateTime!, $endDate: DateTime!) {\n last24Hour: transfersConnection(\n orderBy: id_ASC\n where: {\n timestamp_gte: $startDate\n timestamp_lte: $endDate\n extrinsic_isNull: false\n }\n ) {\n totalCount\n }\n allTime: transfersConnection(\n orderBy: id_ASC\n where: { extrinsic_isNull: false }\n ) {\n totalCount\n }\n allTime: transfersConnection(\n orderBy: id_ASC\n where: { extrinsic_isNull: false }\n ) {\n totalCount\n }\n }\n ' +): (typeof documents)['\n query GetTransactionsStats($startDate: DateTime!, $endDate: DateTime!) {\n last24Hour: transfersConnection(\n orderBy: id_ASC\n where: {\n timestamp_gte: $startDate\n timestamp_lte: $endDate\n extrinsic_isNull: false\n }\n ) {\n totalCount\n }\n allTime: transfersConnection(\n orderBy: id_ASC\n where: { extrinsic_isNull: false }\n ) {\n totalCount\n }\n allTime: transfersConnection(\n orderBy: id_ASC\n where: { extrinsic_isNull: false }\n ) {\n totalCount\n }\n }\n ']; +/** + * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. + */ +export function gql( + source: '\n query GetExtrinsicByHash($hash: String!) {\n extrinsics(where: { id_eq: $hash }) {\n id\n pallet\n call\n success\n fee\n timestamp\n indexInBlock\n signer {\n id\n }\n block {\n height\n }\n }\n transfers(\n where: { extrinsic: { id_eq: $hash } }\n orderBy: timestamp_ASC\n ) {\n id\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n }\n }\n ' +): (typeof documents)['\n query GetExtrinsicByHash($hash: String!) {\n extrinsics(where: { id_eq: $hash }) {\n id\n pallet\n call\n success\n fee\n timestamp\n indexInBlock\n signer {\n id\n }\n block {\n height\n }\n }\n transfers(\n where: { extrinsic: { id_eq: $hash } }\n orderBy: timestamp_ASC\n ) {\n id\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n }\n }\n ']; /** * 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 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 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 GetWormholeExtrinsicById($id: String!) {\n wormholeExtrinsicById(id: $id) {\n id\n extrinsic {\n id\n pallet\n call\n }\n totalAmount\n outputCount\n timestamp\n privacyScore\n privacyScore01Pct\n privacyScore1Pct\n privacyScore5Pct\n privacyLabel\n poolSnapshot\n block {\n id\n height\n hash\n timestamp\n }\n outputs {\n id\n exitAccount {\n id\n }\n amount\n }\n }\n wormholeNullifiers(\n where: { wormholeExtrinsic: { extrinsic: { id_eq: $id } } }\n ) {\n nullifier\n nullifierHash\n }\n }\n' +): (typeof documents)['\n query GetWormholeExtrinsicById($id: String!) {\n wormholeExtrinsicById(id: $id) {\n id\n extrinsic {\n id\n pallet\n call\n }\n totalAmount\n outputCount\n timestamp\n privacyScore\n privacyScore01Pct\n privacyScore1Pct\n privacyScore5Pct\n privacyLabel\n poolSnapshot\n block {\n id\n height\n hash\n timestamp\n }\n outputs {\n id\n exitAccount {\n id\n }\n amount\n }\n }\n wormholeNullifiers(\n where: { wormholeExtrinsic: { extrinsic: { id_eq: $id } } }\n ) {\n nullifier\n nullifierHash\n }\n }\n']; /** * 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 GetDepositPoolStats {\n depositPoolStatsById(id: "global") {\n lastUpdatedBlock\n buckets\n }\n }\n' +): (typeof documents)['\n query GetDepositPoolStats {\n depositPoolStatsById(id: "global") {\n lastUpdatedBlock\n buckets\n }\n }\n']; export function gql(source: string) { return (documents as any)[source] ?? {}; diff --git a/src/__generated__/graphql.ts b/src/__generated__/graphql.ts index 8a9ae7e..1fb1b6b 100644 --- a/src/__generated__/graphql.ts +++ b/src/__generated__/graphql.ts @@ -36,11 +36,17 @@ export type Scalars = { export type Account = { __typename?: 'Account'; accountEvents: Array; + /** Extrinsics signed by this account */ + extrinsics: Array; free: Scalars['BigInt']['output']; frozen: Scalars['BigInt']['output']; /** Account address */ id: Scalars['String']['output']; + /** Whether this account has only received transfers (never sent). Used for deposit pool tracking. */ + isDepositOnly: Scalars['Boolean']['output']; lastUpdated: Scalars['Int']['output']; + /** Individual privacy deposit amounts (JSON array of planck strings). Cleared when account sends. */ + privacyDeposits: Scalars['String']['output']; reserved: Scalars['BigInt']['output']; transfersFrom: Array; transfersTo: Array; @@ -53,6 +59,13 @@ export type AccountAccountEventsArgs = { where?: InputMaybe; }; +export type AccountExtrinsicsArgs = { + limit?: InputMaybe; + offset?: InputMaybe; + orderBy?: InputMaybe>; + where?: InputMaybe; +}; + export type AccountTransfersFromArgs = { limit?: InputMaybe; offset?: InputMaybe; @@ -112,12 +125,24 @@ export enum AccountEventOrderByInput { AccountIdDesc = 'account_id_DESC', AccountIdDescNullsFirst = 'account_id_DESC_NULLS_FIRST', AccountIdDescNullsLast = 'account_id_DESC_NULLS_LAST', + AccountIsDepositOnlyAsc = 'account_isDepositOnly_ASC', + AccountIsDepositOnlyAscNullsFirst = 'account_isDepositOnly_ASC_NULLS_FIRST', + AccountIsDepositOnlyAscNullsLast = 'account_isDepositOnly_ASC_NULLS_LAST', + AccountIsDepositOnlyDesc = 'account_isDepositOnly_DESC', + AccountIsDepositOnlyDescNullsFirst = 'account_isDepositOnly_DESC_NULLS_FIRST', + AccountIsDepositOnlyDescNullsLast = 'account_isDepositOnly_DESC_NULLS_LAST', AccountLastUpdatedAsc = 'account_lastUpdated_ASC', AccountLastUpdatedAscNullsFirst = 'account_lastUpdated_ASC_NULLS_FIRST', AccountLastUpdatedAscNullsLast = 'account_lastUpdated_ASC_NULLS_LAST', AccountLastUpdatedDesc = 'account_lastUpdated_DESC', AccountLastUpdatedDescNullsFirst = 'account_lastUpdated_DESC_NULLS_FIRST', AccountLastUpdatedDescNullsLast = 'account_lastUpdated_DESC_NULLS_LAST', + AccountPrivacyDepositsAsc = 'account_privacyDeposits_ASC', + AccountPrivacyDepositsAscNullsFirst = 'account_privacyDeposits_ASC_NULLS_FIRST', + AccountPrivacyDepositsAscNullsLast = 'account_privacyDeposits_ASC_NULLS_LAST', + AccountPrivacyDepositsDesc = 'account_privacyDeposits_DESC', + AccountPrivacyDepositsDescNullsFirst = 'account_privacyDeposits_DESC_NULLS_FIRST', + AccountPrivacyDepositsDescNullsLast = 'account_privacyDeposits_DESC_NULLS_LAST', AccountReservedAsc = 'account_reserved_ASC', AccountReservedAscNullsFirst = 'account_reserved_ASC_NULLS_FIRST', AccountReservedAscNullsLast = 'account_reserved_ASC_NULLS_LAST', @@ -148,12 +173,6 @@ export enum AccountEventOrderByInput { BalanceEventTypeDesc = 'balanceEvent_type_DESC', BalanceEventTypeDescNullsFirst = 'balanceEvent_type_DESC_NULLS_FIRST', BalanceEventTypeDescNullsLast = 'balanceEvent_type_DESC_NULLS_LAST', - CancelledReversibleTransferExtrinsicHashAsc = 'cancelledReversibleTransfer_extrinsicHash_ASC', - CancelledReversibleTransferExtrinsicHashAscNullsFirst = 'cancelledReversibleTransfer_extrinsicHash_ASC_NULLS_FIRST', - CancelledReversibleTransferExtrinsicHashAscNullsLast = 'cancelledReversibleTransfer_extrinsicHash_ASC_NULLS_LAST', - CancelledReversibleTransferExtrinsicHashDesc = 'cancelledReversibleTransfer_extrinsicHash_DESC', - CancelledReversibleTransferExtrinsicHashDescNullsFirst = 'cancelledReversibleTransfer_extrinsicHash_DESC_NULLS_FIRST', - CancelledReversibleTransferExtrinsicHashDescNullsLast = 'cancelledReversibleTransfer_extrinsicHash_DESC_NULLS_LAST', CancelledReversibleTransferIdAsc = 'cancelledReversibleTransfer_id_ASC', CancelledReversibleTransferIdAscNullsFirst = 'cancelledReversibleTransfer_id_ASC_NULLS_FIRST', CancelledReversibleTransferIdAscNullsLast = 'cancelledReversibleTransfer_id_ASC_NULLS_LAST', @@ -196,12 +215,6 @@ export enum AccountEventOrderByInput { 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', @@ -244,12 +257,6 @@ export enum AccountEventOrderByInput { ScheduledReversibleTransferAmountDesc = 'scheduledReversibleTransfer_amount_DESC', ScheduledReversibleTransferAmountDescNullsFirst = 'scheduledReversibleTransfer_amount_DESC_NULLS_FIRST', ScheduledReversibleTransferAmountDescNullsLast = 'scheduledReversibleTransfer_amount_DESC_NULLS_LAST', - ScheduledReversibleTransferExtrinsicHashAsc = 'scheduledReversibleTransfer_extrinsicHash_ASC', - ScheduledReversibleTransferExtrinsicHashAscNullsFirst = 'scheduledReversibleTransfer_extrinsicHash_ASC_NULLS_FIRST', - ScheduledReversibleTransferExtrinsicHashAscNullsLast = 'scheduledReversibleTransfer_extrinsicHash_ASC_NULLS_LAST', - ScheduledReversibleTransferExtrinsicHashDesc = 'scheduledReversibleTransfer_extrinsicHash_DESC', - ScheduledReversibleTransferExtrinsicHashDescNullsFirst = 'scheduledReversibleTransfer_extrinsicHash_DESC_NULLS_FIRST', - ScheduledReversibleTransferExtrinsicHashDescNullsLast = 'scheduledReversibleTransfer_extrinsicHash_DESC_NULLS_LAST', ScheduledReversibleTransferFeeAsc = 'scheduledReversibleTransfer_fee_ASC', ScheduledReversibleTransferFeeAscNullsFirst = 'scheduledReversibleTransfer_fee_ASC_NULLS_FIRST', ScheduledReversibleTransferFeeAscNullsLast = 'scheduledReversibleTransfer_fee_ASC_NULLS_LAST', @@ -292,12 +299,6 @@ export enum AccountEventOrderByInput { 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', @@ -316,6 +317,12 @@ export enum AccountEventOrderByInput { TransferIdDesc = 'transfer_id_DESC', TransferIdDescNullsFirst = 'transfer_id_DESC_NULLS_FIRST', TransferIdDescNullsLast = 'transfer_id_DESC_NULLS_LAST', + TransferLeafIndexAsc = 'transfer_leafIndex_ASC', + TransferLeafIndexAscNullsFirst = 'transfer_leafIndex_ASC_NULLS_FIRST', + TransferLeafIndexAscNullsLast = 'transfer_leafIndex_ASC_NULLS_LAST', + TransferLeafIndexDesc = 'transfer_leafIndex_DESC', + TransferLeafIndexDescNullsFirst = 'transfer_leafIndex_DESC_NULLS_FIRST', + TransferLeafIndexDescNullsLast = 'transfer_leafIndex_DESC_NULLS_LAST', TransferTimestampAsc = 'transfer_timestamp_ASC', TransferTimestampAscNullsFirst = 'transfer_timestamp_ASC_NULLS_FIRST', TransferTimestampAscNullsLast = 'transfer_timestamp_ASC_NULLS_LAST', @@ -403,12 +410,24 @@ export enum AccountOrderByInput { IdDesc = 'id_DESC', IdDescNullsFirst = 'id_DESC_NULLS_FIRST', IdDescNullsLast = 'id_DESC_NULLS_LAST', + IsDepositOnlyAsc = 'isDepositOnly_ASC', + IsDepositOnlyAscNullsFirst = 'isDepositOnly_ASC_NULLS_FIRST', + IsDepositOnlyAscNullsLast = 'isDepositOnly_ASC_NULLS_LAST', + IsDepositOnlyDesc = 'isDepositOnly_DESC', + IsDepositOnlyDescNullsFirst = 'isDepositOnly_DESC_NULLS_FIRST', + IsDepositOnlyDescNullsLast = 'isDepositOnly_DESC_NULLS_LAST', LastUpdatedAsc = 'lastUpdated_ASC', LastUpdatedAscNullsFirst = 'lastUpdated_ASC_NULLS_FIRST', LastUpdatedAscNullsLast = 'lastUpdated_ASC_NULLS_LAST', LastUpdatedDesc = 'lastUpdated_DESC', LastUpdatedDescNullsFirst = 'lastUpdated_DESC_NULLS_FIRST', LastUpdatedDescNullsLast = 'lastUpdated_DESC_NULLS_LAST', + PrivacyDepositsAsc = 'privacyDeposits_ASC', + PrivacyDepositsAscNullsFirst = 'privacyDeposits_ASC_NULLS_FIRST', + PrivacyDepositsAscNullsLast = 'privacyDeposits_ASC_NULLS_LAST', + PrivacyDepositsDesc = 'privacyDeposits_DESC', + PrivacyDepositsDescNullsFirst = 'privacyDeposits_DESC_NULLS_FIRST', + PrivacyDepositsDescNullsLast = 'privacyDeposits_DESC_NULLS_LAST', ReservedAsc = 'reserved_ASC', ReservedAscNullsFirst = 'reserved_ASC_NULLS_FIRST', ReservedAscNullsLast = 'reserved_ASC_NULLS_LAST', @@ -423,6 +442,9 @@ export type AccountWhereInput = { accountEvents_every?: InputMaybe; accountEvents_none?: InputMaybe; accountEvents_some?: InputMaybe; + extrinsics_every?: InputMaybe; + extrinsics_none?: InputMaybe; + extrinsics_some?: InputMaybe; free_eq?: InputMaybe; free_gt?: InputMaybe; free_gte?: InputMaybe; @@ -458,6 +480,9 @@ export type AccountWhereInput = { id_not_in?: InputMaybe>; id_not_startsWith?: InputMaybe; id_startsWith?: InputMaybe; + isDepositOnly_eq?: InputMaybe; + isDepositOnly_isNull?: InputMaybe; + isDepositOnly_not_eq?: InputMaybe; lastUpdated_eq?: InputMaybe; lastUpdated_gt?: InputMaybe; lastUpdated_gte?: InputMaybe; @@ -467,6 +492,25 @@ export type AccountWhereInput = { lastUpdated_lte?: InputMaybe; lastUpdated_not_eq?: InputMaybe; lastUpdated_not_in?: InputMaybe>; + privacyDeposits_contains?: InputMaybe; + privacyDeposits_containsInsensitive?: InputMaybe; + privacyDeposits_endsWith?: InputMaybe; + privacyDeposits_eq?: InputMaybe; + privacyDeposits_gt?: InputMaybe; + privacyDeposits_gte?: InputMaybe; + privacyDeposits_in?: InputMaybe>; + privacyDeposits_isNull?: InputMaybe; + privacyDeposits_lt?: InputMaybe; + privacyDeposits_lte?: InputMaybe; + privacyDeposits_not_contains?: InputMaybe; + privacyDeposits_not_containsInsensitive?: InputMaybe< + Scalars['String']['input'] + >; + privacyDeposits_not_endsWith?: InputMaybe; + privacyDeposits_not_eq?: InputMaybe; + privacyDeposits_not_in?: InputMaybe>; + privacyDeposits_not_startsWith?: InputMaybe; + privacyDeposits_startsWith?: InputMaybe; reserved_eq?: InputMaybe; reserved_gt?: InputMaybe; reserved_gte?: InputMaybe; @@ -528,12 +572,24 @@ export enum BalanceEventOrderByInput { AccountIdDesc = 'account_id_DESC', AccountIdDescNullsFirst = 'account_id_DESC_NULLS_FIRST', AccountIdDescNullsLast = 'account_id_DESC_NULLS_LAST', + AccountIsDepositOnlyAsc = 'account_isDepositOnly_ASC', + AccountIsDepositOnlyAscNullsFirst = 'account_isDepositOnly_ASC_NULLS_FIRST', + AccountIsDepositOnlyAscNullsLast = 'account_isDepositOnly_ASC_NULLS_LAST', + AccountIsDepositOnlyDesc = 'account_isDepositOnly_DESC', + AccountIsDepositOnlyDescNullsFirst = 'account_isDepositOnly_DESC_NULLS_FIRST', + AccountIsDepositOnlyDescNullsLast = 'account_isDepositOnly_DESC_NULLS_LAST', AccountLastUpdatedAsc = 'account_lastUpdated_ASC', AccountLastUpdatedAscNullsFirst = 'account_lastUpdated_ASC_NULLS_FIRST', AccountLastUpdatedAscNullsLast = 'account_lastUpdated_ASC_NULLS_LAST', AccountLastUpdatedDesc = 'account_lastUpdated_DESC', AccountLastUpdatedDescNullsFirst = 'account_lastUpdated_DESC_NULLS_FIRST', AccountLastUpdatedDescNullsLast = 'account_lastUpdated_DESC_NULLS_LAST', + AccountPrivacyDepositsAsc = 'account_privacyDeposits_ASC', + AccountPrivacyDepositsAscNullsFirst = 'account_privacyDeposits_ASC_NULLS_FIRST', + AccountPrivacyDepositsAscNullsLast = 'account_privacyDeposits_ASC_NULLS_LAST', + AccountPrivacyDepositsDesc = 'account_privacyDeposits_DESC', + AccountPrivacyDepositsDescNullsFirst = 'account_privacyDeposits_DESC_NULLS_FIRST', + AccountPrivacyDepositsDescNullsLast = 'account_privacyDeposits_DESC_NULLS_LAST', AccountReservedAsc = 'account_reserved_ASC', AccountReservedAscNullsFirst = 'account_reserved_ASC_NULLS_FIRST', AccountReservedAscNullsLast = 'account_reserved_ASC_NULLS_LAST', @@ -546,12 +602,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', @@ -588,12 +638,24 @@ export enum BalanceEventOrderByInput { FromIdDesc = 'from_id_DESC', FromIdDescNullsFirst = 'from_id_DESC_NULLS_FIRST', FromIdDescNullsLast = 'from_id_DESC_NULLS_LAST', + FromIsDepositOnlyAsc = 'from_isDepositOnly_ASC', + FromIsDepositOnlyAscNullsFirst = 'from_isDepositOnly_ASC_NULLS_FIRST', + FromIsDepositOnlyAscNullsLast = 'from_isDepositOnly_ASC_NULLS_LAST', + FromIsDepositOnlyDesc = 'from_isDepositOnly_DESC', + FromIsDepositOnlyDescNullsFirst = 'from_isDepositOnly_DESC_NULLS_FIRST', + FromIsDepositOnlyDescNullsLast = 'from_isDepositOnly_DESC_NULLS_LAST', FromLastUpdatedAsc = 'from_lastUpdated_ASC', FromLastUpdatedAscNullsFirst = 'from_lastUpdated_ASC_NULLS_FIRST', FromLastUpdatedAscNullsLast = 'from_lastUpdated_ASC_NULLS_LAST', FromLastUpdatedDesc = 'from_lastUpdated_DESC', FromLastUpdatedDescNullsFirst = 'from_lastUpdated_DESC_NULLS_FIRST', FromLastUpdatedDescNullsLast = 'from_lastUpdated_DESC_NULLS_LAST', + FromPrivacyDepositsAsc = 'from_privacyDeposits_ASC', + FromPrivacyDepositsAscNullsFirst = 'from_privacyDeposits_ASC_NULLS_FIRST', + FromPrivacyDepositsAscNullsLast = 'from_privacyDeposits_ASC_NULLS_LAST', + FromPrivacyDepositsDesc = 'from_privacyDeposits_DESC', + FromPrivacyDepositsDescNullsFirst = 'from_privacyDeposits_DESC_NULLS_FIRST', + FromPrivacyDepositsDescNullsLast = 'from_privacyDeposits_DESC_NULLS_LAST', FromReservedAsc = 'from_reserved_ASC', FromReservedAscNullsFirst = 'from_reserved_ASC_NULLS_FIRST', FromReservedAscNullsLast = 'from_reserved_ASC_NULLS_LAST', @@ -630,12 +692,24 @@ export enum BalanceEventOrderByInput { ToIdDesc = 'to_id_DESC', ToIdDescNullsFirst = 'to_id_DESC_NULLS_FIRST', ToIdDescNullsLast = 'to_id_DESC_NULLS_LAST', + ToIsDepositOnlyAsc = 'to_isDepositOnly_ASC', + ToIsDepositOnlyAscNullsFirst = 'to_isDepositOnly_ASC_NULLS_FIRST', + ToIsDepositOnlyAscNullsLast = 'to_isDepositOnly_ASC_NULLS_LAST', + ToIsDepositOnlyDesc = 'to_isDepositOnly_DESC', + ToIsDepositOnlyDescNullsFirst = 'to_isDepositOnly_DESC_NULLS_FIRST', + ToIsDepositOnlyDescNullsLast = 'to_isDepositOnly_DESC_NULLS_LAST', ToLastUpdatedAsc = 'to_lastUpdated_ASC', ToLastUpdatedAscNullsFirst = 'to_lastUpdated_ASC_NULLS_FIRST', ToLastUpdatedAscNullsLast = 'to_lastUpdated_ASC_NULLS_LAST', ToLastUpdatedDesc = 'to_lastUpdated_DESC', ToLastUpdatedDescNullsFirst = 'to_lastUpdated_DESC_NULLS_FIRST', ToLastUpdatedDescNullsLast = 'to_lastUpdated_DESC_NULLS_LAST', + ToPrivacyDepositsAsc = 'to_privacyDeposits_ASC', + ToPrivacyDepositsAscNullsFirst = 'to_privacyDeposits_ASC_NULLS_FIRST', + ToPrivacyDepositsAscNullsLast = 'to_privacyDeposits_ASC_NULLS_LAST', + ToPrivacyDepositsDesc = 'to_privacyDeposits_DESC', + ToPrivacyDepositsDescNullsFirst = 'to_privacyDeposits_DESC_NULLS_FIRST', + ToPrivacyDepositsDescNullsLast = 'to_privacyDeposits_DESC_NULLS_LAST', ToReservedAsc = 'to_reserved_ASC', ToReservedAscNullsFirst = 'to_reserved_ASC_NULLS_FIRST', ToReservedAscNullsLast = 'to_reserved_ASC_NULLS_LAST', @@ -734,6 +808,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']; @@ -749,6 +824,13 @@ export type BlockEventsArgs = { where?: InputMaybe; }; +export type BlockExtrinsicsArgs = { + limit?: InputMaybe; + offset?: InputMaybe; + orderBy?: InputMaybe>; + where?: InputMaybe; +}; + export type BlockTransactionsArgs = { limit?: InputMaybe; offset?: InputMaybe; @@ -801,6 +883,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; @@ -879,7 +964,7 @@ export type CancelledReversibleTransfer = { block: Block; cancelledBy: Account; event?: Maybe; - extrinsicHash?: Maybe; + extrinsic?: Maybe; id: Scalars['String']['output']; scheduledTransfer: ScheduledReversibleTransfer; timestamp: Scalars['DateTime']['output']; @@ -941,24 +1026,30 @@ export enum CancelledReversibleTransferOrderByInput { CancelledByIdDesc = 'cancelledBy_id_DESC', CancelledByIdDescNullsFirst = 'cancelledBy_id_DESC_NULLS_FIRST', CancelledByIdDescNullsLast = 'cancelledBy_id_DESC_NULLS_LAST', + CancelledByIsDepositOnlyAsc = 'cancelledBy_isDepositOnly_ASC', + CancelledByIsDepositOnlyAscNullsFirst = 'cancelledBy_isDepositOnly_ASC_NULLS_FIRST', + CancelledByIsDepositOnlyAscNullsLast = 'cancelledBy_isDepositOnly_ASC_NULLS_LAST', + CancelledByIsDepositOnlyDesc = 'cancelledBy_isDepositOnly_DESC', + CancelledByIsDepositOnlyDescNullsFirst = 'cancelledBy_isDepositOnly_DESC_NULLS_FIRST', + CancelledByIsDepositOnlyDescNullsLast = 'cancelledBy_isDepositOnly_DESC_NULLS_LAST', CancelledByLastUpdatedAsc = 'cancelledBy_lastUpdated_ASC', CancelledByLastUpdatedAscNullsFirst = 'cancelledBy_lastUpdated_ASC_NULLS_FIRST', CancelledByLastUpdatedAscNullsLast = 'cancelledBy_lastUpdated_ASC_NULLS_LAST', CancelledByLastUpdatedDesc = 'cancelledBy_lastUpdated_DESC', CancelledByLastUpdatedDescNullsFirst = 'cancelledBy_lastUpdated_DESC_NULLS_FIRST', CancelledByLastUpdatedDescNullsLast = 'cancelledBy_lastUpdated_DESC_NULLS_LAST', + CancelledByPrivacyDepositsAsc = 'cancelledBy_privacyDeposits_ASC', + CancelledByPrivacyDepositsAscNullsFirst = 'cancelledBy_privacyDeposits_ASC_NULLS_FIRST', + CancelledByPrivacyDepositsAscNullsLast = 'cancelledBy_privacyDeposits_ASC_NULLS_LAST', + CancelledByPrivacyDepositsDesc = 'cancelledBy_privacyDeposits_DESC', + CancelledByPrivacyDepositsDescNullsFirst = 'cancelledBy_privacyDeposits_DESC_NULLS_FIRST', + CancelledByPrivacyDepositsDescNullsLast = 'cancelledBy_privacyDeposits_DESC_NULLS_LAST', CancelledByReservedAsc = 'cancelledBy_reserved_ASC', CancelledByReservedAscNullsFirst = 'cancelledBy_reserved_ASC_NULLS_FIRST', CancelledByReservedAscNullsLast = 'cancelledBy_reserved_ASC_NULLS_LAST', CancelledByReservedDesc = 'cancelledBy_reserved_DESC', CancelledByReservedDescNullsFirst = 'cancelledBy_reserved_DESC_NULLS_FIRST', CancelledByReservedDescNullsLast = 'cancelledBy_reserved_DESC_NULLS_LAST', - 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', @@ -977,12 +1068,54 @@ export enum CancelledReversibleTransferOrderByInput { 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', @@ -995,12 +1128,6 @@ export enum CancelledReversibleTransferOrderByInput { ScheduledTransferAmountDesc = 'scheduledTransfer_amount_DESC', ScheduledTransferAmountDescNullsFirst = 'scheduledTransfer_amount_DESC_NULLS_FIRST', ScheduledTransferAmountDescNullsLast = 'scheduledTransfer_amount_DESC_NULLS_LAST', - ScheduledTransferExtrinsicHashAsc = 'scheduledTransfer_extrinsicHash_ASC', - ScheduledTransferExtrinsicHashAscNullsFirst = 'scheduledTransfer_extrinsicHash_ASC_NULLS_FIRST', - ScheduledTransferExtrinsicHashAscNullsLast = 'scheduledTransfer_extrinsicHash_ASC_NULLS_LAST', - ScheduledTransferExtrinsicHashDesc = 'scheduledTransfer_extrinsicHash_DESC', - ScheduledTransferExtrinsicHashDescNullsFirst = 'scheduledTransfer_extrinsicHash_DESC_NULLS_FIRST', - ScheduledTransferExtrinsicHashDescNullsLast = 'scheduledTransfer_extrinsicHash_DESC_NULLS_LAST', ScheduledTransferFeeAsc = 'scheduledTransfer_fee_ASC', ScheduledTransferFeeAscNullsFirst = 'scheduledTransfer_fee_ASC_NULLS_FIRST', ScheduledTransferFeeAscNullsLast = 'scheduledTransfer_fee_ASC_NULLS_LAST', @@ -1054,25 +1181,8 @@ export type CancelledReversibleTransferWhereInput = { cancelledBy_isNull?: 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; @@ -1127,6 +1237,99 @@ export type CancelledReversibleTransfersConnection = { totalCount: Scalars['Int']['output']; }; +/** Bucketed deposit pool statistics for privacy score computation. Each bucket covers a bounded range of deposit amounts with overlapping ranges growing by factor 4. */ +export type DepositPoolStats = { + __typename?: 'DepositPoolStats'; + /** Bucket definitions and stats as JSON. Each bucket has: lo, hi (planck), count, sumAmounts, sumAmountsSquared */ + buckets: Scalars['String']['output']; + /** Singleton entity (id='global') */ + id: Scalars['String']['output']; + /** Block number of last update */ + lastUpdatedBlock: Scalars['Int']['output']; +}; + +export type DepositPoolStatsConnection = { + __typename?: 'DepositPoolStatsConnection'; + edges: Array; + pageInfo: PageInfo; + totalCount: Scalars['Int']['output']; +}; + +export type DepositPoolStatsEdge = { + __typename?: 'DepositPoolStatsEdge'; + cursor: Scalars['String']['output']; + node: DepositPoolStats; +}; + +export enum DepositPoolStatsOrderByInput { + BucketsAsc = 'buckets_ASC', + BucketsAscNullsFirst = 'buckets_ASC_NULLS_FIRST', + BucketsAscNullsLast = 'buckets_ASC_NULLS_LAST', + BucketsDesc = 'buckets_DESC', + BucketsDescNullsFirst = 'buckets_DESC_NULLS_FIRST', + BucketsDescNullsLast = 'buckets_DESC_NULLS_LAST', + IdAsc = 'id_ASC', + IdAscNullsFirst = 'id_ASC_NULLS_FIRST', + IdAscNullsLast = 'id_ASC_NULLS_LAST', + IdDesc = 'id_DESC', + IdDescNullsFirst = 'id_DESC_NULLS_FIRST', + IdDescNullsLast = 'id_DESC_NULLS_LAST', + LastUpdatedBlockAsc = 'lastUpdatedBlock_ASC', + LastUpdatedBlockAscNullsFirst = 'lastUpdatedBlock_ASC_NULLS_FIRST', + LastUpdatedBlockAscNullsLast = 'lastUpdatedBlock_ASC_NULLS_LAST', + LastUpdatedBlockDesc = 'lastUpdatedBlock_DESC', + LastUpdatedBlockDescNullsFirst = 'lastUpdatedBlock_DESC_NULLS_FIRST', + LastUpdatedBlockDescNullsLast = 'lastUpdatedBlock_DESC_NULLS_LAST' +} + +export type DepositPoolStatsWhereInput = { + AND?: InputMaybe>; + OR?: InputMaybe>; + buckets_contains?: InputMaybe; + buckets_containsInsensitive?: InputMaybe; + buckets_endsWith?: InputMaybe; + buckets_eq?: InputMaybe; + buckets_gt?: InputMaybe; + buckets_gte?: InputMaybe; + buckets_in?: InputMaybe>; + buckets_isNull?: InputMaybe; + buckets_lt?: InputMaybe; + buckets_lte?: InputMaybe; + buckets_not_contains?: InputMaybe; + buckets_not_containsInsensitive?: InputMaybe; + buckets_not_endsWith?: InputMaybe; + buckets_not_eq?: InputMaybe; + buckets_not_in?: InputMaybe>; + buckets_not_startsWith?: InputMaybe; + buckets_startsWith?: InputMaybe; + id_contains?: InputMaybe; + id_containsInsensitive?: InputMaybe; + id_endsWith?: InputMaybe; + id_eq?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_isNull?: InputMaybe; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not_contains?: InputMaybe; + id_not_containsInsensitive?: InputMaybe; + id_not_endsWith?: InputMaybe; + id_not_eq?: InputMaybe; + id_not_in?: InputMaybe>; + id_not_startsWith?: InputMaybe; + id_startsWith?: InputMaybe; + lastUpdatedBlock_eq?: InputMaybe; + lastUpdatedBlock_gt?: InputMaybe; + lastUpdatedBlock_gte?: InputMaybe; + lastUpdatedBlock_in?: InputMaybe>; + lastUpdatedBlock_isNull?: InputMaybe; + lastUpdatedBlock_lt?: InputMaybe; + lastUpdatedBlock_lte?: InputMaybe; + lastUpdatedBlock_not_eq?: InputMaybe; + lastUpdatedBlock_not_in?: InputMaybe>; +}; + export type ErrorEvent = { __typename?: 'ErrorEvent'; block: Block; @@ -1135,7 +1338,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']; }; @@ -1201,12 +1405,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', @@ -1225,12 +1423,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', @@ -1320,25 +1560,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; @@ -1381,7 +1604,8 @@ export type Event = { cancelledReversibleTransfer?: Maybe; errorEvent?: Maybe; executedReversibleTransfer?: 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']; minerReward?: Maybe; @@ -1452,12 +1676,6 @@ export enum EventOrderByInput { BlockTimestampDesc = 'block_timestamp_DESC', BlockTimestampDescNullsFirst = 'block_timestamp_DESC_NULLS_FIRST', BlockTimestampDescNullsLast = 'block_timestamp_DESC_NULLS_LAST', - CancelledReversibleTransferExtrinsicHashAsc = 'cancelledReversibleTransfer_extrinsicHash_ASC', - CancelledReversibleTransferExtrinsicHashAscNullsFirst = 'cancelledReversibleTransfer_extrinsicHash_ASC_NULLS_FIRST', - CancelledReversibleTransferExtrinsicHashAscNullsLast = 'cancelledReversibleTransfer_extrinsicHash_ASC_NULLS_LAST', - CancelledReversibleTransferExtrinsicHashDesc = 'cancelledReversibleTransfer_extrinsicHash_DESC', - CancelledReversibleTransferExtrinsicHashDescNullsFirst = 'cancelledReversibleTransfer_extrinsicHash_DESC_NULLS_FIRST', - CancelledReversibleTransferExtrinsicHashDescNullsLast = 'cancelledReversibleTransfer_extrinsicHash_DESC_NULLS_LAST', CancelledReversibleTransferIdAsc = 'cancelledReversibleTransfer_id_ASC', CancelledReversibleTransferIdAscNullsFirst = 'cancelledReversibleTransfer_id_ASC_NULLS_FIRST', CancelledReversibleTransferIdAscNullsLast = 'cancelledReversibleTransfer_id_ASC_NULLS_LAST', @@ -1500,12 +1718,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', @@ -1536,24 +1748,60 @@ export enum EventOrderByInput { ExecutedReversibleTransferTxIdDesc = 'executedReversibleTransfer_txId_DESC', ExecutedReversibleTransferTxIdDescNullsFirst = 'executedReversibleTransfer_txId_DESC_NULLS_FIRST', ExecutedReversibleTransferTxIdDescNullsLast = 'executedReversibleTransfer_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', 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', @@ -1596,12 +1844,6 @@ export enum EventOrderByInput { ScheduledReversibleTransferAmountDesc = 'scheduledReversibleTransfer_amount_DESC', ScheduledReversibleTransferAmountDescNullsFirst = 'scheduledReversibleTransfer_amount_DESC_NULLS_FIRST', ScheduledReversibleTransferAmountDescNullsLast = 'scheduledReversibleTransfer_amount_DESC_NULLS_LAST', - ScheduledReversibleTransferExtrinsicHashAsc = 'scheduledReversibleTransfer_extrinsicHash_ASC', - ScheduledReversibleTransferExtrinsicHashAscNullsFirst = 'scheduledReversibleTransfer_extrinsicHash_ASC_NULLS_FIRST', - ScheduledReversibleTransferExtrinsicHashAscNullsLast = 'scheduledReversibleTransfer_extrinsicHash_ASC_NULLS_LAST', - ScheduledReversibleTransferExtrinsicHashDesc = 'scheduledReversibleTransfer_extrinsicHash_DESC', - ScheduledReversibleTransferExtrinsicHashDescNullsFirst = 'scheduledReversibleTransfer_extrinsicHash_DESC_NULLS_FIRST', - ScheduledReversibleTransferExtrinsicHashDescNullsLast = 'scheduledReversibleTransfer_extrinsicHash_DESC_NULLS_LAST', ScheduledReversibleTransferFeeAsc = 'scheduledReversibleTransfer_fee_ASC', ScheduledReversibleTransferFeeAscNullsFirst = 'scheduledReversibleTransfer_fee_ASC_NULLS_FIRST', ScheduledReversibleTransferFeeAscNullsLast = 'scheduledReversibleTransfer_fee_ASC_NULLS_LAST', @@ -1644,12 +1886,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', @@ -1668,6 +1904,12 @@ export enum EventOrderByInput { TransferIdDesc = 'transfer_id_DESC', TransferIdDescNullsFirst = 'transfer_id_DESC_NULLS_FIRST', TransferIdDescNullsLast = 'transfer_id_DESC_NULLS_LAST', + TransferLeafIndexAsc = 'transfer_leafIndex_ASC', + TransferLeafIndexAscNullsFirst = 'transfer_leafIndex_ASC_NULLS_FIRST', + TransferLeafIndexAscNullsLast = 'transfer_leafIndex_ASC_NULLS_LAST', + TransferLeafIndexDesc = 'transfer_leafIndex_DESC', + TransferLeafIndexDescNullsFirst = 'transfer_leafIndex_DESC_NULLS_FIRST', + TransferLeafIndexDescNullsLast = 'transfer_leafIndex_DESC_NULLS_LAST', TransferTimestampAsc = 'transfer_timestamp_ASC', TransferTimestampAscNullsFirst = 'transfer_timestamp_ASC_NULLS_FIRST', TransferTimestampAscNullsLast = 'transfer_timestamp_ASC_NULLS_LAST', @@ -1712,25 +1954,8 @@ export type EventWhereInput = { errorEvent_isNull?: InputMaybe; executedReversibleTransfer?: InputMaybe; executedReversibleTransfer_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; @@ -1827,12 +2052,6 @@ export enum ExecutedReversibleTransferOrderByInput { 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', @@ -1857,12 +2076,6 @@ export enum ExecutedReversibleTransferOrderByInput { 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', @@ -1881,6 +2094,12 @@ export enum ExecutedReversibleTransferOrderByInput { ExecutedTransferIdDesc = 'executedTransfer_id_DESC', ExecutedTransferIdDescNullsFirst = 'executedTransfer_id_DESC_NULLS_FIRST', ExecutedTransferIdDescNullsLast = 'executedTransfer_id_DESC_NULLS_LAST', + ExecutedTransferLeafIndexAsc = 'executedTransfer_leafIndex_ASC', + ExecutedTransferLeafIndexAscNullsFirst = 'executedTransfer_leafIndex_ASC_NULLS_FIRST', + ExecutedTransferLeafIndexAscNullsLast = 'executedTransfer_leafIndex_ASC_NULLS_LAST', + ExecutedTransferLeafIndexDesc = 'executedTransfer_leafIndex_DESC', + ExecutedTransferLeafIndexDescNullsFirst = 'executedTransfer_leafIndex_DESC_NULLS_FIRST', + ExecutedTransferLeafIndexDescNullsLast = 'executedTransfer_leafIndex_DESC_NULLS_LAST', ExecutedTransferTimestampAsc = 'executedTransfer_timestamp_ASC', ExecutedTransferTimestampAscNullsFirst = 'executedTransfer_timestamp_ASC_NULLS_FIRST', ExecutedTransferTimestampAscNullsLast = 'executedTransfer_timestamp_ASC_NULLS_LAST', @@ -1905,12 +2124,6 @@ export enum ExecutedReversibleTransferOrderByInput { ScheduledTransferAmountDesc = 'scheduledTransfer_amount_DESC', ScheduledTransferAmountDescNullsFirst = 'scheduledTransfer_amount_DESC_NULLS_FIRST', ScheduledTransferAmountDescNullsLast = 'scheduledTransfer_amount_DESC_NULLS_LAST', - ScheduledTransferExtrinsicHashAsc = 'scheduledTransfer_extrinsicHash_ASC', - ScheduledTransferExtrinsicHashAscNullsFirst = 'scheduledTransfer_extrinsicHash_ASC_NULLS_FIRST', - ScheduledTransferExtrinsicHashAscNullsLast = 'scheduledTransfer_extrinsicHash_ASC_NULLS_LAST', - ScheduledTransferExtrinsicHashDesc = 'scheduledTransfer_extrinsicHash_DESC', - ScheduledTransferExtrinsicHashDescNullsFirst = 'scheduledTransfer_extrinsicHash_DESC_NULLS_FIRST', - ScheduledTransferExtrinsicHashDescNullsLast = 'scheduledTransfer_extrinsicHash_DESC_NULLS_LAST', ScheduledTransferFeeAsc = 'scheduledTransfer_fee_ASC', ScheduledTransferFeeAscNullsFirst = 'scheduledTransfer_fee_ASC_NULLS_FIRST', ScheduledTransferFeeAscNullsLast = 'scheduledTransfer_fee_ASC_NULLS_LAST', @@ -2018,12 +2231,292 @@ export type ExecutedReversibleTransfersConnection = { 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', + SignerPrivacyDepositsAsc = 'signer_privacyDeposits_ASC', + SignerPrivacyDepositsAscNullsFirst = 'signer_privacyDeposits_ASC_NULLS_FIRST', + SignerPrivacyDepositsAscNullsLast = 'signer_privacyDeposits_ASC_NULLS_LAST', + SignerPrivacyDepositsDesc = 'signer_privacyDeposits_DESC', + SignerPrivacyDepositsDescNullsFirst = 'signer_privacyDeposits_DESC_NULLS_FIRST', + SignerPrivacyDepositsDescNullsLast = 'signer_privacyDeposits_DESC_NULLS_LAST', + SignerReservedAsc = 'signer_reserved_ASC', + SignerReservedAscNullsFirst = 'signer_reserved_ASC_NULLS_FIRST', + SignerReservedAscNullsLast = 'signer_reserved_ASC_NULLS_LAST', + SignerReservedDesc = 'signer_reserved_DESC', + SignerReservedDescNullsFirst = 'signer_reserved_DESC_NULLS_FIRST', + SignerReservedDescNullsLast = 'signer_reserved_DESC_NULLS_LAST', + SuccessAsc = 'success_ASC', + SuccessAscNullsFirst = 'success_ASC_NULLS_FIRST', + SuccessAscNullsLast = 'success_ASC_NULLS_LAST', + SuccessDesc = 'success_DESC', + SuccessDescNullsFirst = 'success_DESC_NULLS_FIRST', + SuccessDescNullsLast = 'success_DESC_NULLS_LAST', + TimestampAsc = 'timestamp_ASC', + TimestampAscNullsFirst = 'timestamp_ASC_NULLS_FIRST', + TimestampAscNullsLast = 'timestamp_ASC_NULLS_LAST', + TimestampDesc = 'timestamp_DESC', + TimestampDescNullsFirst = 'timestamp_DESC_NULLS_FIRST', + TimestampDescNullsLast = 'timestamp_DESC_NULLS_LAST' +} + +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']; @@ -2073,12 +2566,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', @@ -2097,12 +2584,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', @@ -2127,12 +2656,24 @@ export enum HighSecuritySetOrderByInput { InterceptorIdDesc = 'interceptor_id_DESC', InterceptorIdDescNullsFirst = 'interceptor_id_DESC_NULLS_FIRST', InterceptorIdDescNullsLast = 'interceptor_id_DESC_NULLS_LAST', + InterceptorIsDepositOnlyAsc = 'interceptor_isDepositOnly_ASC', + InterceptorIsDepositOnlyAscNullsFirst = 'interceptor_isDepositOnly_ASC_NULLS_FIRST', + InterceptorIsDepositOnlyAscNullsLast = 'interceptor_isDepositOnly_ASC_NULLS_LAST', + InterceptorIsDepositOnlyDesc = 'interceptor_isDepositOnly_DESC', + InterceptorIsDepositOnlyDescNullsFirst = 'interceptor_isDepositOnly_DESC_NULLS_FIRST', + InterceptorIsDepositOnlyDescNullsLast = 'interceptor_isDepositOnly_DESC_NULLS_LAST', InterceptorLastUpdatedAsc = 'interceptor_lastUpdated_ASC', InterceptorLastUpdatedAscNullsFirst = 'interceptor_lastUpdated_ASC_NULLS_FIRST', InterceptorLastUpdatedAscNullsLast = 'interceptor_lastUpdated_ASC_NULLS_LAST', InterceptorLastUpdatedDesc = 'interceptor_lastUpdated_DESC', InterceptorLastUpdatedDescNullsFirst = 'interceptor_lastUpdated_DESC_NULLS_FIRST', InterceptorLastUpdatedDescNullsLast = 'interceptor_lastUpdated_DESC_NULLS_LAST', + InterceptorPrivacyDepositsAsc = 'interceptor_privacyDeposits_ASC', + InterceptorPrivacyDepositsAscNullsFirst = 'interceptor_privacyDeposits_ASC_NULLS_FIRST', + InterceptorPrivacyDepositsAscNullsLast = 'interceptor_privacyDeposits_ASC_NULLS_LAST', + InterceptorPrivacyDepositsDesc = 'interceptor_privacyDeposits_DESC', + InterceptorPrivacyDepositsDescNullsFirst = 'interceptor_privacyDeposits_DESC_NULLS_FIRST', + InterceptorPrivacyDepositsDescNullsLast = 'interceptor_privacyDeposits_DESC_NULLS_LAST', InterceptorReservedAsc = 'interceptor_reserved_ASC', InterceptorReservedAscNullsFirst = 'interceptor_reserved_ASC_NULLS_FIRST', InterceptorReservedAscNullsLast = 'interceptor_reserved_ASC_NULLS_LAST', @@ -2163,12 +2704,24 @@ export enum HighSecuritySetOrderByInput { WhoIdDesc = 'who_id_DESC', WhoIdDescNullsFirst = 'who_id_DESC_NULLS_FIRST', WhoIdDescNullsLast = 'who_id_DESC_NULLS_LAST', + WhoIsDepositOnlyAsc = 'who_isDepositOnly_ASC', + WhoIsDepositOnlyAscNullsFirst = 'who_isDepositOnly_ASC_NULLS_FIRST', + WhoIsDepositOnlyAscNullsLast = 'who_isDepositOnly_ASC_NULLS_LAST', + WhoIsDepositOnlyDesc = 'who_isDepositOnly_DESC', + WhoIsDepositOnlyDescNullsFirst = 'who_isDepositOnly_DESC_NULLS_FIRST', + WhoIsDepositOnlyDescNullsLast = 'who_isDepositOnly_DESC_NULLS_LAST', WhoLastUpdatedAsc = 'who_lastUpdated_ASC', WhoLastUpdatedAscNullsFirst = 'who_lastUpdated_ASC_NULLS_FIRST', WhoLastUpdatedAscNullsLast = 'who_lastUpdated_ASC_NULLS_LAST', WhoLastUpdatedDesc = 'who_lastUpdated_DESC', WhoLastUpdatedDescNullsFirst = 'who_lastUpdated_DESC_NULLS_FIRST', WhoLastUpdatedDescNullsLast = 'who_lastUpdated_DESC_NULLS_LAST', + WhoPrivacyDepositsAsc = 'who_privacyDeposits_ASC', + WhoPrivacyDepositsAscNullsFirst = 'who_privacyDeposits_ASC_NULLS_FIRST', + WhoPrivacyDepositsAscNullsLast = 'who_privacyDeposits_ASC_NULLS_LAST', + WhoPrivacyDepositsDesc = 'who_privacyDeposits_DESC', + WhoPrivacyDepositsDescNullsFirst = 'who_privacyDeposits_DESC_NULLS_FIRST', + WhoPrivacyDepositsDescNullsLast = 'who_privacyDeposits_DESC_NULLS_LAST', WhoReservedAsc = 'who_reserved_ASC', WhoReservedAscNullsFirst = 'who_reserved_ASC_NULLS_FIRST', WhoReservedAscNullsLast = 'who_reserved_ASC_NULLS_LAST', @@ -2193,25 +2746,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; @@ -2298,12 +2834,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', @@ -2346,12 +2876,24 @@ export enum MinerRewardOrderByInput { MinerIdDesc = 'miner_id_DESC', MinerIdDescNullsFirst = 'miner_id_DESC_NULLS_FIRST', MinerIdDescNullsLast = 'miner_id_DESC_NULLS_LAST', + MinerIsDepositOnlyAsc = 'miner_isDepositOnly_ASC', + MinerIsDepositOnlyAscNullsFirst = 'miner_isDepositOnly_ASC_NULLS_FIRST', + MinerIsDepositOnlyAscNullsLast = 'miner_isDepositOnly_ASC_NULLS_LAST', + MinerIsDepositOnlyDesc = 'miner_isDepositOnly_DESC', + MinerIsDepositOnlyDescNullsFirst = 'miner_isDepositOnly_DESC_NULLS_FIRST', + MinerIsDepositOnlyDescNullsLast = 'miner_isDepositOnly_DESC_NULLS_LAST', MinerLastUpdatedAsc = 'miner_lastUpdated_ASC', MinerLastUpdatedAscNullsFirst = 'miner_lastUpdated_ASC_NULLS_FIRST', MinerLastUpdatedAscNullsLast = 'miner_lastUpdated_ASC_NULLS_LAST', MinerLastUpdatedDesc = 'miner_lastUpdated_DESC', MinerLastUpdatedDescNullsFirst = 'miner_lastUpdated_DESC_NULLS_FIRST', MinerLastUpdatedDescNullsLast = 'miner_lastUpdated_DESC_NULLS_LAST', + MinerPrivacyDepositsAsc = 'miner_privacyDeposits_ASC', + MinerPrivacyDepositsAscNullsFirst = 'miner_privacyDeposits_ASC_NULLS_FIRST', + MinerPrivacyDepositsAscNullsLast = 'miner_privacyDeposits_ASC_NULLS_LAST', + MinerPrivacyDepositsDesc = 'miner_privacyDeposits_DESC', + MinerPrivacyDepositsDescNullsFirst = 'miner_privacyDeposits_DESC_NULLS_FIRST', + MinerPrivacyDepositsDescNullsLast = 'miner_privacyDeposits_DESC_NULLS_LAST', MinerReservedAsc = 'miner_reserved_ASC', MinerReservedAscNullsFirst = 'miner_reserved_ASC_NULLS_FIRST', MinerReservedAscNullsLast = 'miner_reserved_ASC_NULLS_LAST', @@ -2507,6 +3049,26 @@ export type MinerStatsWhereInput = { totalRewards_not_in?: InputMaybe>; }; +export type NullifierResult = { + __typename?: 'NullifierResult'; + blockHeight: Scalars['Int']['output']; + extrinsicHash: Scalars['String']['output']; + nullifier: Scalars['String']['output']; + nullifierHash: Scalars['String']['output']; + timestamp: Scalars['DateTime']['output']; +}; + +export type NullifiersByPrefixInput = { + afterBlock?: InputMaybe; + hashPrefixes: Array; +}; + +export type NullifiersByPrefixResponse = { + __typename?: 'NullifiersByPrefixResponse'; + nullifiers: Array; + totalCount: Scalars['Int']['output']; +}; + export type PageInfo = { __typename?: 'PageInfo'; endCursor: Scalars['String']['output']; @@ -2532,6 +3094,9 @@ export type Query = { cancelledReversibleTransferById?: Maybe; cancelledReversibleTransfers: Array; cancelledReversibleTransfersConnection: CancelledReversibleTransfersConnection; + depositPoolStats: Array; + depositPoolStatsById?: Maybe; + depositPoolStatsConnection: DepositPoolStatsConnection; errorEventById?: Maybe; errorEvents: Array; errorEventsConnection: ErrorEventsConnection; @@ -2541,6 +3106,9 @@ export type Query = { executedReversibleTransferById?: Maybe; executedReversibleTransfers: Array; executedReversibleTransfersConnection: ExecutedReversibleTransfersConnection; + extrinsicById?: Maybe; + extrinsics: Array; + extrinsicsConnection: ExtrinsicsConnection; highSecuritySetById?: Maybe; highSecuritySets: Array; highSecuritySetsConnection: HighSecuritySetsConnection; @@ -2550,6 +3118,7 @@ export type Query = { minerStats: Array; minerStatsById?: Maybe; minerStatsConnection: MinerStatsConnection; + nullifiersByPrefix: NullifiersByPrefixResponse; scheduledReversibleTransferById?: Maybe; scheduledReversibleTransfers: Array; scheduledReversibleTransfersConnection: ScheduledReversibleTransfersConnection; @@ -2558,6 +3127,15 @@ export type Query = { transfers: Array; transfersByHashPrefix: TransfersByPrefixResult; transfersConnection: TransfersConnection; + wormholeExtrinsicById?: Maybe; + wormholeExtrinsics: Array; + wormholeExtrinsicsConnection: WormholeExtrinsicsConnection; + wormholeNullifierById?: Maybe; + wormholeNullifiers: Array; + wormholeNullifiersConnection: WormholeNullifiersConnection; + wormholeOutputById?: Maybe; + wormholeOutputs: Array; + wormholeOutputsConnection: WormholeOutputsConnection; }; export type QueryAccountByIdArgs = { @@ -2650,6 +3228,24 @@ export type QueryCancelledReversibleTransfersConnectionArgs = { where?: InputMaybe; }; +export type QueryDepositPoolStatsArgs = { + limit?: InputMaybe; + offset?: InputMaybe; + orderBy?: InputMaybe>; + where?: InputMaybe; +}; + +export type QueryDepositPoolStatsByIdArgs = { + id: Scalars['String']['input']; +}; + +export type QueryDepositPoolStatsConnectionArgs = { + after?: InputMaybe; + first?: InputMaybe; + orderBy: Array; + where?: InputMaybe; +}; + export type QueryErrorEventByIdArgs = { id: Scalars['String']['input']; }; @@ -2704,6 +3300,24 @@ export type QueryExecutedReversibleTransfersConnectionArgs = { 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']; }; @@ -2758,6 +3372,10 @@ export type QueryMinerStatsConnectionArgs = { where?: InputMaybe; }; +export type QueryNullifiersByPrefixArgs = { + input: NullifiersByPrefixInput; +}; + export type QueryScheduledReversibleTransferByIdArgs = { id: Scalars['String']['input']; }; @@ -2798,12 +3416,67 @@ export type QueryTransfersConnectionArgs = { where?: InputMaybe; }; +export type QueryWormholeExtrinsicByIdArgs = { + id: Scalars['String']['input']; +}; + +export type QueryWormholeExtrinsicsArgs = { + limit?: InputMaybe; + offset?: InputMaybe; + orderBy?: InputMaybe>; + where?: InputMaybe; +}; + +export type QueryWormholeExtrinsicsConnectionArgs = { + after?: InputMaybe; + first?: InputMaybe; + orderBy: Array; + where?: InputMaybe; +}; + +export type QueryWormholeNullifierByIdArgs = { + id: Scalars['String']['input']; +}; + +export type QueryWormholeNullifiersArgs = { + limit?: InputMaybe; + offset?: InputMaybe; + orderBy?: InputMaybe>; + where?: InputMaybe; +}; + +export type QueryWormholeNullifiersConnectionArgs = { + after?: InputMaybe; + first?: InputMaybe; + orderBy: Array; + where?: InputMaybe; +}; + +export type QueryWormholeOutputByIdArgs = { + id: Scalars['String']['input']; +}; + +export type QueryWormholeOutputsArgs = { + limit?: InputMaybe; + offset?: InputMaybe; + orderBy?: InputMaybe>; + where?: InputMaybe; +}; + +export type QueryWormholeOutputsConnectionArgs = { + after?: InputMaybe; + first?: InputMaybe; + orderBy: Array; + where?: InputMaybe; +}; + export type ScheduledReversibleTransfer = { __typename?: 'ScheduledReversibleTransfer'; amount: Scalars['BigInt']['output']; block: Block; event?: Maybe; - extrinsicHash?: Maybe; + /** Link to the extrinsic that scheduled this transfer */ + extrinsic?: Maybe; fee: Scalars['BigInt']['output']; from: Account; id: Scalars['String']['output']; @@ -2856,12 +3529,6 @@ export enum ScheduledReversibleTransferOrderByInput { 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', @@ -2880,12 +3547,54 @@ export enum ScheduledReversibleTransferOrderByInput { 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', FeeAsc = 'fee_ASC', FeeAscNullsFirst = 'fee_ASC_NULLS_FIRST', FeeAscNullsLast = 'fee_ASC_NULLS_LAST', @@ -2910,12 +3619,24 @@ export enum ScheduledReversibleTransferOrderByInput { FromIdDesc = 'from_id_DESC', FromIdDescNullsFirst = 'from_id_DESC_NULLS_FIRST', FromIdDescNullsLast = 'from_id_DESC_NULLS_LAST', + FromIsDepositOnlyAsc = 'from_isDepositOnly_ASC', + FromIsDepositOnlyAscNullsFirst = 'from_isDepositOnly_ASC_NULLS_FIRST', + FromIsDepositOnlyAscNullsLast = 'from_isDepositOnly_ASC_NULLS_LAST', + FromIsDepositOnlyDesc = 'from_isDepositOnly_DESC', + FromIsDepositOnlyDescNullsFirst = 'from_isDepositOnly_DESC_NULLS_FIRST', + FromIsDepositOnlyDescNullsLast = 'from_isDepositOnly_DESC_NULLS_LAST', FromLastUpdatedAsc = 'from_lastUpdated_ASC', FromLastUpdatedAscNullsFirst = 'from_lastUpdated_ASC_NULLS_FIRST', FromLastUpdatedAscNullsLast = 'from_lastUpdated_ASC_NULLS_LAST', FromLastUpdatedDesc = 'from_lastUpdated_DESC', FromLastUpdatedDescNullsFirst = 'from_lastUpdated_DESC_NULLS_FIRST', FromLastUpdatedDescNullsLast = 'from_lastUpdated_DESC_NULLS_LAST', + FromPrivacyDepositsAsc = 'from_privacyDeposits_ASC', + FromPrivacyDepositsAscNullsFirst = 'from_privacyDeposits_ASC_NULLS_FIRST', + FromPrivacyDepositsAscNullsLast = 'from_privacyDeposits_ASC_NULLS_LAST', + FromPrivacyDepositsDesc = 'from_privacyDeposits_DESC', + FromPrivacyDepositsDescNullsFirst = 'from_privacyDeposits_DESC_NULLS_FIRST', + FromPrivacyDepositsDescNullsLast = 'from_privacyDeposits_DESC_NULLS_LAST', FromReservedAsc = 'from_reserved_ASC', FromReservedAscNullsFirst = 'from_reserved_ASC_NULLS_FIRST', FromReservedAscNullsLast = 'from_reserved_ASC_NULLS_LAST', @@ -2958,12 +3679,24 @@ export enum ScheduledReversibleTransferOrderByInput { ToIdDesc = 'to_id_DESC', ToIdDescNullsFirst = 'to_id_DESC_NULLS_FIRST', ToIdDescNullsLast = 'to_id_DESC_NULLS_LAST', + ToIsDepositOnlyAsc = 'to_isDepositOnly_ASC', + ToIsDepositOnlyAscNullsFirst = 'to_isDepositOnly_ASC_NULLS_FIRST', + ToIsDepositOnlyAscNullsLast = 'to_isDepositOnly_ASC_NULLS_LAST', + ToIsDepositOnlyDesc = 'to_isDepositOnly_DESC', + ToIsDepositOnlyDescNullsFirst = 'to_isDepositOnly_DESC_NULLS_FIRST', + ToIsDepositOnlyDescNullsLast = 'to_isDepositOnly_DESC_NULLS_LAST', ToLastUpdatedAsc = 'to_lastUpdated_ASC', ToLastUpdatedAscNullsFirst = 'to_lastUpdated_ASC_NULLS_FIRST', ToLastUpdatedAscNullsLast = 'to_lastUpdated_ASC_NULLS_LAST', ToLastUpdatedDesc = 'to_lastUpdated_DESC', ToLastUpdatedDescNullsFirst = 'to_lastUpdated_DESC_NULLS_FIRST', ToLastUpdatedDescNullsLast = 'to_lastUpdated_DESC_NULLS_LAST', + ToPrivacyDepositsAsc = 'to_privacyDeposits_ASC', + ToPrivacyDepositsAscNullsFirst = 'to_privacyDeposits_ASC_NULLS_FIRST', + ToPrivacyDepositsAscNullsLast = 'to_privacyDeposits_ASC_NULLS_LAST', + ToPrivacyDepositsDesc = 'to_privacyDeposits_DESC', + ToPrivacyDepositsDescNullsFirst = 'to_privacyDeposits_DESC_NULLS_FIRST', + ToPrivacyDepositsDescNullsLast = 'to_privacyDeposits_DESC_NULLS_LAST', ToReservedAsc = 'to_reserved_ASC', ToReservedAscNullsFirst = 'to_reserved_ASC_NULLS_FIRST', ToReservedAscNullsLast = 'to_reserved_ASC_NULLS_LAST', @@ -2994,25 +3727,8 @@ export type ScheduledReversibleTransferWhereInput = { block_isNull?: 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; fee_eq?: InputMaybe; fee_gt?: InputMaybe; fee_gte?: InputMaybe; @@ -3105,12 +3821,15 @@ 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 */ fromHash: Scalars['String']['output']; id: Scalars['String']['output']; + /** Index in the ZK trie for Merkle proof generation */ + leafIndex: Scalars['BigInt']['output']; timestamp: Scalars['DateTime']['output']; to: Account; /** Blake3 hash of raw 'to' address bytes (hex string) for privacy-preserving prefix queries */ @@ -3160,12 +3879,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', @@ -3202,12 +3915,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', @@ -3238,12 +3993,24 @@ export enum TransferOrderByInput { FromIdDesc = 'from_id_DESC', FromIdDescNullsFirst = 'from_id_DESC_NULLS_FIRST', FromIdDescNullsLast = 'from_id_DESC_NULLS_LAST', + FromIsDepositOnlyAsc = 'from_isDepositOnly_ASC', + FromIsDepositOnlyAscNullsFirst = 'from_isDepositOnly_ASC_NULLS_FIRST', + FromIsDepositOnlyAscNullsLast = 'from_isDepositOnly_ASC_NULLS_LAST', + FromIsDepositOnlyDesc = 'from_isDepositOnly_DESC', + FromIsDepositOnlyDescNullsFirst = 'from_isDepositOnly_DESC_NULLS_FIRST', + FromIsDepositOnlyDescNullsLast = 'from_isDepositOnly_DESC_NULLS_LAST', FromLastUpdatedAsc = 'from_lastUpdated_ASC', FromLastUpdatedAscNullsFirst = 'from_lastUpdated_ASC_NULLS_FIRST', FromLastUpdatedAscNullsLast = 'from_lastUpdated_ASC_NULLS_LAST', FromLastUpdatedDesc = 'from_lastUpdated_DESC', FromLastUpdatedDescNullsFirst = 'from_lastUpdated_DESC_NULLS_FIRST', FromLastUpdatedDescNullsLast = 'from_lastUpdated_DESC_NULLS_LAST', + FromPrivacyDepositsAsc = 'from_privacyDeposits_ASC', + FromPrivacyDepositsAscNullsFirst = 'from_privacyDeposits_ASC_NULLS_FIRST', + FromPrivacyDepositsAscNullsLast = 'from_privacyDeposits_ASC_NULLS_LAST', + FromPrivacyDepositsDesc = 'from_privacyDeposits_DESC', + FromPrivacyDepositsDescNullsFirst = 'from_privacyDeposits_DESC_NULLS_FIRST', + FromPrivacyDepositsDescNullsLast = 'from_privacyDeposits_DESC_NULLS_LAST', FromReservedAsc = 'from_reserved_ASC', FromReservedAscNullsFirst = 'from_reserved_ASC_NULLS_FIRST', FromReservedAscNullsLast = 'from_reserved_ASC_NULLS_LAST', @@ -3256,6 +4023,12 @@ export enum TransferOrderByInput { IdDesc = 'id_DESC', IdDescNullsFirst = 'id_DESC_NULLS_FIRST', IdDescNullsLast = 'id_DESC_NULLS_LAST', + LeafIndexAsc = 'leafIndex_ASC', + LeafIndexAscNullsFirst = 'leafIndex_ASC_NULLS_FIRST', + LeafIndexAscNullsLast = 'leafIndex_ASC_NULLS_LAST', + LeafIndexDesc = 'leafIndex_DESC', + LeafIndexDescNullsFirst = 'leafIndex_DESC_NULLS_FIRST', + LeafIndexDescNullsLast = 'leafIndex_DESC_NULLS_LAST', TimestampAsc = 'timestamp_ASC', TimestampAscNullsFirst = 'timestamp_ASC_NULLS_FIRST', TimestampAscNullsLast = 'timestamp_ASC_NULLS_LAST', @@ -3286,12 +4059,24 @@ export enum TransferOrderByInput { ToIdDesc = 'to_id_DESC', ToIdDescNullsFirst = 'to_id_DESC_NULLS_FIRST', ToIdDescNullsLast = 'to_id_DESC_NULLS_LAST', + ToIsDepositOnlyAsc = 'to_isDepositOnly_ASC', + ToIsDepositOnlyAscNullsFirst = 'to_isDepositOnly_ASC_NULLS_FIRST', + ToIsDepositOnlyAscNullsLast = 'to_isDepositOnly_ASC_NULLS_LAST', + ToIsDepositOnlyDesc = 'to_isDepositOnly_DESC', + ToIsDepositOnlyDescNullsFirst = 'to_isDepositOnly_DESC_NULLS_FIRST', + ToIsDepositOnlyDescNullsLast = 'to_isDepositOnly_DESC_NULLS_LAST', ToLastUpdatedAsc = 'to_lastUpdated_ASC', ToLastUpdatedAscNullsFirst = 'to_lastUpdated_ASC_NULLS_FIRST', ToLastUpdatedAscNullsLast = 'to_lastUpdated_ASC_NULLS_LAST', ToLastUpdatedDesc = 'to_lastUpdated_DESC', ToLastUpdatedDescNullsFirst = 'to_lastUpdated_DESC_NULLS_FIRST', ToLastUpdatedDescNullsLast = 'to_lastUpdated_DESC_NULLS_LAST', + ToPrivacyDepositsAsc = 'to_privacyDeposits_ASC', + ToPrivacyDepositsAscNullsFirst = 'to_privacyDeposits_ASC_NULLS_FIRST', + ToPrivacyDepositsAscNullsLast = 'to_privacyDeposits_ASC_NULLS_LAST', + ToPrivacyDepositsDesc = 'to_privacyDeposits_DESC', + ToPrivacyDepositsDescNullsFirst = 'to_privacyDeposits_DESC_NULLS_FIRST', + ToPrivacyDepositsDescNullsLast = 'to_privacyDeposits_DESC_NULLS_LAST', ToReservedAsc = 'to_reserved_ASC', ToReservedAscNullsFirst = 'to_reserved_ASC_NULLS_FIRST', ToReservedAscNullsLast = 'to_reserved_ASC_NULLS_LAST', @@ -3318,25 +4103,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; @@ -3382,6 +4150,15 @@ export type TransferWhereInput = { id_not_in?: InputMaybe>; id_not_startsWith?: InputMaybe; id_startsWith?: InputMaybe; + leafIndex_eq?: InputMaybe; + leafIndex_gt?: InputMaybe; + leafIndex_gte?: InputMaybe; + leafIndex_in?: InputMaybe>; + leafIndex_isNull?: InputMaybe; + leafIndex_lt?: InputMaybe; + leafIndex_lte?: InputMaybe; + leafIndex_not_eq?: InputMaybe; + leafIndex_not_in?: InputMaybe>; timestamp_eq?: InputMaybe; timestamp_gt?: InputMaybe; timestamp_gte?: InputMaybe; @@ -3451,319 +4228,8814 @@ export type TransfersConnection = { totalCount: Scalars['Int']['output']; }; -export type GetErrorEventsQueryVariables = Exact<{ +/** A single wormhole proof verification extrinsic, containing one or more exit outputs. */ +export type WormholeExtrinsic = { + __typename?: 'WormholeExtrinsic'; + block: Block; + /** Link to the generic Extrinsic entity */ + extrinsic?: Maybe; + id: Scalars['String']['output']; + /** Number of non-zero exit outputs */ + outputCount: Scalars['Int']['output']; + /** Individual exit outputs in this extrinsic */ + outputs: Array; + /** Pool snapshot at time of proof verification (JSON bucket data) */ + poolSnapshot: Scalars['String']['output']; + /** Human-readable privacy label */ + privacyLabel: Scalars['String']['output']; + /** Privacy score at 0.01 DEV precision, in bits */ + privacyScore: Scalars['Float']['output']; + /** Privacy score with 0.1% sacrifice, in bits */ + privacyScore01Pct: Scalars['Float']['output']; + /** Privacy score with 1% sacrifice, in bits */ + privacyScore1Pct: Scalars['Float']['output']; + /** Privacy score with 5% sacrifice, in bits */ + privacyScore5Pct: Scalars['Float']['output']; + timestamp: Scalars['DateTime']['output']; + /** Total amount across all outputs in this extrinsic */ + totalAmount: Scalars['BigInt']['output']; +}; + +/** A single wormhole proof verification extrinsic, containing one or more exit outputs. */ +export type WormholeExtrinsicOutputsArgs = { limit?: InputMaybe; offset?: InputMaybe; - orderBy?: InputMaybe | ErrorEventOrderByInput>; - where?: InputMaybe; -}>; + orderBy?: InputMaybe>; + where?: InputMaybe; +}; -export type GetErrorEventsQuery = { - __typename?: 'Query'; - errorEvents: Array<{ - __typename?: 'ErrorEvent'; - errorDocs?: string | null; - errorModule?: string | null; - errorName?: string | null; - errorType: string; - extrinsicHash?: string | null; - id: string; - timestamp: any; - block: { __typename?: 'Block'; height: number }; - }>; - meta: { __typename?: 'ErrorEventsConnection'; totalCount: number }; +export type WormholeExtrinsicEdge = { + __typename?: 'WormholeExtrinsicEdge'; + cursor: Scalars['String']['output']; + node: WormholeExtrinsic; }; -export type GetRecentErrorEventsQueryVariables = Exact<{ - limit?: InputMaybe; - offset?: InputMaybe; - orderBy?: InputMaybe | ErrorEventOrderByInput>; - where?: InputMaybe; -}>; +export enum WormholeExtrinsicOrderByInput { + BlockHashAsc = 'block_hash_ASC', + BlockHashAscNullsFirst = 'block_hash_ASC_NULLS_FIRST', + BlockHashAscNullsLast = 'block_hash_ASC_NULLS_LAST', + BlockHashDesc = 'block_hash_DESC', + BlockHashDescNullsFirst = 'block_hash_DESC_NULLS_FIRST', + BlockHashDescNullsLast = 'block_hash_DESC_NULLS_LAST', + BlockHeightAsc = 'block_height_ASC', + BlockHeightAscNullsFirst = 'block_height_ASC_NULLS_FIRST', + BlockHeightAscNullsLast = 'block_height_ASC_NULLS_LAST', + BlockHeightDesc = 'block_height_DESC', + BlockHeightDescNullsFirst = 'block_height_DESC_NULLS_FIRST', + BlockHeightDescNullsLast = 'block_height_DESC_NULLS_LAST', + BlockIdAsc = 'block_id_ASC', + BlockIdAscNullsFirst = 'block_id_ASC_NULLS_FIRST', + BlockIdAscNullsLast = 'block_id_ASC_NULLS_LAST', + BlockIdDesc = 'block_id_DESC', + BlockIdDescNullsFirst = 'block_id_DESC_NULLS_FIRST', + BlockIdDescNullsLast = 'block_id_DESC_NULLS_LAST', + BlockRewardAsc = 'block_reward_ASC', + BlockRewardAscNullsFirst = 'block_reward_ASC_NULLS_FIRST', + BlockRewardAscNullsLast = 'block_reward_ASC_NULLS_LAST', + BlockRewardDesc = 'block_reward_DESC', + BlockRewardDescNullsFirst = 'block_reward_DESC_NULLS_FIRST', + BlockRewardDescNullsLast = 'block_reward_DESC_NULLS_LAST', + BlockTimestampAsc = 'block_timestamp_ASC', + BlockTimestampAscNullsFirst = 'block_timestamp_ASC_NULLS_FIRST', + BlockTimestampAscNullsLast = 'block_timestamp_ASC_NULLS_LAST', + BlockTimestampDesc = 'block_timestamp_DESC', + BlockTimestampDescNullsFirst = 'block_timestamp_DESC_NULLS_FIRST', + BlockTimestampDescNullsLast = 'block_timestamp_DESC_NULLS_LAST', + ExtrinsicArgsAsc = 'extrinsic_args_ASC', + ExtrinsicArgsAscNullsFirst = 'extrinsic_args_ASC_NULLS_FIRST', + ExtrinsicArgsAscNullsLast = 'extrinsic_args_ASC_NULLS_LAST', + ExtrinsicArgsDesc = 'extrinsic_args_DESC', + ExtrinsicArgsDescNullsFirst = 'extrinsic_args_DESC_NULLS_FIRST', + ExtrinsicArgsDescNullsLast = 'extrinsic_args_DESC_NULLS_LAST', + ExtrinsicCallAsc = 'extrinsic_call_ASC', + ExtrinsicCallAscNullsFirst = 'extrinsic_call_ASC_NULLS_FIRST', + ExtrinsicCallAscNullsLast = 'extrinsic_call_ASC_NULLS_LAST', + ExtrinsicCallDesc = 'extrinsic_call_DESC', + ExtrinsicCallDescNullsFirst = 'extrinsic_call_DESC_NULLS_FIRST', + ExtrinsicCallDescNullsLast = 'extrinsic_call_DESC_NULLS_LAST', + ExtrinsicFeeAsc = 'extrinsic_fee_ASC', + ExtrinsicFeeAscNullsFirst = 'extrinsic_fee_ASC_NULLS_FIRST', + ExtrinsicFeeAscNullsLast = 'extrinsic_fee_ASC_NULLS_LAST', + ExtrinsicFeeDesc = 'extrinsic_fee_DESC', + ExtrinsicFeeDescNullsFirst = 'extrinsic_fee_DESC_NULLS_FIRST', + ExtrinsicFeeDescNullsLast = 'extrinsic_fee_DESC_NULLS_LAST', + ExtrinsicIdAsc = 'extrinsic_id_ASC', + ExtrinsicIdAscNullsFirst = 'extrinsic_id_ASC_NULLS_FIRST', + ExtrinsicIdAscNullsLast = 'extrinsic_id_ASC_NULLS_LAST', + ExtrinsicIdDesc = 'extrinsic_id_DESC', + ExtrinsicIdDescNullsFirst = 'extrinsic_id_DESC_NULLS_FIRST', + ExtrinsicIdDescNullsLast = 'extrinsic_id_DESC_NULLS_LAST', + ExtrinsicIndexInBlockAsc = 'extrinsic_indexInBlock_ASC', + ExtrinsicIndexInBlockAscNullsFirst = 'extrinsic_indexInBlock_ASC_NULLS_FIRST', + ExtrinsicIndexInBlockAscNullsLast = 'extrinsic_indexInBlock_ASC_NULLS_LAST', + ExtrinsicIndexInBlockDesc = 'extrinsic_indexInBlock_DESC', + ExtrinsicIndexInBlockDescNullsFirst = 'extrinsic_indexInBlock_DESC_NULLS_FIRST', + ExtrinsicIndexInBlockDescNullsLast = 'extrinsic_indexInBlock_DESC_NULLS_LAST', + ExtrinsicPalletAsc = 'extrinsic_pallet_ASC', + ExtrinsicPalletAscNullsFirst = 'extrinsic_pallet_ASC_NULLS_FIRST', + ExtrinsicPalletAscNullsLast = 'extrinsic_pallet_ASC_NULLS_LAST', + ExtrinsicPalletDesc = 'extrinsic_pallet_DESC', + ExtrinsicPalletDescNullsFirst = 'extrinsic_pallet_DESC_NULLS_FIRST', + ExtrinsicPalletDescNullsLast = 'extrinsic_pallet_DESC_NULLS_LAST', + ExtrinsicSuccessAsc = 'extrinsic_success_ASC', + ExtrinsicSuccessAscNullsFirst = 'extrinsic_success_ASC_NULLS_FIRST', + ExtrinsicSuccessAscNullsLast = 'extrinsic_success_ASC_NULLS_LAST', + ExtrinsicSuccessDesc = 'extrinsic_success_DESC', + ExtrinsicSuccessDescNullsFirst = 'extrinsic_success_DESC_NULLS_FIRST', + ExtrinsicSuccessDescNullsLast = 'extrinsic_success_DESC_NULLS_LAST', + ExtrinsicTimestampAsc = 'extrinsic_timestamp_ASC', + ExtrinsicTimestampAscNullsFirst = 'extrinsic_timestamp_ASC_NULLS_FIRST', + ExtrinsicTimestampAscNullsLast = 'extrinsic_timestamp_ASC_NULLS_LAST', + ExtrinsicTimestampDesc = 'extrinsic_timestamp_DESC', + ExtrinsicTimestampDescNullsFirst = 'extrinsic_timestamp_DESC_NULLS_FIRST', + ExtrinsicTimestampDescNullsLast = 'extrinsic_timestamp_DESC_NULLS_LAST', + IdAsc = 'id_ASC', + IdAscNullsFirst = 'id_ASC_NULLS_FIRST', + IdAscNullsLast = 'id_ASC_NULLS_LAST', + IdDesc = 'id_DESC', + IdDescNullsFirst = 'id_DESC_NULLS_FIRST', + IdDescNullsLast = 'id_DESC_NULLS_LAST', + OutputCountAsc = 'outputCount_ASC', + OutputCountAscNullsFirst = 'outputCount_ASC_NULLS_FIRST', + OutputCountAscNullsLast = 'outputCount_ASC_NULLS_LAST', + OutputCountDesc = 'outputCount_DESC', + OutputCountDescNullsFirst = 'outputCount_DESC_NULLS_FIRST', + OutputCountDescNullsLast = 'outputCount_DESC_NULLS_LAST', + PoolSnapshotAsc = 'poolSnapshot_ASC', + PoolSnapshotAscNullsFirst = 'poolSnapshot_ASC_NULLS_FIRST', + PoolSnapshotAscNullsLast = 'poolSnapshot_ASC_NULLS_LAST', + PoolSnapshotDesc = 'poolSnapshot_DESC', + PoolSnapshotDescNullsFirst = 'poolSnapshot_DESC_NULLS_FIRST', + PoolSnapshotDescNullsLast = 'poolSnapshot_DESC_NULLS_LAST', + PrivacyLabelAsc = 'privacyLabel_ASC', + PrivacyLabelAscNullsFirst = 'privacyLabel_ASC_NULLS_FIRST', + PrivacyLabelAscNullsLast = 'privacyLabel_ASC_NULLS_LAST', + PrivacyLabelDesc = 'privacyLabel_DESC', + PrivacyLabelDescNullsFirst = 'privacyLabel_DESC_NULLS_FIRST', + PrivacyLabelDescNullsLast = 'privacyLabel_DESC_NULLS_LAST', + PrivacyScore01PctAsc = 'privacyScore01Pct_ASC', + PrivacyScore01PctAscNullsFirst = 'privacyScore01Pct_ASC_NULLS_FIRST', + PrivacyScore01PctAscNullsLast = 'privacyScore01Pct_ASC_NULLS_LAST', + PrivacyScore01PctDesc = 'privacyScore01Pct_DESC', + PrivacyScore01PctDescNullsFirst = 'privacyScore01Pct_DESC_NULLS_FIRST', + PrivacyScore01PctDescNullsLast = 'privacyScore01Pct_DESC_NULLS_LAST', + PrivacyScore1PctAsc = 'privacyScore1Pct_ASC', + PrivacyScore1PctAscNullsFirst = 'privacyScore1Pct_ASC_NULLS_FIRST', + PrivacyScore1PctAscNullsLast = 'privacyScore1Pct_ASC_NULLS_LAST', + PrivacyScore1PctDesc = 'privacyScore1Pct_DESC', + PrivacyScore1PctDescNullsFirst = 'privacyScore1Pct_DESC_NULLS_FIRST', + PrivacyScore1PctDescNullsLast = 'privacyScore1Pct_DESC_NULLS_LAST', + PrivacyScore5PctAsc = 'privacyScore5Pct_ASC', + PrivacyScore5PctAscNullsFirst = 'privacyScore5Pct_ASC_NULLS_FIRST', + PrivacyScore5PctAscNullsLast = 'privacyScore5Pct_ASC_NULLS_LAST', + PrivacyScore5PctDesc = 'privacyScore5Pct_DESC', + PrivacyScore5PctDescNullsFirst = 'privacyScore5Pct_DESC_NULLS_FIRST', + PrivacyScore5PctDescNullsLast = 'privacyScore5Pct_DESC_NULLS_LAST', + PrivacyScoreAsc = 'privacyScore_ASC', + PrivacyScoreAscNullsFirst = 'privacyScore_ASC_NULLS_FIRST', + PrivacyScoreAscNullsLast = 'privacyScore_ASC_NULLS_LAST', + PrivacyScoreDesc = 'privacyScore_DESC', + PrivacyScoreDescNullsFirst = 'privacyScore_DESC_NULLS_FIRST', + PrivacyScoreDescNullsLast = 'privacyScore_DESC_NULLS_LAST', + TimestampAsc = 'timestamp_ASC', + TimestampAscNullsFirst = 'timestamp_ASC_NULLS_FIRST', + TimestampAscNullsLast = 'timestamp_ASC_NULLS_LAST', + TimestampDesc = 'timestamp_DESC', + TimestampDescNullsFirst = 'timestamp_DESC_NULLS_FIRST', + TimestampDescNullsLast = 'timestamp_DESC_NULLS_LAST', + TotalAmountAsc = 'totalAmount_ASC', + TotalAmountAscNullsFirst = 'totalAmount_ASC_NULLS_FIRST', + TotalAmountAscNullsLast = 'totalAmount_ASC_NULLS_LAST', + TotalAmountDesc = 'totalAmount_DESC', + TotalAmountDescNullsFirst = 'totalAmount_DESC_NULLS_FIRST', + TotalAmountDescNullsLast = 'totalAmount_DESC_NULLS_LAST' +} -export type GetRecentErrorEventsQuery = { - __typename?: 'Query'; - errorEvents: Array<{ - __typename?: 'ErrorEvent'; - errorDocs?: string | null; - errorModule?: string | null; - errorName?: string | null; - errorType: string; - extrinsicHash?: string | null; - id: string; - timestamp: any; - block: { __typename?: 'Block'; height: number }; - }>; +export type WormholeExtrinsicWhereInput = { + AND?: InputMaybe>; + OR?: InputMaybe>; + block?: InputMaybe; + block_isNull?: InputMaybe; + extrinsic?: InputMaybe; + extrinsic_isNull?: InputMaybe; + id_contains?: InputMaybe; + id_containsInsensitive?: InputMaybe; + id_endsWith?: InputMaybe; + id_eq?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_isNull?: InputMaybe; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not_contains?: InputMaybe; + id_not_containsInsensitive?: InputMaybe; + id_not_endsWith?: InputMaybe; + id_not_eq?: InputMaybe; + id_not_in?: InputMaybe>; + id_not_startsWith?: InputMaybe; + id_startsWith?: InputMaybe; + outputCount_eq?: InputMaybe; + outputCount_gt?: InputMaybe; + outputCount_gte?: InputMaybe; + outputCount_in?: InputMaybe>; + outputCount_isNull?: InputMaybe; + outputCount_lt?: InputMaybe; + outputCount_lte?: InputMaybe; + outputCount_not_eq?: InputMaybe; + outputCount_not_in?: InputMaybe>; + outputs_every?: InputMaybe; + outputs_none?: InputMaybe; + outputs_some?: InputMaybe; + poolSnapshot_contains?: InputMaybe; + poolSnapshot_containsInsensitive?: InputMaybe; + poolSnapshot_endsWith?: InputMaybe; + poolSnapshot_eq?: InputMaybe; + poolSnapshot_gt?: InputMaybe; + poolSnapshot_gte?: InputMaybe; + poolSnapshot_in?: InputMaybe>; + poolSnapshot_isNull?: InputMaybe; + poolSnapshot_lt?: InputMaybe; + poolSnapshot_lte?: InputMaybe; + poolSnapshot_not_contains?: InputMaybe; + poolSnapshot_not_containsInsensitive?: InputMaybe; + poolSnapshot_not_endsWith?: InputMaybe; + poolSnapshot_not_eq?: InputMaybe; + poolSnapshot_not_in?: InputMaybe>; + poolSnapshot_not_startsWith?: InputMaybe; + poolSnapshot_startsWith?: InputMaybe; + privacyLabel_contains?: InputMaybe; + privacyLabel_containsInsensitive?: InputMaybe; + privacyLabel_endsWith?: InputMaybe; + privacyLabel_eq?: InputMaybe; + privacyLabel_gt?: InputMaybe; + privacyLabel_gte?: InputMaybe; + privacyLabel_in?: InputMaybe>; + privacyLabel_isNull?: InputMaybe; + privacyLabel_lt?: InputMaybe; + privacyLabel_lte?: InputMaybe; + privacyLabel_not_contains?: InputMaybe; + privacyLabel_not_containsInsensitive?: InputMaybe; + privacyLabel_not_endsWith?: InputMaybe; + privacyLabel_not_eq?: InputMaybe; + privacyLabel_not_in?: InputMaybe>; + privacyLabel_not_startsWith?: InputMaybe; + privacyLabel_startsWith?: InputMaybe; + privacyScore01Pct_eq?: InputMaybe; + privacyScore01Pct_gt?: InputMaybe; + privacyScore01Pct_gte?: InputMaybe; + privacyScore01Pct_in?: InputMaybe>; + privacyScore01Pct_isNull?: InputMaybe; + privacyScore01Pct_lt?: InputMaybe; + privacyScore01Pct_lte?: InputMaybe; + privacyScore01Pct_not_eq?: InputMaybe; + privacyScore01Pct_not_in?: InputMaybe>; + privacyScore1Pct_eq?: InputMaybe; + privacyScore1Pct_gt?: InputMaybe; + privacyScore1Pct_gte?: InputMaybe; + privacyScore1Pct_in?: InputMaybe>; + privacyScore1Pct_isNull?: InputMaybe; + privacyScore1Pct_lt?: InputMaybe; + privacyScore1Pct_lte?: InputMaybe; + privacyScore1Pct_not_eq?: InputMaybe; + privacyScore1Pct_not_in?: InputMaybe>; + privacyScore5Pct_eq?: InputMaybe; + privacyScore5Pct_gt?: InputMaybe; + privacyScore5Pct_gte?: InputMaybe; + privacyScore5Pct_in?: InputMaybe>; + privacyScore5Pct_isNull?: InputMaybe; + privacyScore5Pct_lt?: InputMaybe; + privacyScore5Pct_lte?: InputMaybe; + privacyScore5Pct_not_eq?: InputMaybe; + privacyScore5Pct_not_in?: InputMaybe>; + privacyScore_eq?: InputMaybe; + privacyScore_gt?: InputMaybe; + privacyScore_gte?: InputMaybe; + privacyScore_in?: InputMaybe>; + privacyScore_isNull?: InputMaybe; + privacyScore_lt?: InputMaybe; + privacyScore_lte?: InputMaybe; + privacyScore_not_eq?: InputMaybe; + privacyScore_not_in?: InputMaybe>; + timestamp_eq?: InputMaybe; + timestamp_gt?: InputMaybe; + timestamp_gte?: InputMaybe; + timestamp_in?: InputMaybe>; + timestamp_isNull?: InputMaybe; + timestamp_lt?: InputMaybe; + timestamp_lte?: InputMaybe; + timestamp_not_eq?: InputMaybe; + timestamp_not_in?: InputMaybe>; + totalAmount_eq?: InputMaybe; + totalAmount_gt?: InputMaybe; + totalAmount_gte?: InputMaybe; + totalAmount_in?: InputMaybe>; + totalAmount_isNull?: InputMaybe; + totalAmount_lt?: InputMaybe; + totalAmount_lte?: InputMaybe; + totalAmount_not_eq?: InputMaybe; + totalAmount_not_in?: InputMaybe>; }; -export type GetErrorEventsStatsQueryVariables = Exact<{ - startDate: Scalars['DateTime']['input']; - endDate: Scalars['DateTime']['input']; -}>; - -export type GetErrorEventsStatsQuery = { - __typename?: 'Query'; - last24Hour: { __typename?: 'ErrorEventsConnection'; totalCount: number }; - allTime: { __typename?: 'ErrorEventsConnection'; totalCount: number }; +export type WormholeExtrinsicsConnection = { + __typename?: 'WormholeExtrinsicsConnection'; + edges: Array; + pageInfo: PageInfo; + totalCount: Scalars['Int']['output']; }; -export type GetErrorEventByHashQueryVariables = Exact<{ - hash: Scalars['String']['input']; -}>; +/** A nullifier consumed by a wormhole proof verification. */ +export type WormholeNullifier = { + __typename?: 'WormholeNullifier'; + /** Block where the nullifier was consumed */ + block: Block; + id: Scalars['String']['output']; + /** The nullifier bytes as hex */ + nullifier: Scalars['String']['output']; + /** Blake3 hash of the nullifier for prefix queries */ + nullifierHash: Scalars['String']['output']; + timestamp: Scalars['DateTime']['output']; + /** The wormhole extrinsic that consumed this nullifier */ + wormholeExtrinsic: WormholeExtrinsic; +}; -export type GetErrorEventByHashQuery = { - __typename?: 'Query'; - errorEvents: Array<{ - __typename?: 'ErrorEvent'; - errorDocs?: string | null; - errorModule?: string | null; - errorName?: string | null; - errorType: string; - extrinsicHash?: string | null; - id: string; - timestamp: any; - block: { __typename?: 'Block'; height: number }; - }>; +export type WormholeNullifierEdge = { + __typename?: 'WormholeNullifierEdge'; + cursor: Scalars['String']['output']; + node: WormholeNullifier; }; -export type GetHighSecuritySetsQueryVariables = Exact<{ - limit?: InputMaybe; - offset?: InputMaybe; - orderBy?: InputMaybe< - Array | HighSecuritySetOrderByInput - >; - where?: InputMaybe; -}>; +export enum WormholeNullifierOrderByInput { + BlockHashAsc = 'block_hash_ASC', + BlockHashAscNullsFirst = 'block_hash_ASC_NULLS_FIRST', + BlockHashAscNullsLast = 'block_hash_ASC_NULLS_LAST', + BlockHashDesc = 'block_hash_DESC', + BlockHashDescNullsFirst = 'block_hash_DESC_NULLS_FIRST', + BlockHashDescNullsLast = 'block_hash_DESC_NULLS_LAST', + BlockHeightAsc = 'block_height_ASC', + BlockHeightAscNullsFirst = 'block_height_ASC_NULLS_FIRST', + BlockHeightAscNullsLast = 'block_height_ASC_NULLS_LAST', + BlockHeightDesc = 'block_height_DESC', + BlockHeightDescNullsFirst = 'block_height_DESC_NULLS_FIRST', + BlockHeightDescNullsLast = 'block_height_DESC_NULLS_LAST', + BlockIdAsc = 'block_id_ASC', + BlockIdAscNullsFirst = 'block_id_ASC_NULLS_FIRST', + BlockIdAscNullsLast = 'block_id_ASC_NULLS_LAST', + BlockIdDesc = 'block_id_DESC', + BlockIdDescNullsFirst = 'block_id_DESC_NULLS_FIRST', + BlockIdDescNullsLast = 'block_id_DESC_NULLS_LAST', + BlockRewardAsc = 'block_reward_ASC', + BlockRewardAscNullsFirst = 'block_reward_ASC_NULLS_FIRST', + BlockRewardAscNullsLast = 'block_reward_ASC_NULLS_LAST', + BlockRewardDesc = 'block_reward_DESC', + BlockRewardDescNullsFirst = 'block_reward_DESC_NULLS_FIRST', + BlockRewardDescNullsLast = 'block_reward_DESC_NULLS_LAST', + BlockTimestampAsc = 'block_timestamp_ASC', + BlockTimestampAscNullsFirst = 'block_timestamp_ASC_NULLS_FIRST', + BlockTimestampAscNullsLast = 'block_timestamp_ASC_NULLS_LAST', + BlockTimestampDesc = 'block_timestamp_DESC', + BlockTimestampDescNullsFirst = 'block_timestamp_DESC_NULLS_FIRST', + BlockTimestampDescNullsLast = 'block_timestamp_DESC_NULLS_LAST', + IdAsc = 'id_ASC', + IdAscNullsFirst = 'id_ASC_NULLS_FIRST', + IdAscNullsLast = 'id_ASC_NULLS_LAST', + IdDesc = 'id_DESC', + IdDescNullsFirst = 'id_DESC_NULLS_FIRST', + IdDescNullsLast = 'id_DESC_NULLS_LAST', + NullifierHashAsc = 'nullifierHash_ASC', + NullifierHashAscNullsFirst = 'nullifierHash_ASC_NULLS_FIRST', + NullifierHashAscNullsLast = 'nullifierHash_ASC_NULLS_LAST', + NullifierHashDesc = 'nullifierHash_DESC', + NullifierHashDescNullsFirst = 'nullifierHash_DESC_NULLS_FIRST', + NullifierHashDescNullsLast = 'nullifierHash_DESC_NULLS_LAST', + NullifierAsc = 'nullifier_ASC', + NullifierAscNullsFirst = 'nullifier_ASC_NULLS_FIRST', + NullifierAscNullsLast = 'nullifier_ASC_NULLS_LAST', + NullifierDesc = 'nullifier_DESC', + NullifierDescNullsFirst = 'nullifier_DESC_NULLS_FIRST', + NullifierDescNullsLast = 'nullifier_DESC_NULLS_LAST', + TimestampAsc = 'timestamp_ASC', + TimestampAscNullsFirst = 'timestamp_ASC_NULLS_FIRST', + TimestampAscNullsLast = 'timestamp_ASC_NULLS_LAST', + TimestampDesc = 'timestamp_DESC', + TimestampDescNullsFirst = 'timestamp_DESC_NULLS_FIRST', + TimestampDescNullsLast = 'timestamp_DESC_NULLS_LAST', + WormholeExtrinsicIdAsc = 'wormholeExtrinsic_id_ASC', + WormholeExtrinsicIdAscNullsFirst = 'wormholeExtrinsic_id_ASC_NULLS_FIRST', + WormholeExtrinsicIdAscNullsLast = 'wormholeExtrinsic_id_ASC_NULLS_LAST', + WormholeExtrinsicIdDesc = 'wormholeExtrinsic_id_DESC', + WormholeExtrinsicIdDescNullsFirst = 'wormholeExtrinsic_id_DESC_NULLS_FIRST', + WormholeExtrinsicIdDescNullsLast = 'wormholeExtrinsic_id_DESC_NULLS_LAST', + WormholeExtrinsicOutputCountAsc = 'wormholeExtrinsic_outputCount_ASC', + WormholeExtrinsicOutputCountAscNullsFirst = 'wormholeExtrinsic_outputCount_ASC_NULLS_FIRST', + WormholeExtrinsicOutputCountAscNullsLast = 'wormholeExtrinsic_outputCount_ASC_NULLS_LAST', + WormholeExtrinsicOutputCountDesc = 'wormholeExtrinsic_outputCount_DESC', + WormholeExtrinsicOutputCountDescNullsFirst = 'wormholeExtrinsic_outputCount_DESC_NULLS_FIRST', + WormholeExtrinsicOutputCountDescNullsLast = 'wormholeExtrinsic_outputCount_DESC_NULLS_LAST', + WormholeExtrinsicPoolSnapshotAsc = 'wormholeExtrinsic_poolSnapshot_ASC', + WormholeExtrinsicPoolSnapshotAscNullsFirst = 'wormholeExtrinsic_poolSnapshot_ASC_NULLS_FIRST', + WormholeExtrinsicPoolSnapshotAscNullsLast = 'wormholeExtrinsic_poolSnapshot_ASC_NULLS_LAST', + WormholeExtrinsicPoolSnapshotDesc = 'wormholeExtrinsic_poolSnapshot_DESC', + WormholeExtrinsicPoolSnapshotDescNullsFirst = 'wormholeExtrinsic_poolSnapshot_DESC_NULLS_FIRST', + WormholeExtrinsicPoolSnapshotDescNullsLast = 'wormholeExtrinsic_poolSnapshot_DESC_NULLS_LAST', + WormholeExtrinsicPrivacyLabelAsc = 'wormholeExtrinsic_privacyLabel_ASC', + WormholeExtrinsicPrivacyLabelAscNullsFirst = 'wormholeExtrinsic_privacyLabel_ASC_NULLS_FIRST', + WormholeExtrinsicPrivacyLabelAscNullsLast = 'wormholeExtrinsic_privacyLabel_ASC_NULLS_LAST', + WormholeExtrinsicPrivacyLabelDesc = 'wormholeExtrinsic_privacyLabel_DESC', + WormholeExtrinsicPrivacyLabelDescNullsFirst = 'wormholeExtrinsic_privacyLabel_DESC_NULLS_FIRST', + WormholeExtrinsicPrivacyLabelDescNullsLast = 'wormholeExtrinsic_privacyLabel_DESC_NULLS_LAST', + WormholeExtrinsicPrivacyScore01PctAsc = 'wormholeExtrinsic_privacyScore01Pct_ASC', + WormholeExtrinsicPrivacyScore01PctAscNullsFirst = 'wormholeExtrinsic_privacyScore01Pct_ASC_NULLS_FIRST', + WormholeExtrinsicPrivacyScore01PctAscNullsLast = 'wormholeExtrinsic_privacyScore01Pct_ASC_NULLS_LAST', + WormholeExtrinsicPrivacyScore01PctDesc = 'wormholeExtrinsic_privacyScore01Pct_DESC', + WormholeExtrinsicPrivacyScore01PctDescNullsFirst = 'wormholeExtrinsic_privacyScore01Pct_DESC_NULLS_FIRST', + WormholeExtrinsicPrivacyScore01PctDescNullsLast = 'wormholeExtrinsic_privacyScore01Pct_DESC_NULLS_LAST', + WormholeExtrinsicPrivacyScore1PctAsc = 'wormholeExtrinsic_privacyScore1Pct_ASC', + WormholeExtrinsicPrivacyScore1PctAscNullsFirst = 'wormholeExtrinsic_privacyScore1Pct_ASC_NULLS_FIRST', + WormholeExtrinsicPrivacyScore1PctAscNullsLast = 'wormholeExtrinsic_privacyScore1Pct_ASC_NULLS_LAST', + WormholeExtrinsicPrivacyScore1PctDesc = 'wormholeExtrinsic_privacyScore1Pct_DESC', + WormholeExtrinsicPrivacyScore1PctDescNullsFirst = 'wormholeExtrinsic_privacyScore1Pct_DESC_NULLS_FIRST', + WormholeExtrinsicPrivacyScore1PctDescNullsLast = 'wormholeExtrinsic_privacyScore1Pct_DESC_NULLS_LAST', + WormholeExtrinsicPrivacyScore5PctAsc = 'wormholeExtrinsic_privacyScore5Pct_ASC', + WormholeExtrinsicPrivacyScore5PctAscNullsFirst = 'wormholeExtrinsic_privacyScore5Pct_ASC_NULLS_FIRST', + WormholeExtrinsicPrivacyScore5PctAscNullsLast = 'wormholeExtrinsic_privacyScore5Pct_ASC_NULLS_LAST', + WormholeExtrinsicPrivacyScore5PctDesc = 'wormholeExtrinsic_privacyScore5Pct_DESC', + WormholeExtrinsicPrivacyScore5PctDescNullsFirst = 'wormholeExtrinsic_privacyScore5Pct_DESC_NULLS_FIRST', + WormholeExtrinsicPrivacyScore5PctDescNullsLast = 'wormholeExtrinsic_privacyScore5Pct_DESC_NULLS_LAST', + WormholeExtrinsicPrivacyScoreAsc = 'wormholeExtrinsic_privacyScore_ASC', + WormholeExtrinsicPrivacyScoreAscNullsFirst = 'wormholeExtrinsic_privacyScore_ASC_NULLS_FIRST', + WormholeExtrinsicPrivacyScoreAscNullsLast = 'wormholeExtrinsic_privacyScore_ASC_NULLS_LAST', + WormholeExtrinsicPrivacyScoreDesc = 'wormholeExtrinsic_privacyScore_DESC', + WormholeExtrinsicPrivacyScoreDescNullsFirst = 'wormholeExtrinsic_privacyScore_DESC_NULLS_FIRST', + WormholeExtrinsicPrivacyScoreDescNullsLast = 'wormholeExtrinsic_privacyScore_DESC_NULLS_LAST', + WormholeExtrinsicTimestampAsc = 'wormholeExtrinsic_timestamp_ASC', + WormholeExtrinsicTimestampAscNullsFirst = 'wormholeExtrinsic_timestamp_ASC_NULLS_FIRST', + WormholeExtrinsicTimestampAscNullsLast = 'wormholeExtrinsic_timestamp_ASC_NULLS_LAST', + WormholeExtrinsicTimestampDesc = 'wormholeExtrinsic_timestamp_DESC', + WormholeExtrinsicTimestampDescNullsFirst = 'wormholeExtrinsic_timestamp_DESC_NULLS_FIRST', + WormholeExtrinsicTimestampDescNullsLast = 'wormholeExtrinsic_timestamp_DESC_NULLS_LAST', + WormholeExtrinsicTotalAmountAsc = 'wormholeExtrinsic_totalAmount_ASC', + WormholeExtrinsicTotalAmountAscNullsFirst = 'wormholeExtrinsic_totalAmount_ASC_NULLS_FIRST', + WormholeExtrinsicTotalAmountAscNullsLast = 'wormholeExtrinsic_totalAmount_ASC_NULLS_LAST', + WormholeExtrinsicTotalAmountDesc = 'wormholeExtrinsic_totalAmount_DESC', + WormholeExtrinsicTotalAmountDescNullsFirst = 'wormholeExtrinsic_totalAmount_DESC_NULLS_FIRST', + WormholeExtrinsicTotalAmountDescNullsLast = 'wormholeExtrinsic_totalAmount_DESC_NULLS_LAST' +} -export type GetHighSecuritySetsQuery = { - __typename?: 'Query'; - highSecuritySets: Array<{ - __typename?: 'HighSecuritySet'; - id: string; - extrinsicHash?: string | null; - timestamp: any; - delay: any; - who: { __typename?: 'Account'; id: string }; - interceptor: { __typename?: 'Account'; id: string }; - block: { __typename?: 'Block'; height: number }; - }>; - meta: { __typename?: 'HighSecuritySetsConnection'; totalCount: number }; +export type WormholeNullifierWhereInput = { + AND?: InputMaybe>; + OR?: InputMaybe>; + block?: InputMaybe; + block_isNull?: InputMaybe; + id_contains?: InputMaybe; + id_containsInsensitive?: InputMaybe; + id_endsWith?: InputMaybe; + id_eq?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_isNull?: InputMaybe; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not_contains?: InputMaybe; + id_not_containsInsensitive?: InputMaybe; + id_not_endsWith?: InputMaybe; + id_not_eq?: InputMaybe; + id_not_in?: InputMaybe>; + id_not_startsWith?: InputMaybe; + id_startsWith?: InputMaybe; + nullifierHash_contains?: InputMaybe; + nullifierHash_containsInsensitive?: InputMaybe; + nullifierHash_endsWith?: InputMaybe; + nullifierHash_eq?: InputMaybe; + nullifierHash_gt?: InputMaybe; + nullifierHash_gte?: InputMaybe; + nullifierHash_in?: InputMaybe>; + nullifierHash_isNull?: InputMaybe; + nullifierHash_lt?: InputMaybe; + nullifierHash_lte?: InputMaybe; + nullifierHash_not_contains?: InputMaybe; + nullifierHash_not_containsInsensitive?: InputMaybe< + Scalars['String']['input'] + >; + nullifierHash_not_endsWith?: InputMaybe; + nullifierHash_not_eq?: InputMaybe; + nullifierHash_not_in?: InputMaybe>; + nullifierHash_not_startsWith?: InputMaybe; + nullifierHash_startsWith?: InputMaybe; + nullifier_contains?: InputMaybe; + nullifier_containsInsensitive?: InputMaybe; + nullifier_endsWith?: InputMaybe; + nullifier_eq?: InputMaybe; + nullifier_gt?: InputMaybe; + nullifier_gte?: InputMaybe; + nullifier_in?: InputMaybe>; + nullifier_isNull?: InputMaybe; + nullifier_lt?: InputMaybe; + nullifier_lte?: InputMaybe; + nullifier_not_contains?: InputMaybe; + nullifier_not_containsInsensitive?: InputMaybe; + nullifier_not_endsWith?: InputMaybe; + nullifier_not_eq?: InputMaybe; + nullifier_not_in?: InputMaybe>; + nullifier_not_startsWith?: InputMaybe; + nullifier_startsWith?: InputMaybe; + timestamp_eq?: InputMaybe; + timestamp_gt?: InputMaybe; + timestamp_gte?: InputMaybe; + timestamp_in?: InputMaybe>; + timestamp_isNull?: InputMaybe; + timestamp_lt?: InputMaybe; + timestamp_lte?: InputMaybe; + timestamp_not_eq?: InputMaybe; + timestamp_not_in?: InputMaybe>; + wormholeExtrinsic?: InputMaybe; + wormholeExtrinsic_isNull?: InputMaybe; }; -export type GetRecentHighSecuritySetsQueryVariables = Exact<{ - limit?: InputMaybe; - offset?: InputMaybe; - orderBy?: InputMaybe< - Array | HighSecuritySetOrderByInput - >; - where?: InputMaybe; -}>; +export type WormholeNullifiersConnection = { + __typename?: 'WormholeNullifiersConnection'; + edges: Array; + pageInfo: PageInfo; + totalCount: Scalars['Int']['output']; +}; -export type GetRecentHighSecuritySetsQuery = { - __typename?: 'Query'; - highSecuritySets: Array<{ - __typename?: 'HighSecuritySet'; - id: string; - extrinsicHash?: string | null; - timestamp: any; - delay: any; - who: { __typename?: 'Account'; id: string }; - interceptor: { __typename?: 'Account'; id: string }; - block: { __typename?: 'Block'; height: number }; - }>; +/** An individual exit output within a wormhole proof verification. */ +export type WormholeOutput = { + __typename?: 'WormholeOutput'; + amount: Scalars['BigInt']['output']; + exitAccount: Account; + id: Scalars['String']['output']; + wormholeExtrinsic: WormholeExtrinsic; }; -export type GetHighSecuritySetsStatsQueryVariables = Exact<{ - startDate: Scalars['DateTime']['input']; - endDate: Scalars['DateTime']['input']; -}>; +export type WormholeOutputEdge = { + __typename?: 'WormholeOutputEdge'; + cursor: Scalars['String']['output']; + node: WormholeOutput; +}; -export type GetHighSecuritySetsStatsQuery = { +export enum WormholeOutputOrderByInput { + AmountAsc = 'amount_ASC', + AmountAscNullsFirst = 'amount_ASC_NULLS_FIRST', + AmountAscNullsLast = 'amount_ASC_NULLS_LAST', + AmountDesc = 'amount_DESC', + AmountDescNullsFirst = 'amount_DESC_NULLS_FIRST', + AmountDescNullsLast = 'amount_DESC_NULLS_LAST', + ExitAccountFreeAsc = 'exitAccount_free_ASC', + ExitAccountFreeAscNullsFirst = 'exitAccount_free_ASC_NULLS_FIRST', + ExitAccountFreeAscNullsLast = 'exitAccount_free_ASC_NULLS_LAST', + ExitAccountFreeDesc = 'exitAccount_free_DESC', + ExitAccountFreeDescNullsFirst = 'exitAccount_free_DESC_NULLS_FIRST', + ExitAccountFreeDescNullsLast = 'exitAccount_free_DESC_NULLS_LAST', + ExitAccountFrozenAsc = 'exitAccount_frozen_ASC', + ExitAccountFrozenAscNullsFirst = 'exitAccount_frozen_ASC_NULLS_FIRST', + ExitAccountFrozenAscNullsLast = 'exitAccount_frozen_ASC_NULLS_LAST', + ExitAccountFrozenDesc = 'exitAccount_frozen_DESC', + ExitAccountFrozenDescNullsFirst = 'exitAccount_frozen_DESC_NULLS_FIRST', + ExitAccountFrozenDescNullsLast = 'exitAccount_frozen_DESC_NULLS_LAST', + ExitAccountIdAsc = 'exitAccount_id_ASC', + ExitAccountIdAscNullsFirst = 'exitAccount_id_ASC_NULLS_FIRST', + ExitAccountIdAscNullsLast = 'exitAccount_id_ASC_NULLS_LAST', + ExitAccountIdDesc = 'exitAccount_id_DESC', + ExitAccountIdDescNullsFirst = 'exitAccount_id_DESC_NULLS_FIRST', + ExitAccountIdDescNullsLast = 'exitAccount_id_DESC_NULLS_LAST', + ExitAccountIsDepositOnlyAsc = 'exitAccount_isDepositOnly_ASC', + ExitAccountIsDepositOnlyAscNullsFirst = 'exitAccount_isDepositOnly_ASC_NULLS_FIRST', + ExitAccountIsDepositOnlyAscNullsLast = 'exitAccount_isDepositOnly_ASC_NULLS_LAST', + ExitAccountIsDepositOnlyDesc = 'exitAccount_isDepositOnly_DESC', + ExitAccountIsDepositOnlyDescNullsFirst = 'exitAccount_isDepositOnly_DESC_NULLS_FIRST', + ExitAccountIsDepositOnlyDescNullsLast = 'exitAccount_isDepositOnly_DESC_NULLS_LAST', + ExitAccountLastUpdatedAsc = 'exitAccount_lastUpdated_ASC', + ExitAccountLastUpdatedAscNullsFirst = 'exitAccount_lastUpdated_ASC_NULLS_FIRST', + ExitAccountLastUpdatedAscNullsLast = 'exitAccount_lastUpdated_ASC_NULLS_LAST', + ExitAccountLastUpdatedDesc = 'exitAccount_lastUpdated_DESC', + ExitAccountLastUpdatedDescNullsFirst = 'exitAccount_lastUpdated_DESC_NULLS_FIRST', + ExitAccountLastUpdatedDescNullsLast = 'exitAccount_lastUpdated_DESC_NULLS_LAST', + ExitAccountPrivacyDepositsAsc = 'exitAccount_privacyDeposits_ASC', + ExitAccountPrivacyDepositsAscNullsFirst = 'exitAccount_privacyDeposits_ASC_NULLS_FIRST', + ExitAccountPrivacyDepositsAscNullsLast = 'exitAccount_privacyDeposits_ASC_NULLS_LAST', + ExitAccountPrivacyDepositsDesc = 'exitAccount_privacyDeposits_DESC', + ExitAccountPrivacyDepositsDescNullsFirst = 'exitAccount_privacyDeposits_DESC_NULLS_FIRST', + ExitAccountPrivacyDepositsDescNullsLast = 'exitAccount_privacyDeposits_DESC_NULLS_LAST', + ExitAccountReservedAsc = 'exitAccount_reserved_ASC', + ExitAccountReservedAscNullsFirst = 'exitAccount_reserved_ASC_NULLS_FIRST', + ExitAccountReservedAscNullsLast = 'exitAccount_reserved_ASC_NULLS_LAST', + ExitAccountReservedDesc = 'exitAccount_reserved_DESC', + ExitAccountReservedDescNullsFirst = 'exitAccount_reserved_DESC_NULLS_FIRST', + ExitAccountReservedDescNullsLast = 'exitAccount_reserved_DESC_NULLS_LAST', + IdAsc = 'id_ASC', + IdAscNullsFirst = 'id_ASC_NULLS_FIRST', + IdAscNullsLast = 'id_ASC_NULLS_LAST', + IdDesc = 'id_DESC', + IdDescNullsFirst = 'id_DESC_NULLS_FIRST', + IdDescNullsLast = 'id_DESC_NULLS_LAST', + WormholeExtrinsicIdAsc = 'wormholeExtrinsic_id_ASC', + WormholeExtrinsicIdAscNullsFirst = 'wormholeExtrinsic_id_ASC_NULLS_FIRST', + WormholeExtrinsicIdAscNullsLast = 'wormholeExtrinsic_id_ASC_NULLS_LAST', + WormholeExtrinsicIdDesc = 'wormholeExtrinsic_id_DESC', + WormholeExtrinsicIdDescNullsFirst = 'wormholeExtrinsic_id_DESC_NULLS_FIRST', + WormholeExtrinsicIdDescNullsLast = 'wormholeExtrinsic_id_DESC_NULLS_LAST', + WormholeExtrinsicOutputCountAsc = 'wormholeExtrinsic_outputCount_ASC', + WormholeExtrinsicOutputCountAscNullsFirst = 'wormholeExtrinsic_outputCount_ASC_NULLS_FIRST', + WormholeExtrinsicOutputCountAscNullsLast = 'wormholeExtrinsic_outputCount_ASC_NULLS_LAST', + WormholeExtrinsicOutputCountDesc = 'wormholeExtrinsic_outputCount_DESC', + WormholeExtrinsicOutputCountDescNullsFirst = 'wormholeExtrinsic_outputCount_DESC_NULLS_FIRST', + WormholeExtrinsicOutputCountDescNullsLast = 'wormholeExtrinsic_outputCount_DESC_NULLS_LAST', + WormholeExtrinsicPoolSnapshotAsc = 'wormholeExtrinsic_poolSnapshot_ASC', + WormholeExtrinsicPoolSnapshotAscNullsFirst = 'wormholeExtrinsic_poolSnapshot_ASC_NULLS_FIRST', + WormholeExtrinsicPoolSnapshotAscNullsLast = 'wormholeExtrinsic_poolSnapshot_ASC_NULLS_LAST', + WormholeExtrinsicPoolSnapshotDesc = 'wormholeExtrinsic_poolSnapshot_DESC', + WormholeExtrinsicPoolSnapshotDescNullsFirst = 'wormholeExtrinsic_poolSnapshot_DESC_NULLS_FIRST', + WormholeExtrinsicPoolSnapshotDescNullsLast = 'wormholeExtrinsic_poolSnapshot_DESC_NULLS_LAST', + WormholeExtrinsicPrivacyLabelAsc = 'wormholeExtrinsic_privacyLabel_ASC', + WormholeExtrinsicPrivacyLabelAscNullsFirst = 'wormholeExtrinsic_privacyLabel_ASC_NULLS_FIRST', + WormholeExtrinsicPrivacyLabelAscNullsLast = 'wormholeExtrinsic_privacyLabel_ASC_NULLS_LAST', + WormholeExtrinsicPrivacyLabelDesc = 'wormholeExtrinsic_privacyLabel_DESC', + WormholeExtrinsicPrivacyLabelDescNullsFirst = 'wormholeExtrinsic_privacyLabel_DESC_NULLS_FIRST', + WormholeExtrinsicPrivacyLabelDescNullsLast = 'wormholeExtrinsic_privacyLabel_DESC_NULLS_LAST', + WormholeExtrinsicPrivacyScore01PctAsc = 'wormholeExtrinsic_privacyScore01Pct_ASC', + WormholeExtrinsicPrivacyScore01PctAscNullsFirst = 'wormholeExtrinsic_privacyScore01Pct_ASC_NULLS_FIRST', + WormholeExtrinsicPrivacyScore01PctAscNullsLast = 'wormholeExtrinsic_privacyScore01Pct_ASC_NULLS_LAST', + WormholeExtrinsicPrivacyScore01PctDesc = 'wormholeExtrinsic_privacyScore01Pct_DESC', + WormholeExtrinsicPrivacyScore01PctDescNullsFirst = 'wormholeExtrinsic_privacyScore01Pct_DESC_NULLS_FIRST', + WormholeExtrinsicPrivacyScore01PctDescNullsLast = 'wormholeExtrinsic_privacyScore01Pct_DESC_NULLS_LAST', + WormholeExtrinsicPrivacyScore1PctAsc = 'wormholeExtrinsic_privacyScore1Pct_ASC', + WormholeExtrinsicPrivacyScore1PctAscNullsFirst = 'wormholeExtrinsic_privacyScore1Pct_ASC_NULLS_FIRST', + WormholeExtrinsicPrivacyScore1PctAscNullsLast = 'wormholeExtrinsic_privacyScore1Pct_ASC_NULLS_LAST', + WormholeExtrinsicPrivacyScore1PctDesc = 'wormholeExtrinsic_privacyScore1Pct_DESC', + WormholeExtrinsicPrivacyScore1PctDescNullsFirst = 'wormholeExtrinsic_privacyScore1Pct_DESC_NULLS_FIRST', + WormholeExtrinsicPrivacyScore1PctDescNullsLast = 'wormholeExtrinsic_privacyScore1Pct_DESC_NULLS_LAST', + WormholeExtrinsicPrivacyScore5PctAsc = 'wormholeExtrinsic_privacyScore5Pct_ASC', + WormholeExtrinsicPrivacyScore5PctAscNullsFirst = 'wormholeExtrinsic_privacyScore5Pct_ASC_NULLS_FIRST', + WormholeExtrinsicPrivacyScore5PctAscNullsLast = 'wormholeExtrinsic_privacyScore5Pct_ASC_NULLS_LAST', + WormholeExtrinsicPrivacyScore5PctDesc = 'wormholeExtrinsic_privacyScore5Pct_DESC', + WormholeExtrinsicPrivacyScore5PctDescNullsFirst = 'wormholeExtrinsic_privacyScore5Pct_DESC_NULLS_FIRST', + WormholeExtrinsicPrivacyScore5PctDescNullsLast = 'wormholeExtrinsic_privacyScore5Pct_DESC_NULLS_LAST', + WormholeExtrinsicPrivacyScoreAsc = 'wormholeExtrinsic_privacyScore_ASC', + WormholeExtrinsicPrivacyScoreAscNullsFirst = 'wormholeExtrinsic_privacyScore_ASC_NULLS_FIRST', + WormholeExtrinsicPrivacyScoreAscNullsLast = 'wormholeExtrinsic_privacyScore_ASC_NULLS_LAST', + WormholeExtrinsicPrivacyScoreDesc = 'wormholeExtrinsic_privacyScore_DESC', + WormholeExtrinsicPrivacyScoreDescNullsFirst = 'wormholeExtrinsic_privacyScore_DESC_NULLS_FIRST', + WormholeExtrinsicPrivacyScoreDescNullsLast = 'wormholeExtrinsic_privacyScore_DESC_NULLS_LAST', + WormholeExtrinsicTimestampAsc = 'wormholeExtrinsic_timestamp_ASC', + WormholeExtrinsicTimestampAscNullsFirst = 'wormholeExtrinsic_timestamp_ASC_NULLS_FIRST', + WormholeExtrinsicTimestampAscNullsLast = 'wormholeExtrinsic_timestamp_ASC_NULLS_LAST', + WormholeExtrinsicTimestampDesc = 'wormholeExtrinsic_timestamp_DESC', + WormholeExtrinsicTimestampDescNullsFirst = 'wormholeExtrinsic_timestamp_DESC_NULLS_FIRST', + WormholeExtrinsicTimestampDescNullsLast = 'wormholeExtrinsic_timestamp_DESC_NULLS_LAST', + WormholeExtrinsicTotalAmountAsc = 'wormholeExtrinsic_totalAmount_ASC', + WormholeExtrinsicTotalAmountAscNullsFirst = 'wormholeExtrinsic_totalAmount_ASC_NULLS_FIRST', + WormholeExtrinsicTotalAmountAscNullsLast = 'wormholeExtrinsic_totalAmount_ASC_NULLS_LAST', + WormholeExtrinsicTotalAmountDesc = 'wormholeExtrinsic_totalAmount_DESC', + WormholeExtrinsicTotalAmountDescNullsFirst = 'wormholeExtrinsic_totalAmount_DESC_NULLS_FIRST', + WormholeExtrinsicTotalAmountDescNullsLast = 'wormholeExtrinsic_totalAmount_DESC_NULLS_LAST' +} + +export type WormholeOutputWhereInput = { + AND?: InputMaybe>; + OR?: InputMaybe>; + amount_eq?: InputMaybe; + amount_gt?: InputMaybe; + amount_gte?: InputMaybe; + amount_in?: InputMaybe>; + amount_isNull?: InputMaybe; + amount_lt?: InputMaybe; + amount_lte?: InputMaybe; + amount_not_eq?: InputMaybe; + amount_not_in?: InputMaybe>; + exitAccount?: InputMaybe; + exitAccount_isNull?: InputMaybe; + id_contains?: InputMaybe; + id_containsInsensitive?: InputMaybe; + id_endsWith?: InputMaybe; + id_eq?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_isNull?: InputMaybe; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not_contains?: InputMaybe; + id_not_containsInsensitive?: InputMaybe; + id_not_endsWith?: InputMaybe; + id_not_eq?: InputMaybe; + id_not_in?: InputMaybe>; + id_not_startsWith?: InputMaybe; + id_startsWith?: InputMaybe; + wormholeExtrinsic?: InputMaybe; + wormholeExtrinsic_isNull?: InputMaybe; +}; + +export type WormholeOutputsConnection = { + __typename?: 'WormholeOutputsConnection'; + edges: Array; + pageInfo: PageInfo; + totalCount: Scalars['Int']['output']; +}; + +export type GetAccountsQueryVariables = Exact<{ + limit?: InputMaybe; + offset?: InputMaybe; + orderBy?: InputMaybe | AccountOrderByInput>; +}>; + +export type GetAccountsQuery = { __typename?: 'Query'; - last24Hour: { __typename?: 'HighSecuritySetsConnection'; totalCount: number }; - allTime: { __typename?: 'HighSecuritySetsConnection'; totalCount: number }; + accounts: Array<{ + __typename?: 'Account'; + id: string; + free: any; + frozen: any; + reserved: any; + }>; + meta: { __typename?: 'AccountsConnection'; totalCount: number }; }; -export type GetHighSecuritySetByHashQueryVariables = Exact<{ - hash: Scalars['String']['input']; +export type GetAccountByIdQueryVariables = Exact<{ + id: Scalars['String']['input']; + limit: Scalars['Int']['input']; }>; -export type GetHighSecuritySetByHashQuery = { +export type GetAccountByIdQuery = { __typename?: 'Query'; - highSecuritySets: Array<{ - __typename?: 'HighSecuritySet'; + account?: { + __typename?: 'Account'; id: string; - extrinsicHash?: string | null; - timestamp: any; - delay: any; - who: { __typename?: 'Account'; id: string }; - interceptor: { __typename?: 'Account'; id: string }; - block: { __typename?: 'Block'; height: number }; + free: any; + frozen: any; + reserved: any; + } | null; + transactions: { + __typename?: 'TransfersConnection'; + totalCount: number; + edges: Array<{ + __typename?: 'TransferEdge'; + node: { + __typename?: 'Transfer'; + fee: any; + amount: any; + timestamp: any; + extrinsic?: { + __typename?: 'Extrinsic'; + id: string; + pallet: string; + call: string; + } | null; + block: { __typename?: 'Block'; height: number }; + from: { __typename?: 'Account'; id: string }; + to: { __typename?: 'Account'; id: string }; + }; + }>; + }; + scheduledReversibleTransactions: { + __typename?: 'ScheduledReversibleTransfersConnection'; + totalCount: number; + edges: Array<{ + __typename?: 'ScheduledReversibleTransferEdge'; + node: { + __typename?: 'ScheduledReversibleTransfer'; + timestamp: any; + amount: any; + scheduledAt: any; + txId: string; + fee: any; + extrinsic?: { + __typename?: 'Extrinsic'; + id: string; + pallet: string; + call: string; + } | null; + block: { __typename?: 'Block'; height: number }; + from: { __typename?: 'Account'; id: string }; + to: { __typename?: 'Account'; id: string }; + }; + }>; + }; + executedReversibleTransactions: { + __typename?: 'ExecutedReversibleTransfersConnection'; + totalCount: number; + edges: Array<{ + __typename?: 'ExecutedReversibleTransferEdge'; + node: { + __typename?: 'ExecutedReversibleTransfer'; + timestamp: any; + txId: string; + block: { __typename?: 'Block'; height: number }; + scheduledTransfer: { + __typename?: 'ScheduledReversibleTransfer'; + amount: any; + timestamp: any; + scheduledAt: any; + txId: string; + fee: any; + extrinsic?: { + __typename?: 'Extrinsic'; + id: string; + pallet: string; + call: string; + } | null; + block: { __typename?: 'Block'; height: number }; + from: { __typename?: 'Account'; id: string }; + to: { __typename?: 'Account'; id: string }; + }; + }; + }>; + }; + cancelledReversibleTransactions: { + __typename?: 'CancelledReversibleTransfersConnection'; + totalCount: number; + edges: Array<{ + __typename?: 'CancelledReversibleTransferEdge'; + node: { + __typename?: 'CancelledReversibleTransfer'; + timestamp: any; + txId: string; + block: { __typename?: 'Block'; height: number }; + cancelledBy: { __typename?: 'Account'; id: string }; + scheduledTransfer: { + __typename?: 'ScheduledReversibleTransfer'; + amount: any; + timestamp: any; + scheduledAt: any; + txId: string; + fee: any; + extrinsic?: { + __typename?: 'Extrinsic'; + id: string; + pallet: string; + call: string; + } | null; + block: { __typename?: 'Block'; height: number }; + from: { __typename?: 'Account'; id: string }; + to: { __typename?: 'Account'; id: string }; + }; + }; + }>; + }; + minerRewards: { + __typename?: 'MinerRewardsConnection'; + totalCount: number; + edges: Array<{ + __typename?: 'MinerRewardEdge'; + node: { + __typename?: 'MinerReward'; + reward: any; + timestamp: any; + block: { __typename?: 'Block'; height: number; hash: string }; + miner: { __typename?: 'Account'; id: string }; + }; + }>; + }; + guardian: { + __typename?: 'HighSecuritySetsConnection'; + totalCount: number; + edges: Array<{ + __typename?: 'HighSecuritySetEdge'; + node: { + __typename?: 'HighSecuritySet'; + timestamp: any; + block: { __typename?: 'Block'; height: number }; + interceptor: { + __typename?: 'Account'; + id: string; + free: any; + frozen: any; + reserved: any; + }; + }; + }>; + }; + beneficiaries: { + __typename?: 'HighSecuritySetsConnection'; + totalCount: number; + edges: Array<{ + __typename?: 'HighSecuritySetEdge'; + node: { + __typename?: 'HighSecuritySet'; + timestamp: any; + block: { __typename?: 'Block'; height: number }; + who: { + __typename?: 'Account'; + id: string; + free: any; + frozen: any; + reserved: any; + }; + }; + }>; + }; + wormholeOutputs: Array<{ + __typename?: 'WormholeOutput'; + id: string; + amount: any; + exitAccount: { __typename?: 'Account'; id: string }; + wormholeExtrinsic: { + __typename?: 'WormholeExtrinsic'; + id: string; + totalAmount: any; + outputCount: number; + timestamp: any; + extrinsic?: { + __typename?: 'Extrinsic'; + id: string; + pallet: string; + call: string; + } | null; + block: { __typename?: 'Block'; height: number }; + outputs: Array<{ + __typename?: 'WormholeOutput'; + id: string; + amount: any; + exitAccount: { __typename?: 'Account'; id: string }; + }>; + }; }>; }; -export type GetMinerLeaderboardQueryVariables = Exact<{ +export type GetAccountsStatsQueryVariables = Exact<{ + startDate: Scalars['DateTime']['input']; + endDate: Scalars['DateTime']['input']; +}>; + +export type GetAccountsStatsQuery = { + __typename?: 'Query'; + all: { __typename?: 'AccountsConnection'; totalCount: number }; + recentlyActive: { __typename?: 'AccountsConnection'; totalCount: number }; + recentlyDeposited: { __typename?: 'AccountsConnection'; totalCount: number }; +}; + +export type GetBlocksQueryVariables = Exact<{ limit?: InputMaybe; offset?: InputMaybe; + orderBy: Array | BlockOrderByInput; + where?: InputMaybe; }>; -export type GetMinerLeaderboardQuery = { +export type GetBlocksQuery = { __typename?: 'Query'; - leaderboardEntries: Array<{ - __typename?: 'MinerStats'; + blocks: Array<{ + __typename?: 'Block'; id: string; - totalMinedBlocks: number; - totalRewards: any; + hash: string; + height: number; + reward: any; + timestamp: any; + extrinsics: Array<{ __typename?: 'Extrinsic'; id: string }>; }>; - meta: { __typename?: 'MinerStatsConnection'; totalCount: number }; + meta: { __typename?: 'BlocksConnection'; totalCount: number }; }; -export type GetMinerRewardsQueryVariables = Exact<{ +export type GetRecentBlocksQueryVariables = Exact<{ limit?: InputMaybe; offset?: InputMaybe; - orderBy?: InputMaybe< - Array | MinerRewardOrderByInput - >; - where?: InputMaybe; + orderBy?: InputMaybe | BlockOrderByInput>; }>; -export type GetMinerRewardsQuery = { +export type GetRecentBlocksQuery = { + __typename?: 'Query'; + blocks: Array<{ + __typename?: 'Block'; + id: string; + hash: string; + height: number; + reward: any; + timestamp: any; + extrinsics: Array<{ __typename?: 'Extrinsic'; id: string }>; + }>; +}; + +export type GetBlockByIdQueryVariables = Exact<{ + height: Scalars['Int']['input']; + hash: Scalars['String']['input']; + limit: Scalars['Int']['input']; +}>; + +export type GetBlockByIdQuery = { __typename?: 'Query'; + blocks: Array<{ + __typename?: 'Block'; + id: string; + hash: string; + height: number; + reward: any; + timestamp: any; + extrinsics: Array<{ + __typename?: 'Extrinsic'; + id: string; + pallet: string; + call: string; + success: boolean; + fee: any; + timestamp: any; + indexInBlock: number; + signer?: { __typename?: 'Account'; id: string } | null; + }>; + }>; minerRewards: Array<{ __typename?: 'MinerReward'; reward: any; timestamp: any; - block: { __typename?: 'Block'; height: number; hash: string }; miner: { __typename?: 'Account'; id: string }; + block: { __typename?: 'Block'; height: number; hash: string }; + }>; + transactions: { + __typename?: 'TransfersConnection'; + totalCount: number; + edges: Array<{ + __typename?: 'TransferEdge'; + node: { + __typename?: 'Transfer'; + fee: any; + amount: any; + timestamp: any; + extrinsic?: { + __typename?: 'Extrinsic'; + id: string; + pallet: string; + call: string; + } | null; + block: { __typename?: 'Block'; height: number }; + from: { __typename?: 'Account'; id: string }; + to: { __typename?: 'Account'; id: string }; + }; + }>; + }; + scheduledReversibleTransactions: { + __typename?: 'ScheduledReversibleTransfersConnection'; + totalCount: number; + edges: Array<{ + __typename?: 'ScheduledReversibleTransferEdge'; + node: { + __typename?: 'ScheduledReversibleTransfer'; + timestamp: any; + amount: any; + scheduledAt: any; + txId: string; + fee: any; + extrinsic?: { + __typename?: 'Extrinsic'; + id: string; + pallet: string; + call: string; + } | null; + block: { __typename?: 'Block'; height: number }; + from: { __typename?: 'Account'; id: string }; + to: { __typename?: 'Account'; id: string }; + }; + }>; + }; + executedReversibleTransactions: { + __typename?: 'ExecutedReversibleTransfersConnection'; + totalCount: number; + edges: Array<{ + __typename?: 'ExecutedReversibleTransferEdge'; + node: { + __typename?: 'ExecutedReversibleTransfer'; + timestamp: any; + txId: string; + block: { __typename?: 'Block'; height: number }; + scheduledTransfer: { + __typename?: 'ScheduledReversibleTransfer'; + amount: any; + timestamp: any; + scheduledAt: any; + txId: string; + fee: any; + extrinsic?: { + __typename?: 'Extrinsic'; + id: string; + pallet: string; + call: string; + } | null; + block: { __typename?: 'Block'; height: number }; + from: { __typename?: 'Account'; id: string }; + to: { __typename?: 'Account'; id: string }; + }; + }; + }>; + }; + cancelledReversibleTransactions: { + __typename?: 'CancelledReversibleTransfersConnection'; + totalCount: number; + edges: Array<{ + __typename?: 'CancelledReversibleTransferEdge'; + node: { + __typename?: 'CancelledReversibleTransfer'; + timestamp: any; + txId: string; + block: { __typename?: 'Block'; height: number }; + cancelledBy: { __typename?: 'Account'; id: string }; + scheduledTransfer: { + __typename?: 'ScheduledReversibleTransfer'; + amount: any; + timestamp: any; + scheduledAt: any; + txId: string; + fee: any; + extrinsic?: { + __typename?: 'Extrinsic'; + id: string; + pallet: string; + call: string; + } | null; + block: { __typename?: 'Block'; height: number }; + from: { __typename?: 'Account'; id: string }; + to: { __typename?: 'Account'; id: string }; + }; + }; + }>; + }; + highSecuritySets: { + __typename?: 'HighSecuritySetsConnection'; + totalCount: number; + edges: Array<{ + __typename?: 'HighSecuritySetEdge'; + node: { + __typename?: 'HighSecuritySet'; + timestamp: any; + delay: any; + extrinsic?: { + __typename?: 'Extrinsic'; + id: string; + pallet: string; + call: string; + } | null; + block: { __typename?: 'Block'; height: number }; + who: { __typename?: 'Account'; id: string }; + interceptor: { __typename?: 'Account'; id: string }; + }; + }>; + }; + errorEvents: { + __typename?: 'ErrorEventsConnection'; + totalCount: number; + edges: Array<{ + __typename?: 'ErrorEventEdge'; + node: { + __typename?: 'ErrorEvent'; + errorDocs?: string | null; + errorModule?: string | null; + errorName?: string | null; + errorType: string; + timestamp: any; + extrinsic?: { + __typename?: 'Extrinsic'; + id: string; + pallet: string; + call: string; + } | null; + block: { __typename?: 'Block'; height: number }; + }; + }>; + }; + wormholeExtrinsics: Array<{ + __typename?: 'WormholeExtrinsic'; + id: string; + totalAmount: any; + outputCount: number; + timestamp: any; + extrinsic?: { + __typename?: 'Extrinsic'; + id: string; + pallet: string; + call: string; + } | null; + block: { __typename?: 'Block'; height: number }; + outputs: Array<{ + __typename?: 'WormholeOutput'; + id: string; + amount: any; + exitAccount: { __typename?: 'Account'; id: string }; + }>; }>; - meta: { __typename?: 'MinerRewardsConnection'; totalCount: number }; }; -export type GetRecentMinerRewardsQueryVariables = Exact<{ +export type GetCancelledReversibleTransactionsQueryVariables = Exact<{ limit?: InputMaybe; offset?: InputMaybe; orderBy?: InputMaybe< - Array | MinerRewardOrderByInput + | Array + | CancelledReversibleTransferOrderByInput >; - where?: InputMaybe; + where?: InputMaybe; }>; -export type GetRecentMinerRewardsQuery = { +export type GetCancelledReversibleTransactionsQuery = { __typename?: 'Query'; - minerRewards: Array<{ - __typename?: 'MinerReward'; - reward: any; + cancelledReversibleTransactions: Array<{ + __typename?: 'CancelledReversibleTransfer'; timestamp: any; - block: { __typename?: 'Block'; height: number; hash: string }; - miner: { __typename?: 'Account'; id: string }; + txId: string; + block: { __typename?: 'Block'; height: number }; + cancelledBy: { __typename?: 'Account'; id: string }; + scheduledTransfer: { + __typename?: 'ScheduledReversibleTransfer'; + amount: any; + timestamp: any; + scheduledAt: any; + txId: string; + fee: any; + extrinsic?: { + __typename?: 'Extrinsic'; + id: string; + pallet: string; + call: string; + } | null; + block: { __typename?: 'Block'; height: number }; + from: { __typename?: 'Account'; id: string }; + to: { __typename?: 'Account'; id: string }; + }; }>; + meta: { + __typename?: 'CancelledReversibleTransfersConnection'; + totalCount: number; + }; }; -export type GetMinerRewardsStatsQueryVariables = Exact<{ +export type GetRecentCancelledReversibleTransactionsQueryVariables = Exact<{ + limit?: InputMaybe; + offset?: InputMaybe; + orderBy?: InputMaybe< + | Array + | CancelledReversibleTransferOrderByInput + >; +}>; + +export type GetRecentCancelledReversibleTransactionsQuery = { + __typename?: 'Query'; + cancelledReversibleTransactions: Array<{ + __typename?: 'CancelledReversibleTransfer'; + timestamp: any; + txId: string; + block: { __typename?: 'Block'; height: number }; + cancelledBy: { __typename?: 'Account'; id: string }; + scheduledTransfer: { + __typename?: 'ScheduledReversibleTransfer'; + amount: any; + timestamp: any; + scheduledAt: any; + txId: string; + fee: any; + extrinsic?: { + __typename?: 'Extrinsic'; + id: string; + pallet: string; + call: string; + } | null; + block: { __typename?: 'Block'; height: number }; + from: { __typename?: 'Account'; id: string }; + to: { __typename?: 'Account'; id: string }; + }; + }>; +}; + +export type GetCancelledReversibleTransactionsStatsQueryVariables = Exact<{ startDate: Scalars['DateTime']['input']; endDate: Scalars['DateTime']['input']; }>; -export type GetMinerRewardsStatsQuery = { +export type GetCancelledReversibleTransactionsStatsQuery = { __typename?: 'Query'; - last24Hour: { __typename?: 'MinerRewardsConnection'; totalCount: number }; - allTime: { __typename?: 'MinerRewardsConnection'; totalCount: number }; + last24Hour: { + __typename?: 'CancelledReversibleTransfersConnection'; + totalCount: number; + }; + allTime: { + __typename?: 'CancelledReversibleTransfersConnection'; + totalCount: number; + }; }; -export type GetMinerRewardByHashQueryVariables = Exact<{ - hash: Scalars['String']['input']; +export type GetCancelledReversibleTransactionByTxIdQueryVariables = Exact<{ + txId: Scalars['String']['input']; }>; -export type GetMinerRewardByHashQuery = { +export type GetCancelledReversibleTransactionByTxIdQuery = { __typename?: 'Query'; - minerRewards: Array<{ - __typename?: 'MinerReward'; - reward: any; + cancelledReversibleTransactions: Array<{ + __typename?: 'CancelledReversibleTransfer'; timestamp: any; - block: { __typename?: 'Block'; height: number; hash: string }; - miner: { __typename?: 'Account'; id: string }; + txId: string; + block: { __typename?: 'Block'; height: number }; + cancelledBy: { __typename?: 'Account'; id: string }; + extrinsic?: { + __typename?: 'Extrinsic'; + id: string; + pallet: string; + call: string; + } | null; + scheduledTransfer: { + __typename?: 'ScheduledReversibleTransfer'; + amount: any; + scheduledAt: any; + fee: any; + from: { __typename?: 'Account'; id: string }; + to: { __typename?: 'Account'; id: string }; + }; }>; }; -export type GetTransactionsQueryVariables = Exact<{ +export type GetStatusQueryVariables = Exact<{ + beginningDate: Scalars['DateTime']['input']; + todayDate: Scalars['DateTime']['input']; + endDate: Scalars['DateTime']['input']; +}>; + +export type GetStatusQuery = { + __typename?: 'Query'; + transactions: { __typename?: 'TransfersConnection'; totalCount: number }; + scheduledReversibleTransactions: { + __typename?: 'ScheduledReversibleTransfersConnection'; + totalCount: number; + }; + executedReversibleTransactions: { + __typename?: 'ExecutedReversibleTransfersConnection'; + totalCount: number; + }; + cancelledReversibleTransactions: { + __typename?: 'CancelledReversibleTransfersConnection'; + totalCount: number; + }; + status?: { + __typename?: 'SquidStatus'; + hash?: string | null; + height?: number | null; + finalizedHeight?: number | null; + finalizedHash?: string | null; + } | null; + minedBlocks24Hours: { __typename?: 'BlocksConnection'; totalCount: number }; + allActiveAccounts: { __typename?: 'AccountsConnection'; totalCount: number }; + allDepositAccounts: { __typename?: 'AccountsConnection'; totalCount: number }; +}; + +export type GetErrorEventsQueryVariables = Exact<{ limit?: InputMaybe; offset?: InputMaybe; - orderBy?: InputMaybe | TransferOrderByInput>; - where?: InputMaybe; + orderBy?: InputMaybe | ErrorEventOrderByInput>; + where?: InputMaybe; }>; -export type GetTransactionsQuery = { +export type GetErrorEventsQuery = { __typename?: 'Query'; - transactions: Array<{ - __typename?: 'Transfer'; - fee: any; - extrinsicHash?: string | null; - amount: any; + errorEvents: Array<{ + __typename?: 'ErrorEvent'; + errorDocs?: string | null; + errorModule?: string | null; + errorName?: string | null; + errorType: string; + id: string; timestamp: any; + extrinsic?: { + __typename?: 'Extrinsic'; + id: string; + pallet: string; + call: string; + } | null; block: { __typename?: 'Block'; height: number }; - from: { __typename?: 'Account'; id: string }; - to: { __typename?: 'Account'; id: string }; }>; - meta: { __typename?: 'TransfersConnection'; totalCount: number }; + meta: { __typename?: 'ErrorEventsConnection'; totalCount: number }; }; -export type GetRecentTransactionsQueryVariables = Exact<{ +export type GetRecentErrorEventsQueryVariables = Exact<{ limit?: InputMaybe; offset?: InputMaybe; - orderBy?: InputMaybe | TransferOrderByInput>; - where?: InputMaybe; + orderBy?: InputMaybe | ErrorEventOrderByInput>; + where?: InputMaybe; }>; -export type GetRecentTransactionsQuery = { +export type GetRecentErrorEventsQuery = { __typename?: 'Query'; - transactions: Array<{ - __typename?: 'Transfer'; - fee: any; - extrinsicHash?: string | null; - amount: any; + errorEvents: Array<{ + __typename?: 'ErrorEvent'; + errorDocs?: string | null; + errorModule?: string | null; + errorName?: string | null; + errorType: string; + id: string; timestamp: any; + extrinsic?: { + __typename?: 'Extrinsic'; + id: string; + pallet: string; + call: string; + } | null; block: { __typename?: 'Block'; height: number }; - from: { __typename?: 'Account'; id: string }; - to: { __typename?: 'Account'; id: string }; }>; }; -export type GetTransactionsStatsQueryVariables = Exact<{ +export type GetErrorEventsStatsQueryVariables = Exact<{ startDate: Scalars['DateTime']['input']; endDate: Scalars['DateTime']['input']; }>; -export type GetTransactionsStatsQuery = { +export type GetErrorEventsStatsQuery = { __typename?: 'Query'; - last24Hour: { __typename?: 'TransfersConnection'; totalCount: number }; - allTime: { __typename?: 'TransfersConnection'; totalCount: number }; + last24Hour: { __typename?: 'ErrorEventsConnection'; totalCount: number }; + allTime: { __typename?: 'ErrorEventsConnection'; totalCount: number }; }; -export type GetTransactionByHashQueryVariables = Exact<{ +export type GetErrorEventByHashQueryVariables = Exact<{ hash: Scalars['String']['input']; }>; -export type GetTransactionByHashQuery = { +export type GetErrorEventByHashQuery = { __typename?: 'Query'; - transactions: Array<{ - __typename?: 'Transfer'; - fee: any; - extrinsicHash?: string | null; - amount: any; + errorEvents: Array<{ + __typename?: 'ErrorEvent'; + errorDocs?: string | null; + errorModule?: string | null; + errorName?: string | null; + errorType: string; + id: string; timestamp: any; + extrinsic?: { + __typename?: 'Extrinsic'; + id: string; + pallet: string; + call: string; + } | null; block: { __typename?: 'Block'; height: number }; - from: { __typename?: 'Account'; id: string }; - to: { __typename?: 'Account'; id: string }; }>; }; -export const GetErrorEventsDocument = { +export type GetExecutedReversibleTransactionsQueryVariables = Exact<{ + limit?: InputMaybe; + offset?: InputMaybe; + orderBy?: InputMaybe< + | Array + | ExecutedReversibleTransferOrderByInput + >; + where?: InputMaybe; +}>; + +export type GetExecutedReversibleTransactionsQuery = { + __typename?: 'Query'; + executedReversibleTransactions: Array<{ + __typename?: 'ExecutedReversibleTransfer'; + timestamp: any; + txId: string; + block: { __typename?: 'Block'; height: number }; + scheduledTransfer: { + __typename?: 'ScheduledReversibleTransfer'; + amount: any; + timestamp: any; + scheduledAt: any; + txId: string; + fee: any; + extrinsic?: { + __typename?: 'Extrinsic'; + id: string; + pallet: string; + call: string; + } | null; + block: { __typename?: 'Block'; height: number }; + from: { __typename?: 'Account'; id: string }; + to: { __typename?: 'Account'; id: string }; + }; + }>; + meta: { + __typename?: 'ExecutedReversibleTransfersConnection'; + totalCount: number; + }; +}; + +export type GetRecentExecutedReversibleTransactionsQueryVariables = Exact<{ + limit?: InputMaybe; + offset?: InputMaybe; + orderBy?: InputMaybe< + | Array + | ExecutedReversibleTransferOrderByInput + >; +}>; + +export type GetRecentExecutedReversibleTransactionsQuery = { + __typename?: 'Query'; + executedReversibleTransactions: Array<{ + __typename?: 'ExecutedReversibleTransfer'; + timestamp: any; + txId: string; + block: { __typename?: 'Block'; height: number }; + scheduledTransfer: { + __typename?: 'ScheduledReversibleTransfer'; + amount: any; + timestamp: any; + scheduledAt: any; + txId: string; + fee: any; + extrinsic?: { + __typename?: 'Extrinsic'; + id: string; + pallet: string; + call: string; + } | null; + block: { __typename?: 'Block'; height: number }; + from: { __typename?: 'Account'; id: string }; + to: { __typename?: 'Account'; id: string }; + }; + }>; +}; + +export type GetExecutedReversibleTransactionsStatsQueryVariables = Exact<{ + startDate: Scalars['DateTime']['input']; + endDate: Scalars['DateTime']['input']; +}>; + +export type GetExecutedReversibleTransactionsStatsQuery = { + __typename?: 'Query'; + last24Hour: { + __typename?: 'ExecutedReversibleTransfersConnection'; + totalCount: number; + }; + allTime: { + __typename?: 'ExecutedReversibleTransfersConnection'; + totalCount: number; + }; +}; + +export type GetExecutedReversibleTransactionByTxIdQueryVariables = Exact<{ + txId: Scalars['String']['input']; +}>; + +export type GetExecutedReversibleTransactionByTxIdQuery = { + __typename?: 'Query'; + executedReversibleTransactions: Array<{ + __typename?: 'ExecutedReversibleTransfer'; + timestamp: any; + txId: string; + block: { __typename?: 'Block'; height: number }; + scheduledTransfer: { + __typename?: 'ScheduledReversibleTransfer'; + amount: any; + scheduledAt: any; + fee: any; + from: { __typename?: 'Account'; id: string }; + to: { __typename?: 'Account'; id: string }; + }; + }>; +}; + +export type GetHighSecuritySetsQueryVariables = Exact<{ + limit?: InputMaybe; + offset?: InputMaybe; + orderBy?: InputMaybe< + Array | HighSecuritySetOrderByInput + >; + where?: InputMaybe; +}>; + +export type GetHighSecuritySetsQuery = { + __typename?: 'Query'; + highSecuritySets: Array<{ + __typename?: 'HighSecuritySet'; + id: string; + timestamp: any; + delay: any; + extrinsic?: { + __typename?: 'Extrinsic'; + id: string; + pallet: string; + call: string; + } | null; + who: { __typename?: 'Account'; id: string }; + interceptor: { __typename?: 'Account'; id: string }; + block: { __typename?: 'Block'; height: number }; + }>; + meta: { __typename?: 'HighSecuritySetsConnection'; totalCount: number }; +}; + +export type GetRecentHighSecuritySetsQueryVariables = Exact<{ + limit?: InputMaybe; + offset?: InputMaybe; + orderBy?: InputMaybe< + Array | HighSecuritySetOrderByInput + >; + where?: InputMaybe; +}>; + +export type GetRecentHighSecuritySetsQuery = { + __typename?: 'Query'; + highSecuritySets: Array<{ + __typename?: 'HighSecuritySet'; + id: string; + timestamp: any; + delay: any; + extrinsic?: { + __typename?: 'Extrinsic'; + id: string; + pallet: string; + call: string; + } | null; + who: { __typename?: 'Account'; id: string }; + interceptor: { __typename?: 'Account'; id: string }; + block: { __typename?: 'Block'; height: number }; + }>; +}; + +export type GetHighSecuritySetsStatsQueryVariables = Exact<{ + startDate: Scalars['DateTime']['input']; + endDate: Scalars['DateTime']['input']; +}>; + +export type GetHighSecuritySetsStatsQuery = { + __typename?: 'Query'; + last24Hour: { __typename?: 'HighSecuritySetsConnection'; totalCount: number }; + allTime: { __typename?: 'HighSecuritySetsConnection'; totalCount: number }; +}; + +export type GetHighSecuritySetByHashQueryVariables = Exact<{ + hash: Scalars['String']['input']; +}>; + +export type GetHighSecuritySetByHashQuery = { + __typename?: 'Query'; + highSecuritySets: Array<{ + __typename?: 'HighSecuritySet'; + id: string; + timestamp: any; + delay: any; + extrinsic?: { + __typename?: 'Extrinsic'; + id: string; + pallet: string; + call: string; + } | null; + who: { __typename?: 'Account'; id: string }; + interceptor: { __typename?: 'Account'; id: string }; + block: { __typename?: 'Block'; height: number }; + }>; +}; + +export type GetMinerLeaderboardQueryVariables = Exact<{ + limit?: InputMaybe; + offset?: InputMaybe; +}>; + +export type GetMinerLeaderboardQuery = { + __typename?: 'Query'; + leaderboardEntries: Array<{ + __typename?: 'MinerStats'; + id: string; + totalMinedBlocks: number; + totalRewards: any; + }>; + meta: { __typename?: 'MinerStatsConnection'; totalCount: number }; +}; + +export type GetMinerRewardsQueryVariables = Exact<{ + limit?: InputMaybe; + offset?: InputMaybe; + orderBy?: InputMaybe< + Array | MinerRewardOrderByInput + >; + where?: InputMaybe; +}>; + +export type GetMinerRewardsQuery = { + __typename?: 'Query'; + minerRewards: Array<{ + __typename?: 'MinerReward'; + reward: any; + timestamp: any; + block: { __typename?: 'Block'; height: number; hash: string }; + miner: { __typename?: 'Account'; id: string }; + }>; + meta: { __typename?: 'MinerRewardsConnection'; totalCount: number }; +}; + +export type GetRecentMinerRewardsQueryVariables = Exact<{ + limit?: InputMaybe; + offset?: InputMaybe; + orderBy?: InputMaybe< + Array | MinerRewardOrderByInput + >; + where?: InputMaybe; +}>; + +export type GetRecentMinerRewardsQuery = { + __typename?: 'Query'; + minerRewards: Array<{ + __typename?: 'MinerReward'; + reward: any; + timestamp: any; + block: { __typename?: 'Block'; height: number; hash: string }; + miner: { __typename?: 'Account'; id: string }; + }>; +}; + +export type GetMinerRewardsStatsQueryVariables = Exact<{ + startDate: Scalars['DateTime']['input']; + endDate: Scalars['DateTime']['input']; +}>; + +export type GetMinerRewardsStatsQuery = { + __typename?: 'Query'; + last24Hour: { __typename?: 'MinerRewardsConnection'; totalCount: number }; + allTime: { __typename?: 'MinerRewardsConnection'; totalCount: number }; +}; + +export type GetMinerRewardByHashQueryVariables = Exact<{ + hash: Scalars['String']['input']; +}>; + +export type GetMinerRewardByHashQuery = { + __typename?: 'Query'; + minerRewards: Array<{ + __typename?: 'MinerReward'; + reward: any; + timestamp: any; + block: { __typename?: 'Block'; height: number; hash: string }; + miner: { __typename?: 'Account'; id: string }; + }>; +}; + +export type GetScheduledReversibleTransactionsQueryVariables = Exact<{ + limit?: InputMaybe; + offset?: InputMaybe; + orderBy?: InputMaybe< + | Array + | ScheduledReversibleTransferOrderByInput + >; + where?: InputMaybe; +}>; + +export type GetScheduledReversibleTransactionsQuery = { + __typename?: 'Query'; + scheduledReversibleTransactions: Array<{ + __typename?: 'ScheduledReversibleTransfer'; + amount: any; + timestamp: any; + scheduledAt: any; + txId: string; + fee: any; + extrinsic?: { + __typename?: 'Extrinsic'; + id: string; + pallet: string; + call: string; + } | null; + block: { __typename?: 'Block'; height: number }; + from: { __typename?: 'Account'; id: string }; + to: { __typename?: 'Account'; id: string }; + }>; + meta: { + __typename?: 'ScheduledReversibleTransfersConnection'; + totalCount: number; + }; +}; + +export type GetRecentScheduledReversibleTransactionsQueryVariables = Exact<{ + limit?: InputMaybe; + offset?: InputMaybe; + orderBy?: InputMaybe< + | Array + | ScheduledReversibleTransferOrderByInput + >; +}>; + +export type GetRecentScheduledReversibleTransactionsQuery = { + __typename?: 'Query'; + scheduledReversibleTransactions: Array<{ + __typename?: 'ScheduledReversibleTransfer'; + amount: any; + timestamp: any; + scheduledAt: any; + txId: string; + fee: any; + extrinsic?: { + __typename?: 'Extrinsic'; + id: string; + pallet: string; + call: string; + } | null; + block: { __typename?: 'Block'; height: number }; + from: { __typename?: 'Account'; id: string }; + to: { __typename?: 'Account'; id: string }; + }>; +}; + +export type GetScheduledReversibleTransactionsStatsQueryVariables = Exact<{ + startDate: Scalars['DateTime']['input']; + endDate: Scalars['DateTime']['input']; +}>; + +export type GetScheduledReversibleTransactionsStatsQuery = { + __typename?: 'Query'; + last24Hour: { + __typename?: 'ScheduledReversibleTransfersConnection'; + totalCount: number; + }; + allTime: { + __typename?: 'ScheduledReversibleTransfersConnection'; + totalCount: number; + }; +}; + +export type GetScheduledReversibleTransactionByTxIdQueryVariables = Exact<{ + txId: Scalars['String']['input']; +}>; + +export type GetScheduledReversibleTransactionByTxIdQuery = { + __typename?: 'Query'; + scheduledReversibleTransactions: Array<{ + __typename?: 'ScheduledReversibleTransfer'; + amount: any; + timestamp: any; + scheduledAt: any; + txId: string; + fee: any; + extrinsic?: { + __typename?: 'Extrinsic'; + id: string; + pallet: string; + call: string; + } | null; + block: { __typename?: 'Block'; height: number }; + from: { __typename?: 'Account'; id: string }; + to: { __typename?: 'Account'; id: string }; + }>; +}; + +export type SearchAllQueryVariables = Exact<{ + keyword?: InputMaybe; + keyword_number?: InputMaybe; + limit?: InputMaybe; +}>; + +export type SearchAllQuery = { + __typename?: 'Query'; + transactions: Array<{ + __typename?: 'Transfer'; + extrinsic?: { + __typename?: 'Extrinsic'; + id: string; + pallet: string; + call: string; + } | null; + }>; + scheduledReversibleTransactions: Array<{ + __typename?: 'ScheduledReversibleTransfer'; + txId: string; + extrinsic?: { + __typename?: 'Extrinsic'; + id: string; + pallet: string; + call: string; + } | null; + }>; + executedReversibleTransactions: Array<{ + __typename?: 'ExecutedReversibleTransfer'; + txId: string; + }>; + cancelledReversibleTransactions: Array<{ + __typename?: 'CancelledReversibleTransfer'; + txId: string; + }>; + accounts: Array<{ __typename?: 'Account'; id: string }>; + blocks: Array<{ __typename?: 'Block'; height: number }>; + highSecuritySets: Array<{ + __typename?: 'HighSecuritySet'; + extrinsic?: { + __typename?: 'Extrinsic'; + id: string; + pallet: string; + call: string; + } | null; + }>; + minerRewards: Array<{ + __typename?: 'MinerReward'; + reward: any; + timestamp: any; + block: { __typename?: 'Block'; height: number; hash: string }; + miner: { __typename?: 'Account'; id: string }; + }>; + errorEvents: Array<{ + __typename?: 'ErrorEvent'; + extrinsic?: { + __typename?: 'Extrinsic'; + id: string; + pallet: string; + call: string; + } | null; + }>; +}; + +export type GetTransactionsQueryVariables = Exact<{ + limit?: InputMaybe; + offset?: InputMaybe; + orderBy?: InputMaybe | TransferOrderByInput>; + where?: InputMaybe; +}>; + +export type GetTransactionsQuery = { + __typename?: 'Query'; + transactions: Array<{ + __typename?: 'Transfer'; + fee: any; + amount: any; + timestamp: any; + extrinsic?: { + __typename?: 'Extrinsic'; + id: string; + pallet: string; + call: string; + } | null; + block: { __typename?: 'Block'; height: number }; + from: { __typename?: 'Account'; id: string }; + to: { __typename?: 'Account'; id: string }; + }>; + meta: { __typename?: 'TransfersConnection'; totalCount: number }; +}; + +export type GetRecentTransactionsQueryVariables = Exact<{ + limit?: InputMaybe; + offset?: InputMaybe; + orderBy?: InputMaybe | TransferOrderByInput>; + where?: InputMaybe; +}>; + +export type GetRecentTransactionsQuery = { + __typename?: 'Query'; + transactions: Array<{ + __typename?: 'Transfer'; + fee: any; + amount: any; + timestamp: any; + extrinsic?: { + __typename?: 'Extrinsic'; + id: string; + pallet: string; + call: string; + } | null; + block: { __typename?: 'Block'; height: number }; + from: { __typename?: 'Account'; id: string }; + to: { __typename?: 'Account'; id: string }; + }>; +}; + +export type GetTransactionsStatsQueryVariables = Exact<{ + startDate: Scalars['DateTime']['input']; + endDate: Scalars['DateTime']['input']; +}>; + +export type GetTransactionsStatsQuery = { + __typename?: 'Query'; + last24Hour: { __typename?: 'TransfersConnection'; totalCount: number }; + allTime: { __typename?: 'TransfersConnection'; totalCount: number }; +}; + +export type GetExtrinsicByHashQueryVariables = Exact<{ + hash: Scalars['String']['input']; +}>; + +export type GetExtrinsicByHashQuery = { + __typename?: 'Query'; + extrinsics: Array<{ + __typename?: 'Extrinsic'; + id: string; + pallet: string; + call: string; + success: boolean; + fee: any; + timestamp: any; + indexInBlock: number; + signer?: { __typename?: 'Account'; id: string } | null; + block: { __typename?: 'Block'; height: number }; + }>; + transfers: Array<{ + __typename?: 'Transfer'; + id: string; + amount: any; + timestamp: any; + from: { __typename?: 'Account'; id: string }; + to: { __typename?: 'Account'; id: string }; + }>; +}; + +export type GetWormholeExtrinsicsQueryVariables = Exact<{ + limit?: InputMaybe; + offset?: InputMaybe; + orderBy: Array | WormholeExtrinsicOrderByInput; + where?: InputMaybe; +}>; + +export type GetWormholeExtrinsicsQuery = { + __typename?: 'Query'; + wormholeExtrinsics: Array<{ + __typename?: 'WormholeExtrinsic'; + id: string; + totalAmount: any; + outputCount: number; + timestamp: any; + privacyScore: number; + privacyLabel: string; + extrinsic?: { + __typename?: 'Extrinsic'; + id: string; + pallet: string; + call: string; + } | null; + block: { __typename?: 'Block'; height: number }; + }>; + meta: { __typename?: 'WormholeExtrinsicsConnection'; totalCount: number }; +}; + +export type GetWormholeExtrinsicByIdQueryVariables = Exact<{ + id: Scalars['String']['input']; +}>; + +export type GetWormholeExtrinsicByIdQuery = { + __typename?: 'Query'; + wormholeExtrinsicById?: { + __typename?: 'WormholeExtrinsic'; + id: string; + totalAmount: any; + outputCount: number; + timestamp: any; + privacyScore: number; + privacyScore01Pct: number; + privacyScore1Pct: number; + privacyScore5Pct: number; + privacyLabel: string; + poolSnapshot: string; + extrinsic?: { + __typename?: 'Extrinsic'; + id: string; + pallet: string; + call: string; + } | null; + block: { + __typename?: 'Block'; + id: string; + height: number; + hash: string; + timestamp: any; + }; + outputs: Array<{ + __typename?: 'WormholeOutput'; + id: string; + amount: any; + exitAccount: { __typename?: 'Account'; id: string }; + }>; + } | null; + wormholeNullifiers: Array<{ + __typename?: 'WormholeNullifier'; + nullifier: string; + nullifierHash: string; + }>; +}; + +export type GetDepositPoolStatsQueryVariables = Exact<{ [key: string]: never }>; + +export type GetDepositPoolStatsQuery = { + __typename?: 'Query'; + depositPoolStatsById?: { + __typename?: 'DepositPoolStats'; + lastUpdatedBlock: number; + buckets: string; + } | null; +}; + +export const GetAccountsDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetAccounts' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' } + }, + type: { + kind: 'ListType', + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'AccountOrderByInput' } + } + } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'accounts' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'offset' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'orderBy' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'free' } }, + { kind: 'Field', name: { kind: 'Name', value: 'frozen' } }, + { kind: 'Field', name: { kind: 'Name', value: 'reserved' } } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'meta' }, + name: { kind: 'Name', value: 'accountsConnection' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'orderBy' }, + value: { kind: 'EnumValue', value: 'id_ASC' } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode; +export const GetAccountByIdDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetAccountById' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'id' } }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } } + } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'account' }, + name: { kind: 'Name', value: 'accountById' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'id' }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'id' } } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'free' } }, + { kind: 'Field', name: { kind: 'Name', value: 'frozen' } }, + { kind: 'Field', name: { kind: 'Name', value: 'reserved' } } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'transactions' }, + name: { kind: 'Name', value: 'transfersConnection' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'orderBy' }, + value: { kind: 'EnumValue', value: 'timestamp_DESC' } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'first' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'extrinsic_isNull' }, + value: { kind: 'BooleanValue', value: false } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'AND' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'from' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'id_eq' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'id' } + } + } + ] + } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'OR' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'to' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'id_eq' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'id' } + } + } + ] + } + } + ] + } + } + ] + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'edges' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'node' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'fee' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'pallet' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'call' } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'height' } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'timestamp' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'from' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'to' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } + } + ] + } + } + ] + } + } + ] + } + }, + { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'scheduledReversibleTransactions' }, + name: { + kind: 'Name', + value: 'scheduledReversibleTransfersConnection' + }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'orderBy' }, + value: { kind: 'EnumValue', value: 'timestamp_DESC' } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'first' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'from' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'id_eq' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'id' } + } + } + ] + } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'OR' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'to' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'id_eq' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'id' } + } + } + ] + } + } + ] + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'edges' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'node' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'pallet' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'call' } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'timestamp' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'timestamp' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'scheduledAt' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'txId' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'fee' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'height' } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'from' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'to' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } + } + ] + } + } + ] + } + } + ] + } + }, + { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'executedReversibleTransactions' }, + name: { + kind: 'Name', + value: 'executedReversibleTransfersConnection' + }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'orderBy' }, + value: { kind: 'EnumValue', value: 'timestamp_DESC' } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'first' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'scheduledTransfer' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'from' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'id_eq' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'id' } + } + } + ] + } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'OR' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'to' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'id_eq' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'id' } + } + } + ] + } + } + ] + } + } + ] + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'edges' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'node' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'timestamp' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'txId' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'height' } + } + ] + } + }, + { + kind: 'Field', + name: { + kind: 'Name', + value: 'scheduledTransfer' + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } + }, + { + kind: 'Field', + name: { + kind: 'Name', + value: 'pallet' + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'call' } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'timestamp' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'scheduledAt' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'txId' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'fee' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { + kind: 'Name', + value: 'height' + } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'from' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'to' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } + } + ] + } + } + ] + } + } + ] + } + } + ] + } + }, + { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'cancelledReversibleTransactions' }, + name: { + kind: 'Name', + value: 'cancelledReversibleTransfersConnection' + }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'orderBy' }, + value: { kind: 'EnumValue', value: 'timestamp_DESC' } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'first' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'scheduledTransfer' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'from' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'id_eq' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'id' } + } + } + ] + } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'OR' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'to' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'id_eq' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'id' } + } + } + ] + } + } + ] + } + } + ] + } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'OR' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'cancelledBy' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'id_eq' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'id' } + } + } + ] + } + } + ] + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'edges' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'node' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'timestamp' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'txId' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'height' } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'cancelledBy' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } + } + ] + } + }, + { + kind: 'Field', + name: { + kind: 'Name', + value: 'scheduledTransfer' + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } + }, + { + kind: 'Field', + name: { + kind: 'Name', + value: 'pallet' + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'call' } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'timestamp' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'scheduledAt' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'txId' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'fee' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { + kind: 'Name', + value: 'height' + } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'from' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'to' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } + } + ] + } + } + ] + } + } + ] + } + } + ] + } + }, + { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'minerRewards' }, + name: { kind: 'Name', value: 'minerRewardsConnection' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'orderBy' }, + value: { kind: 'EnumValue', value: 'timestamp_DESC' } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'first' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'miner' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'id_eq' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'id' } + } + } + ] + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'edges' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'node' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'height' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'hash' } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'reward' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'miner' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'timestamp' } + } + ] + } + } + ] + } + }, + { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'guardian' }, + name: { kind: 'Name', value: 'highSecuritySetsConnection' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'orderBy' }, + value: { kind: 'EnumValue', value: 'timestamp_DESC' } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'first' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'who' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'id_eq' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'id' } + } + } + ] + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'edges' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'node' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'timestamp' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'height' } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'interceptor' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'free' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'frozen' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'reserved' } + } + ] + } + } + ] + } + } + ] + } + }, + { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'beneficiaries' }, + name: { kind: 'Name', value: 'highSecuritySetsConnection' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'orderBy' }, + value: { kind: 'EnumValue', value: 'timestamp_DESC' } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'first' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'interceptor' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'id_eq' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'id' } + } + } + ] + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'edges' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'node' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'timestamp' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'height' } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'who' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'free' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'frozen' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'reserved' } + } + ] + } + } + ] + } + } + ] + } + }, + { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'wormholeOutputs' }, + name: { kind: 'Name', value: 'wormholeOutputs' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'orderBy' }, + value: { + kind: 'EnumValue', + value: 'wormholeExtrinsic_timestamp_DESC' + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'exitAccount' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'id_eq' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'id' } + } + } + ] + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'amount' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'exitAccount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'wormholeExtrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'pallet' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'call' } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'totalAmount' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'outputCount' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'timestamp' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'height' } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'outputs' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'exitAccount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' } + } + ] + } + } + ] + } + } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode; +export const GetAccountsStatsDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetAccountsStats' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'startDate' } + }, + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'DateTime' } + } + } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'endDate' } + }, + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'DateTime' } + } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'all' }, + name: { kind: 'Name', value: 'accountsConnection' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'orderBy' }, + value: { kind: 'EnumValue', value: 'id_ASC' } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'recentlyActive' }, + name: { kind: 'Name', value: 'accountsConnection' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'orderBy' }, + value: { kind: 'EnumValue', value: 'id_ASC' } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'transfersFrom_some' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'timestamp_gte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'startDate' } + } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'timestamp_lte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'endDate' } + } + } + ] + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'recentlyDeposited' }, + name: { kind: 'Name', value: 'accountsConnection' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'orderBy' }, + value: { kind: 'EnumValue', value: 'id_ASC' } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'transfersTo_some' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'timestamp_gte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'startDate' } + } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'timestamp_lte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'endDate' } + } + } + ] + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetAccountsStatsQuery, + GetAccountsStatsQueryVariables +>; +export const GetBlocksDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetBlocks' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' } + }, + type: { + kind: 'NonNullType', + type: { + kind: 'ListType', + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'BlockOrderByInput' } + } + } + } + } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + }, + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'BlockWhereInput' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'blocks' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'offset' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'orderBy' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'hash' } }, + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'reward' } }, + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsics' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'meta' }, + name: { kind: 'Name', value: 'blocksConnection' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'orderBy' }, + value: { kind: 'EnumValue', value: 'id_ASC' } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode; +export const GetRecentBlocksDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetRecentBlocks' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' } + }, + type: { + kind: 'ListType', + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'BlockOrderByInput' } + } + } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'blocks' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'offset' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'orderBy' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'hash' } }, + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'reward' } }, + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsics' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetRecentBlocksQuery, + GetRecentBlocksQueryVariables +>; +export const GetBlockByIdDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetBlockById' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'height' } + }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + } + }, + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'hash' } }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } } + } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'blocks' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'height_eq' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'height' } + } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'OR' }, + 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: 'hash' } }, + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'reward' } }, + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsics' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'orderBy' }, + value: { kind: 'EnumValue', value: 'indexInBlock_ASC' } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'pallet' } + }, + { kind: 'Field', name: { kind: 'Name', value: 'call' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'success' } + }, + { kind: 'Field', name: { kind: 'Name', value: 'fee' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'timestamp' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'indexInBlock' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'signer' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } + } + ] + } + } + ] + } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'minerRewards' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'block' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'height_eq' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'height' } + } + } + ] + } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'OR' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'block' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'hash_eq' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'hash' } + } + } + ] + } + } + ] + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'reward' } }, + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'miner' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'height' } + }, + { kind: 'Field', name: { kind: 'Name', value: 'hash' } } + ] + } + } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'transactions' }, + name: { kind: 'Name', value: 'transfersConnection' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'orderBy' }, + value: { kind: 'EnumValue', value: 'timestamp_DESC' } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'first' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'extrinsic_isNull' }, + value: { kind: 'BooleanValue', value: false } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'AND' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '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: 'edges' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'node' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'fee' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'pallet' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'call' } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'height' } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'timestamp' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'from' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'to' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } + } + ] + } + } + ] + } + } + ] + } + }, + { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'scheduledReversibleTransactions' }, + name: { + kind: 'Name', + value: 'scheduledReversibleTransfersConnection' + }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'orderBy' }, + value: { kind: 'EnumValue', value: 'timestamp_DESC' } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'first' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '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: 'edges' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'node' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'pallet' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'call' } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'timestamp' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'timestamp' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'scheduledAt' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'txId' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'fee' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'height' } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'from' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'to' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } + } + ] + } + } + ] + } + } + ] + } + }, + { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'executedReversibleTransactions' }, + name: { + kind: 'Name', + value: 'executedReversibleTransfersConnection' + }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'orderBy' }, + value: { kind: 'EnumValue', value: 'timestamp_DESC' } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'first' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '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: 'edges' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'node' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'timestamp' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'txId' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'height' } + } + ] + } + }, + { + kind: 'Field', + name: { + kind: 'Name', + value: 'scheduledTransfer' + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } + }, + { + kind: 'Field', + name: { + kind: 'Name', + value: 'pallet' + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'call' } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'timestamp' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'scheduledAt' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'txId' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'fee' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { + kind: 'Name', + value: 'height' + } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'from' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'to' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } + } + ] + } + } + ] + } + } + ] + } + } + ] + } + }, + { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'cancelledReversibleTransactions' }, + name: { + kind: 'Name', + value: 'cancelledReversibleTransfersConnection' + }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'orderBy' }, + value: { kind: 'EnumValue', value: 'timestamp_DESC' } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'first' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '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: 'edges' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'node' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'timestamp' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'txId' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'height' } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'cancelledBy' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } + } + ] + } + }, + { + kind: 'Field', + name: { + kind: 'Name', + value: 'scheduledTransfer' + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } + }, + { + kind: 'Field', + name: { + kind: 'Name', + value: 'pallet' + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'call' } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'timestamp' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'scheduledAt' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'txId' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'fee' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { + kind: 'Name', + value: 'height' + } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'from' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'to' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } + } + ] + } + } + ] + } + } + ] + } + } + ] + } + }, + { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'highSecuritySets' }, + name: { kind: 'Name', value: 'highSecuritySetsConnection' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'orderBy' }, + value: { kind: 'EnumValue', value: 'timestamp_DESC' } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'first' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '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: 'edges' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'node' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'pallet' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'call' } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'timestamp' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'delay' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'height' } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'who' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'interceptor' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } + } + ] + } + } + ] + } + } + ] + } + }, + { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'errorEvents' }, + name: { kind: 'Name', value: 'errorEventsConnection' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'orderBy' }, + value: { kind: 'EnumValue', value: 'timestamp_DESC' } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'first' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '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: 'edges' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'node' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'errorDocs' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'errorModule' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'errorName' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'errorType' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'pallet' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'call' } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'timestamp' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'height' } + } + ] + } + } + ] + } + } + ] + } + }, + { 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' } } + ] + } + } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode; +export const GetCancelledReversibleTransactionsDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetCancelledReversibleTransactions' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' } + }, + type: { + kind: 'ListType', + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { + kind: 'Name', + value: 'CancelledReversibleTransferOrderByInput' + } + } + } + } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + }, + type: { + kind: 'NamedType', + name: { + kind: 'Name', + value: 'CancelledReversibleTransferWhereInput' + } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'cancelledReversibleTransactions' }, + name: { kind: 'Name', value: 'cancelledReversibleTransfers' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'offset' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'orderBy' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, + { kind: 'Field', name: { kind: 'Name', value: 'txId' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'cancelledBy' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'scheduledTransfer' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'pallet' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'call' } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'timestamp' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'scheduledAt' } + }, + { kind: 'Field', name: { kind: 'Name', value: 'txId' } }, + { kind: 'Field', name: { kind: 'Name', value: 'fee' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'height' } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'from' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'to' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } + } + ] + } + } + ] + } + } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'meta' }, + name: { + kind: 'Name', + value: 'cancelledReversibleTransfersConnection' + }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'orderBy' }, + value: { kind: 'EnumValue', value: 'id_ASC' } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetCancelledReversibleTransactionsQuery, + GetCancelledReversibleTransactionsQueryVariables +>; +export const GetRecentCancelledReversibleTransactionsDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetRecentCancelledReversibleTransactions' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' } + }, + type: { + kind: 'ListType', + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { + kind: 'Name', + value: 'CancelledReversibleTransferOrderByInput' + } + } + } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'cancelledReversibleTransactions' }, + name: { kind: 'Name', value: 'cancelledReversibleTransfers' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'offset' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'orderBy' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, + { kind: 'Field', name: { kind: 'Name', value: 'txId' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'cancelledBy' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'scheduledTransfer' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'pallet' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'call' } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'timestamp' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'scheduledAt' } + }, + { kind: 'Field', name: { kind: 'Name', value: 'txId' } }, + { kind: 'Field', name: { kind: 'Name', value: 'fee' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'height' } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'from' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'to' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } + } + ] + } + } + ] + } + } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetRecentCancelledReversibleTransactionsQuery, + GetRecentCancelledReversibleTransactionsQueryVariables +>; +export const GetCancelledReversibleTransactionsStatsDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetCancelledReversibleTransactionsStats' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'startDate' } + }, + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'DateTime' } + } + } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'endDate' } + }, + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'DateTime' } + } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'last24Hour' }, + name: { + kind: 'Name', + value: 'cancelledReversibleTransfersConnection' + }, + 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: 'timestamp_gte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'startDate' } + } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'timestamp_lte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'endDate' } + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'allTime' }, + name: { + kind: 'Name', + value: 'cancelledReversibleTransfersConnection' + }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'orderBy' }, + value: { kind: 'EnumValue', value: 'id_ASC' } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetCancelledReversibleTransactionsStatsQuery, + GetCancelledReversibleTransactionsStatsQueryVariables +>; +export const GetCancelledReversibleTransactionByTxIdDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetCancelledReversibleTransactionByTxId' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'txId' } }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'cancelledReversibleTransactions' }, + name: { kind: 'Name', value: 'cancelledReversibleTransfers' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'txId_eq' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'txId' } + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, + { kind: 'Field', name: { kind: 'Name', value: 'txId' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'cancelledBy' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: '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: 'scheduledTransfer' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'scheduledAt' } + }, + { kind: 'Field', name: { kind: 'Name', value: 'fee' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'from' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'to' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } + } + ] + } + } + ] + } + } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetCancelledReversibleTransactionByTxIdQuery, + GetCancelledReversibleTransactionByTxIdQueryVariables +>; +export const GetStatusDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetStatus' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'beginningDate' } + }, + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'DateTime' } + } + } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'todayDate' } + }, + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'DateTime' } + } + } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'endDate' } + }, + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'DateTime' } + } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'transactions' }, + 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 } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'scheduledReversibleTransactions' }, + name: { + kind: 'Name', + value: 'scheduledReversibleTransfersConnection' + }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'orderBy' }, + value: { kind: 'EnumValue', value: 'id_ASC' } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'executedReversibleTransactions' }, + name: { + kind: 'Name', + value: 'executedReversibleTransfersConnection' + }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'orderBy' }, + value: { kind: 'EnumValue', value: 'id_ASC' } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'cancelledReversibleTransactions' }, + name: { + kind: 'Name', + value: 'cancelledReversibleTransfersConnection' + }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'orderBy' }, + value: { kind: 'EnumValue', value: 'id_ASC' } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'status' }, + name: { kind: 'Name', value: 'squidStatus' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'hash' } }, + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'finalizedHeight' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'finalizedHash' } + } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'minedBlocks24Hours' }, + name: { kind: 'Name', value: 'blocksConnection' }, + 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: 'timestamp_gte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'todayDate' } + } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'timestamp_lte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'endDate' } + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'allActiveAccounts' }, + name: { kind: 'Name', value: 'accountsConnection' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'orderBy' }, + value: { kind: 'EnumValue', value: 'id_ASC' } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'transfersFrom_some' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'timestamp_gte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'beginningDate' } + } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'timestamp_lte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'endDate' } + } + } + ] + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'allDepositAccounts' }, + name: { kind: 'Name', value: 'accountsConnection' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'orderBy' }, + value: { kind: 'EnumValue', value: 'id_ASC' } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'transfersTo_some' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'timestamp_gte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'beginningDate' } + } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'timestamp_lte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'endDate' } + } + } + ] + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode; +export const GetErrorEventsDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetErrorEvents' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' } + }, + type: { + kind: 'ListType', + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ErrorEventOrderByInput' } + } + } + } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + }, + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ErrorEventWhereInput' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'errorEvents' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'offset' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'orderBy' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'errorDocs' } }, + { kind: 'Field', name: { kind: 'Name', value: 'errorModule' } }, + { kind: 'Field', name: { kind: 'Name', value: 'errorName' } }, + { kind: 'Field', name: { kind: 'Name', value: 'errorType' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'pallet' } + }, + { kind: 'Field', name: { kind: 'Name', value: 'call' } } + ] + } + }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { 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', + alias: { kind: 'Name', value: 'meta' }, + name: { kind: 'Name', value: 'errorEventsConnection' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'orderBy' }, + value: { kind: 'EnumValue', value: 'id_ASC' } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode; +export const GetRecentErrorEventsDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetRecentErrorEvents' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' } + }, + type: { + kind: 'ListType', + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ErrorEventOrderByInput' } + } + } + } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + }, + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ErrorEventWhereInput' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'errorEvents' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'offset' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'orderBy' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'errorDocs' } }, + { kind: 'Field', name: { kind: 'Name', value: 'errorModule' } }, + { kind: 'Field', name: { kind: 'Name', value: 'errorName' } }, + { kind: 'Field', name: { kind: 'Name', value: 'errorType' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'pallet' } + }, + { kind: 'Field', name: { kind: 'Name', value: 'call' } } + ] + } + }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { 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' } } + ] + } + } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetRecentErrorEventsQuery, + GetRecentErrorEventsQueryVariables +>; +export const GetErrorEventsStatsDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetErrorEventsStats' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'startDate' } + }, + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'DateTime' } + } + } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'endDate' } + }, + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'DateTime' } + } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'last24Hour' }, + name: { kind: 'Name', value: 'errorEventsConnection' }, + 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: 'timestamp_gte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'startDate' } + } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'timestamp_lte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'endDate' } + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'allTime' }, + name: { kind: 'Name', value: 'errorEventsConnection' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'orderBy' }, + value: { kind: 'EnumValue', value: 'id_ASC' } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetErrorEventsStatsQuery, + GetErrorEventsStatsQueryVariables +>; +export const GetErrorEventByHashDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetErrorEventByHash' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'hash' } }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'errorEvents' }, + name: { kind: 'Name', value: 'errorEvents' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'extrinsic' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'id_eq' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'hash' } + } + } + ] + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'errorDocs' } }, + { kind: 'Field', name: { kind: 'Name', value: 'errorModule' } }, + { kind: 'Field', name: { kind: 'Name', value: 'errorName' } }, + { kind: 'Field', name: { kind: 'Name', value: 'errorType' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'pallet' } + }, + { kind: 'Field', name: { kind: 'Name', value: 'call' } } + ] + } + }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { 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' } } + ] + } + } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetErrorEventByHashQuery, + GetErrorEventByHashQueryVariables +>; +export const GetExecutedReversibleTransactionsDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetExecutedReversibleTransactions' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' } + }, + type: { + kind: 'ListType', + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { + kind: 'Name', + value: 'ExecutedReversibleTransferOrderByInput' + } + } + } + } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + }, + type: { + kind: 'NamedType', + name: { + kind: 'Name', + value: 'ExecutedReversibleTransferWhereInput' + } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'executedReversibleTransactions' }, + name: { kind: 'Name', value: 'executedReversibleTransfers' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'offset' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'orderBy' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, + { kind: 'Field', name: { kind: 'Name', value: 'txId' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'scheduledTransfer' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'pallet' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'call' } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'timestamp' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'scheduledAt' } + }, + { kind: 'Field', name: { kind: 'Name', value: 'txId' } }, + { kind: 'Field', name: { kind: 'Name', value: 'fee' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'height' } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'from' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'to' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } + } + ] + } + } + ] + } + } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'meta' }, + name: { + kind: 'Name', + value: 'executedReversibleTransfersConnection' + }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'orderBy' }, + value: { kind: 'EnumValue', value: 'id_ASC' } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetExecutedReversibleTransactionsQuery, + GetExecutedReversibleTransactionsQueryVariables +>; +export const GetRecentExecutedReversibleTransactionsDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetRecentExecutedReversibleTransactions' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' } + }, + type: { + kind: 'ListType', + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { + kind: 'Name', + value: 'ExecutedReversibleTransferOrderByInput' + } + } + } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'executedReversibleTransactions' }, + name: { kind: 'Name', value: 'executedReversibleTransfers' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'offset' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'orderBy' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, + { kind: 'Field', name: { kind: 'Name', value: 'txId' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'scheduledTransfer' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'pallet' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'call' } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'timestamp' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'scheduledAt' } + }, + { kind: 'Field', name: { kind: 'Name', value: 'txId' } }, + { kind: 'Field', name: { kind: 'Name', value: 'fee' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'height' } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'from' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'to' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } + } + ] + } + } + ] + } + } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetRecentExecutedReversibleTransactionsQuery, + GetRecentExecutedReversibleTransactionsQueryVariables +>; +export const GetExecutedReversibleTransactionsStatsDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetExecutedReversibleTransactionsStats' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'startDate' } + }, + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'DateTime' } + } + } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'endDate' } + }, + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'DateTime' } + } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'last24Hour' }, + name: { + kind: 'Name', + value: 'executedReversibleTransfersConnection' + }, + 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: 'timestamp_gte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'startDate' } + } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'timestamp_lte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'endDate' } + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'allTime' }, + name: { + kind: 'Name', + value: 'executedReversibleTransfersConnection' + }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'orderBy' }, + value: { kind: 'EnumValue', value: 'id_ASC' } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetExecutedReversibleTransactionsStatsQuery, + GetExecutedReversibleTransactionsStatsQueryVariables +>; +export const GetExecutedReversibleTransactionByTxIdDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetExecutedReversibleTransactionByTxId' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'txId' } }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'executedReversibleTransactions' }, + name: { kind: 'Name', value: 'executedReversibleTransfers' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'txId_eq' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'txId' } + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, + { kind: 'Field', name: { kind: 'Name', value: 'txId' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'scheduledTransfer' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'scheduledAt' } + }, + { kind: 'Field', name: { kind: 'Name', value: 'fee' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'from' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'to' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } + } + ] + } + } + ] + } + } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetExecutedReversibleTransactionByTxIdQuery, + GetExecutedReversibleTransactionByTxIdQueryVariables +>; +export const GetHighSecuritySetsDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetHighSecuritySets' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' } + }, + type: { + kind: 'ListType', + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'HighSecuritySetOrderByInput' } + } + } + } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + }, + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'HighSecuritySetWhereInput' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'highSecuritySets' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'offset' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'orderBy' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: '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: 'who' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'interceptor' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, + { kind: 'Field', name: { kind: 'Name', value: 'delay' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } } + ] + } + } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'meta' }, + name: { kind: 'Name', value: 'highSecuritySetsConnection' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'orderBy' }, + value: { kind: 'EnumValue', value: 'id_ASC' } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetHighSecuritySetsQuery, + GetHighSecuritySetsQueryVariables +>; +export const GetRecentHighSecuritySetsDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetRecentHighSecuritySets' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' } + }, + type: { + kind: 'ListType', + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'HighSecuritySetOrderByInput' } + } + } + } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + }, + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'HighSecuritySetWhereInput' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'highSecuritySets' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'offset' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'orderBy' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: '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: 'who' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'interceptor' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, + { kind: 'Field', name: { kind: 'Name', value: 'delay' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } } + ] + } + } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetRecentHighSecuritySetsQuery, + GetRecentHighSecuritySetsQueryVariables +>; +export const GetHighSecuritySetsStatsDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetHighSecuritySetsStats' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'startDate' } + }, + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'DateTime' } + } + } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'endDate' } + }, + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'DateTime' } + } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'last24Hour' }, + name: { kind: 'Name', value: 'highSecuritySetsConnection' }, + 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: 'timestamp_gte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'startDate' } + } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'timestamp_lte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'endDate' } + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'allTime' }, + name: { kind: 'Name', value: 'highSecuritySetsConnection' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'orderBy' }, + value: { kind: 'EnumValue', value: 'id_ASC' } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetHighSecuritySetsStatsQuery, + GetHighSecuritySetsStatsQueryVariables +>; +export const GetHighSecuritySetByHashDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetHighSecuritySetByHash' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'hash' } }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'highSecuritySets' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'extrinsic' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'id_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: 'who' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'interceptor' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, + { kind: 'Field', name: { kind: 'Name', value: 'delay' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } } + ] + } + } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetHighSecuritySetByHashQuery, + GetHighSecuritySetByHashQueryVariables +>; +export const GetMinerLeaderboardDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetMinerLeaderboard' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'leaderboardEntries' }, + name: { kind: 'Name', value: 'minerStats' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'offset' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'orderBy' }, + value: { kind: 'EnumValue', value: 'totalMinedBlocks_DESC' } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'totalMinedBlocks' } + }, + { kind: 'Field', name: { kind: 'Name', value: 'totalRewards' } } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'meta' }, + name: { kind: 'Name', value: 'minerStatsConnection' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'orderBy' }, + value: { kind: 'EnumValue', value: 'id_ASC' } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetMinerLeaderboardQuery, + GetMinerLeaderboardQueryVariables +>; +export const GetMinerRewardsDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetMinerRewards' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' } + }, + type: { + kind: 'ListType', + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'MinerRewardOrderByInput' } + } + } + } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + }, + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'MinerRewardWhereInput' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'minerRewards' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'offset' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'orderBy' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'height' } + }, + { kind: 'Field', name: { kind: 'Name', value: 'hash' } } + ] + } + }, + { kind: 'Field', name: { kind: 'Name', value: 'reward' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'miner' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'meta' }, + name: { kind: 'Name', value: 'minerRewardsConnection' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'orderBy' }, + value: { kind: 'EnumValue', value: 'id_ASC' } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetMinerRewardsQuery, + GetMinerRewardsQueryVariables +>; +export const GetRecentMinerRewardsDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetRecentMinerRewards' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' } + }, + type: { + kind: 'ListType', + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'MinerRewardOrderByInput' } + } + } + } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + }, + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'MinerRewardWhereInput' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'minerRewards' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'offset' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'orderBy' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'height' } + }, + { kind: 'Field', name: { kind: 'Name', value: 'hash' } } + ] + } + }, + { kind: 'Field', name: { kind: 'Name', value: 'reward' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'miner' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetRecentMinerRewardsQuery, + GetRecentMinerRewardsQueryVariables +>; +export const GetMinerRewardsStatsDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetMinerRewardsStats' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'startDate' } + }, + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'DateTime' } + } + } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'endDate' } + }, + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'DateTime' } + } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'last24Hour' }, + name: { kind: 'Name', value: 'minerRewardsConnection' }, + 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: 'timestamp_gte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'startDate' } + } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'timestamp_lte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'endDate' } + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'allTime' }, + name: { kind: 'Name', value: 'minerRewardsConnection' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'orderBy' }, + value: { kind: 'EnumValue', value: 'id_ASC' } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetMinerRewardsStatsQuery, + GetMinerRewardsStatsQueryVariables +>; +export const GetMinerRewardByHashDocument = { kind: 'Document', definitions: [ { kind: 'OperationDefinition', operation: 'query', - name: { kind: 'Name', value: 'GetErrorEvents' }, + name: { kind: 'Name', value: 'GetMinerRewardByHash' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'hash' } }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'minerRewards' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'block' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'hash_eq' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'hash' } + } + } + ] + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'height' } + }, + { kind: 'Field', name: { kind: 'Name', value: 'hash' } } + ] + } + }, + { kind: 'Field', name: { kind: 'Name', value: 'reward' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'miner' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetMinerRewardByHashQuery, + GetMinerRewardByHashQueryVariables +>; +export const GetScheduledReversibleTransactionsDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetScheduledReversibleTransactions' }, variableDefinitions: [ { kind: 'VariableDefinition', @@ -3793,7 +13065,10 @@ export const GetErrorEventsDocument = { kind: 'NonNullType', type: { kind: 'NamedType', - name: { kind: 'Name', value: 'ErrorEventOrderByInput' } + name: { + kind: 'Name', + value: 'ScheduledReversibleTransferOrderByInput' + } } } } @@ -3806,7 +13081,10 @@ export const GetErrorEventsDocument = { }, type: { kind: 'NamedType', - name: { kind: 'Name', value: 'ErrorEventWhereInput' } + name: { + kind: 'Name', + value: 'ScheduledReversibleTransferWhereInput' + } } } ], @@ -3815,7 +13093,8 @@ export const GetErrorEventsDocument = { selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'errorEvents' }, + alias: { kind: 'Name', value: 'scheduledReversibleTransactions' }, + name: { kind: 'Name', value: 'scheduledReversibleTransfers' }, arguments: [ { kind: 'Argument', @@ -3853,16 +13132,26 @@ export const GetErrorEventsDocument = { selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'errorDocs' } }, - { kind: 'Field', name: { kind: 'Name', value: 'errorModule' } }, - { kind: 'Field', name: { kind: 'Name', value: 'errorName' } }, - { kind: 'Field', name: { kind: 'Name', value: 'errorType' } }, { kind: 'Field', - name: { kind: 'Name', value: '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: 'amount' } }, { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, + { kind: 'Field', name: { kind: 'Name', value: 'scheduledAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'txId' } }, + { kind: 'Field', name: { kind: 'Name', value: 'fee' } }, { kind: 'Field', name: { kind: 'Name', value: 'block' }, @@ -3872,6 +13161,26 @@ export const GetErrorEventsDocument = { { kind: 'Field', name: { kind: 'Name', value: 'height' } } ] } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'from' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'to' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } } ] } @@ -3879,7 +13188,10 @@ export const GetErrorEventsDocument = { { kind: 'Field', alias: { kind: 'Name', value: 'meta' }, - name: { kind: 'Name', value: 'errorEventsConnection' }, + name: { + kind: 'Name', + value: 'scheduledReversibleTransfersConnection' + }, arguments: [ { kind: 'Argument', @@ -3906,14 +13218,17 @@ export const GetErrorEventsDocument = { } } ] -} as unknown as DocumentNode; -export const GetRecentErrorEventsDocument = { +} as unknown as DocumentNode< + GetScheduledReversibleTransactionsQuery, + GetScheduledReversibleTransactionsQueryVariables +>; +export const GetRecentScheduledReversibleTransactionsDocument = { kind: 'Document', definitions: [ { kind: 'OperationDefinition', operation: 'query', - name: { kind: 'Name', value: 'GetRecentErrorEvents' }, + name: { kind: 'Name', value: 'GetRecentScheduledReversibleTransactions' }, variableDefinitions: [ { kind: 'VariableDefinition', @@ -3943,21 +13258,13 @@ export const GetRecentErrorEventsDocument = { kind: 'NonNullType', type: { kind: 'NamedType', - name: { kind: 'Name', value: 'ErrorEventOrderByInput' } + name: { + kind: 'Name', + value: 'ScheduledReversibleTransferOrderByInput' + } } } } - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'where' } - }, - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'ErrorEventWhereInput' } - } } ], selectionSet: { @@ -3965,7 +13272,8 @@ export const GetRecentErrorEventsDocument = { selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'errorEvents' }, + alias: { kind: 'Name', value: 'scheduledReversibleTransactions' }, + name: { kind: 'Name', value: 'scheduledReversibleTransfers' }, arguments: [ { kind: 'Argument', @@ -3990,36 +13298,58 @@ export const GetRecentErrorEventsDocument = { kind: 'Variable', name: { kind: 'Name', value: 'orderBy' } } - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'where' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'where' } - } } ], selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'errorDocs' } }, - { kind: 'Field', name: { kind: 'Name', value: 'errorModule' } }, - { kind: 'Field', name: { kind: 'Name', value: 'errorName' } }, - { kind: 'Field', name: { kind: 'Name', value: 'errorType' } }, { kind: 'Field', - name: { kind: 'Name', value: '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' } }, + { kind: 'Field', name: { kind: 'Name', value: 'scheduledAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'txId' } }, + { kind: 'Field', name: { kind: 'Name', value: 'fee' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'from' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } }, - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, { kind: 'Field', - name: { kind: 'Name', value: 'block' }, + name: { kind: 'Name', value: 'to' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'height' } } + { kind: 'Field', name: { kind: 'Name', value: 'id' } } ] } } @@ -4031,16 +13361,16 @@ export const GetRecentErrorEventsDocument = { } ] } as unknown as DocumentNode< - GetRecentErrorEventsQuery, - GetRecentErrorEventsQueryVariables + GetRecentScheduledReversibleTransactionsQuery, + GetRecentScheduledReversibleTransactionsQueryVariables >; -export const GetErrorEventsStatsDocument = { +export const GetScheduledReversibleTransactionsStatsDocument = { kind: 'Document', definitions: [ { kind: 'OperationDefinition', operation: 'query', - name: { kind: 'Name', value: 'GetErrorEventsStats' }, + name: { kind: 'Name', value: 'GetScheduledReversibleTransactionsStats' }, variableDefinitions: [ { kind: 'VariableDefinition', @@ -4077,7 +13407,10 @@ export const GetErrorEventsStatsDocument = { { kind: 'Field', alias: { kind: 'Name', value: 'last24Hour' }, - name: { kind: 'Name', value: 'errorEventsConnection' }, + name: { + kind: 'Name', + value: 'scheduledReversibleTransfersConnection' + }, arguments: [ { kind: 'Argument', @@ -4120,7 +13453,10 @@ export const GetErrorEventsStatsDocument = { { kind: 'Field', alias: { kind: 'Name', value: 'allTime' }, - name: { kind: 'Name', value: 'errorEventsConnection' }, + name: { + kind: 'Name', + value: 'scheduledReversibleTransfersConnection' + }, arguments: [ { kind: 'Argument', @@ -4140,20 +13476,20 @@ export const GetErrorEventsStatsDocument = { } ] } as unknown as DocumentNode< - GetErrorEventsStatsQuery, - GetErrorEventsStatsQueryVariables + GetScheduledReversibleTransactionsStatsQuery, + GetScheduledReversibleTransactionsStatsQueryVariables >; -export const GetErrorEventByHashDocument = { +export const GetScheduledReversibleTransactionByTxIdDocument = { kind: 'Document', definitions: [ { kind: 'OperationDefinition', operation: 'query', - name: { kind: 'Name', value: 'GetErrorEventByHash' }, + name: { kind: 'Name', value: 'GetScheduledReversibleTransactionByTxId' }, variableDefinitions: [ { kind: 'VariableDefinition', - variable: { kind: 'Variable', name: { kind: 'Name', value: 'hash' } }, + variable: { kind: 'Variable', name: { kind: 'Name', value: 'txId' } }, type: { kind: 'NonNullType', type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } } @@ -4165,8 +13501,8 @@ export const GetErrorEventByHashDocument = { selections: [ { kind: 'Field', - alias: { kind: 'Name', value: 'errorEvents' }, - name: { kind: 'Name', value: 'errorEvents' }, + alias: { kind: 'Name', value: 'scheduledReversibleTransactions' }, + name: { kind: 'Name', value: 'scheduledReversibleTransfers' }, arguments: [ { kind: 'Argument', @@ -4176,10 +13512,10 @@ export const GetErrorEventByHashDocument = { fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'extrinsicHash_eq' }, + name: { kind: 'Name', value: 'txId_eq' }, value: { kind: 'Variable', - name: { kind: 'Name', value: 'hash' } + name: { kind: 'Name', value: 'txId' } } } ] @@ -4189,16 +13525,26 @@ export const GetErrorEventByHashDocument = { selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'errorDocs' } }, - { kind: 'Field', name: { kind: 'Name', value: 'errorModule' } }, - { kind: 'Field', name: { kind: 'Name', value: 'errorName' } }, - { kind: 'Field', name: { kind: 'Name', value: 'errorType' } }, { kind: 'Field', - name: { kind: 'Name', value: '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: 'amount' } }, { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, + { kind: 'Field', name: { kind: 'Name', value: 'scheduledAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'txId' } }, + { kind: 'Field', name: { kind: 'Name', value: 'fee' } }, { kind: 'Field', name: { kind: 'Name', value: 'block' }, @@ -4208,6 +13554,26 @@ export const GetErrorEventByHashDocument = { { kind: 'Field', name: { kind: 'Name', value: 'height' } } ] } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'from' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'to' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } } ] } @@ -4217,30 +13583,30 @@ export const GetErrorEventByHashDocument = { } ] } as unknown as DocumentNode< - GetErrorEventByHashQuery, - GetErrorEventByHashQueryVariables + GetScheduledReversibleTransactionByTxIdQuery, + GetScheduledReversibleTransactionByTxIdQueryVariables >; -export const GetHighSecuritySetsDocument = { +export const SearchAllDocument = { kind: 'Document', definitions: [ { kind: 'OperationDefinition', operation: 'query', - name: { kind: 'Name', value: 'GetHighSecuritySets' }, + name: { kind: 'Name', value: 'SearchAll' }, variableDefinitions: [ { kind: 'VariableDefinition', variable: { kind: 'Variable', - name: { kind: 'Name', value: 'limit' } + name: { kind: 'Name', value: 'keyword' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } } }, { kind: 'VariableDefinition', variable: { kind: 'Variable', - name: { kind: 'Name', value: 'offset' } + name: { kind: 'Name', value: 'keyword_number' } }, type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } }, @@ -4248,29 +13614,9 @@ export const GetHighSecuritySetsDocument = { kind: 'VariableDefinition', variable: { kind: 'Variable', - name: { kind: 'Name', value: 'orderBy' } - }, - type: { - kind: 'ListType', - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'HighSecuritySetOrderByInput' } - } - } - } - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'where' } + name: { kind: 'Name', value: 'limit' } }, - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'HighSecuritySetWhereInput' } - } + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } } ], selectionSet: { @@ -4278,7 +13624,8 @@ export const GetHighSecuritySetsDocument = { selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'highSecuritySets' }, + alias: { kind: 'Name', value: 'transactions' }, + name: { kind: 'Name', value: 'transfers' }, arguments: [ { kind: 'Argument', @@ -4288,68 +13635,48 @@ export const GetHighSecuritySetsDocument = { name: { kind: 'Name', value: 'limit' } } }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'offset' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'offset' } - } - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'orderBy' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'orderBy' } - } - }, { kind: 'Argument', name: { kind: 'Name', value: 'where' }, value: { - kind: 'Variable', - name: { kind: 'Name', value: 'where' } + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'extrinsic' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'id_startsWith' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'keyword' } + } + } + ] + } + } + ] } } ], selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'extrinsicHash' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'who' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } } - ] - } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'interceptor' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } } - ] - } - }, - { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, - { kind: 'Field', name: { kind: 'Name', value: 'delay' } }, { kind: 'Field', - name: { kind: 'Name', value: 'block' }, + name: { kind: 'Name', value: 'extrinsic' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'height' } } + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'pallet' } + }, + { kind: 'Field', name: { kind: 'Name', value: 'call' } } ] } } @@ -4358,97 +13685,61 @@ export const GetHighSecuritySetsDocument = { }, { kind: 'Field', - alias: { kind: 'Name', value: 'meta' }, - name: { kind: 'Name', value: 'highSecuritySetsConnection' }, + alias: { kind: 'Name', value: 'scheduledReversibleTransactions' }, + name: { kind: 'Name', value: 'scheduledReversibleTransfers' }, arguments: [ { kind: 'Argument', - name: { kind: 'Name', value: 'orderBy' }, - value: { kind: 'EnumValue', value: 'id_ASC' } + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + } }, { kind: 'Argument', name: { kind: 'Name', value: 'where' }, value: { - kind: 'Variable', - name: { kind: 'Name', value: 'where' } + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'txId_startsWith' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'keyword' } + } + } + ] } } ], selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } - ] - } - } - ] - } - } - ] -} as unknown as DocumentNode< - GetHighSecuritySetsQuery, - GetHighSecuritySetsQueryVariables ->; -export const GetRecentHighSecuritySetsDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'GetRecentHighSecuritySets' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'limit' } - }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'offset' } - }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'orderBy' } - }, - type: { - kind: 'ListType', - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'HighSecuritySetOrderByInput' } - } - } - } - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'where' } + { + 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: 'txId' } } + ] + } }, - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'HighSecuritySetWhereInput' } - } - } - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'highSecuritySets' }, + alias: { kind: 'Name', value: 'executedReversibleTransactions' }, + name: { kind: 'Name', value: 'executedReversibleTransfers' }, arguments: [ { kind: 'Argument', @@ -4460,129 +13751,115 @@ export const GetRecentHighSecuritySetsDocument = { }, { kind: 'Argument', - name: { kind: 'Name', value: 'offset' }, + name: { kind: 'Name', value: 'where' }, value: { - kind: 'Variable', - name: { kind: 'Name', value: 'offset' } + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'txId_startsWith' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'keyword' } + } + } + ] } - }, + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'txId' } } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'cancelledReversibleTransactions' }, + name: { kind: 'Name', value: 'cancelledReversibleTransfers' }, + arguments: [ { kind: 'Argument', - name: { kind: 'Name', value: 'orderBy' }, + name: { kind: 'Name', value: 'limit' }, value: { kind: 'Variable', - name: { kind: 'Name', value: 'orderBy' } + name: { kind: 'Name', value: 'limit' } } }, { kind: 'Argument', name: { kind: 'Name', value: 'where' }, value: { - kind: 'Variable', - name: { kind: 'Name', value: 'where' } + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'txId_startsWith' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'keyword' } + } + } + ] } } ], selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'extrinsicHash' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'who' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } } - ] - } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'interceptor' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } } - ] - } - }, - { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, - { kind: 'Field', name: { kind: 'Name', value: 'delay' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'block' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'height' } } - ] - } - } + { kind: 'Field', name: { kind: 'Name', value: 'txId' } } ] } - } - ] - } - } - ] -} as unknown as DocumentNode< - GetRecentHighSecuritySetsQuery, - GetRecentHighSecuritySetsQueryVariables ->; -export const GetHighSecuritySetsStatsDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'GetHighSecuritySetsStats' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'startDate' } }, - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'DateTime' } + { + kind: 'Field', + name: { kind: 'Name', value: 'accounts' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'id_startsWith' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'keyword' } + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] } - } - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'endDate' } }, - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'DateTime' } - } - } - } - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ { kind: 'Field', - alias: { kind: 'Name', value: 'last24Hour' }, - name: { kind: 'Name', value: 'highSecuritySetsConnection' }, + name: { kind: 'Name', value: 'blocks' }, arguments: [ { kind: 'Argument', - name: { kind: 'Name', value: 'orderBy' }, - value: { kind: 'EnumValue', value: 'id_ASC' } + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + } }, { kind: 'Argument', @@ -4592,18 +13869,27 @@ export const GetHighSecuritySetsStatsDocument = { fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'timestamp_gte' }, + name: { kind: 'Name', value: 'hash_startsWith' }, value: { kind: 'Variable', - name: { kind: 'Name', value: 'startDate' } + name: { kind: 'Name', value: 'keyword' } } }, { kind: 'ObjectField', - name: { kind: 'Name', value: 'timestamp_lte' }, + name: { kind: 'Name', value: 'OR' }, value: { - kind: 'Variable', - name: { kind: 'Name', value: 'endDate' } + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'height_eq' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'keyword_number' } + } + } + ] } } ] @@ -4613,60 +13899,82 @@ export const GetHighSecuritySetsStatsDocument = { selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } + { kind: 'Field', name: { kind: 'Name', value: 'height' } } ] } }, { kind: 'Field', - alias: { kind: 'Name', value: 'allTime' }, - name: { kind: 'Name', value: 'highSecuritySetsConnection' }, + name: { kind: 'Name', value: 'highSecuritySets' }, arguments: [ { kind: 'Argument', - name: { kind: 'Name', value: 'orderBy' }, - value: { kind: 'EnumValue', value: 'id_ASC' } + 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: 'extrinsic' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'id_startsWith' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'keyword' } + } + } + ] + } + } + ] + } } ], selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } - ] - } - } - ] - } - } - ] -} as unknown as DocumentNode< - GetHighSecuritySetsStatsQuery, - GetHighSecuritySetsStatsQueryVariables ->; -export const GetHighSecuritySetByHashDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'GetHighSecuritySetByHash' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { kind: 'Variable', name: { kind: 'Name', value: 'hash' } }, - type: { - kind: 'NonNullType', - type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } } - } - } - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ + { + kind: 'Field', + 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: 'highSecuritySets' }, + name: { kind: 'Name', value: 'minerRewards' }, arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + } + }, { kind: 'Argument', name: { kind: 'Name', value: 'where' }, @@ -4675,10 +13983,19 @@ export const GetHighSecuritySetByHashDocument = { fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'extrinsicHash_eq' }, + name: { kind: 'Name', value: 'block' }, value: { - kind: 'Variable', - name: { kind: 'Name', value: 'hash' } + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'hash_startsWith' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'keyword' } + } + } + ] } } ] @@ -4688,24 +14005,24 @@ export const GetHighSecuritySetByHashDocument = { selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'extrinsicHash' } - }, { kind: 'Field', - name: { kind: 'Name', value: 'who' }, + name: { kind: 'Name', value: 'block' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } } + { + kind: 'Field', + name: { kind: 'Name', value: 'height' } + }, + { kind: 'Field', name: { kind: 'Name', value: 'hash' } } ] } }, + { kind: 'Field', name: { kind: 'Name', value: 'reward' } }, { kind: 'Field', - name: { kind: 'Name', value: 'interceptor' }, + name: { kind: 'Name', value: 'miner' }, selectionSet: { kind: 'SelectionSet', selections: [ @@ -4713,61 +14030,13 @@ export const GetHighSecuritySetByHashDocument = { ] } }, - { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, - { kind: 'Field', name: { kind: 'Name', value: 'delay' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'block' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'height' } } - ] - } - } + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } } ] } - } - ] - } - } - ] -} as unknown as DocumentNode< - GetHighSecuritySetByHashQuery, - GetHighSecuritySetByHashQueryVariables ->; -export const GetMinerLeaderboardDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'GetMinerLeaderboard' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'limit' } - }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'offset' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } - } - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ { kind: 'Field', - alias: { kind: 'Name', value: 'leaderboardEntries' }, - name: { kind: 'Name', value: 'minerStats' }, + name: { kind: 'Name', value: 'errorEvents' }, arguments: [ { kind: 'Argument', @@ -4779,45 +14048,63 @@ export const GetMinerLeaderboardDocument = { }, { kind: 'Argument', - name: { kind: 'Name', value: 'offset' }, + name: { kind: 'Name', value: 'where' }, value: { - kind: 'Variable', - name: { kind: 'Name', value: 'offset' } + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { + kind: 'Name', + value: 'errorType_containsInsensitive' + }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'keyword' } + } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'OR' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { + kind: 'Name', + value: 'errorName_containsInsensitive' + }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'keyword' } + } + } + ] + } + } + ] } - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'orderBy' }, - value: { kind: 'EnumValue', value: 'totalMinedBlocks_DESC' } } ], selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'totalMinedBlocks' } - }, - { kind: 'Field', name: { kind: 'Name', value: 'totalRewards' } } - ] - } - }, - { - kind: 'Field', - alias: { kind: 'Name', value: 'meta' }, - name: { kind: 'Name', value: 'minerStatsConnection' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'orderBy' }, - value: { kind: 'EnumValue', value: 'id_ASC' } - } - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } + 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' } } + ] + } + } ] } } @@ -4825,17 +14112,14 @@ export const GetMinerLeaderboardDocument = { } } ] -} as unknown as DocumentNode< - GetMinerLeaderboardQuery, - GetMinerLeaderboardQueryVariables ->; -export const GetMinerRewardsDocument = { +} as unknown as DocumentNode; +export const GetTransactionsDocument = { kind: 'Document', definitions: [ { kind: 'OperationDefinition', operation: 'query', - name: { kind: 'Name', value: 'GetMinerRewards' }, + name: { kind: 'Name', value: 'GetTransactions' }, variableDefinitions: [ { kind: 'VariableDefinition', @@ -4865,7 +14149,7 @@ export const GetMinerRewardsDocument = { kind: 'NonNullType', type: { kind: 'NamedType', - name: { kind: 'Name', value: 'MinerRewardOrderByInput' } + name: { kind: 'Name', value: 'TransferOrderByInput' } } } } @@ -4878,7 +14162,7 @@ export const GetMinerRewardsDocument = { }, type: { kind: 'NamedType', - name: { kind: 'Name', value: 'MinerRewardWhereInput' } + name: { kind: 'Name', value: 'TransferWhereInput' } } } ], @@ -4887,7 +14171,8 @@ export const GetMinerRewardsDocument = { selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'minerRewards' }, + alias: { kind: 'Name', value: 'transactions' }, + name: { kind: 'Name', value: 'transfers' }, arguments: [ { kind: 'Argument', @@ -4925,24 +14210,37 @@ export const GetMinerRewardsDocument = { selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'fee' } }, { kind: 'Field', - name: { kind: 'Name', value: 'block' }, + name: { kind: 'Name', value: 'extrinsic' }, selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'height' } + name: { kind: 'Name', value: 'pallet' } }, - { kind: 'Field', name: { kind: 'Name', value: 'hash' } } + { kind: 'Field', name: { kind: 'Name', value: 'call' } } ] } }, - { kind: 'Field', name: { kind: 'Name', value: 'reward' } }, { kind: 'Field', - name: { kind: 'Name', value: 'miner' }, + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } } + ] + } + }, + { kind: 'Field', name: { kind: 'Name', value: 'amount' } }, + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'from' }, selectionSet: { kind: 'SelectionSet', selections: [ @@ -4950,14 +14248,23 @@ export const GetMinerRewardsDocument = { ] } }, - { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } } + { + kind: 'Field', + name: { kind: 'Name', value: 'to' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + } ] } }, { kind: 'Field', alias: { kind: 'Name', value: 'meta' }, - name: { kind: 'Name', value: 'minerRewardsConnection' }, + name: { kind: 'Name', value: 'transfersConnection' }, arguments: [ { kind: 'Argument', @@ -4985,16 +14292,16 @@ export const GetMinerRewardsDocument = { } ] } as unknown as DocumentNode< - GetMinerRewardsQuery, - GetMinerRewardsQueryVariables + GetTransactionsQuery, + GetTransactionsQueryVariables >; -export const GetRecentMinerRewardsDocument = { +export const GetRecentTransactionsDocument = { kind: 'Document', definitions: [ { kind: 'OperationDefinition', operation: 'query', - name: { kind: 'Name', value: 'GetRecentMinerRewards' }, + name: { kind: 'Name', value: 'GetRecentTransactions' }, variableDefinitions: [ { kind: 'VariableDefinition', @@ -5024,7 +14331,7 @@ export const GetRecentMinerRewardsDocument = { kind: 'NonNullType', type: { kind: 'NamedType', - name: { kind: 'Name', value: 'MinerRewardOrderByInput' } + name: { kind: 'Name', value: 'TransferOrderByInput' } } } } @@ -5037,7 +14344,7 @@ export const GetRecentMinerRewardsDocument = { }, type: { kind: 'NamedType', - name: { kind: 'Name', value: 'MinerRewardWhereInput' } + name: { kind: 'Name', value: 'TransferWhereInput' } } } ], @@ -5046,7 +14353,8 @@ export const GetRecentMinerRewardsDocument = { selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'minerRewards' }, + alias: { kind: 'Name', value: 'transactions' }, + name: { kind: 'Name', value: 'transfers' }, arguments: [ { kind: 'Argument', @@ -5084,32 +14392,54 @@ export const GetRecentMinerRewardsDocument = { selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'fee' } }, { kind: 'Field', - name: { kind: 'Name', value: 'block' }, + name: { kind: 'Name', value: 'extrinsic' }, selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'height' } + name: { kind: 'Name', value: 'pallet' } }, - { kind: 'Field', name: { kind: 'Name', value: 'hash' } } + { kind: 'Field', name: { kind: 'Name', value: 'call' } } ] } }, - { kind: 'Field', name: { kind: 'Name', value: 'reward' } }, { kind: 'Field', - name: { kind: 'Name', value: 'miner' }, + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } } + ] + } + }, + { kind: 'Field', name: { kind: 'Name', value: 'amount' } }, + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'from' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'to' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', name: { kind: 'Name', value: 'id' } } ] } - }, - { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } } + } ] } } @@ -5118,16 +14448,16 @@ export const GetRecentMinerRewardsDocument = { } ] } as unknown as DocumentNode< - GetRecentMinerRewardsQuery, - GetRecentMinerRewardsQueryVariables + GetRecentTransactionsQuery, + GetRecentTransactionsQueryVariables >; -export const GetMinerRewardsStatsDocument = { +export const GetTransactionsStatsDocument = { kind: 'Document', definitions: [ { kind: 'OperationDefinition', operation: 'query', - name: { kind: 'Name', value: 'GetMinerRewardsStats' }, + name: { kind: 'Name', value: 'GetTransactionsStats' }, variableDefinitions: [ { kind: 'VariableDefinition', @@ -5164,7 +14494,7 @@ export const GetMinerRewardsStatsDocument = { { kind: 'Field', alias: { kind: 'Name', value: 'last24Hour' }, - name: { kind: 'Name', value: 'minerRewardsConnection' }, + name: { kind: 'Name', value: 'transfersConnection' }, arguments: [ { kind: 'Argument', @@ -5192,6 +14522,11 @@ export const GetMinerRewardsStatsDocument = { kind: 'Variable', name: { kind: 'Name', value: 'endDate' } } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'extrinsic_isNull' }, + value: { kind: 'BooleanValue', value: false } } ] } @@ -5207,12 +14542,58 @@ export const GetMinerRewardsStatsDocument = { { kind: 'Field', alias: { kind: 'Name', value: 'allTime' }, - name: { kind: 'Name', value: 'minerRewardsConnection' }, + 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 } + } + ] + } + } + ], + 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 } + } + ] + } } ], selectionSet: { @@ -5227,16 +14608,16 @@ export const GetMinerRewardsStatsDocument = { } ] } as unknown as DocumentNode< - GetMinerRewardsStatsQuery, - GetMinerRewardsStatsQueryVariables + GetTransactionsStatsQuery, + GetTransactionsStatsQueryVariables >; -export const GetMinerRewardByHashDocument = { +export const GetExtrinsicByHashDocument = { kind: 'Document', definitions: [ { kind: 'OperationDefinition', operation: 'query', - name: { kind: 'Name', value: 'GetMinerRewardByHash' }, + name: { kind: 'Name', value: 'GetExtrinsicByHash' }, variableDefinitions: [ { kind: 'VariableDefinition', @@ -5252,7 +14633,7 @@ export const GetMinerRewardByHashDocument = { selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'minerRewards' }, + name: { kind: 'Name', value: 'extrinsics' }, arguments: [ { kind: 'Argument', @@ -5262,19 +14643,10 @@ export const GetMinerRewardByHashDocument = { fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'block' }, + name: { kind: 'Name', value: 'id_eq' }, value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'hash_eq' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'hash' } - } - } - ] + kind: 'Variable', + name: { kind: 'Name', value: 'hash' } } } ] @@ -5284,155 +14656,79 @@ export const GetMinerRewardByHashDocument = { selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'pallet' } }, + { kind: 'Field', name: { kind: 'Name', value: 'call' } }, + { kind: 'Field', name: { kind: 'Name', value: 'success' } }, + { kind: 'Field', name: { kind: 'Name', value: 'fee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, { kind: 'Field', - name: { kind: 'Name', value: 'block' }, + name: { kind: 'Name', value: 'indexInBlock' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'signer' }, selectionSet: { kind: 'SelectionSet', selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'height' } - }, - { kind: 'Field', name: { kind: 'Name', value: 'hash' } } + { kind: 'Field', name: { kind: 'Name', value: 'id' } } ] } }, - { kind: 'Field', name: { kind: 'Name', value: 'reward' } }, { kind: 'Field', - name: { kind: 'Name', value: 'miner' }, + name: { kind: 'Name', value: 'block' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } } + { kind: 'Field', name: { kind: 'Name', value: 'height' } } ] } - }, - { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } } + } ] } - } - ] - } - } - ] -} as unknown as DocumentNode< - GetMinerRewardByHashQuery, - GetMinerRewardByHashQueryVariables ->; -export const GetTransactionsDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'GetTransactions' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'limit' } - }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'offset' } - }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'orderBy' } - }, - type: { - kind: 'ListType', - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'TransferOrderByInput' } - } - } - } - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'where' } }, - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'TransferWhereInput' } - } - } - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ { kind: 'Field', - alias: { kind: 'Name', value: 'transactions' }, name: { kind: 'Name', value: 'transfers' }, arguments: [ { kind: 'Argument', - name: { kind: 'Name', value: 'limit' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'limit' } - } - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'offset' }, + name: { kind: 'Name', value: 'where' }, value: { - kind: 'Variable', - name: { kind: 'Name', value: 'offset' } + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'extrinsic' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'id_eq' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'hash' } + } + } + ] + } + } + ] } }, { kind: 'Argument', name: { kind: 'Name', value: 'orderBy' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'orderBy' } - } - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'where' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'where' } - } + value: { kind: 'EnumValue', value: 'timestamp_ASC' } } ], selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'fee' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'extrinsicHash' } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'block' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'height' } } - ] - } - }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', name: { kind: 'Name', value: 'amount' } }, { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, { @@ -5457,48 +14753,22 @@ export const GetTransactionsDocument = { } ] } - }, - { - kind: 'Field', - alias: { kind: 'Name', value: 'meta' }, - 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: 'Variable', - name: { kind: 'Name', value: 'where' } - } - } - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } - ] - } } ] } } ] -} as unknown as DocumentNode< - GetTransactionsQuery, - GetTransactionsQueryVariables +} as unknown as DocumentNode< + GetExtrinsicByHashQuery, + GetExtrinsicByHashQueryVariables >; -export const GetRecentTransactionsDocument = { +export const GetWormholeExtrinsicsDocument = { kind: 'Document', definitions: [ { kind: 'OperationDefinition', operation: 'query', - name: { kind: 'Name', value: 'GetRecentTransactions' }, + name: { kind: 'Name', value: 'GetWormholeExtrinsics' }, variableDefinitions: [ { kind: 'VariableDefinition', @@ -5523,12 +14793,15 @@ export const GetRecentTransactionsDocument = { name: { kind: 'Name', value: 'orderBy' } }, type: { - kind: 'ListType', + kind: 'NonNullType', type: { - kind: 'NonNullType', + kind: 'ListType', type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'TransferOrderByInput' } + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'WormholeExtrinsicOrderByInput' } + } } } } @@ -5541,7 +14814,7 @@ export const GetRecentTransactionsDocument = { }, type: { kind: 'NamedType', - name: { kind: 'Name', value: 'TransferWhereInput' } + name: { kind: 'Name', value: 'WormholeExtrinsicWhereInput' } } } ], @@ -5550,8 +14823,7 @@ export const GetRecentTransactionsDocument = { selections: [ { kind: 'Field', - alias: { kind: 'Name', value: 'transactions' }, - name: { kind: 'Name', value: 'transfers' }, + name: { kind: 'Name', value: 'wormholeExtrinsics' }, arguments: [ { kind: 'Argument', @@ -5589,88 +14861,86 @@ export const GetRecentTransactionsDocument = { selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'fee' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'extrinsicHash' } - }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'block' }, + name: { kind: 'Name', value: 'extrinsic' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'height' } } + { 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: 'totalAmount' } }, + { kind: 'Field', name: { kind: 'Name', value: 'outputCount' } }, { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, { kind: 'Field', - name: { kind: 'Name', value: 'from' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } } - ] - } + name: { kind: 'Name', value: 'privacyScore' } }, { kind: 'Field', - name: { kind: 'Name', value: 'to' }, + name: { kind: 'Name', value: 'privacyLabel' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } } + { kind: 'Field', name: { kind: 'Name', value: 'height' } } ] } } ] } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'meta' }, + name: { kind: 'Name', value: 'wormholeExtrinsicsConnection' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'orderBy' }, + value: { kind: 'EnumValue', value: 'id_ASC' } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } + ] + } } ] } } ] } as unknown as DocumentNode< - GetRecentTransactionsQuery, - GetRecentTransactionsQueryVariables + GetWormholeExtrinsicsQuery, + GetWormholeExtrinsicsQueryVariables >; -export const GetTransactionsStatsDocument = { +export const GetWormholeExtrinsicByIdDocument = { kind: 'Document', definitions: [ { kind: 'OperationDefinition', operation: 'query', - name: { kind: 'Name', value: 'GetTransactionsStats' }, + name: { kind: 'Name', value: 'GetWormholeExtrinsicById' }, variableDefinitions: [ { kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'startDate' } - }, - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'DateTime' } - } - } - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'endDate' } - }, + variable: { kind: 'Variable', name: { kind: 'Name', value: 'id' } }, type: { kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'DateTime' } - } + type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } } } } ], @@ -5679,62 +14949,110 @@ export const GetTransactionsStatsDocument = { selections: [ { kind: 'Field', - alias: { kind: 'Name', value: 'last24Hour' }, - name: { kind: 'Name', value: 'transfersConnection' }, + name: { kind: 'Name', value: 'wormholeExtrinsicById' }, 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: 'timestamp_gte' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'startDate' } - } - }, - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'timestamp_lte' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'endDate' } - } - }, - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'extrinsicHash_isNull' }, - value: { kind: 'BooleanValue', value: false } - } - ] - } + name: { kind: 'Name', value: 'id' }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'id' } } } ], selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } + { 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: 'privacyScore' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'privacyScore01Pct' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'privacyScore1Pct' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'privacyScore5Pct' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'privacyLabel' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'poolSnapshot' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'height' } + }, + { kind: 'Field', name: { kind: 'Name', value: 'hash' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'timestamp' } + } + ] + } + }, + { + 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' } } + ] + } + } ] } }, { kind: 'Field', - alias: { kind: 'Name', value: 'allTime' }, - name: { kind: 'Name', value: 'transfersConnection' }, + name: { kind: 'Name', value: 'wormholeNullifiers' }, arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'orderBy' }, - value: { kind: 'EnumValue', value: 'id_ASC' } - }, { kind: 'Argument', name: { kind: 'Name', value: 'where' }, @@ -5743,8 +15061,29 @@ export const GetTransactionsStatsDocument = { fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'extrinsicHash_isNull' }, - value: { kind: 'BooleanValue', value: false } + name: { kind: 'Name', value: 'wormholeExtrinsic' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'extrinsic' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'id_eq' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'id' } + } + } + ] + } + } + ] + } } ] } @@ -5753,7 +15092,11 @@ export const GetTransactionsStatsDocument = { selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } } + { kind: 'Field', name: { kind: 'Name', value: 'nullifier' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'nullifierHash' } + } ] } } @@ -5762,92 +15105,37 @@ export const GetTransactionsStatsDocument = { } ] } as unknown as DocumentNode< - GetTransactionsStatsQuery, - GetTransactionsStatsQueryVariables + GetWormholeExtrinsicByIdQuery, + GetWormholeExtrinsicByIdQueryVariables >; -export const GetTransactionByHashDocument = { +export const GetDepositPoolStatsDocument = { kind: 'Document', definitions: [ { kind: 'OperationDefinition', operation: 'query', - name: { kind: 'Name', value: 'GetTransactionByHash' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { kind: 'Variable', name: { kind: 'Name', value: 'hash' } }, - type: { - kind: 'NonNullType', - type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } } - } - } - ], + name: { kind: 'Name', value: 'GetDepositPoolStats' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - alias: { kind: 'Name', value: 'transactions' }, - name: { kind: 'Name', value: 'transfers' }, + name: { kind: 'Name', value: 'depositPoolStatsById' }, arguments: [ { kind: 'Argument', - name: { kind: 'Name', value: 'where' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'extrinsicHash_eq' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'hash' } - } - } - ] - } + name: { kind: 'Name', value: 'id' }, + value: { kind: 'StringValue', value: 'global', block: false } } ], selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'fee' } }, { kind: 'Field', - name: { kind: 'Name', value: 'extrinsicHash' } + name: { kind: 'Name', value: 'lastUpdatedBlock' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'block' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'height' } } - ] - } - }, - { kind: 'Field', name: { kind: 'Name', value: 'amount' } }, - { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'from' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } } - ] - } - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'to' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } } - ] - } - } + { kind: 'Field', name: { kind: 'Name', value: 'buckets' } } ] } } @@ -5856,6 +15144,6 @@ export const GetTransactionByHashDocument = { } ] } as unknown as DocumentNode< - GetTransactionByHashQuery, - GetTransactionByHashQueryVariables + GetDepositPoolStatsQuery, + GetDepositPoolStatsQueryVariables >; diff --git a/src/api/accounts.tsx b/src/api/accounts.tsx index 6aa368b..9fe6d2b 100644 --- a/src/api/accounts.tsx +++ b/src/api/accounts.tsx @@ -7,6 +7,7 @@ import { subDays } from 'date-fns/subDays'; import { QUERY_DEFAULT_LIMIT } from '@/constants/query-default-limit'; import type { AccountSorts } from '@/constants/query-sorts'; import { ACCOUNT_SORTS } from '@/constants/query-sorts'; +import { QUERY_UNIFIED_LIMIT } from '@/constants/query-unified-limit'; import type { AccountListResponse, AccountResponse, @@ -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,12 @@ export const accounts = { ) { edges { node { - extrinsicHash + extrinsic { + id + pallet + call + } + timestamp amount timestamp scheduledAt @@ -132,7 +142,11 @@ export const accounts = { height } scheduledTransfer { - extrinsicHash + extrinsic { + id + pallet + call + } amount timestamp scheduledAt @@ -174,7 +188,11 @@ export const accounts = { id } scheduledTransfer { - extrinsicHash + extrinsic { + id + pallet + call + } amount timestamp scheduledAt @@ -222,6 +240,10 @@ export const accounts = { ) { edges { node { + timestamp + block { + height + } interceptor { id free @@ -240,6 +262,10 @@ export const accounts = { ) { edges { node { + timestamp + block { + height + } who { id free @@ -251,6 +277,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 + } + } + } } `; @@ -260,7 +318,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 83d2631..dceedad 100644 --- a/src/api/blocks.tsx +++ b/src/api/blocks.tsx @@ -6,6 +6,7 @@ import { QUERY_DEFAULT_LIMIT } from '@/constants/query-default-limit'; import { QUERY_RECENT_LIMIT } from '@/constants/query-recent-limit'; import type { BlockSorts } from '@/constants/query-sorts'; import { BLOCK_SORTS } from '@/constants/query-sorts'; +import { QUERY_UNIFIED_LIMIT } from '@/constants/query-unified-limit'; import type { BlockListResponse, BlockResponse, @@ -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,12 @@ export const blocks = { ) { edges { node { - extrinsicHash + extrinsic { + id + pallet + call + } + timestamp amount timestamp scheduledAt @@ -184,7 +218,11 @@ export const blocks = { height } scheduledTransfer { - extrinsicHash + extrinsic { + id + pallet + call + } amount timestamp scheduledAt @@ -223,7 +261,11 @@ export const blocks = { id } scheduledTransfer { - extrinsicHash + extrinsic { + id + pallet + call + } amount timestamp scheduledAt @@ -253,7 +295,11 @@ export const blocks = { ) { edges { node { - extrinsicHash + extrinsic { + id + pallet + call + } timestamp delay block { @@ -284,7 +330,11 @@ export const blocks = { errorModule errorName errorType - extrinsicHash + extrinsic { + id + pallet + call + } timestamp block { height @@ -294,6 +344,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 + } + } } `; @@ -306,7 +384,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/cancelled-reversible-transactions.tsx b/src/api/cancelled-reversible-transactions.tsx index dc6fede..685270a 100644 --- a/src/api/cancelled-reversible-transactions.tsx +++ b/src/api/cancelled-reversible-transactions.tsx @@ -48,7 +48,11 @@ export const cancelledReversibleTransactions = { id } scheduledTransfer { - extrinsicHash + extrinsic { + id + pallet + call + } amount timestamp scheduledAt @@ -118,7 +122,11 @@ export const cancelledReversibleTransactions = { id } scheduledTransfer { - extrinsicHash + extrinsic { + id + pallet + call + } amount timestamp scheduledAt @@ -200,7 +208,11 @@ export const cancelledReversibleTransactions = { cancelledBy { id } - extrinsicHash + extrinsic { + id + pallet + call + } scheduledTransfer { amount scheduledAt diff --git a/src/api/chain-status.tsx b/src/api/chain-status.tsx index e676637..40ff475 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/executed-reversible-transactions.tsx b/src/api/executed-reversible-transactions.tsx index 3cb1edf..07bce2a 100644 --- a/src/api/executed-reversible-transactions.tsx +++ b/src/api/executed-reversible-transactions.tsx @@ -45,7 +45,11 @@ export const executedReversibleTransactions = { height } scheduledTransfer { - extrinsicHash + extrinsic { + id + pallet + call + } amount timestamp scheduledAt @@ -112,7 +116,11 @@ export const executedReversibleTransactions = { height } scheduledTransfer { - extrinsicHash + extrinsic { + id + pallet + call + } amount timestamp scheduledAt 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/index.tsx b/src/api/index.tsx index 5262639..98ad7d9 100644 --- a/src/api/index.tsx +++ b/src/api/index.tsx @@ -12,7 +12,7 @@ import { minerRewards } from './miner-rewards'; import { scheduledReversibleTransactions } from './scheduled-reversible-transactions'; import { search } from './search'; import { transactions } from './transactions'; -// import { wormhole } from './wormhole'; +import { wormhole } from './wormhole'; const useApiClient = () => { const fetcher = useFetchClient(); @@ -29,8 +29,8 @@ const useApiClient = () => { blocks, minerRewards, minerLeaderboard, - highSecuritySets - // wormhole + highSecuritySets, + wormhole }; return api; diff --git a/src/api/scheduled-reversible-transactions.tsx b/src/api/scheduled-reversible-transactions.tsx index 4dd5c47..bc77d23 100644 --- a/src/api/scheduled-reversible-transactions.tsx +++ b/src/api/scheduled-reversible-transactions.tsx @@ -39,7 +39,11 @@ export const scheduledReversibleTransactions = { orderBy: $orderBy where: $where ) { - extrinsicHash + extrinsic { + id + pallet + call + } amount timestamp scheduledAt @@ -99,7 +103,11 @@ export const scheduledReversibleTransactions = { offset: $offset orderBy: $orderBy ) { - extrinsicHash + extrinsic { + id + pallet + call + } amount timestamp scheduledAt @@ -172,7 +180,11 @@ export const scheduledReversibleTransactions = { scheduledReversibleTransactions: scheduledReversibleTransfers( where: { txId_eq: $txId } ) { - extrinsicHash + extrinsic { + id + pallet + call + } amount timestamp scheduledAt diff --git a/src/api/search.tsx b/src/api/search.tsx index ea2321a..32e0673 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 + } } scheduledReversibleTransactions: scheduledReversibleTransfers( limit: $limit where: { txId_startsWith: $keyword } ) { - extrinsicHash + extrinsic { + id + pallet + call + } txId } executedReversibleTransactions: executedReversibleTransfers( @@ -49,9 +57,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 @@ -74,7 +86,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 b5247df..2580440 100644 --- a/src/api/wormhole.tsx +++ b/src/api/wormhole.tsx @@ -1,125 +1,147 @@ -// import { gql, useQuery } from '@apollo/client'; +import { gql, useQuery } from '@apollo/client'; -// import { DATA_POOL_INTERVAL } from '@/constants/data-pool-interval'; -// import type { -// DepositPoolStatsResponse, -// WormholeExtrinsicListResponse, -// WormholeExtrinsicResponse -// } from '@/schemas/wormhole'; +import type { WormholeExtrinsicWhereInput } from '@/__generated__/graphql'; +import { DATA_POOL_INTERVAL } from '@/constants/data-pool-interval'; +import { + WORMHOLE_EXTRINSIC_SORTS, + type WormholeExtrinsicSorts +} from '@/constants/query-sorts'; +import type { + DepositPoolStatsResponse, + WormholeExtrinsicListResponse, + WormholeExtrinsicResponse +} from '@/schemas/wormhole'; +import type { PaginatedQueryVariables } from '@/types/query'; -// const GET_WORMHOLE_EXTRINSICS = gql` -// query GetWormholeExtrinsics( -// $limit: Int -// $offset: Int -// $orderBy: [WormholeExtrinsicOrderByInput!]! -// $where: WormholeExtrinsicWhereInput -// ) { -// wormholeExtrinsics( -// limit: $limit -// offset: $offset -// orderBy: $orderBy -// where: $where -// ) { -// id -// extrinsicHash -// totalAmount -// outputCount -// timestamp -// privacyScore -// privacyLabel -// block { -// height -// } -// } -// meta: wormholeExtrinsicsConnection(orderBy: id_ASC) { -// totalCount -// } -// } -// `; +const GET_WORMHOLE_EXTRINSICS = gql` + query GetWormholeExtrinsics( + $limit: Int + $offset: Int + $orderBy: [WormholeExtrinsicOrderByInput!]! + $where: WormholeExtrinsicWhereInput + ) { + wormholeExtrinsics( + limit: $limit + offset: $offset + orderBy: $orderBy + where: $where + ) { + id + extrinsic { + id + pallet + call + } + totalAmount + outputCount + timestamp + privacyScore + privacyLabel + block { + height + } + } + meta: wormholeExtrinsicsConnection(orderBy: id_ASC) { + totalCount + } + } +`; -// const GET_WORMHOLE_EXTRINSIC_BY_ID = gql` -// query GetWormholeExtrinsicById($id: String!) { -// wormholeExtrinsicById(id: $id) { -// id -// extrinsicHash -// totalAmount -// outputCount -// timestamp -// privacyScore -// privacyScore01Pct -// privacyScore1Pct -// privacyScore5Pct -// privacyLabel -// poolSnapshot -// block { -// id -// height -// hash -// timestamp -// } -// outputs { -// id -// exitAccount { -// id -// } -// amount -// } -// } -// wormholeNullifiers(where: { extrinsic: { id_eq: $id } }) { -// nullifier -// nullifierHash -// } -// } -// `; +const GET_WORMHOLE_EXTRINSIC_BY_ID = gql` + query GetWormholeExtrinsicById($id: String!) { + wormholeExtrinsicById(id: $id) { + id + extrinsic { + id + pallet + call + } + totalAmount + outputCount + timestamp + privacyScore + privacyScore01Pct + privacyScore1Pct + privacyScore5Pct + privacyLabel + poolSnapshot + block { + id + height + hash + timestamp + } + outputs { + id + exitAccount { + id + } + amount + } + } + wormholeNullifiers( + where: { wormholeExtrinsic: { extrinsic: { id_eq: $id } } } + ) { + nullifier + nullifierHash + } + } +`; -// const GET_DEPOSIT_POOL_STATS = gql` -// query GetDepositPoolStats { -// depositPoolStatsById(id: "global") { -// lastUpdatedBlock -// buckets -// } -// } -// `; +const GET_DEPOSIT_POOL_STATS = gql` + query GetDepositPoolStats { + depositPoolStatsById(id: "global") { + lastUpdatedBlock + buckets + } + } +`; -// export const wormhole = { -// useGetAll: (config?: { -// pollInterval?: number; -// variables?: Record; -// }) => { -// const { pollInterval = DATA_POOL_INTERVAL, variables = {} } = config ?? {}; -// const { -// orderBy = 'timestamp_DESC', -// limit = 25, -// offset = 0, -// where -// } = variables as Record; +export const wormhole = { + useGetAll: (config?: { + pollInterval?: number; + variables?: PaginatedQueryVariables< + WormholeExtrinsicSorts, + WormholeExtrinsicWhereInput + >; + }) => { + const { pollInterval = DATA_POOL_INTERVAL, variables = {} } = config ?? {}; + const { + orderBy = WORMHOLE_EXTRINSIC_SORTS.timestamp.DESC, + limit = 25, + offset = 0, + where + } = variables as PaginatedQueryVariables< + WormholeExtrinsicSorts, + WormholeExtrinsicWhereInput + >; -// return useQuery(GET_WORMHOLE_EXTRINSICS, { -// pollInterval, -// variables: { orderBy: [orderBy], limit, offset, where } -// }); -// }, + return useQuery(GET_WORMHOLE_EXTRINSICS, { + pollInterval, + variables: { orderBy: [orderBy], limit, offset, where } + }); + }, -// getById: () => { -// return { -// useQuery: (id: string, config?: { pollInterval?: number }) => { -// const { pollInterval = 0 } = config ?? {}; -// return useQuery( -// GET_WORMHOLE_EXTRINSIC_BY_ID, -// { -// variables: { id }, -// pollInterval, -// skip: !id -// } -// ); -// } -// }; -// }, + getById: () => { + return { + useQuery: (id: string, config?: { pollInterval?: number }) => { + const { pollInterval = 0 } = config ?? {}; + return useQuery( + GET_WORMHOLE_EXTRINSIC_BY_ID, + { + variables: { id }, + pollInterval, + skip: !id + } + ); + } + }; + }, -// useGetDepositPoolStats: (config?: { pollInterval?: number }) => { -// const { pollInterval = DATA_POOL_INTERVAL } = config ?? {}; -// return useQuery(GET_DEPOSIT_POOL_STATS, { -// pollInterval -// }); -// } -// }; + useGetDepositPoolStats: (config?: { pollInterval?: number }) => { + const { pollInterval = DATA_POOL_INTERVAL } = config ?? {}; + return useQuery(GET_DEPOSIT_POOL_STATS, { + pollInterval + }); + } +}; diff --git a/src/components/common/network-provider/network-provider.tsx b/src/components/common/network-provider/network-provider.tsx index 99a0571..9ee6996 100644 --- a/src/components/common/network-provider/network-provider.tsx +++ b/src/components/common/network-provider/network-provider.tsx @@ -4,8 +4,7 @@ const ENABLE_LOCAL_NETWORK = import.meta.env.VITE_ENABLE_LOCAL_NETWORK === 'true'; const BASE_NETWORKS = { - dirac: 'https://subsquid.quantus.com/green/graphql' - // planck: 'https://subsquid.quantus.com/blue/graphql' + planck: 'https://subsquid.quantus.com/blue/graphql' } as const; const LOCAL_NETWORK = { @@ -31,8 +30,8 @@ type NetworkProviderState = { }; const initialState: NetworkProviderState = { - networkUrl: BASE_NETWORKS.dirac, - networkName: 'dirac', + networkUrl: BASE_NETWORKS.planck, + networkName: 'planck', setNetwork: () => null }; @@ -41,7 +40,7 @@ const NetworkProviderContext = export function NetworkProvider({ children, - defaultNetwork = 'dirac', + defaultNetwork = 'planck', storageKey, ...props }: NetworkProviderProps) { @@ -49,7 +48,7 @@ export function NetworkProvider({ () => (localStorage.getItem(storageKey) as NetworkName) || defaultNetwork ); const [networkUrl, setNetworkUrl] = useState( - () => NETWORKS[networkName] ?? BASE_NETWORKS.dirac + () => NETWORKS[networkName] ?? BASE_NETWORKS.planck ); const value = useMemo(() => { @@ -59,7 +58,7 @@ export function NetworkProvider({ setNetwork: (newNetworkName: NetworkName) => { localStorage.setItem(storageKey, newNetworkName); setNetwork(newNetworkName); - setNetworkUrl(NETWORKS[newNetworkName] ?? BASE_NETWORKS.dirac); + setNetworkUrl(NETWORKS[newNetworkName] ?? BASE_NETWORKS.planck); } }; 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_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..b638a97 --- /dev/null +++ b/src/components/common/table-columns/EXTRINSIC_COLUMNS.tsx @@ -0,0 +1,156 @@ +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 { cn } from '@/lib/utils'; +import type { BlockExtrinsic } from '@/schemas/blocks'; +import { formatMonetaryValue, formatTxAddress } from '@/utils/formatter'; + +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, call } = props.row.original; + + // 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' && + call === 'schedule_transfer' + ) { + href = `${RESOURCES.scheduledReversibleTransactions}/${hash}`; + } else if ( + pallet === 'ReversibleTransfers' && + call === 'execute_transfer' + ) { + href = `${RESOURCES.executedReversibleTransactions}/${hash}`; + } else if ( + pallet === 'ReversibleTransfers' && + call === 'cancel_transfer' + ) { + href = `${RESOURCES.cancelledReversibleTransactions}/${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/EXTRINSIC_TRANSACTION_COLUMNS.tsx b/src/components/common/table-columns/EXTRINSIC_TRANSACTION_COLUMNS.tsx new file mode 100644 index 0000000..2728e57 --- /dev/null +++ b/src/components/common/table-columns/EXTRINSIC_TRANSACTION_COLUMNS.tsx @@ -0,0 +1,53 @@ +import { createColumnHelper } from '@tanstack/react-table'; + +import { LinkWithCopy } from '@/components/ui/composites/link-with-copy/LinkWithCopy'; +import { RESOURCES } from '@/constants/resources'; +import type { ExtrinsicTransfer } from '@/schemas'; +import { formatMonetaryValue, formatTxAddress } from '@/utils/formatter'; + +const columnHelper = createColumnHelper(); + +export const EXTRINSIC_TRANSACTION_COLUMNS = [ + columnHelper.accessor('from', { + id: 'from', + header: 'From', + cell: ({ getValue }) => { + const { id } = getValue(); + + return ( + + ); + }, + enableSorting: false + }), + columnHelper.accessor('to', { + id: 'to', + header: 'To', + cell: ({ getValue }) => { + const { id } = getValue(); + + return ( + + ); + }, + enableSorting: true + }), + columnHelper.accessor('amount', { + id: 'amount', + header: 'Amount', + cell: ({ getValue }) => { + const amount = getValue(); + + return formatMonetaryValue(Number(amount), 5); + }, + enableSorting: true + }) +]; 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/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..9c32d0e --- /dev/null +++ b/src/components/common/table-columns/UNIFIED_TRANSACTION_COLUMNS.tsx @@ -0,0 +1,324 @@ +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 { TRANSACTION_TYPE_CONFIG } from '@/constants/transaction-types'; +import { cn } from '@/lib/utils'; +import type { UnifiedTransaction } from '@/schemas/unified-transaction'; +import { + formatDuration, + formatMonetaryValue, + formatTxAddress +} from '@/utils/formatter'; + +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 = '-'; + const extrinsicId = extrinsic?.id; + + if (row.type === 'immediate' && extrinsicId) { + href = `${RESOURCES.transactions}/${extrinsicId}`; + displayText = formatTxAddress(extrinsicId); + } else if (row.type === 'scheduled-reversible' && row.id) { + href = `${RESOURCES.scheduledReversibleTransactions}/${row.id}`; + displayText = formatTxAddress(row.id); + } else if (row.type === 'executed-reversible' && row.id) { + href = `${RESOURCES.executedReversibleTransactions}/${row.id}`; + displayText = formatTxAddress(row.id); + } else if (row.type === 'cancelled-reversible' && row.id) { + href = `${RESOURCES.cancelledReversibleTransactions}/${row.id}`; + displayText = formatTxAddress(row.id); + } 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 ( + [ + 'immediate', + 'scheduled-reversible', + 'executed-reversible', + 'cancelled-reversible' + ].includes(row.type) + ) { + 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 ( + [ + 'immediate', + 'scheduled-reversible', + 'executed-reversible', + 'cancelled-reversible' + ].includes(row.type) && + 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 -; + } + }) + ]; + + // 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 e1dbccb..48ac705 100644 --- a/src/components/common/table-columns/WORMHOLE_OUTPUT_COLUMNS.tsx +++ b/src/components/common/table-columns/WORMHOLE_OUTPUT_COLUMNS.tsx @@ -1,70 +1,70 @@ -// import { createColumnHelper } from '@tanstack/react-table'; +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 { formatMonetaryValue, formatTxAddress } from '@/utils/formatter'; -// import { PrivacyScoreBadge } from '@/components/features/wormhole/PrivacyScoreBadge'; -// import type { WormholeExtrinsic } from '@/schemas/wormhole'; +import { PrivacyScoreBadge } from '@/components/features/wormhole/PrivacyScoreBadge'; +import { LinkWithCopy } from '@/components/ui/composites/link-with-copy/LinkWithCopy'; +import { TimestampDisplay } from '@/components/ui/timestamp-display'; +import { RESOURCES } from '@/constants/resources'; +import type { WormholeExtrinsic } from '@/schemas/wormhole'; +import { formatMonetaryValue, formatTxAddress } from '@/utils/formatter'; -// export type WormholeExtrinsicRow = WormholeExtrinsic; +export type WormholeExtrinsicRow = WormholeExtrinsic; -// const columnHelper = createColumnHelper(); +const columnHelper = createColumnHelper(); -// export const WORMHOLE_EXTRINSIC_COLUMNS = [ -// columnHelper.accessor('extrinsicHash', { -// id: 'extrinsic_hash', -// header: 'Extrinsic', -// cell: (props) => { -// const hash = props.getValue(); -// const id = props.row.original.id; -// return ( -// -// ); -// }, -// enableSorting: false -// }), -// columnHelper.accessor('totalAmount', { -// id: 'total_amount', -// header: 'Total Amount', -// cell: (props) => formatMonetaryValue(Number(props.getValue())), -// enableSorting: true -// }), -// columnHelper.accessor('outputCount', { -// id: 'output_count', -// header: 'Outputs', -// cell: (props) => props.getValue(), -// enableSorting: false -// }), -// columnHelper.accessor('privacyScore', { -// id: 'privacy_score', -// header: 'Privacy', -// cell: (props) => ( -// -// ), -// enableSorting: true -// }), -// columnHelper.accessor('block.height', { -// id: 'block_height', -// header: 'Block', -// cell: (props) => ( -// -// ), -// enableSorting: true -// }), -// columnHelper.accessor('timestamp', { -// id: 'timestamp', -// header: 'Timestamp', -// cell: (props) => , -// enableSorting: true -// }) -// ]; +export const WORMHOLE_EXTRINSIC_COLUMNS = [ + columnHelper.accessor('extrinsic.id', { + id: 'extrinsic_hash', + header: 'Extrinsic', + cell: (props) => { + const hash = props.getValue(); + const { id } = props.row.original; + return ( + + ); + }, + enableSorting: false + }), + columnHelper.accessor('totalAmount', { + id: 'total_amount', + header: 'Total Amount', + cell: (props) => formatMonetaryValue(Number(props.getValue())), + enableSorting: true + }), + columnHelper.accessor('outputCount', { + id: 'output_count', + header: 'Outputs', + cell: (props) => props.getValue(), + enableSorting: false + }), + columnHelper.accessor('privacyScore', { + id: 'privacy_score', + header: 'Privacy', + cell: (props) => ( + + ), + enableSorting: true + }), + columnHelper.accessor('block.height', { + id: 'block_height', + header: 'Block', + cell: (props) => ( + + ), + enableSorting: true + }), + columnHelper.accessor('timestamp', { + id: 'timestamp', + header: 'Timestamp', + cell: (props) => , + enableSorting: true + }) +]; 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..1d904b6 --- /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.scheduledReversibleTransactions?.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; + 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 46710f9..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,98 +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 } from '@/components/ui/tabs'; import type { AccountResponse } from '@/schemas'; -import { formatOption } from '@/utils/formatter'; -import { AccountBeneficiaries } from '../account-beneficiaries/AccountBeneficiaries'; -import { AccountCancelledReversibleTransactions } from '../account-cancelled-reversible-transactions/AccountCancelledReversibleTransactions'; -import { AccountExecutedReversibleTransactions } from '../account-executed-reversible-transactions/AccountExecutedReversibleTransactions'; -import { AccountGuardian } from '../account-guardian/AccountGuardian'; -import { AccountMinerRewards } from '../account-miner-rewards/AccountMinerRewards'; -import { AccountScheduledReversibleTransactions } from '../account-scheduled-reversible-transactions/AccountScheduledReversibleTransactions'; -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', - scheduledReversible: 'scheduled-reversible-transactions', - executedReversible: 'executed-reversible-transactions', - cancelledReversible: 'cancelled-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 ( - - - - - - - - - - - - - - - - - - - - - - - - - + ); 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 5e3e79e..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,80 +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 } from '@/components/ui/tabs'; import type { BlockResponse } from '@/schemas'; -import { formatOption } from '@/utils/formatter'; -import { BlockCancelledReversibleTransactions } from '../block-cancelled-reversible-transactions/BlockCancelledReversibleTransactions'; -import { BlockErrorEvents } from '../block-error-events/BlockErrorEvents'; -import { BlockExecutedReversibleTransactions } from '../block-executed-reversible-transactions/BlockExecutedReversibleTransactions'; -import { BlockHighSecuritySets } from '../block-high-security-sets/BlockHighSecuritySets'; -import { BlockScheduledReversibleTransactions } from '../block-scheduled-reversible-transactions/BlockScheduledReversibleTransactions'; -import { BlockTransactions } from '../block-transactions/BlockTransactions'; +import { BlockAllTransactions } from '../block-all-transactions/BlockAllTransactions'; export interface BlockDataTabsProps { query: QueryResult; } -const TAB_OPTIONS = { - immediate: 'immediate-transactions', - scheduledReversible: 'scheduled-reversible-transactions', - executedReversible: 'executed-reversible-transactions', - cancelledReversible: 'cancelled-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 ( - - - - - - - - - - - - - - - - - - - - - - + ); diff --git a/src/components/features/block-details/block-information/BlockInformation.tsx b/src/components/features/block-details/block-information/BlockInformation.tsx index b33cbd8..d31e99a 100644 --- a/src/components/features/block-details/block-information/BlockInformation.tsx +++ b/src/components/features/block-details/block-information/BlockInformation.tsx @@ -18,10 +18,7 @@ interface BlockDetails { timestamp: string; reward: number; miner: string; - transactions: number; - scheduledReversibleTransactions: number; - executedReversibleTransactions: number; - cancelledReversibleTransactions: number; + extrinsicsCount: number; } export const BlockInformation: React.FC = ({ @@ -30,14 +27,8 @@ export const BlockInformation: React.FC = ({ const { data, loading } = query; const block = data?.blocks?.[0]; - const transactions = data?.transactions.totalCount; - const scheduledReversibleTransactions = - data?.scheduledReversibleTransactions.totalCount; - const executedReversibleTransactions = - data?.executedReversibleTransactions.totalCount; - const cancelledReversibleTransactions = - data?.cancelledReversibleTransactions.totalCount; - const miner = data?.miners[0]?.miner.id; + const extrinsicsCount = block?.extrinsics?.length ?? 0; + const miner = data?.minerRewards?.[0]?.miner.id; const information: Partial[] = [ { @@ -45,11 +36,8 @@ export const BlockInformation: React.FC = ({ hash: block?.hash, reward: block?.reward, timestamp: block?.timestamp, - transactions, - miner, - scheduledReversibleTransactions, - executedReversibleTransactions, - cancelledReversibleTransactions + extrinsicsCount, + miner } ]; @@ -92,28 +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: 'Scheduled Reversible Transactions', - key: 'scheduledReversibleTransactions', - render: (value) => - value > 1 ? `${value} transactions` : `${value} transaction` - }, - { - label: 'Executed Reversible Transactions', - key: 'executedReversibleTransactions', - render: (value) => - value > 1 ? `${value} transactions` : `${value} transaction` - }, - { - label: 'Cancelled Reversible Transactions', - key: 'cancelledReversibleTransactions', - render: (value) => - value > 1 ? `${value} transactions` : `${value} transaction` + value === 1 ? `${value} extrinsic` : `${value} extrinsics` } ]} /> diff --git a/src/components/features/cancelled-reversible-transaction-details/cancelled-reversible-transaction-information/CancelledReversibleTransactionInformation.tsx b/src/components/features/cancelled-reversible-transaction-details/cancelled-reversible-transaction-information/CancelledReversibleTransactionInformation.tsx index 729e5b4..a5d4c45 100644 --- a/src/components/features/cancelled-reversible-transaction-details/cancelled-reversible-transaction-information/CancelledReversibleTransactionInformation.tsx +++ b/src/components/features/cancelled-reversible-transaction-details/cancelled-reversible-transaction-information/CancelledReversibleTransactionInformation.tsx @@ -35,7 +35,7 @@ export const CancelledReversibleTransactionInformation: React.FC< block: tx?.block, timestamp: tx?.timestamp, cancelledBy: tx?.cancelledBy, - extrinsicHash: tx?.extrinsicHash, + extrinsic: tx?.extrinsic, scheduledTransfer: tx?.scheduledTransfer } ]; @@ -54,9 +54,9 @@ export const CancelledReversibleTransactionInformation: React.FC< }, { label: 'Extrinsic Hash', - key: 'extrinsicHash', + key: 'extrinsic', render: (value) => ( - + ) }, { 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 a101747..b16b13c 100644 --- a/src/components/features/landing/data-tabs/DataTabs.tsx +++ b/src/components/features/landing/data-tabs/DataTabs.tsx @@ -1,87 +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 } from '@/components/ui/tabs'; -import { formatOption } from '@/utils/formatter'; import { RecentBlocks } from '../recent-blocks/RecentBlocks'; -import { RecentCancelledReversibleTransactions } from '../recent-cancelled-reversible-transactions/RecentCancelledReversibleTransactions'; -import { RecentErrorEvents } from '../recent-error-events/RecentErrorEvents'; -import { RecentExecutedReversibleTransactions } from '../recent-executed-reversible-transactions/RecentExecutedReversibleTransactions'; -import { RecentHighSecuritySets } from '../recent-high-security-sets/RecentHighSecuritySets'; -import { RecentMinerRewards } from '../recent-miner-rewards/RecentMinerRewards'; -import { RecentScheduledReversibleTransactions } from '../recent-scheduled-reversible-transactions/RecentScheduledReversibleTransactions'; -import { RecentTransactions } from '../recent-transactions/RecentTransactions'; export interface DataTabsProps {} -const TAB_OPTIONS = { - immediate: 'immediate-transactions', - scheduledReversible: 'scheduled-reversible-transactions', - executedReversible: 'executed-reversible-transactions', - cancelledReversible: 'cancelled-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 ( - - - - - - - - - - - - - - - - - - - - - - - - - - - - + ); diff --git a/src/components/features/scheduled-reversible-transaction-details/scheduled-reversible-transaction-information/ScheduledReversibleTransactionInformation.tsx b/src/components/features/scheduled-reversible-transaction-details/scheduled-reversible-transaction-information/ScheduledReversibleTransactionInformation.tsx index 886b871..90c58b2 100644 --- a/src/components/features/scheduled-reversible-transaction-details/scheduled-reversible-transaction-information/ScheduledReversibleTransactionInformation.tsx +++ b/src/components/features/scheduled-reversible-transaction-details/scheduled-reversible-transaction-information/ScheduledReversibleTransactionInformation.tsx @@ -33,7 +33,7 @@ export const ScheduledReversibleTransactionInformation: 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,16 @@ export const ScheduledReversibleTransactionInformation: React.FC< ) }, { - 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..7a88caa 100644 --- a/src/components/features/transaction-details/transaction-information/TransactionInformation.tsx +++ b/src/components/features/transaction-details/transaction-information/TransactionInformation.tsx @@ -1,103 +1,147 @@ import { notFound } from '@tanstack/react-router'; +import { getCoreRowModel, useReactTable } from '@tanstack/react-table'; import * as React from 'react'; import useApiClient from '@/api'; +import { EXTRINSIC_TRANSACTION_COLUMNS } from '@/components/common/table-columns/EXTRINSIC_TRANSACTION_COLUMNS'; import { DataList } from '@/components/ui/composites/data-list/DataList'; +import { DataTable } from '@/components/ui/composites/data-table/DataTable'; import { LinkWithCopy } from '@/components/ui/composites/link-with-copy/LinkWithCopy'; import { TextWithCopy } from '@/components/ui/composites/text-with-copy/TextWithCopy'; import { RESOURCES } from '@/constants/resources'; -import type { TransactionListResponse } from '@/schemas'; +import { cn } from '@/lib/utils'; +import type { ExtrinsicDetail, ExtrinsicTransfer } from '@/schemas'; import { formatMonetaryValue, formatTimestamp } from '@/utils/formatter'; 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 extrinsicTransactionColumns = React.useMemo( + () => EXTRINSIC_TRANSACTION_COLUMNS, + [] + ); - const tx = data?.transactions[0]; + const extrinsic = data?.extrinsics[0]; + const transfers = data?.transfers ?? []; + const table = useReactTable({ + data: transfers, + columns: extrinsicTransactionColumns, + getCoreRowModel: getCoreRowModel(), + manualSorting: true, + manualPagination: true + }); - 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 && ( + + )} +
); }; diff --git a/src/components/features/wormhole/DepositPoolStats.tsx b/src/components/features/wormhole/DepositPoolStats.tsx index 966a02b..6fcb0f1 100644 --- a/src/components/features/wormhole/DepositPoolStats.tsx +++ b/src/components/features/wormhole/DepositPoolStats.tsx @@ -1,74 +1,74 @@ -// import useApiClient from '@/api'; -// import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'; +import useApiClient from '@/api'; +import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'; -// export const DepositPoolStatsCard = () => { -// const api = useApiClient(); -// const { data, loading } = api.wormhole.useGetDepositPoolStats(); +export const DepositPoolStatsCard = () => { + const api = useApiClient(); + const { data, loading } = api.wormhole.useGetDepositPoolStats(); -// const stats = data?.depositPoolStatsById; + const stats = data?.depositPoolStatsById; -// if (loading) { -// return ( -// -// -// Deposit Pool -// -// -//
-//
-//
-//
-// -// -// ); -// } + if (loading) { + return ( + + + Deposit Pool + + +
+
+
+
+ + + ); + } -// if (!stats) return null; + if (!stats) return null; -// // Parse buckets JSON and compute totals -// let totalDeposits = 0; -// let totalValue = 0; -// try { -// const buckets = JSON.parse(stats.buckets); -// // Use bucket 0 [0, 1 DEV) as it contains all sub-DEV deposits without overlap -// // Sum all buckets but avoid double-counting from overlaps by just using count from non-overlapping ranges -// // Simplest: just show the raw bucket data -// for (const b of buckets) { -// // Only count non-overlapping contributions (first bucket that contains each deposit) -// // For display purposes, sum the largest bucket's count as a rough total -// if (b.count > totalDeposits) totalDeposits = b.count; -// totalValue += Number(b.sumAmounts); -// } -// // Actually, deposits appear in multiple overlapping buckets, so just sum unique ones -// // The [0, 1 DEV) bucket is non-overlapping with others for sub-DEV deposits -// // For a rough total, use the sum across all non-overlapping base buckets -// totalDeposits = buckets.reduce( -// (sum: number, b: { count: number }) => sum + b.count, -// 0 -// ); -// } catch { -// // fallback -// } + // Parse buckets JSON and compute totals + let totalDeposits = 0; + let totalValue = 0; + try { + const buckets = JSON.parse(stats.buckets); + // Use bucket 0 [0, 1 DEV) as it contains all sub-DEV deposits without overlap + // Sum all buckets but avoid double-counting from overlaps by just using count from non-overlapping ranges + // Simplest: just show the raw bucket data + for (const b of buckets) { + // Only count non-overlapping contributions (first bucket that contains each deposit) + // For display purposes, sum the largest bucket's count as a rough total + if (b.count > totalDeposits) totalDeposits = b.count; + totalValue += Number(b.sumAmounts); + } + // Actually, deposits appear in multiple overlapping buckets, so just sum unique ones + // The [0, 1 DEV) bucket is non-overlapping with others for sub-DEV deposits + // For a rough total, use the sum across all non-overlapping base buckets + totalDeposits = buckets.reduce( + (sum: number, b: { count: number }) => sum + b.count, + 0 + ); + } catch { + // fallback + } -// return ( -// -// -// Wormhole Deposit Pool -// -// -//
-//
-//

Deposits Tracked

-//

-// {totalDeposits.toLocaleString()} -//

-//
-//
-//

Last Updated

-//

Block {stats.lastUpdatedBlock}

-//
-//
-//
-//
-// ); -// }; + return ( + + + Wormhole Deposit Pool + + +
+
+

Deposits Tracked

+

+ {totalDeposits.toLocaleString()} +

+
+
+

Last Updated

+

Block {stats.lastUpdatedBlock}

+
+
+
+
+ ); +}; diff --git a/src/components/features/wormhole/WormholeOutputDetails.tsx b/src/components/features/wormhole/WormholeOutputDetails.tsx index 6d17b89..0f09e25 100644 --- a/src/components/features/wormhole/WormholeOutputDetails.tsx +++ b/src/components/features/wormhole/WormholeOutputDetails.tsx @@ -1,259 +1,262 @@ -// import { notFound } from '@tanstack/react-router'; +import { notFound } from '@tanstack/react-router'; -// import useApiClient from '@/api'; -// import { Card, CardContent } from '@/components/ui/card'; -// 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 { RESOURCES } from '@/constants/resources'; -// import { formatMonetaryValue, formatTimestamp } from '@/utils/formatter'; +import useApiClient from '@/api'; +import { Card, CardContent } from '@/components/ui/card'; +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 { RESOURCES } from '@/constants/resources'; +import { formatMonetaryValue, formatTimestamp } from '@/utils/formatter'; -// import { PrivacyScoreBadge } from './PrivacyScoreBadge'; +import { PrivacyScoreBadge } from './PrivacyScoreBadge'; -// interface WormholeOutputDetailsProps { -// id: string; -// } +interface WormholeOutputDetailsProps { + id: string; +} -// interface ExtrinsicInfo { -// extrinsicHash: string | null; -// totalAmount: string; -// outputCount: number; -// block: { height: number; hash: string }; -// timestamp: string; -// privacyScore: number; -// privacyLabel: string; -// privacyScore01Pct: number; -// privacyScore1Pct: number; -// privacyScore5Pct: number; -// poolSnapshot: string; -// } +interface ExtrinsicInfo { + extrinsic: { id: string } | null; + totalAmount: string; + outputCount: number; + block: { height: number; hash: string }; + timestamp: string; + privacyScore: number; + privacyLabel: string; + privacyScore01Pct: number; + privacyScore1Pct: number; + privacyScore5Pct: number; + poolSnapshot: string; +} -// export const WormholeOutputInformation = ({ -// id -// }: WormholeOutputDetailsProps) => { -// const api = useApiClient(); -// const { data, loading } = api.wormhole.getById().useQuery(id); +export const WormholeOutputInformation = ({ + id +}: WormholeOutputDetailsProps) => { + const api = useApiClient(); + const { data, loading } = api.wormhole.getById().useQuery(id); -// const extrinsic = data?.wormholeExtrinsicById; -// const nullifiers = data?.wormholeNullifiers ?? []; + const extrinsic = data?.wormholeExtrinsicById; + const nullifiers = data?.wormholeNullifiers ?? []; -// if (!loading && !extrinsic) throw notFound(); + if (!loading && !extrinsic) throw notFound(); -// const extrinsicInfo: Partial[] = [ -// { -// extrinsicHash: extrinsic?.extrinsicHash, -// totalAmount: extrinsic?.totalAmount, -// outputCount: extrinsic?.outputCount, -// block: extrinsic?.block, -// timestamp: extrinsic?.timestamp, -// privacyScore: extrinsic?.privacyScore, -// privacyLabel: extrinsic?.privacyLabel, -// privacyScore01Pct: extrinsic?.privacyScore01Pct, -// privacyScore1Pct: extrinsic?.privacyScore1Pct, -// privacyScore5Pct: extrinsic?.privacyScore5Pct, -// poolSnapshot: extrinsic?.poolSnapshot -// } -// ]; + const extrinsicInfo: Partial[] = [ + { + extrinsic: extrinsic?.extrinsic, + totalAmount: extrinsic?.totalAmount, + outputCount: extrinsic?.outputCount, + block: extrinsic?.block, + timestamp: extrinsic?.timestamp, + privacyScore: extrinsic?.privacyScore, + privacyLabel: extrinsic?.privacyLabel, + privacyScore01Pct: extrinsic?.privacyScore01Pct, + privacyScore1Pct: extrinsic?.privacyScore1Pct, + privacyScore5Pct: extrinsic?.privacyScore5Pct, + poolSnapshot: extrinsic?.poolSnapshot + } + ]; -// return ( -// <> -//

Transaction Details

-// > -// loading={loading} -// data={extrinsicInfo} -// fields={[ -// { -// label: 'Extrinsic Hash', -// key: 'extrinsicHash', -// render: (value) => -// value ? ( -// -// ) : ( -// - -// ) -// }, -// { -// label: 'Total Amount', -// key: 'totalAmount', -// render: (value) => formatMonetaryValue(Number(value)) -// }, -// { -// label: 'Exit Outputs', -// key: 'outputCount', -// render: (value) => `${value}` -// }, -// { -// label: 'Block', -// key: 'block', -// render: (value) => ( -// -// ) -// }, -// { -// label: 'Timestamp', -// key: 'timestamp', -// render: (value) => formatTimestamp(value, true) -// } -// ]} -// /> + return ( + <> +

Transaction Details

+ > + loading={loading} + data={extrinsicInfo} + fields={[ + { + label: 'Extrinsic Hash', + key: 'extrinsic', + render: (value) => + value && (value as ExtrinsicInfo['extrinsic'])?.id ? ( + + ) : ( + - + ) + }, + { + label: 'Total Amount', + key: 'totalAmount', + render: (value) => formatMonetaryValue(Number(value)) + }, + { + label: 'Exit Outputs', + key: 'outputCount', + render: (value) => `${value}` + }, + { + label: 'Block', + key: 'block', + render: (value) => ( + + ) + }, + { + label: 'Timestamp', + key: 'timestamp', + render: (value) => formatTimestamp(value, true) + } + ]} + /> -//

Privacy Analysis

-// > -// loading={loading} -// data={extrinsicInfo} -// fields={[ -// { -// label: 'Privacy Score', -// key: 'privacyScore', -// render: (value, item) => ( -// -// ), -// tooltip: -// 'Estimated bits of anonymity at 0.01 DEV precision. Based on how many deposit subsets could produce this total.' -// }, -// { -// label: 'With 0.1% sacrifice', -// key: 'privacyScore01Pct', -// render: (value) => `${(value as number).toFixed(1)} bits`, -// tooltip: -// 'Score if the user had sacrificed 0.1% of the output for privacy.' -// }, -// { -// label: 'With 1% sacrifice', -// key: 'privacyScore1Pct', -// render: (value) => `${(value as number).toFixed(1)} bits`, -// tooltip: -// 'Score if the user had sacrificed 1% of the output for privacy.' -// }, -// { -// label: 'With 5% sacrifice', -// key: 'privacyScore5Pct', -// render: (value) => `${(value as number).toFixed(1)} bits`, -// tooltip: -// 'Score if the user had sacrificed 5% of the output for privacy.' -// }, -// { -// label: 'Pool Snapshot', -// key: 'poolSnapshot', -// render: (value) => { -// try { -// const buckets = JSON.parse(value as string); -// const nonEmpty = buckets.filter( -// (b: { count: number }) => b.count > 0 -// ); -// return `${nonEmpty.length} active buckets`; -// } catch { -// return '-'; -// } -// }, -// tooltip: -// 'Deposit pool bucket distribution at time of proof verification.' -// } -// ]} -// /> +

Privacy Analysis

+ > + loading={loading} + data={extrinsicInfo} + fields={[ + { + label: 'Privacy Score', + key: 'privacyScore', + render: (value, item) => ( + + ), + tooltip: + 'Estimated bits of anonymity at 0.01 DEV precision. Based on how many deposit subsets could produce this total.' + }, + { + label: 'With 0.1% sacrifice', + key: 'privacyScore01Pct', + render: (value) => `${(value as number).toFixed(1)} bits`, + tooltip: + 'Score if the user had sacrificed 0.1% of the output for privacy.' + }, + { + label: 'With 1% sacrifice', + key: 'privacyScore1Pct', + render: (value) => `${(value as number).toFixed(1)} bits`, + tooltip: + 'Score if the user had sacrificed 1% of the output for privacy.' + }, + { + label: 'With 5% sacrifice', + key: 'privacyScore5Pct', + render: (value) => `${(value as number).toFixed(1)} bits`, + tooltip: + 'Score if the user had sacrificed 5% of the output for privacy.' + }, + { + label: 'Pool Snapshot', + key: 'poolSnapshot', + render: (value) => { + try { + const buckets = JSON.parse(value as string); + const nonEmpty = buckets.filter( + (b: { count: number }) => b.count > 0 + ); + return `${nonEmpty.length} active buckets`; + } catch { + return '-'; + } + }, + tooltip: + 'Deposit pool bucket distribution at time of proof verification.' + } + ]} + /> -//

Exit Outputs

-// {loading ? ( -// -// -//
-//
-//
-//
-// -// -// ) : ( -//
-// {extrinsic?.outputs?.map( -// ( -// output: { -// id: string; -// exitAccount: { id: string }; -// amount: string; -// }, -// idx: number -// ) => ( -// -// -//
-//
-//
-// Output {idx + 1} of {extrinsic.outputCount} -//
-//
{formatMonetaryValue(Number(output.amount))}
-//
-//
-//
-// Exit Account -//
-//
-// -//
-//
-//
-//
-//
-// ) -// )} -//
-// )} +

Exit Outputs

+ {loading ? ( + + +
+
+
+
+ + + ) : ( +
+ {extrinsic?.outputs?.map( + ( + output: { + id: string; + exitAccount: { id: string }; + amount: string; + }, + idx: number + ) => ( + + +
+
+
+ Output {idx + 1} of {extrinsic.outputCount} +
+
{formatMonetaryValue(Number(output.amount))}
+
+
+
+ Exit Account +
+
+ +
+
+
+
+
+ ) + )} +
+ )} -// {nullifiers.length > 0 && ( -// <> -//

Nullifiers

-// -// -//

-// {nullifiers.length} nullifier -// {nullifiers.length !== 1 ? 's' : ''} consumed by this proof -// verification. Each corresponds to a spent wormhole deposit. -//

-//
-// {nullifiers.map( -// ( -// n: { nullifier: string; nullifierHash: string }, -// idx: number -// ) => ( -//
-//
-//
-//
-// Nullifier {idx + 1} -//
-//
-// -//
-//
-//
-//
-// Hash (blake3) -//
-//
-// {n.nullifierHash} -//
-//
-//
-//
-// ) -// )} -//
-//
-//
-// -// )} -// -// ); -// }; + {nullifiers.length > 0 && ( + <> +

Nullifiers

+ + +

+ {nullifiers.length} nullifier + {nullifiers.length !== 1 ? 's' : ''} consumed by this proof + verification. Each corresponds to a spent wormhole deposit. +

+
+ {nullifiers.map( + ( + n: { nullifier: string; nullifierHash: string }, + idx: number + ) => ( +
+
+
+
+ Nullifier {idx + 1} +
+
+ +
+
+
+
+ Hash (blake3) +
+
+ {n.nullifierHash} +
+
+
+
+ ) + )} +
+
+
+ + )} + + ); +}; diff --git a/src/components/features/wormhole/WormholeOutputsTable.tsx b/src/components/features/wormhole/WormholeOutputsTable.tsx index 1588d8e..2cff088 100644 --- a/src/components/features/wormhole/WormholeOutputsTable.tsx +++ b/src/components/features/wormhole/WormholeOutputsTable.tsx @@ -1,86 +1,86 @@ -// import { getCoreRowModel, useReactTable } from '@tanstack/react-table'; -// import { parseAsInteger, parseAsStringLiteral, useQueryState } from 'nuqs'; -// import { useMemo } from 'react'; +import { getCoreRowModel, useReactTable } from '@tanstack/react-table'; +import { parseAsInteger, parseAsStringLiteral, useQueryState } from 'nuqs'; +import { useMemo } from 'react'; -// import useApiClient from '@/api'; -// import { -// WORMHOLE_EXTRINSIC_COLUMNS, -// type WormholeExtrinsicRow -// } from '@/components/common/table-columns/WORMHOLE_OUTPUT_COLUMNS'; -// import { DataTable } from '@/components/ui/composites/data-table/DataTable'; -// import { DATA_POOL_INTERVAL } from '@/constants/data-pool-interval'; -// import { QUERY_DEFAULT_LIMIT } from '@/constants/query-default-limit'; +import useApiClient from '@/api'; +import { + WORMHOLE_EXTRINSIC_COLUMNS, + type WormholeExtrinsicRow +} from '@/components/common/table-columns/WORMHOLE_OUTPUT_COLUMNS'; +import { DataTable } from '@/components/ui/composites/data-table/DataTable'; +import { DATA_POOL_INTERVAL } from '@/constants/data-pool-interval'; +import { QUERY_DEFAULT_LIMIT } from '@/constants/query-default-limit'; -// const SORT_OPTIONS = [ -// 'timestamp_DESC', -// 'timestamp_ASC', -// 'totalAmount_DESC', -// 'totalAmount_ASC' -// ] as const; +const SORT_OPTIONS = [ + 'timestamp_DESC', + 'timestamp_ASC', + 'totalAmount_DESC', + 'totalAmount_ASC' +] as const; -// export const WormholeOutputsTable = () => { -// const api = useApiClient(); -// const [page, setPage] = useQueryState('page', parseAsInteger.withDefault(1)); -// const [limit, setLimit] = useQueryState( -// 'limit', -// parseAsInteger.withDefault(QUERY_DEFAULT_LIMIT) -// ); -// const [sortBy] = useQueryState( -// 'sortBy', -// parseAsStringLiteral(SORT_OPTIONS).withDefault('timestamp_DESC') -// ); +export const WormholeOutputsTable = () => { + const api = useApiClient(); + const [page, setPage] = useQueryState('page', parseAsInteger.withDefault(1)); + const [limit, setLimit] = useQueryState( + 'limit', + parseAsInteger.withDefault(QUERY_DEFAULT_LIMIT) + ); + const [sortBy] = useQueryState( + 'sortBy', + parseAsStringLiteral(SORT_OPTIONS).withDefault('timestamp_DESC') + ); -// const offset = (page - 1) * limit; + const offset = (page - 1) * limit; -// const { data, loading, error } = api.wormhole.useGetAll({ -// pollInterval: DATA_POOL_INTERVAL, -// variables: { -// orderBy: sortBy, -// limit, -// offset, -// where: { extrinsicHash_isNull: false } -// } -// }); + const { data, loading, error } = api.wormhole.useGetAll({ + pollInterval: DATA_POOL_INTERVAL, + variables: { + orderBy: sortBy, + limit, + offset, + where: { extrinsic_isNull: false } + } + }); -// const rows: WormholeExtrinsicRow[] = useMemo( -// () => data?.wormholeExtrinsics ?? [], -// [data] -// ); -// const totalCount = data?.meta?.totalCount ?? 0; + const rows: WormholeExtrinsicRow[] = useMemo( + () => data?.wormholeExtrinsics ?? [], + [data] + ); + const totalCount = data?.meta?.totalCount ?? 0; -// const table = useReactTable({ -// data: rows, -// columns: WORMHOLE_EXTRINSIC_COLUMNS, -// getCoreRowModel: getCoreRowModel(), -// manualSorting: true, -// manualPagination: true, -// pageCount: Math.ceil(totalCount / limit), -// state: { -// pagination: { pageIndex: page - 1, pageSize: limit } -// }, -// onPaginationChange: (updater) => { -// if (typeof updater === 'function') { -// const next = updater({ pageIndex: page - 1, pageSize: limit }); -// setPage(next.pageIndex + 1); -// setLimit(next.pageSize); -// } -// } -// }); + const table = useReactTable({ + data: rows, + columns: WORMHOLE_EXTRINSIC_COLUMNS, + getCoreRowModel: getCoreRowModel(), + manualSorting: true, + manualPagination: true, + pageCount: Math.ceil(totalCount / limit), + state: { + pagination: { pageIndex: page - 1, pageSize: limit } + }, + onPaginationChange: (updater) => { + if (typeof updater === 'function') { + const next = updater({ pageIndex: page - 1, pageSize: limit }); + setPage(next.pageIndex + 1); + setLimit(next.pageSize); + } + } + }); -// const getStatus = () => { -// if (loading) return 'loading' as const; -// if (error) return 'error' as const; -// return 'success' as const; -// }; + const getStatus = () => { + if (loading) return 'loading' as const; + if (error) return 'error' as const; + return 'success' as const; + }; -// return ( -// Error: {error.message}
: undefined -// }} -// withControls -// /> -// ); -// }; + return ( + Error: {error.message}
: undefined + }} + withControls + /> + ); +}; diff --git a/src/components/ui/composites/data-table/DataTable.stories.tsx b/src/components/ui/composites/data-table/DataTable.stories.tsx index 6d7ff70..f1f90f3 100644 --- a/src/components/ui/composites/data-table/DataTable.stories.tsx +++ b/src/components/ui/composites/data-table/DataTable.stories.tsx @@ -29,47 +29,67 @@ 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' }, to: { id: '0xdjwaidjiajdi' }, fromHash: '0x2131313', toHash: '0xdjwaidjiajdi', - timestamp: new Date().toISOString() + timestamp: new Date().toISOString(), + leafIndex: 0 }, { block: { height: 293293 }, - extrinsicHash: '0xjdwjaidwjaidj', + extrinsic: { + id: '0xjdwjaidwjaidj', + pallet: 'balances', + call: 'transfer' + } as any, fee: '120000000', amount: '999999', from: { id: '0x2131313' }, to: { id: '0xdjwaidjiajdi' }, fromHash: '0x2131313', toHash: '0xdjwaidjiajdi', - timestamp: new Date().toISOString() + timestamp: new Date().toISOString(), + leafIndex: 0 }, { block: { height: 293293 }, - extrinsicHash: '0xjdwjaidwjaidj', + extrinsic: { + id: '0xjdwjaidwjaidj', + pallet: 'balances', + call: 'transfer' + } as any, fee: '120000000', amount: '999999', from: { id: '0x2131313' }, to: { id: '0xdjwaidjiajdi' }, fromHash: '0x2131313', toHash: '0xdjwaidjiajdi', - timestamp: new Date().toISOString() + timestamp: new Date().toISOString(), + leafIndex: 0 }, { block: { height: 293293 }, - extrinsicHash: '0xjdwjaidwjaidj', + extrinsic: { + id: '0xjdwjaidwjaidj', + pallet: 'balances', + call: 'transfer' + } as any, fee: '120000000', amount: '999999', from: { id: '0x2131313' }, to: { id: '0xdjwaidjiajdi' }, fromHash: '0x2131313', toHash: '0xdjwaidjiajdi', - timestamp: new Date().toISOString() + timestamp: new Date().toISOString(), + leafIndex: 0 } ], columns: transactionColumns, diff --git a/src/components/ui/composites/search-preview/SearchPreview.tsx b/src/components/ui/composites/search-preview/SearchPreview.tsx index d5341d6..6153aaa 100644 --- a/src/components/ui/composites/search-preview/SearchPreview.tsx +++ b/src/components/ui/composites/search-preview/SearchPreview.tsx @@ -135,8 +135,8 @@ export const SearchPreview = forwardRef( items: transactions, renderItem: (tx: any) => ( ) @@ -219,8 +219,8 @@ export const SearchPreview = forwardRef( items: highSecuritySets, renderItem: (highSecuritySet: any) => ( ) @@ -231,8 +231,8 @@ export const SearchPreview = forwardRef( items: errorEvents, renderItem: (errorEvent: any) => ( ) diff --git a/src/config/site-navigations.ts b/src/config/site-navigations.ts index 8232081..63983a1 100644 --- a/src/config/site-navigations.ts +++ b/src/config/site-navigations.ts @@ -80,6 +80,6 @@ export const SITE_NAVIGATIONS: (SiteNavigation | ParentNavigation)[] = [ longLabel: 'Error Events' } ] - } - // { label: 'Wormhole', path: '/wormhole', longLabel: 'Wormhole Privacy' } + }, + { label: 'Wormhole', path: '/wormhole', longLabel: 'Wormhole Privacy' } ] as const; diff --git a/src/constants/query-sorts/errors.ts b/src/constants/query-sorts/errors.ts index 76f5cdf..07ce7d6 100644 --- a/src/constants/query-sorts/errors.ts +++ b/src/constants/query-sorts/errors.ts @@ -19,9 +19,9 @@ export const ERROR_EVENT_SORTS = { ASC: 'errorName_ASC', DESC: 'errorName_DESC' }, - extrinsicHash: { - ASC: 'extrinsicHash_ASC', - DESC: 'extrinsicHash_DESC' + extrinsic: { + ASC: 'extrinsic_id_ASC', + DESC: 'extrinsic_id_DESC' }, blockHeight: { ASC: 'block_height_ASC', diff --git a/src/constants/query-sorts/high-security-sets.ts b/src/constants/query-sorts/high-security-sets.ts index 2a4355f..cc7805c 100644 --- a/src/constants/query-sorts/high-security-sets.ts +++ b/src/constants/query-sorts/high-security-sets.ts @@ -11,9 +11,9 @@ export const HIGH_SECURITY_SET_SORTS = { ASC: 'delay_ASC', DESC: 'delay_DESC' }, - extrinsicHash: { - ASC: 'extrinsicHash_ASC', - DESC: 'extrinsicHash_DESC' + extrinsic: { + ASC: 'extrinsic_id_ASC', + DESC: 'extrinsic_id_DESC' }, blockHeight: { ASC: 'block_height_ASC', diff --git a/src/constants/query-sorts/index.ts b/src/constants/query-sorts/index.ts index c356fe1..f4294fc 100644 --- a/src/constants/query-sorts/index.ts +++ b/src/constants/query-sorts/index.ts @@ -5,3 +5,4 @@ export * from './high-security-sets'; export * from './miner-rewards'; export * from './reversible-transactions'; export * from './transactions'; +export * from './wormhole'; diff --git a/src/constants/query-sorts/reversible-transactions.ts b/src/constants/query-sorts/reversible-transactions.ts index fb83178..dc1d299 100644 --- a/src/constants/query-sorts/reversible-transactions.ts +++ b/src/constants/query-sorts/reversible-transactions.ts @@ -15,9 +15,9 @@ export const REVERSIBLE_TRANSACTION_SORTS = { ASC: 'status_ASC', DESC: 'status_DESC' }, - extrinsicHash: { - ASC: 'extrinsicHash_ASC', - DESC: 'extrinsicHash_DESC' + extrinsic: { + ASC: 'extrinsic_id_ASC', + DESC: 'extrinsic_id_DESC' }, tx: { ASC: 'tx_ASC', diff --git a/src/constants/query-sorts/transactions.ts b/src/constants/query-sorts/transactions.ts index de57c49..aa679ee 100644 --- a/src/constants/query-sorts/transactions.ts +++ b/src/constants/query-sorts/transactions.ts @@ -11,9 +11,9 @@ export const TRANSACTION_SORTS = { ASC: 'fee_ASC', DESC: 'fee_DESC' }, - extrinsicHash: { - ASC: 'extrinsicHash_ASC', - DESC: 'extrinsicHash_DESC' + extrinsic: { + ASC: 'extrinsic_id_ASC', + DESC: 'extrinsic_id_DESC' }, blockHeight: { ASC: 'block_height_ASC', diff --git a/src/constants/query-sorts/wormhole.ts b/src/constants/query-sorts/wormhole.ts new file mode 100644 index 0000000..997bb00 --- /dev/null +++ b/src/constants/query-sorts/wormhole.ts @@ -0,0 +1,39 @@ +export const WORMHOLE_EXTRINSIC_SORTS = { + id: { + ASC: 'id_ASC', + DESC: 'id_DESC' + }, + privacyScore: { + ASC: 'privacyScore_ASC', + DESC: 'privacyScore_DESC' + }, + totalAmount: { + ASC: 'totalAmount_ASC', + DESC: 'totalAmount_DESC' + }, + outputCount: { + ASC: 'outputCount_ASC', + DESC: 'outputCount_DESC' + }, + timestamp: { + ASC: 'timestamp_ASC', + DESC: 'timestamp_DESC' + }, + privacyLabel: { + ASC: 'privacyLabel_ASC', + DESC: 'privacyLabel_DESC' + } +} as const; + +export const WORMHOLE_EXTRINSIC_SORTS_LITERALS = Object.values( + WORMHOLE_EXTRINSIC_SORTS +).flatMap((sort) => Object.values(sort)); + +export const WORMHOLE_EXTRINSIC_SORTS_KEY = Object.keys( + WORMHOLE_EXTRINSIC_SORTS +); + +// Adding null, because we can sort by null to indicate no sorting +export type WormholeExtrinsicSorts = + | (typeof WORMHOLE_EXTRINSIC_SORTS_LITERALS)[number] + | null; 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..ea9a6b5 --- /dev/null +++ b/src/constants/transaction-types.ts @@ -0,0 +1,39 @@ +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' + }, + 'scheduled-reversible': { + label: 'Scheduled Reversible', + className: 'bg-purple-100 text-purple-800' + }, + 'executed-reversible': { + label: 'Executed Reversible', + className: 'bg-green-100 text-green-800' + }, + 'cancelled-reversible': { + label: 'Cancelled Reversible', + className: 'bg-gray-100 text-gray-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..be6b613 --- /dev/null +++ b/src/hooks/useUnifiedTransactions.ts @@ -0,0 +1,149 @@ +import type { + ExtrinsicInfo, + UnifiedTransaction, + UnifiedTransactionType +} from '@/schemas/unified-transaction'; +import type { WormholeOutput } from '@/schemas/wormhole'; + +// Common transformer input types +interface TransferInput { + extrinsic?: ExtrinsicInfo | null; + timestamp: string; + amount: number; + fee?: number; + from: { id: string }; + to: { id: string }; + block: { height: number }; +} + +interface MinerRewardInput { + reward: string | number; + timestamp: string; + miner: { id: string }; + block: { height: number; hash?: string }; +} + +interface HighSecuritySetInput { + extrinsic?: ExtrinsicInfo | null; + timestamp: string; + who: { id: string }; + interceptor: { id: string }; + delay?: number; + block: { height: number }; +} + +interface WormholeInput { + id: string; + extrinsic?: ExtrinsicInfo | null; + 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 +}); + +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/providers.tsx b/src/providers.tsx index 9f6998e..f72a3fc 100644 --- a/src/providers.tsx +++ b/src/providers.tsx @@ -25,7 +25,7 @@ const DynamicApolloProvider = ({ children }: PropsWithChildren) => { const Providers = ({ children }: PropsWithChildren) => { return ( - + {children} 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/routes/wormhole/$id.tsx b/src/routes/wormhole/$id.tsx index 8632144..53027d5 100644 --- a/src/routes/wormhole/$id.tsx +++ b/src/routes/wormhole/$id.tsx @@ -1,6 +1,6 @@ import { createFileRoute } from '@tanstack/react-router'; -// import { WormholeOutputInformation } from '@/components/features/wormhole/WormholeOutputDetails'; +import { WormholeOutputInformation } from '@/components/features/wormhole/WormholeOutputDetails'; import { ContentContainer } from '@/components/ui/content-container'; import { SectionContainer } from '@/components/ui/section-container'; @@ -9,13 +9,13 @@ export const Route = createFileRoute('/wormhole/$id')({ }); function WormholeOutputDetailsPage() { - // const { id } = Route.useParams(); + const { id } = Route.useParams(); return ( -

Wormhole Output

- {/* */} +

Wormhole Output

+
); diff --git a/src/routes/wormhole/index.tsx b/src/routes/wormhole/index.tsx index 45057a7..8c12427 100644 --- a/src/routes/wormhole/index.tsx +++ b/src/routes/wormhole/index.tsx @@ -1,7 +1,7 @@ import { createFileRoute } from '@tanstack/react-router'; -// import { DepositPoolStatsCard } from '@/components/features/wormhole/DepositPoolStats'; -// import { WormholeOutputsTable } from '@/components/features/wormhole/WormholeOutputsTable'; +import { DepositPoolStatsCard } from '@/components/features/wormhole/DepositPoolStats'; +import { WormholeOutputsTable } from '@/components/features/wormhole/WormholeOutputsTable'; import { ContentContainer } from '@/components/ui/content-container'; import { SectionContainer } from '@/components/ui/section-container'; @@ -14,16 +14,15 @@ function WormholePage() {
-

Wormhole

+

Wormhole

Privacy-preserving transfers via zero-knowledge proofs. Each output is scored based on how many deposit combinations could have produced it.

- {/* */} -

Recent Outputs

- {/* */} + +
); diff --git a/src/schemas/account.ts b/src/schemas/account.ts index 421cd09..fe3a44c 100644 --- a/src/schemas/account.ts +++ b/src/schemas/account.ts @@ -4,10 +4,30 @@ import type { ExecutedReversibleTransaction } from './executed-reversible-transa import type { MinerReward } from './miner-reward'; import type { ScheduledReversibleTransaction } from './scheduled-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: { @@ -45,6 +65,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 a47281d..ccd43c5 100644 --- a/src/schemas/blocks.ts +++ b/src/schemas/blocks.ts @@ -3,16 +3,58 @@ import type { CancelledReversibleTransaction } from './cancelled-reversible-tran import type { ErrorEvent } from './errors'; import type { ExecutedReversibleTransaction } from './executed-reversible-transaction'; import type { HighSecuritySet } from './high-security-set'; -import type { MinerReward } from './miner-reward'; import type { ScheduledReversibleTransaction } from './scheduled-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 */ @@ -43,6 +85,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 971bca0..9e7b049 100644 --- a/src/schemas/index.ts +++ b/src/schemas/index.ts @@ -10,4 +10,5 @@ export * from './miner-reward'; export * from './scheduled-reversible-transaction'; export * from './searchs'; export * from './transcation'; -// export * from './wormhole'; +export * from './unified-transaction'; +export * from './wormhole'; diff --git a/src/schemas/searchs.ts b/src/schemas/searchs.ts index b795955..cf04fe7 100644 --- a/src/schemas/searchs.ts +++ b/src/schemas/searchs.ts @@ -9,10 +9,10 @@ import type { ScheduledReversibleTransaction } from './scheduled-reversible-tran import type { Transaction } from './transcation'; export interface SearchAllResponse { - transactions: Pick[]; + transactions: Pick[]; scheduledReversibleTransactions: Pick< ScheduledReversibleTransaction, - 'extrinsicHash' | 'txId' + 'extrinsic' | 'txId' >[]; executedReversibleTransactions: Pick[]; cancelledReversibleTransactions: Pick< @@ -21,7 +21,7 @@ export interface SearchAllResponse { >[]; 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..6e6e624 --- /dev/null +++ b/src/schemas/unified-transaction.ts @@ -0,0 +1,54 @@ +import type { WormholeOutput } from './wormhole'; + +// All possible transaction types across account and block views +export type UnifiedTransactionType = + | 'immediate' + | 'scheduled-reversible' + | 'executed-reversible' + | 'cancelled-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; + + // 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 94f0fcd..d07cb88 100644 --- a/src/schemas/wormhole.ts +++ b/src/schemas/wormhole.ts @@ -1,65 +1,65 @@ -// import type * as gql from '../__generated__/graphql'; +import type * as gql from '../__generated__/graphql'; -// // Core wormhole extrinsic for list views -// export interface WormholeExtrinsic -// extends Pick< -// gql.WormholeExtrinsic, -// | 'id' -// | 'extrinsicHash' -// | 'totalAmount' -// | 'outputCount' -// | 'timestamp' -// | 'privacyScore' -// | 'privacyLabel' -// > { -// block: Pick; -// } +// Core wormhole extrinsic for list views +export interface WormholeExtrinsic + extends Pick< + gql.WormholeExtrinsic, + | 'id' + | 'totalAmount' + | 'outputCount' + | 'timestamp' + | 'privacyScore' + | 'privacyLabel' + > { + extrinsic: Pick | null; + block: Pick; +} -// // Full wormhole extrinsic for detail view -// export interface WormholeExtrinsicDetail -// extends Pick< -// gql.WormholeExtrinsic, -// | 'id' -// | 'extrinsicHash' -// | 'totalAmount' -// | 'outputCount' -// | 'timestamp' -// | 'privacyScore' -// | 'privacyScore01Pct' -// | 'privacyScore1Pct' -// | 'privacyScore5Pct' -// | 'privacyLabel' -// | 'poolSnapshot' -// > { -// block: Pick; -// outputs: WormholeOutput[]; -// } +// Full wormhole extrinsic for detail view +export interface WormholeExtrinsicDetail + extends Pick< + gql.WormholeExtrinsic, + | 'id' + | 'totalAmount' + | 'outputCount' + | 'timestamp' + | 'privacyScore' + | 'privacyScore01Pct' + | 'privacyScore1Pct' + | 'privacyScore5Pct' + | 'privacyLabel' + | 'poolSnapshot' + > { + extrinsic: Pick | null; + block: Pick; + outputs: WormholeOutput[]; +} -// export interface WormholeOutput { -// id: string; -// exitAccount: Pick; -// amount: gql.Scalars['BigInt']['output']; -// } +export interface WormholeOutput { + id: string; + exitAccount: Pick; + amount: gql.Scalars['BigInt']['output']; +} -// export interface WormholeNullifier -// extends Pick {} +export interface WormholeNullifier + extends Pick {} -// export interface DepositPoolStats -// extends Pick {} +export interface DepositPoolStats + extends Pick {} -// // API Response types -// export interface WormholeExtrinsicListResponse { -// wormholeExtrinsics: WormholeExtrinsic[]; -// meta: { -// totalCount: number; -// }; -// } +// API Response types +export interface WormholeExtrinsicListResponse { + wormholeExtrinsics: WormholeExtrinsic[]; + meta: { + totalCount: number; + }; +} -// export interface WormholeExtrinsicResponse { -// wormholeExtrinsicById: WormholeExtrinsicDetail; -// wormholeNullifiers: WormholeNullifier[]; -// } +export interface WormholeExtrinsicResponse { + wormholeExtrinsicById: WormholeExtrinsicDetail; + wormholeNullifiers: WormholeNullifier[]; +} -// export interface DepositPoolStatsResponse { -// depositPoolStatsById: DepositPoolStats; -// } +export interface DepositPoolStatsResponse { + depositPoolStatsById: DepositPoolStats; +}