Skip to content

Conversation

@mvadari
Copy link
Collaborator

@mvadari mvadari commented Mar 31, 2025

High Level Overview of Change

This PR adds a new type of page for ledger entries/objects. For now it just has a default page that shows all the fields of an object, but over time we can add special ones.

It also:

  • Adds links to these pages in the Detailed tab metadata breakdown
  • Redirects to the Account page if the object is an account
  • Handles deleted objects (if connected to a Clio node)

Context of Change

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Refactor (non-breaking change that only restructures code)
  • Tests (You added tests for code that already exists, or your new feature included in this PR)
  • Documentation Updates
  • Translation Updates
  • Release

TypeScript/Hooks Update

  • Updated files to React Hooks
  • Updated files to TypeScript

Before / After

image

Test Plan

kennyzlei and others added 13 commits December 18, 2024 10:06
## High Level Overview of Change

Fix typo for website in english translation

### Context of Change

Bug introduced in #1056

### Type of Change

- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] Refactor (non-breaking change that only restructures code)
- [ ] Tests (You added tests for code that already exists, or your new
feature included in this PR)
- [ ] Documentation Updates
- [ ] Translation Updates
- [ ] Release

### TypeScript/Hooks Update

- [ ] Updated files to React Hooks
- [ ] Updated files to TypeScript
@mvadari mvadari linked an issue Apr 1, 2025 that may be closed by this pull request
Comment on lines +50 to +51
await getLedgerEntry(rippledContext, id)
return 'entry'
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there any way we can cache the result of this method invocation? It feels wasteful to invoke this API only for the purpose of checking if the hash pertains to a transaction, ledger-entry (or) an NFT.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

That change should probably be made in a separate PR

Comment on lines +96 to 98
if (resp.error === 'lgrNotFound') {
throw new Error('invalid ledger index/hash', 400)
}
Copy link
Contributor

Choose a reason for hiding this comment

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

This RPC command always fetches the last validated ledger. This error cannot possibly occur.

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.

Feature request: Ledger object pages

6 participants