Skip to content

Add Credentials and PermissionedDomain tx Support#1118

Merged
pdp2121 merged 26 commits intostagingfrom
credentials
Feb 25, 2025
Merged

Add Credentials and PermissionedDomain tx Support#1118
pdp2121 merged 26 commits intostagingfrom
credentials

Conversation

@achowdhry-ripple
Copy link
Collaborator

@achowdhry-ripple achowdhry-ripple commented Jan 14, 2025

High Level Overview of Change

Adds CredentialCreate, CredentialAccept, CredentialDelete, PermissionedDomainDelete, and PermissionedDomainSet transaction pages to the explorer.

Context of Change

https://github.com/XRPLF/XRPL-Standards/tree/master/XLS-0070d-credentials

https://github.com/XRPLF/XRPL-Standards/tree/master/XLS-0080d-permissioned-domains

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

CredentialAccept Simple
Screenshot 2025-02-20 at 1 29 42 PM

CredentialCreate Simple
Screenshot 2025-02-20 at 1 31 04 PM

CredentialDelete Simple
Screenshot 2025-02-20 at 1 31 50 PM

CredentialAccept TableDetail
Screenshot 2025-02-20 at 1 52 37 PM

CredentialCreate TableDetail
Screenshot 2025-02-20 at 1 53 56 PM

CredentialDelete TableDetail
Screenshot 2025-02-20 at 1 58 52 PM

PermissionedDomainSet Simple
Screenshot 2025-02-20 at 5 10 59 PM

PermissionedDomainDelete Simple
Screenshot 2025-02-20 at 5 11 56 PM

PermissionedDomainSet TableDetail

PermissionedDomainDelete TableDetail

Test Plan

kennyzlei and others added 3 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
@achowdhry-ripple achowdhry-ripple changed the title Add Credentials Transactions Draft: Add Credentials Transactions Jan 14, 2025
@achowdhry-ripple achowdhry-ripple changed the title Draft: Add Credentials Transactions Draft: Add Credentials and PermissionedDomain Support Jan 14, 2025
@achowdhry-ripple achowdhry-ripple changed the title Draft: Add Credentials and PermissionedDomain Support Draft: Add Credentials Support Jan 15, 2025
@pdp2121
Copy link
Collaborator

pdp2121 commented Jan 27, 2025

I would suggest creating TableDetails for these transactions as well

@achowdhry-ripple achowdhry-ripple changed the title Draft: Add Credentials Support Draft: Add Credentials and PermissionedDomain tx Support Jan 29, 2025
@achowdhry-ripple achowdhry-ripple marked this pull request as ready for review January 29, 2025 18:40
@achowdhry-ripple
Copy link
Collaborator Author

achowdhry-ripple commented Jan 29, 2025

Pipeline is broken because this references PermissionedDomain tx from xrpl.js, which hasn't been released yet. Most of everything else is ready to review, but have not been able to test in livenet dev yet (waiting on PermissionedDomain to be released in dev)

@achowdhry-ripple achowdhry-ripple changed the title Draft: Add Credentials and PermissionedDomain tx Support Add Credentials and PermissionedDomain tx Support Jan 29, 2025
Copy link
Collaborator

@mvadari mvadari left a comment

Choose a reason for hiding this comment

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

Are there supposed to be empty test files?

@achowdhry-ripple
Copy link
Collaborator Author

Are there supposed to be empty test files?

nope -- good callout, added the test jsons

@achowdhry-ripple
Copy link
Collaborator Author

Will redo the PermissionedDomain tests once its on devnet in a couple of days, hard to format right now

export const PermissionedDomainSetTransaction: TransactionMapping = {
Simple,
action: TransactionAction.MODIFY,
category: TransactionCategory.ACCOUNT,
Copy link
Collaborator

Choose a reason for hiding this comment

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

This category doesn't feel right, but I'm not sure what is.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@pdp2121 any thoughts here? Not sure what the convention we'd follow for this is

Copy link
Collaborator

Choose a reason for hiding this comment

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

Since DID falls into ACCOUNT, I think it's fine to have Credentials fall into the same category

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

will leave this as is then

Copy link
Collaborator

@mvadari mvadari left a comment

Choose a reason for hiding this comment

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

Still have one empty file

@mvadari
Copy link
Collaborator

mvadari commented Jan 31, 2025

Please add screenshots to the PR description

{expiration && (
<div data-test="expiration">
<span className="label">{t('expiration')}: </span>
<span className="case-sensitive">{expiration}</span>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Expiration would be in Ripple epoch time. I think conversion and formatting are needed here

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

made the change, good callout

Copy link
Contributor

@khancode khancode left a comment

Choose a reason for hiding this comment

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

LGTM as far as I can tell 👍

@pdp2121 pdp2121 merged commit 7173dfb into staging Feb 25, 2025
4 checks passed
@pdp2121 pdp2121 deleted the credentials branch February 25, 2025 15:29
@mvadari mvadari linked an issue Apr 1, 2025 that may be closed by this pull request
mvadari pushed a commit that referenced this pull request Apr 7, 2025
## High Level Overview of Change

<!--
Please include a summary/list of the changes.
If too broad, please consider splitting into multiple PRs.
-->

Adds CredentialCreate, CredentialAccept, CredentialDelete,
PermissionedDomainDelete, and PermissionedDomainSet transaction pages to
the explorer.

### Context of Change

<!--
Please include the context of a change.
If a bug fix, when was the bug introduced? What was the behavior?
If a new feature, why was this architecture chosen? What were the
alternatives?
If a refactor, how is this better than the previous implementation?

If there is a design document for this feature, please link it here.
-->


https://github.com/XRPLF/XRPL-Standards/tree/master/XLS-0070d-credentials


https://github.com/XRPLF/XRPL-Standards/tree/master/XLS-0080d-permissioned-domains



### Type of Change

<!--
Please check relevant options, delete irrelevant ones.
-->

- [ ] Bug fix (non-breaking change which fixes an issue)
- [x] 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

<!--
In an effort to modernize the codebase, you should convert the files
that you work with to React Hooks and TypeScript.
If this is not possible (e.g. it's too many changes, touching too many
files, etc.) please explain why here.
-->

- [ ] Updated files to React Hooks
- [ ] Updated files to TypeScript

## Before / After

<!--
If just refactoring / back-end changes, this can be just an in-English
description of the change at a technical level.
If a UI change, screenshots should be included.


-->
CredentialAccept Simple
<img width="1465" alt="Screenshot 2025-02-20 at 1 29 42 PM"
src="https://github.com/user-attachments/assets/f4bf274a-a945-4ace-b659-d30912c39ff6"
/>

CredentialCreate Simple
<img width="1427" alt="Screenshot 2025-02-20 at 1 31 04 PM"
src="https://github.com/user-attachments/assets/42f3df6c-ef65-4432-920a-ebb9c05e9d2d"
/>

CredentialDelete Simple
<img width="1323" alt="Screenshot 2025-02-20 at 1 31 50 PM"
src="https://github.com/user-attachments/assets/6d5ec4d7-2466-4105-bc52-db705903c33e"
/>

CredentialAccept TableDetail
<img width="992" alt="Screenshot 2025-02-20 at 1 52 37 PM"
src="https://github.com/user-attachments/assets/702af132-9e7c-47f0-bf26-5530545ee949"
/>

CredentialCreate TableDetail
<img width="1087" alt="Screenshot 2025-02-20 at 1 53 56 PM"
src="https://github.com/user-attachments/assets/945bd71e-aa4e-4b08-a9a0-144c65fe38d1"
/>

CredentialDelete TableDetail
<img width="1014" alt="Screenshot 2025-02-20 at 1 58 52 PM"
src="https://github.com/user-attachments/assets/1198099b-448c-46c1-b76c-8870dc92f789"
/>


PermissionedDomainSet Simple
<img width="1101" alt="Screenshot 2025-02-20 at 5 10 59 PM"
src="https://github.com/user-attachments/assets/6258417b-25b7-4eeb-b920-aede1c3de02c"
/>

PermissionedDomainDelete Simple
<img width="1134" alt="Screenshot 2025-02-20 at 5 11 56 PM"
src="https://github.com/user-attachments/assets/f72d146f-99dd-4c1a-9de9-e38cbb50b97f"
/>

PermissionedDomainSet TableDetail

PermissionedDomainDelete TableDetail




## Test Plan

<!--
Please describe the tests that you ran to verify your changes and
provide instructions so that others can reproduce.
-->

<!--
## Future Tasks
For future tasks related to PR.
-->

---------

Co-authored-by: Kenny Lei <3003853+kennyzlei@users.noreply.github.com>
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.

Credentials: decode simple CredentialType values

5 participants