-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for ledger_entry RPC (#489)
* Add support for ledger_entry RPC * use ledgerEntry in ITs
- Loading branch information
Showing
29 changed files
with
2,800 additions
and
215 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
xrpl4j-core/src/main/java/org/xrpl/xrpl4j/model/client/ledger/AmmLedgerEntryParams.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package org.xrpl.xrpl4j.model.client.ledger; | ||
|
||
import com.fasterxml.jackson.databind.annotation.JsonDeserialize; | ||
import com.fasterxml.jackson.databind.annotation.JsonSerialize; | ||
import org.immutables.value.Value.Immutable; | ||
import org.xrpl.xrpl4j.model.ledger.Issue; | ||
|
||
/** | ||
* Parameters that uniquely identify an {@link org.xrpl.xrpl4j.model.ledger.AmmObject} on ledger that can be used | ||
* in a {@link LedgerEntryRequestParams} to request an {@link org.xrpl.xrpl4j.model.ledger.AmmObject}. | ||
*/ | ||
@Immutable | ||
@JsonSerialize(as = ImmutableAmmLedgerEntryParams.class) | ||
@JsonDeserialize(as = ImmutableAmmLedgerEntryParams.class) | ||
public interface AmmLedgerEntryParams { | ||
|
||
/** | ||
* Construct a {@code AmmLedgerEntryParams} builder. | ||
* | ||
* @return An {@link ImmutableAmmLedgerEntryParams.Builder}. | ||
*/ | ||
static ImmutableAmmLedgerEntryParams.Builder builder() { | ||
return ImmutableAmmLedgerEntryParams.builder(); | ||
} | ||
|
||
/** | ||
* One of the two assets in the AMM's pool. | ||
* | ||
* @return An {@link Issue}. | ||
*/ | ||
Issue asset(); | ||
|
||
/** | ||
* The other of the two assets in the AMM's pool. | ||
* | ||
* @return An {@link Issue}. | ||
*/ | ||
Issue asset2(); | ||
|
||
} |
40 changes: 40 additions & 0 deletions
40
...re/src/main/java/org/xrpl/xrpl4j/model/client/ledger/DepositPreAuthLedgerEntryParams.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package org.xrpl.xrpl4j.model.client.ledger; | ||
|
||
import com.fasterxml.jackson.databind.annotation.JsonDeserialize; | ||
import com.fasterxml.jackson.databind.annotation.JsonSerialize; | ||
import org.immutables.value.Value.Immutable; | ||
import org.xrpl.xrpl4j.model.transactions.Address; | ||
|
||
/** | ||
* Parameters that uniquely identify a {@link org.xrpl.xrpl4j.model.ledger.DepositPreAuthObject} on ledger that can be | ||
* used in a {@link LedgerEntryRequestParams} to request an {@link org.xrpl.xrpl4j.model.ledger.DepositPreAuthObject}. | ||
*/ | ||
@Immutable | ||
@JsonSerialize(as = ImmutableDepositPreAuthLedgerEntryParams.class) | ||
@JsonDeserialize(as = ImmutableDepositPreAuthLedgerEntryParams.class) | ||
public interface DepositPreAuthLedgerEntryParams { | ||
|
||
/** | ||
* Construct a {@code DepositPreAuthLedgerEntryParams} builder. | ||
* | ||
* @return An {@link ImmutableDepositPreAuthLedgerEntryParams.Builder}. | ||
*/ | ||
static ImmutableDepositPreAuthLedgerEntryParams.Builder builder() { | ||
return ImmutableDepositPreAuthLedgerEntryParams.builder(); | ||
} | ||
|
||
/** | ||
* The {@link Address} of the account that provided the preauthorization. | ||
* | ||
* @return An {@link Address}. | ||
*/ | ||
Address owner(); | ||
|
||
/** | ||
* The {@link Address} of the account that received the preauthorization. | ||
* | ||
* @return An {@link Address}. | ||
*/ | ||
Address authorized(); | ||
|
||
} |
41 changes: 41 additions & 0 deletions
41
xrpl4j-core/src/main/java/org/xrpl/xrpl4j/model/client/ledger/EscrowLedgerEntryParams.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
package org.xrpl.xrpl4j.model.client.ledger; | ||
|
||
import com.fasterxml.jackson.databind.annotation.JsonDeserialize; | ||
import com.fasterxml.jackson.databind.annotation.JsonSerialize; | ||
import com.google.common.primitives.UnsignedInteger; | ||
import org.immutables.value.Value.Immutable; | ||
import org.xrpl.xrpl4j.model.transactions.Address; | ||
|
||
/** | ||
* Parameters that uniquely identify an {@link org.xrpl.xrpl4j.model.ledger.EscrowObject} on ledger that can be used in | ||
* a {@link LedgerEntryRequestParams} to request an {@link org.xrpl.xrpl4j.model.ledger.EscrowObject}. | ||
*/ | ||
@Immutable | ||
@JsonSerialize(as = ImmutableEscrowLedgerEntryParams.class) | ||
@JsonDeserialize(as = ImmutableEscrowLedgerEntryParams.class) | ||
public interface EscrowLedgerEntryParams { | ||
|
||
/** | ||
* Construct a {@code EscrowLedgerEntryParams} builder. | ||
* | ||
* @return An {@link ImmutableEscrowLedgerEntryParams.Builder}. | ||
*/ | ||
static ImmutableEscrowLedgerEntryParams.Builder builder() { | ||
return ImmutableEscrowLedgerEntryParams.builder(); | ||
} | ||
|
||
/** | ||
* The owner (sender) of the Escrow object. | ||
* | ||
* @return The {@link Address} of the owner. | ||
*/ | ||
Address owner(); | ||
|
||
/** | ||
* The Sequence Number of the transaction that created the Escrow object. | ||
* | ||
* @return An {@link UnsignedInteger}. | ||
*/ | ||
UnsignedInteger seq(); | ||
|
||
} |
Oops, something went wrong.