-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Credentials and PermissionedDomain tx Support #1118
base: staging
Are you sure you want to change the base?
Conversation
## 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
src/containers/shared/components/Transaction/CredentialAccept/Simple.tsx
Outdated
Show resolved
Hide resolved
src/containers/shared/components/Transaction/CredentialAccept/index.ts
Outdated
Show resolved
Hide resolved
I would suggest creating TableDetails for these transactions as well |
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) |
src/containers/shared/components/Transaction/CredentialAccept/Simple.tsx
Outdated
Show resolved
Hide resolved
src/containers/shared/components/Transaction/CredentialAccept/Simple.tsx
Outdated
Show resolved
Hide resolved
src/containers/shared/components/Transaction/CredentialAccept/TableDetail.tsx
Outdated
Show resolved
Hide resolved
src/containers/shared/components/Transaction/CredentialAccept/TableDetail.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this 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?
src/containers/shared/components/Transaction/CredentialAccept/Simple.tsx
Outdated
Show resolved
Hide resolved
nope -- good callout, added the test jsons |
Will redo the PermissionedDomain tests once its on devnet in a couple of days, hard to format right now |
...ntainers/shared/components/Transaction/CredentialAccept/test/CredentialAcceptSimple.test.tsx
Outdated
Show resolved
Hide resolved
...ntainers/shared/components/Transaction/CredentialAccept/test/CredentialAcceptSimple.test.tsx
Outdated
Show resolved
Hide resolved
...ntainers/shared/components/Transaction/CredentialDelete/test/CredentialDeleteSimple.test.tsx
Outdated
Show resolved
Hide resolved
...hared/components/Transaction/PermissionedDomainSet/test/PermissionedDomainSetSimple.test.tsx
Outdated
Show resolved
Hide resolved
export const PermissionedDomainSetTransaction: TransactionMapping = { | ||
Simple, | ||
action: TransactionAction.MODIFY, | ||
category: TransactionCategory.ACCOUNT, |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this 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
Please add screenshots to the PR description |
{expiration && ( | ||
<div data-test="expiration"> | ||
<span className="label">{t('expiration')}: </span> | ||
<span className="case-sensitive">{expiration}</span> |
There was a problem hiding this comment.
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
There was a problem hiding this 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 👍
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
TypeScript/Hooks Update
Before / After
CredentialAccept Simple

CredentialCreate Simple

CredentialDelete Simple

CredentialAccept TableDetail

CredentialCreate TableDetail

CredentialDelete TableDetail

PermissionedDomainSet Simple

PermissionedDomainDelete Simple

PermissionedDomainSet TableDetail
PermissionedDomainDelete TableDetail
Test Plan