Skip to content

chore: [LOB-1806] Reconciliation indexer endpoint#526

Draft
M4rc0Russ0 wants to merge 3 commits intorelease/1.3.0from
chore/LOB-1806_reconciliation_indexer_endpoint
Draft

chore: [LOB-1806] Reconciliation indexer endpoint#526
M4rc0Russ0 wants to merge 3 commits intorelease/1.3.0from
chore/LOB-1806_reconciliation_indexer_endpoint

Conversation

@M4rc0Russ0
Copy link
Collaborator

No description provided.

@M4rc0Russ0 M4rc0Russ0 requested a review from Kammerlo January 19, 2026 16:43
@M4rc0Russ0 M4rc0Russ0 marked this pull request as draft January 19, 2026 16:44
@M4rc0Russ0 M4rc0Russ0 force-pushed the chore/LOB-1806_reconciliation_indexer_endpoint branch 3 times, most recently from 8c2bfeb to c9bb82d Compare January 22, 2026 23:40
private final String baseUrl;
private final int pageSize;

public OnChainIndexerClient(ObjectMapper objectMapper, RestClient restClient, String baseUrl) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With RequiredArgsConstructor you don't need to specify it yourself.


@Slf4j
@RequiredArgsConstructor
public class OnChainIndexerClient {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could rename it to OnChainIndexerService and move it to service or make a subfolder within service called client or indexer. Just trying to avoid changing the base folder structure to much.

import com.fasterxml.jackson.annotation.JsonProperty;

@JsonIgnoreProperties(ignoreUnknown = true)
public record OnChainTransactionDto(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you move this to our dto folder?

import com.fasterxml.jackson.annotation.JsonProperty;

@JsonIgnoreProperties(ignoreUnknown = true)
public record OnChainTransactionItemDto(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same. Please move to dto folder


import com.fasterxml.jackson.annotation.JsonProperty;

public record OnChainTransactionSearchRequest(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We probably also have a folder where all requests are located

import com.fasterxml.jackson.annotation.JsonProperty;

@JsonIgnoreProperties(ignoreUnknown = true)
public record OnChainTransactionsPageResponse(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same for responses


// Get data from indexer for the chunk transactions
Either<Problem, Map<String, IndexerReconcilationServiceIF.IndexerReconcilationResult>> resultE =
indexerReconcilationService.get().reconcileWithIndexer(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to do here indexerReconcilationService.orElseThrow() and throw an exception or handle the situation that you don't have an indexer differently.

@M4rc0Russ0 M4rc0Russ0 force-pushed the chore/LOB-1806_reconciliation_indexer_endpoint branch 3 times, most recently from 7bd99a0 to e0cf37c Compare February 4, 2026 12:02
@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 4, 2026

Quality Gate Failed Quality Gate failed

Failed conditions
C Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@M4rc0Russ0 M4rc0Russ0 force-pushed the chore/LOB-1806_reconciliation_indexer_endpoint branch 2 times, most recently from 91f5e78 to 14902c5 Compare February 4, 2026 22:12
@M4rc0Russ0 M4rc0Russ0 force-pushed the chore/LOB-1806_reconciliation_indexer_endpoint branch from 5e046e2 to 0963142 Compare February 5, 2026 22:25
@M4rc0Russ0 M4rc0Russ0 force-pushed the chore/LOB-1806_reconciliation_indexer_endpoint branch from 0963142 to 0e05e41 Compare February 5, 2026 23:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants