diff --git a/indexer/src/kadena-server/repository/application/block-repository.ts b/indexer/src/kadena-server/repository/application/block-repository.ts index 8df269ad..4fc6a580 100644 --- a/indexer/src/kadena-server/repository/application/block-repository.ts +++ b/indexer/src/kadena-server/repository/application/block-repository.ts @@ -60,6 +60,8 @@ export default interface BlockRepository { getTotalCountOfBlockEvents(blockHash: string): Promise; + getTotalCountOfBlockTransactions(blockHash: string): Promise; + getLatestBlocks(params: GetLatestBlocksParams): Promise; getTransactionsOrderedByBlockDepth( diff --git a/indexer/src/kadena-server/repository/infra/repository/block-db-repository.ts b/indexer/src/kadena-server/repository/infra/repository/block-db-repository.ts index b662703e..b51b632f 100644 --- a/indexer/src/kadena-server/repository/infra/repository/block-db-repository.ts +++ b/indexer/src/kadena-server/repository/infra/repository/block-db-repository.ts @@ -599,6 +599,27 @@ export default class BlockDbRepository implements BlockRepository { return block?.transactionsCount || 0; } + /** + * Counts the total number of transactions in a specific block + * + * This method performs a COUNT query to determine how many transactions + * are associated to a particular block. + * + * @param blockHash - The hash of the block to count transactions for + * @returns Promise resolving to the total count of transactions in the block + */ + async getTotalCountOfBlockTransactions(blockHash: string): Promise { + const { rows } = await rootPgPool.query( + `SELECT COUNT(*) as "totalCount" + FROM "Blocks" b + JOIN "Transactions" t ON t."blockId" = b.id + WHERE b.hash = $1`, + [blockHash], + ); + + return rows[0].totalCount ?? 0; + } + /** * Retrieves the most recent blocks created after a specific timestamp * diff --git a/indexer/src/kadena-server/repository/infra/repository/transaction-db-repository.ts b/indexer/src/kadena-server/repository/infra/repository/transaction-db-repository.ts index eb0e8929..87f87de4 100644 --- a/indexer/src/kadena-server/repository/infra/repository/transaction-db-repository.ts +++ b/indexer/src/kadena-server/repository/infra/repository/transaction-db-repository.ts @@ -334,10 +334,21 @@ export default class TransactionDbRepository implements TransactionRepository { const { rows } = await rootPgPool.query(query, queryParams); // Transform database rows into GraphQL-compatible edges with cursors - const edges = rows.map(row => ({ - cursor: row.creationTime.toString(), - node: transactionValidator.validate(row), - })); + const edges = rows + .map(row => ({ + cursor: row.creationTime.toString(), + node: transactionValidator.validate(row), + })) + .sort((a, b) => { + // Primary sort is already done by DB query (creationTime DESC) + // Add secondary sort by id for consistent ordering when creationTimes are equal + const aNode = a.node as unknown as { id: string }; + const bNode = b.node as unknown as { id: string }; + if (a.cursor === b.cursor) { + return aNode.id > bNode.id ? 1 : -1; + } + return 0; // Maintain existing order from DB for different creationTimes + }); const pageInfo = getPageInfo({ edges, order, limit, after, before }); return pageInfo; diff --git a/indexer/src/kadena-server/repository/pagination.ts b/indexer/src/kadena-server/repository/pagination.ts index 5a340210..0e444018 100644 --- a/indexer/src/kadena-server/repository/pagination.ts +++ b/indexer/src/kadena-server/repository/pagination.ts @@ -115,7 +115,7 @@ export const getPageInfo = ({ // that was fetched to determine if there are more pages const limit = (limitParam ?? DEFAULT_LIMIT) - LIMIT_NEXT_PAGE_CHECK; - // Case 1: No results found - return empty page info + // Empty case: No results found - return empty page info if (length === 0) { return { pageInfo: { @@ -128,23 +128,6 @@ export const getPageInfo = ({ }; } - // Case 2: Only a single result - simplify the logic for this case - if (length === 1) { - return { - pageInfo: { - // For a single result, both start and end cursor are the same - startCursor: encodeCursor(edges[0].cursor), - endCursor: encodeCursor(edges[0].cursor), - // If 'before' exists, there might be more newer items (for backward pagination) - hasNextPage: !!before, - // If 'after' exists, there might be more older items (for forward pagination) - hasPreviousPage: !!after, - }, - edges, - }; - } - - // Case 3: Multiple results - compute page info based on sort order let hasNextPage = false; let hasPreviousPage = false; let startCursor = null; diff --git a/indexer/src/kadena-server/resolvers/fields/block-transactions-connection/total-count-block-transactions-connection-resolver.ts b/indexer/src/kadena-server/resolvers/fields/block-transactions-connection/total-count-block-transactions-connection-resolver.ts index 22044812..6cc751dd 100644 --- a/indexer/src/kadena-server/resolvers/fields/block-transactions-connection/total-count-block-transactions-connection-resolver.ts +++ b/indexer/src/kadena-server/resolvers/fields/block-transactions-connection/total-count-block-transactions-connection-resolver.ts @@ -27,7 +27,7 @@ export const totalCountBlockTransactionsConnectionResolver: BlockTransactionsCon async (parent, _args, context) => { const { blockHash } = schema.parse(parent); - const total = await context.blockRepository.getTotalCountOfBlockEvents(blockHash); + const total = await context.blockRepository.getTotalCountOfBlockTransactions(blockHash); return total; }; diff --git a/indexer/tests/integration/fixtures/block/block.fixture.001.ts b/indexer/tests/integration/fixtures/block/block.fixture.001.ts index dbff03d5..417b3daa 100644 --- a/indexer/tests/integration/fixtures/block/block.fixture.001.ts +++ b/indexer/tests/integration/fixtures/block/block.fixture.001.ts @@ -15,7 +15,7 @@ export const blockFixture001 = { }, edges: [ { - cursor: '257165675', + cursor: 'MjU3MTY1Njc1', node: { chainId: 10, height: 5370064, @@ -71,7 +71,7 @@ export const blockFixture001 = { powHash: '00000000000000017af989466338f4c86bd3e2a9e6eb7860366fe377428b8bd7', target: 'WcVbkSM_1xf7DgJgoL6QKFKrX4SFcvxEEAAAAAAAAAA', transactions: { - totalCount: 0, + totalCount: 1, pageInfo: { endCursor: 'MTczMzU3MjgwMw==', hasNextPage: false, @@ -80,7 +80,7 @@ export const blockFixture001 = { }, edges: [ { - cursor: '1733572803', + cursor: 'MTczMzU3MjgwMw==', node: { id: 'VHJhbnNhY3Rpb246WyJiNnBybXAzVkZIeE12cmR3VlpfREtiOGVvNW1vUEp2M1N3TkEwR0xwOEkwIiwiSWs1QmVVaG5MVGs1UlZaRk9XOXlMV0p0VlU1SFZIZHViR3d6TFRGdE5VMUVNaloyU1ZaWVprVklVbWNpIl0=', }, diff --git a/indexer/tests/integration/fixtures/blocks-from-height/blocks-from-height.fixture.001.ts b/indexer/tests/integration/fixtures/blocks-from-height/blocks-from-height.fixture.001.ts index 9b6b209e..15719ea7 100644 --- a/indexer/tests/integration/fixtures/blocks-from-height/blocks-from-height.fixture.001.ts +++ b/indexer/tests/integration/fixtures/blocks-from-height/blocks-from-height.fixture.001.ts @@ -109,7 +109,7 @@ export const blocksFromHeightFixture001 = { powHash: '00000000000000120f454139d1f114f14d63c99126635e7810f3d9975fed0eeb', target: 'rceSV4d6E91hStDCVLY1Tk_NuJGIctEWEgAAAAAAAAA', transactions: { - totalCount: 1, + totalCount: 2, pageInfo: { endCursor: 'MTcyMjQ1NzE5Nw==', hasNextPage: false, @@ -151,7 +151,7 @@ export const blocksFromHeightFixture001 = { }, edges: [ { - cursor: '322297259', + cursor: 'MzIyMjk3MjU5', node: { chainId: 9, height: 5000000, @@ -207,7 +207,7 @@ export const blocksFromHeightFixture001 = { powHash: '0000000000000009236f19e9342f8a2280d2d15dfbafbc3b07d72eb7ec84128a', target: 'WdYbYeT_D5i0ol1AhUwz_UnXnqq_b-gMEgAAAAAAAAA', transactions: { - totalCount: 0, + totalCount: 1, pageInfo: { endCursor: 'MTcyMjQ1NzI5OA==', hasNextPage: false, @@ -216,7 +216,7 @@ export const blocksFromHeightFixture001 = { }, edges: [ { - cursor: '1722457298', + cursor: 'MTcyMjQ1NzI5OA==', node: { id: 'VHJhbnNhY3Rpb246WyI5OHFHdl81SmRVdWxic0wxOFN2NE9zaG5uN01DTHZaYjVaaEZXZFMxQk1NIiwiSWxwT09FTlJZVTFhYkdKaVJFcFhUVmQwYUcwMkxXdDJRM2hVVTFOTFdqWlNhVWhDUzFGblZuTlRZVVVpIl0=', }, @@ -622,7 +622,7 @@ export const blocksFromHeightFixture001 = { powHash: '00000000000000088592ec9b0b971996e58c212cac86929663750d9974b38529', target: 'pvBl5pRZ_p4wCpRnZl3SnOURixxOsvoTEgAAAAAAAAA', transactions: { - totalCount: 141, + totalCount: 142, pageInfo: { endCursor: 'MTcyMjQ1NzIzMg==', hasNextPage: true, @@ -651,13 +651,13 @@ export const blocksFromHeightFixture001 = { { cursor: 'MTcyMjQ1NzI0NQ==', node: { - id: 'VHJhbnNhY3Rpb246WyJoX0FzWGc0NW1DWlJMY1g0eGd2Y2RlRmtiZlJzdGNKTk1ER3RpYlNxWG5FIiwiRWh6eC10STVEcFJKYXN0TThzOGE1bFdrcWQweFNiLVdnSDFkSzd1ZktEayJd', + id: 'VHJhbnNhY3Rpb246WyJoX0FzWGc0NW1DWlJMY1g0eGd2Y2RlRmtiZlJzdGNKTk1ER3RpYlNxWG5FIiwiNWxXVDJRcGRHdWxlM3dOdEJlLThlcVJCZ2pXSDZGU0NlTUFHOURqWVpnUSJd', }, }, { cursor: 'MTcyMjQ1NzI0NQ==', node: { - id: 'VHJhbnNhY3Rpb246WyJoX0FzWGc0NW1DWlJMY1g0eGd2Y2RlRmtiZlJzdGNKTk1ER3RpYlNxWG5FIiwiNWxXVDJRcGRHdWxlM3dOdEJlLThlcVJCZ2pXSDZGU0NlTUFHOURqWVpnUSJd', + id: 'VHJhbnNhY3Rpb246WyJoX0FzWGc0NW1DWlJMY1g0eGd2Y2RlRmtiZlJzdGNKTk1ER3RpYlNxWG5FIiwiRWh6eC10STVEcFJKYXN0TThzOGE1bFdrcWQweFNiLVdnSDFkSzd1ZktEayJd', }, }, { @@ -675,19 +675,19 @@ export const blocksFromHeightFixture001 = { { cursor: 'MTcyMjQ1NzI0MA==', node: { - id: 'VHJhbnNhY3Rpb246WyJoX0FzWGc0NW1DWlJMY1g0eGd2Y2RlRmtiZlJzdGNKTk1ER3RpYlNxWG5FIiwiTnd6V1kzb0VvQVZUYzZEaVRaNnRfRjlaS3lfdGVGZjREWEMyOE5iVTR6OCJd', + id: 'VHJhbnNhY3Rpb246WyJoX0FzWGc0NW1DWlJMY1g0eGd2Y2RlRmtiZlJzdGNKTk1ER3RpYlNxWG5FIiwiQ3JmS3UxMUJMMVpQV0p4cXR4R01UZ3FEejhQSVFJQjBhVmhjTTg5MzlicyJd', }, }, { cursor: 'MTcyMjQ1NzI0MA==', node: { - id: 'VHJhbnNhY3Rpb246WyJoX0FzWGc0NW1DWlJMY1g0eGd2Y2RlRmtiZlJzdGNKTk1ER3RpYlNxWG5FIiwibkU5M1FsMEs4OE9vRHVkeDdzVURDR0pDR2pQRjZUNHZMR1hwdXotV3ZGbyJd', + id: 'VHJhbnNhY3Rpb246WyJoX0FzWGc0NW1DWlJMY1g0eGd2Y2RlRmtiZlJzdGNKTk1ER3RpYlNxWG5FIiwiTnd6V1kzb0VvQVZUYzZEaVRaNnRfRjlaS3lfdGVGZjREWEMyOE5iVTR6OCJd', }, }, { cursor: 'MTcyMjQ1NzI0MA==', node: { - id: 'VHJhbnNhY3Rpb246WyJoX0FzWGc0NW1DWlJMY1g0eGd2Y2RlRmtiZlJzdGNKTk1ER3RpYlNxWG5FIiwiQ3JmS3UxMUJMMVpQV0p4cXR4R01UZ3FEejhQSVFJQjBhVmhjTTg5MzlicyJd', + id: 'VHJhbnNhY3Rpb246WyJoX0FzWGc0NW1DWlJMY1g0eGd2Y2RlRmtiZlJzdGNKTk1ER3RpYlNxWG5FIiwibkU5M1FsMEs4OE9vRHVkeDdzVURDR0pDR2pQRjZUNHZMR1hwdXotV3ZGbyJd', }, }, { @@ -705,13 +705,13 @@ export const blocksFromHeightFixture001 = { { cursor: 'MTcyMjQ1NzIzOA==', node: { - id: 'VHJhbnNhY3Rpb246WyJoX0FzWGc0NW1DWlJMY1g0eGd2Y2RlRmtiZlJzdGNKTk1ER3RpYlNxWG5FIiwiYU43SzYxRlRyaTFRTVFkZHNya05GaWJLa0dkMG5TMkdiR1V3bldvNDBMQSJd', + id: 'VHJhbnNhY3Rpb246WyJoX0FzWGc0NW1DWlJMY1g0eGd2Y2RlRmtiZlJzdGNKTk1ER3RpYlNxWG5FIiwiWnM0MUMwaG55ZWR2bmNBOXR2Mkp3OVBTbFJOUkxwbXVTSXctWG1BeVNWSSJd', }, }, { cursor: 'MTcyMjQ1NzIzOA==', node: { - id: 'VHJhbnNhY3Rpb246WyJoX0FzWGc0NW1DWlJMY1g0eGd2Y2RlRmtiZlJzdGNKTk1ER3RpYlNxWG5FIiwiWnM0MUMwaG55ZWR2bmNBOXR2Mkp3OVBTbFJOUkxwbXVTSXctWG1BeVNWSSJd', + id: 'VHJhbnNhY3Rpb246WyJoX0FzWGc0NW1DWlJMY1g0eGd2Y2RlRmtiZlJzdGNKTk1ER3RpYlNxWG5FIiwiYU43SzYxRlRyaTFRTVFkZHNya05GaWJLa0dkMG5TMkdiR1V3bldvNDBMQSJd', }, }, { @@ -723,13 +723,13 @@ export const blocksFromHeightFixture001 = { { cursor: 'MTcyMjQ1NzIzNw==', node: { - id: 'VHJhbnNhY3Rpb246WyJoX0FzWGc0NW1DWlJMY1g0eGd2Y2RlRmtiZlJzdGNKTk1ER3RpYlNxWG5FIiwib09xTmptSlpDei1ZUEVvYnZpYmUwM2tBSllRMUZrVU1KRUJWSkxjbUlZVSJd', + id: 'VHJhbnNhY3Rpb246WyJoX0FzWGc0NW1DWlJMY1g0eGd2Y2RlRmtiZlJzdGNKTk1ER3RpYlNxWG5FIiwiY3lVUXNBQmg0T20yR1BLV2JqTzhrQko4Y1RnOXdQLVlsREQ2WkE2bG5VRSJd', }, }, { cursor: 'MTcyMjQ1NzIzNw==', node: { - id: 'VHJhbnNhY3Rpb246WyJoX0FzWGc0NW1DWlJMY1g0eGd2Y2RlRmtiZlJzdGNKTk1ER3RpYlNxWG5FIiwiY3lVUXNBQmg0T20yR1BLV2JqTzhrQko4Y1RnOXdQLVlsREQ2WkE2bG5VRSJd', + id: 'VHJhbnNhY3Rpb246WyJoX0FzWGc0NW1DWlJMY1g0eGd2Y2RlRmtiZlJzdGNKTk1ER3RpYlNxWG5FIiwib09xTmptSlpDei1ZUEVvYnZpYmUwM2tBSllRMUZrVU1KRUJWSkxjbUlZVSJd', }, }, { @@ -1151,7 +1151,7 @@ export const blocksFromHeightFixture001 = { powHash: '0000000000000001ec9f3f151c61b8368f7e2182890c5ed3cb72b46a31c80b28', target: 'gqdc4iyXaSOfD8PQfrlIpS2FCvGgjGn_EQAAAAAAAAA', transactions: { - totalCount: 12, + totalCount: 13, pageInfo: { endCursor: 'MTcyMjQ1NzA5OA==', hasNextPage: false, @@ -1259,7 +1259,7 @@ export const blocksFromHeightFixture001 = { }, edges: [ { - cursor: '299362873', + cursor: 'Mjk5MzYyODcz', node: { chainId: 2, height: 5000000, @@ -1315,7 +1315,7 @@ export const blocksFromHeightFixture001 = { powHash: '000000000000000ebd6fcf3874c62fcea7229124e08dd3c04f2ea69b929c3bd2', target: 'T003e7pnqYUhvYYblQpCsCBVOUt3U6cLEgAAAAAAAAA', transactions: { - totalCount: 0, + totalCount: 1, pageInfo: { endCursor: 'MTcyMjQ1NzMwNg==', hasNextPage: false, @@ -1324,7 +1324,7 @@ export const blocksFromHeightFixture001 = { }, edges: [ { - cursor: '1722457306', + cursor: 'MTcyMjQ1NzMwNg==', node: { id: 'VHJhbnNhY3Rpb246WyJhWGFycUYzZEl4SVc2TDVaNlJYd2VKMXhTcGNGSkQta0xLMEV5TXdFWExVIiwiSW5GYVJIQnhZVlJyY2xrMVRqSnhiM0ZCTlZNdGVqQlRZbGt6YWs1d1l6SXhUSEl5WVVsbGF6Vk5VVmtpIl0=', }, @@ -1351,7 +1351,7 @@ export const blocksFromHeightFixture001 = { }, edges: [ { - cursor: '296730915', + cursor: 'Mjk2NzMwOTE1', node: { chainId: 4, height: 5000000, @@ -1407,7 +1407,7 @@ export const blocksFromHeightFixture001 = { powHash: '00000000000000001aab9c7ece82c1d8edc617ad037fdb4ddee009fa848d1649', target: 'yj8JXb5RWIpqY1oD-j_bZXnMl0DmzzLsEQAAAAAAAAA', transactions: { - totalCount: 0, + totalCount: 1, pageInfo: { endCursor: 'MTcyMjQ1NzI5NQ==', hasNextPage: false, @@ -1416,7 +1416,7 @@ export const blocksFromHeightFixture001 = { }, edges: [ { - cursor: '1722457295', + cursor: 'MTcyMjQ1NzI5NQ==', node: { id: 'VHJhbnNhY3Rpb246WyJYcE1Mckw5SkdFR0dzZUI5ZnNmVXctWFlNejg4NVUtdlFucG9MYnNYQTF3IiwiSW5aZmJITjFNSGRSWXpWak1GUTJUeTFMUjFGMVIwRnFjRGhLVTJvdGJuTjJWemRpTlhoQmVqSlRiVzhpIl0=', }, @@ -1443,7 +1443,7 @@ export const blocksFromHeightFixture001 = { }, edges: [ { - cursor: '294133038', + cursor: 'Mjk0MTMzMDM4', node: { chainId: 3, height: 5000000, @@ -1499,7 +1499,7 @@ export const blocksFromHeightFixture001 = { powHash: '000000000000000478656dbd0d50c17082bf8e9a9650fb383c95e980baac621d', target: 'QCdhcNHg9_HeBiZQEnADagKulOdaDhYPEgAAAAAAAAA', transactions: { - totalCount: 0, + totalCount: 1, pageInfo: { endCursor: 'MTcyMjQ1NzMwOA==', hasNextPage: false, @@ -1508,7 +1508,7 @@ export const blocksFromHeightFixture001 = { }, edges: [ { - cursor: '1722457308', + cursor: 'MTcyMjQ1NzMwOA==', node: { id: 'VHJhbnNhY3Rpb246WyJuWXQ1aTM3bDY5bE8xbG9LV1FHYXNxdWVIVjBfRjY5MldwdnRhTC1hbURZIiwiSW5abFlrMDBNbWt5VmxNNVRtNXJWVVJEUjBoTmEwNVRMVGxhVlUwM1dXVnRZVVZ3TjJzeGRFNXlYMDBpIl0=', }, @@ -1535,7 +1535,7 @@ export const blocksFromHeightFixture001 = { }, edges: [ { - cursor: '293773121', + cursor: 'MjkzNzczMTIx', node: { chainId: 7, height: 5000000, @@ -1591,7 +1591,7 @@ export const blocksFromHeightFixture001 = { powHash: '0000000000000011ea9817172eeee031e2b7751c8ee69f9133572ee507bf2318', target: 'K112u70kNtfry9XNh0uHKd6ZysrXkZMbEgAAAAAAAAA', transactions: { - totalCount: 0, + totalCount: 1, pageInfo: { endCursor: 'MTcyMjQ1NzMwMA==', hasNextPage: false, @@ -1600,7 +1600,7 @@ export const blocksFromHeightFixture001 = { }, edges: [ { - cursor: '1722457300', + cursor: 'MTcyMjQ1NzMwMA==', node: { id: 'VHJhbnNhY3Rpb246WyJGWlAwc3RVLVphT2haZi1NNG43WGoyWkp2SEQ1SXZ2QkJXaWpfVGx4ejZZIiwiSWxSWFNYbEdWbkl4YzJjeU4xa3RjVWRTVlc5WVUxTm5TVXB5T0daSlVGZ3pNMGxqZGpNNFR6ZGZPVlVpIl0=', }, @@ -1627,7 +1627,7 @@ export const blocksFromHeightFixture001 = { }, edges: [ { - cursor: '293773040', + cursor: 'MjkzNzczMDQw', node: { chainId: 6, height: 5000000, @@ -1683,7 +1683,7 @@ export const blocksFromHeightFixture001 = { powHash: '00000000000000025a3690c9f74877b40a316912a84123d5d4d7d03d5d2390cf', target: 'hiETbTA0waOTWMaQcRO8nKwkzC02MLsOEgAAAAAAAAA', transactions: { - totalCount: 0, + totalCount: 1, pageInfo: { endCursor: 'MTcyMjQ1NzI5Mw==', hasNextPage: false, @@ -1692,7 +1692,7 @@ export const blocksFromHeightFixture001 = { }, edges: [ { - cursor: '1722457293', + cursor: 'MTcyMjQ1NzI5Mw==', node: { id: 'VHJhbnNhY3Rpb246WyJaOFVyd0hPRzczcDZUakNWSDBqbkt4Rm1HS0Z1UGVYX3ZWelU3cFppTk9VIiwiSW1OMVMzZFdjamRJUWpaR1oyWXRVMjFXWWxNeFpHY3hXRGwzVkhvNVgyZFRTMWRHZVhaWVpESndTV2NpIl0=', }, @@ -1719,7 +1719,7 @@ export const blocksFromHeightFixture001 = { }, edges: [ { - cursor: '293772971', + cursor: 'MjkzNzcyOTcx', node: { chainId: 5, height: 5000000, @@ -1775,7 +1775,7 @@ export const blocksFromHeightFixture001 = { powHash: '000000000000000fed54c8334f907051b54909446554062275cb10c17a9c91bc', target: 'XwpGv6bKXbOP3HsnSClpDeVL3b5QUl4ZEgAAAAAAAAA', transactions: { - totalCount: 0, + totalCount: 1, pageInfo: { endCursor: 'MTcyMjQ1NzMwMw==', hasNextPage: false, @@ -1784,7 +1784,7 @@ export const blocksFromHeightFixture001 = { }, edges: [ { - cursor: '1722457303', + cursor: 'MTcyMjQ1NzMwMw==', node: { id: 'VHJhbnNhY3Rpb246WyJQeUdIVHFHeEdjNFRkYmNHM2NveTI5UERqeWc4NV8wSVlXRlFTb0Z5LWVjIiwiSW1sbFpWTkdRakl4VEVkeGNtNTZTbVY1VDNkWGFVVTNVME4yY20wMlVVMWFPRXhKYUhoUkxVTk1iazBpIl0=', }, @@ -1811,7 +1811,7 @@ export const blocksFromHeightFixture001 = { }, edges: [ { - cursor: '270533800', + cursor: 'MjcwNTMzODAw', node: { chainId: 19, height: 5000000, @@ -1867,7 +1867,7 @@ export const blocksFromHeightFixture001 = { powHash: '00000000000000106d2976c561b2de15b6b8272762d3478f9e991b1bb9d56994', target: 'iIaI2YHoOXgRV6hFVQl2aP2HCRfPx_zwEQAAAAAAAAA', transactions: { - totalCount: 0, + totalCount: 1, pageInfo: { endCursor: 'MTcyMjQ1NzI4OA==', hasNextPage: false, @@ -1876,7 +1876,7 @@ export const blocksFromHeightFixture001 = { }, edges: [ { - cursor: '1722457288', + cursor: 'MTcyMjQ1NzI4OA==', node: { id: 'VHJhbnNhY3Rpb246WyJHblZ0c0JkcnJPeGxrYUZsUHJxMDlHZnF4S1FHOXZ2ZVFGUV90VGNvN3VFIiwiSWpWcWJFZ3dXbTlVUTI1NlVtMWlNQzFoU25oZmNsUlBRa2RMY1RSVk5VOHhRMmRSUmpVNE9VTmtaemdpIl0=', }, @@ -1903,7 +1903,7 @@ export const blocksFromHeightFixture001 = { }, edges: [ { - cursor: '260866735', + cursor: 'MjYwODY2NzM1', node: { chainId: 17, height: 5000000, @@ -1959,7 +1959,7 @@ export const blocksFromHeightFixture001 = { powHash: '000000000000000577d8632dfe148f0ea5cd2e94b42c7c21e1c2c48fc75058ed', target: 'zY-l7heZhPwIx2E6GXfKafxwuxRW1nADEgAAAAAAAAA', transactions: { - totalCount: 0, + totalCount: 1, pageInfo: { endCursor: 'MTcyMjQ1NzI5NQ==', hasNextPage: false, @@ -1968,7 +1968,7 @@ export const blocksFromHeightFixture001 = { }, edges: [ { - cursor: '1722457295', + cursor: 'MTcyMjQ1NzI5NQ==', node: { id: 'VHJhbnNhY3Rpb246WyJFbGxZNjVJS0hDQUwwX0JJMWRtVGJiRVhxRHllb25hbGhVQnhOTnk3SnVRIiwiSWxkakxXdHJRVkkyVFhGTWRqRXhNWGwzYm1WQlRWODVUbDlTUnpKd01qUlRNazlPUVhWVE5sTlZSVWtpIl0=', }, @@ -1995,7 +1995,7 @@ export const blocksFromHeightFixture001 = { }, edges: [ { - cursor: '260866721', + cursor: 'MjYwODY2NzIx', node: { chainId: 16, height: 5000000, @@ -2051,7 +2051,7 @@ export const blocksFromHeightFixture001 = { powHash: '0000000000000011ec010c81e9233ad1c3bd7b425663c7a60e723b41b1d51777', target: 'QmzPVKxpHRXqxxMbFpHymb7gqmqRtucKEgAAAAAAAAA', transactions: { - totalCount: 0, + totalCount: 1, pageInfo: { endCursor: 'MTcyMjQ1NzI4MQ==', hasNextPage: false, @@ -2060,7 +2060,7 @@ export const blocksFromHeightFixture001 = { }, edges: [ { - cursor: '1722457281', + cursor: 'MTcyMjQ1NzI4MQ==', node: { id: 'VHJhbnNhY3Rpb246WyJXcFpEaktNaklRTU1MZy04TmlCdTQ5YVU1M2szem9JZzRzdHN5eEpISWRFIiwiSW14RE5pMU5kWGRhU2xRek15MUZOSEJWV1dWVE9VOTVZVlY1TjNKdlluaENRbFZ3ZFRkWFF6Sm1RMFVpIl0=', }, @@ -2087,7 +2087,7 @@ export const blocksFromHeightFixture001 = { }, edges: [ { - cursor: '260866691', + cursor: 'MjYwODY2Njkx', node: { chainId: 15, height: 5000000, @@ -2143,7 +2143,7 @@ export const blocksFromHeightFixture001 = { powHash: '000000000000000e64a9cfcda4e6e30087d51879885a490f730f856173965c92', target: 'aoIb9gLhuZtUv5sko21KvF1V-E32tkQCEgAAAAAAAAA', transactions: { - totalCount: 0, + totalCount: 1, pageInfo: { endCursor: 'MTcyMjQ1NzI5Ng==', hasNextPage: false, @@ -2152,7 +2152,7 @@ export const blocksFromHeightFixture001 = { }, edges: [ { - cursor: '1722457296', + cursor: 'MTcyMjQ1NzI5Ng==', node: { id: 'VHJhbnNhY3Rpb246WyIzUTZ0eUNqRjFvTlBnendyNjhyeWpIVlRpVWtiYVBMMEY3MTdOWV85M1dvIiwiSWs1RGRqRlZObDlqUjJkcmNGOWxNV280UVhObFdrNDBUalpIT1RGcWFIUnRiVk51ZERsV1ZVRTBVbk1pIl0=', }, @@ -2179,7 +2179,7 @@ export const blocksFromHeightFixture001 = { }, edges: [ { - cursor: '260866575', + cursor: 'MjYwODY2NTc1', node: { chainId: 18, height: 5000000, @@ -2235,7 +2235,7 @@ export const blocksFromHeightFixture001 = { powHash: '000000000000000e793323ddb5ba09bd038beb975cc3937a54198bd3a07f7ceb', target: 'FasICXOlG-zJ3Z7g0XWKOqJ9qmw5LEP-EQAAAAAAAAA', transactions: { - totalCount: 0, + totalCount: 1, pageInfo: { endCursor: 'MTcyMjQ1NzMyOQ==', hasNextPage: false, @@ -2244,7 +2244,7 @@ export const blocksFromHeightFixture001 = { }, edges: [ { - cursor: '1722457329', + cursor: 'MTcyMjQ1NzMyOQ==', node: { id: 'VHJhbnNhY3Rpb246WyJicGtqYmhzQkNndml1R0VyU1dIQnBBTFFnN0VwTkQ1SkFRZmp6bElObWowIiwiSWxjMExUTXRNME50VDBKeWNDMXNOM1pyZFY5VWNrMXdjRkZ3UkV0M0xWQktOVkpGVGs1elExQTRPRlVpIl0=', }, @@ -2271,7 +2271,7 @@ export const blocksFromHeightFixture001 = { }, edges: [ { - cursor: '260566348', + cursor: 'MjYwNTY2MzQ4', node: { chainId: 13, height: 5000000, @@ -2327,7 +2327,7 @@ export const blocksFromHeightFixture001 = { powHash: '000000000000000d71ebebdd3b779de3bebf2946bbe1df82fc71c03983cf32d7', target: 'QZ4GJzuEpriuwCrVo7yvavSVUFFq6iH8EQAAAAAAAAA', transactions: { - totalCount: 0, + totalCount: 1, pageInfo: { endCursor: 'MTcyMjQ1NzMxMA==', hasNextPage: false, @@ -2336,7 +2336,7 @@ export const blocksFromHeightFixture001 = { }, edges: [ { - cursor: '1722457310', + cursor: 'MTcyMjQ1NzMxMA==', node: { id: 'VHJhbnNhY3Rpb246WyJhRmwzaWtKd3ltRzBValpjVnAyWnZNREdSTTgzc2g5RF9xMVJITGF1SjI4IiwiSW5wS2RWQXdVbTk1YjJsQ2NVZFBZMlJOY1ZwaVRXdFdaR0ZWYjJ0bVJHRlFkbTVKVXpGME9VNXBkVEFpIl0=', }, @@ -2363,7 +2363,7 @@ export const blocksFromHeightFixture001 = { }, edges: [ { - cursor: '260566276', + cursor: 'MjYwNTY2Mjc2', node: { chainId: 14, height: 5000000, @@ -2419,7 +2419,7 @@ export const blocksFromHeightFixture001 = { powHash: '0000000000000001f2d1c37c3d0414fd2e59db30234085bb825d15f70c4ae166', target: 'VZh-8HKfyKOvvGjw7jYPdfBbKeOyFQD4EQAAAAAAAAA', transactions: { - totalCount: 0, + totalCount: 1, pageInfo: { endCursor: 'MTcyMjQ1NzMwNQ==', hasNextPage: false, @@ -2428,7 +2428,7 @@ export const blocksFromHeightFixture001 = { }, edges: [ { - cursor: '1722457305', + cursor: 'MTcyMjQ1NzMwNQ==', node: { id: 'VHJhbnNhY3Rpb246WyJ1TGk5cGZ3anVSX1Bqa3RTcWtQRzctdGtrdlBNVG1nVWFkVlRKeGh0cFljIiwiSWtwWVVIbGxkRXBmTVZnMGRuaEZXRlkzYzAxR2JsaE1VbE5sYkhKbFUwVkZSMFZzY1Y5a1lXcEVVemdpIl0=', }, @@ -2455,7 +2455,7 @@ export const blocksFromHeightFixture001 = { }, edges: [ { - cursor: '260237831', + cursor: 'MjYwMjM3ODMx', node: { chainId: 10, height: 5000000, @@ -2511,7 +2511,7 @@ export const blocksFromHeightFixture001 = { powHash: '000000000000000452fa185d2617006cb35874a33780ddc521ca2a974d87a962', target: 'GbZFgF75X-6G7uqAw6Qip77ZU5Sk2mT5EQAAAAAAAAA', transactions: { - totalCount: 0, + totalCount: 1, pageInfo: { endCursor: 'MTcyMjQ1NzMyNw==', hasNextPage: false, @@ -2520,7 +2520,7 @@ export const blocksFromHeightFixture001 = { }, edges: [ { - cursor: '1722457327', + cursor: 'MTcyMjQ1NzMyNw==', node: { id: 'VHJhbnNhY3Rpb246WyJPOUdzWENCVW04ZFg5VGpiOU5mSVY1SVpUc2U5SUtmVXloQUo1TkNLakZFIiwiSW0xUGNERlhiVFZxUTJ4R04xOUNSMWx2TTNSWVZYcEZRbUZLTUVwM1NVZDBiRTAzUkhaTVowUnpaMGtpIl0=', }, @@ -2547,7 +2547,7 @@ export const blocksFromHeightFixture001 = { }, edges: [ { - cursor: '260237670', + cursor: 'MjYwMjM3Njcw', node: { chainId: 12, height: 5000000, @@ -2603,7 +2603,7 @@ export const blocksFromHeightFixture001 = { powHash: '00000000000000058fb46603d75e587ff3ba93217c70f113ae3b160ca3493924', target: 'aFy6YSVFnpqmy3dVvmGGKZdf3iIbra3_EQAAAAAAAAA', transactions: { - totalCount: 0, + totalCount: 1, pageInfo: { endCursor: 'MTcyMjQ1NzM0Mg==', hasNextPage: false, @@ -2612,7 +2612,7 @@ export const blocksFromHeightFixture001 = { }, edges: [ { - cursor: '1722457342', + cursor: 'MTcyMjQ1NzM0Mg==', node: { id: 'VHJhbnNhY3Rpb246WyI0cEpMbnVYRThrckFObHphQUU5QjNzbVB3TUdtQXdscmpKc2cyU205Vl9zIiwiSW1aYVZHOVRkMHBzUm5Wd01HazBTV2xIZFhsS1RrVlBaRzVRUjNkRVoxRkZSVWRwVG5ZNVZWVTBiWGNpIl0=', }, @@ -2639,7 +2639,7 @@ export const blocksFromHeightFixture001 = { }, edges: [ { - cursor: '260237626', + cursor: 'MjYwMjM3NjI2', node: { chainId: 11, height: 5000000, @@ -2695,7 +2695,7 @@ export const blocksFromHeightFixture001 = { powHash: '0000000000000007eecd73d6cb374fc36841933df215cc1ccc34082f2244cf14', target: 'RcUHfjUvjbLbGoYwavotFBOtZ1KMm4T6EQAAAAAAAAA', transactions: { - totalCount: 0, + totalCount: 1, pageInfo: { endCursor: 'MTcyMjQ1NzM1Nw==', hasNextPage: false, @@ -2704,7 +2704,7 @@ export const blocksFromHeightFixture001 = { }, edges: [ { - cursor: '1722457357', + cursor: 'MTcyMjQ1NzM1Nw==', node: { id: 'VHJhbnNhY3Rpb246WyJQWDU4ZGtPNEpHXzBmOE5ublAwWFY3bGlMWWdXNzAzZ1VSSlNteTlQRGtFIiwiSWtaekxVbFZOalUxYlZwaGVEUlVSVTFNUW0xS2EwUjBSa05LVjA5UVdtVTRNR1JSVDI5dmRVNW1kemdpIl0=', }, diff --git a/indexer/tests/integration/fixtures/blocks-from-height/blocks-from-height.fixture.002.ts b/indexer/tests/integration/fixtures/blocks-from-height/blocks-from-height.fixture.002.ts index 96f00cea..3579d41b 100644 --- a/indexer/tests/integration/fixtures/blocks-from-height/blocks-from-height.fixture.002.ts +++ b/indexer/tests/integration/fixtures/blocks-from-height/blocks-from-height.fixture.002.ts @@ -109,7 +109,7 @@ export const blocksFromHeightFixture002 = { powHash: '00000000000000120f454139d1f114f14d63c99126635e7810f3d9975fed0eeb', target: 'rceSV4d6E91hStDCVLY1Tk_NuJGIctEWEgAAAAAAAAA', transactions: { - totalCount: 1, + totalCount: 2, pageInfo: { endCursor: 'MTcyMjQ1NzE5Nw==', hasNextPage: false, @@ -151,7 +151,7 @@ export const blocksFromHeightFixture002 = { }, edges: [ { - cursor: '322297317', + cursor: 'MzIyMjk3MzE3', node: { chainId: 8, height: 4999999, @@ -207,7 +207,7 @@ export const blocksFromHeightFixture002 = { powHash: '000000000000000d460e621cf4cf79b599993063b7aad00fb28a8b3c4958d795', target: 'rceSV4d6E91hStDCVLY1Tk_NuJGIctEWEgAAAAAAAAA', transactions: { - totalCount: 0, + totalCount: 1, pageInfo: { endCursor: 'MTcyMjQ1NzI3MQ==', hasNextPage: false, @@ -216,7 +216,7 @@ export const blocksFromHeightFixture002 = { }, edges: [ { - cursor: '1722457271', + cursor: 'MTcyMjQ1NzI3MQ==', node: { id: 'VHJhbnNhY3Rpb246WyI4ZGdzSmEtMjJxYU5CaWU2VFEzcEtlOU5FbUdvZURrSGdNa1pOc1lpaGpjIiwiSWtaYVRrSjNTamQyVkVWVVdtaENMWFI2T0ZsQ2NqWjZOR05KVFVvM0xVRXdZVGt6VFhGV1NYRm1hRFFpIl0=', }, @@ -316,7 +316,7 @@ export const blocksFromHeightFixture002 = { powHash: '0000000000000008024a31d2c0365a845035dcff6974116bb5f7c38fef1120f3', target: 'rceSV4d6E91hStDCVLY1Tk_NuJGIctEWEgAAAAAAAAA', transactions: { - totalCount: 1, + totalCount: 2, pageInfo: { endCursor: 'MTcyMjQ1NzAxNg==', hasNextPage: false, @@ -358,7 +358,7 @@ export const blocksFromHeightFixture002 = { }, edges: [ { - cursor: '322297319', + cursor: 'MzIyMjk3MzE5', node: { chainId: 8, height: 4999997, @@ -414,7 +414,7 @@ export const blocksFromHeightFixture002 = { powHash: '0000000000000010e52c500e737f560dffa5258808851bf51707ff2b32246e7e', target: 'rceSV4d6E91hStDCVLY1Tk_NuJGIctEWEgAAAAAAAAA', transactions: { - totalCount: 0, + totalCount: 1, pageInfo: { endCursor: 'MTcyMjQ1NzIwOQ==', hasNextPage: false, @@ -423,7 +423,7 @@ export const blocksFromHeightFixture002 = { }, edges: [ { - cursor: '1722457209', + cursor: 'MTcyMjQ1NzIwOQ==', node: { id: 'VHJhbnNhY3Rpb246WyIzWXYtYXlFbVFfaDRPQVhhdUxPVHlpRVhHZDdfVllYcnlBZFRQNEJMTFlRIiwiSWkwelgzVkRlQzFGYlVveFFtbzBWRWgwVlc4eVpsUXpjakowZG5OUVVWZFBRbGhCYzBsdlRIQmllRmtpIl0=', }, @@ -450,7 +450,7 @@ export const blocksFromHeightFixture002 = { }, edges: [ { - cursor: '322297320', + cursor: 'MzIyMjk3MzIw', node: { chainId: 8, height: 4999996, @@ -506,7 +506,7 @@ export const blocksFromHeightFixture002 = { powHash: '00000000000000002ad7ae0465e29fb1d3c58a7099d95f97c7ee1b494c98a0a8', target: 'rceSV4d6E91hStDCVLY1Tk_NuJGIctEWEgAAAAAAAAA', transactions: { - totalCount: 0, + totalCount: 1, pageInfo: { endCursor: 'MTcyMjQ1NzIwMg==', hasNextPage: false, @@ -515,7 +515,7 @@ export const blocksFromHeightFixture002 = { }, edges: [ { - cursor: '1722457202', + cursor: 'MTcyMjQ1NzIwMg==', node: { id: 'VHJhbnNhY3Rpb246WyItM191Q3gtRW1KMUJqNFRIdFVvMmZUM3IydHZzUFFXT0JYQXNJb0xwYnhZIiwiSWxsdU0zQXpkMUJxWmtFNU1rcGlNRXB5VXpSSVZIbDRWRm81UjFrM1lqTkpVV3RDUW0wMlRWTmFkazBpIl0=', }, @@ -542,7 +542,7 @@ export const blocksFromHeightFixture002 = { }, edges: [ { - cursor: '322297321', + cursor: 'MzIyMjk3MzIx', node: { chainId: 8, height: 4999995, @@ -598,7 +598,7 @@ export const blocksFromHeightFixture002 = { powHash: '0000000000000011b4e33c7d9beeaf3892582e6912afb6d42b6a0aee6bbf5631', target: 'rceSV4d6E91hStDCVLY1Tk_NuJGIctEWEgAAAAAAAAA', transactions: { - totalCount: 0, + totalCount: 1, pageInfo: { endCursor: 'MTcyMjQ1NzE4NQ==', hasNextPage: false, @@ -607,7 +607,7 @@ export const blocksFromHeightFixture002 = { }, edges: [ { - cursor: '1722457185', + cursor: 'MTcyMjQ1NzE4NQ==', node: { id: 'VHJhbnNhY3Rpb246WyJZbjNwM3dQamZBOTJKYjBKclM0SFR5eFRaOUdZN2IzSVFrQkJtNk1TWnZNIiwiSW5WUmVtTkRkWFpvUVhsdmNESnVNR3RYTlRjNFFUbENNVVJLVjNZNE5FOUdjekJ0Ymtodk1XUmhaa2tpIl0=', }, @@ -634,7 +634,7 @@ export const blocksFromHeightFixture002 = { }, edges: [ { - cursor: '322297322', + cursor: 'MzIyMjk3MzIy', node: { chainId: 8, height: 4999994, @@ -690,7 +690,7 @@ export const blocksFromHeightFixture002 = { powHash: '0000000000000004be3a1e1ce4afcff6ae1ab8e98c362cb80cb305b49d72879e', target: 'rceSV4d6E91hStDCVLY1Tk_NuJGIctEWEgAAAAAAAAA', transactions: { - totalCount: 0, + totalCount: 1, pageInfo: { endCursor: 'MTcyMjQ1NzE1Ng==', hasNextPage: false, @@ -699,7 +699,7 @@ export const blocksFromHeightFixture002 = { }, edges: [ { - cursor: '1722457156', + cursor: 'MTcyMjQ1NzE1Ng==', node: { id: 'VHJhbnNhY3Rpb246WyJ1UXpjQ3V2aEF5b3AybjBrVzU3OEE5QjFESld2ODRPRnMwbW5IbzFkYWZJIiwiSW1SSWVVNTBNV2ROZWxnelMzVXRVM1ZYVFZCcGVWbGZSbFpQUVRsWFJFdGxUMDkwU0RSMFF6WkVia2tpIl0=', }, @@ -726,7 +726,7 @@ export const blocksFromHeightFixture002 = { }, edges: [ { - cursor: '322297323', + cursor: 'MzIyMjk3MzIz', node: { chainId: 8, height: 4999993, @@ -782,7 +782,7 @@ export const blocksFromHeightFixture002 = { powHash: '0000000000000004df8181388598274dc34c52e4fd53b0394c1eae0937ea8a88', target: 'rceSV4d6E91hStDCVLY1Tk_NuJGIctEWEgAAAAAAAAA', transactions: { - totalCount: 0, + totalCount: 1, pageInfo: { endCursor: 'MTcyMjQ1NzEwOQ==', hasNextPage: false, @@ -791,7 +791,7 @@ export const blocksFromHeightFixture002 = { }, edges: [ { - cursor: '1722457109', + cursor: 'MTcyMjQ1NzEwOQ==', node: { id: 'VHJhbnNhY3Rpb246WyJkSHlOdDFnTXpYM0t1LVN1V01QaXlZX0ZWT0E5V0RLZU9PdEg0dEM2RG5JIiwiSWxkbFR6TkRRMGhwVmpFNUxTMUZTVUpyVjNwUFJIaFBURTk2ZG05eVZqZFJhbUZzT0VScGRVTXhhVGdpIl0=', }, @@ -818,7 +818,7 @@ export const blocksFromHeightFixture002 = { }, edges: [ { - cursor: '322297324', + cursor: 'MzIyMjk3MzI0', node: { chainId: 8, height: 4999992, @@ -874,7 +874,7 @@ export const blocksFromHeightFixture002 = { powHash: '000000000000000a1e92ec649af61c677685f56d8a8f66fb8848c0c0055cb277', target: 'rceSV4d6E91hStDCVLY1Tk_NuJGIctEWEgAAAAAAAAA', transactions: { - totalCount: 0, + totalCount: 1, pageInfo: { endCursor: 'MTcyMjQ1NzA4Ng==', hasNextPage: false, @@ -883,7 +883,7 @@ export const blocksFromHeightFixture002 = { }, edges: [ { - cursor: '1722457086', + cursor: 'MTcyMjQ1NzA4Ng==', node: { id: 'VHJhbnNhY3Rpb246WyJXZU8zQ0NIaVYxOS0tRUlCa1d6T0R4T0xPenZvclY3UWphbDhEaXVDMWk4IiwiSWtwNlduZGxhRmN4VDBSeU1qUndSMlIxWlhkWU1HdzBWME5pWjJnNWMzWTFiRnBvY3pNMVdFaFhWa0VpIl0=', }, @@ -910,7 +910,7 @@ export const blocksFromHeightFixture002 = { }, edges: [ { - cursor: '322297325', + cursor: 'MzIyMjk3MzI1', node: { chainId: 8, height: 4999991, @@ -966,7 +966,7 @@ export const blocksFromHeightFixture002 = { powHash: '000000000000000e59e8afb4a9444b51940a04ba6cb515b61aab919da5062da3', target: 'rceSV4d6E91hStDCVLY1Tk_NuJGIctEWEgAAAAAAAAA', transactions: { - totalCount: 0, + totalCount: 1, pageInfo: { endCursor: 'MTcyMjQ1NzAzOQ==', hasNextPage: false, @@ -975,7 +975,7 @@ export const blocksFromHeightFixture002 = { }, edges: [ { - cursor: '1722457039', + cursor: 'MTcyMjQ1NzAzOQ==', node: { id: 'VHJhbnNhY3Rpb246WyJKelp3ZWhXMU9EcjI0cEdkdWV3WDBsNFdDYmdoOXN2NWxaaHMzNVhIV1ZBIiwiSW5FeVJHTkxaWGRxTm05b1FUSnJkREozUkd0dWMxa3pUMUJGUlUxcFNUQnlXSEJXV0V4VFVFSTNMVlVpIl0=', }, @@ -1002,7 +1002,7 @@ export const blocksFromHeightFixture002 = { }, edges: [ { - cursor: '322297326', + cursor: 'MzIyMjk3MzI2', node: { chainId: 8, height: 4999990, @@ -1058,7 +1058,7 @@ export const blocksFromHeightFixture002 = { powHash: '000000000000000f12605c2089d4223ee9d718cdd756e8559ec4433a1af16477', target: 'rceSV4d6E91hStDCVLY1Tk_NuJGIctEWEgAAAAAAAAA', transactions: { - totalCount: 0, + totalCount: 1, pageInfo: { endCursor: 'MTcyMjQ1NzAzNQ==', hasNextPage: false, @@ -1067,7 +1067,7 @@ export const blocksFromHeightFixture002 = { }, edges: [ { - cursor: '1722457035', + cursor: 'MTcyMjQ1NzAzNQ==', node: { id: 'VHJhbnNhY3Rpb246WyJxMkRjS2V3ajZvaEEya3Qyd0RrbnNZM09QRUVNaUkwclhwVlhMU1BCNy1VIiwiSW1GSVpUaHpWM2RYWDNveWNYaDNRbTkwVDJzdFJHWTFSQzFwWTAxdlptdENXbUZUWlUxQmFYRjVWRlVpIl0=', }, @@ -1094,7 +1094,7 @@ export const blocksFromHeightFixture002 = { }, edges: [ { - cursor: '322297327', + cursor: 'MzIyMjk3MzI3', node: { chainId: 8, height: 4999989, @@ -1150,7 +1150,7 @@ export const blocksFromHeightFixture002 = { powHash: '000000000000000b0c052b65d8feed64221b57955d13420314ade03c983331e3', target: 'rceSV4d6E91hStDCVLY1Tk_NuJGIctEWEgAAAAAAAAA', transactions: { - totalCount: 0, + totalCount: 1, pageInfo: { endCursor: 'MTcyMjQ1Njk2Ng==', hasNextPage: false, @@ -1159,7 +1159,7 @@ export const blocksFromHeightFixture002 = { }, edges: [ { - cursor: '1722456966', + cursor: 'MTcyMjQ1Njk2Ng==', node: { id: 'VHJhbnNhY3Rpb246WyJhSGU4c1d3V196MnF4d0JvdE9rLURmNUQtaWNNb2ZrQlphU2VNQWlxeVRVIiwiSW5WVFNXdHhWMk5wUnpZMlIwNUxTSHBIWVdZd1QwTmpjV3hQV1ZJNWR6WTFlbEJNWVhBMlJtVmlPVVVpIl0=', }, @@ -1186,7 +1186,7 @@ export const blocksFromHeightFixture002 = { }, edges: [ { - cursor: '322297328', + cursor: 'MzIyMjk3MzI4', node: { chainId: 8, height: 4999988, @@ -1242,7 +1242,7 @@ export const blocksFromHeightFixture002 = { powHash: '0000000000000000687ae2700352939135d7b45e6476759b51f0513e31d229ff', target: 'rceSV4d6E91hStDCVLY1Tk_NuJGIctEWEgAAAAAAAAA', transactions: { - totalCount: 0, + totalCount: 1, pageInfo: { endCursor: 'MTcyMjQ1Njk0Mg==', hasNextPage: false, @@ -1251,7 +1251,7 @@ export const blocksFromHeightFixture002 = { }, edges: [ { - cursor: '1722456942', + cursor: 'MTcyMjQ1Njk0Mg==', node: { id: 'VHJhbnNhY3Rpb246WyJ1U0lrcVdjaUc2NkdOS0h6R2FmME9DY3FsT1lSOXc2NXpQTGFwNkZlYjlFIiwiSWt4eVZHZDNlVXg0UkU5ekxUa3lXRXBIUlhObmJXSTNNazVWWldkNFVFRkZiemRGTTI5R2NYbzJVRkVpIl0=', }, @@ -1402,7 +1402,7 @@ export const blocksFromHeightFixture002 = { powHash: '000000000000000814b7ea5c5afd62072bba959a841f075c0c206bf9c3c1ed61', target: 'rceSV4d6E91hStDCVLY1Tk_NuJGIctEWEgAAAAAAAAA', transactions: { - totalCount: 1, + totalCount: 2, pageInfo: { endCursor: 'MTcyMjQ1NjgwNQ==', hasNextPage: false, @@ -1444,7 +1444,7 @@ export const blocksFromHeightFixture002 = { }, edges: [ { - cursor: '322297330', + cursor: 'MzIyMjk3MzMw', node: { chainId: 8, height: 4999986, @@ -1500,7 +1500,7 @@ export const blocksFromHeightFixture002 = { powHash: '000000000000001098e85bcc3c2a810b4caca8113ee67466660497c010b76308', target: 'rceSV4d6E91hStDCVLY1Tk_NuJGIctEWEgAAAAAAAAA', transactions: { - totalCount: 0, + totalCount: 1, pageInfo: { endCursor: 'MTcyMjQ1NjkwMQ==', hasNextPage: false, @@ -1509,7 +1509,7 @@ export const blocksFromHeightFixture002 = { }, edges: [ { - cursor: '1722456901', + cursor: 'MTcyMjQ1NjkwMQ==', node: { id: 'VHJhbnNhY3Rpb246WyJ1MGZPSjBYcXhqa2xlejlGaldOTDNzOVpTUEd5N0dBOXpIeVRBbi1MdW5RIiwiSW10R09Ya3dYMlp1ZHkxRGVuUllWa1ZoYmpaME9EUTJRbTU1VTFkWlExRkJSMVJ6UVc1T1FYa3lOMUVpIl0=', }, @@ -1536,7 +1536,7 @@ export const blocksFromHeightFixture002 = { }, edges: [ { - cursor: '322297331', + cursor: 'MzIyMjk3MzMx', node: { chainId: 8, height: 4999985, @@ -1592,7 +1592,7 @@ export const blocksFromHeightFixture002 = { powHash: '000000000000000ef91b0f1e052e9442e9d35420299ccd12a400d86d771539d9', target: 'rceSV4d6E91hStDCVLY1Tk_NuJGIctEWEgAAAAAAAAA', transactions: { - totalCount: 0, + totalCount: 1, pageInfo: { endCursor: 'MTcyMjQ1Njg3Mg==', hasNextPage: false, @@ -1601,7 +1601,7 @@ export const blocksFromHeightFixture002 = { }, edges: [ { - cursor: '1722456872', + cursor: 'MTcyMjQ1Njg3Mg==', node: { id: 'VHJhbnNhY3Rpb246WyJrRjl5MF9mbnctQ3p0WFZFYW42dDg0NkJueVNXWUNRQUdUc0FuTkF5MjdRIiwiSWxsd1YxSkpNakF3UTNZeGR6TmhVRkZuYW5sSWFHNDFjR0ZyWkZvNWEyaFlhek5FYzFRNVNVd3dTSGNpIl0=', }, @@ -1628,7 +1628,7 @@ export const blocksFromHeightFixture002 = { }, edges: [ { - cursor: '322297332', + cursor: 'MzIyMjk3MzMy', node: { chainId: 8, height: 4999984, @@ -1684,7 +1684,7 @@ export const blocksFromHeightFixture002 = { powHash: '000000000000000681f940c9567f9ee8b36f5bc1040965f33d357c757b12da6e', target: 'rceSV4d6E91hStDCVLY1Tk_NuJGIctEWEgAAAAAAAAA', transactions: { - totalCount: 0, + totalCount: 1, pageInfo: { endCursor: 'MTcyMjQ1Njg2MA==', hasNextPage: false, @@ -1693,7 +1693,7 @@ export const blocksFromHeightFixture002 = { }, edges: [ { - cursor: '1722456860', + cursor: 'MTcyMjQ1Njg2MA==', node: { id: 'VHJhbnNhY3Rpb246WyJZcFdSSTIwMEN2MXczYVBRZ2p5SGhuNXBha2RaOWtoWGszRHNUOUlMMEh3IiwiSWpWdmRYTXlhalJYWkRaQk5XcHdVakZpZG1WV05rMU9hMkkzVUVodmRFTTVkbmxEUkdWd05VTnNSMUVpIl0=', }, @@ -1720,7 +1720,7 @@ export const blocksFromHeightFixture002 = { }, edges: [ { - cursor: '322297410', + cursor: 'MzIyMjk3NDEw', node: { chainId: 8, height: 4999983, @@ -1776,7 +1776,7 @@ export const blocksFromHeightFixture002 = { powHash: '00000000000000037cf29ad9059cc1c9ff0771ead6d559fc2316daf702817d38', target: 'rceSV4d6E91hStDCVLY1Tk_NuJGIctEWEgAAAAAAAAA', transactions: { - totalCount: 0, + totalCount: 1, pageInfo: { endCursor: 'MTcyMjQ1NjgxMw==', hasNextPage: false, @@ -1785,7 +1785,7 @@ export const blocksFromHeightFixture002 = { }, edges: [ { - cursor: '1722456813', + cursor: 'MTcyMjQ1NjgxMw==', node: { id: 'VHJhbnNhY3Rpb246WyI1b3VzMmo0V2Q2QTVqcFIxYnZlVjZNTmtiN1BIb3RDOXZ5Q0RlcDVDbEdRIiwiSW5sTlkyMW1Tbm8zWmxkS2RVSnZVMHBPYWtOTU5VeEhjemw1VW1OeU56WkhVRE5MVDFsM01uaG1lV2NpIl0=', }, @@ -1936,7 +1936,7 @@ export const blocksFromHeightFixture002 = { powHash: '00000000000000100f6ff547589681274032e01c2a4cc36f7054326c550625b8', target: 'rceSV4d6E91hStDCVLY1Tk_NuJGIctEWEgAAAAAAAAA', transactions: { - totalCount: 2, + totalCount: 3, pageInfo: { endCursor: 'MTcyMjQ1NjUwNg==', hasNextPage: false, @@ -2057,7 +2057,7 @@ export const blocksFromHeightFixture002 = { powHash: '000000000000000ef35441139f8c55192c6cbee52fd4d3c43e34257a525c0bc4', target: 'rceSV4d6E91hStDCVLY1Tk_NuJGIctEWEgAAAAAAAAA', transactions: { - totalCount: 1, + totalCount: 2, pageInfo: { endCursor: 'MTcyMjQ1NjYwNw==', hasNextPage: false, diff --git a/indexer/tests/integration/fixtures/blocks-from-height/blocks-from-height.fixture.003.ts b/indexer/tests/integration/fixtures/blocks-from-height/blocks-from-height.fixture.003.ts index d6c7078c..851b2136 100644 --- a/indexer/tests/integration/fixtures/blocks-from-height/blocks-from-height.fixture.003.ts +++ b/indexer/tests/integration/fixtures/blocks-from-height/blocks-from-height.fixture.003.ts @@ -19,7 +19,7 @@ export const blocksFromHeightFixture003 = { }, edges: [ { - cursor: '310297602', + cursor: 'MzEwMjk3NjAy', node: { chainId: 1, height: 4000000, @@ -75,7 +75,7 @@ export const blocksFromHeightFixture003 = { powHash: '00000000000000127dbb5c111e45ccd8a2f956fd9f40bedd4f789a6abe97137e', target: 'gRfVs6R4URWptgvlil3v99Lcz0ob09uoGgAAAAAAAAA', transactions: { - totalCount: 0, + totalCount: 1, pageInfo: { endCursor: 'MTY5MjQzNTgyNA==', hasNextPage: false, @@ -84,7 +84,7 @@ export const blocksFromHeightFixture003 = { }, edges: [ { - cursor: '1692435824', + cursor: 'MTY5MjQzNTgyNA==', node: { id: 'VHJhbnNhY3Rpb246WyJVZF90Q0MwY0J0UThyc1hfei1hclJ1NkJVMDlKRXg0dU9NcURYUnF5dGpVIiwiSWtFMmRYbDFORk5vY201TFozcFhla1JzZEZaU1ltaDZjMHRFTUU4M2RURmpUemRFU2pONFkzRlZjRzhpIl0=', }, @@ -111,7 +111,7 @@ export const blocksFromHeightFixture003 = { }, edges: [ { - cursor: '309347583', + cursor: 'MzA5MzQ3NTgz', node: { chainId: 2, height: 4000000, @@ -167,7 +167,7 @@ export const blocksFromHeightFixture003 = { powHash: '0000000000000000b8f4b80234e80383ff87414a4b4f59e34c7be1b31b876893', target: '-0urCESvo7ocxrV4BXXIAwl2Zqyw8iOgGgAAAAAAAAA', transactions: { - totalCount: 0, + totalCount: 1, pageInfo: { endCursor: 'MTY5MjQzNTg0Ng==', hasNextPage: false, @@ -176,7 +176,7 @@ export const blocksFromHeightFixture003 = { }, edges: [ { - cursor: '1692435846', + cursor: 'MTY5MjQzNTg0Ng==', node: { id: 'VHJhbnNhY3Rpb246WyJSRXhubjk0VHRYWk85NGE3eW5IN2RxZDVtSExUam5PZFJiZTMyVVg1aXkwIiwiSWxGRU1ISkZUbkJqU0hrNVEweGpTR2xrTXpkWGEzZFJZV0pMUm1OUVJVNVRWRlEzVVc4dGVqSjVRekFpIl0=', }, @@ -203,7 +203,7 @@ export const blocksFromHeightFixture003 = { }, edges: [ { - cursor: '303961235', + cursor: 'MzAzOTYxMjM1', node: { chainId: 4, height: 4000000, @@ -259,7 +259,7 @@ export const blocksFromHeightFixture003 = { powHash: '000000000000001437d5cb67ebe93df3786dad7fd4f79eb79460bb958f3b4693', target: 'IWAyFM823F1i62NT9LEwVT4Snyd4VvPGGgAAAAAAAAA', transactions: { - totalCount: 0, + totalCount: 1, pageInfo: { endCursor: 'MTY5MjQzNTgwMw==', hasNextPage: false, @@ -268,7 +268,7 @@ export const blocksFromHeightFixture003 = { }, edges: [ { - cursor: '1692435803', + cursor: 'MTY5MjQzNTgwMw==', node: { id: 'VHJhbnNhY3Rpb246WyItcWFfWEREQ0s1NEVSNXhRUXZxRzFjWU85bG9JRnNhLXA2X0dOa2IySU9JIiwiSW1oRmVIZ3hZelJOTlVkcVQxRlZMVXRzVDBWNmVWRkRSWGhoWVdabFZsRlJWWE4yTVdGdE1XZ3dUR2NpIl0=', }, @@ -295,7 +295,7 @@ export const blocksFromHeightFixture003 = { }, edges: [ { - cursor: '300985517', + cursor: 'MzAwOTg1NTE3', node: { chainId: 3, height: 4000000, @@ -351,7 +351,7 @@ export const blocksFromHeightFixture003 = { powHash: '000000000000000640e99b98ec77ef958fbd6edbb21346a2f08cb14ce3bc1bca', target: 'o3Xdn6SnB-Pe5SmKEmNaibQry3PEt0jEGgAAAAAAAAA', transactions: { - totalCount: 0, + totalCount: 1, pageInfo: { endCursor: 'MTY5MjQzNTgyMQ==', hasNextPage: false, @@ -360,7 +360,7 @@ export const blocksFromHeightFixture003 = { }, edges: [ { - cursor: '1692435821', + cursor: 'MTY5MjQzNTgyMQ==', node: { id: 'VHJhbnNhY3Rpb246WyJpZzJUZmpIRjdTMHB0SXdIeDFFbm9wRXpUUjRocmlWS0kycVd2WlBzMWZ3IiwiSWpoZlFtOHlkakF5V2pWV1RqVnpZa0Z4V2tGemVFZzNPWFpvV2xseGEzSkRiMjEwVEVaT2VYcEtPR2NpIl0=', }, @@ -387,7 +387,7 @@ export const blocksFromHeightFixture003 = { }, edges: [ { - cursor: '300406095', + cursor: 'MzAwNDA2MDk1', node: { chainId: 5, height: 4000000, @@ -443,7 +443,7 @@ export const blocksFromHeightFixture003 = { powHash: '000000000000001304acdf22cf26c837cfd379543d9c4f43a4a143529c32dcdb', target: 'LtJRmS47auTwZAvV7LFAka5lYTeKvSbMGgAAAAAAAAA', transactions: { - totalCount: 0, + totalCount: 1, pageInfo: { endCursor: 'MTY5MjQzNTc4Ng==', hasNextPage: false, @@ -452,7 +452,7 @@ export const blocksFromHeightFixture003 = { }, edges: [ { - cursor: '1692435786', + cursor: 'MTY5MjQzNTc4Ng==', node: { id: 'VHJhbnNhY3Rpb246WyI0N0l1RzV3NWF0dGlERW11WThUX1dsb3EtdXJoR0lRRlZTeEtkOXBuNW5JIiwiSWs4dFMwOVpRbWszYVhsbGFHaExVM05rVVcxTFZEWkJlVzg0ZG5WelNXcFRjWFZOTm5aMFIxVkpibEVpIl0=', }, @@ -479,7 +479,7 @@ export const blocksFromHeightFixture003 = { }, edges: [ { - cursor: '300201405', + cursor: 'MzAwMjAxNDA1', node: { chainId: 7, height: 4000000, @@ -535,7 +535,7 @@ export const blocksFromHeightFixture003 = { powHash: '000000000000000d8d62ee50d4488bb4610a21cee281196ed237f94f4d83dc8b', target: '_OnhK1pKwuoIf1gU8qaJCb425kuAAQ69GgAAAAAAAAA', transactions: { - totalCount: 0, + totalCount: 1, pageInfo: { endCursor: 'MTY5MjQzNTc5MA==', hasNextPage: false, @@ -544,7 +544,7 @@ export const blocksFromHeightFixture003 = { }, edges: [ { - cursor: '1692435790', + cursor: 'MTY5MjQzNTc5MA==', node: { id: 'VHJhbnNhY3Rpb246WyJtbGJnaUtlYk9IMVI1TEFmVDRSU2lDaGFIS3Bzc3RSTExqbXFrSUZiYWNFIiwiSW10V1VuVXRNVGt4TldScmNGWnFXa04yTTBoT1ZGWlBXbkZET1hKeE1HWTVkVlZUWlhGNWFrOVBRbFVpIl0=', }, @@ -571,7 +571,7 @@ export const blocksFromHeightFixture003 = { }, edges: [ { - cursor: '300198858', + cursor: 'MzAwMTk4ODU4', node: { chainId: 6, height: 4000000, @@ -627,7 +627,7 @@ export const blocksFromHeightFixture003 = { powHash: '0000000000000013121f5b1ca6dd031bb6549dff34d578d85fe53a9b78e6591b', target: 'q8G2Qjr52DgC8jeJc-O5skN7VKz0fuCqGgAAAAAAAAA', transactions: { - totalCount: 0, + totalCount: 1, pageInfo: { endCursor: 'MTY5MjQzNTgwOA==', hasNextPage: false, @@ -636,7 +636,7 @@ export const blocksFromHeightFixture003 = { }, edges: [ { - cursor: '1692435808', + cursor: 'MTY5MjQzNTgwOA==', node: { id: 'VHJhbnNhY3Rpb246WyJBUmxtYTRLWndkQVZuUHpJWjZwM1ZCS1FfOVh1aVZsLTVlLUlaU3hOckJRIiwiSWtRdE1uSk9ObmxaYkRrNVowMURjVXhrTFZwR1duRTVTRWczVUU1NllsbDRYMmhhVVdkWE1XNVdZa0VpIl0=', }, @@ -663,7 +663,7 @@ export const blocksFromHeightFixture003 = { }, edges: [ { - cursor: '291367608', + cursor: 'MjkxMzY3NjA4', node: { chainId: 19, height: 4000000, @@ -719,7 +719,7 @@ export const blocksFromHeightFixture003 = { powHash: '000000000000000fd622807c56cce9ce5ef0e69f082a16c32c25f266ba48d7d8', target: 'DD0E0PlDIZYq1v_7uSP3-lW472doE27bGgAAAAAAAAA', transactions: { - totalCount: 0, + totalCount: 1, pageInfo: { endCursor: 'MTY5MjQzNTgzNA==', hasNextPage: false, @@ -728,7 +728,7 @@ export const blocksFromHeightFixture003 = { }, edges: [ { - cursor: '1692435834', + cursor: 'MTY5MjQzNTgzNA==', node: { id: 'VHJhbnNhY3Rpb246WyJRc08zWXhqaXpudDRnNkJ3UXduUFExNzZaMmpKRVpBTEdRTmN5WFJYOWFNIiwiSWtKeGRsQlpjM05CUzFwRWVVTm1TSFZMTVdKc1VIVldObE0wUVRsTVQycGxPREpEU1c1WmIwNXFjM01pIl0=', }, @@ -755,7 +755,7 @@ export const blocksFromHeightFixture003 = { }, edges: [ { - cursor: '269968903', + cursor: 'MjY5OTY4OTAz', node: { chainId: 11, height: 4000000, @@ -811,7 +811,7 @@ export const blocksFromHeightFixture003 = { powHash: '000000000000000eac07ee5a5dfb9b597187db847c7fcef79e1808d3795683eb', target: 'RRqporeotwMXY4C186Y0QjcxITh8Tp_EGgAAAAAAAAA', transactions: { - totalCount: 0, + totalCount: 1, pageInfo: { endCursor: 'MTY5MjQzNTgzNA==', hasNextPage: false, @@ -820,7 +820,7 @@ export const blocksFromHeightFixture003 = { }, edges: [ { - cursor: '1692435834', + cursor: 'MTY5MjQzNTgzNA==', node: { id: 'VHJhbnNhY3Rpb246WyJ4WkNkby0tOEwxVUcwTnQ2bFU5UEtTZWZ2UE0wNUdGZzQwbWVkU0pXZkM4IiwiSWtGMVNGZG9VbGRoYTJsQ2RFVXpkQzFUVDNwSGRYVlhZMmRzVldSUmEycG9hbTFmWjB0aFpFNUZNekFpIl0=', }, @@ -847,7 +847,7 @@ export const blocksFromHeightFixture003 = { }, edges: [ { - cursor: '269960418', + cursor: 'MjY5OTYwNDE4', node: { chainId: 16, height: 4000000, @@ -903,7 +903,7 @@ export const blocksFromHeightFixture003 = { powHash: '000000000000000a5b19c7bfd43987d4a4e6e070cde4ec81fa6a5721b7d2b862', target: 'SLLAvWvicilGYFGp6xHrwW83w7HHHzeuGgAAAAAAAAA', transactions: { - totalCount: 0, + totalCount: 1, pageInfo: { endCursor: 'MTY5MjQzNTgyMQ==', hasNextPage: false, @@ -912,7 +912,7 @@ export const blocksFromHeightFixture003 = { }, edges: [ { - cursor: '1692435821', + cursor: 'MTY5MjQzNTgyMQ==', node: { id: 'VHJhbnNhY3Rpb246WyJYZjJZbHFqOGhMcmxiMUR4ckgtbTBzNmduTkNWUEx6LUdGQXJyQTlNS3NZIiwiSW1KWVVqbExhbEZHT0ZOTVdISjVkbEZCYjJKb1NHZEVaR280WVRVM2FGQlVPVzVDV1ZCeWNXRnRTalFpIl0=', }, @@ -939,7 +939,7 @@ export const blocksFromHeightFixture003 = { }, edges: [ { - cursor: '269957357', + cursor: 'MjY5OTU3MzU3', node: { chainId: 12, height: 4000000, @@ -995,7 +995,7 @@ export const blocksFromHeightFixture003 = { powHash: '00000000000000018b3c1176d93641674f8e56b23ab76a0844c72934a8e1ca22', target: 'x-wyTxlmuUFygEq5GfhltqFND8xmeNGyGgAAAAAAAAA', transactions: { - totalCount: 0, + totalCount: 1, pageInfo: { endCursor: 'MTY5MjQzNTgzOA==', hasNextPage: false, @@ -1004,7 +1004,7 @@ export const blocksFromHeightFixture003 = { }, edges: [ { - cursor: '1692435838', + cursor: 'MTY5MjQzNTgzOA==', node: { id: 'VHJhbnNhY3Rpb246WyJKVVFMYmhPS3pZLVpCNDFmTlByWWRSYk9rdVk1T2xZY3hWOGRPN1RoZ25rIiwiSWsxRldYSlRPRFk0VUhOa05XRkZObE56TFhkaWIxOU1RM1J6YW5sVmMwVnplV2RpZFV0d1UzaEZkekFpIl0=', }, @@ -1031,7 +1031,7 @@ export const blocksFromHeightFixture003 = { }, edges: [ { - cursor: '269929115', + cursor: 'MjY5OTI5MTE1', node: { chainId: 15, height: 4000000, @@ -1087,7 +1087,7 @@ export const blocksFromHeightFixture003 = { powHash: '000000000000000c7bb292ae7e51dcaa5c1a32348857ac986fce819de49b7ec9', target: 'nLtkDZF6jAs1eOhk-_KBhJH-KwC4QdXIGgAAAAAAAAA', transactions: { - totalCount: 0, + totalCount: 1, pageInfo: { endCursor: 'MTY5MjQzNTgxNA==', hasNextPage: false, @@ -1096,7 +1096,7 @@ export const blocksFromHeightFixture003 = { }, edges: [ { - cursor: '1692435814', + cursor: 'MTY5MjQzNTgxNA==', node: { id: 'VHJhbnNhY3Rpb246WyJXVW16TXk1ZTN2Q1E3bTIwNHFPMjl5WE9TZkFpN3V0Tjl5SUtkWlpOQi1nIiwiSW5oT1RsTjNhRkptVUZKa2JVeGFUbHB1WlhCWmJWVkRXbG96VVV0QmRYRkhaVlZ3Vm1ZeU5qaFVVa1VpIl0=', }, @@ -1123,7 +1123,7 @@ export const blocksFromHeightFixture003 = { }, edges: [ { - cursor: '269771549', + cursor: 'MjY5NzcxNTQ5', node: { chainId: 10, height: 4000000, @@ -1179,7 +1179,7 @@ export const blocksFromHeightFixture003 = { powHash: '00000000000000126c6d09c698ae730cb15c5513b0a148e115aa42ee378c9570', target: 'prZ09oaMxfZgJY79A22HNFW3OB3dygTnGgAAAAAAAAA', transactions: { - totalCount: 0, + totalCount: 1, pageInfo: { endCursor: 'MTY5MjQzNTgyNA==', hasNextPage: false, @@ -1188,7 +1188,7 @@ export const blocksFromHeightFixture003 = { }, edges: [ { - cursor: '1692435824', + cursor: 'MTY5MjQzNTgyNA==', node: { id: 'VHJhbnNhY3Rpb246WyJJeHdVdzdPUlpIODBtM08weWV2MF9vdjhXT0xrMlpWSmowR3pPdjlUMml3IiwiSW01cVEzWnRXSFZVVUZFNFRVOTNaRkZuVlhCRmVVTm1ZMU5VY2xVNVJHdHpObEp6T1UxaGJqbEdiMjhpIl0=', }, @@ -1215,7 +1215,7 @@ export const blocksFromHeightFixture003 = { }, edges: [ { - cursor: '269765422', + cursor: 'MjY5NzY1NDIy', node: { chainId: 14, height: 4000000, @@ -1271,7 +1271,7 @@ export const blocksFromHeightFixture003 = { powHash: '000000000000000dd85a21797f339bc0c71cda7acba012b4d89b5fc2f05c2aea', target: 'YFdI5bCPAhorQNQ9vq__p6ORVfxTUPu-GgAAAAAAAAA', transactions: { - totalCount: 0, + totalCount: 1, pageInfo: { endCursor: 'MTY5MjQzNTgzMw==', hasNextPage: false, @@ -1280,7 +1280,7 @@ export const blocksFromHeightFixture003 = { }, edges: [ { - cursor: '1692435833', + cursor: 'MTY5MjQzNTgzMw==', node: { id: 'VHJhbnNhY3Rpb246WyJ1TkdQUHlKMlhnMnRyMm5xdUM2VlJxVEhzVG54cElQMlBMcmd1NUY2ZzNzIiwiSWtjMk5EVnVNR05NWTNnMVIzcG5Yemd3YmpCSGRIQllkbTVZWkhscVpsVlZRek5xWmtzd1VYUk9ObWNpIl0=', }, @@ -1307,7 +1307,7 @@ export const blocksFromHeightFixture003 = { }, edges: [ { - cursor: '269765372', + cursor: 'MjY5NzY1Mzcy', node: { chainId: 18, height: 4000000, @@ -1363,7 +1363,7 @@ export const blocksFromHeightFixture003 = { powHash: '000000000000000764dcef52bb2f9d1dbb1d94ec2becc4a467b78957fb7f0d9c', target: '8yfUJGZVp0rCgwlstLooe5YrWeVcmxbFGgAAAAAAAAA', transactions: { - totalCount: 0, + totalCount: 1, pageInfo: { endCursor: 'MTY5MjQzNTgxNQ==', hasNextPage: false, @@ -1372,7 +1372,7 @@ export const blocksFromHeightFixture003 = { }, edges: [ { - cursor: '1692435815', + cursor: 'MTY5MjQzNTgxNQ==', node: { id: 'VHJhbnNhY3Rpb246WyJacmNHSGlRaFQ1Sk42MXJIdjVvRF9TNzBzNkpnd19neklldUoxLXpHTl8wIiwiSWt0U1UwNXJibkZ4ZDBaVGRYQkROSGczTTBnMWRUaElaM1ZoTFRORFRsWmpVWFIzV2pkQ1ZHUkZkM2NpIl0=', }, @@ -1399,7 +1399,7 @@ export const blocksFromHeightFixture003 = { }, edges: [ { - cursor: '269758574', + cursor: 'MjY5NzU4NTc0', node: { chainId: 17, height: 4000000, @@ -1455,7 +1455,7 @@ export const blocksFromHeightFixture003 = { powHash: '0000000000000015f39afaae87b9518abff57fe51d8493330f934a6a6308e9da', target: 'OEjAInTpmNTlsk7F_84iQ_IeHGAk6NivGgAAAAAAAAA', transactions: { - totalCount: 0, + totalCount: 1, pageInfo: { endCursor: 'MTY5MjQzNTc5OA==', hasNextPage: false, @@ -1464,7 +1464,7 @@ export const blocksFromHeightFixture003 = { }, edges: [ { - cursor: '1692435798', + cursor: 'MTY5MjQzNTc5OA==', node: { id: 'VHJhbnNhY3Rpb246WyJxM0lTeFdzMGl0WWZNXzEyVWRaZ0JvYVdYY1pkcDZyTlVWRUIyczNENE4wIiwiSW5CTlZHeFRabVp1Y1VwNE9IUTBVbFpyWmxWZmVUTjRZaTEwVEVoRVMxTTVUR3h2TFhkelYyTTBWa1VpIl0=', }, @@ -1491,7 +1491,7 @@ export const blocksFromHeightFixture003 = { }, edges: [ { - cursor: '269757453', + cursor: 'MjY5NzU3NDUz', node: { chainId: 13, height: 4000000, @@ -1547,7 +1547,7 @@ export const blocksFromHeightFixture003 = { powHash: '00000000000000184baf36e68cd7f603c76b41b6df5ca287d8daf4c125aa0943', target: 'MDzkIuJ33_UMlfmvF-lVsO6mCSWqnOm0GgAAAAAAAAA', transactions: { - totalCount: 0, + totalCount: 1, pageInfo: { endCursor: 'MTY5MjQzNTgzMw==', hasNextPage: false, @@ -1556,7 +1556,7 @@ export const blocksFromHeightFixture003 = { }, edges: [ { - cursor: '1692435833', + cursor: 'MTY5MjQzNTgzMw==', node: { id: 'VHJhbnNhY3Rpb246WyJaRzdZeE5OdHZwZmdMODd3a2xBSlJ3MUlSSkMyblJhc2JtNU12RGZHTzhRIiwiSWxGcVVYY3dSRjlGVTBKblZUWkhkVXgyUkZkdlZrNWFjazA1Y0hWbWEyVnpNSEl0V1UxTGVuRk1OV3NpIl0=', }, @@ -1583,7 +1583,7 @@ export const blocksFromHeightFixture003 = { }, edges: [ { - cursor: '325042639', + cursor: 'MzI1MDQyNjM5', node: { chainId: 8, height: 3999999, @@ -1639,7 +1639,7 @@ export const blocksFromHeightFixture003 = { powHash: '00000000000000126b663c2b0e87a8aef9de5933696d558e8e00205b7cf8c95b', target: 'z3mEIbGwhssxQx9y1cP_T4Vo3bG6kSWpGgAAAAAAAAA', transactions: { - totalCount: 0, + totalCount: 1, pageInfo: { endCursor: 'MTY5MjQzNTc3Mw==', hasNextPage: false, @@ -1648,7 +1648,7 @@ export const blocksFromHeightFixture003 = { }, edges: [ { - cursor: '1692435773', + cursor: 'MTY5MjQzNTc3Mw==', node: { id: 'VHJhbnNhY3Rpb246WyJ4NEZ0eWVLcWVBcjdBRlJmWlBUeHpWSFljU0pUMTBUcU5VQ0VZbTRkTFFBIiwiSWpaMFQzTkViblZtUWxWM01WTnJkMkpIVW5Kb05WQkZjVXBGV1VkaVdGRjFWWHBsTW5kRmVHbGpWVGdpIl0=', }, @@ -1675,7 +1675,7 @@ export const blocksFromHeightFixture003 = { }, edges: [ { - cursor: '324664833', + cursor: 'MzI0NjY0ODMz', node: { chainId: 9, height: 3999999, @@ -1731,7 +1731,7 @@ export const blocksFromHeightFixture003 = { powHash: '00000000000000068d54353f90e296677638351d5ea666adc7ff1b9307327c1c', target: 'X3DH4sEtvnYkwCySMy6-zliA5Bl6XJWnGgAAAAAAAAA', transactions: { - totalCount: 0, + totalCount: 1, pageInfo: { endCursor: 'MTY5MjQzNTc3Mw==', hasNextPage: false, @@ -1740,7 +1740,7 @@ export const blocksFromHeightFixture003 = { }, edges: [ { - cursor: '1692435773', + cursor: 'MTY5MjQzNTc3Mw==', node: { id: 'VHJhbnNhY3Rpb246WyJRWjk1czJJNURZT2J2djBoamRwVnNCVkItRFJseTN4U1VYOV9jSF9ha1hzIiwiSWxkWVUwMUtkWHBYTkROdlkwUllTeTFUVTFBM1l6QkpiMWxuVjIxbVYyaFlUSFp5VEV4YU4xQlNhbk1pIl0=', }, @@ -2146,7 +2146,7 @@ export const blocksFromHeightFixture003 = { powHash: '000000000000001ad9d650fd027b7ff9d5cb941575a5a6ceaf169b1fb9b11d1e', target: 'NbiVhElEaG_kkDseRpo1dutRiExrYqDgGgAAAAAAAAA', transactions: { - totalCount: 88, + totalCount: 89, pageInfo: { endCursor: 'MTY5MjQzNTczMw==', hasNextPage: true, @@ -2211,13 +2211,13 @@ export const blocksFromHeightFixture003 = { { cursor: 'MTY5MjQzNTczOQ==', node: { - id: 'VHJhbnNhY3Rpb246WyJacmtzZzJrMmhWNkxWVXJfOXN6OXJOd1ExakFhLW5vRk9lUkxSdjdEcjh3IiwiSDRtZnFNUTRqWFU0QTM0b2NlWFBESkFvYlBKSy0yNlJ1RE9mWTR5YjA4MCJd', + id: 'VHJhbnNhY3Rpb246WyJacmtzZzJrMmhWNkxWVXJfOXN6OXJOd1ExakFhLW5vRk9lUkxSdjdEcjh3IiwiQ0NhRUZPX1VkMl9uemJQcF9tUVZKV0J3Slc2Y1lBUnREMFdDYWZ4NHBJZyJd', }, }, { cursor: 'MTY5MjQzNTczOQ==', node: { - id: 'VHJhbnNhY3Rpb246WyJacmtzZzJrMmhWNkxWVXJfOXN6OXJOd1ExakFhLW5vRk9lUkxSdjdEcjh3IiwiQ0NhRUZPX1VkMl9uemJQcF9tUVZKV0J3Slc2Y1lBUnREMFdDYWZ4NHBJZyJd', + id: 'VHJhbnNhY3Rpb246WyJacmtzZzJrMmhWNkxWVXJfOXN6OXJOd1ExakFhLW5vRk9lUkxSdjdEcjh3IiwiSDRtZnFNUTRqWFU0QTM0b2NlWFBESkFvYlBKSy0yNlJ1RE9mWTR5YjA4MCJd', }, }, { @@ -2283,3 +2283,13 @@ export const blocksFromHeightFixture003 = { }, }, }; + +// - "id": "VHJhbnNhY3Rpb246WyJacmtzZzJrMmhWNkxWVXJfOXN6OXJOd1ExakFhLW5vRk9lUkxSdjdEcjh3IiwiQ0NhRUZPX1VkMl9uemJQcF9tUVZKV0J3Slc2Y1lBUnREMFdDYWZ4NHBJZyJd", +// + "id": "VHJhbnNhY3Rpb246WyJacmtzZzJrMmhWNkxWVXJfOXN6OXJOd1ExakFhLW5vRk9lUkxSdjdEcjh3IiwiSDRtZnFNUTRqWFU0QTM0b2NlWFBESkFvYlBKSy0yNlJ1RE9mWTR5YjA4MCJd", +// }, +// }, +// Object { +// "cursor": "MTY5MjQzNTczOQ==", +// "node": Object { +// - "id": "VHJhbnNhY3Rpb246WyJacmtzZzJrMmhWNkxWVXJfOXN6OXJOd1ExakFhLW5vRk9lUkxSdjdEcjh3IiwiSDRtZnFNUTRqWFU0QTM0b2NlWFBESkFvYlBKSy0yNlJ1RE9mWTR5YjA4MCJd", +// + "id": "VHJhbnNhY3Rpb246WyJacmtzZzJrMmhWNkxWVXJfOXN6OXJOd1ExakFhLW5vRk9lUkxSdjdEcjh3IiwiQ0NhRUZPX1VkMl9uemJQcF9tUVZKV0J3Slc2Y1lBUnREMFdDYWZ4NHBJZyJd", diff --git a/indexer/tests/integration/fixtures/blocks-from-height/blocks-from-height.fixture.004.ts b/indexer/tests/integration/fixtures/blocks-from-height/blocks-from-height.fixture.004.ts index fa2141cd..1f7b7a02 100644 --- a/indexer/tests/integration/fixtures/blocks-from-height/blocks-from-height.fixture.004.ts +++ b/indexer/tests/integration/fixtures/blocks-from-height/blocks-from-height.fixture.004.ts @@ -19,7 +19,7 @@ export const blocksFromHeightFixture004 = { }, edges: [ { - cursor: '287982027', + cursor: 'Mjg3OTgyMDI3', node: { chainId: 13, height: 2000000, @@ -75,7 +75,7 @@ export const blocksFromHeightFixture004 = { powHash: '00000000000000b0f00fe0c6b36d176a8e05b9369fb43724dfc0d978f18f0f8b', target: 'XEXiouN3x0qKuugsUdCnd8DlBUEVn-l2MAIAAAAAAAA', transactions: { - totalCount: 0, + totalCount: 1, pageInfo: { endCursor: 'MTYzMjQwNzI3MQ==', hasNextPage: false, @@ -84,7 +84,7 @@ export const blocksFromHeightFixture004 = { }, edges: [ { - cursor: '1632407271', + cursor: 'MTYzMjQwNzI3MQ==', node: { id: 'VHJhbnNhY3Rpb246WyIwS1FsNHJ1UkdORHBXRlJLNEU5T0NVODJDbkxhNlpNcWg4dFU1Sl85ZkhJIiwiSWpCcE5rSlpWMmRLZDBoVlFrRmxNRU5xUjA4NWNqYzBXWFpZWWpGdGFrNHhNRGN6ZDAwemVpMWxlV01pIl0=', }, @@ -111,7 +111,7 @@ export const blocksFromHeightFixture004 = { }, edges: [ { - cursor: '287955174', + cursor: 'Mjg3OTU1MTc0', node: { chainId: 10, height: 2000000, @@ -167,7 +167,7 @@ export const blocksFromHeightFixture004 = { powHash: '000000000000015e4054f3f6b0e85ad88d67c533ef65dd464815dcf1b2ae2f31', target: 'DRFUgcLW7RZkaZFEKzCWwp0xt0Tp0RRAMQIAAAAAAAA', transactions: { - totalCount: 0, + totalCount: 1, pageInfo: { endCursor: 'MTYzMjQwNzI3MQ==', hasNextPage: false, @@ -176,7 +176,7 @@ export const blocksFromHeightFixture004 = { }, edges: [ { - cursor: '1632407271', + cursor: 'MTYzMjQwNzI3MQ==', node: { id: 'VHJhbnNhY3Rpb246WyJhZ0kzZWV1bm04UEdRQ2FNUkRfdF8taHZLUkJLZFZ3alpSb25MUDJaUWtvIiwiSWxCV1QxWXpaRkJoTW1ab2NGOVdTMnN5VEhSMVNHSnFUMUl3WVVwbWFrNTFVSGd3Y0RNMGVIUkJSR2NpIl0=', }, @@ -203,7 +203,7 @@ export const blocksFromHeightFixture004 = { }, edges: [ { - cursor: '287940567', + cursor: 'Mjg3OTQwNTY3', node: { chainId: 18, height: 2000000, @@ -259,7 +259,7 @@ export const blocksFromHeightFixture004 = { powHash: '000000000000021bc5a85085116f708a25bfcb684a1e131a77b3fe49be4ebd02', target: '7KIfZ9mjbDsKlFuRhYXgiv1vYl08TpwVLwIAAAAAAAA', transactions: { - totalCount: 0, + totalCount: 1, pageInfo: { endCursor: 'MTYzMjQwNzI3NA==', hasNextPage: false, @@ -268,7 +268,7 @@ export const blocksFromHeightFixture004 = { }, edges: [ { - cursor: '1632407274', + cursor: 'MTYzMjQwNzI3NA==', node: { id: 'VHJhbnNhY3Rpb246WyJFb20xazNicFBZTXdHWm5vdzNPQTJ3aS1iR294R1JpZU4xVkRIZkM4bVBrIiwiSW5NNE1qbElaMmR1TURCaE9IWklZMWh2TlZsUWNYQXdWRkpYTUdSR2RGVkVja1ozTm01aU5HNWpWbk1pIl0=', }, @@ -295,7 +295,7 @@ export const blocksFromHeightFixture004 = { }, edges: [ { - cursor: '287935316', + cursor: 'Mjg3OTM1MzE2', node: { chainId: 17, height: 2000000, @@ -351,7 +351,7 @@ export const blocksFromHeightFixture004 = { powHash: '00000000000000ce0d997df725f53960e7c55e960c905b1cfde62a8033fd9cf4', target: 'io7OZGbvQ8RkYgpnBkqCQXA8wTh3beX5LgIAAAAAAAA', transactions: { - totalCount: 0, + totalCount: 1, pageInfo: { endCursor: 'MTYzMjQwNzI3MQ==', hasNextPage: false, @@ -360,7 +360,7 @@ export const blocksFromHeightFixture004 = { }, edges: [ { - cursor: '1632407271', + cursor: 'MTYzMjQwNzI3MQ==', node: { id: 'VHJhbnNhY3Rpb246WyJFX214UXVELTFzV2JqSjU3YkRVVXM0eldrUHRWbURmNkpOS2cwcjBlWktVIiwiSW5ZelUxOVJPVzVuTUhSSE1XVnRPV0phZDNNMGJGVlphMVEwYm1WZllsWnBNbmxHVVZkeVRVeHBNRkVpIl0=', }, @@ -387,7 +387,7 @@ export const blocksFromHeightFixture004 = { }, edges: [ { - cursor: '287934800', + cursor: 'Mjg3OTM0ODAw', node: { chainId: 14, height: 2000000, @@ -443,7 +443,7 @@ export const blocksFromHeightFixture004 = { powHash: '00000000000001e76acd6950d605d747520879d3157d37d3fa53274b52df8fe1', target: 'z5H_3WeE6384HW_VJGMGU2ESGEwdp8IcMQIAAAAAAAA', transactions: { - totalCount: 0, + totalCount: 1, pageInfo: { endCursor: 'MTYzMjQwNzI3MQ==', hasNextPage: false, @@ -452,7 +452,7 @@ export const blocksFromHeightFixture004 = { }, edges: [ { - cursor: '1632407271', + cursor: 'MTYzMjQwNzI3MQ==', node: { id: 'VHJhbnNhY3Rpb246WyItX1l0ZmpDRHB4cWV0RHNPc2xTbjBrSWNFWnA1NDhZYW1sWHQ4aGs4RlNrIiwiSWpoRVNWOW1TM1JxTlhjMlgzcENTMnhQUlhZd1FXVkpiMWx5VjNkRVNYQkNiMjlNZUhFNVRESkRWMFVpIl0=', }, diff --git a/indexer/tests/integration/fixtures/blocks-from-height/blocks-from-height.fixture.005.ts b/indexer/tests/integration/fixtures/blocks-from-height/blocks-from-height.fixture.005.ts index 12e235fe..e9ccf28c 100644 --- a/indexer/tests/integration/fixtures/blocks-from-height/blocks-from-height.fixture.005.ts +++ b/indexer/tests/integration/fixtures/blocks-from-height/blocks-from-height.fixture.005.ts @@ -19,7 +19,7 @@ export const blocksFromHeightFixture005 = { }, edges: [ { - cursor: '325042639', + cursor: 'MzI1MDQyNjM5', node: { chainId: 8, height: 3999999, @@ -75,7 +75,7 @@ export const blocksFromHeightFixture005 = { powHash: '00000000000000126b663c2b0e87a8aef9de5933696d558e8e00205b7cf8c95b', target: 'z3mEIbGwhssxQx9y1cP_T4Vo3bG6kSWpGgAAAAAAAAA', transactions: { - totalCount: 0, + totalCount: 1, pageInfo: { endCursor: 'MTY5MjQzNTc3Mw==', hasNextPage: false, @@ -84,7 +84,7 @@ export const blocksFromHeightFixture005 = { }, edges: [ { - cursor: '1692435773', + cursor: 'MTY5MjQzNTc3Mw==', node: { id: 'VHJhbnNhY3Rpb246WyJ4NEZ0eWVLcWVBcjdBRlJmWlBUeHpWSFljU0pUMTBUcU5VQ0VZbTRkTFFBIiwiSWpaMFQzTkViblZtUWxWM01WTnJkMkpIVW5Kb05WQkZjVXBGV1VkaVdGRjFWWHBsTW5kRmVHbGpWVGdpIl0=', }, @@ -111,7 +111,7 @@ export const blocksFromHeightFixture005 = { }, edges: [ { - cursor: '325042640', + cursor: 'MzI1MDQyNjQw', node: { chainId: 8, height: 3999998, @@ -167,7 +167,7 @@ export const blocksFromHeightFixture005 = { powHash: '00000000000000116e629e5555871e2bd38cb5cdd268650976c8e25b96fe1590', target: 'z3mEIbGwhssxQx9y1cP_T4Vo3bG6kSWpGgAAAAAAAAA', transactions: { - totalCount: 0, + totalCount: 1, pageInfo: { endCursor: 'MTY5MjQzNTc1Mg==', hasNextPage: false, @@ -176,7 +176,7 @@ export const blocksFromHeightFixture005 = { }, edges: [ { - cursor: '1692435752', + cursor: 'MTY5MjQzNTc1Mg==', node: { id: 'VHJhbnNhY3Rpb246WyI2dE9zRG51ZkJVdzFTa3diR1JyaDVQRXFKRVlHYlhRdVV6ZTJ3RXhpY1U4IiwiSWs1R2FYRkJURUpGTm5oS2NIRkdZMTlQWXpkTmIybDZRWEpZTWpSbVkzYzNaVGhSZUhCTVJWOUZXbFVpIl0=', }, @@ -203,7 +203,7 @@ export const blocksFromHeightFixture005 = { }, edges: [ { - cursor: '325042641', + cursor: 'MzI1MDQyNjQx', node: { chainId: 8, height: 3999997, @@ -259,7 +259,7 @@ export const blocksFromHeightFixture005 = { powHash: '0000000000000013690e4885f74f68c30dec22ff497d2cfc788eeb79c620fccb', target: 'z3mEIbGwhssxQx9y1cP_T4Vo3bG6kSWpGgAAAAAAAAA', transactions: { - totalCount: 0, + totalCount: 1, pageInfo: { endCursor: 'MTY5MjQzNTcxNg==', hasNextPage: false, @@ -268,7 +268,7 @@ export const blocksFromHeightFixture005 = { }, edges: [ { - cursor: '1692435716', + cursor: 'MTY5MjQzNTcxNg==', node: { id: 'VHJhbnNhY3Rpb246WyJORmlxQUxCRTZ4SnBxRmNfT2M3TW9pekFyWDI0ZmN3N2U4UXhwTEVfRVpVIiwiSW5GM00ybFRXWFprVG1GM1RFcHhVbEZ5U1djd1MxUTJZVnAxVEhkcVZXOTROSGhqWlZkSVVtWXRMVzhpIl0=', }, @@ -436,7 +436,7 @@ export const blocksFromHeightFixture005 = { powHash: '0000000000000001711939fd47c0ed0f80099c79ca0032adeadd4ff9a861a793', target: 'z3mEIbGwhssxQx9y1cP_T4Vo3bG6kSWpGgAAAAAAAAA', transactions: { - totalCount: 2, + totalCount: 3, pageInfo: { endCursor: 'MTY5MjQzNTUzOA==', hasNextPage: false, @@ -484,7 +484,7 @@ export const blocksFromHeightFixture005 = { }, edges: [ { - cursor: '325042643', + cursor: 'MzI1MDQyNjQz', node: { chainId: 8, height: 3999995, @@ -540,7 +540,7 @@ export const blocksFromHeightFixture005 = { powHash: '00000000000000097e590ae3087627ab3b11e0234ac39081fce3ed914d4bc830', target: 'z3mEIbGwhssxQx9y1cP_T4Vo3bG6kSWpGgAAAAAAAAA', transactions: { - totalCount: 0, + totalCount: 1, pageInfo: { endCursor: 'MTY5MjQzNTY3Mw==', hasNextPage: false, @@ -549,7 +549,7 @@ export const blocksFromHeightFixture005 = { }, edges: [ { - cursor: '1692435673', + cursor: 'MTY5MjQzNTY3Mw==', node: { id: 'VHJhbnNhY3Rpb246WyIyX1hhTVRRdHpMU3E5SVZhYlpWem9DQUZwTWpmalByNUZMZnotOGw4UTVzIiwiSW1aT2VGSTJORTU2YjBsc1RVMWlZbWRxVEVObE5tNTVkVFp2UTNoUFFrWnhOM2RKWW1OVE9VTldOVWtpIl0=', }, @@ -576,7 +576,7 @@ export const blocksFromHeightFixture005 = { }, edges: [ { - cursor: '325042644', + cursor: 'MzI1MDQyNjQ0', node: { chainId: 8, height: 3999994, @@ -632,7 +632,7 @@ export const blocksFromHeightFixture005 = { powHash: '000000000000001a01e435b0b2742b3d51c348c095c90f9ebedb957048b84bb0', target: 'z3mEIbGwhssxQx9y1cP_T4Vo3bG6kSWpGgAAAAAAAAA', transactions: { - totalCount: 0, + totalCount: 1, pageInfo: { endCursor: 'MTY5MjQzNTY0MA==', hasNextPage: false, @@ -641,7 +641,7 @@ export const blocksFromHeightFixture005 = { }, edges: [ { - cursor: '1692435640', + cursor: 'MTY5MjQzNTY0MA==', node: { id: 'VHJhbnNhY3Rpb246WyJmTnhSNjROem9JbE1NYmJnakxDZTZueXU2b0N4T0JGcTd3SWJjUzlDVjVJIiwiSW10MWQxUmxWblJpWW1KT2RERlhSWGxMVUhoa2FuRlFhWGszUWtoTk16SlBaVEYyZGt4bE4zSmllakFpIl0=', }, @@ -668,7 +668,7 @@ export const blocksFromHeightFixture005 = { }, edges: [ { - cursor: '325042645', + cursor: 'MzI1MDQyNjQ1', node: { chainId: 8, height: 3999993, @@ -724,7 +724,7 @@ export const blocksFromHeightFixture005 = { powHash: '00000000000000086a0887f1d829209a3a815ffdf8bd6c3c83f41e64bc4daa36', target: 'z3mEIbGwhssxQx9y1cP_T4Vo3bG6kSWpGgAAAAAAAAA', transactions: { - totalCount: 0, + totalCount: 1, pageInfo: { endCursor: 'MTY5MjQzNTYwMQ==', hasNextPage: false, @@ -733,7 +733,7 @@ export const blocksFromHeightFixture005 = { }, edges: [ { - cursor: '1692435601', + cursor: 'MTY5MjQzNTYwMQ==', node: { id: 'VHJhbnNhY3Rpb246WyJrdXdUZVZ0YmJiTnQxV0V5S1B4ZGpxUGl5N0JITTMyT2UxdnZMZTdyYnowIiwiSW5OeVVXcFVORFF3YjI5RmVsTkVOMWxGV2tka1YxZFNVMmRzVW5ZeVRsOVpSalE1UlZwMVJrOHpNR01pIl0=', }, @@ -760,7 +760,7 @@ export const blocksFromHeightFixture005 = { }, edges: [ { - cursor: '325042646', + cursor: 'MzI1MDQyNjQ2', node: { chainId: 8, height: 3999992, @@ -816,7 +816,7 @@ export const blocksFromHeightFixture005 = { powHash: '00000000000000014344a0845174d78e96ac5cda0181490e08365eaeb96662a5', target: 'z3mEIbGwhssxQx9y1cP_T4Vo3bG6kSWpGgAAAAAAAAA', transactions: { - totalCount: 0, + totalCount: 1, pageInfo: { endCursor: 'MTY5MjQzNTU1OA==', hasNextPage: false, @@ -825,7 +825,7 @@ export const blocksFromHeightFixture005 = { }, edges: [ { - cursor: '1692435558', + cursor: 'MTY5MjQzNTU1OA==', node: { id: 'VHJhbnNhY3Rpb246WyJzclFqVDQ0MG9vRXpTRDdZRVpHZFdXUlNnbFJ2Mk5fWUY0OUVadUZPMzBjIiwiSWxrek56SkVjWFYyYm5oSmRuUlVNazF6T0VkSGVuVlRNRTkwZDNOVlMzVkdPV0prVjJ0R2NVTm1Wa0VpIl0=', }, @@ -852,7 +852,7 @@ export const blocksFromHeightFixture005 = { }, edges: [ { - cursor: '325042647', + cursor: 'MzI1MDQyNjQ3', node: { chainId: 8, height: 3999991, @@ -908,7 +908,7 @@ export const blocksFromHeightFixture005 = { powHash: '00000000000000104b8f2d1e48c51e9b01373b5469103606e13d9482aee21d57', target: 'z3mEIbGwhssxQx9y1cP_T4Vo3bG6kSWpGgAAAAAAAAA', transactions: { - totalCount: 0, + totalCount: 1, pageInfo: { endCursor: 'MTY5MjQzNTU1NA==', hasNextPage: false, @@ -917,7 +917,7 @@ export const blocksFromHeightFixture005 = { }, edges: [ { - cursor: '1692435554', + cursor: 'MTY5MjQzNTU1NA==', node: { id: 'VHJhbnNhY3Rpb246WyJZMzcyRHF1dm54SXZ0VDJNczhHR3p1UzBPdHdzVUt1RjliZFdrRnFDZlZBIiwiSW1kdloxazJhR2RvVG5NdFRGQTNNalEwUkVJME1GVlVPRFo1TVU5dlp6TnFTMFo1TldZelNDMHlTVEFpIl0=', }, @@ -944,7 +944,7 @@ export const blocksFromHeightFixture005 = { }, edges: [ { - cursor: '325042648', + cursor: 'MzI1MDQyNjQ4', node: { chainId: 8, height: 3999990, @@ -1000,7 +1000,7 @@ export const blocksFromHeightFixture005 = { powHash: '000000000000000ba46df3442f18229c9d90ecc190701c8dc6f87630ec1b574f', target: 'z3mEIbGwhssxQx9y1cP_T4Vo3bG6kSWpGgAAAAAAAAA', transactions: { - totalCount: 0, + totalCount: 1, pageInfo: { endCursor: 'MTY5MjQzNTUwNQ==', hasNextPage: false, @@ -1009,7 +1009,7 @@ export const blocksFromHeightFixture005 = { }, edges: [ { - cursor: '1692435505', + cursor: 'MTY5MjQzNTUwNQ==', node: { id: 'VHJhbnNhY3Rpb246WyJnb2dZNmhnaE5zLUxQNzI0NERCNDBVVDg2eTFPb2czaktGeTVmM0gtMkkwIiwiSWtoWFIzZHZhRlpaVmpGWFl6bGxTVzF2U2t0YVUwbHRZa2RFVjI5RlNVOU1RMjVGVGs1WVltUmxRbmNpIl0=', }, @@ -1036,7 +1036,7 @@ export const blocksFromHeightFixture005 = { }, edges: [ { - cursor: '325042649', + cursor: 'MzI1MDQyNjQ5', node: { chainId: 8, height: 3999989, @@ -1092,7 +1092,7 @@ export const blocksFromHeightFixture005 = { powHash: '000000000000000129d44cee614a89e5af7b92795e41a6bbe52a577a626e6767', target: 'z3mEIbGwhssxQx9y1cP_T4Vo3bG6kSWpGgAAAAAAAAA', transactions: { - totalCount: 0, + totalCount: 1, pageInfo: { endCursor: 'MTY5MjQzNTQ4MA==', hasNextPage: false, @@ -1101,7 +1101,7 @@ export const blocksFromHeightFixture005 = { }, edges: [ { - cursor: '1692435480', + cursor: 'MTY5MjQzNTQ4MA==', node: { id: 'VHJhbnNhY3Rpb246WyJIV0d3b2hWWVYxV2M5ZUltb0pLWlNJbWJHRFdvRUlPTENuRU5OWGJkZUJ3IiwiSW1SMmRuRnBRMDFRY1Y5aWNFbHliMEU1Y0Y5Q1ZGcEJNRWRJTnpsNGNVVldkR1ZMVWxablIwSTVlbWNpIl0=', }, @@ -1128,7 +1128,7 @@ export const blocksFromHeightFixture005 = { }, edges: [ { - cursor: '325042650', + cursor: 'MzI1MDQyNjUw', node: { chainId: 8, height: 3999988, @@ -1184,7 +1184,7 @@ export const blocksFromHeightFixture005 = { powHash: '0000000000000004e4d2154d789c82b5da9d3d5cf1f8f2fc4f0096edb56b116d', target: 'z3mEIbGwhssxQx9y1cP_T4Vo3bG6kSWpGgAAAAAAAAA', transactions: { - totalCount: 0, + totalCount: 1, pageInfo: { endCursor: 'MTY5MjQzNTQ3Nw==', hasNextPage: false, @@ -1193,7 +1193,7 @@ export const blocksFromHeightFixture005 = { }, edges: [ { - cursor: '1692435477', + cursor: 'MTY5MjQzNTQ3Nw==', node: { id: 'VHJhbnNhY3Rpb246WyJkdnZxaUNNUHFfYnBJcm9BOXBfQlRaQTBHSDc5eHFFVnRlS1JWZ0dCOXpnIiwiSWsxNlJTMUhSMlJQYVZKQmQwTTNZbEI1VmtKeFFrRnRjMDU2ZFdjdFVGbEtWV1kyYjNKT1IwRmxhakFpIl0=', }, @@ -1412,7 +1412,7 @@ export const blocksFromHeightFixture005 = { powHash: '0000000000000007b047651e18f26900a954f4ec811b25dcc8ef7e33c7ec9131', target: 'z3mEIbGwhssxQx9y1cP_T4Vo3bG6kSWpGgAAAAAAAAA', transactions: { - totalCount: 3, + totalCount: 4, pageInfo: { endCursor: 'MTY5MjQzNTE2Nw==', hasNextPage: false, @@ -1466,7 +1466,7 @@ export const blocksFromHeightFixture005 = { }, edges: [ { - cursor: '325042652', + cursor: 'MzI1MDQyNjUy', node: { chainId: 8, height: 3999986, @@ -1522,7 +1522,7 @@ export const blocksFromHeightFixture005 = { powHash: '0000000000000016ec4551ebb42b70e2a474a5a35c6ff1b9df585e465c8a1f9f', target: 'z3mEIbGwhssxQx9y1cP_T4Vo3bG6kSWpGgAAAAAAAAA', transactions: { - totalCount: 0, + totalCount: 1, pageInfo: { endCursor: 'MTY5MjQzNTQxNw==', hasNextPage: false, @@ -1531,7 +1531,7 @@ export const blocksFromHeightFixture005 = { }, edges: [ { - cursor: '1692435417', + cursor: 'MTY5MjQzNTQxNw==', node: { id: 'VHJhbnNhY3Rpb246WyIzZWZ6ZWRIeTVsVW1LcUNDLUc5VU1KemE2c2RvN1c5aVN5V1FtZUNtdlp3IiwiSWpWbWVVUjFkR2R5ZFhwak1saGFXRlowWm5KYVVFZzRaSGhRU1c0MU1WaEtaMFZPU2s5RGNHaDZSVEFpIl0=', }, @@ -1699,7 +1699,7 @@ export const blocksFromHeightFixture005 = { powHash: '00000000000000139048971bebd8be7e86d6596addc6d7bfdab1fbd9a6831f8d', target: 'z3mEIbGwhssxQx9y1cP_T4Vo3bG6kSWpGgAAAAAAAAA', transactions: { - totalCount: 2, + totalCount: 3, pageInfo: { endCursor: 'MTY5MjQzNTIyMQ==', hasNextPage: false, @@ -1747,7 +1747,7 @@ export const blocksFromHeightFixture005 = { }, edges: [ { - cursor: '325042654', + cursor: 'MzI1MDQyNjU0', node: { chainId: 8, height: 3999984, @@ -1803,7 +1803,7 @@ export const blocksFromHeightFixture005 = { powHash: '00000000000000149c2088ec56d53a18540e085b394cadb015560b6774453d76', target: 'z3mEIbGwhssxQx9y1cP_T4Vo3bG6kSWpGgAAAAAAAAA', transactions: { - totalCount: 0, + totalCount: 1, pageInfo: { endCursor: 'MTY5MjQzNTM0MA==', hasNextPage: false, @@ -1812,7 +1812,7 @@ export const blocksFromHeightFixture005 = { }, edges: [ { - cursor: '1692435340', + cursor: 'MTY5MjQzNTM0MA==', node: { id: 'VHJhbnNhY3Rpb246WyIweHA5WUF4QWk0ZFBHZTZSRS0tWmc0cXN0RU1DODBpbFMxM21EWnBlYS04IiwiSWpKVmEyUnBXSE5WVlY5Vk9ESktZbUY1Um05U1pGOHpObGgzTlVab2NVdEZUV2N0ZFdWaVgxVmhYMGtpIl0=', }, @@ -1839,7 +1839,7 @@ export const blocksFromHeightFixture005 = { }, edges: [ { - cursor: '325042655', + cursor: 'MzI1MDQyNjU1', node: { chainId: 8, height: 3999983, @@ -1895,7 +1895,7 @@ export const blocksFromHeightFixture005 = { powHash: '0000000000000006ef31ece7085733d7d7933ac020c5a0112378f4f9917dd3fc', target: 'z3mEIbGwhssxQx9y1cP_T4Vo3bG6kSWpGgAAAAAAAAA', transactions: { - totalCount: 0, + totalCount: 1, pageInfo: { endCursor: 'MTY5MjQzNTMxOQ==', hasNextPage: false, @@ -1904,7 +1904,7 @@ export const blocksFromHeightFixture005 = { }, edges: [ { - cursor: '1692435319', + cursor: 'MTY5MjQzNTMxOQ==', node: { id: 'VHJhbnNhY3Rpb246WyIyVWtkaVhzVVVfVTgySmJheUZvUmRfMzZYdzVGaHFLRU1nLXVlYl9VYV9JIiwiSWpoTmJHdGpPR3RQY2xaWlYyZFNOblF4VFVOSFdGSlhjMlU0TW1aNFdUWnRVR3RmZFZweVZuZENWMGtpIl0=', }, @@ -1931,7 +1931,7 @@ export const blocksFromHeightFixture005 = { }, edges: [ { - cursor: '325042656', + cursor: 'MzI1MDQyNjU2', node: { chainId: 8, height: 3999982, @@ -1987,7 +1987,7 @@ export const blocksFromHeightFixture005 = { powHash: '000000000000000a04d5d4a71dee3ed3114a56b726d5decef9acc044d847423f', target: 'z3mEIbGwhssxQx9y1cP_T4Vo3bG6kSWpGgAAAAAAAAA', transactions: { - totalCount: 0, + totalCount: 1, pageInfo: { endCursor: 'MTY5MjQzNTI3NA==', hasNextPage: false, @@ -1996,7 +1996,7 @@ export const blocksFromHeightFixture005 = { }, edges: [ { - cursor: '1692435274', + cursor: 'MTY5MjQzNTI3NA==', node: { id: 'VHJhbnNhY3Rpb246WyI4TWxrYzhrT3JWWVdnUjZ0MU1DR1hSV3NlODJmeFk2bVBrX3VaclZ3QldJIiwiSW1wTllVOVlSazlYUXpGc1JFbG5hRGxwZFRWS1JrZEViVEpyWldSWlIzQkRNVWhUZHpCbU1WWlRkR2NpIl0=', }, @@ -2023,7 +2023,7 @@ export const blocksFromHeightFixture005 = { }, edges: [ { - cursor: '325042657', + cursor: 'MzI1MDQyNjU3', node: { chainId: 8, height: 3999981, @@ -2079,7 +2079,7 @@ export const blocksFromHeightFixture005 = { powHash: '0000000000000002d5036e1bb37170570f50243a08b0a12980bb2c2bac0b5dc6', target: 'z3mEIbGwhssxQx9y1cP_T4Vo3bG6kSWpGgAAAAAAAAA', transactions: { - totalCount: 0, + totalCount: 1, pageInfo: { endCursor: 'MTY5MjQzNTI1Mg==', hasNextPage: false, @@ -2088,7 +2088,7 @@ export const blocksFromHeightFixture005 = { }, edges: [ { - cursor: '1692435252', + cursor: 'MTY5MjQzNTI1Mg==', node: { id: 'VHJhbnNhY3Rpb246WyJqTWFPWEZPV0MxbERJZ2g5aXU1SkZHRG0ya2VkWUdwQzFIU3cwZjFWU3RnIiwiSWxOd1JqQk9ha0ZwTm1KNVQzRm9PVWxIZVVFd2RqZG9lbkppWmpCMlVFTnZjVGRrVDFWck5XVnlXRWtpIl0=', }, @@ -2115,7 +2115,7 @@ export const blocksFromHeightFixture005 = { }, edges: [ { - cursor: '325042658', + cursor: 'MzI1MDQyNjU4', node: { chainId: 8, height: 3999980, @@ -2171,7 +2171,7 @@ export const blocksFromHeightFixture005 = { powHash: '00000000000000077545ca355759042729c38fdcaf93901af368de26a4834b89', target: 'z3mEIbGwhssxQx9y1cP_T4Vo3bG6kSWpGgAAAAAAAAA', transactions: { - totalCount: 0, + totalCount: 1, pageInfo: { endCursor: 'MTY5MjQzNTIyOQ==', hasNextPage: false, @@ -2180,7 +2180,7 @@ export const blocksFromHeightFixture005 = { }, edges: [ { - cursor: '1692435229', + cursor: 'MTY5MjQzNTIyOQ==', node: { id: 'VHJhbnNhY3Rpb246WyJTcEYwTmpBaTZieU9xaDlJR3lBMHY3aHpyYmYwdlBDb3E3ZE9VazVlclhJIiwiSWpsWWFVRXliM2wxU25GbFIyTlFiMk5vTlhFeVgxSXlNRVJPZEV0V2JXRjJjblJ3WjNOVVRHbDRORGdpIl0=', }, diff --git a/indexer/tests/integration/fixtures/transactions/transactions.fixture.004.ts b/indexer/tests/integration/fixtures/transactions/transactions.fixture.004.ts index 57353def..cbf672a0 100644 --- a/indexer/tests/integration/fixtures/transactions/transactions.fixture.004.ts +++ b/indexer/tests/integration/fixtures/transactions/transactions.fixture.004.ts @@ -9,7 +9,7 @@ export const transactionsFixture004 = { }, edges: [ { - cursor: '1733655414', + cursor: 'MTczMzY1NTQxNA==', node: { id: 'VHJhbnNhY3Rpb246WyJPVDdjN1g0TXFsMjRkc2xtNEh2c2M1dHlLcmpqeFBESW15b3BxbFJKS2lRIiwicUdrZllsQVpmbTBqam1SQkExc3BCY1BRcllabFlXQ2lrTjJKUWhVRk1JUSJd', hash: 'qGkfYlAZfm0jjmRBA1spBcPQrYZlYWCikN2JQhUFMIQ', diff --git a/indexer/tests/integration/fixtures/transactions/transactions.fixture.007.ts b/indexer/tests/integration/fixtures/transactions/transactions.fixture.007.ts index 7eee52c6..1c3f4c2a 100644 --- a/indexer/tests/integration/fixtures/transactions/transactions.fixture.007.ts +++ b/indexer/tests/integration/fixtures/transactions/transactions.fixture.007.ts @@ -11,7 +11,7 @@ export const transactionsFixture007 = { { cursor: 'MTc0NDAyMzA4Ng==', node: { - id: 'VHJhbnNhY3Rpb246WyJqYnVJc0RiN0tpYlZRZzFGLVVVVkQxYUkxdDB4d3p6QVhBMWtVck9DTHdFIiwienIySnBfZ2d3RVJITjdFTDM5M1g3ODBDNlBUVmdIb0haelpZR0Mxa29SdyJd', + id: 'VHJhbnNhY3Rpb246WyJZNElROC1rNUppVXNNMGZOdWRwaTBoc2o0VnJyTjI5X1lIVjRNYlpmTWFvIiwienIySnBfZ2d3RVJITjdFTDM5M1g3ODBDNlBUVmdIb0haelpZR0Mxa29SdyJd', hash: 'zr2Jp_ggwERHN7EL393X780C6PTVgHoHZzZYGC1koRw', cmd: { meta: { @@ -31,7 +31,7 @@ export const transactionsFixture007 = { { cursor: 'MTc0NDAyMzA4Ng==', node: { - id: 'VHJhbnNhY3Rpb246WyJZNElROC1rNUppVXNNMGZOdWRwaTBoc2o0VnJyTjI5X1lIVjRNYlpmTWFvIiwienIySnBfZ2d3RVJITjdFTDM5M1g3ODBDNlBUVmdIb0haelpZR0Mxa29SdyJd', + id: 'VHJhbnNhY3Rpb246WyJqYnVJc0RiN0tpYlZRZzFGLVVVVkQxYUkxdDB4d3p6QVhBMWtVck9DTHdFIiwienIySnBfZ2d3RVJITjdFTDM5M1g3ODBDNlBUVmdIb0haelpZR0Mxa29SdyJd', hash: 'zr2Jp_ggwERHN7EL393X780C6PTVgHoHZzZYGC1koRw', cmd: { meta: { diff --git a/indexer/tests/integration/queries/transactions.query.test.ts b/indexer/tests/integration/queries/transactions.query.test.ts index a668bd11..5bfea168 100644 --- a/indexer/tests/integration/queries/transactions.query.test.ts +++ b/indexer/tests/integration/queries/transactions.query.test.ts @@ -71,7 +71,7 @@ describe('Transactions', () => { expect(transactionsFixture006.data).toMatchObject(data); }); - it.skip('#007 - accountName + fungibleName', async () => { + it('#007 - accountName + fungibleName', async () => { const query = getTransactionsQuery({ accountName: 'k:d7a4c1573e16d5bd3362b616c29c427b9c1c722371426e2e12e4571dc2f7ae62', fungibleName: 'coin',