Skip to content

EVM-2: add EVM API DTO records to prism-api module#162

Merged
Puneethkumarck merged 1 commit intomainfrom
feature/EVM-2-create-evm-api-dtos
Apr 12, 2026
Merged

EVM-2: add EVM API DTO records to prism-api module#162
Puneethkumarck merged 1 commit intomainfrom
feature/EVM-2-create-evm-api-dtos

Conversation

@Puneethkumarck
Copy link
Copy Markdown
Owner

EVM Issue

Closes #106

Changes

  • Add EvmTransactionResponse record (txHash, blockNumber, blockHash, transactionIndex, from, to, value, status, gasUsed, effectiveGasPrice, type, createdAt)
  • Add EvmBlockResponse record (blockNumber, blockHash, parentHash, timestamp, transactionCount, gasUsed, gasLimit, baseFeePerGas, createdAt)
  • Add EvmTransferResponse record (id, txHash, blockNumber, from, to, value, createdAt)
  • Add EvmTokenTransferResponse record (id, txHash, blockNumber, logIndex, tokenAddress, from, to, value, createdAt)
  • Add EvmAccountResponse record (address, blockNumber, transactionCount, firstSeen, lastSeen, createdAt)
  • Add EvmStatsResponse record (totalTransactions, totalFailed, totalTransfers, totalTokenTransfers, totalAccounts, totalBlocks, latestBlock)

All records follow existing Solana DTO conventions: @JsonNaming(SnakeCaseStrategy.class) + @Builder(toBuilder = true), monetary values as String, field names matching FR-11 spec. Existing Page<T> and ErrorResponse reused without modification.

Checklist

  • ./gradlew build passes
  • Unit tests added/updated
  • Integration tests added/updated (if applicable)
  • ArchUnit rules pass
  • Spotless formatting applied

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Puneethkumarck Puneethkumarck added enhancement New feature or request phase:0-scaffolding Project scaffolding labels Apr 12, 2026
@Puneethkumarck Puneethkumarck self-assigned this Apr 12, 2026
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 12, 2026

Warning

Rate limit exceeded

@Puneethkumarck has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 9 minutes and 57 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 9 minutes and 57 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: be0cdca6-c275-4781-954a-0e8b86301fa0

📥 Commits

Reviewing files that changed from the base of the PR and between 7a8d374 and f702d77.

📒 Files selected for processing (6)
  • prism-api/src/main/java/com/stablebridge/prism/api/EvmAccountResponse.java
  • prism-api/src/main/java/com/stablebridge/prism/api/EvmBlockResponse.java
  • prism-api/src/main/java/com/stablebridge/prism/api/EvmStatsResponse.java
  • prism-api/src/main/java/com/stablebridge/prism/api/EvmTokenTransferResponse.java
  • prism-api/src/main/java/com/stablebridge/prism/api/EvmTransactionResponse.java
  • prism-api/src/main/java/com/stablebridge/prism/api/EvmTransferResponse.java
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/EVM-2-create-evm-api-dtos

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@Puneethkumarck Puneethkumarck merged commit fa6a1b8 into main Apr 12, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request phase:0-scaffolding Project scaffolding

Projects

None yet

Development

Successfully merging this pull request may close these issues.

EVM-2: Create EVM API DTOs

1 participant