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