Skip to content
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 support for featureDisallowIncoming amendment #419

Merged
merged 11 commits into from
Jun 27, 2023

Conversation

nkramer44
Copy link
Collaborator

@nkramer44 nkramer44 commented Jun 13, 2023

This PR adds support for the DisallowIncoming amendment that was recently activated on mainnet. See this PR for more details on the amendment.

Also fixes #423 by adding UnknownLedgerObject and using it as the defaultImpl in the LedgerObject @JsonTypeInfo annotation. A PR was recently merged and deployed to devnet/testnet that adds NFTokenPages to the response of account_objects. We do not have a mapping for NFTokenPage in xrpl4j yet, so adding UnknownLedgerObject was necessary to get devnet/testnet ITs to pass.

@nkramer44 nkramer44 requested review from mukulljangid and sappenin and removed request for sappenin and nhartner June 13, 2023 19:33
@codecov
Copy link

codecov bot commented Jun 13, 2023

Codecov Report

Merging #419 (3482bff) into main (98845a3) will increase coverage by 0.05%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##               main     #419      +/-   ##
============================================
+ Coverage     90.03%   90.09%   +0.05%     
- Complexity     1376     1385       +9     
============================================
  Files           266      268       +2     
  Lines          4003     4027      +24     
  Branches        332      332              
============================================
+ Hits           3604     3628      +24     
  Misses          279      279              
  Partials        120      120              
Impacted Files Coverage Δ
...ava/org/xrpl/xrpl4j/model/ledger/LedgerObject.java 83.33% <ø> (ø)
.../org/xrpl/xrpl4j/model/flags/AccountRootFlags.java 100.00% <100.00%> (ø)
...ckson/modules/UnknownLedgerObjectDeserializer.java 100.00% <100.00%> (ø)
.../xrpl/xrpl4j/model/ledger/UnknownLedgerObject.java 100.00% <100.00%> (ø)
...org/xrpl/xrpl4j/model/transactions/AccountSet.java 95.34% <100.00%> (+0.47%) ⬆️

Copy link
Collaborator

@sappenin sappenin left a comment

Choose a reason for hiding this comment

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

Two minor questions.

…o fill a JsonNode field. Also figured out that setting `visible = true` on `@JsonTypeInfo` includes the TypeID in the deserializer.
@nkramer44 nkramer44 requested a review from sappenin June 22, 2023 17:52
@nkramer44 nkramer44 merged commit 050916e into main Jun 27, 2023
18 of 19 checks passed
@nkramer44 nkramer44 deleted the nk/feature-disallow-incoming branch June 27, 2023 14:23
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.

Handle unsupported Ledger Entry types
2 participants